From 897b41ce63d02eaa552e48969160ad3a5d86eae5 Mon Sep 17 00:00:00 2001 From: stack72 Date: Thu, 25 Aug 2022 18:58:01 +0100 Subject: [PATCH] Upgrade pulumi-java to v0.5.4 --- .github/workflows/main.yml | 20 +- .github/workflows/master.yml | 20 +- .github/workflows/nightly-test.yml | 10 +- .github/workflows/prerelease.yml | 16 +- .github/workflows/release.yml | 20 +- .github/workflows/run-acceptance-tests.yml | 10 +- .github/workflows/update-bridge.yml | 2 +- .../workflows/update-upstream-provider.yml | 2 +- Makefile | 4 +- sdk/java/build.gradle | 3 +- .../outputs/ArchiveRuleFilter.java | 49 +- .../CertificateDomainValidationOption.java | 43 +- .../aws/acm/outputs/CertificateOptions.java | 24 +- .../outputs/CertificateValidationOption.java | 31 +- .../aws/acm/outputs/GetCertificateResult.java | 85 +- ...rityCertificateAuthorityConfiguration.java | 37 +- ...tificateAuthorityConfigurationSubject.java | 97 +- ...icateAuthorityRevocationConfiguration.java | 31 +- ...vocationConfigurationCrlConfiguration.java | 49 +- ...ocationConfigurationOcspConfiguration.java | 31 +- .../acmpca/outputs/CertificateValidity.java | 31 +- .../GetCertificateAuthorityResult.java | 91 +- ...icateAuthorityRevocationConfiguration.java | 31 +- ...vocationConfigurationCrlConfiguration.java | 49 +- ...ocationConfigurationOcspConfiguration.java | 31 +- .../acmpca/outputs/GetCertificateResult.java | 49 +- .../alb/outputs/GetListenerDefaultAction.java | 67 +- ...tenerDefaultActionAuthenticateCognito.java | 67 +- ...ListenerDefaultActionAuthenticateOidc.java | 85 +- ...GetListenerDefaultActionFixedResponse.java | 37 +- .../GetListenerDefaultActionForward.java | 31 +- ...istenerDefaultActionForwardStickiness.java | 31 +- ...stenerDefaultActionForwardTargetGroup.java | 31 +- .../GetListenerDefaultActionRedirect.java | 55 +- .../aws/alb/outputs/GetListenerResult.java | 79 +- .../outputs/GetLoadBalancerAccessLogs.java | 37 +- .../alb/outputs/GetLoadBalancerResult.java | 157 +- .../outputs/GetLoadBalancerSubnetMapping.java | 49 +- .../outputs/GetTargetGroupHealthCheck.java | 73 +- .../aws/alb/outputs/GetTargetGroupResult.java | 133 +- .../alb/outputs/GetTargetGroupStickiness.java | 43 +- .../alb/outputs/ListenerDefaultAction.java | 67 +- ...tenerDefaultActionAuthenticateCognito.java | 67 +- ...ListenerDefaultActionAuthenticateOidc.java | 85 +- .../ListenerDefaultActionFixedResponse.java | 37 +- .../outputs/ListenerDefaultActionForward.java | 31 +- ...istenerDefaultActionForwardStickiness.java | 31 +- ...stenerDefaultActionForwardTargetGroup.java | 31 +- .../ListenerDefaultActionRedirect.java | 55 +- .../aws/alb/outputs/ListenerRuleAction.java | 67 +- ...ListenerRuleActionAuthenticateCognito.java | 67 +- .../ListenerRuleActionAuthenticateOidc.java | 85 +- .../ListenerRuleActionFixedResponse.java | 37 +- .../outputs/ListenerRuleActionForward.java | 31 +- .../ListenerRuleActionForwardStickiness.java | 31 +- .../ListenerRuleActionForwardTargetGroup.java | 31 +- .../outputs/ListenerRuleActionRedirect.java | 55 +- .../alb/outputs/ListenerRuleCondition.java | 55 +- .../ListenerRuleConditionHostHeader.java | 24 +- .../ListenerRuleConditionHttpHeader.java | 31 +- ...istenerRuleConditionHttpRequestMethod.java | 24 +- .../ListenerRuleConditionPathPattern.java | 24 +- .../ListenerRuleConditionQueryString.java | 31 +- .../ListenerRuleConditionSourceIp.java | 24 +- .../alb/outputs/LoadBalancerAccessLogs.java | 37 +- .../outputs/LoadBalancerSubnetMapping.java | 49 +- .../alb/outputs/TargetGroupHealthCheck.java | 73 +- .../alb/outputs/TargetGroupStickiness.java | 43 +- .../aws/amp/outputs/GetWorkspaceResult.java | 67 +- .../outputs/AppAutoBranchCreationConfig.java | 79 +- .../aws/amplify/outputs/AppCustomRule.java | 43 +- .../amplify/outputs/AppProductionBranch.java | 43 +- .../outputs/DomainAssociationSubDomain.java | 43 +- .../outputs/AccountThrottleSetting.java | 31 +- .../outputs/DocumentationPartLocation.java | 49 +- .../DomainNameEndpointConfiguration.java | 24 +- .../DomainNameMutualTlsAuthentication.java | 31 +- .../GetDomainNameEndpointConfiguration.java | 24 +- .../outputs/GetDomainNameResult.java | 109 +- .../apigateway/outputs/GetExportResult.java | 73 +- .../aws/apigateway/outputs/GetKeyResult.java | 67 +- .../apigateway/outputs/GetResourceResult.java | 49 +- .../GetRestApiEndpointConfiguration.java | 31 +- .../apigateway/outputs/GetRestApiResult.java | 91 +- .../aws/apigateway/outputs/GetSdkResult.java | 67 +- .../apigateway/outputs/GetVpcLinkResult.java | 61 +- .../outputs/IntegrationTlsConfig.java | 24 +- .../outputs/MethodSettingsSettings.java | 79 +- .../outputs/RestApiEndpointConfiguration.java | 31 +- .../outputs/StageAccessLogSettings.java | 31 +- .../outputs/StageCanarySettings.java | 37 +- .../apigateway/outputs/UsagePlanApiStage.java | 37 +- .../outputs/UsagePlanApiStageThrottle.java | 37 +- .../outputs/UsagePlanQuotaSettings.java | 37 +- .../outputs/UsagePlanThrottleSettings.java | 31 +- .../outputs/ApiCorsConfiguration.java | 55 +- .../outputs/AuthorizerJwtConfiguration.java | 31 +- .../DomainNameDomainNameConfiguration.java | 55 +- .../DomainNameMutualTlsAuthentication.java | 31 +- .../outputs/GetApiCorsConfiguration.java | 55 +- .../apigatewayv2/outputs/GetApiResult.java | 103 +- .../apigatewayv2/outputs/GetApisResult.java | 49 +- .../apigatewayv2/outputs/GetExportResult.java | 67 +- .../outputs/IntegrationResponseParameter.java | 31 +- .../outputs/IntegrationTlsConfig.java | 24 +- .../outputs/RouteRequestParameter.java | 31 +- .../outputs/StageAccessLogSettings.java | 31 +- .../outputs/StageDefaultRouteSettings.java | 49 +- .../outputs/StageRouteSetting.java | 55 +- .../PolicyStepScalingPolicyConfiguration.java | 49 +- ...lingPolicyConfigurationStepAdjustment.java | 37 +- ...getTrackingScalingPolicyConfiguration.java | 55 +- ...gurationCustomizedMetricSpecification.java | 49 +- ...ustomizedMetricSpecificationDimension.java | 31 +- ...gurationPredefinedMetricSpecification.java | 31 +- .../ScheduledActionScalableTargetAction.java | 31 +- .../ConfigurationProfileValidator.java | 31 +- .../appconfig/outputs/EnvironmentMonitor.java | 31 +- .../outputs/EventIntegrationEventFilter.java | 24 +- ...onnectorProfileConnectorProfileConfig.java | 31 +- ...fileConfigConnectorProfileCredentials.java | 127 +- ...gConnectorProfileCredentialsAmplitude.java | 31 +- ...ctorProfileCredentialsCustomConnector.java | 49 +- ...ofileCredentialsCustomConnectorApiKey.java | 31 +- ...rofileCredentialsCustomConnectorBasic.java | 31 +- ...ofileCredentialsCustomConnectorCustom.java | 31 +- ...ofileCredentialsCustomConnectorOauth2.java | 49 +- ...ialsCustomConnectorOauth2OauthRequest.java | 31 +- ...figConnectorProfileCredentialsDatadog.java | 31 +- ...gConnectorProfileCredentialsDynatrace.java | 24 +- ...ctorProfileCredentialsGoogleAnalytics.java | 49 +- ...redentialsGoogleAnalyticsOauthRequest.java | 31 +- ...gConnectorProfileCredentialsHoneycode.java | 37 +- ...ofileCredentialsHoneycodeOauthRequest.java | 31 +- ...ConnectorProfileCredentialsInforNexus.java | 43 +- ...figConnectorProfileCredentialsMarketo.java | 43 +- ...ProfileCredentialsMarketoOauthRequest.java | 31 +- ...igConnectorProfileCredentialsRedshift.java | 31 +- ...ConnectorProfileCredentialsSalesforce.java | 43 +- ...fileCredentialsSalesforceOauthRequest.java | 31 +- ...igConnectorProfileCredentialsSapoData.java | 31 +- ...edentialsSapoDataBasicAuthCredentials.java | 31 +- ...leCredentialsSapoDataOauthCredentials.java | 49 +- ...sSapoDataOauthCredentialsOauthRequest.java | 31 +- ...ConnectorProfileCredentialsServiceNow.java | 31 +- ...igConnectorProfileCredentialsSingular.java | 24 +- ...onfigConnectorProfileCredentialsSlack.java | 43 +- ...orProfileCredentialsSlackOauthRequest.java | 31 +- ...gConnectorProfileCredentialsSnowflake.java | 31 +- ...ConnectorProfileCredentialsTrendmicro.java | 24 +- ...onfigConnectorProfileCredentialsVeeva.java | 31 +- ...figConnectorProfileCredentialsZendesk.java | 43 +- ...ProfileCredentialsZendeskOauthRequest.java | 31 +- ...ofileConfigConnectorProfileProperties.java | 127 +- ...igConnectorProfilePropertiesAmplitude.java | 17 +- ...ectorProfilePropertiesCustomConnector.java | 31 +- ...ertiesCustomConnectorOauth2Properties.java | 37 +- ...nfigConnectorProfilePropertiesDatadog.java | 24 +- ...igConnectorProfilePropertiesDynatrace.java | 24 +- ...ectorProfilePropertiesGoogleAnalytics.java | 17 +- ...igConnectorProfilePropertiesHoneycode.java | 17 +- ...gConnectorProfilePropertiesInforNexus.java | 24 +- ...nfigConnectorProfilePropertiesMarketo.java | 24 +- ...figConnectorProfilePropertiesRedshift.java | 43 +- ...gConnectorProfilePropertiesSalesforce.java | 31 +- ...figConnectorProfilePropertiesSapoData.java | 61 +- ...filePropertiesSapoDataOauthProperties.java | 37 +- ...gConnectorProfilePropertiesServiceNow.java | 24 +- ...figConnectorProfilePropertiesSingular.java | 17 +- ...ConfigConnectorProfilePropertiesSlack.java | 24 +- ...igConnectorProfilePropertiesSnowflake.java | 61 +- ...gConnectorProfilePropertiesTrendmicro.java | 17 +- ...ConfigConnectorProfilePropertiesVeeva.java | 24 +- ...nfigConnectorProfilePropertiesZendesk.java | 24 +- .../outputs/FlowDestinationFlowConfig.java | 43 +- ...wConfigDestinationConnectorProperties.java | 97 +- ...ionConnectorPropertiesCustomConnector.java | 49 +- ...iesCustomConnectorErrorHandlingConfig.java | 37 +- ...onConnectorPropertiesCustomerProfiles.java | 31 +- ...inationConnectorPropertiesEventBridge.java | 31 +- ...pertiesEventBridgeErrorHandlingConfig.java | 37 +- ...stinationConnectorPropertiesHoneycode.java | 31 +- ...ropertiesHoneycodeErrorHandlingConfig.java | 37 +- ...tionConnectorPropertiesLookoutMetrics.java | 17 +- ...DestinationConnectorPropertiesMarketo.java | 31 +- ...rPropertiesMarketoErrorHandlingConfig.java | 37 +- ...estinationConnectorPropertiesRedshift.java | 43 +- ...PropertiesRedshiftErrorHandlingConfig.java | 37 +- ...onfigDestinationConnectorPropertiesS3.java | 37 +- ...ectorPropertiesS3S3OutputFormatConfig.java | 37 +- ...S3OutputFormatConfigAggregationConfig.java | 24 +- ...iesS3S3OutputFormatConfigPrefixConfig.java | 31 +- ...tinationConnectorPropertiesSalesforce.java | 43 +- ...opertiesSalesforceErrorHandlingConfig.java | 37 +- ...estinationConnectorPropertiesSapoData.java | 49 +- ...PropertiesSapoDataErrorHandlingConfig.java | 37 +- ...SapoDataSuccessResponseHandlingConfig.java | 31 +- ...stinationConnectorPropertiesSnowflake.java | 43 +- ...ropertiesSnowflakeErrorHandlingConfig.java | 37 +- ...estinationConnectorPropertiesUpsolver.java | 37 +- ...ropertiesUpsolverS3OutputFormatConfig.java | 37 +- ...S3OutputFormatConfigAggregationConfig.java | 24 +- ...olverS3OutputFormatConfigPrefixConfig.java | 31 +- ...DestinationConnectorPropertiesZendesk.java | 43 +- ...rPropertiesZendeskErrorHandlingConfig.java | 37 +- .../appflow/outputs/FlowSourceFlowConfig.java | 49 +- ...SourceFlowConfigIncrementalPullConfig.java | 24 +- ...ceFlowConfigSourceConnectorProperties.java | 115 +- ...figSourceConnectorPropertiesAmplitude.java | 24 +- ...rceConnectorPropertiesCustomConnector.java | 31 +- ...onfigSourceConnectorPropertiesDatadog.java | 24 +- ...figSourceConnectorPropertiesDynatrace.java | 24 +- ...rceConnectorPropertiesGoogleAnalytics.java | 24 +- ...igSourceConnectorPropertiesInforNexus.java | 24 +- ...onfigSourceConnectorPropertiesMarketo.java | 24 +- ...FlowConfigSourceConnectorPropertiesS3.java | 37 +- ...nectorPropertiesS3S3InputFormatConfig.java | 24 +- ...igSourceConnectorPropertiesSalesforce.java | 37 +- ...nfigSourceConnectorPropertiesSapoData.java | 24 +- ...igSourceConnectorPropertiesServiceNow.java | 24 +- ...nfigSourceConnectorPropertiesSingular.java | 24 +- ...wConfigSourceConnectorPropertiesSlack.java | 24 +- ...igSourceConnectorPropertiesTrendmicro.java | 24 +- ...wConfigSourceConnectorPropertiesVeeva.java | 49 +- ...onfigSourceConnectorPropertiesZendesk.java | 24 +- .../pulumi/aws/appflow/outputs/FlowTask.java | 49 +- .../outputs/FlowTaskConnectorOperator.java | 115 +- .../appflow/outputs/FlowTriggerConfig.java | 31 +- .../FlowTriggerConfigTriggerProperties.java | 24 +- ...iggerConfigTriggerPropertiesScheduled.java | 61 +- .../outputs/GetListenerDefaultAction.java | 67 +- ...tenerDefaultActionAuthenticateCognito.java | 67 +- ...ListenerDefaultActionAuthenticateOidc.java | 85 +- ...GetListenerDefaultActionFixedResponse.java | 37 +- .../GetListenerDefaultActionForward.java | 31 +- ...istenerDefaultActionForwardStickiness.java | 31 +- ...stenerDefaultActionForwardTargetGroup.java | 31 +- .../GetListenerDefaultActionRedirect.java | 55 +- .../outputs/GetListenerResult.java | 79 +- .../outputs/GetLoadBalancerAccessLogs.java | 37 +- .../outputs/GetLoadBalancerResult.java | 157 +- .../outputs/GetLoadBalancerSubnetMapping.java | 49 +- .../outputs/GetTargetGroupHealthCheck.java | 73 +- .../outputs/GetTargetGroupResult.java | 133 +- .../outputs/GetTargetGroupStickiness.java | 43 +- .../outputs/ListenerDefaultAction.java | 67 +- ...tenerDefaultActionAuthenticateCognito.java | 67 +- ...ListenerDefaultActionAuthenticateOidc.java | 85 +- .../ListenerDefaultActionFixedResponse.java | 37 +- .../outputs/ListenerDefaultActionForward.java | 31 +- ...istenerDefaultActionForwardStickiness.java | 31 +- ...stenerDefaultActionForwardTargetGroup.java | 31 +- .../ListenerDefaultActionRedirect.java | 55 +- .../outputs/ListenerRuleAction.java | 67 +- ...ListenerRuleActionAuthenticateCognito.java | 67 +- .../ListenerRuleActionAuthenticateOidc.java | 85 +- .../ListenerRuleActionFixedResponse.java | 37 +- .../outputs/ListenerRuleActionForward.java | 31 +- .../ListenerRuleActionForwardStickiness.java | 31 +- .../ListenerRuleActionForwardTargetGroup.java | 31 +- .../outputs/ListenerRuleActionRedirect.java | 55 +- .../outputs/ListenerRuleCondition.java | 55 +- .../ListenerRuleConditionHostHeader.java | 24 +- .../ListenerRuleConditionHttpHeader.java | 31 +- ...istenerRuleConditionHttpRequestMethod.java | 24 +- .../ListenerRuleConditionPathPattern.java | 24 +- .../ListenerRuleConditionQueryString.java | 31 +- .../ListenerRuleConditionSourceIp.java | 24 +- .../outputs/LoadBalancerAccessLogs.java | 37 +- .../outputs/LoadBalancerSubnetMapping.java | 49 +- .../outputs/TargetGroupHealthCheck.java | 73 +- .../outputs/TargetGroupStickiness.java | 43 +- .../aws/appmesh/outputs/GatewayRouteSpec.java | 37 +- .../outputs/GatewayRouteSpecGrpcRoute.java | 31 +- .../GatewayRouteSpecGrpcRouteAction.java | 24 +- ...GatewayRouteSpecGrpcRouteActionTarget.java | 24 +- ...ecGrpcRouteActionTargetVirtualService.java | 24 +- .../GatewayRouteSpecGrpcRouteMatch.java | 24 +- .../outputs/GatewayRouteSpecHttp2Route.java | 31 +- .../GatewayRouteSpecHttp2RouteAction.java | 31 +- ...tewayRouteSpecHttp2RouteActionRewrite.java | 31 +- ...teSpecHttp2RouteActionRewriteHostname.java | 24 +- ...outeSpecHttp2RouteActionRewritePrefix.java | 31 +- ...atewayRouteSpecHttp2RouteActionTarget.java | 24 +- ...cHttp2RouteActionTargetVirtualService.java | 24 +- .../GatewayRouteSpecHttp2RouteMatch.java | 31 +- ...tewayRouteSpecHttp2RouteMatchHostname.java | 31 +- .../outputs/GatewayRouteSpecHttpRoute.java | 31 +- .../GatewayRouteSpecHttpRouteAction.java | 31 +- ...atewayRouteSpecHttpRouteActionRewrite.java | 31 +- ...uteSpecHttpRouteActionRewriteHostname.java | 24 +- ...RouteSpecHttpRouteActionRewritePrefix.java | 31 +- ...GatewayRouteSpecHttpRouteActionTarget.java | 24 +- ...ecHttpRouteActionTargetVirtualService.java | 24 +- .../GatewayRouteSpecHttpRouteMatch.java | 31 +- ...atewayRouteSpecHttpRouteMatchHostname.java | 31 +- .../aws/appmesh/outputs/GetMeshResult.java | 73 +- .../aws/appmesh/outputs/GetMeshSpec.java | 24 +- .../outputs/GetMeshSpecEgressFilter.java | 24 +- .../outputs/GetVirtualServiceResult.java | 79 +- .../outputs/GetVirtualServiceSpec.java | 24 +- .../GetVirtualServiceSpecProvider.java | 31 +- ...VirtualServiceSpecProviderVirtualNode.java | 24 +- ...rtualServiceSpecProviderVirtualRouter.java | 24 +- .../pulumi/aws/appmesh/outputs/MeshSpec.java | 24 +- .../appmesh/outputs/MeshSpecEgressFilter.java | 24 +- .../pulumi/aws/appmesh/outputs/RouteSpec.java | 49 +- .../appmesh/outputs/RouteSpecGrpcRoute.java | 43 +- .../outputs/RouteSpecGrpcRouteAction.java | 24 +- ...outeSpecGrpcRouteActionWeightedTarget.java | 31 +- .../outputs/RouteSpecGrpcRouteMatch.java | 43 +- .../RouteSpecGrpcRouteMatchMetadata.java | 37 +- .../RouteSpecGrpcRouteMatchMetadataMatch.java | 49 +- ...eSpecGrpcRouteMatchMetadataMatchRange.java | 31 +- .../RouteSpecGrpcRouteRetryPolicy.java | 49 +- ...ecGrpcRouteRetryPolicyPerRetryTimeout.java | 31 +- .../outputs/RouteSpecGrpcRouteTimeout.java | 31 +- .../RouteSpecGrpcRouteTimeoutIdle.java | 31 +- .../RouteSpecGrpcRouteTimeoutPerRequest.java | 31 +- .../appmesh/outputs/RouteSpecHttp2Route.java | 43 +- .../outputs/RouteSpecHttp2RouteAction.java | 24 +- ...uteSpecHttp2RouteActionWeightedTarget.java | 31 +- .../outputs/RouteSpecHttp2RouteMatch.java | 43 +- .../RouteSpecHttp2RouteMatchHeader.java | 37 +- .../RouteSpecHttp2RouteMatchHeaderMatch.java | 49 +- ...teSpecHttp2RouteMatchHeaderMatchRange.java | 31 +- .../RouteSpecHttp2RouteRetryPolicy.java | 43 +- ...cHttp2RouteRetryPolicyPerRetryTimeout.java | 31 +- .../outputs/RouteSpecHttp2RouteTimeout.java | 31 +- .../RouteSpecHttp2RouteTimeoutIdle.java | 31 +- .../RouteSpecHttp2RouteTimeoutPerRequest.java | 31 +- .../appmesh/outputs/RouteSpecHttpRoute.java | 43 +- .../outputs/RouteSpecHttpRouteAction.java | 24 +- ...outeSpecHttpRouteActionWeightedTarget.java | 31 +- .../outputs/RouteSpecHttpRouteMatch.java | 43 +- .../RouteSpecHttpRouteMatchHeader.java | 37 +- .../RouteSpecHttpRouteMatchHeaderMatch.java | 49 +- ...uteSpecHttpRouteMatchHeaderMatchRange.java | 31 +- .../RouteSpecHttpRouteRetryPolicy.java | 43 +- ...ecHttpRouteRetryPolicyPerRetryTimeout.java | 31 +- .../outputs/RouteSpecHttpRouteTimeout.java | 31 +- .../RouteSpecHttpRouteTimeoutIdle.java | 31 +- .../RouteSpecHttpRouteTimeoutPerRequest.java | 31 +- .../appmesh/outputs/RouteSpecTcpRoute.java | 31 +- .../outputs/RouteSpecTcpRouteAction.java | 24 +- ...RouteSpecTcpRouteActionWeightedTarget.java | 31 +- .../outputs/RouteSpecTcpRouteTimeout.java | 24 +- .../outputs/RouteSpecTcpRouteTimeoutIdle.java | 31 +- .../appmesh/outputs/VirtualGatewaySpec.java | 37 +- .../VirtualGatewaySpecBackendDefaults.java | 24 +- ...atewaySpecBackendDefaultsClientPolicy.java | 24 +- ...waySpecBackendDefaultsClientPolicyTls.java | 43 +- ...endDefaultsClientPolicyTlsCertificate.java | 31 +- ...efaultsClientPolicyTlsCertificateFile.java | 31 +- ...DefaultsClientPolicyTlsCertificateSds.java | 24 +- ...kendDefaultsClientPolicyTlsValidation.java | 31 +- ...yTlsValidationSubjectAlternativeNames.java | 24 +- ...alidationSubjectAlternativeNamesMatch.java | 24 +- ...efaultsClientPolicyTlsValidationTrust.java | 37 +- ...ultsClientPolicyTlsValidationTrustAcm.java | 24 +- ...ltsClientPolicyTlsValidationTrustFile.java | 24 +- ...ultsClientPolicyTlsValidationTrustSds.java | 24 +- .../outputs/VirtualGatewaySpecListener.java | 43 +- ...tualGatewaySpecListenerConnectionPool.java | 37 +- ...GatewaySpecListenerConnectionPoolGrpc.java | 24 +- ...GatewaySpecListenerConnectionPoolHttp.java | 31 +- ...atewaySpecListenerConnectionPoolHttp2.java | 24 +- ...VirtualGatewaySpecListenerHealthCheck.java | 61 +- ...VirtualGatewaySpecListenerPortMapping.java | 31 +- .../VirtualGatewaySpecListenerTls.java | 37 +- ...tualGatewaySpecListenerTlsCertificate.java | 37 +- ...lGatewaySpecListenerTlsCertificateAcm.java | 24 +- ...GatewaySpecListenerTlsCertificateFile.java | 31 +- ...lGatewaySpecListenerTlsCertificateSds.java | 24 +- ...rtualGatewaySpecListenerTlsValidation.java | 31 +- ...rTlsValidationSubjectAlternativeNames.java | 24 +- ...alidationSubjectAlternativeNamesMatch.java | 24 +- ...GatewaySpecListenerTlsValidationTrust.java | 31 +- ...waySpecListenerTlsValidationTrustFile.java | 24 +- ...ewaySpecListenerTlsValidationTrustSds.java | 24 +- .../outputs/VirtualGatewaySpecLogging.java | 24 +- .../VirtualGatewaySpecLoggingAccessLog.java | 24 +- ...irtualGatewaySpecLoggingAccessLogFile.java | 24 +- .../aws/appmesh/outputs/VirtualNodeSpec.java | 49 +- .../outputs/VirtualNodeSpecBackend.java | 24 +- .../VirtualNodeSpecBackendDefaults.java | 24 +- ...alNodeSpecBackendDefaultsClientPolicy.java | 24 +- ...odeSpecBackendDefaultsClientPolicyTls.java | 43 +- ...endDefaultsClientPolicyTlsCertificate.java | 31 +- ...efaultsClientPolicyTlsCertificateFile.java | 31 +- ...DefaultsClientPolicyTlsCertificateSds.java | 24 +- ...kendDefaultsClientPolicyTlsValidation.java | 31 +- ...yTlsValidationSubjectAlternativeNames.java | 24 +- ...alidationSubjectAlternativeNamesMatch.java | 24 +- ...efaultsClientPolicyTlsValidationTrust.java | 37 +- ...ultsClientPolicyTlsValidationTrustAcm.java | 24 +- ...ltsClientPolicyTlsValidationTrustFile.java | 24 +- ...ultsClientPolicyTlsValidationTrustSds.java | 24 +- .../VirtualNodeSpecBackendVirtualService.java | 31 +- ...SpecBackendVirtualServiceClientPolicy.java | 24 +- ...cBackendVirtualServiceClientPolicyTls.java | 43 +- ...tualServiceClientPolicyTlsCertificate.java | 31 +- ...ServiceClientPolicyTlsCertificateFile.java | 31 +- ...lServiceClientPolicyTlsCertificateSds.java | 24 +- ...rtualServiceClientPolicyTlsValidation.java | 31 +- ...yTlsValidationSubjectAlternativeNames.java | 24 +- ...alidationSubjectAlternativeNamesMatch.java | 24 +- ...ServiceClientPolicyTlsValidationTrust.java | 37 +- ...viceClientPolicyTlsValidationTrustAcm.java | 24 +- ...iceClientPolicyTlsValidationTrustFile.java | 24 +- ...viceClientPolicyTlsValidationTrustSds.java | 24 +- .../outputs/VirtualNodeSpecListener.java | 55 +- ...VirtualNodeSpecListenerConnectionPool.java | 43 +- ...ualNodeSpecListenerConnectionPoolGrpc.java | 24 +- ...ualNodeSpecListenerConnectionPoolHttp.java | 31 +- ...alNodeSpecListenerConnectionPoolHttp2.java | 24 +- ...tualNodeSpecListenerConnectionPoolTcp.java | 24 +- .../VirtualNodeSpecListenerHealthCheck.java | 61 +- ...rtualNodeSpecListenerOutlierDetection.java | 43 +- ...rOutlierDetectionBaseEjectionDuration.java | 31 +- ...eSpecListenerOutlierDetectionInterval.java | 31 +- .../VirtualNodeSpecListenerPortMapping.java | 31 +- .../VirtualNodeSpecListenerTimeout.java | 43 +- .../VirtualNodeSpecListenerTimeoutGrpc.java | 31 +- ...irtualNodeSpecListenerTimeoutGrpcIdle.java | 31 +- ...NodeSpecListenerTimeoutGrpcPerRequest.java | 31 +- .../VirtualNodeSpecListenerTimeoutHttp.java | 31 +- .../VirtualNodeSpecListenerTimeoutHttp2.java | 31 +- ...rtualNodeSpecListenerTimeoutHttp2Idle.java | 31 +- ...odeSpecListenerTimeoutHttp2PerRequest.java | 31 +- ...irtualNodeSpecListenerTimeoutHttpIdle.java | 31 +- ...NodeSpecListenerTimeoutHttpPerRequest.java | 31 +- .../VirtualNodeSpecListenerTimeoutTcp.java | 24 +- ...VirtualNodeSpecListenerTimeoutTcpIdle.java | 31 +- .../outputs/VirtualNodeSpecListenerTls.java | 37 +- ...VirtualNodeSpecListenerTlsCertificate.java | 37 +- ...tualNodeSpecListenerTlsCertificateAcm.java | 24 +- ...ualNodeSpecListenerTlsCertificateFile.java | 31 +- ...tualNodeSpecListenerTlsCertificateSds.java | 24 +- .../VirtualNodeSpecListenerTlsValidation.java | 31 +- ...rTlsValidationSubjectAlternativeNames.java | 24 +- ...alidationSubjectAlternativeNamesMatch.java | 24 +- ...ualNodeSpecListenerTlsValidationTrust.java | 31 +- ...odeSpecListenerTlsValidationTrustFile.java | 24 +- ...NodeSpecListenerTlsValidationTrustSds.java | 24 +- .../outputs/VirtualNodeSpecLogging.java | 24 +- .../VirtualNodeSpecLoggingAccessLog.java | 24 +- .../VirtualNodeSpecLoggingAccessLogFile.java | 24 +- .../VirtualNodeSpecServiceDiscovery.java | 31 +- ...alNodeSpecServiceDiscoveryAwsCloudMap.java | 37 +- .../VirtualNodeSpecServiceDiscoveryDns.java | 24 +- .../appmesh/outputs/VirtualRouterSpec.java | 24 +- .../outputs/VirtualRouterSpecListener.java | 24 +- .../VirtualRouterSpecListenerPortMapping.java | 31 +- .../appmesh/outputs/VirtualServiceSpec.java | 24 +- .../outputs/VirtualServiceSpecProvider.java | 31 +- ...VirtualServiceSpecProviderVirtualNode.java | 24 +- ...rtualServiceSpecProviderVirtualRouter.java | 24 +- ...ssociationCertificateValidationRecord.java | 43 +- ...bilityConfigurationTraceConfiguration.java | 24 +- .../ServiceEncryptionConfiguration.java | 24 +- .../ServiceHealthCheckConfiguration.java | 55 +- .../outputs/ServiceInstanceConfiguration.java | 37 +- .../outputs/ServiceNetworkConfiguration.java | 24 +- ...tworkConfigurationEgressConfiguration.java | 31 +- .../ServiceObservabilityConfiguration.java | 31 +- .../outputs/ServiceSourceConfiguration.java | 43 +- ...figurationAuthenticationConfiguration.java | 31 +- ...viceSourceConfigurationCodeRepository.java | 37 +- ...rationCodeRepositoryCodeConfiguration.java | 31 +- ...eConfigurationCodeConfigurationValues.java | 49 +- ...rationCodeRepositorySourceCodeVersion.java | 31 +- ...iceSourceConfigurationImageRepository.java | 37 +- ...tionImageRepositoryImageConfiguration.java | 37 +- ...ectoryConfigServiceAccountCredentials.java | 31 +- .../outputs/FleetComputeCapacity.java | 43 +- .../outputs/FleetDomainJoinInfo.java | 31 +- .../aws/appstream/outputs/FleetVpcConfig.java | 31 +- .../outputs/ImageBuilderAccessEndpoint.java | 31 +- .../outputs/ImageBuilderDomainJoinInfo.java | 31 +- .../outputs/ImageBuilderVpcConfig.java | 31 +- .../outputs/StackAccessEndpoint.java | 31 +- .../outputs/StackApplicationSettings.java | 31 +- .../outputs/StackStorageConnector.java | 37 +- .../appstream/outputs/StackUserSetting.java | 31 +- .../outputs/DataSourceDynamodbConfig.java | 49 +- ...taSourceDynamodbConfigDeltaSyncConfig.java | 37 +- .../DataSourceElasticsearchConfig.java | 31 +- .../appsync/outputs/DataSourceHttpConfig.java | 31 +- ...taSourceHttpConfigAuthorizationConfig.java | 31 +- ...ConfigAuthorizationConfigAwsIamConfig.java | 31 +- .../outputs/DataSourceLambdaConfig.java | 24 +- .../DataSourceRelationalDatabaseConfig.java | 31 +- ...ionalDatabaseConfigHttpEndpointConfig.java | 49 +- .../appsync/outputs/FunctionSyncConfig.java | 37 +- ...SyncConfigLambdaConflictHandlerConfig.java | 24 +- ...QLApiAdditionalAuthenticationProvider.java | 43 +- ...icationProviderLambdaAuthorizerConfig.java | 37 +- ...enticationProviderOpenidConnectConfig.java | 43 +- ...lAuthenticationProviderUserPoolConfig.java | 37 +- .../GraphQLApiLambdaAuthorizerConfig.java | 37 +- .../appsync/outputs/GraphQLApiLogConfig.java | 37 +- .../GraphQLApiOpenidConnectConfig.java | 43 +- .../outputs/GraphQLApiUserPoolConfig.java | 43 +- .../outputs/ResolverCachingConfig.java | 31 +- .../outputs/ResolverPipelineConfig.java | 24 +- .../appsync/outputs/ResolverSyncConfig.java | 37 +- ...SyncConfigLambdaConflictHandlerConfig.java | 24 +- .../outputs/DatabaseAclConfiguration.java | 24 +- .../DatabaseEncryptionConfiguration.java | 31 +- .../outputs/WorkgroupConfiguration.java | 55 +- .../WorkgroupConfigurationEngineVersion.java | 31 +- ...groupConfigurationResultConfiguration.java | 43 +- ...onResultConfigurationAclConfiguration.java | 24 +- ...tConfigurationEncryptionConfiguration.java | 31 +- .../autoscaling/outputs/GetAmiIdsFilter.java | 31 +- .../autoscaling/outputs/GetAmiIdsResult.java | 43 +- .../outputs/GetGroupLaunchTemplate.java | 37 +- .../autoscaling/outputs/GetGroupResult.java | 145 +- .../outputs/GroupInitialLifecycleHook.java | 61 +- .../outputs/GroupInstanceRefresh.java | 37 +- .../GroupInstanceRefreshPreferences.java | 49 +- .../outputs/GroupLaunchTemplate.java | 37 +- .../outputs/GroupMixedInstancesPolicy.java | 31 +- ...dInstancesPolicyInstancesDistribution.java | 55 +- ...oupMixedInstancesPolicyLaunchTemplate.java | 31 +- ...chTemplateLaunchTemplateSpecification.java | 37 +- ...InstancesPolicyLaunchTemplateOverride.java | 43 +- ...hTemplateOverrideInstanceRequirements.java | 145 +- ...eInstanceRequirementsAcceleratorCount.java | 31 +- ...RequirementsAcceleratorTotalMemoryMib.java | 31 +- ...eRequirementsBaselineEbsBandwidthMbps.java | 31 +- ...eInstanceRequirementsMemoryGibPerVcpu.java | 31 +- ...OverrideInstanceRequirementsMemoryMib.java | 31 +- ...anceRequirementsNetworkInterfaceCount.java | 31 +- ...stanceRequirementsTotalLocalStorageGb.java | 31 +- ...OverrideInstanceRequirementsVcpuCount.java | 31 +- ...teOverrideLaunchTemplateSpecification.java | 37 +- .../aws/autoscaling/outputs/GroupTag.java | 37 +- .../autoscaling/outputs/GroupWarmPool.java | 43 +- .../GroupWarmPoolInstanceReusePolicy.java | 24 +- .../PolicyPredictiveScalingConfiguration.java | 49 +- ...alingConfigurationMetricSpecification.java | 61 +- ...CustomizedCapacityMetricSpecification.java | 24 +- ...ityMetricSpecificationMetricDataQuery.java | 49 +- ...pecificationMetricDataQueryMetricStat.java | 37 +- ...cationMetricDataQueryMetricStatMetric.java | 37 +- ...ricDataQueryMetricStatMetricDimension.java | 31 +- ...tionCustomizedLoadMetricSpecification.java | 24 +- ...oadMetricSpecificationMetricDataQuery.java | 49 +- ...pecificationMetricDataQueryMetricStat.java | 37 +- ...cationMetricDataQueryMetricStatMetric.java | 37 +- ...ricDataQueryMetricStatMetricDimension.java | 31 +- ...nCustomizedScalingMetricSpecification.java | 24 +- ...ingMetricSpecificationMetricDataQuery.java | 49 +- ...pecificationMetricDataQueryMetricStat.java | 37 +- ...cationMetricDataQueryMetricStatMetric.java | 37 +- ...ricDataQueryMetricStatMetricDimension.java | 31 +- ...tionPredefinedLoadMetricSpecification.java | 31 +- ...tionPredefinedMetricPairSpecification.java | 31 +- ...nPredefinedScalingMetricSpecification.java | 31 +- .../outputs/PolicyStepAdjustment.java | 37 +- .../PolicyTargetTrackingConfiguration.java | 43 +- ...gurationCustomizedMetricSpecification.java | 49 +- ...zedMetricSpecificationMetricDimension.java | 31 +- ...gurationPredefinedMetricSpecification.java | 31 +- .../aws/autoscaling/outputs/TagTag.java | 37 +- .../outputs/ScalingPlanApplicationSource.java | 31 +- ...ScalingPlanApplicationSourceTagFilter.java | 31 +- .../ScalingPlanScalingInstruction.java | 103 +- ...tionCustomizedLoadMetricSpecification.java | 49 +- ...tionPredefinedLoadMetricSpecification.java | 31 +- ...nstructionTargetTrackingConfiguration.java | 61 +- ...nCustomizedScalingMetricSpecification.java | 49 +- ...nPredefinedScalingMetricSpecification.java | 31 +- .../aws/backup/outputs/FrameworkControl.java | 37 +- .../FrameworkControlInputParameter.java | 31 +- .../backup/outputs/FrameworkControlScope.java | 37 +- .../backup/outputs/GetFrameworkControl.java | 37 +- .../GetFrameworkControlInputParameter.java | 31 +- .../outputs/GetFrameworkControlScope.java | 37 +- .../backup/outputs/GetFrameworkResult.java | 73 +- .../aws/backup/outputs/GetPlanResult.java | 55 +- .../GetReportPlanReportDeliveryChannel.java | 37 +- .../outputs/GetReportPlanReportSetting.java | 37 +- .../backup/outputs/GetReportPlanResult.java | 73 +- .../backup/outputs/GetSelectionResult.java | 55 +- .../aws/backup/outputs/GetVaultResult.java | 55 +- .../outputs/PlanAdvancedBackupSetting.java | 31 +- .../pulumi/aws/backup/outputs/PlanRule.java | 73 +- .../backup/outputs/PlanRuleCopyAction.java | 31 +- .../outputs/PlanRuleCopyActionLifecycle.java | 31 +- .../aws/backup/outputs/PlanRuleLifecycle.java | 31 +- .../ReportPlanReportDeliveryChannel.java | 37 +- .../outputs/ReportPlanReportSetting.java | 37 +- .../backup/outputs/SelectionCondition.java | 43 +- .../SelectionConditionStringEqual.java | 31 +- .../outputs/SelectionConditionStringLike.java | 31 +- .../SelectionConditionStringNotEqual.java | 31 +- .../SelectionConditionStringNotLike.java | 31 +- .../backup/outputs/SelectionSelectionTag.java | 37 +- .../ComputeEnvironmentComputeResources.java | 115 +- ...nmentComputeResourcesEc2Configuration.java | 31 +- ...ronmentComputeResourcesLaunchTemplate.java | 37 +- .../outputs/GetComputeEnvironmentResult.java | 79 +- .../GetJobQueueComputeEnvironmentOrder.java | 31 +- .../aws/batch/outputs/GetJobQueueResult.java | 79 +- .../GetSchedulingPolicyFairSharePolicy.java | 37 +- ...olicyFairSharePolicyShareDistribution.java | 31 +- .../outputs/GetSchedulingPolicyResult.java | 49 +- .../outputs/JobDefinitionRetryStrategy.java | 31 +- ...DefinitionRetryStrategyEvaluateOnExit.java | 43 +- .../batch/outputs/JobDefinitionTimeout.java | 24 +- .../SchedulingPolicyFairSharePolicy.java | 37 +- ...olicyFairSharePolicyShareDistribution.java | 31 +- .../outputs/BudgetActionActionThreshold.java | 31 +- .../outputs/BudgetActionDefinition.java | 37 +- ...etActionDefinitionIamActionDefinition.java | 43 +- ...etActionDefinitionScpActionDefinition.java | 31 +- ...etActionDefinitionSsmActionDefinition.java | 37 +- .../outputs/BudgetActionSubscriber.java | 31 +- .../aws/budgets/outputs/BudgetCostFilter.java | 31 +- .../aws/budgets/outputs/BudgetCostTypes.java | 85 +- .../budgets/outputs/BudgetNotification.java | 55 +- ...ionAggregatorAccountAggregationSource.java | 37 +- ...gregatorOrganizationAggregationSource.java | 37 +- .../ConformancePackInputParameter.java | 31 +- ...veryChannelSnapshotDeliveryProperties.java | 24 +- ...nizationConformancePackInputParameter.java | 31 +- .../cfg/outputs/RecorderRecordingGroup.java | 37 +- ...diationConfigurationExecutionControls.java | 24 +- ...igurationExecutionControlsSsmControls.java | 31 +- .../RemediationConfigurationParameter.java | 43 +- .../com/pulumi/aws/cfg/outputs/RuleScope.java | 43 +- .../pulumi/aws/cfg/outputs/RuleSource.java | 43 +- .../RuleSourceCustomPolicyDetails.java | 37 +- .../cfg/outputs/RuleSourceSourceDetail.java | 37 +- .../outputs/VoiceConnectorGroupConnector.java | 31 +- .../VoiceConnectorOrganizationRoute.java | 49 +- ...ectorTerminationCredentialsCredential.java | 31 +- .../outputs/GetResourceResult.java | 55 +- .../CloudFormationTypeLoggingConfig.java | 31 +- .../GetCloudFormationTypeLoggingConfig.java | 31 +- .../outputs/GetCloudFormationTypeResult.java | 121 +- .../outputs/GetExportResult.java | 43 +- .../outputs/GetStackResult.java | 91 +- .../outputs/StackSetAutoDeployment.java | 31 +- .../StackSetInstanceDeploymentTargets.java | 24 +- .../StackSetInstanceOperationPreferences.java | 55 +- .../outputs/StackSetOperationPreferences.java | 55 +- ...ametersInCacheKeyAndForwardedToOrigin.java | 49 +- ...eKeyAndForwardedToOriginCookiesConfig.java | 31 +- ...ForwardedToOriginCookiesConfigCookies.java | 24 +- ...eKeyAndForwardedToOriginHeadersConfig.java | 31 +- ...ForwardedToOriginHeadersConfigHeaders.java | 24 +- ...ndForwardedToOriginQueryStringsConfig.java | 31 +- ...oOriginQueryStringsConfigQueryStrings.java | 24 +- .../DistributionCustomErrorResponse.java | 43 +- .../DistributionDefaultCacheBehavior.java | 133 +- ...onDefaultCacheBehaviorForwardedValues.java | 43 +- ...ltCacheBehaviorForwardedValuesCookies.java | 31 +- ...faultCacheBehaviorFunctionAssociation.java | 31 +- ...acheBehaviorLambdaFunctionAssociation.java | 37 +- .../outputs/DistributionLoggingConfig.java | 37 +- .../DistributionOrderedCacheBehavior.java | 139 +- ...onOrderedCacheBehaviorForwardedValues.java | 43 +- ...edCacheBehaviorForwardedValuesCookies.java | 31 +- ...deredCacheBehaviorFunctionAssociation.java | 31 +- ...acheBehaviorLambdaFunctionAssociation.java | 37 +- .../outputs/DistributionOrigin.java | 73 +- .../DistributionOriginCustomHeader.java | 31 +- .../DistributionOriginCustomOriginConfig.java | 55 +- .../outputs/DistributionOriginGroup.java | 37 +- ...stributionOriginGroupFailoverCriteria.java | 24 +- .../DistributionOriginGroupMember.java | 24 +- .../DistributionOriginOriginShield.java | 31 +- .../DistributionOriginS3OriginConfig.java | 24 +- .../outputs/DistributionRestrictions.java | 24 +- ...istributionRestrictionsGeoRestriction.java | 31 +- .../outputs/DistributionTrustedKeyGroup.java | 31 +- .../DistributionTrustedKeyGroupItem.java | 31 +- .../outputs/DistributionTrustedSigner.java | 31 +- .../DistributionTrustedSignerItem.java | 31 +- .../DistributionViewerCertificate.java | 49 +- ...ryptionConfigContentTypeProfileConfig.java | 31 +- ...tTypeProfileConfigContentTypeProfiles.java | 24 +- ...eProfileConfigContentTypeProfilesItem.java | 37 +- ...EncryptionConfigQueryArgProfileConfig.java | 31 +- ...QueryArgProfileConfigQueryArgProfiles.java | 24 +- ...yArgProfileConfigQueryArgProfilesItem.java | 31 +- ...elEncryptionProfileEncryptionEntities.java | 24 +- ...cryptionProfileEncryptionEntitiesItem.java | 37 +- ...leEncryptionEntitiesItemFieldPatterns.java | 24 +- ...ametersInCacheKeyAndForwardedToOrigin.java | 49 +- ...eKeyAndForwardedToOriginCookiesConfig.java | 31 +- ...dForwardedToOriginCookiesConfigCookie.java | 24 +- ...eKeyAndForwardedToOriginHeadersConfig.java | 31 +- ...dForwardedToOriginHeadersConfigHeader.java | 24 +- ...ndForwardedToOriginQueryStringsConfig.java | 31 +- ...ToOriginQueryStringsConfigQueryString.java | 24 +- .../outputs/GetCachePolicyResult.java | 67 +- .../outputs/GetDistributionResult.java | 85 +- .../cloudfront/outputs/GetFunctionResult.java | 79 +- .../GetLogDeliveryCanonicalUserIdResult.java | 31 +- .../GetOriginAccessIdentitiesResult.java | 49 +- .../GetOriginAccessIdentityResult.java | 61 +- .../GetOriginRequestPolicyCookiesConfig.java | 31 +- ...riginRequestPolicyCookiesConfigCookie.java | 24 +- .../GetOriginRequestPolicyHeadersConfig.java | 31 +- ...riginRequestPolicyHeadersConfigHeader.java | 24 +- ...OriginRequestPolicyQueryStringsConfig.java | 31 +- ...stPolicyQueryStringsConfigQueryString.java | 24 +- .../outputs/GetOriginRequestPolicyResult.java | 61 +- .../outputs/GetRealtimeLogConfigEndpoint.java | 31 +- ...eLogConfigEndpointKinesisStreamConfig.java | 31 +- .../outputs/GetRealtimeLogConfigResult.java | 55 +- .../GetResponseHeadersPolicyCorsConfig.java | 61 +- ...icyCorsConfigAccessControlAllowHeader.java | 24 +- ...icyCorsConfigAccessControlAllowMethod.java | 24 +- ...icyCorsConfigAccessControlAllowOrigin.java | 24 +- ...cyCorsConfigAccessControlExposeHeader.java | 24 +- ...ponseHeadersPolicyCustomHeadersConfig.java | 24 +- ...eHeadersPolicyCustomHeadersConfigItem.java | 37 +- .../GetResponseHeadersPolicyResult.java | 67 +- ...nseHeadersPolicySecurityHeadersConfig.java | 55 +- ...ityHeadersConfigContentSecurityPolicy.java | 31 +- ...ecurityHeadersConfigContentTypeOption.java | 24 +- ...olicySecurityHeadersConfigFrameOption.java | 31 +- ...cySecurityHeadersConfigReferrerPolicy.java | 31 +- ...yHeadersConfigStrictTransportSecurity.java | 43 +- ...icySecurityHeadersConfigXssProtection.java | 43 +- ...eadersPolicyServerTimingHeadersConfig.java | 31 +- ...ingSubscriptionMonitoringSubscription.java | 24 +- ...tionRealtimeMetricsSubscriptionConfig.java | 24 +- .../OriginRequestPolicyCookiesConfig.java | 31 +- ...iginRequestPolicyCookiesConfigCookies.java | 24 +- .../OriginRequestPolicyHeadersConfig.java | 31 +- ...iginRequestPolicyHeadersConfigHeaders.java | 24 +- ...OriginRequestPolicyQueryStringsConfig.java | 31 +- ...tPolicyQueryStringsConfigQueryStrings.java | 24 +- .../outputs/RealtimeLogConfigEndpoint.java | 31 +- ...eLogConfigEndpointKinesisStreamConfig.java | 31 +- .../ResponseHeadersPolicyCorsConfig.java | 61 +- ...cyCorsConfigAccessControlAllowHeaders.java | 24 +- ...cyCorsConfigAccessControlAllowMethods.java | 24 +- ...cyCorsConfigAccessControlAllowOrigins.java | 24 +- ...yCorsConfigAccessControlExposeHeaders.java | 24 +- ...ponseHeadersPolicyCustomHeadersConfig.java | 24 +- ...eHeadersPolicyCustomHeadersConfigItem.java | 37 +- ...nseHeadersPolicySecurityHeadersConfig.java | 55 +- ...ityHeadersConfigContentSecurityPolicy.java | 31 +- ...curityHeadersConfigContentTypeOptions.java | 24 +- ...licySecurityHeadersConfigFrameOptions.java | 31 +- ...cySecurityHeadersConfigReferrerPolicy.java | 31 +- ...yHeadersConfigStrictTransportSecurity.java | 43 +- ...icySecurityHeadersConfigXssProtection.java | 43 +- ...eadersPolicyServerTimingHeadersConfig.java | 31 +- .../outputs/ClusterClusterCertificate.java | 49 +- .../outputs/GetClusterClusterCertificate.java | 49 +- .../cloudhsmv2/outputs/GetClusterResult.java | 61 +- .../outputs/DomainEndpointOptions.java | 31 +- .../cloudsearch/outputs/DomainIndexField.java | 79 +- .../outputs/DomainScalingParameters.java | 37 +- .../EventDataStoreAdvancedEventSelector.java | 31 +- ...oreAdvancedEventSelectorFieldSelector.java | 61 +- .../cloudtrail/outputs/GetFunctionResult.java | 79 +- .../outputs/GetServiceAccountResult.java | 37 +- .../outputs/TrailAdvancedEventSelector.java | 31 +- ...ailAdvancedEventSelectorFieldSelector.java | 61 +- .../outputs/TrailEventSelector.java | 43 +- .../TrailEventSelectorDataResource.java | 31 +- .../outputs/TrailInsightSelector.java | 24 +- .../EventConnectionAuthParameters.java | 43 +- .../EventConnectionAuthParametersApiKey.java | 31 +- .../EventConnectionAuthParametersBasic.java | 31 +- ...uthParametersInvocationHttpParameters.java | 37 +- ...arametersInvocationHttpParametersBody.java | 37 +- ...ametersInvocationHttpParametersHeader.java | 37 +- ...rsInvocationHttpParametersQueryString.java | 37 +- .../EventConnectionAuthParametersOauth.java | 43 +- ...onAuthParametersOauthClientParameters.java | 31 +- ...uthParametersOauthOauthHttpParameters.java | 37 +- ...arametersOauthOauthHttpParametersBody.java | 37 +- ...ametersOauthOauthHttpParametersHeader.java | 37 +- ...rsOauthOauthHttpParametersQueryString.java | 37 +- .../outputs/EventPermissionCondition.java | 37 +- .../outputs/EventTargetBatchTarget.java | 43 +- .../outputs/EventTargetDeadLetterConfig.java | 24 +- .../outputs/EventTargetEcsTarget.java | 85 +- ...ntTargetEcsTargetNetworkConfiguration.java | 37 +- ...entTargetEcsTargetPlacementConstraint.java | 31 +- .../outputs/EventTargetHttpTarget.java | 37 +- .../outputs/EventTargetInputTransformer.java | 31 +- .../outputs/EventTargetKinesisTarget.java | 24 +- .../outputs/EventTargetRedshiftTarget.java | 55 +- .../outputs/EventTargetRetryPolicy.java | 31 +- .../outputs/EventTargetRunCommandTarget.java | 31 +- .../outputs/EventTargetSqsTarget.java | 24 +- .../cloudwatch/outputs/GetEventBusResult.java | 37 +- .../outputs/GetEventConnectionResult.java | 49 +- .../outputs/GetEventSourceResult.java | 55 +- .../cloudwatch/outputs/GetLogGroupResult.java | 61 +- .../outputs/GetLogGroupsResult.java | 43 +- .../LogMetricFilterMetricTransformation.java | 55 +- .../outputs/MetricAlarmMetricQuery.java | 55 +- .../outputs/MetricAlarmMetricQueryMetric.java | 55 +- .../outputs/MetricStreamExcludeFilter.java | 24 +- .../outputs/MetricStreamIncludeFilter.java | 24 +- .../MetricStreamStatisticsConfiguration.java | 31 +- ...mStatisticsConfigurationIncludeMetric.java | 31 +- .../outputs/GetAuthorizationTokenResult.java | 55 +- .../outputs/GetRepositoryEndpointResult.java | 55 +- .../RepositoryExternalConnections.java | 37 +- .../outputs/RepositoryUpstream.java | 24 +- .../codebuild/outputs/ProjectArtifacts.java | 79 +- .../outputs/ProjectBuildBatchConfig.java | 43 +- .../ProjectBuildBatchConfigRestrictions.java | 31 +- .../aws/codebuild/outputs/ProjectCache.java | 37 +- .../codebuild/outputs/ProjectEnvironment.java | 67 +- ...ProjectEnvironmentEnvironmentVariable.java | 37 +- .../ProjectEnvironmentRegistryCredential.java | 31 +- .../outputs/ProjectFileSystemLocation.java | 49 +- .../codebuild/outputs/ProjectLogsConfig.java | 31 +- .../ProjectLogsConfigCloudwatchLogs.java | 37 +- .../outputs/ProjectLogsConfigS3Logs.java | 43 +- .../outputs/ProjectSecondaryArtifact.java | 79 +- .../outputs/ProjectSecondarySource.java | 79 +- .../outputs/ProjectSecondarySourceAuth.java | 31 +- ...ojectSecondarySourceBuildStatusConfig.java | 31 +- ...ectSecondarySourceGitSubmodulesConfig.java | 24 +- .../ProjectSecondarySourceVersion.java | 31 +- .../aws/codebuild/outputs/ProjectSource.java | 73 +- .../codebuild/outputs/ProjectSourceAuth.java | 31 +- .../ProjectSourceBuildStatusConfig.java | 31 +- .../ProjectSourceGitSubmodulesConfig.java | 24 +- .../codebuild/outputs/ProjectVpcConfig.java | 37 +- .../outputs/ReportGroupExportConfig.java | 31 +- .../ReportGroupExportConfigS3Destination.java | 49 +- .../codebuild/outputs/WebhookFilterGroup.java | 24 +- .../outputs/WebhookFilterGroupFilter.java | 37 +- .../GetApprovalRuleTemplateResult.java | 73 +- .../outputs/GetRepositoryResult.java | 55 +- .../codecommit/outputs/TriggerTrigger.java | 49 +- .../DeploymentConfigMinimumHealthyHosts.java | 31 +- .../DeploymentConfigTrafficRoutingConfig.java | 37 +- ...igTrafficRoutingConfigTimeBasedCanary.java | 31 +- ...igTrafficRoutingConfigTimeBasedLinear.java | 31 +- .../DeploymentGroupAlarmConfiguration.java | 37 +- ...loymentGroupAutoRollbackConfiguration.java | 31 +- ...loymentGroupBlueGreenDeploymentConfig.java | 37 +- ...DeploymentConfigDeploymentReadyOption.java | 31 +- ...entConfigGreenFleetProvisioningOption.java | 24 +- ...inateBlueInstancesOnDeploymentSuccess.java | 31 +- .../DeploymentGroupDeploymentStyle.java | 31 +- .../outputs/DeploymentGroupEc2TagFilter.java | 37 +- .../outputs/DeploymentGroupEc2TagSet.java | 24 +- .../DeploymentGroupEc2TagSetEc2TagFilter.java | 37 +- .../outputs/DeploymentGroupEcsService.java | 31 +- .../DeploymentGroupLoadBalancerInfo.java | 37 +- ...eploymentGroupLoadBalancerInfoElbInfo.java | 24 +- ...tGroupLoadBalancerInfoTargetGroupInfo.java | 24 +- ...upLoadBalancerInfoTargetGroupPairInfo.java | 37 +- ...foTargetGroupPairInfoProdTrafficRoute.java | 24 +- ...cerInfoTargetGroupPairInfoTargetGroup.java | 24 +- ...foTargetGroupPairInfoTestTrafficRoute.java | 24 +- ...ymentGroupOnPremisesInstanceTagFilter.java | 37 +- .../DeploymentGroupTriggerConfiguration.java | 37 +- .../outputs/PipelineArtifactStore.java | 43 +- .../PipelineArtifactStoreEncryptionKey.java | 31 +- .../codepipeline/outputs/PipelineStage.java | 31 +- .../outputs/PipelineStageAction.java | 91 +- .../WebhookAuthenticationConfiguration.java | 31 +- .../codepipeline/outputs/WebhookFilter.java | 31 +- .../outputs/GetConnectionResult.java | 61 +- .../outputs/HostVpcConfiguration.java | 43 +- .../outputs/NotificationRuleTarget.java | 37 +- ...tUserPoolClientAnalyticsConfiguration.java | 49 +- .../outputs/GetUserPoolClientResult.java | 163 +- .../GetUserPoolClientTokenValidityUnit.java | 37 +- .../outputs/GetUserPoolClientsResult.java | 43 +- .../GetUserPoolSigningCertificateResult.java | 37 +- .../cognito/outputs/GetUserPoolsResult.java | 43 +- .../IdentityPoolCognitoIdentityProvider.java | 37 +- ...IdentityPoolRoleAttachmentRoleMapping.java | 43 +- ...lRoleAttachmentRoleMappingMappingRule.java | 43 +- .../cognito/outputs/ResourceServerScope.java | 31 +- ...ationAccountTakeoverRiskConfiguration.java | 31 +- ...countTakeoverRiskConfigurationActions.java | 37 +- ...verRiskConfigurationActionsHighAction.java | 31 +- ...overRiskConfigurationActionsLowAction.java | 31 +- ...rRiskConfigurationActionsMediumAction.java | 31 +- ...rRiskConfigurationNotifyConfiguration.java | 55 +- ...gurationNotifyConfigurationBlockEmail.java | 37 +- ...figurationNotifyConfigurationMfaEmail.java | 37 +- ...ationNotifyConfigurationNoActionEmail.java | 37 +- ...mpromisedCredentialsRiskConfiguration.java | 31 +- ...edCredentialsRiskConfigurationActions.java | 24 +- ...nfigurationRiskExceptionConfiguration.java | 31 +- .../UserPoolAccountRecoverySetting.java | 24 +- ...countRecoverySettingRecoveryMechanism.java | 31 +- .../UserPoolAdminCreateUserConfig.java | 31 +- ...CreateUserConfigInviteMessageTemplate.java | 37 +- .../UserPoolClientAnalyticsConfiguration.java | 49 +- .../UserPoolClientTokenValidityUnits.java | 37 +- .../outputs/UserPoolDeviceConfiguration.java | 31 +- .../outputs/UserPoolEmailConfiguration.java | 49 +- .../cognito/outputs/UserPoolLambdaConfig.java | 97 +- ...UserPoolLambdaConfigCustomEmailSender.java | 31 +- .../UserPoolLambdaConfigCustomSmsSender.java | 31 +- .../outputs/UserPoolPasswordPolicy.java | 55 +- .../aws/cognito/outputs/UserPoolSchema.java | 61 +- ...rPoolSchemaNumberAttributeConstraints.java | 31 +- ...rPoolSchemaStringAttributeConstraints.java | 31 +- .../outputs/UserPoolSmsConfiguration.java | 31 +- ...UserPoolSoftwareTokenMfaConfiguration.java | 24 +- .../outputs/UserPoolUserPoolAddOns.java | 24 +- .../UserPoolUsernameConfiguration.java | 24 +- .../UserPoolVerificationMessageTemplate.java | 55 +- .../EntityRecognizerInputDataConfig.java | 55 +- ...yRecognizerInputDataConfigAnnotations.java | 31 +- ...nizerInputDataConfigAugmentedManifest.java | 55 +- ...ityRecognizerInputDataConfigDocuments.java | 37 +- ...tyRecognizerInputDataConfigEntityList.java | 24 +- ...tyRecognizerInputDataConfigEntityType.java | 24 +- .../outputs/EntityRecognizerVpcConfig.java | 31 +- .../pulumi/aws/config/inputs/AssumeRole.java | 73 +- .../inputs/AssumeRoleWithWebIdentity.java | 61 +- .../pulumi/aws/config/inputs/DefaultTags.java | 24 +- .../pulumi/aws/config/inputs/Endpoints.java | 1493 ++++++++--------- .../pulumi/aws/config/inputs/IgnoreTags.java | 31 +- .../connect/outputs/BotAssociationLexBot.java | 31 +- .../outputs/GetBotAssociationLexBot.java | 31 +- .../outputs/GetBotAssociationResult.java | 37 +- .../outputs/GetContactFlowModuleResult.java | 79 +- .../connect/outputs/GetContactFlowResult.java | 73 +- .../outputs/GetHoursOfOperationConfig.java | 37 +- .../GetHoursOfOperationConfigEndTime.java | 31 +- .../GetHoursOfOperationConfigStartTime.java | 31 +- .../outputs/GetHoursOfOperationResult.java | 79 +- .../connect/outputs/GetInstanceResult.java | 103 +- .../GetLambdaFunctionAssociationResult.java | 37 +- .../aws/connect/outputs/GetPromptResult.java | 49 +- .../outputs/GetQueueOutboundCallerConfig.java | 37 +- .../aws/connect/outputs/GetQueueResult.java | 85 +- .../GetQuickConnectQuickConnectConfig.java | 43 +- ...kConnectQuickConnectConfigPhoneConfig.java | 24 +- ...kConnectQuickConnectConfigQueueConfig.java | 31 +- ...ckConnectQuickConnectConfigUserConfig.java | 31 +- .../outputs/GetQuickConnectResult.java | 67 +- .../GetRoutingProfileMediaConcurrency.java | 31 +- .../outputs/GetRoutingProfileQueueConfig.java | 55 +- .../outputs/GetRoutingProfileResult.java | 79 +- .../outputs/GetSecurityProfileResult.java | 73 +- .../GetUserHierarchyGroupHierarchyPath.java | 49 +- ...rHierarchyGroupHierarchyPathLevelFife.java | 37 +- ...rHierarchyGroupHierarchyPathLevelFour.java | 37 +- ...erHierarchyGroupHierarchyPathLevelOne.java | 37 +- ...HierarchyGroupHierarchyPathLevelThree.java | 37 +- ...erHierarchyGroupHierarchyPathLevelTwo.java | 37 +- .../outputs/GetUserHierarchyGroupResult.java | 67 +- ...rHierarchyStructureHierarchyStructure.java | 49 +- ...yStructureHierarchyStructureLevelFife.java | 37 +- ...yStructureHierarchyStructureLevelFour.java | 37 +- ...hyStructureHierarchyStructureLevelOne.java | 37 +- ...StructureHierarchyStructureLevelThree.java | 37 +- ...hyStructureHierarchyStructureLevelTwo.java | 37 +- .../GetUserHierarchyStructureResult.java | 37 +- .../outputs/HoursOfOperationConfig.java | 37 +- .../HoursOfOperationConfigEndTime.java | 31 +- .../HoursOfOperationConfigStartTime.java | 31 +- .../InstanceStorageConfigStorageConfig.java | 49 +- ...figStorageConfigKinesisFirehoseConfig.java | 24 +- ...onfigStorageConfigKinesisStreamConfig.java | 24 +- ...StorageConfigKinesisVideoStreamConfig.java | 37 +- ...esisVideoStreamConfigEncryptionConfig.java | 31 +- ...nceStorageConfigStorageConfigS3Config.java | 37 +- ...StorageConfigS3ConfigEncryptionConfig.java | 31 +- .../outputs/QueueOutboundCallerConfig.java | 37 +- .../QuickConnectQuickConnectConfig.java | 43 +- ...kConnectQuickConnectConfigPhoneConfig.java | 24 +- ...kConnectQuickConnectConfigQueueConfig.java | 31 +- ...ckConnectQuickConnectConfigUserConfig.java | 31 +- .../RoutingProfileMediaConcurrency.java | 31 +- .../outputs/RoutingProfileQueueConfig.java | 55 +- .../RoutingProfileQueueConfigsAssociated.java | 55 +- .../UserHierarchyGroupHierarchyPath.java | 49 +- ...rHierarchyGroupHierarchyPathLevelFife.java | 37 +- ...rHierarchyGroupHierarchyPathLevelFour.java | 37 +- ...erHierarchyGroupHierarchyPathLevelOne.java | 37 +- ...HierarchyGroupHierarchyPathLevelThree.java | 37 +- ...erHierarchyGroupHierarchyPathLevelTwo.java | 37 +- ...rHierarchyStructureHierarchyStructure.java | 49 +- ...yStructureHierarchyStructureLevelFive.java | 37 +- ...yStructureHierarchyStructureLevelFour.java | 37 +- ...hyStructureHierarchyStructureLevelOne.java | 37 +- ...StructureHierarchyStructureLevelThree.java | 37 +- ...hyStructureHierarchyStructureLevelTwo.java | 37 +- .../aws/connect/outputs/UserIdentityInfo.java | 37 +- .../aws/connect/outputs/UserPhoneConfig.java | 43 +- .../AnomalySubscriptionSubscriber.java | 31 +- .../outputs/CostCategoryRule.java | 43 +- .../CostCategoryRuleInheritedValue.java | 31 +- .../outputs/CostCategoryRuleRule.java | 55 +- .../outputs/CostCategoryRuleRuleAnd.java | 37 +- .../CostCategoryRuleRuleAndCostCategory.java | 37 +- .../CostCategoryRuleRuleAndDimension.java | 37 +- .../outputs/CostCategoryRuleRuleAndTags.java | 37 +- .../CostCategoryRuleRuleCostCategory.java | 37 +- .../CostCategoryRuleRuleDimension.java | 37 +- .../outputs/CostCategoryRuleRuleNot.java | 37 +- .../CostCategoryRuleRuleNotCostCategory.java | 37 +- .../CostCategoryRuleRuleNotDimension.java | 37 +- .../outputs/CostCategoryRuleRuleNotTags.java | 37 +- .../outputs/CostCategoryRuleRuleOr.java | 37 +- .../CostCategoryRuleRuleOrCostCategory.java | 37 +- .../CostCategoryRuleRuleOrDimension.java | 37 +- .../outputs/CostCategoryRuleRuleOrTags.java | 37 +- .../outputs/CostCategoryRuleRuleTags.java | 37 +- .../outputs/CostCategorySplitChargeRule.java | 43 +- .../CostCategorySplitChargeRuleParameter.java | 31 +- .../outputs/GetCostCategoryResult.java | 73 +- .../outputs/GetCostCategoryRule.java | 43 +- .../GetCostCategoryRuleInheritedValue.java | 31 +- .../outputs/GetCostCategoryRuleRule.java | 55 +- .../outputs/GetCostCategoryRuleRuleAnd.java | 37 +- ...etCostCategoryRuleRuleAndCostCategory.java | 37 +- .../GetCostCategoryRuleRuleAndDimension.java | 37 +- .../GetCostCategoryRuleRuleAndTag.java | 37 +- .../GetCostCategoryRuleRuleCostCategory.java | 37 +- .../GetCostCategoryRuleRuleDimension.java | 37 +- .../outputs/GetCostCategoryRuleRuleNot.java | 37 +- ...etCostCategoryRuleRuleNotCostCategory.java | 37 +- .../GetCostCategoryRuleRuleNotDimension.java | 37 +- .../GetCostCategoryRuleRuleNotTag.java | 37 +- .../outputs/GetCostCategoryRuleRuleOr.java | 37 +- ...GetCostCategoryRuleRuleOrCostCategory.java | 37 +- .../GetCostCategoryRuleRuleOrDimension.java | 37 +- .../outputs/GetCostCategoryRuleRuleOrTag.java | 37 +- .../outputs/GetCostCategoryRuleRuleTag.java | 37 +- .../GetCostCategorySplitChargeRule.java | 43 +- ...tCostCategorySplitChargeRuleParameter.java | 31 +- .../costexplorer/outputs/GetTagsFilter.java | 55 +- .../outputs/GetTagsFilterAnd.java | 37 +- .../outputs/GetTagsFilterAndCostCategory.java | 37 +- .../outputs/GetTagsFilterAndDimension.java | 37 +- .../outputs/GetTagsFilterAndTags.java | 37 +- .../outputs/GetTagsFilterCostCategory.java | 37 +- .../outputs/GetTagsFilterDimension.java | 37 +- .../outputs/GetTagsFilterNot.java | 37 +- .../outputs/GetTagsFilterNotCostCategory.java | 37 +- .../outputs/GetTagsFilterNotDimension.java | 37 +- .../outputs/GetTagsFilterNotTags.java | 37 +- .../costexplorer/outputs/GetTagsFilterOr.java | 37 +- .../outputs/GetTagsFilterOrCostCategory.java | 37 +- .../outputs/GetTagsFilterOrDimension.java | 37 +- .../outputs/GetTagsFilterOrTags.java | 37 +- .../outputs/GetTagsFilterTags.java | 37 +- .../costexplorer/outputs/GetTagsResult.java | 61 +- .../costexplorer/outputs/GetTagsSortBy.java | 31 +- .../outputs/GetTagsTimePeriod.java | 31 +- .../outputs/GetReportDefinitionResult.java | 91 +- .../GetPipelineDefinitionParameterObject.java | 31 +- ...ineDefinitionParameterObjectAttribute.java | 31 +- .../GetPipelineDefinitionParameterValue.java | 31 +- .../GetPipelineDefinitionPipelineObject.java | 37 +- ...PipelineDefinitionPipelineObjectField.java | 37 +- .../outputs/GetPipelineDefinitionResult.java | 49 +- .../outputs/GetPipelineResult.java | 49 +- .../PipelineDefinitionParameterObject.java | 31 +- ...ineDefinitionParameterObjectAttribute.java | 31 +- .../PipelineDefinitionParameterValue.java | 31 +- .../PipelineDefinitionPipelineObject.java | 37 +- ...PipelineDefinitionPipelineObjectField.java | 37 +- .../outputs/EfsLocationEc2Config.java | 31 +- .../outputs/FsxOpenZfsFileSystemProtocol.java | 24 +- .../FsxOpenZfsFileSystemProtocolNfs.java | 24 +- ...nZfsFileSystemProtocolNfsMountOptions.java | 24 +- .../outputs/LocationHdfsNameNode.java | 31 +- .../outputs/LocationHdfsQopConfiguration.java | 31 +- .../outputs/LocationSmbMountOptions.java | 24 +- .../outputs/NfsLocationMountOptions.java | 24 +- .../outputs/NfsLocationOnPremConfig.java | 24 +- .../datasync/outputs/S3LocationS3Config.java | 24 +- .../aws/datasync/outputs/TaskExcludes.java | 31 +- .../aws/datasync/outputs/TaskIncludes.java | 31 +- .../aws/datasync/outputs/TaskOptions.java | 97 +- .../aws/datasync/outputs/TaskSchedule.java | 24 +- .../pulumi/aws/dax/outputs/ClusterNode.java | 43 +- .../outputs/ClusterServerSideEncryption.java | 24 +- .../dax/outputs/ParameterGroupParameter.java | 31 +- .../devicefarm/outputs/DevicePoolRule.java | 37 +- .../outputs/TestGridProjectVpcConfig.java | 37 +- .../outputs/GetConnectionResult.java | 73 +- .../outputs/GetGatewayResult.java | 43 +- .../outputs/GetLocationResult.java | 55 +- .../outputs/GetLocationsResult.java | 31 +- .../outputs/DirectoryConnectSettings.java | 55 +- .../outputs/DirectoryVpcSettings.java | 37 +- .../outputs/GetDirectoryConnectSetting.java | 55 +- .../outputs/GetDirectoryRadiusSetting.java | 61 +- .../outputs/GetDirectoryResult.java | 121 +- .../outputs/GetDirectoryVpcSetting.java | 37 +- .../outputs/ServiceRegionVpcSettings.java | 31 +- .../outputs/SharedDirectoryTarget.java | 31 +- .../outputs/LifecyclePolicyPolicyDetails.java | 67 +- .../LifecyclePolicyPolicyDetailsAction.java | 31 +- ...icyPolicyDetailsActionCrossRegionCopy.java | 37 +- ...rossRegionCopyEncryptionConfiguration.java | 31 +- ...etailsActionCrossRegionCopyRetainRule.java | 31 +- ...fecyclePolicyPolicyDetailsEventSource.java | 31 +- ...icyPolicyDetailsEventSourceParameters.java | 37 +- ...ifecyclePolicyPolicyDetailsParameters.java | 31 +- .../LifecyclePolicyPolicyDetailsSchedule.java | 79 +- ...PolicyPolicyDetailsScheduleCreateRule.java | 49 +- ...icyDetailsScheduleCrossRegionCopyRule.java | 55 +- ...eduleCrossRegionCopyRuleDeprecateRule.java | 31 +- ...ScheduleCrossRegionCopyRuleRetainRule.java | 31 +- ...icyPolicyDetailsScheduleDeprecateRule.java | 37 +- ...yPolicyDetailsScheduleFastRestoreRule.java | 43 +- ...PolicyPolicyDetailsScheduleRetainRule.java | 37 +- ...ePolicyPolicyDetailsScheduleShareRule.java | 37 +- .../EndpointElasticsearchSettings.java | 43 +- .../dms/outputs/EndpointKafkaSettings.java | 127 +- .../dms/outputs/EndpointKinesisSettings.java | 73 +- .../dms/outputs/EndpointMongodbSettings.java | 55 +- .../dms/outputs/EndpointRedshiftSettings.java | 49 +- .../aws/dms/outputs/EndpointS3Settings.java | 235 ++- .../ClusterParameterGroupParameter.java | 37 +- .../docdb/outputs/GetEngineVersionResult.java | 79 +- .../outputs/GetOrderableDbInstanceResult.java | 67 +- .../GlobalClusterGlobalClusterMember.java | 31 +- .../dynamodb/outputs/GetTableAttribute.java | 31 +- .../outputs/GetTableGlobalSecondaryIndex.java | 61 +- .../outputs/GetTableLocalSecondaryIndex.java | 43 +- .../outputs/GetTablePointInTimeRecovery.java | 24 +- .../aws/dynamodb/outputs/GetTableReplica.java | 31 +- .../aws/dynamodb/outputs/GetTableResult.java | 145 +- .../outputs/GetTableServerSideEncryption.java | 31 +- .../aws/dynamodb/outputs/GetTableTtl.java | 31 +- .../dynamodb/outputs/GlobalTableReplica.java | 24 +- .../aws/dynamodb/outputs/TableAttribute.java | 31 +- .../outputs/TableGlobalSecondaryIndex.java | 61 +- .../outputs/TableLocalSecondaryIndex.java | 43 +- .../outputs/TablePointInTimeRecovery.java | 24 +- .../aws/dynamodb/outputs/TableReplica.java | 43 +- .../outputs/TableServerSideEncryption.java | 31 +- .../pulumi/aws/dynamodb/outputs/TableTtl.java | 31 +- .../ebs/outputs/GetDefaultKmsKeyResult.java | 31 +- .../aws/ebs/outputs/GetEbsVolumesFilter.java | 31 +- .../aws/ebs/outputs/GetEbsVolumesResult.java | 43 +- .../outputs/GetEncryptionByDefaultResult.java | 31 +- .../aws/ebs/outputs/GetSnapshotFilter.java | 31 +- .../aws/ebs/outputs/GetSnapshotIdsFilter.java | 31 +- .../aws/ebs/outputs/GetSnapshotIdsResult.java | 49 +- .../aws/ebs/outputs/GetSnapshotResult.java | 139 +- .../aws/ebs/outputs/GetVolumeFilter.java | 31 +- .../aws/ebs/outputs/GetVolumeResult.java | 115 +- .../ebs/outputs/SnapshotImportClientData.java | 43 +- .../outputs/SnapshotImportDiskContainer.java | 43 +- ...SnapshotImportDiskContainerUserBucket.java | 31 +- .../ec2/outputs/AmiCopyEbsBlockDevice.java | 73 +- .../outputs/AmiCopyEphemeralBlockDevice.java | 31 +- .../aws/ec2/outputs/AmiEbsBlockDevice.java | 73 +- .../ec2/outputs/AmiEphemeralBlockDevice.java | 31 +- .../AmiFromInstanceEbsBlockDevice.java | 73 +- .../AmiFromInstanceEphemeralBlockDevice.java | 31 +- .../ec2/outputs/DefaultNetworkAclEgress.java | 73 +- .../ec2/outputs/DefaultNetworkAclIngress.java | 73 +- .../ec2/outputs/DefaultRouteTableRoute.java | 91 +- .../outputs/DefaultSecurityGroupEgress.java | 73 +- .../outputs/DefaultSecurityGroupIngress.java | 73 +- .../outputs/FleetLaunchTemplateConfig.java | 31 +- ...lateConfigLaunchTemplateSpecification.java | 37 +- .../FleetLaunchTemplateConfigOverride.java | 61 +- ...ateConfigOverrideInstanceRequirements.java | 145 +- ...eInstanceRequirementsAcceleratorCount.java | 31 +- ...RequirementsAcceleratorTotalMemoryMib.java | 31 +- ...eRequirementsBaselineEbsBandwidthMbps.java | 31 +- ...eInstanceRequirementsMemoryGibPerVcpu.java | 31 +- ...OverrideInstanceRequirementsMemoryMib.java | 31 +- ...anceRequirementsNetworkInterfaceCount.java | 31 +- ...stanceRequirementsTotalLocalStorageGb.java | 31 +- ...OverrideInstanceRequirementsVcpuCount.java | 31 +- .../aws/ec2/outputs/FleetOnDemandOptions.java | 24 +- .../aws/ec2/outputs/FleetSpotOptions.java | 43 +- ...FleetSpotOptionsMaintenanceStrategies.java | 24 +- ...aintenanceStrategiesCapacityRebalance.java | 24 +- .../FleetTargetCapacitySpecification.java | 43 +- .../outputs/FlowLogDestinationOptions.java | 37 +- .../ec2/outputs/GetAmiBlockDeviceMapping.java | 43 +- .../pulumi/aws/ec2/outputs/GetAmiFilter.java | 31 +- .../aws/ec2/outputs/GetAmiIdsFilter.java | 31 +- .../aws/ec2/outputs/GetAmiIdsResult.java | 61 +- .../aws/ec2/outputs/GetAmiProductCode.java | 31 +- .../pulumi/aws/ec2/outputs/GetAmiResult.java | 247 ++- .../aws/ec2/outputs/GetCoipPoolFilter.java | 31 +- .../aws/ec2/outputs/GetCoipPoolResult.java | 61 +- .../aws/ec2/outputs/GetCoipPoolsFilter.java | 31 +- .../aws/ec2/outputs/GetCoipPoolsResult.java | 43 +- .../ec2/outputs/GetCustomerGatewayFilter.java | 31 +- .../ec2/outputs/GetCustomerGatewayResult.java | 73 +- .../ec2/outputs/GetDedicatedHostFilter.java | 31 +- .../ec2/outputs/GetDedicatedHostResult.java | 109 +- .../pulumi/aws/ec2/outputs/GetEipsFilter.java | 31 +- .../pulumi/aws/ec2/outputs/GetEipsResult.java | 49 +- .../aws/ec2/outputs/GetElasticIpFilter.java | 31 +- .../aws/ec2/outputs/GetElasticIpResult.java | 115 +- .../GetInstanceCreditSpecification.java | 24 +- .../outputs/GetInstanceEbsBlockDevice.java | 85 +- .../ec2/outputs/GetInstanceEnclaveOption.java | 24 +- .../GetInstanceEphemeralBlockDevice.java | 37 +- .../aws/ec2/outputs/GetInstanceFilter.java | 31 +- .../outputs/GetInstanceMaintenanceOption.java | 24 +- .../outputs/GetInstanceMetadataOption.java | 43 +- .../GetInstancePrivateDnsNameOption.java | 37 +- .../aws/ec2/outputs/GetInstanceResult.java | 295 ++-- .../outputs/GetInstanceRootBlockDevice.java | 79 +- .../aws/ec2/outputs/GetInstanceTypeFpga.java | 43 +- .../aws/ec2/outputs/GetInstanceTypeGpus.java | 43 +- .../GetInstanceTypeInferenceAccelerator.java | 37 +- .../outputs/GetInstanceTypeInstanceDisk.java | 37 +- .../GetInstanceTypeOfferingFilter.java | 31 +- .../GetInstanceTypeOfferingResult.java | 49 +- .../GetInstanceTypeOfferingsFilter.java | 31 +- .../GetInstanceTypeOfferingsResult.java | 55 +- .../ec2/outputs/GetInstanceTypeResult.java | 301 ++-- .../ec2/outputs/GetInstanceTypesFilter.java | 31 +- .../ec2/outputs/GetInstanceTypesResult.java | 37 +- .../aws/ec2/outputs/GetInstancesFilter.java | 31 +- .../aws/ec2/outputs/GetInstancesResult.java | 61 +- .../outputs/GetInternetGatewayAttachment.java | 31 +- .../ec2/outputs/GetInternetGatewayFilter.java | 31 +- .../ec2/outputs/GetInternetGatewayResult.java | 61 +- .../outputs/GetIpamPreviewNextCidrResult.java | 49 +- .../aws/ec2/outputs/GetKeyPairFilter.java | 31 +- .../aws/ec2/outputs/GetKeyPairResult.java | 85 +- .../GetLaunchConfigurationEbsBlockDevice.java | 73 +- ...unchConfigurationEphemeralBlockDevice.java | 31 +- .../GetLaunchConfigurationMetadataOption.java | 37 +- .../outputs/GetLaunchConfigurationResult.java | 139 +- ...GetLaunchConfigurationRootBlockDevice.java | 55 +- .../GetLaunchTemplateBlockDeviceMapping.java | 43 +- ...GetLaunchTemplateBlockDeviceMappingEb.java | 67 +- ...plateCapacityReservationSpecification.java | 31 +- ...pecificationCapacityReservationTarget.java | 31 +- .../outputs/GetLaunchTemplateCpuOption.java | 31 +- .../GetLaunchTemplateCreditSpecification.java | 24 +- ...LaunchTemplateElasticGpuSpecification.java | 24 +- ...chTemplateElasticInferenceAccelerator.java | 24 +- .../GetLaunchTemplateEnclaveOption.java | 24 +- .../ec2/outputs/GetLaunchTemplateFilter.java | 31 +- .../GetLaunchTemplateHibernationOption.java | 24 +- .../GetLaunchTemplateIamInstanceProfile.java | 31 +- ...GetLaunchTemplateInstanceMarketOption.java | 31 +- ...emplateInstanceMarketOptionSpotOption.java | 49 +- .../GetLaunchTemplateInstanceRequirement.java | 145 +- ...teInstanceRequirementAcceleratorCount.java | 31 +- ...eRequirementAcceleratorTotalMemoryMib.java | 31 +- ...nceRequirementBaselineEbsBandwidthMbp.java | 31 +- ...eInstanceRequirementMemoryGibPerVcpus.java | 31 +- ...hTemplateInstanceRequirementMemoryMib.java | 31 +- ...tanceRequirementNetworkInterfaceCount.java | 31 +- ...nstanceRequirementTotalLocalStorageGb.java | 31 +- ...hTemplateInstanceRequirementVcpuCount.java | 31 +- ...GetLaunchTemplateLicenseSpecification.java | 24 +- .../GetLaunchTemplateMaintenanceOption.java | 24 +- .../GetLaunchTemplateMetadataOption.java | 49 +- .../outputs/GetLaunchTemplateMonitoring.java | 24 +- .../GetLaunchTemplateNetworkInterface.java | 133 +- .../outputs/GetLaunchTemplatePlacement.java | 67 +- ...GetLaunchTemplatePrivateDnsNameOption.java | 37 +- .../ec2/outputs/GetLaunchTemplateResult.java | 253 ++- .../GetLaunchTemplateTagSpecification.java | 31 +- .../ec2/outputs/GetLocalGatewayFilter.java | 31 +- .../ec2/outputs/GetLocalGatewayResult.java | 55 +- .../GetLocalGatewayRouteTableFilter.java | 31 +- .../GetLocalGatewayRouteTableResult.java | 61 +- .../GetLocalGatewayRouteTablesFilter.java | 31 +- .../GetLocalGatewayRouteTablesResult.java | 43 +- ...GetLocalGatewayVirtualInterfaceFilter.java | 31 +- ...calGatewayVirtualInterfaceGroupFilter.java | 31 +- ...calGatewayVirtualInterfaceGroupResult.java | 49 +- ...alGatewayVirtualInterfaceGroupsFilter.java | 31 +- ...alGatewayVirtualInterfaceGroupsResult.java | 49 +- ...GetLocalGatewayVirtualInterfaceResult.java | 79 +- .../ec2/outputs/GetLocalGatewaysFilter.java | 31 +- .../ec2/outputs/GetLocalGatewaysResult.java | 43 +- .../outputs/GetManagedPrefixListEntry.java | 31 +- .../outputs/GetManagedPrefixListFilter.java | 31 +- .../outputs/GetManagedPrefixListResult.java | 79 +- .../aws/ec2/outputs/GetNatGatewayFilter.java | 31 +- .../aws/ec2/outputs/GetNatGatewayResult.java | 85 +- .../aws/ec2/outputs/GetNatGatewaysFilter.java | 31 +- .../aws/ec2/outputs/GetNatGatewaysResult.java | 49 +- .../aws/ec2/outputs/GetNetworkAclsFilter.java | 31 +- .../aws/ec2/outputs/GetNetworkAclsResult.java | 49 +- .../GetNetworkInterfaceAssociation.java | 61 +- .../GetNetworkInterfaceAttachment.java | 43 +- .../outputs/GetNetworkInterfaceFilter.java | 31 +- .../outputs/GetNetworkInterfaceResult.java | 139 +- .../outputs/GetNetworkInterfacesFilter.java | 31 +- .../outputs/GetNetworkInterfacesResult.java | 43 +- .../aws/ec2/outputs/GetPrefixListFilter.java | 31 +- .../aws/ec2/outputs/GetPrefixListResult.java | 49 +- .../aws/ec2/outputs/GetRouteResult.java | 109 +- .../ec2/outputs/GetRouteTableAssociation.java | 49 +- .../aws/ec2/outputs/GetRouteTableFilter.java | 31 +- .../aws/ec2/outputs/GetRouteTableResult.java | 85 +- .../aws/ec2/outputs/GetRouteTableRoute.java | 103 +- .../aws/ec2/outputs/GetRouteTablesFilter.java | 31 +- .../aws/ec2/outputs/GetRouteTablesResult.java | 49 +- .../ec2/outputs/GetSecurityGroupFilter.java | 31 +- .../ec2/outputs/GetSecurityGroupResult.java | 61 +- .../ec2/outputs/GetSecurityGroupsFilter.java | 31 +- .../ec2/outputs/GetSecurityGroupsResult.java | 55 +- .../outputs/GetSerialConsoleAccessResult.java | 31 +- .../aws/ec2/outputs/GetSpotPriceFilter.java | 31 +- .../aws/ec2/outputs/GetSpotPriceResult.java | 55 +- .../aws/ec2/outputs/GetSubnetFilter.java | 31 +- .../aws/ec2/outputs/GetSubnetIdsFilter.java | 31 +- .../aws/ec2/outputs/GetSubnetIdsResult.java | 49 +- .../aws/ec2/outputs/GetSubnetResult.java | 163 +- .../aws/ec2/outputs/GetSubnetsFilter.java | 31 +- .../aws/ec2/outputs/GetSubnetsResult.java | 43 +- .../GetTransitGatewayRouteTablesFilter.java | 31 +- .../GetTransitGatewayRouteTablesResult.java | 43 +- .../outputs/GetVpcCidrBlockAssociation.java | 37 +- .../ec2/outputs/GetVpcDhcpOptionsFilter.java | 31 +- .../ec2/outputs/GetVpcDhcpOptionsResult.java | 85 +- .../ec2/outputs/GetVpcEndpointDnsEntry.java | 31 +- .../ec2/outputs/GetVpcEndpointDnsOption.java | 24 +- .../aws/ec2/outputs/GetVpcEndpointFilter.java | 31 +- .../aws/ec2/outputs/GetVpcEndpointResult.java | 145 +- .../outputs/GetVpcEndpointServiceFilter.java | 31 +- .../outputs/GetVpcEndpointServiceResult.java | 115 +- .../pulumi/aws/ec2/outputs/GetVpcFilter.java | 31 +- .../aws/ec2/outputs/GetVpcIamPoolFilter.java | 31 +- .../aws/ec2/outputs/GetVpcIamPoolResult.java | 139 +- .../GetVpcPeeringConnectionCidrBlockSet.java | 24 +- .../GetVpcPeeringConnectionFilter.java | 31 +- ...tVpcPeeringConnectionPeerCidrBlockSet.java | 24 +- .../GetVpcPeeringConnectionResult.java | 115 +- .../GetVpcPeeringConnectionsFilter.java | 31 +- .../GetVpcPeeringConnectionsResult.java | 43 +- .../pulumi/aws/ec2/outputs/GetVpcResult.java | 115 +- .../pulumi/aws/ec2/outputs/GetVpcsFilter.java | 31 +- .../pulumi/aws/ec2/outputs/GetVpcsResult.java | 43 +- .../aws/ec2/outputs/GetVpnGatewayFilter.java | 31 +- .../aws/ec2/outputs/GetVpnGatewayResult.java | 67 +- ...tanceCapacityReservationSpecification.java | 31 +- ...pecificationCapacityReservationTarget.java | 31 +- .../outputs/InstanceCreditSpecification.java | 24 +- .../ec2/outputs/InstanceEbsBlockDevice.java | 85 +- .../ec2/outputs/InstanceEnclaveOptions.java | 24 +- .../outputs/InstanceEphemeralBlockDevice.java | 37 +- .../ec2/outputs/InstanceLaunchTemplate.java | 37 +- .../outputs/InstanceMaintenanceOptions.java | 24 +- .../ec2/outputs/InstanceMetadataOptions.java | 43 +- .../ec2/outputs/InstanceNetworkInterface.java | 43 +- .../InstancePrivateDnsNameOptions.java | 37 +- .../ec2/outputs/InstanceRootBlockDevice.java | 79 +- .../LaunchConfigurationEbsBlockDevice.java | 73 +- ...unchConfigurationEphemeralBlockDevice.java | 37 +- .../LaunchConfigurationMetadataOptions.java | 37 +- .../LaunchConfigurationRootBlockDevice.java | 55 +- .../LaunchTemplateBlockDeviceMapping.java | 43 +- .../LaunchTemplateBlockDeviceMappingEbs.java | 67 +- ...plateCapacityReservationSpecification.java | 31 +- ...pecificationCapacityReservationTarget.java | 31 +- .../ec2/outputs/LaunchTemplateCpuOptions.java | 31 +- .../LaunchTemplateCreditSpecification.java | 24 +- ...LaunchTemplateElasticGpuSpecification.java | 24 +- ...chTemplateElasticInferenceAccelerator.java | 24 +- .../outputs/LaunchTemplateEnclaveOptions.java | 24 +- .../LaunchTemplateHibernationOptions.java | 24 +- .../LaunchTemplateIamInstanceProfile.java | 31 +- .../LaunchTemplateInstanceMarketOptions.java | 31 +- ...plateInstanceMarketOptionsSpotOptions.java | 49 +- .../LaunchTemplateInstanceRequirements.java | 145 +- ...eInstanceRequirementsAcceleratorCount.java | 31 +- ...RequirementsAcceleratorTotalMemoryMib.java | 31 +- ...eRequirementsBaselineEbsBandwidthMbps.java | 31 +- ...eInstanceRequirementsMemoryGibPerVcpu.java | 31 +- ...TemplateInstanceRequirementsMemoryMib.java | 31 +- ...anceRequirementsNetworkInterfaceCount.java | 31 +- ...stanceRequirementsTotalLocalStorageGb.java | 31 +- ...TemplateInstanceRequirementsVcpuCount.java | 31 +- .../LaunchTemplateLicenseSpecification.java | 24 +- .../LaunchTemplateMaintenanceOptions.java | 24 +- .../LaunchTemplateMetadataOptions.java | 49 +- .../ec2/outputs/LaunchTemplateMonitoring.java | 24 +- .../LaunchTemplateNetworkInterface.java | 133 +- .../ec2/outputs/LaunchTemplatePlacement.java | 67 +- .../LaunchTemplatePrivateDnsNameOptions.java | 37 +- .../LaunchTemplateTagSpecification.java | 31 +- .../ec2/outputs/ManagedPrefixListEntry.java | 31 +- .../aws/ec2/outputs/NetworkAclEgress.java | 73 +- .../aws/ec2/outputs/NetworkAclIngress.java | 73 +- .../outputs/NetworkInterfaceAttachment.java | 37 +- .../PeeringConnectionOptionsAccepter.java | 37 +- .../PeeringConnectionOptionsRequester.java | 37 +- .../aws/ec2/outputs/RouteTableRoute.java | 103 +- .../aws/ec2/outputs/SecurityGroupEgress.java | 73 +- .../aws/ec2/outputs/SecurityGroupIngress.java | 73 +- .../SpotFleetRequestLaunchSpecification.java | 139 +- ...uestLaunchSpecificationEbsBlockDevice.java | 73 +- ...unchSpecificationEphemeralBlockDevice.java | 31 +- ...estLaunchSpecificationRootBlockDevice.java | 61 +- .../SpotFleetRequestLaunchTemplateConfig.java | 31 +- ...lateConfigLaunchTemplateSpecification.java | 37 +- ...etRequestLaunchTemplateConfigOverride.java | 61 +- ...ateConfigOverrideInstanceRequirements.java | 145 +- ...eInstanceRequirementsAcceleratorCount.java | 31 +- ...RequirementsAcceleratorTotalMemoryMib.java | 31 +- ...eRequirementsBaselineEbsBandwidthMbps.java | 31 +- ...eInstanceRequirementsMemoryGibPerVcpu.java | 31 +- ...OverrideInstanceRequirementsMemoryMib.java | 31 +- ...anceRequirementsNetworkInterfaceCount.java | 31 +- ...stanceRequirementsTotalLocalStorageGb.java | 31 +- ...OverrideInstanceRequirementsVcpuCount.java | 31 +- ...FleetRequestSpotMaintenanceStrategies.java | 24 +- ...aintenanceStrategiesCapacityRebalance.java | 24 +- ...questCapacityReservationSpecification.java | 31 +- ...pecificationCapacityReservationTarget.java | 31 +- ...potInstanceRequestCreditSpecification.java | 24 +- .../SpotInstanceRequestEbsBlockDevice.java | 85 +- .../SpotInstanceRequestEnclaveOptions.java | 24 +- ...otInstanceRequestEphemeralBlockDevice.java | 37 +- .../SpotInstanceRequestLaunchTemplate.java | 37 +- ...SpotInstanceRequestMaintenanceOptions.java | 24 +- .../SpotInstanceRequestMetadataOptions.java | 43 +- .../SpotInstanceRequestNetworkInterface.java | 43 +- ...tInstanceRequestPrivateDnsNameOptions.java | 37 +- .../SpotInstanceRequestRootBlockDevice.java | 79 +- ...cMirrorFilterRuleDestinationPortRange.java | 31 +- ...rafficMirrorFilterRuleSourcePortRange.java | 31 +- .../aws/ec2/outputs/VpcEndpointDnsEntry.java | 31 +- .../ec2/outputs/VpcEndpointDnsOptions.java | 24 +- ...intServicePrivateDnsNameConfiguration.java | 43 +- .../ec2/outputs/VpcIpamOperatingRegion.java | 24 +- ...cIpamPoolCidrCidrAuthorizationContext.java | 31 +- .../outputs/VpcPeeringConnectionAccepter.java | 37 +- .../VpcPeeringConnectionAccepterAccepter.java | 37 +- ...VpcPeeringConnectionAccepterRequester.java | 37 +- .../VpcPeeringConnectionRequester.java | 37 +- .../aws/ec2/outputs/VpnConnectionRoute.java | 37 +- .../outputs/VpnConnectionVgwTelemetry.java | 55 +- .../outputs/EndpointAuthenticationOption.java | 49 +- .../outputs/EndpointClientConnectOptions.java | 31 +- .../EndpointClientLoginBannerOptions.java | 31 +- .../outputs/EndpointConnectionLogOptions.java | 37 +- .../GetEndpointAuthenticationOption.java | 49 +- .../GetEndpointClientConnectOption.java | 31 +- .../GetEndpointClientLoginBannerOption.java | 31 +- .../GetEndpointConnectionLogOption.java | 37 +- .../outputs/GetEndpointFilter.java | 31 +- .../outputs/GetEndpointResult.java | 145 +- .../outputs/GetConnectFilter.java | 31 +- .../outputs/GetConnectPeerFilter.java | 31 +- .../outputs/GetConnectPeerResult.java | 79 +- .../outputs/GetConnectResult.java | 61 +- ...tDirectConnectGatewayAttachmentFilter.java | 31 +- ...tDirectConnectGatewayAttachmentResult.java | 49 +- .../GetMulticastDomainAssociation.java | 31 +- .../outputs/GetMulticastDomainFilter.java | 31 +- .../outputs/GetMulticastDomainMember.java | 31 +- .../outputs/GetMulticastDomainResult.java | 109 +- .../outputs/GetMulticastDomainSource.java | 31 +- .../outputs/GetPeeringAttachmentFilter.java | 31 +- .../outputs/GetPeeringAttachmentResult.java | 61 +- .../outputs/GetRouteTableFilter.java | 31 +- .../outputs/GetRouteTableResult.java | 61 +- .../outputs/GetTransitGatewayFilter.java | 31 +- .../outputs/GetTransitGatewayResult.java | 115 +- .../outputs/GetVpcAttachmentFilter.java | 31 +- .../outputs/GetVpcAttachmentResult.java | 79 +- .../outputs/GetVpcAttachmentsFilter.java | 31 +- .../outputs/GetVpcAttachmentsResult.java | 37 +- .../outputs/GetVpnAttachmentFilter.java | 31 +- .../outputs/GetVpnAttachmentResult.java | 49 +- .../outputs/GetAuthorizationTokenResult.java | 61 +- .../aws/ecr/outputs/GetCredentialsResult.java | 49 +- .../aws/ecr/outputs/GetImageResult.java | 67 +- .../GetRepositoryEncryptionConfiguration.java | 31 +- ...tRepositoryImageScanningConfiguration.java | 24 +- .../aws/ecr/outputs/GetRepositoryResult.java | 73 +- .../RegistryScanningConfigurationRule.java | 31 +- ...ningConfigurationRuleRepositoryFilter.java | 31 +- ...ConfigurationReplicationConfiguration.java | 24 +- ...igurationReplicationConfigurationRule.java | 31 +- ...plicationConfigurationRuleDestination.java | 31 +- ...tionConfigurationRuleRepositoryFilter.java | 31 +- .../RepositoryEncryptionConfiguration.java | 31 +- .../RepositoryImageScanningConfiguration.java | 24 +- .../outputs/GetAuthorizationTokenResult.java | 49 +- .../outputs/RepositoryCatalogData.java | 55 +- ...acityProviderAutoScalingGroupProvider.java | 37 +- ...utoScalingGroupProviderManagedScaling.java | 49 +- ...vidersDefaultCapacityProviderStrategy.java | 37 +- .../aws/ecs/outputs/ClusterConfiguration.java | 24 +- ...figurationExecuteCommandConfiguration.java | 37 +- ...eCommandConfigurationLogConfiguration.java | 49 +- ...lusterDefaultCapacityProviderStrategy.java | 37 +- .../aws/ecs/outputs/ClusterSetting.java | 31 +- .../aws/ecs/outputs/GetClusterResult.java | 67 +- .../aws/ecs/outputs/GetClusterSetting.java | 31 +- .../outputs/GetContainerDefinitionResult.java | 85 +- .../aws/ecs/outputs/GetServiceResult.java | 73 +- .../ecs/outputs/GetTaskDefinitionResult.java | 67 +- .../ServiceCapacityProviderStrategy.java | 37 +- .../ServiceDeploymentCircuitBreaker.java | 31 +- .../outputs/ServiceDeploymentController.java | 24 +- .../aws/ecs/outputs/ServiceLoadBalancer.java | 43 +- .../outputs/ServiceNetworkConfiguration.java | 37 +- .../ServiceOrderedPlacementStrategy.java | 31 +- .../outputs/ServicePlacementConstraint.java | 31 +- .../ecs/outputs/ServiceServiceRegistries.java | 43 +- .../TaskDefinitionEphemeralStorage.java | 24 +- .../TaskDefinitionInferenceAccelerator.java | 31 +- .../TaskDefinitionPlacementConstraint.java | 31 +- .../TaskDefinitionProxyConfiguration.java | 37 +- .../TaskDefinitionRuntimePlatform.java | 31 +- .../aws/ecs/outputs/TaskDefinitionVolume.java | 49 +- ...nitionVolumeDockerVolumeConfiguration.java | 49 +- ...efinitionVolumeEfsVolumeConfiguration.java | 49 +- ...olumeConfigurationAuthorizationConfig.java | 31 +- ...xWindowsFileServerVolumeConfiguration.java | 37 +- ...olumeConfigurationAuthorizationConfig.java | 31 +- .../TaskSetCapacityProviderStrategy.java | 37 +- .../aws/ecs/outputs/TaskSetLoadBalancer.java | 43 +- .../outputs/TaskSetNetworkConfiguration.java | 37 +- .../pulumi/aws/ecs/outputs/TaskSetScale.java | 31 +- .../ecs/outputs/TaskSetServiceRegistries.java | 43 +- .../aws/efs/outputs/AccessPointPosixUser.java | 37 +- .../efs/outputs/AccessPointRootDirectory.java | 31 +- .../AccessPointRootDirectoryCreationInfo.java | 37 +- .../efs/outputs/BackupPolicyBackupPolicy.java | 24 +- .../outputs/FileSystemLifecyclePolicy.java | 31 +- .../aws/efs/outputs/FileSystemSizeInByte.java | 37 +- .../efs/outputs/GetAccessPointPosixUser.java | 37 +- .../aws/efs/outputs/GetAccessPointResult.java | 73 +- .../outputs/GetAccessPointRootDirectory.java | 31 +- ...tAccessPointRootDirectoryCreationInfo.java | 37 +- .../efs/outputs/GetAccessPointsResult.java | 43 +- .../outputs/GetFileSystemLifecyclePolicy.java | 31 +- .../aws/efs/outputs/GetFileSystemResult.java | 109 +- .../aws/efs/outputs/GetMountTargetResult.java | 103 +- .../ReplicationConfigurationDestination.java | 49 +- .../outputs/ClusterCertificateAuthority.java | 24 +- .../eks/outputs/ClusterEncryptionConfig.java | 31 +- .../ClusterEncryptionConfigProvider.java | 24 +- .../aws/eks/outputs/ClusterIdentity.java | 24 +- .../aws/eks/outputs/ClusterIdentityOidc.java | 24 +- .../ClusterKubernetesNetworkConfig.java | 31 +- .../aws/eks/outputs/ClusterVpcConfig.java | 61 +- .../eks/outputs/FargateProfileSelector.java | 31 +- .../aws/eks/outputs/GetAddonResult.java | 73 +- .../eks/outputs/GetAddonVersionResult.java | 49 +- .../aws/eks/outputs/GetClusterAuthResult.java | 37 +- .../GetClusterCertificateAuthority.java | 24 +- .../aws/eks/outputs/GetClusterIdentity.java | 24 +- .../eks/outputs/GetClusterIdentityOidc.java | 24 +- .../GetClusterKubernetesNetworkConfig.java | 31 +- .../aws/eks/outputs/GetClusterResult.java | 109 +- .../aws/eks/outputs/GetClusterVpcConfig.java | 61 +- .../aws/eks/outputs/GetClustersResult.java | 31 +- .../eks/outputs/GetNodeGroupRemoteAccess.java | 31 +- .../aws/eks/outputs/GetNodeGroupResource.java | 31 +- .../GetNodeGroupResourceAutoscalingGroup.java | 24 +- .../aws/eks/outputs/GetNodeGroupResult.java | 127 +- .../outputs/GetNodeGroupScalingConfig.java | 37 +- .../aws/eks/outputs/GetNodeGroupTaint.java | 37 +- .../aws/eks/outputs/GetNodeGroupsResult.java | 37 +- .../outputs/IdentityProviderConfigOidc.java | 67 +- .../eks/outputs/NodeGroupLaunchTemplate.java | 37 +- .../eks/outputs/NodeGroupRemoteAccess.java | 31 +- .../aws/eks/outputs/NodeGroupResource.java | 31 +- .../NodeGroupResourceAutoscalingGroup.java | 24 +- .../eks/outputs/NodeGroupScalingConfig.java | 37 +- .../aws/eks/outputs/NodeGroupTaint.java | 37 +- .../eks/outputs/NodeGroupUpdateConfig.java | 31 +- .../elasticache/outputs/ClusterCacheNode.java | 43 +- .../ClusterLogDeliveryConfiguration.java | 43 +- .../outputs/GetClusterCacheNode.java | 43 +- .../GetClusterLogDeliveryConfiguration.java | 43 +- .../elasticache/outputs/GetClusterResult.java | 157 +- ...licationGroupLogDeliveryConfiguration.java | 43 +- .../outputs/GetReplicationGroupResult.java | 145 +- .../elasticache/outputs/GetUserResult.java | 61 +- .../outputs/ParameterGroupParameter.java | 31 +- .../outputs/ReplicationGroupClusterMode.java | 31 +- ...licationGroupLogDeliveryConfiguration.java | 43 +- .../ApplicationAppversionLifecycle.java | 43 +- .../outputs/ConfigurationTemplateSetting.java | 43 +- .../outputs/EnvironmentAllSetting.java | 43 +- .../outputs/EnvironmentSetting.java | 43 +- .../GetApplicationAppversionLifecycle.java | 43 +- .../outputs/GetApplicationResult.java | 49 +- .../outputs/GetHostedZoneResult.java | 31 +- .../outputs/GetSolutionStackResult.java | 43 +- .../outputs/GetHostedZoneIdResult.java | 31 +- .../outputs/GetLoadBalancerAccessLogs.java | 43 +- .../outputs/GetLoadBalancerHealthCheck.java | 49 +- .../outputs/GetLoadBalancerListener.java | 49 +- .../outputs/GetLoadBalancerResult.java | 145 +- .../outputs/GetServiceAccountResult.java | 37 +- .../outputs/LoadBalancerAccessLogs.java | 43 +- .../outputs/LoadBalancerHealthCheck.java | 49 +- .../outputs/LoadBalancerListener.java | 49 +- .../LoadBalancerPolicyPolicyAttribute.java | 31 +- .../SslNegotiationPolicyAttribute.java | 31 +- .../outputs/GetListenerDefaultAction.java | 67 +- ...tenerDefaultActionAuthenticateCognito.java | 67 +- ...ListenerDefaultActionAuthenticateOidc.java | 85 +- ...GetListenerDefaultActionFixedResponse.java | 37 +- .../GetListenerDefaultActionForward.java | 31 +- ...istenerDefaultActionForwardStickiness.java | 31 +- ...stenerDefaultActionForwardTargetGroup.java | 31 +- .../GetListenerDefaultActionRedirect.java | 55 +- .../outputs/GetListenerResult.java | 79 +- .../outputs/GetLoadBalancerAccessLogs.java | 37 +- .../outputs/GetLoadBalancerResult.java | 157 +- .../outputs/GetLoadBalancerSubnetMapping.java | 49 +- .../outputs/GetTargetGroupHealthCheck.java | 73 +- .../outputs/GetTargetGroupResult.java | 133 +- .../outputs/GetTargetGroupStickiness.java | 43 +- .../outputs/ListenerDefaultAction.java | 67 +- ...tenerDefaultActionAuthenticateCognito.java | 67 +- ...ListenerDefaultActionAuthenticateOidc.java | 85 +- .../ListenerDefaultActionFixedResponse.java | 37 +- .../outputs/ListenerDefaultActionForward.java | 31 +- ...istenerDefaultActionForwardStickiness.java | 31 +- ...stenerDefaultActionForwardTargetGroup.java | 31 +- .../ListenerDefaultActionRedirect.java | 55 +- .../outputs/ListenerRuleAction.java | 67 +- ...ListenerRuleActionAuthenticateCognito.java | 67 +- .../ListenerRuleActionAuthenticateOidc.java | 85 +- .../ListenerRuleActionFixedResponse.java | 37 +- .../outputs/ListenerRuleActionForward.java | 31 +- .../ListenerRuleActionForwardStickiness.java | 31 +- .../ListenerRuleActionForwardTargetGroup.java | 31 +- .../outputs/ListenerRuleActionRedirect.java | 55 +- .../outputs/ListenerRuleCondition.java | 55 +- .../ListenerRuleConditionHostHeader.java | 24 +- .../ListenerRuleConditionHttpHeader.java | 31 +- ...istenerRuleConditionHttpRequestMethod.java | 24 +- .../ListenerRuleConditionPathPattern.java | 24 +- .../ListenerRuleConditionQueryString.java | 31 +- .../ListenerRuleConditionSourceIp.java | 24 +- .../outputs/LoadBalancerAccessLogs.java | 37 +- .../outputs/LoadBalancerSubnetMapping.java | 49 +- .../outputs/TargetGroupHealthCheck.java | 73 +- .../outputs/TargetGroupStickiness.java | 43 +- .../DomainAdvancedSecurityOptions.java | 37 +- ...ancedSecurityOptionsMasterUserOptions.java | 37 +- .../outputs/DomainAutoTuneOptions.java | 37 +- ...ainAutoTuneOptionsMaintenanceSchedule.java | 37 +- ...uneOptionsMaintenanceScheduleDuration.java | 31 +- .../outputs/DomainClusterConfig.java | 85 +- ...DomainClusterConfigColdStorageOptions.java | 24 +- ...omainClusterConfigZoneAwarenessConfig.java | 24 +- .../outputs/DomainCognitoOptions.java | 43 +- .../outputs/DomainDomainEndpointOptions.java | 49 +- .../outputs/DomainEbsOptions.java | 49 +- .../outputs/DomainEncryptAtRest.java | 31 +- .../outputs/DomainLogPublishingOption.java | 37 +- .../outputs/DomainNodeToNodeEncryption.java | 24 +- .../outputs/DomainSamlOptionsSamlOptions.java | 61 +- .../DomainSamlOptionsSamlOptionsIdp.java | 31 +- .../outputs/DomainSnapshotOptions.java | 24 +- .../outputs/DomainVpcOptions.java | 43 +- .../GetDomainAdvancedSecurityOption.java | 31 +- .../outputs/GetDomainAutoTuneOption.java | 37 +- ...mainAutoTuneOptionMaintenanceSchedule.java | 37 +- ...TuneOptionMaintenanceScheduleDuration.java | 31 +- .../outputs/GetDomainClusterConfig.java | 85 +- ...tDomainClusterConfigColdStorageOption.java | 24 +- ...omainClusterConfigZoneAwarenessConfig.java | 24 +- .../outputs/GetDomainCognitoOption.java | 43 +- .../outputs/GetDomainEbsOption.java | 49 +- .../outputs/GetDomainEncryptionAtRest.java | 31 +- .../outputs/GetDomainLogPublishingOption.java | 37 +- .../GetDomainNodeToNodeEncryption.java | 24 +- .../outputs/GetDomainResult.java | 157 +- .../outputs/GetDomainSnapshotOption.java | 24 +- .../outputs/GetDomainVpcOption.java | 43 +- .../outputs/PipelineContentConfig.java | 31 +- .../PipelineContentConfigPermission.java | 37 +- .../outputs/PipelineNotifications.java | 43 +- .../outputs/PipelineThumbnailConfig.java | 31 +- .../PipelineThumbnailConfigPermission.java | 37 +- .../outputs/PresetAudio.java | 49 +- .../outputs/PresetAudioCodecOptions.java | 43 +- .../outputs/PresetThumbnails.java | 67 +- .../outputs/PresetVideo.java | 97 +- .../outputs/PresetVideoWatermark.java | 79 +- .../elb/outputs/GetHostedZoneIdResult.java | 31 +- .../outputs/GetLoadBalancerAccessLogs.java | 43 +- .../outputs/GetLoadBalancerHealthCheck.java | 49 +- .../elb/outputs/GetLoadBalancerListener.java | 49 +- .../elb/outputs/GetLoadBalancerResult.java | 145 +- .../elb/outputs/GetServiceAccountResult.java | 37 +- .../elb/outputs/LoadBalancerAccessLogs.java | 43 +- .../elb/outputs/LoadBalancerHealthCheck.java | 49 +- .../aws/elb/outputs/LoadBalancerListener.java | 49 +- .../LoadBalancerPolicyPolicyAttribute.java | 31 +- .../SslNegotiationPolicyAttribute.java | 31 +- .../outputs/ClusterAutoTerminationPolicy.java | 24 +- .../emr/outputs/ClusterBootstrapAction.java | 37 +- .../emr/outputs/ClusterCoreInstanceFleet.java | 67 +- ...erCoreInstanceFleetInstanceTypeConfig.java | 55 +- ...eFleetInstanceTypeConfigConfiguration.java | 31 +- ...tanceFleetInstanceTypeConfigEbsConfig.java | 43 +- ...CoreInstanceFleetLaunchSpecifications.java | 31 +- ...chSpecificationsOnDemandSpecification.java | 24 +- ...LaunchSpecificationsSpotSpecification.java | 43 +- .../emr/outputs/ClusterCoreInstanceGroup.java | 61 +- .../ClusterCoreInstanceGroupEbsConfig.java | 49 +- .../aws/emr/outputs/ClusterEc2Attributes.java | 73 +- .../outputs/ClusterKerberosAttributes.java | 49 +- .../outputs/ClusterMasterInstanceFleet.java | 67 +- ...MasterInstanceFleetInstanceTypeConfig.java | 55 +- ...eFleetInstanceTypeConfigConfiguration.java | 31 +- ...tanceFleetInstanceTypeConfigEbsConfig.java | 43 +- ...sterInstanceFleetLaunchSpecifications.java | 31 +- ...chSpecificationsOnDemandSpecification.java | 24 +- ...LaunchSpecificationsSpotSpecification.java | 43 +- .../outputs/ClusterMasterInstanceGroup.java | 55 +- .../ClusterMasterInstanceGroupEbsConfig.java | 49 +- .../pulumi/aws/emr/outputs/ClusterStep.java | 37 +- .../emr/outputs/ClusterStepHadoopJarStep.java | 43 +- .../emr/outputs/GetReleaseLabelsFilters.java | 31 +- .../emr/outputs/GetReleaseLabelsResult.java | 37 +- .../InstanceFleetInstanceTypeConfig.java | 55 +- ...eFleetInstanceTypeConfigConfiguration.java | 31 +- ...tanceFleetInstanceTypeConfigEbsConfig.java | 43 +- .../InstanceFleetLaunchSpecifications.java | 31 +- ...chSpecificationsOnDemandSpecification.java | 24 +- ...LaunchSpecificationsSpotSpecification.java | 43 +- .../emr/outputs/InstanceGroupEbsConfig.java | 43 +- .../ManagedScalingPolicyComputeLimit.java | 49 +- .../GetVirtualClusterContainerProvider.java | 37 +- ...etVirtualClusterContainerProviderInfo.java | 24 +- ...alClusterContainerProviderInfoEksInfo.java | 24 +- .../outputs/GetVirtualClusterResult.java | 67 +- .../VirtualClusterContainerProvider.java | 37 +- .../VirtualClusterContainerProviderInfo.java | 24 +- ...alClusterContainerProviderInfoEksInfo.java | 24 +- .../ApplicationAutoStartConfiguration.java | 24 +- .../ApplicationAutoStopConfiguration.java | 31 +- .../outputs/ApplicationInitialCapacity.java | 31 +- ...nInitialCapacityInitialCapacityConfig.java | 31 +- ...tialCapacityConfigWorkerConfiguration.java | 37 +- .../outputs/ApplicationMaximumCapacity.java | 37 +- .../ApplicationNetworkConfiguration.java | 31 +- .../fis/outputs/ExperimentTemplateAction.java | 55 +- .../ExperimentTemplateActionParameter.java | 31 +- .../ExperimentTemplateActionTarget.java | 31 +- .../ExperimentTemplateStopCondition.java | 31 +- .../fis/outputs/ExperimentTemplateTarget.java | 55 +- .../ExperimentTemplateTargetFilter.java | 31 +- .../ExperimentTemplateTargetResourceTag.java | 31 +- .../aws/fms/outputs/PolicyExcludeMap.java | 31 +- .../aws/fms/outputs/PolicyIncludeMap.java | 31 +- .../PolicySecurityServicePolicyData.java | 31 +- .../outputs/DataRepositoryAssociationS3.java | 31 +- ...positoryAssociationS3AutoExportPolicy.java | 24 +- ...positoryAssociationS3AutoImportPolicy.java | 24 +- .../fsx/outputs/GetOpenZfsSnapshotFilter.java | 31 +- .../fsx/outputs/GetOpenZfsSnapshotResult.java | 79 +- .../LustreFileSystemLogConfiguration.java | 31 +- .../OntapFileSystemDiskIopsConfiguration.java | 31 +- .../fsx/outputs/OntapFileSystemEndpoint.java | 31 +- .../OntapFileSystemEndpointIntercluster.java | 31 +- .../OntapFileSystemEndpointManagement.java | 31 +- ...alMachineActiveDirectoryConfiguration.java | 31 +- ...lfManagedActiveDirectoryConfiguration.java | 55 +- .../OntapStorageVirtualMachineEndpoint.java | 43 +- ...tapStorageVirtualMachineEndpointIscse.java | 31 +- ...orageVirtualMachineEndpointManagement.java | 31 +- .../OntapStorageVirtualMachineEndpointNf.java | 31 +- ...OntapStorageVirtualMachineEndpointSmb.java | 31 +- .../fsx/outputs/OntapVolumeTieringPolicy.java | 31 +- ...penZfsFileSystemDiskIopsConfiguration.java | 31 +- ...nZfsFileSystemRootVolumeConfiguration.java | 55 +- ...stemRootVolumeConfigurationNfsExports.java | 24 +- ...gurationNfsExportsClientConfiguration.java | 31 +- ...tVolumeConfigurationUserAndGroupQuota.java | 37 +- .../fsx/outputs/OpenZfsVolumeNfsExports.java | 24 +- ...fsVolumeNfsExportsClientConfiguration.java | 31 +- .../outputs/OpenZfsVolumeOriginSnapshot.java | 31 +- .../OpenZfsVolumeUserAndGroupQuota.java | 37 +- ...indowsFileSystemAuditLogConfiguration.java | 37 +- ...sFileSystemSelfManagedActiveDirectory.java | 55 +- .../outputs/AliasRoutingStrategy.java | 37 +- .../outputs/BuildStorageLocation.java | 43 +- .../FleetCertificateConfiguration.java | 24 +- .../outputs/FleetEc2InboundPermission.java | 43 +- .../FleetResourceCreationLimitPolicy.java | 31 +- .../outputs/FleetRuntimeConfiguration.java | 37 +- ...leetRuntimeConfigurationServerProcess.java | 37 +- .../GameServerGroupAutoScalingPolicy.java | 31 +- ...lingPolicyTargetTrackingConfiguration.java | 24 +- .../GameServerGroupInstanceDefinition.java | 31 +- .../GameServerGroupLaunchTemplate.java | 37 +- .../GameSessionQueuePlayerLatencyPolicy.java | 31 +- .../outputs/ScriptStorageLocation.java | 43 +- .../glacier/outputs/VaultNotification.java | 31 +- .../outputs/AcceleratorAttributes.java | 37 +- .../outputs/AcceleratorIpSet.java | 31 +- .../EndpointGroupEndpointConfiguration.java | 37 +- .../outputs/EndpointGroupPortOverride.java | 31 +- .../outputs/GetAcceleratorAttribute.java | 37 +- .../outputs/GetAcceleratorIpSet.java | 31 +- .../outputs/GetAcceleratorResult.java | 79 +- .../outputs/ListenerPortRange.java | 31 +- ...gDatabaseCreateTableDefaultPermission.java | 31 +- ...CreateTableDefaultPermissionPrincipal.java | 24 +- .../CatalogDatabaseTargetDatabase.java | 31 +- .../outputs/CatalogTablePartitionIndex.java | 37 +- .../outputs/CatalogTablePartitionKey.java | 37 +- .../CatalogTableStorageDescriptor.java | 97 +- .../CatalogTableStorageDescriptorColumn.java | 43 +- ...TableStorageDescriptorSchemaReference.java | 37 +- ...rageDescriptorSchemaReferenceSchemaId.java | 37 +- ...atalogTableStorageDescriptorSerDeInfo.java | 37 +- ...talogTableStorageDescriptorSkewedInfo.java | 37 +- ...talogTableStorageDescriptorSortColumn.java | 31 +- .../glue/outputs/CatalogTableTargetTable.java | 37 +- .../glue/outputs/ClassifierCsvClassifier.java | 55 +- .../outputs/ClassifierGrokClassifier.java | 37 +- .../outputs/ClassifierJsonClassifier.java | 24 +- .../glue/outputs/ClassifierXmlClassifier.java | 31 +- ...nectionPhysicalConnectionRequirements.java | 37 +- .../glue/outputs/CrawlerCatalogTarget.java | 31 +- .../aws/glue/outputs/CrawlerDeltaTarget.java | 37 +- .../glue/outputs/CrawlerDynamodbTarget.java | 37 +- .../aws/glue/outputs/CrawlerJdbcTarget.java | 37 +- .../outputs/CrawlerLineageConfiguration.java | 24 +- .../glue/outputs/CrawlerMongodbTarget.java | 37 +- .../glue/outputs/CrawlerRecrawlPolicy.java | 24 +- .../aws/glue/outputs/CrawlerS3Target.java | 55 +- .../outputs/CrawlerSchemaChangePolicy.java | 31 +- ...SettingsDataCatalogEncryptionSettings.java | 31 +- ...nSettingsConnectionPasswordEncryption.java | 31 +- ...logEncryptionSettingsEncryptionAtRest.java | 31 +- ...nnectionPhysicalConnectionRequirement.java | 37 +- .../aws/glue/outputs/GetConnectionResult.java | 79 +- ...nSettingsDataCatalogEncryptionSetting.java | 31 +- ...onSettingConnectionPasswordEncryption.java | 31 +- ...alogEncryptionSettingEncryptionAtRest.java | 31 +- ...etDataCatalogEncryptionSettingsResult.java | 37 +- .../aws/glue/outputs/GetScriptDagEdge.java | 37 +- .../aws/glue/outputs/GetScriptDagNode.java | 43 +- .../aws/glue/outputs/GetScriptDagNodeArg.java | 37 +- .../aws/glue/outputs/GetScriptResult.java | 55 +- .../pulumi/aws/glue/outputs/JobCommand.java | 37 +- .../glue/outputs/JobExecutionProperty.java | 24 +- .../glue/outputs/JobNotificationProperty.java | 24 +- .../outputs/MLTransformInputRecordTable.java | 43 +- .../glue/outputs/MLTransformParameters.java | 31 +- ...nsformParametersFindMatchesParameters.java | 43 +- .../aws/glue/outputs/MLTransformSchema.java | 31 +- .../outputs/PartitionIndexPartitionIndex.java | 37 +- .../outputs/PartitionStorageDescriptor.java | 91 +- .../PartitionStorageDescriptorColumn.java | 37 +- .../PartitionStorageDescriptorSerDeInfo.java | 37 +- .../PartitionStorageDescriptorSkewedInfo.java | 37 +- .../PartitionStorageDescriptorSortColumn.java | 31 +- ...yConfigurationEncryptionConfiguration.java | 37 +- ...tionConfigurationCloudwatchEncryption.java | 31 +- ...onConfigurationJobBookmarksEncryption.java | 31 +- ...onEncryptionConfigurationS3Encryption.java | 31 +- .../aws/glue/outputs/TriggerAction.java | 55 +- .../TriggerActionNotificationProperty.java | 24 +- .../TriggerEventBatchingCondition.java | 31 +- .../aws/glue/outputs/TriggerPredicate.java | 31 +- .../outputs/TriggerPredicateCondition.java | 49 +- .../UserDefinedFunctionResourceUri.java | 31 +- .../grafana/outputs/GetWorkspaceResult.java | 145 +- .../outputs/DetectorDatasources.java | 37 +- .../DetectorDatasourcesKubernetes.java | 24 +- ...etectorDatasourcesKubernetesAuditLogs.java | 24 +- .../DetectorDatasourcesMalwareProtection.java | 24 +- ...ProtectionScanEc2InstanceWithFindings.java | 24 +- ...ScanEc2InstanceWithFindingsEbsVolumes.java | 24 +- .../outputs/DetectorDatasourcesS3Logs.java | 24 +- .../outputs/FilterFindingCriteria.java | 24 +- .../FilterFindingCriteriaCriterion.java | 61 +- .../guardduty/outputs/GetDetectorResult.java | 43 +- .../OrganizationConfigurationDatasources.java | 37 +- ...ionConfigurationDatasourcesKubernetes.java | 24 +- ...urationDatasourcesKubernetesAuditLogs.java | 24 +- ...igurationDatasourcesMalwareProtection.java | 24 +- ...ProtectionScanEc2InstanceWithFindings.java | 24 +- ...ScanEc2InstanceWithFindingsEbsVolumes.java | 24 +- ...izationConfigurationDatasourcesS3Logs.java | 24 +- .../iam/outputs/GetAccountAliasResult.java | 31 +- .../aws/iam/outputs/GetGroupResult.java | 55 +- .../pulumi/aws/iam/outputs/GetGroupUser.java | 43 +- .../iam/outputs/GetInstanceProfileResult.java | 67 +- .../outputs/GetInstanceProfilesResult.java | 49 +- .../GetOpenidConnectProviderResult.java | 55 +- .../iam/outputs/GetPolicyDocumentResult.java | 73 +- .../outputs/GetPolicyDocumentStatement.java | 73 +- .../GetPolicyDocumentStatementCondition.java | 37 +- ...etPolicyDocumentStatementNotPrincipal.java | 31 +- .../GetPolicyDocumentStatementPrincipal.java | 31 +- .../aws/iam/outputs/GetPolicyResult.java | 73 +- .../pulumi/aws/iam/outputs/GetRoleResult.java | 85 +- .../aws/iam/outputs/GetRolesResult.java | 49 +- .../iam/outputs/GetSamlProviderResult.java | 61 +- .../outputs/GetServerCertificateResult.java | 85 +- .../iam/outputs/GetSessionContextResult.java | 55 +- .../pulumi/aws/iam/outputs/GetUserResult.java | 61 +- .../aws/iam/outputs/GetUserSshKeyResult.java | 61 +- .../aws/iam/outputs/GetUsersResult.java | 49 +- .../aws/iam/outputs/RoleInlinePolicy.java | 31 +- .../identitystore/outputs/GetGroupFilter.java | 31 +- .../identitystore/outputs/GetGroupResult.java | 49 +- .../identitystore/outputs/GetUserFilter.java | 31 +- .../identitystore/outputs/GetUserResult.java | 49 +- .../outputs/ContainerRecipeComponent.java | 31 +- .../ContainerRecipeComponentParameter.java | 31 +- .../ContainerRecipeInstanceConfiguration.java | 31 +- ...stanceConfigurationBlockDeviceMapping.java | 43 +- ...nceConfigurationBlockDeviceMappingEbs.java | 67 +- .../ContainerRecipeTargetRepository.java | 31 +- ...DistributionConfigurationDistribution.java | 55 +- ...tributionAmiDistributionConfiguration.java | 55 +- ...ributionConfigurationLaunchPermission.java | 43 +- ...ionContainerDistributionConfiguration.java | 37 +- ...ributionConfigurationTargetRepository.java | 31 +- ...onDistributionFastLaunchConfiguration.java | 49 +- ...FastLaunchConfigurationLaunchTemplate.java | 37 +- ...nchConfigurationSnapshotConfiguration.java | 24 +- ...stributionLaunchTemplateConfiguration.java | 37 +- .../outputs/GetComponentResult.java | 109 +- .../outputs/GetComponentsFilter.java | 31 +- .../outputs/GetComponentsResult.java | 49 +- .../outputs/GetContainerRecipeComponent.java | 31 +- .../GetContainerRecipeComponentParameter.java | 31 +- ...tContainerRecipeInstanceConfiguration.java | 31 +- ...stanceConfigurationBlockDeviceMapping.java | 43 +- ...anceConfigurationBlockDeviceMappingEb.java | 67 +- .../outputs/GetContainerRecipeResult.java | 127 +- .../GetContainerRecipeTargetRepository.java | 31 +- .../outputs/GetContainerRecipesFilter.java | 31 +- .../outputs/GetContainerRecipesResult.java | 49 +- ...DistributionConfigurationDistribution.java | 55 +- ...tributionAmiDistributionConfiguration.java | 55 +- ...ributionConfigurationLaunchPermission.java | 43 +- ...ionContainerDistributionConfiguration.java | 37 +- ...ributionConfigurationTargetRepository.java | 31 +- ...onDistributionFastLaunchConfiguration.java | 49 +- ...FastLaunchConfigurationLaunchTemplate.java | 37 +- ...nchConfigurationSnapshotConfiguration.java | 24 +- ...stributionLaunchTemplateConfiguration.java | 37 +- .../GetDistributionConfigurationResult.java | 67 +- .../GetDistributionConfigurationsFilter.java | 31 +- .../GetDistributionConfigurationsResult.java | 43 +- .../GetImageImageTestsConfiguration.java | 31 +- .../outputs/GetImageOutputResource.java | 24 +- .../outputs/GetImageOutputResourceAmi.java | 49 +- ...tImagePipelineImageTestsConfiguration.java | 31 +- .../outputs/GetImagePipelineResult.java | 127 +- .../outputs/GetImagePipelineSchedule.java | 31 +- .../outputs/GetImagePipelinesFilter.java | 31 +- .../outputs/GetImagePipelinesResult.java | 43 +- .../GetImageRecipeBlockDeviceMapping.java | 43 +- .../GetImageRecipeBlockDeviceMappingEb.java | 67 +- .../outputs/GetImageRecipeComponent.java | 31 +- .../GetImageRecipeComponentParameter.java | 31 +- .../outputs/GetImageRecipeResult.java | 103 +- .../outputs/GetImageRecipesFilter.java | 31 +- .../outputs/GetImageRecipesResult.java | 49 +- .../imagebuilder/outputs/GetImageResult.java | 115 +- ...reConfigurationInstanceMetadataOption.java | 31 +- ...GetInfrastructureConfigurationLogging.java | 24 +- ...frastructureConfigurationLoggingS3Log.java | 31 +- .../GetInfrastructureConfigurationResult.java | 121 +- ...GetInfrastructureConfigurationsFilter.java | 31 +- ...GetInfrastructureConfigurationsResult.java | 43 +- .../outputs/ImageImageTestsConfiguration.java | 31 +- .../outputs/ImageOutputResource.java | 24 +- .../outputs/ImageOutputResourceAmi.java | 49 +- .../ImagePipelineImageTestsConfiguration.java | 31 +- .../outputs/ImagePipelineSchedule.java | 37 +- .../ImageRecipeBlockDeviceMapping.java | 43 +- .../ImageRecipeBlockDeviceMappingEbs.java | 67 +- .../outputs/ImageRecipeComponent.java | 31 +- .../ImageRecipeComponentParameter.java | 31 +- .../ImageRecipeSystemsManagerAgent.java | 24 +- ...eConfigurationInstanceMetadataOptions.java | 31 +- .../InfrastructureConfigurationLogging.java | 24 +- ...rastructureConfigurationLoggingS3Logs.java | 31 +- .../AssessmentTemplateEventSubscription.java | 31 +- .../outputs/GetRulesPackagesResult.java | 31 +- .../aws/iot/outputs/GetEndpointResult.java | 37 +- ...rationThingGroupIndexingConfiguration.java | 37 +- ...GroupIndexingConfigurationCustomField.java | 31 +- ...roupIndexingConfigurationManagedField.java | 31 +- ...nfigurationThingIndexingConfiguration.java | 55 +- ...ThingIndexingConfigurationCustomField.java | 31 +- ...hingIndexingConfigurationManagedField.java | 31 +- ...ovisioningTemplatePreProvisioningHook.java | 31 +- .../aws/iot/outputs/ThingGroupMetadata.java | 37 +- .../ThingGroupMetadataRootToParentGroup.java | 31 +- .../aws/iot/outputs/ThingGroupProperties.java | 31 +- .../ThingGroupPropertiesAttributePayload.java | 24 +- .../aws/iot/outputs/ThingTypeProperties.java | 31 +- .../iot/outputs/TopicRuleCloudwatchAlarm.java | 43 +- .../iot/outputs/TopicRuleCloudwatchLog.java | 31 +- .../outputs/TopicRuleCloudwatchMetric.java | 55 +- .../TopicRuleDestinationVpcConfiguration.java | 43 +- .../aws/iot/outputs/TopicRuleDynamodb.java | 79 +- .../aws/iot/outputs/TopicRuleDynamodbv2.java | 31 +- .../outputs/TopicRuleDynamodbv2PutItem.java | 24 +- .../iot/outputs/TopicRuleElasticsearch.java | 49 +- .../aws/iot/outputs/TopicRuleErrorAction.java | 133 +- .../TopicRuleErrorActionCloudwatchAlarm.java | 43 +- .../TopicRuleErrorActionCloudwatchLogs.java | 31 +- .../TopicRuleErrorActionCloudwatchMetric.java | 55 +- .../outputs/TopicRuleErrorActionDynamodb.java | 79 +- .../TopicRuleErrorActionDynamodbv2.java | 31 +- ...TopicRuleErrorActionDynamodbv2PutItem.java | 24 +- .../TopicRuleErrorActionElasticsearch.java | 49 +- .../outputs/TopicRuleErrorActionFirehose.java | 37 +- .../iot/outputs/TopicRuleErrorActionHttp.java | 37 +- .../TopicRuleErrorActionHttpHttpHeader.java | 31 +- .../TopicRuleErrorActionIotAnalytics.java | 31 +- .../TopicRuleErrorActionIotEvents.java | 37 +- .../outputs/TopicRuleErrorActionKafka.java | 49 +- .../outputs/TopicRuleErrorActionKinesis.java | 37 +- .../outputs/TopicRuleErrorActionLambda.java | 24 +- .../TopicRuleErrorActionRepublish.java | 37 +- .../iot/outputs/TopicRuleErrorActionS3.java | 43 +- .../iot/outputs/TopicRuleErrorActionSns.java | 37 +- .../iot/outputs/TopicRuleErrorActionSqs.java | 37 +- .../TopicRuleErrorActionStepFunctions.java | 37 +- .../TopicRuleErrorActionTimestream.java | 49 +- ...picRuleErrorActionTimestreamDimension.java | 31 +- ...picRuleErrorActionTimestreamTimestamp.java | 31 +- .../aws/iot/outputs/TopicRuleFirehose.java | 37 +- .../pulumi/aws/iot/outputs/TopicRuleHttp.java | 37 +- .../iot/outputs/TopicRuleHttpHttpHeader.java | 31 +- .../aws/iot/outputs/TopicRuleIotAnalytic.java | 31 +- .../aws/iot/outputs/TopicRuleIotEvent.java | 37 +- .../aws/iot/outputs/TopicRuleKafka.java | 49 +- .../aws/iot/outputs/TopicRuleKinesis.java | 37 +- .../aws/iot/outputs/TopicRuleLambda.java | 24 +- .../aws/iot/outputs/TopicRuleRepublish.java | 37 +- .../pulumi/aws/iot/outputs/TopicRuleS3.java | 43 +- .../pulumi/aws/iot/outputs/TopicRuleSns.java | 37 +- .../pulumi/aws/iot/outputs/TopicRuleSqs.java | 37 +- .../iot/outputs/TopicRuleStepFunction.java | 37 +- .../aws/iot/outputs/TopicRuleTimestream.java | 49 +- .../outputs/TopicRuleTimestreamDimension.java | 31 +- .../outputs/TopicRuleTimestreamTimestamp.java | 31 +- .../outputs/DataSourceConfiguration.java | 31 +- ...ataSourceConfigurationS3Configuration.java | 55 +- ...urationAccessControlListConfiguration.java | 24 +- ...urationDocumentsMetadataConfiguration.java | 24 +- ...eConfigurationWebCrawlerConfiguration.java | 73 +- ...figurationAuthenticationConfiguration.java | 24 +- ...ationConfigurationBasicAuthentication.java | 37 +- ...rawlerConfigurationProxyConfiguration.java | 37 +- ...figurationWebCrawlerConfigurationUrls.java | 31 +- ...ConfigurationUrlsSeedUrlConfiguration.java | 31 +- ...onfigurationUrlsSiteMapsConfiguration.java | 24 +- ...CustomDocumentEnrichmentConfiguration.java | 43 +- ...hmentConfigurationInlineConfiguration.java | 37 +- ...igurationInlineConfigurationCondition.java | 37 +- ...onfigurationConditionConditionOnValue.java | 43 +- ...onfigurationInlineConfigurationTarget.java | 37 +- ...ionTargetTargetDocumentAttributeValue.java | 43 +- ...rationPostExtractionHookConfiguration.java | 37 +- ...nHookConfigurationInvocationCondition.java | 37 +- ...onInvocationConditionConditionOnValue.java | 43 +- ...urationPreExtractionHookConfiguration.java | 37 +- ...nHookConfigurationInvocationCondition.java | 37 +- ...onInvocationConditionConditionOnValue.java | 43 +- .../outputs/ExperienceConfiguration.java | 31 +- ...nfigurationContentSourceConfiguration.java | 37 +- ...onfigurationUserIdentityConfiguration.java | 24 +- .../kendra/outputs/ExperienceEndpoint.java | 31 +- .../pulumi/aws/kendra/outputs/FaqS3Path.java | 31 +- .../outputs/GetExperienceConfiguration.java | 31 +- ...nfigurationContentSourceConfiguration.java | 37 +- ...onfigurationUserIdentityConfiguration.java | 24 +- .../kendra/outputs/GetExperienceEndpoint.java | 31 +- .../kendra/outputs/GetExperienceResult.java | 97 +- .../aws/kendra/outputs/GetFaqResult.java | 109 +- .../aws/kendra/outputs/GetFaqS3Path.java | 31 +- .../kendra/outputs/GetIndexCapacityUnit.java | 31 +- ...exDocumentMetadataConfigurationUpdate.java | 43 +- ...tMetadataConfigurationUpdateRelevance.java | 49 +- ...mentMetadataConfigurationUpdateSearch.java | 43 +- .../outputs/GetIndexIndexStatistic.java | 31 +- .../GetIndexIndexStatisticFaqStatistic.java | 24 +- ...exIndexStatisticTextDocumentStatistic.java | 31 +- .../aws/kendra/outputs/GetIndexResult.java | 127 +- ...ndexServerSideEncryptionConfiguration.java | 24 +- ...IndexUserGroupResolutionConfiguration.java | 24 +- .../GetIndexUserTokenConfiguration.java | 31 +- ...nfigurationJsonTokenTypeConfiguration.java | 31 +- ...onfigurationJwtTokenTypeConfiguration.java | 61 +- .../GetQuerySuggestionsBlockListResult.java | 109 +- ...QuerySuggestionsBlockListSourceS3Path.java | 31 +- .../kendra/outputs/GetThesaurusResult.java | 115 +- .../outputs/GetThesaurusSourceS3Path.java | 31 +- .../kendra/outputs/IndexCapacityUnits.java | 31 +- ...exDocumentMetadataConfigurationUpdate.java | 43 +- ...tMetadataConfigurationUpdateRelevance.java | 49 +- ...mentMetadataConfigurationUpdateSearch.java | 43 +- .../kendra/outputs/IndexIndexStatistic.java | 31 +- .../IndexIndexStatisticFaqStatistic.java | 24 +- ...exIndexStatisticTextDocumentStatistic.java | 31 +- ...ndexServerSideEncryptionConfiguration.java | 24 +- ...IndexUserGroupResolutionConfiguration.java | 24 +- .../outputs/IndexUserTokenConfigurations.java | 31 +- ...figurationsJsonTokenTypeConfiguration.java | 31 +- ...nfigurationsJwtTokenTypeConfiguration.java | 61 +- ...QuerySuggestionsBlockListSourceS3Path.java | 31 +- .../kendra/outputs/ThesaurusSourceS3Path.java | 31 +- .../outputs/TableCapacitySpecification.java | 37 +- .../aws/keyspaces/outputs/TableComment.java | 24 +- .../outputs/TableEncryptionSpecification.java | 31 +- .../outputs/TablePointInTimeRecovery.java | 24 +- .../outputs/TableSchemaDefinition.java | 43 +- .../TableSchemaDefinitionClusteringKey.java | 31 +- .../outputs/TableSchemaDefinitionColumn.java | 31 +- .../TableSchemaDefinitionPartitionKey.java | 24 +- .../TableSchemaDefinitionStaticColumn.java | 24 +- .../aws/keyspaces/outputs/TableTtl.java | 24 +- ...csApplicationCloudwatchLoggingOptions.java | 37 +- .../outputs/AnalyticsApplicationInputs.java | 73 +- ...yticsApplicationInputsKinesisFirehose.java | 31 +- ...alyticsApplicationInputsKinesisStream.java | 31 +- ...AnalyticsApplicationInputsParallelism.java | 24 +- ...licationInputsProcessingConfiguration.java | 24 +- ...onInputsProcessingConfigurationLambda.java | 31 +- .../AnalyticsApplicationInputsSchema.java | 37 +- ...csApplicationInputsSchemaRecordColumn.java | 37 +- ...csApplicationInputsSchemaRecordFormat.java | 31 +- ...tsSchemaRecordFormatMappingParameters.java | 31 +- ...chemaRecordFormatMappingParametersCsv.java | 31 +- ...hemaRecordFormatMappingParametersJson.java | 24 +- ...onInputsStartingPositionConfiguration.java | 24 +- .../outputs/AnalyticsApplicationOutput.java | 55 +- ...yticsApplicationOutputKinesisFirehose.java | 31 +- ...alyticsApplicationOutputKinesisStream.java | 31 +- .../AnalyticsApplicationOutputLambda.java | 31 +- .../AnalyticsApplicationOutputSchema.java | 24 +- ...lyticsApplicationReferenceDataSources.java | 43 +- ...ticsApplicationReferenceDataSourcesS3.java | 37 +- ...ApplicationReferenceDataSourcesSchema.java | 37 +- ...eferenceDataSourcesSchemaRecordColumn.java | 37 +- ...eferenceDataSourcesSchemaRecordFormat.java | 31 +- ...esSchemaRecordFormatMappingParameters.java | 31 +- ...chemaRecordFormatMappingParametersCsv.java | 31 +- ...hemaRecordFormatMappingParametersJson.java | 24 +- ...iveryStreamElasticsearchConfiguration.java | 97 +- ...ConfigurationCloudwatchLoggingOptions.java | 37 +- ...hConfigurationProcessingConfiguration.java | 31 +- ...ationProcessingConfigurationProcessor.java | 31 +- ...essingConfigurationProcessorParameter.java | 31 +- ...amElasticsearchConfigurationVpcConfig.java | 43 +- ...DeliveryStreamExtendedS3Configuration.java | 103 +- ...ConfigurationCloudwatchLoggingOptions.java | 37 +- ...tionDataFormatConversionConfiguration.java | 43 +- ...ConfigurationInputFormatConfiguration.java | 24 +- ...nInputFormatConfigurationDeserializer.java | 31 +- ...onfigurationDeserializerHiveJsonSerDe.java | 24 +- ...nfigurationDeserializerOpenXJsonSerDe.java | 37 +- ...onfigurationOutputFormatConfiguration.java | 24 +- ...onOutputFormatConfigurationSerializer.java | 31 +- ...FormatConfigurationSerializerOrcSerDe.java | 79 +- ...atConfigurationSerializerParquetSerDe.java | 55 +- ...rsionConfigurationSchemaConfiguration.java | 55 +- ...ationDynamicPartitioningConfiguration.java | 31 +- ...3ConfigurationProcessingConfiguration.java | 31 +- ...ationProcessingConfigurationProcessor.java | 31 +- ...essingConfigurationProcessorParameter.java | 31 +- ...dS3ConfigurationS3BackupConfiguration.java | 73 +- ...ConfigurationCloudwatchLoggingOptions.java | 37 +- ...liveryStreamHttpEndpointConfiguration.java | 85 +- ...ConfigurationCloudwatchLoggingOptions.java | 37 +- ...tConfigurationProcessingConfiguration.java | 31 +- ...ationProcessingConfigurationProcessor.java | 31 +- ...essingConfigurationProcessorParameter.java | 31 +- ...ointConfigurationRequestConfiguration.java | 31 +- ...onRequestConfigurationCommonAttribute.java | 31 +- ...iveryStreamKinesisSourceConfiguration.java | 31 +- ...seDeliveryStreamRedshiftConfiguration.java | 91 +- ...ConfigurationCloudwatchLoggingOptions.java | 37 +- ...tConfigurationProcessingConfiguration.java | 31 +- ...ationProcessingConfigurationProcessor.java | 31 +- ...essingConfigurationProcessorParameter.java | 31 +- ...iftConfigurationS3BackupConfiguration.java | 73 +- ...ConfigurationCloudwatchLoggingOptions.java | 37 +- ...FirehoseDeliveryStreamS3Configuration.java | 73 +- ...ConfigurationCloudwatchLoggingOptions.java | 37 +- ...oseDeliveryStreamServerSideEncryption.java | 37 +- ...hoseDeliveryStreamSplunkConfiguration.java | 67 +- ...ConfigurationCloudwatchLoggingOptions.java | 37 +- ...kConfigurationProcessingConfiguration.java | 31 +- ...ationProcessingConfigurationProcessor.java | 31 +- ...essingConfigurationProcessorParameter.java | 31 +- .../GetFirehoseDeliveryStreamResult.java | 37 +- .../outputs/GetStreamConsumerResult.java | 55 +- .../aws/kinesis/outputs/GetStreamResult.java | 85 +- .../outputs/GetStreamStreamModeDetail.java | 24 +- .../outputs/StreamStreamModeDetails.java | 24 +- .../ApplicationApplicationConfiguration.java | 61 +- ...igurationApplicationCodeConfiguration.java | 31 +- ...plicationCodeConfigurationCodeContent.java | 31 +- ...igurationCodeContentS3ContentLocation.java | 37 +- ...ationApplicationSnapshotConfiguration.java | 24 +- ...ionConfigurationEnvironmentProperties.java | 24 +- ...ionEnvironmentPropertiesPropertyGroup.java | 31 +- ...gurationFlinkApplicationConfiguration.java | 37 +- ...nConfigurationCheckpointConfiguration.java | 43 +- ...nConfigurationMonitoringConfiguration.java | 37 +- ...ConfigurationParallelismConfiguration.java | 43 +- ...licationConfigurationRunConfiguration.java | 31 +- ...rationApplicationRestoreConfiguration.java | 31 +- ...RunConfigurationFlinkRunConfiguration.java | 24 +- ...figurationSqlApplicationConfiguration.java | 37 +- ...ationSqlApplicationConfigurationInput.java | 73 +- ...ionConfigurationInputInputParallelism.java | 24 +- ...tionInputInputProcessingConfiguration.java | 24 +- ...singConfigurationInputLambdaProcessor.java | 24 +- ...licationConfigurationInputInputSchema.java | 37 +- ...igurationInputInputSchemaRecordColumn.java | 37 +- ...igurationInputInputSchemaRecordFormat.java | 31 +- ...utSchemaRecordFormatMappingParameters.java | 31 +- ...MappingParametersCsvMappingParameters.java | 31 +- ...appingParametersJsonMappingParameters.java | 24 +- ...putInputStartingPositionConfiguration.java | 24 +- ...onfigurationInputKinesisFirehoseInput.java | 24 +- ...ConfigurationInputKinesisStreamsInput.java | 24 +- ...tionSqlApplicationConfigurationOutput.java | 55 +- ...nConfigurationOutputDestinationSchema.java | 24 +- ...figurationOutputKinesisFirehoseOutput.java | 24 +- ...nfigurationOutputKinesisStreamsOutput.java | 24 +- ...cationConfigurationOutputLambdaOutput.java | 24 +- ...ationConfigurationReferenceDataSource.java | 43 +- ...ionReferenceDataSourceReferenceSchema.java | 37 +- ...DataSourceReferenceSchemaRecordColumn.java | 37 +- ...DataSourceReferenceSchemaRecordFormat.java | 31 +- ...ceSchemaRecordFormatMappingParameters.java | 31 +- ...MappingParametersCsvMappingParameters.java | 31 +- ...appingParametersJsonMappingParameters.java | 24 +- ...erenceDataSourceS3ReferenceDataSource.java | 31 +- ...licationConfigurationVpcConfiguration.java | 43 +- .../ApplicationCloudwatchLoggingOptions.java | 31 +- .../aws/kms/outputs/GetAliasResult.java | 49 +- .../aws/kms/outputs/GetCipherTextResult.java | 49 +- .../GetKeyMultiRegionConfiguration.java | 37 +- ...KeyMultiRegionConfigurationPrimaryKey.java | 31 +- ...KeyMultiRegionConfigurationReplicaKey.java | 31 +- .../pulumi/aws/kms/outputs/GetKeyResult.java | 127 +- .../aws/kms/outputs/GetPublicKeyResult.java | 79 +- .../aws/kms/outputs/GetSecretResult.java | 31 +- .../aws/kms/outputs/GetSecretSecret.java | 43 +- .../aws/kms/outputs/GetSecretsResult.java | 37 +- .../aws/kms/outputs/GetSecretsSecret.java | 43 +- .../aws/kms/outputs/GrantConstraint.java | 31 +- ...ttingsCreateDatabaseDefaultPermission.java | 31 +- ...eSettingsCreateTableDefaultPermission.java | 31 +- ...ttingsCreateDatabaseDefaultPermission.java | 31 +- ...eSettingsCreateTableDefaultPermission.java | 31 +- .../outputs/GetDataLakeSettingsResult.java | 55 +- .../outputs/GetPermissionsDataLocation.java | 31 +- .../outputs/GetPermissionsDatabase.java | 31 +- .../outputs/GetPermissionsLfTag.java | 37 +- .../outputs/GetPermissionsLfTagPolicy.java | 37 +- .../GetPermissionsLfTagPolicyExpression.java | 31 +- .../outputs/GetPermissionsResult.java | 91 +- .../outputs/GetPermissionsTable.java | 43 +- .../GetPermissionsTableWithColumns.java | 55 +- .../outputs/GetResourceResult.java | 43 +- .../outputs/PermissionsDataLocation.java | 31 +- .../outputs/PermissionsDatabase.java | 31 +- .../outputs/PermissionsLfTag.java | 37 +- .../outputs/PermissionsLfTagPolicy.java | 37 +- .../PermissionsLfTagPolicyExpression.java | 31 +- .../outputs/PermissionsTable.java | 43 +- .../outputs/PermissionsTableWithColumns.java | 55 +- .../outputs/ResourceLfTagsDatabase.java | 31 +- .../outputs/ResourceLfTagsLfTag.java | 37 +- .../outputs/ResourceLfTagsTable.java | 43 +- .../ResourceLfTagsTableWithColumns.java | 55 +- .../lambda/outputs/AliasRoutingConfig.java | 24 +- .../CodeSigningConfigAllowedPublishers.java | 24 +- .../outputs/CodeSigningConfigPolicies.java | 24 +- .../EventSourceMappingDestinationConfig.java | 24 +- ...urceMappingDestinationConfigOnFailure.java | 24 +- .../EventSourceMappingFilterCriteria.java | 24 +- ...ventSourceMappingFilterCriteriaFilter.java | 24 +- ...ntSourceMappingSelfManagedEventSource.java | 24 +- ...ourceMappingSourceAccessConfiguration.java | 31 +- .../outputs/FunctionDeadLetterConfig.java | 24 +- .../lambda/outputs/FunctionEnvironment.java | 24 +- .../outputs/FunctionEphemeralStorage.java | 24 +- ...ionEventInvokeConfigDestinationConfig.java | 31 +- ...nvokeConfigDestinationConfigOnFailure.java | 24 +- ...nvokeConfigDestinationConfigOnSuccess.java | 24 +- .../outputs/FunctionFileSystemConfig.java | 31 +- .../lambda/outputs/FunctionImageConfig.java | 37 +- .../lambda/outputs/FunctionTracingConfig.java | 24 +- .../aws/lambda/outputs/FunctionUrlCors.java | 55 +- .../aws/lambda/outputs/FunctionVpcConfig.java | 37 +- .../aws/lambda/outputs/GetAliasResult.java | 61 +- .../GetCodeSigningConfigAllowedPublisher.java | 24 +- .../outputs/GetCodeSigningConfigPolicy.java | 24 +- .../outputs/GetCodeSigningConfigResult.java | 61 +- .../outputs/GetFunctionDeadLetterConfig.java | 24 +- .../outputs/GetFunctionEnvironment.java | 24 +- .../outputs/GetFunctionEphemeralStorage.java | 24 +- .../outputs/GetFunctionFileSystemConfig.java | 31 +- .../aws/lambda/outputs/GetFunctionResult.java | 205 ++- .../outputs/GetFunctionTracingConfig.java | 24 +- .../aws/lambda/outputs/GetFunctionUrlCor.java | 55 +- .../lambda/outputs/GetFunctionUrlResult.java | 79 +- .../lambda/outputs/GetFunctionVpcConfig.java | 37 +- .../lambda/outputs/GetInvocationResult.java | 49 +- .../lambda/outputs/GetLayerVersionResult.java | 115 +- .../aws/lb/outputs/GetHostedZoneIdResult.java | 37 +- .../lb/outputs/GetListenerDefaultAction.java | 67 +- ...tenerDefaultActionAuthenticateCognito.java | 67 +- ...ListenerDefaultActionAuthenticateOidc.java | 85 +- ...GetListenerDefaultActionFixedResponse.java | 37 +- .../GetListenerDefaultActionForward.java | 31 +- ...istenerDefaultActionForwardStickiness.java | 31 +- ...stenerDefaultActionForwardTargetGroup.java | 31 +- .../GetListenerDefaultActionRedirect.java | 55 +- .../aws/lb/outputs/GetListenerResult.java | 79 +- .../lb/outputs/GetLoadBalancerAccessLogs.java | 37 +- .../aws/lb/outputs/GetLoadBalancerResult.java | 157 +- .../outputs/GetLoadBalancerSubnetMapping.java | 49 +- .../lb/outputs/GetTargetGroupHealthCheck.java | 73 +- .../aws/lb/outputs/GetTargetGroupResult.java | 133 +- .../lb/outputs/GetTargetGroupStickiness.java | 43 +- .../aws/lb/outputs/ListenerDefaultAction.java | 67 +- ...tenerDefaultActionAuthenticateCognito.java | 67 +- ...ListenerDefaultActionAuthenticateOidc.java | 85 +- .../ListenerDefaultActionFixedResponse.java | 37 +- .../outputs/ListenerDefaultActionForward.java | 31 +- ...istenerDefaultActionForwardStickiness.java | 31 +- ...stenerDefaultActionForwardTargetGroup.java | 31 +- .../ListenerDefaultActionRedirect.java | 55 +- .../aws/lb/outputs/ListenerRuleAction.java | 67 +- ...ListenerRuleActionAuthenticateCognito.java | 67 +- .../ListenerRuleActionAuthenticateOidc.java | 85 +- .../ListenerRuleActionFixedResponse.java | 37 +- .../lb/outputs/ListenerRuleActionForward.java | 31 +- .../ListenerRuleActionForwardStickiness.java | 31 +- .../ListenerRuleActionForwardTargetGroup.java | 31 +- .../outputs/ListenerRuleActionRedirect.java | 55 +- .../aws/lb/outputs/ListenerRuleCondition.java | 55 +- .../ListenerRuleConditionHostHeader.java | 24 +- .../ListenerRuleConditionHttpHeader.java | 31 +- ...istenerRuleConditionHttpRequestMethod.java | 24 +- .../ListenerRuleConditionPathPattern.java | 24 +- .../ListenerRuleConditionQueryString.java | 31 +- .../ListenerRuleConditionSourceIp.java | 24 +- .../lb/outputs/LoadBalancerAccessLogs.java | 37 +- .../lb/outputs/LoadBalancerSubnetMapping.java | 49 +- .../lb/outputs/TargetGroupHealthCheck.java | 73 +- .../aws/lb/outputs/TargetGroupStickiness.java | 43 +- .../aws/lex/outputs/BotAbortStatement.java | 31 +- .../lex/outputs/BotAbortStatementMessage.java | 37 +- .../lex/outputs/BotAliasConversationLogs.java | 31 +- .../BotAliasConversationLogsLogSetting.java | 49 +- .../lex/outputs/BotClarificationPrompt.java | 37 +- .../BotClarificationPromptMessage.java | 37 +- .../com/pulumi/aws/lex/outputs/BotIntent.java | 31 +- .../aws/lex/outputs/GetBotAliasResult.java | 73 +- .../pulumi/aws/lex/outputs/GetBotResult.java | 121 +- .../aws/lex/outputs/GetIntentResult.java | 73 +- .../outputs/GetSlotTypeEnumerationValue.java | 31 +- .../aws/lex/outputs/GetSlotTypeResult.java | 73 +- .../outputs/IntentConclusionStatement.java | 31 +- .../IntentConclusionStatementMessage.java | 37 +- .../lex/outputs/IntentConfirmationPrompt.java | 37 +- .../IntentConfirmationPromptMessage.java | 37 +- .../aws/lex/outputs/IntentDialogCodeHook.java | 31 +- .../aws/lex/outputs/IntentFollowUpPrompt.java | 31 +- .../outputs/IntentFollowUpPromptPrompt.java | 37 +- .../IntentFollowUpPromptPromptMessage.java | 37 +- ...ntentFollowUpPromptRejectionStatement.java | 31 +- ...llowUpPromptRejectionStatementMessage.java | 37 +- .../outputs/IntentFulfillmentActivity.java | 31 +- .../IntentFulfillmentActivityCodeHook.java | 31 +- .../lex/outputs/IntentRejectionStatement.java | 31 +- .../IntentRejectionStatementMessage.java | 37 +- .../pulumi/aws/lex/outputs/IntentSlot.java | 73 +- .../IntentSlotValueElicitationPrompt.java | 37 +- ...tentSlotValueElicitationPromptMessage.java | 37 +- .../lex/outputs/SlotTypeEnumerationValue.java | 31 +- ...inerServiceDeploymentVersionContainer.java | 49 +- ...erviceDeploymentVersionPublicEndpoint.java | 37 +- ...ymentVersionPublicEndpointHealthCheck.java | 55 +- .../ContainerServicePublicDomainNames.java | 24 +- ...erServicePublicDomainNamesCertificate.java | 31 +- .../outputs/InstancePublicPortsPortInfo.java | 43 +- .../outputs/GetGeofenceCollectionResult.java | 67 +- .../location/outputs/GetMapConfiguration.java | 24 +- .../aws/location/outputs/GetMapResult.java | 67 +- .../GetPlaceIndexDataSourceConfiguration.java | 24 +- .../location/outputs/GetPlaceIndexResult.java | 73 +- .../outputs/GetRouteCalculatorResult.java | 67 +- .../location/outputs/GetTrackerResult.java | 73 +- .../location/outputs/MapConfiguration.java | 24 +- .../PlaceIndexDataSourceConfiguration.java | 24 +- .../FindingsFilterFindingCriteria.java | 24 +- ...indingsFilterFindingCriteriaCriterion.java | 67 +- ...S3BucketAssociationClassificationType.java | 31 +- ...ationExportConfigurationS3Destination.java | 37 +- .../ClassificationJobS3JobDefinition.java | 37 +- ...ationJobS3JobDefinitionBucketCriteria.java | 31 +- ...S3JobDefinitionBucketCriteriaExcludes.java | 24 +- ...obDefinitionBucketCriteriaExcludesAnd.java | 31 +- ...ketCriteriaExcludesAndSimpleCriterion.java | 37 +- ...BucketCriteriaExcludesAndTagCriterion.java | 31 +- ...iteriaExcludesAndTagCriterionTagValue.java | 31 +- ...S3JobDefinitionBucketCriteriaIncludes.java | 24 +- ...obDefinitionBucketCriteriaIncludesAnd.java | 31 +- ...ketCriteriaIncludesAndSimpleCriterion.java | 37 +- ...BucketCriteriaIncludesAndTagCriterion.java | 31 +- ...iteriaIncludesAndTagCriterionTagValue.java | 31 +- ...ionJobS3JobDefinitionBucketDefinition.java | 31 +- ...assificationJobS3JobDefinitionScoping.java | 31 +- ...tionJobS3JobDefinitionScopingExcludes.java | 24 +- ...nJobS3JobDefinitionScopingExcludesAnd.java | 31 +- ...tionScopingExcludesAndSimpleScopeTerm.java | 37 +- ...initionScopingExcludesAndTagScopeTerm.java | 43 +- ...copingExcludesAndTagScopeTermTagValue.java | 31 +- ...tionJobS3JobDefinitionScopingIncludes.java | 24 +- ...nJobS3JobDefinitionScopingIncludesAnd.java | 31 +- ...tionScopingIncludesAndSimpleScopeTerm.java | 37 +- ...initionScopingIncludesAndTagScopeTerm.java | 43 +- ...copingIncludesAndTagScopeTermTagValue.java | 31 +- .../ClassificationJobScheduleFrequency.java | 37 +- .../ClassificationJobUserPausedDetail.java | 37 +- .../outputs/QueueReservationPlanSettings.java | 37 +- .../outputs/ChannelHlsIngest.java | 24 +- .../ChannelHlsIngestIngestEndpoint.java | 37 +- .../outputs/ClusterClusterEndpoint.java | 31 +- .../aws/memorydb/outputs/ClusterShard.java | 43 +- .../memorydb/outputs/ClusterShardNode.java | 43 +- .../outputs/ClusterShardNodeEndpoint.java | 31 +- .../aws/memorydb/outputs/GetAclResult.java | 55 +- .../outputs/GetClusterClusterEndpoint.java | 31 +- .../memorydb/outputs/GetClusterResult.java | 169 +- .../aws/memorydb/outputs/GetClusterShard.java | 43 +- .../memorydb/outputs/GetClusterShardNode.java | 43 +- .../outputs/GetClusterShardNodeEndpoint.java | 31 +- .../outputs/GetParameterGroupParameter.java | 31 +- .../outputs/GetParameterGroupResult.java | 61 +- .../GetSnapshotClusterConfiguration.java | 97 +- .../memorydb/outputs/GetSnapshotResult.java | 67 +- .../outputs/GetSubnetGroupResult.java | 61 +- .../outputs/GetUserAuthenticationMode.java | 31 +- .../aws/memorydb/outputs/GetUserResult.java | 61 +- .../outputs/ParameterGroupParameter.java | 31 +- .../outputs/SnapshotClusterConfiguration.java | 97 +- .../outputs/UserAuthenticationMode.java | 37 +- .../aws/mq/outputs/BrokerConfiguration.java | 31 +- .../mq/outputs/BrokerEncryptionOptions.java | 31 +- .../pulumi/aws/mq/outputs/BrokerInstance.java | 37 +- .../mq/outputs/BrokerLdapServerMetadata.java | 85 +- .../com/pulumi/aws/mq/outputs/BrokerLogs.java | 31 +- .../BrokerMaintenanceWindowStartTime.java | 37 +- .../com/pulumi/aws/mq/outputs/BrokerUser.java | 43 +- .../mq/outputs/GetBrokerConfiguration.java | 31 +- .../mq/outputs/GetBrokerEncryptionOption.java | 31 +- .../aws/mq/outputs/GetBrokerInstance.java | 37 +- .../outputs/GetBrokerLdapServerMetadata.java | 85 +- .../pulumi/aws/mq/outputs/GetBrokerLogs.java | 31 +- .../GetBrokerMaintenanceWindowStartTime.java | 37 +- .../aws/mq/outputs/GetBrokerResult.java | 151 +- .../pulumi/aws/mq/outputs/GetBrokerUser.java | 37 +- ...anceTypeOfferingsBrokerInstanceOption.java | 55 +- ...sBrokerInstanceOptionAvailabilityZone.java | 24 +- .../GetInstanceTypeOfferingsResult.java | 49 +- .../outputs/ClusterBrokerNodeGroupInfo.java | 61 +- ...erBrokerNodeGroupInfoConnectivityInfo.java | 24 +- ...GroupInfoConnectivityInfoPublicAccess.java | 24 +- ...ClusterBrokerNodeGroupInfoStorageInfo.java | 24 +- ...odeGroupInfoStorageInfoEbsStorageInfo.java | 31 +- ...foEbsStorageInfoProvisionedThroughput.java | 31 +- .../outputs/ClusterClientAuthentication.java | 37 +- .../ClusterClientAuthenticationSasl.java | 31 +- .../ClusterClientAuthenticationTls.java | 24 +- .../msk/outputs/ClusterConfigurationInfo.java | 31 +- .../msk/outputs/ClusterEncryptionInfo.java | 31 +- ...sterEncryptionInfoEncryptionInTransit.java | 31 +- .../aws/msk/outputs/ClusterLoggingInfo.java | 24 +- .../outputs/ClusterLoggingInfoBrokerLogs.java | 37 +- ...erLoggingInfoBrokerLogsCloudwatchLogs.java | 31 +- .../ClusterLoggingInfoBrokerLogsFirehose.java | 31 +- .../ClusterLoggingInfoBrokerLogsS3.java | 37 +- .../msk/outputs/ClusterOpenMonitoring.java | 24 +- .../ClusterOpenMonitoringPrometheus.java | 31 +- ...erOpenMonitoringPrometheusJmxExporter.java | 24 +- ...rOpenMonitoringPrometheusNodeExporter.java | 24 +- .../outputs/GetBrokerNodesNodeInfoList.java | 55 +- .../aws/msk/outputs/GetBrokerNodesResult.java | 37 +- .../aws/msk/outputs/GetClusterResult.java | 109 +- .../msk/outputs/GetConfigurationResult.java | 61 +- .../msk/outputs/GetKafkaVersionResult.java | 43 +- ...ServerlessClusterClientAuthentication.java | 24 +- ...erlessClusterClientAuthenticationSasl.java | 24 +- ...essClusterClientAuthenticationSaslIam.java | 24 +- .../outputs/ServerlessClusterVpcConfig.java | 31 +- .../mskconnect/outputs/ConnectorCapacity.java | 31 +- .../outputs/ConnectorCapacityAutoscaling.java | 49 +- ...ectorCapacityAutoscalingScaleInPolicy.java | 24 +- ...ctorCapacityAutoscalingScaleOutPolicy.java | 24 +- .../ConnectorCapacityProvisionedCapacity.java | 31 +- .../outputs/ConnectorKafkaCluster.java | 24 +- ...nnectorKafkaClusterApacheKafkaCluster.java | 31 +- ...ctorKafkaClusterApacheKafkaClusterVpc.java | 31 +- ...ectorKafkaClusterClientAuthentication.java | 24 +- ...nectorKafkaClusterEncryptionInTransit.java | 24 +- .../outputs/ConnectorLogDelivery.java | 24 +- ...ConnectorLogDeliveryWorkerLogDelivery.java | 37 +- ...liveryWorkerLogDeliveryCloudwatchLogs.java | 31 +- ...rLogDeliveryWorkerLogDeliveryFirehose.java | 31 +- ...nnectorLogDeliveryWorkerLogDeliveryS3.java | 37 +- .../mskconnect/outputs/ConnectorPlugin.java | 24 +- .../outputs/ConnectorPluginCustomPlugin.java | 31 +- .../outputs/ConnectorWorkerConfiguration.java | 31 +- .../outputs/CustomPluginLocation.java | 24 +- .../outputs/CustomPluginLocationS3.java | 37 +- .../outputs/GetConnectorResult.java | 49 +- .../outputs/GetCustomPluginResult.java | 55 +- .../outputs/GetWorkerConfigurationResult.java | 55 +- .../mwaa/outputs/EnvironmentLastUpdated.java | 37 +- .../outputs/EnvironmentLastUpdatedError.java | 31 +- .../EnvironmentLoggingConfiguration.java | 49 +- ...LoggingConfigurationDagProcessingLogs.java | 37 +- ...mentLoggingConfigurationSchedulerLogs.java | 37 +- ...vironmentLoggingConfigurationTaskLogs.java | 37 +- ...mentLoggingConfigurationWebserverLogs.java | 37 +- ...ronmentLoggingConfigurationWorkerLogs.java | 37 +- .../EnvironmentNetworkConfiguration.java | 31 +- .../ClusterParameterGroupParameter.java | 37 +- .../outputs/GetEngineVersionResult.java | 91 +- .../outputs/GetOrderableDbInstanceResult.java | 151 +- .../outputs/ParameterGroupParameter.java | 37 +- .../outputs/FirewallFirewallStatus.java | 24 +- .../FirewallFirewallStatusSyncState.java | 31 +- ...wallFirewallStatusSyncStateAttachment.java | 31 +- .../outputs/FirewallPolicyFirewallPolicy.java | 61 +- ...cyFirewallPolicyStatefulEngineOptions.java | 24 +- ...ewallPolicyStatefulRuleGroupReference.java | 31 +- ...cyFirewallPolicyStatelessCustomAction.java | 31 +- ...StatelessCustomActionActionDefinition.java | 24 +- ...onActionDefinitionPublishMetricAction.java | 24 +- ...efinitionPublishMetricActionDimension.java | 24 +- ...wallPolicyStatelessRuleGroupReference.java | 31 +- .../outputs/FirewallSubnetMapping.java | 24 +- .../GetFirewallEncryptionConfiguration.java | 31 +- .../outputs/GetFirewallFirewallStatus.java | 43 +- ...allFirewallStatusCapacityUsageSummary.java | 24 +- ...irewallStatusCapacityUsageSummaryCidr.java | 37 +- ...apacityUsageSummaryCidrIpSetReference.java | 24 +- .../GetFirewallFirewallStatusSyncState.java | 31 +- ...wallFirewallStatusSyncStateAttachment.java | 37 +- .../GetFirewallPolicyFirewallPolicy.java | 61 +- ...icyFirewallPolicyStatefulEngineOption.java | 24 +- ...ewallPolicyStatefulRuleGroupReference.java | 31 +- ...cyFirewallPolicyStatelessCustomAction.java | 31 +- ...StatelessCustomActionActionDefinition.java | 24 +- ...onActionDefinitionPublishMetricAction.java | 24 +- ...efinitionPublishMetricActionDimension.java | 24 +- ...wallPolicyStatelessRuleGroupReference.java | 31 +- .../outputs/GetFirewallPolicyResult.java | 61 +- .../outputs/GetFirewallResult.java | 103 +- .../outputs/GetFirewallSubnetMapping.java | 24 +- ...gingConfigurationLoggingConfiguration.java | 24 +- ...gingConfigurationLogDestinationConfig.java | 37 +- .../outputs/RuleGroupRuleGroup.java | 37 +- .../RuleGroupRuleGroupRuleVariables.java | 31 +- .../RuleGroupRuleGroupRuleVariablesIpSet.java | 31 +- ...GroupRuleGroupRuleVariablesIpSetIpSet.java | 24 +- ...uleGroupRuleGroupRuleVariablesPortSet.java | 31 +- ...pRuleGroupRuleVariablesPortSetPortSet.java | 24 +- .../RuleGroupRuleGroupRulesSource.java | 43 +- ...upRuleGroupRulesSourceRulesSourceList.java | 37 +- ...GroupRuleGroupRulesSourceStatefulRule.java | 37 +- ...uleGroupRulesSourceStatefulRuleHeader.java | 55 +- ...roupRulesSourceStatefulRuleRuleOption.java | 31 +- ...sSourceStatelessRulesAndCustomActions.java | 31 +- ...lessRulesAndCustomActionsCustomAction.java | 31 +- ...omActionsCustomActionActionDefinition.java | 24 +- ...onActionDefinitionPublishMetricAction.java | 24 +- ...efinitionPublishMetricActionDimension.java | 24 +- ...essRulesAndCustomActionsStatelessRule.java | 31 +- ...tomActionsStatelessRuleRuleDefinition.java | 31 +- ...lessRuleRuleDefinitionMatchAttributes.java | 55 +- ...eDefinitionMatchAttributesDestination.java | 24 +- ...initionMatchAttributesDestinationPort.java | 31 +- ...leRuleDefinitionMatchAttributesSource.java | 24 +- ...leDefinitionMatchAttributesSourcePort.java | 31 +- ...eRuleDefinitionMatchAttributesTcpFlag.java | 31 +- ...RuleGroupRuleGroupStatefulRuleOptions.java | 24 +- .../outputs/DeviceAwsLocation.java | 31 +- .../outputs/DeviceLocation.java | 37 +- .../outputs/GetConnectionResult.java | 79 +- .../outputs/GetConnectionsResult.java | 49 +- ...NetworkPolicyDocumentAttachmentPolicy.java | 49 +- ...kPolicyDocumentAttachmentPolicyAction.java | 43 +- ...licyDocumentAttachmentPolicyCondition.java | 43 +- ...olicyDocumentCoreNetworkConfiguration.java | 43 +- ...tCoreNetworkConfigurationEdgeLocation.java | 37 +- .../GetCoreNetworkPolicyDocumentResult.java | 61 +- .../GetCoreNetworkPolicyDocumentSegment.java | 61 +- ...oreNetworkPolicyDocumentSegmentAction.java | 67 +- .../outputs/GetDeviceAwsLocation.java | 31 +- .../outputs/GetDeviceLocation.java | 37 +- .../outputs/GetDeviceResult.java | 97 +- .../outputs/GetDevicesResult.java | 49 +- .../outputs/GetGlobalNetworkResult.java | 49 +- .../outputs/GetGlobalNetworksResult.java | 37 +- .../outputs/GetLinkBandwidth.java | 31 +- .../networkmanager/outputs/GetLinkResult.java | 79 +- .../outputs/GetLinksResult.java | 61 +- .../outputs/GetSiteLocation.java | 37 +- .../networkmanager/outputs/GetSiteResult.java | 61 +- .../outputs/GetSitesResult.java | 43 +- .../networkmanager/outputs/LinkBandwidth.java | 31 +- .../networkmanager/outputs/SiteLocation.java | 37 +- .../outputs/VpcAttachmentOptions.java | 24 +- .../DomainAdvancedSecurityOptions.java | 37 +- ...ancedSecurityOptionsMasterUserOptions.java | 37 +- .../outputs/DomainAutoTuneOptions.java | 37 +- ...ainAutoTuneOptionsMaintenanceSchedule.java | 37 +- ...uneOptionsMaintenanceScheduleDuration.java | 31 +- .../outputs/DomainClusterConfig.java | 85 +- ...DomainClusterConfigColdStorageOptions.java | 24 +- ...omainClusterConfigZoneAwarenessConfig.java | 24 +- .../outputs/DomainCognitoOptions.java | 43 +- .../outputs/DomainDomainEndpointOptions.java | 49 +- .../opensearch/outputs/DomainEbsOptions.java | 49 +- .../outputs/DomainEncryptAtRest.java | 31 +- .../outputs/DomainLogPublishingOption.java | 37 +- .../outputs/DomainNodeToNodeEncryption.java | 24 +- .../outputs/DomainSamlOptionsSamlOptions.java | 61 +- .../DomainSamlOptionsSamlOptionsIdp.java | 31 +- .../outputs/DomainSnapshotOptions.java | 24 +- .../opensearch/outputs/DomainVpcOptions.java | 43 +- .../GetDomainAdvancedSecurityOption.java | 31 +- .../outputs/GetDomainAutoTuneOption.java | 37 +- ...mainAutoTuneOptionMaintenanceSchedule.java | 37 +- ...TuneOptionMaintenanceScheduleDuration.java | 31 +- .../outputs/GetDomainClusterConfig.java | 85 +- ...tDomainClusterConfigColdStorageOption.java | 24 +- ...omainClusterConfigZoneAwarenessConfig.java | 24 +- .../outputs/GetDomainCognitoOption.java | 43 +- .../outputs/GetDomainEbsOption.java | 49 +- .../outputs/GetDomainEncryptionAtRest.java | 31 +- .../outputs/GetDomainLogPublishingOption.java | 37 +- .../GetDomainNodeToNodeEncryption.java | 24 +- .../opensearch/outputs/GetDomainResult.java | 157 +- .../outputs/GetDomainSnapshotOption.java | 24 +- .../outputs/GetDomainVpcOption.java | 43 +- .../outputs/ApplicationAppSource.java | 55 +- .../outputs/ApplicationEnvironment.java | 37 +- .../outputs/ApplicationSslConfiguration.java | 37 +- .../CustomLayerCloudwatchConfiguration.java | 31 +- ...LayerCloudwatchConfigurationLogStream.java | 85 +- .../outputs/CustomLayerEbsVolume.java | 61 +- ...csClusterLayerCloudwatchConfiguration.java | 31 +- ...LayerCloudwatchConfigurationLogStream.java | 85 +- .../outputs/EcsClusterLayerEbsVolume.java | 61 +- .../GangliaLayerCloudwatchConfiguration.java | 31 +- ...LayerCloudwatchConfigurationLogStream.java | 85 +- .../outputs/GangliaLayerEbsVolume.java | 61 +- .../HaproxyLayerCloudwatchConfiguration.java | 31 +- ...LayerCloudwatchConfigurationLogStream.java | 85 +- .../outputs/HaproxyLayerEbsVolume.java | 61 +- .../outputs/InstanceEbsBlockDevice.java | 55 +- .../outputs/InstanceEphemeralBlockDevice.java | 31 +- .../outputs/InstanceRootBlockDevice.java | 43 +- .../JavaAppLayerCloudwatchConfiguration.java | 31 +- ...LayerCloudwatchConfigurationLogStream.java | 85 +- .../outputs/JavaAppLayerEbsVolume.java | 61 +- ...MemcachedLayerCloudwatchConfiguration.java | 31 +- ...LayerCloudwatchConfigurationLogStream.java | 85 +- .../outputs/MemcachedLayerEbsVolume.java | 61 +- .../MysqlLayerCloudwatchConfiguration.java | 31 +- ...LayerCloudwatchConfigurationLogStream.java | 85 +- .../opsworks/outputs/MysqlLayerEbsVolume.java | 61 +- ...NodejsAppLayerCloudwatchConfiguration.java | 31 +- ...LayerCloudwatchConfigurationLogStream.java | 85 +- .../outputs/NodejsAppLayerEbsVolume.java | 61 +- .../PhpAppLayerCloudwatchConfiguration.java | 31 +- ...LayerCloudwatchConfigurationLogStream.java | 85 +- .../outputs/PhpAppLayerEbsVolume.java | 61 +- .../RailsAppLayerCloudwatchConfiguration.java | 31 +- ...LayerCloudwatchConfigurationLogStream.java | 85 +- .../outputs/RailsAppLayerEbsVolume.java | 61 +- .../outputs/StackCustomCookbooksSource.java | 55 +- ...StaticWebLayerCloudwatchConfiguration.java | 31 +- ...LayerCloudwatchConfigurationLogStream.java | 85 +- .../outputs/StaticWebLayerEbsVolume.java | 61 +- ...dAdministratorsDelegatedAdministrator.java | 67 +- .../GetDelegatedAdministratorsResult.java | 37 +- .../GetDelegatedServicesDelegatedService.java | 31 +- .../outputs/GetDelegatedServicesResult.java | 37 +- .../outputs/GetOrganizationAccount.java | 49 +- .../GetOrganizationNonMasterAccount.java | 49 +- .../outputs/GetOrganizationResult.java | 85 +- .../outputs/GetOrganizationRoot.java | 43 +- .../GetOrganizationRootPolicyType.java | 31 +- .../GetOrganizationalUnitsChildren.java | 37 +- .../outputs/GetOrganizationalUnitsResult.java | 37 +- .../outputs/GetResourceTagsResult.java | 37 +- .../outputs/OrganizationAccount.java | 49 +- .../outputs/OrganizationNonMasterAccount.java | 49 +- .../outputs/OrganizationRoot.java | 43 +- .../outputs/OrganizationRootPolicyType.java | 31 +- .../outputs/OrganizationalUnitAccount.java | 43 +- .../aws/outposts/outputs/GetAssetResult.java | 61 +- .../aws/outposts/outputs/GetAssetsResult.java | 37 +- .../outputs/GetOutpostInstanceTypeResult.java | 43 +- .../GetOutpostInstanceTypesResult.java | 37 +- .../outposts/outputs/GetOutpostResult.java | 67 +- .../outposts/outputs/GetOutpostsResult.java | 61 +- .../aws/outposts/outputs/GetSiteResult.java | 43 +- .../aws/outposts/outputs/GetSitesResult.java | 31 +- .../aws/outputs/GetAmiBlockDeviceMapping.java | 43 +- .../com/pulumi/aws/outputs/GetAmiFilter.java | 31 +- .../pulumi/aws/outputs/GetAmiIdsFilter.java | 31 +- .../pulumi/aws/outputs/GetAmiIdsResult.java | 61 +- .../pulumi/aws/outputs/GetAmiProductCode.java | 31 +- .../com/pulumi/aws/outputs/GetAmiResult.java | 247 ++- .../com/pulumi/aws/outputs/GetArnResult.java | 61 +- .../outputs/GetAutoscalingGroupsFilter.java | 31 +- .../outputs/GetAutoscalingGroupsResult.java | 43 +- .../outputs/GetAvailabilityZoneFilter.java | 31 +- .../outputs/GetAvailabilityZoneResult.java | 103 +- .../outputs/GetAvailabilityZonesFilter.java | 31 +- .../outputs/GetAvailabilityZonesResult.java | 73 +- .../GetBillingServiceAccountResult.java | 31 +- .../aws/outputs/GetCallerIdentityResult.java | 43 +- .../aws/outputs/GetCanonicalUserIdResult.java | 31 +- .../aws/outputs/GetDefaultTagsResult.java | 31 +- .../aws/outputs/GetElasticIpFilter.java | 31 +- .../aws/outputs/GetElasticIpResult.java | 115 +- .../pulumi/aws/outputs/GetIpRangesResult.java | 67 +- .../aws/outputs/GetPartitionResult.java | 43 +- .../aws/outputs/GetPrefixListFilter.java | 31 +- .../aws/outputs/GetPrefixListResult.java | 49 +- .../pulumi/aws/outputs/GetRegionResult.java | 43 +- .../pulumi/aws/outputs/GetRegionsFilter.java | 31 +- .../pulumi/aws/outputs/GetRegionsResult.java | 43 +- .../pulumi/aws/outputs/GetServiceResult.java | 67 +- .../aws/pinpoint/outputs/AppCampaignHook.java | 37 +- .../aws/pinpoint/outputs/AppLimits.java | 43 +- .../aws/pinpoint/outputs/AppQuietTime.java | 31 +- .../aws/pricing/outputs/GetProductFilter.java | 31 +- .../aws/pricing/outputs/GetProductResult.java | 43 +- .../aws/qldb/outputs/GetLedgerResult.java | 61 +- .../outputs/StreamKinesisConfiguration.java | 31 +- .../outputs/DataSourceCredentials.java | 31 +- .../DataSourceCredentialsCredentialPair.java | 31 +- .../outputs/DataSourceParameters.java | 139 +- ...taSourceParametersAmazonElasticsearch.java | 24 +- .../outputs/DataSourceParametersAthena.java | 24 +- .../outputs/DataSourceParametersAurora.java | 37 +- .../DataSourceParametersAuroraPostgresql.java | 37 +- .../DataSourceParametersAwsIotAnalytics.java | 24 +- .../outputs/DataSourceParametersJira.java | 24 +- .../outputs/DataSourceParametersMariaDb.java | 37 +- .../outputs/DataSourceParametersMysql.java | 37 +- .../outputs/DataSourceParametersOracle.java | 37 +- .../DataSourceParametersPostgresql.java | 37 +- .../outputs/DataSourceParametersPresto.java | 37 +- .../outputs/DataSourceParametersRds.java | 31 +- .../outputs/DataSourceParametersRedshift.java | 43 +- .../outputs/DataSourceParametersS3.java | 24 +- ...ourceParametersS3ManifestFileLocation.java | 31 +- .../DataSourceParametersServiceNow.java | 24 +- .../DataSourceParametersSnowflake.java | 37 +- .../outputs/DataSourceParametersSpark.java | 31 +- .../DataSourceParametersSqlServer.java | 37 +- .../outputs/DataSourceParametersTeradata.java | 37 +- .../outputs/DataSourceParametersTwitter.java | 31 +- .../outputs/DataSourcePermission.java | 31 +- .../outputs/DataSourceSslProperties.java | 24 +- .../DataSourceVpcConnectionProperties.java | 24 +- .../ram/outputs/GetResourceShareFilter.java | 31 +- .../ram/outputs/GetResourceShareResult.java | 73 +- .../ClusterParameterGroupParameter.java | 37 +- .../outputs/ClusterRestoreToPointInTime.java | 43 +- .../aws/rds/outputs/ClusterS3Import.java | 49 +- .../outputs/ClusterScalingConfiguration.java | 49 +- ...usterServerlessv2ScalingConfiguration.java | 31 +- .../aws/rds/outputs/GetCertificateResult.java | 73 +- .../aws/rds/outputs/GetClusterResult.java | 193 ++- .../rds/outputs/GetClusterSnapshotResult.java | 145 +- .../rds/outputs/GetEngineVersionFilter.java | 31 +- .../rds/outputs/GetEngineVersionResult.java | 139 +- .../rds/outputs/GetEventCategoriesResult.java | 37 +- .../aws/rds/outputs/GetInstanceResult.java | 259 ++- .../outputs/GetOrderableDbInstanceResult.java | 193 ++- .../pulumi/aws/rds/outputs/GetProxyAuth.java | 49 +- .../aws/rds/outputs/GetProxyResult.java | 97 +- .../aws/rds/outputs/GetSnapshotResult.java | 163 +- .../aws/rds/outputs/GetSubnetGroupResult.java | 61 +- .../GlobalClusterGlobalClusterMember.java | 31 +- .../outputs/InstanceRestoreToPointInTime.java | 49 +- .../aws/rds/outputs/InstanceS3Import.java | 49 +- .../aws/rds/outputs/OptionGroupOption.java | 55 +- .../OptionGroupOptionOptionSetting.java | 31 +- .../rds/outputs/ParameterGroupParameter.java | 37 +- .../com/pulumi/aws/rds/outputs/ProxyAuth.java | 49 +- ...efaultTargetGroupConnectionPoolConfig.java | 49 +- .../aws/rds/outputs/SecurityGroupIngress.java | 43 +- .../redshift/outputs/ClusterClusterNode.java | 37 +- .../aws/redshift/outputs/ClusterLogging.java | 49 +- .../redshift/outputs/ClusterSnapshotCopy.java | 37 +- .../outputs/EndpointAccessVpcEndpoint.java | 37 +- ...ointAccessVpcEndpointNetworkInterface.java | 43 +- .../outputs/GetClusterClusterNode.java | 37 +- .../outputs/GetClusterCredentialsResult.java | 73 +- .../redshift/outputs/GetClusterResult.java | 259 ++- .../outputs/GetOrderableClusterResult.java | 55 +- .../outputs/GetServiceAccountResult.java | 37 +- .../outputs/GetSubnetGroupResult.java | 55 +- .../outputs/ParameterGroupParameter.java | 31 +- .../outputs/ScheduledActionTargetAction.java | 37 +- ...heduledActionTargetActionPauseCluster.java | 24 +- ...eduledActionTargetActionResizeCluster.java | 49 +- ...eduledActionTargetActionResumeCluster.java | 24 +- .../outputs/SecurityGroupIngress.java | 37 +- .../outputs/StatementParameter.java | 31 +- .../outputs/GroupResourceQuery.java | 31 +- .../GetResourcesResourceTagMappingList.java | 37 +- ...esourceTagMappingListComplianceDetail.java | 37 +- .../outputs/GetResourcesResult.java | 61 +- .../outputs/GetResourcesTagFilter.java | 31 +- .../outputs/TrustAnchorSource.java | 31 +- .../outputs/TrustAnchorSourceSourceData.java | 31 +- .../outputs/GetDelegationSetResult.java | 43 +- .../outputs/GetResolverEndpointFilter.java | 31 +- .../outputs/GetResolverEndpointResult.java | 73 +- .../outputs/GetResolverRuleResult.java | 79 +- .../outputs/GetResolverRulesResult.java | 61 +- .../GetTrafficPolicyDocumentEndpoint.java | 43 +- .../GetTrafficPolicyDocumentResult.java | 67 +- .../outputs/GetTrafficPolicyDocumentRule.java | 67 +- ...olicyDocumentRuleGeoProximityLocation.java | 67 +- .../GetTrafficPolicyDocumentRuleItem.java | 31 +- .../GetTrafficPolicyDocumentRuleLocation.java | 67 +- .../GetTrafficPolicyDocumentRulePrimary.java | 43 +- .../GetTrafficPolicyDocumentRuleRegion.java | 49 +- ...GetTrafficPolicyDocumentRuleSecondary.java | 43 +- .../aws/route53/outputs/GetZoneResult.java | 97 +- .../aws/route53/outputs/RecordAlias.java | 37 +- .../outputs/RecordFailoverRoutingPolicy.java | 24 +- .../RecordGeolocationRoutingPolicy.java | 37 +- .../outputs/RecordLatencyRoutingPolicy.java | 24 +- .../outputs/RecordWeightedRoutingPolicy.java | 24 +- .../outputs/ResolverEndpointIpAddress.java | 37 +- .../route53/outputs/ResolverRuleTargetIp.java | 31 +- .../pulumi/aws/route53/outputs/ZoneVpc.java | 31 +- .../outputs/RegisteredDomainAdminContact.java | 103 +- .../outputs/RegisteredDomainNameServer.java | 31 +- .../RegisteredDomainRegistrantContact.java | 103 +- .../outputs/RegisteredDomainTechContact.java | 103 +- .../outputs/ClusterClusterEndpoint.java | 31 +- .../outputs/SafetyRuleRuleConfig.java | 37 +- .../outputs/ResourceSetResource.java | 43 +- .../ResourceSetResourceDnsTargetResource.java | 49 +- ...sourceDnsTargetResourceTargetResource.java | 31 +- ...rgetResourceTargetResourceNlbResource.java | 24 +- ...rgetResourceTargetResourceR53Resource.java | 31 +- .../AppMonitorAppMonitorConfiguration.java | 73 +- ...ssPointPublicAccessBlockConfiguration.java | 43 +- .../outputs/AccessPointVpcConfiguration.java | 24 +- .../outputs/AnalyticsConfigurationFilter.java | 31 +- ...ticsConfigurationStorageClassAnalysis.java | 24 +- ...urationStorageClassAnalysisDataExport.java | 31 +- ...ageClassAnalysisDataExportDestination.java | 24 +- ...aExportDestinationS3BucketDestination.java | 43 +- .../BucketAclV2AccessControlPolicy.java | 31 +- .../BucketAclV2AccessControlPolicyGrant.java | 31 +- ...tAclV2AccessControlPolicyGrantGrantee.java | 49 +- .../BucketAclV2AccessControlPolicyOwner.java | 31 +- .../BucketCorsConfigurationV2CorsRule.java | 55 +- .../pulumi/aws/s3/outputs/BucketCorsRule.java | 49 +- .../pulumi/aws/s3/outputs/BucketGrant.java | 43 +- ...IntelligentTieringConfigurationFilter.java | 31 +- ...ntelligentTieringConfigurationTiering.java | 31 +- .../BucketLifecycleConfigurationV2Rule.java | 73 +- ...nV2RuleAbortIncompleteMultipartUpload.java | 24 +- ...ifecycleConfigurationV2RuleExpiration.java | 37 +- ...ketLifecycleConfigurationV2RuleFilter.java | 49 +- ...LifecycleConfigurationV2RuleFilterAnd.java | 43 +- ...LifecycleConfigurationV2RuleFilterTag.java | 31 +- ...tionV2RuleNoncurrentVersionExpiration.java | 31 +- ...tionV2RuleNoncurrentVersionTransition.java | 37 +- ...ifecycleConfigurationV2RuleTransition.java | 37 +- .../aws/s3/outputs/BucketLifecycleRule.java | 73 +- .../BucketLifecycleRuleExpiration.java | 37 +- ...ecycleRuleNoncurrentVersionExpiration.java | 24 +- ...ecycleRuleNoncurrentVersionTransition.java | 31 +- .../BucketLifecycleRuleTransition.java | 37 +- .../pulumi/aws/s3/outputs/BucketLogging.java | 31 +- .../outputs/BucketLoggingV2TargetGrant.java | 31 +- .../BucketLoggingV2TargetGrantGrantee.java | 49 +- .../aws/s3/outputs/BucketMetricFilter.java | 31 +- .../BucketNotificationLambdaFunction.java | 49 +- .../s3/outputs/BucketNotificationQueue.java | 49 +- .../s3/outputs/BucketNotificationTopic.java | 49 +- .../BucketObjectLockConfiguration.java | 31 +- .../BucketObjectLockConfigurationRule.java | 24 +- ...LockConfigurationRuleDefaultRetention.java | 37 +- .../BucketObjectLockConfigurationV2Rule.java | 24 +- ...ckConfigurationV2RuleDefaultRetention.java | 37 +- .../outputs/BucketOwnershipControlsRule.java | 24 +- .../outputs/BucketReplicationConfigRule.java | 73 +- ...tionConfigRuleDeleteMarkerReplication.java | 24 +- ...ucketReplicationConfigRuleDestination.java | 61 +- ...leDestinationAccessControlTranslation.java | 24 +- ...uleDestinationEncryptionConfiguration.java | 24 +- ...plicationConfigRuleDestinationMetrics.java | 31 +- ...gRuleDestinationMetricsEventThreshold.java | 24 +- ...nConfigRuleDestinationReplicationTime.java | 31 +- ...figRuleDestinationReplicationTimeTime.java | 24 +- ...onConfigRuleExistingObjectReplication.java | 24 +- .../BucketReplicationConfigRuleFilter.java | 37 +- .../BucketReplicationConfigRuleFilterAnd.java | 31 +- .../BucketReplicationConfigRuleFilterTag.java | 31 +- ...tionConfigRuleSourceSelectionCriteria.java | 31 +- ...SelectionCriteriaReplicaModifications.java | 24 +- ...lectionCriteriaSseKmsEncryptedObjects.java | 24 +- .../BucketReplicationConfiguration.java | 31 +- .../BucketReplicationConfigurationRule.java | 67 +- ...plicationConfigurationRuleDestination.java | 61 +- ...leDestinationAccessControlTranslation.java | 24 +- ...onConfigurationRuleDestinationMetrics.java | 31 +- ...urationRuleDestinationReplicationTime.java | 31 +- ...ketReplicationConfigurationRuleFilter.java | 31 +- ...figurationRuleSourceSelectionCriteria.java | 24 +- ...lectionCriteriaSseKmsEncryptedObjects.java | 24 +- ...cketServerSideEncryptionConfiguration.java | 24 +- ...ServerSideEncryptionConfigurationRule.java | 31 +- ...uleApplyServerSideEncryptionByDefault.java | 31 +- ...rverSideEncryptionConfigurationV2Rule.java | 31 +- ...uleApplyServerSideEncryptionByDefault.java | 31 +- .../aws/s3/outputs/BucketV2CorsRule.java | 49 +- .../pulumi/aws/s3/outputs/BucketV2Grant.java | 43 +- .../aws/s3/outputs/BucketV2LifecycleRule.java | 73 +- .../BucketV2LifecycleRuleExpiration.java | 37 +- ...ecycleRuleNoncurrentVersionExpiration.java | 24 +- ...ecycleRuleNoncurrentVersionTransition.java | 31 +- .../BucketV2LifecycleRuleTransition.java | 37 +- .../aws/s3/outputs/BucketV2Logging.java | 31 +- .../BucketV2ObjectLockConfiguration.java | 31 +- .../BucketV2ObjectLockConfigurationRule.java | 24 +- ...LockConfigurationRuleDefaultRetention.java | 37 +- .../BucketV2ReplicationConfiguration.java | 31 +- .../BucketV2ReplicationConfigurationRule.java | 67 +- ...plicationConfigurationRuleDestination.java | 61 +- ...leDestinationAccessControlTranslation.java | 24 +- ...ionConfigurationRuleDestinationMetric.java | 31 +- ...urationRuleDestinationReplicationTime.java | 31 +- ...tV2ReplicationConfigurationRuleFilter.java | 31 +- ...figurationRuleSourceSelectionCriteria.java | 24 +- ...electionCriteriaSseKmsEncryptedObject.java | 24 +- ...etV2ServerSideEncryptionConfiguration.java | 24 +- ...ServerSideEncryptionConfigurationRule.java | 31 +- ...uleApplyServerSideEncryptionByDefault.java | 31 +- .../aws/s3/outputs/BucketV2Versioning.java | 31 +- .../aws/s3/outputs/BucketV2Website.java | 43 +- .../aws/s3/outputs/BucketVersioning.java | 31 +- ...etVersioningV2VersioningConfiguration.java | 31 +- .../pulumi/aws/s3/outputs/BucketWebsite.java | 43 +- ...etWebsiteConfigurationV2ErrorDocument.java | 24 +- ...etWebsiteConfigurationV2IndexDocument.java | 24 +- ...eConfigurationV2RedirectAllRequestsTo.java | 31 +- ...cketWebsiteConfigurationV2RoutingRule.java | 31 +- ...teConfigurationV2RoutingRuleCondition.java | 31 +- ...iteConfigurationV2RoutingRuleRedirect.java | 49 +- .../GetAccountPublicAccessBlockResult.java | 55 +- .../aws/s3/outputs/GetBucketObjectResult.java | 175 +- .../s3/outputs/GetBucketObjectsResult.java | 85 +- .../aws/s3/outputs/GetBucketPolicyResult.java | 37 +- .../aws/s3/outputs/GetBucketResult.java | 73 +- .../s3/outputs/GetCanonicalUserIdResult.java | 31 +- .../aws/s3/outputs/GetObjectResult.java | 175 +- .../aws/s3/outputs/GetObjectsResult.java | 85 +- .../aws/s3/outputs/InventoryDestination.java | 24 +- .../outputs/InventoryDestinationBucket.java | 49 +- .../InventoryDestinationBucketEncryption.java | 31 +- ...toryDestinationBucketEncryptionSseKms.java | 24 +- ...ntoryDestinationBucketEncryptionSseS3.java | 17 +- .../aws/s3/outputs/InventoryFilter.java | 24 +- .../aws/s3/outputs/InventorySchedule.java | 24 +- .../aws/s3/outputs/ObjectCopyGrant.java | 49 +- .../BucketLifecycleConfigurationRule.java | 49 +- ...ionRuleAbortIncompleteMultipartUpload.java | 24 +- ...tLifecycleConfigurationRuleExpiration.java | 37 +- ...ucketLifecycleConfigurationRuleFilter.java | 31 +- .../MultiRegionAccessPointDetails.java | 37 +- ...onAccessPointDetailsPublicAccessBlock.java | 43 +- .../MultiRegionAccessPointDetailsRegion.java | 24 +- .../MultiRegionAccessPointPolicyDetails.java | 31 +- .../ObjectLambdaAccessPointConfiguration.java | 43 +- ...figurationTransformationConfiguration.java | 31 +- ...ionConfigurationContentTransformation.java | 24 +- ...urationContentTransformationAwsLambda.java | 31 +- .../outputs/EndpointNetworkInterface.java | 24 +- ...ppImageConfigKernelGatewayImageConfig.java | 31 +- ...nelGatewayImageConfigFileSystemConfig.java | 37 +- ...figKernelGatewayImageConfigKernelSpec.java | 31 +- .../sagemaker/outputs/AppResourceSpec.java | 43 +- .../outputs/CodeRepositoryGitConfig.java | 37 +- .../aws/sagemaker/outputs/DeviceDevice.java | 37 +- .../outputs/DeviceFleetOutputConfig.java | 31 +- .../outputs/DomainDefaultUserSettings.java | 55 +- ...tUserSettingsJupyterServerAppSettings.java | 31 +- ...rServerAppSettingsDefaultResourceSpec.java | 43 +- ...tUserSettingsKernelGatewayAppSettings.java | 37 +- ...gsKernelGatewayAppSettingsCustomImage.java | 37 +- ...GatewayAppSettingsDefaultResourceSpec.java | 43 +- ...ainDefaultUserSettingsSharingSettings.java | 37 +- ...ultUserSettingsTensorBoardAppSettings.java | 24 +- ...orBoardAppSettingsDefaultResourceSpec.java | 43 +- .../outputs/DomainRetentionPolicy.java | 24 +- ...ointConfigurationAsyncInferenceConfig.java | 31 +- ...ationAsyncInferenceConfigClientConfig.java | 24 +- ...ationAsyncInferenceConfigOutputConfig.java | 37 +- ...eConfigOutputConfigNotificationConfig.java | 31 +- ...ndpointConfigurationDataCaptureConfig.java | 55 +- ...CaptureConfigCaptureContentTypeHeader.java | 31 +- ...urationDataCaptureConfigCaptureOption.java | 24 +- ...ndpointConfigurationProductionVariant.java | 61 +- ...tionProductionVariantServerlessConfig.java | 31 +- .../outputs/EndpointDeploymentConfig.java | 31 +- ...oymentConfigAutoRollbackConfiguration.java | 24 +- ...tConfigAutoRollbackConfigurationAlarm.java | 24 +- ...DeploymentConfigBlueGreenUpdatePolicy.java | 37 +- ...datePolicyTrafficRoutingConfiguration.java | 43 +- ...TrafficRoutingConfigurationCanarySize.java | 31 +- ...ficRoutingConfigurationLinearStepSize.java | 31 +- .../FeatureGroupFeatureDefinition.java | 31 +- .../FeatureGroupOfflineStoreConfig.java | 37 +- ...upOfflineStoreConfigDataCatalogConfig.java | 37 +- ...roupOfflineStoreConfigS3StorageConfig.java | 31 +- .../FeatureGroupOnlineStoreConfig.java | 31 +- ...eGroupOnlineStoreConfigSecurityConfig.java | 24 +- ...owDefinitionHumanLoopActivationConfig.java | 24 +- ...igHumanLoopActivationConditionsConfig.java | 24 +- .../FlowDefinitionHumanLoopConfig.java | 73 +- ...manLoopConfigPublicWorkforceTaskPrice.java | 24 +- ...igPublicWorkforceTaskPriceAmountInUsd.java | 37 +- .../FlowDefinitionHumanLoopRequestSource.java | 24 +- .../outputs/FlowDefinitionOutputConfig.java | 31 +- .../outputs/GetPrebuiltEcrImageResult.java | 61 +- .../outputs/HumanTaskUIUiTemplate.java | 37 +- .../aws/sagemaker/outputs/ModelContainer.java | 55 +- .../outputs/ModelContainerImageConfig.java | 31 +- ...tainerImageConfigRepositoryAuthConfig.java | 24 +- .../ModelInferenceExecutionConfig.java | 24 +- .../outputs/ModelPrimaryContainer.java | 55 +- .../ModelPrimaryContainerImageConfig.java | 31 +- ...tainerImageConfigRepositoryAuthConfig.java | 24 +- .../aws/sagemaker/outputs/ModelVpcConfig.java | 31 +- ...eInstanceMetadataServiceConfiguration.java | 24 +- ...jectServiceCatalogProvisioningDetails.java | 43 +- ...visioningDetailsProvisioningParameter.java | 31 +- .../outputs/UserProfileUserSettings.java | 55 +- ...eUserSettingsJupyterServerAppSettings.java | 31 +- ...rServerAppSettingsDefaultResourceSpec.java | 43 +- ...eUserSettingsKernelGatewayAppSettings.java | 37 +- ...gsKernelGatewayAppSettingsCustomImage.java | 37 +- ...GatewayAppSettingsDefaultResourceSpec.java | 43 +- ...serProfileUserSettingsSharingSettings.java | 37 +- ...ileUserSettingsTensorBoardAppSettings.java | 24 +- ...orBoardAppSettingsDefaultResourceSpec.java | 43 +- .../outputs/WorkforceCognitoConfig.java | 31 +- .../outputs/WorkforceOidcConfig.java | 67 +- .../outputs/WorkforceSourceIpConfig.java | 24 +- .../outputs/WorkteamMemberDefinition.java | 31 +- ...mberDefinitionCognitoMemberDefinition.java | 37 +- ...mMemberDefinitionOidcMemberDefinition.java | 24 +- .../WorkteamNotificationConfiguration.java | 24 +- .../outputs/GetRandomPasswordResult.java | 79 +- .../outputs/GetSecretResult.java | 79 +- .../outputs/GetSecretRotationResult.java | 49 +- .../GetSecretRotationRotationRule.java | 24 +- .../outputs/GetSecretRotationRule.java | 24 +- .../outputs/GetSecretVersionResult.java | 67 +- .../outputs/GetSecretsFilter.java | 31 +- .../outputs/GetSecretsResult.java | 43 +- .../secretsmanager/outputs/SecretReplica.java | 49 +- .../outputs/SecretRotationRotationRules.java | 24 +- .../outputs/SecretRotationRules.java | 24 +- .../securityhub/outputs/InsightFilters.java | 547 +++--- .../outputs/InsightFiltersAwsAccountId.java | 31 +- .../outputs/InsightFiltersCompanyName.java | 31 +- .../InsightFiltersComplianceStatus.java | 31 +- .../outputs/InsightFiltersConfidence.java | 37 +- .../outputs/InsightFiltersCreatedAt.java | 37 +- .../InsightFiltersCreatedAtDateRange.java | 31 +- .../outputs/InsightFiltersCriticality.java | 37 +- .../outputs/InsightFiltersDescription.java | 31 +- ...iltersFindingProviderFieldsConfidence.java | 37 +- ...ltersFindingProviderFieldsCriticality.java | 37 +- ...indingProviderFieldsRelatedFindingsId.java | 31 +- ...oviderFieldsRelatedFindingsProductArn.java | 31 +- ...ersFindingProviderFieldsSeverityLabel.java | 31 +- ...FindingProviderFieldsSeverityOriginal.java | 31 +- ...sightFiltersFindingProviderFieldsType.java | 31 +- .../InsightFiltersFirstObservedAt.java | 37 +- ...nsightFiltersFirstObservedAtDateRange.java | 31 +- .../outputs/InsightFiltersGeneratorId.java | 31 +- .../securityhub/outputs/InsightFiltersId.java | 31 +- .../outputs/InsightFiltersKeyword.java | 24 +- .../outputs/InsightFiltersLastObservedAt.java | 37 +- ...InsightFiltersLastObservedAtDateRange.java | 31 +- .../outputs/InsightFiltersMalwareName.java | 31 +- .../outputs/InsightFiltersMalwarePath.java | 31 +- .../outputs/InsightFiltersMalwareState.java | 31 +- .../outputs/InsightFiltersMalwareType.java | 31 +- ...nsightFiltersNetworkDestinationDomain.java | 31 +- .../InsightFiltersNetworkDestinationIpv4.java | 24 +- .../InsightFiltersNetworkDestinationIpv6.java | 24 +- .../InsightFiltersNetworkDestinationPort.java | 37 +- .../InsightFiltersNetworkDirection.java | 31 +- .../InsightFiltersNetworkProtocol.java | 31 +- .../InsightFiltersNetworkSourceDomain.java | 31 +- .../InsightFiltersNetworkSourceIpv4.java | 24 +- .../InsightFiltersNetworkSourceIpv6.java | 24 +- .../InsightFiltersNetworkSourceMac.java | 31 +- .../InsightFiltersNetworkSourcePort.java | 37 +- .../outputs/InsightFiltersNoteText.java | 31 +- .../outputs/InsightFiltersNoteUpdatedAt.java | 37 +- .../InsightFiltersNoteUpdatedAtDateRange.java | 31 +- .../outputs/InsightFiltersNoteUpdatedBy.java | 31 +- .../InsightFiltersProcessLaunchedAt.java | 37 +- ...ightFiltersProcessLaunchedAtDateRange.java | 31 +- .../outputs/InsightFiltersProcessName.java | 31 +- .../InsightFiltersProcessParentPid.java | 37 +- .../outputs/InsightFiltersProcessPath.java | 31 +- .../outputs/InsightFiltersProcessPid.java | 37 +- .../InsightFiltersProcessTerminatedAt.java | 37 +- ...htFiltersProcessTerminatedAtDateRange.java | 31 +- .../outputs/InsightFiltersProductArn.java | 31 +- .../outputs/InsightFiltersProductField.java | 37 +- .../outputs/InsightFiltersProductName.java | 31 +- .../InsightFiltersRecommendationText.java | 31 +- .../outputs/InsightFiltersRecordState.java | 31 +- .../InsightFiltersRelatedFindingsId.java | 31 +- ...sightFiltersRelatedFindingsProductArn.java | 31 +- ...ceAwsEc2InstanceIamInstanceProfileArn.java | 31 +- ...tFiltersResourceAwsEc2InstanceImageId.java | 31 +- ...tersResourceAwsEc2InstanceIpv4Address.java | 24 +- ...tersResourceAwsEc2InstanceIpv6Address.java | 24 +- ...tFiltersResourceAwsEc2InstanceKeyName.java | 31 +- ...ltersResourceAwsEc2InstanceLaunchedAt.java | 37 +- ...urceAwsEc2InstanceLaunchedAtDateRange.java | 31 +- ...FiltersResourceAwsEc2InstanceSubnetId.java | 31 +- ...ightFiltersResourceAwsEc2InstanceType.java | 31 +- ...ghtFiltersResourceAwsEc2InstanceVpcId.java | 31 +- ...ltersResourceAwsIamAccessKeyCreatedAt.java | 37 +- ...urceAwsIamAccessKeyCreatedAtDateRange.java | 31 +- ...tFiltersResourceAwsIamAccessKeyStatus.java | 31 +- ...iltersResourceAwsIamAccessKeyUserName.java | 31 +- ...ightFiltersResourceAwsS3BucketOwnerId.java | 31 +- ...htFiltersResourceAwsS3BucketOwnerName.java | 31 +- ...nsightFiltersResourceContainerImageId.java | 31 +- ...ightFiltersResourceContainerImageName.java | 31 +- ...ghtFiltersResourceContainerLaunchedAt.java | 37 +- ...sResourceContainerLaunchedAtDateRange.java | 31 +- .../InsightFiltersResourceContainerName.java | 31 +- .../InsightFiltersResourceDetailsOther.java | 37 +- .../outputs/InsightFiltersResourceId.java | 31 +- .../InsightFiltersResourcePartition.java | 31 +- .../outputs/InsightFiltersResourceRegion.java | 31 +- .../outputs/InsightFiltersResourceTag.java | 37 +- .../outputs/InsightFiltersResourceType.java | 31 +- .../outputs/InsightFiltersSeverityLabel.java | 31 +- .../outputs/InsightFiltersSourceUrl.java | 31 +- ...htFiltersThreatIntelIndicatorCategory.java | 31 +- ...ersThreatIntelIndicatorLastObservedAt.java | 37 +- ...IntelIndicatorLastObservedAtDateRange.java | 31 +- ...ightFiltersThreatIntelIndicatorSource.java | 31 +- ...tFiltersThreatIntelIndicatorSourceUrl.java | 31 +- ...nsightFiltersThreatIntelIndicatorType.java | 31 +- ...sightFiltersThreatIntelIndicatorValue.java | 31 +- .../outputs/InsightFiltersTitle.java | 31 +- .../outputs/InsightFiltersType.java | 31 +- .../outputs/InsightFiltersUpdatedAt.java | 37 +- .../InsightFiltersUpdatedAtDateRange.java | 31 +- .../InsightFiltersUserDefinedValue.java | 37 +- .../InsightFiltersVerificationState.java | 31 +- .../outputs/InsightFiltersWorkflowStatus.java | 31 +- .../outputs/GetApplicationResult.java | 61 +- .../outputs/GetConstraintResult.java | 73 +- .../outputs/GetLaunchPathsResult.java | 43 +- .../outputs/GetLaunchPathsSummary.java | 43 +- ...etLaunchPathsSummaryConstraintSummary.java | 31 +- .../GetPortfolioConstraintsDetail.java | 55 +- .../GetPortfolioConstraintsResult.java | 49 +- .../outputs/GetPortfolioResult.java | 67 +- .../outputs/GetProductResult.java | 109 +- ...ProductProvisioningArtifactParameters.java | 55 +- .../outputs/ProvisionedProductOutput.java | 37 +- ...ovisionedProductProvisioningParameter.java | 37 +- ...roductStackSetProvisioningPreferences.java | 55 +- .../outputs/ServiceActionDefinition.java | 49 +- .../outputs/GetDnsNamespaceResult.java | 61 +- .../outputs/GetHttpNamespaceResult.java | 55 +- .../outputs/GetServiceDnsConfig.java | 37 +- .../outputs/GetServiceDnsConfigDnsRecord.java | 31 +- .../outputs/GetServiceHealthCheckConfig.java | 37 +- .../GetServiceHealthCheckCustomConfig.java | 24 +- .../outputs/GetServiceResult.java | 79 +- .../outputs/ServiceDnsConfig.java | 37 +- .../outputs/ServiceDnsConfigDnsRecord.java | 31 +- .../outputs/ServiceHealthCheckConfig.java | 37 +- .../ServiceHealthCheckCustomConfig.java | 24 +- .../outputs/GetServiceQuotaResult.java | 79 +- .../outputs/GetServiceResult.java | 37 +- .../ConfgurationSetDeliveryOptions.java | 24 +- .../ConfgurationSetTrackingOptions.java | 24 +- .../ConfigurationSetDeliveryOptions.java | 24 +- .../ConfigurationSetTrackingOptions.java | 24 +- ...EventDestinationCloudwatchDestination.java | 37 +- .../EventDestinationKinesisDestination.java | 31 +- .../EventDestinationSnsDestination.java | 24 +- .../GetActiveReceiptRuleSetResult.java | 37 +- .../ses/outputs/GetDomainIdentityResult.java | 43 +- .../ses/outputs/GetEmailIdentityResult.java | 37 +- .../outputs/ReceiptRuleAddHeaderAction.java | 37 +- .../ses/outputs/ReceiptRuleBounceAction.java | 55 +- .../ses/outputs/ReceiptRuleLambdaAction.java | 43 +- .../aws/ses/outputs/ReceiptRuleS3Action.java | 49 +- .../aws/ses/outputs/ReceiptRuleSnsAction.java | 37 +- .../ses/outputs/ReceiptRuleStopAction.java | 37 +- .../outputs/ReceiptRuleWorkmailAction.java | 37 +- .../aws/sfn/outputs/GetActivityResult.java | 43 +- .../sfn/outputs/GetStateMachineResult.java | 61 +- .../StateMachineLoggingConfiguration.java | 37 +- .../StateMachineTracingConfiguration.java | 24 +- .../signer/outputs/GetSigningJobResult.java | 121 +- .../GetSigningJobRevocationRecord.java | 37 +- .../outputs/GetSigningJobSignedObject.java | 24 +- .../outputs/GetSigningJobSignedObjectS3.java | 31 +- .../signer/outputs/GetSigningJobSource.java | 24 +- .../signer/outputs/GetSigningJobSourceS3.java | 37 +- .../outputs/GetSigningProfileResult.java | 85 +- .../GetSigningProfileRevocationRecord.java | 37 +- ...SigningProfileSignatureValidityPeriod.java | 31 +- .../signer/outputs/SigningJobDestination.java | 24 +- .../outputs/SigningJobDestinationS3.java | 31 +- .../outputs/SigningJobRevocationRecord.java | 37 +- .../outputs/SigningJobSignedObject.java | 24 +- .../outputs/SigningJobSignedObjectS3.java | 31 +- .../aws/signer/outputs/SigningJobSource.java | 24 +- .../signer/outputs/SigningJobSourceS3.java | 37 +- .../SigningProfileRevocationRecord.java | 37 +- ...SigningProfileSignatureValidityPeriod.java | 31 +- .../aws/sns/outputs/GetTopicResult.java | 37 +- .../aws/sqs/outputs/GetQueueResult.java | 49 +- .../outputs/AssociationOutputLocation.java | 37 +- .../aws/ssm/outputs/AssociationTarget.java | 31 +- .../outputs/DocumentAttachmentsSource.java | 37 +- .../aws/ssm/outputs/DocumentParameter.java | 43 +- .../aws/ssm/outputs/GetDocumentResult.java | 61 +- .../aws/ssm/outputs/GetInstancesFilter.java | 31 +- .../aws/ssm/outputs/GetInstancesResult.java | 37 +- .../outputs/GetMaintenanceWindowsFilter.java | 31 +- .../outputs/GetMaintenanceWindowsResult.java | 37 +- .../aws/ssm/outputs/GetParameterResult.java | 61 +- .../outputs/GetParametersByPathResult.java | 67 +- .../outputs/GetPatchBaselineApprovalRule.java | 49 +- ...tPatchBaselineApprovalRulePatchFilter.java | 31 +- .../outputs/GetPatchBaselineGlobalFilter.java | 31 +- .../ssm/outputs/GetPatchBaselineResult.java | 109 +- .../ssm/outputs/GetPatchBaselineSource.java | 37 +- .../MaintenanceWindowTargetTarget.java | 31 +- .../outputs/MaintenanceWindowTaskTarget.java | 31 +- ...nceWindowTaskTaskInvocationParameters.java | 43 +- ...ocationParametersAutomationParameters.java | 31 +- ...rametersAutomationParametersParameter.java | 31 +- ...kInvocationParametersLambdaParameters.java | 37 +- ...ocationParametersRunCommandParameters.java | 85 +- ...sRunCommandParametersCloudwatchConfig.java | 31 +- ...unCommandParametersNotificationConfig.java | 37 +- ...rametersRunCommandParametersParameter.java | 31 +- ...tionParametersStepFunctionsParameters.java | 31 +- .../outputs/PatchBaselineApprovalRule.java | 49 +- .../PatchBaselineApprovalRulePatchFilter.java | 31 +- .../outputs/PatchBaselineGlobalFilter.java | 31 +- .../aws/ssm/outputs/PatchBaselineSource.java | 37 +- .../ResourceDataSyncS3Destination.java | 49 +- .../ssoadmin/outputs/GetInstancesResult.java | 37 +- .../outputs/GetPermissionSetResult.java | 73 +- .../FileSystemAssociationCacheAttributes.java | 24 +- .../GatewayGatewayNetworkInterface.java | 24 +- .../outputs/GatewayMaintenanceStartTime.java | 43 +- .../GatewaySmbActiveDirectorySettings.java | 61 +- .../outputs/GetLocalDiskResult.java | 49 +- .../outputs/NfsFileShareCacheAttributes.java | 24 +- .../NfsFileShareNfsFileShareDefaults.java | 43 +- .../outputs/SmbFileShareCacheAttributes.java | 24 +- .../outputs/CanaryArtifactConfig.java | 24 +- .../CanaryArtifactConfigS3Encryption.java | 31 +- .../synthetics/outputs/CanaryRunConfig.java | 43 +- .../synthetics/outputs/CanarySchedule.java | 31 +- .../synthetics/outputs/CanaryTimeline.java | 43 +- .../synthetics/outputs/CanaryVpcConfig.java | 37 +- .../TableMagneticStoreWriteProperties.java | 31 +- ...tiesMagneticStoreRejectedDataLocation.java | 24 +- ...reRejectedDataLocationS3Configuration.java | 43 +- .../outputs/TableRetentionProperties.java | 31 +- .../outputs/LanguageModelInputDataConfig.java | 37 +- .../outputs/AccessHomeDirectoryMapping.java | 31 +- .../transfer/outputs/AccessPosixProfile.java | 37 +- .../aws/transfer/outputs/GetServerResult.java | 97 +- .../outputs/ServerEndpointDetails.java | 49 +- .../outputs/ServerWorkflowDetails.java | 24 +- .../ServerWorkflowDetailsOnUpload.java | 31 +- .../outputs/UserHomeDirectoryMapping.java | 31 +- .../transfer/outputs/UserPosixProfile.java | 37 +- .../outputs/WorkflowOnExceptionStep.java | 49 +- ...orkflowOnExceptionStepCopyStepDetails.java | 43 +- ...opyStepDetailsDestinationFileLocation.java | 31 +- ...estinationFileLocationEfsFileLocation.java | 31 +- ...DestinationFileLocationS3FileLocation.java | 31 +- ...kflowOnExceptionStepCustomStepDetails.java | 43 +- ...kflowOnExceptionStepDeleteStepDetails.java | 31 +- ...WorkflowOnExceptionStepTagStepDetails.java | 37 +- ...kflowOnExceptionStepTagStepDetailsTag.java | 31 +- .../aws/transfer/outputs/WorkflowStep.java | 49 +- .../outputs/WorkflowStepCopyStepDetails.java | 43 +- ...opyStepDetailsDestinationFileLocation.java | 31 +- ...estinationFileLocationEfsFileLocation.java | 31 +- ...DestinationFileLocationS3FileLocation.java | 31 +- .../WorkflowStepCustomStepDetails.java | 43 +- .../WorkflowStepDeleteStepDetails.java | 31 +- .../outputs/WorkflowStepTagStepDetails.java | 37 +- .../WorkflowStepTagStepDetailsTag.java | 31 +- .../outputs/ByteMatchSetByteMatchTuple.java | 43 +- ...yteMatchSetByteMatchTupleFieldToMatch.java | 31 +- .../GeoMatchSetGeoMatchConstraint.java | 31 +- .../aws/waf/outputs/GetIpsetResult.java | 31 +- .../waf/outputs/GetRateBasedRuleResult.java | 31 +- .../pulumi/aws/waf/outputs/GetRuleResult.java | 31 +- .../outputs/GetSubscribedRuleGroupResult.java | 37 +- .../aws/waf/outputs/GetWebAclResult.java | 31 +- .../aws/waf/outputs/IpSetIpSetDescriptor.java | 31 +- .../waf/outputs/RateBasedRulePredicate.java | 37 +- .../outputs/RegexMatchSetRegexMatchTuple.java | 37 +- ...exMatchSetRegexMatchTupleFieldToMatch.java | 31 +- .../waf/outputs/RuleGroupActivatedRule.java | 43 +- .../outputs/RuleGroupActivatedRuleAction.java | 24 +- .../pulumi/aws/waf/outputs/RulePredicate.java | 37 +- .../SizeConstraintSetSizeConstraint.java | 43 +- ...nstraintSetSizeConstraintFieldToMatch.java | 31 +- ...jectionMatchSetSqlInjectionMatchTuple.java | 31 +- ...SetSqlInjectionMatchTupleFieldToMatch.java | 31 +- .../aws/waf/outputs/WebAclDefaultAction.java | 24 +- .../outputs/WebAclLoggingConfiguration.java | 31 +- ...AclLoggingConfigurationRedactedFields.java | 24 +- ...nfigurationRedactedFieldsFieldToMatch.java | 31 +- .../pulumi/aws/waf/outputs/WebAclRule.java | 49 +- .../aws/waf/outputs/WebAclRuleAction.java | 24 +- .../waf/outputs/WebAclRuleOverrideAction.java | 24 +- .../waf/outputs/XssMatchSetXssMatchTuple.java | 31 +- .../XssMatchSetXssMatchTupleFieldToMatch.java | 31 +- .../outputs/ByteMatchSetByteMatchTuple.java | 43 +- ...yteMatchSetByteMatchTupleFieldToMatch.java | 31 +- .../GeoMatchSetGeoMatchConstraint.java | 31 +- .../wafregional/outputs/GetIpsetResult.java | 31 +- .../outputs/GetRateBasedModResult.java | 31 +- .../wafregional/outputs/GetRuleResult.java | 31 +- .../outputs/GetSubscribedRuleGroupResult.java | 37 +- .../wafregional/outputs/GetWebAclResult.java | 31 +- .../outputs/IpSetIpSetDescriptor.java | 31 +- .../outputs/RateBasedRulePredicate.java | 37 +- .../outputs/RegexMatchSetRegexMatchTuple.java | 37 +- ...exMatchSetRegexMatchTupleFieldToMatch.java | 31 +- .../outputs/RuleGroupActivatedRule.java | 43 +- .../outputs/RuleGroupActivatedRuleAction.java | 24 +- .../wafregional/outputs/RulePredicate.java | 37 +- .../SizeConstraintSetSizeConstraint.java | 43 +- ...nstraintSetSizeConstraintFieldToMatch.java | 31 +- ...jectionMatchSetSqlInjectionMatchTuple.java | 31 +- ...SetSqlInjectionMatchTupleFieldToMatch.java | 31 +- .../outputs/WebAclDefaultAction.java | 24 +- .../outputs/WebAclLoggingConfiguration.java | 31 +- ...AclLoggingConfigurationRedactedFields.java | 24 +- ...nfigurationRedactedFieldsFieldToMatch.java | 31 +- .../aws/wafregional/outputs/WebAclRule.java | 49 +- .../wafregional/outputs/WebAclRuleAction.java | 24 +- .../outputs/WebAclRuleOverrideAction.java | 24 +- .../outputs/XssMatchSetXssMatchTuple.java | 31 +- .../XssMatchSetXssMatchTupleFieldToMatch.java | 31 +- .../aws/wafv2/outputs/GetIpSetResult.java | 61 +- .../GetRegexPatternSetRegularExpression.java | 24 +- .../outputs/GetRegexPatternSetResult.java | 55 +- .../aws/wafv2/outputs/GetRuleGroupResult.java | 49 +- .../aws/wafv2/outputs/GetWebAclResult.java | 49 +- .../RegexPatternSetRegularExpression.java | 24 +- .../outputs/RuleGroupCustomResponseBody.java | 37 +- .../aws/wafv2/outputs/RuleGroupRule.java | 55 +- .../wafv2/outputs/RuleGroupRuleAction.java | 37 +- .../outputs/RuleGroupRuleActionAllow.java | 24 +- ...pRuleActionAllowCustomRequestHandling.java | 24 +- ...llowCustomRequestHandlingInsertHeader.java | 31 +- .../outputs/RuleGroupRuleActionBlock.java | 24 +- ...uleGroupRuleActionBlockCustomResponse.java | 37 +- ...tionBlockCustomResponseResponseHeader.java | 31 +- .../outputs/RuleGroupRuleActionCount.java | 24 +- ...pRuleActionCountCustomRequestHandling.java | 24 +- ...ountCustomRequestHandlingInsertHeader.java | 31 +- .../wafv2/outputs/RuleGroupRuleRuleLabel.java | 24 +- .../wafv2/outputs/RuleGroupRuleStatement.java | 85 +- .../RuleGroupRuleStatementAndStatement.java | 24 +- ...oupRuleStatementAndStatementStatement.java | 85 +- ...mentAndStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentAndStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementAndStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...eGroupRuleStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...leGroupRuleStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...pRuleStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...GroupRuleStatementLabelMatchStatement.java | 31 +- .../RuleGroupRuleStatementNotStatement.java | 24 +- ...oupRuleStatementNotStatementStatement.java | 85 +- ...mentNotStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentNotStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementNotStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- .../RuleGroupRuleStatementOrStatement.java | 24 +- ...roupRuleStatementOrStatementStatement.java | 85 +- ...ementOrStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...ementOrStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tementOrStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...pRuleStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...eGroupRuleStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...leGroupRuleStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- .../RuleGroupRuleVisibilityConfig.java | 37 +- .../outputs/RuleGroupVisibilityConfig.java | 37 +- .../outputs/WebAclCustomResponseBody.java | 37 +- .../wafv2/outputs/WebAclDefaultAction.java | 31 +- .../outputs/WebAclDefaultActionAllow.java | 24 +- ...faultActionAllowCustomRequestHandling.java | 24 +- ...llowCustomRequestHandlingInsertHeader.java | 31 +- .../outputs/WebAclDefaultActionBlock.java | 24 +- ...ebAclDefaultActionBlockCustomResponse.java | 37 +- ...tionBlockCustomResponseResponseHeader.java | 31 +- ...bAclLoggingConfigurationLoggingFilter.java | 31 +- ...ggingConfigurationLoggingFilterFilter.java | 37 +- ...igurationLoggingFilterFilterCondition.java | 31 +- ...gFilterFilterConditionActionCondition.java | 24 +- ...lterFilterConditionLabelNameCondition.java | 24 +- ...bAclLoggingConfigurationRedactedField.java | 61 +- ...urationRedactedFieldAllQueryArguments.java | 17 +- ...LoggingConfigurationRedactedFieldBody.java | 17 +- ...ggingConfigurationRedactedFieldMethod.java | 17 +- ...ConfigurationRedactedFieldQueryString.java | 17 +- ...onfigurationRedactedFieldSingleHeader.java | 24 +- ...ationRedactedFieldSingleQueryArgument.java | 24 +- ...gingConfigurationRedactedFieldUriPath.java | 17 +- .../pulumi/aws/wafv2/outputs/WebAclRule.java | 61 +- .../aws/wafv2/outputs/WebAclRuleAction.java | 43 +- .../wafv2/outputs/WebAclRuleActionAllow.java | 24 +- ...lRuleActionAllowCustomRequestHandling.java | 24 +- ...llowCustomRequestHandlingInsertHeader.java | 31 +- .../wafv2/outputs/WebAclRuleActionBlock.java | 24 +- .../WebAclRuleActionBlockCustomResponse.java | 37 +- ...tionBlockCustomResponseResponseHeader.java | 31 +- .../outputs/WebAclRuleActionCaptcha.java | 24 +- ...uleActionCaptchaCustomRequestHandling.java | 24 +- ...tchaCustomRequestHandlingInsertHeader.java | 31 +- .../wafv2/outputs/WebAclRuleActionCount.java | 24 +- ...lRuleActionCountCustomRequestHandling.java | 24 +- ...ountCustomRequestHandlingInsertHeader.java | 31 +- .../outputs/WebAclRuleOverrideAction.java | 31 +- .../WebAclRuleOverrideActionCount.java | 17 +- .../outputs/WebAclRuleOverrideActionNone.java | 17 +- .../wafv2/outputs/WebAclRuleRuleLabel.java | 24 +- .../wafv2/outputs/WebAclRuleStatement.java | 103 +- .../WebAclRuleStatementAndStatement.java | 24 +- ...AclRuleStatementAndStatementStatement.java | 85 +- ...mentAndStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 85 +- ...mentAndStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentAndStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementAndStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentAndStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 85 +- ...mentNotStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentNotStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementNotStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementAndStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 85 +- ...ementOrStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...ementOrStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tementOrStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...WebAclRuleStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- .../WebAclRuleStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...lRuleStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...ebAclRuleStatementLabelMatchStatement.java | 31 +- ...uleStatementManagedRuleGroupStatement.java | 49 +- ...ManagedRuleGroupStatementExcludedRule.java | 24 +- ...dRuleGroupStatementScopeDownStatement.java | 85 +- ...atementScopeDownStatementAndStatement.java | 24 +- ...opeDownStatementAndStatementStatement.java | 85 +- ...mentAndStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentAndStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementAndStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tScopeDownStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ntScopeDownStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...eDownStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...ScopeDownStatementLabelMatchStatement.java | 31 +- ...atementScopeDownStatementNotStatement.java | 24 +- ...opeDownStatementNotStatementStatement.java | 85 +- ...mentNotStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentNotStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementNotStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tatementScopeDownStatementOrStatement.java | 24 +- ...copeDownStatementOrStatementStatement.java | 85 +- ...ementOrStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...ementOrStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tementOrStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...eDownStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tScopeDownStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ntScopeDownStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- .../WebAclRuleStatementNotStatement.java | 24 +- ...AclRuleStatementNotStatementStatement.java | 85 +- ...mentNotStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 85 +- ...mentAndStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentAndStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementAndStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentNotStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 85 +- ...mentNotStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentNotStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementNotStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementNotStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 85 +- ...ementOrStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...ementOrStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tementOrStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- .../WebAclRuleStatementOrStatement.java | 24 +- ...bAclRuleStatementOrStatementStatement.java | 85 +- ...ementOrStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 85 +- ...mentAndStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentAndStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementAndStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...ementOrStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 85 +- ...mentNotStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentNotStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementNotStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tementOrStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 85 +- ...ementOrStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...ementOrStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tementOrStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...WebAclRuleStatementRateBasedStatement.java | 43 +- ...ntRateBasedStatementForwardedIpConfig.java | 31 +- ...tRateBasedStatementScopeDownStatement.java | 85 +- ...atementScopeDownStatementAndStatement.java | 24 +- ...opeDownStatementAndStatementStatement.java | 85 +- ...mentAndStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentAndStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementAndStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tScopeDownStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ntScopeDownStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...eDownStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...ScopeDownStatementLabelMatchStatement.java | 31 +- ...atementScopeDownStatementNotStatement.java | 24 +- ...opeDownStatementNotStatementStatement.java | 85 +- ...mentNotStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentNotStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...ementNotStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tatementScopeDownStatementOrStatement.java | 24 +- ...copeDownStatementOrStatementStatement.java | 85 +- ...ementOrStatementStatementAndStatement.java | 24 +- ...atementStatementAndStatementStatement.java | 67 +- ...dStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...dStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ndStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...ementOrStatementStatementNotStatement.java | 24 +- ...atementStatementNotStatementStatement.java | 67 +- ...tStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...otStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...otStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...tementOrStatementStatementOrStatement.java | 24 +- ...tatementStatementOrStatementStatement.java | 67 +- ...rStatementStatementByteMatchStatement.java | 43 +- ...atementByteMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entByteMatchStatementFieldToMatchBody.java | 17 +- ...tByteMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ByteMatchStatementFieldToMatchUriPath.java | 17 +- ...tByteMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementGeoMatchStatement.java | 31 +- ...entGeoMatchStatementForwardedIpConfig.java | 31 +- ...ementStatementIpSetReferenceStatement.java | 31 +- ...erenceStatementIpSetForwardedIpConfig.java | 37 +- ...StatementStatementLabelMatchStatement.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...ementStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...rStatementStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...OrStatementStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...eDownStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...tScopeDownStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- ...ntScopeDownStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- ...mentRegexPatternSetReferenceStatement.java | 37 +- ...ternSetReferenceStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...SetReferenceStatementFieldToMatchBody.java | 17 +- ...tReferenceStatementFieldToMatchMethod.java | 17 +- ...renceStatementFieldToMatchQueryString.java | 17 +- ...enceStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...ReferenceStatementFieldToMatchUriPath.java | 17 +- ...tReferenceStatementTextTransformation.java | 31 +- ...eStatementRuleGroupReferenceStatement.java | 31 +- ...leGroupReferenceStatementExcludedRule.java | 24 +- ...lRuleStatementSizeConstraintStatement.java | 43 +- ...ntSizeConstraintStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...zeConstraintStatementFieldToMatchBody.java | 17 +- ...ConstraintStatementFieldToMatchMethod.java | 17 +- ...raintStatementFieldToMatchQueryString.java | 17 +- ...aintStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...onstraintStatementFieldToMatchUriPath.java | 17 +- ...ConstraintStatementTextTransformation.java | 31 +- ...WebAclRuleStatementSqliMatchStatement.java | 31 +- ...atementSqliMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...entSqliMatchStatementFieldToMatchBody.java | 17 +- ...tSqliMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...SqliMatchStatementFieldToMatchUriPath.java | 17 +- ...tSqliMatchStatementTextTransformation.java | 31 +- .../WebAclRuleStatementXssMatchStatement.java | 31 +- ...tatementXssMatchStatementFieldToMatch.java | 61 +- ...tatementFieldToMatchAllQueryArguments.java | 17 +- ...mentXssMatchStatementFieldToMatchBody.java | 17 +- ...ntXssMatchStatementFieldToMatchMethod.java | 17 +- ...MatchStatementFieldToMatchQueryString.java | 17 +- ...atchStatementFieldToMatchSingleHeader.java | 24 +- ...tementFieldToMatchSingleQueryArgument.java | 24 +- ...tXssMatchStatementFieldToMatchUriPath.java | 17 +- ...ntXssMatchStatementTextTransformation.java | 31 +- .../outputs/WebAclRuleVisibilityConfig.java | 37 +- .../wafv2/outputs/WebAclVisibilityConfig.java | 37 +- .../outputs/FleetIdentityProvider.java | 31 +- .../aws/worklink/outputs/FleetNetwork.java | 37 +- .../DirectorySelfServicePermissions.java | 49 +- .../DirectoryWorkspaceAccessProperties.java | 67 +- .../DirectoryWorkspaceCreationProperties.java | 49 +- .../outputs/GetBundleComputeType.java | 24 +- .../workspaces/outputs/GetBundleResult.java | 67 +- .../outputs/GetBundleRootStorage.java | 24 +- .../outputs/GetBundleUserStorage.java | 24 +- .../outputs/GetDirectoryResult.java | 115 +- .../GetDirectorySelfServicePermission.java | 49 +- .../GetDirectoryWorkspaceAccessProperty.java | 67 +- ...GetDirectoryWorkspaceCreationProperty.java | 49 +- .../workspaces/outputs/GetImageResult.java | 61 +- .../outputs/GetWorkspaceResult.java | 97 +- .../GetWorkspaceWorkspaceProperty.java | 49 +- .../aws/workspaces/outputs/IpGroupRule.java | 31 +- .../outputs/WorkspaceWorkspaceProperties.java | 49 +- .../outputs/GroupInsightsConfiguration.java | 31 +- 7996 files changed, 116086 insertions(+), 154565 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5162b2708c3..0976b7aaa4e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -145,14 +145,14 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI uses: pulumi/action-install-pulumi-cli@v2 - if: github.event_name == 'pull_request' name: Install Schema Tools - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: mikhailshilkov/schema-tools - name: Echo Coverage Output Dir @@ -191,14 +191,14 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI uses: pulumi/action-install-pulumi-cli@v2 - if: github.event_name == 'pull_request' name: Install Schema Tools - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: mikhailshilkov/schema-tools - name: Build tfgen & provider binaries @@ -261,7 +261,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -283,7 +283,7 @@ jobs: uses: goreleaser/goreleaser-action@v2 with: args: -p 1 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout - 90m0s + 120m0s version: latest - if: failure() && github.event_name == 'push' name: Notify Slack @@ -322,7 +322,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -431,7 +431,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -493,7 +493,7 @@ jobs: - name: Install dependencies run: make install_${{ matrix.language}}_sdk - name: Install gotestfmt - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: haveyoudebuggedit/gotestfmt - name: Run tests diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 1f9a01973de..c737d602a02 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -38,7 +38,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -145,14 +145,14 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI uses: pulumi/action-install-pulumi-cli@v2 - if: github.event_name == 'pull_request' name: Install Schema Tools - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: mikhailshilkov/schema-tools - name: Echo Coverage Output Dir @@ -191,14 +191,14 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI uses: pulumi/action-install-pulumi-cli@v2 - if: github.event_name == 'pull_request' name: Install Schema Tools - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: mikhailshilkov/schema-tools - name: Build tfgen & provider binaries @@ -261,7 +261,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -283,7 +283,7 @@ jobs: uses: goreleaser/goreleaser-action@v2 with: args: -p 1 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout - 90m0s + 120m0s version: latest - if: failure() && github.event_name == 'push' name: Notify Slack @@ -322,7 +322,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -431,7 +431,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -493,7 +493,7 @@ jobs: - name: Install dependencies run: make install_${{ matrix.language}}_sdk - name: Install gotestfmt - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: haveyoudebuggedit/gotestfmt - name: Run tests diff --git a/.github/workflows/nightly-test.yml b/.github/workflows/nightly-test.yml index 8aac425bb0a..e94883b5043 100644 --- a/.github/workflows/nightly-test.yml +++ b/.github/workflows/nightly-test.yml @@ -38,7 +38,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -135,14 +135,14 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI uses: pulumi/action-install-pulumi-cli@v2 - if: github.event_name == 'pull_request' name: Install Schema Tools - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: mikhailshilkov/schema-tools - name: Build tfgen & provider binaries @@ -210,7 +210,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -272,7 +272,7 @@ jobs: - name: Install dependencies run: make install_${{ matrix.language}}_sdk - name: Install gotestfmt - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: haveyoudebuggedit/gotestfmt - name: Run tests diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 35e3fb0cac5..a23a7342306 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -38,7 +38,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -135,14 +135,14 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI uses: pulumi/action-install-pulumi-cli@v2 - if: github.event_name == 'pull_request' name: Install Schema Tools - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: mikhailshilkov/schema-tools - name: Build tfgen & provider binaries @@ -205,7 +205,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -227,7 +227,7 @@ jobs: uses: goreleaser/goreleaser-action@v2 with: args: -p 1 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout - 90m0s + 120m0s version: latest - if: failure() && github.event_name == 'push' name: Notify Slack @@ -266,7 +266,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -375,7 +375,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -437,7 +437,7 @@ jobs: - name: Install dependencies run: make install_${{ matrix.language}}_sdk - name: Install gotestfmt - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: haveyoudebuggedit/gotestfmt - name: Run tests diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 34a46bccb1e..2f593c13476 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -123,7 +123,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - env: @@ -149,14 +149,14 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI uses: pulumi/action-install-pulumi-cli@v2 - if: github.event_name == 'pull_request' name: Install Schema Tools - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: mikhailshilkov/schema-tools - name: Build tfgen & provider binaries @@ -219,7 +219,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -240,7 +240,7 @@ jobs: - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: - args: -p 1 release --rm-dist --timeout 90m0s + args: -p 1 release --rm-dist --timeout 120m0s version: latest - if: failure() && github.event_name == 'push' name: Notify Slack @@ -279,7 +279,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -377,7 +377,7 @@ jobs: - name: Checkout Repo uses: actions/checkout@v2 - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Add SDK version tag @@ -402,7 +402,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -464,7 +464,7 @@ jobs: - name: Install dependencies run: make install_${{ matrix.language}}_sdk - name: Install gotestfmt - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: haveyoudebuggedit/gotestfmt - name: Run tests diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index dd971c4fb1b..6889e50d949 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -43,7 +43,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -160,14 +160,14 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI uses: pulumi/action-install-pulumi-cli@v2 - if: github.event_name == 'pull_request' name: Install Schema Tools - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: mikhailshilkov/schema-tools - name: Build tfgen & provider binaries @@ -249,7 +249,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI @@ -311,7 +311,7 @@ jobs: - name: Install dependencies run: make install_${{ matrix.language}}_sdk - name: Install gotestfmt - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: haveyoudebuggedit/gotestfmt - name: Run tests diff --git a/.github/workflows/update-bridge.yml b/.github/workflows/update-bridge.yml index 83921b39b50..2db20682f4e 100644 --- a/.github/workflows/update-bridge.yml +++ b/.github/workflows/update-bridge.yml @@ -16,7 +16,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI diff --git a/.github/workflows/update-upstream-provider.yml b/.github/workflows/update-upstream-provider.yml index 6582acc9833..b0f2a62c057 100644 --- a/.github/workflows/update-upstream-provider.yml +++ b/.github/workflows/update-upstream-provider.yml @@ -41,7 +41,7 @@ jobs: with: go-version: ${{matrix.goversion}} - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.2.0 + uses: jaxxstorm/action-install-gh-release@v1.5.0 with: repo: pulumi/pulumictl - name: Install Pulumi CLI diff --git a/Makefile b/Makefile index 606b038cd8f..81208f9c21c 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ TFGEN := pulumi-tfgen-$(PACK) PROVIDER := pulumi-resource-$(PACK) VERSION := $(shell pulumictl get version) JAVA_GEN := pulumi-java-gen -JAVA_GEN_VERSION := v0.5.0 +JAVA_GEN_VERSION := v0.5.4 TESTPARALLELISM := 10 WORKING_DIR := $(shell pwd) @@ -93,7 +93,7 @@ install_plugins:: pulumi plugin install resource tls 4.1.0 pulumi plugin install resource github 4.10.0 pulumi plugin install resource kubernetes 3.17.0 - pulumi plugin install resource random 4.4.1 + pulumi plugin install resource random 4.8.2 install_dotnet_sdk:: mkdir -p $(WORKING_DIR)/nuget diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index ed8af3c2852..7bc81567ca5 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -42,7 +42,8 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") - implementation("com.pulumi:pulumi:0.5.0") + implementation("com.google.code.gson:gson:2.8.9") + implementation("com.pulumi:pulumi:0.5.4") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/aws/accessanalyzer/outputs/ArchiveRuleFilter.java b/sdk/java/src/main/java/com/pulumi/aws/accessanalyzer/outputs/ArchiveRuleFilter.java index 5797a5331ff..a37e5980cbb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/accessanalyzer/outputs/ArchiveRuleFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/accessanalyzer/outputs/ArchiveRuleFilter.java @@ -16,42 +16,29 @@ public final class ArchiveRuleFilter { * @return Contains comparator. * */ - private final @Nullable List contains; + private @Nullable List contains; /** * @return The filter criteria. * */ - private final String criteria; + private String criteria; /** * @return Equals comparator. * */ - private final @Nullable List eqs; + private @Nullable List eqs; /** * @return Boolean comparator. * */ - private final @Nullable String exists; + private @Nullable String exists; /** * @return Not Equals comparator. * */ - private final @Nullable List neqs; - - @CustomType.Constructor - private ArchiveRuleFilter( - @CustomType.Parameter("contains") @Nullable List contains, - @CustomType.Parameter("criteria") String criteria, - @CustomType.Parameter("eqs") @Nullable List eqs, - @CustomType.Parameter("exists") @Nullable String exists, - @CustomType.Parameter("neqs") @Nullable List neqs) { - this.contains = contains; - this.criteria = criteria; - this.eqs = eqs; - this.exists = exists; - this.neqs = neqs; - } + private @Nullable List neqs; + private ArchiveRuleFilter() {} /** * @return Contains comparator. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ArchiveRuleFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List contains; private String criteria; private @Nullable List eqs; private @Nullable String exists; private @Nullable List neqs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ArchiveRuleFilter defaults) { Objects.requireNonNull(defaults); this.contains = defaults.contains; @@ -116,6 +99,7 @@ public Builder(ArchiveRuleFilter defaults) { this.neqs = defaults.neqs; } + @CustomType.Setter public Builder contains(@Nullable List contains) { this.contains = contains; return this; @@ -123,10 +107,12 @@ public Builder contains(@Nullable List contains) { public Builder contains(String... contains) { return contains(List.of(contains)); } + @CustomType.Setter public Builder criteria(String criteria) { this.criteria = Objects.requireNonNull(criteria); return this; } + @CustomType.Setter public Builder eqs(@Nullable List eqs) { this.eqs = eqs; return this; @@ -134,18 +120,27 @@ public Builder eqs(@Nullable List eqs) { public Builder eqs(String... eqs) { return eqs(List.of(eqs)); } + @CustomType.Setter public Builder exists(@Nullable String exists) { this.exists = exists; return this; } + @CustomType.Setter public Builder neqs(@Nullable List neqs) { this.neqs = neqs; return this; } public Builder neqs(String... neqs) { return neqs(List.of(neqs)); - } public ArchiveRuleFilter build() { - return new ArchiveRuleFilter(contains, criteria, eqs, exists, neqs); + } + public ArchiveRuleFilter build() { + final var o = new ArchiveRuleFilter(); + o.contains = contains; + o.criteria = criteria; + o.eqs = eqs; + o.exists = exists; + o.neqs = neqs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/CertificateDomainValidationOption.java b/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/CertificateDomainValidationOption.java index 12790ce9f00..72e77be19a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/CertificateDomainValidationOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/CertificateDomainValidationOption.java @@ -15,35 +15,24 @@ public final class CertificateDomainValidationOption { * @return A fully qualified domain name (FQDN) in the certificate. * */ - private final @Nullable String domainName; + private @Nullable String domainName; /** * @return The name of the DNS record to create to validate the certificate * */ - private final @Nullable String resourceRecordName; + private @Nullable String resourceRecordName; /** * @return The type of DNS record to create * */ - private final @Nullable String resourceRecordType; + private @Nullable String resourceRecordType; /** * @return The value the DNS record needs to have * */ - private final @Nullable String resourceRecordValue; - - @CustomType.Constructor - private CertificateDomainValidationOption( - @CustomType.Parameter("domainName") @Nullable String domainName, - @CustomType.Parameter("resourceRecordName") @Nullable String resourceRecordName, - @CustomType.Parameter("resourceRecordType") @Nullable String resourceRecordType, - @CustomType.Parameter("resourceRecordValue") @Nullable String resourceRecordValue) { - this.domainName = domainName; - this.resourceRecordName = resourceRecordName; - this.resourceRecordType = resourceRecordType; - this.resourceRecordValue = resourceRecordValue; - } + private @Nullable String resourceRecordValue; + private CertificateDomainValidationOption() {} /** * @return A fully qualified domain name (FQDN) in the certificate. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(CertificateDomainValidationOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String domainName; private @Nullable String resourceRecordName; private @Nullable String resourceRecordType; private @Nullable String resourceRecordValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CertificateDomainValidationOption defaults) { Objects.requireNonNull(defaults); this.domainName = defaults.domainName; @@ -99,23 +84,33 @@ public Builder(CertificateDomainValidationOption defaults) { this.resourceRecordValue = defaults.resourceRecordValue; } + @CustomType.Setter public Builder domainName(@Nullable String domainName) { this.domainName = domainName; return this; } + @CustomType.Setter public Builder resourceRecordName(@Nullable String resourceRecordName) { this.resourceRecordName = resourceRecordName; return this; } + @CustomType.Setter public Builder resourceRecordType(@Nullable String resourceRecordType) { this.resourceRecordType = resourceRecordType; return this; } + @CustomType.Setter public Builder resourceRecordValue(@Nullable String resourceRecordValue) { this.resourceRecordValue = resourceRecordValue; return this; - } public CertificateDomainValidationOption build() { - return new CertificateDomainValidationOption(domainName, resourceRecordName, resourceRecordType, resourceRecordValue); + } + public CertificateDomainValidationOption build() { + final var o = new CertificateDomainValidationOption(); + o.domainName = domainName; + o.resourceRecordName = resourceRecordName; + o.resourceRecordType = resourceRecordType; + o.resourceRecordValue = resourceRecordValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/CertificateOptions.java b/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/CertificateOptions.java index c9803bba57c..952068e780e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/CertificateOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/CertificateOptions.java @@ -15,13 +15,9 @@ public final class CertificateOptions { * @return Specifies whether certificate details should be added to a certificate transparency log. Valid values are `ENABLED` or `DISABLED`. See https://docs.aws.amazon.com/acm/latest/userguide/acm-concepts.html#concept-transparency for more details. * */ - private final @Nullable String certificateTransparencyLoggingPreference; - - @CustomType.Constructor - private CertificateOptions(@CustomType.Parameter("certificateTransparencyLoggingPreference") @Nullable String certificateTransparencyLoggingPreference) { - this.certificateTransparencyLoggingPreference = certificateTransparencyLoggingPreference; - } + private @Nullable String certificateTransparencyLoggingPreference; + private CertificateOptions() {} /** * @return Specifies whether certificate details should be added to a certificate transparency log. Valid values are `ENABLED` or `DISABLED`. See https://docs.aws.amazon.com/acm/latest/userguide/acm-concepts.html#concept-transparency for more details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(CertificateOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String certificateTransparencyLoggingPreference; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CertificateOptions defaults) { Objects.requireNonNull(defaults); this.certificateTransparencyLoggingPreference = defaults.certificateTransparencyLoggingPreference; } + @CustomType.Setter public Builder certificateTransparencyLoggingPreference(@Nullable String certificateTransparencyLoggingPreference) { this.certificateTransparencyLoggingPreference = certificateTransparencyLoggingPreference; return this; - } public CertificateOptions build() { - return new CertificateOptions(certificateTransparencyLoggingPreference); + } + public CertificateOptions build() { + final var o = new CertificateOptions(); + o.certificateTransparencyLoggingPreference = certificateTransparencyLoggingPreference; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/CertificateValidationOption.java b/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/CertificateValidationOption.java index e38a47831ee..582e4b7356f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/CertificateValidationOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/CertificateValidationOption.java @@ -13,21 +13,14 @@ public final class CertificateValidationOption { * @return A fully qualified domain name (FQDN) in the certificate. * */ - private final String domainName; + private String domainName; /** * @return The domain name that you want ACM to use to send you validation emails. This domain name is the suffix of the email addresses that you want ACM to use. This must be the same as the `domain_name` value or a superdomain of the `domain_name` value. For example, if you request a certificate for `"testing.example.com"`, you can specify `"example.com"` for this value. * */ - private final String validationDomain; - - @CustomType.Constructor - private CertificateValidationOption( - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("validationDomain") String validationDomain) { - this.domainName = domainName; - this.validationDomain = validationDomain; - } + private String validationDomain; + private CertificateValidationOption() {} /** * @return A fully qualified domain name (FQDN) in the certificate. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(CertificateValidationOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String domainName; private String validationDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CertificateValidationOption defaults) { Objects.requireNonNull(defaults); this.domainName = defaults.domainName; this.validationDomain = defaults.validationDomain; } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder validationDomain(String validationDomain) { this.validationDomain = Objects.requireNonNull(validationDomain); return this; - } public CertificateValidationOption build() { - return new CertificateValidationOption(domainName, validationDomain); + } + public CertificateValidationOption build() { + final var o = new CertificateValidationOption(); + o.domainName = domainName; + o.validationDomain = validationDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/GetCertificateResult.java b/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/GetCertificateResult.java index 0a3dfc49148..483611af97c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/GetCertificateResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acm/outputs/GetCertificateResult.java @@ -18,64 +18,39 @@ public final class GetCertificateResult { * @return Amazon Resource Name (ARN) of the found certificate, suitable for referencing in other resources that support ACM certificates. * */ - private final String arn; + private String arn; /** * @return The ACM-issued certificate. * */ - private final String certificate; + private String certificate; /** * @return Certificates forming the requested ACM-issued certificate's chain of trust. The chain consists of the certificate of the issuing CA and the intermediate certificates of any other subordinate CAs. * */ - private final String certificateChain; - private final String domain; + private String certificateChain; + private String domain; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable List keyTypes; - private final @Nullable Boolean mostRecent; + private String id; + private @Nullable List keyTypes; + private @Nullable Boolean mostRecent; /** * @return Status of the found certificate. * */ - private final String status; - private final @Nullable List statuses; + private String status; + private @Nullable List statuses; /** * @return A mapping of tags for the resource. * */ - private final Map tags; - private final @Nullable List types; - - @CustomType.Constructor - private GetCertificateResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("certificate") String certificate, - @CustomType.Parameter("certificateChain") String certificateChain, - @CustomType.Parameter("domain") String domain, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("keyTypes") @Nullable List keyTypes, - @CustomType.Parameter("mostRecent") @Nullable Boolean mostRecent, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("statuses") @Nullable List statuses, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("types") @Nullable List types) { - this.arn = arn; - this.certificate = certificate; - this.certificateChain = certificateChain; - this.domain = domain; - this.id = id; - this.keyTypes = keyTypes; - this.mostRecent = mostRecent; - this.status = status; - this.statuses = statuses; - this.tags = tags; - this.types = types; - } + private Map tags; + private @Nullable List types; + private GetCertificateResult() {} /** * @return Amazon Resource Name (ARN) of the found certificate, suitable for referencing in other resources that support ACM certificates. * @@ -141,7 +116,7 @@ public static Builder builder() { public static Builder builder(GetCertificateResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String certificate; @@ -154,11 +129,7 @@ public static final class Builder { private @Nullable List statuses; private Map tags; private @Nullable List types; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCertificateResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -174,26 +145,32 @@ public Builder(GetCertificateResult defaults) { this.types = defaults.types; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder certificate(String certificate) { this.certificate = Objects.requireNonNull(certificate); return this; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; } + @CustomType.Setter public Builder domain(String domain) { this.domain = Objects.requireNonNull(domain); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder keyTypes(@Nullable List keyTypes) { this.keyTypes = keyTypes; return this; @@ -201,14 +178,17 @@ public Builder keyTypes(@Nullable List keyTypes) { public Builder keyTypes(String... keyTypes) { return keyTypes(List.of(keyTypes)); } + @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { this.mostRecent = mostRecent; return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder statuses(@Nullable List statuses) { this.statuses = statuses; return this; @@ -216,18 +196,33 @@ public Builder statuses(@Nullable List statuses) { public Builder statuses(String... statuses) { return statuses(List.of(statuses)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder types(@Nullable List types) { this.types = types; return this; } public Builder types(String... types) { return types(List.of(types)); - } public GetCertificateResult build() { - return new GetCertificateResult(arn, certificate, certificateChain, domain, id, keyTypes, mostRecent, status, statuses, tags, types); + } + public GetCertificateResult build() { + final var o = new GetCertificateResult(); + o.arn = arn; + o.certificate = certificate; + o.certificateChain = certificateChain; + o.domain = domain; + o.id = id; + o.keyTypes = keyTypes; + o.mostRecent = mostRecent; + o.status = status; + o.statuses = statuses; + o.tags = tags; + o.types = types; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityCertificateAuthorityConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityCertificateAuthorityConfiguration.java index 87eb7bbc9e7..c9da084f84c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityCertificateAuthorityConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityCertificateAuthorityConfiguration.java @@ -14,28 +14,19 @@ public final class CertificateAuthorityCertificateAuthorityConfiguration { * @return Type of the public key algorithm and size, in bits, of the key pair that your key pair creates when it issues a certificate. Valid values can be found in the [ACM PCA Documentation](https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CertificateAuthorityConfiguration.html). * */ - private final String keyAlgorithm; + private String keyAlgorithm; /** * @return Name of the algorithm your private CA uses to sign certificate requests. Valid values can be found in the [ACM PCA Documentation](https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CertificateAuthorityConfiguration.html). * */ - private final String signingAlgorithm; + private String signingAlgorithm; /** * @return Nested argument that contains X.500 distinguished name information. At least one nested attribute must be specified. * */ - private final CertificateAuthorityCertificateAuthorityConfigurationSubject subject; - - @CustomType.Constructor - private CertificateAuthorityCertificateAuthorityConfiguration( - @CustomType.Parameter("keyAlgorithm") String keyAlgorithm, - @CustomType.Parameter("signingAlgorithm") String signingAlgorithm, - @CustomType.Parameter("subject") CertificateAuthorityCertificateAuthorityConfigurationSubject subject) { - this.keyAlgorithm = keyAlgorithm; - this.signingAlgorithm = signingAlgorithm; - this.subject = subject; - } + private CertificateAuthorityCertificateAuthorityConfigurationSubject subject; + private CertificateAuthorityCertificateAuthorityConfiguration() {} /** * @return Type of the public key algorithm and size, in bits, of the key pair that your key pair creates when it issues a certificate. Valid values can be found in the [ACM PCA Documentation](https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_CertificateAuthorityConfiguration.html). * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(CertificateAuthorityCertificateAuthorityConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String keyAlgorithm; private String signingAlgorithm; private CertificateAuthorityCertificateAuthorityConfigurationSubject subject; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CertificateAuthorityCertificateAuthorityConfiguration defaults) { Objects.requireNonNull(defaults); this.keyAlgorithm = defaults.keyAlgorithm; @@ -82,19 +69,27 @@ public Builder(CertificateAuthorityCertificateAuthorityConfiguration defaults) { this.subject = defaults.subject; } + @CustomType.Setter public Builder keyAlgorithm(String keyAlgorithm) { this.keyAlgorithm = Objects.requireNonNull(keyAlgorithm); return this; } + @CustomType.Setter public Builder signingAlgorithm(String signingAlgorithm) { this.signingAlgorithm = Objects.requireNonNull(signingAlgorithm); return this; } + @CustomType.Setter public Builder subject(CertificateAuthorityCertificateAuthorityConfigurationSubject subject) { this.subject = Objects.requireNonNull(subject); return this; - } public CertificateAuthorityCertificateAuthorityConfiguration build() { - return new CertificateAuthorityCertificateAuthorityConfiguration(keyAlgorithm, signingAlgorithm, subject); + } + public CertificateAuthorityCertificateAuthorityConfiguration build() { + final var o = new CertificateAuthorityCertificateAuthorityConfiguration(); + o.keyAlgorithm = keyAlgorithm; + o.signingAlgorithm = signingAlgorithm; + o.subject = subject; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityCertificateAuthorityConfigurationSubject.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityCertificateAuthorityConfigurationSubject.java index 655e94f609b..b656e4958fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityCertificateAuthorityConfigurationSubject.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityCertificateAuthorityConfigurationSubject.java @@ -15,98 +15,69 @@ public final class CertificateAuthorityCertificateAuthorityConfigurationSubject * @return Fully qualified domain name (FQDN) associated with the certificate subject. Must be less than or equal to 64 characters in length. * */ - private final @Nullable String commonName; + private @Nullable String commonName; /** * @return Two digit code that specifies the country in which the certificate subject located. Must be less than or equal to 2 characters in length. * */ - private final @Nullable String country; + private @Nullable String country; /** * @return Disambiguating information for the certificate subject. Must be less than or equal to 64 characters in length. * */ - private final @Nullable String distinguishedNameQualifier; + private @Nullable String distinguishedNameQualifier; /** * @return Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third. Must be less than or equal to 3 characters in length. * */ - private final @Nullable String generationQualifier; + private @Nullable String generationQualifier; /** * @return First name. Must be less than or equal to 16 characters in length. * */ - private final @Nullable String givenName; + private @Nullable String givenName; /** * @return Concatenation that typically contains the first letter of the `given_name`, the first letter of the middle name if one exists, and the first letter of the `surname`. Must be less than or equal to 5 characters in length. * */ - private final @Nullable String initials; + private @Nullable String initials; /** * @return The locality (such as a city or town) in which the certificate subject is located. Must be less than or equal to 128 characters in length. * */ - private final @Nullable String locality; + private @Nullable String locality; /** * @return Legal name of the organization with which the certificate subject is affiliated. Must be less than or equal to 64 characters in length. * */ - private final @Nullable String organization; + private @Nullable String organization; /** * @return A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated. Must be less than or equal to 64 characters in length. * */ - private final @Nullable String organizationalUnit; + private @Nullable String organizationalUnit; /** * @return Typically a shortened version of a longer `given_name`. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza. Must be less than or equal to 128 characters in length. * */ - private final @Nullable String pseudonym; + private @Nullable String pseudonym; /** * @return State in which the subject of the certificate is located. Must be less than or equal to 128 characters in length. * */ - private final @Nullable String state; + private @Nullable String state; /** * @return Family name. In the US and the UK for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first. Must be less than or equal to 40 characters in length. * */ - private final @Nullable String surname; + private @Nullable String surname; /** * @return A title such as Mr. or Ms. which is pre-pended to the name to refer formally to the certificate subject. Must be less than or equal to 64 characters in length. * */ - private final @Nullable String title; - - @CustomType.Constructor - private CertificateAuthorityCertificateAuthorityConfigurationSubject( - @CustomType.Parameter("commonName") @Nullable String commonName, - @CustomType.Parameter("country") @Nullable String country, - @CustomType.Parameter("distinguishedNameQualifier") @Nullable String distinguishedNameQualifier, - @CustomType.Parameter("generationQualifier") @Nullable String generationQualifier, - @CustomType.Parameter("givenName") @Nullable String givenName, - @CustomType.Parameter("initials") @Nullable String initials, - @CustomType.Parameter("locality") @Nullable String locality, - @CustomType.Parameter("organization") @Nullable String organization, - @CustomType.Parameter("organizationalUnit") @Nullable String organizationalUnit, - @CustomType.Parameter("pseudonym") @Nullable String pseudonym, - @CustomType.Parameter("state") @Nullable String state, - @CustomType.Parameter("surname") @Nullable String surname, - @CustomType.Parameter("title") @Nullable String title) { - this.commonName = commonName; - this.country = country; - this.distinguishedNameQualifier = distinguishedNameQualifier; - this.generationQualifier = generationQualifier; - this.givenName = givenName; - this.initials = initials; - this.locality = locality; - this.organization = organization; - this.organizationalUnit = organizationalUnit; - this.pseudonym = pseudonym; - this.state = state; - this.surname = surname; - this.title = title; - } + private @Nullable String title; + private CertificateAuthorityCertificateAuthorityConfigurationSubject() {} /** * @return Fully qualified domain name (FQDN) associated with the certificate subject. Must be less than or equal to 64 characters in length. * @@ -206,7 +177,7 @@ public static Builder builder() { public static Builder builder(CertificateAuthorityCertificateAuthorityConfigurationSubject defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String commonName; private @Nullable String country; @@ -221,11 +192,7 @@ public static final class Builder { private @Nullable String state; private @Nullable String surname; private @Nullable String title; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CertificateAuthorityCertificateAuthorityConfigurationSubject defaults) { Objects.requireNonNull(defaults); this.commonName = defaults.commonName; @@ -243,59 +210,87 @@ public Builder(CertificateAuthorityCertificateAuthorityConfigurationSubject defa this.title = defaults.title; } + @CustomType.Setter public Builder commonName(@Nullable String commonName) { this.commonName = commonName; return this; } + @CustomType.Setter public Builder country(@Nullable String country) { this.country = country; return this; } + @CustomType.Setter public Builder distinguishedNameQualifier(@Nullable String distinguishedNameQualifier) { this.distinguishedNameQualifier = distinguishedNameQualifier; return this; } + @CustomType.Setter public Builder generationQualifier(@Nullable String generationQualifier) { this.generationQualifier = generationQualifier; return this; } + @CustomType.Setter public Builder givenName(@Nullable String givenName) { this.givenName = givenName; return this; } + @CustomType.Setter public Builder initials(@Nullable String initials) { this.initials = initials; return this; } + @CustomType.Setter public Builder locality(@Nullable String locality) { this.locality = locality; return this; } + @CustomType.Setter public Builder organization(@Nullable String organization) { this.organization = organization; return this; } + @CustomType.Setter public Builder organizationalUnit(@Nullable String organizationalUnit) { this.organizationalUnit = organizationalUnit; return this; } + @CustomType.Setter public Builder pseudonym(@Nullable String pseudonym) { this.pseudonym = pseudonym; return this; } + @CustomType.Setter public Builder state(@Nullable String state) { this.state = state; return this; } + @CustomType.Setter public Builder surname(@Nullable String surname) { this.surname = surname; return this; } + @CustomType.Setter public Builder title(@Nullable String title) { this.title = title; return this; - } public CertificateAuthorityCertificateAuthorityConfigurationSubject build() { - return new CertificateAuthorityCertificateAuthorityConfigurationSubject(commonName, country, distinguishedNameQualifier, generationQualifier, givenName, initials, locality, organization, organizationalUnit, pseudonym, state, surname, title); + } + public CertificateAuthorityCertificateAuthorityConfigurationSubject build() { + final var o = new CertificateAuthorityCertificateAuthorityConfigurationSubject(); + o.commonName = commonName; + o.country = country; + o.distinguishedNameQualifier = distinguishedNameQualifier; + o.generationQualifier = generationQualifier; + o.givenName = givenName; + o.initials = initials; + o.locality = locality; + o.organization = organization; + o.organizationalUnit = organizationalUnit; + o.pseudonym = pseudonym; + o.state = state; + o.surname = surname; + o.title = title; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityRevocationConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityRevocationConfiguration.java index 4271da4af66..9930b0e67f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityRevocationConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityRevocationConfiguration.java @@ -16,22 +16,15 @@ public final class CertificateAuthorityRevocationConfiguration { * @return Nested argument containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority. Defined below. * */ - private final @Nullable CertificateAuthorityRevocationConfigurationCrlConfiguration crlConfiguration; + private @Nullable CertificateAuthorityRevocationConfigurationCrlConfiguration crlConfiguration; /** * @return Nested argument containing configuration of * the custom OCSP responder endpoint. Defined below. * */ - private final @Nullable CertificateAuthorityRevocationConfigurationOcspConfiguration ocspConfiguration; - - @CustomType.Constructor - private CertificateAuthorityRevocationConfiguration( - @CustomType.Parameter("crlConfiguration") @Nullable CertificateAuthorityRevocationConfigurationCrlConfiguration crlConfiguration, - @CustomType.Parameter("ocspConfiguration") @Nullable CertificateAuthorityRevocationConfigurationOcspConfiguration ocspConfiguration) { - this.crlConfiguration = crlConfiguration; - this.ocspConfiguration = ocspConfiguration; - } + private @Nullable CertificateAuthorityRevocationConfigurationOcspConfiguration ocspConfiguration; + private CertificateAuthorityRevocationConfiguration() {} /** * @return Nested argument containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority. Defined below. * @@ -55,30 +48,32 @@ public static Builder builder() { public static Builder builder(CertificateAuthorityRevocationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable CertificateAuthorityRevocationConfigurationCrlConfiguration crlConfiguration; private @Nullable CertificateAuthorityRevocationConfigurationOcspConfiguration ocspConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CertificateAuthorityRevocationConfiguration defaults) { Objects.requireNonNull(defaults); this.crlConfiguration = defaults.crlConfiguration; this.ocspConfiguration = defaults.ocspConfiguration; } + @CustomType.Setter public Builder crlConfiguration(@Nullable CertificateAuthorityRevocationConfigurationCrlConfiguration crlConfiguration) { this.crlConfiguration = crlConfiguration; return this; } + @CustomType.Setter public Builder ocspConfiguration(@Nullable CertificateAuthorityRevocationConfigurationOcspConfiguration ocspConfiguration) { this.ocspConfiguration = ocspConfiguration; return this; - } public CertificateAuthorityRevocationConfiguration build() { - return new CertificateAuthorityRevocationConfiguration(crlConfiguration, ocspConfiguration); + } + public CertificateAuthorityRevocationConfiguration build() { + final var o = new CertificateAuthorityRevocationConfiguration(); + o.crlConfiguration = crlConfiguration; + o.ocspConfiguration = ocspConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityRevocationConfigurationCrlConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityRevocationConfigurationCrlConfiguration.java index 48831fb08f0..704df20b1a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityRevocationConfigurationCrlConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityRevocationConfigurationCrlConfiguration.java @@ -17,42 +17,29 @@ public final class CertificateAuthorityRevocationConfigurationCrlConfiguration { * @return Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don't want the name of your S3 bucket to be public. Must be less than or equal to 253 characters in length. * */ - private final @Nullable String customCname; + private @Nullable String customCname; /** * @return Boolean value that specifies whether a custom OCSP responder is enabled. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Number of days until a certificate expires. Must be between 1 and 5000. * */ - private final Integer expirationInDays; + private Integer expirationInDays; /** * @return Name of the S3 bucket that contains the CRL. If you do not provide a value for the `custom_cname` argument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You must specify a bucket policy that allows ACM PCA to write the CRL to your bucket. Must be less than or equal to 255 characters in length. * */ - private final @Nullable String s3BucketName; + private @Nullable String s3BucketName; /** * @return Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket. Defaults to `PUBLIC_READ`. * */ - private final @Nullable String s3ObjectAcl; - - @CustomType.Constructor - private CertificateAuthorityRevocationConfigurationCrlConfiguration( - @CustomType.Parameter("customCname") @Nullable String customCname, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("expirationInDays") Integer expirationInDays, - @CustomType.Parameter("s3BucketName") @Nullable String s3BucketName, - @CustomType.Parameter("s3ObjectAcl") @Nullable String s3ObjectAcl) { - this.customCname = customCname; - this.enabled = enabled; - this.expirationInDays = expirationInDays; - this.s3BucketName = s3BucketName; - this.s3ObjectAcl = s3ObjectAcl; - } + private @Nullable String s3ObjectAcl; + private CertificateAuthorityRevocationConfigurationCrlConfiguration() {} /** * @return Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don't want the name of your S3 bucket to be public. Must be less than or equal to 253 characters in length. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(CertificateAuthorityRevocationConfigurationCrlConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String customCname; private @Nullable Boolean enabled; private Integer expirationInDays; private @Nullable String s3BucketName; private @Nullable String s3ObjectAcl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CertificateAuthorityRevocationConfigurationCrlConfiguration defaults) { Objects.requireNonNull(defaults); this.customCname = defaults.customCname; @@ -117,27 +100,39 @@ public Builder(CertificateAuthorityRevocationConfigurationCrlConfiguration defau this.s3ObjectAcl = defaults.s3ObjectAcl; } + @CustomType.Setter public Builder customCname(@Nullable String customCname) { this.customCname = customCname; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder expirationInDays(Integer expirationInDays) { this.expirationInDays = Objects.requireNonNull(expirationInDays); return this; } + @CustomType.Setter public Builder s3BucketName(@Nullable String s3BucketName) { this.s3BucketName = s3BucketName; return this; } + @CustomType.Setter public Builder s3ObjectAcl(@Nullable String s3ObjectAcl) { this.s3ObjectAcl = s3ObjectAcl; return this; - } public CertificateAuthorityRevocationConfigurationCrlConfiguration build() { - return new CertificateAuthorityRevocationConfigurationCrlConfiguration(customCname, enabled, expirationInDays, s3BucketName, s3ObjectAcl); + } + public CertificateAuthorityRevocationConfigurationCrlConfiguration build() { + final var o = new CertificateAuthorityRevocationConfigurationCrlConfiguration(); + o.customCname = customCname; + o.enabled = enabled; + o.expirationInDays = expirationInDays; + o.s3BucketName = s3BucketName; + o.s3ObjectAcl = s3ObjectAcl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityRevocationConfigurationOcspConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityRevocationConfigurationOcspConfiguration.java index 88b16e71a9d..a6ce722330d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityRevocationConfigurationOcspConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateAuthorityRevocationConfigurationOcspConfiguration.java @@ -16,21 +16,14 @@ public final class CertificateAuthorityRevocationConfigurationOcspConfiguration * @return Boolean value that specifies whether a custom OCSP responder is enabled. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return A CNAME specifying a customized OCSP domain. Note: The value of the CNAME must not include a protocol prefix such as "http://" or "https://". * */ - private final @Nullable String ocspCustomCname; - - @CustomType.Constructor - private CertificateAuthorityRevocationConfigurationOcspConfiguration( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("ocspCustomCname") @Nullable String ocspCustomCname) { - this.enabled = enabled; - this.ocspCustomCname = ocspCustomCname; - } + private @Nullable String ocspCustomCname; + private CertificateAuthorityRevocationConfigurationOcspConfiguration() {} /** * @return Boolean value that specifies whether a custom OCSP responder is enabled. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(CertificateAuthorityRevocationConfigurationOcspConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private @Nullable String ocspCustomCname; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CertificateAuthorityRevocationConfigurationOcspConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.ocspCustomCname = defaults.ocspCustomCname; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder ocspCustomCname(@Nullable String ocspCustomCname) { this.ocspCustomCname = ocspCustomCname; return this; - } public CertificateAuthorityRevocationConfigurationOcspConfiguration build() { - return new CertificateAuthorityRevocationConfigurationOcspConfiguration(enabled, ocspCustomCname); + } + public CertificateAuthorityRevocationConfigurationOcspConfiguration build() { + final var o = new CertificateAuthorityRevocationConfigurationOcspConfiguration(); + o.enabled = enabled; + o.ocspCustomCname = ocspCustomCname; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateValidity.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateValidity.java index 902f8af0538..2e1ddae36d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateValidity.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/CertificateValidity.java @@ -13,21 +13,14 @@ public final class CertificateValidity { * @return Determines how `value` is interpreted. Valid values: `DAYS`, `MONTHS`, `YEARS`, `ABSOLUTE`, `END_DATE`. * */ - private final String type; + private String type; /** * @return If `type` is `DAYS`, `MONTHS`, or `YEARS`, the relative time until the certificate expires. If `type` is `ABSOLUTE`, the date in seconds since the Unix epoch. If `type` is `END_DATE`, the date in RFC 3339 format. * */ - private final String value; - - @CustomType.Constructor - private CertificateValidity( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") String value) { - this.type = type; - this.value = value; - } + private String value; + private CertificateValidity() {} /** * @return Determines how `value` is interpreted. Valid values: `DAYS`, `MONTHS`, `YEARS`, `ABSOLUTE`, `END_DATE`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(CertificateValidity defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CertificateValidity defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.value = defaults.value; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public CertificateValidity build() { - return new CertificateValidity(type, value); + } + public CertificateValidity build() { + final var o = new CertificateValidity(); + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityResult.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityResult.java index 261aa1aeca3..9ff306b2289 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityResult.java @@ -12,37 +12,37 @@ @CustomType public final class GetCertificateAuthorityResult { - private final String arn; + private String arn; /** * @return Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported. * */ - private final String certificate; + private String certificate; /** * @return Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported. * */ - private final String certificateChain; + private String certificateChain; /** * @return The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate. * */ - private final String certificateSigningRequest; + private String certificateSigningRequest; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported. * */ - private final String notAfter; + private String notAfter; /** * @return Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported. * */ - private final String notBefore; + private String notBefore; /** * @return Nested attribute containing revocation configuration. * * `revocation_configuration.0.crl_configuration` - Nested attribute containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority. @@ -55,56 +55,29 @@ public final class GetCertificateAuthorityResult { * * `revocation_configuration.0.ocsp_configuration.0.ocsp_custom_cname` - A CNAME specifying a customized OCSP domain. * */ - private final List revocationConfigurations; + private List revocationConfigurations; /** * @return Serial number of the certificate authority. Only available after the certificate authority certificate has been imported. * */ - private final String serial; + private String serial; /** * @return Status of the certificate authority. * */ - private final String status; + private String status; /** * @return Specifies a key-value map of user-defined tags that are attached to the certificate authority. * */ - private final Map tags; + private Map tags; /** * @return The type of the certificate authority. * */ - private final String type; - - @CustomType.Constructor - private GetCertificateAuthorityResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("certificate") String certificate, - @CustomType.Parameter("certificateChain") String certificateChain, - @CustomType.Parameter("certificateSigningRequest") String certificateSigningRequest, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("notAfter") String notAfter, - @CustomType.Parameter("notBefore") String notBefore, - @CustomType.Parameter("revocationConfigurations") List revocationConfigurations, - @CustomType.Parameter("serial") String serial, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("type") String type) { - this.arn = arn; - this.certificate = certificate; - this.certificateChain = certificateChain; - this.certificateSigningRequest = certificateSigningRequest; - this.id = id; - this.notAfter = notAfter; - this.notBefore = notBefore; - this.revocationConfigurations = revocationConfigurations; - this.serial = serial; - this.status = status; - this.tags = tags; - this.type = type; - } + private String type; + private GetCertificateAuthorityResult() {} public String arn() { return this.arn; } @@ -201,7 +174,7 @@ public static Builder builder() { public static Builder builder(GetCertificateAuthorityResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String certificate; @@ -215,11 +188,7 @@ public static final class Builder { private String status; private Map tags; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCertificateAuthorityResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -236,34 +205,42 @@ public Builder(GetCertificateAuthorityResult defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder certificate(String certificate) { this.certificate = Objects.requireNonNull(certificate); return this; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; } + @CustomType.Setter public Builder certificateSigningRequest(String certificateSigningRequest) { this.certificateSigningRequest = Objects.requireNonNull(certificateSigningRequest); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder notAfter(String notAfter) { this.notAfter = Objects.requireNonNull(notAfter); return this; } + @CustomType.Setter public Builder notBefore(String notBefore) { this.notBefore = Objects.requireNonNull(notBefore); return this; } + @CustomType.Setter public Builder revocationConfigurations(List revocationConfigurations) { this.revocationConfigurations = Objects.requireNonNull(revocationConfigurations); return this; @@ -271,23 +248,41 @@ public Builder revocationConfigurations(List tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetCertificateAuthorityResult build() { - return new GetCertificateAuthorityResult(arn, certificate, certificateChain, certificateSigningRequest, id, notAfter, notBefore, revocationConfigurations, serial, status, tags, type); + } + public GetCertificateAuthorityResult build() { + final var o = new GetCertificateAuthorityResult(); + o.arn = arn; + o.certificate = certificate; + o.certificateChain = certificateChain; + o.certificateSigningRequest = certificateSigningRequest; + o.id = id; + o.notAfter = notAfter; + o.notBefore = notBefore; + o.revocationConfigurations = revocationConfigurations; + o.serial = serial; + o.status = status; + o.tags = tags; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityRevocationConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityRevocationConfiguration.java index a2b1fc409af..51e75201619 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityRevocationConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityRevocationConfiguration.java @@ -11,17 +11,10 @@ @CustomType public final class GetCertificateAuthorityRevocationConfiguration { - private final List crlConfigurations; - private final List ocspConfigurations; - - @CustomType.Constructor - private GetCertificateAuthorityRevocationConfiguration( - @CustomType.Parameter("crlConfigurations") List crlConfigurations, - @CustomType.Parameter("ocspConfigurations") List ocspConfigurations) { - this.crlConfigurations = crlConfigurations; - this.ocspConfigurations = ocspConfigurations; - } + private List crlConfigurations; + private List ocspConfigurations; + private GetCertificateAuthorityRevocationConfiguration() {} public List crlConfigurations() { return this.crlConfigurations; } @@ -36,21 +29,18 @@ public static Builder builder() { public static Builder builder(GetCertificateAuthorityRevocationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List crlConfigurations; private List ocspConfigurations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCertificateAuthorityRevocationConfiguration defaults) { Objects.requireNonNull(defaults); this.crlConfigurations = defaults.crlConfigurations; this.ocspConfigurations = defaults.ocspConfigurations; } + @CustomType.Setter public Builder crlConfigurations(List crlConfigurations) { this.crlConfigurations = Objects.requireNonNull(crlConfigurations); return this; @@ -58,14 +48,19 @@ public Builder crlConfigurations(List ocspConfigurations) { this.ocspConfigurations = Objects.requireNonNull(ocspConfigurations); return this; } public Builder ocspConfigurations(GetCertificateAuthorityRevocationConfigurationOcspConfiguration... ocspConfigurations) { return ocspConfigurations(List.of(ocspConfigurations)); - } public GetCertificateAuthorityRevocationConfiguration build() { - return new GetCertificateAuthorityRevocationConfiguration(crlConfigurations, ocspConfigurations); + } + public GetCertificateAuthorityRevocationConfiguration build() { + final var o = new GetCertificateAuthorityRevocationConfiguration(); + o.crlConfigurations = crlConfigurations; + o.ocspConfigurations = ocspConfigurations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityRevocationConfigurationCrlConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityRevocationConfigurationCrlConfiguration.java index a9a53cb5ab6..67fcf837ef9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityRevocationConfigurationCrlConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityRevocationConfigurationCrlConfiguration.java @@ -11,26 +11,13 @@ @CustomType public final class GetCertificateAuthorityRevocationConfigurationCrlConfiguration { - private final String customCname; - private final Boolean enabled; - private final Integer expirationInDays; - private final String s3BucketName; - private final String s3ObjectAcl; - - @CustomType.Constructor - private GetCertificateAuthorityRevocationConfigurationCrlConfiguration( - @CustomType.Parameter("customCname") String customCname, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("expirationInDays") Integer expirationInDays, - @CustomType.Parameter("s3BucketName") String s3BucketName, - @CustomType.Parameter("s3ObjectAcl") String s3ObjectAcl) { - this.customCname = customCname; - this.enabled = enabled; - this.expirationInDays = expirationInDays; - this.s3BucketName = s3BucketName; - this.s3ObjectAcl = s3ObjectAcl; - } + private String customCname; + private Boolean enabled; + private Integer expirationInDays; + private String s3BucketName; + private String s3ObjectAcl; + private GetCertificateAuthorityRevocationConfigurationCrlConfiguration() {} public String customCname() { return this.customCname; } @@ -54,18 +41,14 @@ public static Builder builder() { public static Builder builder(GetCertificateAuthorityRevocationConfigurationCrlConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String customCname; private Boolean enabled; private Integer expirationInDays; private String s3BucketName; private String s3ObjectAcl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCertificateAuthorityRevocationConfigurationCrlConfiguration defaults) { Objects.requireNonNull(defaults); this.customCname = defaults.customCname; @@ -75,27 +58,39 @@ public Builder(GetCertificateAuthorityRevocationConfigurationCrlConfiguration de this.s3ObjectAcl = defaults.s3ObjectAcl; } + @CustomType.Setter public Builder customCname(String customCname) { this.customCname = Objects.requireNonNull(customCname); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder expirationInDays(Integer expirationInDays) { this.expirationInDays = Objects.requireNonNull(expirationInDays); return this; } + @CustomType.Setter public Builder s3BucketName(String s3BucketName) { this.s3BucketName = Objects.requireNonNull(s3BucketName); return this; } + @CustomType.Setter public Builder s3ObjectAcl(String s3ObjectAcl) { this.s3ObjectAcl = Objects.requireNonNull(s3ObjectAcl); return this; - } public GetCertificateAuthorityRevocationConfigurationCrlConfiguration build() { - return new GetCertificateAuthorityRevocationConfigurationCrlConfiguration(customCname, enabled, expirationInDays, s3BucketName, s3ObjectAcl); + } + public GetCertificateAuthorityRevocationConfigurationCrlConfiguration build() { + final var o = new GetCertificateAuthorityRevocationConfigurationCrlConfiguration(); + o.customCname = customCname; + o.enabled = enabled; + o.expirationInDays = expirationInDays; + o.s3BucketName = s3BucketName; + o.s3ObjectAcl = s3ObjectAcl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityRevocationConfigurationOcspConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityRevocationConfigurationOcspConfiguration.java index 5bb16412ebb..178efc5fbcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityRevocationConfigurationOcspConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateAuthorityRevocationConfigurationOcspConfiguration.java @@ -10,17 +10,10 @@ @CustomType public final class GetCertificateAuthorityRevocationConfigurationOcspConfiguration { - private final Boolean enabled; - private final String ocspCustomCname; - - @CustomType.Constructor - private GetCertificateAuthorityRevocationConfigurationOcspConfiguration( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("ocspCustomCname") String ocspCustomCname) { - this.enabled = enabled; - this.ocspCustomCname = ocspCustomCname; - } + private Boolean enabled; + private String ocspCustomCname; + private GetCertificateAuthorityRevocationConfigurationOcspConfiguration() {} public Boolean enabled() { return this.enabled; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetCertificateAuthorityRevocationConfigurationOcspConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private String ocspCustomCname; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCertificateAuthorityRevocationConfigurationOcspConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.ocspCustomCname = defaults.ocspCustomCname; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder ocspCustomCname(String ocspCustomCname) { this.ocspCustomCname = Objects.requireNonNull(ocspCustomCname); return this; - } public GetCertificateAuthorityRevocationConfigurationOcspConfiguration build() { - return new GetCertificateAuthorityRevocationConfigurationOcspConfiguration(enabled, ocspCustomCname); + } + public GetCertificateAuthorityRevocationConfigurationOcspConfiguration build() { + final var o = new GetCertificateAuthorityRevocationConfigurationOcspConfiguration(); + o.enabled = enabled; + o.ocspCustomCname = ocspCustomCname; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateResult.java b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateResult.java index 7a9ec9a8645..5a47f62f7bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/acmpca/outputs/GetCertificateResult.java @@ -9,38 +9,25 @@ @CustomType public final class GetCertificateResult { - private final String arn; + private String arn; /** * @return The PEM-encoded certificate value. * */ - private final String certificate; - private final String certificateAuthorityArn; + private String certificate; + private String certificateAuthorityArn; /** * @return The PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. * */ - private final String certificateChain; + private String certificateChain; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetCertificateResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("certificate") String certificate, - @CustomType.Parameter("certificateAuthorityArn") String certificateAuthorityArn, - @CustomType.Parameter("certificateChain") String certificateChain, - @CustomType.Parameter("id") String id) { - this.arn = arn; - this.certificate = certificate; - this.certificateAuthorityArn = certificateAuthorityArn; - this.certificateChain = certificateChain; - this.id = id; - } + private String id; + private GetCertificateResult() {} public String arn() { return this.arn; } @@ -76,18 +63,14 @@ public static Builder builder() { public static Builder builder(GetCertificateResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String certificate; private String certificateAuthorityArn; private String certificateChain; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCertificateResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -97,27 +80,39 @@ public Builder(GetCertificateResult defaults) { this.id = defaults.id; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder certificate(String certificate) { this.certificate = Objects.requireNonNull(certificate); return this; } + @CustomType.Setter public Builder certificateAuthorityArn(String certificateAuthorityArn) { this.certificateAuthorityArn = Objects.requireNonNull(certificateAuthorityArn); return this; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetCertificateResult build() { - return new GetCertificateResult(arn, certificate, certificateAuthorityArn, certificateChain, id); + } + public GetCertificateResult build() { + final var o = new GetCertificateResult(); + o.arn = arn; + o.certificate = certificate; + o.certificateAuthorityArn = certificateAuthorityArn; + o.certificateChain = certificateChain; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultAction.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultAction.java index 285c0631a06..fd6294acd50 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultAction.java @@ -16,35 +16,16 @@ @CustomType public final class GetListenerDefaultAction { - private final List authenticateCognitos; - private final List authenticateOidcs; - private final List fixedResponses; - private final List forwards; - private final Integer order; - private final List redirects; - private final String targetGroupArn; - private final String type; - - @CustomType.Constructor - private GetListenerDefaultAction( - @CustomType.Parameter("authenticateCognitos") List authenticateCognitos, - @CustomType.Parameter("authenticateOidcs") List authenticateOidcs, - @CustomType.Parameter("fixedResponses") List fixedResponses, - @CustomType.Parameter("forwards") List forwards, - @CustomType.Parameter("order") Integer order, - @CustomType.Parameter("redirects") List redirects, - @CustomType.Parameter("targetGroupArn") String targetGroupArn, - @CustomType.Parameter("type") String type) { - this.authenticateCognitos = authenticateCognitos; - this.authenticateOidcs = authenticateOidcs; - this.fixedResponses = fixedResponses; - this.forwards = forwards; - this.order = order; - this.redirects = redirects; - this.targetGroupArn = targetGroupArn; - this.type = type; - } + private List authenticateCognitos; + private List authenticateOidcs; + private List fixedResponses; + private List forwards; + private Integer order; + private List redirects; + private String targetGroupArn; + private String type; + private GetListenerDefaultAction() {} public List authenticateCognitos() { return this.authenticateCognitos; } @@ -77,7 +58,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List authenticateCognitos; private List authenticateOidcs; @@ -87,11 +68,7 @@ public static final class Builder { private List redirects; private String targetGroupArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultAction defaults) { Objects.requireNonNull(defaults); this.authenticateCognitos = defaults.authenticateCognitos; @@ -104,6 +81,7 @@ public Builder(GetListenerDefaultAction defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder authenticateCognitos(List authenticateCognitos) { this.authenticateCognitos = Objects.requireNonNull(authenticateCognitos); return this; @@ -111,6 +89,7 @@ public Builder authenticateCognitos(List authenticateOidcs) { this.authenticateOidcs = Objects.requireNonNull(authenticateOidcs); return this; @@ -118,6 +97,7 @@ public Builder authenticateOidcs(List public Builder authenticateOidcs(GetListenerDefaultActionAuthenticateOidc... authenticateOidcs) { return authenticateOidcs(List.of(authenticateOidcs)); } + @CustomType.Setter public Builder fixedResponses(List fixedResponses) { this.fixedResponses = Objects.requireNonNull(fixedResponses); return this; @@ -125,6 +105,7 @@ public Builder fixedResponses(List fixedR public Builder fixedResponses(GetListenerDefaultActionFixedResponse... fixedResponses) { return fixedResponses(List.of(fixedResponses)); } + @CustomType.Setter public Builder forwards(List forwards) { this.forwards = Objects.requireNonNull(forwards); return this; @@ -132,10 +113,12 @@ public Builder forwards(List forwards) { public Builder forwards(GetListenerDefaultActionForward... forwards) { return forwards(List.of(forwards)); } + @CustomType.Setter public Builder order(Integer order) { this.order = Objects.requireNonNull(order); return this; } + @CustomType.Setter public Builder redirects(List redirects) { this.redirects = Objects.requireNonNull(redirects); return this; @@ -143,15 +126,27 @@ public Builder redirects(List redirects) { public Builder redirects(GetListenerDefaultActionRedirect... redirects) { return redirects(List.of(redirects)); } + @CustomType.Setter public Builder targetGroupArn(String targetGroupArn) { this.targetGroupArn = Objects.requireNonNull(targetGroupArn); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetListenerDefaultAction build() { - return new GetListenerDefaultAction(authenticateCognitos, authenticateOidcs, fixedResponses, forwards, order, redirects, targetGroupArn, type); + } + public GetListenerDefaultAction build() { + final var o = new GetListenerDefaultAction(); + o.authenticateCognitos = authenticateCognitos; + o.authenticateOidcs = authenticateOidcs; + o.fixedResponses = fixedResponses; + o.forwards = forwards; + o.order = order; + o.redirects = redirects; + o.targetGroupArn = targetGroupArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionAuthenticateCognito.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionAuthenticateCognito.java index 274aafbbea3..1b2003f3c11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionAuthenticateCognito.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionAuthenticateCognito.java @@ -11,35 +11,16 @@ @CustomType public final class GetListenerDefaultActionAuthenticateCognito { - private final Map authenticationRequestExtraParams; - private final String onUnauthenticatedRequest; - private final String scope; - private final String sessionCookieName; - private final Integer sessionTimeout; - private final String userPoolArn; - private final String userPoolClientId; - private final String userPoolDomain; - - @CustomType.Constructor - private GetListenerDefaultActionAuthenticateCognito( - @CustomType.Parameter("authenticationRequestExtraParams") Map authenticationRequestExtraParams, - @CustomType.Parameter("onUnauthenticatedRequest") String onUnauthenticatedRequest, - @CustomType.Parameter("scope") String scope, - @CustomType.Parameter("sessionCookieName") String sessionCookieName, - @CustomType.Parameter("sessionTimeout") Integer sessionTimeout, - @CustomType.Parameter("userPoolArn") String userPoolArn, - @CustomType.Parameter("userPoolClientId") String userPoolClientId, - @CustomType.Parameter("userPoolDomain") String userPoolDomain) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.userPoolArn = userPoolArn; - this.userPoolClientId = userPoolClientId; - this.userPoolDomain = userPoolDomain; - } + private Map authenticationRequestExtraParams; + private String onUnauthenticatedRequest; + private String scope; + private String sessionCookieName; + private Integer sessionTimeout; + private String userPoolArn; + private String userPoolClientId; + private String userPoolDomain; + private GetListenerDefaultActionAuthenticateCognito() {} public Map authenticationRequestExtraParams() { return this.authenticationRequestExtraParams; } @@ -72,7 +53,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionAuthenticateCognito defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map authenticationRequestExtraParams; private String onUnauthenticatedRequest; @@ -82,11 +63,7 @@ public static final class Builder { private String userPoolArn; private String userPoolClientId; private String userPoolDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionAuthenticateCognito defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -99,39 +76,57 @@ public Builder(GetListenerDefaultActionAuthenticateCognito defaults) { this.userPoolDomain = defaults.userPoolDomain; } + @CustomType.Setter public Builder authenticationRequestExtraParams(Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = Objects.requireNonNull(authenticationRequestExtraParams); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = Objects.requireNonNull(onUnauthenticatedRequest); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; } + @CustomType.Setter public Builder sessionCookieName(String sessionCookieName) { this.sessionCookieName = Objects.requireNonNull(sessionCookieName); return this; } + @CustomType.Setter public Builder sessionTimeout(Integer sessionTimeout) { this.sessionTimeout = Objects.requireNonNull(sessionTimeout); return this; } + @CustomType.Setter public Builder userPoolArn(String userPoolArn) { this.userPoolArn = Objects.requireNonNull(userPoolArn); return this; } + @CustomType.Setter public Builder userPoolClientId(String userPoolClientId) { this.userPoolClientId = Objects.requireNonNull(userPoolClientId); return this; } + @CustomType.Setter public Builder userPoolDomain(String userPoolDomain) { this.userPoolDomain = Objects.requireNonNull(userPoolDomain); return this; - } public GetListenerDefaultActionAuthenticateCognito build() { - return new GetListenerDefaultActionAuthenticateCognito(authenticationRequestExtraParams, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, userPoolArn, userPoolClientId, userPoolDomain); + } + public GetListenerDefaultActionAuthenticateCognito build() { + final var o = new GetListenerDefaultActionAuthenticateCognito(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.userPoolArn = userPoolArn; + o.userPoolClientId = userPoolClientId; + o.userPoolDomain = userPoolDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionAuthenticateOidc.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionAuthenticateOidc.java index cb71d614c8c..31106be26c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionAuthenticateOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionAuthenticateOidc.java @@ -11,44 +11,19 @@ @CustomType public final class GetListenerDefaultActionAuthenticateOidc { - private final Map authenticationRequestExtraParams; - private final String authorizationEndpoint; - private final String clientId; - private final String clientSecret; - private final String issuer; - private final String onUnauthenticatedRequest; - private final String scope; - private final String sessionCookieName; - private final Integer sessionTimeout; - private final String tokenEndpoint; - private final String userInfoEndpoint; - - @CustomType.Constructor - private GetListenerDefaultActionAuthenticateOidc( - @CustomType.Parameter("authenticationRequestExtraParams") Map authenticationRequestExtraParams, - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("onUnauthenticatedRequest") String onUnauthenticatedRequest, - @CustomType.Parameter("scope") String scope, - @CustomType.Parameter("sessionCookieName") String sessionCookieName, - @CustomType.Parameter("sessionTimeout") Integer sessionTimeout, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private Map authenticationRequestExtraParams; + private String authorizationEndpoint; + private String clientId; + private String clientSecret; + private String issuer; + private String onUnauthenticatedRequest; + private String scope; + private String sessionCookieName; + private Integer sessionTimeout; + private String tokenEndpoint; + private String userInfoEndpoint; + private GetListenerDefaultActionAuthenticateOidc() {} public Map authenticationRequestExtraParams() { return this.authenticationRequestExtraParams; } @@ -90,7 +65,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionAuthenticateOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map authenticationRequestExtraParams; private String authorizationEndpoint; @@ -103,11 +78,7 @@ public static final class Builder { private Integer sessionTimeout; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionAuthenticateOidc defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -123,51 +94,75 @@ public Builder(GetListenerDefaultActionAuthenticateOidc defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authenticationRequestExtraParams(Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = Objects.requireNonNull(authenticationRequestExtraParams); return this; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = Objects.requireNonNull(onUnauthenticatedRequest); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; } + @CustomType.Setter public Builder sessionCookieName(String sessionCookieName) { this.sessionCookieName = Objects.requireNonNull(sessionCookieName); return this; } + @CustomType.Setter public Builder sessionTimeout(Integer sessionTimeout) { this.sessionTimeout = Objects.requireNonNull(sessionTimeout); return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public GetListenerDefaultActionAuthenticateOidc build() { - return new GetListenerDefaultActionAuthenticateOidc(authenticationRequestExtraParams, authorizationEndpoint, clientId, clientSecret, issuer, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, tokenEndpoint, userInfoEndpoint); + } + public GetListenerDefaultActionAuthenticateOidc build() { + final var o = new GetListenerDefaultActionAuthenticateOidc(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionFixedResponse.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionFixedResponse.java index 5a8a69e5100..b900186df89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionFixedResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionFixedResponse.java @@ -9,20 +9,11 @@ @CustomType public final class GetListenerDefaultActionFixedResponse { - private final String contentType; - private final String messageBody; - private final String statusCode; - - @CustomType.Constructor - private GetListenerDefaultActionFixedResponse( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("messageBody") String messageBody, - @CustomType.Parameter("statusCode") String statusCode) { - this.contentType = contentType; - this.messageBody = messageBody; - this.statusCode = statusCode; - } + private String contentType; + private String messageBody; + private String statusCode; + private GetListenerDefaultActionFixedResponse() {} public String contentType() { return this.contentType; } @@ -40,16 +31,12 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionFixedResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private String messageBody; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionFixedResponse defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -57,19 +44,27 @@ public Builder(GetListenerDefaultActionFixedResponse defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder messageBody(String messageBody) { this.messageBody = Objects.requireNonNull(messageBody); return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public GetListenerDefaultActionFixedResponse build() { - return new GetListenerDefaultActionFixedResponse(contentType, messageBody, statusCode); + } + public GetListenerDefaultActionFixedResponse build() { + final var o = new GetListenerDefaultActionFixedResponse(); + o.contentType = contentType; + o.messageBody = messageBody; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionForward.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionForward.java index 6df3bd6ebee..b1fc8a5980e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionForward.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionForward.java @@ -11,17 +11,10 @@ @CustomType public final class GetListenerDefaultActionForward { - private final List stickinesses; - private final List targetGroups; - - @CustomType.Constructor - private GetListenerDefaultActionForward( - @CustomType.Parameter("stickinesses") List stickinesses, - @CustomType.Parameter("targetGroups") List targetGroups) { - this.stickinesses = stickinesses; - this.targetGroups = targetGroups; - } + private List stickinesses; + private List targetGroups; + private GetListenerDefaultActionForward() {} public List stickinesses() { return this.stickinesses; } @@ -36,21 +29,18 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionForward defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List stickinesses; private List targetGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionForward defaults) { Objects.requireNonNull(defaults); this.stickinesses = defaults.stickinesses; this.targetGroups = defaults.targetGroups; } + @CustomType.Setter public Builder stickinesses(List stickinesses) { this.stickinesses = Objects.requireNonNull(stickinesses); return this; @@ -58,14 +48,19 @@ public Builder stickinesses(List stic public Builder stickinesses(GetListenerDefaultActionForwardStickiness... stickinesses) { return stickinesses(List.of(stickinesses)); } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; } public Builder targetGroups(GetListenerDefaultActionForwardTargetGroup... targetGroups) { return targetGroups(List.of(targetGroups)); - } public GetListenerDefaultActionForward build() { - return new GetListenerDefaultActionForward(stickinesses, targetGroups); + } + public GetListenerDefaultActionForward build() { + final var o = new GetListenerDefaultActionForward(); + o.stickinesses = stickinesses; + o.targetGroups = targetGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionForwardStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionForwardStickiness.java index a4c69179c2a..5d9b98d288a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionForwardStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionForwardStickiness.java @@ -10,17 +10,10 @@ @CustomType public final class GetListenerDefaultActionForwardStickiness { - private final Integer duration; - private final Boolean enabled; - - @CustomType.Constructor - private GetListenerDefaultActionForwardStickiness( - @CustomType.Parameter("duration") Integer duration, - @CustomType.Parameter("enabled") Boolean enabled) { - this.duration = duration; - this.enabled = enabled; - } + private Integer duration; + private Boolean enabled; + private GetListenerDefaultActionForwardStickiness() {} public Integer duration() { return this.duration; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionForwardStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer duration; private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionForwardStickiness defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder duration(Integer duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public GetListenerDefaultActionForwardStickiness build() { - return new GetListenerDefaultActionForwardStickiness(duration, enabled); + } + public GetListenerDefaultActionForwardStickiness build() { + final var o = new GetListenerDefaultActionForwardStickiness(); + o.duration = duration; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionForwardTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionForwardTargetGroup.java index 9c41191ed90..8cf7b16e1a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionForwardTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionForwardTargetGroup.java @@ -14,17 +14,10 @@ public final class GetListenerDefaultActionForwardTargetGroup { * @return ARN of the listener. Required if `load_balancer_arn` and `port` is not set. * */ - private final String arn; - private final Integer weight; - - @CustomType.Constructor - private GetListenerDefaultActionForwardTargetGroup( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("weight") Integer weight) { - this.arn = arn; - this.weight = weight; - } + private String arn; + private Integer weight; + private GetListenerDefaultActionForwardTargetGroup() {} /** * @return ARN of the listener. Required if `load_balancer_arn` and `port` is not set. * @@ -43,30 +36,32 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionForwardTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionForwardTargetGroup defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.weight = defaults.weight; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder weight(Integer weight) { this.weight = Objects.requireNonNull(weight); return this; - } public GetListenerDefaultActionForwardTargetGroup build() { - return new GetListenerDefaultActionForwardTargetGroup(arn, weight); + } + public GetListenerDefaultActionForwardTargetGroup build() { + final var o = new GetListenerDefaultActionForwardTargetGroup(); + o.arn = arn; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionRedirect.java index 1108f1423c9..045985815fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerDefaultActionRedirect.java @@ -9,33 +9,18 @@ @CustomType public final class GetListenerDefaultActionRedirect { - private final String host; - private final String path; + private String host; + private String path; /** * @return Port of the listener. Required if `arn` is not set. * */ - private final String port; - private final String protocol; - private final String query; - private final String statusCode; - - @CustomType.Constructor - private GetListenerDefaultActionRedirect( - @CustomType.Parameter("host") String host, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("port") String port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("query") String query, - @CustomType.Parameter("statusCode") String statusCode) { - this.host = host; - this.path = path; - this.port = port; - this.protocol = protocol; - this.query = query; - this.statusCode = statusCode; - } + private String port; + private String protocol; + private String query; + private String statusCode; + private GetListenerDefaultActionRedirect() {} public String host() { return this.host; } @@ -66,7 +51,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String host; private String path; @@ -74,11 +59,7 @@ public static final class Builder { private String protocol; private String query; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionRedirect defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -89,31 +70,45 @@ public Builder(GetListenerDefaultActionRedirect defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder port(String port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder query(String query) { this.query = Objects.requireNonNull(query); return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public GetListenerDefaultActionRedirect build() { - return new GetListenerDefaultActionRedirect(host, path, port, protocol, query, statusCode); + } + public GetListenerDefaultActionRedirect build() { + final var o = new GetListenerDefaultActionRedirect(); + o.host = host; + o.path = path; + o.port = port; + o.protocol = protocol; + o.query = query; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerResult.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerResult.java index 274be1905e1..defc4bc36fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetListenerResult.java @@ -13,45 +13,22 @@ @CustomType public final class GetListenerResult { - private final String alpnPolicy; - private final String arn; - private final String certificateArn; - private final List defaultActions; + private String alpnPolicy; + private String arn; + private String certificateArn; + private List defaultActions; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String loadBalancerArn; - private final Integer port; - private final String protocol; - private final String sslPolicy; - private final Map tags; - - @CustomType.Constructor - private GetListenerResult( - @CustomType.Parameter("alpnPolicy") String alpnPolicy, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("certificateArn") String certificateArn, - @CustomType.Parameter("defaultActions") List defaultActions, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("loadBalancerArn") String loadBalancerArn, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("sslPolicy") String sslPolicy, - @CustomType.Parameter("tags") Map tags) { - this.alpnPolicy = alpnPolicy; - this.arn = arn; - this.certificateArn = certificateArn; - this.defaultActions = defaultActions; - this.id = id; - this.loadBalancerArn = loadBalancerArn; - this.port = port; - this.protocol = protocol; - this.sslPolicy = sslPolicy; - this.tags = tags; - } + private String id; + private String loadBalancerArn; + private Integer port; + private String protocol; + private String sslPolicy; + private Map tags; + private GetListenerResult() {} public String alpnPolicy() { return this.alpnPolicy; } @@ -94,7 +71,7 @@ public static Builder builder() { public static Builder builder(GetListenerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String alpnPolicy; private String arn; @@ -106,11 +83,7 @@ public static final class Builder { private String protocol; private String sslPolicy; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerResult defaults) { Objects.requireNonNull(defaults); this.alpnPolicy = defaults.alpnPolicy; @@ -125,18 +98,22 @@ public Builder(GetListenerResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder alpnPolicy(String alpnPolicy) { this.alpnPolicy = Objects.requireNonNull(alpnPolicy); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder certificateArn(String certificateArn) { this.certificateArn = Objects.requireNonNull(certificateArn); return this; } + @CustomType.Setter public Builder defaultActions(List defaultActions) { this.defaultActions = Objects.requireNonNull(defaultActions); return this; @@ -144,31 +121,49 @@ public Builder defaultActions(List defaultActions) { public Builder defaultActions(GetListenerDefaultAction... defaultActions) { return defaultActions(List.of(defaultActions)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder loadBalancerArn(String loadBalancerArn) { this.loadBalancerArn = Objects.requireNonNull(loadBalancerArn); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder sslPolicy(String sslPolicy) { this.sslPolicy = Objects.requireNonNull(sslPolicy); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetListenerResult build() { - return new GetListenerResult(alpnPolicy, arn, certificateArn, defaultActions, id, loadBalancerArn, port, protocol, sslPolicy, tags); + } + public GetListenerResult build() { + final var o = new GetListenerResult(); + o.alpnPolicy = alpnPolicy; + o.arn = arn; + o.certificateArn = certificateArn; + o.defaultActions = defaultActions; + o.id = id; + o.loadBalancerArn = loadBalancerArn; + o.port = port; + o.protocol = protocol; + o.sslPolicy = sslPolicy; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetLoadBalancerAccessLogs.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetLoadBalancerAccessLogs.java index 39c2a02c2ae..c2a2be56ce4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetLoadBalancerAccessLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetLoadBalancerAccessLogs.java @@ -10,20 +10,11 @@ @CustomType public final class GetLoadBalancerAccessLogs { - private final String bucket; - private final Boolean enabled; - private final String prefix; - - @CustomType.Constructor - private GetLoadBalancerAccessLogs( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("prefix") String prefix) { - this.bucket = bucket; - this.enabled = enabled; - this.prefix = prefix; - } + private String bucket; + private Boolean enabled; + private String prefix; + private GetLoadBalancerAccessLogs() {} public String bucket() { return this.bucket; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerAccessLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private Boolean enabled; private String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerAccessLogs defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -58,19 +45,27 @@ public Builder(GetLoadBalancerAccessLogs defaults) { this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder prefix(String prefix) { this.prefix = Objects.requireNonNull(prefix); return this; - } public GetLoadBalancerAccessLogs build() { - return new GetLoadBalancerAccessLogs(bucket, enabled, prefix); + } + public GetLoadBalancerAccessLogs build() { + final var o = new GetLoadBalancerAccessLogs(); + o.bucket = bucket; + o.enabled = enabled; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetLoadBalancerResult.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetLoadBalancerResult.java index a41d7075a86..1e685776e65 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetLoadBalancerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetLoadBalancerResult.java @@ -15,84 +15,35 @@ @CustomType public final class GetLoadBalancerResult { - private final GetLoadBalancerAccessLogs accessLogs; - private final String arn; - private final String arnSuffix; - private final String customerOwnedIpv4Pool; - private final String desyncMitigationMode; - private final String dnsName; - private final Boolean dropInvalidHeaderFields; - private final Boolean enableDeletionProtection; - private final Boolean enableHttp2; - private final Boolean enableWafFailOpen; + private GetLoadBalancerAccessLogs accessLogs; + private String arn; + private String arnSuffix; + private String customerOwnedIpv4Pool; + private String desyncMitigationMode; + private String dnsName; + private Boolean dropInvalidHeaderFields; + private Boolean enableDeletionProtection; + private Boolean enableHttp2; + private Boolean enableWafFailOpen; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final Integer idleTimeout; - private final Boolean internal; - private final String ipAddressType; - private final String loadBalancerType; - private final String name; - private final Boolean preserveHostHeader; - private final List securityGroups; - private final List subnetMappings; - private final List subnets; - private final Map tags; - private final String vpcId; - private final String zoneId; - - @CustomType.Constructor - private GetLoadBalancerResult( - @CustomType.Parameter("accessLogs") GetLoadBalancerAccessLogs accessLogs, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("arnSuffix") String arnSuffix, - @CustomType.Parameter("customerOwnedIpv4Pool") String customerOwnedIpv4Pool, - @CustomType.Parameter("desyncMitigationMode") String desyncMitigationMode, - @CustomType.Parameter("dnsName") String dnsName, - @CustomType.Parameter("dropInvalidHeaderFields") Boolean dropInvalidHeaderFields, - @CustomType.Parameter("enableDeletionProtection") Boolean enableDeletionProtection, - @CustomType.Parameter("enableHttp2") Boolean enableHttp2, - @CustomType.Parameter("enableWafFailOpen") Boolean enableWafFailOpen, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("idleTimeout") Integer idleTimeout, - @CustomType.Parameter("internal") Boolean internal, - @CustomType.Parameter("ipAddressType") String ipAddressType, - @CustomType.Parameter("loadBalancerType") String loadBalancerType, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("preserveHostHeader") Boolean preserveHostHeader, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("subnetMappings") List subnetMappings, - @CustomType.Parameter("subnets") List subnets, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId, - @CustomType.Parameter("zoneId") String zoneId) { - this.accessLogs = accessLogs; - this.arn = arn; - this.arnSuffix = arnSuffix; - this.customerOwnedIpv4Pool = customerOwnedIpv4Pool; - this.desyncMitigationMode = desyncMitigationMode; - this.dnsName = dnsName; - this.dropInvalidHeaderFields = dropInvalidHeaderFields; - this.enableDeletionProtection = enableDeletionProtection; - this.enableHttp2 = enableHttp2; - this.enableWafFailOpen = enableWafFailOpen; - this.id = id; - this.idleTimeout = idleTimeout; - this.internal = internal; - this.ipAddressType = ipAddressType; - this.loadBalancerType = loadBalancerType; - this.name = name; - this.preserveHostHeader = preserveHostHeader; - this.securityGroups = securityGroups; - this.subnetMappings = subnetMappings; - this.subnets = subnets; - this.tags = tags; - this.vpcId = vpcId; - this.zoneId = zoneId; - } + private String id; + private Integer idleTimeout; + private Boolean internal; + private String ipAddressType; + private String loadBalancerType; + private String name; + private Boolean preserveHostHeader; + private List securityGroups; + private List subnetMappings; + private List subnets; + private Map tags; + private String vpcId; + private String zoneId; + private GetLoadBalancerResult() {} public GetLoadBalancerAccessLogs accessLogs() { return this.accessLogs; } @@ -174,7 +125,7 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GetLoadBalancerAccessLogs accessLogs; private String arn; @@ -199,11 +150,7 @@ public static final class Builder { private Map tags; private String vpcId; private String zoneId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerResult defaults) { Objects.requireNonNull(defaults); this.accessLogs = defaults.accessLogs; @@ -231,74 +178,92 @@ public Builder(GetLoadBalancerResult defaults) { this.zoneId = defaults.zoneId; } + @CustomType.Setter public Builder accessLogs(GetLoadBalancerAccessLogs accessLogs) { this.accessLogs = Objects.requireNonNull(accessLogs); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder arnSuffix(String arnSuffix) { this.arnSuffix = Objects.requireNonNull(arnSuffix); return this; } + @CustomType.Setter public Builder customerOwnedIpv4Pool(String customerOwnedIpv4Pool) { this.customerOwnedIpv4Pool = Objects.requireNonNull(customerOwnedIpv4Pool); return this; } + @CustomType.Setter public Builder desyncMitigationMode(String desyncMitigationMode) { this.desyncMitigationMode = Objects.requireNonNull(desyncMitigationMode); return this; } + @CustomType.Setter public Builder dnsName(String dnsName) { this.dnsName = Objects.requireNonNull(dnsName); return this; } + @CustomType.Setter public Builder dropInvalidHeaderFields(Boolean dropInvalidHeaderFields) { this.dropInvalidHeaderFields = Objects.requireNonNull(dropInvalidHeaderFields); return this; } + @CustomType.Setter public Builder enableDeletionProtection(Boolean enableDeletionProtection) { this.enableDeletionProtection = Objects.requireNonNull(enableDeletionProtection); return this; } + @CustomType.Setter public Builder enableHttp2(Boolean enableHttp2) { this.enableHttp2 = Objects.requireNonNull(enableHttp2); return this; } + @CustomType.Setter public Builder enableWafFailOpen(Boolean enableWafFailOpen) { this.enableWafFailOpen = Objects.requireNonNull(enableWafFailOpen); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder idleTimeout(Integer idleTimeout) { this.idleTimeout = Objects.requireNonNull(idleTimeout); return this; } + @CustomType.Setter public Builder internal(Boolean internal) { this.internal = Objects.requireNonNull(internal); return this; } + @CustomType.Setter public Builder ipAddressType(String ipAddressType) { this.ipAddressType = Objects.requireNonNull(ipAddressType); return this; } + @CustomType.Setter public Builder loadBalancerType(String loadBalancerType) { this.loadBalancerType = Objects.requireNonNull(loadBalancerType); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder preserveHostHeader(Boolean preserveHostHeader) { this.preserveHostHeader = Objects.requireNonNull(preserveHostHeader); return this; } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -306,6 +271,7 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnetMappings(List subnetMappings) { this.subnetMappings = Objects.requireNonNull(subnetMappings); return this; @@ -313,6 +279,7 @@ public Builder subnetMappings(List subnetMappings) public Builder subnetMappings(GetLoadBalancerSubnetMapping... subnetMappings) { return subnetMappings(List.of(subnetMappings)); } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; @@ -320,19 +287,47 @@ public Builder subnets(List subnets) { public Builder subnets(String... subnets) { return subnets(List.of(subnets)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; } + @CustomType.Setter public Builder zoneId(String zoneId) { this.zoneId = Objects.requireNonNull(zoneId); return this; - } public GetLoadBalancerResult build() { - return new GetLoadBalancerResult(accessLogs, arn, arnSuffix, customerOwnedIpv4Pool, desyncMitigationMode, dnsName, dropInvalidHeaderFields, enableDeletionProtection, enableHttp2, enableWafFailOpen, id, idleTimeout, internal, ipAddressType, loadBalancerType, name, preserveHostHeader, securityGroups, subnetMappings, subnets, tags, vpcId, zoneId); + } + public GetLoadBalancerResult build() { + final var o = new GetLoadBalancerResult(); + o.accessLogs = accessLogs; + o.arn = arn; + o.arnSuffix = arnSuffix; + o.customerOwnedIpv4Pool = customerOwnedIpv4Pool; + o.desyncMitigationMode = desyncMitigationMode; + o.dnsName = dnsName; + o.dropInvalidHeaderFields = dropInvalidHeaderFields; + o.enableDeletionProtection = enableDeletionProtection; + o.enableHttp2 = enableHttp2; + o.enableWafFailOpen = enableWafFailOpen; + o.id = id; + o.idleTimeout = idleTimeout; + o.internal = internal; + o.ipAddressType = ipAddressType; + o.loadBalancerType = loadBalancerType; + o.name = name; + o.preserveHostHeader = preserveHostHeader; + o.securityGroups = securityGroups; + o.subnetMappings = subnetMappings; + o.subnets = subnets; + o.tags = tags; + o.vpcId = vpcId; + o.zoneId = zoneId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetLoadBalancerSubnetMapping.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetLoadBalancerSubnetMapping.java index 5a3353b14db..420d74a13a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetLoadBalancerSubnetMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetLoadBalancerSubnetMapping.java @@ -9,26 +9,13 @@ @CustomType public final class GetLoadBalancerSubnetMapping { - private final String allocationId; - private final String ipv6Address; - private final String outpostId; - private final String privateIpv4Address; - private final String subnetId; - - @CustomType.Constructor - private GetLoadBalancerSubnetMapping( - @CustomType.Parameter("allocationId") String allocationId, - @CustomType.Parameter("ipv6Address") String ipv6Address, - @CustomType.Parameter("outpostId") String outpostId, - @CustomType.Parameter("privateIpv4Address") String privateIpv4Address, - @CustomType.Parameter("subnetId") String subnetId) { - this.allocationId = allocationId; - this.ipv6Address = ipv6Address; - this.outpostId = outpostId; - this.privateIpv4Address = privateIpv4Address; - this.subnetId = subnetId; - } + private String allocationId; + private String ipv6Address; + private String outpostId; + private String privateIpv4Address; + private String subnetId; + private GetLoadBalancerSubnetMapping() {} public String allocationId() { return this.allocationId; } @@ -52,18 +39,14 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerSubnetMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String allocationId; private String ipv6Address; private String outpostId; private String privateIpv4Address; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerSubnetMapping defaults) { Objects.requireNonNull(defaults); this.allocationId = defaults.allocationId; @@ -73,27 +56,39 @@ public Builder(GetLoadBalancerSubnetMapping defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder allocationId(String allocationId) { this.allocationId = Objects.requireNonNull(allocationId); return this; } + @CustomType.Setter public Builder ipv6Address(String ipv6Address) { this.ipv6Address = Objects.requireNonNull(ipv6Address); return this; } + @CustomType.Setter public Builder outpostId(String outpostId) { this.outpostId = Objects.requireNonNull(outpostId); return this; } + @CustomType.Setter public Builder privateIpv4Address(String privateIpv4Address) { this.privateIpv4Address = Objects.requireNonNull(privateIpv4Address); return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public GetLoadBalancerSubnetMapping build() { - return new GetLoadBalancerSubnetMapping(allocationId, ipv6Address, outpostId, privateIpv4Address, subnetId); + } + public GetLoadBalancerSubnetMapping build() { + final var o = new GetLoadBalancerSubnetMapping(); + o.allocationId = allocationId; + o.ipv6Address = ipv6Address; + o.outpostId = outpostId; + o.privateIpv4Address = privateIpv4Address; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetTargetGroupHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetTargetGroupHealthCheck.java index 97c145bac5c..70be14cd5cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetTargetGroupHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetTargetGroupHealthCheck.java @@ -11,38 +11,17 @@ @CustomType public final class GetTargetGroupHealthCheck { - private final Boolean enabled; - private final Integer healthyThreshold; - private final Integer interval; - private final String matcher; - private final String path; - private final String port; - private final String protocol; - private final Integer timeout; - private final Integer unhealthyThreshold; - - @CustomType.Constructor - private GetTargetGroupHealthCheck( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("healthyThreshold") Integer healthyThreshold, - @CustomType.Parameter("interval") Integer interval, - @CustomType.Parameter("matcher") String matcher, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("port") String port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("timeout") Integer timeout, - @CustomType.Parameter("unhealthyThreshold") Integer unhealthyThreshold) { - this.enabled = enabled; - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.matcher = matcher; - this.path = path; - this.port = port; - this.protocol = protocol; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private Boolean enabled; + private Integer healthyThreshold; + private Integer interval; + private String matcher; + private String path; + private String port; + private String protocol; + private Integer timeout; + private Integer unhealthyThreshold; + private GetTargetGroupHealthCheck() {} public Boolean enabled() { return this.enabled; } @@ -78,7 +57,7 @@ public static Builder builder() { public static Builder builder(GetTargetGroupHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private Integer healthyThreshold; @@ -89,11 +68,7 @@ public static final class Builder { private String protocol; private Integer timeout; private Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTargetGroupHealthCheck defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; @@ -107,43 +82,63 @@ public Builder(GetTargetGroupHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder healthyThreshold(Integer healthyThreshold) { this.healthyThreshold = Objects.requireNonNull(healthyThreshold); return this; } + @CustomType.Setter public Builder interval(Integer interval) { this.interval = Objects.requireNonNull(interval); return this; } + @CustomType.Setter public Builder matcher(String matcher) { this.matcher = Objects.requireNonNull(matcher); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder port(String port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder timeout(Integer timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } + @CustomType.Setter public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.unhealthyThreshold = Objects.requireNonNull(unhealthyThreshold); return this; - } public GetTargetGroupHealthCheck build() { - return new GetTargetGroupHealthCheck(enabled, healthyThreshold, interval, matcher, path, port, protocol, timeout, unhealthyThreshold); + } + public GetTargetGroupHealthCheck build() { + final var o = new GetTargetGroupHealthCheck(); + o.enabled = enabled; + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.matcher = matcher; + o.path = path; + o.port = port; + o.protocol = protocol; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetTargetGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetTargetGroupResult.java index 8c0f2e8a982..8f5dc9ec916 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetTargetGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetTargetGroupResult.java @@ -14,72 +14,31 @@ @CustomType public final class GetTargetGroupResult { - private final String arn; - private final String arnSuffix; - private final Boolean connectionTermination; - private final Integer deregistrationDelay; - private final GetTargetGroupHealthCheck healthCheck; + private String arn; + private String arnSuffix; + private Boolean connectionTermination; + private Integer deregistrationDelay; + private GetTargetGroupHealthCheck healthCheck; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final Boolean lambdaMultiValueHeadersEnabled; - private final String loadBalancingAlgorithmType; - private final String name; - private final Integer port; - private final String preserveClientIp; - private final String protocol; - private final String protocolVersion; - private final Boolean proxyProtocolV2; - private final Integer slowStart; - private final GetTargetGroupStickiness stickiness; - private final Map tags; - private final String targetType; - private final String vpcId; - - @CustomType.Constructor - private GetTargetGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("arnSuffix") String arnSuffix, - @CustomType.Parameter("connectionTermination") Boolean connectionTermination, - @CustomType.Parameter("deregistrationDelay") Integer deregistrationDelay, - @CustomType.Parameter("healthCheck") GetTargetGroupHealthCheck healthCheck, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lambdaMultiValueHeadersEnabled") Boolean lambdaMultiValueHeadersEnabled, - @CustomType.Parameter("loadBalancingAlgorithmType") String loadBalancingAlgorithmType, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("preserveClientIp") String preserveClientIp, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("protocolVersion") String protocolVersion, - @CustomType.Parameter("proxyProtocolV2") Boolean proxyProtocolV2, - @CustomType.Parameter("slowStart") Integer slowStart, - @CustomType.Parameter("stickiness") GetTargetGroupStickiness stickiness, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("targetType") String targetType, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.arnSuffix = arnSuffix; - this.connectionTermination = connectionTermination; - this.deregistrationDelay = deregistrationDelay; - this.healthCheck = healthCheck; - this.id = id; - this.lambdaMultiValueHeadersEnabled = lambdaMultiValueHeadersEnabled; - this.loadBalancingAlgorithmType = loadBalancingAlgorithmType; - this.name = name; - this.port = port; - this.preserveClientIp = preserveClientIp; - this.protocol = protocol; - this.protocolVersion = protocolVersion; - this.proxyProtocolV2 = proxyProtocolV2; - this.slowStart = slowStart; - this.stickiness = stickiness; - this.tags = tags; - this.targetType = targetType; - this.vpcId = vpcId; - } + private String id; + private Boolean lambdaMultiValueHeadersEnabled; + private String loadBalancingAlgorithmType; + private String name; + private Integer port; + private String preserveClientIp; + private String protocol; + private String protocolVersion; + private Boolean proxyProtocolV2; + private Integer slowStart; + private GetTargetGroupStickiness stickiness; + private Map tags; + private String targetType; + private String vpcId; + private GetTargetGroupResult() {} public String arn() { return this.arn; } @@ -149,7 +108,7 @@ public static Builder builder() { public static Builder builder(GetTargetGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String arnSuffix; @@ -170,11 +129,7 @@ public static final class Builder { private Map tags; private String targetType; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTargetGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -198,83 +153,123 @@ public Builder(GetTargetGroupResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder arnSuffix(String arnSuffix) { this.arnSuffix = Objects.requireNonNull(arnSuffix); return this; } + @CustomType.Setter public Builder connectionTermination(Boolean connectionTermination) { this.connectionTermination = Objects.requireNonNull(connectionTermination); return this; } + @CustomType.Setter public Builder deregistrationDelay(Integer deregistrationDelay) { this.deregistrationDelay = Objects.requireNonNull(deregistrationDelay); return this; } + @CustomType.Setter public Builder healthCheck(GetTargetGroupHealthCheck healthCheck) { this.healthCheck = Objects.requireNonNull(healthCheck); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lambdaMultiValueHeadersEnabled(Boolean lambdaMultiValueHeadersEnabled) { this.lambdaMultiValueHeadersEnabled = Objects.requireNonNull(lambdaMultiValueHeadersEnabled); return this; } + @CustomType.Setter public Builder loadBalancingAlgorithmType(String loadBalancingAlgorithmType) { this.loadBalancingAlgorithmType = Objects.requireNonNull(loadBalancingAlgorithmType); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder preserveClientIp(String preserveClientIp) { this.preserveClientIp = Objects.requireNonNull(preserveClientIp); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder protocolVersion(String protocolVersion) { this.protocolVersion = Objects.requireNonNull(protocolVersion); return this; } + @CustomType.Setter public Builder proxyProtocolV2(Boolean proxyProtocolV2) { this.proxyProtocolV2 = Objects.requireNonNull(proxyProtocolV2); return this; } + @CustomType.Setter public Builder slowStart(Integer slowStart) { this.slowStart = Objects.requireNonNull(slowStart); return this; } + @CustomType.Setter public Builder stickiness(GetTargetGroupStickiness stickiness) { this.stickiness = Objects.requireNonNull(stickiness); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder targetType(String targetType) { this.targetType = Objects.requireNonNull(targetType); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetTargetGroupResult build() { - return new GetTargetGroupResult(arn, arnSuffix, connectionTermination, deregistrationDelay, healthCheck, id, lambdaMultiValueHeadersEnabled, loadBalancingAlgorithmType, name, port, preserveClientIp, protocol, protocolVersion, proxyProtocolV2, slowStart, stickiness, tags, targetType, vpcId); + } + public GetTargetGroupResult build() { + final var o = new GetTargetGroupResult(); + o.arn = arn; + o.arnSuffix = arnSuffix; + o.connectionTermination = connectionTermination; + o.deregistrationDelay = deregistrationDelay; + o.healthCheck = healthCheck; + o.id = id; + o.lambdaMultiValueHeadersEnabled = lambdaMultiValueHeadersEnabled; + o.loadBalancingAlgorithmType = loadBalancingAlgorithmType; + o.name = name; + o.port = port; + o.preserveClientIp = preserveClientIp; + o.protocol = protocol; + o.protocolVersion = protocolVersion; + o.proxyProtocolV2 = proxyProtocolV2; + o.slowStart = slowStart; + o.stickiness = stickiness; + o.tags = tags; + o.targetType = targetType; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetTargetGroupStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetTargetGroupStickiness.java index 5a64594a206..968a12b9ea1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetTargetGroupStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/GetTargetGroupStickiness.java @@ -11,23 +11,12 @@ @CustomType public final class GetTargetGroupStickiness { - private final Integer cookieDuration; - private final String cookieName; - private final Boolean enabled; - private final String type; - - @CustomType.Constructor - private GetTargetGroupStickiness( - @CustomType.Parameter("cookieDuration") Integer cookieDuration, - @CustomType.Parameter("cookieName") String cookieName, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("type") String type) { - this.cookieDuration = cookieDuration; - this.cookieName = cookieName; - this.enabled = enabled; - this.type = type; - } + private Integer cookieDuration; + private String cookieName; + private Boolean enabled; + private String type; + private GetTargetGroupStickiness() {} public Integer cookieDuration() { return this.cookieDuration; } @@ -48,17 +37,13 @@ public static Builder builder() { public static Builder builder(GetTargetGroupStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer cookieDuration; private String cookieName; private Boolean enabled; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTargetGroupStickiness defaults) { Objects.requireNonNull(defaults); this.cookieDuration = defaults.cookieDuration; @@ -67,23 +52,33 @@ public Builder(GetTargetGroupStickiness defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder cookieDuration(Integer cookieDuration) { this.cookieDuration = Objects.requireNonNull(cookieDuration); return this; } + @CustomType.Setter public Builder cookieName(String cookieName) { this.cookieName = Objects.requireNonNull(cookieName); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetTargetGroupStickiness build() { - return new GetTargetGroupStickiness(cookieDuration, cookieName, enabled, type); + } + public GetTargetGroupStickiness build() { + final var o = new GetTargetGroupStickiness(); + o.cookieDuration = cookieDuration; + o.cookieName = cookieName; + o.enabled = enabled; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultAction.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultAction.java index 0e3866a2a61..8d00490e4a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultAction.java @@ -21,63 +21,44 @@ public final class ListenerDefaultAction { * @return Configuration block for using Amazon Cognito to authenticate users. Specify only when `type` is `authenticate-cognito`. Detailed below. * */ - private final @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito; + private @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito; /** * @return Configuration block for an identity provider that is compliant with OpenID Connect (OIDC). Specify only when `type` is `authenticate-oidc`. Detailed below. * */ - private final @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc; + private @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc; /** * @return Information for creating an action that returns a custom HTTP response. Required if `type` is `fixed-response`. * */ - private final @Nullable ListenerDefaultActionFixedResponse fixedResponse; + private @Nullable ListenerDefaultActionFixedResponse fixedResponse; /** * @return Configuration block for creating an action that distributes requests among one or more target groups. Specify only if `type` is `forward`. If you specify both `forward` block and `target_group_arn` attribute, you can specify only one target group using `forward` and it must be the same target group specified in `target_group_arn`. Detailed below. * */ - private final @Nullable ListenerDefaultActionForward forward; + private @Nullable ListenerDefaultActionForward forward; /** * @return Order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first. Valid values are between `1` and `50000`. * */ - private final @Nullable Integer order; + private @Nullable Integer order; /** * @return Configuration block for creating a redirect action. Required if `type` is `redirect`. Detailed below. * */ - private final @Nullable ListenerDefaultActionRedirect redirect; + private @Nullable ListenerDefaultActionRedirect redirect; /** * @return ARN of the Target Group to which to route traffic. Specify only if `type` is `forward` and you want to route to a single target group. To route to one or more target groups, use a `forward` block instead. * */ - private final @Nullable String targetGroupArn; + private @Nullable String targetGroupArn; /** * @return Type of routing action. Valid values are `forward`, `redirect`, `fixed-response`, `authenticate-cognito` and `authenticate-oidc`. * */ - private final String type; - - @CustomType.Constructor - private ListenerDefaultAction( - @CustomType.Parameter("authenticateCognito") @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito, - @CustomType.Parameter("authenticateOidc") @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc, - @CustomType.Parameter("fixedResponse") @Nullable ListenerDefaultActionFixedResponse fixedResponse, - @CustomType.Parameter("forward") @Nullable ListenerDefaultActionForward forward, - @CustomType.Parameter("order") @Nullable Integer order, - @CustomType.Parameter("redirect") @Nullable ListenerDefaultActionRedirect redirect, - @CustomType.Parameter("targetGroupArn") @Nullable String targetGroupArn, - @CustomType.Parameter("type") String type) { - this.authenticateCognito = authenticateCognito; - this.authenticateOidc = authenticateOidc; - this.fixedResponse = fixedResponse; - this.forward = forward; - this.order = order; - this.redirect = redirect; - this.targetGroupArn = targetGroupArn; - this.type = type; - } + private String type; + private ListenerDefaultAction() {} /** * @return Configuration block for using Amazon Cognito to authenticate users. Specify only when `type` is `authenticate-cognito`. Detailed below. * @@ -142,7 +123,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito; private @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc; @@ -152,11 +133,7 @@ public static final class Builder { private @Nullable ListenerDefaultActionRedirect redirect; private @Nullable String targetGroupArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultAction defaults) { Objects.requireNonNull(defaults); this.authenticateCognito = defaults.authenticateCognito; @@ -169,39 +146,57 @@ public Builder(ListenerDefaultAction defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder authenticateCognito(@Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito) { this.authenticateCognito = authenticateCognito; return this; } + @CustomType.Setter public Builder authenticateOidc(@Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc) { this.authenticateOidc = authenticateOidc; return this; } + @CustomType.Setter public Builder fixedResponse(@Nullable ListenerDefaultActionFixedResponse fixedResponse) { this.fixedResponse = fixedResponse; return this; } + @CustomType.Setter public Builder forward(@Nullable ListenerDefaultActionForward forward) { this.forward = forward; return this; } + @CustomType.Setter public Builder order(@Nullable Integer order) { this.order = order; return this; } + @CustomType.Setter public Builder redirect(@Nullable ListenerDefaultActionRedirect redirect) { this.redirect = redirect; return this; } + @CustomType.Setter public Builder targetGroupArn(@Nullable String targetGroupArn) { this.targetGroupArn = targetGroupArn; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ListenerDefaultAction build() { - return new ListenerDefaultAction(authenticateCognito, authenticateOidc, fixedResponse, forward, order, redirect, targetGroupArn, type); + } + public ListenerDefaultAction build() { + final var o = new ListenerDefaultAction(); + o.authenticateCognito = authenticateCognito; + o.authenticateOidc = authenticateOidc; + o.fixedResponse = fixedResponse; + o.forward = forward; + o.order = order; + o.redirect = redirect; + o.targetGroupArn = targetGroupArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionAuthenticateCognito.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionAuthenticateCognito.java index 12e37352d2b..e2444d5b0f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionAuthenticateCognito.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionAuthenticateCognito.java @@ -17,63 +17,44 @@ public final class ListenerDefaultActionAuthenticateCognito { * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return Behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return Set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return Name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return Maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return ARN of the Cognito user pool. * */ - private final String userPoolArn; + private String userPoolArn; /** * @return ID of the Cognito user pool client. * */ - private final String userPoolClientId; + private String userPoolClientId; /** * @return Domain prefix or fully-qualified domain name of the Cognito user pool. * */ - private final String userPoolDomain; - - @CustomType.Constructor - private ListenerDefaultActionAuthenticateCognito( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("userPoolArn") String userPoolArn, - @CustomType.Parameter("userPoolClientId") String userPoolClientId, - @CustomType.Parameter("userPoolDomain") String userPoolDomain) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.userPoolArn = userPoolArn; - this.userPoolClientId = userPoolClientId; - this.userPoolDomain = userPoolDomain; - } + private String userPoolDomain; + private ListenerDefaultActionAuthenticateCognito() {} /** * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -138,7 +119,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionAuthenticateCognito defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private @Nullable String onUnauthenticatedRequest; @@ -148,11 +129,7 @@ public static final class Builder { private String userPoolArn; private String userPoolClientId; private String userPoolDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionAuthenticateCognito defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -165,39 +142,57 @@ public Builder(ListenerDefaultActionAuthenticateCognito defaults) { this.userPoolDomain = defaults.userPoolDomain; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder userPoolArn(String userPoolArn) { this.userPoolArn = Objects.requireNonNull(userPoolArn); return this; } + @CustomType.Setter public Builder userPoolClientId(String userPoolClientId) { this.userPoolClientId = Objects.requireNonNull(userPoolClientId); return this; } + @CustomType.Setter public Builder userPoolDomain(String userPoolDomain) { this.userPoolDomain = Objects.requireNonNull(userPoolDomain); return this; - } public ListenerDefaultActionAuthenticateCognito build() { - return new ListenerDefaultActionAuthenticateCognito(authenticationRequestExtraParams, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, userPoolArn, userPoolClientId, userPoolDomain); + } + public ListenerDefaultActionAuthenticateCognito build() { + final var o = new ListenerDefaultActionAuthenticateCognito(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.userPoolArn = userPoolArn; + o.userPoolClientId = userPoolClientId; + o.userPoolDomain = userPoolDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionAuthenticateOidc.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionAuthenticateOidc.java index 378aedec670..0e739d19363 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionAuthenticateOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionAuthenticateOidc.java @@ -17,84 +17,59 @@ public final class ListenerDefaultActionAuthenticateOidc { * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return Authorization endpoint of the IdP. * */ - private final String authorizationEndpoint; + private String authorizationEndpoint; /** * @return OAuth 2.0 client identifier. * */ - private final String clientId; + private String clientId; /** * @return OAuth 2.0 client secret. * */ - private final String clientSecret; + private String clientSecret; /** * @return OIDC issuer identifier of the IdP. * */ - private final String issuer; + private String issuer; /** * @return Behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return Set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return Name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return Maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return Token endpoint of the IdP. * */ - private final String tokenEndpoint; + private String tokenEndpoint; /** * @return User info endpoint of the IdP. * */ - private final String userInfoEndpoint; - - @CustomType.Constructor - private ListenerDefaultActionAuthenticateOidc( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private String userInfoEndpoint; + private ListenerDefaultActionAuthenticateOidc() {} /** * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -180,7 +155,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionAuthenticateOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private String authorizationEndpoint; @@ -193,11 +168,7 @@ public static final class Builder { private @Nullable Integer sessionTimeout; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionAuthenticateOidc defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -213,51 +184,75 @@ public Builder(ListenerDefaultActionAuthenticateOidc defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public ListenerDefaultActionAuthenticateOidc build() { - return new ListenerDefaultActionAuthenticateOidc(authenticationRequestExtraParams, authorizationEndpoint, clientId, clientSecret, issuer, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, tokenEndpoint, userInfoEndpoint); + } + public ListenerDefaultActionAuthenticateOidc build() { + final var o = new ListenerDefaultActionAuthenticateOidc(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionFixedResponse.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionFixedResponse.java index 2fa77e8fa05..7a7ac7f7970 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionFixedResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionFixedResponse.java @@ -15,28 +15,19 @@ public final class ListenerDefaultActionFixedResponse { * @return Content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * */ - private final String contentType; + private String contentType; /** * @return Message body. * */ - private final @Nullable String messageBody; + private @Nullable String messageBody; /** * @return HTTP redirect code. The redirect is either permanent (`HTTP_301`) or temporary (`HTTP_302`). * */ - private final @Nullable String statusCode; - - @CustomType.Constructor - private ListenerDefaultActionFixedResponse( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("messageBody") @Nullable String messageBody, - @CustomType.Parameter("statusCode") @Nullable String statusCode) { - this.contentType = contentType; - this.messageBody = messageBody; - this.statusCode = statusCode; - } + private @Nullable String statusCode; + private ListenerDefaultActionFixedResponse() {} /** * @return Content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionFixedResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private @Nullable String messageBody; private @Nullable String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionFixedResponse defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -83,19 +70,27 @@ public Builder(ListenerDefaultActionFixedResponse defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder messageBody(@Nullable String messageBody) { this.messageBody = messageBody; return this; } + @CustomType.Setter public Builder statusCode(@Nullable String statusCode) { this.statusCode = statusCode; return this; - } public ListenerDefaultActionFixedResponse build() { - return new ListenerDefaultActionFixedResponse(contentType, messageBody, statusCode); + } + public ListenerDefaultActionFixedResponse build() { + final var o = new ListenerDefaultActionFixedResponse(); + o.contentType = contentType; + o.messageBody = messageBody; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionForward.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionForward.java index 8006bb54d66..1b0f5cb411c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionForward.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionForward.java @@ -17,21 +17,14 @@ public final class ListenerDefaultActionForward { * @return Configuration block for target group stickiness for the rule. Detailed below. * */ - private final @Nullable ListenerDefaultActionForwardStickiness stickiness; + private @Nullable ListenerDefaultActionForwardStickiness stickiness; /** * @return Set of 1-5 target group blocks. Detailed below. * */ - private final List targetGroups; - - @CustomType.Constructor - private ListenerDefaultActionForward( - @CustomType.Parameter("stickiness") @Nullable ListenerDefaultActionForwardStickiness stickiness, - @CustomType.Parameter("targetGroups") List targetGroups) { - this.stickiness = stickiness; - this.targetGroups = targetGroups; - } + private List targetGroups; + private ListenerDefaultActionForward() {} /** * @return Configuration block for target group stickiness for the rule. Detailed below. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionForward defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerDefaultActionForwardStickiness stickiness; private List targetGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionForward defaults) { Objects.requireNonNull(defaults); this.stickiness = defaults.stickiness; this.targetGroups = defaults.targetGroups; } + @CustomType.Setter public Builder stickiness(@Nullable ListenerDefaultActionForwardStickiness stickiness) { this.stickiness = stickiness; return this; } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; } public Builder targetGroups(ListenerDefaultActionForwardTargetGroup... targetGroups) { return targetGroups(List.of(targetGroups)); - } public ListenerDefaultActionForward build() { - return new ListenerDefaultActionForward(stickiness, targetGroups); + } + public ListenerDefaultActionForward build() { + final var o = new ListenerDefaultActionForward(); + o.stickiness = stickiness; + o.targetGroups = targetGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionForwardStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionForwardStickiness.java index 0e2f4af0708..3020989741c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionForwardStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionForwardStickiness.java @@ -16,21 +16,14 @@ public final class ListenerDefaultActionForwardStickiness { * @return Time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * */ - private final Integer duration; + private Integer duration; /** * @return Whether target group stickiness is enabled. Default is `false`. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private ListenerDefaultActionForwardStickiness( - @CustomType.Parameter("duration") Integer duration, - @CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.duration = duration; - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private ListenerDefaultActionForwardStickiness() {} /** * @return Time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionForwardStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer duration; private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionForwardStickiness defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder duration(Integer duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public ListenerDefaultActionForwardStickiness build() { - return new ListenerDefaultActionForwardStickiness(duration, enabled); + } + public ListenerDefaultActionForwardStickiness build() { + final var o = new ListenerDefaultActionForwardStickiness(); + o.duration = duration; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionForwardTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionForwardTargetGroup.java index bfe3fecb266..47d2120bc9f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionForwardTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionForwardTargetGroup.java @@ -16,21 +16,14 @@ public final class ListenerDefaultActionForwardTargetGroup { * @return ARN of the target group. * */ - private final String arn; + private String arn; /** * @return Weight. The range is 0 to 999. * */ - private final @Nullable Integer weight; - - @CustomType.Constructor - private ListenerDefaultActionForwardTargetGroup( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("weight") @Nullable Integer weight) { - this.arn = arn; - this.weight = weight; - } + private @Nullable Integer weight; + private ListenerDefaultActionForwardTargetGroup() {} /** * @return ARN of the target group. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionForwardTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionForwardTargetGroup defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.weight = defaults.weight; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder weight(@Nullable Integer weight) { this.weight = weight; return this; - } public ListenerDefaultActionForwardTargetGroup build() { - return new ListenerDefaultActionForwardTargetGroup(arn, weight); + } + public ListenerDefaultActionForwardTargetGroup build() { + final var o = new ListenerDefaultActionForwardTargetGroup(); + o.arn = arn; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionRedirect.java index 38d48809363..24cb9b19008 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerDefaultActionRedirect.java @@ -15,49 +15,34 @@ public final class ListenerDefaultActionRedirect { * @return Hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * */ - private final @Nullable String host; + private @Nullable String host; /** * @return Absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to `/#{path}`. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return Port. Specify a value from `1` to `65535` or `#{port}`. Defaults to `#{port}`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return Protocol. Valid values are `HTTP`, `HTTPS`, or `#{protocol}`. Defaults to `#{protocol}`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return Query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to `#{query}`. * */ - private final @Nullable String query; + private @Nullable String query; /** * @return HTTP redirect code. The redirect is either permanent (`HTTP_301`) or temporary (`HTTP_302`). * */ - private final String statusCode; - - @CustomType.Constructor - private ListenerDefaultActionRedirect( - @CustomType.Parameter("host") @Nullable String host, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("query") @Nullable String query, - @CustomType.Parameter("statusCode") String statusCode) { - this.host = host; - this.path = path; - this.port = port; - this.protocol = protocol; - this.query = query; - this.statusCode = statusCode; - } + private String statusCode; + private ListenerDefaultActionRedirect() {} /** * @return Hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String host; private @Nullable String path; @@ -116,11 +101,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable String query; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionRedirect defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -131,31 +112,45 @@ public Builder(ListenerDefaultActionRedirect defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder host(@Nullable String host) { this.host = host; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder query(@Nullable String query) { this.query = query; return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public ListenerDefaultActionRedirect build() { - return new ListenerDefaultActionRedirect(host, path, port, protocol, query, statusCode); + } + public ListenerDefaultActionRedirect build() { + final var o = new ListenerDefaultActionRedirect(); + o.host = host; + o.path = path; + o.port = port; + o.protocol = protocol; + o.query = query; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleAction.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleAction.java index f5e87d3548a..195abd33480 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleAction.java @@ -21,59 +21,40 @@ public final class ListenerRuleAction { * @return Information for creating an authenticate action using Cognito. Required if `type` is `authenticate-cognito`. * */ - private final @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito; + private @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito; /** * @return Information for creating an authenticate action using OIDC. Required if `type` is `authenticate-oidc`. * */ - private final @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc; + private @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc; /** * @return Information for creating an action that returns a custom HTTP response. Required if `type` is `fixed-response`. * */ - private final @Nullable ListenerRuleActionFixedResponse fixedResponse; + private @Nullable ListenerRuleActionFixedResponse fixedResponse; /** * @return Information for creating an action that distributes requests among one or more target groups. Specify only if `type` is `forward`. If you specify both `forward` block and `target_group_arn` attribute, you can specify only one target group using `forward` and it must be the same target group specified in `target_group_arn`. * */ - private final @Nullable ListenerRuleActionForward forward; - private final @Nullable Integer order; + private @Nullable ListenerRuleActionForward forward; + private @Nullable Integer order; /** * @return Information for creating a redirect action. Required if `type` is `redirect`. * */ - private final @Nullable ListenerRuleActionRedirect redirect; + private @Nullable ListenerRuleActionRedirect redirect; /** * @return The ARN of the Target Group to which to route traffic. Specify only if `type` is `forward` and you want to route to a single target group. To route to one or more target groups, use a `forward` block instead. * */ - private final @Nullable String targetGroupArn; + private @Nullable String targetGroupArn; /** * @return The type of routing action. Valid values are `forward`, `redirect`, `fixed-response`, `authenticate-cognito` and `authenticate-oidc`. * */ - private final String type; - - @CustomType.Constructor - private ListenerRuleAction( - @CustomType.Parameter("authenticateCognito") @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito, - @CustomType.Parameter("authenticateOidc") @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc, - @CustomType.Parameter("fixedResponse") @Nullable ListenerRuleActionFixedResponse fixedResponse, - @CustomType.Parameter("forward") @Nullable ListenerRuleActionForward forward, - @CustomType.Parameter("order") @Nullable Integer order, - @CustomType.Parameter("redirect") @Nullable ListenerRuleActionRedirect redirect, - @CustomType.Parameter("targetGroupArn") @Nullable String targetGroupArn, - @CustomType.Parameter("type") String type) { - this.authenticateCognito = authenticateCognito; - this.authenticateOidc = authenticateOidc; - this.fixedResponse = fixedResponse; - this.forward = forward; - this.order = order; - this.redirect = redirect; - this.targetGroupArn = targetGroupArn; - this.type = type; - } + private String type; + private ListenerRuleAction() {} /** * @return Information for creating an authenticate action using Cognito. Required if `type` is `authenticate-cognito`. * @@ -134,7 +115,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito; private @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc; @@ -144,11 +125,7 @@ public static final class Builder { private @Nullable ListenerRuleActionRedirect redirect; private @Nullable String targetGroupArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleAction defaults) { Objects.requireNonNull(defaults); this.authenticateCognito = defaults.authenticateCognito; @@ -161,39 +138,57 @@ public Builder(ListenerRuleAction defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder authenticateCognito(@Nullable ListenerRuleActionAuthenticateCognito authenticateCognito) { this.authenticateCognito = authenticateCognito; return this; } + @CustomType.Setter public Builder authenticateOidc(@Nullable ListenerRuleActionAuthenticateOidc authenticateOidc) { this.authenticateOidc = authenticateOidc; return this; } + @CustomType.Setter public Builder fixedResponse(@Nullable ListenerRuleActionFixedResponse fixedResponse) { this.fixedResponse = fixedResponse; return this; } + @CustomType.Setter public Builder forward(@Nullable ListenerRuleActionForward forward) { this.forward = forward; return this; } + @CustomType.Setter public Builder order(@Nullable Integer order) { this.order = order; return this; } + @CustomType.Setter public Builder redirect(@Nullable ListenerRuleActionRedirect redirect) { this.redirect = redirect; return this; } + @CustomType.Setter public Builder targetGroupArn(@Nullable String targetGroupArn) { this.targetGroupArn = targetGroupArn; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ListenerRuleAction build() { - return new ListenerRuleAction(authenticateCognito, authenticateOidc, fixedResponse, forward, order, redirect, targetGroupArn, type); + } + public ListenerRuleAction build() { + final var o = new ListenerRuleAction(); + o.authenticateCognito = authenticateCognito; + o.authenticateOidc = authenticateOidc; + o.fixedResponse = fixedResponse; + o.forward = forward; + o.order = order; + o.redirect = redirect; + o.targetGroupArn = targetGroupArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionAuthenticateCognito.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionAuthenticateCognito.java index d3603311c68..5d36689d04b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionAuthenticateCognito.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionAuthenticateCognito.java @@ -17,63 +17,44 @@ public final class ListenerRuleActionAuthenticateCognito { * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return The behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return The set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return The name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return The maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return The ARN of the Cognito user pool. * */ - private final String userPoolArn; + private String userPoolArn; /** * @return The ID of the Cognito user pool client. * */ - private final String userPoolClientId; + private String userPoolClientId; /** * @return The domain prefix or fully-qualified domain name of the Cognito user pool. * */ - private final String userPoolDomain; - - @CustomType.Constructor - private ListenerRuleActionAuthenticateCognito( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("userPoolArn") String userPoolArn, - @CustomType.Parameter("userPoolClientId") String userPoolClientId, - @CustomType.Parameter("userPoolDomain") String userPoolDomain) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.userPoolArn = userPoolArn; - this.userPoolClientId = userPoolClientId; - this.userPoolDomain = userPoolDomain; - } + private String userPoolDomain; + private ListenerRuleActionAuthenticateCognito() {} /** * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -138,7 +119,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionAuthenticateCognito defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private @Nullable String onUnauthenticatedRequest; @@ -148,11 +129,7 @@ public static final class Builder { private String userPoolArn; private String userPoolClientId; private String userPoolDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionAuthenticateCognito defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -165,39 +142,57 @@ public Builder(ListenerRuleActionAuthenticateCognito defaults) { this.userPoolDomain = defaults.userPoolDomain; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder userPoolArn(String userPoolArn) { this.userPoolArn = Objects.requireNonNull(userPoolArn); return this; } + @CustomType.Setter public Builder userPoolClientId(String userPoolClientId) { this.userPoolClientId = Objects.requireNonNull(userPoolClientId); return this; } + @CustomType.Setter public Builder userPoolDomain(String userPoolDomain) { this.userPoolDomain = Objects.requireNonNull(userPoolDomain); return this; - } public ListenerRuleActionAuthenticateCognito build() { - return new ListenerRuleActionAuthenticateCognito(authenticationRequestExtraParams, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, userPoolArn, userPoolClientId, userPoolDomain); + } + public ListenerRuleActionAuthenticateCognito build() { + final var o = new ListenerRuleActionAuthenticateCognito(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.userPoolArn = userPoolArn; + o.userPoolClientId = userPoolClientId; + o.userPoolDomain = userPoolDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionAuthenticateOidc.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionAuthenticateOidc.java index 77ce4985070..85db70fc51f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionAuthenticateOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionAuthenticateOidc.java @@ -17,84 +17,59 @@ public final class ListenerRuleActionAuthenticateOidc { * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return The authorization endpoint of the IdP. * */ - private final String authorizationEndpoint; + private String authorizationEndpoint; /** * @return The OAuth 2.0 client identifier. * */ - private final String clientId; + private String clientId; /** * @return The OAuth 2.0 client secret. * */ - private final String clientSecret; + private String clientSecret; /** * @return The OIDC issuer identifier of the IdP. * */ - private final String issuer; + private String issuer; /** * @return The behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return The set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return The name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return The maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return The token endpoint of the IdP. * */ - private final String tokenEndpoint; + private String tokenEndpoint; /** * @return The user info endpoint of the IdP. * */ - private final String userInfoEndpoint; - - @CustomType.Constructor - private ListenerRuleActionAuthenticateOidc( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private String userInfoEndpoint; + private ListenerRuleActionAuthenticateOidc() {} /** * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -180,7 +155,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionAuthenticateOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private String authorizationEndpoint; @@ -193,11 +168,7 @@ public static final class Builder { private @Nullable Integer sessionTimeout; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionAuthenticateOidc defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -213,51 +184,75 @@ public Builder(ListenerRuleActionAuthenticateOidc defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public ListenerRuleActionAuthenticateOidc build() { - return new ListenerRuleActionAuthenticateOidc(authenticationRequestExtraParams, authorizationEndpoint, clientId, clientSecret, issuer, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, tokenEndpoint, userInfoEndpoint); + } + public ListenerRuleActionAuthenticateOidc build() { + final var o = new ListenerRuleActionAuthenticateOidc(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionFixedResponse.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionFixedResponse.java index bc7b8280529..438a0ca0300 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionFixedResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionFixedResponse.java @@ -15,28 +15,19 @@ public final class ListenerRuleActionFixedResponse { * @return The content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * */ - private final String contentType; + private String contentType; /** * @return The message body. * */ - private final @Nullable String messageBody; + private @Nullable String messageBody; /** * @return The HTTP response code. Valid values are `2XX`, `4XX`, or `5XX`. * */ - private final @Nullable String statusCode; - - @CustomType.Constructor - private ListenerRuleActionFixedResponse( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("messageBody") @Nullable String messageBody, - @CustomType.Parameter("statusCode") @Nullable String statusCode) { - this.contentType = contentType; - this.messageBody = messageBody; - this.statusCode = statusCode; - } + private @Nullable String statusCode; + private ListenerRuleActionFixedResponse() {} /** * @return The content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionFixedResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private @Nullable String messageBody; private @Nullable String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionFixedResponse defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -83,19 +70,27 @@ public Builder(ListenerRuleActionFixedResponse defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder messageBody(@Nullable String messageBody) { this.messageBody = messageBody; return this; } + @CustomType.Setter public Builder statusCode(@Nullable String statusCode) { this.statusCode = statusCode; return this; - } public ListenerRuleActionFixedResponse build() { - return new ListenerRuleActionFixedResponse(contentType, messageBody, statusCode); + } + public ListenerRuleActionFixedResponse build() { + final var o = new ListenerRuleActionFixedResponse(); + o.contentType = contentType; + o.messageBody = messageBody; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionForward.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionForward.java index 47e506c9d8c..d120b9285cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionForward.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionForward.java @@ -17,21 +17,14 @@ public final class ListenerRuleActionForward { * @return The target group stickiness for the rule. * */ - private final @Nullable ListenerRuleActionForwardStickiness stickiness; + private @Nullable ListenerRuleActionForwardStickiness stickiness; /** * @return One or more target groups block. * */ - private final List targetGroups; - - @CustomType.Constructor - private ListenerRuleActionForward( - @CustomType.Parameter("stickiness") @Nullable ListenerRuleActionForwardStickiness stickiness, - @CustomType.Parameter("targetGroups") List targetGroups) { - this.stickiness = stickiness; - this.targetGroups = targetGroups; - } + private List targetGroups; + private ListenerRuleActionForward() {} /** * @return The target group stickiness for the rule. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionForward defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerRuleActionForwardStickiness stickiness; private List targetGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionForward defaults) { Objects.requireNonNull(defaults); this.stickiness = defaults.stickiness; this.targetGroups = defaults.targetGroups; } + @CustomType.Setter public Builder stickiness(@Nullable ListenerRuleActionForwardStickiness stickiness) { this.stickiness = stickiness; return this; } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; } public Builder targetGroups(ListenerRuleActionForwardTargetGroup... targetGroups) { return targetGroups(List.of(targetGroups)); - } public ListenerRuleActionForward build() { - return new ListenerRuleActionForward(stickiness, targetGroups); + } + public ListenerRuleActionForward build() { + final var o = new ListenerRuleActionForward(); + o.stickiness = stickiness; + o.targetGroups = targetGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionForwardStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionForwardStickiness.java index c2c14ae9a76..5e9cee2ec33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionForwardStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionForwardStickiness.java @@ -16,21 +16,14 @@ public final class ListenerRuleActionForwardStickiness { * @return The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * */ - private final Integer duration; + private Integer duration; /** * @return Indicates whether target group stickiness is enabled. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private ListenerRuleActionForwardStickiness( - @CustomType.Parameter("duration") Integer duration, - @CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.duration = duration; - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private ListenerRuleActionForwardStickiness() {} /** * @return The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionForwardStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer duration; private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionForwardStickiness defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder duration(Integer duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public ListenerRuleActionForwardStickiness build() { - return new ListenerRuleActionForwardStickiness(duration, enabled); + } + public ListenerRuleActionForwardStickiness build() { + final var o = new ListenerRuleActionForwardStickiness(); + o.duration = duration; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionForwardTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionForwardTargetGroup.java index 9a9a94a2d78..1b8c08827f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionForwardTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionForwardTargetGroup.java @@ -16,21 +16,14 @@ public final class ListenerRuleActionForwardTargetGroup { * @return The Amazon Resource Name (ARN) of the target group. * */ - private final String arn; + private String arn; /** * @return The weight. The range is 0 to 999. * */ - private final @Nullable Integer weight; - - @CustomType.Constructor - private ListenerRuleActionForwardTargetGroup( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("weight") @Nullable Integer weight) { - this.arn = arn; - this.weight = weight; - } + private @Nullable Integer weight; + private ListenerRuleActionForwardTargetGroup() {} /** * @return The Amazon Resource Name (ARN) of the target group. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionForwardTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionForwardTargetGroup defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.weight = defaults.weight; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder weight(@Nullable Integer weight) { this.weight = weight; return this; - } public ListenerRuleActionForwardTargetGroup build() { - return new ListenerRuleActionForwardTargetGroup(arn, weight); + } + public ListenerRuleActionForwardTargetGroup build() { + final var o = new ListenerRuleActionForwardTargetGroup(); + o.arn = arn; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionRedirect.java index dfde2a206b7..a312ec48bbc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleActionRedirect.java @@ -15,49 +15,34 @@ public final class ListenerRuleActionRedirect { * @return The hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * */ - private final @Nullable String host; + private @Nullable String host; /** * @return The absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to `/#{path}`. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return The port. Specify a value from `1` to `65535` or `#{port}`. Defaults to `#{port}`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return The protocol. Valid values are `HTTP`, `HTTPS`, or `#{protocol}`. Defaults to `#{protocol}`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to `#{query}`. * */ - private final @Nullable String query; + private @Nullable String query; /** * @return The HTTP redirect code. The redirect is either permanent (`HTTP_301`) or temporary (`HTTP_302`). * */ - private final String statusCode; - - @CustomType.Constructor - private ListenerRuleActionRedirect( - @CustomType.Parameter("host") @Nullable String host, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("query") @Nullable String query, - @CustomType.Parameter("statusCode") String statusCode) { - this.host = host; - this.path = path; - this.port = port; - this.protocol = protocol; - this.query = query; - this.statusCode = statusCode; - } + private String statusCode; + private ListenerRuleActionRedirect() {} /** * @return The hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String host; private @Nullable String path; @@ -116,11 +101,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable String query; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionRedirect defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -131,31 +112,45 @@ public Builder(ListenerRuleActionRedirect defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder host(@Nullable String host) { this.host = host; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder query(@Nullable String query) { this.query = query; return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public ListenerRuleActionRedirect build() { - return new ListenerRuleActionRedirect(host, path, port, protocol, query, statusCode); + } + public ListenerRuleActionRedirect build() { + final var o = new ListenerRuleActionRedirect(); + o.host = host; + o.path = path; + o.port = port; + o.protocol = protocol; + o.query = query; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleCondition.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleCondition.java index 94feea58c73..8933de90cfd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleCondition.java @@ -21,49 +21,34 @@ public final class ListenerRuleCondition { * @return Contains a single `values` item which is a list of host header patterns to match. The maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. * */ - private final @Nullable ListenerRuleConditionHostHeader hostHeader; + private @Nullable ListenerRuleConditionHostHeader hostHeader; /** * @return HTTP headers to match. HTTP Header block fields documented below. * */ - private final @Nullable ListenerRuleConditionHttpHeader httpHeader; + private @Nullable ListenerRuleConditionHttpHeader httpHeader; /** * @return Contains a single `values` item which is a list of HTTP request methods or verbs to match. Maximum size is 40 characters. Only allowed characters are A-Z, hyphen (-) and underscore (\_). Comparison is case sensitive. Wildcards are not supported. Only one needs to match for the condition to be satisfied. AWS recommends that GET and HEAD requests are routed in the same way because the response to a HEAD request may be cached. * */ - private final @Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod; + private @Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod; /** * @return Contains a single `values` item which is a list of path patterns to match against the request URL. Maximum size of each pattern is 128 characters. Comparison is case sensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. Path pattern is compared only to the path of the URL, not to its query string. To compare against the query string, use a `query_string` condition. * */ - private final @Nullable ListenerRuleConditionPathPattern pathPattern; + private @Nullable ListenerRuleConditionPathPattern pathPattern; /** * @return Query strings to match. Query String block fields documented below. * */ - private final @Nullable List queryStrings; + private @Nullable List queryStrings; /** * @return Contains a single `values` item which is a list of source IP CIDR notations to match. You can use both IPv4 and IPv6 addresses. Wildcards are not supported. Condition is satisfied if the source IP address of the request matches one of the CIDR blocks. Condition is not satisfied by the addresses in the `X-Forwarded-For` header, use `http_header` condition instead. * */ - private final @Nullable ListenerRuleConditionSourceIp sourceIp; - - @CustomType.Constructor - private ListenerRuleCondition( - @CustomType.Parameter("hostHeader") @Nullable ListenerRuleConditionHostHeader hostHeader, - @CustomType.Parameter("httpHeader") @Nullable ListenerRuleConditionHttpHeader httpHeader, - @CustomType.Parameter("httpRequestMethod") @Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod, - @CustomType.Parameter("pathPattern") @Nullable ListenerRuleConditionPathPattern pathPattern, - @CustomType.Parameter("queryStrings") @Nullable List queryStrings, - @CustomType.Parameter("sourceIp") @Nullable ListenerRuleConditionSourceIp sourceIp) { - this.hostHeader = hostHeader; - this.httpHeader = httpHeader; - this.httpRequestMethod = httpRequestMethod; - this.pathPattern = pathPattern; - this.queryStrings = queryStrings; - this.sourceIp = sourceIp; - } + private @Nullable ListenerRuleConditionSourceIp sourceIp; + private ListenerRuleCondition() {} /** * @return Contains a single `values` item which is a list of host header patterns to match. The maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. * @@ -114,7 +99,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerRuleConditionHostHeader hostHeader; private @Nullable ListenerRuleConditionHttpHeader httpHeader; @@ -122,11 +107,7 @@ public static final class Builder { private @Nullable ListenerRuleConditionPathPattern pathPattern; private @Nullable List queryStrings; private @Nullable ListenerRuleConditionSourceIp sourceIp; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleCondition defaults) { Objects.requireNonNull(defaults); this.hostHeader = defaults.hostHeader; @@ -137,22 +118,27 @@ public Builder(ListenerRuleCondition defaults) { this.sourceIp = defaults.sourceIp; } + @CustomType.Setter public Builder hostHeader(@Nullable ListenerRuleConditionHostHeader hostHeader) { this.hostHeader = hostHeader; return this; } + @CustomType.Setter public Builder httpHeader(@Nullable ListenerRuleConditionHttpHeader httpHeader) { this.httpHeader = httpHeader; return this; } + @CustomType.Setter public Builder httpRequestMethod(@Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod) { this.httpRequestMethod = httpRequestMethod; return this; } + @CustomType.Setter public Builder pathPattern(@Nullable ListenerRuleConditionPathPattern pathPattern) { this.pathPattern = pathPattern; return this; } + @CustomType.Setter public Builder queryStrings(@Nullable List queryStrings) { this.queryStrings = queryStrings; return this; @@ -160,11 +146,20 @@ public Builder queryStrings(@Nullable List que public Builder queryStrings(ListenerRuleConditionQueryString... queryStrings) { return queryStrings(List.of(queryStrings)); } + @CustomType.Setter public Builder sourceIp(@Nullable ListenerRuleConditionSourceIp sourceIp) { this.sourceIp = sourceIp; return this; - } public ListenerRuleCondition build() { - return new ListenerRuleCondition(hostHeader, httpHeader, httpRequestMethod, pathPattern, queryStrings, sourceIp); + } + public ListenerRuleCondition build() { + final var o = new ListenerRuleCondition(); + o.hostHeader = hostHeader; + o.httpHeader = httpHeader; + o.httpRequestMethod = httpRequestMethod; + o.pathPattern = pathPattern; + o.queryStrings = queryStrings; + o.sourceIp = sourceIp; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionHostHeader.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionHostHeader.java index cd9b8829178..0944639c8f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionHostHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionHostHeader.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionHostHeader { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionHostHeader(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionHostHeader() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionHostHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionHostHeader defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionHostHeader build() { - return new ListenerRuleConditionHostHeader(values); + } + public ListenerRuleConditionHostHeader build() { + final var o = new ListenerRuleConditionHostHeader(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionHttpHeader.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionHttpHeader.java index 3c61dec83cb..53198c9d532 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionHttpHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionHttpHeader.java @@ -14,21 +14,14 @@ public final class ListenerRuleConditionHttpHeader { * @return Name of HTTP header to search. The maximum size is 40 characters. Comparison is case insensitive. Only RFC7240 characters are supported. Wildcards are not supported. You cannot use HTTP header condition to specify the host header, use a `host-header` condition instead. * */ - private final String httpHeaderName; + private String httpHeaderName; /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionHttpHeader( - @CustomType.Parameter("httpHeaderName") String httpHeaderName, - @CustomType.Parameter("values") List values) { - this.httpHeaderName = httpHeaderName; - this.values = values; - } + private List values; + private ListenerRuleConditionHttpHeader() {} /** * @return Name of HTTP header to search. The maximum size is 40 characters. Comparison is case insensitive. Only RFC7240 characters are supported. Wildcards are not supported. You cannot use HTTP header condition to specify the host header, use a `host-header` condition instead. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionHttpHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String httpHeaderName; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionHttpHeader defaults) { Objects.requireNonNull(defaults); this.httpHeaderName = defaults.httpHeaderName; this.values = defaults.values; } + @CustomType.Setter public Builder httpHeaderName(String httpHeaderName) { this.httpHeaderName = Objects.requireNonNull(httpHeaderName); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionHttpHeader build() { - return new ListenerRuleConditionHttpHeader(httpHeaderName, values); + } + public ListenerRuleConditionHttpHeader build() { + final var o = new ListenerRuleConditionHttpHeader(); + o.httpHeaderName = httpHeaderName; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionHttpRequestMethod.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionHttpRequestMethod.java index 867f251f58e..0847ce15bfb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionHttpRequestMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionHttpRequestMethod.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionHttpRequestMethod { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionHttpRequestMethod(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionHttpRequestMethod() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionHttpRequestMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionHttpRequestMethod defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionHttpRequestMethod build() { - return new ListenerRuleConditionHttpRequestMethod(values); + } + public ListenerRuleConditionHttpRequestMethod build() { + final var o = new ListenerRuleConditionHttpRequestMethod(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionPathPattern.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionPathPattern.java index d5265449eb6..9072fab2f60 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionPathPattern.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionPathPattern.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionPathPattern { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionPathPattern(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionPathPattern() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionPathPattern defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionPathPattern defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionPathPattern build() { - return new ListenerRuleConditionPathPattern(values); + } + public ListenerRuleConditionPathPattern build() { + final var o = new ListenerRuleConditionPathPattern(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionQueryString.java index 0b8d44bbe7d..1d683bbebe5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionQueryString.java @@ -15,21 +15,14 @@ public final class ListenerRuleConditionQueryString { * @return Query string key pattern to match. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Query string value pattern to match. * */ - private final String value; - - @CustomType.Constructor - private ListenerRuleConditionQueryString( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private ListenerRuleConditionQueryString() {} /** * @return Query string key pattern to match. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionQueryString defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ListenerRuleConditionQueryString build() { - return new ListenerRuleConditionQueryString(key, value); + } + public ListenerRuleConditionQueryString build() { + final var o = new ListenerRuleConditionQueryString(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionSourceIp.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionSourceIp.java index d66f090bfff..30e14137576 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionSourceIp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/ListenerRuleConditionSourceIp.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionSourceIp { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionSourceIp(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionSourceIp() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionSourceIp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionSourceIp defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionSourceIp build() { - return new ListenerRuleConditionSourceIp(values); + } + public ListenerRuleConditionSourceIp build() { + final var o = new ListenerRuleConditionSourceIp(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/LoadBalancerAccessLogs.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/LoadBalancerAccessLogs.java index be473536bab..e50714413fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/LoadBalancerAccessLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/LoadBalancerAccessLogs.java @@ -16,28 +16,19 @@ public final class LoadBalancerAccessLogs { * @return The S3 bucket name to store the logs in. * */ - private final String bucket; + private String bucket; /** * @return Boolean to enable / disable `access_logs`. Defaults to `false`, even when `bucket` is specified. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The S3 bucket prefix. Logs are stored in the root if not configured. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private LoadBalancerAccessLogs( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.bucket = bucket; - this.enabled = enabled; - this.prefix = prefix; - } + private @Nullable String prefix; + private LoadBalancerAccessLogs() {} /** * @return The S3 bucket name to store the logs in. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(LoadBalancerAccessLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private @Nullable Boolean enabled; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerAccessLogs defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -84,19 +71,27 @@ public Builder(LoadBalancerAccessLogs defaults) { this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public LoadBalancerAccessLogs build() { - return new LoadBalancerAccessLogs(bucket, enabled, prefix); + } + public LoadBalancerAccessLogs build() { + final var o = new LoadBalancerAccessLogs(); + o.bucket = bucket; + o.enabled = enabled; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/LoadBalancerSubnetMapping.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/LoadBalancerSubnetMapping.java index 3202ad5e62a..8f3e4cd7f1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/LoadBalancerSubnetMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/LoadBalancerSubnetMapping.java @@ -15,38 +15,25 @@ public final class LoadBalancerSubnetMapping { * @return The allocation ID of the Elastic IP address. * */ - private final @Nullable String allocationId; + private @Nullable String allocationId; /** * @return An ipv6 address within the subnet to assign to the internet-facing load balancer. * */ - private final @Nullable String ipv6Address; - private final @Nullable String outpostId; + private @Nullable String ipv6Address; + private @Nullable String outpostId; /** * @return A private ipv4 address within the subnet to assign to the internal-facing load balancer. * */ - private final @Nullable String privateIpv4Address; + private @Nullable String privateIpv4Address; /** * @return The id of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone. * */ - private final String subnetId; - - @CustomType.Constructor - private LoadBalancerSubnetMapping( - @CustomType.Parameter("allocationId") @Nullable String allocationId, - @CustomType.Parameter("ipv6Address") @Nullable String ipv6Address, - @CustomType.Parameter("outpostId") @Nullable String outpostId, - @CustomType.Parameter("privateIpv4Address") @Nullable String privateIpv4Address, - @CustomType.Parameter("subnetId") String subnetId) { - this.allocationId = allocationId; - this.ipv6Address = ipv6Address; - this.outpostId = outpostId; - this.privateIpv4Address = privateIpv4Address; - this.subnetId = subnetId; - } + private String subnetId; + private LoadBalancerSubnetMapping() {} /** * @return The allocation ID of the Elastic IP address. * @@ -86,18 +73,14 @@ public static Builder builder() { public static Builder builder(LoadBalancerSubnetMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String allocationId; private @Nullable String ipv6Address; private @Nullable String outpostId; private @Nullable String privateIpv4Address; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerSubnetMapping defaults) { Objects.requireNonNull(defaults); this.allocationId = defaults.allocationId; @@ -107,27 +90,39 @@ public Builder(LoadBalancerSubnetMapping defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder allocationId(@Nullable String allocationId) { this.allocationId = allocationId; return this; } + @CustomType.Setter public Builder ipv6Address(@Nullable String ipv6Address) { this.ipv6Address = ipv6Address; return this; } + @CustomType.Setter public Builder outpostId(@Nullable String outpostId) { this.outpostId = outpostId; return this; } + @CustomType.Setter public Builder privateIpv4Address(@Nullable String privateIpv4Address) { this.privateIpv4Address = privateIpv4Address; return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public LoadBalancerSubnetMapping build() { - return new LoadBalancerSubnetMapping(allocationId, ipv6Address, outpostId, privateIpv4Address, subnetId); + } + public LoadBalancerSubnetMapping build() { + final var o = new LoadBalancerSubnetMapping(); + o.allocationId = allocationId; + o.ipv6Address = ipv6Address; + o.outpostId = outpostId; + o.privateIpv4Address = privateIpv4Address; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/TargetGroupHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/TargetGroupHealthCheck.java index e591ee60888..6bcfba134c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/TargetGroupHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/TargetGroupHealthCheck.java @@ -17,70 +17,49 @@ public final class TargetGroupHealthCheck { * @return Boolean to enable / disable `stickiness`. Default is `true`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Number of consecutive health checks successes required before considering an unhealthy target healthy. Defaults to 3. * */ - private final @Nullable Integer healthyThreshold; + private @Nullable Integer healthyThreshold; /** * @return Approximate amount of time, in seconds, between health checks of an individual target. Minimum value 5 seconds, Maximum value 300 seconds. For `lambda` target groups, it needs to be greater as the `timeout` of the underlying `lambda`. Default 30 seconds. * */ - private final @Nullable Integer interval; + private @Nullable Integer interval; /** * @return Response codes to use when checking for a healthy responses from a target. You can specify multiple values (for example, "200,202" for HTTP(s) or "0,12" for GRPC) or a range of values (for example, "200-299" or "0-99"). Required for HTTP/HTTPS/GRPC ALB. Only applies to Application Load Balancers (i.e., HTTP/HTTPS/GRPC) not Network Load Balancers (i.e., TCP). * */ - private final @Nullable String matcher; + private @Nullable String matcher; /** * @return Destination for the health check request. Required for HTTP/HTTPS ALB and HTTP NLB. Only applies to HTTP/HTTPS. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return Port to use to connect with the target. Valid values are either ports 1-65535, or `traffic-port`. Defaults to `traffic-port`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return Protocol to use to connect with the target. Defaults to `HTTP`. Not applicable when `target_type` is `lambda`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return Amount of time, in seconds, during which no response means a failed health check. For Application Load Balancers, the range is 2 to 120 seconds, and the default is 5 seconds for the `instance` target type and 30 seconds for the `lambda` target type. For Network Load Balancers, you cannot set a custom value, and the default is 10 seconds for TCP and HTTPS health checks and 5 seconds for HTTP health checks. * */ - private final @Nullable Integer timeout; + private @Nullable Integer timeout; /** * @return Number of consecutive health check failures required before considering the target unhealthy. For Network Load Balancers, this value must be the same as the `healthy_threshold`. Defaults to 3. * */ - private final @Nullable Integer unhealthyThreshold; - - @CustomType.Constructor - private TargetGroupHealthCheck( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("healthyThreshold") @Nullable Integer healthyThreshold, - @CustomType.Parameter("interval") @Nullable Integer interval, - @CustomType.Parameter("matcher") @Nullable String matcher, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("timeout") @Nullable Integer timeout, - @CustomType.Parameter("unhealthyThreshold") @Nullable Integer unhealthyThreshold) { - this.enabled = enabled; - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.matcher = matcher; - this.path = path; - this.port = port; - this.protocol = protocol; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private @Nullable Integer unhealthyThreshold; + private TargetGroupHealthCheck() {} /** * @return Boolean to enable / disable `stickiness`. Default is `true`. * @@ -152,7 +131,7 @@ public static Builder builder() { public static Builder builder(TargetGroupHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable Integer healthyThreshold; @@ -163,11 +142,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable Integer timeout; private @Nullable Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TargetGroupHealthCheck defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; @@ -181,43 +156,63 @@ public Builder(TargetGroupHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder healthyThreshold(@Nullable Integer healthyThreshold) { this.healthyThreshold = healthyThreshold; return this; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; } + @CustomType.Setter public Builder matcher(@Nullable String matcher) { this.matcher = matcher; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { this.timeout = timeout; return this; } + @CustomType.Setter public Builder unhealthyThreshold(@Nullable Integer unhealthyThreshold) { this.unhealthyThreshold = unhealthyThreshold; return this; - } public TargetGroupHealthCheck build() { - return new TargetGroupHealthCheck(enabled, healthyThreshold, interval, matcher, path, port, protocol, timeout, unhealthyThreshold); + } + public TargetGroupHealthCheck build() { + final var o = new TargetGroupHealthCheck(); + o.enabled = enabled; + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.matcher = matcher; + o.path = path; + o.port = port; + o.protocol = protocol; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/TargetGroupStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/TargetGroupStickiness.java index 85a850db63b..09526f63779 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/TargetGroupStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/alb/outputs/TargetGroupStickiness.java @@ -17,35 +17,24 @@ public final class TargetGroupStickiness { * @return Only used when the type is `lb_cookie`. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). * */ - private final @Nullable Integer cookieDuration; + private @Nullable Integer cookieDuration; /** * @return Name of the application based cookie. AWSALB, AWSALBAPP, and AWSALBTG prefixes are reserved and cannot be used. Only needed when type is `app_cookie`. * */ - private final @Nullable String cookieName; + private @Nullable String cookieName; /** * @return Boolean to enable / disable `stickiness`. Default is `true`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The type of sticky sessions. The only current possible values are `lb_cookie`, `app_cookie` for ALBs, and `source_ip` for NLBs. * */ - private final String type; - - @CustomType.Constructor - private TargetGroupStickiness( - @CustomType.Parameter("cookieDuration") @Nullable Integer cookieDuration, - @CustomType.Parameter("cookieName") @Nullable String cookieName, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("type") String type) { - this.cookieDuration = cookieDuration; - this.cookieName = cookieName; - this.enabled = enabled; - this.type = type; - } + private String type; + private TargetGroupStickiness() {} /** * @return Only used when the type is `lb_cookie`. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(TargetGroupStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer cookieDuration; private @Nullable String cookieName; private @Nullable Boolean enabled; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TargetGroupStickiness defaults) { Objects.requireNonNull(defaults); this.cookieDuration = defaults.cookieDuration; @@ -101,23 +86,33 @@ public Builder(TargetGroupStickiness defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder cookieDuration(@Nullable Integer cookieDuration) { this.cookieDuration = cookieDuration; return this; } + @CustomType.Setter public Builder cookieName(@Nullable String cookieName) { this.cookieName = cookieName; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public TargetGroupStickiness build() { - return new TargetGroupStickiness(cookieDuration, cookieName, enabled, type); + } + public TargetGroupStickiness build() { + final var o = new TargetGroupStickiness(); + o.cookieDuration = cookieDuration; + o.cookieName = cookieName; + o.enabled = enabled; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/amp/outputs/GetWorkspaceResult.java b/sdk/java/src/main/java/com/pulumi/aws/amp/outputs/GetWorkspaceResult.java index 497a6b93d88..8cfb0862f88 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amp/outputs/GetWorkspaceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amp/outputs/GetWorkspaceResult.java @@ -14,59 +14,40 @@ public final class GetWorkspaceResult { * @return The Prometheus workspace alias. * */ - private final String alias; + private String alias; /** * @return The Amazon Resource Name (ARN) of the Prometheus workspace. * */ - private final String arn; + private String arn; /** * @return The creation date of the Prometheus workspace. * */ - private final String createdDate; + private String createdDate; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The endpoint of the Prometheus workspace. * */ - private final String prometheusEndpoint; + private String prometheusEndpoint; /** * @return The status of the Prometheus workspace. * */ - private final String status; + private String status; /** * @return The tags assigned to the resource. * */ - private final Map tags; - private final String workspaceId; - - @CustomType.Constructor - private GetWorkspaceResult( - @CustomType.Parameter("alias") String alias, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createdDate") String createdDate, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("prometheusEndpoint") String prometheusEndpoint, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("workspaceId") String workspaceId) { - this.alias = alias; - this.arn = arn; - this.createdDate = createdDate; - this.id = id; - this.prometheusEndpoint = prometheusEndpoint; - this.status = status; - this.tags = tags; - this.workspaceId = workspaceId; - } + private Map tags; + private String workspaceId; + private GetWorkspaceResult() {} /** * @return The Prometheus workspace alias. * @@ -127,7 +108,7 @@ public static Builder builder() { public static Builder builder(GetWorkspaceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String alias; private String arn; @@ -137,11 +118,7 @@ public static final class Builder { private String status; private Map tags; private String workspaceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetWorkspaceResult defaults) { Objects.requireNonNull(defaults); this.alias = defaults.alias; @@ -154,39 +131,57 @@ public Builder(GetWorkspaceResult defaults) { this.workspaceId = defaults.workspaceId; } + @CustomType.Setter public Builder alias(String alias) { this.alias = Objects.requireNonNull(alias); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createdDate(String createdDate) { this.createdDate = Objects.requireNonNull(createdDate); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder prometheusEndpoint(String prometheusEndpoint) { this.prometheusEndpoint = Objects.requireNonNull(prometheusEndpoint); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder workspaceId(String workspaceId) { this.workspaceId = Objects.requireNonNull(workspaceId); return this; - } public GetWorkspaceResult build() { - return new GetWorkspaceResult(alias, arn, createdDate, id, prometheusEndpoint, status, tags, workspaceId); + } + public GetWorkspaceResult build() { + final var o = new GetWorkspaceResult(); + o.alias = alias; + o.arn = arn; + o.createdDate = createdDate; + o.id = id; + o.prometheusEndpoint = prometheusEndpoint; + o.status = status; + o.tags = tags; + o.workspaceId = workspaceId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/AppAutoBranchCreationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/AppAutoBranchCreationConfig.java index 8125fbbee4c..8b289645db8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/AppAutoBranchCreationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/AppAutoBranchCreationConfig.java @@ -17,77 +17,54 @@ public final class AppAutoBranchCreationConfig { * @return The basic authorization credentials for the autocreated branch. * */ - private final @Nullable String basicAuthCredentials; + private @Nullable String basicAuthCredentials; /** * @return The build specification (build spec) for the autocreated branch. * */ - private final @Nullable String buildSpec; + private @Nullable String buildSpec; /** * @return Enables auto building for the autocreated branch. * */ - private final @Nullable Boolean enableAutoBuild; + private @Nullable Boolean enableAutoBuild; /** * @return Enables basic authorization for the autocreated branch. * */ - private final @Nullable Boolean enableBasicAuth; + private @Nullable Boolean enableBasicAuth; /** * @return Enables performance mode for the branch. * */ - private final @Nullable Boolean enablePerformanceMode; + private @Nullable Boolean enablePerformanceMode; /** * @return Enables pull request previews for the autocreated branch. * */ - private final @Nullable Boolean enablePullRequestPreview; + private @Nullable Boolean enablePullRequestPreview; /** * @return The environment variables for the autocreated branch. * */ - private final @Nullable Map environmentVariables; + private @Nullable Map environmentVariables; /** * @return The framework for the autocreated branch. * */ - private final @Nullable String framework; + private @Nullable String framework; /** * @return The Amplify environment name for the pull request. * */ - private final @Nullable String pullRequestEnvironmentName; + private @Nullable String pullRequestEnvironmentName; /** * @return Describes the current stage for the autocreated branch. Valid values: `PRODUCTION`, `BETA`, `DEVELOPMENT`, `EXPERIMENTAL`, `PULL_REQUEST`. * */ - private final @Nullable String stage; - - @CustomType.Constructor - private AppAutoBranchCreationConfig( - @CustomType.Parameter("basicAuthCredentials") @Nullable String basicAuthCredentials, - @CustomType.Parameter("buildSpec") @Nullable String buildSpec, - @CustomType.Parameter("enableAutoBuild") @Nullable Boolean enableAutoBuild, - @CustomType.Parameter("enableBasicAuth") @Nullable Boolean enableBasicAuth, - @CustomType.Parameter("enablePerformanceMode") @Nullable Boolean enablePerformanceMode, - @CustomType.Parameter("enablePullRequestPreview") @Nullable Boolean enablePullRequestPreview, - @CustomType.Parameter("environmentVariables") @Nullable Map environmentVariables, - @CustomType.Parameter("framework") @Nullable String framework, - @CustomType.Parameter("pullRequestEnvironmentName") @Nullable String pullRequestEnvironmentName, - @CustomType.Parameter("stage") @Nullable String stage) { - this.basicAuthCredentials = basicAuthCredentials; - this.buildSpec = buildSpec; - this.enableAutoBuild = enableAutoBuild; - this.enableBasicAuth = enableBasicAuth; - this.enablePerformanceMode = enablePerformanceMode; - this.enablePullRequestPreview = enablePullRequestPreview; - this.environmentVariables = environmentVariables; - this.framework = framework; - this.pullRequestEnvironmentName = pullRequestEnvironmentName; - this.stage = stage; - } + private @Nullable String stage; + private AppAutoBranchCreationConfig() {} /** * @return The basic authorization credentials for the autocreated branch. * @@ -166,7 +143,7 @@ public static Builder builder() { public static Builder builder(AppAutoBranchCreationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String basicAuthCredentials; private @Nullable String buildSpec; @@ -178,11 +155,7 @@ public static final class Builder { private @Nullable String framework; private @Nullable String pullRequestEnvironmentName; private @Nullable String stage; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AppAutoBranchCreationConfig defaults) { Objects.requireNonNull(defaults); this.basicAuthCredentials = defaults.basicAuthCredentials; @@ -197,47 +170,69 @@ public Builder(AppAutoBranchCreationConfig defaults) { this.stage = defaults.stage; } + @CustomType.Setter public Builder basicAuthCredentials(@Nullable String basicAuthCredentials) { this.basicAuthCredentials = basicAuthCredentials; return this; } + @CustomType.Setter public Builder buildSpec(@Nullable String buildSpec) { this.buildSpec = buildSpec; return this; } + @CustomType.Setter public Builder enableAutoBuild(@Nullable Boolean enableAutoBuild) { this.enableAutoBuild = enableAutoBuild; return this; } + @CustomType.Setter public Builder enableBasicAuth(@Nullable Boolean enableBasicAuth) { this.enableBasicAuth = enableBasicAuth; return this; } + @CustomType.Setter public Builder enablePerformanceMode(@Nullable Boolean enablePerformanceMode) { this.enablePerformanceMode = enablePerformanceMode; return this; } + @CustomType.Setter public Builder enablePullRequestPreview(@Nullable Boolean enablePullRequestPreview) { this.enablePullRequestPreview = enablePullRequestPreview; return this; } + @CustomType.Setter public Builder environmentVariables(@Nullable Map environmentVariables) { this.environmentVariables = environmentVariables; return this; } + @CustomType.Setter public Builder framework(@Nullable String framework) { this.framework = framework; return this; } + @CustomType.Setter public Builder pullRequestEnvironmentName(@Nullable String pullRequestEnvironmentName) { this.pullRequestEnvironmentName = pullRequestEnvironmentName; return this; } + @CustomType.Setter public Builder stage(@Nullable String stage) { this.stage = stage; return this; - } public AppAutoBranchCreationConfig build() { - return new AppAutoBranchCreationConfig(basicAuthCredentials, buildSpec, enableAutoBuild, enableBasicAuth, enablePerformanceMode, enablePullRequestPreview, environmentVariables, framework, pullRequestEnvironmentName, stage); + } + public AppAutoBranchCreationConfig build() { + final var o = new AppAutoBranchCreationConfig(); + o.basicAuthCredentials = basicAuthCredentials; + o.buildSpec = buildSpec; + o.enableAutoBuild = enableAutoBuild; + o.enableBasicAuth = enableBasicAuth; + o.enablePerformanceMode = enablePerformanceMode; + o.enablePullRequestPreview = enablePullRequestPreview; + o.environmentVariables = environmentVariables; + o.framework = framework; + o.pullRequestEnvironmentName = pullRequestEnvironmentName; + o.stage = stage; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/AppCustomRule.java b/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/AppCustomRule.java index ade604b6ce5..9013f658a1a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/AppCustomRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/AppCustomRule.java @@ -15,35 +15,24 @@ public final class AppCustomRule { * @return The condition for a URL rewrite or redirect rule, such as a country code. * */ - private final @Nullable String condition; + private @Nullable String condition; /** * @return The source pattern for a URL rewrite or redirect rule. * */ - private final String source; + private String source; /** * @return The status code for a URL rewrite or redirect rule. Valid values: `200`, `301`, `302`, `404`, `404-200`. * */ - private final @Nullable String status; + private @Nullable String status; /** * @return The target pattern for a URL rewrite or redirect rule. * */ - private final String target; - - @CustomType.Constructor - private AppCustomRule( - @CustomType.Parameter("condition") @Nullable String condition, - @CustomType.Parameter("source") String source, - @CustomType.Parameter("status") @Nullable String status, - @CustomType.Parameter("target") String target) { - this.condition = condition; - this.source = source; - this.status = status; - this.target = target; - } + private String target; + private AppCustomRule() {} /** * @return The condition for a URL rewrite or redirect rule, such as a country code. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(AppCustomRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String condition; private String source; private @Nullable String status; private String target; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AppCustomRule defaults) { Objects.requireNonNull(defaults); this.condition = defaults.condition; @@ -99,23 +84,33 @@ public Builder(AppCustomRule defaults) { this.target = defaults.target; } + @CustomType.Setter public Builder condition(@Nullable String condition) { this.condition = condition; return this; } + @CustomType.Setter public Builder source(String source) { this.source = Objects.requireNonNull(source); return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; } + @CustomType.Setter public Builder target(String target) { this.target = Objects.requireNonNull(target); return this; - } public AppCustomRule build() { - return new AppCustomRule(condition, source, status, target); + } + public AppCustomRule build() { + final var o = new AppCustomRule(); + o.condition = condition; + o.source = source; + o.status = status; + o.target = target; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/AppProductionBranch.java b/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/AppProductionBranch.java index 73770bc27ff..941a954c6e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/AppProductionBranch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/AppProductionBranch.java @@ -15,35 +15,24 @@ public final class AppProductionBranch { * @return The branch name for the production branch. * */ - private final @Nullable String branchName; + private @Nullable String branchName; /** * @return The last deploy time of the production branch. * */ - private final @Nullable String lastDeployTime; + private @Nullable String lastDeployTime; /** * @return The status code for a URL rewrite or redirect rule. Valid values: `200`, `301`, `302`, `404`, `404-200`. * */ - private final @Nullable String status; + private @Nullable String status; /** * @return The thumbnail URL for the production branch. * */ - private final @Nullable String thumbnailUrl; - - @CustomType.Constructor - private AppProductionBranch( - @CustomType.Parameter("branchName") @Nullable String branchName, - @CustomType.Parameter("lastDeployTime") @Nullable String lastDeployTime, - @CustomType.Parameter("status") @Nullable String status, - @CustomType.Parameter("thumbnailUrl") @Nullable String thumbnailUrl) { - this.branchName = branchName; - this.lastDeployTime = lastDeployTime; - this.status = status; - this.thumbnailUrl = thumbnailUrl; - } + private @Nullable String thumbnailUrl; + private AppProductionBranch() {} /** * @return The branch name for the production branch. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(AppProductionBranch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String branchName; private @Nullable String lastDeployTime; private @Nullable String status; private @Nullable String thumbnailUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AppProductionBranch defaults) { Objects.requireNonNull(defaults); this.branchName = defaults.branchName; @@ -99,23 +84,33 @@ public Builder(AppProductionBranch defaults) { this.thumbnailUrl = defaults.thumbnailUrl; } + @CustomType.Setter public Builder branchName(@Nullable String branchName) { this.branchName = branchName; return this; } + @CustomType.Setter public Builder lastDeployTime(@Nullable String lastDeployTime) { this.lastDeployTime = lastDeployTime; return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; } + @CustomType.Setter public Builder thumbnailUrl(@Nullable String thumbnailUrl) { this.thumbnailUrl = thumbnailUrl; return this; - } public AppProductionBranch build() { - return new AppProductionBranch(branchName, lastDeployTime, status, thumbnailUrl); + } + public AppProductionBranch build() { + final var o = new AppProductionBranch(); + o.branchName = branchName; + o.lastDeployTime = lastDeployTime; + o.status = status; + o.thumbnailUrl = thumbnailUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/DomainAssociationSubDomain.java b/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/DomainAssociationSubDomain.java index 0144716a04a..281de9d19fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/DomainAssociationSubDomain.java +++ b/sdk/java/src/main/java/com/pulumi/aws/amplify/outputs/DomainAssociationSubDomain.java @@ -16,35 +16,24 @@ public final class DomainAssociationSubDomain { * @return The branch name setting for the subdomain. * */ - private final String branchName; + private String branchName; /** * @return The DNS record for the subdomain. * */ - private final @Nullable String dnsRecord; + private @Nullable String dnsRecord; /** * @return The prefix setting for the subdomain. * */ - private final String prefix; + private String prefix; /** * @return The verified status of the subdomain. * */ - private final @Nullable Boolean verified; - - @CustomType.Constructor - private DomainAssociationSubDomain( - @CustomType.Parameter("branchName") String branchName, - @CustomType.Parameter("dnsRecord") @Nullable String dnsRecord, - @CustomType.Parameter("prefix") String prefix, - @CustomType.Parameter("verified") @Nullable Boolean verified) { - this.branchName = branchName; - this.dnsRecord = dnsRecord; - this.prefix = prefix; - this.verified = verified; - } + private @Nullable Boolean verified; + private DomainAssociationSubDomain() {} /** * @return The branch name setting for the subdomain. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(DomainAssociationSubDomain defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String branchName; private @Nullable String dnsRecord; private String prefix; private @Nullable Boolean verified; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainAssociationSubDomain defaults) { Objects.requireNonNull(defaults); this.branchName = defaults.branchName; @@ -100,23 +85,33 @@ public Builder(DomainAssociationSubDomain defaults) { this.verified = defaults.verified; } + @CustomType.Setter public Builder branchName(String branchName) { this.branchName = Objects.requireNonNull(branchName); return this; } + @CustomType.Setter public Builder dnsRecord(@Nullable String dnsRecord) { this.dnsRecord = dnsRecord; return this; } + @CustomType.Setter public Builder prefix(String prefix) { this.prefix = Objects.requireNonNull(prefix); return this; } + @CustomType.Setter public Builder verified(@Nullable Boolean verified) { this.verified = verified; return this; - } public DomainAssociationSubDomain build() { - return new DomainAssociationSubDomain(branchName, dnsRecord, prefix, verified); + } + public DomainAssociationSubDomain build() { + final var o = new DomainAssociationSubDomain(); + o.branchName = branchName; + o.dnsRecord = dnsRecord; + o.prefix = prefix; + o.verified = verified; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/AccountThrottleSetting.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/AccountThrottleSetting.java index f952d16fdb3..c350c46fd09 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/AccountThrottleSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/AccountThrottleSetting.java @@ -16,21 +16,14 @@ public final class AccountThrottleSetting { * @return The absolute maximum number of times API Gateway allows the API to be called per second (RPS). * */ - private final @Nullable Integer burstLimit; + private @Nullable Integer burstLimit; /** * @return The number of times API Gateway allows the API to be called per second on average (RPS). * */ - private final @Nullable Double rateLimit; - - @CustomType.Constructor - private AccountThrottleSetting( - @CustomType.Parameter("burstLimit") @Nullable Integer burstLimit, - @CustomType.Parameter("rateLimit") @Nullable Double rateLimit) { - this.burstLimit = burstLimit; - this.rateLimit = rateLimit; - } + private @Nullable Double rateLimit; + private AccountThrottleSetting() {} /** * @return The absolute maximum number of times API Gateway allows the API to be called per second (RPS). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(AccountThrottleSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer burstLimit; private @Nullable Double rateLimit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AccountThrottleSetting defaults) { Objects.requireNonNull(defaults); this.burstLimit = defaults.burstLimit; this.rateLimit = defaults.rateLimit; } + @CustomType.Setter public Builder burstLimit(@Nullable Integer burstLimit) { this.burstLimit = burstLimit; return this; } + @CustomType.Setter public Builder rateLimit(@Nullable Double rateLimit) { this.rateLimit = rateLimit; return this; - } public AccountThrottleSetting build() { - return new AccountThrottleSetting(burstLimit, rateLimit); + } + public AccountThrottleSetting build() { + final var o = new AccountThrottleSetting(); + o.burstLimit = burstLimit; + o.rateLimit = rateLimit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/DocumentationPartLocation.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/DocumentationPartLocation.java index 3e30792540f..5560ca62747 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/DocumentationPartLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/DocumentationPartLocation.java @@ -15,42 +15,29 @@ public final class DocumentationPartLocation { * @return The HTTP verb of a method. The default value is `*` for any method. * */ - private final @Nullable String method; + private @Nullable String method; /** * @return The name of the targeted API entity. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return The URL path of the target. The default value is `/` for the root resource. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return The HTTP status code of a response. The default value is `*` for any status code. * */ - private final @Nullable String statusCode; + private @Nullable String statusCode; /** * @return The type of API entity to which the documentation content appliesE.g., `API`, `METHOD` or `REQUEST_BODY` * */ - private final String type; - - @CustomType.Constructor - private DocumentationPartLocation( - @CustomType.Parameter("method") @Nullable String method, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("statusCode") @Nullable String statusCode, - @CustomType.Parameter("type") String type) { - this.method = method; - this.name = name; - this.path = path; - this.statusCode = statusCode; - this.type = type; - } + private String type; + private DocumentationPartLocation() {} /** * @return The HTTP verb of a method. The default value is `*` for any method. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(DocumentationPartLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String method; private @Nullable String name; private @Nullable String path; private @Nullable String statusCode; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DocumentationPartLocation defaults) { Objects.requireNonNull(defaults); this.method = defaults.method; @@ -115,27 +98,39 @@ public Builder(DocumentationPartLocation defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder method(@Nullable String method) { this.method = method; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder statusCode(@Nullable String statusCode) { this.statusCode = statusCode; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public DocumentationPartLocation build() { - return new DocumentationPartLocation(method, name, path, statusCode, type); + } + public DocumentationPartLocation build() { + final var o = new DocumentationPartLocation(); + o.method = method; + o.name = name; + o.path = path; + o.statusCode = statusCode; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/DomainNameEndpointConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/DomainNameEndpointConfiguration.java index c5d6c354788..758639f36ed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/DomainNameEndpointConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/DomainNameEndpointConfiguration.java @@ -13,13 +13,9 @@ public final class DomainNameEndpointConfiguration { * @return List of endpoint types. This resource currently only supports managing a single value. Valid values: `EDGE` or `REGIONAL`. If unspecified, defaults to `EDGE`. Must be declared as `REGIONAL` in non-Commercial partitions. Refer to the [documentation](https://docs.aws.amazon.com/apigateway/latest/developerguide/create-regional-api.html) for more information on the difference between edge-optimized and regional APIs. * */ - private final String types; - - @CustomType.Constructor - private DomainNameEndpointConfiguration(@CustomType.Parameter("types") String types) { - this.types = types; - } + private String types; + private DomainNameEndpointConfiguration() {} /** * @return List of endpoint types. This resource currently only supports managing a single value. Valid values: `EDGE` or `REGIONAL`. If unspecified, defaults to `EDGE`. Must be declared as `REGIONAL` in non-Commercial partitions. Refer to the [documentation](https://docs.aws.amazon.com/apigateway/latest/developerguide/create-regional-api.html) for more information on the difference between edge-optimized and regional APIs. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(DomainNameEndpointConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String types; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainNameEndpointConfiguration defaults) { Objects.requireNonNull(defaults); this.types = defaults.types; } + @CustomType.Setter public Builder types(String types) { this.types = Objects.requireNonNull(types); return this; - } public DomainNameEndpointConfiguration build() { - return new DomainNameEndpointConfiguration(types); + } + public DomainNameEndpointConfiguration build() { + final var o = new DomainNameEndpointConfiguration(); + o.types = types; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/DomainNameMutualTlsAuthentication.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/DomainNameMutualTlsAuthentication.java index c7e6bfc22ce..88ea871c1bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/DomainNameMutualTlsAuthentication.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/DomainNameMutualTlsAuthentication.java @@ -15,21 +15,14 @@ public final class DomainNameMutualTlsAuthentication { * @return Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, `s3://bucket-name/key-name`. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. * */ - private final String truststoreUri; + private String truststoreUri; /** * @return Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket. * */ - private final @Nullable String truststoreVersion; - - @CustomType.Constructor - private DomainNameMutualTlsAuthentication( - @CustomType.Parameter("truststoreUri") String truststoreUri, - @CustomType.Parameter("truststoreVersion") @Nullable String truststoreVersion) { - this.truststoreUri = truststoreUri; - this.truststoreVersion = truststoreVersion; - } + private @Nullable String truststoreVersion; + private DomainNameMutualTlsAuthentication() {} /** * @return Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, `s3://bucket-name/key-name`. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DomainNameMutualTlsAuthentication defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String truststoreUri; private @Nullable String truststoreVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainNameMutualTlsAuthentication defaults) { Objects.requireNonNull(defaults); this.truststoreUri = defaults.truststoreUri; this.truststoreVersion = defaults.truststoreVersion; } + @CustomType.Setter public Builder truststoreUri(String truststoreUri) { this.truststoreUri = Objects.requireNonNull(truststoreUri); return this; } + @CustomType.Setter public Builder truststoreVersion(@Nullable String truststoreVersion) { this.truststoreVersion = truststoreVersion; return this; - } public DomainNameMutualTlsAuthentication build() { - return new DomainNameMutualTlsAuthentication(truststoreUri, truststoreVersion); + } + public DomainNameMutualTlsAuthentication build() { + final var o = new DomainNameMutualTlsAuthentication(); + o.truststoreUri = truststoreUri; + o.truststoreVersion = truststoreVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetDomainNameEndpointConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetDomainNameEndpointConfiguration.java index 5251eb0be44..b8f8c732df8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetDomainNameEndpointConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetDomainNameEndpointConfiguration.java @@ -14,13 +14,9 @@ public final class GetDomainNameEndpointConfiguration { * @return List of endpoint types. * */ - private final List types; - - @CustomType.Constructor - private GetDomainNameEndpointConfiguration(@CustomType.Parameter("types") List types) { - this.types = types; - } + private List types; + private GetDomainNameEndpointConfiguration() {} /** * @return List of endpoint types. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(GetDomainNameEndpointConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List types; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainNameEndpointConfiguration defaults) { Objects.requireNonNull(defaults); this.types = defaults.types; } + @CustomType.Setter public Builder types(List types) { this.types = Objects.requireNonNull(types); return this; } public Builder types(String... types) { return types(List.of(types)); - } public GetDomainNameEndpointConfiguration build() { - return new GetDomainNameEndpointConfiguration(types); + } + public GetDomainNameEndpointConfiguration build() { + final var o = new GetDomainNameEndpointConfiguration(); + o.types = types; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetDomainNameResult.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetDomainNameResult.java index b84876d1fb3..e15ea61cebc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetDomainNameResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetDomainNameResult.java @@ -17,108 +17,75 @@ public final class GetDomainNameResult { * @return ARN of the found custom domain name. * */ - private final String arn; + private String arn; /** * @return ARN for an AWS-managed certificate that is used by edge-optimized endpoint for this domain name. * */ - private final String certificateArn; + private String certificateArn; /** * @return Name of the certificate that is used by edge-optimized endpoint for this domain name. * */ - private final String certificateName; + private String certificateName; /** * @return Upload date associated with the domain certificate. * */ - private final String certificateUploadDate; + private String certificateUploadDate; /** * @return Hostname created by Cloudfront to represent the distribution that implements this domain name mapping. * */ - private final String cloudfrontDomainName; + private String cloudfrontDomainName; /** * @return For convenience, the hosted zone ID (`Z2FDTNDATAQYW2`) that can be used to create a Route53 alias record for the distribution. * */ - private final String cloudfrontZoneId; - private final String domainName; + private String cloudfrontZoneId; + private String domainName; /** * @return List of objects with the endpoint configuration of this domain name. * */ - private final List endpointConfigurations; + private List endpointConfigurations; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return ARN for an AWS-managed certificate that is used for validating the regional domain name. * */ - private final String regionalCertificateArn; + private String regionalCertificateArn; /** * @return User-friendly name of the certificate that is used by regional endpoint for this domain name. * */ - private final String regionalCertificateName; + private String regionalCertificateName; /** * @return Hostname for the custom domain's regional endpoint. * */ - private final String regionalDomainName; + private String regionalDomainName; /** * @return Hosted zone ID that can be used to create a Route53 alias record for the regional endpoint. * */ - private final String regionalZoneId; + private String regionalZoneId; /** * @return Security policy for the domain name. * */ - private final String securityPolicy; + private String securityPolicy; /** * @return Key-value map of tags for the resource. * */ - private final @Nullable Map tags; - - @CustomType.Constructor - private GetDomainNameResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("certificateArn") String certificateArn, - @CustomType.Parameter("certificateName") String certificateName, - @CustomType.Parameter("certificateUploadDate") String certificateUploadDate, - @CustomType.Parameter("cloudfrontDomainName") String cloudfrontDomainName, - @CustomType.Parameter("cloudfrontZoneId") String cloudfrontZoneId, - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("endpointConfigurations") List endpointConfigurations, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("regionalCertificateArn") String regionalCertificateArn, - @CustomType.Parameter("regionalCertificateName") String regionalCertificateName, - @CustomType.Parameter("regionalDomainName") String regionalDomainName, - @CustomType.Parameter("regionalZoneId") String regionalZoneId, - @CustomType.Parameter("securityPolicy") String securityPolicy, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.arn = arn; - this.certificateArn = certificateArn; - this.certificateName = certificateName; - this.certificateUploadDate = certificateUploadDate; - this.cloudfrontDomainName = cloudfrontDomainName; - this.cloudfrontZoneId = cloudfrontZoneId; - this.domainName = domainName; - this.endpointConfigurations = endpointConfigurations; - this.id = id; - this.regionalCertificateArn = regionalCertificateArn; - this.regionalCertificateName = regionalCertificateName; - this.regionalDomainName = regionalDomainName; - this.regionalZoneId = regionalZoneId; - this.securityPolicy = securityPolicy; - this.tags = tags; - } + private @Nullable Map tags; + private GetDomainNameResult() {} /** * @return ARN of the found custom domain name. * @@ -228,7 +195,7 @@ public static Builder builder() { public static Builder builder(GetDomainNameResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String certificateArn; @@ -245,11 +212,7 @@ public static final class Builder { private String regionalZoneId; private String securityPolicy; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainNameResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -269,34 +232,42 @@ public Builder(GetDomainNameResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder certificateArn(String certificateArn) { this.certificateArn = Objects.requireNonNull(certificateArn); return this; } + @CustomType.Setter public Builder certificateName(String certificateName) { this.certificateName = Objects.requireNonNull(certificateName); return this; } + @CustomType.Setter public Builder certificateUploadDate(String certificateUploadDate) { this.certificateUploadDate = Objects.requireNonNull(certificateUploadDate); return this; } + @CustomType.Setter public Builder cloudfrontDomainName(String cloudfrontDomainName) { this.cloudfrontDomainName = Objects.requireNonNull(cloudfrontDomainName); return this; } + @CustomType.Setter public Builder cloudfrontZoneId(String cloudfrontZoneId) { this.cloudfrontZoneId = Objects.requireNonNull(cloudfrontZoneId); return this; } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder endpointConfigurations(List endpointConfigurations) { this.endpointConfigurations = Objects.requireNonNull(endpointConfigurations); return this; @@ -304,35 +275,59 @@ public Builder endpointConfigurations(List e public Builder endpointConfigurations(GetDomainNameEndpointConfiguration... endpointConfigurations) { return endpointConfigurations(List.of(endpointConfigurations)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder regionalCertificateArn(String regionalCertificateArn) { this.regionalCertificateArn = Objects.requireNonNull(regionalCertificateArn); return this; } + @CustomType.Setter public Builder regionalCertificateName(String regionalCertificateName) { this.regionalCertificateName = Objects.requireNonNull(regionalCertificateName); return this; } + @CustomType.Setter public Builder regionalDomainName(String regionalDomainName) { this.regionalDomainName = Objects.requireNonNull(regionalDomainName); return this; } + @CustomType.Setter public Builder regionalZoneId(String regionalZoneId) { this.regionalZoneId = Objects.requireNonNull(regionalZoneId); return this; } + @CustomType.Setter public Builder securityPolicy(String securityPolicy) { this.securityPolicy = Objects.requireNonNull(securityPolicy); return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public GetDomainNameResult build() { - return new GetDomainNameResult(arn, certificateArn, certificateName, certificateUploadDate, cloudfrontDomainName, cloudfrontZoneId, domainName, endpointConfigurations, id, regionalCertificateArn, regionalCertificateName, regionalDomainName, regionalZoneId, securityPolicy, tags); + } + public GetDomainNameResult build() { + final var o = new GetDomainNameResult(); + o.arn = arn; + o.certificateArn = certificateArn; + o.certificateName = certificateName; + o.certificateUploadDate = certificateUploadDate; + o.cloudfrontDomainName = cloudfrontDomainName; + o.cloudfrontZoneId = cloudfrontZoneId; + o.domainName = domainName; + o.endpointConfigurations = endpointConfigurations; + o.id = id; + o.regionalCertificateArn = regionalCertificateArn; + o.regionalCertificateName = regionalCertificateName; + o.regionalDomainName = regionalDomainName; + o.regionalZoneId = regionalZoneId; + o.securityPolicy = securityPolicy; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetExportResult.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetExportResult.java index ab203f229a8..ea161023f1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetExportResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetExportResult.java @@ -12,54 +12,33 @@ @CustomType public final class GetExportResult { - private final @Nullable String accepts; + private @Nullable String accepts; /** * @return The API Spec. * */ - private final String body; + private String body; /** * @return The content-disposition header value in the HTTP response. * */ - private final String contentDisposition; + private String contentDisposition; /** * @return The content-type header value in the HTTP response. * */ - private final String contentType; - private final String exportType; + private String contentType; + private String exportType; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable Map parameters; - private final String restApiId; - private final String stageName; - - @CustomType.Constructor - private GetExportResult( - @CustomType.Parameter("accepts") @Nullable String accepts, - @CustomType.Parameter("body") String body, - @CustomType.Parameter("contentDisposition") String contentDisposition, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("exportType") String exportType, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("parameters") @Nullable Map parameters, - @CustomType.Parameter("restApiId") String restApiId, - @CustomType.Parameter("stageName") String stageName) { - this.accepts = accepts; - this.body = body; - this.contentDisposition = contentDisposition; - this.contentType = contentType; - this.exportType = exportType; - this.id = id; - this.parameters = parameters; - this.restApiId = restApiId; - this.stageName = stageName; - } + private String id; + private @Nullable Map parameters; + private String restApiId; + private String stageName; + private GetExportResult() {} public Optional accepts() { return Optional.ofNullable(this.accepts); } @@ -111,7 +90,7 @@ public static Builder builder() { public static Builder builder(GetExportResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accepts; private String body; @@ -122,11 +101,7 @@ public static final class Builder { private @Nullable Map parameters; private String restApiId; private String stageName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetExportResult defaults) { Objects.requireNonNull(defaults); this.accepts = defaults.accepts; @@ -140,43 +115,63 @@ public Builder(GetExportResult defaults) { this.stageName = defaults.stageName; } + @CustomType.Setter public Builder accepts(@Nullable String accepts) { this.accepts = accepts; return this; } + @CustomType.Setter public Builder body(String body) { this.body = Objects.requireNonNull(body); return this; } + @CustomType.Setter public Builder contentDisposition(String contentDisposition) { this.contentDisposition = Objects.requireNonNull(contentDisposition); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder exportType(String exportType) { this.exportType = Objects.requireNonNull(exportType); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder parameters(@Nullable Map parameters) { this.parameters = parameters; return this; } + @CustomType.Setter public Builder restApiId(String restApiId) { this.restApiId = Objects.requireNonNull(restApiId); return this; } + @CustomType.Setter public Builder stageName(String stageName) { this.stageName = Objects.requireNonNull(stageName); return this; - } public GetExportResult build() { - return new GetExportResult(accepts, body, contentDisposition, contentType, exportType, id, parameters, restApiId, stageName); + } + public GetExportResult build() { + final var o = new GetExportResult(); + o.accepts = accepts; + o.body = body; + o.contentDisposition = contentDisposition; + o.contentType = contentType; + o.exportType = exportType; + o.id = id; + o.parameters = parameters; + o.restApiId = restApiId; + o.stageName = stageName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetKeyResult.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetKeyResult.java index f37e54ee6a3..1b0e969a2dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetKeyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetKeyResult.java @@ -15,63 +15,44 @@ public final class GetKeyResult { * @return The date and time when the API Key was created. * */ - private final String createdDate; + private String createdDate; /** * @return The description of the API Key. * */ - private final String description; + private String description; /** * @return Specifies whether the API Key is enabled. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return Set to the ID of the API Key. * */ - private final String id; + private String id; /** * @return The date and time when the API Key was last updated. * */ - private final String lastUpdatedDate; + private String lastUpdatedDate; /** * @return Set to the name of the API Key. * */ - private final String name; + private String name; /** * @return A map of tags for the resource. * */ - private final Map tags; + private Map tags; /** * @return Set to the value of the API Key. * */ - private final String value; - - @CustomType.Constructor - private GetKeyResult( - @CustomType.Parameter("createdDate") String createdDate, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastUpdatedDate") String lastUpdatedDate, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("value") String value) { - this.createdDate = createdDate; - this.description = description; - this.enabled = enabled; - this.id = id; - this.lastUpdatedDate = lastUpdatedDate; - this.name = name; - this.tags = tags; - this.value = value; - } + private String value; + private GetKeyResult() {} /** * @return The date and time when the API Key was created. * @@ -136,7 +117,7 @@ public static Builder builder() { public static Builder builder(GetKeyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String createdDate; private String description; @@ -146,11 +127,7 @@ public static final class Builder { private String name; private Map tags; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetKeyResult defaults) { Objects.requireNonNull(defaults); this.createdDate = defaults.createdDate; @@ -163,39 +140,57 @@ public Builder(GetKeyResult defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder createdDate(String createdDate) { this.createdDate = Objects.requireNonNull(createdDate); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetKeyResult build() { - return new GetKeyResult(createdDate, description, enabled, id, lastUpdatedDate, name, tags, value); + } + public GetKeyResult build() { + final var o = new GetKeyResult(); + o.createdDate = createdDate; + o.description = description; + o.enabled = enabled; + o.id = id; + o.lastUpdatedDate = lastUpdatedDate; + o.name = name; + o.tags = tags; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetResourceResult.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetResourceResult.java index d9e89aae18e..ac2177702e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetResourceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetResourceResult.java @@ -13,34 +13,21 @@ public final class GetResourceResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set to the ID of the parent Resource. * */ - private final String parentId; - private final String path; + private String parentId; + private String path; /** * @return Set to the path relative to the parent Resource. * */ - private final String pathPart; - private final String restApiId; - - @CustomType.Constructor - private GetResourceResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("parentId") String parentId, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("pathPart") String pathPart, - @CustomType.Parameter("restApiId") String restApiId) { - this.id = id; - this.parentId = parentId; - this.path = path; - this.pathPart = pathPart; - this.restApiId = restApiId; - } + private String pathPart; + private String restApiId; + private GetResourceResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -76,18 +63,14 @@ public static Builder builder() { public static Builder builder(GetResourceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String parentId; private String path; private String pathPart; private String restApiId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResourceResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -97,27 +80,39 @@ public Builder(GetResourceResult defaults) { this.restApiId = defaults.restApiId; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder parentId(String parentId) { this.parentId = Objects.requireNonNull(parentId); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder pathPart(String pathPart) { this.pathPart = Objects.requireNonNull(pathPart); return this; } + @CustomType.Setter public Builder restApiId(String restApiId) { this.restApiId = Objects.requireNonNull(restApiId); return this; - } public GetResourceResult build() { - return new GetResourceResult(id, parentId, path, pathPart, restApiId); + } + public GetResourceResult build() { + final var o = new GetResourceResult(); + o.id = id; + o.parentId = parentId; + o.path = path; + o.pathPart = pathPart; + o.restApiId = restApiId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetRestApiEndpointConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetRestApiEndpointConfiguration.java index 15d063da610..e1eae47d7a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetRestApiEndpointConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetRestApiEndpointConfiguration.java @@ -10,17 +10,10 @@ @CustomType public final class GetRestApiEndpointConfiguration { - private final List types; - private final List vpcEndpointIds; - - @CustomType.Constructor - private GetRestApiEndpointConfiguration( - @CustomType.Parameter("types") List types, - @CustomType.Parameter("vpcEndpointIds") List vpcEndpointIds) { - this.types = types; - this.vpcEndpointIds = vpcEndpointIds; - } + private List types; + private List vpcEndpointIds; + private GetRestApiEndpointConfiguration() {} public List types() { return this.types; } @@ -35,21 +28,18 @@ public static Builder builder() { public static Builder builder(GetRestApiEndpointConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List types; private List vpcEndpointIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRestApiEndpointConfiguration defaults) { Objects.requireNonNull(defaults); this.types = defaults.types; this.vpcEndpointIds = defaults.vpcEndpointIds; } + @CustomType.Setter public Builder types(List types) { this.types = Objects.requireNonNull(types); return this; @@ -57,14 +47,19 @@ public Builder types(List types) { public Builder types(String... types) { return types(List.of(types)); } + @CustomType.Setter public Builder vpcEndpointIds(List vpcEndpointIds) { this.vpcEndpointIds = Objects.requireNonNull(vpcEndpointIds); return this; } public Builder vpcEndpointIds(String... vpcEndpointIds) { return vpcEndpointIds(List.of(vpcEndpointIds)); - } public GetRestApiEndpointConfiguration build() { - return new GetRestApiEndpointConfiguration(types, vpcEndpointIds); + } + public GetRestApiEndpointConfiguration build() { + final var o = new GetRestApiEndpointConfiguration(); + o.types = types; + o.vpcEndpointIds = vpcEndpointIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetRestApiResult.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetRestApiResult.java index 0ea86fbf974..19276e26587 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetRestApiResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetRestApiResult.java @@ -17,87 +17,60 @@ public final class GetRestApiResult { * @return The source of the API key for requests. * */ - private final String apiKeySource; + private String apiKeySource; /** * @return The ARN of the REST API. * */ - private final String arn; + private String arn; /** * @return The list of binary media types supported by the REST API. * */ - private final List binaryMediaTypes; + private List binaryMediaTypes; /** * @return The description of the REST API. * */ - private final String description; + private String description; /** * @return The endpoint configuration of this RestApi showing the endpoint types of the API. * */ - private final List endpointConfigurations; + private List endpointConfigurations; /** * @return The execution ARN part to be used in `lambda_permission`'s `source_arn` when allowing API Gateway to invoke a Lambda function, e.g., `arn:aws:execute-api:eu-west-2:123456789012:z4675bid1j`, which can be concatenated with allowed stage, method and resource path. * */ - private final String executionArn; + private String executionArn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Minimum response size to compress for the REST API. * */ - private final Integer minimumCompressionSize; - private final String name; + private Integer minimumCompressionSize; + private String name; /** * @return JSON formatted policy document that controls access to the API Gateway. * */ - private final String policy; + private String policy; /** * @return Set to the ID of the API Gateway Resource on the found REST API where the route matches '/'. * */ - private final String rootResourceId; + private String rootResourceId; /** * @return Key-value map of resource tags. * */ - private final Map tags; - - @CustomType.Constructor - private GetRestApiResult( - @CustomType.Parameter("apiKeySource") String apiKeySource, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("binaryMediaTypes") List binaryMediaTypes, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("endpointConfigurations") List endpointConfigurations, - @CustomType.Parameter("executionArn") String executionArn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("minimumCompressionSize") Integer minimumCompressionSize, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("policy") String policy, - @CustomType.Parameter("rootResourceId") String rootResourceId, - @CustomType.Parameter("tags") Map tags) { - this.apiKeySource = apiKeySource; - this.arn = arn; - this.binaryMediaTypes = binaryMediaTypes; - this.description = description; - this.endpointConfigurations = endpointConfigurations; - this.executionArn = executionArn; - this.id = id; - this.minimumCompressionSize = minimumCompressionSize; - this.name = name; - this.policy = policy; - this.rootResourceId = rootResourceId; - this.tags = tags; - } + private Map tags; + private GetRestApiResult() {} /** * @return The source of the API key for requests. * @@ -186,7 +159,7 @@ public static Builder builder() { public static Builder builder(GetRestApiResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String apiKeySource; private String arn; @@ -200,11 +173,7 @@ public static final class Builder { private String policy; private String rootResourceId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRestApiResult defaults) { Objects.requireNonNull(defaults); this.apiKeySource = defaults.apiKeySource; @@ -221,14 +190,17 @@ public Builder(GetRestApiResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder apiKeySource(String apiKeySource) { this.apiKeySource = Objects.requireNonNull(apiKeySource); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder binaryMediaTypes(List binaryMediaTypes) { this.binaryMediaTypes = Objects.requireNonNull(binaryMediaTypes); return this; @@ -236,10 +208,12 @@ public Builder binaryMediaTypes(List binaryMediaTypes) { public Builder binaryMediaTypes(String... binaryMediaTypes) { return binaryMediaTypes(List.of(binaryMediaTypes)); } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder endpointConfigurations(List endpointConfigurations) { this.endpointConfigurations = Objects.requireNonNull(endpointConfigurations); return this; @@ -247,35 +221,56 @@ public Builder endpointConfigurations(List endp public Builder endpointConfigurations(GetRestApiEndpointConfiguration... endpointConfigurations) { return endpointConfigurations(List.of(endpointConfigurations)); } + @CustomType.Setter public Builder executionArn(String executionArn) { this.executionArn = Objects.requireNonNull(executionArn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder minimumCompressionSize(Integer minimumCompressionSize) { this.minimumCompressionSize = Objects.requireNonNull(minimumCompressionSize); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder policy(String policy) { this.policy = Objects.requireNonNull(policy); return this; } + @CustomType.Setter public Builder rootResourceId(String rootResourceId) { this.rootResourceId = Objects.requireNonNull(rootResourceId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetRestApiResult build() { - return new GetRestApiResult(apiKeySource, arn, binaryMediaTypes, description, endpointConfigurations, executionArn, id, minimumCompressionSize, name, policy, rootResourceId, tags); + } + public GetRestApiResult build() { + final var o = new GetRestApiResult(); + o.apiKeySource = apiKeySource; + o.arn = arn; + o.binaryMediaTypes = binaryMediaTypes; + o.description = description; + o.endpointConfigurations = endpointConfigurations; + o.executionArn = executionArn; + o.id = id; + o.minimumCompressionSize = minimumCompressionSize; + o.name = name; + o.policy = policy; + o.rootResourceId = rootResourceId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetSdkResult.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetSdkResult.java index 4c7830c3484..b4d5b2da589 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetSdkResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetSdkResult.java @@ -15,47 +15,28 @@ public final class GetSdkResult { * @return The SDK as a string. * */ - private final String body; + private String body; /** * @return The content-disposition header value in the HTTP response. * */ - private final String contentDisposition; + private String contentDisposition; /** * @return The content-type header value in the HTTP response. * */ - private final String contentType; + private String contentType; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable Map parameters; - private final String restApiId; - private final String sdkType; - private final String stageName; - - @CustomType.Constructor - private GetSdkResult( - @CustomType.Parameter("body") String body, - @CustomType.Parameter("contentDisposition") String contentDisposition, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("parameters") @Nullable Map parameters, - @CustomType.Parameter("restApiId") String restApiId, - @CustomType.Parameter("sdkType") String sdkType, - @CustomType.Parameter("stageName") String stageName) { - this.body = body; - this.contentDisposition = contentDisposition; - this.contentType = contentType; - this.id = id; - this.parameters = parameters; - this.restApiId = restApiId; - this.sdkType = sdkType; - this.stageName = stageName; - } + private String id; + private @Nullable Map parameters; + private String restApiId; + private String sdkType; + private String stageName; + private GetSdkResult() {} /** * @return The SDK as a string. * @@ -104,7 +85,7 @@ public static Builder builder() { public static Builder builder(GetSdkResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String body; private String contentDisposition; @@ -114,11 +95,7 @@ public static final class Builder { private String restApiId; private String sdkType; private String stageName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSdkResult defaults) { Objects.requireNonNull(defaults); this.body = defaults.body; @@ -131,39 +108,57 @@ public Builder(GetSdkResult defaults) { this.stageName = defaults.stageName; } + @CustomType.Setter public Builder body(String body) { this.body = Objects.requireNonNull(body); return this; } + @CustomType.Setter public Builder contentDisposition(String contentDisposition) { this.contentDisposition = Objects.requireNonNull(contentDisposition); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder parameters(@Nullable Map parameters) { this.parameters = parameters; return this; } + @CustomType.Setter public Builder restApiId(String restApiId) { this.restApiId = Objects.requireNonNull(restApiId); return this; } + @CustomType.Setter public Builder sdkType(String sdkType) { this.sdkType = Objects.requireNonNull(sdkType); return this; } + @CustomType.Setter public Builder stageName(String stageName) { this.stageName = Objects.requireNonNull(stageName); return this; - } public GetSdkResult build() { - return new GetSdkResult(body, contentDisposition, contentType, id, parameters, restApiId, sdkType, stageName); + } + public GetSdkResult build() { + final var o = new GetSdkResult(); + o.body = body; + o.contentDisposition = contentDisposition; + o.contentType = contentType; + o.id = id; + o.parameters = parameters; + o.restApiId = restApiId; + o.sdkType = sdkType; + o.stageName = stageName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetVpcLinkResult.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetVpcLinkResult.java index f7b28043f8f..ced9d4aa0ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetVpcLinkResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/GetVpcLinkResult.java @@ -15,52 +15,35 @@ public final class GetVpcLinkResult { * @return The description of the VPC link. * */ - private final String description; + private String description; /** * @return Set to the ID of the found API Gateway VPC Link. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return The status of the VPC link. * */ - private final String status; + private String status; /** * @return The status message of the VPC link. * */ - private final String statusMessage; + private String statusMessage; /** * @return Key-value map of resource tags * */ - private final Map tags; + private Map tags; /** * @return The list of network load balancer arns in the VPC targeted by the VPC link. Currently AWS only supports 1 target. * */ - private final List targetArns; - - @CustomType.Constructor - private GetVpcLinkResult( - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("statusMessage") String statusMessage, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("targetArns") List targetArns) { - this.description = description; - this.id = id; - this.name = name; - this.status = status; - this.statusMessage = statusMessage; - this.tags = tags; - this.targetArns = targetArns; - } + private List targetArns; + private GetVpcLinkResult() {} /** * @return The description of the VPC link. * @@ -114,7 +97,7 @@ public static Builder builder() { public static Builder builder(GetVpcLinkResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String description; private String id; @@ -123,11 +106,7 @@ public static final class Builder { private String statusMessage; private Map tags; private List targetArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcLinkResult defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; @@ -139,38 +118,54 @@ public Builder(GetVpcLinkResult defaults) { this.targetArns = defaults.targetArns; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder statusMessage(String statusMessage) { this.statusMessage = Objects.requireNonNull(statusMessage); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder targetArns(List targetArns) { this.targetArns = Objects.requireNonNull(targetArns); return this; } public Builder targetArns(String... targetArns) { return targetArns(List.of(targetArns)); - } public GetVpcLinkResult build() { - return new GetVpcLinkResult(description, id, name, status, statusMessage, tags, targetArns); + } + public GetVpcLinkResult build() { + final var o = new GetVpcLinkResult(); + o.description = description; + o.id = id; + o.name = name; + o.status = status; + o.statusMessage = statusMessage; + o.tags = tags; + o.targetArns = targetArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/IntegrationTlsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/IntegrationTlsConfig.java index 15b5152fe50..8dff7f3e952 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/IntegrationTlsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/IntegrationTlsConfig.java @@ -15,13 +15,9 @@ public final class IntegrationTlsConfig { * @return Specifies whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a [supported certificate authority](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-supported-certificate-authorities-for-http-endpoints.html). This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for `HTTP` and `HTTP_PROXY` integrations. * */ - private final @Nullable Boolean insecureSkipVerification; - - @CustomType.Constructor - private IntegrationTlsConfig(@CustomType.Parameter("insecureSkipVerification") @Nullable Boolean insecureSkipVerification) { - this.insecureSkipVerification = insecureSkipVerification; - } + private @Nullable Boolean insecureSkipVerification; + private IntegrationTlsConfig() {} /** * @return Specifies whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a [supported certificate authority](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-supported-certificate-authorities-for-http-endpoints.html). This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for `HTTP` and `HTTP_PROXY` integrations. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(IntegrationTlsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean insecureSkipVerification; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntegrationTlsConfig defaults) { Objects.requireNonNull(defaults); this.insecureSkipVerification = defaults.insecureSkipVerification; } + @CustomType.Setter public Builder insecureSkipVerification(@Nullable Boolean insecureSkipVerification) { this.insecureSkipVerification = insecureSkipVerification; return this; - } public IntegrationTlsConfig build() { - return new IntegrationTlsConfig(insecureSkipVerification); + } + public IntegrationTlsConfig build() { + final var o = new IntegrationTlsConfig(); + o.insecureSkipVerification = insecureSkipVerification; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/MethodSettingsSettings.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/MethodSettingsSettings.java index 77334962003..bdccc0d4237 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/MethodSettingsSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/MethodSettingsSettings.java @@ -18,77 +18,54 @@ public final class MethodSettingsSettings { * @return Specifies whether the cached responses are encrypted. * */ - private final @Nullable Boolean cacheDataEncrypted; + private @Nullable Boolean cacheDataEncrypted; /** * @return Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached. * */ - private final @Nullable Integer cacheTtlInSeconds; + private @Nullable Integer cacheTtlInSeconds; /** * @return Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached. * */ - private final @Nullable Boolean cachingEnabled; + private @Nullable Boolean cachingEnabled; /** * @return Specifies whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs. * */ - private final @Nullable Boolean dataTraceEnabled; + private @Nullable Boolean dataTraceEnabled; /** * @return Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The available levels are `OFF`, `ERROR`, and `INFO`. * */ - private final @Nullable String loggingLevel; + private @Nullable String loggingLevel; /** * @return Specifies whether Amazon CloudWatch metrics are enabled for this method. * */ - private final @Nullable Boolean metricsEnabled; + private @Nullable Boolean metricsEnabled; /** * @return Specifies whether authorization is required for a cache invalidation request. * */ - private final @Nullable Boolean requireAuthorizationForCacheControl; + private @Nullable Boolean requireAuthorizationForCacheControl; /** * @return Specifies the throttling burst limit. Default: `-1` (throttling disabled). * */ - private final @Nullable Integer throttlingBurstLimit; + private @Nullable Integer throttlingBurstLimit; /** * @return Specifies the throttling rate limit. Default: `-1` (throttling disabled). * */ - private final @Nullable Double throttlingRateLimit; + private @Nullable Double throttlingRateLimit; /** * @return Specifies how to handle unauthorized requests for cache invalidation. The available values are `FAIL_WITH_403`, `SUCCEED_WITH_RESPONSE_HEADER`, `SUCCEED_WITHOUT_RESPONSE_HEADER`. * */ - private final @Nullable String unauthorizedCacheControlHeaderStrategy; - - @CustomType.Constructor - private MethodSettingsSettings( - @CustomType.Parameter("cacheDataEncrypted") @Nullable Boolean cacheDataEncrypted, - @CustomType.Parameter("cacheTtlInSeconds") @Nullable Integer cacheTtlInSeconds, - @CustomType.Parameter("cachingEnabled") @Nullable Boolean cachingEnabled, - @CustomType.Parameter("dataTraceEnabled") @Nullable Boolean dataTraceEnabled, - @CustomType.Parameter("loggingLevel") @Nullable String loggingLevel, - @CustomType.Parameter("metricsEnabled") @Nullable Boolean metricsEnabled, - @CustomType.Parameter("requireAuthorizationForCacheControl") @Nullable Boolean requireAuthorizationForCacheControl, - @CustomType.Parameter("throttlingBurstLimit") @Nullable Integer throttlingBurstLimit, - @CustomType.Parameter("throttlingRateLimit") @Nullable Double throttlingRateLimit, - @CustomType.Parameter("unauthorizedCacheControlHeaderStrategy") @Nullable String unauthorizedCacheControlHeaderStrategy) { - this.cacheDataEncrypted = cacheDataEncrypted; - this.cacheTtlInSeconds = cacheTtlInSeconds; - this.cachingEnabled = cachingEnabled; - this.dataTraceEnabled = dataTraceEnabled; - this.loggingLevel = loggingLevel; - this.metricsEnabled = metricsEnabled; - this.requireAuthorizationForCacheControl = requireAuthorizationForCacheControl; - this.throttlingBurstLimit = throttlingBurstLimit; - this.throttlingRateLimit = throttlingRateLimit; - this.unauthorizedCacheControlHeaderStrategy = unauthorizedCacheControlHeaderStrategy; - } + private @Nullable String unauthorizedCacheControlHeaderStrategy; + private MethodSettingsSettings() {} /** * @return Specifies whether the cached responses are encrypted. * @@ -167,7 +144,7 @@ public static Builder builder() { public static Builder builder(MethodSettingsSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean cacheDataEncrypted; private @Nullable Integer cacheTtlInSeconds; @@ -179,11 +156,7 @@ public static final class Builder { private @Nullable Integer throttlingBurstLimit; private @Nullable Double throttlingRateLimit; private @Nullable String unauthorizedCacheControlHeaderStrategy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MethodSettingsSettings defaults) { Objects.requireNonNull(defaults); this.cacheDataEncrypted = defaults.cacheDataEncrypted; @@ -198,47 +171,69 @@ public Builder(MethodSettingsSettings defaults) { this.unauthorizedCacheControlHeaderStrategy = defaults.unauthorizedCacheControlHeaderStrategy; } + @CustomType.Setter public Builder cacheDataEncrypted(@Nullable Boolean cacheDataEncrypted) { this.cacheDataEncrypted = cacheDataEncrypted; return this; } + @CustomType.Setter public Builder cacheTtlInSeconds(@Nullable Integer cacheTtlInSeconds) { this.cacheTtlInSeconds = cacheTtlInSeconds; return this; } + @CustomType.Setter public Builder cachingEnabled(@Nullable Boolean cachingEnabled) { this.cachingEnabled = cachingEnabled; return this; } + @CustomType.Setter public Builder dataTraceEnabled(@Nullable Boolean dataTraceEnabled) { this.dataTraceEnabled = dataTraceEnabled; return this; } + @CustomType.Setter public Builder loggingLevel(@Nullable String loggingLevel) { this.loggingLevel = loggingLevel; return this; } + @CustomType.Setter public Builder metricsEnabled(@Nullable Boolean metricsEnabled) { this.metricsEnabled = metricsEnabled; return this; } + @CustomType.Setter public Builder requireAuthorizationForCacheControl(@Nullable Boolean requireAuthorizationForCacheControl) { this.requireAuthorizationForCacheControl = requireAuthorizationForCacheControl; return this; } + @CustomType.Setter public Builder throttlingBurstLimit(@Nullable Integer throttlingBurstLimit) { this.throttlingBurstLimit = throttlingBurstLimit; return this; } + @CustomType.Setter public Builder throttlingRateLimit(@Nullable Double throttlingRateLimit) { this.throttlingRateLimit = throttlingRateLimit; return this; } + @CustomType.Setter public Builder unauthorizedCacheControlHeaderStrategy(@Nullable String unauthorizedCacheControlHeaderStrategy) { this.unauthorizedCacheControlHeaderStrategy = unauthorizedCacheControlHeaderStrategy; return this; - } public MethodSettingsSettings build() { - return new MethodSettingsSettings(cacheDataEncrypted, cacheTtlInSeconds, cachingEnabled, dataTraceEnabled, loggingLevel, metricsEnabled, requireAuthorizationForCacheControl, throttlingBurstLimit, throttlingRateLimit, unauthorizedCacheControlHeaderStrategy); + } + public MethodSettingsSettings build() { + final var o = new MethodSettingsSettings(); + o.cacheDataEncrypted = cacheDataEncrypted; + o.cacheTtlInSeconds = cacheTtlInSeconds; + o.cachingEnabled = cachingEnabled; + o.dataTraceEnabled = dataTraceEnabled; + o.loggingLevel = loggingLevel; + o.metricsEnabled = metricsEnabled; + o.requireAuthorizationForCacheControl = requireAuthorizationForCacheControl; + o.throttlingBurstLimit = throttlingBurstLimit; + o.throttlingRateLimit = throttlingRateLimit; + o.unauthorizedCacheControlHeaderStrategy = unauthorizedCacheControlHeaderStrategy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/RestApiEndpointConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/RestApiEndpointConfiguration.java index 44b313e5392..1deeea9d76e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/RestApiEndpointConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/RestApiEndpointConfiguration.java @@ -15,21 +15,14 @@ public final class RestApiEndpointConfiguration { * @return A list of endpoint types. This resource currently only supports managing a single value. Valid values: `EDGE`, `REGIONAL` or `PRIVATE`. If unspecified, defaults to `EDGE`. Must be declared as `REGIONAL` in non-Commercial partitions. If set to `PRIVATE` recommend to set `put_rest_api_mode` = `merge` to not cause the endpoints and associated Route53 records to be deleted. Refer to the [documentation](https://docs.aws.amazon.com/apigateway/latest/developerguide/create-regional-api.html) for more information on the difference between edge-optimized and regional APIs. * */ - private final String types; + private String types; /** * @return Set of VPC Endpoint identifiers. It is only supported for `PRIVATE` endpoint type. If importing an OpenAPI specification via the `body` argument, this corresponds to the [`x-amazon-apigateway-endpoint-configuration` extension `vpcEndpointIds` property](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions-endpoint-configuration.html). If the argument value is provided and is different than the OpenAPI value, **the argument value will override the OpenAPI value**. * */ - private final @Nullable List vpcEndpointIds; - - @CustomType.Constructor - private RestApiEndpointConfiguration( - @CustomType.Parameter("types") String types, - @CustomType.Parameter("vpcEndpointIds") @Nullable List vpcEndpointIds) { - this.types = types; - this.vpcEndpointIds = vpcEndpointIds; - } + private @Nullable List vpcEndpointIds; + private RestApiEndpointConfiguration() {} /** * @return A list of endpoint types. This resource currently only supports managing a single value. Valid values: `EDGE`, `REGIONAL` or `PRIVATE`. If unspecified, defaults to `EDGE`. Must be declared as `REGIONAL` in non-Commercial partitions. If set to `PRIVATE` recommend to set `put_rest_api_mode` = `merge` to not cause the endpoints and associated Route53 records to be deleted. Refer to the [documentation](https://docs.aws.amazon.com/apigateway/latest/developerguide/create-regional-api.html) for more information on the difference between edge-optimized and regional APIs. * @@ -52,33 +45,35 @@ public static Builder builder() { public static Builder builder(RestApiEndpointConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String types; private @Nullable List vpcEndpointIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RestApiEndpointConfiguration defaults) { Objects.requireNonNull(defaults); this.types = defaults.types; this.vpcEndpointIds = defaults.vpcEndpointIds; } + @CustomType.Setter public Builder types(String types) { this.types = Objects.requireNonNull(types); return this; } + @CustomType.Setter public Builder vpcEndpointIds(@Nullable List vpcEndpointIds) { this.vpcEndpointIds = vpcEndpointIds; return this; } public Builder vpcEndpointIds(String... vpcEndpointIds) { return vpcEndpointIds(List.of(vpcEndpointIds)); - } public RestApiEndpointConfiguration build() { - return new RestApiEndpointConfiguration(types, vpcEndpointIds); + } + public RestApiEndpointConfiguration build() { + final var o = new RestApiEndpointConfiguration(); + o.types = types; + o.vpcEndpointIds = vpcEndpointIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/StageAccessLogSettings.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/StageAccessLogSettings.java index c6f5e251946..89f20a12c99 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/StageAccessLogSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/StageAccessLogSettings.java @@ -13,22 +13,15 @@ public final class StageAccessLogSettings { * @return The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with `amazon-apigateway-`. Automatically removes trailing `:*` if present. * */ - private final String destinationArn; + private String destinationArn; /** * @return The formatting and values recorded in the logs. * For more information on configuring the log format rules visit the AWS [documentation](https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html) * */ - private final String format; - - @CustomType.Constructor - private StageAccessLogSettings( - @CustomType.Parameter("destinationArn") String destinationArn, - @CustomType.Parameter("format") String format) { - this.destinationArn = destinationArn; - this.format = format; - } + private String format; + private StageAccessLogSettings() {} /** * @return The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with `amazon-apigateway-`. Automatically removes trailing `:*` if present. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(StageAccessLogSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destinationArn; private String format; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StageAccessLogSettings defaults) { Objects.requireNonNull(defaults); this.destinationArn = defaults.destinationArn; this.format = defaults.format; } + @CustomType.Setter public Builder destinationArn(String destinationArn) { this.destinationArn = Objects.requireNonNull(destinationArn); return this; } + @CustomType.Setter public Builder format(String format) { this.format = Objects.requireNonNull(format); return this; - } public StageAccessLogSettings build() { - return new StageAccessLogSettings(destinationArn, format); + } + public StageAccessLogSettings build() { + final var o = new StageAccessLogSettings(); + o.destinationArn = destinationArn; + o.format = format; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/StageCanarySettings.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/StageCanarySettings.java index 756c0efa4fc..7868cffff49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/StageCanarySettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/StageCanarySettings.java @@ -19,28 +19,19 @@ public final class StageCanarySettings { * @return The percent `0.0` - `100.0` of traffic to divert to the canary deployment. * */ - private final @Nullable Double percentTraffic; + private @Nullable Double percentTraffic; /** * @return A map of overridden stage `variables` (including new variables) for the canary deployment. * */ - private final @Nullable Map stageVariableOverrides; + private @Nullable Map stageVariableOverrides; /** * @return Whether the canary deployment uses the stage cache. Defaults to false. * */ - private final @Nullable Boolean useStageCache; - - @CustomType.Constructor - private StageCanarySettings( - @CustomType.Parameter("percentTraffic") @Nullable Double percentTraffic, - @CustomType.Parameter("stageVariableOverrides") @Nullable Map stageVariableOverrides, - @CustomType.Parameter("useStageCache") @Nullable Boolean useStageCache) { - this.percentTraffic = percentTraffic; - this.stageVariableOverrides = stageVariableOverrides; - this.useStageCache = useStageCache; - } + private @Nullable Boolean useStageCache; + private StageCanarySettings() {} /** * @return The percent `0.0` - `100.0` of traffic to divert to the canary deployment. * @@ -70,16 +61,12 @@ public static Builder builder() { public static Builder builder(StageCanarySettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Double percentTraffic; private @Nullable Map stageVariableOverrides; private @Nullable Boolean useStageCache; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StageCanarySettings defaults) { Objects.requireNonNull(defaults); this.percentTraffic = defaults.percentTraffic; @@ -87,19 +74,27 @@ public Builder(StageCanarySettings defaults) { this.useStageCache = defaults.useStageCache; } + @CustomType.Setter public Builder percentTraffic(@Nullable Double percentTraffic) { this.percentTraffic = percentTraffic; return this; } + @CustomType.Setter public Builder stageVariableOverrides(@Nullable Map stageVariableOverrides) { this.stageVariableOverrides = stageVariableOverrides; return this; } + @CustomType.Setter public Builder useStageCache(@Nullable Boolean useStageCache) { this.useStageCache = useStageCache; return this; - } public StageCanarySettings build() { - return new StageCanarySettings(percentTraffic, stageVariableOverrides, useStageCache); + } + public StageCanarySettings build() { + final var o = new StageCanarySettings(); + o.percentTraffic = percentTraffic; + o.stageVariableOverrides = stageVariableOverrides; + o.useStageCache = useStageCache; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanApiStage.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanApiStage.java index 93868a42666..18236911045 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanApiStage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanApiStage.java @@ -16,28 +16,19 @@ public final class UsagePlanApiStage { * @return API Id of the associated API stage in a usage plan. * */ - private final String apiId; + private String apiId; /** * @return API stage name of the associated API stage in a usage plan. * */ - private final String stage; + private String stage; /** * @return The throttling limits of the usage plan. * */ - private final @Nullable List throttles; - - @CustomType.Constructor - private UsagePlanApiStage( - @CustomType.Parameter("apiId") String apiId, - @CustomType.Parameter("stage") String stage, - @CustomType.Parameter("throttles") @Nullable List throttles) { - this.apiId = apiId; - this.stage = stage; - this.throttles = throttles; - } + private @Nullable List throttles; + private UsagePlanApiStage() {} /** * @return API Id of the associated API stage in a usage plan. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(UsagePlanApiStage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String apiId; private String stage; private @Nullable List throttles; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UsagePlanApiStage defaults) { Objects.requireNonNull(defaults); this.apiId = defaults.apiId; @@ -84,22 +71,30 @@ public Builder(UsagePlanApiStage defaults) { this.throttles = defaults.throttles; } + @CustomType.Setter public Builder apiId(String apiId) { this.apiId = Objects.requireNonNull(apiId); return this; } + @CustomType.Setter public Builder stage(String stage) { this.stage = Objects.requireNonNull(stage); return this; } + @CustomType.Setter public Builder throttles(@Nullable List throttles) { this.throttles = throttles; return this; } public Builder throttles(UsagePlanApiStageThrottle... throttles) { return throttles(List.of(throttles)); - } public UsagePlanApiStage build() { - return new UsagePlanApiStage(apiId, stage, throttles); + } + public UsagePlanApiStage build() { + final var o = new UsagePlanApiStage(); + o.apiId = apiId; + o.stage = stage; + o.throttles = throttles; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanApiStageThrottle.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanApiStageThrottle.java index e2d8ccc24b5..4dd20694bea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanApiStageThrottle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanApiStageThrottle.java @@ -17,28 +17,19 @@ public final class UsagePlanApiStageThrottle { * @return The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity. * */ - private final @Nullable Integer burstLimit; + private @Nullable Integer burstLimit; /** * @return The method to apply the throttle settings for. Specfiy the path and method, for example `/test/GET`. * */ - private final String path; + private String path; /** * @return The API request steady-state rate limit. * */ - private final @Nullable Double rateLimit; - - @CustomType.Constructor - private UsagePlanApiStageThrottle( - @CustomType.Parameter("burstLimit") @Nullable Integer burstLimit, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("rateLimit") @Nullable Double rateLimit) { - this.burstLimit = burstLimit; - this.path = path; - this.rateLimit = rateLimit; - } + private @Nullable Double rateLimit; + private UsagePlanApiStageThrottle() {} /** * @return The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(UsagePlanApiStageThrottle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer burstLimit; private String path; private @Nullable Double rateLimit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UsagePlanApiStageThrottle defaults) { Objects.requireNonNull(defaults); this.burstLimit = defaults.burstLimit; @@ -85,19 +72,27 @@ public Builder(UsagePlanApiStageThrottle defaults) { this.rateLimit = defaults.rateLimit; } + @CustomType.Setter public Builder burstLimit(@Nullable Integer burstLimit) { this.burstLimit = burstLimit; return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder rateLimit(@Nullable Double rateLimit) { this.rateLimit = rateLimit; return this; - } public UsagePlanApiStageThrottle build() { - return new UsagePlanApiStageThrottle(burstLimit, path, rateLimit); + } + public UsagePlanApiStageThrottle build() { + final var o = new UsagePlanApiStageThrottle(); + o.burstLimit = burstLimit; + o.path = path; + o.rateLimit = rateLimit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanQuotaSettings.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanQuotaSettings.java index 4c6094ee6da..529fbb80bef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanQuotaSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanQuotaSettings.java @@ -16,28 +16,19 @@ public final class UsagePlanQuotaSettings { * @return The maximum number of requests that can be made in a given time period. * */ - private final Integer limit; + private Integer limit; /** * @return The number of requests subtracted from the given limit in the initial time period. * */ - private final @Nullable Integer offset; + private @Nullable Integer offset; /** * @return The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH". * */ - private final String period; - - @CustomType.Constructor - private UsagePlanQuotaSettings( - @CustomType.Parameter("limit") Integer limit, - @CustomType.Parameter("offset") @Nullable Integer offset, - @CustomType.Parameter("period") String period) { - this.limit = limit; - this.offset = offset; - this.period = period; - } + private String period; + private UsagePlanQuotaSettings() {} /** * @return The maximum number of requests that can be made in a given time period. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(UsagePlanQuotaSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer limit; private @Nullable Integer offset; private String period; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UsagePlanQuotaSettings defaults) { Objects.requireNonNull(defaults); this.limit = defaults.limit; @@ -84,19 +71,27 @@ public Builder(UsagePlanQuotaSettings defaults) { this.period = defaults.period; } + @CustomType.Setter public Builder limit(Integer limit) { this.limit = Objects.requireNonNull(limit); return this; } + @CustomType.Setter public Builder offset(@Nullable Integer offset) { this.offset = offset; return this; } + @CustomType.Setter public Builder period(String period) { this.period = Objects.requireNonNull(period); return this; - } public UsagePlanQuotaSettings build() { - return new UsagePlanQuotaSettings(limit, offset, period); + } + public UsagePlanQuotaSettings build() { + final var o = new UsagePlanQuotaSettings(); + o.limit = limit; + o.offset = offset; + o.period = period; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanThrottleSettings.java b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanThrottleSettings.java index a8a2d4c6610..766462657ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanThrottleSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigateway/outputs/UsagePlanThrottleSettings.java @@ -16,21 +16,14 @@ public final class UsagePlanThrottleSettings { * @return The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity. * */ - private final @Nullable Integer burstLimit; + private @Nullable Integer burstLimit; /** * @return The API request steady-state rate limit. * */ - private final @Nullable Double rateLimit; - - @CustomType.Constructor - private UsagePlanThrottleSettings( - @CustomType.Parameter("burstLimit") @Nullable Integer burstLimit, - @CustomType.Parameter("rateLimit") @Nullable Double rateLimit) { - this.burstLimit = burstLimit; - this.rateLimit = rateLimit; - } + private @Nullable Double rateLimit; + private UsagePlanThrottleSettings() {} /** * @return The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(UsagePlanThrottleSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer burstLimit; private @Nullable Double rateLimit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UsagePlanThrottleSettings defaults) { Objects.requireNonNull(defaults); this.burstLimit = defaults.burstLimit; this.rateLimit = defaults.rateLimit; } + @CustomType.Setter public Builder burstLimit(@Nullable Integer burstLimit) { this.burstLimit = burstLimit; return this; } + @CustomType.Setter public Builder rateLimit(@Nullable Double rateLimit) { this.rateLimit = rateLimit; return this; - } public UsagePlanThrottleSettings build() { - return new UsagePlanThrottleSettings(burstLimit, rateLimit); + } + public UsagePlanThrottleSettings build() { + final var o = new UsagePlanThrottleSettings(); + o.burstLimit = burstLimit; + o.rateLimit = rateLimit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/ApiCorsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/ApiCorsConfiguration.java index 45c914ea04f..7c1abfa810f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/ApiCorsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/ApiCorsConfiguration.java @@ -18,49 +18,34 @@ public final class ApiCorsConfiguration { * @return Whether credentials are included in the CORS request. * */ - private final @Nullable Boolean allowCredentials; + private @Nullable Boolean allowCredentials; /** * @return The set of allowed HTTP headers. * */ - private final @Nullable List allowHeaders; + private @Nullable List allowHeaders; /** * @return The set of allowed HTTP methods. * */ - private final @Nullable List allowMethods; + private @Nullable List allowMethods; /** * @return The set of allowed origins. * */ - private final @Nullable List allowOrigins; + private @Nullable List allowOrigins; /** * @return The set of exposed HTTP headers. * */ - private final @Nullable List exposeHeaders; + private @Nullable List exposeHeaders; /** * @return The number of seconds that the browser should cache preflight request results. * */ - private final @Nullable Integer maxAge; - - @CustomType.Constructor - private ApiCorsConfiguration( - @CustomType.Parameter("allowCredentials") @Nullable Boolean allowCredentials, - @CustomType.Parameter("allowHeaders") @Nullable List allowHeaders, - @CustomType.Parameter("allowMethods") @Nullable List allowMethods, - @CustomType.Parameter("allowOrigins") @Nullable List allowOrigins, - @CustomType.Parameter("exposeHeaders") @Nullable List exposeHeaders, - @CustomType.Parameter("maxAge") @Nullable Integer maxAge) { - this.allowCredentials = allowCredentials; - this.allowHeaders = allowHeaders; - this.allowMethods = allowMethods; - this.allowOrigins = allowOrigins; - this.exposeHeaders = exposeHeaders; - this.maxAge = maxAge; - } + private @Nullable Integer maxAge; + private ApiCorsConfiguration() {} /** * @return Whether credentials are included in the CORS request. * @@ -111,7 +96,7 @@ public static Builder builder() { public static Builder builder(ApiCorsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allowCredentials; private @Nullable List allowHeaders; @@ -119,11 +104,7 @@ public static final class Builder { private @Nullable List allowOrigins; private @Nullable List exposeHeaders; private @Nullable Integer maxAge; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApiCorsConfiguration defaults) { Objects.requireNonNull(defaults); this.allowCredentials = defaults.allowCredentials; @@ -134,10 +115,12 @@ public Builder(ApiCorsConfiguration defaults) { this.maxAge = defaults.maxAge; } + @CustomType.Setter public Builder allowCredentials(@Nullable Boolean allowCredentials) { this.allowCredentials = allowCredentials; return this; } + @CustomType.Setter public Builder allowHeaders(@Nullable List allowHeaders) { this.allowHeaders = allowHeaders; return this; @@ -145,6 +128,7 @@ public Builder allowHeaders(@Nullable List allowHeaders) { public Builder allowHeaders(String... allowHeaders) { return allowHeaders(List.of(allowHeaders)); } + @CustomType.Setter public Builder allowMethods(@Nullable List allowMethods) { this.allowMethods = allowMethods; return this; @@ -152,6 +136,7 @@ public Builder allowMethods(@Nullable List allowMethods) { public Builder allowMethods(String... allowMethods) { return allowMethods(List.of(allowMethods)); } + @CustomType.Setter public Builder allowOrigins(@Nullable List allowOrigins) { this.allowOrigins = allowOrigins; return this; @@ -159,6 +144,7 @@ public Builder allowOrigins(@Nullable List allowOrigins) { public Builder allowOrigins(String... allowOrigins) { return allowOrigins(List.of(allowOrigins)); } + @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { this.exposeHeaders = exposeHeaders; return this; @@ -166,11 +152,20 @@ public Builder exposeHeaders(@Nullable List exposeHeaders) { public Builder exposeHeaders(String... exposeHeaders) { return exposeHeaders(List.of(exposeHeaders)); } + @CustomType.Setter public Builder maxAge(@Nullable Integer maxAge) { this.maxAge = maxAge; return this; - } public ApiCorsConfiguration build() { - return new ApiCorsConfiguration(allowCredentials, allowHeaders, allowMethods, allowOrigins, exposeHeaders, maxAge); + } + public ApiCorsConfiguration build() { + final var o = new ApiCorsConfiguration(); + o.allowCredentials = allowCredentials; + o.allowHeaders = allowHeaders; + o.allowMethods = allowMethods; + o.allowOrigins = allowOrigins; + o.exposeHeaders = exposeHeaders; + o.maxAge = maxAge; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/AuthorizerJwtConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/AuthorizerJwtConfiguration.java index 58d4206cbb8..a6786ab324b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/AuthorizerJwtConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/AuthorizerJwtConfiguration.java @@ -16,21 +16,14 @@ public final class AuthorizerJwtConfiguration { * @return A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. * */ - private final @Nullable List audiences; + private @Nullable List audiences; /** * @return The base domain of the identity provider that issues JSON Web Tokens, such as the `endpoint` attribute of the `aws.cognito.UserPool` resource. * */ - private final @Nullable String issuer; - - @CustomType.Constructor - private AuthorizerJwtConfiguration( - @CustomType.Parameter("audiences") @Nullable List audiences, - @CustomType.Parameter("issuer") @Nullable String issuer) { - this.audiences = audiences; - this.issuer = issuer; - } + private @Nullable String issuer; + private AuthorizerJwtConfiguration() {} /** * @return A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(AuthorizerJwtConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List audiences; private @Nullable String issuer; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AuthorizerJwtConfiguration defaults) { Objects.requireNonNull(defaults); this.audiences = defaults.audiences; this.issuer = defaults.issuer; } + @CustomType.Setter public Builder audiences(@Nullable List audiences) { this.audiences = audiences; return this; @@ -75,11 +65,16 @@ public Builder audiences(@Nullable List audiences) { public Builder audiences(String... audiences) { return audiences(List.of(audiences)); } + @CustomType.Setter public Builder issuer(@Nullable String issuer) { this.issuer = issuer; return this; - } public AuthorizerJwtConfiguration build() { - return new AuthorizerJwtConfiguration(audiences, issuer); + } + public AuthorizerJwtConfiguration build() { + final var o = new AuthorizerJwtConfiguration(); + o.audiences = audiences; + o.issuer = issuer; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/DomainNameDomainNameConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/DomainNameDomainNameConfiguration.java index cae12105970..da09682c3fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/DomainNameDomainNameConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/DomainNameDomainNameConfiguration.java @@ -15,49 +15,34 @@ public final class DomainNameDomainNameConfiguration { * @return ARN of an AWS-managed certificate that will be used by the endpoint for the domain name. AWS Certificate Manager is the only supported source. Use the [`aws.acm.Certificate`](https://www.terraform.io/docs/providers/aws/r/acm_certificate.html) resource to configure an ACM certificate. * */ - private final String certificateArn; + private String certificateArn; /** * @return Endpoint type. Valid values: `REGIONAL`. * */ - private final String endpointType; + private String endpointType; /** * @return Amazon Route 53 Hosted Zone ID of the endpoint. * */ - private final @Nullable String hostedZoneId; + private @Nullable String hostedZoneId; /** * @return ARN of the AWS-issued certificate used to validate custom domain ownership (when `certificate_arn` is issued via an ACM Private CA or `mutual_tls_authentication` is configured with an ACM-imported certificate.) * */ - private final @Nullable String ownershipVerificationCertificateArn; + private @Nullable String ownershipVerificationCertificateArn; /** * @return Transport Layer Security (TLS) version of the [security policy](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-custom-domain-tls-version.html) for the domain name. Valid values: `TLS_1_2`. * */ - private final String securityPolicy; + private String securityPolicy; /** * @return Target domain name. * */ - private final @Nullable String targetDomainName; - - @CustomType.Constructor - private DomainNameDomainNameConfiguration( - @CustomType.Parameter("certificateArn") String certificateArn, - @CustomType.Parameter("endpointType") String endpointType, - @CustomType.Parameter("hostedZoneId") @Nullable String hostedZoneId, - @CustomType.Parameter("ownershipVerificationCertificateArn") @Nullable String ownershipVerificationCertificateArn, - @CustomType.Parameter("securityPolicy") String securityPolicy, - @CustomType.Parameter("targetDomainName") @Nullable String targetDomainName) { - this.certificateArn = certificateArn; - this.endpointType = endpointType; - this.hostedZoneId = hostedZoneId; - this.ownershipVerificationCertificateArn = ownershipVerificationCertificateArn; - this.securityPolicy = securityPolicy; - this.targetDomainName = targetDomainName; - } + private @Nullable String targetDomainName; + private DomainNameDomainNameConfiguration() {} /** * @return ARN of an AWS-managed certificate that will be used by the endpoint for the domain name. AWS Certificate Manager is the only supported source. Use the [`aws.acm.Certificate`](https://www.terraform.io/docs/providers/aws/r/acm_certificate.html) resource to configure an ACM certificate. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(DomainNameDomainNameConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateArn; private String endpointType; @@ -116,11 +101,7 @@ public static final class Builder { private @Nullable String ownershipVerificationCertificateArn; private String securityPolicy; private @Nullable String targetDomainName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainNameDomainNameConfiguration defaults) { Objects.requireNonNull(defaults); this.certificateArn = defaults.certificateArn; @@ -131,31 +112,45 @@ public Builder(DomainNameDomainNameConfiguration defaults) { this.targetDomainName = defaults.targetDomainName; } + @CustomType.Setter public Builder certificateArn(String certificateArn) { this.certificateArn = Objects.requireNonNull(certificateArn); return this; } + @CustomType.Setter public Builder endpointType(String endpointType) { this.endpointType = Objects.requireNonNull(endpointType); return this; } + @CustomType.Setter public Builder hostedZoneId(@Nullable String hostedZoneId) { this.hostedZoneId = hostedZoneId; return this; } + @CustomType.Setter public Builder ownershipVerificationCertificateArn(@Nullable String ownershipVerificationCertificateArn) { this.ownershipVerificationCertificateArn = ownershipVerificationCertificateArn; return this; } + @CustomType.Setter public Builder securityPolicy(String securityPolicy) { this.securityPolicy = Objects.requireNonNull(securityPolicy); return this; } + @CustomType.Setter public Builder targetDomainName(@Nullable String targetDomainName) { this.targetDomainName = targetDomainName; return this; - } public DomainNameDomainNameConfiguration build() { - return new DomainNameDomainNameConfiguration(certificateArn, endpointType, hostedZoneId, ownershipVerificationCertificateArn, securityPolicy, targetDomainName); + } + public DomainNameDomainNameConfiguration build() { + final var o = new DomainNameDomainNameConfiguration(); + o.certificateArn = certificateArn; + o.endpointType = endpointType; + o.hostedZoneId = hostedZoneId; + o.ownershipVerificationCertificateArn = ownershipVerificationCertificateArn; + o.securityPolicy = securityPolicy; + o.targetDomainName = targetDomainName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/DomainNameMutualTlsAuthentication.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/DomainNameMutualTlsAuthentication.java index a5c4d26920a..509eac2e1e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/DomainNameMutualTlsAuthentication.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/DomainNameMutualTlsAuthentication.java @@ -15,21 +15,14 @@ public final class DomainNameMutualTlsAuthentication { * @return Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, `s3://bucket-name/key-name`. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. * */ - private final String truststoreUri; + private String truststoreUri; /** * @return Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket. * */ - private final @Nullable String truststoreVersion; - - @CustomType.Constructor - private DomainNameMutualTlsAuthentication( - @CustomType.Parameter("truststoreUri") String truststoreUri, - @CustomType.Parameter("truststoreVersion") @Nullable String truststoreVersion) { - this.truststoreUri = truststoreUri; - this.truststoreVersion = truststoreVersion; - } + private @Nullable String truststoreVersion; + private DomainNameMutualTlsAuthentication() {} /** * @return Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, `s3://bucket-name/key-name`. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DomainNameMutualTlsAuthentication defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String truststoreUri; private @Nullable String truststoreVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainNameMutualTlsAuthentication defaults) { Objects.requireNonNull(defaults); this.truststoreUri = defaults.truststoreUri; this.truststoreVersion = defaults.truststoreVersion; } + @CustomType.Setter public Builder truststoreUri(String truststoreUri) { this.truststoreUri = Objects.requireNonNull(truststoreUri); return this; } + @CustomType.Setter public Builder truststoreVersion(@Nullable String truststoreVersion) { this.truststoreVersion = truststoreVersion; return this; - } public DomainNameMutualTlsAuthentication build() { - return new DomainNameMutualTlsAuthentication(truststoreUri, truststoreVersion); + } + public DomainNameMutualTlsAuthentication build() { + final var o = new DomainNameMutualTlsAuthentication(); + o.truststoreUri = truststoreUri; + o.truststoreVersion = truststoreVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetApiCorsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetApiCorsConfiguration.java index bc8e138c541..1d103bc5607 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetApiCorsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetApiCorsConfiguration.java @@ -16,49 +16,34 @@ public final class GetApiCorsConfiguration { * @return Whether credentials are included in the CORS request. * */ - private final Boolean allowCredentials; + private Boolean allowCredentials; /** * @return The set of allowed HTTP headers. * */ - private final List allowHeaders; + private List allowHeaders; /** * @return The set of allowed HTTP methods. * */ - private final List allowMethods; + private List allowMethods; /** * @return The set of allowed origins. * */ - private final List allowOrigins; + private List allowOrigins; /** * @return The set of exposed HTTP headers. * */ - private final List exposeHeaders; + private List exposeHeaders; /** * @return The number of seconds that the browser should cache preflight request results. * */ - private final Integer maxAge; - - @CustomType.Constructor - private GetApiCorsConfiguration( - @CustomType.Parameter("allowCredentials") Boolean allowCredentials, - @CustomType.Parameter("allowHeaders") List allowHeaders, - @CustomType.Parameter("allowMethods") List allowMethods, - @CustomType.Parameter("allowOrigins") List allowOrigins, - @CustomType.Parameter("exposeHeaders") List exposeHeaders, - @CustomType.Parameter("maxAge") Integer maxAge) { - this.allowCredentials = allowCredentials; - this.allowHeaders = allowHeaders; - this.allowMethods = allowMethods; - this.allowOrigins = allowOrigins; - this.exposeHeaders = exposeHeaders; - this.maxAge = maxAge; - } + private Integer maxAge; + private GetApiCorsConfiguration() {} /** * @return Whether credentials are included in the CORS request. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(GetApiCorsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean allowCredentials; private List allowHeaders; @@ -117,11 +102,7 @@ public static final class Builder { private List allowOrigins; private List exposeHeaders; private Integer maxAge; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetApiCorsConfiguration defaults) { Objects.requireNonNull(defaults); this.allowCredentials = defaults.allowCredentials; @@ -132,10 +113,12 @@ public Builder(GetApiCorsConfiguration defaults) { this.maxAge = defaults.maxAge; } + @CustomType.Setter public Builder allowCredentials(Boolean allowCredentials) { this.allowCredentials = Objects.requireNonNull(allowCredentials); return this; } + @CustomType.Setter public Builder allowHeaders(List allowHeaders) { this.allowHeaders = Objects.requireNonNull(allowHeaders); return this; @@ -143,6 +126,7 @@ public Builder allowHeaders(List allowHeaders) { public Builder allowHeaders(String... allowHeaders) { return allowHeaders(List.of(allowHeaders)); } + @CustomType.Setter public Builder allowMethods(List allowMethods) { this.allowMethods = Objects.requireNonNull(allowMethods); return this; @@ -150,6 +134,7 @@ public Builder allowMethods(List allowMethods) { public Builder allowMethods(String... allowMethods) { return allowMethods(List.of(allowMethods)); } + @CustomType.Setter public Builder allowOrigins(List allowOrigins) { this.allowOrigins = Objects.requireNonNull(allowOrigins); return this; @@ -157,6 +142,7 @@ public Builder allowOrigins(List allowOrigins) { public Builder allowOrigins(String... allowOrigins) { return allowOrigins(List.of(allowOrigins)); } + @CustomType.Setter public Builder exposeHeaders(List exposeHeaders) { this.exposeHeaders = Objects.requireNonNull(exposeHeaders); return this; @@ -164,11 +150,20 @@ public Builder exposeHeaders(List exposeHeaders) { public Builder exposeHeaders(String... exposeHeaders) { return exposeHeaders(List.of(exposeHeaders)); } + @CustomType.Setter public Builder maxAge(Integer maxAge) { this.maxAge = Objects.requireNonNull(maxAge); return this; - } public GetApiCorsConfiguration build() { - return new GetApiCorsConfiguration(allowCredentials, allowHeaders, allowMethods, allowOrigins, exposeHeaders, maxAge); + } + public GetApiCorsConfiguration build() { + final var o = new GetApiCorsConfiguration(); + o.allowCredentials = allowCredentials; + o.allowHeaders = allowHeaders; + o.allowMethods = allowMethods; + o.allowOrigins = allowOrigins; + o.exposeHeaders = exposeHeaders; + o.maxAge = maxAge; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetApiResult.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetApiResult.java index 5b6d775799a..47d8513bd5f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetApiResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetApiResult.java @@ -17,105 +17,74 @@ public final class GetApiResult { * @return The URI of the API, of the form `https://{api-id}.execute-api.{region}.amazonaws.com` for HTTP APIs and `wss://{api-id}.execute-api.{region}.amazonaws.com` for WebSocket APIs. * */ - private final String apiEndpoint; - private final String apiId; + private String apiEndpoint; + private String apiId; /** * @return An [API key selection expression](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-apikey-selection-expressions). * Applicable for WebSocket APIs. * */ - private final String apiKeySelectionExpression; + private String apiKeySelectionExpression; /** * @return The ARN of the API. * */ - private final String arn; + private String arn; /** * @return The cross-origin resource sharing (CORS) [configuration](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-cors.html). * Applicable for HTTP APIs. * */ - private final List corsConfigurations; + private List corsConfigurations; /** * @return The description of the API. * */ - private final String description; + private String description; /** * @return Whether clients can invoke the API by using the default `execute-api` endpoint. * */ - private final Boolean disableExecuteApiEndpoint; + private Boolean disableExecuteApiEndpoint; /** * @return The ARN prefix to be used in an `aws.lambda.Permission`'s `source_arn` attribute * or in an `aws.iam.Policy` to authorize access to the [`@connections` API](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-how-to-call-websocket-api-connections.html). * See the [Amazon API Gateway Developer Guide](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-control-access-iam.html) for details. * */ - private final String executionArn; + private String executionArn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the API. * */ - private final String name; + private String name; /** * @return The API protocol. * */ - private final String protocolType; + private String protocolType; /** * @return The [route selection expression](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-route-selection-expressions) for the API. * */ - private final String routeSelectionExpression; + private String routeSelectionExpression; /** * @return A map of resource tags. * */ - private final Map tags; + private Map tags; /** * @return A version identifier for the API. * */ - private final String version; - - @CustomType.Constructor - private GetApiResult( - @CustomType.Parameter("apiEndpoint") String apiEndpoint, - @CustomType.Parameter("apiId") String apiId, - @CustomType.Parameter("apiKeySelectionExpression") String apiKeySelectionExpression, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("corsConfigurations") List corsConfigurations, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("disableExecuteApiEndpoint") Boolean disableExecuteApiEndpoint, - @CustomType.Parameter("executionArn") String executionArn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("protocolType") String protocolType, - @CustomType.Parameter("routeSelectionExpression") String routeSelectionExpression, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("version") String version) { - this.apiEndpoint = apiEndpoint; - this.apiId = apiId; - this.apiKeySelectionExpression = apiKeySelectionExpression; - this.arn = arn; - this.corsConfigurations = corsConfigurations; - this.description = description; - this.disableExecuteApiEndpoint = disableExecuteApiEndpoint; - this.executionArn = executionArn; - this.id = id; - this.name = name; - this.protocolType = protocolType; - this.routeSelectionExpression = routeSelectionExpression; - this.tags = tags; - this.version = version; - } + private String version; + private GetApiResult() {} /** * @return The URI of the API, of the form `https://{api-id}.execute-api.{region}.amazonaws.com` for HTTP APIs and `wss://{api-id}.execute-api.{region}.amazonaws.com` for WebSocket APIs. * @@ -222,7 +191,7 @@ public static Builder builder() { public static Builder builder(GetApiResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String apiEndpoint; private String apiId; @@ -238,11 +207,7 @@ public static final class Builder { private String routeSelectionExpression; private Map tags; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetApiResult defaults) { Objects.requireNonNull(defaults); this.apiEndpoint = defaults.apiEndpoint; @@ -261,22 +226,27 @@ public Builder(GetApiResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder apiEndpoint(String apiEndpoint) { this.apiEndpoint = Objects.requireNonNull(apiEndpoint); return this; } + @CustomType.Setter public Builder apiId(String apiId) { this.apiId = Objects.requireNonNull(apiId); return this; } + @CustomType.Setter public Builder apiKeySelectionExpression(String apiKeySelectionExpression) { this.apiKeySelectionExpression = Objects.requireNonNull(apiKeySelectionExpression); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder corsConfigurations(List corsConfigurations) { this.corsConfigurations = Objects.requireNonNull(corsConfigurations); return this; @@ -284,43 +254,68 @@ public Builder corsConfigurations(List corsConfiguratio public Builder corsConfigurations(GetApiCorsConfiguration... corsConfigurations) { return corsConfigurations(List.of(corsConfigurations)); } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder disableExecuteApiEndpoint(Boolean disableExecuteApiEndpoint) { this.disableExecuteApiEndpoint = Objects.requireNonNull(disableExecuteApiEndpoint); return this; } + @CustomType.Setter public Builder executionArn(String executionArn) { this.executionArn = Objects.requireNonNull(executionArn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder protocolType(String protocolType) { this.protocolType = Objects.requireNonNull(protocolType); return this; } + @CustomType.Setter public Builder routeSelectionExpression(String routeSelectionExpression) { this.routeSelectionExpression = Objects.requireNonNull(routeSelectionExpression); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public GetApiResult build() { - return new GetApiResult(apiEndpoint, apiId, apiKeySelectionExpression, arn, corsConfigurations, description, disableExecuteApiEndpoint, executionArn, id, name, protocolType, routeSelectionExpression, tags, version); + } + public GetApiResult build() { + final var o = new GetApiResult(); + o.apiEndpoint = apiEndpoint; + o.apiId = apiId; + o.apiKeySelectionExpression = apiKeySelectionExpression; + o.arn = arn; + o.corsConfigurations = corsConfigurations; + o.description = description; + o.disableExecuteApiEndpoint = disableExecuteApiEndpoint; + o.executionArn = executionArn; + o.id = id; + o.name = name; + o.protocolType = protocolType; + o.routeSelectionExpression = routeSelectionExpression; + o.tags = tags; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetApisResult.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetApisResult.java index 21ccc0ed4a8..2f87d9356e5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetApisResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetApisResult.java @@ -17,30 +17,17 @@ public final class GetApisResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of API identifiers. * */ - private final List ids; - private final @Nullable String name; - private final @Nullable String protocolType; - private final @Nullable Map tags; - - @CustomType.Constructor - private GetApisResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("protocolType") @Nullable String protocolType, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.id = id; - this.ids = ids; - this.name = name; - this.protocolType = protocolType; - this.tags = tags; - } + private List ids; + private @Nullable String name; + private @Nullable String protocolType; + private @Nullable Map tags; + private GetApisResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -72,18 +59,14 @@ public static Builder builder() { public static Builder builder(GetApisResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private List ids; private @Nullable String name; private @Nullable String protocolType; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetApisResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -93,10 +76,12 @@ public Builder(GetApisResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -104,19 +89,29 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder protocolType(@Nullable String protocolType) { this.protocolType = protocolType; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public GetApisResult build() { - return new GetApisResult(id, ids, name, protocolType, tags); + } + public GetApisResult build() { + final var o = new GetApisResult(); + o.id = id; + o.ids = ids; + o.name = name; + o.protocolType = protocolType; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetExportResult.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetExportResult.java index ba362a8bb2f..17fefeb19e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetExportResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/GetExportResult.java @@ -12,43 +12,24 @@ @CustomType public final class GetExportResult { - private final String apiId; + private String apiId; /** * @return The id of the API. * */ - private final String body; - private final @Nullable String exportVersion; + private String body; + private @Nullable String exportVersion; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable Boolean includeExtensions; - private final String outputType; - private final String specification; - private final @Nullable String stageName; - - @CustomType.Constructor - private GetExportResult( - @CustomType.Parameter("apiId") String apiId, - @CustomType.Parameter("body") String body, - @CustomType.Parameter("exportVersion") @Nullable String exportVersion, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("includeExtensions") @Nullable Boolean includeExtensions, - @CustomType.Parameter("outputType") String outputType, - @CustomType.Parameter("specification") String specification, - @CustomType.Parameter("stageName") @Nullable String stageName) { - this.apiId = apiId; - this.body = body; - this.exportVersion = exportVersion; - this.id = id; - this.includeExtensions = includeExtensions; - this.outputType = outputType; - this.specification = specification; - this.stageName = stageName; - } + private String id; + private @Nullable Boolean includeExtensions; + private String outputType; + private String specification; + private @Nullable String stageName; + private GetExportResult() {} public String apiId() { return this.apiId; } @@ -89,7 +70,7 @@ public static Builder builder() { public static Builder builder(GetExportResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String apiId; private String body; @@ -99,11 +80,7 @@ public static final class Builder { private String outputType; private String specification; private @Nullable String stageName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetExportResult defaults) { Objects.requireNonNull(defaults); this.apiId = defaults.apiId; @@ -116,39 +93,57 @@ public Builder(GetExportResult defaults) { this.stageName = defaults.stageName; } + @CustomType.Setter public Builder apiId(String apiId) { this.apiId = Objects.requireNonNull(apiId); return this; } + @CustomType.Setter public Builder body(String body) { this.body = Objects.requireNonNull(body); return this; } + @CustomType.Setter public Builder exportVersion(@Nullable String exportVersion) { this.exportVersion = exportVersion; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder includeExtensions(@Nullable Boolean includeExtensions) { this.includeExtensions = includeExtensions; return this; } + @CustomType.Setter public Builder outputType(String outputType) { this.outputType = Objects.requireNonNull(outputType); return this; } + @CustomType.Setter public Builder specification(String specification) { this.specification = Objects.requireNonNull(specification); return this; } + @CustomType.Setter public Builder stageName(@Nullable String stageName) { this.stageName = stageName; return this; - } public GetExportResult build() { - return new GetExportResult(apiId, body, exportVersion, id, includeExtensions, outputType, specification, stageName); + } + public GetExportResult build() { + final var o = new GetExportResult(); + o.apiId = apiId; + o.body = body; + o.exportVersion = exportVersion; + o.id = id; + o.includeExtensions = includeExtensions; + o.outputType = outputType; + o.specification = specification; + o.stageName = stageName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/IntegrationResponseParameter.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/IntegrationResponseParameter.java index f8293f03daa..6d0c7c62ec6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/IntegrationResponseParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/IntegrationResponseParameter.java @@ -15,21 +15,14 @@ public final class IntegrationResponseParameter { * See the [Amazon API Gateway Developer Guide](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html) for details. * */ - private final Map mappings; + private Map mappings; /** * @return The HTTP status code in the range 200-599. * */ - private final String statusCode; - - @CustomType.Constructor - private IntegrationResponseParameter( - @CustomType.Parameter("mappings") Map mappings, - @CustomType.Parameter("statusCode") String statusCode) { - this.mappings = mappings; - this.statusCode = statusCode; - } + private String statusCode; + private IntegrationResponseParameter() {} /** * @return A key-value map. The key of ths map identifies the location of the request parameter to change, and how to change it. The corresponding value specifies the new data for the parameter. * See the [Amazon API Gateway Developer Guide](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html) for details. @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(IntegrationResponseParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map mappings; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntegrationResponseParameter defaults) { Objects.requireNonNull(defaults); this.mappings = defaults.mappings; this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder mappings(Map mappings) { this.mappings = Objects.requireNonNull(mappings); return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public IntegrationResponseParameter build() { - return new IntegrationResponseParameter(mappings, statusCode); + } + public IntegrationResponseParameter build() { + final var o = new IntegrationResponseParameter(); + o.mappings = mappings; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/IntegrationTlsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/IntegrationTlsConfig.java index 1372370e76b..355c29dc4a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/IntegrationTlsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/IntegrationTlsConfig.java @@ -15,13 +15,9 @@ public final class IntegrationTlsConfig { * @return If you specify a server name, API Gateway uses it to verify the hostname on the integration's certificate. The server name is also included in the TLS handshake to support Server Name Indication (SNI) or virtual hosting. * */ - private final @Nullable String serverNameToVerify; - - @CustomType.Constructor - private IntegrationTlsConfig(@CustomType.Parameter("serverNameToVerify") @Nullable String serverNameToVerify) { - this.serverNameToVerify = serverNameToVerify; - } + private @Nullable String serverNameToVerify; + private IntegrationTlsConfig() {} /** * @return If you specify a server name, API Gateway uses it to verify the hostname on the integration's certificate. The server name is also included in the TLS handshake to support Server Name Indication (SNI) or virtual hosting. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(IntegrationTlsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String serverNameToVerify; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntegrationTlsConfig defaults) { Objects.requireNonNull(defaults); this.serverNameToVerify = defaults.serverNameToVerify; } + @CustomType.Setter public Builder serverNameToVerify(@Nullable String serverNameToVerify) { this.serverNameToVerify = serverNameToVerify; return this; - } public IntegrationTlsConfig build() { - return new IntegrationTlsConfig(serverNameToVerify); + } + public IntegrationTlsConfig build() { + final var o = new IntegrationTlsConfig(); + o.serverNameToVerify = serverNameToVerify; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/RouteRequestParameter.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/RouteRequestParameter.java index 37082bdadca..5d6033d3815 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/RouteRequestParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/RouteRequestParameter.java @@ -14,21 +14,14 @@ public final class RouteRequestParameter { * @return Request parameter key. This is a [request data mapping parameter](https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-data-mapping.html#websocket-mapping-request-parameters). * */ - private final String requestParameterKey; + private String requestParameterKey; /** * @return Boolean whether or not the parameter is required. * */ - private final Boolean required; - - @CustomType.Constructor - private RouteRequestParameter( - @CustomType.Parameter("requestParameterKey") String requestParameterKey, - @CustomType.Parameter("required") Boolean required) { - this.requestParameterKey = requestParameterKey; - this.required = required; - } + private Boolean required; + private RouteRequestParameter() {} /** * @return Request parameter key. This is a [request data mapping parameter](https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-data-mapping.html#websocket-mapping-request-parameters). * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteRequestParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String requestParameterKey; private Boolean required; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteRequestParameter defaults) { Objects.requireNonNull(defaults); this.requestParameterKey = defaults.requestParameterKey; this.required = defaults.required; } + @CustomType.Setter public Builder requestParameterKey(String requestParameterKey) { this.requestParameterKey = Objects.requireNonNull(requestParameterKey); return this; } + @CustomType.Setter public Builder required(Boolean required) { this.required = Objects.requireNonNull(required); return this; - } public RouteRequestParameter build() { - return new RouteRequestParameter(requestParameterKey, required); + } + public RouteRequestParameter build() { + final var o = new RouteRequestParameter(); + o.requestParameterKey = requestParameterKey; + o.required = required; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/StageAccessLogSettings.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/StageAccessLogSettings.java index c7b2b136b7a..71f54ddd94d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/StageAccessLogSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/StageAccessLogSettings.java @@ -13,21 +13,14 @@ public final class StageAccessLogSettings { * @return The ARN of the CloudWatch Logs log group to receive access logs. Any trailing `:*` is trimmed from the ARN. * */ - private final String destinationArn; + private String destinationArn; /** * @return A single line [format](https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html#apigateway-cloudwatch-log-formats) of the access logs of data, as specified by [selected $context variables](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-logging.html). * */ - private final String format; - - @CustomType.Constructor - private StageAccessLogSettings( - @CustomType.Parameter("destinationArn") String destinationArn, - @CustomType.Parameter("format") String format) { - this.destinationArn = destinationArn; - this.format = format; - } + private String format; + private StageAccessLogSettings() {} /** * @return The ARN of the CloudWatch Logs log group to receive access logs. Any trailing `:*` is trimmed from the ARN. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(StageAccessLogSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destinationArn; private String format; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StageAccessLogSettings defaults) { Objects.requireNonNull(defaults); this.destinationArn = defaults.destinationArn; this.format = defaults.format; } + @CustomType.Setter public Builder destinationArn(String destinationArn) { this.destinationArn = Objects.requireNonNull(destinationArn); return this; } + @CustomType.Setter public Builder format(String format) { this.format = Objects.requireNonNull(format); return this; - } public StageAccessLogSettings build() { - return new StageAccessLogSettings(destinationArn, format); + } + public StageAccessLogSettings build() { + final var o = new StageAccessLogSettings(); + o.destinationArn = destinationArn; + o.format = format; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/StageDefaultRouteSettings.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/StageDefaultRouteSettings.java index df38cb0a846..f6db3476b8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/StageDefaultRouteSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/StageDefaultRouteSettings.java @@ -19,43 +19,30 @@ public final class StageDefaultRouteSettings { * Defaults to `false`. Supported only for WebSocket APIs. * */ - private final @Nullable Boolean dataTraceEnabled; + private @Nullable Boolean dataTraceEnabled; /** * @return Whether detailed metrics are enabled for the default route. Defaults to `false`. * */ - private final @Nullable Boolean detailedMetricsEnabled; + private @Nullable Boolean detailedMetricsEnabled; /** * @return The logging level for the default route. Affects the log entries pushed to Amazon CloudWatch Logs. * Valid values: `ERROR`, `INFO`, `OFF`. Defaults to `OFF`. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration. * */ - private final @Nullable String loggingLevel; + private @Nullable String loggingLevel; /** * @return The throttling burst limit for the default route. * */ - private final @Nullable Integer throttlingBurstLimit; + private @Nullable Integer throttlingBurstLimit; /** * @return The throttling rate limit for the default route. * */ - private final @Nullable Double throttlingRateLimit; - - @CustomType.Constructor - private StageDefaultRouteSettings( - @CustomType.Parameter("dataTraceEnabled") @Nullable Boolean dataTraceEnabled, - @CustomType.Parameter("detailedMetricsEnabled") @Nullable Boolean detailedMetricsEnabled, - @CustomType.Parameter("loggingLevel") @Nullable String loggingLevel, - @CustomType.Parameter("throttlingBurstLimit") @Nullable Integer throttlingBurstLimit, - @CustomType.Parameter("throttlingRateLimit") @Nullable Double throttlingRateLimit) { - this.dataTraceEnabled = dataTraceEnabled; - this.detailedMetricsEnabled = detailedMetricsEnabled; - this.loggingLevel = loggingLevel; - this.throttlingBurstLimit = throttlingBurstLimit; - this.throttlingRateLimit = throttlingRateLimit; - } + private @Nullable Double throttlingRateLimit; + private StageDefaultRouteSettings() {} /** * @return Whether data trace logging is enabled for the default route. Affects the log entries pushed to Amazon CloudWatch Logs. * Defaults to `false`. Supported only for WebSocket APIs. @@ -101,18 +88,14 @@ public static Builder builder() { public static Builder builder(StageDefaultRouteSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean dataTraceEnabled; private @Nullable Boolean detailedMetricsEnabled; private @Nullable String loggingLevel; private @Nullable Integer throttlingBurstLimit; private @Nullable Double throttlingRateLimit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StageDefaultRouteSettings defaults) { Objects.requireNonNull(defaults); this.dataTraceEnabled = defaults.dataTraceEnabled; @@ -122,27 +105,39 @@ public Builder(StageDefaultRouteSettings defaults) { this.throttlingRateLimit = defaults.throttlingRateLimit; } + @CustomType.Setter public Builder dataTraceEnabled(@Nullable Boolean dataTraceEnabled) { this.dataTraceEnabled = dataTraceEnabled; return this; } + @CustomType.Setter public Builder detailedMetricsEnabled(@Nullable Boolean detailedMetricsEnabled) { this.detailedMetricsEnabled = detailedMetricsEnabled; return this; } + @CustomType.Setter public Builder loggingLevel(@Nullable String loggingLevel) { this.loggingLevel = loggingLevel; return this; } + @CustomType.Setter public Builder throttlingBurstLimit(@Nullable Integer throttlingBurstLimit) { this.throttlingBurstLimit = throttlingBurstLimit; return this; } + @CustomType.Setter public Builder throttlingRateLimit(@Nullable Double throttlingRateLimit) { this.throttlingRateLimit = throttlingRateLimit; return this; - } public StageDefaultRouteSettings build() { - return new StageDefaultRouteSettings(dataTraceEnabled, detailedMetricsEnabled, loggingLevel, throttlingBurstLimit, throttlingRateLimit); + } + public StageDefaultRouteSettings build() { + final var o = new StageDefaultRouteSettings(); + o.dataTraceEnabled = dataTraceEnabled; + o.detailedMetricsEnabled = detailedMetricsEnabled; + o.loggingLevel = loggingLevel; + o.throttlingBurstLimit = throttlingBurstLimit; + o.throttlingRateLimit = throttlingRateLimit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/StageRouteSetting.java b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/StageRouteSetting.java index bbf51973e73..08611ebf19c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/StageRouteSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apigatewayv2/outputs/StageRouteSetting.java @@ -19,50 +19,35 @@ public final class StageRouteSetting { * Defaults to `false`. Supported only for WebSocket APIs. * */ - private final @Nullable Boolean dataTraceEnabled; + private @Nullable Boolean dataTraceEnabled; /** * @return Whether detailed metrics are enabled for the route. Defaults to `false`. * */ - private final @Nullable Boolean detailedMetricsEnabled; + private @Nullable Boolean detailedMetricsEnabled; /** * @return The logging level for the route. Affects the log entries pushed to Amazon CloudWatch Logs. * Valid values: `ERROR`, `INFO`, `OFF`. Defaults to `OFF`. Supported only for WebSocket APIs. This provider will only perform drift detection of its value when present in a configuration. * */ - private final @Nullable String loggingLevel; + private @Nullable String loggingLevel; /** * @return Route key. * */ - private final String routeKey; + private String routeKey; /** * @return The throttling burst limit for the route. * */ - private final @Nullable Integer throttlingBurstLimit; + private @Nullable Integer throttlingBurstLimit; /** * @return The throttling rate limit for the route. * */ - private final @Nullable Double throttlingRateLimit; - - @CustomType.Constructor - private StageRouteSetting( - @CustomType.Parameter("dataTraceEnabled") @Nullable Boolean dataTraceEnabled, - @CustomType.Parameter("detailedMetricsEnabled") @Nullable Boolean detailedMetricsEnabled, - @CustomType.Parameter("loggingLevel") @Nullable String loggingLevel, - @CustomType.Parameter("routeKey") String routeKey, - @CustomType.Parameter("throttlingBurstLimit") @Nullable Integer throttlingBurstLimit, - @CustomType.Parameter("throttlingRateLimit") @Nullable Double throttlingRateLimit) { - this.dataTraceEnabled = dataTraceEnabled; - this.detailedMetricsEnabled = detailedMetricsEnabled; - this.loggingLevel = loggingLevel; - this.routeKey = routeKey; - this.throttlingBurstLimit = throttlingBurstLimit; - this.throttlingRateLimit = throttlingRateLimit; - } + private @Nullable Double throttlingRateLimit; + private StageRouteSetting() {} /** * @return Whether data trace logging is enabled for the route. Affects the log entries pushed to Amazon CloudWatch Logs. * Defaults to `false`. Supported only for WebSocket APIs. @@ -115,7 +100,7 @@ public static Builder builder() { public static Builder builder(StageRouteSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean dataTraceEnabled; private @Nullable Boolean detailedMetricsEnabled; @@ -123,11 +108,7 @@ public static final class Builder { private String routeKey; private @Nullable Integer throttlingBurstLimit; private @Nullable Double throttlingRateLimit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StageRouteSetting defaults) { Objects.requireNonNull(defaults); this.dataTraceEnabled = defaults.dataTraceEnabled; @@ -138,31 +119,45 @@ public Builder(StageRouteSetting defaults) { this.throttlingRateLimit = defaults.throttlingRateLimit; } + @CustomType.Setter public Builder dataTraceEnabled(@Nullable Boolean dataTraceEnabled) { this.dataTraceEnabled = dataTraceEnabled; return this; } + @CustomType.Setter public Builder detailedMetricsEnabled(@Nullable Boolean detailedMetricsEnabled) { this.detailedMetricsEnabled = detailedMetricsEnabled; return this; } + @CustomType.Setter public Builder loggingLevel(@Nullable String loggingLevel) { this.loggingLevel = loggingLevel; return this; } + @CustomType.Setter public Builder routeKey(String routeKey) { this.routeKey = Objects.requireNonNull(routeKey); return this; } + @CustomType.Setter public Builder throttlingBurstLimit(@Nullable Integer throttlingBurstLimit) { this.throttlingBurstLimit = throttlingBurstLimit; return this; } + @CustomType.Setter public Builder throttlingRateLimit(@Nullable Double throttlingRateLimit) { this.throttlingRateLimit = throttlingRateLimit; return this; - } public StageRouteSetting build() { - return new StageRouteSetting(dataTraceEnabled, detailedMetricsEnabled, loggingLevel, routeKey, throttlingBurstLimit, throttlingRateLimit); + } + public StageRouteSetting build() { + final var o = new StageRouteSetting(); + o.dataTraceEnabled = dataTraceEnabled; + o.detailedMetricsEnabled = detailedMetricsEnabled; + o.loggingLevel = loggingLevel; + o.routeKey = routeKey; + o.throttlingBurstLimit = throttlingBurstLimit; + o.throttlingRateLimit = throttlingRateLimit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyStepScalingPolicyConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyStepScalingPolicyConfiguration.java index 86e0d5c7a71..3068f59b2f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyStepScalingPolicyConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyStepScalingPolicyConfiguration.java @@ -18,42 +18,29 @@ public final class PolicyStepScalingPolicyConfiguration { * @return Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`. * */ - private final @Nullable String adjustmentType; + private @Nullable String adjustmentType; /** * @return The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. * */ - private final @Nullable Integer cooldown; + private @Nullable Integer cooldown; /** * @return The aggregation type for the policy's metrics. Valid values are "Minimum", "Maximum", and "Average". Without a value, AWS will treat the aggregation type as "Average". * */ - private final @Nullable String metricAggregationType; + private @Nullable String metricAggregationType; /** * @return The minimum number to adjust your scalable dimension as a result of a scaling activity. If the adjustment type is PercentChangeInCapacity, the scaling policy changes the scalable dimension of the scalable target by this amount. * */ - private final @Nullable Integer minAdjustmentMagnitude; + private @Nullable Integer minAdjustmentMagnitude; /** * @return A set of adjustments that manage scaling. These have the following structure: * */ - private final @Nullable List stepAdjustments; - - @CustomType.Constructor - private PolicyStepScalingPolicyConfiguration( - @CustomType.Parameter("adjustmentType") @Nullable String adjustmentType, - @CustomType.Parameter("cooldown") @Nullable Integer cooldown, - @CustomType.Parameter("metricAggregationType") @Nullable String metricAggregationType, - @CustomType.Parameter("minAdjustmentMagnitude") @Nullable Integer minAdjustmentMagnitude, - @CustomType.Parameter("stepAdjustments") @Nullable List stepAdjustments) { - this.adjustmentType = adjustmentType; - this.cooldown = cooldown; - this.metricAggregationType = metricAggregationType; - this.minAdjustmentMagnitude = minAdjustmentMagnitude; - this.stepAdjustments = stepAdjustments; - } + private @Nullable List stepAdjustments; + private PolicyStepScalingPolicyConfiguration() {} /** * @return Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(PolicyStepScalingPolicyConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String adjustmentType; private @Nullable Integer cooldown; private @Nullable String metricAggregationType; private @Nullable Integer minAdjustmentMagnitude; private @Nullable List stepAdjustments; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyStepScalingPolicyConfiguration defaults) { Objects.requireNonNull(defaults); this.adjustmentType = defaults.adjustmentType; @@ -118,30 +101,42 @@ public Builder(PolicyStepScalingPolicyConfiguration defaults) { this.stepAdjustments = defaults.stepAdjustments; } + @CustomType.Setter public Builder adjustmentType(@Nullable String adjustmentType) { this.adjustmentType = adjustmentType; return this; } + @CustomType.Setter public Builder cooldown(@Nullable Integer cooldown) { this.cooldown = cooldown; return this; } + @CustomType.Setter public Builder metricAggregationType(@Nullable String metricAggregationType) { this.metricAggregationType = metricAggregationType; return this; } + @CustomType.Setter public Builder minAdjustmentMagnitude(@Nullable Integer minAdjustmentMagnitude) { this.minAdjustmentMagnitude = minAdjustmentMagnitude; return this; } + @CustomType.Setter public Builder stepAdjustments(@Nullable List stepAdjustments) { this.stepAdjustments = stepAdjustments; return this; } public Builder stepAdjustments(PolicyStepScalingPolicyConfigurationStepAdjustment... stepAdjustments) { return stepAdjustments(List.of(stepAdjustments)); - } public PolicyStepScalingPolicyConfiguration build() { - return new PolicyStepScalingPolicyConfiguration(adjustmentType, cooldown, metricAggregationType, minAdjustmentMagnitude, stepAdjustments); + } + public PolicyStepScalingPolicyConfiguration build() { + final var o = new PolicyStepScalingPolicyConfiguration(); + o.adjustmentType = adjustmentType; + o.cooldown = cooldown; + o.metricAggregationType = metricAggregationType; + o.minAdjustmentMagnitude = minAdjustmentMagnitude; + o.stepAdjustments = stepAdjustments; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyStepScalingPolicyConfigurationStepAdjustment.java b/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyStepScalingPolicyConfigurationStepAdjustment.java index 54e021664e6..1dba7a2dac7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyStepScalingPolicyConfigurationStepAdjustment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyStepScalingPolicyConfigurationStepAdjustment.java @@ -16,28 +16,19 @@ public final class PolicyStepScalingPolicyConfigurationStepAdjustment { * @return The lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as negative infinity. * */ - private final @Nullable String metricIntervalLowerBound; + private @Nullable String metricIntervalLowerBound; /** * @return The upper bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as infinity. The upper bound must be greater than the lower bound. * */ - private final @Nullable String metricIntervalUpperBound; + private @Nullable String metricIntervalUpperBound; /** * @return The number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down. * */ - private final Integer scalingAdjustment; - - @CustomType.Constructor - private PolicyStepScalingPolicyConfigurationStepAdjustment( - @CustomType.Parameter("metricIntervalLowerBound") @Nullable String metricIntervalLowerBound, - @CustomType.Parameter("metricIntervalUpperBound") @Nullable String metricIntervalUpperBound, - @CustomType.Parameter("scalingAdjustment") Integer scalingAdjustment) { - this.metricIntervalLowerBound = metricIntervalLowerBound; - this.metricIntervalUpperBound = metricIntervalUpperBound; - this.scalingAdjustment = scalingAdjustment; - } + private Integer scalingAdjustment; + private PolicyStepScalingPolicyConfigurationStepAdjustment() {} /** * @return The lower bound for the difference between the alarm threshold and the CloudWatch metric. Without a value, AWS will treat this bound as negative infinity. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PolicyStepScalingPolicyConfigurationStepAdjustment defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String metricIntervalLowerBound; private @Nullable String metricIntervalUpperBound; private Integer scalingAdjustment; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyStepScalingPolicyConfigurationStepAdjustment defaults) { Objects.requireNonNull(defaults); this.metricIntervalLowerBound = defaults.metricIntervalLowerBound; @@ -84,19 +71,27 @@ public Builder(PolicyStepScalingPolicyConfigurationStepAdjustment defaults) { this.scalingAdjustment = defaults.scalingAdjustment; } + @CustomType.Setter public Builder metricIntervalLowerBound(@Nullable String metricIntervalLowerBound) { this.metricIntervalLowerBound = metricIntervalLowerBound; return this; } + @CustomType.Setter public Builder metricIntervalUpperBound(@Nullable String metricIntervalUpperBound) { this.metricIntervalUpperBound = metricIntervalUpperBound; return this; } + @CustomType.Setter public Builder scalingAdjustment(Integer scalingAdjustment) { this.scalingAdjustment = Objects.requireNonNull(scalingAdjustment); return this; - } public PolicyStepScalingPolicyConfigurationStepAdjustment build() { - return new PolicyStepScalingPolicyConfigurationStepAdjustment(metricIntervalLowerBound, metricIntervalUpperBound, scalingAdjustment); + } + public PolicyStepScalingPolicyConfigurationStepAdjustment build() { + final var o = new PolicyStepScalingPolicyConfigurationStepAdjustment(); + o.metricIntervalLowerBound = metricIntervalLowerBound; + o.metricIntervalUpperBound = metricIntervalUpperBound; + o.scalingAdjustment = scalingAdjustment; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyTargetTrackingScalingPolicyConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyTargetTrackingScalingPolicyConfiguration.java index 78397d00f45..8668480ed4d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyTargetTrackingScalingPolicyConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyTargetTrackingScalingPolicyConfiguration.java @@ -19,49 +19,34 @@ public final class PolicyTargetTrackingScalingPolicyConfiguration { * @return A custom CloudWatch metric. Documentation can be found at: [AWS Customized Metric Specification](https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_CustomizedMetricSpecification.html). See supported fields below. * */ - private final @Nullable PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification customizedMetricSpecification; + private @Nullable PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification customizedMetricSpecification; /** * @return Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is `false`. * */ - private final @Nullable Boolean disableScaleIn; + private @Nullable Boolean disableScaleIn; /** * @return A predefined metric. See supported fields below. * */ - private final @Nullable PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification predefinedMetricSpecification; + private @Nullable PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification predefinedMetricSpecification; /** * @return The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. * */ - private final @Nullable Integer scaleInCooldown; + private @Nullable Integer scaleInCooldown; /** * @return The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. * */ - private final @Nullable Integer scaleOutCooldown; + private @Nullable Integer scaleOutCooldown; /** * @return The target value for the metric. * */ - private final Double targetValue; - - @CustomType.Constructor - private PolicyTargetTrackingScalingPolicyConfiguration( - @CustomType.Parameter("customizedMetricSpecification") @Nullable PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification customizedMetricSpecification, - @CustomType.Parameter("disableScaleIn") @Nullable Boolean disableScaleIn, - @CustomType.Parameter("predefinedMetricSpecification") @Nullable PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification predefinedMetricSpecification, - @CustomType.Parameter("scaleInCooldown") @Nullable Integer scaleInCooldown, - @CustomType.Parameter("scaleOutCooldown") @Nullable Integer scaleOutCooldown, - @CustomType.Parameter("targetValue") Double targetValue) { - this.customizedMetricSpecification = customizedMetricSpecification; - this.disableScaleIn = disableScaleIn; - this.predefinedMetricSpecification = predefinedMetricSpecification; - this.scaleInCooldown = scaleInCooldown; - this.scaleOutCooldown = scaleOutCooldown; - this.targetValue = targetValue; - } + private Double targetValue; + private PolicyTargetTrackingScalingPolicyConfiguration() {} /** * @return A custom CloudWatch metric. Documentation can be found at: [AWS Customized Metric Specification](https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_CustomizedMetricSpecification.html). See supported fields below. * @@ -112,7 +97,7 @@ public static Builder builder() { public static Builder builder(PolicyTargetTrackingScalingPolicyConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification customizedMetricSpecification; private @Nullable Boolean disableScaleIn; @@ -120,11 +105,7 @@ public static final class Builder { private @Nullable Integer scaleInCooldown; private @Nullable Integer scaleOutCooldown; private Double targetValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyTargetTrackingScalingPolicyConfiguration defaults) { Objects.requireNonNull(defaults); this.customizedMetricSpecification = defaults.customizedMetricSpecification; @@ -135,31 +116,45 @@ public Builder(PolicyTargetTrackingScalingPolicyConfiguration defaults) { this.targetValue = defaults.targetValue; } + @CustomType.Setter public Builder customizedMetricSpecification(@Nullable PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification customizedMetricSpecification) { this.customizedMetricSpecification = customizedMetricSpecification; return this; } + @CustomType.Setter public Builder disableScaleIn(@Nullable Boolean disableScaleIn) { this.disableScaleIn = disableScaleIn; return this; } + @CustomType.Setter public Builder predefinedMetricSpecification(@Nullable PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecification predefinedMetricSpecification) { this.predefinedMetricSpecification = predefinedMetricSpecification; return this; } + @CustomType.Setter public Builder scaleInCooldown(@Nullable Integer scaleInCooldown) { this.scaleInCooldown = scaleInCooldown; return this; } + @CustomType.Setter public Builder scaleOutCooldown(@Nullable Integer scaleOutCooldown) { this.scaleOutCooldown = scaleOutCooldown; return this; } + @CustomType.Setter public Builder targetValue(Double targetValue) { this.targetValue = Objects.requireNonNull(targetValue); return this; - } public PolicyTargetTrackingScalingPolicyConfiguration build() { - return new PolicyTargetTrackingScalingPolicyConfiguration(customizedMetricSpecification, disableScaleIn, predefinedMetricSpecification, scaleInCooldown, scaleOutCooldown, targetValue); + } + public PolicyTargetTrackingScalingPolicyConfiguration build() { + final var o = new PolicyTargetTrackingScalingPolicyConfiguration(); + o.customizedMetricSpecification = customizedMetricSpecification; + o.disableScaleIn = disableScaleIn; + o.predefinedMetricSpecification = predefinedMetricSpecification; + o.scaleInCooldown = scaleInCooldown; + o.scaleOutCooldown = scaleOutCooldown; + o.targetValue = targetValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification.java index 67a377a0593..61184a255bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appautoscaling/outputs/PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification.java @@ -17,42 +17,29 @@ public final class PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetri * @return Configuration block(s) with the dimensions of the metric if the metric was published with dimensions. Detailed below. * */ - private final @Nullable List dimensions; + private @Nullable List dimensions; /** * @return The name of the metric. * */ - private final String metricName; + private String metricName; /** * @return The namespace of the metric. * */ - private final String namespace; + private String namespace; /** * @return The statistic of the metric. Valid values: `Average`, `Minimum`, `Maximum`, `SampleCount`, and `Sum`. * */ - private final String statistic; + private String statistic; /** * @return The unit of the metric. * */ - private final @Nullable String unit; - - @CustomType.Constructor - private PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification( - @CustomType.Parameter("dimensions") @Nullable List dimensions, - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("namespace") String namespace, - @CustomType.Parameter("statistic") String statistic, - @CustomType.Parameter("unit") @Nullable String unit) { - this.dimensions = dimensions; - this.metricName = metricName; - this.namespace = namespace; - this.statistic = statistic; - this.unit = unit; - } + private @Nullable String unit; + private PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification() {} /** * @return Configuration block(s) with the dimensions of the metric if the metric was published with dimensions. Detailed below. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List dimensions; private String metricName; private String namespace; private String statistic; private @Nullable String unit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification defaults) { Objects.requireNonNull(defaults); this.dimensions = defaults.dimensions; @@ -117,6 +100,7 @@ public Builder(PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpe this.unit = defaults.unit; } + @CustomType.Setter public Builder dimensions(@Nullable List dimensions) { this.dimensions = dimensions; return this; @@ -124,23 +108,34 @@ public Builder dimensions(@Nullable List credentialsMap; + private @Nullable Map credentialsMap; /** * @return The custom authentication type that the connector uses. * */ - private final String customAuthenticationType; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustom( - @CustomType.Parameter("credentialsMap") @Nullable Map credentialsMap, - @CustomType.Parameter("customAuthenticationType") String customAuthenticationType) { - this.credentialsMap = credentialsMap; - this.customAuthenticationType = customAuthenticationType; - } + private String customAuthenticationType; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustom() {} /** * @return A map that holds custom authentication credentials. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustom defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map credentialsMap; private String customAuthenticationType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustom defaults) { Objects.requireNonNull(defaults); this.credentialsMap = defaults.credentialsMap; this.customAuthenticationType = defaults.customAuthenticationType; } + @CustomType.Setter public Builder credentialsMap(@Nullable Map credentialsMap) { this.credentialsMap = credentialsMap; return this; } + @CustomType.Setter public Builder customAuthenticationType(String customAuthenticationType) { this.customAuthenticationType = Objects.requireNonNull(customAuthenticationType); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustom build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustom(credentialsMap, customAuthenticationType); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustom build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustom(); + o.credentialsMap = credentialsMap; + o.customAuthenticationType = customAuthenticationType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2.java index ae27954df90..ba804616312 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2.java @@ -16,42 +16,29 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The credentials used to access protected Zendesk resources. * */ - private final @Nullable String accessToken; + private @Nullable String accessToken; /** * @return The identifier for the desired client. * */ - private final @Nullable String clientId; + private @Nullable String clientId; /** * @return The client secret used by the OAuth client to authenticate to the authorization server. * */ - private final @Nullable String clientSecret; + private @Nullable String clientSecret; /** * @return The OAuth requirement needed to request security tokens from the connector endpoint. See OAuth Request for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest oauthRequest; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest oauthRequest; /** * @return The refresh token used to refresh expired access token. * */ - private final @Nullable String refreshToken; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2( - @CustomType.Parameter("accessToken") @Nullable String accessToken, - @CustomType.Parameter("clientId") @Nullable String clientId, - @CustomType.Parameter("clientSecret") @Nullable String clientSecret, - @CustomType.Parameter("oauthRequest") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest oauthRequest, - @CustomType.Parameter("refreshToken") @Nullable String refreshToken) { - this.accessToken = accessToken; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.oauthRequest = oauthRequest; - this.refreshToken = refreshToken; - } + private @Nullable String refreshToken; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2() {} /** * @return The credentials used to access protected Zendesk resources. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessToken; private @Nullable String clientId; private @Nullable String clientSecret; private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest oauthRequest; private @Nullable String refreshToken; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2 defaults) { Objects.requireNonNull(defaults); this.accessToken = defaults.accessToken; @@ -116,27 +99,39 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentials this.refreshToken = defaults.refreshToken; } + @CustomType.Setter public Builder accessToken(@Nullable String accessToken) { this.accessToken = accessToken; return this; } + @CustomType.Setter public Builder clientId(@Nullable String clientId) { this.clientId = clientId; return this; } + @CustomType.Setter public Builder clientSecret(@Nullable String clientSecret) { this.clientSecret = clientSecret; return this; } + @CustomType.Setter public Builder oauthRequest(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest oauthRequest) { this.oauthRequest = oauthRequest; return this; } + @CustomType.Setter public Builder refreshToken(@Nullable String refreshToken) { this.refreshToken = refreshToken; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2 build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2(accessToken, clientId, clientSecret, oauthRequest, refreshToken); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2 build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2(); + o.accessToken = accessToken; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.oauthRequest = oauthRequest; + o.refreshToken = refreshToken; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest.java index 95d8a1b723c..9a97859c062 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest.java @@ -15,21 +15,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The code provided by the connector when it has been authenticated via the connected app. * */ - private final @Nullable String authCode; + private @Nullable String authCode; /** * @return The URL to which the authentication server redirects the browser after authorization has been granted. * */ - private final @Nullable String redirectUri; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest( - @CustomType.Parameter("authCode") @Nullable String authCode, - @CustomType.Parameter("redirectUri") @Nullable String redirectUri) { - this.authCode = authCode; - this.redirectUri = redirectUri; - } + private @Nullable String redirectUri; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest() {} /** * @return The code provided by the connector when it has been authenticated via the connected app. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String authCode; private @Nullable String redirectUri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest defaults) { Objects.requireNonNull(defaults); this.authCode = defaults.authCode; this.redirectUri = defaults.redirectUri; } + @CustomType.Setter public Builder authCode(@Nullable String authCode) { this.authCode = authCode; return this; } + @CustomType.Setter public Builder redirectUri(@Nullable String redirectUri) { this.redirectUri = redirectUri; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest(authCode, redirectUri); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequest(); + o.authCode = authCode; + o.redirectUri = redirectUri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadog.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadog.java index a2f5ce10bcd..6e07c4e1142 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadog.java @@ -13,21 +13,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return A unique alphanumeric identifier used to authenticate a user, developer, or calling program to your API. * */ - private final String apiKey; + private String apiKey; /** * @return Application keys, in conjunction with your API key, give you full access to Datadog’s programmatic API. Application keys are associated with the user account that created them. The application key is used to log all requests made to the API. * */ - private final String applicationKey; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadog( - @CustomType.Parameter("apiKey") String apiKey, - @CustomType.Parameter("applicationKey") String applicationKey) { - this.apiKey = apiKey; - this.applicationKey = applicationKey; - } + private String applicationKey; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadog() {} /** * @return A unique alphanumeric identifier used to authenticate a user, developer, or calling program to your API. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadog defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String apiKey; private String applicationKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadog defaults) { Objects.requireNonNull(defaults); this.apiKey = defaults.apiKey; this.applicationKey = defaults.applicationKey; } + @CustomType.Setter public Builder apiKey(String apiKey) { this.apiKey = Objects.requireNonNull(apiKey); return this; } + @CustomType.Setter public Builder applicationKey(String applicationKey) { this.applicationKey = Objects.requireNonNull(applicationKey); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadog build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadog(apiKey, applicationKey); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadog build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadog(); + o.apiKey = apiKey; + o.applicationKey = applicationKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatrace.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatrace.java index aafa951853b..b97d62be757 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatrace.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatrace.java @@ -13,13 +13,9 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The API tokens used by Dynatrace API to authenticate various API calls. * */ - private final String apiToken; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatrace(@CustomType.Parameter("apiToken") String apiToken) { - this.apiToken = apiToken; - } + private String apiToken; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatrace() {} /** * @return The API tokens used by Dynatrace API to authenticate various API calls. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatrace defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String apiToken; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatrace defaults) { Objects.requireNonNull(defaults); this.apiToken = defaults.apiToken; } + @CustomType.Setter public Builder apiToken(String apiToken) { this.apiToken = Objects.requireNonNull(apiToken); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatrace build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatrace(apiToken); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatrace build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatrace(); + o.apiToken = apiToken; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalytics.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalytics.java index 1bd4b97c97d..fccf4d0147f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalytics.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalytics.java @@ -16,42 +16,29 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The credentials used to access protected Zendesk resources. * */ - private final @Nullable String accessToken; + private @Nullable String accessToken; /** * @return The identifier for the desired client. * */ - private final String clientId; + private String clientId; /** * @return The client secret used by the OAuth client to authenticate to the authorization server. * */ - private final String clientSecret; + private String clientSecret; /** * @return The OAuth requirement needed to request security tokens from the connector endpoint. See OAuth Request for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest oauthRequest; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest oauthRequest; /** * @return The refresh token used to refresh expired access token. * */ - private final @Nullable String refreshToken; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalytics( - @CustomType.Parameter("accessToken") @Nullable String accessToken, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("oauthRequest") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest oauthRequest, - @CustomType.Parameter("refreshToken") @Nullable String refreshToken) { - this.accessToken = accessToken; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.oauthRequest = oauthRequest; - this.refreshToken = refreshToken; - } + private @Nullable String refreshToken; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalytics() {} /** * @return The credentials used to access protected Zendesk resources. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalytics defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessToken; private String clientId; private String clientSecret; private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest oauthRequest; private @Nullable String refreshToken; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalytics defaults) { Objects.requireNonNull(defaults); this.accessToken = defaults.accessToken; @@ -116,27 +99,39 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentials this.refreshToken = defaults.refreshToken; } + @CustomType.Setter public Builder accessToken(@Nullable String accessToken) { this.accessToken = accessToken; return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder oauthRequest(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest oauthRequest) { this.oauthRequest = oauthRequest; return this; } + @CustomType.Setter public Builder refreshToken(@Nullable String refreshToken) { this.refreshToken = refreshToken; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalytics build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalytics(accessToken, clientId, clientSecret, oauthRequest, refreshToken); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalytics build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalytics(); + o.accessToken = accessToken; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.oauthRequest = oauthRequest; + o.refreshToken = refreshToken; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest.java index 5cafb91dfc1..135686ce3de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest.java @@ -15,21 +15,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The code provided by the connector when it has been authenticated via the connected app. * */ - private final @Nullable String authCode; + private @Nullable String authCode; /** * @return The URL to which the authentication server redirects the browser after authorization has been granted. * */ - private final @Nullable String redirectUri; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest( - @CustomType.Parameter("authCode") @Nullable String authCode, - @CustomType.Parameter("redirectUri") @Nullable String redirectUri) { - this.authCode = authCode; - this.redirectUri = redirectUri; - } + private @Nullable String redirectUri; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest() {} /** * @return The code provided by the connector when it has been authenticated via the connected app. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String authCode; private @Nullable String redirectUri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest defaults) { Objects.requireNonNull(defaults); this.authCode = defaults.authCode; this.redirectUri = defaults.redirectUri; } + @CustomType.Setter public Builder authCode(@Nullable String authCode) { this.authCode = authCode; return this; } + @CustomType.Setter public Builder redirectUri(@Nullable String redirectUri) { this.redirectUri = redirectUri; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest(authCode, redirectUri); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequest(); + o.authCode = authCode; + o.redirectUri = redirectUri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycode.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycode.java index 7477ceed65e..4977927209a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycode.java @@ -16,28 +16,19 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The credentials used to access protected Zendesk resources. * */ - private final @Nullable String accessToken; + private @Nullable String accessToken; /** * @return The OAuth requirement needed to request security tokens from the connector endpoint. See OAuth Request for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest oauthRequest; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest oauthRequest; /** * @return The refresh token used to refresh expired access token. * */ - private final @Nullable String refreshToken; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycode( - @CustomType.Parameter("accessToken") @Nullable String accessToken, - @CustomType.Parameter("oauthRequest") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest oauthRequest, - @CustomType.Parameter("refreshToken") @Nullable String refreshToken) { - this.accessToken = accessToken; - this.oauthRequest = oauthRequest; - this.refreshToken = refreshToken; - } + private @Nullable String refreshToken; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycode() {} /** * @return The credentials used to access protected Zendesk resources. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessToken; private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest oauthRequest; private @Nullable String refreshToken; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycode defaults) { Objects.requireNonNull(defaults); this.accessToken = defaults.accessToken; @@ -84,19 +71,27 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentials this.refreshToken = defaults.refreshToken; } + @CustomType.Setter public Builder accessToken(@Nullable String accessToken) { this.accessToken = accessToken; return this; } + @CustomType.Setter public Builder oauthRequest(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest oauthRequest) { this.oauthRequest = oauthRequest; return this; } + @CustomType.Setter public Builder refreshToken(@Nullable String refreshToken) { this.refreshToken = refreshToken; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycode build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycode(accessToken, oauthRequest, refreshToken); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycode build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycode(); + o.accessToken = accessToken; + o.oauthRequest = oauthRequest; + o.refreshToken = refreshToken; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest.java index 099d5978a3d..4b821cbd846 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest.java @@ -15,21 +15,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The code provided by the connector when it has been authenticated via the connected app. * */ - private final @Nullable String authCode; + private @Nullable String authCode; /** * @return The URL to which the authentication server redirects the browser after authorization has been granted. * */ - private final @Nullable String redirectUri; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest( - @CustomType.Parameter("authCode") @Nullable String authCode, - @CustomType.Parameter("redirectUri") @Nullable String redirectUri) { - this.authCode = authCode; - this.redirectUri = redirectUri; - } + private @Nullable String redirectUri; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest() {} /** * @return The code provided by the connector when it has been authenticated via the connected app. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String authCode; private @Nullable String redirectUri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest defaults) { Objects.requireNonNull(defaults); this.authCode = defaults.authCode; this.redirectUri = defaults.redirectUri; } + @CustomType.Setter public Builder authCode(@Nullable String authCode) { this.authCode = authCode; return this; } + @CustomType.Setter public Builder redirectUri(@Nullable String redirectUri) { this.redirectUri = redirectUri; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest(authCode, redirectUri); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequest(); + o.authCode = authCode; + o.redirectUri = redirectUri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexus.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexus.java index b8c0ef29eee..a9bb88550d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexus.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexus.java @@ -13,35 +13,24 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The Access Key portion of the credentials. * */ - private final String accessKeyId; + private String accessKeyId; /** * @return The encryption keys used to encrypt data. * */ - private final String datakey; + private String datakey; /** * @return The secret key used to sign requests. * */ - private final String secretAccessKey; + private String secretAccessKey; /** * @return The identifier for the user. * */ - private final String userId; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexus( - @CustomType.Parameter("accessKeyId") String accessKeyId, - @CustomType.Parameter("datakey") String datakey, - @CustomType.Parameter("secretAccessKey") String secretAccessKey, - @CustomType.Parameter("userId") String userId) { - this.accessKeyId = accessKeyId; - this.datakey = datakey; - this.secretAccessKey = secretAccessKey; - this.userId = userId; - } + private String userId; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexus() {} /** * @return The Access Key portion of the credentials. * @@ -78,17 +67,13 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexus defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accessKeyId; private String datakey; private String secretAccessKey; private String userId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexus defaults) { Objects.requireNonNull(defaults); this.accessKeyId = defaults.accessKeyId; @@ -97,23 +82,33 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentials this.userId = defaults.userId; } + @CustomType.Setter public Builder accessKeyId(String accessKeyId) { this.accessKeyId = Objects.requireNonNull(accessKeyId); return this; } + @CustomType.Setter public Builder datakey(String datakey) { this.datakey = Objects.requireNonNull(datakey); return this; } + @CustomType.Setter public Builder secretAccessKey(String secretAccessKey) { this.secretAccessKey = Objects.requireNonNull(secretAccessKey); return this; } + @CustomType.Setter public Builder userId(String userId) { this.userId = Objects.requireNonNull(userId); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexus build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexus(accessKeyId, datakey, secretAccessKey, userId); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexus build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexus(); + o.accessKeyId = accessKeyId; + o.datakey = datakey; + o.secretAccessKey = secretAccessKey; + o.userId = userId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketo.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketo.java index d7f00b142b1..f4f514ee31c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketo.java @@ -16,35 +16,24 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The credentials used to access protected Zendesk resources. * */ - private final @Nullable String accessToken; + private @Nullable String accessToken; /** * @return The identifier for the desired client. * */ - private final String clientId; + private String clientId; /** * @return The client secret used by the OAuth client to authenticate to the authorization server. * */ - private final String clientSecret; + private String clientSecret; /** * @return The OAuth requirement needed to request security tokens from the connector endpoint. See OAuth Request for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest oauthRequest; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketo( - @CustomType.Parameter("accessToken") @Nullable String accessToken, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("oauthRequest") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest oauthRequest) { - this.accessToken = accessToken; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.oauthRequest = oauthRequest; - } + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest oauthRequest; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketo() {} /** * @return The credentials used to access protected Zendesk resources. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessToken; private String clientId; private String clientSecret; private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest oauthRequest; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketo defaults) { Objects.requireNonNull(defaults); this.accessToken = defaults.accessToken; @@ -100,23 +85,33 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentials this.oauthRequest = defaults.oauthRequest; } + @CustomType.Setter public Builder accessToken(@Nullable String accessToken) { this.accessToken = accessToken; return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder oauthRequest(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest oauthRequest) { this.oauthRequest = oauthRequest; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketo build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketo(accessToken, clientId, clientSecret, oauthRequest); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketo build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketo(); + o.accessToken = accessToken; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.oauthRequest = oauthRequest; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest.java index cf2b81a43b9..136bc28863b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest.java @@ -15,21 +15,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The code provided by the connector when it has been authenticated via the connected app. * */ - private final @Nullable String authCode; + private @Nullable String authCode; /** * @return The URL to which the authentication server redirects the browser after authorization has been granted. * */ - private final @Nullable String redirectUri; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest( - @CustomType.Parameter("authCode") @Nullable String authCode, - @CustomType.Parameter("redirectUri") @Nullable String redirectUri) { - this.authCode = authCode; - this.redirectUri = redirectUri; - } + private @Nullable String redirectUri; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest() {} /** * @return The code provided by the connector when it has been authenticated via the connected app. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String authCode; private @Nullable String redirectUri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest defaults) { Objects.requireNonNull(defaults); this.authCode = defaults.authCode; this.redirectUri = defaults.redirectUri; } + @CustomType.Setter public Builder authCode(@Nullable String authCode) { this.authCode = authCode; return this; } + @CustomType.Setter public Builder redirectUri(@Nullable String redirectUri) { this.redirectUri = redirectUri; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest(authCode, redirectUri); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequest(); + o.authCode = authCode; + o.redirectUri = redirectUri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshift.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshift.java index b4e9684c581..849a983c520 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshift.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshift.java @@ -13,21 +13,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The password that corresponds to the user name. * */ - private final String password; + private String password; /** * @return The name of the user. * */ - private final String username; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshift( - @CustomType.Parameter("password") String password, - @CustomType.Parameter("username") String username) { - this.password = password; - this.username = username; - } + private String username; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshift() {} /** * @return The password that corresponds to the user name. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshift defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String password; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshift defaults) { Objects.requireNonNull(defaults); this.password = defaults.password; this.username = defaults.username; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshift build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshift(password, username); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshift build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshift(); + o.password = password; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforce.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforce.java index 3fa17139cab..541618adb83 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforce.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforce.java @@ -16,35 +16,24 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The credentials used to access protected Zendesk resources. * */ - private final @Nullable String accessToken; + private @Nullable String accessToken; /** * @return The secret manager ARN, which contains the client ID and client secret of the connected app. * */ - private final @Nullable String clientCredentialsArn; + private @Nullable String clientCredentialsArn; /** * @return The OAuth requirement needed to request security tokens from the connector endpoint. See OAuth Request for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest oauthRequest; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest oauthRequest; /** * @return The refresh token used to refresh expired access token. * */ - private final @Nullable String refreshToken; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforce( - @CustomType.Parameter("accessToken") @Nullable String accessToken, - @CustomType.Parameter("clientCredentialsArn") @Nullable String clientCredentialsArn, - @CustomType.Parameter("oauthRequest") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest oauthRequest, - @CustomType.Parameter("refreshToken") @Nullable String refreshToken) { - this.accessToken = accessToken; - this.clientCredentialsArn = clientCredentialsArn; - this.oauthRequest = oauthRequest; - this.refreshToken = refreshToken; - } + private @Nullable String refreshToken; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforce() {} /** * @return The credentials used to access protected Zendesk resources. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforce defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessToken; private @Nullable String clientCredentialsArn; private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest oauthRequest; private @Nullable String refreshToken; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforce defaults) { Objects.requireNonNull(defaults); this.accessToken = defaults.accessToken; @@ -100,23 +85,33 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentials this.refreshToken = defaults.refreshToken; } + @CustomType.Setter public Builder accessToken(@Nullable String accessToken) { this.accessToken = accessToken; return this; } + @CustomType.Setter public Builder clientCredentialsArn(@Nullable String clientCredentialsArn) { this.clientCredentialsArn = clientCredentialsArn; return this; } + @CustomType.Setter public Builder oauthRequest(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest oauthRequest) { this.oauthRequest = oauthRequest; return this; } + @CustomType.Setter public Builder refreshToken(@Nullable String refreshToken) { this.refreshToken = refreshToken; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforce build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforce(accessToken, clientCredentialsArn, oauthRequest, refreshToken); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforce build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforce(); + o.accessToken = accessToken; + o.clientCredentialsArn = clientCredentialsArn; + o.oauthRequest = oauthRequest; + o.refreshToken = refreshToken; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest.java index e55325849de..c042828838d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest.java @@ -15,21 +15,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The code provided by the connector when it has been authenticated via the connected app. * */ - private final @Nullable String authCode; + private @Nullable String authCode; /** * @return The URL to which the authentication server redirects the browser after authorization has been granted. * */ - private final @Nullable String redirectUri; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest( - @CustomType.Parameter("authCode") @Nullable String authCode, - @CustomType.Parameter("redirectUri") @Nullable String redirectUri) { - this.authCode = authCode; - this.redirectUri = redirectUri; - } + private @Nullable String redirectUri; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest() {} /** * @return The code provided by the connector when it has been authenticated via the connected app. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String authCode; private @Nullable String redirectUri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest defaults) { Objects.requireNonNull(defaults); this.authCode = defaults.authCode; this.redirectUri = defaults.redirectUri; } + @CustomType.Setter public Builder authCode(@Nullable String authCode) { this.authCode = authCode; return this; } + @CustomType.Setter public Builder redirectUri(@Nullable String redirectUri) { this.redirectUri = redirectUri; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest(authCode, redirectUri); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequest(); + o.authCode = authCode; + o.redirectUri = redirectUri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoData.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoData.java index d3fa0c4bd4a..c776897329a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoData.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoData.java @@ -16,21 +16,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The SAPOData basic authentication credentials. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials basicAuthCredentials; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials basicAuthCredentials; /** * @return The SAPOData OAuth type authentication credentials. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials oauthCredentials; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoData( - @CustomType.Parameter("basicAuthCredentials") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials basicAuthCredentials, - @CustomType.Parameter("oauthCredentials") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials oauthCredentials) { - this.basicAuthCredentials = basicAuthCredentials; - this.oauthCredentials = oauthCredentials; - } + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials oauthCredentials; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoData() {} /** * @return The SAPOData basic authentication credentials. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoData defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials basicAuthCredentials; private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials oauthCredentials; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoData defaults) { Objects.requireNonNull(defaults); this.basicAuthCredentials = defaults.basicAuthCredentials; this.oauthCredentials = defaults.oauthCredentials; } + @CustomType.Setter public Builder basicAuthCredentials(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials basicAuthCredentials) { this.basicAuthCredentials = basicAuthCredentials; return this; } + @CustomType.Setter public Builder oauthCredentials(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials oauthCredentials) { this.oauthCredentials = oauthCredentials; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoData build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoData(basicAuthCredentials, oauthCredentials); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoData build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoData(); + o.basicAuthCredentials = basicAuthCredentials; + o.oauthCredentials = oauthCredentials; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials.java index 48cfb5eaeaa..03a8e26d946 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials.java @@ -13,21 +13,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The password that corresponds to the user name. * */ - private final String password; + private String password; /** * @return The name of the user. * */ - private final String username; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials( - @CustomType.Parameter("password") String password, - @CustomType.Parameter("username") String username) { - this.password = password; - this.username = username; - } + private String username; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials() {} /** * @return The password that corresponds to the user name. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String password; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials defaults) { Objects.requireNonNull(defaults); this.password = defaults.password; this.username = defaults.username; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials(password, username); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentials(); + o.password = password; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials.java index 60ee84dc77d..62987890091 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials.java @@ -16,42 +16,29 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The credentials used to access protected Zendesk resources. * */ - private final @Nullable String accessToken; + private @Nullable String accessToken; /** * @return The identifier for the desired client. * */ - private final String clientId; + private String clientId; /** * @return The client secret used by the OAuth client to authenticate to the authorization server. * */ - private final String clientSecret; + private String clientSecret; /** * @return The OAuth requirement needed to request security tokens from the connector endpoint. See OAuth Request for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest oauthRequest; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest oauthRequest; /** * @return The refresh token used to refresh expired access token. * */ - private final @Nullable String refreshToken; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials( - @CustomType.Parameter("accessToken") @Nullable String accessToken, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("oauthRequest") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest oauthRequest, - @CustomType.Parameter("refreshToken") @Nullable String refreshToken) { - this.accessToken = accessToken; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.oauthRequest = oauthRequest; - this.refreshToken = refreshToken; - } + private @Nullable String refreshToken; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials() {} /** * @return The credentials used to access protected Zendesk resources. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessToken; private String clientId; private String clientSecret; private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest oauthRequest; private @Nullable String refreshToken; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials defaults) { Objects.requireNonNull(defaults); this.accessToken = defaults.accessToken; @@ -116,27 +99,39 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentials this.refreshToken = defaults.refreshToken; } + @CustomType.Setter public Builder accessToken(@Nullable String accessToken) { this.accessToken = accessToken; return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder oauthRequest(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest oauthRequest) { this.oauthRequest = oauthRequest; return this; } + @CustomType.Setter public Builder refreshToken(@Nullable String refreshToken) { this.refreshToken = refreshToken; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials(accessToken, clientId, clientSecret, oauthRequest, refreshToken); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentials(); + o.accessToken = accessToken; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.oauthRequest = oauthRequest; + o.refreshToken = refreshToken; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest.java index a19fb723475..d8244f3be42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest.java @@ -15,21 +15,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The code provided by the connector when it has been authenticated via the connected app. * */ - private final @Nullable String authCode; + private @Nullable String authCode; /** * @return The URL to which the authentication server redirects the browser after authorization has been granted. * */ - private final @Nullable String redirectUri; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest( - @CustomType.Parameter("authCode") @Nullable String authCode, - @CustomType.Parameter("redirectUri") @Nullable String redirectUri) { - this.authCode = authCode; - this.redirectUri = redirectUri; - } + private @Nullable String redirectUri; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest() {} /** * @return The code provided by the connector when it has been authenticated via the connected app. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String authCode; private @Nullable String redirectUri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest defaults) { Objects.requireNonNull(defaults); this.authCode = defaults.authCode; this.redirectUri = defaults.redirectUri; } + @CustomType.Setter public Builder authCode(@Nullable String authCode) { this.authCode = authCode; return this; } + @CustomType.Setter public Builder redirectUri(@Nullable String redirectUri) { this.redirectUri = redirectUri; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest(authCode, redirectUri); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequest(); + o.authCode = authCode; + o.redirectUri = redirectUri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNow.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNow.java index b00a0e93f37..043c4e798fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNow.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNow.java @@ -13,21 +13,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The password that corresponds to the user name. * */ - private final String password; + private String password; /** * @return The name of the user. * */ - private final String username; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNow( - @CustomType.Parameter("password") String password, - @CustomType.Parameter("username") String username) { - this.password = password; - this.username = username; - } + private String username; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNow() {} /** * @return The password that corresponds to the user name. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNow defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String password; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNow defaults) { Objects.requireNonNull(defaults); this.password = defaults.password; this.username = defaults.username; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNow build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNow(password, username); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNow build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNow(); + o.password = password; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingular.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingular.java index 40ae7e70288..1625aff12e5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingular.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingular.java @@ -13,13 +13,9 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return A unique alphanumeric identifier used to authenticate a user, developer, or calling program to your API. * */ - private final String apiKey; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingular(@CustomType.Parameter("apiKey") String apiKey) { - this.apiKey = apiKey; - } + private String apiKey; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingular() {} /** * @return A unique alphanumeric identifier used to authenticate a user, developer, or calling program to your API. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingular defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String apiKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingular defaults) { Objects.requireNonNull(defaults); this.apiKey = defaults.apiKey; } + @CustomType.Setter public Builder apiKey(String apiKey) { this.apiKey = Objects.requireNonNull(apiKey); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingular build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingular(apiKey); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingular build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingular(); + o.apiKey = apiKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlack.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlack.java index 3cb21897660..2b2ac4b548b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlack.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlack.java @@ -16,35 +16,24 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The credentials used to access protected Zendesk resources. * */ - private final @Nullable String accessToken; + private @Nullable String accessToken; /** * @return The identifier for the desired client. * */ - private final String clientId; + private String clientId; /** * @return The client secret used by the OAuth client to authenticate to the authorization server. * */ - private final String clientSecret; + private String clientSecret; /** * @return The OAuth requirement needed to request security tokens from the connector endpoint. See OAuth Request for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest oauthRequest; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlack( - @CustomType.Parameter("accessToken") @Nullable String accessToken, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("oauthRequest") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest oauthRequest) { - this.accessToken = accessToken; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.oauthRequest = oauthRequest; - } + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest oauthRequest; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlack() {} /** * @return The credentials used to access protected Zendesk resources. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlack defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessToken; private String clientId; private String clientSecret; private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest oauthRequest; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlack defaults) { Objects.requireNonNull(defaults); this.accessToken = defaults.accessToken; @@ -100,23 +85,33 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentials this.oauthRequest = defaults.oauthRequest; } + @CustomType.Setter public Builder accessToken(@Nullable String accessToken) { this.accessToken = accessToken; return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder oauthRequest(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest oauthRequest) { this.oauthRequest = oauthRequest; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlack build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlack(accessToken, clientId, clientSecret, oauthRequest); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlack build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlack(); + o.accessToken = accessToken; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.oauthRequest = oauthRequest; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest.java index 8e7c4eb666d..5e069807c3a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest.java @@ -15,21 +15,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The code provided by the connector when it has been authenticated via the connected app. * */ - private final @Nullable String authCode; + private @Nullable String authCode; /** * @return The URL to which the authentication server redirects the browser after authorization has been granted. * */ - private final @Nullable String redirectUri; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest( - @CustomType.Parameter("authCode") @Nullable String authCode, - @CustomType.Parameter("redirectUri") @Nullable String redirectUri) { - this.authCode = authCode; - this.redirectUri = redirectUri; - } + private @Nullable String redirectUri; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest() {} /** * @return The code provided by the connector when it has been authenticated via the connected app. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String authCode; private @Nullable String redirectUri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest defaults) { Objects.requireNonNull(defaults); this.authCode = defaults.authCode; this.redirectUri = defaults.redirectUri; } + @CustomType.Setter public Builder authCode(@Nullable String authCode) { this.authCode = authCode; return this; } + @CustomType.Setter public Builder redirectUri(@Nullable String redirectUri) { this.redirectUri = redirectUri; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest(authCode, redirectUri); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequest(); + o.authCode = authCode; + o.redirectUri = redirectUri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflake.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflake.java index 79128999810..a8c3f428652 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflake.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflake.java @@ -13,21 +13,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The password that corresponds to the user name. * */ - private final String password; + private String password; /** * @return The name of the user. * */ - private final String username; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflake( - @CustomType.Parameter("password") String password, - @CustomType.Parameter("username") String username) { - this.password = password; - this.username = username; - } + private String username; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflake() {} /** * @return The password that corresponds to the user name. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflake defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String password; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflake defaults) { Objects.requireNonNull(defaults); this.password = defaults.password; this.username = defaults.username; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflake build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflake(password, username); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflake build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflake(); + o.password = password; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicro.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicro.java index 59ed2ed702b..b3cdd024a04 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicro.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicro.java @@ -13,13 +13,9 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The Secret Access Key portion of the credentials. * */ - private final String apiSecretKey; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicro(@CustomType.Parameter("apiSecretKey") String apiSecretKey) { - this.apiSecretKey = apiSecretKey; - } + private String apiSecretKey; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicro() {} /** * @return The Secret Access Key portion of the credentials. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicro defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String apiSecretKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicro defaults) { Objects.requireNonNull(defaults); this.apiSecretKey = defaults.apiSecretKey; } + @CustomType.Setter public Builder apiSecretKey(String apiSecretKey) { this.apiSecretKey = Objects.requireNonNull(apiSecretKey); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicro build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicro(apiSecretKey); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicro build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicro(); + o.apiSecretKey = apiSecretKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeeva.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeeva.java index 033dbf484f9..13dd28c567c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeeva.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeeva.java @@ -13,21 +13,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The password that corresponds to the user name. * */ - private final String password; + private String password; /** * @return The name of the user. * */ - private final String username; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeeva( - @CustomType.Parameter("password") String password, - @CustomType.Parameter("username") String username) { - this.password = password; - this.username = username; - } + private String username; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeeva() {} /** * @return The password that corresponds to the user name. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeeva defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String password; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeeva defaults) { Objects.requireNonNull(defaults); this.password = defaults.password; this.username = defaults.username; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeeva build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeeva(password, username); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeeva build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeeva(); + o.password = password; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendesk.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendesk.java index 210be0ae1a8..54e9f3b8294 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendesk.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendesk.java @@ -16,35 +16,24 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The credentials used to access protected Zendesk resources. * */ - private final @Nullable String accessToken; + private @Nullable String accessToken; /** * @return The identifier for the desired client. * */ - private final String clientId; + private String clientId; /** * @return The client secret used by the OAuth client to authenticate to the authorization server. * */ - private final String clientSecret; + private String clientSecret; /** * @return The OAuth requirement needed to request security tokens from the connector endpoint. See OAuth Request for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest oauthRequest; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendesk( - @CustomType.Parameter("accessToken") @Nullable String accessToken, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("oauthRequest") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest oauthRequest) { - this.accessToken = accessToken; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.oauthRequest = oauthRequest; - } + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest oauthRequest; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendesk() {} /** * @return The credentials used to access protected Zendesk resources. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendesk defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessToken; private String clientId; private String clientSecret; private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest oauthRequest; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendesk defaults) { Objects.requireNonNull(defaults); this.accessToken = defaults.accessToken; @@ -100,23 +85,33 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentials this.oauthRequest = defaults.oauthRequest; } + @CustomType.Setter public Builder accessToken(@Nullable String accessToken) { this.accessToken = accessToken; return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder oauthRequest(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest oauthRequest) { this.oauthRequest = oauthRequest; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendesk build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendesk(accessToken, clientId, clientSecret, oauthRequest); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendesk build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendesk(); + o.accessToken = accessToken; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.oauthRequest = oauthRequest; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest.java index c578bbcb1ca..751de4eee75 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest.java @@ -15,21 +15,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfileCredent * @return The code provided by the connector when it has been authenticated via the connected app. * */ - private final @Nullable String authCode; + private @Nullable String authCode; /** * @return The URL to which the authentication server redirects the browser after authorization has been granted. * */ - private final @Nullable String redirectUri; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest( - @CustomType.Parameter("authCode") @Nullable String authCode, - @CustomType.Parameter("redirectUri") @Nullable String redirectUri) { - this.authCode = authCode; - this.redirectUri = redirectUri; - } + private @Nullable String redirectUri; + private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest() {} /** * @return The code provided by the connector when it has been authenticated via the connected app. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String authCode; private @Nullable String redirectUri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest defaults) { Objects.requireNonNull(defaults); this.authCode = defaults.authCode; this.redirectUri = defaults.redirectUri; } + @CustomType.Setter public Builder authCode(@Nullable String authCode) { this.authCode = authCode; return this; } + @CustomType.Setter public Builder redirectUri(@Nullable String redirectUri) { this.redirectUri = redirectUri; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest(authCode, redirectUri); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequest(); + o.authCode = authCode; + o.redirectUri = redirectUri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileProperties.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileProperties.java index e573b5649d3..bb3c2bba708 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfileProperties.java @@ -32,133 +32,94 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The connector-specific credentials required when using Amplitude. See Amplitude Connector Profile Credentials for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude amplitude; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude amplitude; /** * @return The connector-specific profile properties required when using the custom connector. See Custom Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector customConnector; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector customConnector; /** * @return The connector-specific properties required when using Datadog. See Generic Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog datadog; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog datadog; /** * @return The connector-specific properties required when using Dynatrace. See Generic Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace dynatrace; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace dynatrace; /** * @return The connector-specific credentials required when using Google Analytics. See Google Analytics Connector Profile Credentials for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics googleAnalytics; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics googleAnalytics; /** * @return The connector-specific credentials required when using Amazon Honeycode. See Honeycode Connector Profile Credentials for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode honeycode; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode honeycode; /** * @return The connector-specific properties required when using Infor Nexus. See Generic Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus inforNexus; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus inforNexus; /** * @return The connector-specific properties required when using Marketo. See Generic Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo marketo; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo marketo; /** * @return The connector-specific properties required when using Amazon Redshift. See Redshift Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift redshift; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift redshift; /** * @return The connector-specific properties required when using Salesforce. See Salesforce Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce salesforce; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce salesforce; /** * @return The connector-specific properties required when using SAPOData. See SAPOData Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData sapoData; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData sapoData; /** * @return The connector-specific properties required when using ServiceNow. See Generic Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow serviceNow; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow serviceNow; /** * @return The connector-specific credentials required when using Singular. See Singular Connector Profile Credentials for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular singular; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular singular; /** * @return The connector-specific properties required when using Slack. See Generic Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack slack; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack slack; /** * @return The connector-specific properties required when using Snowflake. See Snowflake Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake snowflake; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake snowflake; /** * @return The connector-specific credentials required when using Trend Micro. See Trend Micro Connector Profile Credentials for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro trendmicro; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro trendmicro; /** * @return The connector-specific properties required when using Veeva. See Generic Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva veeva; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva veeva; /** * @return The connector-specific properties required when using Zendesk. See Generic Connector Profile Properties for more details. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk zendesk; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfileProperties( - @CustomType.Parameter("amplitude") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude amplitude, - @CustomType.Parameter("customConnector") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector customConnector, - @CustomType.Parameter("datadog") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog datadog, - @CustomType.Parameter("dynatrace") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace dynatrace, - @CustomType.Parameter("googleAnalytics") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics googleAnalytics, - @CustomType.Parameter("honeycode") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode honeycode, - @CustomType.Parameter("inforNexus") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus inforNexus, - @CustomType.Parameter("marketo") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo marketo, - @CustomType.Parameter("redshift") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift redshift, - @CustomType.Parameter("salesforce") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce salesforce, - @CustomType.Parameter("sapoData") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData sapoData, - @CustomType.Parameter("serviceNow") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow serviceNow, - @CustomType.Parameter("singular") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular singular, - @CustomType.Parameter("slack") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack slack, - @CustomType.Parameter("snowflake") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake snowflake, - @CustomType.Parameter("trendmicro") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro trendmicro, - @CustomType.Parameter("veeva") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva veeva, - @CustomType.Parameter("zendesk") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk zendesk) { - this.amplitude = amplitude; - this.customConnector = customConnector; - this.datadog = datadog; - this.dynatrace = dynatrace; - this.googleAnalytics = googleAnalytics; - this.honeycode = honeycode; - this.inforNexus = inforNexus; - this.marketo = marketo; - this.redshift = redshift; - this.salesforce = salesforce; - this.sapoData = sapoData; - this.serviceNow = serviceNow; - this.singular = singular; - this.slack = slack; - this.snowflake = snowflake; - this.trendmicro = trendmicro; - this.veeva = veeva; - this.zendesk = zendesk; - } + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk zendesk; + private ConnectorProfileConnectorProfileConfigConnectorProfileProperties() {} /** * @return The connector-specific credentials required when using Amplitude. See Amplitude Connector Profile Credentials for more details. * @@ -293,7 +254,7 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfileProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude amplitude; private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector customConnector; @@ -313,11 +274,7 @@ public static final class Builder { private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro trendmicro; private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva veeva; private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk zendesk; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileProperties defaults) { Objects.requireNonNull(defaults); this.amplitude = defaults.amplitude; @@ -340,79 +297,117 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfileProperties this.zendesk = defaults.zendesk; } + @CustomType.Setter public Builder amplitude(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude amplitude) { this.amplitude = amplitude; return this; } + @CustomType.Setter public Builder customConnector(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector customConnector) { this.customConnector = customConnector; return this; } + @CustomType.Setter public Builder datadog(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog datadog) { this.datadog = datadog; return this; } + @CustomType.Setter public Builder dynatrace(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace dynatrace) { this.dynatrace = dynatrace; return this; } + @CustomType.Setter public Builder googleAnalytics(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics googleAnalytics) { this.googleAnalytics = googleAnalytics; return this; } + @CustomType.Setter public Builder honeycode(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode honeycode) { this.honeycode = honeycode; return this; } + @CustomType.Setter public Builder inforNexus(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus inforNexus) { this.inforNexus = inforNexus; return this; } + @CustomType.Setter public Builder marketo(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo marketo) { this.marketo = marketo; return this; } + @CustomType.Setter public Builder redshift(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift redshift) { this.redshift = redshift; return this; } + @CustomType.Setter public Builder salesforce(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce salesforce) { this.salesforce = salesforce; return this; } + @CustomType.Setter public Builder sapoData(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData sapoData) { this.sapoData = sapoData; return this; } + @CustomType.Setter public Builder serviceNow(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow serviceNow) { this.serviceNow = serviceNow; return this; } + @CustomType.Setter public Builder singular(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular singular) { this.singular = singular; return this; } + @CustomType.Setter public Builder slack(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack slack) { this.slack = slack; return this; } + @CustomType.Setter public Builder snowflake(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake snowflake) { this.snowflake = snowflake; return this; } + @CustomType.Setter public Builder trendmicro(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro trendmicro) { this.trendmicro = trendmicro; return this; } + @CustomType.Setter public Builder veeva(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva veeva) { this.veeva = veeva; return this; } + @CustomType.Setter public Builder zendesk(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk zendesk) { this.zendesk = zendesk; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfileProperties build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfileProperties(amplitude, customConnector, datadog, dynatrace, googleAnalytics, honeycode, inforNexus, marketo, redshift, salesforce, sapoData, serviceNow, singular, slack, snowflake, trendmicro, veeva, zendesk); + } + public ConnectorProfileConnectorProfileConfigConnectorProfileProperties build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfileProperties(); + o.amplitude = amplitude; + o.customConnector = customConnector; + o.datadog = datadog; + o.dynatrace = dynatrace; + o.googleAnalytics = googleAnalytics; + o.honeycode = honeycode; + o.inforNexus = inforNexus; + o.marketo = marketo; + o.redshift = redshift; + o.salesforce = salesforce; + o.sapoData = sapoData; + o.serviceNow = serviceNow; + o.singular = singular; + o.slack = slack; + o.snowflake = snowflake; + o.trendmicro = trendmicro; + o.veeva = veeva; + o.zendesk = zendesk; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude.java index 228a350a162..2258e2a2149 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude.java @@ -8,10 +8,7 @@ @CustomType public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude { - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude() { - } - + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude defaults) { Objects.requireNonNull(defaults); } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude(); + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitude(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector.java index b4ac2852282..906307a114d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector.java @@ -17,21 +17,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The OAuth 2.0 properties required for OAuth 2.0 authentication. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties oauth2Properties; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties oauth2Properties; /** * @return A map of properties that are required to create a profile for the custom connector. * */ - private final @Nullable Map profileProperties; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector( - @CustomType.Parameter("oauth2Properties") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties oauth2Properties, - @CustomType.Parameter("profileProperties") @Nullable Map profileProperties) { - this.oauth2Properties = oauth2Properties; - this.profileProperties = profileProperties; - } + private @Nullable Map profileProperties; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector() {} /** * @return The OAuth 2.0 properties required for OAuth 2.0 authentication. * @@ -54,30 +47,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties oauth2Properties; private @Nullable Map profileProperties; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector defaults) { Objects.requireNonNull(defaults); this.oauth2Properties = defaults.oauth2Properties; this.profileProperties = defaults.profileProperties; } + @CustomType.Setter public Builder oauth2Properties(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties oauth2Properties) { this.oauth2Properties = oauth2Properties; return this; } + @CustomType.Setter public Builder profileProperties(@Nullable Map profileProperties) { this.profileProperties = profileProperties; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector(oauth2Properties, profileProperties); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnector(); + o.oauth2Properties = oauth2Properties; + o.profileProperties = profileProperties; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties.java index ec9db6bab6f..9f6260afe56 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties.java @@ -15,28 +15,19 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication. One of: `AUTHORIZATION_CODE`, `CLIENT_CREDENTIALS`. * */ - private final String oauth2GrantType; + private String oauth2GrantType; /** * @return The token url required to fetch access/refresh tokens using authorization code and also to refresh expired access token using refresh token. * */ - private final String tokenUrl; + private String tokenUrl; /** * @return Associates your token URL with a map of properties that you define. Use this parameter to provide any additional details that the connector requires to authenticate your request. * */ - private final @Nullable Map tokenUrlCustomProperties; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties( - @CustomType.Parameter("oauth2GrantType") String oauth2GrantType, - @CustomType.Parameter("tokenUrl") String tokenUrl, - @CustomType.Parameter("tokenUrlCustomProperties") @Nullable Map tokenUrlCustomProperties) { - this.oauth2GrantType = oauth2GrantType; - this.tokenUrl = tokenUrl; - this.tokenUrlCustomProperties = tokenUrlCustomProperties; - } + private @Nullable Map tokenUrlCustomProperties; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties() {} /** * @return The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication. One of: `AUTHORIZATION_CODE`, `CLIENT_CREDENTIALS`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String oauth2GrantType; private String tokenUrl; private @Nullable Map tokenUrlCustomProperties; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties defaults) { Objects.requireNonNull(defaults); this.oauth2GrantType = defaults.oauth2GrantType; @@ -83,19 +70,27 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesC this.tokenUrlCustomProperties = defaults.tokenUrlCustomProperties; } + @CustomType.Setter public Builder oauth2GrantType(String oauth2GrantType) { this.oauth2GrantType = Objects.requireNonNull(oauth2GrantType); return this; } + @CustomType.Setter public Builder tokenUrl(String tokenUrl) { this.tokenUrl = Objects.requireNonNull(tokenUrl); return this; } + @CustomType.Setter public Builder tokenUrlCustomProperties(@Nullable Map tokenUrlCustomProperties) { this.tokenUrlCustomProperties = tokenUrlCustomProperties; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties(oauth2GrantType, tokenUrl, tokenUrlCustomProperties); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2Properties(); + o.oauth2GrantType = oauth2GrantType; + o.tokenUrl = tokenUrl; + o.tokenUrlCustomProperties = tokenUrlCustomProperties; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog.java index ac02b5ce681..2550b8212a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog.java @@ -13,13 +13,9 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The location of the Salesforce resource. * */ - private final String instanceUrl; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog(@CustomType.Parameter("instanceUrl") String instanceUrl) { - this.instanceUrl = instanceUrl; - } + private String instanceUrl; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog() {} /** * @return The location of the Salesforce resource. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String instanceUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog defaults) { Objects.requireNonNull(defaults); this.instanceUrl = defaults.instanceUrl; } + @CustomType.Setter public Builder instanceUrl(String instanceUrl) { this.instanceUrl = Objects.requireNonNull(instanceUrl); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog(instanceUrl); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadog(); + o.instanceUrl = instanceUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace.java index d70ee5eff6a..2309424d4aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace.java @@ -13,13 +13,9 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The location of the Salesforce resource. * */ - private final String instanceUrl; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace(@CustomType.Parameter("instanceUrl") String instanceUrl) { - this.instanceUrl = instanceUrl; - } + private String instanceUrl; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace() {} /** * @return The location of the Salesforce resource. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String instanceUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace defaults) { Objects.requireNonNull(defaults); this.instanceUrl = defaults.instanceUrl; } + @CustomType.Setter public Builder instanceUrl(String instanceUrl) { this.instanceUrl = Objects.requireNonNull(instanceUrl); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace(instanceUrl); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatrace(); + o.instanceUrl = instanceUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics.java index 23a18a9b60c..1f784d8b00a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics.java @@ -8,10 +8,7 @@ @CustomType public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics { - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics() { - } - + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics defaults) { Objects.requireNonNull(defaults); } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics(); + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalytics(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode.java index b774cf496d4..9360e10855e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode.java @@ -8,10 +8,7 @@ @CustomType public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode { - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode() { - } - + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode defaults) { Objects.requireNonNull(defaults); } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode(); + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycode(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus.java index b78b24768c7..497e34c53be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus.java @@ -13,13 +13,9 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The location of the Salesforce resource. * */ - private final String instanceUrl; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus(@CustomType.Parameter("instanceUrl") String instanceUrl) { - this.instanceUrl = instanceUrl; - } + private String instanceUrl; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus() {} /** * @return The location of the Salesforce resource. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String instanceUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus defaults) { Objects.requireNonNull(defaults); this.instanceUrl = defaults.instanceUrl; } + @CustomType.Setter public Builder instanceUrl(String instanceUrl) { this.instanceUrl = Objects.requireNonNull(instanceUrl); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus(instanceUrl); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexus(); + o.instanceUrl = instanceUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo.java index 55d6f526e76..91ba969327d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo.java @@ -13,13 +13,9 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The location of the Salesforce resource. * */ - private final String instanceUrl; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo(@CustomType.Parameter("instanceUrl") String instanceUrl) { - this.instanceUrl = instanceUrl; - } + private String instanceUrl; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo() {} /** * @return The location of the Salesforce resource. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String instanceUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo defaults) { Objects.requireNonNull(defaults); this.instanceUrl = defaults.instanceUrl; } + @CustomType.Setter public Builder instanceUrl(String instanceUrl) { this.instanceUrl = Objects.requireNonNull(instanceUrl); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo(instanceUrl); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketo(); + o.instanceUrl = instanceUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift.java index 1ee09f0ce75..86d52353855 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift.java @@ -15,35 +15,24 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The name of the Amazon S3 bucket associated with Snowflake. * */ - private final String bucketName; + private String bucketName; /** * @return The bucket path that refers to the Amazon S3 bucket associated with Snowflake. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return The JDBC URL of the Amazon Redshift cluster. * */ - private final @Nullable String databaseUrl; + private @Nullable String databaseUrl; /** * @return The Amazon Resource Name (ARN) of the IAM role. * */ - private final String roleArn; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift( - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("databaseUrl") @Nullable String databaseUrl, - @CustomType.Parameter("roleArn") String roleArn) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.databaseUrl = databaseUrl; - this.roleArn = roleArn; - } + private String roleArn; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift() {} /** * @return The name of the Amazon S3 bucket associated with Snowflake. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketName; private @Nullable String bucketPrefix; private @Nullable String databaseUrl; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -99,23 +84,33 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesR this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder databaseUrl(@Nullable String databaseUrl) { this.databaseUrl = databaseUrl; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift(bucketName, bucketPrefix, databaseUrl, roleArn); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshift(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.databaseUrl = databaseUrl; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce.java index 9e550ffb371..f394bd6a6ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce.java @@ -16,21 +16,14 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The location of the Salesforce resource. * */ - private final @Nullable String instanceUrl; + private @Nullable String instanceUrl; /** * @return Indicates whether the connector profile applies to a sandbox or production environment. * */ - private final @Nullable Boolean isSandboxEnvironment; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce( - @CustomType.Parameter("instanceUrl") @Nullable String instanceUrl, - @CustomType.Parameter("isSandboxEnvironment") @Nullable Boolean isSandboxEnvironment) { - this.instanceUrl = instanceUrl; - this.isSandboxEnvironment = isSandboxEnvironment; - } + private @Nullable Boolean isSandboxEnvironment; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce() {} /** * @return The location of the Salesforce resource. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String instanceUrl; private @Nullable Boolean isSandboxEnvironment; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce defaults) { Objects.requireNonNull(defaults); this.instanceUrl = defaults.instanceUrl; this.isSandboxEnvironment = defaults.isSandboxEnvironment; } + @CustomType.Setter public Builder instanceUrl(@Nullable String instanceUrl) { this.instanceUrl = instanceUrl; return this; } + @CustomType.Setter public Builder isSandboxEnvironment(@Nullable Boolean isSandboxEnvironment) { this.isSandboxEnvironment = isSandboxEnvironment; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce(instanceUrl, isSandboxEnvironment); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforce(); + o.instanceUrl = instanceUrl; + o.isSandboxEnvironment = isSandboxEnvironment; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData.java index 0389d752260..4b29bc4a16f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData.java @@ -17,56 +17,39 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The location of the SAPOData resource. * */ - private final String applicationHostUrl; + private String applicationHostUrl; /** * @return The application path to catalog service. * */ - private final String applicationServicePath; + private String applicationServicePath; /** * @return The client number for the client creating the connection. * */ - private final String clientNumber; + private String clientNumber; /** * @return The logon language of SAPOData instance. * */ - private final @Nullable String logonLanguage; + private @Nullable String logonLanguage; /** * @return The SAPOData OAuth properties required for OAuth type authentication. * */ - private final @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties oauthProperties; + private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties oauthProperties; /** * @return The port number of the SAPOData instance. * */ - private final Integer portNumber; + private Integer portNumber; /** * @return The Snowflake Private Link service name to be used for private data transfers. * */ - private final @Nullable String privateLinkServiceName; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData( - @CustomType.Parameter("applicationHostUrl") String applicationHostUrl, - @CustomType.Parameter("applicationServicePath") String applicationServicePath, - @CustomType.Parameter("clientNumber") String clientNumber, - @CustomType.Parameter("logonLanguage") @Nullable String logonLanguage, - @CustomType.Parameter("oauthProperties") @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties oauthProperties, - @CustomType.Parameter("portNumber") Integer portNumber, - @CustomType.Parameter("privateLinkServiceName") @Nullable String privateLinkServiceName) { - this.applicationHostUrl = applicationHostUrl; - this.applicationServicePath = applicationServicePath; - this.clientNumber = clientNumber; - this.logonLanguage = logonLanguage; - this.oauthProperties = oauthProperties; - this.portNumber = portNumber; - this.privateLinkServiceName = privateLinkServiceName; - } + private @Nullable String privateLinkServiceName; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData() {} /** * @return The location of the SAPOData resource. * @@ -124,7 +107,7 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String applicationHostUrl; private String applicationServicePath; @@ -133,11 +116,7 @@ public static final class Builder { private @Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties oauthProperties; private Integer portNumber; private @Nullable String privateLinkServiceName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData defaults) { Objects.requireNonNull(defaults); this.applicationHostUrl = defaults.applicationHostUrl; @@ -149,35 +128,51 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesS this.privateLinkServiceName = defaults.privateLinkServiceName; } + @CustomType.Setter public Builder applicationHostUrl(String applicationHostUrl) { this.applicationHostUrl = Objects.requireNonNull(applicationHostUrl); return this; } + @CustomType.Setter public Builder applicationServicePath(String applicationServicePath) { this.applicationServicePath = Objects.requireNonNull(applicationServicePath); return this; } + @CustomType.Setter public Builder clientNumber(String clientNumber) { this.clientNumber = Objects.requireNonNull(clientNumber); return this; } + @CustomType.Setter public Builder logonLanguage(@Nullable String logonLanguage) { this.logonLanguage = logonLanguage; return this; } + @CustomType.Setter public Builder oauthProperties(@Nullable ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties oauthProperties) { this.oauthProperties = oauthProperties; return this; } + @CustomType.Setter public Builder portNumber(Integer portNumber) { this.portNumber = Objects.requireNonNull(portNumber); return this; } + @CustomType.Setter public Builder privateLinkServiceName(@Nullable String privateLinkServiceName) { this.privateLinkServiceName = privateLinkServiceName; return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData(applicationHostUrl, applicationServicePath, clientNumber, logonLanguage, oauthProperties, portNumber, privateLinkServiceName); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoData(); + o.applicationHostUrl = applicationHostUrl; + o.applicationServicePath = applicationServicePath; + o.clientNumber = clientNumber; + o.logonLanguage = logonLanguage; + o.oauthProperties = oauthProperties; + o.portNumber = portNumber; + o.privateLinkServiceName = privateLinkServiceName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties.java index 12bf347310c..4a73964a10d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties.java @@ -14,28 +14,19 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth type authentication. * */ - private final String authCodeUrl; + private String authCodeUrl; /** * @return The OAuth scopes required for OAuth type authentication. * */ - private final List oauthScopes; + private List oauthScopes; /** * @return The token url required to fetch access/refresh tokens using authorization code and also to refresh expired access token using refresh token. * */ - private final String tokenUrl; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties( - @CustomType.Parameter("authCodeUrl") String authCodeUrl, - @CustomType.Parameter("oauthScopes") List oauthScopes, - @CustomType.Parameter("tokenUrl") String tokenUrl) { - this.authCodeUrl = authCodeUrl; - this.oauthScopes = oauthScopes; - this.tokenUrl = tokenUrl; - } + private String tokenUrl; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties() {} /** * @return The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth type authentication. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String authCodeUrl; private List oauthScopes; private String tokenUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties defaults) { Objects.requireNonNull(defaults); this.authCodeUrl = defaults.authCodeUrl; @@ -82,10 +69,12 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesS this.tokenUrl = defaults.tokenUrl; } + @CustomType.Setter public Builder authCodeUrl(String authCodeUrl) { this.authCodeUrl = Objects.requireNonNull(authCodeUrl); return this; } + @CustomType.Setter public Builder oauthScopes(List oauthScopes) { this.oauthScopes = Objects.requireNonNull(oauthScopes); return this; @@ -93,11 +82,17 @@ public Builder oauthScopes(List oauthScopes) { public Builder oauthScopes(String... oauthScopes) { return oauthScopes(List.of(oauthScopes)); } + @CustomType.Setter public Builder tokenUrl(String tokenUrl) { this.tokenUrl = Objects.requireNonNull(tokenUrl); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties(authCodeUrl, oauthScopes, tokenUrl); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthProperties(); + o.authCodeUrl = authCodeUrl; + o.oauthScopes = oauthScopes; + o.tokenUrl = tokenUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow.java index cef7afc784b..aede66a63d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow.java @@ -13,13 +13,9 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The location of the Salesforce resource. * */ - private final String instanceUrl; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow(@CustomType.Parameter("instanceUrl") String instanceUrl) { - this.instanceUrl = instanceUrl; - } + private String instanceUrl; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow() {} /** * @return The location of the Salesforce resource. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String instanceUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow defaults) { Objects.requireNonNull(defaults); this.instanceUrl = defaults.instanceUrl; } + @CustomType.Setter public Builder instanceUrl(String instanceUrl) { this.instanceUrl = Objects.requireNonNull(instanceUrl); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow(instanceUrl); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNow(); + o.instanceUrl = instanceUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular.java index bd5f7032f23..4b6c08810c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular.java @@ -8,10 +8,7 @@ @CustomType public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular { - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular() { - } - + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular defaults) { Objects.requireNonNull(defaults); } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular(); + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingular(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack.java index b8b0f2d2bf6..ca0ac4a574a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack.java @@ -13,13 +13,9 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The location of the Salesforce resource. * */ - private final String instanceUrl; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack(@CustomType.Parameter("instanceUrl") String instanceUrl) { - this.instanceUrl = instanceUrl; - } + private String instanceUrl; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack() {} /** * @return The location of the Salesforce resource. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String instanceUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack defaults) { Objects.requireNonNull(defaults); this.instanceUrl = defaults.instanceUrl; } + @CustomType.Setter public Builder instanceUrl(String instanceUrl) { this.instanceUrl = Objects.requireNonNull(instanceUrl); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack(instanceUrl); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlack(); + o.instanceUrl = instanceUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake.java index 48fefc750ae..5728d65e889 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake.java @@ -15,56 +15,39 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The name of the account. * */ - private final @Nullable String accountName; + private @Nullable String accountName; /** * @return The name of the Amazon S3 bucket associated with Snowflake. * */ - private final String bucketName; + private String bucketName; /** * @return The bucket path that refers to the Amazon S3 bucket associated with Snowflake. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return The Snowflake Private Link service name to be used for private data transfers. * */ - private final @Nullable String privateLinkServiceName; + private @Nullable String privateLinkServiceName; /** * @return The AWS Region of the Snowflake account. * */ - private final @Nullable String region; + private @Nullable String region; /** * @return The name of the Amazon S3 stage that was created while setting up an Amazon S3 stage in the Snowflake account. This is written in the following format: `<Database>.<Schema>.<Stage Name>`. * */ - private final String stage; + private String stage; /** * @return The name of the Snowflake warehouse. * */ - private final String warehouse; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake( - @CustomType.Parameter("accountName") @Nullable String accountName, - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("privateLinkServiceName") @Nullable String privateLinkServiceName, - @CustomType.Parameter("region") @Nullable String region, - @CustomType.Parameter("stage") String stage, - @CustomType.Parameter("warehouse") String warehouse) { - this.accountName = accountName; - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.privateLinkServiceName = privateLinkServiceName; - this.region = region; - this.stage = stage; - this.warehouse = warehouse; - } + private String warehouse; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake() {} /** * @return The name of the account. * @@ -122,7 +105,7 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accountName; private String bucketName; @@ -131,11 +114,7 @@ public static final class Builder { private @Nullable String region; private String stage; private String warehouse; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake defaults) { Objects.requireNonNull(defaults); this.accountName = defaults.accountName; @@ -147,35 +126,51 @@ public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesS this.warehouse = defaults.warehouse; } + @CustomType.Setter public Builder accountName(@Nullable String accountName) { this.accountName = accountName; return this; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder privateLinkServiceName(@Nullable String privateLinkServiceName) { this.privateLinkServiceName = privateLinkServiceName; return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; } + @CustomType.Setter public Builder stage(String stage) { this.stage = Objects.requireNonNull(stage); return this; } + @CustomType.Setter public Builder warehouse(String warehouse) { this.warehouse = Objects.requireNonNull(warehouse); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake(accountName, bucketName, bucketPrefix, privateLinkServiceName, region, stage, warehouse); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflake(); + o.accountName = accountName; + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.privateLinkServiceName = privateLinkServiceName; + o.region = region; + o.stage = stage; + o.warehouse = warehouse; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro.java index de95568ec3a..520a5fdd0f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro.java @@ -8,10 +8,7 @@ @CustomType public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro { - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro() { - } - + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro defaults) { Objects.requireNonNull(defaults); } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro(); + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicro(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva.java index 1bf99b13892..30896abbfa6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva.java @@ -13,13 +13,9 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The location of the Salesforce resource. * */ - private final String instanceUrl; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva(@CustomType.Parameter("instanceUrl") String instanceUrl) { - this.instanceUrl = instanceUrl; - } + private String instanceUrl; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva() {} /** * @return The location of the Salesforce resource. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String instanceUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva defaults) { Objects.requireNonNull(defaults); this.instanceUrl = defaults.instanceUrl; } + @CustomType.Setter public Builder instanceUrl(String instanceUrl) { this.instanceUrl = Objects.requireNonNull(instanceUrl); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva(instanceUrl); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeeva(); + o.instanceUrl = instanceUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk.java index 58e91be4f68..3c803721ee1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk.java @@ -13,13 +13,9 @@ public final class ConnectorProfileConnectorProfileConfigConnectorProfilePropert * @return The location of the Salesforce resource. * */ - private final String instanceUrl; - - @CustomType.Constructor - private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk(@CustomType.Parameter("instanceUrl") String instanceUrl) { - this.instanceUrl = instanceUrl; - } + private String instanceUrl; + private ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk() {} /** * @return The location of the Salesforce resource. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String instanceUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk defaults) { Objects.requireNonNull(defaults); this.instanceUrl = defaults.instanceUrl; } + @CustomType.Setter public Builder instanceUrl(String instanceUrl) { this.instanceUrl = Objects.requireNonNull(instanceUrl); return this; - } public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk build() { - return new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk(instanceUrl); + } + public ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk build() { + final var o = new ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendesk(); + o.instanceUrl = instanceUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfig.java index fa435218c53..e4164aa4399 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfig.java @@ -16,35 +16,24 @@ public final class FlowDestinationFlowConfig { * @return The API version that the destination connector uses. * */ - private final @Nullable String apiVersion; + private @Nullable String apiVersion; /** * @return The name of the connector profile. This name must be unique for each connector profile in the AWS account. * */ - private final @Nullable String connectorProfileName; + private @Nullable String connectorProfileName; /** * @return The type of connector, such as Salesforce, Amplitude, and so on. Valid values are `Salesforce`, `Singular`, `Slack`, `Redshift`, `S3`, `Marketo`, `Googleanalytics`, `Zendesk`, `Servicenow`, `Datadog`, `Trendmicro`, `Snowflake`, `Dynatrace`, `Infornexus`, `Amplitude`, `Veeva`, `EventBridge`, `LookoutMetrics`, `Upsolver`, `Honeycode`, `CustomerProfiles`, `SAPOData`, and `CustomConnector`. * */ - private final String connectorType; + private String connectorType; /** * @return This stores the information that is required to query a particular connector. See Destination Connector Properties for more information. * */ - private final FlowDestinationFlowConfigDestinationConnectorProperties destinationConnectorProperties; - - @CustomType.Constructor - private FlowDestinationFlowConfig( - @CustomType.Parameter("apiVersion") @Nullable String apiVersion, - @CustomType.Parameter("connectorProfileName") @Nullable String connectorProfileName, - @CustomType.Parameter("connectorType") String connectorType, - @CustomType.Parameter("destinationConnectorProperties") FlowDestinationFlowConfigDestinationConnectorProperties destinationConnectorProperties) { - this.apiVersion = apiVersion; - this.connectorProfileName = connectorProfileName; - this.connectorType = connectorType; - this.destinationConnectorProperties = destinationConnectorProperties; - } + private FlowDestinationFlowConfigDestinationConnectorProperties destinationConnectorProperties; + private FlowDestinationFlowConfig() {} /** * @return The API version that the destination connector uses. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String apiVersion; private @Nullable String connectorProfileName; private String connectorType; private FlowDestinationFlowConfigDestinationConnectorProperties destinationConnectorProperties; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfig defaults) { Objects.requireNonNull(defaults); this.apiVersion = defaults.apiVersion; @@ -100,23 +85,33 @@ public Builder(FlowDestinationFlowConfig defaults) { this.destinationConnectorProperties = defaults.destinationConnectorProperties; } + @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } + @CustomType.Setter public Builder connectorProfileName(@Nullable String connectorProfileName) { this.connectorProfileName = connectorProfileName; return this; } + @CustomType.Setter public Builder connectorType(String connectorType) { this.connectorType = Objects.requireNonNull(connectorType); return this; } + @CustomType.Setter public Builder destinationConnectorProperties(FlowDestinationFlowConfigDestinationConnectorProperties destinationConnectorProperties) { this.destinationConnectorProperties = Objects.requireNonNull(destinationConnectorProperties); return this; - } public FlowDestinationFlowConfig build() { - return new FlowDestinationFlowConfig(apiVersion, connectorProfileName, connectorType, destinationConnectorProperties); + } + public FlowDestinationFlowConfig build() { + final var o = new FlowDestinationFlowConfig(); + o.apiVersion = apiVersion; + o.connectorProfileName = connectorProfileName; + o.connectorType = connectorType; + o.destinationConnectorProperties = destinationConnectorProperties; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorProperties.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorProperties.java index bef372ae69e..0a0308cbfc2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorProperties.java @@ -27,94 +27,65 @@ public final class FlowDestinationFlowConfigDestinationConnectorProperties { * @return Operators supported by the custom connector. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector customConnector; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector customConnector; /** * @return The properties that are required to query Amazon Connect Customer Profiles. See Customer Profiles Destination Properties for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles customerProfiles; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles customerProfiles; /** * @return The properties that are required to query Amazon EventBridge. See Generic Destination Properties for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge eventBridge; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge eventBridge; /** * @return The properties that are required to query Amazon Honeycode. See Generic Destination Properties for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode honeycode; - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics lookoutMetrics; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode honeycode; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics lookoutMetrics; /** * @return The operation to be performed on the provided Marketo source fields. Valid values are `PROJECTION`, `BETWEEN`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo marketo; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo marketo; /** * @return The properties that are required to query Amazon Redshift. See Redshift Destination Properties for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift redshift; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift redshift; /** * @return The operation to be performed on the provided Amazon S3 source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3 s3; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3 s3; /** * @return The operation to be performed on the provided Salesforce source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce salesforce; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce salesforce; /** * @return The operation to be performed on the provided SAPOData source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData sapoData; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData sapoData; /** * @return The properties that are required to query Snowflake. See Snowflake Destination Properties for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake snowflake; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake snowflake; /** * @return The properties that are required to query Upsolver. See Upsolver Destination Properties for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver upsolver; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver upsolver; /** * @return The operation to be performed on the provided Zendesk source fields. Valid values are `PROJECTION`, `GREATER_THAN`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk zendesk; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorProperties( - @CustomType.Parameter("customConnector") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector customConnector, - @CustomType.Parameter("customerProfiles") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles customerProfiles, - @CustomType.Parameter("eventBridge") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge eventBridge, - @CustomType.Parameter("honeycode") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode honeycode, - @CustomType.Parameter("lookoutMetrics") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics lookoutMetrics, - @CustomType.Parameter("marketo") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo marketo, - @CustomType.Parameter("redshift") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift redshift, - @CustomType.Parameter("s3") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3 s3, - @CustomType.Parameter("salesforce") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce salesforce, - @CustomType.Parameter("sapoData") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData sapoData, - @CustomType.Parameter("snowflake") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake snowflake, - @CustomType.Parameter("upsolver") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver upsolver, - @CustomType.Parameter("zendesk") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk zendesk) { - this.customConnector = customConnector; - this.customerProfiles = customerProfiles; - this.eventBridge = eventBridge; - this.honeycode = honeycode; - this.lookoutMetrics = lookoutMetrics; - this.marketo = marketo; - this.redshift = redshift; - this.s3 = s3; - this.salesforce = salesforce; - this.sapoData = sapoData; - this.snowflake = snowflake; - this.upsolver = upsolver; - this.zendesk = zendesk; - } + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk zendesk; + private FlowDestinationFlowConfigDestinationConnectorProperties() {} /** * @return Operators supported by the custom connector. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * @@ -210,7 +181,7 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector customConnector; private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles customerProfiles; @@ -225,11 +196,7 @@ public static final class Builder { private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake snowflake; private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver upsolver; private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk zendesk; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorProperties defaults) { Objects.requireNonNull(defaults); this.customConnector = defaults.customConnector; @@ -247,59 +214,87 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorProperties defaults) this.zendesk = defaults.zendesk; } + @CustomType.Setter public Builder customConnector(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector customConnector) { this.customConnector = customConnector; return this; } + @CustomType.Setter public Builder customerProfiles(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles customerProfiles) { this.customerProfiles = customerProfiles; return this; } + @CustomType.Setter public Builder eventBridge(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge eventBridge) { this.eventBridge = eventBridge; return this; } + @CustomType.Setter public Builder honeycode(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode honeycode) { this.honeycode = honeycode; return this; } + @CustomType.Setter public Builder lookoutMetrics(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics lookoutMetrics) { this.lookoutMetrics = lookoutMetrics; return this; } + @CustomType.Setter public Builder marketo(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo marketo) { this.marketo = marketo; return this; } + @CustomType.Setter public Builder redshift(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift redshift) { this.redshift = redshift; return this; } + @CustomType.Setter public Builder s3(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3 s3) { this.s3 = s3; return this; } + @CustomType.Setter public Builder salesforce(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce salesforce) { this.salesforce = salesforce; return this; } + @CustomType.Setter public Builder sapoData(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData sapoData) { this.sapoData = sapoData; return this; } + @CustomType.Setter public Builder snowflake(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake snowflake) { this.snowflake = snowflake; return this; } + @CustomType.Setter public Builder upsolver(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver upsolver) { this.upsolver = upsolver; return this; } + @CustomType.Setter public Builder zendesk(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk zendesk) { this.zendesk = zendesk; return this; - } public FlowDestinationFlowConfigDestinationConnectorProperties build() { - return new FlowDestinationFlowConfigDestinationConnectorProperties(customConnector, customerProfiles, eventBridge, honeycode, lookoutMetrics, marketo, redshift, s3, salesforce, sapoData, snowflake, upsolver, zendesk); + } + public FlowDestinationFlowConfigDestinationConnectorProperties build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorProperties(); + o.customConnector = customConnector; + o.customerProfiles = customerProfiles; + o.eventBridge = eventBridge; + o.honeycode = honeycode; + o.lookoutMetrics = lookoutMetrics; + o.marketo = marketo; + o.redshift = redshift; + o.s3 = s3; + o.salesforce = salesforce; + o.sapoData = sapoData; + o.snowflake = snowflake; + o.upsolver = upsolver; + o.zendesk = zendesk; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector.java index 8d003026bfc..c03e9e0c43b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector.java @@ -18,42 +18,29 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesCustom * @return The custom properties that are specific to the connector when it's used as a source in the flow. Maximum of 50 items. * */ - private final @Nullable Map customProperties; + private @Nullable Map customProperties; /** * @return The entity specified in the custom connector as a source in the flow. * */ - private final String entityName; + private String entityName; /** * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig errorHandlingConfig; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig errorHandlingConfig; /** * @return The name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update or delete. * */ - private final @Nullable List idFieldNames; + private @Nullable List idFieldNames; /** * @return This specifies the type of write operation to be performed in Zendesk. When the value is `UPSERT`, then `id_field_names` is required. Valid values are `INSERT`, `UPSERT`, `UPDATE`, and `DELETE`. * */ - private final @Nullable String writeOperationType; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector( - @CustomType.Parameter("customProperties") @Nullable Map customProperties, - @CustomType.Parameter("entityName") String entityName, - @CustomType.Parameter("errorHandlingConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig errorHandlingConfig, - @CustomType.Parameter("idFieldNames") @Nullable List idFieldNames, - @CustomType.Parameter("writeOperationType") @Nullable String writeOperationType) { - this.customProperties = customProperties; - this.entityName = entityName; - this.errorHandlingConfig = errorHandlingConfig; - this.idFieldNames = idFieldNames; - this.writeOperationType = writeOperationType; - } + private @Nullable String writeOperationType; + private FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector() {} /** * @return The custom properties that are specific to the connector when it's used as a source in the flow. Maximum of 50 items. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map customProperties; private String entityName; private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig errorHandlingConfig; private @Nullable List idFieldNames; private @Nullable String writeOperationType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector defaults) { Objects.requireNonNull(defaults); this.customProperties = defaults.customProperties; @@ -118,18 +101,22 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConn this.writeOperationType = defaults.writeOperationType; } + @CustomType.Setter public Builder customProperties(@Nullable Map customProperties) { this.customProperties = customProperties; return this; } + @CustomType.Setter public Builder entityName(String entityName) { this.entityName = Objects.requireNonNull(entityName); return this; } + @CustomType.Setter public Builder errorHandlingConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig errorHandlingConfig) { this.errorHandlingConfig = errorHandlingConfig; return this; } + @CustomType.Setter public Builder idFieldNames(@Nullable List idFieldNames) { this.idFieldNames = idFieldNames; return this; @@ -137,11 +124,19 @@ public Builder idFieldNames(@Nullable List idFieldNames) { public Builder idFieldNames(String... idFieldNames) { return idFieldNames(List.of(idFieldNames)); } + @CustomType.Setter public Builder writeOperationType(@Nullable String writeOperationType) { this.writeOperationType = writeOperationType; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector(customProperties, entityName, errorHandlingConfig, idFieldNames, writeOperationType); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnector(); + o.customProperties = customProperties; + o.entityName = entityName; + o.errorHandlingConfig = errorHandlingConfig; + o.idFieldNames = idFieldNames; + o.writeOperationType = writeOperationType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig.java index 01d8f6a9a41..0112185f6e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig.java @@ -16,28 +16,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesCustom * @return The Amazon S3 bucket name where the source files are stored. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Specifies if the flow should fail after the first instance of a failure when attempting to place data in the destination. * */ - private final @Nullable Boolean failOnFirstDestinationError; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig( - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("failOnFirstDestinationError") @Nullable Boolean failOnFirstDestinationError) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.failOnFirstDestinationError = failOnFirstDestinationError; - } + private @Nullable Boolean failOnFirstDestinationError; + private FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketName; private @Nullable String bucketPrefix; private @Nullable Boolean failOnFirstDestinationError; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -84,19 +71,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConn this.failOnFirstDestinationError = defaults.failOnFirstDestinationError; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder failOnFirstDestinationError(@Nullable Boolean failOnFirstDestinationError) { this.failOnFirstDestinationError = failOnFirstDestinationError; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig(bucketName, bucketPrefix, failOnFirstDestinationError); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesCustomConnectorErrorHandlingConfig(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.failOnFirstDestinationError = failOnFirstDestinationError; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles.java index 34e1f305229..44c1cdfb4a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles.java @@ -15,21 +15,14 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesCustom * @return The unique name of the Amazon Connect Customer Profiles domain. * */ - private final String domainName; + private String domainName; /** * @return The object specified in the Amazon Connect Customer Profiles flow destination. * */ - private final @Nullable String objectTypeName; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles( - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("objectTypeName") @Nullable String objectTypeName) { - this.domainName = domainName; - this.objectTypeName = objectTypeName; - } + private @Nullable String objectTypeName; + private FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles() {} /** * @return The unique name of the Amazon Connect Customer Profiles domain. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String domainName; private @Nullable String objectTypeName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles defaults) { Objects.requireNonNull(defaults); this.domainName = defaults.domainName; this.objectTypeName = defaults.objectTypeName; } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder objectTypeName(@Nullable String objectTypeName) { this.objectTypeName = objectTypeName; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles(domainName, objectTypeName); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesCustomerProfiles(); + o.domainName = domainName; + o.objectTypeName = objectTypeName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge.java index 7e838343f69..4706a5ace51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge.java @@ -16,21 +16,14 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesEventB * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig errorHandlingConfig; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig errorHandlingConfig; /** * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge( - @CustomType.Parameter("errorHandlingConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig errorHandlingConfig, - @CustomType.Parameter("object") String object) { - this.errorHandlingConfig = errorHandlingConfig; - this.object = object; - } + private String object; + private FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge() {} /** * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig errorHandlingConfig; private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge defaults) { Objects.requireNonNull(defaults); this.errorHandlingConfig = defaults.errorHandlingConfig; this.object = defaults.object; } + @CustomType.Setter public Builder errorHandlingConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig errorHandlingConfig) { this.errorHandlingConfig = errorHandlingConfig; return this; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge(errorHandlingConfig, object); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridge(); + o.errorHandlingConfig = errorHandlingConfig; + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig.java index 5b9ba80defe..31595d2d19b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig.java @@ -16,28 +16,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesEventB * @return The Amazon S3 bucket name where the source files are stored. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Specifies if the flow should fail after the first instance of a failure when attempting to place data in the destination. * */ - private final @Nullable Boolean failOnFirstDestinationError; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig( - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("failOnFirstDestinationError") @Nullable Boolean failOnFirstDestinationError) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.failOnFirstDestinationError = failOnFirstDestinationError; - } + private @Nullable Boolean failOnFirstDestinationError; + private FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketName; private @Nullable String bucketPrefix; private @Nullable Boolean failOnFirstDestinationError; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -84,19 +71,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridg this.failOnFirstDestinationError = defaults.failOnFirstDestinationError; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder failOnFirstDestinationError(@Nullable Boolean failOnFirstDestinationError) { this.failOnFirstDestinationError = failOnFirstDestinationError; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig(bucketName, bucketPrefix, failOnFirstDestinationError); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesEventBridgeErrorHandlingConfig(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.failOnFirstDestinationError = failOnFirstDestinationError; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode.java index 06a224b7255..c21a2f88cc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode.java @@ -16,21 +16,14 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesHoneyc * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig errorHandlingConfig; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig errorHandlingConfig; /** * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode( - @CustomType.Parameter("errorHandlingConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig errorHandlingConfig, - @CustomType.Parameter("object") String object) { - this.errorHandlingConfig = errorHandlingConfig; - this.object = object; - } + private String object; + private FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode() {} /** * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig errorHandlingConfig; private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode defaults) { Objects.requireNonNull(defaults); this.errorHandlingConfig = defaults.errorHandlingConfig; this.object = defaults.object; } + @CustomType.Setter public Builder errorHandlingConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig errorHandlingConfig) { this.errorHandlingConfig = errorHandlingConfig; return this; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode(errorHandlingConfig, object); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycode(); + o.errorHandlingConfig = errorHandlingConfig; + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig.java index 95aa31bbc30..9301a3b3acc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig.java @@ -16,28 +16,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesHoneyc * @return The Amazon S3 bucket name where the source files are stored. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Specifies if the flow should fail after the first instance of a failure when attempting to place data in the destination. * */ - private final @Nullable Boolean failOnFirstDestinationError; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig( - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("failOnFirstDestinationError") @Nullable Boolean failOnFirstDestinationError) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.failOnFirstDestinationError = failOnFirstDestinationError; - } + private @Nullable Boolean failOnFirstDestinationError; + private FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketName; private @Nullable String bucketPrefix; private @Nullable Boolean failOnFirstDestinationError; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -84,19 +71,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeE this.failOnFirstDestinationError = defaults.failOnFirstDestinationError; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder failOnFirstDestinationError(@Nullable Boolean failOnFirstDestinationError) { this.failOnFirstDestinationError = failOnFirstDestinationError; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig(bucketName, bucketPrefix, failOnFirstDestinationError); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesHoneycodeErrorHandlingConfig(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.failOnFirstDestinationError = failOnFirstDestinationError; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics.java index 609ad21629f..0d6d9e41bc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics.java @@ -8,10 +8,7 @@ @CustomType public final class FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics { - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics() { - } - + private FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics defaults) { Objects.requireNonNull(defaults); } + public FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics(); + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesLookoutMetrics(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo.java index 1b63982681e..b1e98c15d2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo.java @@ -16,21 +16,14 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesMarket * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig errorHandlingConfig; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig errorHandlingConfig; /** * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo( - @CustomType.Parameter("errorHandlingConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig errorHandlingConfig, - @CustomType.Parameter("object") String object) { - this.errorHandlingConfig = errorHandlingConfig; - this.object = object; - } + private String object; + private FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo() {} /** * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig errorHandlingConfig; private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo defaults) { Objects.requireNonNull(defaults); this.errorHandlingConfig = defaults.errorHandlingConfig; this.object = defaults.object; } + @CustomType.Setter public Builder errorHandlingConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig errorHandlingConfig) { this.errorHandlingConfig = errorHandlingConfig; return this; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo(errorHandlingConfig, object); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesMarketo(); + o.errorHandlingConfig = errorHandlingConfig; + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig.java index fe294bdecc3..8f2d5ead76b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig.java @@ -16,28 +16,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesMarket * @return The Amazon S3 bucket name where the source files are stored. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Specifies if the flow should fail after the first instance of a failure when attempting to place data in the destination. * */ - private final @Nullable Boolean failOnFirstDestinationError; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig( - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("failOnFirstDestinationError") @Nullable Boolean failOnFirstDestinationError) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.failOnFirstDestinationError = failOnFirstDestinationError; - } + private @Nullable Boolean failOnFirstDestinationError; + private FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketName; private @Nullable String bucketPrefix; private @Nullable Boolean failOnFirstDestinationError; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -84,19 +71,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErr this.failOnFirstDestinationError = defaults.failOnFirstDestinationError; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder failOnFirstDestinationError(@Nullable Boolean failOnFirstDestinationError) { this.failOnFirstDestinationError = failOnFirstDestinationError; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig(bucketName, bucketPrefix, failOnFirstDestinationError); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesMarketoErrorHandlingConfig(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.failOnFirstDestinationError = failOnFirstDestinationError; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift.java index b7dfdf4cacb..e0cbc940d35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift.java @@ -16,35 +16,24 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesRedshi * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig errorHandlingConfig; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig errorHandlingConfig; /** * @return The intermediate bucket that Amazon AppFlow uses when moving data into Amazon Snowflake. * */ - private final String intermediateBucketName; + private String intermediateBucketName; /** * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift( - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("errorHandlingConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig errorHandlingConfig, - @CustomType.Parameter("intermediateBucketName") String intermediateBucketName, - @CustomType.Parameter("object") String object) { - this.bucketPrefix = bucketPrefix; - this.errorHandlingConfig = errorHandlingConfig; - this.intermediateBucketName = intermediateBucketName; - this.object = object; - } + private String object; + private FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift() {} /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketPrefix; private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig errorHandlingConfig; private String intermediateBucketName; private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift defaults) { Objects.requireNonNull(defaults); this.bucketPrefix = defaults.bucketPrefix; @@ -100,23 +85,33 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift d this.object = defaults.object; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder errorHandlingConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig errorHandlingConfig) { this.errorHandlingConfig = errorHandlingConfig; return this; } + @CustomType.Setter public Builder intermediateBucketName(String intermediateBucketName) { this.intermediateBucketName = Objects.requireNonNull(intermediateBucketName); return this; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift(bucketPrefix, errorHandlingConfig, intermediateBucketName, object); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesRedshift(); + o.bucketPrefix = bucketPrefix; + o.errorHandlingConfig = errorHandlingConfig; + o.intermediateBucketName = intermediateBucketName; + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig.java index 491b56644d2..84b1c6ee6f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig.java @@ -16,28 +16,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesRedshi * @return The Amazon S3 bucket name where the source files are stored. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Specifies if the flow should fail after the first instance of a failure when attempting to place data in the destination. * */ - private final @Nullable Boolean failOnFirstDestinationError; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig( - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("failOnFirstDestinationError") @Nullable Boolean failOnFirstDestinationError) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.failOnFirstDestinationError = failOnFirstDestinationError; - } + private @Nullable Boolean failOnFirstDestinationError; + private FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketName; private @Nullable String bucketPrefix; private @Nullable Boolean failOnFirstDestinationError; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -84,19 +71,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftEr this.failOnFirstDestinationError = defaults.failOnFirstDestinationError; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder failOnFirstDestinationError(@Nullable Boolean failOnFirstDestinationError) { this.failOnFirstDestinationError = failOnFirstDestinationError; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig(bucketName, bucketPrefix, failOnFirstDestinationError); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesRedshiftErrorHandlingConfig(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.failOnFirstDestinationError = failOnFirstDestinationError; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3.java index e5957659bc0..5fbcae13624 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3.java @@ -16,28 +16,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesS3 { * @return The Amazon S3 bucket name where the source files are stored. * */ - private final String bucketName; + private String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return The configuration that determines how Amazon AppFlow should format the flow output data when Upsolver is used as the destination. See Upsolver S3 Output Format Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig s3OutputFormatConfig; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesS3( - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("s3OutputFormatConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig s3OutputFormatConfig) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.s3OutputFormatConfig = s3OutputFormatConfig; - } + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig s3OutputFormatConfig; + private FlowDestinationFlowConfigDestinationConnectorPropertiesS3() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketName; private @Nullable String bucketPrefix; private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig s3OutputFormatConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesS3 defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -84,19 +71,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesS3 default this.s3OutputFormatConfig = defaults.s3OutputFormatConfig; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder s3OutputFormatConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig s3OutputFormatConfig) { this.s3OutputFormatConfig = s3OutputFormatConfig; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesS3 build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesS3(bucketName, bucketPrefix, s3OutputFormatConfig); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesS3 build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesS3(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.s3OutputFormatConfig = s3OutputFormatConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig.java index c11a3f5681e..1897cde32f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig.java @@ -17,28 +17,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3Ou * @return The aggregation settings that you can use to customize the output format of your flow data. See Aggregation Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig aggregationConfig; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig aggregationConfig; /** * @return Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket. Valid values are `CSV`, `JSON`, and `PARQUET`. * */ - private final @Nullable String fileType; + private @Nullable String fileType; /** * @return Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name folders according to the flow frequency and date. See Prefix Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig prefixConfig; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig( - @CustomType.Parameter("aggregationConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig aggregationConfig, - @CustomType.Parameter("fileType") @Nullable String fileType, - @CustomType.Parameter("prefixConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig prefixConfig) { - this.aggregationConfig = aggregationConfig; - this.fileType = fileType; - this.prefixConfig = prefixConfig; - } + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig prefixConfig; + private FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig() {} /** * @return The aggregation settings that you can use to customize the output format of your flow data. See Aggregation Config for more details. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig aggregationConfig; private @Nullable String fileType; private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig prefixConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig defaults) { Objects.requireNonNull(defaults); this.aggregationConfig = defaults.aggregationConfig; @@ -85,19 +72,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3Output this.prefixConfig = defaults.prefixConfig; } + @CustomType.Setter public Builder aggregationConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig aggregationConfig) { this.aggregationConfig = aggregationConfig; return this; } + @CustomType.Setter public Builder fileType(@Nullable String fileType) { this.fileType = fileType; return this; } + @CustomType.Setter public Builder prefixConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig prefixConfig) { this.prefixConfig = prefixConfig; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig(aggregationConfig, fileType, prefixConfig); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfig(); + o.aggregationConfig = aggregationConfig; + o.fileType = fileType; + o.prefixConfig = prefixConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig.java index 65e476252d1..abd8ae4ce80 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig.java @@ -15,13 +15,9 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3Ou * @return Specifies whether Amazon AppFlow aggregates the flow records into a single file, or leave them unaggregated. Valid values are `None` and `SingleFile`. * */ - private final @Nullable String aggregationType; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig(@CustomType.Parameter("aggregationType") @Nullable String aggregationType) { - this.aggregationType = aggregationType; - } + private @Nullable String aggregationType; + private FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig() {} /** * @return Specifies whether Amazon AppFlow aggregates the flow records into a single file, or leave them unaggregated. Valid values are `None` and `SingleFile`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String aggregationType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig defaults) { Objects.requireNonNull(defaults); this.aggregationType = defaults.aggregationType; } + @CustomType.Setter public Builder aggregationType(@Nullable String aggregationType) { this.aggregationType = aggregationType; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig(aggregationType); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigAggregationConfig(); + o.aggregationType = aggregationType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig.java index c66456e21f2..0e9c1f17ffa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig.java @@ -15,21 +15,14 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3Ou * @return Determines the level of granularity that's included in the prefix. Valid values are `YEAR`, `MONTH`, `DAY`, `HOUR`, and `MINUTE`. * */ - private final @Nullable String prefixFormat; + private @Nullable String prefixFormat; /** * @return Determines the format of the prefix, and whether it applies to the file name, file path, or both. Valid values are `FILENAME`, `PATH`, and `PATH_AND_FILENAME`. * */ - private final @Nullable String prefixType; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig( - @CustomType.Parameter("prefixFormat") @Nullable String prefixFormat, - @CustomType.Parameter("prefixType") @Nullable String prefixType) { - this.prefixFormat = prefixFormat; - this.prefixType = prefixType; - } + private @Nullable String prefixType; + private FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig() {} /** * @return Determines the level of granularity that's included in the prefix. Valid values are `YEAR`, `MONTH`, `DAY`, `HOUR`, and `MINUTE`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String prefixFormat; private @Nullable String prefixType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig defaults) { Objects.requireNonNull(defaults); this.prefixFormat = defaults.prefixFormat; this.prefixType = defaults.prefixType; } + @CustomType.Setter public Builder prefixFormat(@Nullable String prefixFormat) { this.prefixFormat = prefixFormat; return this; } + @CustomType.Setter public Builder prefixType(@Nullable String prefixType) { this.prefixType = prefixType; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig(prefixFormat, prefixType); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesS3S3OutputFormatConfigPrefixConfig(); + o.prefixFormat = prefixFormat; + o.prefixType = prefixType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce.java index 3e6ac6c114c..50b5225126e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce.java @@ -17,35 +17,24 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesSalesf * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig errorHandlingConfig; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig errorHandlingConfig; /** * @return The name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update or delete. * */ - private final @Nullable List idFieldNames; + private @Nullable List idFieldNames; /** * @return The object specified in the Veeva flow source. * */ - private final String object; + private String object; /** * @return This specifies the type of write operation to be performed in Zendesk. When the value is `UPSERT`, then `id_field_names` is required. Valid values are `INSERT`, `UPSERT`, `UPDATE`, and `DELETE`. * */ - private final @Nullable String writeOperationType; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce( - @CustomType.Parameter("errorHandlingConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig errorHandlingConfig, - @CustomType.Parameter("idFieldNames") @Nullable List idFieldNames, - @CustomType.Parameter("object") String object, - @CustomType.Parameter("writeOperationType") @Nullable String writeOperationType) { - this.errorHandlingConfig = errorHandlingConfig; - this.idFieldNames = idFieldNames; - this.object = object; - this.writeOperationType = writeOperationType; - } + private @Nullable String writeOperationType; + private FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce() {} /** * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig errorHandlingConfig; private @Nullable List idFieldNames; private String object; private @Nullable String writeOperationType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce defaults) { Objects.requireNonNull(defaults); this.errorHandlingConfig = defaults.errorHandlingConfig; @@ -101,10 +86,12 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce this.writeOperationType = defaults.writeOperationType; } + @CustomType.Setter public Builder errorHandlingConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig errorHandlingConfig) { this.errorHandlingConfig = errorHandlingConfig; return this; } + @CustomType.Setter public Builder idFieldNames(@Nullable List idFieldNames) { this.idFieldNames = idFieldNames; return this; @@ -112,15 +99,23 @@ public Builder idFieldNames(@Nullable List idFieldNames) { public Builder idFieldNames(String... idFieldNames) { return idFieldNames(List.of(idFieldNames)); } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; } + @CustomType.Setter public Builder writeOperationType(@Nullable String writeOperationType) { this.writeOperationType = writeOperationType; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce(errorHandlingConfig, idFieldNames, object, writeOperationType); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce(); + o.errorHandlingConfig = errorHandlingConfig; + o.idFieldNames = idFieldNames; + o.object = object; + o.writeOperationType = writeOperationType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig.java index db33f5935a6..a8121937df9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig.java @@ -16,28 +16,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesSalesf * @return The Amazon S3 bucket name where the source files are stored. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Specifies if the flow should fail after the first instance of a failure when attempting to place data in the destination. * */ - private final @Nullable Boolean failOnFirstDestinationError; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig( - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("failOnFirstDestinationError") @Nullable Boolean failOnFirstDestinationError) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.failOnFirstDestinationError = failOnFirstDestinationError; - } + private @Nullable Boolean failOnFirstDestinationError; + private FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketName; private @Nullable String bucketPrefix; private @Nullable Boolean failOnFirstDestinationError; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -84,19 +71,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforce this.failOnFirstDestinationError = defaults.failOnFirstDestinationError; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder failOnFirstDestinationError(@Nullable Boolean failOnFirstDestinationError) { this.failOnFirstDestinationError = failOnFirstDestinationError; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig(bucketName, bucketPrefix, failOnFirstDestinationError); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesSalesforceErrorHandlingConfig(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.failOnFirstDestinationError = failOnFirstDestinationError; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData.java index 29c35a7fe29..3ff2261ef06 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData.java @@ -18,42 +18,29 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDa * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig errorHandlingConfig; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig errorHandlingConfig; /** * @return The name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update or delete. * */ - private final @Nullable List idFieldNames; + private @Nullable List idFieldNames; /** * @return The object path specified in the SAPOData flow source. * */ - private final String objectPath; + private String objectPath; /** * @return Determines how Amazon AppFlow handles the success response that it gets from the connector after placing data. See Success Response Handling Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig successResponseHandlingConfig; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig successResponseHandlingConfig; /** * @return This specifies the type of write operation to be performed in Zendesk. When the value is `UPSERT`, then `id_field_names` is required. Valid values are `INSERT`, `UPSERT`, `UPDATE`, and `DELETE`. * */ - private final @Nullable String writeOperationType; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData( - @CustomType.Parameter("errorHandlingConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig errorHandlingConfig, - @CustomType.Parameter("idFieldNames") @Nullable List idFieldNames, - @CustomType.Parameter("objectPath") String objectPath, - @CustomType.Parameter("successResponseHandlingConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig successResponseHandlingConfig, - @CustomType.Parameter("writeOperationType") @Nullable String writeOperationType) { - this.errorHandlingConfig = errorHandlingConfig; - this.idFieldNames = idFieldNames; - this.objectPath = objectPath; - this.successResponseHandlingConfig = successResponseHandlingConfig; - this.writeOperationType = writeOperationType; - } + private @Nullable String writeOperationType; + private FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData() {} /** * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig errorHandlingConfig; private @Nullable List idFieldNames; private String objectPath; private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig successResponseHandlingConfig; private @Nullable String writeOperationType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData defaults) { Objects.requireNonNull(defaults); this.errorHandlingConfig = defaults.errorHandlingConfig; @@ -118,10 +101,12 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData d this.writeOperationType = defaults.writeOperationType; } + @CustomType.Setter public Builder errorHandlingConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig errorHandlingConfig) { this.errorHandlingConfig = errorHandlingConfig; return this; } + @CustomType.Setter public Builder idFieldNames(@Nullable List idFieldNames) { this.idFieldNames = idFieldNames; return this; @@ -129,19 +114,29 @@ public Builder idFieldNames(@Nullable List idFieldNames) { public Builder idFieldNames(String... idFieldNames) { return idFieldNames(List.of(idFieldNames)); } + @CustomType.Setter public Builder objectPath(String objectPath) { this.objectPath = Objects.requireNonNull(objectPath); return this; } + @CustomType.Setter public Builder successResponseHandlingConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig successResponseHandlingConfig) { this.successResponseHandlingConfig = successResponseHandlingConfig; return this; } + @CustomType.Setter public Builder writeOperationType(@Nullable String writeOperationType) { this.writeOperationType = writeOperationType; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData(errorHandlingConfig, idFieldNames, objectPath, successResponseHandlingConfig, writeOperationType); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesSapoData(); + o.errorHandlingConfig = errorHandlingConfig; + o.idFieldNames = idFieldNames; + o.objectPath = objectPath; + o.successResponseHandlingConfig = successResponseHandlingConfig; + o.writeOperationType = writeOperationType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig.java index a9a01cb7127..d6404c9d52c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig.java @@ -16,28 +16,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDa * @return The Amazon S3 bucket name where the source files are stored. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Specifies if the flow should fail after the first instance of a failure when attempting to place data in the destination. * */ - private final @Nullable Boolean failOnFirstDestinationError; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig( - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("failOnFirstDestinationError") @Nullable Boolean failOnFirstDestinationError) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.failOnFirstDestinationError = failOnFirstDestinationError; - } + private @Nullable Boolean failOnFirstDestinationError; + private FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketName; private @Nullable String bucketPrefix; private @Nullable Boolean failOnFirstDestinationError; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -84,19 +71,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataEr this.failOnFirstDestinationError = defaults.failOnFirstDestinationError; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder failOnFirstDestinationError(@Nullable Boolean failOnFirstDestinationError) { this.failOnFirstDestinationError = failOnFirstDestinationError; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig(bucketName, bucketPrefix, failOnFirstDestinationError); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfig(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.failOnFirstDestinationError = failOnFirstDestinationError; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig.java index 4cc8092cb63..d5a27ebd917 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig.java @@ -15,21 +15,14 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDa * @return The Amazon S3 bucket name where the source files are stored. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig( - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - } + private @Nullable String bucketPrefix; + private FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketName; private @Nullable String bucketPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; this.bucketPrefix = defaults.bucketPrefix; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig(bucketName, bucketPrefix); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfig(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake.java index 98f18eecf78..9953f825f73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake.java @@ -16,35 +16,24 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesSnowfl * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig errorHandlingConfig; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig errorHandlingConfig; /** * @return The intermediate bucket that Amazon AppFlow uses when moving data into Amazon Snowflake. * */ - private final String intermediateBucketName; + private String intermediateBucketName; /** * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake( - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("errorHandlingConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig errorHandlingConfig, - @CustomType.Parameter("intermediateBucketName") String intermediateBucketName, - @CustomType.Parameter("object") String object) { - this.bucketPrefix = bucketPrefix; - this.errorHandlingConfig = errorHandlingConfig; - this.intermediateBucketName = intermediateBucketName; - this.object = object; - } + private String object; + private FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake() {} /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketPrefix; private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig errorHandlingConfig; private String intermediateBucketName; private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake defaults) { Objects.requireNonNull(defaults); this.bucketPrefix = defaults.bucketPrefix; @@ -100,23 +85,33 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake this.object = defaults.object; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder errorHandlingConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig errorHandlingConfig) { this.errorHandlingConfig = errorHandlingConfig; return this; } + @CustomType.Setter public Builder intermediateBucketName(String intermediateBucketName) { this.intermediateBucketName = Objects.requireNonNull(intermediateBucketName); return this; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake(bucketPrefix, errorHandlingConfig, intermediateBucketName, object); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflake(); + o.bucketPrefix = bucketPrefix; + o.errorHandlingConfig = errorHandlingConfig; + o.intermediateBucketName = intermediateBucketName; + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig.java index 7e99af2555a..35fbfba2be5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig.java @@ -16,28 +16,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesSnowfl * @return The Amazon S3 bucket name where the source files are stored. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Specifies if the flow should fail after the first instance of a failure when attempting to place data in the destination. * */ - private final @Nullable Boolean failOnFirstDestinationError; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig( - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("failOnFirstDestinationError") @Nullable Boolean failOnFirstDestinationError) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.failOnFirstDestinationError = failOnFirstDestinationError; - } + private @Nullable Boolean failOnFirstDestinationError; + private FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketName; private @Nullable String bucketPrefix; private @Nullable Boolean failOnFirstDestinationError; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -84,19 +71,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeE this.failOnFirstDestinationError = defaults.failOnFirstDestinationError; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder failOnFirstDestinationError(@Nullable Boolean failOnFirstDestinationError) { this.failOnFirstDestinationError = failOnFirstDestinationError; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig(bucketName, bucketPrefix, failOnFirstDestinationError); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesSnowflakeErrorHandlingConfig(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.failOnFirstDestinationError = failOnFirstDestinationError; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver.java index 084324d3d90..dcda0ad6585 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver.java @@ -16,28 +16,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolv * @return The Amazon S3 bucket name where the source files are stored. * */ - private final String bucketName; + private String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return The configuration that determines how Amazon AppFlow should format the flow output data when Upsolver is used as the destination. See Upsolver S3 Output Format Config for more details. * */ - private final FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig s3OutputFormatConfig; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver( - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("s3OutputFormatConfig") FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig s3OutputFormatConfig) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.s3OutputFormatConfig = s3OutputFormatConfig; - } + private FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig s3OutputFormatConfig; + private FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketName; private @Nullable String bucketPrefix; private FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig s3OutputFormatConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -84,19 +71,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver d this.s3OutputFormatConfig = defaults.s3OutputFormatConfig; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder s3OutputFormatConfig(FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig s3OutputFormatConfig) { this.s3OutputFormatConfig = Objects.requireNonNull(s3OutputFormatConfig); return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver(bucketName, bucketPrefix, s3OutputFormatConfig); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolver(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.s3OutputFormatConfig = s3OutputFormatConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig.java index 23323bc0c0d..cda78bb5d3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig.java @@ -17,28 +17,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolv * @return The aggregation settings that you can use to customize the output format of your flow data. See Aggregation Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig aggregationConfig; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig aggregationConfig; /** * @return Indicates the file type that Amazon AppFlow places in the Upsolver Amazon S3 bucket. Valid values are `CSV`, `JSON`, and `PARQUET`. * */ - private final @Nullable String fileType; + private @Nullable String fileType; /** * @return Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket. You can name folders according to the flow frequency and date. See Prefix Config for more details. * */ - private final FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig prefixConfig; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig( - @CustomType.Parameter("aggregationConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig aggregationConfig, - @CustomType.Parameter("fileType") @Nullable String fileType, - @CustomType.Parameter("prefixConfig") FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig prefixConfig) { - this.aggregationConfig = aggregationConfig; - this.fileType = fileType; - this.prefixConfig = prefixConfig; - } + private FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig prefixConfig; + private FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig() {} /** * @return The aggregation settings that you can use to customize the output format of your flow data. See Aggregation Config for more details. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig aggregationConfig; private @Nullable String fileType; private FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig prefixConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig defaults) { Objects.requireNonNull(defaults); this.aggregationConfig = defaults.aggregationConfig; @@ -85,19 +72,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3 this.prefixConfig = defaults.prefixConfig; } + @CustomType.Setter public Builder aggregationConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig aggregationConfig) { this.aggregationConfig = aggregationConfig; return this; } + @CustomType.Setter public Builder fileType(@Nullable String fileType) { this.fileType = fileType; return this; } + @CustomType.Setter public Builder prefixConfig(FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig prefixConfig) { this.prefixConfig = Objects.requireNonNull(prefixConfig); return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig(aggregationConfig, fileType, prefixConfig); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfig(); + o.aggregationConfig = aggregationConfig; + o.fileType = fileType; + o.prefixConfig = prefixConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig.java index 05fbe67443e..94899efea54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig.java @@ -15,13 +15,9 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolv * @return Specifies whether Amazon AppFlow aggregates the flow records into a single file, or leave them unaggregated. Valid values are `None` and `SingleFile`. * */ - private final @Nullable String aggregationType; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig(@CustomType.Parameter("aggregationType") @Nullable String aggregationType) { - this.aggregationType = aggregationType; - } + private @Nullable String aggregationType; + private FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig() {} /** * @return Specifies whether Amazon AppFlow aggregates the flow records into a single file, or leave them unaggregated. Valid values are `None` and `SingleFile`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String aggregationType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig defaults) { Objects.requireNonNull(defaults); this.aggregationType = defaults.aggregationType; } + @CustomType.Setter public Builder aggregationType(@Nullable String aggregationType) { this.aggregationType = aggregationType; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig(aggregationType); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigAggregationConfig(); + o.aggregationType = aggregationType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig.java index 659512d0dcf..07957c7e70b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig.java @@ -15,21 +15,14 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolv * @return Determines the level of granularity that's included in the prefix. Valid values are `YEAR`, `MONTH`, `DAY`, `HOUR`, and `MINUTE`. * */ - private final @Nullable String prefixFormat; + private @Nullable String prefixFormat; /** * @return Determines the format of the prefix, and whether it applies to the file name, file path, or both. Valid values are `FILENAME`, `PATH`, and `PATH_AND_FILENAME`. * */ - private final String prefixType; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig( - @CustomType.Parameter("prefixFormat") @Nullable String prefixFormat, - @CustomType.Parameter("prefixType") String prefixType) { - this.prefixFormat = prefixFormat; - this.prefixType = prefixType; - } + private String prefixType; + private FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig() {} /** * @return Determines the level of granularity that's included in the prefix. Valid values are `YEAR`, `MONTH`, `DAY`, `HOUR`, and `MINUTE`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String prefixFormat; private String prefixType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig defaults) { Objects.requireNonNull(defaults); this.prefixFormat = defaults.prefixFormat; this.prefixType = defaults.prefixType; } + @CustomType.Setter public Builder prefixFormat(@Nullable String prefixFormat) { this.prefixFormat = prefixFormat; return this; } + @CustomType.Setter public Builder prefixType(String prefixType) { this.prefixType = Objects.requireNonNull(prefixType); return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig(prefixFormat, prefixType); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesUpsolverS3OutputFormatConfigPrefixConfig(); + o.prefixFormat = prefixFormat; + o.prefixType = prefixType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk.java index 4abc28cc571..66c52cc6f1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk.java @@ -17,35 +17,24 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesZendes * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * */ - private final @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig errorHandlingConfig; + private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig errorHandlingConfig; /** * @return The name of the field that Amazon AppFlow uses as an ID when performing a write operation such as update or delete. * */ - private final @Nullable List idFieldNames; + private @Nullable List idFieldNames; /** * @return The object specified in the Veeva flow source. * */ - private final String object; + private String object; /** * @return This specifies the type of write operation to be performed in Zendesk. When the value is `UPSERT`, then `id_field_names` is required. Valid values are `INSERT`, `UPSERT`, `UPDATE`, and `DELETE`. * */ - private final @Nullable String writeOperationType; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk( - @CustomType.Parameter("errorHandlingConfig") @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig errorHandlingConfig, - @CustomType.Parameter("idFieldNames") @Nullable List idFieldNames, - @CustomType.Parameter("object") String object, - @CustomType.Parameter("writeOperationType") @Nullable String writeOperationType) { - this.errorHandlingConfig = errorHandlingConfig; - this.idFieldNames = idFieldNames; - this.object = object; - this.writeOperationType = writeOperationType; - } + private @Nullable String writeOperationType; + private FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk() {} /** * @return The settings that determine how Amazon AppFlow handles an error when placing data in the destination. See Error Handling Config for more details. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig errorHandlingConfig; private @Nullable List idFieldNames; private String object; private @Nullable String writeOperationType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk defaults) { Objects.requireNonNull(defaults); this.errorHandlingConfig = defaults.errorHandlingConfig; @@ -101,10 +86,12 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk de this.writeOperationType = defaults.writeOperationType; } + @CustomType.Setter public Builder errorHandlingConfig(@Nullable FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig errorHandlingConfig) { this.errorHandlingConfig = errorHandlingConfig; return this; } + @CustomType.Setter public Builder idFieldNames(@Nullable List idFieldNames) { this.idFieldNames = idFieldNames; return this; @@ -112,15 +99,23 @@ public Builder idFieldNames(@Nullable List idFieldNames) { public Builder idFieldNames(String... idFieldNames) { return idFieldNames(List.of(idFieldNames)); } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; } + @CustomType.Setter public Builder writeOperationType(@Nullable String writeOperationType) { this.writeOperationType = writeOperationType; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk(errorHandlingConfig, idFieldNames, object, writeOperationType); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesZendesk(); + o.errorHandlingConfig = errorHandlingConfig; + o.idFieldNames = idFieldNames; + o.object = object; + o.writeOperationType = writeOperationType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig.java index ade1e57137b..6ce62ab6a31 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig.java @@ -16,28 +16,19 @@ public final class FlowDestinationFlowConfigDestinationConnectorPropertiesZendes * @return The Amazon S3 bucket name where the source files are stored. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Specifies if the flow should fail after the first instance of a failure when attempting to place data in the destination. * */ - private final @Nullable Boolean failOnFirstDestinationError; - - @CustomType.Constructor - private FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig( - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("failOnFirstDestinationError") @Nullable Boolean failOnFirstDestinationError) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.failOnFirstDestinationError = failOnFirstDestinationError; - } + private @Nullable Boolean failOnFirstDestinationError; + private FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketName; private @Nullable String bucketPrefix; private @Nullable Boolean failOnFirstDestinationError; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -84,19 +71,27 @@ public Builder(FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErr this.failOnFirstDestinationError = defaults.failOnFirstDestinationError; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder failOnFirstDestinationError(@Nullable Boolean failOnFirstDestinationError) { this.failOnFirstDestinationError = failOnFirstDestinationError; return this; - } public FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig build() { - return new FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig(bucketName, bucketPrefix, failOnFirstDestinationError); + } + public FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig build() { + final var o = new FlowDestinationFlowConfigDestinationConnectorPropertiesZendeskErrorHandlingConfig(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.failOnFirstDestinationError = failOnFirstDestinationError; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfig.java index f3cc78ea94f..5a56b53b29d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfig.java @@ -17,42 +17,29 @@ public final class FlowSourceFlowConfig { * @return The API version that the destination connector uses. * */ - private final @Nullable String apiVersion; + private @Nullable String apiVersion; /** * @return The name of the connector profile. This name must be unique for each connector profile in the AWS account. * */ - private final @Nullable String connectorProfileName; + private @Nullable String connectorProfileName; /** * @return The type of connector, such as Salesforce, Amplitude, and so on. Valid values are `Salesforce`, `Singular`, `Slack`, `Redshift`, `S3`, `Marketo`, `Googleanalytics`, `Zendesk`, `Servicenow`, `Datadog`, `Trendmicro`, `Snowflake`, `Dynatrace`, `Infornexus`, `Amplitude`, `Veeva`, `EventBridge`, `LookoutMetrics`, `Upsolver`, `Honeycode`, `CustomerProfiles`, `SAPOData`, and `CustomConnector`. * */ - private final String connectorType; + private String connectorType; /** * @return Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the fields specified in the configuration are used when querying for the incremental data pull. See Incremental Pull Config for more details. * */ - private final @Nullable FlowSourceFlowConfigIncrementalPullConfig incrementalPullConfig; + private @Nullable FlowSourceFlowConfigIncrementalPullConfig incrementalPullConfig; /** * @return Specifies the information that is required to query a particular source connector. See Source Connector Properties for details. * */ - private final FlowSourceFlowConfigSourceConnectorProperties sourceConnectorProperties; - - @CustomType.Constructor - private FlowSourceFlowConfig( - @CustomType.Parameter("apiVersion") @Nullable String apiVersion, - @CustomType.Parameter("connectorProfileName") @Nullable String connectorProfileName, - @CustomType.Parameter("connectorType") String connectorType, - @CustomType.Parameter("incrementalPullConfig") @Nullable FlowSourceFlowConfigIncrementalPullConfig incrementalPullConfig, - @CustomType.Parameter("sourceConnectorProperties") FlowSourceFlowConfigSourceConnectorProperties sourceConnectorProperties) { - this.apiVersion = apiVersion; - this.connectorProfileName = connectorProfileName; - this.connectorType = connectorType; - this.incrementalPullConfig = incrementalPullConfig; - this.sourceConnectorProperties = sourceConnectorProperties; - } + private FlowSourceFlowConfigSourceConnectorProperties sourceConnectorProperties; + private FlowSourceFlowConfig() {} /** * @return The API version that the destination connector uses. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String apiVersion; private @Nullable String connectorProfileName; private String connectorType; private @Nullable FlowSourceFlowConfigIncrementalPullConfig incrementalPullConfig; private FlowSourceFlowConfigSourceConnectorProperties sourceConnectorProperties; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfig defaults) { Objects.requireNonNull(defaults); this.apiVersion = defaults.apiVersion; @@ -117,27 +100,39 @@ public Builder(FlowSourceFlowConfig defaults) { this.sourceConnectorProperties = defaults.sourceConnectorProperties; } + @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } + @CustomType.Setter public Builder connectorProfileName(@Nullable String connectorProfileName) { this.connectorProfileName = connectorProfileName; return this; } + @CustomType.Setter public Builder connectorType(String connectorType) { this.connectorType = Objects.requireNonNull(connectorType); return this; } + @CustomType.Setter public Builder incrementalPullConfig(@Nullable FlowSourceFlowConfigIncrementalPullConfig incrementalPullConfig) { this.incrementalPullConfig = incrementalPullConfig; return this; } + @CustomType.Setter public Builder sourceConnectorProperties(FlowSourceFlowConfigSourceConnectorProperties sourceConnectorProperties) { this.sourceConnectorProperties = Objects.requireNonNull(sourceConnectorProperties); return this; - } public FlowSourceFlowConfig build() { - return new FlowSourceFlowConfig(apiVersion, connectorProfileName, connectorType, incrementalPullConfig, sourceConnectorProperties); + } + public FlowSourceFlowConfig build() { + final var o = new FlowSourceFlowConfig(); + o.apiVersion = apiVersion; + o.connectorProfileName = connectorProfileName; + o.connectorType = connectorType; + o.incrementalPullConfig = incrementalPullConfig; + o.sourceConnectorProperties = sourceConnectorProperties; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigIncrementalPullConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigIncrementalPullConfig.java index f220760d1a1..eeee2ecca22 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigIncrementalPullConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigIncrementalPullConfig.java @@ -15,13 +15,9 @@ public final class FlowSourceFlowConfigIncrementalPullConfig { * @return A field that specifies the date time or timestamp field as the criteria to use when importing incremental records from the source. * */ - private final @Nullable String datetimeTypeFieldName; - - @CustomType.Constructor - private FlowSourceFlowConfigIncrementalPullConfig(@CustomType.Parameter("datetimeTypeFieldName") @Nullable String datetimeTypeFieldName) { - this.datetimeTypeFieldName = datetimeTypeFieldName; - } + private @Nullable String datetimeTypeFieldName; + private FlowSourceFlowConfigIncrementalPullConfig() {} /** * @return A field that specifies the date time or timestamp field as the criteria to use when importing incremental records from the source. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigIncrementalPullConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String datetimeTypeFieldName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigIncrementalPullConfig defaults) { Objects.requireNonNull(defaults); this.datetimeTypeFieldName = defaults.datetimeTypeFieldName; } + @CustomType.Setter public Builder datetimeTypeFieldName(@Nullable String datetimeTypeFieldName) { this.datetimeTypeFieldName = datetimeTypeFieldName; return this; - } public FlowSourceFlowConfigIncrementalPullConfig build() { - return new FlowSourceFlowConfigIncrementalPullConfig(datetimeTypeFieldName); + } + public FlowSourceFlowConfigIncrementalPullConfig build() { + final var o = new FlowSourceFlowConfigIncrementalPullConfig(); + o.datetimeTypeFieldName = datetimeTypeFieldName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorProperties.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorProperties.java index 529923a3d9f..18c474fe07b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorProperties.java @@ -30,119 +30,84 @@ public final class FlowSourceFlowConfigSourceConnectorProperties { * @return The operation to be performed on the provided Amplitude source fields. The only valid value is `BETWEEN`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesAmplitude amplitude; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesAmplitude amplitude; /** * @return Operators supported by the custom connector. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector customConnector; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector customConnector; /** * @return The operation to be performed on the provided Datadog source fields. Valid values are `PROJECTION`, `BETWEEN`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesDatadog datadog; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesDatadog datadog; /** * @return The operation to be performed on the provided Dynatrace source fields. Valid values are `PROJECTION`, `BETWEEN`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesDynatrace dynatrace; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesDynatrace dynatrace; /** * @return The operation to be performed on the provided Google Analytics source fields. Valid values are `PROJECTION` and `BETWEEN`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics googleAnalytics; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics googleAnalytics; /** * @return The operation to be performed on the provided Infor Nexus source fields. Valid values are `PROJECTION`, `BETWEEN`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesInforNexus inforNexus; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesInforNexus inforNexus; /** * @return The operation to be performed on the provided Marketo source fields. Valid values are `PROJECTION`, `BETWEEN`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesMarketo marketo; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesMarketo marketo; /** * @return The operation to be performed on the provided Amazon S3 source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesS3 s3; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesS3 s3; /** * @return The operation to be performed on the provided Salesforce source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesSalesforce salesforce; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesSalesforce salesforce; /** * @return The operation to be performed on the provided SAPOData source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesSapoData sapoData; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesSapoData sapoData; /** * @return The operation to be performed on the provided ServiceNow source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesServiceNow serviceNow; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesServiceNow serviceNow; /** * @return The operation to be performed on the provided Singular source fields. Valid values are `PROJECTION`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesSingular singular; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesSingular singular; /** * @return The operation to be performed on the provided Slack source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesSlack slack; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesSlack slack; /** * @return The operation to be performed on the provided Trend Micro source fields. Valid values are `PROJECTION`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro trendmicro; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro trendmicro; /** * @return The operation to be performed on the provided Veeva source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesVeeva veeva; + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesVeeva veeva; /** * @return The operation to be performed on the provided Zendesk source fields. Valid values are `PROJECTION`, `GREATER_THAN`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesZendesk zendesk; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorProperties( - @CustomType.Parameter("amplitude") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesAmplitude amplitude, - @CustomType.Parameter("customConnector") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector customConnector, - @CustomType.Parameter("datadog") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesDatadog datadog, - @CustomType.Parameter("dynatrace") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesDynatrace dynatrace, - @CustomType.Parameter("googleAnalytics") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics googleAnalytics, - @CustomType.Parameter("inforNexus") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesInforNexus inforNexus, - @CustomType.Parameter("marketo") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesMarketo marketo, - @CustomType.Parameter("s3") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesS3 s3, - @CustomType.Parameter("salesforce") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesSalesforce salesforce, - @CustomType.Parameter("sapoData") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesSapoData sapoData, - @CustomType.Parameter("serviceNow") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesServiceNow serviceNow, - @CustomType.Parameter("singular") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesSingular singular, - @CustomType.Parameter("slack") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesSlack slack, - @CustomType.Parameter("trendmicro") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro trendmicro, - @CustomType.Parameter("veeva") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesVeeva veeva, - @CustomType.Parameter("zendesk") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesZendesk zendesk) { - this.amplitude = amplitude; - this.customConnector = customConnector; - this.datadog = datadog; - this.dynatrace = dynatrace; - this.googleAnalytics = googleAnalytics; - this.inforNexus = inforNexus; - this.marketo = marketo; - this.s3 = s3; - this.salesforce = salesforce; - this.sapoData = sapoData; - this.serviceNow = serviceNow; - this.singular = singular; - this.slack = slack; - this.trendmicro = trendmicro; - this.veeva = veeva; - this.zendesk = zendesk; - } + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesZendesk zendesk; + private FlowSourceFlowConfigSourceConnectorProperties() {} /** * @return The operation to be performed on the provided Amplitude source fields. The only valid value is `BETWEEN`. * @@ -263,7 +228,7 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesAmplitude amplitude; private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector customConnector; @@ -281,11 +246,7 @@ public static final class Builder { private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro trendmicro; private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesVeeva veeva; private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesZendesk zendesk; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorProperties defaults) { Objects.requireNonNull(defaults); this.amplitude = defaults.amplitude; @@ -306,71 +267,105 @@ public Builder(FlowSourceFlowConfigSourceConnectorProperties defaults) { this.zendesk = defaults.zendesk; } + @CustomType.Setter public Builder amplitude(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesAmplitude amplitude) { this.amplitude = amplitude; return this; } + @CustomType.Setter public Builder customConnector(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector customConnector) { this.customConnector = customConnector; return this; } + @CustomType.Setter public Builder datadog(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesDatadog datadog) { this.datadog = datadog; return this; } + @CustomType.Setter public Builder dynatrace(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesDynatrace dynatrace) { this.dynatrace = dynatrace; return this; } + @CustomType.Setter public Builder googleAnalytics(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics googleAnalytics) { this.googleAnalytics = googleAnalytics; return this; } + @CustomType.Setter public Builder inforNexus(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesInforNexus inforNexus) { this.inforNexus = inforNexus; return this; } + @CustomType.Setter public Builder marketo(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesMarketo marketo) { this.marketo = marketo; return this; } + @CustomType.Setter public Builder s3(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesS3 s3) { this.s3 = s3; return this; } + @CustomType.Setter public Builder salesforce(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesSalesforce salesforce) { this.salesforce = salesforce; return this; } + @CustomType.Setter public Builder sapoData(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesSapoData sapoData) { this.sapoData = sapoData; return this; } + @CustomType.Setter public Builder serviceNow(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesServiceNow serviceNow) { this.serviceNow = serviceNow; return this; } + @CustomType.Setter public Builder singular(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesSingular singular) { this.singular = singular; return this; } + @CustomType.Setter public Builder slack(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesSlack slack) { this.slack = slack; return this; } + @CustomType.Setter public Builder trendmicro(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro trendmicro) { this.trendmicro = trendmicro; return this; } + @CustomType.Setter public Builder veeva(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesVeeva veeva) { this.veeva = veeva; return this; } + @CustomType.Setter public Builder zendesk(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesZendesk zendesk) { this.zendesk = zendesk; return this; - } public FlowSourceFlowConfigSourceConnectorProperties build() { - return new FlowSourceFlowConfigSourceConnectorProperties(amplitude, customConnector, datadog, dynatrace, googleAnalytics, inforNexus, marketo, s3, salesforce, sapoData, serviceNow, singular, slack, trendmicro, veeva, zendesk); + } + public FlowSourceFlowConfigSourceConnectorProperties build() { + final var o = new FlowSourceFlowConfigSourceConnectorProperties(); + o.amplitude = amplitude; + o.customConnector = customConnector; + o.datadog = datadog; + o.dynatrace = dynatrace; + o.googleAnalytics = googleAnalytics; + o.inforNexus = inforNexus; + o.marketo = marketo; + o.s3 = s3; + o.salesforce = salesforce; + o.sapoData = sapoData; + o.serviceNow = serviceNow; + o.singular = singular; + o.slack = slack; + o.trendmicro = trendmicro; + o.veeva = veeva; + o.zendesk = zendesk; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesAmplitude.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesAmplitude.java index dae06cbaac1..d4a1b912e3e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesAmplitude.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesAmplitude.java @@ -13,13 +13,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesAmplitude { * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesAmplitude(@CustomType.Parameter("object") String object) { - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesAmplitude() {} /** * @return The object specified in the Veeva flow source. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesAmplitude defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesAmplitude defaults) { Objects.requireNonNull(defaults); this.object = defaults.object; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesAmplitude build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesAmplitude(object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesAmplitude build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesAmplitude(); + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector.java index 7c0b65eaf6b..e207a8d225a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector.java @@ -15,21 +15,14 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector * @return The custom properties that are specific to the connector when it's used as a source in the flow. Maximum of 50 items. * */ - private final @Nullable Map customProperties; + private @Nullable Map customProperties; /** * @return The entity specified in the custom connector as a source in the flow. * */ - private final String entityName; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector( - @CustomType.Parameter("customProperties") @Nullable Map customProperties, - @CustomType.Parameter("entityName") String entityName) { - this.customProperties = customProperties; - this.entityName = entityName; - } + private String entityName; + private FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector() {} /** * @return The custom properties that are specific to the connector when it's used as a source in the flow. Maximum of 50 items. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map customProperties; private String entityName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector defaults) { Objects.requireNonNull(defaults); this.customProperties = defaults.customProperties; this.entityName = defaults.entityName; } + @CustomType.Setter public Builder customProperties(@Nullable Map customProperties) { this.customProperties = customProperties; return this; } + @CustomType.Setter public Builder entityName(String entityName) { this.entityName = Objects.requireNonNull(entityName); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector(customProperties, entityName); + } + public FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesCustomConnector(); + o.customProperties = customProperties; + o.entityName = entityName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesDatadog.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesDatadog.java index a474ae8118b..11babd3c49c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesDatadog.java @@ -13,13 +13,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesDatadog { * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesDatadog(@CustomType.Parameter("object") String object) { - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesDatadog() {} /** * @return The object specified in the Veeva flow source. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesDatadog defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesDatadog defaults) { Objects.requireNonNull(defaults); this.object = defaults.object; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesDatadog build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesDatadog(object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesDatadog build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesDatadog(); + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesDynatrace.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesDynatrace.java index b0c7cb645d2..5772582f8e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesDynatrace.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesDynatrace.java @@ -13,13 +13,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesDynatrace { * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesDynatrace(@CustomType.Parameter("object") String object) { - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesDynatrace() {} /** * @return The object specified in the Veeva flow source. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesDynatrace defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesDynatrace defaults) { Objects.requireNonNull(defaults); this.object = defaults.object; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesDynatrace build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesDynatrace(object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesDynatrace build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesDynatrace(); + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics.java index 5b50a2ea2ce..cc20311c526 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics.java @@ -13,13 +13,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics(@CustomType.Parameter("object") String object) { - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics() {} /** * @return The object specified in the Veeva flow source. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics defaults) { Objects.requireNonNull(defaults); this.object = defaults.object; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics(object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesGoogleAnalytics(); + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesInforNexus.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesInforNexus.java index f7c536a29a4..d9a0f719882 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesInforNexus.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesInforNexus.java @@ -13,13 +13,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesInforNexus { * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesInforNexus(@CustomType.Parameter("object") String object) { - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesInforNexus() {} /** * @return The object specified in the Veeva flow source. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesInforNexus defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesInforNexus defaults) { Objects.requireNonNull(defaults); this.object = defaults.object; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesInforNexus build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesInforNexus(object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesInforNexus build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesInforNexus(); + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesMarketo.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesMarketo.java index b892e1546c4..fbbc8e722f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesMarketo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesMarketo.java @@ -13,13 +13,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesMarketo { * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesMarketo(@CustomType.Parameter("object") String object) { - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesMarketo() {} /** * @return The object specified in the Veeva flow source. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesMarketo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesMarketo defaults) { Objects.requireNonNull(defaults); this.object = defaults.object; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesMarketo build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesMarketo(object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesMarketo build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesMarketo(); + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesS3.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesS3.java index 8021a966b26..cb929575af5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesS3.java @@ -16,28 +16,19 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesS3 { * @return The Amazon S3 bucket name where the source files are stored. * */ - private final String bucketName; + private String bucketName; /** * @return The object key for the Amazon S3 bucket in which the source files are stored. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return When you use Amazon S3 as the source, the configuration format that you provide the flow input data. See S3 Input Format Config for details. * */ - private final @Nullable FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig s3InputFormatConfig; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesS3( - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("s3InputFormatConfig") @Nullable FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig s3InputFormatConfig) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.s3InputFormatConfig = s3InputFormatConfig; - } + private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig s3InputFormatConfig; + private FlowSourceFlowConfigSourceConnectorPropertiesS3() {} /** * @return The Amazon S3 bucket name where the source files are stored. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketName; private @Nullable String bucketPrefix; private @Nullable FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig s3InputFormatConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesS3 defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -84,19 +71,27 @@ public Builder(FlowSourceFlowConfigSourceConnectorPropertiesS3 defaults) { this.s3InputFormatConfig = defaults.s3InputFormatConfig; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder s3InputFormatConfig(@Nullable FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig s3InputFormatConfig) { this.s3InputFormatConfig = s3InputFormatConfig; return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesS3 build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesS3(bucketName, bucketPrefix, s3InputFormatConfig); + } + public FlowSourceFlowConfigSourceConnectorPropertiesS3 build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesS3(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.s3InputFormatConfig = s3InputFormatConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig.java index f5701852743..891527b052c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig.java @@ -15,13 +15,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatC * @return The file type that Amazon AppFlow gets from your Amazon S3 bucket. Valid values are `CSV` and `JSON`. * */ - private final @Nullable String s3InputFileType; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig(@CustomType.Parameter("s3InputFileType") @Nullable String s3InputFileType) { - this.s3InputFileType = s3InputFileType; - } + private @Nullable String s3InputFileType; + private FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig() {} /** * @return The file type that Amazon AppFlow gets from your Amazon S3 bucket. Valid values are `CSV` and `JSON`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String s3InputFileType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig defaults) { Objects.requireNonNull(defaults); this.s3InputFileType = defaults.s3InputFileType; } + @CustomType.Setter public Builder s3InputFileType(@Nullable String s3InputFileType) { this.s3InputFileType = s3InputFileType; return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig(s3InputFileType); + } + public FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesS3S3InputFormatConfig(); + o.s3InputFileType = s3InputFileType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSalesforce.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSalesforce.java index fe11b185d88..6b9ce7a0ba3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSalesforce.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSalesforce.java @@ -16,28 +16,19 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesSalesforce { * @return The flag that enables dynamic fetching of new (recently added) fields in the Salesforce objects while running a flow. * */ - private final @Nullable Boolean enableDynamicFieldUpdate; + private @Nullable Boolean enableDynamicFieldUpdate; /** * @return Indicates whether Amazon AppFlow includes deleted files in the flow run. * */ - private final @Nullable Boolean includeDeletedRecords; + private @Nullable Boolean includeDeletedRecords; /** * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesSalesforce( - @CustomType.Parameter("enableDynamicFieldUpdate") @Nullable Boolean enableDynamicFieldUpdate, - @CustomType.Parameter("includeDeletedRecords") @Nullable Boolean includeDeletedRecords, - @CustomType.Parameter("object") String object) { - this.enableDynamicFieldUpdate = enableDynamicFieldUpdate; - this.includeDeletedRecords = includeDeletedRecords; - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesSalesforce() {} /** * @return The flag that enables dynamic fetching of new (recently added) fields in the Salesforce objects while running a flow. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesSalesforce defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enableDynamicFieldUpdate; private @Nullable Boolean includeDeletedRecords; private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesSalesforce defaults) { Objects.requireNonNull(defaults); this.enableDynamicFieldUpdate = defaults.enableDynamicFieldUpdate; @@ -84,19 +71,27 @@ public Builder(FlowSourceFlowConfigSourceConnectorPropertiesSalesforce defaults) this.object = defaults.object; } + @CustomType.Setter public Builder enableDynamicFieldUpdate(@Nullable Boolean enableDynamicFieldUpdate) { this.enableDynamicFieldUpdate = enableDynamicFieldUpdate; return this; } + @CustomType.Setter public Builder includeDeletedRecords(@Nullable Boolean includeDeletedRecords) { this.includeDeletedRecords = includeDeletedRecords; return this; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesSalesforce build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesSalesforce(enableDynamicFieldUpdate, includeDeletedRecords, object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesSalesforce build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesSalesforce(); + o.enableDynamicFieldUpdate = enableDynamicFieldUpdate; + o.includeDeletedRecords = includeDeletedRecords; + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSapoData.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSapoData.java index ff8046dfa87..ea251e884d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSapoData.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSapoData.java @@ -13,13 +13,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesSapoData { * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesSapoData(@CustomType.Parameter("object") String object) { - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesSapoData() {} /** * @return The object specified in the Veeva flow source. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesSapoData defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesSapoData defaults) { Objects.requireNonNull(defaults); this.object = defaults.object; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesSapoData build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesSapoData(object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesSapoData build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesSapoData(); + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesServiceNow.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesServiceNow.java index f29e3df8ad9..702ac35954e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesServiceNow.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesServiceNow.java @@ -13,13 +13,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesServiceNow { * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesServiceNow(@CustomType.Parameter("object") String object) { - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesServiceNow() {} /** * @return The object specified in the Veeva flow source. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesServiceNow defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesServiceNow defaults) { Objects.requireNonNull(defaults); this.object = defaults.object; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesServiceNow build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesServiceNow(object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesServiceNow build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesServiceNow(); + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSingular.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSingular.java index 32676168771..2750a71c861 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSingular.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSingular.java @@ -13,13 +13,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesSingular { * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesSingular(@CustomType.Parameter("object") String object) { - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesSingular() {} /** * @return The object specified in the Veeva flow source. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesSingular defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesSingular defaults) { Objects.requireNonNull(defaults); this.object = defaults.object; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesSingular build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesSingular(object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesSingular build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesSingular(); + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSlack.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSlack.java index a31509106f1..fab3ec721f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSlack.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesSlack.java @@ -13,13 +13,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesSlack { * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesSlack(@CustomType.Parameter("object") String object) { - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesSlack() {} /** * @return The object specified in the Veeva flow source. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesSlack defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesSlack defaults) { Objects.requireNonNull(defaults); this.object = defaults.object; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesSlack build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesSlack(object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesSlack build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesSlack(); + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro.java index 5b2b208bdd7..b559b5dd730 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro.java @@ -13,13 +13,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro { * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro(@CustomType.Parameter("object") String object) { - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro() {} /** * @return The object specified in the Veeva flow source. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro defaults) { Objects.requireNonNull(defaults); this.object = defaults.object; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro(object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesTrendmicro(); + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesVeeva.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesVeeva.java index 7ea2e038f94..c318c9ff2d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesVeeva.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesVeeva.java @@ -16,42 +16,29 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesVeeva { * @return The document type specified in the Veeva document extract flow. * */ - private final @Nullable String documentType; + private @Nullable String documentType; /** * @return Boolean value to include All Versions of files in Veeva document extract flow. * */ - private final @Nullable Boolean includeAllVersions; + private @Nullable Boolean includeAllVersions; /** * @return Boolean value to include file renditions in Veeva document extract flow. * */ - private final @Nullable Boolean includeRenditions; + private @Nullable Boolean includeRenditions; /** * @return Boolean value to include source files in Veeva document extract flow. * */ - private final @Nullable Boolean includeSourceFiles; + private @Nullable Boolean includeSourceFiles; /** * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesVeeva( - @CustomType.Parameter("documentType") @Nullable String documentType, - @CustomType.Parameter("includeAllVersions") @Nullable Boolean includeAllVersions, - @CustomType.Parameter("includeRenditions") @Nullable Boolean includeRenditions, - @CustomType.Parameter("includeSourceFiles") @Nullable Boolean includeSourceFiles, - @CustomType.Parameter("object") String object) { - this.documentType = documentType; - this.includeAllVersions = includeAllVersions; - this.includeRenditions = includeRenditions; - this.includeSourceFiles = includeSourceFiles; - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesVeeva() {} /** * @return The document type specified in the Veeva document extract flow. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesVeeva defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String documentType; private @Nullable Boolean includeAllVersions; private @Nullable Boolean includeRenditions; private @Nullable Boolean includeSourceFiles; private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesVeeva defaults) { Objects.requireNonNull(defaults); this.documentType = defaults.documentType; @@ -116,27 +99,39 @@ public Builder(FlowSourceFlowConfigSourceConnectorPropertiesVeeva defaults) { this.object = defaults.object; } + @CustomType.Setter public Builder documentType(@Nullable String documentType) { this.documentType = documentType; return this; } + @CustomType.Setter public Builder includeAllVersions(@Nullable Boolean includeAllVersions) { this.includeAllVersions = includeAllVersions; return this; } + @CustomType.Setter public Builder includeRenditions(@Nullable Boolean includeRenditions) { this.includeRenditions = includeRenditions; return this; } + @CustomType.Setter public Builder includeSourceFiles(@Nullable Boolean includeSourceFiles) { this.includeSourceFiles = includeSourceFiles; return this; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesVeeva build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesVeeva(documentType, includeAllVersions, includeRenditions, includeSourceFiles, object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesVeeva build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesVeeva(); + o.documentType = documentType; + o.includeAllVersions = includeAllVersions; + o.includeRenditions = includeRenditions; + o.includeSourceFiles = includeSourceFiles; + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesZendesk.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesZendesk.java index 5ffff8f9886..fdbd24d9238 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesZendesk.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowSourceFlowConfigSourceConnectorPropertiesZendesk.java @@ -13,13 +13,9 @@ public final class FlowSourceFlowConfigSourceConnectorPropertiesZendesk { * @return The object specified in the Veeva flow source. * */ - private final String object; - - @CustomType.Constructor - private FlowSourceFlowConfigSourceConnectorPropertiesZendesk(@CustomType.Parameter("object") String object) { - this.object = object; - } + private String object; + private FlowSourceFlowConfigSourceConnectorPropertiesZendesk() {} /** * @return The object specified in the Veeva flow source. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowSourceFlowConfigSourceConnectorPropertiesZendesk defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String object; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowSourceFlowConfigSourceConnectorPropertiesZendesk defaults) { Objects.requireNonNull(defaults); this.object = defaults.object; } + @CustomType.Setter public Builder object(String object) { this.object = Objects.requireNonNull(object); return this; - } public FlowSourceFlowConfigSourceConnectorPropertiesZendesk build() { - return new FlowSourceFlowConfigSourceConnectorPropertiesZendesk(object); + } + public FlowSourceFlowConfigSourceConnectorPropertiesZendesk build() { + final var o = new FlowSourceFlowConfigSourceConnectorPropertiesZendesk(); + o.object = object; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTask.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTask.java index e5b37f33570..33827e03436 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTask.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTask.java @@ -18,42 +18,29 @@ public final class FlowTask { * @return The operation to be performed on the provided source fields. See Connector Operator for details. * */ - private final @Nullable List connectorOperators; + private @Nullable List connectorOperators; /** * @return A field in a destination connector, or a field value against which Amazon AppFlow validates a source field. * */ - private final @Nullable String destinationField; + private @Nullable String destinationField; /** * @return The source fields to which a particular task is applied. * */ - private final List sourceFields; + private List sourceFields; /** * @return A map used to store task-related information. The execution service looks for particular information based on the `TaskType`. Valid keys are `VALUE`, `VALUES`, `DATA_TYPE`, `UPPER_BOUND`, `LOWER_BOUND`, `SOURCE_DATA_TYPE`, `DESTINATION_DATA_TYPE`, `VALIDATION_ACTION`, `MASK_VALUE`, `MASK_LENGTH`, `TRUNCATE_LENGTH`, `MATH_OPERATION_FIELDS_ORDER`, `CONCAT_FORMAT`, `SUBFIELD_CATEGORY_MAP`, and `EXCLUDE_SOURCE_FIELDS_LIST`. * */ - private final @Nullable Map taskProperties; + private @Nullable Map taskProperties; /** * @return Specifies the particular task implementation that Amazon AppFlow performs. Valid values are `Arithmetic`, `Filter`, `Map`, `Map_all`, `Mask`, `Merge`, `Passthrough`, `Truncate`, and `Validate`. * */ - private final String taskType; - - @CustomType.Constructor - private FlowTask( - @CustomType.Parameter("connectorOperators") @Nullable List connectorOperators, - @CustomType.Parameter("destinationField") @Nullable String destinationField, - @CustomType.Parameter("sourceFields") List sourceFields, - @CustomType.Parameter("taskProperties") @Nullable Map taskProperties, - @CustomType.Parameter("taskType") String taskType) { - this.connectorOperators = connectorOperators; - this.destinationField = destinationField; - this.sourceFields = sourceFields; - this.taskProperties = taskProperties; - this.taskType = taskType; - } + private String taskType; + private FlowTask() {} /** * @return The operation to be performed on the provided source fields. See Connector Operator for details. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(FlowTask defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List connectorOperators; private @Nullable String destinationField; private List sourceFields; private @Nullable Map taskProperties; private String taskType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowTask defaults) { Objects.requireNonNull(defaults); this.connectorOperators = defaults.connectorOperators; @@ -118,6 +101,7 @@ public Builder(FlowTask defaults) { this.taskType = defaults.taskType; } + @CustomType.Setter public Builder connectorOperators(@Nullable List connectorOperators) { this.connectorOperators = connectorOperators; return this; @@ -125,10 +109,12 @@ public Builder connectorOperators(@Nullable List conn public Builder connectorOperators(FlowTaskConnectorOperator... connectorOperators) { return connectorOperators(List.of(connectorOperators)); } + @CustomType.Setter public Builder destinationField(@Nullable String destinationField) { this.destinationField = destinationField; return this; } + @CustomType.Setter public Builder sourceFields(List sourceFields) { this.sourceFields = Objects.requireNonNull(sourceFields); return this; @@ -136,15 +122,24 @@ public Builder sourceFields(List sourceFields) { public Builder sourceFields(String... sourceFields) { return sourceFields(List.of(sourceFields)); } + @CustomType.Setter public Builder taskProperties(@Nullable Map taskProperties) { this.taskProperties = taskProperties; return this; } + @CustomType.Setter public Builder taskType(String taskType) { this.taskType = Objects.requireNonNull(taskType); return this; - } public FlowTask build() { - return new FlowTask(connectorOperators, destinationField, sourceFields, taskProperties, taskType); + } + public FlowTask build() { + final var o = new FlowTask(); + o.connectorOperators = connectorOperators; + o.destinationField = destinationField; + o.sourceFields = sourceFields; + o.taskProperties = taskProperties; + o.taskType = taskType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTaskConnectorOperator.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTaskConnectorOperator.java index fd24a82243a..2799d73d415 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTaskConnectorOperator.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTaskConnectorOperator.java @@ -15,119 +15,84 @@ public final class FlowTaskConnectorOperator { * @return The operation to be performed on the provided Amplitude source fields. The only valid value is `BETWEEN`. * */ - private final @Nullable String amplitude; + private @Nullable String amplitude; /** * @return Operators supported by the custom connector. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String customConnector; + private @Nullable String customConnector; /** * @return The operation to be performed on the provided Datadog source fields. Valid values are `PROJECTION`, `BETWEEN`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String datadog; + private @Nullable String datadog; /** * @return The operation to be performed on the provided Dynatrace source fields. Valid values are `PROJECTION`, `BETWEEN`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String dynatrace; + private @Nullable String dynatrace; /** * @return The operation to be performed on the provided Google Analytics source fields. Valid values are `PROJECTION` and `BETWEEN`. * */ - private final @Nullable String googleAnalytics; + private @Nullable String googleAnalytics; /** * @return The operation to be performed on the provided Infor Nexus source fields. Valid values are `PROJECTION`, `BETWEEN`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String inforNexus; + private @Nullable String inforNexus; /** * @return The operation to be performed on the provided Marketo source fields. Valid values are `PROJECTION`, `BETWEEN`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String marketo; + private @Nullable String marketo; /** * @return The operation to be performed on the provided Amazon S3 source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String s3; + private @Nullable String s3; /** * @return The operation to be performed on the provided Salesforce source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String salesforce; + private @Nullable String salesforce; /** * @return The operation to be performed on the provided SAPOData source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String sapoData; + private @Nullable String sapoData; /** * @return The operation to be performed on the provided ServiceNow source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String serviceNow; + private @Nullable String serviceNow; /** * @return The operation to be performed on the provided Singular source fields. Valid values are `PROJECTION`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String singular; + private @Nullable String singular; /** * @return The operation to be performed on the provided Slack source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String slack; + private @Nullable String slack; /** * @return The operation to be performed on the provided Trend Micro source fields. Valid values are `PROJECTION`, `EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String trendmicro; + private @Nullable String trendmicro; /** * @return The operation to be performed on the provided Veeva source fields. Valid values are `PROJECTION`, `LESS_THAN`, `GREATER_THAN`, `CONTAINS`, `BETWEEN`, `LESS_THAN_OR_EQUAL_TO`, `GREATER_THAN_OR_EQUAL_TO`, `EQUAL_TO`, `NOT_EQUAL_TO`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String veeva; + private @Nullable String veeva; /** * @return The operation to be performed on the provided Zendesk source fields. Valid values are `PROJECTION`, `GREATER_THAN`, `ADDITION`, `MULTIPLICATION`, `DIVISION`, `SUBTRACTION`, `MASK_ALL`, `MASK_FIRST_N`, `MASK_LAST_N`, `VALIDATE_NON_NULL`, `VALIDATE_NON_ZERO`, `VALIDATE_NON_NEGATIVE`, `VALIDATE_NUMERIC`, and `NO_OP`. * */ - private final @Nullable String zendesk; - - @CustomType.Constructor - private FlowTaskConnectorOperator( - @CustomType.Parameter("amplitude") @Nullable String amplitude, - @CustomType.Parameter("customConnector") @Nullable String customConnector, - @CustomType.Parameter("datadog") @Nullable String datadog, - @CustomType.Parameter("dynatrace") @Nullable String dynatrace, - @CustomType.Parameter("googleAnalytics") @Nullable String googleAnalytics, - @CustomType.Parameter("inforNexus") @Nullable String inforNexus, - @CustomType.Parameter("marketo") @Nullable String marketo, - @CustomType.Parameter("s3") @Nullable String s3, - @CustomType.Parameter("salesforce") @Nullable String salesforce, - @CustomType.Parameter("sapoData") @Nullable String sapoData, - @CustomType.Parameter("serviceNow") @Nullable String serviceNow, - @CustomType.Parameter("singular") @Nullable String singular, - @CustomType.Parameter("slack") @Nullable String slack, - @CustomType.Parameter("trendmicro") @Nullable String trendmicro, - @CustomType.Parameter("veeva") @Nullable String veeva, - @CustomType.Parameter("zendesk") @Nullable String zendesk) { - this.amplitude = amplitude; - this.customConnector = customConnector; - this.datadog = datadog; - this.dynatrace = dynatrace; - this.googleAnalytics = googleAnalytics; - this.inforNexus = inforNexus; - this.marketo = marketo; - this.s3 = s3; - this.salesforce = salesforce; - this.sapoData = sapoData; - this.serviceNow = serviceNow; - this.singular = singular; - this.slack = slack; - this.trendmicro = trendmicro; - this.veeva = veeva; - this.zendesk = zendesk; - } + private @Nullable String zendesk; + private FlowTaskConnectorOperator() {} /** * @return The operation to be performed on the provided Amplitude source fields. The only valid value is `BETWEEN`. * @@ -248,7 +213,7 @@ public static Builder builder() { public static Builder builder(FlowTaskConnectorOperator defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String amplitude; private @Nullable String customConnector; @@ -266,11 +231,7 @@ public static final class Builder { private @Nullable String trendmicro; private @Nullable String veeva; private @Nullable String zendesk; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowTaskConnectorOperator defaults) { Objects.requireNonNull(defaults); this.amplitude = defaults.amplitude; @@ -291,71 +252,105 @@ public Builder(FlowTaskConnectorOperator defaults) { this.zendesk = defaults.zendesk; } + @CustomType.Setter public Builder amplitude(@Nullable String amplitude) { this.amplitude = amplitude; return this; } + @CustomType.Setter public Builder customConnector(@Nullable String customConnector) { this.customConnector = customConnector; return this; } + @CustomType.Setter public Builder datadog(@Nullable String datadog) { this.datadog = datadog; return this; } + @CustomType.Setter public Builder dynatrace(@Nullable String dynatrace) { this.dynatrace = dynatrace; return this; } + @CustomType.Setter public Builder googleAnalytics(@Nullable String googleAnalytics) { this.googleAnalytics = googleAnalytics; return this; } + @CustomType.Setter public Builder inforNexus(@Nullable String inforNexus) { this.inforNexus = inforNexus; return this; } + @CustomType.Setter public Builder marketo(@Nullable String marketo) { this.marketo = marketo; return this; } + @CustomType.Setter public Builder s3(@Nullable String s3) { this.s3 = s3; return this; } + @CustomType.Setter public Builder salesforce(@Nullable String salesforce) { this.salesforce = salesforce; return this; } + @CustomType.Setter public Builder sapoData(@Nullable String sapoData) { this.sapoData = sapoData; return this; } + @CustomType.Setter public Builder serviceNow(@Nullable String serviceNow) { this.serviceNow = serviceNow; return this; } + @CustomType.Setter public Builder singular(@Nullable String singular) { this.singular = singular; return this; } + @CustomType.Setter public Builder slack(@Nullable String slack) { this.slack = slack; return this; } + @CustomType.Setter public Builder trendmicro(@Nullable String trendmicro) { this.trendmicro = trendmicro; return this; } + @CustomType.Setter public Builder veeva(@Nullable String veeva) { this.veeva = veeva; return this; } + @CustomType.Setter public Builder zendesk(@Nullable String zendesk) { this.zendesk = zendesk; return this; - } public FlowTaskConnectorOperator build() { - return new FlowTaskConnectorOperator(amplitude, customConnector, datadog, dynatrace, googleAnalytics, inforNexus, marketo, s3, salesforce, sapoData, serviceNow, singular, slack, trendmicro, veeva, zendesk); + } + public FlowTaskConnectorOperator build() { + final var o = new FlowTaskConnectorOperator(); + o.amplitude = amplitude; + o.customConnector = customConnector; + o.datadog = datadog; + o.dynatrace = dynatrace; + o.googleAnalytics = googleAnalytics; + o.inforNexus = inforNexus; + o.marketo = marketo; + o.s3 = s3; + o.salesforce = salesforce; + o.sapoData = sapoData; + o.serviceNow = serviceNow; + o.singular = singular; + o.slack = slack; + o.trendmicro = trendmicro; + o.veeva = veeva; + o.zendesk = zendesk; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTriggerConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTriggerConfig.java index 5e4b6bbfdbf..6de1b2a1822 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTriggerConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTriggerConfig.java @@ -16,21 +16,14 @@ public final class FlowTriggerConfig { * @return Specifies the configuration details of a schedule-triggered flow as defined by the user. Currently, these settings only apply to the `Scheduled` trigger type. See Scheduled Trigger Properties for details. * */ - private final @Nullable FlowTriggerConfigTriggerProperties triggerProperties; + private @Nullable FlowTriggerConfigTriggerProperties triggerProperties; /** * @return Specifies the type of flow trigger. Valid values are `Scheduled`, `Event`, and `OnDemand`. * */ - private final String triggerType; - - @CustomType.Constructor - private FlowTriggerConfig( - @CustomType.Parameter("triggerProperties") @Nullable FlowTriggerConfigTriggerProperties triggerProperties, - @CustomType.Parameter("triggerType") String triggerType) { - this.triggerProperties = triggerProperties; - this.triggerType = triggerType; - } + private String triggerType; + private FlowTriggerConfig() {} /** * @return Specifies the configuration details of a schedule-triggered flow as defined by the user. Currently, these settings only apply to the `Scheduled` trigger type. See Scheduled Trigger Properties for details. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(FlowTriggerConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowTriggerConfigTriggerProperties triggerProperties; private String triggerType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowTriggerConfig defaults) { Objects.requireNonNull(defaults); this.triggerProperties = defaults.triggerProperties; this.triggerType = defaults.triggerType; } + @CustomType.Setter public Builder triggerProperties(@Nullable FlowTriggerConfigTriggerProperties triggerProperties) { this.triggerProperties = triggerProperties; return this; } + @CustomType.Setter public Builder triggerType(String triggerType) { this.triggerType = Objects.requireNonNull(triggerType); return this; - } public FlowTriggerConfig build() { - return new FlowTriggerConfig(triggerProperties, triggerType); + } + public FlowTriggerConfig build() { + final var o = new FlowTriggerConfig(); + o.triggerProperties = triggerProperties; + o.triggerType = triggerType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTriggerConfigTriggerProperties.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTriggerConfigTriggerProperties.java index 14cc6bb98f7..f53ee08e3b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTriggerConfigTriggerProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTriggerConfigTriggerProperties.java @@ -11,13 +11,9 @@ @CustomType public final class FlowTriggerConfigTriggerProperties { - private final @Nullable FlowTriggerConfigTriggerPropertiesScheduled scheduled; - - @CustomType.Constructor - private FlowTriggerConfigTriggerProperties(@CustomType.Parameter("scheduled") @Nullable FlowTriggerConfigTriggerPropertiesScheduled scheduled) { - this.scheduled = scheduled; - } + private @Nullable FlowTriggerConfigTriggerPropertiesScheduled scheduled; + private FlowTriggerConfigTriggerProperties() {} public Optional scheduled() { return Optional.ofNullable(this.scheduled); } @@ -29,24 +25,24 @@ public static Builder builder() { public static Builder builder(FlowTriggerConfigTriggerProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowTriggerConfigTriggerPropertiesScheduled scheduled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowTriggerConfigTriggerProperties defaults) { Objects.requireNonNull(defaults); this.scheduled = defaults.scheduled; } + @CustomType.Setter public Builder scheduled(@Nullable FlowTriggerConfigTriggerPropertiesScheduled scheduled) { this.scheduled = scheduled; return this; - } public FlowTriggerConfigTriggerProperties build() { - return new FlowTriggerConfigTriggerProperties(scheduled); + } + public FlowTriggerConfigTriggerProperties build() { + final var o = new FlowTriggerConfigTriggerProperties(); + o.scheduled = scheduled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTriggerConfigTriggerPropertiesScheduled.java b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTriggerConfigTriggerPropertiesScheduled.java index 9b02b5fb563..f676d2353e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTriggerConfigTriggerPropertiesScheduled.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appflow/outputs/FlowTriggerConfigTriggerPropertiesScheduled.java @@ -16,56 +16,39 @@ public final class FlowTriggerConfigTriggerPropertiesScheduled { * @return Specifies whether a scheduled flow has an incremental data transfer or a complete data transfer for each flow run. Valid values are `Incremental` and `Complete`. * */ - private final @Nullable String dataPullMode; + private @Nullable String dataPullMode; /** * @return Specifies the date range for the records to import from the connector in the first flow run. Must be a valid RFC3339 timestamp. * */ - private final @Nullable String firstExecutionFrom; + private @Nullable String firstExecutionFrom; /** * @return Specifies the scheduled end time for a schedule-triggered flow. Must be a valid RFC3339 timestamp. * */ - private final @Nullable String scheduleEndTime; + private @Nullable String scheduleEndTime; /** * @return The scheduling expression that determines the rate at which the schedule will run, for example `rate(5minutes)`. * */ - private final String scheduleExpression; + private String scheduleExpression; /** * @return Specifies the optional offset that is added to the time interval for a schedule-triggered flow. Maximum value of 36000. * */ - private final @Nullable Integer scheduleOffset; + private @Nullable Integer scheduleOffset; /** * @return Specifies the scheduled start time for a schedule-triggered flow. Must be a valid RFC3339 timestamp. * */ - private final @Nullable String scheduleStartTime; + private @Nullable String scheduleStartTime; /** * @return Specifies the time zone used when referring to the date and time of a scheduled-triggered flow, such as `America/New_York`. * */ - private final @Nullable String timezone; - - @CustomType.Constructor - private FlowTriggerConfigTriggerPropertiesScheduled( - @CustomType.Parameter("dataPullMode") @Nullable String dataPullMode, - @CustomType.Parameter("firstExecutionFrom") @Nullable String firstExecutionFrom, - @CustomType.Parameter("scheduleEndTime") @Nullable String scheduleEndTime, - @CustomType.Parameter("scheduleExpression") String scheduleExpression, - @CustomType.Parameter("scheduleOffset") @Nullable Integer scheduleOffset, - @CustomType.Parameter("scheduleStartTime") @Nullable String scheduleStartTime, - @CustomType.Parameter("timezone") @Nullable String timezone) { - this.dataPullMode = dataPullMode; - this.firstExecutionFrom = firstExecutionFrom; - this.scheduleEndTime = scheduleEndTime; - this.scheduleExpression = scheduleExpression; - this.scheduleOffset = scheduleOffset; - this.scheduleStartTime = scheduleStartTime; - this.timezone = timezone; - } + private @Nullable String timezone; + private FlowTriggerConfigTriggerPropertiesScheduled() {} /** * @return Specifies whether a scheduled flow has an incremental data transfer or a complete data transfer for each flow run. Valid values are `Incremental` and `Complete`. * @@ -123,7 +106,7 @@ public static Builder builder() { public static Builder builder(FlowTriggerConfigTriggerPropertiesScheduled defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dataPullMode; private @Nullable String firstExecutionFrom; @@ -132,11 +115,7 @@ public static final class Builder { private @Nullable Integer scheduleOffset; private @Nullable String scheduleStartTime; private @Nullable String timezone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowTriggerConfigTriggerPropertiesScheduled defaults) { Objects.requireNonNull(defaults); this.dataPullMode = defaults.dataPullMode; @@ -148,35 +127,51 @@ public Builder(FlowTriggerConfigTriggerPropertiesScheduled defaults) { this.timezone = defaults.timezone; } + @CustomType.Setter public Builder dataPullMode(@Nullable String dataPullMode) { this.dataPullMode = dataPullMode; return this; } + @CustomType.Setter public Builder firstExecutionFrom(@Nullable String firstExecutionFrom) { this.firstExecutionFrom = firstExecutionFrom; return this; } + @CustomType.Setter public Builder scheduleEndTime(@Nullable String scheduleEndTime) { this.scheduleEndTime = scheduleEndTime; return this; } + @CustomType.Setter public Builder scheduleExpression(String scheduleExpression) { this.scheduleExpression = Objects.requireNonNull(scheduleExpression); return this; } + @CustomType.Setter public Builder scheduleOffset(@Nullable Integer scheduleOffset) { this.scheduleOffset = scheduleOffset; return this; } + @CustomType.Setter public Builder scheduleStartTime(@Nullable String scheduleStartTime) { this.scheduleStartTime = scheduleStartTime; return this; } + @CustomType.Setter public Builder timezone(@Nullable String timezone) { this.timezone = timezone; return this; - } public FlowTriggerConfigTriggerPropertiesScheduled build() { - return new FlowTriggerConfigTriggerPropertiesScheduled(dataPullMode, firstExecutionFrom, scheduleEndTime, scheduleExpression, scheduleOffset, scheduleStartTime, timezone); + } + public FlowTriggerConfigTriggerPropertiesScheduled build() { + final var o = new FlowTriggerConfigTriggerPropertiesScheduled(); + o.dataPullMode = dataPullMode; + o.firstExecutionFrom = firstExecutionFrom; + o.scheduleEndTime = scheduleEndTime; + o.scheduleExpression = scheduleExpression; + o.scheduleOffset = scheduleOffset; + o.scheduleStartTime = scheduleStartTime; + o.timezone = timezone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultAction.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultAction.java index 27da1a1db93..8b6827e15c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultAction.java @@ -16,35 +16,16 @@ @CustomType public final class GetListenerDefaultAction { - private final List authenticateCognitos; - private final List authenticateOidcs; - private final List fixedResponses; - private final List forwards; - private final Integer order; - private final List redirects; - private final String targetGroupArn; - private final String type; - - @CustomType.Constructor - private GetListenerDefaultAction( - @CustomType.Parameter("authenticateCognitos") List authenticateCognitos, - @CustomType.Parameter("authenticateOidcs") List authenticateOidcs, - @CustomType.Parameter("fixedResponses") List fixedResponses, - @CustomType.Parameter("forwards") List forwards, - @CustomType.Parameter("order") Integer order, - @CustomType.Parameter("redirects") List redirects, - @CustomType.Parameter("targetGroupArn") String targetGroupArn, - @CustomType.Parameter("type") String type) { - this.authenticateCognitos = authenticateCognitos; - this.authenticateOidcs = authenticateOidcs; - this.fixedResponses = fixedResponses; - this.forwards = forwards; - this.order = order; - this.redirects = redirects; - this.targetGroupArn = targetGroupArn; - this.type = type; - } + private List authenticateCognitos; + private List authenticateOidcs; + private List fixedResponses; + private List forwards; + private Integer order; + private List redirects; + private String targetGroupArn; + private String type; + private GetListenerDefaultAction() {} public List authenticateCognitos() { return this.authenticateCognitos; } @@ -77,7 +58,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List authenticateCognitos; private List authenticateOidcs; @@ -87,11 +68,7 @@ public static final class Builder { private List redirects; private String targetGroupArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultAction defaults) { Objects.requireNonNull(defaults); this.authenticateCognitos = defaults.authenticateCognitos; @@ -104,6 +81,7 @@ public Builder(GetListenerDefaultAction defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder authenticateCognitos(List authenticateCognitos) { this.authenticateCognitos = Objects.requireNonNull(authenticateCognitos); return this; @@ -111,6 +89,7 @@ public Builder authenticateCognitos(List authenticateOidcs) { this.authenticateOidcs = Objects.requireNonNull(authenticateOidcs); return this; @@ -118,6 +97,7 @@ public Builder authenticateOidcs(List public Builder authenticateOidcs(GetListenerDefaultActionAuthenticateOidc... authenticateOidcs) { return authenticateOidcs(List.of(authenticateOidcs)); } + @CustomType.Setter public Builder fixedResponses(List fixedResponses) { this.fixedResponses = Objects.requireNonNull(fixedResponses); return this; @@ -125,6 +105,7 @@ public Builder fixedResponses(List fixedR public Builder fixedResponses(GetListenerDefaultActionFixedResponse... fixedResponses) { return fixedResponses(List.of(fixedResponses)); } + @CustomType.Setter public Builder forwards(List forwards) { this.forwards = Objects.requireNonNull(forwards); return this; @@ -132,10 +113,12 @@ public Builder forwards(List forwards) { public Builder forwards(GetListenerDefaultActionForward... forwards) { return forwards(List.of(forwards)); } + @CustomType.Setter public Builder order(Integer order) { this.order = Objects.requireNonNull(order); return this; } + @CustomType.Setter public Builder redirects(List redirects) { this.redirects = Objects.requireNonNull(redirects); return this; @@ -143,15 +126,27 @@ public Builder redirects(List redirects) { public Builder redirects(GetListenerDefaultActionRedirect... redirects) { return redirects(List.of(redirects)); } + @CustomType.Setter public Builder targetGroupArn(String targetGroupArn) { this.targetGroupArn = Objects.requireNonNull(targetGroupArn); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetListenerDefaultAction build() { - return new GetListenerDefaultAction(authenticateCognitos, authenticateOidcs, fixedResponses, forwards, order, redirects, targetGroupArn, type); + } + public GetListenerDefaultAction build() { + final var o = new GetListenerDefaultAction(); + o.authenticateCognitos = authenticateCognitos; + o.authenticateOidcs = authenticateOidcs; + o.fixedResponses = fixedResponses; + o.forwards = forwards; + o.order = order; + o.redirects = redirects; + o.targetGroupArn = targetGroupArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionAuthenticateCognito.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionAuthenticateCognito.java index f40c27ac70f..851f57924f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionAuthenticateCognito.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionAuthenticateCognito.java @@ -11,35 +11,16 @@ @CustomType public final class GetListenerDefaultActionAuthenticateCognito { - private final Map authenticationRequestExtraParams; - private final String onUnauthenticatedRequest; - private final String scope; - private final String sessionCookieName; - private final Integer sessionTimeout; - private final String userPoolArn; - private final String userPoolClientId; - private final String userPoolDomain; - - @CustomType.Constructor - private GetListenerDefaultActionAuthenticateCognito( - @CustomType.Parameter("authenticationRequestExtraParams") Map authenticationRequestExtraParams, - @CustomType.Parameter("onUnauthenticatedRequest") String onUnauthenticatedRequest, - @CustomType.Parameter("scope") String scope, - @CustomType.Parameter("sessionCookieName") String sessionCookieName, - @CustomType.Parameter("sessionTimeout") Integer sessionTimeout, - @CustomType.Parameter("userPoolArn") String userPoolArn, - @CustomType.Parameter("userPoolClientId") String userPoolClientId, - @CustomType.Parameter("userPoolDomain") String userPoolDomain) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.userPoolArn = userPoolArn; - this.userPoolClientId = userPoolClientId; - this.userPoolDomain = userPoolDomain; - } + private Map authenticationRequestExtraParams; + private String onUnauthenticatedRequest; + private String scope; + private String sessionCookieName; + private Integer sessionTimeout; + private String userPoolArn; + private String userPoolClientId; + private String userPoolDomain; + private GetListenerDefaultActionAuthenticateCognito() {} public Map authenticationRequestExtraParams() { return this.authenticationRequestExtraParams; } @@ -72,7 +53,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionAuthenticateCognito defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map authenticationRequestExtraParams; private String onUnauthenticatedRequest; @@ -82,11 +63,7 @@ public static final class Builder { private String userPoolArn; private String userPoolClientId; private String userPoolDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionAuthenticateCognito defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -99,39 +76,57 @@ public Builder(GetListenerDefaultActionAuthenticateCognito defaults) { this.userPoolDomain = defaults.userPoolDomain; } + @CustomType.Setter public Builder authenticationRequestExtraParams(Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = Objects.requireNonNull(authenticationRequestExtraParams); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = Objects.requireNonNull(onUnauthenticatedRequest); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; } + @CustomType.Setter public Builder sessionCookieName(String sessionCookieName) { this.sessionCookieName = Objects.requireNonNull(sessionCookieName); return this; } + @CustomType.Setter public Builder sessionTimeout(Integer sessionTimeout) { this.sessionTimeout = Objects.requireNonNull(sessionTimeout); return this; } + @CustomType.Setter public Builder userPoolArn(String userPoolArn) { this.userPoolArn = Objects.requireNonNull(userPoolArn); return this; } + @CustomType.Setter public Builder userPoolClientId(String userPoolClientId) { this.userPoolClientId = Objects.requireNonNull(userPoolClientId); return this; } + @CustomType.Setter public Builder userPoolDomain(String userPoolDomain) { this.userPoolDomain = Objects.requireNonNull(userPoolDomain); return this; - } public GetListenerDefaultActionAuthenticateCognito build() { - return new GetListenerDefaultActionAuthenticateCognito(authenticationRequestExtraParams, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, userPoolArn, userPoolClientId, userPoolDomain); + } + public GetListenerDefaultActionAuthenticateCognito build() { + final var o = new GetListenerDefaultActionAuthenticateCognito(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.userPoolArn = userPoolArn; + o.userPoolClientId = userPoolClientId; + o.userPoolDomain = userPoolDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionAuthenticateOidc.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionAuthenticateOidc.java index 087b94e90c1..af259ae4564 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionAuthenticateOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionAuthenticateOidc.java @@ -11,44 +11,19 @@ @CustomType public final class GetListenerDefaultActionAuthenticateOidc { - private final Map authenticationRequestExtraParams; - private final String authorizationEndpoint; - private final String clientId; - private final String clientSecret; - private final String issuer; - private final String onUnauthenticatedRequest; - private final String scope; - private final String sessionCookieName; - private final Integer sessionTimeout; - private final String tokenEndpoint; - private final String userInfoEndpoint; - - @CustomType.Constructor - private GetListenerDefaultActionAuthenticateOidc( - @CustomType.Parameter("authenticationRequestExtraParams") Map authenticationRequestExtraParams, - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("onUnauthenticatedRequest") String onUnauthenticatedRequest, - @CustomType.Parameter("scope") String scope, - @CustomType.Parameter("sessionCookieName") String sessionCookieName, - @CustomType.Parameter("sessionTimeout") Integer sessionTimeout, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private Map authenticationRequestExtraParams; + private String authorizationEndpoint; + private String clientId; + private String clientSecret; + private String issuer; + private String onUnauthenticatedRequest; + private String scope; + private String sessionCookieName; + private Integer sessionTimeout; + private String tokenEndpoint; + private String userInfoEndpoint; + private GetListenerDefaultActionAuthenticateOidc() {} public Map authenticationRequestExtraParams() { return this.authenticationRequestExtraParams; } @@ -90,7 +65,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionAuthenticateOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map authenticationRequestExtraParams; private String authorizationEndpoint; @@ -103,11 +78,7 @@ public static final class Builder { private Integer sessionTimeout; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionAuthenticateOidc defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -123,51 +94,75 @@ public Builder(GetListenerDefaultActionAuthenticateOidc defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authenticationRequestExtraParams(Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = Objects.requireNonNull(authenticationRequestExtraParams); return this; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = Objects.requireNonNull(onUnauthenticatedRequest); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; } + @CustomType.Setter public Builder sessionCookieName(String sessionCookieName) { this.sessionCookieName = Objects.requireNonNull(sessionCookieName); return this; } + @CustomType.Setter public Builder sessionTimeout(Integer sessionTimeout) { this.sessionTimeout = Objects.requireNonNull(sessionTimeout); return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public GetListenerDefaultActionAuthenticateOidc build() { - return new GetListenerDefaultActionAuthenticateOidc(authenticationRequestExtraParams, authorizationEndpoint, clientId, clientSecret, issuer, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, tokenEndpoint, userInfoEndpoint); + } + public GetListenerDefaultActionAuthenticateOidc build() { + final var o = new GetListenerDefaultActionAuthenticateOidc(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionFixedResponse.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionFixedResponse.java index 08c0a06b0d2..358a76df052 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionFixedResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionFixedResponse.java @@ -9,20 +9,11 @@ @CustomType public final class GetListenerDefaultActionFixedResponse { - private final String contentType; - private final String messageBody; - private final String statusCode; - - @CustomType.Constructor - private GetListenerDefaultActionFixedResponse( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("messageBody") String messageBody, - @CustomType.Parameter("statusCode") String statusCode) { - this.contentType = contentType; - this.messageBody = messageBody; - this.statusCode = statusCode; - } + private String contentType; + private String messageBody; + private String statusCode; + private GetListenerDefaultActionFixedResponse() {} public String contentType() { return this.contentType; } @@ -40,16 +31,12 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionFixedResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private String messageBody; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionFixedResponse defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -57,19 +44,27 @@ public Builder(GetListenerDefaultActionFixedResponse defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder messageBody(String messageBody) { this.messageBody = Objects.requireNonNull(messageBody); return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public GetListenerDefaultActionFixedResponse build() { - return new GetListenerDefaultActionFixedResponse(contentType, messageBody, statusCode); + } + public GetListenerDefaultActionFixedResponse build() { + final var o = new GetListenerDefaultActionFixedResponse(); + o.contentType = contentType; + o.messageBody = messageBody; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionForward.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionForward.java index 0d0fe14b8a8..2ddbe1e8bba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionForward.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionForward.java @@ -11,17 +11,10 @@ @CustomType public final class GetListenerDefaultActionForward { - private final List stickinesses; - private final List targetGroups; - - @CustomType.Constructor - private GetListenerDefaultActionForward( - @CustomType.Parameter("stickinesses") List stickinesses, - @CustomType.Parameter("targetGroups") List targetGroups) { - this.stickinesses = stickinesses; - this.targetGroups = targetGroups; - } + private List stickinesses; + private List targetGroups; + private GetListenerDefaultActionForward() {} public List stickinesses() { return this.stickinesses; } @@ -36,21 +29,18 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionForward defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List stickinesses; private List targetGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionForward defaults) { Objects.requireNonNull(defaults); this.stickinesses = defaults.stickinesses; this.targetGroups = defaults.targetGroups; } + @CustomType.Setter public Builder stickinesses(List stickinesses) { this.stickinesses = Objects.requireNonNull(stickinesses); return this; @@ -58,14 +48,19 @@ public Builder stickinesses(List stic public Builder stickinesses(GetListenerDefaultActionForwardStickiness... stickinesses) { return stickinesses(List.of(stickinesses)); } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; } public Builder targetGroups(GetListenerDefaultActionForwardTargetGroup... targetGroups) { return targetGroups(List.of(targetGroups)); - } public GetListenerDefaultActionForward build() { - return new GetListenerDefaultActionForward(stickinesses, targetGroups); + } + public GetListenerDefaultActionForward build() { + final var o = new GetListenerDefaultActionForward(); + o.stickinesses = stickinesses; + o.targetGroups = targetGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionForwardStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionForwardStickiness.java index 3f20d314287..cee5bdd3094 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionForwardStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionForwardStickiness.java @@ -10,17 +10,10 @@ @CustomType public final class GetListenerDefaultActionForwardStickiness { - private final Integer duration; - private final Boolean enabled; - - @CustomType.Constructor - private GetListenerDefaultActionForwardStickiness( - @CustomType.Parameter("duration") Integer duration, - @CustomType.Parameter("enabled") Boolean enabled) { - this.duration = duration; - this.enabled = enabled; - } + private Integer duration; + private Boolean enabled; + private GetListenerDefaultActionForwardStickiness() {} public Integer duration() { return this.duration; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionForwardStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer duration; private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionForwardStickiness defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder duration(Integer duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public GetListenerDefaultActionForwardStickiness build() { - return new GetListenerDefaultActionForwardStickiness(duration, enabled); + } + public GetListenerDefaultActionForwardStickiness build() { + final var o = new GetListenerDefaultActionForwardStickiness(); + o.duration = duration; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionForwardTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionForwardTargetGroup.java index 07b1ff48566..fa50c9904be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionForwardTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionForwardTargetGroup.java @@ -14,17 +14,10 @@ public final class GetListenerDefaultActionForwardTargetGroup { * @return ARN of the listener. Required if `load_balancer_arn` and `port` is not set. * */ - private final String arn; - private final Integer weight; - - @CustomType.Constructor - private GetListenerDefaultActionForwardTargetGroup( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("weight") Integer weight) { - this.arn = arn; - this.weight = weight; - } + private String arn; + private Integer weight; + private GetListenerDefaultActionForwardTargetGroup() {} /** * @return ARN of the listener. Required if `load_balancer_arn` and `port` is not set. * @@ -43,30 +36,32 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionForwardTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionForwardTargetGroup defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.weight = defaults.weight; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder weight(Integer weight) { this.weight = Objects.requireNonNull(weight); return this; - } public GetListenerDefaultActionForwardTargetGroup build() { - return new GetListenerDefaultActionForwardTargetGroup(arn, weight); + } + public GetListenerDefaultActionForwardTargetGroup build() { + final var o = new GetListenerDefaultActionForwardTargetGroup(); + o.arn = arn; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionRedirect.java index e05289e84c5..216ede42ba7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerDefaultActionRedirect.java @@ -9,33 +9,18 @@ @CustomType public final class GetListenerDefaultActionRedirect { - private final String host; - private final String path; + private String host; + private String path; /** * @return Port of the listener. Required if `arn` is not set. * */ - private final String port; - private final String protocol; - private final String query; - private final String statusCode; - - @CustomType.Constructor - private GetListenerDefaultActionRedirect( - @CustomType.Parameter("host") String host, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("port") String port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("query") String query, - @CustomType.Parameter("statusCode") String statusCode) { - this.host = host; - this.path = path; - this.port = port; - this.protocol = protocol; - this.query = query; - this.statusCode = statusCode; - } + private String port; + private String protocol; + private String query; + private String statusCode; + private GetListenerDefaultActionRedirect() {} public String host() { return this.host; } @@ -66,7 +51,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String host; private String path; @@ -74,11 +59,7 @@ public static final class Builder { private String protocol; private String query; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionRedirect defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -89,31 +70,45 @@ public Builder(GetListenerDefaultActionRedirect defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder port(String port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder query(String query) { this.query = Objects.requireNonNull(query); return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public GetListenerDefaultActionRedirect build() { - return new GetListenerDefaultActionRedirect(host, path, port, protocol, query, statusCode); + } + public GetListenerDefaultActionRedirect build() { + final var o = new GetListenerDefaultActionRedirect(); + o.host = host; + o.path = path; + o.port = port; + o.protocol = protocol; + o.query = query; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerResult.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerResult.java index 556560093b9..30b9dc9cdc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetListenerResult.java @@ -13,45 +13,22 @@ @CustomType public final class GetListenerResult { - private final String alpnPolicy; - private final String arn; - private final String certificateArn; - private final List defaultActions; + private String alpnPolicy; + private String arn; + private String certificateArn; + private List defaultActions; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String loadBalancerArn; - private final Integer port; - private final String protocol; - private final String sslPolicy; - private final Map tags; - - @CustomType.Constructor - private GetListenerResult( - @CustomType.Parameter("alpnPolicy") String alpnPolicy, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("certificateArn") String certificateArn, - @CustomType.Parameter("defaultActions") List defaultActions, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("loadBalancerArn") String loadBalancerArn, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("sslPolicy") String sslPolicy, - @CustomType.Parameter("tags") Map tags) { - this.alpnPolicy = alpnPolicy; - this.arn = arn; - this.certificateArn = certificateArn; - this.defaultActions = defaultActions; - this.id = id; - this.loadBalancerArn = loadBalancerArn; - this.port = port; - this.protocol = protocol; - this.sslPolicy = sslPolicy; - this.tags = tags; - } + private String id; + private String loadBalancerArn; + private Integer port; + private String protocol; + private String sslPolicy; + private Map tags; + private GetListenerResult() {} public String alpnPolicy() { return this.alpnPolicy; } @@ -94,7 +71,7 @@ public static Builder builder() { public static Builder builder(GetListenerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String alpnPolicy; private String arn; @@ -106,11 +83,7 @@ public static final class Builder { private String protocol; private String sslPolicy; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerResult defaults) { Objects.requireNonNull(defaults); this.alpnPolicy = defaults.alpnPolicy; @@ -125,18 +98,22 @@ public Builder(GetListenerResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder alpnPolicy(String alpnPolicy) { this.alpnPolicy = Objects.requireNonNull(alpnPolicy); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder certificateArn(String certificateArn) { this.certificateArn = Objects.requireNonNull(certificateArn); return this; } + @CustomType.Setter public Builder defaultActions(List defaultActions) { this.defaultActions = Objects.requireNonNull(defaultActions); return this; @@ -144,31 +121,49 @@ public Builder defaultActions(List defaultActions) { public Builder defaultActions(GetListenerDefaultAction... defaultActions) { return defaultActions(List.of(defaultActions)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder loadBalancerArn(String loadBalancerArn) { this.loadBalancerArn = Objects.requireNonNull(loadBalancerArn); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder sslPolicy(String sslPolicy) { this.sslPolicy = Objects.requireNonNull(sslPolicy); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetListenerResult build() { - return new GetListenerResult(alpnPolicy, arn, certificateArn, defaultActions, id, loadBalancerArn, port, protocol, sslPolicy, tags); + } + public GetListenerResult build() { + final var o = new GetListenerResult(); + o.alpnPolicy = alpnPolicy; + o.arn = arn; + o.certificateArn = certificateArn; + o.defaultActions = defaultActions; + o.id = id; + o.loadBalancerArn = loadBalancerArn; + o.port = port; + o.protocol = protocol; + o.sslPolicy = sslPolicy; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetLoadBalancerAccessLogs.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetLoadBalancerAccessLogs.java index 9de56bb4314..3594b61fd84 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetLoadBalancerAccessLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetLoadBalancerAccessLogs.java @@ -10,20 +10,11 @@ @CustomType public final class GetLoadBalancerAccessLogs { - private final String bucket; - private final Boolean enabled; - private final String prefix; - - @CustomType.Constructor - private GetLoadBalancerAccessLogs( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("prefix") String prefix) { - this.bucket = bucket; - this.enabled = enabled; - this.prefix = prefix; - } + private String bucket; + private Boolean enabled; + private String prefix; + private GetLoadBalancerAccessLogs() {} public String bucket() { return this.bucket; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerAccessLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private Boolean enabled; private String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerAccessLogs defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -58,19 +45,27 @@ public Builder(GetLoadBalancerAccessLogs defaults) { this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder prefix(String prefix) { this.prefix = Objects.requireNonNull(prefix); return this; - } public GetLoadBalancerAccessLogs build() { - return new GetLoadBalancerAccessLogs(bucket, enabled, prefix); + } + public GetLoadBalancerAccessLogs build() { + final var o = new GetLoadBalancerAccessLogs(); + o.bucket = bucket; + o.enabled = enabled; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetLoadBalancerResult.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetLoadBalancerResult.java index 3e79d414b4c..40e30293aea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetLoadBalancerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetLoadBalancerResult.java @@ -15,84 +15,35 @@ @CustomType public final class GetLoadBalancerResult { - private final GetLoadBalancerAccessLogs accessLogs; - private final String arn; - private final String arnSuffix; - private final String customerOwnedIpv4Pool; - private final String desyncMitigationMode; - private final String dnsName; - private final Boolean dropInvalidHeaderFields; - private final Boolean enableDeletionProtection; - private final Boolean enableHttp2; - private final Boolean enableWafFailOpen; + private GetLoadBalancerAccessLogs accessLogs; + private String arn; + private String arnSuffix; + private String customerOwnedIpv4Pool; + private String desyncMitigationMode; + private String dnsName; + private Boolean dropInvalidHeaderFields; + private Boolean enableDeletionProtection; + private Boolean enableHttp2; + private Boolean enableWafFailOpen; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final Integer idleTimeout; - private final Boolean internal; - private final String ipAddressType; - private final String loadBalancerType; - private final String name; - private final Boolean preserveHostHeader; - private final List securityGroups; - private final List subnetMappings; - private final List subnets; - private final Map tags; - private final String vpcId; - private final String zoneId; - - @CustomType.Constructor - private GetLoadBalancerResult( - @CustomType.Parameter("accessLogs") GetLoadBalancerAccessLogs accessLogs, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("arnSuffix") String arnSuffix, - @CustomType.Parameter("customerOwnedIpv4Pool") String customerOwnedIpv4Pool, - @CustomType.Parameter("desyncMitigationMode") String desyncMitigationMode, - @CustomType.Parameter("dnsName") String dnsName, - @CustomType.Parameter("dropInvalidHeaderFields") Boolean dropInvalidHeaderFields, - @CustomType.Parameter("enableDeletionProtection") Boolean enableDeletionProtection, - @CustomType.Parameter("enableHttp2") Boolean enableHttp2, - @CustomType.Parameter("enableWafFailOpen") Boolean enableWafFailOpen, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("idleTimeout") Integer idleTimeout, - @CustomType.Parameter("internal") Boolean internal, - @CustomType.Parameter("ipAddressType") String ipAddressType, - @CustomType.Parameter("loadBalancerType") String loadBalancerType, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("preserveHostHeader") Boolean preserveHostHeader, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("subnetMappings") List subnetMappings, - @CustomType.Parameter("subnets") List subnets, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId, - @CustomType.Parameter("zoneId") String zoneId) { - this.accessLogs = accessLogs; - this.arn = arn; - this.arnSuffix = arnSuffix; - this.customerOwnedIpv4Pool = customerOwnedIpv4Pool; - this.desyncMitigationMode = desyncMitigationMode; - this.dnsName = dnsName; - this.dropInvalidHeaderFields = dropInvalidHeaderFields; - this.enableDeletionProtection = enableDeletionProtection; - this.enableHttp2 = enableHttp2; - this.enableWafFailOpen = enableWafFailOpen; - this.id = id; - this.idleTimeout = idleTimeout; - this.internal = internal; - this.ipAddressType = ipAddressType; - this.loadBalancerType = loadBalancerType; - this.name = name; - this.preserveHostHeader = preserveHostHeader; - this.securityGroups = securityGroups; - this.subnetMappings = subnetMappings; - this.subnets = subnets; - this.tags = tags; - this.vpcId = vpcId; - this.zoneId = zoneId; - } + private String id; + private Integer idleTimeout; + private Boolean internal; + private String ipAddressType; + private String loadBalancerType; + private String name; + private Boolean preserveHostHeader; + private List securityGroups; + private List subnetMappings; + private List subnets; + private Map tags; + private String vpcId; + private String zoneId; + private GetLoadBalancerResult() {} public GetLoadBalancerAccessLogs accessLogs() { return this.accessLogs; } @@ -174,7 +125,7 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GetLoadBalancerAccessLogs accessLogs; private String arn; @@ -199,11 +150,7 @@ public static final class Builder { private Map tags; private String vpcId; private String zoneId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerResult defaults) { Objects.requireNonNull(defaults); this.accessLogs = defaults.accessLogs; @@ -231,74 +178,92 @@ public Builder(GetLoadBalancerResult defaults) { this.zoneId = defaults.zoneId; } + @CustomType.Setter public Builder accessLogs(GetLoadBalancerAccessLogs accessLogs) { this.accessLogs = Objects.requireNonNull(accessLogs); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder arnSuffix(String arnSuffix) { this.arnSuffix = Objects.requireNonNull(arnSuffix); return this; } + @CustomType.Setter public Builder customerOwnedIpv4Pool(String customerOwnedIpv4Pool) { this.customerOwnedIpv4Pool = Objects.requireNonNull(customerOwnedIpv4Pool); return this; } + @CustomType.Setter public Builder desyncMitigationMode(String desyncMitigationMode) { this.desyncMitigationMode = Objects.requireNonNull(desyncMitigationMode); return this; } + @CustomType.Setter public Builder dnsName(String dnsName) { this.dnsName = Objects.requireNonNull(dnsName); return this; } + @CustomType.Setter public Builder dropInvalidHeaderFields(Boolean dropInvalidHeaderFields) { this.dropInvalidHeaderFields = Objects.requireNonNull(dropInvalidHeaderFields); return this; } + @CustomType.Setter public Builder enableDeletionProtection(Boolean enableDeletionProtection) { this.enableDeletionProtection = Objects.requireNonNull(enableDeletionProtection); return this; } + @CustomType.Setter public Builder enableHttp2(Boolean enableHttp2) { this.enableHttp2 = Objects.requireNonNull(enableHttp2); return this; } + @CustomType.Setter public Builder enableWafFailOpen(Boolean enableWafFailOpen) { this.enableWafFailOpen = Objects.requireNonNull(enableWafFailOpen); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder idleTimeout(Integer idleTimeout) { this.idleTimeout = Objects.requireNonNull(idleTimeout); return this; } + @CustomType.Setter public Builder internal(Boolean internal) { this.internal = Objects.requireNonNull(internal); return this; } + @CustomType.Setter public Builder ipAddressType(String ipAddressType) { this.ipAddressType = Objects.requireNonNull(ipAddressType); return this; } + @CustomType.Setter public Builder loadBalancerType(String loadBalancerType) { this.loadBalancerType = Objects.requireNonNull(loadBalancerType); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder preserveHostHeader(Boolean preserveHostHeader) { this.preserveHostHeader = Objects.requireNonNull(preserveHostHeader); return this; } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -306,6 +271,7 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnetMappings(List subnetMappings) { this.subnetMappings = Objects.requireNonNull(subnetMappings); return this; @@ -313,6 +279,7 @@ public Builder subnetMappings(List subnetMappings) public Builder subnetMappings(GetLoadBalancerSubnetMapping... subnetMappings) { return subnetMappings(List.of(subnetMappings)); } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; @@ -320,19 +287,47 @@ public Builder subnets(List subnets) { public Builder subnets(String... subnets) { return subnets(List.of(subnets)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; } + @CustomType.Setter public Builder zoneId(String zoneId) { this.zoneId = Objects.requireNonNull(zoneId); return this; - } public GetLoadBalancerResult build() { - return new GetLoadBalancerResult(accessLogs, arn, arnSuffix, customerOwnedIpv4Pool, desyncMitigationMode, dnsName, dropInvalidHeaderFields, enableDeletionProtection, enableHttp2, enableWafFailOpen, id, idleTimeout, internal, ipAddressType, loadBalancerType, name, preserveHostHeader, securityGroups, subnetMappings, subnets, tags, vpcId, zoneId); + } + public GetLoadBalancerResult build() { + final var o = new GetLoadBalancerResult(); + o.accessLogs = accessLogs; + o.arn = arn; + o.arnSuffix = arnSuffix; + o.customerOwnedIpv4Pool = customerOwnedIpv4Pool; + o.desyncMitigationMode = desyncMitigationMode; + o.dnsName = dnsName; + o.dropInvalidHeaderFields = dropInvalidHeaderFields; + o.enableDeletionProtection = enableDeletionProtection; + o.enableHttp2 = enableHttp2; + o.enableWafFailOpen = enableWafFailOpen; + o.id = id; + o.idleTimeout = idleTimeout; + o.internal = internal; + o.ipAddressType = ipAddressType; + o.loadBalancerType = loadBalancerType; + o.name = name; + o.preserveHostHeader = preserveHostHeader; + o.securityGroups = securityGroups; + o.subnetMappings = subnetMappings; + o.subnets = subnets; + o.tags = tags; + o.vpcId = vpcId; + o.zoneId = zoneId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetLoadBalancerSubnetMapping.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetLoadBalancerSubnetMapping.java index 4002a1b6992..419e78eb582 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetLoadBalancerSubnetMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetLoadBalancerSubnetMapping.java @@ -9,26 +9,13 @@ @CustomType public final class GetLoadBalancerSubnetMapping { - private final String allocationId; - private final String ipv6Address; - private final String outpostId; - private final String privateIpv4Address; - private final String subnetId; - - @CustomType.Constructor - private GetLoadBalancerSubnetMapping( - @CustomType.Parameter("allocationId") String allocationId, - @CustomType.Parameter("ipv6Address") String ipv6Address, - @CustomType.Parameter("outpostId") String outpostId, - @CustomType.Parameter("privateIpv4Address") String privateIpv4Address, - @CustomType.Parameter("subnetId") String subnetId) { - this.allocationId = allocationId; - this.ipv6Address = ipv6Address; - this.outpostId = outpostId; - this.privateIpv4Address = privateIpv4Address; - this.subnetId = subnetId; - } + private String allocationId; + private String ipv6Address; + private String outpostId; + private String privateIpv4Address; + private String subnetId; + private GetLoadBalancerSubnetMapping() {} public String allocationId() { return this.allocationId; } @@ -52,18 +39,14 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerSubnetMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String allocationId; private String ipv6Address; private String outpostId; private String privateIpv4Address; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerSubnetMapping defaults) { Objects.requireNonNull(defaults); this.allocationId = defaults.allocationId; @@ -73,27 +56,39 @@ public Builder(GetLoadBalancerSubnetMapping defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder allocationId(String allocationId) { this.allocationId = Objects.requireNonNull(allocationId); return this; } + @CustomType.Setter public Builder ipv6Address(String ipv6Address) { this.ipv6Address = Objects.requireNonNull(ipv6Address); return this; } + @CustomType.Setter public Builder outpostId(String outpostId) { this.outpostId = Objects.requireNonNull(outpostId); return this; } + @CustomType.Setter public Builder privateIpv4Address(String privateIpv4Address) { this.privateIpv4Address = Objects.requireNonNull(privateIpv4Address); return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public GetLoadBalancerSubnetMapping build() { - return new GetLoadBalancerSubnetMapping(allocationId, ipv6Address, outpostId, privateIpv4Address, subnetId); + } + public GetLoadBalancerSubnetMapping build() { + final var o = new GetLoadBalancerSubnetMapping(); + o.allocationId = allocationId; + o.ipv6Address = ipv6Address; + o.outpostId = outpostId; + o.privateIpv4Address = privateIpv4Address; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetTargetGroupHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetTargetGroupHealthCheck.java index 47aa90a596e..2498aeb3e12 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetTargetGroupHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetTargetGroupHealthCheck.java @@ -11,38 +11,17 @@ @CustomType public final class GetTargetGroupHealthCheck { - private final Boolean enabled; - private final Integer healthyThreshold; - private final Integer interval; - private final String matcher; - private final String path; - private final String port; - private final String protocol; - private final Integer timeout; - private final Integer unhealthyThreshold; - - @CustomType.Constructor - private GetTargetGroupHealthCheck( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("healthyThreshold") Integer healthyThreshold, - @CustomType.Parameter("interval") Integer interval, - @CustomType.Parameter("matcher") String matcher, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("port") String port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("timeout") Integer timeout, - @CustomType.Parameter("unhealthyThreshold") Integer unhealthyThreshold) { - this.enabled = enabled; - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.matcher = matcher; - this.path = path; - this.port = port; - this.protocol = protocol; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private Boolean enabled; + private Integer healthyThreshold; + private Integer interval; + private String matcher; + private String path; + private String port; + private String protocol; + private Integer timeout; + private Integer unhealthyThreshold; + private GetTargetGroupHealthCheck() {} public Boolean enabled() { return this.enabled; } @@ -78,7 +57,7 @@ public static Builder builder() { public static Builder builder(GetTargetGroupHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private Integer healthyThreshold; @@ -89,11 +68,7 @@ public static final class Builder { private String protocol; private Integer timeout; private Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTargetGroupHealthCheck defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; @@ -107,43 +82,63 @@ public Builder(GetTargetGroupHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder healthyThreshold(Integer healthyThreshold) { this.healthyThreshold = Objects.requireNonNull(healthyThreshold); return this; } + @CustomType.Setter public Builder interval(Integer interval) { this.interval = Objects.requireNonNull(interval); return this; } + @CustomType.Setter public Builder matcher(String matcher) { this.matcher = Objects.requireNonNull(matcher); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder port(String port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder timeout(Integer timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } + @CustomType.Setter public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.unhealthyThreshold = Objects.requireNonNull(unhealthyThreshold); return this; - } public GetTargetGroupHealthCheck build() { - return new GetTargetGroupHealthCheck(enabled, healthyThreshold, interval, matcher, path, port, protocol, timeout, unhealthyThreshold); + } + public GetTargetGroupHealthCheck build() { + final var o = new GetTargetGroupHealthCheck(); + o.enabled = enabled; + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.matcher = matcher; + o.path = path; + o.port = port; + o.protocol = protocol; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetTargetGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetTargetGroupResult.java index 5291c3e4c50..6595d8b7016 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetTargetGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetTargetGroupResult.java @@ -14,72 +14,31 @@ @CustomType public final class GetTargetGroupResult { - private final String arn; - private final String arnSuffix; - private final Boolean connectionTermination; - private final Integer deregistrationDelay; - private final GetTargetGroupHealthCheck healthCheck; + private String arn; + private String arnSuffix; + private Boolean connectionTermination; + private Integer deregistrationDelay; + private GetTargetGroupHealthCheck healthCheck; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final Boolean lambdaMultiValueHeadersEnabled; - private final String loadBalancingAlgorithmType; - private final String name; - private final Integer port; - private final String preserveClientIp; - private final String protocol; - private final String protocolVersion; - private final Boolean proxyProtocolV2; - private final Integer slowStart; - private final GetTargetGroupStickiness stickiness; - private final Map tags; - private final String targetType; - private final String vpcId; - - @CustomType.Constructor - private GetTargetGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("arnSuffix") String arnSuffix, - @CustomType.Parameter("connectionTermination") Boolean connectionTermination, - @CustomType.Parameter("deregistrationDelay") Integer deregistrationDelay, - @CustomType.Parameter("healthCheck") GetTargetGroupHealthCheck healthCheck, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lambdaMultiValueHeadersEnabled") Boolean lambdaMultiValueHeadersEnabled, - @CustomType.Parameter("loadBalancingAlgorithmType") String loadBalancingAlgorithmType, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("preserveClientIp") String preserveClientIp, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("protocolVersion") String protocolVersion, - @CustomType.Parameter("proxyProtocolV2") Boolean proxyProtocolV2, - @CustomType.Parameter("slowStart") Integer slowStart, - @CustomType.Parameter("stickiness") GetTargetGroupStickiness stickiness, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("targetType") String targetType, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.arnSuffix = arnSuffix; - this.connectionTermination = connectionTermination; - this.deregistrationDelay = deregistrationDelay; - this.healthCheck = healthCheck; - this.id = id; - this.lambdaMultiValueHeadersEnabled = lambdaMultiValueHeadersEnabled; - this.loadBalancingAlgorithmType = loadBalancingAlgorithmType; - this.name = name; - this.port = port; - this.preserveClientIp = preserveClientIp; - this.protocol = protocol; - this.protocolVersion = protocolVersion; - this.proxyProtocolV2 = proxyProtocolV2; - this.slowStart = slowStart; - this.stickiness = stickiness; - this.tags = tags; - this.targetType = targetType; - this.vpcId = vpcId; - } + private String id; + private Boolean lambdaMultiValueHeadersEnabled; + private String loadBalancingAlgorithmType; + private String name; + private Integer port; + private String preserveClientIp; + private String protocol; + private String protocolVersion; + private Boolean proxyProtocolV2; + private Integer slowStart; + private GetTargetGroupStickiness stickiness; + private Map tags; + private String targetType; + private String vpcId; + private GetTargetGroupResult() {} public String arn() { return this.arn; } @@ -149,7 +108,7 @@ public static Builder builder() { public static Builder builder(GetTargetGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String arnSuffix; @@ -170,11 +129,7 @@ public static final class Builder { private Map tags; private String targetType; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTargetGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -198,83 +153,123 @@ public Builder(GetTargetGroupResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder arnSuffix(String arnSuffix) { this.arnSuffix = Objects.requireNonNull(arnSuffix); return this; } + @CustomType.Setter public Builder connectionTermination(Boolean connectionTermination) { this.connectionTermination = Objects.requireNonNull(connectionTermination); return this; } + @CustomType.Setter public Builder deregistrationDelay(Integer deregistrationDelay) { this.deregistrationDelay = Objects.requireNonNull(deregistrationDelay); return this; } + @CustomType.Setter public Builder healthCheck(GetTargetGroupHealthCheck healthCheck) { this.healthCheck = Objects.requireNonNull(healthCheck); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lambdaMultiValueHeadersEnabled(Boolean lambdaMultiValueHeadersEnabled) { this.lambdaMultiValueHeadersEnabled = Objects.requireNonNull(lambdaMultiValueHeadersEnabled); return this; } + @CustomType.Setter public Builder loadBalancingAlgorithmType(String loadBalancingAlgorithmType) { this.loadBalancingAlgorithmType = Objects.requireNonNull(loadBalancingAlgorithmType); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder preserveClientIp(String preserveClientIp) { this.preserveClientIp = Objects.requireNonNull(preserveClientIp); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder protocolVersion(String protocolVersion) { this.protocolVersion = Objects.requireNonNull(protocolVersion); return this; } + @CustomType.Setter public Builder proxyProtocolV2(Boolean proxyProtocolV2) { this.proxyProtocolV2 = Objects.requireNonNull(proxyProtocolV2); return this; } + @CustomType.Setter public Builder slowStart(Integer slowStart) { this.slowStart = Objects.requireNonNull(slowStart); return this; } + @CustomType.Setter public Builder stickiness(GetTargetGroupStickiness stickiness) { this.stickiness = Objects.requireNonNull(stickiness); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder targetType(String targetType) { this.targetType = Objects.requireNonNull(targetType); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetTargetGroupResult build() { - return new GetTargetGroupResult(arn, arnSuffix, connectionTermination, deregistrationDelay, healthCheck, id, lambdaMultiValueHeadersEnabled, loadBalancingAlgorithmType, name, port, preserveClientIp, protocol, protocolVersion, proxyProtocolV2, slowStart, stickiness, tags, targetType, vpcId); + } + public GetTargetGroupResult build() { + final var o = new GetTargetGroupResult(); + o.arn = arn; + o.arnSuffix = arnSuffix; + o.connectionTermination = connectionTermination; + o.deregistrationDelay = deregistrationDelay; + o.healthCheck = healthCheck; + o.id = id; + o.lambdaMultiValueHeadersEnabled = lambdaMultiValueHeadersEnabled; + o.loadBalancingAlgorithmType = loadBalancingAlgorithmType; + o.name = name; + o.port = port; + o.preserveClientIp = preserveClientIp; + o.protocol = protocol; + o.protocolVersion = protocolVersion; + o.proxyProtocolV2 = proxyProtocolV2; + o.slowStart = slowStart; + o.stickiness = stickiness; + o.tags = tags; + o.targetType = targetType; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetTargetGroupStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetTargetGroupStickiness.java index b9687cfbc55..da0a8ce97bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetTargetGroupStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/GetTargetGroupStickiness.java @@ -11,23 +11,12 @@ @CustomType public final class GetTargetGroupStickiness { - private final Integer cookieDuration; - private final String cookieName; - private final Boolean enabled; - private final String type; - - @CustomType.Constructor - private GetTargetGroupStickiness( - @CustomType.Parameter("cookieDuration") Integer cookieDuration, - @CustomType.Parameter("cookieName") String cookieName, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("type") String type) { - this.cookieDuration = cookieDuration; - this.cookieName = cookieName; - this.enabled = enabled; - this.type = type; - } + private Integer cookieDuration; + private String cookieName; + private Boolean enabled; + private String type; + private GetTargetGroupStickiness() {} public Integer cookieDuration() { return this.cookieDuration; } @@ -48,17 +37,13 @@ public static Builder builder() { public static Builder builder(GetTargetGroupStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer cookieDuration; private String cookieName; private Boolean enabled; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTargetGroupStickiness defaults) { Objects.requireNonNull(defaults); this.cookieDuration = defaults.cookieDuration; @@ -67,23 +52,33 @@ public Builder(GetTargetGroupStickiness defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder cookieDuration(Integer cookieDuration) { this.cookieDuration = Objects.requireNonNull(cookieDuration); return this; } + @CustomType.Setter public Builder cookieName(String cookieName) { this.cookieName = Objects.requireNonNull(cookieName); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetTargetGroupStickiness build() { - return new GetTargetGroupStickiness(cookieDuration, cookieName, enabled, type); + } + public GetTargetGroupStickiness build() { + final var o = new GetTargetGroupStickiness(); + o.cookieDuration = cookieDuration; + o.cookieName = cookieName; + o.enabled = enabled; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultAction.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultAction.java index c706e5389ae..0c819f448e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultAction.java @@ -21,63 +21,44 @@ public final class ListenerDefaultAction { * @return Configuration block for using Amazon Cognito to authenticate users. Specify only when `type` is `authenticate-cognito`. Detailed below. * */ - private final @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito; + private @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito; /** * @return Configuration block for an identity provider that is compliant with OpenID Connect (OIDC). Specify only when `type` is `authenticate-oidc`. Detailed below. * */ - private final @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc; + private @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc; /** * @return Information for creating an action that returns a custom HTTP response. Required if `type` is `fixed-response`. * */ - private final @Nullable ListenerDefaultActionFixedResponse fixedResponse; + private @Nullable ListenerDefaultActionFixedResponse fixedResponse; /** * @return Configuration block for creating an action that distributes requests among one or more target groups. Specify only if `type` is `forward`. If you specify both `forward` block and `target_group_arn` attribute, you can specify only one target group using `forward` and it must be the same target group specified in `target_group_arn`. Detailed below. * */ - private final @Nullable ListenerDefaultActionForward forward; + private @Nullable ListenerDefaultActionForward forward; /** * @return Order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first. Valid values are between `1` and `50000`. * */ - private final @Nullable Integer order; + private @Nullable Integer order; /** * @return Configuration block for creating a redirect action. Required if `type` is `redirect`. Detailed below. * */ - private final @Nullable ListenerDefaultActionRedirect redirect; + private @Nullable ListenerDefaultActionRedirect redirect; /** * @return ARN of the Target Group to which to route traffic. Specify only if `type` is `forward` and you want to route to a single target group. To route to one or more target groups, use a `forward` block instead. * */ - private final @Nullable String targetGroupArn; + private @Nullable String targetGroupArn; /** * @return Type of routing action. Valid values are `forward`, `redirect`, `fixed-response`, `authenticate-cognito` and `authenticate-oidc`. * */ - private final String type; - - @CustomType.Constructor - private ListenerDefaultAction( - @CustomType.Parameter("authenticateCognito") @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito, - @CustomType.Parameter("authenticateOidc") @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc, - @CustomType.Parameter("fixedResponse") @Nullable ListenerDefaultActionFixedResponse fixedResponse, - @CustomType.Parameter("forward") @Nullable ListenerDefaultActionForward forward, - @CustomType.Parameter("order") @Nullable Integer order, - @CustomType.Parameter("redirect") @Nullable ListenerDefaultActionRedirect redirect, - @CustomType.Parameter("targetGroupArn") @Nullable String targetGroupArn, - @CustomType.Parameter("type") String type) { - this.authenticateCognito = authenticateCognito; - this.authenticateOidc = authenticateOidc; - this.fixedResponse = fixedResponse; - this.forward = forward; - this.order = order; - this.redirect = redirect; - this.targetGroupArn = targetGroupArn; - this.type = type; - } + private String type; + private ListenerDefaultAction() {} /** * @return Configuration block for using Amazon Cognito to authenticate users. Specify only when `type` is `authenticate-cognito`. Detailed below. * @@ -142,7 +123,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito; private @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc; @@ -152,11 +133,7 @@ public static final class Builder { private @Nullable ListenerDefaultActionRedirect redirect; private @Nullable String targetGroupArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultAction defaults) { Objects.requireNonNull(defaults); this.authenticateCognito = defaults.authenticateCognito; @@ -169,39 +146,57 @@ public Builder(ListenerDefaultAction defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder authenticateCognito(@Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito) { this.authenticateCognito = authenticateCognito; return this; } + @CustomType.Setter public Builder authenticateOidc(@Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc) { this.authenticateOidc = authenticateOidc; return this; } + @CustomType.Setter public Builder fixedResponse(@Nullable ListenerDefaultActionFixedResponse fixedResponse) { this.fixedResponse = fixedResponse; return this; } + @CustomType.Setter public Builder forward(@Nullable ListenerDefaultActionForward forward) { this.forward = forward; return this; } + @CustomType.Setter public Builder order(@Nullable Integer order) { this.order = order; return this; } + @CustomType.Setter public Builder redirect(@Nullable ListenerDefaultActionRedirect redirect) { this.redirect = redirect; return this; } + @CustomType.Setter public Builder targetGroupArn(@Nullable String targetGroupArn) { this.targetGroupArn = targetGroupArn; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ListenerDefaultAction build() { - return new ListenerDefaultAction(authenticateCognito, authenticateOidc, fixedResponse, forward, order, redirect, targetGroupArn, type); + } + public ListenerDefaultAction build() { + final var o = new ListenerDefaultAction(); + o.authenticateCognito = authenticateCognito; + o.authenticateOidc = authenticateOidc; + o.fixedResponse = fixedResponse; + o.forward = forward; + o.order = order; + o.redirect = redirect; + o.targetGroupArn = targetGroupArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionAuthenticateCognito.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionAuthenticateCognito.java index 40baaa2bd3d..869c3c0fb4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionAuthenticateCognito.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionAuthenticateCognito.java @@ -17,63 +17,44 @@ public final class ListenerDefaultActionAuthenticateCognito { * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return Behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return Set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return Name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return Maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return ARN of the Cognito user pool. * */ - private final String userPoolArn; + private String userPoolArn; /** * @return ID of the Cognito user pool client. * */ - private final String userPoolClientId; + private String userPoolClientId; /** * @return Domain prefix or fully-qualified domain name of the Cognito user pool. * */ - private final String userPoolDomain; - - @CustomType.Constructor - private ListenerDefaultActionAuthenticateCognito( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("userPoolArn") String userPoolArn, - @CustomType.Parameter("userPoolClientId") String userPoolClientId, - @CustomType.Parameter("userPoolDomain") String userPoolDomain) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.userPoolArn = userPoolArn; - this.userPoolClientId = userPoolClientId; - this.userPoolDomain = userPoolDomain; - } + private String userPoolDomain; + private ListenerDefaultActionAuthenticateCognito() {} /** * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -138,7 +119,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionAuthenticateCognito defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private @Nullable String onUnauthenticatedRequest; @@ -148,11 +129,7 @@ public static final class Builder { private String userPoolArn; private String userPoolClientId; private String userPoolDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionAuthenticateCognito defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -165,39 +142,57 @@ public Builder(ListenerDefaultActionAuthenticateCognito defaults) { this.userPoolDomain = defaults.userPoolDomain; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder userPoolArn(String userPoolArn) { this.userPoolArn = Objects.requireNonNull(userPoolArn); return this; } + @CustomType.Setter public Builder userPoolClientId(String userPoolClientId) { this.userPoolClientId = Objects.requireNonNull(userPoolClientId); return this; } + @CustomType.Setter public Builder userPoolDomain(String userPoolDomain) { this.userPoolDomain = Objects.requireNonNull(userPoolDomain); return this; - } public ListenerDefaultActionAuthenticateCognito build() { - return new ListenerDefaultActionAuthenticateCognito(authenticationRequestExtraParams, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, userPoolArn, userPoolClientId, userPoolDomain); + } + public ListenerDefaultActionAuthenticateCognito build() { + final var o = new ListenerDefaultActionAuthenticateCognito(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.userPoolArn = userPoolArn; + o.userPoolClientId = userPoolClientId; + o.userPoolDomain = userPoolDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionAuthenticateOidc.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionAuthenticateOidc.java index 00044433e73..8c9276e0e86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionAuthenticateOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionAuthenticateOidc.java @@ -17,84 +17,59 @@ public final class ListenerDefaultActionAuthenticateOidc { * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return Authorization endpoint of the IdP. * */ - private final String authorizationEndpoint; + private String authorizationEndpoint; /** * @return OAuth 2.0 client identifier. * */ - private final String clientId; + private String clientId; /** * @return OAuth 2.0 client secret. * */ - private final String clientSecret; + private String clientSecret; /** * @return OIDC issuer identifier of the IdP. * */ - private final String issuer; + private String issuer; /** * @return Behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return Set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return Name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return Maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return Token endpoint of the IdP. * */ - private final String tokenEndpoint; + private String tokenEndpoint; /** * @return User info endpoint of the IdP. * */ - private final String userInfoEndpoint; - - @CustomType.Constructor - private ListenerDefaultActionAuthenticateOidc( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private String userInfoEndpoint; + private ListenerDefaultActionAuthenticateOidc() {} /** * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -180,7 +155,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionAuthenticateOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private String authorizationEndpoint; @@ -193,11 +168,7 @@ public static final class Builder { private @Nullable Integer sessionTimeout; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionAuthenticateOidc defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -213,51 +184,75 @@ public Builder(ListenerDefaultActionAuthenticateOidc defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public ListenerDefaultActionAuthenticateOidc build() { - return new ListenerDefaultActionAuthenticateOidc(authenticationRequestExtraParams, authorizationEndpoint, clientId, clientSecret, issuer, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, tokenEndpoint, userInfoEndpoint); + } + public ListenerDefaultActionAuthenticateOidc build() { + final var o = new ListenerDefaultActionAuthenticateOidc(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionFixedResponse.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionFixedResponse.java index 451fddd701c..99aae66e737 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionFixedResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionFixedResponse.java @@ -15,28 +15,19 @@ public final class ListenerDefaultActionFixedResponse { * @return Content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * */ - private final String contentType; + private String contentType; /** * @return Message body. * */ - private final @Nullable String messageBody; + private @Nullable String messageBody; /** * @return HTTP redirect code. The redirect is either permanent (`HTTP_301`) or temporary (`HTTP_302`). * */ - private final @Nullable String statusCode; - - @CustomType.Constructor - private ListenerDefaultActionFixedResponse( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("messageBody") @Nullable String messageBody, - @CustomType.Parameter("statusCode") @Nullable String statusCode) { - this.contentType = contentType; - this.messageBody = messageBody; - this.statusCode = statusCode; - } + private @Nullable String statusCode; + private ListenerDefaultActionFixedResponse() {} /** * @return Content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionFixedResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private @Nullable String messageBody; private @Nullable String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionFixedResponse defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -83,19 +70,27 @@ public Builder(ListenerDefaultActionFixedResponse defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder messageBody(@Nullable String messageBody) { this.messageBody = messageBody; return this; } + @CustomType.Setter public Builder statusCode(@Nullable String statusCode) { this.statusCode = statusCode; return this; - } public ListenerDefaultActionFixedResponse build() { - return new ListenerDefaultActionFixedResponse(contentType, messageBody, statusCode); + } + public ListenerDefaultActionFixedResponse build() { + final var o = new ListenerDefaultActionFixedResponse(); + o.contentType = contentType; + o.messageBody = messageBody; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionForward.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionForward.java index e0d4e3fa61d..0c9d9fba995 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionForward.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionForward.java @@ -17,21 +17,14 @@ public final class ListenerDefaultActionForward { * @return Configuration block for target group stickiness for the rule. Detailed below. * */ - private final @Nullable ListenerDefaultActionForwardStickiness stickiness; + private @Nullable ListenerDefaultActionForwardStickiness stickiness; /** * @return Set of 1-5 target group blocks. Detailed below. * */ - private final List targetGroups; - - @CustomType.Constructor - private ListenerDefaultActionForward( - @CustomType.Parameter("stickiness") @Nullable ListenerDefaultActionForwardStickiness stickiness, - @CustomType.Parameter("targetGroups") List targetGroups) { - this.stickiness = stickiness; - this.targetGroups = targetGroups; - } + private List targetGroups; + private ListenerDefaultActionForward() {} /** * @return Configuration block for target group stickiness for the rule. Detailed below. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionForward defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerDefaultActionForwardStickiness stickiness; private List targetGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionForward defaults) { Objects.requireNonNull(defaults); this.stickiness = defaults.stickiness; this.targetGroups = defaults.targetGroups; } + @CustomType.Setter public Builder stickiness(@Nullable ListenerDefaultActionForwardStickiness stickiness) { this.stickiness = stickiness; return this; } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; } public Builder targetGroups(ListenerDefaultActionForwardTargetGroup... targetGroups) { return targetGroups(List.of(targetGroups)); - } public ListenerDefaultActionForward build() { - return new ListenerDefaultActionForward(stickiness, targetGroups); + } + public ListenerDefaultActionForward build() { + final var o = new ListenerDefaultActionForward(); + o.stickiness = stickiness; + o.targetGroups = targetGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionForwardStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionForwardStickiness.java index a5954fa2e94..105e325afaf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionForwardStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionForwardStickiness.java @@ -16,21 +16,14 @@ public final class ListenerDefaultActionForwardStickiness { * @return Time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * */ - private final Integer duration; + private Integer duration; /** * @return Whether target group stickiness is enabled. Default is `false`. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private ListenerDefaultActionForwardStickiness( - @CustomType.Parameter("duration") Integer duration, - @CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.duration = duration; - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private ListenerDefaultActionForwardStickiness() {} /** * @return Time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionForwardStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer duration; private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionForwardStickiness defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder duration(Integer duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public ListenerDefaultActionForwardStickiness build() { - return new ListenerDefaultActionForwardStickiness(duration, enabled); + } + public ListenerDefaultActionForwardStickiness build() { + final var o = new ListenerDefaultActionForwardStickiness(); + o.duration = duration; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionForwardTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionForwardTargetGroup.java index 39bbceda720..e787fa14b33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionForwardTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionForwardTargetGroup.java @@ -16,21 +16,14 @@ public final class ListenerDefaultActionForwardTargetGroup { * @return ARN of the target group. * */ - private final String arn; + private String arn; /** * @return Weight. The range is 0 to 999. * */ - private final @Nullable Integer weight; - - @CustomType.Constructor - private ListenerDefaultActionForwardTargetGroup( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("weight") @Nullable Integer weight) { - this.arn = arn; - this.weight = weight; - } + private @Nullable Integer weight; + private ListenerDefaultActionForwardTargetGroup() {} /** * @return ARN of the target group. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionForwardTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionForwardTargetGroup defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.weight = defaults.weight; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder weight(@Nullable Integer weight) { this.weight = weight; return this; - } public ListenerDefaultActionForwardTargetGroup build() { - return new ListenerDefaultActionForwardTargetGroup(arn, weight); + } + public ListenerDefaultActionForwardTargetGroup build() { + final var o = new ListenerDefaultActionForwardTargetGroup(); + o.arn = arn; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionRedirect.java index 0491a54d09b..41188fff698 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerDefaultActionRedirect.java @@ -15,49 +15,34 @@ public final class ListenerDefaultActionRedirect { * @return Hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * */ - private final @Nullable String host; + private @Nullable String host; /** * @return Absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to `/#{path}`. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return Port. Specify a value from `1` to `65535` or `#{port}`. Defaults to `#{port}`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return Protocol. Valid values are `HTTP`, `HTTPS`, or `#{protocol}`. Defaults to `#{protocol}`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return Query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to `#{query}`. * */ - private final @Nullable String query; + private @Nullable String query; /** * @return HTTP redirect code. The redirect is either permanent (`HTTP_301`) or temporary (`HTTP_302`). * */ - private final String statusCode; - - @CustomType.Constructor - private ListenerDefaultActionRedirect( - @CustomType.Parameter("host") @Nullable String host, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("query") @Nullable String query, - @CustomType.Parameter("statusCode") String statusCode) { - this.host = host; - this.path = path; - this.port = port; - this.protocol = protocol; - this.query = query; - this.statusCode = statusCode; - } + private String statusCode; + private ListenerDefaultActionRedirect() {} /** * @return Hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String host; private @Nullable String path; @@ -116,11 +101,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable String query; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionRedirect defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -131,31 +112,45 @@ public Builder(ListenerDefaultActionRedirect defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder host(@Nullable String host) { this.host = host; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder query(@Nullable String query) { this.query = query; return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public ListenerDefaultActionRedirect build() { - return new ListenerDefaultActionRedirect(host, path, port, protocol, query, statusCode); + } + public ListenerDefaultActionRedirect build() { + final var o = new ListenerDefaultActionRedirect(); + o.host = host; + o.path = path; + o.port = port; + o.protocol = protocol; + o.query = query; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleAction.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleAction.java index e5a7ee8eb69..78dee931919 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleAction.java @@ -21,59 +21,40 @@ public final class ListenerRuleAction { * @return Information for creating an authenticate action using Cognito. Required if `type` is `authenticate-cognito`. * */ - private final @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito; + private @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito; /** * @return Information for creating an authenticate action using OIDC. Required if `type` is `authenticate-oidc`. * */ - private final @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc; + private @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc; /** * @return Information for creating an action that returns a custom HTTP response. Required if `type` is `fixed-response`. * */ - private final @Nullable ListenerRuleActionFixedResponse fixedResponse; + private @Nullable ListenerRuleActionFixedResponse fixedResponse; /** * @return Information for creating an action that distributes requests among one or more target groups. Specify only if `type` is `forward`. If you specify both `forward` block and `target_group_arn` attribute, you can specify only one target group using `forward` and it must be the same target group specified in `target_group_arn`. * */ - private final @Nullable ListenerRuleActionForward forward; - private final @Nullable Integer order; + private @Nullable ListenerRuleActionForward forward; + private @Nullable Integer order; /** * @return Information for creating a redirect action. Required if `type` is `redirect`. * */ - private final @Nullable ListenerRuleActionRedirect redirect; + private @Nullable ListenerRuleActionRedirect redirect; /** * @return The ARN of the Target Group to which to route traffic. Specify only if `type` is `forward` and you want to route to a single target group. To route to one or more target groups, use a `forward` block instead. * */ - private final @Nullable String targetGroupArn; + private @Nullable String targetGroupArn; /** * @return The type of routing action. Valid values are `forward`, `redirect`, `fixed-response`, `authenticate-cognito` and `authenticate-oidc`. * */ - private final String type; - - @CustomType.Constructor - private ListenerRuleAction( - @CustomType.Parameter("authenticateCognito") @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito, - @CustomType.Parameter("authenticateOidc") @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc, - @CustomType.Parameter("fixedResponse") @Nullable ListenerRuleActionFixedResponse fixedResponse, - @CustomType.Parameter("forward") @Nullable ListenerRuleActionForward forward, - @CustomType.Parameter("order") @Nullable Integer order, - @CustomType.Parameter("redirect") @Nullable ListenerRuleActionRedirect redirect, - @CustomType.Parameter("targetGroupArn") @Nullable String targetGroupArn, - @CustomType.Parameter("type") String type) { - this.authenticateCognito = authenticateCognito; - this.authenticateOidc = authenticateOidc; - this.fixedResponse = fixedResponse; - this.forward = forward; - this.order = order; - this.redirect = redirect; - this.targetGroupArn = targetGroupArn; - this.type = type; - } + private String type; + private ListenerRuleAction() {} /** * @return Information for creating an authenticate action using Cognito. Required if `type` is `authenticate-cognito`. * @@ -134,7 +115,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito; private @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc; @@ -144,11 +125,7 @@ public static final class Builder { private @Nullable ListenerRuleActionRedirect redirect; private @Nullable String targetGroupArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleAction defaults) { Objects.requireNonNull(defaults); this.authenticateCognito = defaults.authenticateCognito; @@ -161,39 +138,57 @@ public Builder(ListenerRuleAction defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder authenticateCognito(@Nullable ListenerRuleActionAuthenticateCognito authenticateCognito) { this.authenticateCognito = authenticateCognito; return this; } + @CustomType.Setter public Builder authenticateOidc(@Nullable ListenerRuleActionAuthenticateOidc authenticateOidc) { this.authenticateOidc = authenticateOidc; return this; } + @CustomType.Setter public Builder fixedResponse(@Nullable ListenerRuleActionFixedResponse fixedResponse) { this.fixedResponse = fixedResponse; return this; } + @CustomType.Setter public Builder forward(@Nullable ListenerRuleActionForward forward) { this.forward = forward; return this; } + @CustomType.Setter public Builder order(@Nullable Integer order) { this.order = order; return this; } + @CustomType.Setter public Builder redirect(@Nullable ListenerRuleActionRedirect redirect) { this.redirect = redirect; return this; } + @CustomType.Setter public Builder targetGroupArn(@Nullable String targetGroupArn) { this.targetGroupArn = targetGroupArn; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ListenerRuleAction build() { - return new ListenerRuleAction(authenticateCognito, authenticateOidc, fixedResponse, forward, order, redirect, targetGroupArn, type); + } + public ListenerRuleAction build() { + final var o = new ListenerRuleAction(); + o.authenticateCognito = authenticateCognito; + o.authenticateOidc = authenticateOidc; + o.fixedResponse = fixedResponse; + o.forward = forward; + o.order = order; + o.redirect = redirect; + o.targetGroupArn = targetGroupArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionAuthenticateCognito.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionAuthenticateCognito.java index 2ef07eacd3e..d324aa294a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionAuthenticateCognito.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionAuthenticateCognito.java @@ -17,63 +17,44 @@ public final class ListenerRuleActionAuthenticateCognito { * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return The behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return The set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return The name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return The maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return The ARN of the Cognito user pool. * */ - private final String userPoolArn; + private String userPoolArn; /** * @return The ID of the Cognito user pool client. * */ - private final String userPoolClientId; + private String userPoolClientId; /** * @return The domain prefix or fully-qualified domain name of the Cognito user pool. * */ - private final String userPoolDomain; - - @CustomType.Constructor - private ListenerRuleActionAuthenticateCognito( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("userPoolArn") String userPoolArn, - @CustomType.Parameter("userPoolClientId") String userPoolClientId, - @CustomType.Parameter("userPoolDomain") String userPoolDomain) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.userPoolArn = userPoolArn; - this.userPoolClientId = userPoolClientId; - this.userPoolDomain = userPoolDomain; - } + private String userPoolDomain; + private ListenerRuleActionAuthenticateCognito() {} /** * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -138,7 +119,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionAuthenticateCognito defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private @Nullable String onUnauthenticatedRequest; @@ -148,11 +129,7 @@ public static final class Builder { private String userPoolArn; private String userPoolClientId; private String userPoolDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionAuthenticateCognito defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -165,39 +142,57 @@ public Builder(ListenerRuleActionAuthenticateCognito defaults) { this.userPoolDomain = defaults.userPoolDomain; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder userPoolArn(String userPoolArn) { this.userPoolArn = Objects.requireNonNull(userPoolArn); return this; } + @CustomType.Setter public Builder userPoolClientId(String userPoolClientId) { this.userPoolClientId = Objects.requireNonNull(userPoolClientId); return this; } + @CustomType.Setter public Builder userPoolDomain(String userPoolDomain) { this.userPoolDomain = Objects.requireNonNull(userPoolDomain); return this; - } public ListenerRuleActionAuthenticateCognito build() { - return new ListenerRuleActionAuthenticateCognito(authenticationRequestExtraParams, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, userPoolArn, userPoolClientId, userPoolDomain); + } + public ListenerRuleActionAuthenticateCognito build() { + final var o = new ListenerRuleActionAuthenticateCognito(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.userPoolArn = userPoolArn; + o.userPoolClientId = userPoolClientId; + o.userPoolDomain = userPoolDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionAuthenticateOidc.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionAuthenticateOidc.java index 9af4d36ccaa..6338483c2ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionAuthenticateOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionAuthenticateOidc.java @@ -17,84 +17,59 @@ public final class ListenerRuleActionAuthenticateOidc { * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return The authorization endpoint of the IdP. * */ - private final String authorizationEndpoint; + private String authorizationEndpoint; /** * @return The OAuth 2.0 client identifier. * */ - private final String clientId; + private String clientId; /** * @return The OAuth 2.0 client secret. * */ - private final String clientSecret; + private String clientSecret; /** * @return The OIDC issuer identifier of the IdP. * */ - private final String issuer; + private String issuer; /** * @return The behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return The set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return The name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return The maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return The token endpoint of the IdP. * */ - private final String tokenEndpoint; + private String tokenEndpoint; /** * @return The user info endpoint of the IdP. * */ - private final String userInfoEndpoint; - - @CustomType.Constructor - private ListenerRuleActionAuthenticateOidc( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private String userInfoEndpoint; + private ListenerRuleActionAuthenticateOidc() {} /** * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -180,7 +155,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionAuthenticateOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private String authorizationEndpoint; @@ -193,11 +168,7 @@ public static final class Builder { private @Nullable Integer sessionTimeout; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionAuthenticateOidc defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -213,51 +184,75 @@ public Builder(ListenerRuleActionAuthenticateOidc defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public ListenerRuleActionAuthenticateOidc build() { - return new ListenerRuleActionAuthenticateOidc(authenticationRequestExtraParams, authorizationEndpoint, clientId, clientSecret, issuer, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, tokenEndpoint, userInfoEndpoint); + } + public ListenerRuleActionAuthenticateOidc build() { + final var o = new ListenerRuleActionAuthenticateOidc(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionFixedResponse.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionFixedResponse.java index aa6f01a6990..1753381558d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionFixedResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionFixedResponse.java @@ -15,28 +15,19 @@ public final class ListenerRuleActionFixedResponse { * @return The content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * */ - private final String contentType; + private String contentType; /** * @return The message body. * */ - private final @Nullable String messageBody; + private @Nullable String messageBody; /** * @return The HTTP response code. Valid values are `2XX`, `4XX`, or `5XX`. * */ - private final @Nullable String statusCode; - - @CustomType.Constructor - private ListenerRuleActionFixedResponse( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("messageBody") @Nullable String messageBody, - @CustomType.Parameter("statusCode") @Nullable String statusCode) { - this.contentType = contentType; - this.messageBody = messageBody; - this.statusCode = statusCode; - } + private @Nullable String statusCode; + private ListenerRuleActionFixedResponse() {} /** * @return The content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionFixedResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private @Nullable String messageBody; private @Nullable String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionFixedResponse defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -83,19 +70,27 @@ public Builder(ListenerRuleActionFixedResponse defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder messageBody(@Nullable String messageBody) { this.messageBody = messageBody; return this; } + @CustomType.Setter public Builder statusCode(@Nullable String statusCode) { this.statusCode = statusCode; return this; - } public ListenerRuleActionFixedResponse build() { - return new ListenerRuleActionFixedResponse(contentType, messageBody, statusCode); + } + public ListenerRuleActionFixedResponse build() { + final var o = new ListenerRuleActionFixedResponse(); + o.contentType = contentType; + o.messageBody = messageBody; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionForward.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionForward.java index 8cf1ac221cd..208ecd978b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionForward.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionForward.java @@ -17,21 +17,14 @@ public final class ListenerRuleActionForward { * @return The target group stickiness for the rule. * */ - private final @Nullable ListenerRuleActionForwardStickiness stickiness; + private @Nullable ListenerRuleActionForwardStickiness stickiness; /** * @return One or more target groups block. * */ - private final List targetGroups; - - @CustomType.Constructor - private ListenerRuleActionForward( - @CustomType.Parameter("stickiness") @Nullable ListenerRuleActionForwardStickiness stickiness, - @CustomType.Parameter("targetGroups") List targetGroups) { - this.stickiness = stickiness; - this.targetGroups = targetGroups; - } + private List targetGroups; + private ListenerRuleActionForward() {} /** * @return The target group stickiness for the rule. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionForward defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerRuleActionForwardStickiness stickiness; private List targetGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionForward defaults) { Objects.requireNonNull(defaults); this.stickiness = defaults.stickiness; this.targetGroups = defaults.targetGroups; } + @CustomType.Setter public Builder stickiness(@Nullable ListenerRuleActionForwardStickiness stickiness) { this.stickiness = stickiness; return this; } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; } public Builder targetGroups(ListenerRuleActionForwardTargetGroup... targetGroups) { return targetGroups(List.of(targetGroups)); - } public ListenerRuleActionForward build() { - return new ListenerRuleActionForward(stickiness, targetGroups); + } + public ListenerRuleActionForward build() { + final var o = new ListenerRuleActionForward(); + o.stickiness = stickiness; + o.targetGroups = targetGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionForwardStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionForwardStickiness.java index 9bf5a8836ee..99eef91600e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionForwardStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionForwardStickiness.java @@ -16,21 +16,14 @@ public final class ListenerRuleActionForwardStickiness { * @return The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * */ - private final Integer duration; + private Integer duration; /** * @return Indicates whether target group stickiness is enabled. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private ListenerRuleActionForwardStickiness( - @CustomType.Parameter("duration") Integer duration, - @CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.duration = duration; - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private ListenerRuleActionForwardStickiness() {} /** * @return The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionForwardStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer duration; private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionForwardStickiness defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder duration(Integer duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public ListenerRuleActionForwardStickiness build() { - return new ListenerRuleActionForwardStickiness(duration, enabled); + } + public ListenerRuleActionForwardStickiness build() { + final var o = new ListenerRuleActionForwardStickiness(); + o.duration = duration; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionForwardTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionForwardTargetGroup.java index eae8eb728d9..5cd78a9586c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionForwardTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionForwardTargetGroup.java @@ -16,21 +16,14 @@ public final class ListenerRuleActionForwardTargetGroup { * @return The Amazon Resource Name (ARN) of the target group. * */ - private final String arn; + private String arn; /** * @return The weight. The range is 0 to 999. * */ - private final @Nullable Integer weight; - - @CustomType.Constructor - private ListenerRuleActionForwardTargetGroup( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("weight") @Nullable Integer weight) { - this.arn = arn; - this.weight = weight; - } + private @Nullable Integer weight; + private ListenerRuleActionForwardTargetGroup() {} /** * @return The Amazon Resource Name (ARN) of the target group. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionForwardTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionForwardTargetGroup defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.weight = defaults.weight; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder weight(@Nullable Integer weight) { this.weight = weight; return this; - } public ListenerRuleActionForwardTargetGroup build() { - return new ListenerRuleActionForwardTargetGroup(arn, weight); + } + public ListenerRuleActionForwardTargetGroup build() { + final var o = new ListenerRuleActionForwardTargetGroup(); + o.arn = arn; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionRedirect.java index ad34c403cd5..61be85fde28 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleActionRedirect.java @@ -15,49 +15,34 @@ public final class ListenerRuleActionRedirect { * @return The hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * */ - private final @Nullable String host; + private @Nullable String host; /** * @return The absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to `/#{path}`. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return The port. Specify a value from `1` to `65535` or `#{port}`. Defaults to `#{port}`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return The protocol. Valid values are `HTTP`, `HTTPS`, or `#{protocol}`. Defaults to `#{protocol}`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to `#{query}`. * */ - private final @Nullable String query; + private @Nullable String query; /** * @return The HTTP redirect code. The redirect is either permanent (`HTTP_301`) or temporary (`HTTP_302`). * */ - private final String statusCode; - - @CustomType.Constructor - private ListenerRuleActionRedirect( - @CustomType.Parameter("host") @Nullable String host, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("query") @Nullable String query, - @CustomType.Parameter("statusCode") String statusCode) { - this.host = host; - this.path = path; - this.port = port; - this.protocol = protocol; - this.query = query; - this.statusCode = statusCode; - } + private String statusCode; + private ListenerRuleActionRedirect() {} /** * @return The hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String host; private @Nullable String path; @@ -116,11 +101,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable String query; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionRedirect defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -131,31 +112,45 @@ public Builder(ListenerRuleActionRedirect defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder host(@Nullable String host) { this.host = host; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder query(@Nullable String query) { this.query = query; return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public ListenerRuleActionRedirect build() { - return new ListenerRuleActionRedirect(host, path, port, protocol, query, statusCode); + } + public ListenerRuleActionRedirect build() { + final var o = new ListenerRuleActionRedirect(); + o.host = host; + o.path = path; + o.port = port; + o.protocol = protocol; + o.query = query; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleCondition.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleCondition.java index 35f9fa990d5..d6c789242e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleCondition.java @@ -21,49 +21,34 @@ public final class ListenerRuleCondition { * @return Contains a single `values` item which is a list of host header patterns to match. The maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. * */ - private final @Nullable ListenerRuleConditionHostHeader hostHeader; + private @Nullable ListenerRuleConditionHostHeader hostHeader; /** * @return HTTP headers to match. HTTP Header block fields documented below. * */ - private final @Nullable ListenerRuleConditionHttpHeader httpHeader; + private @Nullable ListenerRuleConditionHttpHeader httpHeader; /** * @return Contains a single `values` item which is a list of HTTP request methods or verbs to match. Maximum size is 40 characters. Only allowed characters are A-Z, hyphen (-) and underscore (\_). Comparison is case sensitive. Wildcards are not supported. Only one needs to match for the condition to be satisfied. AWS recommends that GET and HEAD requests are routed in the same way because the response to a HEAD request may be cached. * */ - private final @Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod; + private @Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod; /** * @return Contains a single `values` item which is a list of path patterns to match against the request URL. Maximum size of each pattern is 128 characters. Comparison is case sensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. Path pattern is compared only to the path of the URL, not to its query string. To compare against the query string, use a `query_string` condition. * */ - private final @Nullable ListenerRuleConditionPathPattern pathPattern; + private @Nullable ListenerRuleConditionPathPattern pathPattern; /** * @return Query strings to match. Query String block fields documented below. * */ - private final @Nullable List queryStrings; + private @Nullable List queryStrings; /** * @return Contains a single `values` item which is a list of source IP CIDR notations to match. You can use both IPv4 and IPv6 addresses. Wildcards are not supported. Condition is satisfied if the source IP address of the request matches one of the CIDR blocks. Condition is not satisfied by the addresses in the `X-Forwarded-For` header, use `http_header` condition instead. * */ - private final @Nullable ListenerRuleConditionSourceIp sourceIp; - - @CustomType.Constructor - private ListenerRuleCondition( - @CustomType.Parameter("hostHeader") @Nullable ListenerRuleConditionHostHeader hostHeader, - @CustomType.Parameter("httpHeader") @Nullable ListenerRuleConditionHttpHeader httpHeader, - @CustomType.Parameter("httpRequestMethod") @Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod, - @CustomType.Parameter("pathPattern") @Nullable ListenerRuleConditionPathPattern pathPattern, - @CustomType.Parameter("queryStrings") @Nullable List queryStrings, - @CustomType.Parameter("sourceIp") @Nullable ListenerRuleConditionSourceIp sourceIp) { - this.hostHeader = hostHeader; - this.httpHeader = httpHeader; - this.httpRequestMethod = httpRequestMethod; - this.pathPattern = pathPattern; - this.queryStrings = queryStrings; - this.sourceIp = sourceIp; - } + private @Nullable ListenerRuleConditionSourceIp sourceIp; + private ListenerRuleCondition() {} /** * @return Contains a single `values` item which is a list of host header patterns to match. The maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. * @@ -114,7 +99,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerRuleConditionHostHeader hostHeader; private @Nullable ListenerRuleConditionHttpHeader httpHeader; @@ -122,11 +107,7 @@ public static final class Builder { private @Nullable ListenerRuleConditionPathPattern pathPattern; private @Nullable List queryStrings; private @Nullable ListenerRuleConditionSourceIp sourceIp; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleCondition defaults) { Objects.requireNonNull(defaults); this.hostHeader = defaults.hostHeader; @@ -137,22 +118,27 @@ public Builder(ListenerRuleCondition defaults) { this.sourceIp = defaults.sourceIp; } + @CustomType.Setter public Builder hostHeader(@Nullable ListenerRuleConditionHostHeader hostHeader) { this.hostHeader = hostHeader; return this; } + @CustomType.Setter public Builder httpHeader(@Nullable ListenerRuleConditionHttpHeader httpHeader) { this.httpHeader = httpHeader; return this; } + @CustomType.Setter public Builder httpRequestMethod(@Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod) { this.httpRequestMethod = httpRequestMethod; return this; } + @CustomType.Setter public Builder pathPattern(@Nullable ListenerRuleConditionPathPattern pathPattern) { this.pathPattern = pathPattern; return this; } + @CustomType.Setter public Builder queryStrings(@Nullable List queryStrings) { this.queryStrings = queryStrings; return this; @@ -160,11 +146,20 @@ public Builder queryStrings(@Nullable List que public Builder queryStrings(ListenerRuleConditionQueryString... queryStrings) { return queryStrings(List.of(queryStrings)); } + @CustomType.Setter public Builder sourceIp(@Nullable ListenerRuleConditionSourceIp sourceIp) { this.sourceIp = sourceIp; return this; - } public ListenerRuleCondition build() { - return new ListenerRuleCondition(hostHeader, httpHeader, httpRequestMethod, pathPattern, queryStrings, sourceIp); + } + public ListenerRuleCondition build() { + final var o = new ListenerRuleCondition(); + o.hostHeader = hostHeader; + o.httpHeader = httpHeader; + o.httpRequestMethod = httpRequestMethod; + o.pathPattern = pathPattern; + o.queryStrings = queryStrings; + o.sourceIp = sourceIp; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionHostHeader.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionHostHeader.java index d40fca8903c..74f558917d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionHostHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionHostHeader.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionHostHeader { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionHostHeader(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionHostHeader() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionHostHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionHostHeader defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionHostHeader build() { - return new ListenerRuleConditionHostHeader(values); + } + public ListenerRuleConditionHostHeader build() { + final var o = new ListenerRuleConditionHostHeader(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionHttpHeader.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionHttpHeader.java index 11e2bf3dce6..491c6ce4f50 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionHttpHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionHttpHeader.java @@ -14,21 +14,14 @@ public final class ListenerRuleConditionHttpHeader { * @return Name of HTTP header to search. The maximum size is 40 characters. Comparison is case insensitive. Only RFC7240 characters are supported. Wildcards are not supported. You cannot use HTTP header condition to specify the host header, use a `host-header` condition instead. * */ - private final String httpHeaderName; + private String httpHeaderName; /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionHttpHeader( - @CustomType.Parameter("httpHeaderName") String httpHeaderName, - @CustomType.Parameter("values") List values) { - this.httpHeaderName = httpHeaderName; - this.values = values; - } + private List values; + private ListenerRuleConditionHttpHeader() {} /** * @return Name of HTTP header to search. The maximum size is 40 characters. Comparison is case insensitive. Only RFC7240 characters are supported. Wildcards are not supported. You cannot use HTTP header condition to specify the host header, use a `host-header` condition instead. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionHttpHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String httpHeaderName; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionHttpHeader defaults) { Objects.requireNonNull(defaults); this.httpHeaderName = defaults.httpHeaderName; this.values = defaults.values; } + @CustomType.Setter public Builder httpHeaderName(String httpHeaderName) { this.httpHeaderName = Objects.requireNonNull(httpHeaderName); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionHttpHeader build() { - return new ListenerRuleConditionHttpHeader(httpHeaderName, values); + } + public ListenerRuleConditionHttpHeader build() { + final var o = new ListenerRuleConditionHttpHeader(); + o.httpHeaderName = httpHeaderName; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionHttpRequestMethod.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionHttpRequestMethod.java index 21f751fc599..2924af84a66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionHttpRequestMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionHttpRequestMethod.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionHttpRequestMethod { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionHttpRequestMethod(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionHttpRequestMethod() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionHttpRequestMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionHttpRequestMethod defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionHttpRequestMethod build() { - return new ListenerRuleConditionHttpRequestMethod(values); + } + public ListenerRuleConditionHttpRequestMethod build() { + final var o = new ListenerRuleConditionHttpRequestMethod(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionPathPattern.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionPathPattern.java index 7da70bc4818..46f997695f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionPathPattern.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionPathPattern.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionPathPattern { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionPathPattern(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionPathPattern() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionPathPattern defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionPathPattern defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionPathPattern build() { - return new ListenerRuleConditionPathPattern(values); + } + public ListenerRuleConditionPathPattern build() { + final var o = new ListenerRuleConditionPathPattern(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionQueryString.java index 4b2f697d5ab..176742a3d74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionQueryString.java @@ -15,21 +15,14 @@ public final class ListenerRuleConditionQueryString { * @return Query string key pattern to match. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Query string value pattern to match. * */ - private final String value; - - @CustomType.Constructor - private ListenerRuleConditionQueryString( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private ListenerRuleConditionQueryString() {} /** * @return Query string key pattern to match. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionQueryString defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ListenerRuleConditionQueryString build() { - return new ListenerRuleConditionQueryString(key, value); + } + public ListenerRuleConditionQueryString build() { + final var o = new ListenerRuleConditionQueryString(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionSourceIp.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionSourceIp.java index aafc3bcef44..f478c51d36a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionSourceIp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/ListenerRuleConditionSourceIp.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionSourceIp { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionSourceIp(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionSourceIp() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionSourceIp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionSourceIp defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionSourceIp build() { - return new ListenerRuleConditionSourceIp(values); + } + public ListenerRuleConditionSourceIp build() { + final var o = new ListenerRuleConditionSourceIp(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/LoadBalancerAccessLogs.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/LoadBalancerAccessLogs.java index 8c9266dc6da..66a8db2def5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/LoadBalancerAccessLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/LoadBalancerAccessLogs.java @@ -16,28 +16,19 @@ public final class LoadBalancerAccessLogs { * @return The S3 bucket name to store the logs in. * */ - private final String bucket; + private String bucket; /** * @return Boolean to enable / disable `access_logs`. Defaults to `false`, even when `bucket` is specified. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The S3 bucket prefix. Logs are stored in the root if not configured. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private LoadBalancerAccessLogs( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.bucket = bucket; - this.enabled = enabled; - this.prefix = prefix; - } + private @Nullable String prefix; + private LoadBalancerAccessLogs() {} /** * @return The S3 bucket name to store the logs in. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(LoadBalancerAccessLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private @Nullable Boolean enabled; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerAccessLogs defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -84,19 +71,27 @@ public Builder(LoadBalancerAccessLogs defaults) { this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public LoadBalancerAccessLogs build() { - return new LoadBalancerAccessLogs(bucket, enabled, prefix); + } + public LoadBalancerAccessLogs build() { + final var o = new LoadBalancerAccessLogs(); + o.bucket = bucket; + o.enabled = enabled; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/LoadBalancerSubnetMapping.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/LoadBalancerSubnetMapping.java index fef0047b2f1..b16f1882457 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/LoadBalancerSubnetMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/LoadBalancerSubnetMapping.java @@ -15,38 +15,25 @@ public final class LoadBalancerSubnetMapping { * @return The allocation ID of the Elastic IP address. * */ - private final @Nullable String allocationId; + private @Nullable String allocationId; /** * @return An ipv6 address within the subnet to assign to the internet-facing load balancer. * */ - private final @Nullable String ipv6Address; - private final @Nullable String outpostId; + private @Nullable String ipv6Address; + private @Nullable String outpostId; /** * @return A private ipv4 address within the subnet to assign to the internal-facing load balancer. * */ - private final @Nullable String privateIpv4Address; + private @Nullable String privateIpv4Address; /** * @return The id of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone. * */ - private final String subnetId; - - @CustomType.Constructor - private LoadBalancerSubnetMapping( - @CustomType.Parameter("allocationId") @Nullable String allocationId, - @CustomType.Parameter("ipv6Address") @Nullable String ipv6Address, - @CustomType.Parameter("outpostId") @Nullable String outpostId, - @CustomType.Parameter("privateIpv4Address") @Nullable String privateIpv4Address, - @CustomType.Parameter("subnetId") String subnetId) { - this.allocationId = allocationId; - this.ipv6Address = ipv6Address; - this.outpostId = outpostId; - this.privateIpv4Address = privateIpv4Address; - this.subnetId = subnetId; - } + private String subnetId; + private LoadBalancerSubnetMapping() {} /** * @return The allocation ID of the Elastic IP address. * @@ -86,18 +73,14 @@ public static Builder builder() { public static Builder builder(LoadBalancerSubnetMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String allocationId; private @Nullable String ipv6Address; private @Nullable String outpostId; private @Nullable String privateIpv4Address; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerSubnetMapping defaults) { Objects.requireNonNull(defaults); this.allocationId = defaults.allocationId; @@ -107,27 +90,39 @@ public Builder(LoadBalancerSubnetMapping defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder allocationId(@Nullable String allocationId) { this.allocationId = allocationId; return this; } + @CustomType.Setter public Builder ipv6Address(@Nullable String ipv6Address) { this.ipv6Address = ipv6Address; return this; } + @CustomType.Setter public Builder outpostId(@Nullable String outpostId) { this.outpostId = outpostId; return this; } + @CustomType.Setter public Builder privateIpv4Address(@Nullable String privateIpv4Address) { this.privateIpv4Address = privateIpv4Address; return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public LoadBalancerSubnetMapping build() { - return new LoadBalancerSubnetMapping(allocationId, ipv6Address, outpostId, privateIpv4Address, subnetId); + } + public LoadBalancerSubnetMapping build() { + final var o = new LoadBalancerSubnetMapping(); + o.allocationId = allocationId; + o.ipv6Address = ipv6Address; + o.outpostId = outpostId; + o.privateIpv4Address = privateIpv4Address; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/TargetGroupHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/TargetGroupHealthCheck.java index eec3380ac39..1d1e27e120f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/TargetGroupHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/TargetGroupHealthCheck.java @@ -17,70 +17,49 @@ public final class TargetGroupHealthCheck { * @return Boolean to enable / disable `stickiness`. Default is `true`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Number of consecutive health checks successes required before considering an unhealthy target healthy. Defaults to 3. * */ - private final @Nullable Integer healthyThreshold; + private @Nullable Integer healthyThreshold; /** * @return Approximate amount of time, in seconds, between health checks of an individual target. Minimum value 5 seconds, Maximum value 300 seconds. For `lambda` target groups, it needs to be greater as the `timeout` of the underlying `lambda`. Default 30 seconds. * */ - private final @Nullable Integer interval; + private @Nullable Integer interval; /** * @return Response codes to use when checking for a healthy responses from a target. You can specify multiple values (for example, "200,202" for HTTP(s) or "0,12" for GRPC) or a range of values (for example, "200-299" or "0-99"). Required for HTTP/HTTPS/GRPC ALB. Only applies to Application Load Balancers (i.e., HTTP/HTTPS/GRPC) not Network Load Balancers (i.e., TCP). * */ - private final @Nullable String matcher; + private @Nullable String matcher; /** * @return Destination for the health check request. Required for HTTP/HTTPS ALB and HTTP NLB. Only applies to HTTP/HTTPS. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return Port to use to connect with the target. Valid values are either ports 1-65535, or `traffic-port`. Defaults to `traffic-port`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return Protocol to use to connect with the target. Defaults to `HTTP`. Not applicable when `target_type` is `lambda`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return Amount of time, in seconds, during which no response means a failed health check. For Application Load Balancers, the range is 2 to 120 seconds, and the default is 5 seconds for the `instance` target type and 30 seconds for the `lambda` target type. For Network Load Balancers, you cannot set a custom value, and the default is 10 seconds for TCP and HTTPS health checks and 5 seconds for HTTP health checks. * */ - private final @Nullable Integer timeout; + private @Nullable Integer timeout; /** * @return Number of consecutive health check failures required before considering the target unhealthy. For Network Load Balancers, this value must be the same as the `healthy_threshold`. Defaults to 3. * */ - private final @Nullable Integer unhealthyThreshold; - - @CustomType.Constructor - private TargetGroupHealthCheck( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("healthyThreshold") @Nullable Integer healthyThreshold, - @CustomType.Parameter("interval") @Nullable Integer interval, - @CustomType.Parameter("matcher") @Nullable String matcher, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("timeout") @Nullable Integer timeout, - @CustomType.Parameter("unhealthyThreshold") @Nullable Integer unhealthyThreshold) { - this.enabled = enabled; - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.matcher = matcher; - this.path = path; - this.port = port; - this.protocol = protocol; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private @Nullable Integer unhealthyThreshold; + private TargetGroupHealthCheck() {} /** * @return Boolean to enable / disable `stickiness`. Default is `true`. * @@ -152,7 +131,7 @@ public static Builder builder() { public static Builder builder(TargetGroupHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable Integer healthyThreshold; @@ -163,11 +142,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable Integer timeout; private @Nullable Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TargetGroupHealthCheck defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; @@ -181,43 +156,63 @@ public Builder(TargetGroupHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder healthyThreshold(@Nullable Integer healthyThreshold) { this.healthyThreshold = healthyThreshold; return this; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; } + @CustomType.Setter public Builder matcher(@Nullable String matcher) { this.matcher = matcher; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { this.timeout = timeout; return this; } + @CustomType.Setter public Builder unhealthyThreshold(@Nullable Integer unhealthyThreshold) { this.unhealthyThreshold = unhealthyThreshold; return this; - } public TargetGroupHealthCheck build() { - return new TargetGroupHealthCheck(enabled, healthyThreshold, interval, matcher, path, port, protocol, timeout, unhealthyThreshold); + } + public TargetGroupHealthCheck build() { + final var o = new TargetGroupHealthCheck(); + o.enabled = enabled; + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.matcher = matcher; + o.path = path; + o.port = port; + o.protocol = protocol; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/TargetGroupStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/TargetGroupStickiness.java index d8322a2651f..ec7b6436dc2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/TargetGroupStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/applicationloadbalancing/outputs/TargetGroupStickiness.java @@ -17,35 +17,24 @@ public final class TargetGroupStickiness { * @return Only used when the type is `lb_cookie`. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). * */ - private final @Nullable Integer cookieDuration; + private @Nullable Integer cookieDuration; /** * @return Name of the application based cookie. AWSALB, AWSALBAPP, and AWSALBTG prefixes are reserved and cannot be used. Only needed when type is `app_cookie`. * */ - private final @Nullable String cookieName; + private @Nullable String cookieName; /** * @return Boolean to enable / disable `stickiness`. Default is `true`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The type of sticky sessions. The only current possible values are `lb_cookie`, `app_cookie` for ALBs, and `source_ip` for NLBs. * */ - private final String type; - - @CustomType.Constructor - private TargetGroupStickiness( - @CustomType.Parameter("cookieDuration") @Nullable Integer cookieDuration, - @CustomType.Parameter("cookieName") @Nullable String cookieName, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("type") String type) { - this.cookieDuration = cookieDuration; - this.cookieName = cookieName; - this.enabled = enabled; - this.type = type; - } + private String type; + private TargetGroupStickiness() {} /** * @return Only used when the type is `lb_cookie`. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(TargetGroupStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer cookieDuration; private @Nullable String cookieName; private @Nullable Boolean enabled; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TargetGroupStickiness defaults) { Objects.requireNonNull(defaults); this.cookieDuration = defaults.cookieDuration; @@ -101,23 +86,33 @@ public Builder(TargetGroupStickiness defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder cookieDuration(@Nullable Integer cookieDuration) { this.cookieDuration = cookieDuration; return this; } + @CustomType.Setter public Builder cookieName(@Nullable String cookieName) { this.cookieName = cookieName; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public TargetGroupStickiness build() { - return new TargetGroupStickiness(cookieDuration, cookieName, enabled, type); + } + public TargetGroupStickiness build() { + final var o = new TargetGroupStickiness(); + o.cookieDuration = cookieDuration; + o.cookieName = cookieName; + o.enabled = enabled; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpec.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpec.java index 3b8320a2ac3..9cf2405db3a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpec.java @@ -17,28 +17,19 @@ public final class GatewayRouteSpec { * @return The specification of a gRPC gateway route. * */ - private final @Nullable GatewayRouteSpecGrpcRoute grpcRoute; + private @Nullable GatewayRouteSpecGrpcRoute grpcRoute; /** * @return The specification of an HTTP/2 gateway route. * */ - private final @Nullable GatewayRouteSpecHttp2Route http2Route; + private @Nullable GatewayRouteSpecHttp2Route http2Route; /** * @return The specification of an HTTP gateway route. * */ - private final @Nullable GatewayRouteSpecHttpRoute httpRoute; - - @CustomType.Constructor - private GatewayRouteSpec( - @CustomType.Parameter("grpcRoute") @Nullable GatewayRouteSpecGrpcRoute grpcRoute, - @CustomType.Parameter("http2Route") @Nullable GatewayRouteSpecHttp2Route http2Route, - @CustomType.Parameter("httpRoute") @Nullable GatewayRouteSpecHttpRoute httpRoute) { - this.grpcRoute = grpcRoute; - this.http2Route = http2Route; - this.httpRoute = httpRoute; - } + private @Nullable GatewayRouteSpecHttpRoute httpRoute; + private GatewayRouteSpec() {} /** * @return The specification of a gRPC gateway route. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GatewayRouteSpecGrpcRoute grpcRoute; private @Nullable GatewayRouteSpecHttp2Route http2Route; private @Nullable GatewayRouteSpecHttpRoute httpRoute; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpec defaults) { Objects.requireNonNull(defaults); this.grpcRoute = defaults.grpcRoute; @@ -85,19 +72,27 @@ public Builder(GatewayRouteSpec defaults) { this.httpRoute = defaults.httpRoute; } + @CustomType.Setter public Builder grpcRoute(@Nullable GatewayRouteSpecGrpcRoute grpcRoute) { this.grpcRoute = grpcRoute; return this; } + @CustomType.Setter public Builder http2Route(@Nullable GatewayRouteSpecHttp2Route http2Route) { this.http2Route = http2Route; return this; } + @CustomType.Setter public Builder httpRoute(@Nullable GatewayRouteSpecHttpRoute httpRoute) { this.httpRoute = httpRoute; return this; - } public GatewayRouteSpec build() { - return new GatewayRouteSpec(grpcRoute, http2Route, httpRoute); + } + public GatewayRouteSpec build() { + final var o = new GatewayRouteSpec(); + o.grpcRoute = grpcRoute; + o.http2Route = http2Route; + o.httpRoute = httpRoute; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRoute.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRoute.java index cd5c373ce49..f38627e2185 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRoute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRoute.java @@ -14,21 +14,14 @@ public final class GatewayRouteSpecGrpcRoute { * @return The action to take if a match is determined. * */ - private final GatewayRouteSpecGrpcRouteAction action; + private GatewayRouteSpecGrpcRouteAction action; /** * @return The criteria for determining a request match. * */ - private final GatewayRouteSpecGrpcRouteMatch match; - - @CustomType.Constructor - private GatewayRouteSpecGrpcRoute( - @CustomType.Parameter("action") GatewayRouteSpecGrpcRouteAction action, - @CustomType.Parameter("match") GatewayRouteSpecGrpcRouteMatch match) { - this.action = action; - this.match = match; - } + private GatewayRouteSpecGrpcRouteMatch match; + private GatewayRouteSpecGrpcRoute() {} /** * @return The action to take if a match is determined. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecGrpcRoute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GatewayRouteSpecGrpcRouteAction action; private GatewayRouteSpecGrpcRouteMatch match; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecGrpcRoute defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; this.match = defaults.match; } + @CustomType.Setter public Builder action(GatewayRouteSpecGrpcRouteAction action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder match(GatewayRouteSpecGrpcRouteMatch match) { this.match = Objects.requireNonNull(match); return this; - } public GatewayRouteSpecGrpcRoute build() { - return new GatewayRouteSpecGrpcRoute(action, match); + } + public GatewayRouteSpecGrpcRoute build() { + final var o = new GatewayRouteSpecGrpcRoute(); + o.action = action; + o.match = match; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteAction.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteAction.java index 428718ecf56..b2201876153 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteAction.java @@ -13,13 +13,9 @@ public final class GatewayRouteSpecGrpcRouteAction { * @return The target that traffic is routed to when a request matches the gateway route. * */ - private final GatewayRouteSpecGrpcRouteActionTarget target; - - @CustomType.Constructor - private GatewayRouteSpecGrpcRouteAction(@CustomType.Parameter("target") GatewayRouteSpecGrpcRouteActionTarget target) { - this.target = target; - } + private GatewayRouteSpecGrpcRouteActionTarget target; + private GatewayRouteSpecGrpcRouteAction() {} /** * @return The target that traffic is routed to when a request matches the gateway route. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecGrpcRouteAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GatewayRouteSpecGrpcRouteActionTarget target; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecGrpcRouteAction defaults) { Objects.requireNonNull(defaults); this.target = defaults.target; } + @CustomType.Setter public Builder target(GatewayRouteSpecGrpcRouteActionTarget target) { this.target = Objects.requireNonNull(target); return this; - } public GatewayRouteSpecGrpcRouteAction build() { - return new GatewayRouteSpecGrpcRouteAction(target); + } + public GatewayRouteSpecGrpcRouteAction build() { + final var o = new GatewayRouteSpecGrpcRouteAction(); + o.target = target; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteActionTarget.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteActionTarget.java index 37b2c51bd1b..bfc350e7bc2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteActionTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteActionTarget.java @@ -13,13 +13,9 @@ public final class GatewayRouteSpecGrpcRouteActionTarget { * @return The virtual service gateway route target. * */ - private final GatewayRouteSpecGrpcRouteActionTargetVirtualService virtualService; - - @CustomType.Constructor - private GatewayRouteSpecGrpcRouteActionTarget(@CustomType.Parameter("virtualService") GatewayRouteSpecGrpcRouteActionTargetVirtualService virtualService) { - this.virtualService = virtualService; - } + private GatewayRouteSpecGrpcRouteActionTargetVirtualService virtualService; + private GatewayRouteSpecGrpcRouteActionTarget() {} /** * @return The virtual service gateway route target. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecGrpcRouteActionTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GatewayRouteSpecGrpcRouteActionTargetVirtualService virtualService; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecGrpcRouteActionTarget defaults) { Objects.requireNonNull(defaults); this.virtualService = defaults.virtualService; } + @CustomType.Setter public Builder virtualService(GatewayRouteSpecGrpcRouteActionTargetVirtualService virtualService) { this.virtualService = Objects.requireNonNull(virtualService); return this; - } public GatewayRouteSpecGrpcRouteActionTarget build() { - return new GatewayRouteSpecGrpcRouteActionTarget(virtualService); + } + public GatewayRouteSpecGrpcRouteActionTarget build() { + final var o = new GatewayRouteSpecGrpcRouteActionTarget(); + o.virtualService = virtualService; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteActionTargetVirtualService.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteActionTargetVirtualService.java index 30aa8f69deb..45f8b39d7d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteActionTargetVirtualService.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteActionTargetVirtualService.java @@ -13,13 +13,9 @@ public final class GatewayRouteSpecGrpcRouteActionTargetVirtualService { * @return The name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. * */ - private final String virtualServiceName; - - @CustomType.Constructor - private GatewayRouteSpecGrpcRouteActionTargetVirtualService(@CustomType.Parameter("virtualServiceName") String virtualServiceName) { - this.virtualServiceName = virtualServiceName; - } + private String virtualServiceName; + private GatewayRouteSpecGrpcRouteActionTargetVirtualService() {} /** * @return The name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecGrpcRouteActionTargetVirtualService defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String virtualServiceName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecGrpcRouteActionTargetVirtualService defaults) { Objects.requireNonNull(defaults); this.virtualServiceName = defaults.virtualServiceName; } + @CustomType.Setter public Builder virtualServiceName(String virtualServiceName) { this.virtualServiceName = Objects.requireNonNull(virtualServiceName); return this; - } public GatewayRouteSpecGrpcRouteActionTargetVirtualService build() { - return new GatewayRouteSpecGrpcRouteActionTargetVirtualService(virtualServiceName); + } + public GatewayRouteSpecGrpcRouteActionTargetVirtualService build() { + final var o = new GatewayRouteSpecGrpcRouteActionTargetVirtualService(); + o.virtualServiceName = virtualServiceName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteMatch.java index 39049431709..c11a1bed34f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecGrpcRouteMatch.java @@ -13,13 +13,9 @@ public final class GatewayRouteSpecGrpcRouteMatch { * @return The fully qualified domain name for the service to match from the request. * */ - private final String serviceName; - - @CustomType.Constructor - private GatewayRouteSpecGrpcRouteMatch(@CustomType.Parameter("serviceName") String serviceName) { - this.serviceName = serviceName; - } + private String serviceName; + private GatewayRouteSpecGrpcRouteMatch() {} /** * @return The fully qualified domain name for the service to match from the request. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecGrpcRouteMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String serviceName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecGrpcRouteMatch defaults) { Objects.requireNonNull(defaults); this.serviceName = defaults.serviceName; } + @CustomType.Setter public Builder serviceName(String serviceName) { this.serviceName = Objects.requireNonNull(serviceName); return this; - } public GatewayRouteSpecGrpcRouteMatch build() { - return new GatewayRouteSpecGrpcRouteMatch(serviceName); + } + public GatewayRouteSpecGrpcRouteMatch build() { + final var o = new GatewayRouteSpecGrpcRouteMatch(); + o.serviceName = serviceName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2Route.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2Route.java index fb92be1ceb4..40c725e0b9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2Route.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2Route.java @@ -14,21 +14,14 @@ public final class GatewayRouteSpecHttp2Route { * @return The action to take if a match is determined. * */ - private final GatewayRouteSpecHttp2RouteAction action; + private GatewayRouteSpecHttp2RouteAction action; /** * @return The criteria for determining a request match. * */ - private final GatewayRouteSpecHttp2RouteMatch match; - - @CustomType.Constructor - private GatewayRouteSpecHttp2Route( - @CustomType.Parameter("action") GatewayRouteSpecHttp2RouteAction action, - @CustomType.Parameter("match") GatewayRouteSpecHttp2RouteMatch match) { - this.action = action; - this.match = match; - } + private GatewayRouteSpecHttp2RouteMatch match; + private GatewayRouteSpecHttp2Route() {} /** * @return The action to take if a match is determined. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttp2Route defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GatewayRouteSpecHttp2RouteAction action; private GatewayRouteSpecHttp2RouteMatch match; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttp2Route defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; this.match = defaults.match; } + @CustomType.Setter public Builder action(GatewayRouteSpecHttp2RouteAction action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder match(GatewayRouteSpecHttp2RouteMatch match) { this.match = Objects.requireNonNull(match); return this; - } public GatewayRouteSpecHttp2Route build() { - return new GatewayRouteSpecHttp2Route(action, match); + } + public GatewayRouteSpecHttp2Route build() { + final var o = new GatewayRouteSpecHttp2Route(); + o.action = action; + o.match = match; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteAction.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteAction.java index ad12a66859e..d0540b43b24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteAction.java @@ -16,21 +16,14 @@ public final class GatewayRouteSpecHttp2RouteAction { * @return The gateway route action to rewrite. * */ - private final @Nullable GatewayRouteSpecHttp2RouteActionRewrite rewrite; + private @Nullable GatewayRouteSpecHttp2RouteActionRewrite rewrite; /** * @return The target that traffic is routed to when a request matches the gateway route. * */ - private final GatewayRouteSpecHttp2RouteActionTarget target; - - @CustomType.Constructor - private GatewayRouteSpecHttp2RouteAction( - @CustomType.Parameter("rewrite") @Nullable GatewayRouteSpecHttp2RouteActionRewrite rewrite, - @CustomType.Parameter("target") GatewayRouteSpecHttp2RouteActionTarget target) { - this.rewrite = rewrite; - this.target = target; - } + private GatewayRouteSpecHttp2RouteActionTarget target; + private GatewayRouteSpecHttp2RouteAction() {} /** * @return The gateway route action to rewrite. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttp2RouteAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GatewayRouteSpecHttp2RouteActionRewrite rewrite; private GatewayRouteSpecHttp2RouteActionTarget target; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttp2RouteAction defaults) { Objects.requireNonNull(defaults); this.rewrite = defaults.rewrite; this.target = defaults.target; } + @CustomType.Setter public Builder rewrite(@Nullable GatewayRouteSpecHttp2RouteActionRewrite rewrite) { this.rewrite = rewrite; return this; } + @CustomType.Setter public Builder target(GatewayRouteSpecHttp2RouteActionTarget target) { this.target = Objects.requireNonNull(target); return this; - } public GatewayRouteSpecHttp2RouteAction build() { - return new GatewayRouteSpecHttp2RouteAction(rewrite, target); + } + public GatewayRouteSpecHttp2RouteAction build() { + final var o = new GatewayRouteSpecHttp2RouteAction(); + o.rewrite = rewrite; + o.target = target; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionRewrite.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionRewrite.java index eec5d99c02f..ad1990629ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionRewrite.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionRewrite.java @@ -16,21 +16,14 @@ public final class GatewayRouteSpecHttp2RouteActionRewrite { * @return The host name to rewrite. * */ - private final @Nullable GatewayRouteSpecHttp2RouteActionRewriteHostname hostname; + private @Nullable GatewayRouteSpecHttp2RouteActionRewriteHostname hostname; /** * @return The specified beginning characters to rewrite. * */ - private final @Nullable GatewayRouteSpecHttp2RouteActionRewritePrefix prefix; - - @CustomType.Constructor - private GatewayRouteSpecHttp2RouteActionRewrite( - @CustomType.Parameter("hostname") @Nullable GatewayRouteSpecHttp2RouteActionRewriteHostname hostname, - @CustomType.Parameter("prefix") @Nullable GatewayRouteSpecHttp2RouteActionRewritePrefix prefix) { - this.hostname = hostname; - this.prefix = prefix; - } + private @Nullable GatewayRouteSpecHttp2RouteActionRewritePrefix prefix; + private GatewayRouteSpecHttp2RouteActionRewrite() {} /** * @return The host name to rewrite. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttp2RouteActionRewrite defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GatewayRouteSpecHttp2RouteActionRewriteHostname hostname; private @Nullable GatewayRouteSpecHttp2RouteActionRewritePrefix prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttp2RouteActionRewrite defaults) { Objects.requireNonNull(defaults); this.hostname = defaults.hostname; this.prefix = defaults.prefix; } + @CustomType.Setter public Builder hostname(@Nullable GatewayRouteSpecHttp2RouteActionRewriteHostname hostname) { this.hostname = hostname; return this; } + @CustomType.Setter public Builder prefix(@Nullable GatewayRouteSpecHttp2RouteActionRewritePrefix prefix) { this.prefix = prefix; return this; - } public GatewayRouteSpecHttp2RouteActionRewrite build() { - return new GatewayRouteSpecHttp2RouteActionRewrite(hostname, prefix); + } + public GatewayRouteSpecHttp2RouteActionRewrite build() { + final var o = new GatewayRouteSpecHttp2RouteActionRewrite(); + o.hostname = hostname; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionRewriteHostname.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionRewriteHostname.java index d32f9039887..fa7937d16c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionRewriteHostname.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionRewriteHostname.java @@ -13,13 +13,9 @@ public final class GatewayRouteSpecHttp2RouteActionRewriteHostname { * @return The default target host name to write to. Valid values: `ENABLED`, `DISABLED`. * */ - private final String defaultTargetHostname; - - @CustomType.Constructor - private GatewayRouteSpecHttp2RouteActionRewriteHostname(@CustomType.Parameter("defaultTargetHostname") String defaultTargetHostname) { - this.defaultTargetHostname = defaultTargetHostname; - } + private String defaultTargetHostname; + private GatewayRouteSpecHttp2RouteActionRewriteHostname() {} /** * @return The default target host name to write to. Valid values: `ENABLED`, `DISABLED`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttp2RouteActionRewriteHostname defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String defaultTargetHostname; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttp2RouteActionRewriteHostname defaults) { Objects.requireNonNull(defaults); this.defaultTargetHostname = defaults.defaultTargetHostname; } + @CustomType.Setter public Builder defaultTargetHostname(String defaultTargetHostname) { this.defaultTargetHostname = Objects.requireNonNull(defaultTargetHostname); return this; - } public GatewayRouteSpecHttp2RouteActionRewriteHostname build() { - return new GatewayRouteSpecHttp2RouteActionRewriteHostname(defaultTargetHostname); + } + public GatewayRouteSpecHttp2RouteActionRewriteHostname build() { + final var o = new GatewayRouteSpecHttp2RouteActionRewriteHostname(); + o.defaultTargetHostname = defaultTargetHostname; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionRewritePrefix.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionRewritePrefix.java index 22a66ab6c90..b8976970715 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionRewritePrefix.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionRewritePrefix.java @@ -15,21 +15,14 @@ public final class GatewayRouteSpecHttp2RouteActionRewritePrefix { * @return The default prefix used to replace the incoming route prefix when rewritten. Valid values: `ENABLED`, `DISABLED`. * */ - private final @Nullable String defaultPrefix; + private @Nullable String defaultPrefix; /** * @return The value used to replace the incoming route prefix when rewritten. * */ - private final @Nullable String value; - - @CustomType.Constructor - private GatewayRouteSpecHttp2RouteActionRewritePrefix( - @CustomType.Parameter("defaultPrefix") @Nullable String defaultPrefix, - @CustomType.Parameter("value") @Nullable String value) { - this.defaultPrefix = defaultPrefix; - this.value = value; - } + private @Nullable String value; + private GatewayRouteSpecHttp2RouteActionRewritePrefix() {} /** * @return The default prefix used to replace the incoming route prefix when rewritten. Valid values: `ENABLED`, `DISABLED`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttp2RouteActionRewritePrefix defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String defaultPrefix; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttp2RouteActionRewritePrefix defaults) { Objects.requireNonNull(defaults); this.defaultPrefix = defaults.defaultPrefix; this.value = defaults.value; } + @CustomType.Setter public Builder defaultPrefix(@Nullable String defaultPrefix) { this.defaultPrefix = defaultPrefix; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public GatewayRouteSpecHttp2RouteActionRewritePrefix build() { - return new GatewayRouteSpecHttp2RouteActionRewritePrefix(defaultPrefix, value); + } + public GatewayRouteSpecHttp2RouteActionRewritePrefix build() { + final var o = new GatewayRouteSpecHttp2RouteActionRewritePrefix(); + o.defaultPrefix = defaultPrefix; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionTarget.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionTarget.java index 9992cb3cd2b..5605f1ef6a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionTarget.java @@ -13,13 +13,9 @@ public final class GatewayRouteSpecHttp2RouteActionTarget { * @return The virtual service gateway route target. * */ - private final GatewayRouteSpecHttp2RouteActionTargetVirtualService virtualService; - - @CustomType.Constructor - private GatewayRouteSpecHttp2RouteActionTarget(@CustomType.Parameter("virtualService") GatewayRouteSpecHttp2RouteActionTargetVirtualService virtualService) { - this.virtualService = virtualService; - } + private GatewayRouteSpecHttp2RouteActionTargetVirtualService virtualService; + private GatewayRouteSpecHttp2RouteActionTarget() {} /** * @return The virtual service gateway route target. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttp2RouteActionTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GatewayRouteSpecHttp2RouteActionTargetVirtualService virtualService; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttp2RouteActionTarget defaults) { Objects.requireNonNull(defaults); this.virtualService = defaults.virtualService; } + @CustomType.Setter public Builder virtualService(GatewayRouteSpecHttp2RouteActionTargetVirtualService virtualService) { this.virtualService = Objects.requireNonNull(virtualService); return this; - } public GatewayRouteSpecHttp2RouteActionTarget build() { - return new GatewayRouteSpecHttp2RouteActionTarget(virtualService); + } + public GatewayRouteSpecHttp2RouteActionTarget build() { + final var o = new GatewayRouteSpecHttp2RouteActionTarget(); + o.virtualService = virtualService; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionTargetVirtualService.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionTargetVirtualService.java index dacae3a63f5..a3cca3e1227 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionTargetVirtualService.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteActionTargetVirtualService.java @@ -13,13 +13,9 @@ public final class GatewayRouteSpecHttp2RouteActionTargetVirtualService { * @return The name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. * */ - private final String virtualServiceName; - - @CustomType.Constructor - private GatewayRouteSpecHttp2RouteActionTargetVirtualService(@CustomType.Parameter("virtualServiceName") String virtualServiceName) { - this.virtualServiceName = virtualServiceName; - } + private String virtualServiceName; + private GatewayRouteSpecHttp2RouteActionTargetVirtualService() {} /** * @return The name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttp2RouteActionTargetVirtualService defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String virtualServiceName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttp2RouteActionTargetVirtualService defaults) { Objects.requireNonNull(defaults); this.virtualServiceName = defaults.virtualServiceName; } + @CustomType.Setter public Builder virtualServiceName(String virtualServiceName) { this.virtualServiceName = Objects.requireNonNull(virtualServiceName); return this; - } public GatewayRouteSpecHttp2RouteActionTargetVirtualService build() { - return new GatewayRouteSpecHttp2RouteActionTargetVirtualService(virtualServiceName); + } + public GatewayRouteSpecHttp2RouteActionTargetVirtualService build() { + final var o = new GatewayRouteSpecHttp2RouteActionTargetVirtualService(); + o.virtualServiceName = virtualServiceName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteMatch.java index 49350507b67..992d255389c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteMatch.java @@ -16,21 +16,14 @@ public final class GatewayRouteSpecHttp2RouteMatch { * @return The host name to rewrite. * */ - private final @Nullable GatewayRouteSpecHttp2RouteMatchHostname hostname; + private @Nullable GatewayRouteSpecHttp2RouteMatchHostname hostname; /** * @return The specified beginning characters to rewrite. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private GatewayRouteSpecHttp2RouteMatch( - @CustomType.Parameter("hostname") @Nullable GatewayRouteSpecHttp2RouteMatchHostname hostname, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.hostname = hostname; - this.prefix = prefix; - } + private @Nullable String prefix; + private GatewayRouteSpecHttp2RouteMatch() {} /** * @return The host name to rewrite. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttp2RouteMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GatewayRouteSpecHttp2RouteMatchHostname hostname; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttp2RouteMatch defaults) { Objects.requireNonNull(defaults); this.hostname = defaults.hostname; this.prefix = defaults.prefix; } + @CustomType.Setter public Builder hostname(@Nullable GatewayRouteSpecHttp2RouteMatchHostname hostname) { this.hostname = hostname; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public GatewayRouteSpecHttp2RouteMatch build() { - return new GatewayRouteSpecHttp2RouteMatch(hostname, prefix); + } + public GatewayRouteSpecHttp2RouteMatch build() { + final var o = new GatewayRouteSpecHttp2RouteMatch(); + o.hostname = hostname; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteMatchHostname.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteMatchHostname.java index c62af2a6f3e..776934fcd49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteMatchHostname.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttp2RouteMatchHostname.java @@ -15,21 +15,14 @@ public final class GatewayRouteSpecHttp2RouteMatchHostname { * @return The exact host name to match on. * */ - private final @Nullable String exact; + private @Nullable String exact; /** * @return The specified ending characters of the host name to match on. * */ - private final @Nullable String suffix; - - @CustomType.Constructor - private GatewayRouteSpecHttp2RouteMatchHostname( - @CustomType.Parameter("exact") @Nullable String exact, - @CustomType.Parameter("suffix") @Nullable String suffix) { - this.exact = exact; - this.suffix = suffix; - } + private @Nullable String suffix; + private GatewayRouteSpecHttp2RouteMatchHostname() {} /** * @return The exact host name to match on. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttp2RouteMatchHostname defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String exact; private @Nullable String suffix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttp2RouteMatchHostname defaults) { Objects.requireNonNull(defaults); this.exact = defaults.exact; this.suffix = defaults.suffix; } + @CustomType.Setter public Builder exact(@Nullable String exact) { this.exact = exact; return this; } + @CustomType.Setter public Builder suffix(@Nullable String suffix) { this.suffix = suffix; return this; - } public GatewayRouteSpecHttp2RouteMatchHostname build() { - return new GatewayRouteSpecHttp2RouteMatchHostname(exact, suffix); + } + public GatewayRouteSpecHttp2RouteMatchHostname build() { + final var o = new GatewayRouteSpecHttp2RouteMatchHostname(); + o.exact = exact; + o.suffix = suffix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRoute.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRoute.java index 01824e9e709..be6ecd3684f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRoute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRoute.java @@ -14,21 +14,14 @@ public final class GatewayRouteSpecHttpRoute { * @return The action to take if a match is determined. * */ - private final GatewayRouteSpecHttpRouteAction action; + private GatewayRouteSpecHttpRouteAction action; /** * @return The criteria for determining a request match. * */ - private final GatewayRouteSpecHttpRouteMatch match; - - @CustomType.Constructor - private GatewayRouteSpecHttpRoute( - @CustomType.Parameter("action") GatewayRouteSpecHttpRouteAction action, - @CustomType.Parameter("match") GatewayRouteSpecHttpRouteMatch match) { - this.action = action; - this.match = match; - } + private GatewayRouteSpecHttpRouteMatch match; + private GatewayRouteSpecHttpRoute() {} /** * @return The action to take if a match is determined. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttpRoute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GatewayRouteSpecHttpRouteAction action; private GatewayRouteSpecHttpRouteMatch match; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttpRoute defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; this.match = defaults.match; } + @CustomType.Setter public Builder action(GatewayRouteSpecHttpRouteAction action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder match(GatewayRouteSpecHttpRouteMatch match) { this.match = Objects.requireNonNull(match); return this; - } public GatewayRouteSpecHttpRoute build() { - return new GatewayRouteSpecHttpRoute(action, match); + } + public GatewayRouteSpecHttpRoute build() { + final var o = new GatewayRouteSpecHttpRoute(); + o.action = action; + o.match = match; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteAction.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteAction.java index 31ea59ab7f1..279f3609805 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteAction.java @@ -16,21 +16,14 @@ public final class GatewayRouteSpecHttpRouteAction { * @return The gateway route action to rewrite. * */ - private final @Nullable GatewayRouteSpecHttpRouteActionRewrite rewrite; + private @Nullable GatewayRouteSpecHttpRouteActionRewrite rewrite; /** * @return The target that traffic is routed to when a request matches the gateway route. * */ - private final GatewayRouteSpecHttpRouteActionTarget target; - - @CustomType.Constructor - private GatewayRouteSpecHttpRouteAction( - @CustomType.Parameter("rewrite") @Nullable GatewayRouteSpecHttpRouteActionRewrite rewrite, - @CustomType.Parameter("target") GatewayRouteSpecHttpRouteActionTarget target) { - this.rewrite = rewrite; - this.target = target; - } + private GatewayRouteSpecHttpRouteActionTarget target; + private GatewayRouteSpecHttpRouteAction() {} /** * @return The gateway route action to rewrite. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttpRouteAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GatewayRouteSpecHttpRouteActionRewrite rewrite; private GatewayRouteSpecHttpRouteActionTarget target; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttpRouteAction defaults) { Objects.requireNonNull(defaults); this.rewrite = defaults.rewrite; this.target = defaults.target; } + @CustomType.Setter public Builder rewrite(@Nullable GatewayRouteSpecHttpRouteActionRewrite rewrite) { this.rewrite = rewrite; return this; } + @CustomType.Setter public Builder target(GatewayRouteSpecHttpRouteActionTarget target) { this.target = Objects.requireNonNull(target); return this; - } public GatewayRouteSpecHttpRouteAction build() { - return new GatewayRouteSpecHttpRouteAction(rewrite, target); + } + public GatewayRouteSpecHttpRouteAction build() { + final var o = new GatewayRouteSpecHttpRouteAction(); + o.rewrite = rewrite; + o.target = target; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionRewrite.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionRewrite.java index cb6b2fb2704..eca2bc327b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionRewrite.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionRewrite.java @@ -16,21 +16,14 @@ public final class GatewayRouteSpecHttpRouteActionRewrite { * @return The host name to rewrite. * */ - private final @Nullable GatewayRouteSpecHttpRouteActionRewriteHostname hostname; + private @Nullable GatewayRouteSpecHttpRouteActionRewriteHostname hostname; /** * @return The specified beginning characters to rewrite. * */ - private final @Nullable GatewayRouteSpecHttpRouteActionRewritePrefix prefix; - - @CustomType.Constructor - private GatewayRouteSpecHttpRouteActionRewrite( - @CustomType.Parameter("hostname") @Nullable GatewayRouteSpecHttpRouteActionRewriteHostname hostname, - @CustomType.Parameter("prefix") @Nullable GatewayRouteSpecHttpRouteActionRewritePrefix prefix) { - this.hostname = hostname; - this.prefix = prefix; - } + private @Nullable GatewayRouteSpecHttpRouteActionRewritePrefix prefix; + private GatewayRouteSpecHttpRouteActionRewrite() {} /** * @return The host name to rewrite. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttpRouteActionRewrite defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GatewayRouteSpecHttpRouteActionRewriteHostname hostname; private @Nullable GatewayRouteSpecHttpRouteActionRewritePrefix prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttpRouteActionRewrite defaults) { Objects.requireNonNull(defaults); this.hostname = defaults.hostname; this.prefix = defaults.prefix; } + @CustomType.Setter public Builder hostname(@Nullable GatewayRouteSpecHttpRouteActionRewriteHostname hostname) { this.hostname = hostname; return this; } + @CustomType.Setter public Builder prefix(@Nullable GatewayRouteSpecHttpRouteActionRewritePrefix prefix) { this.prefix = prefix; return this; - } public GatewayRouteSpecHttpRouteActionRewrite build() { - return new GatewayRouteSpecHttpRouteActionRewrite(hostname, prefix); + } + public GatewayRouteSpecHttpRouteActionRewrite build() { + final var o = new GatewayRouteSpecHttpRouteActionRewrite(); + o.hostname = hostname; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionRewriteHostname.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionRewriteHostname.java index 4a3e6181d6d..645964d9a68 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionRewriteHostname.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionRewriteHostname.java @@ -13,13 +13,9 @@ public final class GatewayRouteSpecHttpRouteActionRewriteHostname { * @return The default target host name to write to. Valid values: `ENABLED`, `DISABLED`. * */ - private final String defaultTargetHostname; - - @CustomType.Constructor - private GatewayRouteSpecHttpRouteActionRewriteHostname(@CustomType.Parameter("defaultTargetHostname") String defaultTargetHostname) { - this.defaultTargetHostname = defaultTargetHostname; - } + private String defaultTargetHostname; + private GatewayRouteSpecHttpRouteActionRewriteHostname() {} /** * @return The default target host name to write to. Valid values: `ENABLED`, `DISABLED`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttpRouteActionRewriteHostname defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String defaultTargetHostname; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttpRouteActionRewriteHostname defaults) { Objects.requireNonNull(defaults); this.defaultTargetHostname = defaults.defaultTargetHostname; } + @CustomType.Setter public Builder defaultTargetHostname(String defaultTargetHostname) { this.defaultTargetHostname = Objects.requireNonNull(defaultTargetHostname); return this; - } public GatewayRouteSpecHttpRouteActionRewriteHostname build() { - return new GatewayRouteSpecHttpRouteActionRewriteHostname(defaultTargetHostname); + } + public GatewayRouteSpecHttpRouteActionRewriteHostname build() { + final var o = new GatewayRouteSpecHttpRouteActionRewriteHostname(); + o.defaultTargetHostname = defaultTargetHostname; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionRewritePrefix.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionRewritePrefix.java index cd9077708d9..94908f5e89f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionRewritePrefix.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionRewritePrefix.java @@ -15,21 +15,14 @@ public final class GatewayRouteSpecHttpRouteActionRewritePrefix { * @return The default prefix used to replace the incoming route prefix when rewritten. Valid values: `ENABLED`, `DISABLED`. * */ - private final @Nullable String defaultPrefix; + private @Nullable String defaultPrefix; /** * @return The value used to replace the incoming route prefix when rewritten. * */ - private final @Nullable String value; - - @CustomType.Constructor - private GatewayRouteSpecHttpRouteActionRewritePrefix( - @CustomType.Parameter("defaultPrefix") @Nullable String defaultPrefix, - @CustomType.Parameter("value") @Nullable String value) { - this.defaultPrefix = defaultPrefix; - this.value = value; - } + private @Nullable String value; + private GatewayRouteSpecHttpRouteActionRewritePrefix() {} /** * @return The default prefix used to replace the incoming route prefix when rewritten. Valid values: `ENABLED`, `DISABLED`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttpRouteActionRewritePrefix defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String defaultPrefix; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttpRouteActionRewritePrefix defaults) { Objects.requireNonNull(defaults); this.defaultPrefix = defaults.defaultPrefix; this.value = defaults.value; } + @CustomType.Setter public Builder defaultPrefix(@Nullable String defaultPrefix) { this.defaultPrefix = defaultPrefix; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public GatewayRouteSpecHttpRouteActionRewritePrefix build() { - return new GatewayRouteSpecHttpRouteActionRewritePrefix(defaultPrefix, value); + } + public GatewayRouteSpecHttpRouteActionRewritePrefix build() { + final var o = new GatewayRouteSpecHttpRouteActionRewritePrefix(); + o.defaultPrefix = defaultPrefix; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionTarget.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionTarget.java index 501e345bb1b..3bc81a83ee6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionTarget.java @@ -13,13 +13,9 @@ public final class GatewayRouteSpecHttpRouteActionTarget { * @return The virtual service gateway route target. * */ - private final GatewayRouteSpecHttpRouteActionTargetVirtualService virtualService; - - @CustomType.Constructor - private GatewayRouteSpecHttpRouteActionTarget(@CustomType.Parameter("virtualService") GatewayRouteSpecHttpRouteActionTargetVirtualService virtualService) { - this.virtualService = virtualService; - } + private GatewayRouteSpecHttpRouteActionTargetVirtualService virtualService; + private GatewayRouteSpecHttpRouteActionTarget() {} /** * @return The virtual service gateway route target. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttpRouteActionTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GatewayRouteSpecHttpRouteActionTargetVirtualService virtualService; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttpRouteActionTarget defaults) { Objects.requireNonNull(defaults); this.virtualService = defaults.virtualService; } + @CustomType.Setter public Builder virtualService(GatewayRouteSpecHttpRouteActionTargetVirtualService virtualService) { this.virtualService = Objects.requireNonNull(virtualService); return this; - } public GatewayRouteSpecHttpRouteActionTarget build() { - return new GatewayRouteSpecHttpRouteActionTarget(virtualService); + } + public GatewayRouteSpecHttpRouteActionTarget build() { + final var o = new GatewayRouteSpecHttpRouteActionTarget(); + o.virtualService = virtualService; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionTargetVirtualService.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionTargetVirtualService.java index 945aec651e8..ecd74ea7375 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionTargetVirtualService.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteActionTargetVirtualService.java @@ -13,13 +13,9 @@ public final class GatewayRouteSpecHttpRouteActionTargetVirtualService { * @return The name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. * */ - private final String virtualServiceName; - - @CustomType.Constructor - private GatewayRouteSpecHttpRouteActionTargetVirtualService(@CustomType.Parameter("virtualServiceName") String virtualServiceName) { - this.virtualServiceName = virtualServiceName; - } + private String virtualServiceName; + private GatewayRouteSpecHttpRouteActionTargetVirtualService() {} /** * @return The name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttpRouteActionTargetVirtualService defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String virtualServiceName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttpRouteActionTargetVirtualService defaults) { Objects.requireNonNull(defaults); this.virtualServiceName = defaults.virtualServiceName; } + @CustomType.Setter public Builder virtualServiceName(String virtualServiceName) { this.virtualServiceName = Objects.requireNonNull(virtualServiceName); return this; - } public GatewayRouteSpecHttpRouteActionTargetVirtualService build() { - return new GatewayRouteSpecHttpRouteActionTargetVirtualService(virtualServiceName); + } + public GatewayRouteSpecHttpRouteActionTargetVirtualService build() { + final var o = new GatewayRouteSpecHttpRouteActionTargetVirtualService(); + o.virtualServiceName = virtualServiceName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteMatch.java index 058d981398a..380b24fd615 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteMatch.java @@ -16,21 +16,14 @@ public final class GatewayRouteSpecHttpRouteMatch { * @return The host name to rewrite. * */ - private final @Nullable GatewayRouteSpecHttpRouteMatchHostname hostname; + private @Nullable GatewayRouteSpecHttpRouteMatchHostname hostname; /** * @return The specified beginning characters to rewrite. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private GatewayRouteSpecHttpRouteMatch( - @CustomType.Parameter("hostname") @Nullable GatewayRouteSpecHttpRouteMatchHostname hostname, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.hostname = hostname; - this.prefix = prefix; - } + private @Nullable String prefix; + private GatewayRouteSpecHttpRouteMatch() {} /** * @return The host name to rewrite. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttpRouteMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GatewayRouteSpecHttpRouteMatchHostname hostname; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttpRouteMatch defaults) { Objects.requireNonNull(defaults); this.hostname = defaults.hostname; this.prefix = defaults.prefix; } + @CustomType.Setter public Builder hostname(@Nullable GatewayRouteSpecHttpRouteMatchHostname hostname) { this.hostname = hostname; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public GatewayRouteSpecHttpRouteMatch build() { - return new GatewayRouteSpecHttpRouteMatch(hostname, prefix); + } + public GatewayRouteSpecHttpRouteMatch build() { + final var o = new GatewayRouteSpecHttpRouteMatch(); + o.hostname = hostname; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteMatchHostname.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteMatchHostname.java index a3b9f4c3d9f..9f8a1a5d0ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteMatchHostname.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GatewayRouteSpecHttpRouteMatchHostname.java @@ -15,21 +15,14 @@ public final class GatewayRouteSpecHttpRouteMatchHostname { * @return The exact host name to match on. * */ - private final @Nullable String exact; + private @Nullable String exact; /** * @return The specified ending characters of the host name to match on. * */ - private final @Nullable String suffix; - - @CustomType.Constructor - private GatewayRouteSpecHttpRouteMatchHostname( - @CustomType.Parameter("exact") @Nullable String exact, - @CustomType.Parameter("suffix") @Nullable String suffix) { - this.exact = exact; - this.suffix = suffix; - } + private @Nullable String suffix; + private GatewayRouteSpecHttpRouteMatchHostname() {} /** * @return The exact host name to match on. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GatewayRouteSpecHttpRouteMatchHostname defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String exact; private @Nullable String suffix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayRouteSpecHttpRouteMatchHostname defaults) { Objects.requireNonNull(defaults); this.exact = defaults.exact; this.suffix = defaults.suffix; } + @CustomType.Setter public Builder exact(@Nullable String exact) { this.exact = exact; return this; } + @CustomType.Setter public Builder suffix(@Nullable String suffix) { this.suffix = suffix; return this; - } public GatewayRouteSpecHttpRouteMatchHostname build() { - return new GatewayRouteSpecHttpRouteMatchHostname(exact, suffix); + } + public GatewayRouteSpecHttpRouteMatchHostname build() { + final var o = new GatewayRouteSpecHttpRouteMatchHostname(); + o.exact = exact; + o.suffix = suffix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetMeshResult.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetMeshResult.java index e286dc6185f..e1889f8b9c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetMeshResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetMeshResult.java @@ -16,62 +16,41 @@ public final class GetMeshResult { * @return The ARN of the service mesh. * */ - private final String arn; + private String arn; /** * @return The creation date of the service mesh. * */ - private final String createdDate; + private String createdDate; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The last update date of the service mesh. * */ - private final String lastUpdatedDate; - private final String meshOwner; - private final String name; + private String lastUpdatedDate; + private String meshOwner; + private String name; /** * @return The resource owner's AWS account ID. * */ - private final String resourceOwner; + private String resourceOwner; /** * @return The service mesh specification. * */ - private final List specs; + private List specs; /** * @return A map of tags. * */ - private final Map tags; - - @CustomType.Constructor - private GetMeshResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createdDate") String createdDate, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastUpdatedDate") String lastUpdatedDate, - @CustomType.Parameter("meshOwner") String meshOwner, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("resourceOwner") String resourceOwner, - @CustomType.Parameter("specs") List specs, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.createdDate = createdDate; - this.id = id; - this.lastUpdatedDate = lastUpdatedDate; - this.meshOwner = meshOwner; - this.name = name; - this.resourceOwner = resourceOwner; - this.specs = specs; - this.tags = tags; - } + private Map tags; + private GetMeshResult() {} /** * @return The ARN of the service mesh. * @@ -135,7 +114,7 @@ public static Builder builder() { public static Builder builder(GetMeshResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String createdDate; @@ -146,11 +125,7 @@ public static final class Builder { private String resourceOwner; private List specs; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMeshResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -164,34 +139,42 @@ public Builder(GetMeshResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createdDate(String createdDate) { this.createdDate = Objects.requireNonNull(createdDate); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); return this; } + @CustomType.Setter public Builder meshOwner(String meshOwner) { this.meshOwner = Objects.requireNonNull(meshOwner); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder resourceOwner(String resourceOwner) { this.resourceOwner = Objects.requireNonNull(resourceOwner); return this; } + @CustomType.Setter public Builder specs(List specs) { this.specs = Objects.requireNonNull(specs); return this; @@ -199,11 +182,23 @@ public Builder specs(List specs) { public Builder specs(GetMeshSpec... specs) { return specs(List.of(specs)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetMeshResult build() { - return new GetMeshResult(arn, createdDate, id, lastUpdatedDate, meshOwner, name, resourceOwner, specs, tags); + } + public GetMeshResult build() { + final var o = new GetMeshResult(); + o.arn = arn; + o.createdDate = createdDate; + o.id = id; + o.lastUpdatedDate = lastUpdatedDate; + o.meshOwner = meshOwner; + o.name = name; + o.resourceOwner = resourceOwner; + o.specs = specs; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetMeshSpec.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetMeshSpec.java index 0b2a551642f..d471d6e59d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetMeshSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetMeshSpec.java @@ -14,13 +14,9 @@ public final class GetMeshSpec { * @return The egress filter rules for the service mesh. * */ - private final List egressFilters; - - @CustomType.Constructor - private GetMeshSpec(@CustomType.Parameter("egressFilters") List egressFilters) { - this.egressFilters = egressFilters; - } + private List egressFilters; + private GetMeshSpec() {} /** * @return The egress filter rules for the service mesh. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(GetMeshSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List egressFilters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMeshSpec defaults) { Objects.requireNonNull(defaults); this.egressFilters = defaults.egressFilters; } + @CustomType.Setter public Builder egressFilters(List egressFilters) { this.egressFilters = Objects.requireNonNull(egressFilters); return this; } public Builder egressFilters(GetMeshSpecEgressFilter... egressFilters) { return egressFilters(List.of(egressFilters)); - } public GetMeshSpec build() { - return new GetMeshSpec(egressFilters); + } + public GetMeshSpec build() { + final var o = new GetMeshSpec(); + o.egressFilters = egressFilters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetMeshSpecEgressFilter.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetMeshSpecEgressFilter.java index 1c266b9ad7d..a76ac9bb753 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetMeshSpecEgressFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetMeshSpecEgressFilter.java @@ -13,13 +13,9 @@ public final class GetMeshSpecEgressFilter { * @return The egress filter type. * */ - private final String type; - - @CustomType.Constructor - private GetMeshSpecEgressFilter(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private GetMeshSpecEgressFilter() {} /** * @return The egress filter type. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetMeshSpecEgressFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMeshSpecEgressFilter defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetMeshSpecEgressFilter build() { - return new GetMeshSpecEgressFilter(type); + } + public GetMeshSpecEgressFilter build() { + final var o = new GetMeshSpecEgressFilter(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceResult.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceResult.java index 2da8192ad05..634b61bbded 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceResult.java @@ -17,65 +17,42 @@ public final class GetVirtualServiceResult { * @return The ARN of the virtual service. * */ - private final String arn; + private String arn; /** * @return The creation date of the virtual service. * */ - private final String createdDate; + private String createdDate; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The last update date of the virtual service. * */ - private final String lastUpdatedDate; - private final String meshName; - private final String meshOwner; - private final String name; + private String lastUpdatedDate; + private String meshName; + private String meshOwner; + private String name; /** * @return The resource owner's AWS account ID. * */ - private final String resourceOwner; + private String resourceOwner; /** * @return The virtual service specification * */ - private final List specs; + private List specs; /** * @return A map of tags. * */ - private final @Nullable Map tags; - - @CustomType.Constructor - private GetVirtualServiceResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createdDate") String createdDate, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastUpdatedDate") String lastUpdatedDate, - @CustomType.Parameter("meshName") String meshName, - @CustomType.Parameter("meshOwner") String meshOwner, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("resourceOwner") String resourceOwner, - @CustomType.Parameter("specs") List specs, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.arn = arn; - this.createdDate = createdDate; - this.id = id; - this.lastUpdatedDate = lastUpdatedDate; - this.meshName = meshName; - this.meshOwner = meshOwner; - this.name = name; - this.resourceOwner = resourceOwner; - this.specs = specs; - this.tags = tags; - } + private @Nullable Map tags; + private GetVirtualServiceResult() {} /** * @return The ARN of the virtual service. * @@ -142,7 +119,7 @@ public static Builder builder() { public static Builder builder(GetVirtualServiceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String createdDate; @@ -154,11 +131,7 @@ public static final class Builder { private String resourceOwner; private List specs; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVirtualServiceResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -173,38 +146,47 @@ public Builder(GetVirtualServiceResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createdDate(String createdDate) { this.createdDate = Objects.requireNonNull(createdDate); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); return this; } + @CustomType.Setter public Builder meshName(String meshName) { this.meshName = Objects.requireNonNull(meshName); return this; } + @CustomType.Setter public Builder meshOwner(String meshOwner) { this.meshOwner = Objects.requireNonNull(meshOwner); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder resourceOwner(String resourceOwner) { this.resourceOwner = Objects.requireNonNull(resourceOwner); return this; } + @CustomType.Setter public Builder specs(List specs) { this.specs = Objects.requireNonNull(specs); return this; @@ -212,11 +194,24 @@ public Builder specs(List specs) { public Builder specs(GetVirtualServiceSpec... specs) { return specs(List.of(specs)); } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public GetVirtualServiceResult build() { - return new GetVirtualServiceResult(arn, createdDate, id, lastUpdatedDate, meshName, meshOwner, name, resourceOwner, specs, tags); + } + public GetVirtualServiceResult build() { + final var o = new GetVirtualServiceResult(); + o.arn = arn; + o.createdDate = createdDate; + o.id = id; + o.lastUpdatedDate = lastUpdatedDate; + o.meshName = meshName; + o.meshOwner = meshOwner; + o.name = name; + o.resourceOwner = resourceOwner; + o.specs = specs; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpec.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpec.java index 90bd168392a..5c34282b1a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpec.java @@ -14,13 +14,9 @@ public final class GetVirtualServiceSpec { * @return The App Mesh object that is acting as the provider for a virtual service. * */ - private final List providers; - - @CustomType.Constructor - private GetVirtualServiceSpec(@CustomType.Parameter("providers") List providers) { - this.providers = providers; - } + private List providers; + private GetVirtualServiceSpec() {} /** * @return The App Mesh object that is acting as the provider for a virtual service. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(GetVirtualServiceSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List providers; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVirtualServiceSpec defaults) { Objects.requireNonNull(defaults); this.providers = defaults.providers; } + @CustomType.Setter public Builder providers(List providers) { this.providers = Objects.requireNonNull(providers); return this; } public Builder providers(GetVirtualServiceSpecProvider... providers) { return providers(List.of(providers)); - } public GetVirtualServiceSpec build() { - return new GetVirtualServiceSpec(providers); + } + public GetVirtualServiceSpec build() { + final var o = new GetVirtualServiceSpec(); + o.providers = providers; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpecProvider.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpecProvider.java index c4a92581a65..ac398c8e60f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpecProvider.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpecProvider.java @@ -15,21 +15,14 @@ public final class GetVirtualServiceSpecProvider { * @return The virtual node associated with the virtual service. * */ - private final List virtualNodes; + private List virtualNodes; /** * @return The virtual router associated with the virtual service. * */ - private final List virtualRouters; - - @CustomType.Constructor - private GetVirtualServiceSpecProvider( - @CustomType.Parameter("virtualNodes") List virtualNodes, - @CustomType.Parameter("virtualRouters") List virtualRouters) { - this.virtualNodes = virtualNodes; - this.virtualRouters = virtualRouters; - } + private List virtualRouters; + private GetVirtualServiceSpecProvider() {} /** * @return The virtual node associated with the virtual service. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(GetVirtualServiceSpecProvider defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List virtualNodes; private List virtualRouters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVirtualServiceSpecProvider defaults) { Objects.requireNonNull(defaults); this.virtualNodes = defaults.virtualNodes; this.virtualRouters = defaults.virtualRouters; } + @CustomType.Setter public Builder virtualNodes(List virtualNodes) { this.virtualNodes = Objects.requireNonNull(virtualNodes); return this; @@ -74,14 +64,19 @@ public Builder virtualNodes(List virtu public Builder virtualNodes(GetVirtualServiceSpecProviderVirtualNode... virtualNodes) { return virtualNodes(List.of(virtualNodes)); } + @CustomType.Setter public Builder virtualRouters(List virtualRouters) { this.virtualRouters = Objects.requireNonNull(virtualRouters); return this; } public Builder virtualRouters(GetVirtualServiceSpecProviderVirtualRouter... virtualRouters) { return virtualRouters(List.of(virtualRouters)); - } public GetVirtualServiceSpecProvider build() { - return new GetVirtualServiceSpecProvider(virtualNodes, virtualRouters); + } + public GetVirtualServiceSpecProvider build() { + final var o = new GetVirtualServiceSpecProvider(); + o.virtualNodes = virtualNodes; + o.virtualRouters = virtualRouters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpecProviderVirtualNode.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpecProviderVirtualNode.java index faa5d62fe85..98f2158dca4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpecProviderVirtualNode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpecProviderVirtualNode.java @@ -13,13 +13,9 @@ public final class GetVirtualServiceSpecProviderVirtualNode { * @return The name of the virtual node that is acting as a service provider. * */ - private final String virtualNodeName; - - @CustomType.Constructor - private GetVirtualServiceSpecProviderVirtualNode(@CustomType.Parameter("virtualNodeName") String virtualNodeName) { - this.virtualNodeName = virtualNodeName; - } + private String virtualNodeName; + private GetVirtualServiceSpecProviderVirtualNode() {} /** * @return The name of the virtual node that is acting as a service provider. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetVirtualServiceSpecProviderVirtualNode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String virtualNodeName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVirtualServiceSpecProviderVirtualNode defaults) { Objects.requireNonNull(defaults); this.virtualNodeName = defaults.virtualNodeName; } + @CustomType.Setter public Builder virtualNodeName(String virtualNodeName) { this.virtualNodeName = Objects.requireNonNull(virtualNodeName); return this; - } public GetVirtualServiceSpecProviderVirtualNode build() { - return new GetVirtualServiceSpecProviderVirtualNode(virtualNodeName); + } + public GetVirtualServiceSpecProviderVirtualNode build() { + final var o = new GetVirtualServiceSpecProviderVirtualNode(); + o.virtualNodeName = virtualNodeName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpecProviderVirtualRouter.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpecProviderVirtualRouter.java index 80d8bede58a..47beb2381eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpecProviderVirtualRouter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/GetVirtualServiceSpecProviderVirtualRouter.java @@ -13,13 +13,9 @@ public final class GetVirtualServiceSpecProviderVirtualRouter { * @return The name of the virtual router that is acting as a service provider. * */ - private final String virtualRouterName; - - @CustomType.Constructor - private GetVirtualServiceSpecProviderVirtualRouter(@CustomType.Parameter("virtualRouterName") String virtualRouterName) { - this.virtualRouterName = virtualRouterName; - } + private String virtualRouterName; + private GetVirtualServiceSpecProviderVirtualRouter() {} /** * @return The name of the virtual router that is acting as a service provider. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetVirtualServiceSpecProviderVirtualRouter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String virtualRouterName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVirtualServiceSpecProviderVirtualRouter defaults) { Objects.requireNonNull(defaults); this.virtualRouterName = defaults.virtualRouterName; } + @CustomType.Setter public Builder virtualRouterName(String virtualRouterName) { this.virtualRouterName = Objects.requireNonNull(virtualRouterName); return this; - } public GetVirtualServiceSpecProviderVirtualRouter build() { - return new GetVirtualServiceSpecProviderVirtualRouter(virtualRouterName); + } + public GetVirtualServiceSpecProviderVirtualRouter build() { + final var o = new GetVirtualServiceSpecProviderVirtualRouter(); + o.virtualRouterName = virtualRouterName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/MeshSpec.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/MeshSpec.java index 1516c5c741a..fe29f3f8adf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/MeshSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/MeshSpec.java @@ -15,13 +15,9 @@ public final class MeshSpec { * @return The egress filter rules for the service mesh. * */ - private final @Nullable MeshSpecEgressFilter egressFilter; - - @CustomType.Constructor - private MeshSpec(@CustomType.Parameter("egressFilter") @Nullable MeshSpecEgressFilter egressFilter) { - this.egressFilter = egressFilter; - } + private @Nullable MeshSpecEgressFilter egressFilter; + private MeshSpec() {} /** * @return The egress filter rules for the service mesh. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(MeshSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable MeshSpecEgressFilter egressFilter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MeshSpec defaults) { Objects.requireNonNull(defaults); this.egressFilter = defaults.egressFilter; } + @CustomType.Setter public Builder egressFilter(@Nullable MeshSpecEgressFilter egressFilter) { this.egressFilter = egressFilter; return this; - } public MeshSpec build() { - return new MeshSpec(egressFilter); + } + public MeshSpec build() { + final var o = new MeshSpec(); + o.egressFilter = egressFilter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/MeshSpecEgressFilter.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/MeshSpecEgressFilter.java index 8c939361f1d..981602a2ff1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/MeshSpecEgressFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/MeshSpecEgressFilter.java @@ -16,13 +16,9 @@ public final class MeshSpecEgressFilter { * Valid values are `ALLOW_ALL` and `DROP_ALL`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private MeshSpecEgressFilter(@CustomType.Parameter("type") @Nullable String type) { - this.type = type; - } + private @Nullable String type; + private MeshSpecEgressFilter() {} /** * @return The egress filter type. By default, the type is `DROP_ALL`. * Valid values are `ALLOW_ALL` and `DROP_ALL`. @@ -39,24 +35,24 @@ public static Builder builder() { public static Builder builder(MeshSpecEgressFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MeshSpecEgressFilter defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public MeshSpecEgressFilter build() { - return new MeshSpecEgressFilter(type); + } + public MeshSpecEgressFilter build() { + final var o = new MeshSpecEgressFilter(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpec.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpec.java index 8101a75d375..0e6d6289069 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpec.java @@ -19,43 +19,30 @@ public final class RouteSpec { * @return The gRPC routing information for the route. * */ - private final @Nullable RouteSpecGrpcRoute grpcRoute; + private @Nullable RouteSpecGrpcRoute grpcRoute; /** * @return The HTTP/2 routing information for the route. * */ - private final @Nullable RouteSpecHttp2Route http2Route; + private @Nullable RouteSpecHttp2Route http2Route; /** * @return The HTTP routing information for the route. * */ - private final @Nullable RouteSpecHttpRoute httpRoute; + private @Nullable RouteSpecHttpRoute httpRoute; /** * @return The priority for the route, between `0` and `1000`. * Routes are matched based on the specified value, where `0` is the highest priority. * */ - private final @Nullable Integer priority; + private @Nullable Integer priority; /** * @return The TCP routing information for the route. * */ - private final @Nullable RouteSpecTcpRoute tcpRoute; - - @CustomType.Constructor - private RouteSpec( - @CustomType.Parameter("grpcRoute") @Nullable RouteSpecGrpcRoute grpcRoute, - @CustomType.Parameter("http2Route") @Nullable RouteSpecHttp2Route http2Route, - @CustomType.Parameter("httpRoute") @Nullable RouteSpecHttpRoute httpRoute, - @CustomType.Parameter("priority") @Nullable Integer priority, - @CustomType.Parameter("tcpRoute") @Nullable RouteSpecTcpRoute tcpRoute) { - this.grpcRoute = grpcRoute; - this.http2Route = http2Route; - this.httpRoute = httpRoute; - this.priority = priority; - this.tcpRoute = tcpRoute; - } + private @Nullable RouteSpecTcpRoute tcpRoute; + private RouteSpec() {} /** * @return The gRPC routing information for the route. * @@ -100,18 +87,14 @@ public static Builder builder() { public static Builder builder(RouteSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RouteSpecGrpcRoute grpcRoute; private @Nullable RouteSpecHttp2Route http2Route; private @Nullable RouteSpecHttpRoute httpRoute; private @Nullable Integer priority; private @Nullable RouteSpecTcpRoute tcpRoute; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpec defaults) { Objects.requireNonNull(defaults); this.grpcRoute = defaults.grpcRoute; @@ -121,27 +104,39 @@ public Builder(RouteSpec defaults) { this.tcpRoute = defaults.tcpRoute; } + @CustomType.Setter public Builder grpcRoute(@Nullable RouteSpecGrpcRoute grpcRoute) { this.grpcRoute = grpcRoute; return this; } + @CustomType.Setter public Builder http2Route(@Nullable RouteSpecHttp2Route http2Route) { this.http2Route = http2Route; return this; } + @CustomType.Setter public Builder httpRoute(@Nullable RouteSpecHttpRoute httpRoute) { this.httpRoute = httpRoute; return this; } + @CustomType.Setter public Builder priority(@Nullable Integer priority) { this.priority = priority; return this; } + @CustomType.Setter public Builder tcpRoute(@Nullable RouteSpecTcpRoute tcpRoute) { this.tcpRoute = tcpRoute; return this; - } public RouteSpec build() { - return new RouteSpec(grpcRoute, http2Route, httpRoute, priority, tcpRoute); + } + public RouteSpec build() { + final var o = new RouteSpec(); + o.grpcRoute = grpcRoute; + o.http2Route = http2Route; + o.httpRoute = httpRoute; + o.priority = priority; + o.tcpRoute = tcpRoute; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRoute.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRoute.java index 4c98b9a473a..a31dd55c59c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRoute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRoute.java @@ -18,35 +18,24 @@ public final class RouteSpecGrpcRoute { * @return The action to take if a match is determined. * */ - private final RouteSpecGrpcRouteAction action; + private RouteSpecGrpcRouteAction action; /** * @return The criteria for determining an gRPC request match. * */ - private final @Nullable RouteSpecGrpcRouteMatch match; + private @Nullable RouteSpecGrpcRouteMatch match; /** * @return The retry policy. * */ - private final @Nullable RouteSpecGrpcRouteRetryPolicy retryPolicy; + private @Nullable RouteSpecGrpcRouteRetryPolicy retryPolicy; /** * @return The types of timeouts. * */ - private final @Nullable RouteSpecGrpcRouteTimeout timeout; - - @CustomType.Constructor - private RouteSpecGrpcRoute( - @CustomType.Parameter("action") RouteSpecGrpcRouteAction action, - @CustomType.Parameter("match") @Nullable RouteSpecGrpcRouteMatch match, - @CustomType.Parameter("retryPolicy") @Nullable RouteSpecGrpcRouteRetryPolicy retryPolicy, - @CustomType.Parameter("timeout") @Nullable RouteSpecGrpcRouteTimeout timeout) { - this.action = action; - this.match = match; - this.retryPolicy = retryPolicy; - this.timeout = timeout; - } + private @Nullable RouteSpecGrpcRouteTimeout timeout; + private RouteSpecGrpcRoute() {} /** * @return The action to take if a match is determined. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RouteSpecGrpcRoute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RouteSpecGrpcRouteAction action; private @Nullable RouteSpecGrpcRouteMatch match; private @Nullable RouteSpecGrpcRouteRetryPolicy retryPolicy; private @Nullable RouteSpecGrpcRouteTimeout timeout; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecGrpcRoute defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -102,23 +87,33 @@ public Builder(RouteSpecGrpcRoute defaults) { this.timeout = defaults.timeout; } + @CustomType.Setter public Builder action(RouteSpecGrpcRouteAction action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder match(@Nullable RouteSpecGrpcRouteMatch match) { this.match = match; return this; } + @CustomType.Setter public Builder retryPolicy(@Nullable RouteSpecGrpcRouteRetryPolicy retryPolicy) { this.retryPolicy = retryPolicy; return this; } + @CustomType.Setter public Builder timeout(@Nullable RouteSpecGrpcRouteTimeout timeout) { this.timeout = timeout; return this; - } public RouteSpecGrpcRoute build() { - return new RouteSpecGrpcRoute(action, match, retryPolicy, timeout); + } + public RouteSpecGrpcRoute build() { + final var o = new RouteSpecGrpcRoute(); + o.action = action; + o.match = match; + o.retryPolicy = retryPolicy; + o.timeout = timeout; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteAction.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteAction.java index 81182479d95..2364d5888fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteAction.java @@ -15,13 +15,9 @@ public final class RouteSpecGrpcRouteAction { * You can specify one or more targets and their relative weights with which to distribute traffic. * */ - private final List weightedTargets; - - @CustomType.Constructor - private RouteSpecGrpcRouteAction(@CustomType.Parameter("weightedTargets") List weightedTargets) { - this.weightedTargets = weightedTargets; - } + private List weightedTargets; + private RouteSpecGrpcRouteAction() {} /** * @return The targets that traffic is routed to when a request matches the route. * You can specify one or more targets and their relative weights with which to distribute traffic. @@ -38,27 +34,27 @@ public static Builder builder() { public static Builder builder(RouteSpecGrpcRouteAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List weightedTargets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecGrpcRouteAction defaults) { Objects.requireNonNull(defaults); this.weightedTargets = defaults.weightedTargets; } + @CustomType.Setter public Builder weightedTargets(List weightedTargets) { this.weightedTargets = Objects.requireNonNull(weightedTargets); return this; } public Builder weightedTargets(RouteSpecGrpcRouteActionWeightedTarget... weightedTargets) { return weightedTargets(List.of(weightedTargets)); - } public RouteSpecGrpcRouteAction build() { - return new RouteSpecGrpcRouteAction(weightedTargets); + } + public RouteSpecGrpcRouteAction build() { + final var o = new RouteSpecGrpcRouteAction(); + o.weightedTargets = weightedTargets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteActionWeightedTarget.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteActionWeightedTarget.java index 0ee021dd5e0..f2872bf9f5b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteActionWeightedTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteActionWeightedTarget.java @@ -14,21 +14,14 @@ public final class RouteSpecGrpcRouteActionWeightedTarget { * @return The virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. * */ - private final String virtualNode; + private String virtualNode; /** * @return The relative weight of the weighted target. An integer between 0 and 100. * */ - private final Integer weight; - - @CustomType.Constructor - private RouteSpecGrpcRouteActionWeightedTarget( - @CustomType.Parameter("virtualNode") String virtualNode, - @CustomType.Parameter("weight") Integer weight) { - this.virtualNode = virtualNode; - this.weight = weight; - } + private Integer weight; + private RouteSpecGrpcRouteActionWeightedTarget() {} /** * @return The virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecGrpcRouteActionWeightedTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String virtualNode; private Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecGrpcRouteActionWeightedTarget defaults) { Objects.requireNonNull(defaults); this.virtualNode = defaults.virtualNode; this.weight = defaults.weight; } + @CustomType.Setter public Builder virtualNode(String virtualNode) { this.virtualNode = Objects.requireNonNull(virtualNode); return this; } + @CustomType.Setter public Builder weight(Integer weight) { this.weight = Objects.requireNonNull(weight); return this; - } public RouteSpecGrpcRouteActionWeightedTarget build() { - return new RouteSpecGrpcRouteActionWeightedTarget(virtualNode, weight); + } + public RouteSpecGrpcRouteActionWeightedTarget build() { + final var o = new RouteSpecGrpcRouteActionWeightedTarget(); + o.virtualNode = virtualNode; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatch.java index dc1babfbec3..23e3d43a46e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatch.java @@ -17,36 +17,25 @@ public final class RouteSpecGrpcRouteMatch { * @return The data to match from the gRPC request. * */ - private final @Nullable List metadatas; + private @Nullable List metadatas; /** * @return The method name to match from the request. If you specify a name, you must also specify a `service_name`. * */ - private final @Nullable String methodName; + private @Nullable String methodName; /** * @return The value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. * This parameter must always start with /, which by itself matches all requests to the virtual router service name. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return The fully qualified domain name for the service to match from the request. * */ - private final @Nullable String serviceName; - - @CustomType.Constructor - private RouteSpecGrpcRouteMatch( - @CustomType.Parameter("metadatas") @Nullable List metadatas, - @CustomType.Parameter("methodName") @Nullable String methodName, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("serviceName") @Nullable String serviceName) { - this.metadatas = metadatas; - this.methodName = methodName; - this.prefix = prefix; - this.serviceName = serviceName; - } + private @Nullable String serviceName; + private RouteSpecGrpcRouteMatch() {} /** * @return The data to match from the gRPC request. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RouteSpecGrpcRouteMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List metadatas; private @Nullable String methodName; private @Nullable String prefix; private @Nullable String serviceName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecGrpcRouteMatch defaults) { Objects.requireNonNull(defaults); this.metadatas = defaults.metadatas; @@ -103,6 +88,7 @@ public Builder(RouteSpecGrpcRouteMatch defaults) { this.serviceName = defaults.serviceName; } + @CustomType.Setter public Builder metadatas(@Nullable List metadatas) { this.metadatas = metadatas; return this; @@ -110,19 +96,28 @@ public Builder metadatas(@Nullable List metadat public Builder metadatas(RouteSpecGrpcRouteMatchMetadata... metadatas) { return metadatas(List.of(metadatas)); } + @CustomType.Setter public Builder methodName(@Nullable String methodName) { this.methodName = methodName; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder serviceName(@Nullable String serviceName) { this.serviceName = serviceName; return this; - } public RouteSpecGrpcRouteMatch build() { - return new RouteSpecGrpcRouteMatch(metadatas, methodName, prefix, serviceName); + } + public RouteSpecGrpcRouteMatch build() { + final var o = new RouteSpecGrpcRouteMatch(); + o.metadatas = metadatas; + o.methodName = methodName; + o.prefix = prefix; + o.serviceName = serviceName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatchMetadata.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatchMetadata.java index 5b1d096f106..93eb34faf71 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatchMetadata.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatchMetadata.java @@ -17,28 +17,19 @@ public final class RouteSpecGrpcRouteMatchMetadata { * @return If `true`, the match is on the opposite of the `match` criteria. Default is `false`. * */ - private final @Nullable Boolean invert; + private @Nullable Boolean invert; /** * @return The data to match from the request. * */ - private final @Nullable RouteSpecGrpcRouteMatchMetadataMatch match; + private @Nullable RouteSpecGrpcRouteMatchMetadataMatch match; /** * @return The name of the route. Must be between 1 and 50 characters in length. * */ - private final String name; - - @CustomType.Constructor - private RouteSpecGrpcRouteMatchMetadata( - @CustomType.Parameter("invert") @Nullable Boolean invert, - @CustomType.Parameter("match") @Nullable RouteSpecGrpcRouteMatchMetadataMatch match, - @CustomType.Parameter("name") String name) { - this.invert = invert; - this.match = match; - this.name = name; - } + private String name; + private RouteSpecGrpcRouteMatchMetadata() {} /** * @return If `true`, the match is on the opposite of the `match` criteria. Default is `false`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(RouteSpecGrpcRouteMatchMetadata defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean invert; private @Nullable RouteSpecGrpcRouteMatchMetadataMatch match; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecGrpcRouteMatchMetadata defaults) { Objects.requireNonNull(defaults); this.invert = defaults.invert; @@ -85,19 +72,27 @@ public Builder(RouteSpecGrpcRouteMatchMetadata defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder invert(@Nullable Boolean invert) { this.invert = invert; return this; } + @CustomType.Setter public Builder match(@Nullable RouteSpecGrpcRouteMatchMetadataMatch match) { this.match = match; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RouteSpecGrpcRouteMatchMetadata build() { - return new RouteSpecGrpcRouteMatchMetadata(invert, match, name); + } + public RouteSpecGrpcRouteMatchMetadata build() { + final var o = new RouteSpecGrpcRouteMatchMetadata(); + o.invert = invert; + o.match = match; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatchMetadataMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatchMetadataMatch.java index dd65d6981a1..f0203270d33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatchMetadataMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatchMetadataMatch.java @@ -16,43 +16,30 @@ public final class RouteSpecGrpcRouteMatchMetadataMatch { * @return The value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. * */ - private final @Nullable String exact; + private @Nullable String exact; /** * @return The value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. * This parameter must always start with /, which by itself matches all requests to the virtual router service name. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return The object that specifies the range of numbers that the value sent by the client must be included in. * */ - private final @Nullable RouteSpecGrpcRouteMatchMetadataMatchRange range; + private @Nullable RouteSpecGrpcRouteMatchMetadataMatchRange range; /** * @return The value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. * */ - private final @Nullable String regex; + private @Nullable String regex; /** * @return The value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length. * */ - private final @Nullable String suffix; - - @CustomType.Constructor - private RouteSpecGrpcRouteMatchMetadataMatch( - @CustomType.Parameter("exact") @Nullable String exact, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("range") @Nullable RouteSpecGrpcRouteMatchMetadataMatchRange range, - @CustomType.Parameter("regex") @Nullable String regex, - @CustomType.Parameter("suffix") @Nullable String suffix) { - this.exact = exact; - this.prefix = prefix; - this.range = range; - this.regex = regex; - this.suffix = suffix; - } + private @Nullable String suffix; + private RouteSpecGrpcRouteMatchMetadataMatch() {} /** * @return The value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(RouteSpecGrpcRouteMatchMetadataMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String exact; private @Nullable String prefix; private @Nullable RouteSpecGrpcRouteMatchMetadataMatchRange range; private @Nullable String regex; private @Nullable String suffix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecGrpcRouteMatchMetadataMatch defaults) { Objects.requireNonNull(defaults); this.exact = defaults.exact; @@ -118,27 +101,39 @@ public Builder(RouteSpecGrpcRouteMatchMetadataMatch defaults) { this.suffix = defaults.suffix; } + @CustomType.Setter public Builder exact(@Nullable String exact) { this.exact = exact; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder range(@Nullable RouteSpecGrpcRouteMatchMetadataMatchRange range) { this.range = range; return this; } + @CustomType.Setter public Builder regex(@Nullable String regex) { this.regex = regex; return this; } + @CustomType.Setter public Builder suffix(@Nullable String suffix) { this.suffix = suffix; return this; - } public RouteSpecGrpcRouteMatchMetadataMatch build() { - return new RouteSpecGrpcRouteMatchMetadataMatch(exact, prefix, range, regex, suffix); + } + public RouteSpecGrpcRouteMatchMetadataMatch build() { + final var o = new RouteSpecGrpcRouteMatchMetadataMatch(); + o.exact = exact; + o.prefix = prefix; + o.range = range; + o.regex = regex; + o.suffix = suffix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatchMetadataMatchRange.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatchMetadataMatchRange.java index c0b82e82c2c..487395f924a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatchMetadataMatchRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteMatchMetadataMatchRange.java @@ -13,21 +13,14 @@ public final class RouteSpecGrpcRouteMatchMetadataMatchRange { * @return The end of the range. * */ - private final Integer end; + private Integer end; /** * @return The start of the range. * */ - private final Integer start; - - @CustomType.Constructor - private RouteSpecGrpcRouteMatchMetadataMatchRange( - @CustomType.Parameter("end") Integer end, - @CustomType.Parameter("start") Integer start) { - this.end = end; - this.start = start; - } + private Integer start; + private RouteSpecGrpcRouteMatchMetadataMatchRange() {} /** * @return The end of the range. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RouteSpecGrpcRouteMatchMetadataMatchRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer end; private Integer start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecGrpcRouteMatchMetadataMatchRange defaults) { Objects.requireNonNull(defaults); this.end = defaults.end; this.start = defaults.start; } + @CustomType.Setter public Builder end(Integer end) { this.end = Objects.requireNonNull(end); return this; } + @CustomType.Setter public Builder start(Integer start) { this.start = Objects.requireNonNull(start); return this; - } public RouteSpecGrpcRouteMatchMetadataMatchRange build() { - return new RouteSpecGrpcRouteMatchMetadataMatchRange(end, start); + } + public RouteSpecGrpcRouteMatchMetadataMatchRange build() { + final var o = new RouteSpecGrpcRouteMatchMetadataMatchRange(); + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteRetryPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteRetryPolicy.java index 2c3db60f1ef..6ee45e0aa14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteRetryPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteRetryPolicy.java @@ -18,44 +18,31 @@ public final class RouteSpecGrpcRouteRetryPolicy { * Valid values: `cancelled`, `deadline-exceeded`, `internal`, `resource-exhausted`, `unavailable`. * */ - private final @Nullable List grpcRetryEvents; + private @Nullable List grpcRetryEvents; /** * @return List of HTTP retry events. * Valid values: `client-error` (HTTP status code 409), `gateway-error` (HTTP status codes 502, 503, and 504), `server-error` (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), `stream-error` (retry on refused stream). * Valid values: `client-error` (HTTP status code 409), `gateway-error` (HTTP status codes 502, 503, and 504), `server-error` (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), `stream-error` (retry on refused stream). * */ - private final @Nullable List httpRetryEvents; + private @Nullable List httpRetryEvents; /** * @return The maximum number of retries. * */ - private final Integer maxRetries; + private Integer maxRetries; /** * @return The per-retry timeout. * */ - private final RouteSpecGrpcRouteRetryPolicyPerRetryTimeout perRetryTimeout; + private RouteSpecGrpcRouteRetryPolicyPerRetryTimeout perRetryTimeout; /** * @return List of TCP retry events. The only valid value is `connection-error`. * */ - private final @Nullable List tcpRetryEvents; - - @CustomType.Constructor - private RouteSpecGrpcRouteRetryPolicy( - @CustomType.Parameter("grpcRetryEvents") @Nullable List grpcRetryEvents, - @CustomType.Parameter("httpRetryEvents") @Nullable List httpRetryEvents, - @CustomType.Parameter("maxRetries") Integer maxRetries, - @CustomType.Parameter("perRetryTimeout") RouteSpecGrpcRouteRetryPolicyPerRetryTimeout perRetryTimeout, - @CustomType.Parameter("tcpRetryEvents") @Nullable List tcpRetryEvents) { - this.grpcRetryEvents = grpcRetryEvents; - this.httpRetryEvents = httpRetryEvents; - this.maxRetries = maxRetries; - this.perRetryTimeout = perRetryTimeout; - this.tcpRetryEvents = tcpRetryEvents; - } + private @Nullable List tcpRetryEvents; + private RouteSpecGrpcRouteRetryPolicy() {} /** * @return List of gRPC retry events. * Valid values: `cancelled`, `deadline-exceeded`, `internal`, `resource-exhausted`, `unavailable`. @@ -102,18 +89,14 @@ public static Builder builder() { public static Builder builder(RouteSpecGrpcRouteRetryPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List grpcRetryEvents; private @Nullable List httpRetryEvents; private Integer maxRetries; private RouteSpecGrpcRouteRetryPolicyPerRetryTimeout perRetryTimeout; private @Nullable List tcpRetryEvents; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecGrpcRouteRetryPolicy defaults) { Objects.requireNonNull(defaults); this.grpcRetryEvents = defaults.grpcRetryEvents; @@ -123,6 +106,7 @@ public Builder(RouteSpecGrpcRouteRetryPolicy defaults) { this.tcpRetryEvents = defaults.tcpRetryEvents; } + @CustomType.Setter public Builder grpcRetryEvents(@Nullable List grpcRetryEvents) { this.grpcRetryEvents = grpcRetryEvents; return this; @@ -130,6 +114,7 @@ public Builder grpcRetryEvents(@Nullable List grpcRetryEvents) { public Builder grpcRetryEvents(String... grpcRetryEvents) { return grpcRetryEvents(List.of(grpcRetryEvents)); } + @CustomType.Setter public Builder httpRetryEvents(@Nullable List httpRetryEvents) { this.httpRetryEvents = httpRetryEvents; return this; @@ -137,22 +122,32 @@ public Builder httpRetryEvents(@Nullable List httpRetryEvents) { public Builder httpRetryEvents(String... httpRetryEvents) { return httpRetryEvents(List.of(httpRetryEvents)); } + @CustomType.Setter public Builder maxRetries(Integer maxRetries) { this.maxRetries = Objects.requireNonNull(maxRetries); return this; } + @CustomType.Setter public Builder perRetryTimeout(RouteSpecGrpcRouteRetryPolicyPerRetryTimeout perRetryTimeout) { this.perRetryTimeout = Objects.requireNonNull(perRetryTimeout); return this; } + @CustomType.Setter public Builder tcpRetryEvents(@Nullable List tcpRetryEvents) { this.tcpRetryEvents = tcpRetryEvents; return this; } public Builder tcpRetryEvents(String... tcpRetryEvents) { return tcpRetryEvents(List.of(tcpRetryEvents)); - } public RouteSpecGrpcRouteRetryPolicy build() { - return new RouteSpecGrpcRouteRetryPolicy(grpcRetryEvents, httpRetryEvents, maxRetries, perRetryTimeout, tcpRetryEvents); + } + public RouteSpecGrpcRouteRetryPolicy build() { + final var o = new RouteSpecGrpcRouteRetryPolicy(); + o.grpcRetryEvents = grpcRetryEvents; + o.httpRetryEvents = httpRetryEvents; + o.maxRetries = maxRetries; + o.perRetryTimeout = perRetryTimeout; + o.tcpRetryEvents = tcpRetryEvents; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteRetryPolicyPerRetryTimeout.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteRetryPolicyPerRetryTimeout.java index 56d173f3fad..92db1f949f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteRetryPolicyPerRetryTimeout.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteRetryPolicyPerRetryTimeout.java @@ -14,21 +14,14 @@ public final class RouteSpecGrpcRouteRetryPolicyPerRetryTimeout { * @return Retry unit. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return Retry value. * */ - private final Integer value; - - @CustomType.Constructor - private RouteSpecGrpcRouteRetryPolicyPerRetryTimeout( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private RouteSpecGrpcRouteRetryPolicyPerRetryTimeout() {} /** * @return Retry unit. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecGrpcRouteRetryPolicyPerRetryTimeout defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecGrpcRouteRetryPolicyPerRetryTimeout defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public RouteSpecGrpcRouteRetryPolicyPerRetryTimeout build() { - return new RouteSpecGrpcRouteRetryPolicyPerRetryTimeout(unit, value); + } + public RouteSpecGrpcRouteRetryPolicyPerRetryTimeout build() { + final var o = new RouteSpecGrpcRouteRetryPolicyPerRetryTimeout(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteTimeout.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteTimeout.java index d6995695ebf..d390d0d645b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteTimeout.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteTimeout.java @@ -16,21 +16,14 @@ public final class RouteSpecGrpcRouteTimeout { * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * */ - private final @Nullable RouteSpecGrpcRouteTimeoutIdle idle; + private @Nullable RouteSpecGrpcRouteTimeoutIdle idle; /** * @return The per request timeout. * */ - private final @Nullable RouteSpecGrpcRouteTimeoutPerRequest perRequest; - - @CustomType.Constructor - private RouteSpecGrpcRouteTimeout( - @CustomType.Parameter("idle") @Nullable RouteSpecGrpcRouteTimeoutIdle idle, - @CustomType.Parameter("perRequest") @Nullable RouteSpecGrpcRouteTimeoutPerRequest perRequest) { - this.idle = idle; - this.perRequest = perRequest; - } + private @Nullable RouteSpecGrpcRouteTimeoutPerRequest perRequest; + private RouteSpecGrpcRouteTimeout() {} /** * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RouteSpecGrpcRouteTimeout defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RouteSpecGrpcRouteTimeoutIdle idle; private @Nullable RouteSpecGrpcRouteTimeoutPerRequest perRequest; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecGrpcRouteTimeout defaults) { Objects.requireNonNull(defaults); this.idle = defaults.idle; this.perRequest = defaults.perRequest; } + @CustomType.Setter public Builder idle(@Nullable RouteSpecGrpcRouteTimeoutIdle idle) { this.idle = idle; return this; } + @CustomType.Setter public Builder perRequest(@Nullable RouteSpecGrpcRouteTimeoutPerRequest perRequest) { this.perRequest = perRequest; return this; - } public RouteSpecGrpcRouteTimeout build() { - return new RouteSpecGrpcRouteTimeout(idle, perRequest); + } + public RouteSpecGrpcRouteTimeout build() { + final var o = new RouteSpecGrpcRouteTimeout(); + o.idle = idle; + o.perRequest = perRequest; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteTimeoutIdle.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteTimeoutIdle.java index bb999d80c9d..9c7ba28a8c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteTimeoutIdle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteTimeoutIdle.java @@ -14,21 +14,14 @@ public final class RouteSpecGrpcRouteTimeoutIdle { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private RouteSpecGrpcRouteTimeoutIdle( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private RouteSpecGrpcRouteTimeoutIdle() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecGrpcRouteTimeoutIdle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecGrpcRouteTimeoutIdle defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public RouteSpecGrpcRouteTimeoutIdle build() { - return new RouteSpecGrpcRouteTimeoutIdle(unit, value); + } + public RouteSpecGrpcRouteTimeoutIdle build() { + final var o = new RouteSpecGrpcRouteTimeoutIdle(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteTimeoutPerRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteTimeoutPerRequest.java index 3e84903eb87..f45aea1c26b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteTimeoutPerRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecGrpcRouteTimeoutPerRequest.java @@ -14,21 +14,14 @@ public final class RouteSpecGrpcRouteTimeoutPerRequest { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private RouteSpecGrpcRouteTimeoutPerRequest( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private RouteSpecGrpcRouteTimeoutPerRequest() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecGrpcRouteTimeoutPerRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecGrpcRouteTimeoutPerRequest defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public RouteSpecGrpcRouteTimeoutPerRequest build() { - return new RouteSpecGrpcRouteTimeoutPerRequest(unit, value); + } + public RouteSpecGrpcRouteTimeoutPerRequest build() { + final var o = new RouteSpecGrpcRouteTimeoutPerRequest(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2Route.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2Route.java index 651dcb2aedd..df22fda2e29 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2Route.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2Route.java @@ -18,35 +18,24 @@ public final class RouteSpecHttp2Route { * @return The action to take if a match is determined. * */ - private final RouteSpecHttp2RouteAction action; + private RouteSpecHttp2RouteAction action; /** * @return The criteria for determining an gRPC request match. * */ - private final RouteSpecHttp2RouteMatch match; + private RouteSpecHttp2RouteMatch match; /** * @return The retry policy. * */ - private final @Nullable RouteSpecHttp2RouteRetryPolicy retryPolicy; + private @Nullable RouteSpecHttp2RouteRetryPolicy retryPolicy; /** * @return The types of timeouts. * */ - private final @Nullable RouteSpecHttp2RouteTimeout timeout; - - @CustomType.Constructor - private RouteSpecHttp2Route( - @CustomType.Parameter("action") RouteSpecHttp2RouteAction action, - @CustomType.Parameter("match") RouteSpecHttp2RouteMatch match, - @CustomType.Parameter("retryPolicy") @Nullable RouteSpecHttp2RouteRetryPolicy retryPolicy, - @CustomType.Parameter("timeout") @Nullable RouteSpecHttp2RouteTimeout timeout) { - this.action = action; - this.match = match; - this.retryPolicy = retryPolicy; - this.timeout = timeout; - } + private @Nullable RouteSpecHttp2RouteTimeout timeout; + private RouteSpecHttp2Route() {} /** * @return The action to take if a match is determined. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RouteSpecHttp2Route defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RouteSpecHttp2RouteAction action; private RouteSpecHttp2RouteMatch match; private @Nullable RouteSpecHttp2RouteRetryPolicy retryPolicy; private @Nullable RouteSpecHttp2RouteTimeout timeout; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttp2Route defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -102,23 +87,33 @@ public Builder(RouteSpecHttp2Route defaults) { this.timeout = defaults.timeout; } + @CustomType.Setter public Builder action(RouteSpecHttp2RouteAction action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder match(RouteSpecHttp2RouteMatch match) { this.match = Objects.requireNonNull(match); return this; } + @CustomType.Setter public Builder retryPolicy(@Nullable RouteSpecHttp2RouteRetryPolicy retryPolicy) { this.retryPolicy = retryPolicy; return this; } + @CustomType.Setter public Builder timeout(@Nullable RouteSpecHttp2RouteTimeout timeout) { this.timeout = timeout; return this; - } public RouteSpecHttp2Route build() { - return new RouteSpecHttp2Route(action, match, retryPolicy, timeout); + } + public RouteSpecHttp2Route build() { + final var o = new RouteSpecHttp2Route(); + o.action = action; + o.match = match; + o.retryPolicy = retryPolicy; + o.timeout = timeout; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteAction.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteAction.java index f8fb744a27e..a8ef2e3534a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteAction.java @@ -15,13 +15,9 @@ public final class RouteSpecHttp2RouteAction { * You can specify one or more targets and their relative weights with which to distribute traffic. * */ - private final List weightedTargets; - - @CustomType.Constructor - private RouteSpecHttp2RouteAction(@CustomType.Parameter("weightedTargets") List weightedTargets) { - this.weightedTargets = weightedTargets; - } + private List weightedTargets; + private RouteSpecHttp2RouteAction() {} /** * @return The targets that traffic is routed to when a request matches the route. * You can specify one or more targets and their relative weights with which to distribute traffic. @@ -38,27 +34,27 @@ public static Builder builder() { public static Builder builder(RouteSpecHttp2RouteAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List weightedTargets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttp2RouteAction defaults) { Objects.requireNonNull(defaults); this.weightedTargets = defaults.weightedTargets; } + @CustomType.Setter public Builder weightedTargets(List weightedTargets) { this.weightedTargets = Objects.requireNonNull(weightedTargets); return this; } public Builder weightedTargets(RouteSpecHttp2RouteActionWeightedTarget... weightedTargets) { return weightedTargets(List.of(weightedTargets)); - } public RouteSpecHttp2RouteAction build() { - return new RouteSpecHttp2RouteAction(weightedTargets); + } + public RouteSpecHttp2RouteAction build() { + final var o = new RouteSpecHttp2RouteAction(); + o.weightedTargets = weightedTargets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteActionWeightedTarget.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteActionWeightedTarget.java index 6d20a379e0c..c4311283a8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteActionWeightedTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteActionWeightedTarget.java @@ -14,21 +14,14 @@ public final class RouteSpecHttp2RouteActionWeightedTarget { * @return The virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. * */ - private final String virtualNode; + private String virtualNode; /** * @return The relative weight of the weighted target. An integer between 0 and 100. * */ - private final Integer weight; - - @CustomType.Constructor - private RouteSpecHttp2RouteActionWeightedTarget( - @CustomType.Parameter("virtualNode") String virtualNode, - @CustomType.Parameter("weight") Integer weight) { - this.virtualNode = virtualNode; - this.weight = weight; - } + private Integer weight; + private RouteSpecHttp2RouteActionWeightedTarget() {} /** * @return The virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecHttp2RouteActionWeightedTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String virtualNode; private Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttp2RouteActionWeightedTarget defaults) { Objects.requireNonNull(defaults); this.virtualNode = defaults.virtualNode; this.weight = defaults.weight; } + @CustomType.Setter public Builder virtualNode(String virtualNode) { this.virtualNode = Objects.requireNonNull(virtualNode); return this; } + @CustomType.Setter public Builder weight(Integer weight) { this.weight = Objects.requireNonNull(weight); return this; - } public RouteSpecHttp2RouteActionWeightedTarget build() { - return new RouteSpecHttp2RouteActionWeightedTarget(virtualNode, weight); + } + public RouteSpecHttp2RouteActionWeightedTarget build() { + final var o = new RouteSpecHttp2RouteActionWeightedTarget(); + o.virtualNode = virtualNode; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatch.java index 6b08f3a23c5..75ab88b70c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatch.java @@ -17,36 +17,25 @@ public final class RouteSpecHttp2RouteMatch { * @return The client request headers to match on. * */ - private final @Nullable List headers; + private @Nullable List headers; /** * @return The client request header method to match on. Valid values: `GET`, `HEAD`, `POST`, `PUT`, `DELETE`, `CONNECT`, `OPTIONS`, `TRACE`, `PATCH`. * */ - private final @Nullable String method; + private @Nullable String method; /** * @return The value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. * This parameter must always start with /, which by itself matches all requests to the virtual router service name. * */ - private final String prefix; + private String prefix; /** * @return The client request header scheme to match on. Valid values: `http`, `https`. * */ - private final @Nullable String scheme; - - @CustomType.Constructor - private RouteSpecHttp2RouteMatch( - @CustomType.Parameter("headers") @Nullable List headers, - @CustomType.Parameter("method") @Nullable String method, - @CustomType.Parameter("prefix") String prefix, - @CustomType.Parameter("scheme") @Nullable String scheme) { - this.headers = headers; - this.method = method; - this.prefix = prefix; - this.scheme = scheme; - } + private @Nullable String scheme; + private RouteSpecHttp2RouteMatch() {} /** * @return The client request headers to match on. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RouteSpecHttp2RouteMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List headers; private @Nullable String method; private String prefix; private @Nullable String scheme; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttp2RouteMatch defaults) { Objects.requireNonNull(defaults); this.headers = defaults.headers; @@ -103,6 +88,7 @@ public Builder(RouteSpecHttp2RouteMatch defaults) { this.scheme = defaults.scheme; } + @CustomType.Setter public Builder headers(@Nullable List headers) { this.headers = headers; return this; @@ -110,19 +96,28 @@ public Builder headers(@Nullable List headers) { public Builder headers(RouteSpecHttp2RouteMatchHeader... headers) { return headers(List.of(headers)); } + @CustomType.Setter public Builder method(@Nullable String method) { this.method = method; return this; } + @CustomType.Setter public Builder prefix(String prefix) { this.prefix = Objects.requireNonNull(prefix); return this; } + @CustomType.Setter public Builder scheme(@Nullable String scheme) { this.scheme = scheme; return this; - } public RouteSpecHttp2RouteMatch build() { - return new RouteSpecHttp2RouteMatch(headers, method, prefix, scheme); + } + public RouteSpecHttp2RouteMatch build() { + final var o = new RouteSpecHttp2RouteMatch(); + o.headers = headers; + o.method = method; + o.prefix = prefix; + o.scheme = scheme; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatchHeader.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatchHeader.java index da77865a5da..c870e3e4e4f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatchHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatchHeader.java @@ -17,28 +17,19 @@ public final class RouteSpecHttp2RouteMatchHeader { * @return If `true`, the match is on the opposite of the `match` method and value. Default is `false`. * */ - private final @Nullable Boolean invert; + private @Nullable Boolean invert; /** * @return The method and value to match the header value sent with a request. Specify one match method. * */ - private final @Nullable RouteSpecHttp2RouteMatchHeaderMatch match; + private @Nullable RouteSpecHttp2RouteMatchHeaderMatch match; /** * @return A name for the HTTP header in the client request that will be matched on. * */ - private final String name; - - @CustomType.Constructor - private RouteSpecHttp2RouteMatchHeader( - @CustomType.Parameter("invert") @Nullable Boolean invert, - @CustomType.Parameter("match") @Nullable RouteSpecHttp2RouteMatchHeaderMatch match, - @CustomType.Parameter("name") String name) { - this.invert = invert; - this.match = match; - this.name = name; - } + private String name; + private RouteSpecHttp2RouteMatchHeader() {} /** * @return If `true`, the match is on the opposite of the `match` method and value. Default is `false`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(RouteSpecHttp2RouteMatchHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean invert; private @Nullable RouteSpecHttp2RouteMatchHeaderMatch match; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttp2RouteMatchHeader defaults) { Objects.requireNonNull(defaults); this.invert = defaults.invert; @@ -85,19 +72,27 @@ public Builder(RouteSpecHttp2RouteMatchHeader defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder invert(@Nullable Boolean invert) { this.invert = invert; return this; } + @CustomType.Setter public Builder match(@Nullable RouteSpecHttp2RouteMatchHeaderMatch match) { this.match = match; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RouteSpecHttp2RouteMatchHeader build() { - return new RouteSpecHttp2RouteMatchHeader(invert, match, name); + } + public RouteSpecHttp2RouteMatchHeader build() { + final var o = new RouteSpecHttp2RouteMatchHeader(); + o.invert = invert; + o.match = match; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatchHeaderMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatchHeaderMatch.java index 55dd9e66a0c..162f30fbe42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatchHeaderMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatchHeaderMatch.java @@ -16,43 +16,30 @@ public final class RouteSpecHttp2RouteMatchHeaderMatch { * @return The value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. * */ - private final @Nullable String exact; + private @Nullable String exact; /** * @return The value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. * This parameter must always start with /, which by itself matches all requests to the virtual router service name. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return The object that specifies the range of numbers that the value sent by the client must be included in. * */ - private final @Nullable RouteSpecHttp2RouteMatchHeaderMatchRange range; + private @Nullable RouteSpecHttp2RouteMatchHeaderMatchRange range; /** * @return The value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. * */ - private final @Nullable String regex; + private @Nullable String regex; /** * @return The value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length. * */ - private final @Nullable String suffix; - - @CustomType.Constructor - private RouteSpecHttp2RouteMatchHeaderMatch( - @CustomType.Parameter("exact") @Nullable String exact, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("range") @Nullable RouteSpecHttp2RouteMatchHeaderMatchRange range, - @CustomType.Parameter("regex") @Nullable String regex, - @CustomType.Parameter("suffix") @Nullable String suffix) { - this.exact = exact; - this.prefix = prefix; - this.range = range; - this.regex = regex; - this.suffix = suffix; - } + private @Nullable String suffix; + private RouteSpecHttp2RouteMatchHeaderMatch() {} /** * @return The value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(RouteSpecHttp2RouteMatchHeaderMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String exact; private @Nullable String prefix; private @Nullable RouteSpecHttp2RouteMatchHeaderMatchRange range; private @Nullable String regex; private @Nullable String suffix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttp2RouteMatchHeaderMatch defaults) { Objects.requireNonNull(defaults); this.exact = defaults.exact; @@ -118,27 +101,39 @@ public Builder(RouteSpecHttp2RouteMatchHeaderMatch defaults) { this.suffix = defaults.suffix; } + @CustomType.Setter public Builder exact(@Nullable String exact) { this.exact = exact; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder range(@Nullable RouteSpecHttp2RouteMatchHeaderMatchRange range) { this.range = range; return this; } + @CustomType.Setter public Builder regex(@Nullable String regex) { this.regex = regex; return this; } + @CustomType.Setter public Builder suffix(@Nullable String suffix) { this.suffix = suffix; return this; - } public RouteSpecHttp2RouteMatchHeaderMatch build() { - return new RouteSpecHttp2RouteMatchHeaderMatch(exact, prefix, range, regex, suffix); + } + public RouteSpecHttp2RouteMatchHeaderMatch build() { + final var o = new RouteSpecHttp2RouteMatchHeaderMatch(); + o.exact = exact; + o.prefix = prefix; + o.range = range; + o.regex = regex; + o.suffix = suffix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatchHeaderMatchRange.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatchHeaderMatchRange.java index 7b636356c57..9dcaa35b72a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatchHeaderMatchRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteMatchHeaderMatchRange.java @@ -13,21 +13,14 @@ public final class RouteSpecHttp2RouteMatchHeaderMatchRange { * @return The end of the range. * */ - private final Integer end; + private Integer end; /** * @return The start of the range. * */ - private final Integer start; - - @CustomType.Constructor - private RouteSpecHttp2RouteMatchHeaderMatchRange( - @CustomType.Parameter("end") Integer end, - @CustomType.Parameter("start") Integer start) { - this.end = end; - this.start = start; - } + private Integer start; + private RouteSpecHttp2RouteMatchHeaderMatchRange() {} /** * @return The end of the range. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RouteSpecHttp2RouteMatchHeaderMatchRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer end; private Integer start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttp2RouteMatchHeaderMatchRange defaults) { Objects.requireNonNull(defaults); this.end = defaults.end; this.start = defaults.start; } + @CustomType.Setter public Builder end(Integer end) { this.end = Objects.requireNonNull(end); return this; } + @CustomType.Setter public Builder start(Integer start) { this.start = Objects.requireNonNull(start); return this; - } public RouteSpecHttp2RouteMatchHeaderMatchRange build() { - return new RouteSpecHttp2RouteMatchHeaderMatchRange(end, start); + } + public RouteSpecHttp2RouteMatchHeaderMatchRange build() { + final var o = new RouteSpecHttp2RouteMatchHeaderMatchRange(); + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteRetryPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteRetryPolicy.java index 3c1ee7cf47c..06a3e7dd1b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteRetryPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteRetryPolicy.java @@ -19,35 +19,24 @@ public final class RouteSpecHttp2RouteRetryPolicy { * Valid values: `client-error` (HTTP status code 409), `gateway-error` (HTTP status codes 502, 503, and 504), `server-error` (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), `stream-error` (retry on refused stream). * */ - private final @Nullable List httpRetryEvents; + private @Nullable List httpRetryEvents; /** * @return The maximum number of retries. * */ - private final Integer maxRetries; + private Integer maxRetries; /** * @return The per-retry timeout. * */ - private final RouteSpecHttp2RouteRetryPolicyPerRetryTimeout perRetryTimeout; + private RouteSpecHttp2RouteRetryPolicyPerRetryTimeout perRetryTimeout; /** * @return List of TCP retry events. The only valid value is `connection-error`. * */ - private final @Nullable List tcpRetryEvents; - - @CustomType.Constructor - private RouteSpecHttp2RouteRetryPolicy( - @CustomType.Parameter("httpRetryEvents") @Nullable List httpRetryEvents, - @CustomType.Parameter("maxRetries") Integer maxRetries, - @CustomType.Parameter("perRetryTimeout") RouteSpecHttp2RouteRetryPolicyPerRetryTimeout perRetryTimeout, - @CustomType.Parameter("tcpRetryEvents") @Nullable List tcpRetryEvents) { - this.httpRetryEvents = httpRetryEvents; - this.maxRetries = maxRetries; - this.perRetryTimeout = perRetryTimeout; - this.tcpRetryEvents = tcpRetryEvents; - } + private @Nullable List tcpRetryEvents; + private RouteSpecHttp2RouteRetryPolicy() {} /** * @return List of HTTP retry events. * Valid values: `client-error` (HTTP status code 409), `gateway-error` (HTTP status codes 502, 503, and 504), `server-error` (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), `stream-error` (retry on refused stream). @@ -86,17 +75,13 @@ public static Builder builder() { public static Builder builder(RouteSpecHttp2RouteRetryPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List httpRetryEvents; private Integer maxRetries; private RouteSpecHttp2RouteRetryPolicyPerRetryTimeout perRetryTimeout; private @Nullable List tcpRetryEvents; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttp2RouteRetryPolicy defaults) { Objects.requireNonNull(defaults); this.httpRetryEvents = defaults.httpRetryEvents; @@ -105,6 +90,7 @@ public Builder(RouteSpecHttp2RouteRetryPolicy defaults) { this.tcpRetryEvents = defaults.tcpRetryEvents; } + @CustomType.Setter public Builder httpRetryEvents(@Nullable List httpRetryEvents) { this.httpRetryEvents = httpRetryEvents; return this; @@ -112,22 +98,31 @@ public Builder httpRetryEvents(@Nullable List httpRetryEvents) { public Builder httpRetryEvents(String... httpRetryEvents) { return httpRetryEvents(List.of(httpRetryEvents)); } + @CustomType.Setter public Builder maxRetries(Integer maxRetries) { this.maxRetries = Objects.requireNonNull(maxRetries); return this; } + @CustomType.Setter public Builder perRetryTimeout(RouteSpecHttp2RouteRetryPolicyPerRetryTimeout perRetryTimeout) { this.perRetryTimeout = Objects.requireNonNull(perRetryTimeout); return this; } + @CustomType.Setter public Builder tcpRetryEvents(@Nullable List tcpRetryEvents) { this.tcpRetryEvents = tcpRetryEvents; return this; } public Builder tcpRetryEvents(String... tcpRetryEvents) { return tcpRetryEvents(List.of(tcpRetryEvents)); - } public RouteSpecHttp2RouteRetryPolicy build() { - return new RouteSpecHttp2RouteRetryPolicy(httpRetryEvents, maxRetries, perRetryTimeout, tcpRetryEvents); + } + public RouteSpecHttp2RouteRetryPolicy build() { + final var o = new RouteSpecHttp2RouteRetryPolicy(); + o.httpRetryEvents = httpRetryEvents; + o.maxRetries = maxRetries; + o.perRetryTimeout = perRetryTimeout; + o.tcpRetryEvents = tcpRetryEvents; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteRetryPolicyPerRetryTimeout.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteRetryPolicyPerRetryTimeout.java index 0c2b3c51bdf..26071e497e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteRetryPolicyPerRetryTimeout.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteRetryPolicyPerRetryTimeout.java @@ -14,21 +14,14 @@ public final class RouteSpecHttp2RouteRetryPolicyPerRetryTimeout { * @return Retry unit. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return Retry value. * */ - private final Integer value; - - @CustomType.Constructor - private RouteSpecHttp2RouteRetryPolicyPerRetryTimeout( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private RouteSpecHttp2RouteRetryPolicyPerRetryTimeout() {} /** * @return Retry unit. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecHttp2RouteRetryPolicyPerRetryTimeout defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttp2RouteRetryPolicyPerRetryTimeout defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public RouteSpecHttp2RouteRetryPolicyPerRetryTimeout build() { - return new RouteSpecHttp2RouteRetryPolicyPerRetryTimeout(unit, value); + } + public RouteSpecHttp2RouteRetryPolicyPerRetryTimeout build() { + final var o = new RouteSpecHttp2RouteRetryPolicyPerRetryTimeout(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteTimeout.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteTimeout.java index edcb7365423..fb1f534a6a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteTimeout.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteTimeout.java @@ -16,21 +16,14 @@ public final class RouteSpecHttp2RouteTimeout { * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * */ - private final @Nullable RouteSpecHttp2RouteTimeoutIdle idle; + private @Nullable RouteSpecHttp2RouteTimeoutIdle idle; /** * @return The per request timeout. * */ - private final @Nullable RouteSpecHttp2RouteTimeoutPerRequest perRequest; - - @CustomType.Constructor - private RouteSpecHttp2RouteTimeout( - @CustomType.Parameter("idle") @Nullable RouteSpecHttp2RouteTimeoutIdle idle, - @CustomType.Parameter("perRequest") @Nullable RouteSpecHttp2RouteTimeoutPerRequest perRequest) { - this.idle = idle; - this.perRequest = perRequest; - } + private @Nullable RouteSpecHttp2RouteTimeoutPerRequest perRequest; + private RouteSpecHttp2RouteTimeout() {} /** * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RouteSpecHttp2RouteTimeout defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RouteSpecHttp2RouteTimeoutIdle idle; private @Nullable RouteSpecHttp2RouteTimeoutPerRequest perRequest; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttp2RouteTimeout defaults) { Objects.requireNonNull(defaults); this.idle = defaults.idle; this.perRequest = defaults.perRequest; } + @CustomType.Setter public Builder idle(@Nullable RouteSpecHttp2RouteTimeoutIdle idle) { this.idle = idle; return this; } + @CustomType.Setter public Builder perRequest(@Nullable RouteSpecHttp2RouteTimeoutPerRequest perRequest) { this.perRequest = perRequest; return this; - } public RouteSpecHttp2RouteTimeout build() { - return new RouteSpecHttp2RouteTimeout(idle, perRequest); + } + public RouteSpecHttp2RouteTimeout build() { + final var o = new RouteSpecHttp2RouteTimeout(); + o.idle = idle; + o.perRequest = perRequest; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteTimeoutIdle.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteTimeoutIdle.java index 63b85951595..a474c9b7105 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteTimeoutIdle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteTimeoutIdle.java @@ -14,21 +14,14 @@ public final class RouteSpecHttp2RouteTimeoutIdle { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private RouteSpecHttp2RouteTimeoutIdle( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private RouteSpecHttp2RouteTimeoutIdle() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecHttp2RouteTimeoutIdle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttp2RouteTimeoutIdle defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public RouteSpecHttp2RouteTimeoutIdle build() { - return new RouteSpecHttp2RouteTimeoutIdle(unit, value); + } + public RouteSpecHttp2RouteTimeoutIdle build() { + final var o = new RouteSpecHttp2RouteTimeoutIdle(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteTimeoutPerRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteTimeoutPerRequest.java index b1984c73b2b..7c0db10c18d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteTimeoutPerRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttp2RouteTimeoutPerRequest.java @@ -14,21 +14,14 @@ public final class RouteSpecHttp2RouteTimeoutPerRequest { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private RouteSpecHttp2RouteTimeoutPerRequest( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private RouteSpecHttp2RouteTimeoutPerRequest() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecHttp2RouteTimeoutPerRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttp2RouteTimeoutPerRequest defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public RouteSpecHttp2RouteTimeoutPerRequest build() { - return new RouteSpecHttp2RouteTimeoutPerRequest(unit, value); + } + public RouteSpecHttp2RouteTimeoutPerRequest build() { + final var o = new RouteSpecHttp2RouteTimeoutPerRequest(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRoute.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRoute.java index e224b75eb5b..7f027a83f73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRoute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRoute.java @@ -18,35 +18,24 @@ public final class RouteSpecHttpRoute { * @return The action to take if a match is determined. * */ - private final RouteSpecHttpRouteAction action; + private RouteSpecHttpRouteAction action; /** * @return The criteria for determining an HTTP request match. * */ - private final RouteSpecHttpRouteMatch match; + private RouteSpecHttpRouteMatch match; /** * @return The retry policy. * */ - private final @Nullable RouteSpecHttpRouteRetryPolicy retryPolicy; + private @Nullable RouteSpecHttpRouteRetryPolicy retryPolicy; /** * @return The types of timeouts. * */ - private final @Nullable RouteSpecHttpRouteTimeout timeout; - - @CustomType.Constructor - private RouteSpecHttpRoute( - @CustomType.Parameter("action") RouteSpecHttpRouteAction action, - @CustomType.Parameter("match") RouteSpecHttpRouteMatch match, - @CustomType.Parameter("retryPolicy") @Nullable RouteSpecHttpRouteRetryPolicy retryPolicy, - @CustomType.Parameter("timeout") @Nullable RouteSpecHttpRouteTimeout timeout) { - this.action = action; - this.match = match; - this.retryPolicy = retryPolicy; - this.timeout = timeout; - } + private @Nullable RouteSpecHttpRouteTimeout timeout; + private RouteSpecHttpRoute() {} /** * @return The action to take if a match is determined. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RouteSpecHttpRoute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RouteSpecHttpRouteAction action; private RouteSpecHttpRouteMatch match; private @Nullable RouteSpecHttpRouteRetryPolicy retryPolicy; private @Nullable RouteSpecHttpRouteTimeout timeout; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttpRoute defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -102,23 +87,33 @@ public Builder(RouteSpecHttpRoute defaults) { this.timeout = defaults.timeout; } + @CustomType.Setter public Builder action(RouteSpecHttpRouteAction action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder match(RouteSpecHttpRouteMatch match) { this.match = Objects.requireNonNull(match); return this; } + @CustomType.Setter public Builder retryPolicy(@Nullable RouteSpecHttpRouteRetryPolicy retryPolicy) { this.retryPolicy = retryPolicy; return this; } + @CustomType.Setter public Builder timeout(@Nullable RouteSpecHttpRouteTimeout timeout) { this.timeout = timeout; return this; - } public RouteSpecHttpRoute build() { - return new RouteSpecHttpRoute(action, match, retryPolicy, timeout); + } + public RouteSpecHttpRoute build() { + final var o = new RouteSpecHttpRoute(); + o.action = action; + o.match = match; + o.retryPolicy = retryPolicy; + o.timeout = timeout; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteAction.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteAction.java index 3925fe1c032..a674b61df83 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteAction.java @@ -15,13 +15,9 @@ public final class RouteSpecHttpRouteAction { * You can specify one or more targets and their relative weights with which to distribute traffic. * */ - private final List weightedTargets; - - @CustomType.Constructor - private RouteSpecHttpRouteAction(@CustomType.Parameter("weightedTargets") List weightedTargets) { - this.weightedTargets = weightedTargets; - } + private List weightedTargets; + private RouteSpecHttpRouteAction() {} /** * @return The targets that traffic is routed to when a request matches the route. * You can specify one or more targets and their relative weights with which to distribute traffic. @@ -38,27 +34,27 @@ public static Builder builder() { public static Builder builder(RouteSpecHttpRouteAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List weightedTargets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttpRouteAction defaults) { Objects.requireNonNull(defaults); this.weightedTargets = defaults.weightedTargets; } + @CustomType.Setter public Builder weightedTargets(List weightedTargets) { this.weightedTargets = Objects.requireNonNull(weightedTargets); return this; } public Builder weightedTargets(RouteSpecHttpRouteActionWeightedTarget... weightedTargets) { return weightedTargets(List.of(weightedTargets)); - } public RouteSpecHttpRouteAction build() { - return new RouteSpecHttpRouteAction(weightedTargets); + } + public RouteSpecHttpRouteAction build() { + final var o = new RouteSpecHttpRouteAction(); + o.weightedTargets = weightedTargets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteActionWeightedTarget.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteActionWeightedTarget.java index 6466a559899..3525e183e60 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteActionWeightedTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteActionWeightedTarget.java @@ -14,21 +14,14 @@ public final class RouteSpecHttpRouteActionWeightedTarget { * @return The virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. * */ - private final String virtualNode; + private String virtualNode; /** * @return The relative weight of the weighted target. An integer between 0 and 100. * */ - private final Integer weight; - - @CustomType.Constructor - private RouteSpecHttpRouteActionWeightedTarget( - @CustomType.Parameter("virtualNode") String virtualNode, - @CustomType.Parameter("weight") Integer weight) { - this.virtualNode = virtualNode; - this.weight = weight; - } + private Integer weight; + private RouteSpecHttpRouteActionWeightedTarget() {} /** * @return The virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecHttpRouteActionWeightedTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String virtualNode; private Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttpRouteActionWeightedTarget defaults) { Objects.requireNonNull(defaults); this.virtualNode = defaults.virtualNode; this.weight = defaults.weight; } + @CustomType.Setter public Builder virtualNode(String virtualNode) { this.virtualNode = Objects.requireNonNull(virtualNode); return this; } + @CustomType.Setter public Builder weight(Integer weight) { this.weight = Objects.requireNonNull(weight); return this; - } public RouteSpecHttpRouteActionWeightedTarget build() { - return new RouteSpecHttpRouteActionWeightedTarget(virtualNode, weight); + } + public RouteSpecHttpRouteActionWeightedTarget build() { + final var o = new RouteSpecHttpRouteActionWeightedTarget(); + o.virtualNode = virtualNode; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatch.java index a88c3325e60..61168aae42e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatch.java @@ -17,36 +17,25 @@ public final class RouteSpecHttpRouteMatch { * @return The client request headers to match on. * */ - private final @Nullable List headers; + private @Nullable List headers; /** * @return The client request header method to match on. Valid values: `GET`, `HEAD`, `POST`, `PUT`, `DELETE`, `CONNECT`, `OPTIONS`, `TRACE`, `PATCH`. * */ - private final @Nullable String method; + private @Nullable String method; /** * @return The value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. * This parameter must always start with /, which by itself matches all requests to the virtual router service name. * */ - private final String prefix; + private String prefix; /** * @return The client request header scheme to match on. Valid values: `http`, `https`. * */ - private final @Nullable String scheme; - - @CustomType.Constructor - private RouteSpecHttpRouteMatch( - @CustomType.Parameter("headers") @Nullable List headers, - @CustomType.Parameter("method") @Nullable String method, - @CustomType.Parameter("prefix") String prefix, - @CustomType.Parameter("scheme") @Nullable String scheme) { - this.headers = headers; - this.method = method; - this.prefix = prefix; - this.scheme = scheme; - } + private @Nullable String scheme; + private RouteSpecHttpRouteMatch() {} /** * @return The client request headers to match on. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RouteSpecHttpRouteMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List headers; private @Nullable String method; private String prefix; private @Nullable String scheme; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttpRouteMatch defaults) { Objects.requireNonNull(defaults); this.headers = defaults.headers; @@ -103,6 +88,7 @@ public Builder(RouteSpecHttpRouteMatch defaults) { this.scheme = defaults.scheme; } + @CustomType.Setter public Builder headers(@Nullable List headers) { this.headers = headers; return this; @@ -110,19 +96,28 @@ public Builder headers(@Nullable List headers) { public Builder headers(RouteSpecHttpRouteMatchHeader... headers) { return headers(List.of(headers)); } + @CustomType.Setter public Builder method(@Nullable String method) { this.method = method; return this; } + @CustomType.Setter public Builder prefix(String prefix) { this.prefix = Objects.requireNonNull(prefix); return this; } + @CustomType.Setter public Builder scheme(@Nullable String scheme) { this.scheme = scheme; return this; - } public RouteSpecHttpRouteMatch build() { - return new RouteSpecHttpRouteMatch(headers, method, prefix, scheme); + } + public RouteSpecHttpRouteMatch build() { + final var o = new RouteSpecHttpRouteMatch(); + o.headers = headers; + o.method = method; + o.prefix = prefix; + o.scheme = scheme; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatchHeader.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatchHeader.java index 96b3762daf5..b3f7d75c89d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatchHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatchHeader.java @@ -17,28 +17,19 @@ public final class RouteSpecHttpRouteMatchHeader { * @return If `true`, the match is on the opposite of the `match` method and value. Default is `false`. * */ - private final @Nullable Boolean invert; + private @Nullable Boolean invert; /** * @return The method and value to match the header value sent with a request. Specify one match method. * */ - private final @Nullable RouteSpecHttpRouteMatchHeaderMatch match; + private @Nullable RouteSpecHttpRouteMatchHeaderMatch match; /** * @return A name for the HTTP header in the client request that will be matched on. * */ - private final String name; - - @CustomType.Constructor - private RouteSpecHttpRouteMatchHeader( - @CustomType.Parameter("invert") @Nullable Boolean invert, - @CustomType.Parameter("match") @Nullable RouteSpecHttpRouteMatchHeaderMatch match, - @CustomType.Parameter("name") String name) { - this.invert = invert; - this.match = match; - this.name = name; - } + private String name; + private RouteSpecHttpRouteMatchHeader() {} /** * @return If `true`, the match is on the opposite of the `match` method and value. Default is `false`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(RouteSpecHttpRouteMatchHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean invert; private @Nullable RouteSpecHttpRouteMatchHeaderMatch match; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttpRouteMatchHeader defaults) { Objects.requireNonNull(defaults); this.invert = defaults.invert; @@ -85,19 +72,27 @@ public Builder(RouteSpecHttpRouteMatchHeader defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder invert(@Nullable Boolean invert) { this.invert = invert; return this; } + @CustomType.Setter public Builder match(@Nullable RouteSpecHttpRouteMatchHeaderMatch match) { this.match = match; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RouteSpecHttpRouteMatchHeader build() { - return new RouteSpecHttpRouteMatchHeader(invert, match, name); + } + public RouteSpecHttpRouteMatchHeader build() { + final var o = new RouteSpecHttpRouteMatchHeader(); + o.invert = invert; + o.match = match; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatchHeaderMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatchHeaderMatch.java index f5381f27043..104954819d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatchHeaderMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatchHeaderMatch.java @@ -16,43 +16,30 @@ public final class RouteSpecHttpRouteMatchHeaderMatch { * @return The value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. * */ - private final @Nullable String exact; + private @Nullable String exact; /** * @return The value sent by the client must begin with the specified characters. Must be between 1 and 255 characters in length. * This parameter must always start with /, which by itself matches all requests to the virtual router service name. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return The object that specifies the range of numbers that the value sent by the client must be included in. * */ - private final @Nullable RouteSpecHttpRouteMatchHeaderMatchRange range; + private @Nullable RouteSpecHttpRouteMatchHeaderMatchRange range; /** * @return The value sent by the client must include the specified characters. Must be between 1 and 255 characters in length. * */ - private final @Nullable String regex; + private @Nullable String regex; /** * @return The value sent by the client must end with the specified characters. Must be between 1 and 255 characters in length. * */ - private final @Nullable String suffix; - - @CustomType.Constructor - private RouteSpecHttpRouteMatchHeaderMatch( - @CustomType.Parameter("exact") @Nullable String exact, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("range") @Nullable RouteSpecHttpRouteMatchHeaderMatchRange range, - @CustomType.Parameter("regex") @Nullable String regex, - @CustomType.Parameter("suffix") @Nullable String suffix) { - this.exact = exact; - this.prefix = prefix; - this.range = range; - this.regex = regex; - this.suffix = suffix; - } + private @Nullable String suffix; + private RouteSpecHttpRouteMatchHeaderMatch() {} /** * @return The value sent by the client must match the specified value exactly. Must be between 1 and 255 characters in length. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(RouteSpecHttpRouteMatchHeaderMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String exact; private @Nullable String prefix; private @Nullable RouteSpecHttpRouteMatchHeaderMatchRange range; private @Nullable String regex; private @Nullable String suffix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttpRouteMatchHeaderMatch defaults) { Objects.requireNonNull(defaults); this.exact = defaults.exact; @@ -118,27 +101,39 @@ public Builder(RouteSpecHttpRouteMatchHeaderMatch defaults) { this.suffix = defaults.suffix; } + @CustomType.Setter public Builder exact(@Nullable String exact) { this.exact = exact; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder range(@Nullable RouteSpecHttpRouteMatchHeaderMatchRange range) { this.range = range; return this; } + @CustomType.Setter public Builder regex(@Nullable String regex) { this.regex = regex; return this; } + @CustomType.Setter public Builder suffix(@Nullable String suffix) { this.suffix = suffix; return this; - } public RouteSpecHttpRouteMatchHeaderMatch build() { - return new RouteSpecHttpRouteMatchHeaderMatch(exact, prefix, range, regex, suffix); + } + public RouteSpecHttpRouteMatchHeaderMatch build() { + final var o = new RouteSpecHttpRouteMatchHeaderMatch(); + o.exact = exact; + o.prefix = prefix; + o.range = range; + o.regex = regex; + o.suffix = suffix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatchHeaderMatchRange.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatchHeaderMatchRange.java index a01aa2852d9..61f4365d842 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatchHeaderMatchRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteMatchHeaderMatchRange.java @@ -13,21 +13,14 @@ public final class RouteSpecHttpRouteMatchHeaderMatchRange { * @return The end of the range. * */ - private final Integer end; + private Integer end; /** * @return The start of the range. * */ - private final Integer start; - - @CustomType.Constructor - private RouteSpecHttpRouteMatchHeaderMatchRange( - @CustomType.Parameter("end") Integer end, - @CustomType.Parameter("start") Integer start) { - this.end = end; - this.start = start; - } + private Integer start; + private RouteSpecHttpRouteMatchHeaderMatchRange() {} /** * @return The end of the range. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RouteSpecHttpRouteMatchHeaderMatchRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer end; private Integer start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttpRouteMatchHeaderMatchRange defaults) { Objects.requireNonNull(defaults); this.end = defaults.end; this.start = defaults.start; } + @CustomType.Setter public Builder end(Integer end) { this.end = Objects.requireNonNull(end); return this; } + @CustomType.Setter public Builder start(Integer start) { this.start = Objects.requireNonNull(start); return this; - } public RouteSpecHttpRouteMatchHeaderMatchRange build() { - return new RouteSpecHttpRouteMatchHeaderMatchRange(end, start); + } + public RouteSpecHttpRouteMatchHeaderMatchRange build() { + final var o = new RouteSpecHttpRouteMatchHeaderMatchRange(); + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteRetryPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteRetryPolicy.java index 261a55eb687..7e39fafdfbc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteRetryPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteRetryPolicy.java @@ -19,35 +19,24 @@ public final class RouteSpecHttpRouteRetryPolicy { * Valid values: `client-error` (HTTP status code 409), `gateway-error` (HTTP status codes 502, 503, and 504), `server-error` (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), `stream-error` (retry on refused stream). * */ - private final @Nullable List httpRetryEvents; + private @Nullable List httpRetryEvents; /** * @return The maximum number of retries. * */ - private final Integer maxRetries; + private Integer maxRetries; /** * @return The per-retry timeout. * */ - private final RouteSpecHttpRouteRetryPolicyPerRetryTimeout perRetryTimeout; + private RouteSpecHttpRouteRetryPolicyPerRetryTimeout perRetryTimeout; /** * @return List of TCP retry events. The only valid value is `connection-error`. * */ - private final @Nullable List tcpRetryEvents; - - @CustomType.Constructor - private RouteSpecHttpRouteRetryPolicy( - @CustomType.Parameter("httpRetryEvents") @Nullable List httpRetryEvents, - @CustomType.Parameter("maxRetries") Integer maxRetries, - @CustomType.Parameter("perRetryTimeout") RouteSpecHttpRouteRetryPolicyPerRetryTimeout perRetryTimeout, - @CustomType.Parameter("tcpRetryEvents") @Nullable List tcpRetryEvents) { - this.httpRetryEvents = httpRetryEvents; - this.maxRetries = maxRetries; - this.perRetryTimeout = perRetryTimeout; - this.tcpRetryEvents = tcpRetryEvents; - } + private @Nullable List tcpRetryEvents; + private RouteSpecHttpRouteRetryPolicy() {} /** * @return List of HTTP retry events. * Valid values: `client-error` (HTTP status code 409), `gateway-error` (HTTP status codes 502, 503, and 504), `server-error` (HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511), `stream-error` (retry on refused stream). @@ -86,17 +75,13 @@ public static Builder builder() { public static Builder builder(RouteSpecHttpRouteRetryPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List httpRetryEvents; private Integer maxRetries; private RouteSpecHttpRouteRetryPolicyPerRetryTimeout perRetryTimeout; private @Nullable List tcpRetryEvents; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttpRouteRetryPolicy defaults) { Objects.requireNonNull(defaults); this.httpRetryEvents = defaults.httpRetryEvents; @@ -105,6 +90,7 @@ public Builder(RouteSpecHttpRouteRetryPolicy defaults) { this.tcpRetryEvents = defaults.tcpRetryEvents; } + @CustomType.Setter public Builder httpRetryEvents(@Nullable List httpRetryEvents) { this.httpRetryEvents = httpRetryEvents; return this; @@ -112,22 +98,31 @@ public Builder httpRetryEvents(@Nullable List httpRetryEvents) { public Builder httpRetryEvents(String... httpRetryEvents) { return httpRetryEvents(List.of(httpRetryEvents)); } + @CustomType.Setter public Builder maxRetries(Integer maxRetries) { this.maxRetries = Objects.requireNonNull(maxRetries); return this; } + @CustomType.Setter public Builder perRetryTimeout(RouteSpecHttpRouteRetryPolicyPerRetryTimeout perRetryTimeout) { this.perRetryTimeout = Objects.requireNonNull(perRetryTimeout); return this; } + @CustomType.Setter public Builder tcpRetryEvents(@Nullable List tcpRetryEvents) { this.tcpRetryEvents = tcpRetryEvents; return this; } public Builder tcpRetryEvents(String... tcpRetryEvents) { return tcpRetryEvents(List.of(tcpRetryEvents)); - } public RouteSpecHttpRouteRetryPolicy build() { - return new RouteSpecHttpRouteRetryPolicy(httpRetryEvents, maxRetries, perRetryTimeout, tcpRetryEvents); + } + public RouteSpecHttpRouteRetryPolicy build() { + final var o = new RouteSpecHttpRouteRetryPolicy(); + o.httpRetryEvents = httpRetryEvents; + o.maxRetries = maxRetries; + o.perRetryTimeout = perRetryTimeout; + o.tcpRetryEvents = tcpRetryEvents; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteRetryPolicyPerRetryTimeout.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteRetryPolicyPerRetryTimeout.java index e857bf2efca..aca3a90dfb0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteRetryPolicyPerRetryTimeout.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteRetryPolicyPerRetryTimeout.java @@ -14,21 +14,14 @@ public final class RouteSpecHttpRouteRetryPolicyPerRetryTimeout { * @return Retry unit. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return Retry value. * */ - private final Integer value; - - @CustomType.Constructor - private RouteSpecHttpRouteRetryPolicyPerRetryTimeout( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private RouteSpecHttpRouteRetryPolicyPerRetryTimeout() {} /** * @return Retry unit. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecHttpRouteRetryPolicyPerRetryTimeout defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttpRouteRetryPolicyPerRetryTimeout defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public RouteSpecHttpRouteRetryPolicyPerRetryTimeout build() { - return new RouteSpecHttpRouteRetryPolicyPerRetryTimeout(unit, value); + } + public RouteSpecHttpRouteRetryPolicyPerRetryTimeout build() { + final var o = new RouteSpecHttpRouteRetryPolicyPerRetryTimeout(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteTimeout.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteTimeout.java index 20e489da2ee..8d9d6933cd0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteTimeout.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteTimeout.java @@ -16,21 +16,14 @@ public final class RouteSpecHttpRouteTimeout { * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * */ - private final @Nullable RouteSpecHttpRouteTimeoutIdle idle; + private @Nullable RouteSpecHttpRouteTimeoutIdle idle; /** * @return The per request timeout. * */ - private final @Nullable RouteSpecHttpRouteTimeoutPerRequest perRequest; - - @CustomType.Constructor - private RouteSpecHttpRouteTimeout( - @CustomType.Parameter("idle") @Nullable RouteSpecHttpRouteTimeoutIdle idle, - @CustomType.Parameter("perRequest") @Nullable RouteSpecHttpRouteTimeoutPerRequest perRequest) { - this.idle = idle; - this.perRequest = perRequest; - } + private @Nullable RouteSpecHttpRouteTimeoutPerRequest perRequest; + private RouteSpecHttpRouteTimeout() {} /** * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RouteSpecHttpRouteTimeout defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RouteSpecHttpRouteTimeoutIdle idle; private @Nullable RouteSpecHttpRouteTimeoutPerRequest perRequest; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttpRouteTimeout defaults) { Objects.requireNonNull(defaults); this.idle = defaults.idle; this.perRequest = defaults.perRequest; } + @CustomType.Setter public Builder idle(@Nullable RouteSpecHttpRouteTimeoutIdle idle) { this.idle = idle; return this; } + @CustomType.Setter public Builder perRequest(@Nullable RouteSpecHttpRouteTimeoutPerRequest perRequest) { this.perRequest = perRequest; return this; - } public RouteSpecHttpRouteTimeout build() { - return new RouteSpecHttpRouteTimeout(idle, perRequest); + } + public RouteSpecHttpRouteTimeout build() { + final var o = new RouteSpecHttpRouteTimeout(); + o.idle = idle; + o.perRequest = perRequest; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteTimeoutIdle.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteTimeoutIdle.java index f12fe259303..540953e78d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteTimeoutIdle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteTimeoutIdle.java @@ -14,21 +14,14 @@ public final class RouteSpecHttpRouteTimeoutIdle { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private RouteSpecHttpRouteTimeoutIdle( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private RouteSpecHttpRouteTimeoutIdle() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecHttpRouteTimeoutIdle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttpRouteTimeoutIdle defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public RouteSpecHttpRouteTimeoutIdle build() { - return new RouteSpecHttpRouteTimeoutIdle(unit, value); + } + public RouteSpecHttpRouteTimeoutIdle build() { + final var o = new RouteSpecHttpRouteTimeoutIdle(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteTimeoutPerRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteTimeoutPerRequest.java index d9c5fe3b714..c24683e813f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteTimeoutPerRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecHttpRouteTimeoutPerRequest.java @@ -14,21 +14,14 @@ public final class RouteSpecHttpRouteTimeoutPerRequest { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private RouteSpecHttpRouteTimeoutPerRequest( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private RouteSpecHttpRouteTimeoutPerRequest() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecHttpRouteTimeoutPerRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecHttpRouteTimeoutPerRequest defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public RouteSpecHttpRouteTimeoutPerRequest build() { - return new RouteSpecHttpRouteTimeoutPerRequest(unit, value); + } + public RouteSpecHttpRouteTimeoutPerRequest build() { + final var o = new RouteSpecHttpRouteTimeoutPerRequest(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRoute.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRoute.java index 7dcd4f1952c..677d1ddc440 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRoute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRoute.java @@ -16,21 +16,14 @@ public final class RouteSpecTcpRoute { * @return The action to take if a match is determined. * */ - private final RouteSpecTcpRouteAction action; + private RouteSpecTcpRouteAction action; /** * @return The types of timeouts. * */ - private final @Nullable RouteSpecTcpRouteTimeout timeout; - - @CustomType.Constructor - private RouteSpecTcpRoute( - @CustomType.Parameter("action") RouteSpecTcpRouteAction action, - @CustomType.Parameter("timeout") @Nullable RouteSpecTcpRouteTimeout timeout) { - this.action = action; - this.timeout = timeout; - } + private @Nullable RouteSpecTcpRouteTimeout timeout; + private RouteSpecTcpRoute() {} /** * @return The action to take if a match is determined. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RouteSpecTcpRoute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RouteSpecTcpRouteAction action; private @Nullable RouteSpecTcpRouteTimeout timeout; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecTcpRoute defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; this.timeout = defaults.timeout; } + @CustomType.Setter public Builder action(RouteSpecTcpRouteAction action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder timeout(@Nullable RouteSpecTcpRouteTimeout timeout) { this.timeout = timeout; return this; - } public RouteSpecTcpRoute build() { - return new RouteSpecTcpRoute(action, timeout); + } + public RouteSpecTcpRoute build() { + final var o = new RouteSpecTcpRoute(); + o.action = action; + o.timeout = timeout; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteAction.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteAction.java index b0ab8f4b315..727ba3fd8e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteAction.java @@ -15,13 +15,9 @@ public final class RouteSpecTcpRouteAction { * You can specify one or more targets and their relative weights with which to distribute traffic. * */ - private final List weightedTargets; - - @CustomType.Constructor - private RouteSpecTcpRouteAction(@CustomType.Parameter("weightedTargets") List weightedTargets) { - this.weightedTargets = weightedTargets; - } + private List weightedTargets; + private RouteSpecTcpRouteAction() {} /** * @return The targets that traffic is routed to when a request matches the route. * You can specify one or more targets and their relative weights with which to distribute traffic. @@ -38,27 +34,27 @@ public static Builder builder() { public static Builder builder(RouteSpecTcpRouteAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List weightedTargets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecTcpRouteAction defaults) { Objects.requireNonNull(defaults); this.weightedTargets = defaults.weightedTargets; } + @CustomType.Setter public Builder weightedTargets(List weightedTargets) { this.weightedTargets = Objects.requireNonNull(weightedTargets); return this; } public Builder weightedTargets(RouteSpecTcpRouteActionWeightedTarget... weightedTargets) { return weightedTargets(List.of(weightedTargets)); - } public RouteSpecTcpRouteAction build() { - return new RouteSpecTcpRouteAction(weightedTargets); + } + public RouteSpecTcpRouteAction build() { + final var o = new RouteSpecTcpRouteAction(); + o.weightedTargets = weightedTargets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteActionWeightedTarget.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteActionWeightedTarget.java index e506e40be20..bef449e6553 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteActionWeightedTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteActionWeightedTarget.java @@ -14,21 +14,14 @@ public final class RouteSpecTcpRouteActionWeightedTarget { * @return The virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. * */ - private final String virtualNode; + private String virtualNode; /** * @return The relative weight of the weighted target. An integer between 0 and 100. * */ - private final Integer weight; - - @CustomType.Constructor - private RouteSpecTcpRouteActionWeightedTarget( - @CustomType.Parameter("virtualNode") String virtualNode, - @CustomType.Parameter("weight") Integer weight) { - this.virtualNode = virtualNode; - this.weight = weight; - } + private Integer weight; + private RouteSpecTcpRouteActionWeightedTarget() {} /** * @return The virtual node to associate with the weighted target. Must be between 1 and 255 characters in length. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecTcpRouteActionWeightedTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String virtualNode; private Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecTcpRouteActionWeightedTarget defaults) { Objects.requireNonNull(defaults); this.virtualNode = defaults.virtualNode; this.weight = defaults.weight; } + @CustomType.Setter public Builder virtualNode(String virtualNode) { this.virtualNode = Objects.requireNonNull(virtualNode); return this; } + @CustomType.Setter public Builder weight(Integer weight) { this.weight = Objects.requireNonNull(weight); return this; - } public RouteSpecTcpRouteActionWeightedTarget build() { - return new RouteSpecTcpRouteActionWeightedTarget(virtualNode, weight); + } + public RouteSpecTcpRouteActionWeightedTarget build() { + final var o = new RouteSpecTcpRouteActionWeightedTarget(); + o.virtualNode = virtualNode; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteTimeout.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteTimeout.java index d6dff064f1e..091594e1ce4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteTimeout.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteTimeout.java @@ -15,13 +15,9 @@ public final class RouteSpecTcpRouteTimeout { * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * */ - private final @Nullable RouteSpecTcpRouteTimeoutIdle idle; - - @CustomType.Constructor - private RouteSpecTcpRouteTimeout(@CustomType.Parameter("idle") @Nullable RouteSpecTcpRouteTimeoutIdle idle) { - this.idle = idle; - } + private @Nullable RouteSpecTcpRouteTimeoutIdle idle; + private RouteSpecTcpRouteTimeout() {} /** * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(RouteSpecTcpRouteTimeout defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RouteSpecTcpRouteTimeoutIdle idle; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecTcpRouteTimeout defaults) { Objects.requireNonNull(defaults); this.idle = defaults.idle; } + @CustomType.Setter public Builder idle(@Nullable RouteSpecTcpRouteTimeoutIdle idle) { this.idle = idle; return this; - } public RouteSpecTcpRouteTimeout build() { - return new RouteSpecTcpRouteTimeout(idle); + } + public RouteSpecTcpRouteTimeout build() { + final var o = new RouteSpecTcpRouteTimeout(); + o.idle = idle; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteTimeoutIdle.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteTimeoutIdle.java index 9931252a59a..fc2f23420f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteTimeoutIdle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/RouteSpecTcpRouteTimeoutIdle.java @@ -14,21 +14,14 @@ public final class RouteSpecTcpRouteTimeoutIdle { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private RouteSpecTcpRouteTimeoutIdle( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private RouteSpecTcpRouteTimeoutIdle() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RouteSpecTcpRouteTimeoutIdle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteSpecTcpRouteTimeoutIdle defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public RouteSpecTcpRouteTimeoutIdle build() { - return new RouteSpecTcpRouteTimeoutIdle(unit, value); + } + public RouteSpecTcpRouteTimeoutIdle build() { + final var o = new RouteSpecTcpRouteTimeoutIdle(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpec.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpec.java index 4c7d95decb0..e7442f4f7cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpec.java @@ -17,28 +17,19 @@ public final class VirtualGatewaySpec { * @return The defaults for backends. * */ - private final @Nullable VirtualGatewaySpecBackendDefaults backendDefaults; + private @Nullable VirtualGatewaySpecBackendDefaults backendDefaults; /** * @return The listeners that the mesh endpoint is expected to receive inbound traffic from. You can specify one listener. * */ - private final VirtualGatewaySpecListener listener; + private VirtualGatewaySpecListener listener; /** * @return The inbound and outbound access logging information for the virtual gateway. * */ - private final @Nullable VirtualGatewaySpecLogging logging; - - @CustomType.Constructor - private VirtualGatewaySpec( - @CustomType.Parameter("backendDefaults") @Nullable VirtualGatewaySpecBackendDefaults backendDefaults, - @CustomType.Parameter("listener") VirtualGatewaySpecListener listener, - @CustomType.Parameter("logging") @Nullable VirtualGatewaySpecLogging logging) { - this.backendDefaults = backendDefaults; - this.listener = listener; - this.logging = logging; - } + private @Nullable VirtualGatewaySpecLogging logging; + private VirtualGatewaySpec() {} /** * @return The defaults for backends. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecBackendDefaults backendDefaults; private VirtualGatewaySpecListener listener; private @Nullable VirtualGatewaySpecLogging logging; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpec defaults) { Objects.requireNonNull(defaults); this.backendDefaults = defaults.backendDefaults; @@ -85,19 +72,27 @@ public Builder(VirtualGatewaySpec defaults) { this.logging = defaults.logging; } + @CustomType.Setter public Builder backendDefaults(@Nullable VirtualGatewaySpecBackendDefaults backendDefaults) { this.backendDefaults = backendDefaults; return this; } + @CustomType.Setter public Builder listener(VirtualGatewaySpecListener listener) { this.listener = Objects.requireNonNull(listener); return this; } + @CustomType.Setter public Builder logging(@Nullable VirtualGatewaySpecLogging logging) { this.logging = logging; return this; - } public VirtualGatewaySpec build() { - return new VirtualGatewaySpec(backendDefaults, listener, logging); + } + public VirtualGatewaySpec build() { + final var o = new VirtualGatewaySpec(); + o.backendDefaults = backendDefaults; + o.listener = listener; + o.logging = logging; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaults.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaults.java index 8b444d45b4e..dad7b486f9b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaults.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaults.java @@ -15,13 +15,9 @@ public final class VirtualGatewaySpecBackendDefaults { * @return The default client policy for virtual gateway backends. * */ - private final @Nullable VirtualGatewaySpecBackendDefaultsClientPolicy clientPolicy; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaults(@CustomType.Parameter("clientPolicy") @Nullable VirtualGatewaySpecBackendDefaultsClientPolicy clientPolicy) { - this.clientPolicy = clientPolicy; - } + private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicy clientPolicy; + private VirtualGatewaySpecBackendDefaults() {} /** * @return The default client policy for virtual gateway backends. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaults defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicy clientPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaults defaults) { Objects.requireNonNull(defaults); this.clientPolicy = defaults.clientPolicy; } + @CustomType.Setter public Builder clientPolicy(@Nullable VirtualGatewaySpecBackendDefaultsClientPolicy clientPolicy) { this.clientPolicy = clientPolicy; return this; - } public VirtualGatewaySpecBackendDefaults build() { - return new VirtualGatewaySpecBackendDefaults(clientPolicy); + } + public VirtualGatewaySpecBackendDefaults build() { + final var o = new VirtualGatewaySpecBackendDefaults(); + o.clientPolicy = clientPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicy.java index c9dd9e8fa84..c28e1d4ae64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicy.java @@ -15,13 +15,9 @@ public final class VirtualGatewaySpecBackendDefaultsClientPolicy { * @return The Transport Layer Security (TLS) client policy. * */ - private final @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTls tls; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaultsClientPolicy(@CustomType.Parameter("tls") @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTls tls) { - this.tls = tls; - } + private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTls tls; + private VirtualGatewaySpecBackendDefaultsClientPolicy() {} /** * @return The Transport Layer Security (TLS) client policy. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaultsClientPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTls tls; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaultsClientPolicy defaults) { Objects.requireNonNull(defaults); this.tls = defaults.tls; } + @CustomType.Setter public Builder tls(@Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTls tls) { this.tls = tls; return this; - } public VirtualGatewaySpecBackendDefaultsClientPolicy build() { - return new VirtualGatewaySpecBackendDefaultsClientPolicy(tls); + } + public VirtualGatewaySpecBackendDefaultsClientPolicy build() { + final var o = new VirtualGatewaySpecBackendDefaultsClientPolicy(); + o.tls = tls; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTls.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTls.java index d94526060e3..f58f3e7b9fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTls.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTls.java @@ -19,35 +19,24 @@ public final class VirtualGatewaySpecBackendDefaultsClientPolicyTls { * @return The listener's TLS certificate. * */ - private final @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate certificate; + private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate certificate; /** * @return Whether the policy is enforced. Default is `true`. * */ - private final @Nullable Boolean enforce; + private @Nullable Boolean enforce; /** * @return One or more ports that the policy is enforced for. * */ - private final @Nullable List ports; + private @Nullable List ports; /** * @return The listener's Transport Layer Security (TLS) validation context. * */ - private final VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation validation; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaultsClientPolicyTls( - @CustomType.Parameter("certificate") @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate certificate, - @CustomType.Parameter("enforce") @Nullable Boolean enforce, - @CustomType.Parameter("ports") @Nullable List ports, - @CustomType.Parameter("validation") VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation validation) { - this.certificate = certificate; - this.enforce = enforce; - this.ports = ports; - this.validation = validation; - } + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation validation; + private VirtualGatewaySpecBackendDefaultsClientPolicyTls() {} /** * @return The listener's TLS certificate. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaultsClientPolicyTls defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate certificate; private @Nullable Boolean enforce; private @Nullable List ports; private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation validation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTls defaults) { Objects.requireNonNull(defaults); this.certificate = defaults.certificate; @@ -103,14 +88,17 @@ public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTls defaults) { this.validation = defaults.validation; } + @CustomType.Setter public Builder certificate(@Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate certificate) { this.certificate = certificate; return this; } + @CustomType.Setter public Builder enforce(@Nullable Boolean enforce) { this.enforce = enforce; return this; } + @CustomType.Setter public Builder ports(@Nullable List ports) { this.ports = ports; return this; @@ -118,11 +106,18 @@ public Builder ports(@Nullable List ports) { public Builder ports(Integer... ports) { return ports(List.of(ports)); } + @CustomType.Setter public Builder validation(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation validation) { this.validation = Objects.requireNonNull(validation); return this; - } public VirtualGatewaySpecBackendDefaultsClientPolicyTls build() { - return new VirtualGatewaySpecBackendDefaultsClientPolicyTls(certificate, enforce, ports, validation); + } + public VirtualGatewaySpecBackendDefaultsClientPolicyTls build() { + final var o = new VirtualGatewaySpecBackendDefaultsClientPolicyTls(); + o.certificate = certificate; + o.enforce = enforce; + o.ports = ports; + o.validation = validation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate.java index a1e121ec560..a09cc2ebe46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate.java @@ -16,21 +16,14 @@ public final class VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate { * @return A local file certificate. * */ - private final @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile file; + private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile file; /** * @return A [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate. * */ - private final @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds sds; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate( - @CustomType.Parameter("file") @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile file, - @CustomType.Parameter("sds") @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds sds) { - this.file = file; - this.sds = sds; - } + private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds sds; + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate() {} /** * @return A local file certificate. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile file; private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds sds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate defaults) { Objects.requireNonNull(defaults); this.file = defaults.file; this.sds = defaults.sds; } + @CustomType.Setter public Builder file(@Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile file) { this.file = file; return this; } + @CustomType.Setter public Builder sds(@Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds sds) { this.sds = sds; return this; - } public VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate build() { - return new VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate(file, sds); + } + public VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate build() { + final var o = new VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificate(); + o.file = file; + o.sds = sds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile.java index 2e580050aaa..4a2488aada3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile.java @@ -13,21 +13,14 @@ public final class VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFi * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String certificateChain; + private String certificateChain; /** * @return The private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String privateKey; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile( - @CustomType.Parameter("certificateChain") String certificateChain, - @CustomType.Parameter("privateKey") String privateKey) { - this.certificateChain = certificateChain; - this.privateKey = privateKey; - } + private String privateKey; + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile() {} /** * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateChain; private String privateKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile defaults) { Objects.requireNonNull(defaults); this.certificateChain = defaults.certificateChain; this.privateKey = defaults.privateKey; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; } + @CustomType.Setter public Builder privateKey(String privateKey) { this.privateKey = Objects.requireNonNull(privateKey); return this; - } public VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile build() { - return new VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile(certificateChain, privateKey); + } + public VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile build() { + final var o = new VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateFile(); + o.certificateChain = certificateChain; + o.privateKey = privateKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds.java index c82e1081373..62d746bcb01 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds.java @@ -13,13 +13,9 @@ public final class VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSd * @return The name of the secret for a virtual gateway's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * */ - private final String secretName; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds(@CustomType.Parameter("secretName") String secretName) { - this.secretName = secretName; - } + private String secretName; + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds() {} /** * @return The name of the secret for a virtual gateway's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String secretName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds defaults) { Objects.requireNonNull(defaults); this.secretName = defaults.secretName; } + @CustomType.Setter public Builder secretName(String secretName) { this.secretName = Objects.requireNonNull(secretName); return this; - } public VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds build() { - return new VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds(secretName); + } + public VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds build() { + final var o = new VirtualGatewaySpecBackendDefaultsClientPolicyTlsCertificateSds(); + o.secretName = secretName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation.java index 2dc79371494..2b4576bd45b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation.java @@ -16,21 +16,14 @@ public final class VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation { * @return The SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context. * */ - private final @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames; + private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames; /** * @return The TLS validation context trust. * */ - private final VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust trust; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation( - @CustomType.Parameter("subjectAlternativeNames") @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames, - @CustomType.Parameter("trust") VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust trust) { - this.subjectAlternativeNames = subjectAlternativeNames; - this.trust = trust; - } + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust trust; + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation() {} /** * @return The SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames; private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust trust; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation defaults) { Objects.requireNonNull(defaults); this.subjectAlternativeNames = defaults.subjectAlternativeNames; this.trust = defaults.trust; } + @CustomType.Setter public Builder subjectAlternativeNames(@Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames) { this.subjectAlternativeNames = subjectAlternativeNames; return this; } + @CustomType.Setter public Builder trust(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust trust) { this.trust = Objects.requireNonNull(trust); return this; - } public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation build() { - return new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation(subjectAlternativeNames, trust); + } + public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation build() { + final var o = new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidation(); + o.subjectAlternativeNames = subjectAlternativeNames; + o.trust = trust; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames.java index e33585bef23..9e7c1b9578e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames.java @@ -13,13 +13,9 @@ public final class VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSub * @return The criteria for determining a SAN's match. * */ - private final VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch match; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames(@CustomType.Parameter("match") VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch match) { - this.match = match; - } + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch match; + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames() {} /** * @return The criteria for determining a SAN's match. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch match; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames defaults) { Objects.requireNonNull(defaults); this.match = defaults.match; } + @CustomType.Setter public Builder match(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch match) { this.match = Objects.requireNonNull(match); return this; - } public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames build() { - return new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames(match); + } + public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames build() { + final var o = new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames(); + o.match = match; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch.java index a481531c384..e2e59bf3ffb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch.java @@ -14,13 +14,9 @@ public final class VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSub * @return The values sent must match the specified values exactly. * */ - private final List exacts; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch(@CustomType.Parameter("exacts") List exacts) { - this.exacts = exacts; - } + private List exacts; + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch() {} /** * @return The values sent must match the specified values exactly. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List exacts; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch defaults) { Objects.requireNonNull(defaults); this.exacts = defaults.exacts; } + @CustomType.Setter public Builder exacts(List exacts) { this.exacts = Objects.requireNonNull(exacts); return this; } public Builder exacts(String... exacts) { return exacts(List.of(exacts)); - } public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch build() { - return new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch(exacts); + } + public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch build() { + final var o = new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch(); + o.exacts = exacts; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust.java index 82cbd1dac28..fcf6bebb8cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust.java @@ -17,28 +17,19 @@ public final class VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTru * @return The TLS validation context trust for an AWS Certificate Manager (ACM) certificate. * */ - private final @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm acm; + private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm acm; /** * @return The TLS validation context trust for a local file certificate. * */ - private final @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile file; + private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile file; /** * @return The TLS validation context trust for a [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate. * */ - private final @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds sds; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust( - @CustomType.Parameter("acm") @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm acm, - @CustomType.Parameter("file") @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile file, - @CustomType.Parameter("sds") @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds sds) { - this.acm = acm; - this.file = file; - this.sds = sds; - } + private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds sds; + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust() {} /** * @return The TLS validation context trust for an AWS Certificate Manager (ACM) certificate. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm acm; private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile file; private @Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds sds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust defaults) { Objects.requireNonNull(defaults); this.acm = defaults.acm; @@ -85,19 +72,27 @@ public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust d this.sds = defaults.sds; } + @CustomType.Setter public Builder acm(@Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm acm) { this.acm = acm; return this; } + @CustomType.Setter public Builder file(@Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile file) { this.file = file; return this; } + @CustomType.Setter public Builder sds(@Nullable VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds sds) { this.sds = sds; return this; - } public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust build() { - return new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust(acm, file, sds); + } + public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust build() { + final var o = new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrust(); + o.acm = acm; + o.file = file; + o.sds = sds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm.java index c27649dcbdb..d49b8bbfe86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm.java @@ -14,13 +14,9 @@ public final class VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTru * @return One or more ACM Amazon Resource Name (ARN)s. * */ - private final List certificateAuthorityArns; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm(@CustomType.Parameter("certificateAuthorityArns") List certificateAuthorityArns) { - this.certificateAuthorityArns = certificateAuthorityArns; - } + private List certificateAuthorityArns; + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm() {} /** * @return One or more ACM Amazon Resource Name (ARN)s. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List certificateAuthorityArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm defaults) { Objects.requireNonNull(defaults); this.certificateAuthorityArns = defaults.certificateAuthorityArns; } + @CustomType.Setter public Builder certificateAuthorityArns(List certificateAuthorityArns) { this.certificateAuthorityArns = Objects.requireNonNull(certificateAuthorityArns); return this; } public Builder certificateAuthorityArns(String... certificateAuthorityArns) { return certificateAuthorityArns(List.of(certificateAuthorityArns)); - } public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm build() { - return new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm(certificateAuthorityArns); + } + public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm build() { + final var o = new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustAcm(); + o.certificateAuthorityArns = certificateAuthorityArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile.java index 223b92e0124..e5c7c5dabdb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile.java @@ -13,13 +13,9 @@ public final class VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTru * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String certificateChain; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile(@CustomType.Parameter("certificateChain") String certificateChain) { - this.certificateChain = certificateChain; - } + private String certificateChain; + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile() {} /** * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateChain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile defaults) { Objects.requireNonNull(defaults); this.certificateChain = defaults.certificateChain; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; - } public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile build() { - return new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile(certificateChain); + } + public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile build() { + final var o = new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustFile(); + o.certificateChain = certificateChain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds.java index 18b0d78d564..4f08a47ec91 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds.java @@ -13,13 +13,9 @@ public final class VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTru * @return The name of the secret for a virtual gateway's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * */ - private final String secretName; - - @CustomType.Constructor - private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds(@CustomType.Parameter("secretName") String secretName) { - this.secretName = secretName; - } + private String secretName; + private VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds() {} /** * @return The name of the secret for a virtual gateway's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String secretName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds defaults) { Objects.requireNonNull(defaults); this.secretName = defaults.secretName; } + @CustomType.Setter public Builder secretName(String secretName) { this.secretName = Objects.requireNonNull(secretName); return this; - } public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds build() { - return new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds(secretName); + } + public VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds build() { + final var o = new VirtualGatewaySpecBackendDefaultsClientPolicyTlsValidationTrustSds(); + o.secretName = secretName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListener.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListener.java index 3c1fb651080..5610c528044 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListener.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListener.java @@ -18,35 +18,24 @@ public final class VirtualGatewaySpecListener { * @return The connection pool information for the listener. * */ - private final @Nullable VirtualGatewaySpecListenerConnectionPool connectionPool; + private @Nullable VirtualGatewaySpecListenerConnectionPool connectionPool; /** * @return The health check information for the listener. * */ - private final @Nullable VirtualGatewaySpecListenerHealthCheck healthCheck; + private @Nullable VirtualGatewaySpecListenerHealthCheck healthCheck; /** * @return The port mapping information for the listener. * */ - private final VirtualGatewaySpecListenerPortMapping portMapping; + private VirtualGatewaySpecListenerPortMapping portMapping; /** * @return The Transport Layer Security (TLS) properties for the listener * */ - private final @Nullable VirtualGatewaySpecListenerTls tls; - - @CustomType.Constructor - private VirtualGatewaySpecListener( - @CustomType.Parameter("connectionPool") @Nullable VirtualGatewaySpecListenerConnectionPool connectionPool, - @CustomType.Parameter("healthCheck") @Nullable VirtualGatewaySpecListenerHealthCheck healthCheck, - @CustomType.Parameter("portMapping") VirtualGatewaySpecListenerPortMapping portMapping, - @CustomType.Parameter("tls") @Nullable VirtualGatewaySpecListenerTls tls) { - this.connectionPool = connectionPool; - this.healthCheck = healthCheck; - this.portMapping = portMapping; - this.tls = tls; - } + private @Nullable VirtualGatewaySpecListenerTls tls; + private VirtualGatewaySpecListener() {} /** * @return The connection pool information for the listener. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListener defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecListenerConnectionPool connectionPool; private @Nullable VirtualGatewaySpecListenerHealthCheck healthCheck; private VirtualGatewaySpecListenerPortMapping portMapping; private @Nullable VirtualGatewaySpecListenerTls tls; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListener defaults) { Objects.requireNonNull(defaults); this.connectionPool = defaults.connectionPool; @@ -102,23 +87,33 @@ public Builder(VirtualGatewaySpecListener defaults) { this.tls = defaults.tls; } + @CustomType.Setter public Builder connectionPool(@Nullable VirtualGatewaySpecListenerConnectionPool connectionPool) { this.connectionPool = connectionPool; return this; } + @CustomType.Setter public Builder healthCheck(@Nullable VirtualGatewaySpecListenerHealthCheck healthCheck) { this.healthCheck = healthCheck; return this; } + @CustomType.Setter public Builder portMapping(VirtualGatewaySpecListenerPortMapping portMapping) { this.portMapping = Objects.requireNonNull(portMapping); return this; } + @CustomType.Setter public Builder tls(@Nullable VirtualGatewaySpecListenerTls tls) { this.tls = tls; return this; - } public VirtualGatewaySpecListener build() { - return new VirtualGatewaySpecListener(connectionPool, healthCheck, portMapping, tls); + } + public VirtualGatewaySpecListener build() { + final var o = new VirtualGatewaySpecListener(); + o.connectionPool = connectionPool; + o.healthCheck = healthCheck; + o.portMapping = portMapping; + o.tls = tls; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPool.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPool.java index 9274e907153..ae291e54cbc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPool.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPool.java @@ -17,28 +17,19 @@ public final class VirtualGatewaySpecListenerConnectionPool { * @return Connection pool information for gRPC listeners. * */ - private final @Nullable VirtualGatewaySpecListenerConnectionPoolGrpc grpc; + private @Nullable VirtualGatewaySpecListenerConnectionPoolGrpc grpc; /** * @return Connection pool information for HTTP listeners. * */ - private final @Nullable VirtualGatewaySpecListenerConnectionPoolHttp http; + private @Nullable VirtualGatewaySpecListenerConnectionPoolHttp http; /** * @return Connection pool information for HTTP2 listeners. * */ - private final @Nullable VirtualGatewaySpecListenerConnectionPoolHttp2 http2; - - @CustomType.Constructor - private VirtualGatewaySpecListenerConnectionPool( - @CustomType.Parameter("grpc") @Nullable VirtualGatewaySpecListenerConnectionPoolGrpc grpc, - @CustomType.Parameter("http") @Nullable VirtualGatewaySpecListenerConnectionPoolHttp http, - @CustomType.Parameter("http2") @Nullable VirtualGatewaySpecListenerConnectionPoolHttp2 http2) { - this.grpc = grpc; - this.http = http; - this.http2 = http2; - } + private @Nullable VirtualGatewaySpecListenerConnectionPoolHttp2 http2; + private VirtualGatewaySpecListenerConnectionPool() {} /** * @return Connection pool information for gRPC listeners. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerConnectionPool defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecListenerConnectionPoolGrpc grpc; private @Nullable VirtualGatewaySpecListenerConnectionPoolHttp http; private @Nullable VirtualGatewaySpecListenerConnectionPoolHttp2 http2; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerConnectionPool defaults) { Objects.requireNonNull(defaults); this.grpc = defaults.grpc; @@ -85,19 +72,27 @@ public Builder(VirtualGatewaySpecListenerConnectionPool defaults) { this.http2 = defaults.http2; } + @CustomType.Setter public Builder grpc(@Nullable VirtualGatewaySpecListenerConnectionPoolGrpc grpc) { this.grpc = grpc; return this; } + @CustomType.Setter public Builder http(@Nullable VirtualGatewaySpecListenerConnectionPoolHttp http) { this.http = http; return this; } + @CustomType.Setter public Builder http2(@Nullable VirtualGatewaySpecListenerConnectionPoolHttp2 http2) { this.http2 = http2; return this; - } public VirtualGatewaySpecListenerConnectionPool build() { - return new VirtualGatewaySpecListenerConnectionPool(grpc, http, http2); + } + public VirtualGatewaySpecListenerConnectionPool build() { + final var o = new VirtualGatewaySpecListenerConnectionPool(); + o.grpc = grpc; + o.http = http; + o.http2 = http2; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPoolGrpc.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPoolGrpc.java index 616cbecb7ed..315e3d0af8b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPoolGrpc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPoolGrpc.java @@ -13,13 +13,9 @@ public final class VirtualGatewaySpecListenerConnectionPoolGrpc { * @return Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of `1`. * */ - private final Integer maxRequests; - - @CustomType.Constructor - private VirtualGatewaySpecListenerConnectionPoolGrpc(@CustomType.Parameter("maxRequests") Integer maxRequests) { - this.maxRequests = maxRequests; - } + private Integer maxRequests; + private VirtualGatewaySpecListenerConnectionPoolGrpc() {} /** * @return Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of `1`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerConnectionPoolGrpc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxRequests; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerConnectionPoolGrpc defaults) { Objects.requireNonNull(defaults); this.maxRequests = defaults.maxRequests; } + @CustomType.Setter public Builder maxRequests(Integer maxRequests) { this.maxRequests = Objects.requireNonNull(maxRequests); return this; - } public VirtualGatewaySpecListenerConnectionPoolGrpc build() { - return new VirtualGatewaySpecListenerConnectionPoolGrpc(maxRequests); + } + public VirtualGatewaySpecListenerConnectionPoolGrpc build() { + final var o = new VirtualGatewaySpecListenerConnectionPoolGrpc(); + o.maxRequests = maxRequests; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPoolHttp.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPoolHttp.java index ae585a609e6..8b9965cf76d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPoolHttp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPoolHttp.java @@ -15,21 +15,14 @@ public final class VirtualGatewaySpecListenerConnectionPoolHttp { * @return Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of `1`. * */ - private final Integer maxConnections; + private Integer maxConnections; /** * @return Number of overflowing requests after `max_connections` Envoy will queue to upstream cluster. Minimum value of `1`. * */ - private final @Nullable Integer maxPendingRequests; - - @CustomType.Constructor - private VirtualGatewaySpecListenerConnectionPoolHttp( - @CustomType.Parameter("maxConnections") Integer maxConnections, - @CustomType.Parameter("maxPendingRequests") @Nullable Integer maxPendingRequests) { - this.maxConnections = maxConnections; - this.maxPendingRequests = maxPendingRequests; - } + private @Nullable Integer maxPendingRequests; + private VirtualGatewaySpecListenerConnectionPoolHttp() {} /** * @return Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of `1`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerConnectionPoolHttp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxConnections; private @Nullable Integer maxPendingRequests; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerConnectionPoolHttp defaults) { Objects.requireNonNull(defaults); this.maxConnections = defaults.maxConnections; this.maxPendingRequests = defaults.maxPendingRequests; } + @CustomType.Setter public Builder maxConnections(Integer maxConnections) { this.maxConnections = Objects.requireNonNull(maxConnections); return this; } + @CustomType.Setter public Builder maxPendingRequests(@Nullable Integer maxPendingRequests) { this.maxPendingRequests = maxPendingRequests; return this; - } public VirtualGatewaySpecListenerConnectionPoolHttp build() { - return new VirtualGatewaySpecListenerConnectionPoolHttp(maxConnections, maxPendingRequests); + } + public VirtualGatewaySpecListenerConnectionPoolHttp build() { + final var o = new VirtualGatewaySpecListenerConnectionPoolHttp(); + o.maxConnections = maxConnections; + o.maxPendingRequests = maxPendingRequests; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPoolHttp2.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPoolHttp2.java index 762f0243c16..0a005535449 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPoolHttp2.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerConnectionPoolHttp2.java @@ -13,13 +13,9 @@ public final class VirtualGatewaySpecListenerConnectionPoolHttp2 { * @return Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of `1`. * */ - private final Integer maxRequests; - - @CustomType.Constructor - private VirtualGatewaySpecListenerConnectionPoolHttp2(@CustomType.Parameter("maxRequests") Integer maxRequests) { - this.maxRequests = maxRequests; - } + private Integer maxRequests; + private VirtualGatewaySpecListenerConnectionPoolHttp2() {} /** * @return Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of `1`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerConnectionPoolHttp2 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxRequests; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerConnectionPoolHttp2 defaults) { Objects.requireNonNull(defaults); this.maxRequests = defaults.maxRequests; } + @CustomType.Setter public Builder maxRequests(Integer maxRequests) { this.maxRequests = Objects.requireNonNull(maxRequests); return this; - } public VirtualGatewaySpecListenerConnectionPoolHttp2 build() { - return new VirtualGatewaySpecListenerConnectionPoolHttp2(maxRequests); + } + public VirtualGatewaySpecListenerConnectionPoolHttp2 build() { + final var o = new VirtualGatewaySpecListenerConnectionPoolHttp2(); + o.maxRequests = maxRequests; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerHealthCheck.java index 1a90ca5ef3c..e4da59197d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerHealthCheck.java @@ -16,56 +16,39 @@ public final class VirtualGatewaySpecListenerHealthCheck { * @return The number of consecutive successful health checks that must occur before declaring listener healthy. * */ - private final Integer healthyThreshold; + private Integer healthyThreshold; /** * @return The time period in milliseconds between each health check execution. * */ - private final Integer intervalMillis; + private Integer intervalMillis; /** * @return The destination path for the health check request. This is only required if the specified protocol is `http` or `http2`. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return The destination port for the health check request. This port must match the port defined in the `port_mapping` for the listener. * */ - private final @Nullable Integer port; + private @Nullable Integer port; /** * @return The protocol for the health check request. Valid values are `http`, `http2`, and `grpc`. * */ - private final String protocol; + private String protocol; /** * @return The amount of time to wait when receiving a response from the health check, in milliseconds. * */ - private final Integer timeoutMillis; + private Integer timeoutMillis; /** * @return The number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy. * */ - private final Integer unhealthyThreshold; - - @CustomType.Constructor - private VirtualGatewaySpecListenerHealthCheck( - @CustomType.Parameter("healthyThreshold") Integer healthyThreshold, - @CustomType.Parameter("intervalMillis") Integer intervalMillis, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable Integer port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("timeoutMillis") Integer timeoutMillis, - @CustomType.Parameter("unhealthyThreshold") Integer unhealthyThreshold) { - this.healthyThreshold = healthyThreshold; - this.intervalMillis = intervalMillis; - this.path = path; - this.port = port; - this.protocol = protocol; - this.timeoutMillis = timeoutMillis; - this.unhealthyThreshold = unhealthyThreshold; - } + private Integer unhealthyThreshold; + private VirtualGatewaySpecListenerHealthCheck() {} /** * @return The number of consecutive successful health checks that must occur before declaring listener healthy. * @@ -123,7 +106,7 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer healthyThreshold; private Integer intervalMillis; @@ -132,11 +115,7 @@ public static final class Builder { private String protocol; private Integer timeoutMillis; private Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerHealthCheck defaults) { Objects.requireNonNull(defaults); this.healthyThreshold = defaults.healthyThreshold; @@ -148,35 +127,51 @@ public Builder(VirtualGatewaySpecListenerHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder healthyThreshold(Integer healthyThreshold) { this.healthyThreshold = Objects.requireNonNull(healthyThreshold); return this; } + @CustomType.Setter public Builder intervalMillis(Integer intervalMillis) { this.intervalMillis = Objects.requireNonNull(intervalMillis); return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder timeoutMillis(Integer timeoutMillis) { this.timeoutMillis = Objects.requireNonNull(timeoutMillis); return this; } + @CustomType.Setter public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.unhealthyThreshold = Objects.requireNonNull(unhealthyThreshold); return this; - } public VirtualGatewaySpecListenerHealthCheck build() { - return new VirtualGatewaySpecListenerHealthCheck(healthyThreshold, intervalMillis, path, port, protocol, timeoutMillis, unhealthyThreshold); + } + public VirtualGatewaySpecListenerHealthCheck build() { + final var o = new VirtualGatewaySpecListenerHealthCheck(); + o.healthyThreshold = healthyThreshold; + o.intervalMillis = intervalMillis; + o.path = path; + o.port = port; + o.protocol = protocol; + o.timeoutMillis = timeoutMillis; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerPortMapping.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerPortMapping.java index ea853141eb4..5af00b5007f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerPortMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerPortMapping.java @@ -14,21 +14,14 @@ public final class VirtualGatewaySpecListenerPortMapping { * @return The port used for the port mapping. * */ - private final Integer port; + private Integer port; /** * @return The protocol used for the port mapping. Valid values are `http`, `http2`, `tcp` and `grpc`. * */ - private final String protocol; - - @CustomType.Constructor - private VirtualGatewaySpecListenerPortMapping( - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("protocol") String protocol) { - this.port = port; - this.protocol = protocol; - } + private String protocol; + private VirtualGatewaySpecListenerPortMapping() {} /** * @return The port used for the port mapping. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerPortMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer port; private String protocol; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerPortMapping defaults) { Objects.requireNonNull(defaults); this.port = defaults.port; this.protocol = defaults.protocol; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; - } public VirtualGatewaySpecListenerPortMapping build() { - return new VirtualGatewaySpecListenerPortMapping(port, protocol); + } + public VirtualGatewaySpecListenerPortMapping build() { + final var o = new VirtualGatewaySpecListenerPortMapping(); + o.port = port; + o.protocol = protocol; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTls.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTls.java index f1f839c0baf..f890a79f478 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTls.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTls.java @@ -17,28 +17,19 @@ public final class VirtualGatewaySpecListenerTls { * @return The listener's TLS certificate. * */ - private final VirtualGatewaySpecListenerTlsCertificate certificate; + private VirtualGatewaySpecListenerTlsCertificate certificate; /** * @return The listener's TLS mode. Valid values: `DISABLED`, `PERMISSIVE`, `STRICT`. * */ - private final String mode; + private String mode; /** * @return The listener's Transport Layer Security (TLS) validation context. * */ - private final @Nullable VirtualGatewaySpecListenerTlsValidation validation; - - @CustomType.Constructor - private VirtualGatewaySpecListenerTls( - @CustomType.Parameter("certificate") VirtualGatewaySpecListenerTlsCertificate certificate, - @CustomType.Parameter("mode") String mode, - @CustomType.Parameter("validation") @Nullable VirtualGatewaySpecListenerTlsValidation validation) { - this.certificate = certificate; - this.mode = mode; - this.validation = validation; - } + private @Nullable VirtualGatewaySpecListenerTlsValidation validation; + private VirtualGatewaySpecListenerTls() {} /** * @return The listener's TLS certificate. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerTls defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private VirtualGatewaySpecListenerTlsCertificate certificate; private String mode; private @Nullable VirtualGatewaySpecListenerTlsValidation validation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerTls defaults) { Objects.requireNonNull(defaults); this.certificate = defaults.certificate; @@ -85,19 +72,27 @@ public Builder(VirtualGatewaySpecListenerTls defaults) { this.validation = defaults.validation; } + @CustomType.Setter public Builder certificate(VirtualGatewaySpecListenerTlsCertificate certificate) { this.certificate = Objects.requireNonNull(certificate); return this; } + @CustomType.Setter public Builder mode(String mode) { this.mode = Objects.requireNonNull(mode); return this; } + @CustomType.Setter public Builder validation(@Nullable VirtualGatewaySpecListenerTlsValidation validation) { this.validation = validation; return this; - } public VirtualGatewaySpecListenerTls build() { - return new VirtualGatewaySpecListenerTls(certificate, mode, validation); + } + public VirtualGatewaySpecListenerTls build() { + final var o = new VirtualGatewaySpecListenerTls(); + o.certificate = certificate; + o.mode = mode; + o.validation = validation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificate.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificate.java index 3879df4bb6e..d23c5b0b44b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificate.java @@ -17,28 +17,19 @@ public final class VirtualGatewaySpecListenerTlsCertificate { * @return An AWS Certificate Manager (ACM) certificate. * */ - private final @Nullable VirtualGatewaySpecListenerTlsCertificateAcm acm; + private @Nullable VirtualGatewaySpecListenerTlsCertificateAcm acm; /** * @return A local file certificate. * */ - private final @Nullable VirtualGatewaySpecListenerTlsCertificateFile file; + private @Nullable VirtualGatewaySpecListenerTlsCertificateFile file; /** * @return A [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate. * */ - private final @Nullable VirtualGatewaySpecListenerTlsCertificateSds sds; - - @CustomType.Constructor - private VirtualGatewaySpecListenerTlsCertificate( - @CustomType.Parameter("acm") @Nullable VirtualGatewaySpecListenerTlsCertificateAcm acm, - @CustomType.Parameter("file") @Nullable VirtualGatewaySpecListenerTlsCertificateFile file, - @CustomType.Parameter("sds") @Nullable VirtualGatewaySpecListenerTlsCertificateSds sds) { - this.acm = acm; - this.file = file; - this.sds = sds; - } + private @Nullable VirtualGatewaySpecListenerTlsCertificateSds sds; + private VirtualGatewaySpecListenerTlsCertificate() {} /** * @return An AWS Certificate Manager (ACM) certificate. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerTlsCertificate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecListenerTlsCertificateAcm acm; private @Nullable VirtualGatewaySpecListenerTlsCertificateFile file; private @Nullable VirtualGatewaySpecListenerTlsCertificateSds sds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerTlsCertificate defaults) { Objects.requireNonNull(defaults); this.acm = defaults.acm; @@ -85,19 +72,27 @@ public Builder(VirtualGatewaySpecListenerTlsCertificate defaults) { this.sds = defaults.sds; } + @CustomType.Setter public Builder acm(@Nullable VirtualGatewaySpecListenerTlsCertificateAcm acm) { this.acm = acm; return this; } + @CustomType.Setter public Builder file(@Nullable VirtualGatewaySpecListenerTlsCertificateFile file) { this.file = file; return this; } + @CustomType.Setter public Builder sds(@Nullable VirtualGatewaySpecListenerTlsCertificateSds sds) { this.sds = sds; return this; - } public VirtualGatewaySpecListenerTlsCertificate build() { - return new VirtualGatewaySpecListenerTlsCertificate(acm, file, sds); + } + public VirtualGatewaySpecListenerTlsCertificate build() { + final var o = new VirtualGatewaySpecListenerTlsCertificate(); + o.acm = acm; + o.file = file; + o.sds = sds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificateAcm.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificateAcm.java index 1b9756e1c4c..e5770535f95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificateAcm.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificateAcm.java @@ -13,13 +13,9 @@ public final class VirtualGatewaySpecListenerTlsCertificateAcm { * @return The Amazon Resource Name (ARN) for the certificate. * */ - private final String certificateArn; - - @CustomType.Constructor - private VirtualGatewaySpecListenerTlsCertificateAcm(@CustomType.Parameter("certificateArn") String certificateArn) { - this.certificateArn = certificateArn; - } + private String certificateArn; + private VirtualGatewaySpecListenerTlsCertificateAcm() {} /** * @return The Amazon Resource Name (ARN) for the certificate. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerTlsCertificateAcm defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerTlsCertificateAcm defaults) { Objects.requireNonNull(defaults); this.certificateArn = defaults.certificateArn; } + @CustomType.Setter public Builder certificateArn(String certificateArn) { this.certificateArn = Objects.requireNonNull(certificateArn); return this; - } public VirtualGatewaySpecListenerTlsCertificateAcm build() { - return new VirtualGatewaySpecListenerTlsCertificateAcm(certificateArn); + } + public VirtualGatewaySpecListenerTlsCertificateAcm build() { + final var o = new VirtualGatewaySpecListenerTlsCertificateAcm(); + o.certificateArn = certificateArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificateFile.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificateFile.java index 4b9b694d6ce..7b6f67f6995 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificateFile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificateFile.java @@ -13,21 +13,14 @@ public final class VirtualGatewaySpecListenerTlsCertificateFile { * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String certificateChain; + private String certificateChain; /** * @return The private key for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String privateKey; - - @CustomType.Constructor - private VirtualGatewaySpecListenerTlsCertificateFile( - @CustomType.Parameter("certificateChain") String certificateChain, - @CustomType.Parameter("privateKey") String privateKey) { - this.certificateChain = certificateChain; - this.privateKey = privateKey; - } + private String privateKey; + private VirtualGatewaySpecListenerTlsCertificateFile() {} /** * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerTlsCertificateFile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateChain; private String privateKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerTlsCertificateFile defaults) { Objects.requireNonNull(defaults); this.certificateChain = defaults.certificateChain; this.privateKey = defaults.privateKey; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; } + @CustomType.Setter public Builder privateKey(String privateKey) { this.privateKey = Objects.requireNonNull(privateKey); return this; - } public VirtualGatewaySpecListenerTlsCertificateFile build() { - return new VirtualGatewaySpecListenerTlsCertificateFile(certificateChain, privateKey); + } + public VirtualGatewaySpecListenerTlsCertificateFile build() { + final var o = new VirtualGatewaySpecListenerTlsCertificateFile(); + o.certificateChain = certificateChain; + o.privateKey = privateKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificateSds.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificateSds.java index 911ceafc776..d8d25ab051d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificateSds.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsCertificateSds.java @@ -13,13 +13,9 @@ public final class VirtualGatewaySpecListenerTlsCertificateSds { * @return The name of the secret for a virtual gateway's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * */ - private final String secretName; - - @CustomType.Constructor - private VirtualGatewaySpecListenerTlsCertificateSds(@CustomType.Parameter("secretName") String secretName) { - this.secretName = secretName; - } + private String secretName; + private VirtualGatewaySpecListenerTlsCertificateSds() {} /** * @return The name of the secret for a virtual gateway's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerTlsCertificateSds defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String secretName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerTlsCertificateSds defaults) { Objects.requireNonNull(defaults); this.secretName = defaults.secretName; } + @CustomType.Setter public Builder secretName(String secretName) { this.secretName = Objects.requireNonNull(secretName); return this; - } public VirtualGatewaySpecListenerTlsCertificateSds build() { - return new VirtualGatewaySpecListenerTlsCertificateSds(secretName); + } + public VirtualGatewaySpecListenerTlsCertificateSds build() { + final var o = new VirtualGatewaySpecListenerTlsCertificateSds(); + o.secretName = secretName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidation.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidation.java index 2a4c4c0304a..62e51f6dd20 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidation.java @@ -16,21 +16,14 @@ public final class VirtualGatewaySpecListenerTlsValidation { * @return The SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context. * */ - private final @Nullable VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames subjectAlternativeNames; + private @Nullable VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames subjectAlternativeNames; /** * @return The TLS validation context trust. * */ - private final VirtualGatewaySpecListenerTlsValidationTrust trust; - - @CustomType.Constructor - private VirtualGatewaySpecListenerTlsValidation( - @CustomType.Parameter("subjectAlternativeNames") @Nullable VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames subjectAlternativeNames, - @CustomType.Parameter("trust") VirtualGatewaySpecListenerTlsValidationTrust trust) { - this.subjectAlternativeNames = subjectAlternativeNames; - this.trust = trust; - } + private VirtualGatewaySpecListenerTlsValidationTrust trust; + private VirtualGatewaySpecListenerTlsValidation() {} /** * @return The SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerTlsValidation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames subjectAlternativeNames; private VirtualGatewaySpecListenerTlsValidationTrust trust; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerTlsValidation defaults) { Objects.requireNonNull(defaults); this.subjectAlternativeNames = defaults.subjectAlternativeNames; this.trust = defaults.trust; } + @CustomType.Setter public Builder subjectAlternativeNames(@Nullable VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames subjectAlternativeNames) { this.subjectAlternativeNames = subjectAlternativeNames; return this; } + @CustomType.Setter public Builder trust(VirtualGatewaySpecListenerTlsValidationTrust trust) { this.trust = Objects.requireNonNull(trust); return this; - } public VirtualGatewaySpecListenerTlsValidation build() { - return new VirtualGatewaySpecListenerTlsValidation(subjectAlternativeNames, trust); + } + public VirtualGatewaySpecListenerTlsValidation build() { + final var o = new VirtualGatewaySpecListenerTlsValidation(); + o.subjectAlternativeNames = subjectAlternativeNames; + o.trust = trust; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames.java index e07988e2fce..9267ba2a94f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames.java @@ -13,13 +13,9 @@ public final class VirtualGatewaySpecListenerTlsValidationSubjectAlternativeName * @return The criteria for determining a SAN's match. * */ - private final VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch match; - - @CustomType.Constructor - private VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames(@CustomType.Parameter("match") VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch match) { - this.match = match; - } + private VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch match; + private VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames() {} /** * @return The criteria for determining a SAN's match. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch match; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames defaults) { Objects.requireNonNull(defaults); this.match = defaults.match; } + @CustomType.Setter public Builder match(VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch match) { this.match = Objects.requireNonNull(match); return this; - } public VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames build() { - return new VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames(match); + } + public VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames build() { + final var o = new VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNames(); + o.match = match; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch.java index 2c4ee50093a..81840a0c046 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch.java @@ -14,13 +14,9 @@ public final class VirtualGatewaySpecListenerTlsValidationSubjectAlternativeName * @return The values sent must match the specified values exactly. * */ - private final List exacts; - - @CustomType.Constructor - private VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch(@CustomType.Parameter("exacts") List exacts) { - this.exacts = exacts; - } + private List exacts; + private VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch() {} /** * @return The values sent must match the specified values exactly. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List exacts; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch defaults) { Objects.requireNonNull(defaults); this.exacts = defaults.exacts; } + @CustomType.Setter public Builder exacts(List exacts) { this.exacts = Objects.requireNonNull(exacts); return this; } public Builder exacts(String... exacts) { return exacts(List.of(exacts)); - } public VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch build() { - return new VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch(exacts); + } + public VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch build() { + final var o = new VirtualGatewaySpecListenerTlsValidationSubjectAlternativeNamesMatch(); + o.exacts = exacts; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationTrust.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationTrust.java index cad1b1572ab..dea964264e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationTrust.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationTrust.java @@ -16,21 +16,14 @@ public final class VirtualGatewaySpecListenerTlsValidationTrust { * @return The TLS validation context trust for a local file certificate. * */ - private final @Nullable VirtualGatewaySpecListenerTlsValidationTrustFile file; + private @Nullable VirtualGatewaySpecListenerTlsValidationTrustFile file; /** * @return The TLS validation context trust for a [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate. * */ - private final @Nullable VirtualGatewaySpecListenerTlsValidationTrustSds sds; - - @CustomType.Constructor - private VirtualGatewaySpecListenerTlsValidationTrust( - @CustomType.Parameter("file") @Nullable VirtualGatewaySpecListenerTlsValidationTrustFile file, - @CustomType.Parameter("sds") @Nullable VirtualGatewaySpecListenerTlsValidationTrustSds sds) { - this.file = file; - this.sds = sds; - } + private @Nullable VirtualGatewaySpecListenerTlsValidationTrustSds sds; + private VirtualGatewaySpecListenerTlsValidationTrust() {} /** * @return The TLS validation context trust for a local file certificate. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerTlsValidationTrust defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecListenerTlsValidationTrustFile file; private @Nullable VirtualGatewaySpecListenerTlsValidationTrustSds sds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerTlsValidationTrust defaults) { Objects.requireNonNull(defaults); this.file = defaults.file; this.sds = defaults.sds; } + @CustomType.Setter public Builder file(@Nullable VirtualGatewaySpecListenerTlsValidationTrustFile file) { this.file = file; return this; } + @CustomType.Setter public Builder sds(@Nullable VirtualGatewaySpecListenerTlsValidationTrustSds sds) { this.sds = sds; return this; - } public VirtualGatewaySpecListenerTlsValidationTrust build() { - return new VirtualGatewaySpecListenerTlsValidationTrust(file, sds); + } + public VirtualGatewaySpecListenerTlsValidationTrust build() { + final var o = new VirtualGatewaySpecListenerTlsValidationTrust(); + o.file = file; + o.sds = sds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationTrustFile.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationTrustFile.java index dd5ecb38feb..faab8f8e861 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationTrustFile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationTrustFile.java @@ -13,13 +13,9 @@ public final class VirtualGatewaySpecListenerTlsValidationTrustFile { * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String certificateChain; - - @CustomType.Constructor - private VirtualGatewaySpecListenerTlsValidationTrustFile(@CustomType.Parameter("certificateChain") String certificateChain) { - this.certificateChain = certificateChain; - } + private String certificateChain; + private VirtualGatewaySpecListenerTlsValidationTrustFile() {} /** * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerTlsValidationTrustFile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateChain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerTlsValidationTrustFile defaults) { Objects.requireNonNull(defaults); this.certificateChain = defaults.certificateChain; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; - } public VirtualGatewaySpecListenerTlsValidationTrustFile build() { - return new VirtualGatewaySpecListenerTlsValidationTrustFile(certificateChain); + } + public VirtualGatewaySpecListenerTlsValidationTrustFile build() { + final var o = new VirtualGatewaySpecListenerTlsValidationTrustFile(); + o.certificateChain = certificateChain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationTrustSds.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationTrustSds.java index 3cbf8ec7a91..239f1f2af9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationTrustSds.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecListenerTlsValidationTrustSds.java @@ -13,13 +13,9 @@ public final class VirtualGatewaySpecListenerTlsValidationTrustSds { * @return The name of the secret for a virtual gateway's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * */ - private final String secretName; - - @CustomType.Constructor - private VirtualGatewaySpecListenerTlsValidationTrustSds(@CustomType.Parameter("secretName") String secretName) { - this.secretName = secretName; - } + private String secretName; + private VirtualGatewaySpecListenerTlsValidationTrustSds() {} /** * @return The name of the secret for a virtual gateway's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecListenerTlsValidationTrustSds defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String secretName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecListenerTlsValidationTrustSds defaults) { Objects.requireNonNull(defaults); this.secretName = defaults.secretName; } + @CustomType.Setter public Builder secretName(String secretName) { this.secretName = Objects.requireNonNull(secretName); return this; - } public VirtualGatewaySpecListenerTlsValidationTrustSds build() { - return new VirtualGatewaySpecListenerTlsValidationTrustSds(secretName); + } + public VirtualGatewaySpecListenerTlsValidationTrustSds build() { + final var o = new VirtualGatewaySpecListenerTlsValidationTrustSds(); + o.secretName = secretName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecLogging.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecLogging.java index c5bc10c892d..b3410c42c21 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecLogging.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecLogging.java @@ -15,13 +15,9 @@ public final class VirtualGatewaySpecLogging { * @return The access log configuration for a virtual gateway. * */ - private final @Nullable VirtualGatewaySpecLoggingAccessLog accessLog; - - @CustomType.Constructor - private VirtualGatewaySpecLogging(@CustomType.Parameter("accessLog") @Nullable VirtualGatewaySpecLoggingAccessLog accessLog) { - this.accessLog = accessLog; - } + private @Nullable VirtualGatewaySpecLoggingAccessLog accessLog; + private VirtualGatewaySpecLogging() {} /** * @return The access log configuration for a virtual gateway. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecLogging defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecLoggingAccessLog accessLog; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecLogging defaults) { Objects.requireNonNull(defaults); this.accessLog = defaults.accessLog; } + @CustomType.Setter public Builder accessLog(@Nullable VirtualGatewaySpecLoggingAccessLog accessLog) { this.accessLog = accessLog; return this; - } public VirtualGatewaySpecLogging build() { - return new VirtualGatewaySpecLogging(accessLog); + } + public VirtualGatewaySpecLogging build() { + final var o = new VirtualGatewaySpecLogging(); + o.accessLog = accessLog; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecLoggingAccessLog.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecLoggingAccessLog.java index 23c51fe825f..5867336db27 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecLoggingAccessLog.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecLoggingAccessLog.java @@ -15,13 +15,9 @@ public final class VirtualGatewaySpecLoggingAccessLog { * @return The file object to send virtual gateway access logs to. * */ - private final @Nullable VirtualGatewaySpecLoggingAccessLogFile file; - - @CustomType.Constructor - private VirtualGatewaySpecLoggingAccessLog(@CustomType.Parameter("file") @Nullable VirtualGatewaySpecLoggingAccessLogFile file) { - this.file = file; - } + private @Nullable VirtualGatewaySpecLoggingAccessLogFile file; + private VirtualGatewaySpecLoggingAccessLog() {} /** * @return The file object to send virtual gateway access logs to. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecLoggingAccessLog defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualGatewaySpecLoggingAccessLogFile file; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecLoggingAccessLog defaults) { Objects.requireNonNull(defaults); this.file = defaults.file; } + @CustomType.Setter public Builder file(@Nullable VirtualGatewaySpecLoggingAccessLogFile file) { this.file = file; return this; - } public VirtualGatewaySpecLoggingAccessLog build() { - return new VirtualGatewaySpecLoggingAccessLog(file); + } + public VirtualGatewaySpecLoggingAccessLog build() { + final var o = new VirtualGatewaySpecLoggingAccessLog(); + o.file = file; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecLoggingAccessLogFile.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecLoggingAccessLogFile.java index a8a0ff77847..f9b84e9cfe4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecLoggingAccessLogFile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualGatewaySpecLoggingAccessLogFile.java @@ -13,13 +13,9 @@ public final class VirtualGatewaySpecLoggingAccessLogFile { * @return The file path to write access logs to. You can use `/dev/stdout` to send access logs to standard out. Must be between 1 and 255 characters in length. * */ - private final String path; - - @CustomType.Constructor - private VirtualGatewaySpecLoggingAccessLogFile(@CustomType.Parameter("path") String path) { - this.path = path; - } + private String path; + private VirtualGatewaySpecLoggingAccessLogFile() {} /** * @return The file path to write access logs to. You can use `/dev/stdout` to send access logs to standard out. Must be between 1 and 255 characters in length. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualGatewaySpecLoggingAccessLogFile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String path; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualGatewaySpecLoggingAccessLogFile defaults) { Objects.requireNonNull(defaults); this.path = defaults.path; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; - } public VirtualGatewaySpecLoggingAccessLogFile build() { - return new VirtualGatewaySpecLoggingAccessLogFile(path); + } + public VirtualGatewaySpecLoggingAccessLogFile build() { + final var o = new VirtualGatewaySpecLoggingAccessLogFile(); + o.path = path; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpec.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpec.java index d73db492e17..22e66fe9fe5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpec.java @@ -20,42 +20,29 @@ public final class VirtualNodeSpec { * @return The defaults for backends. * */ - private final @Nullable VirtualNodeSpecBackendDefaults backendDefaults; + private @Nullable VirtualNodeSpecBackendDefaults backendDefaults; /** * @return The backends to which the virtual node is expected to send outbound traffic. * */ - private final @Nullable List backends; + private @Nullable List backends; /** * @return The listeners from which the virtual node is expected to receive inbound traffic. * */ - private final @Nullable VirtualNodeSpecListener listener; + private @Nullable VirtualNodeSpecListener listener; /** * @return The inbound and outbound access logging information for the virtual node. * */ - private final @Nullable VirtualNodeSpecLogging logging; + private @Nullable VirtualNodeSpecLogging logging; /** * @return The service discovery information for the virtual node. * */ - private final @Nullable VirtualNodeSpecServiceDiscovery serviceDiscovery; - - @CustomType.Constructor - private VirtualNodeSpec( - @CustomType.Parameter("backendDefaults") @Nullable VirtualNodeSpecBackendDefaults backendDefaults, - @CustomType.Parameter("backends") @Nullable List backends, - @CustomType.Parameter("listener") @Nullable VirtualNodeSpecListener listener, - @CustomType.Parameter("logging") @Nullable VirtualNodeSpecLogging logging, - @CustomType.Parameter("serviceDiscovery") @Nullable VirtualNodeSpecServiceDiscovery serviceDiscovery) { - this.backendDefaults = backendDefaults; - this.backends = backends; - this.listener = listener; - this.logging = logging; - this.serviceDiscovery = serviceDiscovery; - } + private @Nullable VirtualNodeSpecServiceDiscovery serviceDiscovery; + private VirtualNodeSpec() {} /** * @return The defaults for backends. * @@ -99,18 +86,14 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendDefaults backendDefaults; private @Nullable List backends; private @Nullable VirtualNodeSpecListener listener; private @Nullable VirtualNodeSpecLogging logging; private @Nullable VirtualNodeSpecServiceDiscovery serviceDiscovery; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpec defaults) { Objects.requireNonNull(defaults); this.backendDefaults = defaults.backendDefaults; @@ -120,10 +103,12 @@ public Builder(VirtualNodeSpec defaults) { this.serviceDiscovery = defaults.serviceDiscovery; } + @CustomType.Setter public Builder backendDefaults(@Nullable VirtualNodeSpecBackendDefaults backendDefaults) { this.backendDefaults = backendDefaults; return this; } + @CustomType.Setter public Builder backends(@Nullable List backends) { this.backends = backends; return this; @@ -131,19 +116,29 @@ public Builder backends(@Nullable List backends) { public Builder backends(VirtualNodeSpecBackend... backends) { return backends(List.of(backends)); } + @CustomType.Setter public Builder listener(@Nullable VirtualNodeSpecListener listener) { this.listener = listener; return this; } + @CustomType.Setter public Builder logging(@Nullable VirtualNodeSpecLogging logging) { this.logging = logging; return this; } + @CustomType.Setter public Builder serviceDiscovery(@Nullable VirtualNodeSpecServiceDiscovery serviceDiscovery) { this.serviceDiscovery = serviceDiscovery; return this; - } public VirtualNodeSpec build() { - return new VirtualNodeSpec(backendDefaults, backends, listener, logging, serviceDiscovery); + } + public VirtualNodeSpec build() { + final var o = new VirtualNodeSpec(); + o.backendDefaults = backendDefaults; + o.backends = backends; + o.listener = listener; + o.logging = logging; + o.serviceDiscovery = serviceDiscovery; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackend.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackend.java index 651fda5d46c..b77e7a4f67b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackend.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackend.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecBackend { * @return Specifies a virtual service to use as a backend for a virtual node. * */ - private final VirtualNodeSpecBackendVirtualService virtualService; - - @CustomType.Constructor - private VirtualNodeSpecBackend(@CustomType.Parameter("virtualService") VirtualNodeSpecBackendVirtualService virtualService) { - this.virtualService = virtualService; - } + private VirtualNodeSpecBackendVirtualService virtualService; + private VirtualNodeSpecBackend() {} /** * @return Specifies a virtual service to use as a backend for a virtual node. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackend defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private VirtualNodeSpecBackendVirtualService virtualService; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackend defaults) { Objects.requireNonNull(defaults); this.virtualService = defaults.virtualService; } + @CustomType.Setter public Builder virtualService(VirtualNodeSpecBackendVirtualService virtualService) { this.virtualService = Objects.requireNonNull(virtualService); return this; - } public VirtualNodeSpecBackend build() { - return new VirtualNodeSpecBackend(virtualService); + } + public VirtualNodeSpecBackend build() { + final var o = new VirtualNodeSpecBackend(); + o.virtualService = virtualService; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaults.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaults.java index 671ca785fc6..c354671362a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaults.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaults.java @@ -15,13 +15,9 @@ public final class VirtualNodeSpecBackendDefaults { * @return The default client policy for virtual service backends. See above for details. * */ - private final @Nullable VirtualNodeSpecBackendDefaultsClientPolicy clientPolicy; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaults(@CustomType.Parameter("clientPolicy") @Nullable VirtualNodeSpecBackendDefaultsClientPolicy clientPolicy) { - this.clientPolicy = clientPolicy; - } + private @Nullable VirtualNodeSpecBackendDefaultsClientPolicy clientPolicy; + private VirtualNodeSpecBackendDefaults() {} /** * @return The default client policy for virtual service backends. See above for details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaults defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendDefaultsClientPolicy clientPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaults defaults) { Objects.requireNonNull(defaults); this.clientPolicy = defaults.clientPolicy; } + @CustomType.Setter public Builder clientPolicy(@Nullable VirtualNodeSpecBackendDefaultsClientPolicy clientPolicy) { this.clientPolicy = clientPolicy; return this; - } public VirtualNodeSpecBackendDefaults build() { - return new VirtualNodeSpecBackendDefaults(clientPolicy); + } + public VirtualNodeSpecBackendDefaults build() { + final var o = new VirtualNodeSpecBackendDefaults(); + o.clientPolicy = clientPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicy.java index 51f599b573e..ad550002a16 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicy.java @@ -15,13 +15,9 @@ public final class VirtualNodeSpecBackendDefaultsClientPolicy { * @return The Transport Layer Security (TLS) client policy. * */ - private final @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTls tls; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaultsClientPolicy(@CustomType.Parameter("tls") @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTls tls) { - this.tls = tls; - } + private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTls tls; + private VirtualNodeSpecBackendDefaultsClientPolicy() {} /** * @return The Transport Layer Security (TLS) client policy. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaultsClientPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTls tls; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaultsClientPolicy defaults) { Objects.requireNonNull(defaults); this.tls = defaults.tls; } + @CustomType.Setter public Builder tls(@Nullable VirtualNodeSpecBackendDefaultsClientPolicyTls tls) { this.tls = tls; return this; - } public VirtualNodeSpecBackendDefaultsClientPolicy build() { - return new VirtualNodeSpecBackendDefaultsClientPolicy(tls); + } + public VirtualNodeSpecBackendDefaultsClientPolicy build() { + final var o = new VirtualNodeSpecBackendDefaultsClientPolicy(); + o.tls = tls; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTls.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTls.java index dbcffedf568..bd3a9ccc236 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTls.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTls.java @@ -19,35 +19,24 @@ public final class VirtualNodeSpecBackendDefaultsClientPolicyTls { * @return The listener's TLS certificate. * */ - private final @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate certificate; + private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate certificate; /** * @return Whether the policy is enforced. Default is `true`. * */ - private final @Nullable Boolean enforce; + private @Nullable Boolean enforce; /** * @return One or more ports that the policy is enforced for. * */ - private final @Nullable List ports; + private @Nullable List ports; /** * @return The listener's Transport Layer Security (TLS) validation context. * */ - private final VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation validation; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaultsClientPolicyTls( - @CustomType.Parameter("certificate") @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate certificate, - @CustomType.Parameter("enforce") @Nullable Boolean enforce, - @CustomType.Parameter("ports") @Nullable List ports, - @CustomType.Parameter("validation") VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation validation) { - this.certificate = certificate; - this.enforce = enforce; - this.ports = ports; - this.validation = validation; - } + private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation validation; + private VirtualNodeSpecBackendDefaultsClientPolicyTls() {} /** * @return The listener's TLS certificate. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaultsClientPolicyTls defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate certificate; private @Nullable Boolean enforce; private @Nullable List ports; private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation validation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTls defaults) { Objects.requireNonNull(defaults); this.certificate = defaults.certificate; @@ -103,14 +88,17 @@ public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTls defaults) { this.validation = defaults.validation; } + @CustomType.Setter public Builder certificate(@Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate certificate) { this.certificate = certificate; return this; } + @CustomType.Setter public Builder enforce(@Nullable Boolean enforce) { this.enforce = enforce; return this; } + @CustomType.Setter public Builder ports(@Nullable List ports) { this.ports = ports; return this; @@ -118,11 +106,18 @@ public Builder ports(@Nullable List ports) { public Builder ports(Integer... ports) { return ports(List.of(ports)); } + @CustomType.Setter public Builder validation(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation validation) { this.validation = Objects.requireNonNull(validation); return this; - } public VirtualNodeSpecBackendDefaultsClientPolicyTls build() { - return new VirtualNodeSpecBackendDefaultsClientPolicyTls(certificate, enforce, ports, validation); + } + public VirtualNodeSpecBackendDefaultsClientPolicyTls build() { + final var o = new VirtualNodeSpecBackendDefaultsClientPolicyTls(); + o.certificate = certificate; + o.enforce = enforce; + o.ports = ports; + o.validation = validation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate.java index 3db1aad2f14..35471bc0f4e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate.java @@ -16,21 +16,14 @@ public final class VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate { * @return A local file certificate. * */ - private final @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile file; + private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile file; /** * @return A [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate. * */ - private final @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds sds; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate( - @CustomType.Parameter("file") @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile file, - @CustomType.Parameter("sds") @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds sds) { - this.file = file; - this.sds = sds; - } + private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds sds; + private VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate() {} /** * @return A local file certificate. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile file; private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds sds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate defaults) { Objects.requireNonNull(defaults); this.file = defaults.file; this.sds = defaults.sds; } + @CustomType.Setter public Builder file(@Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile file) { this.file = file; return this; } + @CustomType.Setter public Builder sds(@Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds sds) { this.sds = sds; return this; - } public VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate build() { - return new VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate(file, sds); + } + public VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate build() { + final var o = new VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificate(); + o.file = file; + o.sds = sds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile.java index ecb80469062..8d7e0910962 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile.java @@ -13,21 +13,14 @@ public final class VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String certificateChain; + private String certificateChain; /** * @return The private key for a certificate stored on the file system of the virtual node that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String privateKey; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile( - @CustomType.Parameter("certificateChain") String certificateChain, - @CustomType.Parameter("privateKey") String privateKey) { - this.certificateChain = certificateChain; - this.privateKey = privateKey; - } + private String privateKey; + private VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile() {} /** * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateChain; private String privateKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile defaults) { Objects.requireNonNull(defaults); this.certificateChain = defaults.certificateChain; this.privateKey = defaults.privateKey; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; } + @CustomType.Setter public Builder privateKey(String privateKey) { this.privateKey = Objects.requireNonNull(privateKey); return this; - } public VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile build() { - return new VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile(certificateChain, privateKey); + } + public VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile build() { + final var o = new VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateFile(); + o.certificateChain = certificateChain; + o.privateKey = privateKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds.java index ca5b69352f7..0e9043a9c18 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds { * @return The name of the secret for a virtual node's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * */ - private final String secretName; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds(@CustomType.Parameter("secretName") String secretName) { - this.secretName = secretName; - } + private String secretName; + private VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds() {} /** * @return The name of the secret for a virtual node's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String secretName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds defaults) { Objects.requireNonNull(defaults); this.secretName = defaults.secretName; } + @CustomType.Setter public Builder secretName(String secretName) { this.secretName = Objects.requireNonNull(secretName); return this; - } public VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds build() { - return new VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds(secretName); + } + public VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds build() { + final var o = new VirtualNodeSpecBackendDefaultsClientPolicyTlsCertificateSds(); + o.secretName = secretName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation.java index f254676f870..fdcfb60dd48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation.java @@ -16,21 +16,14 @@ public final class VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation { * @return The SANs for a TLS validation context. * */ - private final @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames; + private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames; /** * @return The TLS validation context trust. * */ - private final VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust trust; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation( - @CustomType.Parameter("subjectAlternativeNames") @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames, - @CustomType.Parameter("trust") VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust trust) { - this.subjectAlternativeNames = subjectAlternativeNames; - this.trust = trust; - } + private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust trust; + private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation() {} /** * @return The SANs for a TLS validation context. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames; private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust trust; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation defaults) { Objects.requireNonNull(defaults); this.subjectAlternativeNames = defaults.subjectAlternativeNames; this.trust = defaults.trust; } + @CustomType.Setter public Builder subjectAlternativeNames(@Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames) { this.subjectAlternativeNames = subjectAlternativeNames; return this; } + @CustomType.Setter public Builder trust(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust trust) { this.trust = Objects.requireNonNull(trust); return this; - } public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation build() { - return new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation(subjectAlternativeNames, trust); + } + public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation build() { + final var o = new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidation(); + o.subjectAlternativeNames = subjectAlternativeNames; + o.trust = trust; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames.java index 83d245090c3..4e5729cec4d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjec * @return The criteria for determining a SAN's match. * */ - private final VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch match; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames(@CustomType.Parameter("match") VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch match) { - this.match = match; - } + private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch match; + private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames() {} /** * @return The criteria for determining a SAN's match. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch match; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames defaults) { Objects.requireNonNull(defaults); this.match = defaults.match; } + @CustomType.Setter public Builder match(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch match) { this.match = Objects.requireNonNull(match); return this; - } public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames build() { - return new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames(match); + } + public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames build() { + final var o = new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNames(); + o.match = match; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch.java index cb7e301ac60..f49194a860c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch.java @@ -14,13 +14,9 @@ public final class VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjec * @return The values sent must match the specified values exactly. * */ - private final List exacts; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch(@CustomType.Parameter("exacts") List exacts) { - this.exacts = exacts; - } + private List exacts; + private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch() {} /** * @return The values sent must match the specified values exactly. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List exacts; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch defaults) { Objects.requireNonNull(defaults); this.exacts = defaults.exacts; } + @CustomType.Setter public Builder exacts(List exacts) { this.exacts = Objects.requireNonNull(exacts); return this; } public Builder exacts(String... exacts) { return exacts(List.of(exacts)); - } public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch build() { - return new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch(exacts); + } + public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch build() { + final var o = new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationSubjectAlternativeNamesMatch(); + o.exacts = exacts; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust.java index e79c28fed6f..4aefc7ce1e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust.java @@ -17,28 +17,19 @@ public final class VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust * @return The TLS validation context trust for an AWS Certificate Manager (ACM) certificate. * */ - private final @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm acm; + private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm acm; /** * @return The TLS validation context trust for a local file certificate. * */ - private final @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile file; + private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile file; /** * @return The TLS validation context trust for a [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate. * */ - private final @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds sds; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust( - @CustomType.Parameter("acm") @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm acm, - @CustomType.Parameter("file") @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile file, - @CustomType.Parameter("sds") @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds sds) { - this.acm = acm; - this.file = file; - this.sds = sds; - } + private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds sds; + private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust() {} /** * @return The TLS validation context trust for an AWS Certificate Manager (ACM) certificate. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm acm; private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile file; private @Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds sds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust defaults) { Objects.requireNonNull(defaults); this.acm = defaults.acm; @@ -85,19 +72,27 @@ public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust defa this.sds = defaults.sds; } + @CustomType.Setter public Builder acm(@Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm acm) { this.acm = acm; return this; } + @CustomType.Setter public Builder file(@Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile file) { this.file = file; return this; } + @CustomType.Setter public Builder sds(@Nullable VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds sds) { this.sds = sds; return this; - } public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust build() { - return new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust(acm, file, sds); + } + public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust build() { + final var o = new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrust(); + o.acm = acm; + o.file = file; + o.sds = sds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm.java index 7944bde6351..8aee69b9d37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm.java @@ -14,13 +14,9 @@ public final class VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustA * @return One or more ACM Amazon Resource Name (ARN)s. * */ - private final List certificateAuthorityArns; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm(@CustomType.Parameter("certificateAuthorityArns") List certificateAuthorityArns) { - this.certificateAuthorityArns = certificateAuthorityArns; - } + private List certificateAuthorityArns; + private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm() {} /** * @return One or more ACM Amazon Resource Name (ARN)s. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List certificateAuthorityArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm defaults) { Objects.requireNonNull(defaults); this.certificateAuthorityArns = defaults.certificateAuthorityArns; } + @CustomType.Setter public Builder certificateAuthorityArns(List certificateAuthorityArns) { this.certificateAuthorityArns = Objects.requireNonNull(certificateAuthorityArns); return this; } public Builder certificateAuthorityArns(String... certificateAuthorityArns) { return certificateAuthorityArns(List.of(certificateAuthorityArns)); - } public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm build() { - return new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm(certificateAuthorityArns); + } + public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm build() { + final var o = new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustAcm(); + o.certificateAuthorityArns = certificateAuthorityArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile.java index 9edfb98a5ce..874e7f0d380 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustF * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String certificateChain; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile(@CustomType.Parameter("certificateChain") String certificateChain) { - this.certificateChain = certificateChain; - } + private String certificateChain; + private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile() {} /** * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateChain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile defaults) { Objects.requireNonNull(defaults); this.certificateChain = defaults.certificateChain; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; - } public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile build() { - return new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile(certificateChain); + } + public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile build() { + final var o = new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustFile(); + o.certificateChain = certificateChain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds.java index c2cfaee9c09..99786e6e9c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustS * @return The name of the secret for a virtual node's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * */ - private final String secretName; - - @CustomType.Constructor - private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds(@CustomType.Parameter("secretName") String secretName) { - this.secretName = secretName; - } + private String secretName; + private VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds() {} /** * @return The name of the secret for a virtual node's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String secretName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds defaults) { Objects.requireNonNull(defaults); this.secretName = defaults.secretName; } + @CustomType.Setter public Builder secretName(String secretName) { this.secretName = Objects.requireNonNull(secretName); return this; - } public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds build() { - return new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds(secretName); + } + public VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds build() { + final var o = new VirtualNodeSpecBackendDefaultsClientPolicyTlsValidationTrustSds(); + o.secretName = secretName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualService.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualService.java index a92aa27d1dd..53e72b68fec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualService.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualService.java @@ -16,21 +16,14 @@ public final class VirtualNodeSpecBackendVirtualService { * @return The client policy for the backend. * */ - private final @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicy clientPolicy; + private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicy clientPolicy; /** * @return The name of the virtual service that is acting as a virtual node backend. Must be between 1 and 255 characters in length. * */ - private final String virtualServiceName; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualService( - @CustomType.Parameter("clientPolicy") @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicy clientPolicy, - @CustomType.Parameter("virtualServiceName") String virtualServiceName) { - this.clientPolicy = clientPolicy; - this.virtualServiceName = virtualServiceName; - } + private String virtualServiceName; + private VirtualNodeSpecBackendVirtualService() {} /** * @return The client policy for the backend. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualService defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicy clientPolicy; private String virtualServiceName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualService defaults) { Objects.requireNonNull(defaults); this.clientPolicy = defaults.clientPolicy; this.virtualServiceName = defaults.virtualServiceName; } + @CustomType.Setter public Builder clientPolicy(@Nullable VirtualNodeSpecBackendVirtualServiceClientPolicy clientPolicy) { this.clientPolicy = clientPolicy; return this; } + @CustomType.Setter public Builder virtualServiceName(String virtualServiceName) { this.virtualServiceName = Objects.requireNonNull(virtualServiceName); return this; - } public VirtualNodeSpecBackendVirtualService build() { - return new VirtualNodeSpecBackendVirtualService(clientPolicy, virtualServiceName); + } + public VirtualNodeSpecBackendVirtualService build() { + final var o = new VirtualNodeSpecBackendVirtualService(); + o.clientPolicy = clientPolicy; + o.virtualServiceName = virtualServiceName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicy.java index 8845fa23d82..3588961a6de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicy.java @@ -15,13 +15,9 @@ public final class VirtualNodeSpecBackendVirtualServiceClientPolicy { * @return The Transport Layer Security (TLS) client policy. * */ - private final @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTls tls; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualServiceClientPolicy(@CustomType.Parameter("tls") @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTls tls) { - this.tls = tls; - } + private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTls tls; + private VirtualNodeSpecBackendVirtualServiceClientPolicy() {} /** * @return The Transport Layer Security (TLS) client policy. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTls tls; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicy defaults) { Objects.requireNonNull(defaults); this.tls = defaults.tls; } + @CustomType.Setter public Builder tls(@Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTls tls) { this.tls = tls; return this; - } public VirtualNodeSpecBackendVirtualServiceClientPolicy build() { - return new VirtualNodeSpecBackendVirtualServiceClientPolicy(tls); + } + public VirtualNodeSpecBackendVirtualServiceClientPolicy build() { + final var o = new VirtualNodeSpecBackendVirtualServiceClientPolicy(); + o.tls = tls; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTls.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTls.java index fe9223c6214..73b0d780ca7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTls.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTls.java @@ -19,35 +19,24 @@ public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTls { * @return The listener's TLS certificate. * */ - private final @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate certificate; + private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate certificate; /** * @return Whether the policy is enforced. Default is `true`. * */ - private final @Nullable Boolean enforce; + private @Nullable Boolean enforce; /** * @return One or more ports that the policy is enforced for. * */ - private final @Nullable List ports; + private @Nullable List ports; /** * @return The listener's Transport Layer Security (TLS) validation context. * */ - private final VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation validation; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualServiceClientPolicyTls( - @CustomType.Parameter("certificate") @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate certificate, - @CustomType.Parameter("enforce") @Nullable Boolean enforce, - @CustomType.Parameter("ports") @Nullable List ports, - @CustomType.Parameter("validation") VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation validation) { - this.certificate = certificate; - this.enforce = enforce; - this.ports = ports; - this.validation = validation; - } + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation validation; + private VirtualNodeSpecBackendVirtualServiceClientPolicyTls() {} /** * @return The listener's TLS certificate. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTls defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate certificate; private @Nullable Boolean enforce; private @Nullable List ports; private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation validation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTls defaults) { Objects.requireNonNull(defaults); this.certificate = defaults.certificate; @@ -103,14 +88,17 @@ public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTls defaults) { this.validation = defaults.validation; } + @CustomType.Setter public Builder certificate(@Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate certificate) { this.certificate = certificate; return this; } + @CustomType.Setter public Builder enforce(@Nullable Boolean enforce) { this.enforce = enforce; return this; } + @CustomType.Setter public Builder ports(@Nullable List ports) { this.ports = ports; return this; @@ -118,11 +106,18 @@ public Builder ports(@Nullable List ports) { public Builder ports(Integer... ports) { return ports(List.of(ports)); } + @CustomType.Setter public Builder validation(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation validation) { this.validation = Objects.requireNonNull(validation); return this; - } public VirtualNodeSpecBackendVirtualServiceClientPolicyTls build() { - return new VirtualNodeSpecBackendVirtualServiceClientPolicyTls(certificate, enforce, ports, validation); + } + public VirtualNodeSpecBackendVirtualServiceClientPolicyTls build() { + final var o = new VirtualNodeSpecBackendVirtualServiceClientPolicyTls(); + o.certificate = certificate; + o.enforce = enforce; + o.ports = ports; + o.validation = validation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate.java index 0fc83be2be1..7bc15e686b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate.java @@ -16,21 +16,14 @@ public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificat * @return A local file certificate. * */ - private final @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile file; + private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile file; /** * @return A [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate. * */ - private final @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds sds; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate( - @CustomType.Parameter("file") @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile file, - @CustomType.Parameter("sds") @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds sds) { - this.file = file; - this.sds = sds; - } + private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds sds; + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate() {} /** * @return A local file certificate. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile file; private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds sds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate defaults) { Objects.requireNonNull(defaults); this.file = defaults.file; this.sds = defaults.sds; } + @CustomType.Setter public Builder file(@Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile file) { this.file = file; return this; } + @CustomType.Setter public Builder sds(@Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds sds) { this.sds = sds; return this; - } public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate build() { - return new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate(file, sds); + } + public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate build() { + final var o = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificate(); + o.file = file; + o.sds = sds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile.java index 1bba4a5b5d8..d435e7321c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile.java @@ -13,21 +13,14 @@ public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificat * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String certificateChain; + private String certificateChain; /** * @return The private key for a certificate stored on the file system of the virtual node that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String privateKey; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile( - @CustomType.Parameter("certificateChain") String certificateChain, - @CustomType.Parameter("privateKey") String privateKey) { - this.certificateChain = certificateChain; - this.privateKey = privateKey; - } + private String privateKey; + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile() {} /** * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateChain; private String privateKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile defaults) { Objects.requireNonNull(defaults); this.certificateChain = defaults.certificateChain; this.privateKey = defaults.privateKey; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; } + @CustomType.Setter public Builder privateKey(String privateKey) { this.privateKey = Objects.requireNonNull(privateKey); return this; - } public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile build() { - return new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile(certificateChain, privateKey); + } + public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile build() { + final var o = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateFile(); + o.certificateChain = certificateChain; + o.privateKey = privateKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds.java index 360bf965604..ed8df73ff25 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificat * @return The name of the secret for a virtual node's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * */ - private final String secretName; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds(@CustomType.Parameter("secretName") String secretName) { - this.secretName = secretName; - } + private String secretName; + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds() {} /** * @return The name of the secret for a virtual node's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String secretName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds defaults) { Objects.requireNonNull(defaults); this.secretName = defaults.secretName; } + @CustomType.Setter public Builder secretName(String secretName) { this.secretName = Objects.requireNonNull(secretName); return this; - } public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds build() { - return new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds(secretName); + } + public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds build() { + final var o = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsCertificateSds(); + o.secretName = secretName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation.java index b848ed2add0..71ad6409723 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation.java @@ -16,21 +16,14 @@ public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation * @return The SANs for a TLS validation context. * */ - private final @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames; + private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames; /** * @return The TLS validation context trust. * */ - private final VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust trust; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation( - @CustomType.Parameter("subjectAlternativeNames") @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames, - @CustomType.Parameter("trust") VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust trust) { - this.subjectAlternativeNames = subjectAlternativeNames; - this.trust = trust; - } + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust trust; + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation() {} /** * @return The SANs for a TLS validation context. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames; private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust trust; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation defaults) { Objects.requireNonNull(defaults); this.subjectAlternativeNames = defaults.subjectAlternativeNames; this.trust = defaults.trust; } + @CustomType.Setter public Builder subjectAlternativeNames(@Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames subjectAlternativeNames) { this.subjectAlternativeNames = subjectAlternativeNames; return this; } + @CustomType.Setter public Builder trust(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust trust) { this.trust = Objects.requireNonNull(trust); return this; - } public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation build() { - return new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation(subjectAlternativeNames, trust); + } + public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation build() { + final var o = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation(); + o.subjectAlternativeNames = subjectAlternativeNames; + o.trust = trust; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames.java index fe27a465c76..48aa6a2d6f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation * @return The criteria for determining a SAN's match. * */ - private final VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch match; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames(@CustomType.Parameter("match") VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch match) { - this.match = match; - } + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch match; + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames() {} /** * @return The criteria for determining a SAN's match. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch match; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames defaults) { Objects.requireNonNull(defaults); this.match = defaults.match; } + @CustomType.Setter public Builder match(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch match) { this.match = Objects.requireNonNull(match); return this; - } public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames build() { - return new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames(match); + } + public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames build() { + final var o = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNames(); + o.match = match; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch.java index a83ff64ba46..bf6c974c782 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch.java @@ -14,13 +14,9 @@ public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation * @return The values sent must match the specified values exactly. * */ - private final List exacts; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch(@CustomType.Parameter("exacts") List exacts) { - this.exacts = exacts; - } + private List exacts; + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch() {} /** * @return The values sent must match the specified values exactly. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List exacts; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch defaults) { Objects.requireNonNull(defaults); this.exacts = defaults.exacts; } + @CustomType.Setter public Builder exacts(List exacts) { this.exacts = Objects.requireNonNull(exacts); return this; } public Builder exacts(String... exacts) { return exacts(List.of(exacts)); - } public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch build() { - return new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch(exacts); + } + public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch build() { + final var o = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationSubjectAlternativeNamesMatch(); + o.exacts = exacts; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust.java index e45908e16e7..01c876be0c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust.java @@ -17,28 +17,19 @@ public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation * @return The TLS validation context trust for an AWS Certificate Manager (ACM) certificate. * */ - private final @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm acm; + private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm acm; /** * @return The TLS validation context trust for a local file certificate. * */ - private final @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile file; + private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile file; /** * @return The TLS validation context trust for a [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate. * */ - private final @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds sds; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust( - @CustomType.Parameter("acm") @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm acm, - @CustomType.Parameter("file") @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile file, - @CustomType.Parameter("sds") @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds sds) { - this.acm = acm; - this.file = file; - this.sds = sds; - } + private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds sds; + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust() {} /** * @return The TLS validation context trust for an AWS Certificate Manager (ACM) certificate. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm acm; private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile file; private @Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds sds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust defaults) { Objects.requireNonNull(defaults); this.acm = defaults.acm; @@ -85,19 +72,27 @@ public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrus this.sds = defaults.sds; } + @CustomType.Setter public Builder acm(@Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm acm) { this.acm = acm; return this; } + @CustomType.Setter public Builder file(@Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile file) { this.file = file; return this; } + @CustomType.Setter public Builder sds(@Nullable VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds sds) { this.sds = sds; return this; - } public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust build() { - return new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust(acm, file, sds); + } + public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust build() { + final var o = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrust(); + o.acm = acm; + o.file = file; + o.sds = sds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm.java index 452de819c90..d23b02d7573 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm.java @@ -14,13 +14,9 @@ public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation * @return One or more ACM Amazon Resource Name (ARN)s. * */ - private final List certificateAuthorityArns; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm(@CustomType.Parameter("certificateAuthorityArns") List certificateAuthorityArns) { - this.certificateAuthorityArns = certificateAuthorityArns; - } + private List certificateAuthorityArns; + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm() {} /** * @return One or more ACM Amazon Resource Name (ARN)s. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List certificateAuthorityArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm defaults) { Objects.requireNonNull(defaults); this.certificateAuthorityArns = defaults.certificateAuthorityArns; } + @CustomType.Setter public Builder certificateAuthorityArns(List certificateAuthorityArns) { this.certificateAuthorityArns = Objects.requireNonNull(certificateAuthorityArns); return this; } public Builder certificateAuthorityArns(String... certificateAuthorityArns) { return certificateAuthorityArns(List.of(certificateAuthorityArns)); - } public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm build() { - return new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm(certificateAuthorityArns); + } + public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm build() { + final var o = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustAcm(); + o.certificateAuthorityArns = certificateAuthorityArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile.java index c2cca15237d..8b10235a5da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String certificateChain; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile(@CustomType.Parameter("certificateChain") String certificateChain) { - this.certificateChain = certificateChain; - } + private String certificateChain; + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile() {} /** * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateChain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile defaults) { Objects.requireNonNull(defaults); this.certificateChain = defaults.certificateChain; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; - } public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile build() { - return new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile(certificateChain); + } + public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile build() { + final var o = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustFile(); + o.certificateChain = certificateChain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds.java index bc0c1d322ad..eef3969d7d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidation * @return The name of the secret for a virtual node's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * */ - private final String secretName; - - @CustomType.Constructor - private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds(@CustomType.Parameter("secretName") String secretName) { - this.secretName = secretName; - } + private String secretName; + private VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds() {} /** * @return The name of the secret for a virtual node's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String secretName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds defaults) { Objects.requireNonNull(defaults); this.secretName = defaults.secretName; } + @CustomType.Setter public Builder secretName(String secretName) { this.secretName = Objects.requireNonNull(secretName); return this; - } public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds build() { - return new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds(secretName); + } + public VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds build() { + final var o = new VirtualNodeSpecBackendVirtualServiceClientPolicyTlsValidationTrustSds(); + o.secretName = secretName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListener.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListener.java index 97daefd30bb..64ca31bc512 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListener.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListener.java @@ -20,49 +20,34 @@ public final class VirtualNodeSpecListener { * @return The connection pool information for the listener. * */ - private final @Nullable VirtualNodeSpecListenerConnectionPool connectionPool; + private @Nullable VirtualNodeSpecListenerConnectionPool connectionPool; /** * @return The health check information for the listener. * */ - private final @Nullable VirtualNodeSpecListenerHealthCheck healthCheck; + private @Nullable VirtualNodeSpecListenerHealthCheck healthCheck; /** * @return The outlier detection information for the listener. * */ - private final @Nullable VirtualNodeSpecListenerOutlierDetection outlierDetection; + private @Nullable VirtualNodeSpecListenerOutlierDetection outlierDetection; /** * @return The port mapping information for the listener. * */ - private final VirtualNodeSpecListenerPortMapping portMapping; + private VirtualNodeSpecListenerPortMapping portMapping; /** * @return Timeouts for different protocols. * */ - private final @Nullable VirtualNodeSpecListenerTimeout timeout; + private @Nullable VirtualNodeSpecListenerTimeout timeout; /** * @return The Transport Layer Security (TLS) properties for the listener * */ - private final @Nullable VirtualNodeSpecListenerTls tls; - - @CustomType.Constructor - private VirtualNodeSpecListener( - @CustomType.Parameter("connectionPool") @Nullable VirtualNodeSpecListenerConnectionPool connectionPool, - @CustomType.Parameter("healthCheck") @Nullable VirtualNodeSpecListenerHealthCheck healthCheck, - @CustomType.Parameter("outlierDetection") @Nullable VirtualNodeSpecListenerOutlierDetection outlierDetection, - @CustomType.Parameter("portMapping") VirtualNodeSpecListenerPortMapping portMapping, - @CustomType.Parameter("timeout") @Nullable VirtualNodeSpecListenerTimeout timeout, - @CustomType.Parameter("tls") @Nullable VirtualNodeSpecListenerTls tls) { - this.connectionPool = connectionPool; - this.healthCheck = healthCheck; - this.outlierDetection = outlierDetection; - this.portMapping = portMapping; - this.timeout = timeout; - this.tls = tls; - } + private @Nullable VirtualNodeSpecListenerTls tls; + private VirtualNodeSpecListener() {} /** * @return The connection pool information for the listener. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListener defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecListenerConnectionPool connectionPool; private @Nullable VirtualNodeSpecListenerHealthCheck healthCheck; @@ -121,11 +106,7 @@ public static final class Builder { private VirtualNodeSpecListenerPortMapping portMapping; private @Nullable VirtualNodeSpecListenerTimeout timeout; private @Nullable VirtualNodeSpecListenerTls tls; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListener defaults) { Objects.requireNonNull(defaults); this.connectionPool = defaults.connectionPool; @@ -136,31 +117,45 @@ public Builder(VirtualNodeSpecListener defaults) { this.tls = defaults.tls; } + @CustomType.Setter public Builder connectionPool(@Nullable VirtualNodeSpecListenerConnectionPool connectionPool) { this.connectionPool = connectionPool; return this; } + @CustomType.Setter public Builder healthCheck(@Nullable VirtualNodeSpecListenerHealthCheck healthCheck) { this.healthCheck = healthCheck; return this; } + @CustomType.Setter public Builder outlierDetection(@Nullable VirtualNodeSpecListenerOutlierDetection outlierDetection) { this.outlierDetection = outlierDetection; return this; } + @CustomType.Setter public Builder portMapping(VirtualNodeSpecListenerPortMapping portMapping) { this.portMapping = Objects.requireNonNull(portMapping); return this; } + @CustomType.Setter public Builder timeout(@Nullable VirtualNodeSpecListenerTimeout timeout) { this.timeout = timeout; return this; } + @CustomType.Setter public Builder tls(@Nullable VirtualNodeSpecListenerTls tls) { this.tls = tls; return this; - } public VirtualNodeSpecListener build() { - return new VirtualNodeSpecListener(connectionPool, healthCheck, outlierDetection, portMapping, timeout, tls); + } + public VirtualNodeSpecListener build() { + final var o = new VirtualNodeSpecListener(); + o.connectionPool = connectionPool; + o.healthCheck = healthCheck; + o.outlierDetection = outlierDetection; + o.portMapping = portMapping; + o.timeout = timeout; + o.tls = tls; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPool.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPool.java index 0fc2c2558f0..e46020872a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPool.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPool.java @@ -18,35 +18,24 @@ public final class VirtualNodeSpecListenerConnectionPool { * @return Connection pool information for gRPC listeners. * */ - private final @Nullable VirtualNodeSpecListenerConnectionPoolGrpc grpc; + private @Nullable VirtualNodeSpecListenerConnectionPoolGrpc grpc; /** * @return Connection pool information for HTTP listeners. * */ - private final @Nullable VirtualNodeSpecListenerConnectionPoolHttp http; + private @Nullable VirtualNodeSpecListenerConnectionPoolHttp http; /** * @return Connection pool information for HTTP2 listeners. * */ - private final @Nullable VirtualNodeSpecListenerConnectionPoolHttp2 http2; + private @Nullable VirtualNodeSpecListenerConnectionPoolHttp2 http2; /** * @return Connection pool information for TCP listeners. * */ - private final @Nullable VirtualNodeSpecListenerConnectionPoolTcp tcp; - - @CustomType.Constructor - private VirtualNodeSpecListenerConnectionPool( - @CustomType.Parameter("grpc") @Nullable VirtualNodeSpecListenerConnectionPoolGrpc grpc, - @CustomType.Parameter("http") @Nullable VirtualNodeSpecListenerConnectionPoolHttp http, - @CustomType.Parameter("http2") @Nullable VirtualNodeSpecListenerConnectionPoolHttp2 http2, - @CustomType.Parameter("tcp") @Nullable VirtualNodeSpecListenerConnectionPoolTcp tcp) { - this.grpc = grpc; - this.http = http; - this.http2 = http2; - this.tcp = tcp; - } + private @Nullable VirtualNodeSpecListenerConnectionPoolTcp tcp; + private VirtualNodeSpecListenerConnectionPool() {} /** * @return Connection pool information for gRPC listeners. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerConnectionPool defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecListenerConnectionPoolGrpc grpc; private @Nullable VirtualNodeSpecListenerConnectionPoolHttp http; private @Nullable VirtualNodeSpecListenerConnectionPoolHttp2 http2; private @Nullable VirtualNodeSpecListenerConnectionPoolTcp tcp; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerConnectionPool defaults) { Objects.requireNonNull(defaults); this.grpc = defaults.grpc; @@ -102,23 +87,33 @@ public Builder(VirtualNodeSpecListenerConnectionPool defaults) { this.tcp = defaults.tcp; } + @CustomType.Setter public Builder grpc(@Nullable VirtualNodeSpecListenerConnectionPoolGrpc grpc) { this.grpc = grpc; return this; } + @CustomType.Setter public Builder http(@Nullable VirtualNodeSpecListenerConnectionPoolHttp http) { this.http = http; return this; } + @CustomType.Setter public Builder http2(@Nullable VirtualNodeSpecListenerConnectionPoolHttp2 http2) { this.http2 = http2; return this; } + @CustomType.Setter public Builder tcp(@Nullable VirtualNodeSpecListenerConnectionPoolTcp tcp) { this.tcp = tcp; return this; - } public VirtualNodeSpecListenerConnectionPool build() { - return new VirtualNodeSpecListenerConnectionPool(grpc, http, http2, tcp); + } + public VirtualNodeSpecListenerConnectionPool build() { + final var o = new VirtualNodeSpecListenerConnectionPool(); + o.grpc = grpc; + o.http = http; + o.http2 = http2; + o.tcp = tcp; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolGrpc.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolGrpc.java index 43c64c494a1..fac2697d128 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolGrpc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolGrpc.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecListenerConnectionPoolGrpc { * @return Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of `1`. * */ - private final Integer maxRequests; - - @CustomType.Constructor - private VirtualNodeSpecListenerConnectionPoolGrpc(@CustomType.Parameter("maxRequests") Integer maxRequests) { - this.maxRequests = maxRequests; - } + private Integer maxRequests; + private VirtualNodeSpecListenerConnectionPoolGrpc() {} /** * @return Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of `1`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerConnectionPoolGrpc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxRequests; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerConnectionPoolGrpc defaults) { Objects.requireNonNull(defaults); this.maxRequests = defaults.maxRequests; } + @CustomType.Setter public Builder maxRequests(Integer maxRequests) { this.maxRequests = Objects.requireNonNull(maxRequests); return this; - } public VirtualNodeSpecListenerConnectionPoolGrpc build() { - return new VirtualNodeSpecListenerConnectionPoolGrpc(maxRequests); + } + public VirtualNodeSpecListenerConnectionPoolGrpc build() { + final var o = new VirtualNodeSpecListenerConnectionPoolGrpc(); + o.maxRequests = maxRequests; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolHttp.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolHttp.java index ed194beaad0..9e97cb2d8c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolHttp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolHttp.java @@ -15,21 +15,14 @@ public final class VirtualNodeSpecListenerConnectionPoolHttp { * @return Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of `1`. * */ - private final Integer maxConnections; + private Integer maxConnections; /** * @return Number of overflowing requests after `max_connections` Envoy will queue to upstream cluster. Minimum value of `1`. * */ - private final @Nullable Integer maxPendingRequests; - - @CustomType.Constructor - private VirtualNodeSpecListenerConnectionPoolHttp( - @CustomType.Parameter("maxConnections") Integer maxConnections, - @CustomType.Parameter("maxPendingRequests") @Nullable Integer maxPendingRequests) { - this.maxConnections = maxConnections; - this.maxPendingRequests = maxPendingRequests; - } + private @Nullable Integer maxPendingRequests; + private VirtualNodeSpecListenerConnectionPoolHttp() {} /** * @return Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of `1`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerConnectionPoolHttp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxConnections; private @Nullable Integer maxPendingRequests; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerConnectionPoolHttp defaults) { Objects.requireNonNull(defaults); this.maxConnections = defaults.maxConnections; this.maxPendingRequests = defaults.maxPendingRequests; } + @CustomType.Setter public Builder maxConnections(Integer maxConnections) { this.maxConnections = Objects.requireNonNull(maxConnections); return this; } + @CustomType.Setter public Builder maxPendingRequests(@Nullable Integer maxPendingRequests) { this.maxPendingRequests = maxPendingRequests; return this; - } public VirtualNodeSpecListenerConnectionPoolHttp build() { - return new VirtualNodeSpecListenerConnectionPoolHttp(maxConnections, maxPendingRequests); + } + public VirtualNodeSpecListenerConnectionPoolHttp build() { + final var o = new VirtualNodeSpecListenerConnectionPoolHttp(); + o.maxConnections = maxConnections; + o.maxPendingRequests = maxPendingRequests; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolHttp2.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolHttp2.java index 6dd64d208d3..a017bc21273 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolHttp2.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolHttp2.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecListenerConnectionPoolHttp2 { * @return Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of `1`. * */ - private final Integer maxRequests; - - @CustomType.Constructor - private VirtualNodeSpecListenerConnectionPoolHttp2(@CustomType.Parameter("maxRequests") Integer maxRequests) { - this.maxRequests = maxRequests; - } + private Integer maxRequests; + private VirtualNodeSpecListenerConnectionPoolHttp2() {} /** * @return Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster. Minimum value of `1`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerConnectionPoolHttp2 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxRequests; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerConnectionPoolHttp2 defaults) { Objects.requireNonNull(defaults); this.maxRequests = defaults.maxRequests; } + @CustomType.Setter public Builder maxRequests(Integer maxRequests) { this.maxRequests = Objects.requireNonNull(maxRequests); return this; - } public VirtualNodeSpecListenerConnectionPoolHttp2 build() { - return new VirtualNodeSpecListenerConnectionPoolHttp2(maxRequests); + } + public VirtualNodeSpecListenerConnectionPoolHttp2 build() { + final var o = new VirtualNodeSpecListenerConnectionPoolHttp2(); + o.maxRequests = maxRequests; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolTcp.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolTcp.java index 2d549724490..5924bba49f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolTcp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerConnectionPoolTcp.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecListenerConnectionPoolTcp { * @return Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of `1`. * */ - private final Integer maxConnections; - - @CustomType.Constructor - private VirtualNodeSpecListenerConnectionPoolTcp(@CustomType.Parameter("maxConnections") Integer maxConnections) { - this.maxConnections = maxConnections; - } + private Integer maxConnections; + private VirtualNodeSpecListenerConnectionPoolTcp() {} /** * @return Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster. Minimum value of `1`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerConnectionPoolTcp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxConnections; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerConnectionPoolTcp defaults) { Objects.requireNonNull(defaults); this.maxConnections = defaults.maxConnections; } + @CustomType.Setter public Builder maxConnections(Integer maxConnections) { this.maxConnections = Objects.requireNonNull(maxConnections); return this; - } public VirtualNodeSpecListenerConnectionPoolTcp build() { - return new VirtualNodeSpecListenerConnectionPoolTcp(maxConnections); + } + public VirtualNodeSpecListenerConnectionPoolTcp build() { + final var o = new VirtualNodeSpecListenerConnectionPoolTcp(); + o.maxConnections = maxConnections; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerHealthCheck.java index b8f3184d61d..3d1e3d9c94e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerHealthCheck.java @@ -16,56 +16,39 @@ public final class VirtualNodeSpecListenerHealthCheck { * @return The number of consecutive successful health checks that must occur before declaring listener healthy. * */ - private final Integer healthyThreshold; + private Integer healthyThreshold; /** * @return The time period in milliseconds between each health check execution. * */ - private final Integer intervalMillis; + private Integer intervalMillis; /** * @return The destination path for the health check request. This is only required if the specified protocol is `http` or `http2`. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return The destination port for the health check request. This port must match the port defined in the `port_mapping` for the listener. * */ - private final @Nullable Integer port; + private @Nullable Integer port; /** * @return The protocol for the health check request. Valid values are `http`, `http2`, `tcp` and `grpc`. * */ - private final String protocol; + private String protocol; /** * @return The amount of time to wait when receiving a response from the health check, in milliseconds. * */ - private final Integer timeoutMillis; + private Integer timeoutMillis; /** * @return The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy. * */ - private final Integer unhealthyThreshold; - - @CustomType.Constructor - private VirtualNodeSpecListenerHealthCheck( - @CustomType.Parameter("healthyThreshold") Integer healthyThreshold, - @CustomType.Parameter("intervalMillis") Integer intervalMillis, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable Integer port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("timeoutMillis") Integer timeoutMillis, - @CustomType.Parameter("unhealthyThreshold") Integer unhealthyThreshold) { - this.healthyThreshold = healthyThreshold; - this.intervalMillis = intervalMillis; - this.path = path; - this.port = port; - this.protocol = protocol; - this.timeoutMillis = timeoutMillis; - this.unhealthyThreshold = unhealthyThreshold; - } + private Integer unhealthyThreshold; + private VirtualNodeSpecListenerHealthCheck() {} /** * @return The number of consecutive successful health checks that must occur before declaring listener healthy. * @@ -123,7 +106,7 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer healthyThreshold; private Integer intervalMillis; @@ -132,11 +115,7 @@ public static final class Builder { private String protocol; private Integer timeoutMillis; private Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerHealthCheck defaults) { Objects.requireNonNull(defaults); this.healthyThreshold = defaults.healthyThreshold; @@ -148,35 +127,51 @@ public Builder(VirtualNodeSpecListenerHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder healthyThreshold(Integer healthyThreshold) { this.healthyThreshold = Objects.requireNonNull(healthyThreshold); return this; } + @CustomType.Setter public Builder intervalMillis(Integer intervalMillis) { this.intervalMillis = Objects.requireNonNull(intervalMillis); return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder timeoutMillis(Integer timeoutMillis) { this.timeoutMillis = Objects.requireNonNull(timeoutMillis); return this; } + @CustomType.Setter public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.unhealthyThreshold = Objects.requireNonNull(unhealthyThreshold); return this; - } public VirtualNodeSpecListenerHealthCheck build() { - return new VirtualNodeSpecListenerHealthCheck(healthyThreshold, intervalMillis, path, port, protocol, timeoutMillis, unhealthyThreshold); + } + public VirtualNodeSpecListenerHealthCheck build() { + final var o = new VirtualNodeSpecListenerHealthCheck(); + o.healthyThreshold = healthyThreshold; + o.intervalMillis = intervalMillis; + o.path = path; + o.port = port; + o.protocol = protocol; + o.timeoutMillis = timeoutMillis; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerOutlierDetection.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerOutlierDetection.java index 579a8a9c134..ce982b7593a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerOutlierDetection.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerOutlierDetection.java @@ -15,36 +15,25 @@ public final class VirtualNodeSpecListenerOutlierDetection { * @return The base amount of time for which a host is ejected. * */ - private final VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration baseEjectionDuration; + private VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration baseEjectionDuration; /** * @return The time interval between ejection sweep analysis. * */ - private final VirtualNodeSpecListenerOutlierDetectionInterval interval; + private VirtualNodeSpecListenerOutlierDetectionInterval interval; /** * @return Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value. * Minimum value of `0`. Maximum value of `100`. * */ - private final Integer maxEjectionPercent; + private Integer maxEjectionPercent; /** * @return Number of consecutive `5xx` errors required for ejection. Minimum value of `1`. * */ - private final Integer maxServerErrors; - - @CustomType.Constructor - private VirtualNodeSpecListenerOutlierDetection( - @CustomType.Parameter("baseEjectionDuration") VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration baseEjectionDuration, - @CustomType.Parameter("interval") VirtualNodeSpecListenerOutlierDetectionInterval interval, - @CustomType.Parameter("maxEjectionPercent") Integer maxEjectionPercent, - @CustomType.Parameter("maxServerErrors") Integer maxServerErrors) { - this.baseEjectionDuration = baseEjectionDuration; - this.interval = interval; - this.maxEjectionPercent = maxEjectionPercent; - this.maxServerErrors = maxServerErrors; - } + private Integer maxServerErrors; + private VirtualNodeSpecListenerOutlierDetection() {} /** * @return The base amount of time for which a host is ejected. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerOutlierDetection defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration baseEjectionDuration; private VirtualNodeSpecListenerOutlierDetectionInterval interval; private Integer maxEjectionPercent; private Integer maxServerErrors; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerOutlierDetection defaults) { Objects.requireNonNull(defaults); this.baseEjectionDuration = defaults.baseEjectionDuration; @@ -101,23 +86,33 @@ public Builder(VirtualNodeSpecListenerOutlierDetection defaults) { this.maxServerErrors = defaults.maxServerErrors; } + @CustomType.Setter public Builder baseEjectionDuration(VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration baseEjectionDuration) { this.baseEjectionDuration = Objects.requireNonNull(baseEjectionDuration); return this; } + @CustomType.Setter public Builder interval(VirtualNodeSpecListenerOutlierDetectionInterval interval) { this.interval = Objects.requireNonNull(interval); return this; } + @CustomType.Setter public Builder maxEjectionPercent(Integer maxEjectionPercent) { this.maxEjectionPercent = Objects.requireNonNull(maxEjectionPercent); return this; } + @CustomType.Setter public Builder maxServerErrors(Integer maxServerErrors) { this.maxServerErrors = Objects.requireNonNull(maxServerErrors); return this; - } public VirtualNodeSpecListenerOutlierDetection build() { - return new VirtualNodeSpecListenerOutlierDetection(baseEjectionDuration, interval, maxEjectionPercent, maxServerErrors); + } + public VirtualNodeSpecListenerOutlierDetection build() { + final var o = new VirtualNodeSpecListenerOutlierDetection(); + o.baseEjectionDuration = baseEjectionDuration; + o.interval = interval; + o.maxEjectionPercent = maxEjectionPercent; + o.maxServerErrors = maxServerErrors; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration.java index 3d7177948d8..fb35c1f3949 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration.java @@ -14,21 +14,14 @@ public final class VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration build() { - return new VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration(unit, value); + } + public VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration build() { + final var o = new VirtualNodeSpecListenerOutlierDetectionBaseEjectionDuration(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerOutlierDetectionInterval.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerOutlierDetectionInterval.java index f8f42676c1e..c401b69c95d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerOutlierDetectionInterval.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerOutlierDetectionInterval.java @@ -14,21 +14,14 @@ public final class VirtualNodeSpecListenerOutlierDetectionInterval { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private VirtualNodeSpecListenerOutlierDetectionInterval( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private VirtualNodeSpecListenerOutlierDetectionInterval() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerOutlierDetectionInterval defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerOutlierDetectionInterval defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public VirtualNodeSpecListenerOutlierDetectionInterval build() { - return new VirtualNodeSpecListenerOutlierDetectionInterval(unit, value); + } + public VirtualNodeSpecListenerOutlierDetectionInterval build() { + final var o = new VirtualNodeSpecListenerOutlierDetectionInterval(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerPortMapping.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerPortMapping.java index 510698dfe51..26379545ddf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerPortMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerPortMapping.java @@ -14,21 +14,14 @@ public final class VirtualNodeSpecListenerPortMapping { * @return The port used for the port mapping. * */ - private final Integer port; + private Integer port; /** * @return The protocol used for the port mapping. Valid values are `http`, `http2`, `tcp` and `grpc`. * */ - private final String protocol; - - @CustomType.Constructor - private VirtualNodeSpecListenerPortMapping( - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("protocol") String protocol) { - this.port = port; - this.protocol = protocol; - } + private String protocol; + private VirtualNodeSpecListenerPortMapping() {} /** * @return The port used for the port mapping. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerPortMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer port; private String protocol; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerPortMapping defaults) { Objects.requireNonNull(defaults); this.port = defaults.port; this.protocol = defaults.protocol; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; - } public VirtualNodeSpecListenerPortMapping build() { - return new VirtualNodeSpecListenerPortMapping(port, protocol); + } + public VirtualNodeSpecListenerPortMapping build() { + final var o = new VirtualNodeSpecListenerPortMapping(); + o.port = port; + o.protocol = protocol; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeout.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeout.java index 5cba84a8edb..674f2f14c9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeout.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeout.java @@ -18,35 +18,24 @@ public final class VirtualNodeSpecListenerTimeout { * @return Timeouts for gRPC listeners. * */ - private final @Nullable VirtualNodeSpecListenerTimeoutGrpc grpc; + private @Nullable VirtualNodeSpecListenerTimeoutGrpc grpc; /** * @return Timeouts for HTTP listeners. * */ - private final @Nullable VirtualNodeSpecListenerTimeoutHttp http; + private @Nullable VirtualNodeSpecListenerTimeoutHttp http; /** * @return Timeouts for HTTP2 listeners. * */ - private final @Nullable VirtualNodeSpecListenerTimeoutHttp2 http2; + private @Nullable VirtualNodeSpecListenerTimeoutHttp2 http2; /** * @return Timeouts for TCP listeners. * */ - private final @Nullable VirtualNodeSpecListenerTimeoutTcp tcp; - - @CustomType.Constructor - private VirtualNodeSpecListenerTimeout( - @CustomType.Parameter("grpc") @Nullable VirtualNodeSpecListenerTimeoutGrpc grpc, - @CustomType.Parameter("http") @Nullable VirtualNodeSpecListenerTimeoutHttp http, - @CustomType.Parameter("http2") @Nullable VirtualNodeSpecListenerTimeoutHttp2 http2, - @CustomType.Parameter("tcp") @Nullable VirtualNodeSpecListenerTimeoutTcp tcp) { - this.grpc = grpc; - this.http = http; - this.http2 = http2; - this.tcp = tcp; - } + private @Nullable VirtualNodeSpecListenerTimeoutTcp tcp; + private VirtualNodeSpecListenerTimeout() {} /** * @return Timeouts for gRPC listeners. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTimeout defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecListenerTimeoutGrpc grpc; private @Nullable VirtualNodeSpecListenerTimeoutHttp http; private @Nullable VirtualNodeSpecListenerTimeoutHttp2 http2; private @Nullable VirtualNodeSpecListenerTimeoutTcp tcp; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTimeout defaults) { Objects.requireNonNull(defaults); this.grpc = defaults.grpc; @@ -102,23 +87,33 @@ public Builder(VirtualNodeSpecListenerTimeout defaults) { this.tcp = defaults.tcp; } + @CustomType.Setter public Builder grpc(@Nullable VirtualNodeSpecListenerTimeoutGrpc grpc) { this.grpc = grpc; return this; } + @CustomType.Setter public Builder http(@Nullable VirtualNodeSpecListenerTimeoutHttp http) { this.http = http; return this; } + @CustomType.Setter public Builder http2(@Nullable VirtualNodeSpecListenerTimeoutHttp2 http2) { this.http2 = http2; return this; } + @CustomType.Setter public Builder tcp(@Nullable VirtualNodeSpecListenerTimeoutTcp tcp) { this.tcp = tcp; return this; - } public VirtualNodeSpecListenerTimeout build() { - return new VirtualNodeSpecListenerTimeout(grpc, http, http2, tcp); + } + public VirtualNodeSpecListenerTimeout build() { + final var o = new VirtualNodeSpecListenerTimeout(); + o.grpc = grpc; + o.http = http; + o.http2 = http2; + o.tcp = tcp; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutGrpc.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutGrpc.java index c51a0af7e9a..a0a95d484ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutGrpc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutGrpc.java @@ -16,21 +16,14 @@ public final class VirtualNodeSpecListenerTimeoutGrpc { * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * */ - private final @Nullable VirtualNodeSpecListenerTimeoutGrpcIdle idle; + private @Nullable VirtualNodeSpecListenerTimeoutGrpcIdle idle; /** * @return The per request timeout. * */ - private final @Nullable VirtualNodeSpecListenerTimeoutGrpcPerRequest perRequest; - - @CustomType.Constructor - private VirtualNodeSpecListenerTimeoutGrpc( - @CustomType.Parameter("idle") @Nullable VirtualNodeSpecListenerTimeoutGrpcIdle idle, - @CustomType.Parameter("perRequest") @Nullable VirtualNodeSpecListenerTimeoutGrpcPerRequest perRequest) { - this.idle = idle; - this.perRequest = perRequest; - } + private @Nullable VirtualNodeSpecListenerTimeoutGrpcPerRequest perRequest; + private VirtualNodeSpecListenerTimeoutGrpc() {} /** * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTimeoutGrpc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecListenerTimeoutGrpcIdle idle; private @Nullable VirtualNodeSpecListenerTimeoutGrpcPerRequest perRequest; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTimeoutGrpc defaults) { Objects.requireNonNull(defaults); this.idle = defaults.idle; this.perRequest = defaults.perRequest; } + @CustomType.Setter public Builder idle(@Nullable VirtualNodeSpecListenerTimeoutGrpcIdle idle) { this.idle = idle; return this; } + @CustomType.Setter public Builder perRequest(@Nullable VirtualNodeSpecListenerTimeoutGrpcPerRequest perRequest) { this.perRequest = perRequest; return this; - } public VirtualNodeSpecListenerTimeoutGrpc build() { - return new VirtualNodeSpecListenerTimeoutGrpc(idle, perRequest); + } + public VirtualNodeSpecListenerTimeoutGrpc build() { + final var o = new VirtualNodeSpecListenerTimeoutGrpc(); + o.idle = idle; + o.perRequest = perRequest; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutGrpcIdle.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutGrpcIdle.java index 5f8cc40d7d9..a2ae5bf0045 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutGrpcIdle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutGrpcIdle.java @@ -14,21 +14,14 @@ public final class VirtualNodeSpecListenerTimeoutGrpcIdle { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private VirtualNodeSpecListenerTimeoutGrpcIdle( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private VirtualNodeSpecListenerTimeoutGrpcIdle() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTimeoutGrpcIdle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTimeoutGrpcIdle defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public VirtualNodeSpecListenerTimeoutGrpcIdle build() { - return new VirtualNodeSpecListenerTimeoutGrpcIdle(unit, value); + } + public VirtualNodeSpecListenerTimeoutGrpcIdle build() { + final var o = new VirtualNodeSpecListenerTimeoutGrpcIdle(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutGrpcPerRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutGrpcPerRequest.java index b87e943c44b..ff6040cbf21 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutGrpcPerRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutGrpcPerRequest.java @@ -14,21 +14,14 @@ public final class VirtualNodeSpecListenerTimeoutGrpcPerRequest { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private VirtualNodeSpecListenerTimeoutGrpcPerRequest( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private VirtualNodeSpecListenerTimeoutGrpcPerRequest() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTimeoutGrpcPerRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTimeoutGrpcPerRequest defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public VirtualNodeSpecListenerTimeoutGrpcPerRequest build() { - return new VirtualNodeSpecListenerTimeoutGrpcPerRequest(unit, value); + } + public VirtualNodeSpecListenerTimeoutGrpcPerRequest build() { + final var o = new VirtualNodeSpecListenerTimeoutGrpcPerRequest(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp.java index 4a9322d500e..50e3e572775 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp.java @@ -16,21 +16,14 @@ public final class VirtualNodeSpecListenerTimeoutHttp { * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * */ - private final @Nullable VirtualNodeSpecListenerTimeoutHttpIdle idle; + private @Nullable VirtualNodeSpecListenerTimeoutHttpIdle idle; /** * @return The per request timeout. * */ - private final @Nullable VirtualNodeSpecListenerTimeoutHttpPerRequest perRequest; - - @CustomType.Constructor - private VirtualNodeSpecListenerTimeoutHttp( - @CustomType.Parameter("idle") @Nullable VirtualNodeSpecListenerTimeoutHttpIdle idle, - @CustomType.Parameter("perRequest") @Nullable VirtualNodeSpecListenerTimeoutHttpPerRequest perRequest) { - this.idle = idle; - this.perRequest = perRequest; - } + private @Nullable VirtualNodeSpecListenerTimeoutHttpPerRequest perRequest; + private VirtualNodeSpecListenerTimeoutHttp() {} /** * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTimeoutHttp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecListenerTimeoutHttpIdle idle; private @Nullable VirtualNodeSpecListenerTimeoutHttpPerRequest perRequest; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTimeoutHttp defaults) { Objects.requireNonNull(defaults); this.idle = defaults.idle; this.perRequest = defaults.perRequest; } + @CustomType.Setter public Builder idle(@Nullable VirtualNodeSpecListenerTimeoutHttpIdle idle) { this.idle = idle; return this; } + @CustomType.Setter public Builder perRequest(@Nullable VirtualNodeSpecListenerTimeoutHttpPerRequest perRequest) { this.perRequest = perRequest; return this; - } public VirtualNodeSpecListenerTimeoutHttp build() { - return new VirtualNodeSpecListenerTimeoutHttp(idle, perRequest); + } + public VirtualNodeSpecListenerTimeoutHttp build() { + final var o = new VirtualNodeSpecListenerTimeoutHttp(); + o.idle = idle; + o.perRequest = perRequest; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp2.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp2.java index 439f9cfbfcd..dff88fd0725 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp2.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp2.java @@ -16,21 +16,14 @@ public final class VirtualNodeSpecListenerTimeoutHttp2 { * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * */ - private final @Nullable VirtualNodeSpecListenerTimeoutHttp2Idle idle; + private @Nullable VirtualNodeSpecListenerTimeoutHttp2Idle idle; /** * @return The per request timeout. * */ - private final @Nullable VirtualNodeSpecListenerTimeoutHttp2PerRequest perRequest; - - @CustomType.Constructor - private VirtualNodeSpecListenerTimeoutHttp2( - @CustomType.Parameter("idle") @Nullable VirtualNodeSpecListenerTimeoutHttp2Idle idle, - @CustomType.Parameter("perRequest") @Nullable VirtualNodeSpecListenerTimeoutHttp2PerRequest perRequest) { - this.idle = idle; - this.perRequest = perRequest; - } + private @Nullable VirtualNodeSpecListenerTimeoutHttp2PerRequest perRequest; + private VirtualNodeSpecListenerTimeoutHttp2() {} /** * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTimeoutHttp2 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecListenerTimeoutHttp2Idle idle; private @Nullable VirtualNodeSpecListenerTimeoutHttp2PerRequest perRequest; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTimeoutHttp2 defaults) { Objects.requireNonNull(defaults); this.idle = defaults.idle; this.perRequest = defaults.perRequest; } + @CustomType.Setter public Builder idle(@Nullable VirtualNodeSpecListenerTimeoutHttp2Idle idle) { this.idle = idle; return this; } + @CustomType.Setter public Builder perRequest(@Nullable VirtualNodeSpecListenerTimeoutHttp2PerRequest perRequest) { this.perRequest = perRequest; return this; - } public VirtualNodeSpecListenerTimeoutHttp2 build() { - return new VirtualNodeSpecListenerTimeoutHttp2(idle, perRequest); + } + public VirtualNodeSpecListenerTimeoutHttp2 build() { + final var o = new VirtualNodeSpecListenerTimeoutHttp2(); + o.idle = idle; + o.perRequest = perRequest; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp2Idle.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp2Idle.java index c932f2401fb..e45a7c6bec4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp2Idle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp2Idle.java @@ -14,21 +14,14 @@ public final class VirtualNodeSpecListenerTimeoutHttp2Idle { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private VirtualNodeSpecListenerTimeoutHttp2Idle( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private VirtualNodeSpecListenerTimeoutHttp2Idle() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTimeoutHttp2Idle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTimeoutHttp2Idle defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public VirtualNodeSpecListenerTimeoutHttp2Idle build() { - return new VirtualNodeSpecListenerTimeoutHttp2Idle(unit, value); + } + public VirtualNodeSpecListenerTimeoutHttp2Idle build() { + final var o = new VirtualNodeSpecListenerTimeoutHttp2Idle(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp2PerRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp2PerRequest.java index 812e70e66e6..a04a52998eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp2PerRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttp2PerRequest.java @@ -14,21 +14,14 @@ public final class VirtualNodeSpecListenerTimeoutHttp2PerRequest { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private VirtualNodeSpecListenerTimeoutHttp2PerRequest( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private VirtualNodeSpecListenerTimeoutHttp2PerRequest() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTimeoutHttp2PerRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTimeoutHttp2PerRequest defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public VirtualNodeSpecListenerTimeoutHttp2PerRequest build() { - return new VirtualNodeSpecListenerTimeoutHttp2PerRequest(unit, value); + } + public VirtualNodeSpecListenerTimeoutHttp2PerRequest build() { + final var o = new VirtualNodeSpecListenerTimeoutHttp2PerRequest(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttpIdle.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttpIdle.java index 86c66ab5894..8e31a459722 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttpIdle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttpIdle.java @@ -14,21 +14,14 @@ public final class VirtualNodeSpecListenerTimeoutHttpIdle { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private VirtualNodeSpecListenerTimeoutHttpIdle( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private VirtualNodeSpecListenerTimeoutHttpIdle() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTimeoutHttpIdle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTimeoutHttpIdle defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public VirtualNodeSpecListenerTimeoutHttpIdle build() { - return new VirtualNodeSpecListenerTimeoutHttpIdle(unit, value); + } + public VirtualNodeSpecListenerTimeoutHttpIdle build() { + final var o = new VirtualNodeSpecListenerTimeoutHttpIdle(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttpPerRequest.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttpPerRequest.java index 2e8d0d16e7a..05c5dee38a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttpPerRequest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutHttpPerRequest.java @@ -14,21 +14,14 @@ public final class VirtualNodeSpecListenerTimeoutHttpPerRequest { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private VirtualNodeSpecListenerTimeoutHttpPerRequest( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private VirtualNodeSpecListenerTimeoutHttpPerRequest() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTimeoutHttpPerRequest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTimeoutHttpPerRequest defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public VirtualNodeSpecListenerTimeoutHttpPerRequest build() { - return new VirtualNodeSpecListenerTimeoutHttpPerRequest(unit, value); + } + public VirtualNodeSpecListenerTimeoutHttpPerRequest build() { + final var o = new VirtualNodeSpecListenerTimeoutHttpPerRequest(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutTcp.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutTcp.java index 96b4c82d7e9..018504b0926 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutTcp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutTcp.java @@ -15,13 +15,9 @@ public final class VirtualNodeSpecListenerTimeoutTcp { * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * */ - private final @Nullable VirtualNodeSpecListenerTimeoutTcpIdle idle; - - @CustomType.Constructor - private VirtualNodeSpecListenerTimeoutTcp(@CustomType.Parameter("idle") @Nullable VirtualNodeSpecListenerTimeoutTcpIdle idle) { - this.idle = idle; - } + private @Nullable VirtualNodeSpecListenerTimeoutTcpIdle idle; + private VirtualNodeSpecListenerTimeoutTcp() {} /** * @return The idle timeout. An idle timeout bounds the amount of time that a connection may be idle. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTimeoutTcp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecListenerTimeoutTcpIdle idle; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTimeoutTcp defaults) { Objects.requireNonNull(defaults); this.idle = defaults.idle; } + @CustomType.Setter public Builder idle(@Nullable VirtualNodeSpecListenerTimeoutTcpIdle idle) { this.idle = idle; return this; - } public VirtualNodeSpecListenerTimeoutTcp build() { - return new VirtualNodeSpecListenerTimeoutTcp(idle); + } + public VirtualNodeSpecListenerTimeoutTcp build() { + final var o = new VirtualNodeSpecListenerTimeoutTcp(); + o.idle = idle; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutTcpIdle.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutTcpIdle.java index 16ab8598695..dcc4e2c4244 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutTcpIdle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTimeoutTcpIdle.java @@ -14,21 +14,14 @@ public final class VirtualNodeSpecListenerTimeoutTcpIdle { * @return The unit of time. Valid values: `ms`, `s`. * */ - private final String unit; + private String unit; /** * @return The number of time units. Minimum value of `0`. * */ - private final Integer value; - - @CustomType.Constructor - private VirtualNodeSpecListenerTimeoutTcpIdle( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private VirtualNodeSpecListenerTimeoutTcpIdle() {} /** * @return The unit of time. Valid values: `ms`, `s`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTimeoutTcpIdle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTimeoutTcpIdle defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public VirtualNodeSpecListenerTimeoutTcpIdle build() { - return new VirtualNodeSpecListenerTimeoutTcpIdle(unit, value); + } + public VirtualNodeSpecListenerTimeoutTcpIdle build() { + final var o = new VirtualNodeSpecListenerTimeoutTcpIdle(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTls.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTls.java index cb4a82adfb2..782dea5bf18 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTls.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTls.java @@ -17,28 +17,19 @@ public final class VirtualNodeSpecListenerTls { * @return The listener's TLS certificate. * */ - private final VirtualNodeSpecListenerTlsCertificate certificate; + private VirtualNodeSpecListenerTlsCertificate certificate; /** * @return The listener's TLS mode. Valid values: `DISABLED`, `PERMISSIVE`, `STRICT`. * */ - private final String mode; + private String mode; /** * @return The listener's Transport Layer Security (TLS) validation context. * */ - private final @Nullable VirtualNodeSpecListenerTlsValidation validation; - - @CustomType.Constructor - private VirtualNodeSpecListenerTls( - @CustomType.Parameter("certificate") VirtualNodeSpecListenerTlsCertificate certificate, - @CustomType.Parameter("mode") String mode, - @CustomType.Parameter("validation") @Nullable VirtualNodeSpecListenerTlsValidation validation) { - this.certificate = certificate; - this.mode = mode; - this.validation = validation; - } + private @Nullable VirtualNodeSpecListenerTlsValidation validation; + private VirtualNodeSpecListenerTls() {} /** * @return The listener's TLS certificate. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTls defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private VirtualNodeSpecListenerTlsCertificate certificate; private String mode; private @Nullable VirtualNodeSpecListenerTlsValidation validation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTls defaults) { Objects.requireNonNull(defaults); this.certificate = defaults.certificate; @@ -85,19 +72,27 @@ public Builder(VirtualNodeSpecListenerTls defaults) { this.validation = defaults.validation; } + @CustomType.Setter public Builder certificate(VirtualNodeSpecListenerTlsCertificate certificate) { this.certificate = Objects.requireNonNull(certificate); return this; } + @CustomType.Setter public Builder mode(String mode) { this.mode = Objects.requireNonNull(mode); return this; } + @CustomType.Setter public Builder validation(@Nullable VirtualNodeSpecListenerTlsValidation validation) { this.validation = validation; return this; - } public VirtualNodeSpecListenerTls build() { - return new VirtualNodeSpecListenerTls(certificate, mode, validation); + } + public VirtualNodeSpecListenerTls build() { + final var o = new VirtualNodeSpecListenerTls(); + o.certificate = certificate; + o.mode = mode; + o.validation = validation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificate.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificate.java index 0c41babab40..bc3f576874e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificate.java @@ -17,28 +17,19 @@ public final class VirtualNodeSpecListenerTlsCertificate { * @return An AWS Certificate Manager (ACM) certificate. * */ - private final @Nullable VirtualNodeSpecListenerTlsCertificateAcm acm; + private @Nullable VirtualNodeSpecListenerTlsCertificateAcm acm; /** * @return A local file certificate. * */ - private final @Nullable VirtualNodeSpecListenerTlsCertificateFile file; + private @Nullable VirtualNodeSpecListenerTlsCertificateFile file; /** * @return A [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate. * */ - private final @Nullable VirtualNodeSpecListenerTlsCertificateSds sds; - - @CustomType.Constructor - private VirtualNodeSpecListenerTlsCertificate( - @CustomType.Parameter("acm") @Nullable VirtualNodeSpecListenerTlsCertificateAcm acm, - @CustomType.Parameter("file") @Nullable VirtualNodeSpecListenerTlsCertificateFile file, - @CustomType.Parameter("sds") @Nullable VirtualNodeSpecListenerTlsCertificateSds sds) { - this.acm = acm; - this.file = file; - this.sds = sds; - } + private @Nullable VirtualNodeSpecListenerTlsCertificateSds sds; + private VirtualNodeSpecListenerTlsCertificate() {} /** * @return An AWS Certificate Manager (ACM) certificate. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTlsCertificate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecListenerTlsCertificateAcm acm; private @Nullable VirtualNodeSpecListenerTlsCertificateFile file; private @Nullable VirtualNodeSpecListenerTlsCertificateSds sds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTlsCertificate defaults) { Objects.requireNonNull(defaults); this.acm = defaults.acm; @@ -85,19 +72,27 @@ public Builder(VirtualNodeSpecListenerTlsCertificate defaults) { this.sds = defaults.sds; } + @CustomType.Setter public Builder acm(@Nullable VirtualNodeSpecListenerTlsCertificateAcm acm) { this.acm = acm; return this; } + @CustomType.Setter public Builder file(@Nullable VirtualNodeSpecListenerTlsCertificateFile file) { this.file = file; return this; } + @CustomType.Setter public Builder sds(@Nullable VirtualNodeSpecListenerTlsCertificateSds sds) { this.sds = sds; return this; - } public VirtualNodeSpecListenerTlsCertificate build() { - return new VirtualNodeSpecListenerTlsCertificate(acm, file, sds); + } + public VirtualNodeSpecListenerTlsCertificate build() { + final var o = new VirtualNodeSpecListenerTlsCertificate(); + o.acm = acm; + o.file = file; + o.sds = sds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificateAcm.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificateAcm.java index c74b4da7f06..665c2add2dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificateAcm.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificateAcm.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecListenerTlsCertificateAcm { * @return The Amazon Resource Name (ARN) for the certificate. * */ - private final String certificateArn; - - @CustomType.Constructor - private VirtualNodeSpecListenerTlsCertificateAcm(@CustomType.Parameter("certificateArn") String certificateArn) { - this.certificateArn = certificateArn; - } + private String certificateArn; + private VirtualNodeSpecListenerTlsCertificateAcm() {} /** * @return The Amazon Resource Name (ARN) for the certificate. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTlsCertificateAcm defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTlsCertificateAcm defaults) { Objects.requireNonNull(defaults); this.certificateArn = defaults.certificateArn; } + @CustomType.Setter public Builder certificateArn(String certificateArn) { this.certificateArn = Objects.requireNonNull(certificateArn); return this; - } public VirtualNodeSpecListenerTlsCertificateAcm build() { - return new VirtualNodeSpecListenerTlsCertificateAcm(certificateArn); + } + public VirtualNodeSpecListenerTlsCertificateAcm build() { + final var o = new VirtualNodeSpecListenerTlsCertificateAcm(); + o.certificateArn = certificateArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificateFile.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificateFile.java index 6c04fe740c5..43369dafad7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificateFile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificateFile.java @@ -13,21 +13,14 @@ public final class VirtualNodeSpecListenerTlsCertificateFile { * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String certificateChain; + private String certificateChain; /** * @return The private key for a certificate stored on the file system of the virtual node that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String privateKey; - - @CustomType.Constructor - private VirtualNodeSpecListenerTlsCertificateFile( - @CustomType.Parameter("certificateChain") String certificateChain, - @CustomType.Parameter("privateKey") String privateKey) { - this.certificateChain = certificateChain; - this.privateKey = privateKey; - } + private String privateKey; + private VirtualNodeSpecListenerTlsCertificateFile() {} /** * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTlsCertificateFile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateChain; private String privateKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTlsCertificateFile defaults) { Objects.requireNonNull(defaults); this.certificateChain = defaults.certificateChain; this.privateKey = defaults.privateKey; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; } + @CustomType.Setter public Builder privateKey(String privateKey) { this.privateKey = Objects.requireNonNull(privateKey); return this; - } public VirtualNodeSpecListenerTlsCertificateFile build() { - return new VirtualNodeSpecListenerTlsCertificateFile(certificateChain, privateKey); + } + public VirtualNodeSpecListenerTlsCertificateFile build() { + final var o = new VirtualNodeSpecListenerTlsCertificateFile(); + o.certificateChain = certificateChain; + o.privateKey = privateKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificateSds.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificateSds.java index 1edc812cff7..4ff33b06e10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificateSds.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsCertificateSds.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecListenerTlsCertificateSds { * @return The name of the secret for a virtual node's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * */ - private final String secretName; - - @CustomType.Constructor - private VirtualNodeSpecListenerTlsCertificateSds(@CustomType.Parameter("secretName") String secretName) { - this.secretName = secretName; - } + private String secretName; + private VirtualNodeSpecListenerTlsCertificateSds() {} /** * @return The name of the secret for a virtual node's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTlsCertificateSds defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String secretName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTlsCertificateSds defaults) { Objects.requireNonNull(defaults); this.secretName = defaults.secretName; } + @CustomType.Setter public Builder secretName(String secretName) { this.secretName = Objects.requireNonNull(secretName); return this; - } public VirtualNodeSpecListenerTlsCertificateSds build() { - return new VirtualNodeSpecListenerTlsCertificateSds(secretName); + } + public VirtualNodeSpecListenerTlsCertificateSds build() { + final var o = new VirtualNodeSpecListenerTlsCertificateSds(); + o.secretName = secretName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidation.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidation.java index 84b352b1b21..2d29e236e5f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidation.java @@ -16,21 +16,14 @@ public final class VirtualNodeSpecListenerTlsValidation { * @return The SANs for a TLS validation context. * */ - private final @Nullable VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames subjectAlternativeNames; + private @Nullable VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames subjectAlternativeNames; /** * @return The TLS validation context trust. * */ - private final VirtualNodeSpecListenerTlsValidationTrust trust; - - @CustomType.Constructor - private VirtualNodeSpecListenerTlsValidation( - @CustomType.Parameter("subjectAlternativeNames") @Nullable VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames subjectAlternativeNames, - @CustomType.Parameter("trust") VirtualNodeSpecListenerTlsValidationTrust trust) { - this.subjectAlternativeNames = subjectAlternativeNames; - this.trust = trust; - } + private VirtualNodeSpecListenerTlsValidationTrust trust; + private VirtualNodeSpecListenerTlsValidation() {} /** * @return The SANs for a TLS validation context. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTlsValidation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames subjectAlternativeNames; private VirtualNodeSpecListenerTlsValidationTrust trust; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTlsValidation defaults) { Objects.requireNonNull(defaults); this.subjectAlternativeNames = defaults.subjectAlternativeNames; this.trust = defaults.trust; } + @CustomType.Setter public Builder subjectAlternativeNames(@Nullable VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames subjectAlternativeNames) { this.subjectAlternativeNames = subjectAlternativeNames; return this; } + @CustomType.Setter public Builder trust(VirtualNodeSpecListenerTlsValidationTrust trust) { this.trust = Objects.requireNonNull(trust); return this; - } public VirtualNodeSpecListenerTlsValidation build() { - return new VirtualNodeSpecListenerTlsValidation(subjectAlternativeNames, trust); + } + public VirtualNodeSpecListenerTlsValidation build() { + final var o = new VirtualNodeSpecListenerTlsValidation(); + o.subjectAlternativeNames = subjectAlternativeNames; + o.trust = trust; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames.java index 9374b0af1c6..36fc2fa3123 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames { * @return The criteria for determining a SAN's match. * */ - private final VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch match; - - @CustomType.Constructor - private VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames(@CustomType.Parameter("match") VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch match) { - this.match = match; - } + private VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch match; + private VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames() {} /** * @return The criteria for determining a SAN's match. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch match; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames defaults) { Objects.requireNonNull(defaults); this.match = defaults.match; } + @CustomType.Setter public Builder match(VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch match) { this.match = Objects.requireNonNull(match); return this; - } public VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames build() { - return new VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames(match); + } + public VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames build() { + final var o = new VirtualNodeSpecListenerTlsValidationSubjectAlternativeNames(); + o.match = match; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch.java index 6d9624b3322..ab864c4e433 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch.java @@ -14,13 +14,9 @@ public final class VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMa * @return The values sent must match the specified values exactly. * */ - private final List exacts; - - @CustomType.Constructor - private VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch(@CustomType.Parameter("exacts") List exacts) { - this.exacts = exacts; - } + private List exacts; + private VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch() {} /** * @return The values sent must match the specified values exactly. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List exacts; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch defaults) { Objects.requireNonNull(defaults); this.exacts = defaults.exacts; } + @CustomType.Setter public Builder exacts(List exacts) { this.exacts = Objects.requireNonNull(exacts); return this; } public Builder exacts(String... exacts) { return exacts(List.of(exacts)); - } public VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch build() { - return new VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch(exacts); + } + public VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch build() { + final var o = new VirtualNodeSpecListenerTlsValidationSubjectAlternativeNamesMatch(); + o.exacts = exacts; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationTrust.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationTrust.java index d24b22f3532..92f34241039 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationTrust.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationTrust.java @@ -16,21 +16,14 @@ public final class VirtualNodeSpecListenerTlsValidationTrust { * @return The TLS validation context trust for a local file certificate. * */ - private final @Nullable VirtualNodeSpecListenerTlsValidationTrustFile file; + private @Nullable VirtualNodeSpecListenerTlsValidationTrustFile file; /** * @return The TLS validation context trust for a [Secret Discovery Service](https://www.envoyproxy.io/docs/envoy/latest/configuration/security/secret#secret-discovery-service-sds) certificate. * */ - private final @Nullable VirtualNodeSpecListenerTlsValidationTrustSds sds; - - @CustomType.Constructor - private VirtualNodeSpecListenerTlsValidationTrust( - @CustomType.Parameter("file") @Nullable VirtualNodeSpecListenerTlsValidationTrustFile file, - @CustomType.Parameter("sds") @Nullable VirtualNodeSpecListenerTlsValidationTrustSds sds) { - this.file = file; - this.sds = sds; - } + private @Nullable VirtualNodeSpecListenerTlsValidationTrustSds sds; + private VirtualNodeSpecListenerTlsValidationTrust() {} /** * @return The TLS validation context trust for a local file certificate. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTlsValidationTrust defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecListenerTlsValidationTrustFile file; private @Nullable VirtualNodeSpecListenerTlsValidationTrustSds sds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTlsValidationTrust defaults) { Objects.requireNonNull(defaults); this.file = defaults.file; this.sds = defaults.sds; } + @CustomType.Setter public Builder file(@Nullable VirtualNodeSpecListenerTlsValidationTrustFile file) { this.file = file; return this; } + @CustomType.Setter public Builder sds(@Nullable VirtualNodeSpecListenerTlsValidationTrustSds sds) { this.sds = sds; return this; - } public VirtualNodeSpecListenerTlsValidationTrust build() { - return new VirtualNodeSpecListenerTlsValidationTrust(file, sds); + } + public VirtualNodeSpecListenerTlsValidationTrust build() { + final var o = new VirtualNodeSpecListenerTlsValidationTrust(); + o.file = file; + o.sds = sds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationTrustFile.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationTrustFile.java index 2b70f49a36b..68b77021120 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationTrustFile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationTrustFile.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecListenerTlsValidationTrustFile { * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * */ - private final String certificateChain; - - @CustomType.Constructor - private VirtualNodeSpecListenerTlsValidationTrustFile(@CustomType.Parameter("certificateChain") String certificateChain) { - this.certificateChain = certificateChain; - } + private String certificateChain; + private VirtualNodeSpecListenerTlsValidationTrustFile() {} /** * @return The certificate trust chain for a certificate stored on the file system of the mesh endpoint that the proxy is running on. Must be between 1 and 255 characters in length. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTlsValidationTrustFile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateChain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTlsValidationTrustFile defaults) { Objects.requireNonNull(defaults); this.certificateChain = defaults.certificateChain; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; - } public VirtualNodeSpecListenerTlsValidationTrustFile build() { - return new VirtualNodeSpecListenerTlsValidationTrustFile(certificateChain); + } + public VirtualNodeSpecListenerTlsValidationTrustFile build() { + final var o = new VirtualNodeSpecListenerTlsValidationTrustFile(); + o.certificateChain = certificateChain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationTrustSds.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationTrustSds.java index 430085aa2af..99b82368bfe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationTrustSds.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecListenerTlsValidationTrustSds.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecListenerTlsValidationTrustSds { * @return The name of the secret for a virtual node's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * */ - private final String secretName; - - @CustomType.Constructor - private VirtualNodeSpecListenerTlsValidationTrustSds(@CustomType.Parameter("secretName") String secretName) { - this.secretName = secretName; - } + private String secretName; + private VirtualNodeSpecListenerTlsValidationTrustSds() {} /** * @return The name of the secret for a virtual node's Transport Layer Security (TLS) Secret Discovery Service validation context trust. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecListenerTlsValidationTrustSds defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String secretName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecListenerTlsValidationTrustSds defaults) { Objects.requireNonNull(defaults); this.secretName = defaults.secretName; } + @CustomType.Setter public Builder secretName(String secretName) { this.secretName = Objects.requireNonNull(secretName); return this; - } public VirtualNodeSpecListenerTlsValidationTrustSds build() { - return new VirtualNodeSpecListenerTlsValidationTrustSds(secretName); + } + public VirtualNodeSpecListenerTlsValidationTrustSds build() { + final var o = new VirtualNodeSpecListenerTlsValidationTrustSds(); + o.secretName = secretName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecLogging.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecLogging.java index 0e71df62a60..12b9f6754a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecLogging.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecLogging.java @@ -15,13 +15,9 @@ public final class VirtualNodeSpecLogging { * @return The access log configuration for a virtual node. * */ - private final @Nullable VirtualNodeSpecLoggingAccessLog accessLog; - - @CustomType.Constructor - private VirtualNodeSpecLogging(@CustomType.Parameter("accessLog") @Nullable VirtualNodeSpecLoggingAccessLog accessLog) { - this.accessLog = accessLog; - } + private @Nullable VirtualNodeSpecLoggingAccessLog accessLog; + private VirtualNodeSpecLogging() {} /** * @return The access log configuration for a virtual node. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecLogging defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecLoggingAccessLog accessLog; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecLogging defaults) { Objects.requireNonNull(defaults); this.accessLog = defaults.accessLog; } + @CustomType.Setter public Builder accessLog(@Nullable VirtualNodeSpecLoggingAccessLog accessLog) { this.accessLog = accessLog; return this; - } public VirtualNodeSpecLogging build() { - return new VirtualNodeSpecLogging(accessLog); + } + public VirtualNodeSpecLogging build() { + final var o = new VirtualNodeSpecLogging(); + o.accessLog = accessLog; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecLoggingAccessLog.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecLoggingAccessLog.java index 6eca820b471..f560639ef0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecLoggingAccessLog.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecLoggingAccessLog.java @@ -15,13 +15,9 @@ public final class VirtualNodeSpecLoggingAccessLog { * @return The file object to send virtual node access logs to. * */ - private final @Nullable VirtualNodeSpecLoggingAccessLogFile file; - - @CustomType.Constructor - private VirtualNodeSpecLoggingAccessLog(@CustomType.Parameter("file") @Nullable VirtualNodeSpecLoggingAccessLogFile file) { - this.file = file; - } + private @Nullable VirtualNodeSpecLoggingAccessLogFile file; + private VirtualNodeSpecLoggingAccessLog() {} /** * @return The file object to send virtual node access logs to. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecLoggingAccessLog defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecLoggingAccessLogFile file; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecLoggingAccessLog defaults) { Objects.requireNonNull(defaults); this.file = defaults.file; } + @CustomType.Setter public Builder file(@Nullable VirtualNodeSpecLoggingAccessLogFile file) { this.file = file; return this; - } public VirtualNodeSpecLoggingAccessLog build() { - return new VirtualNodeSpecLoggingAccessLog(file); + } + public VirtualNodeSpecLoggingAccessLog build() { + final var o = new VirtualNodeSpecLoggingAccessLog(); + o.file = file; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecLoggingAccessLogFile.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecLoggingAccessLogFile.java index 3f62bd76387..4c9ae37cdac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecLoggingAccessLogFile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecLoggingAccessLogFile.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecLoggingAccessLogFile { * @return The file path to write access logs to. You can use `/dev/stdout` to send access logs to standard out. Must be between 1 and 255 characters in length. * */ - private final String path; - - @CustomType.Constructor - private VirtualNodeSpecLoggingAccessLogFile(@CustomType.Parameter("path") String path) { - this.path = path; - } + private String path; + private VirtualNodeSpecLoggingAccessLogFile() {} /** * @return The file path to write access logs to. You can use `/dev/stdout` to send access logs to standard out. Must be between 1 and 255 characters in length. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecLoggingAccessLogFile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String path; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecLoggingAccessLogFile defaults) { Objects.requireNonNull(defaults); this.path = defaults.path; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; - } public VirtualNodeSpecLoggingAccessLogFile build() { - return new VirtualNodeSpecLoggingAccessLogFile(path); + } + public VirtualNodeSpecLoggingAccessLogFile build() { + final var o = new VirtualNodeSpecLoggingAccessLogFile(); + o.path = path; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecServiceDiscovery.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecServiceDiscovery.java index 8f50c3f7937..a28752bb3fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecServiceDiscovery.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecServiceDiscovery.java @@ -16,21 +16,14 @@ public final class VirtualNodeSpecServiceDiscovery { * @return Specifies any AWS Cloud Map information for the virtual node. * */ - private final @Nullable VirtualNodeSpecServiceDiscoveryAwsCloudMap awsCloudMap; + private @Nullable VirtualNodeSpecServiceDiscoveryAwsCloudMap awsCloudMap; /** * @return Specifies the DNS service name for the virtual node. * */ - private final @Nullable VirtualNodeSpecServiceDiscoveryDns dns; - - @CustomType.Constructor - private VirtualNodeSpecServiceDiscovery( - @CustomType.Parameter("awsCloudMap") @Nullable VirtualNodeSpecServiceDiscoveryAwsCloudMap awsCloudMap, - @CustomType.Parameter("dns") @Nullable VirtualNodeSpecServiceDiscoveryDns dns) { - this.awsCloudMap = awsCloudMap; - this.dns = dns; - } + private @Nullable VirtualNodeSpecServiceDiscoveryDns dns; + private VirtualNodeSpecServiceDiscovery() {} /** * @return Specifies any AWS Cloud Map information for the virtual node. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecServiceDiscovery defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualNodeSpecServiceDiscoveryAwsCloudMap awsCloudMap; private @Nullable VirtualNodeSpecServiceDiscoveryDns dns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecServiceDiscovery defaults) { Objects.requireNonNull(defaults); this.awsCloudMap = defaults.awsCloudMap; this.dns = defaults.dns; } + @CustomType.Setter public Builder awsCloudMap(@Nullable VirtualNodeSpecServiceDiscoveryAwsCloudMap awsCloudMap) { this.awsCloudMap = awsCloudMap; return this; } + @CustomType.Setter public Builder dns(@Nullable VirtualNodeSpecServiceDiscoveryDns dns) { this.dns = dns; return this; - } public VirtualNodeSpecServiceDiscovery build() { - return new VirtualNodeSpecServiceDiscovery(awsCloudMap, dns); + } + public VirtualNodeSpecServiceDiscovery build() { + final var o = new VirtualNodeSpecServiceDiscovery(); + o.awsCloudMap = awsCloudMap; + o.dns = dns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecServiceDiscoveryAwsCloudMap.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecServiceDiscoveryAwsCloudMap.java index 09a08f88db8..4d44ece8dc6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecServiceDiscoveryAwsCloudMap.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecServiceDiscoveryAwsCloudMap.java @@ -15,29 +15,20 @@ public final class VirtualNodeSpecServiceDiscoveryAwsCloudMap { * @return A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned. * */ - private final @Nullable Map attributes; + private @Nullable Map attributes; /** * @return The name of the AWS Cloud Map namespace to use. * Use the `aws.servicediscovery.HttpNamespace` resource to configure a Cloud Map namespace. Must be between 1 and 1024 characters in length. * */ - private final String namespaceName; + private String namespaceName; /** * @return The name of the AWS Cloud Map service to use. Use the `aws.servicediscovery.Service` resource to configure a Cloud Map service. Must be between 1 and 1024 characters in length. * */ - private final String serviceName; - - @CustomType.Constructor - private VirtualNodeSpecServiceDiscoveryAwsCloudMap( - @CustomType.Parameter("attributes") @Nullable Map attributes, - @CustomType.Parameter("namespaceName") String namespaceName, - @CustomType.Parameter("serviceName") String serviceName) { - this.attributes = attributes; - this.namespaceName = namespaceName; - this.serviceName = serviceName; - } + private String serviceName; + private VirtualNodeSpecServiceDiscoveryAwsCloudMap() {} /** * @return A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecServiceDiscoveryAwsCloudMap defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map attributes; private String namespaceName; private String serviceName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecServiceDiscoveryAwsCloudMap defaults) { Objects.requireNonNull(defaults); this.attributes = defaults.attributes; @@ -85,19 +72,27 @@ public Builder(VirtualNodeSpecServiceDiscoveryAwsCloudMap defaults) { this.serviceName = defaults.serviceName; } + @CustomType.Setter public Builder attributes(@Nullable Map attributes) { this.attributes = attributes; return this; } + @CustomType.Setter public Builder namespaceName(String namespaceName) { this.namespaceName = Objects.requireNonNull(namespaceName); return this; } + @CustomType.Setter public Builder serviceName(String serviceName) { this.serviceName = Objects.requireNonNull(serviceName); return this; - } public VirtualNodeSpecServiceDiscoveryAwsCloudMap build() { - return new VirtualNodeSpecServiceDiscoveryAwsCloudMap(attributes, namespaceName, serviceName); + } + public VirtualNodeSpecServiceDiscoveryAwsCloudMap build() { + final var o = new VirtualNodeSpecServiceDiscoveryAwsCloudMap(); + o.attributes = attributes; + o.namespaceName = namespaceName; + o.serviceName = serviceName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecServiceDiscoveryDns.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecServiceDiscoveryDns.java index d7e9bbe10d3..a6f9ddf7b5b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecServiceDiscoveryDns.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualNodeSpecServiceDiscoveryDns.java @@ -13,13 +13,9 @@ public final class VirtualNodeSpecServiceDiscoveryDns { * @return The DNS host name for your virtual node. * */ - private final String hostname; - - @CustomType.Constructor - private VirtualNodeSpecServiceDiscoveryDns(@CustomType.Parameter("hostname") String hostname) { - this.hostname = hostname; - } + private String hostname; + private VirtualNodeSpecServiceDiscoveryDns() {} /** * @return The DNS host name for your virtual node. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualNodeSpecServiceDiscoveryDns defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String hostname; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualNodeSpecServiceDiscoveryDns defaults) { Objects.requireNonNull(defaults); this.hostname = defaults.hostname; } + @CustomType.Setter public Builder hostname(String hostname) { this.hostname = Objects.requireNonNull(hostname); return this; - } public VirtualNodeSpecServiceDiscoveryDns build() { - return new VirtualNodeSpecServiceDiscoveryDns(hostname); + } + public VirtualNodeSpecServiceDiscoveryDns build() { + final var o = new VirtualNodeSpecServiceDiscoveryDns(); + o.hostname = hostname; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualRouterSpec.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualRouterSpec.java index e2b88d1960c..eca4c9a19c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualRouterSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualRouterSpec.java @@ -14,13 +14,9 @@ public final class VirtualRouterSpec { * Currently only one listener is supported per virtual router. * */ - private final VirtualRouterSpecListener listener; - - @CustomType.Constructor - private VirtualRouterSpec(@CustomType.Parameter("listener") VirtualRouterSpecListener listener) { - this.listener = listener; - } + private VirtualRouterSpecListener listener; + private VirtualRouterSpec() {} /** * @return The listeners that the virtual router is expected to receive inbound traffic from. * Currently only one listener is supported per virtual router. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualRouterSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private VirtualRouterSpecListener listener; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualRouterSpec defaults) { Objects.requireNonNull(defaults); this.listener = defaults.listener; } + @CustomType.Setter public Builder listener(VirtualRouterSpecListener listener) { this.listener = Objects.requireNonNull(listener); return this; - } public VirtualRouterSpec build() { - return new VirtualRouterSpec(listener); + } + public VirtualRouterSpec build() { + final var o = new VirtualRouterSpec(); + o.listener = listener; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualRouterSpecListener.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualRouterSpecListener.java index 68f563636e1..aadc93dd7b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualRouterSpecListener.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualRouterSpecListener.java @@ -13,13 +13,9 @@ public final class VirtualRouterSpecListener { * @return The port mapping information for the listener. * */ - private final VirtualRouterSpecListenerPortMapping portMapping; - - @CustomType.Constructor - private VirtualRouterSpecListener(@CustomType.Parameter("portMapping") VirtualRouterSpecListenerPortMapping portMapping) { - this.portMapping = portMapping; - } + private VirtualRouterSpecListenerPortMapping portMapping; + private VirtualRouterSpecListener() {} /** * @return The port mapping information for the listener. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualRouterSpecListener defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private VirtualRouterSpecListenerPortMapping portMapping; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualRouterSpecListener defaults) { Objects.requireNonNull(defaults); this.portMapping = defaults.portMapping; } + @CustomType.Setter public Builder portMapping(VirtualRouterSpecListenerPortMapping portMapping) { this.portMapping = Objects.requireNonNull(portMapping); return this; - } public VirtualRouterSpecListener build() { - return new VirtualRouterSpecListener(portMapping); + } + public VirtualRouterSpecListener build() { + final var o = new VirtualRouterSpecListener(); + o.portMapping = portMapping; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualRouterSpecListenerPortMapping.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualRouterSpecListenerPortMapping.java index 68913f5233d..1c83b370a1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualRouterSpecListenerPortMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualRouterSpecListenerPortMapping.java @@ -14,21 +14,14 @@ public final class VirtualRouterSpecListenerPortMapping { * @return The port used for the port mapping. * */ - private final Integer port; + private Integer port; /** * @return The protocol used for the port mapping. Valid values are `http`,`http2`, `tcp` and `grpc`. * */ - private final String protocol; - - @CustomType.Constructor - private VirtualRouterSpecListenerPortMapping( - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("protocol") String protocol) { - this.port = port; - this.protocol = protocol; - } + private String protocol; + private VirtualRouterSpecListenerPortMapping() {} /** * @return The port used for the port mapping. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VirtualRouterSpecListenerPortMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer port; private String protocol; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualRouterSpecListenerPortMapping defaults) { Objects.requireNonNull(defaults); this.port = defaults.port; this.protocol = defaults.protocol; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; - } public VirtualRouterSpecListenerPortMapping build() { - return new VirtualRouterSpecListenerPortMapping(port, protocol); + } + public VirtualRouterSpecListenerPortMapping build() { + final var o = new VirtualRouterSpecListenerPortMapping(); + o.port = port; + o.protocol = protocol; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpec.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpec.java index c6e9ddedb0a..d2f084a6a8a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpec.java @@ -15,13 +15,9 @@ public final class VirtualServiceSpec { * @return The App Mesh object that is acting as the provider for a virtual service. You can specify a single virtual node or virtual router. * */ - private final @Nullable VirtualServiceSpecProvider provider; - - @CustomType.Constructor - private VirtualServiceSpec(@CustomType.Parameter("provider") @Nullable VirtualServiceSpecProvider provider) { - this.provider = provider; - } + private @Nullable VirtualServiceSpecProvider provider; + private VirtualServiceSpec() {} /** * @return The App Mesh object that is acting as the provider for a virtual service. You can specify a single virtual node or virtual router. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualServiceSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualServiceSpecProvider provider; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualServiceSpec defaults) { Objects.requireNonNull(defaults); this.provider = defaults.provider; } + @CustomType.Setter public Builder provider(@Nullable VirtualServiceSpecProvider provider) { this.provider = provider; return this; - } public VirtualServiceSpec build() { - return new VirtualServiceSpec(provider); + } + public VirtualServiceSpec build() { + final var o = new VirtualServiceSpec(); + o.provider = provider; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpecProvider.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpecProvider.java index f43f6745491..e4f41ecc8eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpecProvider.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpecProvider.java @@ -16,21 +16,14 @@ public final class VirtualServiceSpecProvider { * @return The virtual node associated with a virtual service. * */ - private final @Nullable VirtualServiceSpecProviderVirtualNode virtualNode; + private @Nullable VirtualServiceSpecProviderVirtualNode virtualNode; /** * @return The virtual router associated with a virtual service. * */ - private final @Nullable VirtualServiceSpecProviderVirtualRouter virtualRouter; - - @CustomType.Constructor - private VirtualServiceSpecProvider( - @CustomType.Parameter("virtualNode") @Nullable VirtualServiceSpecProviderVirtualNode virtualNode, - @CustomType.Parameter("virtualRouter") @Nullable VirtualServiceSpecProviderVirtualRouter virtualRouter) { - this.virtualNode = virtualNode; - this.virtualRouter = virtualRouter; - } + private @Nullable VirtualServiceSpecProviderVirtualRouter virtualRouter; + private VirtualServiceSpecProvider() {} /** * @return The virtual node associated with a virtual service. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(VirtualServiceSpecProvider defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable VirtualServiceSpecProviderVirtualNode virtualNode; private @Nullable VirtualServiceSpecProviderVirtualRouter virtualRouter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualServiceSpecProvider defaults) { Objects.requireNonNull(defaults); this.virtualNode = defaults.virtualNode; this.virtualRouter = defaults.virtualRouter; } + @CustomType.Setter public Builder virtualNode(@Nullable VirtualServiceSpecProviderVirtualNode virtualNode) { this.virtualNode = virtualNode; return this; } + @CustomType.Setter public Builder virtualRouter(@Nullable VirtualServiceSpecProviderVirtualRouter virtualRouter) { this.virtualRouter = virtualRouter; return this; - } public VirtualServiceSpecProvider build() { - return new VirtualServiceSpecProvider(virtualNode, virtualRouter); + } + public VirtualServiceSpecProvider build() { + final var o = new VirtualServiceSpecProvider(); + o.virtualNode = virtualNode; + o.virtualRouter = virtualRouter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpecProviderVirtualNode.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpecProviderVirtualNode.java index b134fd507af..6d62e9fe9e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpecProviderVirtualNode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpecProviderVirtualNode.java @@ -13,13 +13,9 @@ public final class VirtualServiceSpecProviderVirtualNode { * @return The name of the virtual node that is acting as a service provider. Must be between 1 and 255 characters in length. * */ - private final String virtualNodeName; - - @CustomType.Constructor - private VirtualServiceSpecProviderVirtualNode(@CustomType.Parameter("virtualNodeName") String virtualNodeName) { - this.virtualNodeName = virtualNodeName; - } + private String virtualNodeName; + private VirtualServiceSpecProviderVirtualNode() {} /** * @return The name of the virtual node that is acting as a service provider. Must be between 1 and 255 characters in length. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualServiceSpecProviderVirtualNode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String virtualNodeName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualServiceSpecProviderVirtualNode defaults) { Objects.requireNonNull(defaults); this.virtualNodeName = defaults.virtualNodeName; } + @CustomType.Setter public Builder virtualNodeName(String virtualNodeName) { this.virtualNodeName = Objects.requireNonNull(virtualNodeName); return this; - } public VirtualServiceSpecProviderVirtualNode build() { - return new VirtualServiceSpecProviderVirtualNode(virtualNodeName); + } + public VirtualServiceSpecProviderVirtualNode build() { + final var o = new VirtualServiceSpecProviderVirtualNode(); + o.virtualNodeName = virtualNodeName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpecProviderVirtualRouter.java b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpecProviderVirtualRouter.java index 9b4c2a2f802..a53781965f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpecProviderVirtualRouter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appmesh/outputs/VirtualServiceSpecProviderVirtualRouter.java @@ -13,13 +13,9 @@ public final class VirtualServiceSpecProviderVirtualRouter { * @return The name of the virtual router that is acting as a service provider. Must be between 1 and 255 characters in length. * */ - private final String virtualRouterName; - - @CustomType.Constructor - private VirtualServiceSpecProviderVirtualRouter(@CustomType.Parameter("virtualRouterName") String virtualRouterName) { - this.virtualRouterName = virtualRouterName; - } + private String virtualRouterName; + private VirtualServiceSpecProviderVirtualRouter() {} /** * @return The name of the virtual router that is acting as a service provider. Must be between 1 and 255 characters in length. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualServiceSpecProviderVirtualRouter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String virtualRouterName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualServiceSpecProviderVirtualRouter defaults) { Objects.requireNonNull(defaults); this.virtualRouterName = defaults.virtualRouterName; } + @CustomType.Setter public Builder virtualRouterName(String virtualRouterName) { this.virtualRouterName = Objects.requireNonNull(virtualRouterName); return this; - } public VirtualServiceSpecProviderVirtualRouter build() { - return new VirtualServiceSpecProviderVirtualRouter(virtualRouterName); + } + public VirtualServiceSpecProviderVirtualRouter build() { + final var o = new VirtualServiceSpecProviderVirtualRouter(); + o.virtualRouterName = virtualRouterName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/CustomDomainAssociationCertificateValidationRecord.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/CustomDomainAssociationCertificateValidationRecord.java index 21ecc70dc57..6917ca377b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/CustomDomainAssociationCertificateValidationRecord.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/CustomDomainAssociationCertificateValidationRecord.java @@ -15,35 +15,24 @@ public final class CustomDomainAssociationCertificateValidationRecord { * @return The certificate CNAME record name. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return The current state of the certificate CNAME record validation. It should change to `SUCCESS` after App Runner completes validation with your DNS. * */ - private final @Nullable String status; + private @Nullable String status; /** * @return The record type, always `CNAME`. * */ - private final @Nullable String type; + private @Nullable String type; /** * @return The certificate CNAME record value. * */ - private final @Nullable String value; - - @CustomType.Constructor - private CustomDomainAssociationCertificateValidationRecord( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("status") @Nullable String status, - @CustomType.Parameter("type") @Nullable String type, - @CustomType.Parameter("value") @Nullable String value) { - this.name = name; - this.status = status; - this.type = type; - this.value = value; - } + private @Nullable String value; + private CustomDomainAssociationCertificateValidationRecord() {} /** * @return The certificate CNAME record name. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(CustomDomainAssociationCertificateValidationRecord defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String status; private @Nullable String type; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CustomDomainAssociationCertificateValidationRecord defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -99,23 +84,33 @@ public Builder(CustomDomainAssociationCertificateValidationRecord defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public CustomDomainAssociationCertificateValidationRecord build() { - return new CustomDomainAssociationCertificateValidationRecord(name, status, type, value); + } + public CustomDomainAssociationCertificateValidationRecord build() { + final var o = new CustomDomainAssociationCertificateValidationRecord(); + o.name = name; + o.status = status; + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ObservabilityConfigurationTraceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ObservabilityConfigurationTraceConfiguration.java index 8ecceb6db8c..88fd6880174 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ObservabilityConfigurationTraceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ObservabilityConfigurationTraceConfiguration.java @@ -15,13 +15,9 @@ public final class ObservabilityConfigurationTraceConfiguration { * @return The implementation provider chosen for tracing App Runner services. Valid values: `AWSXRAY`. * */ - private final @Nullable String vendor; - - @CustomType.Constructor - private ObservabilityConfigurationTraceConfiguration(@CustomType.Parameter("vendor") @Nullable String vendor) { - this.vendor = vendor; - } + private @Nullable String vendor; + private ObservabilityConfigurationTraceConfiguration() {} /** * @return The implementation provider chosen for tracing App Runner services. Valid values: `AWSXRAY`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ObservabilityConfigurationTraceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String vendor; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ObservabilityConfigurationTraceConfiguration defaults) { Objects.requireNonNull(defaults); this.vendor = defaults.vendor; } + @CustomType.Setter public Builder vendor(@Nullable String vendor) { this.vendor = vendor; return this; - } public ObservabilityConfigurationTraceConfiguration build() { - return new ObservabilityConfigurationTraceConfiguration(vendor); + } + public ObservabilityConfigurationTraceConfiguration build() { + final var o = new ObservabilityConfigurationTraceConfiguration(); + o.vendor = vendor; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceEncryptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceEncryptionConfiguration.java index 488ef89bd8b..ff6eca7e0d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceEncryptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceEncryptionConfiguration.java @@ -13,13 +13,9 @@ public final class ServiceEncryptionConfiguration { * @return The ARN of the KMS key used for encryption. * */ - private final String kmsKey; - - @CustomType.Constructor - private ServiceEncryptionConfiguration(@CustomType.Parameter("kmsKey") String kmsKey) { - this.kmsKey = kmsKey; - } + private String kmsKey; + private ServiceEncryptionConfiguration() {} /** * @return The ARN of the KMS key used for encryption. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ServiceEncryptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String kmsKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceEncryptionConfiguration defaults) { Objects.requireNonNull(defaults); this.kmsKey = defaults.kmsKey; } + @CustomType.Setter public Builder kmsKey(String kmsKey) { this.kmsKey = Objects.requireNonNull(kmsKey); return this; - } public ServiceEncryptionConfiguration build() { - return new ServiceEncryptionConfiguration(kmsKey); + } + public ServiceEncryptionConfiguration build() { + final var o = new ServiceEncryptionConfiguration(); + o.kmsKey = kmsKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceHealthCheckConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceHealthCheckConfiguration.java index 27e9d2024ed..c28b3e62abb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceHealthCheckConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceHealthCheckConfiguration.java @@ -16,49 +16,34 @@ public final class ServiceHealthCheckConfiguration { * @return The number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20. * */ - private final @Nullable Integer healthyThreshold; + private @Nullable Integer healthyThreshold; /** * @return The time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20. * */ - private final @Nullable Integer interval; + private @Nullable Integer interval; /** * @return The URL to send requests to for health checks. Defaults to `/`. Minimum length of 0. Maximum length of 51200. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return The IP protocol that App Runner uses to perform health checks for your service. Valid values: `TCP`, `HTTP`. Defaults to `TCP`. If you set protocol to `HTTP`, App Runner sends health check requests to the HTTP path specified by `path`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return The time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20. * */ - private final @Nullable Integer timeout; + private @Nullable Integer timeout; /** * @return The number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20. * */ - private final @Nullable Integer unhealthyThreshold; - - @CustomType.Constructor - private ServiceHealthCheckConfiguration( - @CustomType.Parameter("healthyThreshold") @Nullable Integer healthyThreshold, - @CustomType.Parameter("interval") @Nullable Integer interval, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("timeout") @Nullable Integer timeout, - @CustomType.Parameter("unhealthyThreshold") @Nullable Integer unhealthyThreshold) { - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.path = path; - this.protocol = protocol; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private @Nullable Integer unhealthyThreshold; + private ServiceHealthCheckConfiguration() {} /** * @return The number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(ServiceHealthCheckConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer healthyThreshold; private @Nullable Integer interval; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable Integer timeout; private @Nullable Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceHealthCheckConfiguration defaults) { Objects.requireNonNull(defaults); this.healthyThreshold = defaults.healthyThreshold; @@ -132,31 +113,45 @@ public Builder(ServiceHealthCheckConfiguration defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder healthyThreshold(@Nullable Integer healthyThreshold) { this.healthyThreshold = healthyThreshold; return this; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { this.timeout = timeout; return this; } + @CustomType.Setter public Builder unhealthyThreshold(@Nullable Integer unhealthyThreshold) { this.unhealthyThreshold = unhealthyThreshold; return this; - } public ServiceHealthCheckConfiguration build() { - return new ServiceHealthCheckConfiguration(healthyThreshold, interval, path, protocol, timeout, unhealthyThreshold); + } + public ServiceHealthCheckConfiguration build() { + final var o = new ServiceHealthCheckConfiguration(); + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.path = path; + o.protocol = protocol; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceInstanceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceInstanceConfiguration.java index e38fd559404..6e1b7cc38ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceInstanceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceInstanceConfiguration.java @@ -15,28 +15,19 @@ public final class ServiceInstanceConfiguration { * @return The number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to `1024`. Valid values: `1024|2048|(1|2) vCPU`. * */ - private final @Nullable String cpu; + private @Nullable String cpu; /** * @return The Amazon Resource Name (ARN) of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs. * */ - private final @Nullable String instanceRoleArn; + private @Nullable String instanceRoleArn; /** * @return The amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to `2048`. Valid values: `2048|3072|4096|(2|3|4) GB`. * */ - private final @Nullable String memory; - - @CustomType.Constructor - private ServiceInstanceConfiguration( - @CustomType.Parameter("cpu") @Nullable String cpu, - @CustomType.Parameter("instanceRoleArn") @Nullable String instanceRoleArn, - @CustomType.Parameter("memory") @Nullable String memory) { - this.cpu = cpu; - this.instanceRoleArn = instanceRoleArn; - this.memory = memory; - } + private @Nullable String memory; + private ServiceInstanceConfiguration() {} /** * @return The number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to `1024`. Valid values: `1024|2048|(1|2) vCPU`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ServiceInstanceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cpu; private @Nullable String instanceRoleArn; private @Nullable String memory; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceInstanceConfiguration defaults) { Objects.requireNonNull(defaults); this.cpu = defaults.cpu; @@ -83,19 +70,27 @@ public Builder(ServiceInstanceConfiguration defaults) { this.memory = defaults.memory; } + @CustomType.Setter public Builder cpu(@Nullable String cpu) { this.cpu = cpu; return this; } + @CustomType.Setter public Builder instanceRoleArn(@Nullable String instanceRoleArn) { this.instanceRoleArn = instanceRoleArn; return this; } + @CustomType.Setter public Builder memory(@Nullable String memory) { this.memory = memory; return this; - } public ServiceInstanceConfiguration build() { - return new ServiceInstanceConfiguration(cpu, instanceRoleArn, memory); + } + public ServiceInstanceConfiguration build() { + final var o = new ServiceInstanceConfiguration(); + o.cpu = cpu; + o.instanceRoleArn = instanceRoleArn; + o.memory = memory; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceNetworkConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceNetworkConfiguration.java index 47417d8bc52..e427c2b33e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceNetworkConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceNetworkConfiguration.java @@ -15,13 +15,9 @@ public final class ServiceNetworkConfiguration { * @return Network configuration settings for outbound message traffic. * */ - private final @Nullable ServiceNetworkConfigurationEgressConfiguration egressConfiguration; - - @CustomType.Constructor - private ServiceNetworkConfiguration(@CustomType.Parameter("egressConfiguration") @Nullable ServiceNetworkConfigurationEgressConfiguration egressConfiguration) { - this.egressConfiguration = egressConfiguration; - } + private @Nullable ServiceNetworkConfigurationEgressConfiguration egressConfiguration; + private ServiceNetworkConfiguration() {} /** * @return Network configuration settings for outbound message traffic. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ServiceNetworkConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ServiceNetworkConfigurationEgressConfiguration egressConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceNetworkConfiguration defaults) { Objects.requireNonNull(defaults); this.egressConfiguration = defaults.egressConfiguration; } + @CustomType.Setter public Builder egressConfiguration(@Nullable ServiceNetworkConfigurationEgressConfiguration egressConfiguration) { this.egressConfiguration = egressConfiguration; return this; - } public ServiceNetworkConfiguration build() { - return new ServiceNetworkConfiguration(egressConfiguration); + } + public ServiceNetworkConfiguration build() { + final var o = new ServiceNetworkConfiguration(); + o.egressConfiguration = egressConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceNetworkConfigurationEgressConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceNetworkConfigurationEgressConfiguration.java index b0ee5dbd5a8..6c9953f18e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceNetworkConfigurationEgressConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceNetworkConfigurationEgressConfiguration.java @@ -15,21 +15,14 @@ public final class ServiceNetworkConfigurationEgressConfiguration { * @return The type of egress configuration.Set to DEFAULT for access to resources hosted on public networks.Set to VPC to associate your service to a custom VPC specified by VpcConnectorArn. * */ - private final @Nullable String egressType; + private @Nullable String egressType; /** * @return The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to associate with your App Runner service. Only valid when EgressType = VPC. * */ - private final @Nullable String vpcConnectorArn; - - @CustomType.Constructor - private ServiceNetworkConfigurationEgressConfiguration( - @CustomType.Parameter("egressType") @Nullable String egressType, - @CustomType.Parameter("vpcConnectorArn") @Nullable String vpcConnectorArn) { - this.egressType = egressType; - this.vpcConnectorArn = vpcConnectorArn; - } + private @Nullable String vpcConnectorArn; + private ServiceNetworkConfigurationEgressConfiguration() {} /** * @return The type of egress configuration.Set to DEFAULT for access to resources hosted on public networks.Set to VPC to associate your service to a custom VPC specified by VpcConnectorArn. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ServiceNetworkConfigurationEgressConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String egressType; private @Nullable String vpcConnectorArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceNetworkConfigurationEgressConfiguration defaults) { Objects.requireNonNull(defaults); this.egressType = defaults.egressType; this.vpcConnectorArn = defaults.vpcConnectorArn; } + @CustomType.Setter public Builder egressType(@Nullable String egressType) { this.egressType = egressType; return this; } + @CustomType.Setter public Builder vpcConnectorArn(@Nullable String vpcConnectorArn) { this.vpcConnectorArn = vpcConnectorArn; return this; - } public ServiceNetworkConfigurationEgressConfiguration build() { - return new ServiceNetworkConfigurationEgressConfiguration(egressType, vpcConnectorArn); + } + public ServiceNetworkConfigurationEgressConfiguration build() { + final var o = new ServiceNetworkConfigurationEgressConfiguration(); + o.egressType = egressType; + o.vpcConnectorArn = vpcConnectorArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceObservabilityConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceObservabilityConfiguration.java index 841fdd23b71..130c9bc6207 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceObservabilityConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceObservabilityConfiguration.java @@ -14,21 +14,14 @@ public final class ServiceObservabilityConfiguration { * @return The Amazon Resource Name (ARN) of the observability configuration that is associated with the service. * */ - private final String observabilityConfigurationArn; + private String observabilityConfigurationArn; /** * @return When `true`, an observability configuration resource is associated with the service. * */ - private final Boolean observabilityEnabled; - - @CustomType.Constructor - private ServiceObservabilityConfiguration( - @CustomType.Parameter("observabilityConfigurationArn") String observabilityConfigurationArn, - @CustomType.Parameter("observabilityEnabled") Boolean observabilityEnabled) { - this.observabilityConfigurationArn = observabilityConfigurationArn; - this.observabilityEnabled = observabilityEnabled; - } + private Boolean observabilityEnabled; + private ServiceObservabilityConfiguration() {} /** * @return The Amazon Resource Name (ARN) of the observability configuration that is associated with the service. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(ServiceObservabilityConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String observabilityConfigurationArn; private Boolean observabilityEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceObservabilityConfiguration defaults) { Objects.requireNonNull(defaults); this.observabilityConfigurationArn = defaults.observabilityConfigurationArn; this.observabilityEnabled = defaults.observabilityEnabled; } + @CustomType.Setter public Builder observabilityConfigurationArn(String observabilityConfigurationArn) { this.observabilityConfigurationArn = Objects.requireNonNull(observabilityConfigurationArn); return this; } + @CustomType.Setter public Builder observabilityEnabled(Boolean observabilityEnabled) { this.observabilityEnabled = Objects.requireNonNull(observabilityEnabled); return this; - } public ServiceObservabilityConfiguration build() { - return new ServiceObservabilityConfiguration(observabilityConfigurationArn, observabilityEnabled); + } + public ServiceObservabilityConfiguration build() { + final var o = new ServiceObservabilityConfiguration(); + o.observabilityConfigurationArn = observabilityConfigurationArn; + o.observabilityEnabled = observabilityEnabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfiguration.java index d8e07473538..21ca4d70518 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfiguration.java @@ -18,35 +18,24 @@ public final class ServiceSourceConfiguration { * @return Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details. * */ - private final @Nullable ServiceSourceConfigurationAuthenticationConfiguration authenticationConfiguration; + private @Nullable ServiceSourceConfigurationAuthenticationConfiguration authenticationConfiguration; /** * @return Whether continuous integration from the source repository is enabled for the App Runner service. If set to `true`, each repository change (source code commit or new image version) starts a deployment. Defaults to `true`. * */ - private final @Nullable Boolean autoDeploymentsEnabled; + private @Nullable Boolean autoDeploymentsEnabled; /** * @return Description of a source code repository. See Code Repository below for more details. * */ - private final @Nullable ServiceSourceConfigurationCodeRepository codeRepository; + private @Nullable ServiceSourceConfigurationCodeRepository codeRepository; /** * @return Description of a source image repository. See Image Repository below for more details. * */ - private final @Nullable ServiceSourceConfigurationImageRepository imageRepository; - - @CustomType.Constructor - private ServiceSourceConfiguration( - @CustomType.Parameter("authenticationConfiguration") @Nullable ServiceSourceConfigurationAuthenticationConfiguration authenticationConfiguration, - @CustomType.Parameter("autoDeploymentsEnabled") @Nullable Boolean autoDeploymentsEnabled, - @CustomType.Parameter("codeRepository") @Nullable ServiceSourceConfigurationCodeRepository codeRepository, - @CustomType.Parameter("imageRepository") @Nullable ServiceSourceConfigurationImageRepository imageRepository) { - this.authenticationConfiguration = authenticationConfiguration; - this.autoDeploymentsEnabled = autoDeploymentsEnabled; - this.codeRepository = codeRepository; - this.imageRepository = imageRepository; - } + private @Nullable ServiceSourceConfigurationImageRepository imageRepository; + private ServiceSourceConfiguration() {} /** * @return Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(ServiceSourceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ServiceSourceConfigurationAuthenticationConfiguration authenticationConfiguration; private @Nullable Boolean autoDeploymentsEnabled; private @Nullable ServiceSourceConfigurationCodeRepository codeRepository; private @Nullable ServiceSourceConfigurationImageRepository imageRepository; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceSourceConfiguration defaults) { Objects.requireNonNull(defaults); this.authenticationConfiguration = defaults.authenticationConfiguration; @@ -102,23 +87,33 @@ public Builder(ServiceSourceConfiguration defaults) { this.imageRepository = defaults.imageRepository; } + @CustomType.Setter public Builder authenticationConfiguration(@Nullable ServiceSourceConfigurationAuthenticationConfiguration authenticationConfiguration) { this.authenticationConfiguration = authenticationConfiguration; return this; } + @CustomType.Setter public Builder autoDeploymentsEnabled(@Nullable Boolean autoDeploymentsEnabled) { this.autoDeploymentsEnabled = autoDeploymentsEnabled; return this; } + @CustomType.Setter public Builder codeRepository(@Nullable ServiceSourceConfigurationCodeRepository codeRepository) { this.codeRepository = codeRepository; return this; } + @CustomType.Setter public Builder imageRepository(@Nullable ServiceSourceConfigurationImageRepository imageRepository) { this.imageRepository = imageRepository; return this; - } public ServiceSourceConfiguration build() { - return new ServiceSourceConfiguration(authenticationConfiguration, autoDeploymentsEnabled, codeRepository, imageRepository); + } + public ServiceSourceConfiguration build() { + final var o = new ServiceSourceConfiguration(); + o.authenticationConfiguration = authenticationConfiguration; + o.autoDeploymentsEnabled = autoDeploymentsEnabled; + o.codeRepository = codeRepository; + o.imageRepository = imageRepository; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationAuthenticationConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationAuthenticationConfiguration.java index c911d3fb477..dea0652f23d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationAuthenticationConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationAuthenticationConfiguration.java @@ -15,21 +15,14 @@ public final class ServiceSourceConfigurationAuthenticationConfiguration { * @return ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public) * */ - private final @Nullable String accessRoleArn; + private @Nullable String accessRoleArn; /** * @return ARN of the App Runner connection that enables the App Runner service to connect to a source repository. Required for GitHub code repositories. * */ - private final @Nullable String connectionArn; - - @CustomType.Constructor - private ServiceSourceConfigurationAuthenticationConfiguration( - @CustomType.Parameter("accessRoleArn") @Nullable String accessRoleArn, - @CustomType.Parameter("connectionArn") @Nullable String connectionArn) { - this.accessRoleArn = accessRoleArn; - this.connectionArn = connectionArn; - } + private @Nullable String connectionArn; + private ServiceSourceConfigurationAuthenticationConfiguration() {} /** * @return ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public) * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ServiceSourceConfigurationAuthenticationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessRoleArn; private @Nullable String connectionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceSourceConfigurationAuthenticationConfiguration defaults) { Objects.requireNonNull(defaults); this.accessRoleArn = defaults.accessRoleArn; this.connectionArn = defaults.connectionArn; } + @CustomType.Setter public Builder accessRoleArn(@Nullable String accessRoleArn) { this.accessRoleArn = accessRoleArn; return this; } + @CustomType.Setter public Builder connectionArn(@Nullable String connectionArn) { this.connectionArn = connectionArn; return this; - } public ServiceSourceConfigurationAuthenticationConfiguration build() { - return new ServiceSourceConfigurationAuthenticationConfiguration(accessRoleArn, connectionArn); + } + public ServiceSourceConfigurationAuthenticationConfiguration build() { + final var o = new ServiceSourceConfigurationAuthenticationConfiguration(); + o.accessRoleArn = accessRoleArn; + o.connectionArn = connectionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepository.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepository.java index cbc97f433d4..9b48cda3c65 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepository.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepository.java @@ -17,28 +17,19 @@ public final class ServiceSourceConfigurationCodeRepository { * @return Configuration for building and running the service from a source code repository. See Code Configuration below for more details. * */ - private final @Nullable ServiceSourceConfigurationCodeRepositoryCodeConfiguration codeConfiguration; + private @Nullable ServiceSourceConfigurationCodeRepositoryCodeConfiguration codeConfiguration; /** * @return The location of the repository that contains the source code. * */ - private final String repositoryUrl; + private String repositoryUrl; /** * @return The version that should be used within the source code repository. See Source Code Version below for more details. * */ - private final ServiceSourceConfigurationCodeRepositorySourceCodeVersion sourceCodeVersion; - - @CustomType.Constructor - private ServiceSourceConfigurationCodeRepository( - @CustomType.Parameter("codeConfiguration") @Nullable ServiceSourceConfigurationCodeRepositoryCodeConfiguration codeConfiguration, - @CustomType.Parameter("repositoryUrl") String repositoryUrl, - @CustomType.Parameter("sourceCodeVersion") ServiceSourceConfigurationCodeRepositorySourceCodeVersion sourceCodeVersion) { - this.codeConfiguration = codeConfiguration; - this.repositoryUrl = repositoryUrl; - this.sourceCodeVersion = sourceCodeVersion; - } + private ServiceSourceConfigurationCodeRepositorySourceCodeVersion sourceCodeVersion; + private ServiceSourceConfigurationCodeRepository() {} /** * @return Configuration for building and running the service from a source code repository. See Code Configuration below for more details. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(ServiceSourceConfigurationCodeRepository defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ServiceSourceConfigurationCodeRepositoryCodeConfiguration codeConfiguration; private String repositoryUrl; private ServiceSourceConfigurationCodeRepositorySourceCodeVersion sourceCodeVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceSourceConfigurationCodeRepository defaults) { Objects.requireNonNull(defaults); this.codeConfiguration = defaults.codeConfiguration; @@ -85,19 +72,27 @@ public Builder(ServiceSourceConfigurationCodeRepository defaults) { this.sourceCodeVersion = defaults.sourceCodeVersion; } + @CustomType.Setter public Builder codeConfiguration(@Nullable ServiceSourceConfigurationCodeRepositoryCodeConfiguration codeConfiguration) { this.codeConfiguration = codeConfiguration; return this; } + @CustomType.Setter public Builder repositoryUrl(String repositoryUrl) { this.repositoryUrl = Objects.requireNonNull(repositoryUrl); return this; } + @CustomType.Setter public Builder sourceCodeVersion(ServiceSourceConfigurationCodeRepositorySourceCodeVersion sourceCodeVersion) { this.sourceCodeVersion = Objects.requireNonNull(sourceCodeVersion); return this; - } public ServiceSourceConfigurationCodeRepository build() { - return new ServiceSourceConfigurationCodeRepository(codeConfiguration, repositoryUrl, sourceCodeVersion); + } + public ServiceSourceConfigurationCodeRepository build() { + final var o = new ServiceSourceConfigurationCodeRepository(); + o.codeConfiguration = codeConfiguration; + o.repositoryUrl = repositoryUrl; + o.sourceCodeVersion = sourceCodeVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepositoryCodeConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepositoryCodeConfiguration.java index 32ccddf2a55..c9c57fa7fa8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepositoryCodeConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepositoryCodeConfiguration.java @@ -16,21 +16,14 @@ public final class ServiceSourceConfigurationCodeRepositoryCodeConfiguration { * @return Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details. * */ - private final @Nullable ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues codeConfigurationValues; + private @Nullable ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues codeConfigurationValues; /** * @return The source of the App Runner configuration. Valid values: `REPOSITORY`, `API`. Values are interpreted as follows: * */ - private final String configurationSource; - - @CustomType.Constructor - private ServiceSourceConfigurationCodeRepositoryCodeConfiguration( - @CustomType.Parameter("codeConfigurationValues") @Nullable ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues codeConfigurationValues, - @CustomType.Parameter("configurationSource") String configurationSource) { - this.codeConfigurationValues = codeConfigurationValues; - this.configurationSource = configurationSource; - } + private String configurationSource; + private ServiceSourceConfigurationCodeRepositoryCodeConfiguration() {} /** * @return Basic configuration for building and running the App Runner service. Use this parameter to quickly launch an App Runner service without providing an apprunner.yaml file in the source code repository (or ignoring the file if it exists). See Code Configuration Values below for more details. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ServiceSourceConfigurationCodeRepositoryCodeConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues codeConfigurationValues; private String configurationSource; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceSourceConfigurationCodeRepositoryCodeConfiguration defaults) { Objects.requireNonNull(defaults); this.codeConfigurationValues = defaults.codeConfigurationValues; this.configurationSource = defaults.configurationSource; } + @CustomType.Setter public Builder codeConfigurationValues(@Nullable ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues codeConfigurationValues) { this.codeConfigurationValues = codeConfigurationValues; return this; } + @CustomType.Setter public Builder configurationSource(String configurationSource) { this.configurationSource = Objects.requireNonNull(configurationSource); return this; - } public ServiceSourceConfigurationCodeRepositoryCodeConfiguration build() { - return new ServiceSourceConfigurationCodeRepositoryCodeConfiguration(codeConfigurationValues, configurationSource); + } + public ServiceSourceConfigurationCodeRepositoryCodeConfiguration build() { + final var o = new ServiceSourceConfigurationCodeRepositoryCodeConfiguration(); + o.codeConfigurationValues = codeConfigurationValues; + o.configurationSource = configurationSource; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues.java index 1657b9455b5..e14c79cc482 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues.java @@ -16,42 +16,29 @@ public final class ServiceSourceConfigurationCodeRepositoryCodeConfigurationCode * @return The command App Runner runs to build your application. * */ - private final @Nullable String buildCommand; + private @Nullable String buildCommand; /** * @return The port that your application listens to in the container. Defaults to `"8080"`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return A runtime environment type for building and running an App Runner service. Represents a programming language runtime. Valid values: `PYTHON_3`, `NODEJS_12`. * */ - private final String runtime; + private String runtime; /** * @return Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of `AWSAPPRUNNER` are reserved for system use and aren't valid. * */ - private final @Nullable Map runtimeEnvironmentVariables; + private @Nullable Map runtimeEnvironmentVariables; /** * @return The command App Runner runs to start your application. * */ - private final @Nullable String startCommand; - - @CustomType.Constructor - private ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues( - @CustomType.Parameter("buildCommand") @Nullable String buildCommand, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("runtime") String runtime, - @CustomType.Parameter("runtimeEnvironmentVariables") @Nullable Map runtimeEnvironmentVariables, - @CustomType.Parameter("startCommand") @Nullable String startCommand) { - this.buildCommand = buildCommand; - this.port = port; - this.runtime = runtime; - this.runtimeEnvironmentVariables = runtimeEnvironmentVariables; - this.startCommand = startCommand; - } + private @Nullable String startCommand; + private ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues() {} /** * @return The command App Runner runs to build your application. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String buildCommand; private @Nullable String port; private String runtime; private @Nullable Map runtimeEnvironmentVariables; private @Nullable String startCommand; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues defaults) { Objects.requireNonNull(defaults); this.buildCommand = defaults.buildCommand; @@ -116,27 +99,39 @@ public Builder(ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConf this.startCommand = defaults.startCommand; } + @CustomType.Setter public Builder buildCommand(@Nullable String buildCommand) { this.buildCommand = buildCommand; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder runtime(String runtime) { this.runtime = Objects.requireNonNull(runtime); return this; } + @CustomType.Setter public Builder runtimeEnvironmentVariables(@Nullable Map runtimeEnvironmentVariables) { this.runtimeEnvironmentVariables = runtimeEnvironmentVariables; return this; } + @CustomType.Setter public Builder startCommand(@Nullable String startCommand) { this.startCommand = startCommand; return this; - } public ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues build() { - return new ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues(buildCommand, port, runtime, runtimeEnvironmentVariables, startCommand); + } + public ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues build() { + final var o = new ServiceSourceConfigurationCodeRepositoryCodeConfigurationCodeConfigurationValues(); + o.buildCommand = buildCommand; + o.port = port; + o.runtime = runtime; + o.runtimeEnvironmentVariables = runtimeEnvironmentVariables; + o.startCommand = startCommand; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepositorySourceCodeVersion.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepositorySourceCodeVersion.java index 649b80fc2bb..5ed86891471 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepositorySourceCodeVersion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationCodeRepositorySourceCodeVersion.java @@ -13,21 +13,14 @@ public final class ServiceSourceConfigurationCodeRepositorySourceCodeVersion { * @return The type of version identifier. For a git-based repository, branches represent versions. Valid values: `BRANCH`. * */ - private final String type; + private String type; /** * @return A source code version. For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch. * */ - private final String value; - - @CustomType.Constructor - private ServiceSourceConfigurationCodeRepositorySourceCodeVersion( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") String value) { - this.type = type; - this.value = value; - } + private String value; + private ServiceSourceConfigurationCodeRepositorySourceCodeVersion() {} /** * @return The type of version identifier. For a git-based repository, branches represent versions. Valid values: `BRANCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ServiceSourceConfigurationCodeRepositorySourceCodeVersion defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceSourceConfigurationCodeRepositorySourceCodeVersion defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.value = defaults.value; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ServiceSourceConfigurationCodeRepositorySourceCodeVersion build() { - return new ServiceSourceConfigurationCodeRepositorySourceCodeVersion(type, value); + } + public ServiceSourceConfigurationCodeRepositorySourceCodeVersion build() { + final var o = new ServiceSourceConfigurationCodeRepositorySourceCodeVersion(); + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationImageRepository.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationImageRepository.java index 9bcbf378e03..f52494f96db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationImageRepository.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationImageRepository.java @@ -16,29 +16,20 @@ public final class ServiceSourceConfigurationImageRepository { * @return Configuration for running the identified image. See Image Configuration below for more details. * */ - private final @Nullable ServiceSourceConfigurationImageRepositoryImageConfiguration imageConfiguration; + private @Nullable ServiceSourceConfigurationImageRepositoryImageConfiguration imageConfiguration; /** * @return The identifier of an image. For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the * image name format, see Pulling an image in the Amazon ECR User Guide. * */ - private final String imageIdentifier; + private String imageIdentifier; /** * @return The type of the image repository. This reflects the repository provider and whether the repository is private or public. Valid values: `ECR` , `ECR_PUBLIC`. * */ - private final String imageRepositoryType; - - @CustomType.Constructor - private ServiceSourceConfigurationImageRepository( - @CustomType.Parameter("imageConfiguration") @Nullable ServiceSourceConfigurationImageRepositoryImageConfiguration imageConfiguration, - @CustomType.Parameter("imageIdentifier") String imageIdentifier, - @CustomType.Parameter("imageRepositoryType") String imageRepositoryType) { - this.imageConfiguration = imageConfiguration; - this.imageIdentifier = imageIdentifier; - this.imageRepositoryType = imageRepositoryType; - } + private String imageRepositoryType; + private ServiceSourceConfigurationImageRepository() {} /** * @return Configuration for running the identified image. See Image Configuration below for more details. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(ServiceSourceConfigurationImageRepository defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ServiceSourceConfigurationImageRepositoryImageConfiguration imageConfiguration; private String imageIdentifier; private String imageRepositoryType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceSourceConfigurationImageRepository defaults) { Objects.requireNonNull(defaults); this.imageConfiguration = defaults.imageConfiguration; @@ -86,19 +73,27 @@ public Builder(ServiceSourceConfigurationImageRepository defaults) { this.imageRepositoryType = defaults.imageRepositoryType; } + @CustomType.Setter public Builder imageConfiguration(@Nullable ServiceSourceConfigurationImageRepositoryImageConfiguration imageConfiguration) { this.imageConfiguration = imageConfiguration; return this; } + @CustomType.Setter public Builder imageIdentifier(String imageIdentifier) { this.imageIdentifier = Objects.requireNonNull(imageIdentifier); return this; } + @CustomType.Setter public Builder imageRepositoryType(String imageRepositoryType) { this.imageRepositoryType = Objects.requireNonNull(imageRepositoryType); return this; - } public ServiceSourceConfigurationImageRepository build() { - return new ServiceSourceConfigurationImageRepository(imageConfiguration, imageIdentifier, imageRepositoryType); + } + public ServiceSourceConfigurationImageRepository build() { + final var o = new ServiceSourceConfigurationImageRepository(); + o.imageConfiguration = imageConfiguration; + o.imageIdentifier = imageIdentifier; + o.imageRepositoryType = imageRepositoryType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationImageRepositoryImageConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationImageRepositoryImageConfiguration.java index ed2f7218144..5949b707c9b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationImageRepositoryImageConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/apprunner/outputs/ServiceSourceConfigurationImageRepositoryImageConfiguration.java @@ -16,28 +16,19 @@ public final class ServiceSourceConfigurationImageRepositoryImageConfiguration { * @return The port that your application listens to in the container. Defaults to `"8080"`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return Environment variables available to your running App Runner service. A map of key/value pairs. Keys with a prefix of `AWSAPPRUNNER` are reserved for system use and aren't valid. * */ - private final @Nullable Map runtimeEnvironmentVariables; + private @Nullable Map runtimeEnvironmentVariables; /** * @return A command App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command. * */ - private final @Nullable String startCommand; - - @CustomType.Constructor - private ServiceSourceConfigurationImageRepositoryImageConfiguration( - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("runtimeEnvironmentVariables") @Nullable Map runtimeEnvironmentVariables, - @CustomType.Parameter("startCommand") @Nullable String startCommand) { - this.port = port; - this.runtimeEnvironmentVariables = runtimeEnvironmentVariables; - this.startCommand = startCommand; - } + private @Nullable String startCommand; + private ServiceSourceConfigurationImageRepositoryImageConfiguration() {} /** * @return The port that your application listens to in the container. Defaults to `"8080"`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ServiceSourceConfigurationImageRepositoryImageConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String port; private @Nullable Map runtimeEnvironmentVariables; private @Nullable String startCommand; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceSourceConfigurationImageRepositoryImageConfiguration defaults) { Objects.requireNonNull(defaults); this.port = defaults.port; @@ -84,19 +71,27 @@ public Builder(ServiceSourceConfigurationImageRepositoryImageConfiguration defau this.startCommand = defaults.startCommand; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder runtimeEnvironmentVariables(@Nullable Map runtimeEnvironmentVariables) { this.runtimeEnvironmentVariables = runtimeEnvironmentVariables; return this; } + @CustomType.Setter public Builder startCommand(@Nullable String startCommand) { this.startCommand = startCommand; return this; - } public ServiceSourceConfigurationImageRepositoryImageConfiguration build() { - return new ServiceSourceConfigurationImageRepositoryImageConfiguration(port, runtimeEnvironmentVariables, startCommand); + } + public ServiceSourceConfigurationImageRepositoryImageConfiguration build() { + final var o = new ServiceSourceConfigurationImageRepositoryImageConfiguration(); + o.port = port; + o.runtimeEnvironmentVariables = runtimeEnvironmentVariables; + o.startCommand = startCommand; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/DirectoryConfigServiceAccountCredentials.java b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/DirectoryConfigServiceAccountCredentials.java index 04115cc1574..b8f55883d54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/DirectoryConfigServiceAccountCredentials.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/DirectoryConfigServiceAccountCredentials.java @@ -13,21 +13,14 @@ public final class DirectoryConfigServiceAccountCredentials { * @return User name of the account. This account must have the following privileges: create computer objects, join computers to the domain, and change/reset the password on descendant computer objects for the organizational units specified. * */ - private final String accountName; + private String accountName; /** * @return Password for the account. * */ - private final String accountPassword; - - @CustomType.Constructor - private DirectoryConfigServiceAccountCredentials( - @CustomType.Parameter("accountName") String accountName, - @CustomType.Parameter("accountPassword") String accountPassword) { - this.accountName = accountName; - this.accountPassword = accountPassword; - } + private String accountPassword; + private DirectoryConfigServiceAccountCredentials() {} /** * @return User name of the account. This account must have the following privileges: create computer objects, join computers to the domain, and change/reset the password on descendant computer objects for the organizational units specified. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(DirectoryConfigServiceAccountCredentials defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accountName; private String accountPassword; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DirectoryConfigServiceAccountCredentials defaults) { Objects.requireNonNull(defaults); this.accountName = defaults.accountName; this.accountPassword = defaults.accountPassword; } + @CustomType.Setter public Builder accountName(String accountName) { this.accountName = Objects.requireNonNull(accountName); return this; } + @CustomType.Setter public Builder accountPassword(String accountPassword) { this.accountPassword = Objects.requireNonNull(accountPassword); return this; - } public DirectoryConfigServiceAccountCredentials build() { - return new DirectoryConfigServiceAccountCredentials(accountName, accountPassword); + } + public DirectoryConfigServiceAccountCredentials build() { + final var o = new DirectoryConfigServiceAccountCredentials(); + o.accountName = accountName; + o.accountPassword = accountPassword; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/FleetComputeCapacity.java b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/FleetComputeCapacity.java index dbb30aec311..c3e6128910a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/FleetComputeCapacity.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/FleetComputeCapacity.java @@ -15,35 +15,24 @@ public final class FleetComputeCapacity { * @return Number of currently available instances that can be used to stream sessions. * */ - private final @Nullable Integer available; + private @Nullable Integer available; /** * @return Desired number of streaming instances. * */ - private final Integer desiredInstances; + private Integer desiredInstances; /** * @return Number of instances in use for streaming. * */ - private final @Nullable Integer inUse; + private @Nullable Integer inUse; /** * @return Total number of simultaneous streaming instances that are running. * */ - private final @Nullable Integer running; - - @CustomType.Constructor - private FleetComputeCapacity( - @CustomType.Parameter("available") @Nullable Integer available, - @CustomType.Parameter("desiredInstances") Integer desiredInstances, - @CustomType.Parameter("inUse") @Nullable Integer inUse, - @CustomType.Parameter("running") @Nullable Integer running) { - this.available = available; - this.desiredInstances = desiredInstances; - this.inUse = inUse; - this.running = running; - } + private @Nullable Integer running; + private FleetComputeCapacity() {} /** * @return Number of currently available instances that can be used to stream sessions. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(FleetComputeCapacity defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer available; private Integer desiredInstances; private @Nullable Integer inUse; private @Nullable Integer running; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetComputeCapacity defaults) { Objects.requireNonNull(defaults); this.available = defaults.available; @@ -99,23 +84,33 @@ public Builder(FleetComputeCapacity defaults) { this.running = defaults.running; } + @CustomType.Setter public Builder available(@Nullable Integer available) { this.available = available; return this; } + @CustomType.Setter public Builder desiredInstances(Integer desiredInstances) { this.desiredInstances = Objects.requireNonNull(desiredInstances); return this; } + @CustomType.Setter public Builder inUse(@Nullable Integer inUse) { this.inUse = inUse; return this; } + @CustomType.Setter public Builder running(@Nullable Integer running) { this.running = running; return this; - } public FleetComputeCapacity build() { - return new FleetComputeCapacity(available, desiredInstances, inUse, running); + } + public FleetComputeCapacity build() { + final var o = new FleetComputeCapacity(); + o.available = available; + o.desiredInstances = desiredInstances; + o.inUse = inUse; + o.running = running; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/FleetDomainJoinInfo.java b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/FleetDomainJoinInfo.java index c17a989c98a..77b41ccd09e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/FleetDomainJoinInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/FleetDomainJoinInfo.java @@ -15,21 +15,14 @@ public final class FleetDomainJoinInfo { * @return Fully qualified name of the directory (for example, corp.example.com). * */ - private final @Nullable String directoryName; + private @Nullable String directoryName; /** * @return Distinguished name of the organizational unit for computer accounts. * */ - private final @Nullable String organizationalUnitDistinguishedName; - - @CustomType.Constructor - private FleetDomainJoinInfo( - @CustomType.Parameter("directoryName") @Nullable String directoryName, - @CustomType.Parameter("organizationalUnitDistinguishedName") @Nullable String organizationalUnitDistinguishedName) { - this.directoryName = directoryName; - this.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; - } + private @Nullable String organizationalUnitDistinguishedName; + private FleetDomainJoinInfo() {} /** * @return Fully qualified name of the directory (for example, corp.example.com). * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FleetDomainJoinInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String directoryName; private @Nullable String organizationalUnitDistinguishedName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetDomainJoinInfo defaults) { Objects.requireNonNull(defaults); this.directoryName = defaults.directoryName; this.organizationalUnitDistinguishedName = defaults.organizationalUnitDistinguishedName; } + @CustomType.Setter public Builder directoryName(@Nullable String directoryName) { this.directoryName = directoryName; return this; } + @CustomType.Setter public Builder organizationalUnitDistinguishedName(@Nullable String organizationalUnitDistinguishedName) { this.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; return this; - } public FleetDomainJoinInfo build() { - return new FleetDomainJoinInfo(directoryName, organizationalUnitDistinguishedName); + } + public FleetDomainJoinInfo build() { + final var o = new FleetDomainJoinInfo(); + o.directoryName = directoryName; + o.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/FleetVpcConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/FleetVpcConfig.java index 2559de31de2..bb8edd02434 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/FleetVpcConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/FleetVpcConfig.java @@ -15,21 +15,14 @@ public final class FleetVpcConfig { * @return Identifiers of the security groups for the fleet or image builder. * */ - private final @Nullable List securityGroupIds; + private @Nullable List securityGroupIds; /** * @return Identifiers of the subnets to which a network interface is attached from the fleet instance or image builder instance. * */ - private final @Nullable List subnetIds; - - @CustomType.Constructor - private FleetVpcConfig( - @CustomType.Parameter("securityGroupIds") @Nullable List securityGroupIds, - @CustomType.Parameter("subnetIds") @Nullable List subnetIds) { - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - } + private @Nullable List subnetIds; + private FleetVpcConfig() {} /** * @return Identifiers of the security groups for the fleet or image builder. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(FleetVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List securityGroupIds; private @Nullable List subnetIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetVpcConfig defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; this.subnetIds = defaults.subnetIds; } + @CustomType.Setter public Builder securityGroupIds(@Nullable List securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; @@ -74,14 +64,19 @@ public Builder securityGroupIds(@Nullable List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(@Nullable List subnetIds) { this.subnetIds = subnetIds; return this; } public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); - } public FleetVpcConfig build() { - return new FleetVpcConfig(securityGroupIds, subnetIds); + } + public FleetVpcConfig build() { + final var o = new FleetVpcConfig(); + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/ImageBuilderAccessEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/ImageBuilderAccessEndpoint.java index 53ee1e7d2d8..7b60f7e73fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/ImageBuilderAccessEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/ImageBuilderAccessEndpoint.java @@ -15,21 +15,14 @@ public final class ImageBuilderAccessEndpoint { * @return Type of interface endpoint. * */ - private final String endpointType; + private String endpointType; /** * @return Identifier (ID) of the VPC in which the interface endpoint is used. * */ - private final @Nullable String vpceId; - - @CustomType.Constructor - private ImageBuilderAccessEndpoint( - @CustomType.Parameter("endpointType") String endpointType, - @CustomType.Parameter("vpceId") @Nullable String vpceId) { - this.endpointType = endpointType; - this.vpceId = vpceId; - } + private @Nullable String vpceId; + private ImageBuilderAccessEndpoint() {} /** * @return Type of interface endpoint. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ImageBuilderAccessEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String endpointType; private @Nullable String vpceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImageBuilderAccessEndpoint defaults) { Objects.requireNonNull(defaults); this.endpointType = defaults.endpointType; this.vpceId = defaults.vpceId; } + @CustomType.Setter public Builder endpointType(String endpointType) { this.endpointType = Objects.requireNonNull(endpointType); return this; } + @CustomType.Setter public Builder vpceId(@Nullable String vpceId) { this.vpceId = vpceId; return this; - } public ImageBuilderAccessEndpoint build() { - return new ImageBuilderAccessEndpoint(endpointType, vpceId); + } + public ImageBuilderAccessEndpoint build() { + final var o = new ImageBuilderAccessEndpoint(); + o.endpointType = endpointType; + o.vpceId = vpceId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/ImageBuilderDomainJoinInfo.java b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/ImageBuilderDomainJoinInfo.java index 14323cdbbce..49e158e5779 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/ImageBuilderDomainJoinInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/ImageBuilderDomainJoinInfo.java @@ -15,21 +15,14 @@ public final class ImageBuilderDomainJoinInfo { * @return Fully qualified name of the directory (for example, corp.example.com). * */ - private final @Nullable String directoryName; + private @Nullable String directoryName; /** * @return Distinguished name of the organizational unit for computer accounts. * */ - private final @Nullable String organizationalUnitDistinguishedName; - - @CustomType.Constructor - private ImageBuilderDomainJoinInfo( - @CustomType.Parameter("directoryName") @Nullable String directoryName, - @CustomType.Parameter("organizationalUnitDistinguishedName") @Nullable String organizationalUnitDistinguishedName) { - this.directoryName = directoryName; - this.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; - } + private @Nullable String organizationalUnitDistinguishedName; + private ImageBuilderDomainJoinInfo() {} /** * @return Fully qualified name of the directory (for example, corp.example.com). * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ImageBuilderDomainJoinInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String directoryName; private @Nullable String organizationalUnitDistinguishedName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImageBuilderDomainJoinInfo defaults) { Objects.requireNonNull(defaults); this.directoryName = defaults.directoryName; this.organizationalUnitDistinguishedName = defaults.organizationalUnitDistinguishedName; } + @CustomType.Setter public Builder directoryName(@Nullable String directoryName) { this.directoryName = directoryName; return this; } + @CustomType.Setter public Builder organizationalUnitDistinguishedName(@Nullable String organizationalUnitDistinguishedName) { this.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; return this; - } public ImageBuilderDomainJoinInfo build() { - return new ImageBuilderDomainJoinInfo(directoryName, organizationalUnitDistinguishedName); + } + public ImageBuilderDomainJoinInfo build() { + final var o = new ImageBuilderDomainJoinInfo(); + o.directoryName = directoryName; + o.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/ImageBuilderVpcConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/ImageBuilderVpcConfig.java index 87b26f59fbb..39f2add89ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/ImageBuilderVpcConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/ImageBuilderVpcConfig.java @@ -15,21 +15,14 @@ public final class ImageBuilderVpcConfig { * @return Identifiers of the security groups for the image builder or image builder. * */ - private final @Nullable List securityGroupIds; + private @Nullable List securityGroupIds; /** * @return Identifiers of the subnets to which a network interface is attached from the image builder instance or image builder instance. * */ - private final @Nullable List subnetIds; - - @CustomType.Constructor - private ImageBuilderVpcConfig( - @CustomType.Parameter("securityGroupIds") @Nullable List securityGroupIds, - @CustomType.Parameter("subnetIds") @Nullable List subnetIds) { - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - } + private @Nullable List subnetIds; + private ImageBuilderVpcConfig() {} /** * @return Identifiers of the security groups for the image builder or image builder. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(ImageBuilderVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List securityGroupIds; private @Nullable List subnetIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImageBuilderVpcConfig defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; this.subnetIds = defaults.subnetIds; } + @CustomType.Setter public Builder securityGroupIds(@Nullable List securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; @@ -74,14 +64,19 @@ public Builder securityGroupIds(@Nullable List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(@Nullable List subnetIds) { this.subnetIds = subnetIds; return this; } public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); - } public ImageBuilderVpcConfig build() { - return new ImageBuilderVpcConfig(securityGroupIds, subnetIds); + } + public ImageBuilderVpcConfig build() { + final var o = new ImageBuilderVpcConfig(); + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackAccessEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackAccessEndpoint.java index 9ddb35c770c..1e7d16f88fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackAccessEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackAccessEndpoint.java @@ -15,21 +15,14 @@ public final class StackAccessEndpoint { * @return The type of the interface endpoint. See the [`AccessEndpoint` AWS API documentation](https://docs.aws.amazon.com/appstream2/latest/APIReference/API_AccessEndpoint.html) for valid values. * */ - private final String endpointType; + private String endpointType; /** * @return The ID of the VPC in which the interface endpoint is used. * */ - private final @Nullable String vpceId; - - @CustomType.Constructor - private StackAccessEndpoint( - @CustomType.Parameter("endpointType") String endpointType, - @CustomType.Parameter("vpceId") @Nullable String vpceId) { - this.endpointType = endpointType; - this.vpceId = vpceId; - } + private @Nullable String vpceId; + private StackAccessEndpoint() {} /** * @return The type of the interface endpoint. See the [`AccessEndpoint` AWS API documentation](https://docs.aws.amazon.com/appstream2/latest/APIReference/API_AccessEndpoint.html) for valid values. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(StackAccessEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String endpointType; private @Nullable String vpceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StackAccessEndpoint defaults) { Objects.requireNonNull(defaults); this.endpointType = defaults.endpointType; this.vpceId = defaults.vpceId; } + @CustomType.Setter public Builder endpointType(String endpointType) { this.endpointType = Objects.requireNonNull(endpointType); return this; } + @CustomType.Setter public Builder vpceId(@Nullable String vpceId) { this.vpceId = vpceId; return this; - } public StackAccessEndpoint build() { - return new StackAccessEndpoint(endpointType, vpceId); + } + public StackAccessEndpoint build() { + final var o = new StackAccessEndpoint(); + o.endpointType = endpointType; + o.vpceId = vpceId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackApplicationSettings.java b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackApplicationSettings.java index e198c6a6b4b..ddfec372c81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackApplicationSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackApplicationSettings.java @@ -12,17 +12,10 @@ @CustomType public final class StackApplicationSettings { - private final @Nullable Boolean enabled; - private final @Nullable String settingsGroup; - - @CustomType.Constructor - private StackApplicationSettings( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("settingsGroup") @Nullable String settingsGroup) { - this.enabled = enabled; - this.settingsGroup = settingsGroup; - } + private @Nullable Boolean enabled; + private @Nullable String settingsGroup; + private StackApplicationSettings() {} public Optional enabled() { return Optional.ofNullable(this.enabled); } @@ -37,30 +30,32 @@ public static Builder builder() { public static Builder builder(StackApplicationSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable String settingsGroup; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StackApplicationSettings defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.settingsGroup = defaults.settingsGroup; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder settingsGroup(@Nullable String settingsGroup) { this.settingsGroup = settingsGroup; return this; - } public StackApplicationSettings build() { - return new StackApplicationSettings(enabled, settingsGroup); + } + public StackApplicationSettings build() { + final var o = new StackApplicationSettings(); + o.enabled = enabled; + o.settingsGroup = settingsGroup; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackStorageConnector.java b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackStorageConnector.java index 64480cefa96..9b5a685cf32 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackStorageConnector.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackStorageConnector.java @@ -16,28 +16,19 @@ public final class StackStorageConnector { * @return Type of storage connector. Valid values are: `HOMEFOLDERS`, `GOOGLE_DRIVE`, `ONE_DRIVE`. * */ - private final String connectorType; + private String connectorType; /** * @return Names of the domains for the account. * */ - private final @Nullable List domains; + private @Nullable List domains; /** * @return ARN of the storage connector. * */ - private final @Nullable String resourceIdentifier; - - @CustomType.Constructor - private StackStorageConnector( - @CustomType.Parameter("connectorType") String connectorType, - @CustomType.Parameter("domains") @Nullable List domains, - @CustomType.Parameter("resourceIdentifier") @Nullable String resourceIdentifier) { - this.connectorType = connectorType; - this.domains = domains; - this.resourceIdentifier = resourceIdentifier; - } + private @Nullable String resourceIdentifier; + private StackStorageConnector() {} /** * @return Type of storage connector. Valid values are: `HOMEFOLDERS`, `GOOGLE_DRIVE`, `ONE_DRIVE`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(StackStorageConnector defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String connectorType; private @Nullable List domains; private @Nullable String resourceIdentifier; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StackStorageConnector defaults) { Objects.requireNonNull(defaults); this.connectorType = defaults.connectorType; @@ -84,10 +71,12 @@ public Builder(StackStorageConnector defaults) { this.resourceIdentifier = defaults.resourceIdentifier; } + @CustomType.Setter public Builder connectorType(String connectorType) { this.connectorType = Objects.requireNonNull(connectorType); return this; } + @CustomType.Setter public Builder domains(@Nullable List domains) { this.domains = domains; return this; @@ -95,11 +84,17 @@ public Builder domains(@Nullable List domains) { public Builder domains(String... domains) { return domains(List.of(domains)); } + @CustomType.Setter public Builder resourceIdentifier(@Nullable String resourceIdentifier) { this.resourceIdentifier = resourceIdentifier; return this; - } public StackStorageConnector build() { - return new StackStorageConnector(connectorType, domains, resourceIdentifier); + } + public StackStorageConnector build() { + final var o = new StackStorageConnector(); + o.connectorType = connectorType; + o.domains = domains; + o.resourceIdentifier = resourceIdentifier; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackUserSetting.java b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackUserSetting.java index 15d30dacaad..5a54a077582 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackUserSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appstream/outputs/StackUserSetting.java @@ -13,21 +13,14 @@ public final class StackUserSetting { * @return Action that is enabled or disabled. Valid values are: `CLIPBOARD_COPY_FROM_LOCAL_DEVICE`, `CLIPBOARD_COPY_TO_LOCAL_DEVICE`, `FILE_UPLOAD`, `FILE_DOWNLOAD`, `PRINTING_TO_LOCAL_DEVICE`, `DOMAIN_PASSWORD_SIGNIN`, `DOMAIN_SMART_CARD_SIGNIN`. * */ - private final String action; + private String action; /** * @return Indicates whether the action is enabled or disabled. Valid values are: `ENABLED`, `DISABLED`. * */ - private final String permission; - - @CustomType.Constructor - private StackUserSetting( - @CustomType.Parameter("action") String action, - @CustomType.Parameter("permission") String permission) { - this.action = action; - this.permission = permission; - } + private String permission; + private StackUserSetting() {} /** * @return Action that is enabled or disabled. Valid values are: `CLIPBOARD_COPY_FROM_LOCAL_DEVICE`, `CLIPBOARD_COPY_TO_LOCAL_DEVICE`, `FILE_UPLOAD`, `FILE_DOWNLOAD`, `PRINTING_TO_LOCAL_DEVICE`, `DOMAIN_PASSWORD_SIGNIN`, `DOMAIN_SMART_CARD_SIGNIN`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(StackUserSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String action; private String permission; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StackUserSetting defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; this.permission = defaults.permission; } + @CustomType.Setter public Builder action(String action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder permission(String permission) { this.permission = Objects.requireNonNull(permission); return this; - } public StackUserSetting build() { - return new StackUserSetting(action, permission); + } + public StackUserSetting build() { + final var o = new StackUserSetting(); + o.action = action; + o.permission = permission; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceDynamodbConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceDynamodbConfig.java index 697322f22b2..e3e04c8895c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceDynamodbConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceDynamodbConfig.java @@ -13,38 +13,25 @@ @CustomType public final class DataSourceDynamodbConfig { - private final @Nullable DataSourceDynamodbConfigDeltaSyncConfig deltaSyncConfig; + private @Nullable DataSourceDynamodbConfigDeltaSyncConfig deltaSyncConfig; /** * @return AWS Region for RDS HTTP endpoint. Defaults to current region. * */ - private final @Nullable String region; + private @Nullable String region; /** * @return Name of the DynamoDB table. * */ - private final String tableName; + private String tableName; /** * @return Set to `true` to use Amazon Cognito credentials with this data source. * */ - private final @Nullable Boolean useCallerCredentials; - private final @Nullable Boolean versioned; - - @CustomType.Constructor - private DataSourceDynamodbConfig( - @CustomType.Parameter("deltaSyncConfig") @Nullable DataSourceDynamodbConfigDeltaSyncConfig deltaSyncConfig, - @CustomType.Parameter("region") @Nullable String region, - @CustomType.Parameter("tableName") String tableName, - @CustomType.Parameter("useCallerCredentials") @Nullable Boolean useCallerCredentials, - @CustomType.Parameter("versioned") @Nullable Boolean versioned) { - this.deltaSyncConfig = deltaSyncConfig; - this.region = region; - this.tableName = tableName; - this.useCallerCredentials = useCallerCredentials; - this.versioned = versioned; - } + private @Nullable Boolean useCallerCredentials; + private @Nullable Boolean versioned; + private DataSourceDynamodbConfig() {} public Optional deltaSyncConfig() { return Optional.ofNullable(this.deltaSyncConfig); } @@ -80,18 +67,14 @@ public static Builder builder() { public static Builder builder(DataSourceDynamodbConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DataSourceDynamodbConfigDeltaSyncConfig deltaSyncConfig; private @Nullable String region; private String tableName; private @Nullable Boolean useCallerCredentials; private @Nullable Boolean versioned; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceDynamodbConfig defaults) { Objects.requireNonNull(defaults); this.deltaSyncConfig = defaults.deltaSyncConfig; @@ -101,27 +84,39 @@ public Builder(DataSourceDynamodbConfig defaults) { this.versioned = defaults.versioned; } + @CustomType.Setter public Builder deltaSyncConfig(@Nullable DataSourceDynamodbConfigDeltaSyncConfig deltaSyncConfig) { this.deltaSyncConfig = deltaSyncConfig; return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; } + @CustomType.Setter public Builder tableName(String tableName) { this.tableName = Objects.requireNonNull(tableName); return this; } + @CustomType.Setter public Builder useCallerCredentials(@Nullable Boolean useCallerCredentials) { this.useCallerCredentials = useCallerCredentials; return this; } + @CustomType.Setter public Builder versioned(@Nullable Boolean versioned) { this.versioned = versioned; return this; - } public DataSourceDynamodbConfig build() { - return new DataSourceDynamodbConfig(deltaSyncConfig, region, tableName, useCallerCredentials, versioned); + } + public DataSourceDynamodbConfig build() { + final var o = new DataSourceDynamodbConfig(); + o.deltaSyncConfig = deltaSyncConfig; + o.region = region; + o.tableName = tableName; + o.useCallerCredentials = useCallerCredentials; + o.versioned = versioned; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceDynamodbConfigDeltaSyncConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceDynamodbConfigDeltaSyncConfig.java index 99a848fe174..9a78e8f449d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceDynamodbConfigDeltaSyncConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceDynamodbConfigDeltaSyncConfig.java @@ -12,20 +12,11 @@ @CustomType public final class DataSourceDynamodbConfigDeltaSyncConfig { - private final @Nullable Integer baseTableTtl; - private final String deltaSyncTableName; - private final @Nullable Integer deltaSyncTableTtl; - - @CustomType.Constructor - private DataSourceDynamodbConfigDeltaSyncConfig( - @CustomType.Parameter("baseTableTtl") @Nullable Integer baseTableTtl, - @CustomType.Parameter("deltaSyncTableName") String deltaSyncTableName, - @CustomType.Parameter("deltaSyncTableTtl") @Nullable Integer deltaSyncTableTtl) { - this.baseTableTtl = baseTableTtl; - this.deltaSyncTableName = deltaSyncTableName; - this.deltaSyncTableTtl = deltaSyncTableTtl; - } + private @Nullable Integer baseTableTtl; + private String deltaSyncTableName; + private @Nullable Integer deltaSyncTableTtl; + private DataSourceDynamodbConfigDeltaSyncConfig() {} public Optional baseTableTtl() { return Optional.ofNullable(this.baseTableTtl); } @@ -43,16 +34,12 @@ public static Builder builder() { public static Builder builder(DataSourceDynamodbConfigDeltaSyncConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer baseTableTtl; private String deltaSyncTableName; private @Nullable Integer deltaSyncTableTtl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceDynamodbConfigDeltaSyncConfig defaults) { Objects.requireNonNull(defaults); this.baseTableTtl = defaults.baseTableTtl; @@ -60,19 +47,27 @@ public Builder(DataSourceDynamodbConfigDeltaSyncConfig defaults) { this.deltaSyncTableTtl = defaults.deltaSyncTableTtl; } + @CustomType.Setter public Builder baseTableTtl(@Nullable Integer baseTableTtl) { this.baseTableTtl = baseTableTtl; return this; } + @CustomType.Setter public Builder deltaSyncTableName(String deltaSyncTableName) { this.deltaSyncTableName = Objects.requireNonNull(deltaSyncTableName); return this; } + @CustomType.Setter public Builder deltaSyncTableTtl(@Nullable Integer deltaSyncTableTtl) { this.deltaSyncTableTtl = deltaSyncTableTtl; return this; - } public DataSourceDynamodbConfigDeltaSyncConfig build() { - return new DataSourceDynamodbConfigDeltaSyncConfig(baseTableTtl, deltaSyncTableName, deltaSyncTableTtl); + } + public DataSourceDynamodbConfigDeltaSyncConfig build() { + final var o = new DataSourceDynamodbConfigDeltaSyncConfig(); + o.baseTableTtl = baseTableTtl; + o.deltaSyncTableName = deltaSyncTableName; + o.deltaSyncTableTtl = deltaSyncTableTtl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceElasticsearchConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceElasticsearchConfig.java index 1475b7a9dc5..37c8f56cac9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceElasticsearchConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceElasticsearchConfig.java @@ -15,21 +15,14 @@ public final class DataSourceElasticsearchConfig { * @return HTTP URL. * */ - private final String endpoint; + private String endpoint; /** * @return AWS Region for RDS HTTP endpoint. Defaults to current region. * */ - private final @Nullable String region; - - @CustomType.Constructor - private DataSourceElasticsearchConfig( - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("region") @Nullable String region) { - this.endpoint = endpoint; - this.region = region; - } + private @Nullable String region; + private DataSourceElasticsearchConfig() {} /** * @return HTTP URL. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DataSourceElasticsearchConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String endpoint; private @Nullable String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceElasticsearchConfig defaults) { Objects.requireNonNull(defaults); this.endpoint = defaults.endpoint; this.region = defaults.region; } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; - } public DataSourceElasticsearchConfig build() { - return new DataSourceElasticsearchConfig(endpoint, region); + } + public DataSourceElasticsearchConfig build() { + final var o = new DataSourceElasticsearchConfig(); + o.endpoint = endpoint; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceHttpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceHttpConfig.java index 9f57c3f2701..0df969a07c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceHttpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceHttpConfig.java @@ -16,21 +16,14 @@ public final class DataSourceHttpConfig { * @return The authorization configuration in case the HTTP endpoint requires authorization. See Authorization Config. * */ - private final @Nullable DataSourceHttpConfigAuthorizationConfig authorizationConfig; + private @Nullable DataSourceHttpConfigAuthorizationConfig authorizationConfig; /** * @return HTTP URL. * */ - private final String endpoint; - - @CustomType.Constructor - private DataSourceHttpConfig( - @CustomType.Parameter("authorizationConfig") @Nullable DataSourceHttpConfigAuthorizationConfig authorizationConfig, - @CustomType.Parameter("endpoint") String endpoint) { - this.authorizationConfig = authorizationConfig; - this.endpoint = endpoint; - } + private String endpoint; + private DataSourceHttpConfig() {} /** * @return The authorization configuration in case the HTTP endpoint requires authorization. See Authorization Config. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(DataSourceHttpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DataSourceHttpConfigAuthorizationConfig authorizationConfig; private String endpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceHttpConfig defaults) { Objects.requireNonNull(defaults); this.authorizationConfig = defaults.authorizationConfig; this.endpoint = defaults.endpoint; } + @CustomType.Setter public Builder authorizationConfig(@Nullable DataSourceHttpConfigAuthorizationConfig authorizationConfig) { this.authorizationConfig = authorizationConfig; return this; } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; - } public DataSourceHttpConfig build() { - return new DataSourceHttpConfig(authorizationConfig, endpoint); + } + public DataSourceHttpConfig build() { + final var o = new DataSourceHttpConfig(); + o.authorizationConfig = authorizationConfig; + o.endpoint = endpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceHttpConfigAuthorizationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceHttpConfigAuthorizationConfig.java index 767e0e390dc..eea26784058 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceHttpConfigAuthorizationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceHttpConfigAuthorizationConfig.java @@ -16,21 +16,14 @@ public final class DataSourceHttpConfigAuthorizationConfig { * @return The authorization type that the HTTP endpoint requires. Default values is `AWS_IAM`. * */ - private final @Nullable String authorizationType; + private @Nullable String authorizationType; /** * @return The Identity and Access Management (IAM) settings. See AWS IAM Config. * */ - private final @Nullable DataSourceHttpConfigAuthorizationConfigAwsIamConfig awsIamConfig; - - @CustomType.Constructor - private DataSourceHttpConfigAuthorizationConfig( - @CustomType.Parameter("authorizationType") @Nullable String authorizationType, - @CustomType.Parameter("awsIamConfig") @Nullable DataSourceHttpConfigAuthorizationConfigAwsIamConfig awsIamConfig) { - this.authorizationType = authorizationType; - this.awsIamConfig = awsIamConfig; - } + private @Nullable DataSourceHttpConfigAuthorizationConfigAwsIamConfig awsIamConfig; + private DataSourceHttpConfigAuthorizationConfig() {} /** * @return The authorization type that the HTTP endpoint requires. Default values is `AWS_IAM`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(DataSourceHttpConfigAuthorizationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String authorizationType; private @Nullable DataSourceHttpConfigAuthorizationConfigAwsIamConfig awsIamConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceHttpConfigAuthorizationConfig defaults) { Objects.requireNonNull(defaults); this.authorizationType = defaults.authorizationType; this.awsIamConfig = defaults.awsIamConfig; } + @CustomType.Setter public Builder authorizationType(@Nullable String authorizationType) { this.authorizationType = authorizationType; return this; } + @CustomType.Setter public Builder awsIamConfig(@Nullable DataSourceHttpConfigAuthorizationConfigAwsIamConfig awsIamConfig) { this.awsIamConfig = awsIamConfig; return this; - } public DataSourceHttpConfigAuthorizationConfig build() { - return new DataSourceHttpConfigAuthorizationConfig(authorizationType, awsIamConfig); + } + public DataSourceHttpConfigAuthorizationConfig build() { + final var o = new DataSourceHttpConfigAuthorizationConfig(); + o.authorizationType = authorizationType; + o.awsIamConfig = awsIamConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceHttpConfigAuthorizationConfigAwsIamConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceHttpConfigAuthorizationConfigAwsIamConfig.java index 7d0f0e8c406..0fa4a019611 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceHttpConfigAuthorizationConfigAwsIamConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceHttpConfigAuthorizationConfigAwsIamConfig.java @@ -15,21 +15,14 @@ public final class DataSourceHttpConfigAuthorizationConfigAwsIamConfig { * @return The signing Amazon Web Services Region for IAM authorization. * */ - private final @Nullable String signingRegion; + private @Nullable String signingRegion; /** * @return The signing service name for IAM authorization. * */ - private final @Nullable String signingServiceName; - - @CustomType.Constructor - private DataSourceHttpConfigAuthorizationConfigAwsIamConfig( - @CustomType.Parameter("signingRegion") @Nullable String signingRegion, - @CustomType.Parameter("signingServiceName") @Nullable String signingServiceName) { - this.signingRegion = signingRegion; - this.signingServiceName = signingServiceName; - } + private @Nullable String signingServiceName; + private DataSourceHttpConfigAuthorizationConfigAwsIamConfig() {} /** * @return The signing Amazon Web Services Region for IAM authorization. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DataSourceHttpConfigAuthorizationConfigAwsIamConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String signingRegion; private @Nullable String signingServiceName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceHttpConfigAuthorizationConfigAwsIamConfig defaults) { Objects.requireNonNull(defaults); this.signingRegion = defaults.signingRegion; this.signingServiceName = defaults.signingServiceName; } + @CustomType.Setter public Builder signingRegion(@Nullable String signingRegion) { this.signingRegion = signingRegion; return this; } + @CustomType.Setter public Builder signingServiceName(@Nullable String signingServiceName) { this.signingServiceName = signingServiceName; return this; - } public DataSourceHttpConfigAuthorizationConfigAwsIamConfig build() { - return new DataSourceHttpConfigAuthorizationConfigAwsIamConfig(signingRegion, signingServiceName); + } + public DataSourceHttpConfigAuthorizationConfigAwsIamConfig build() { + final var o = new DataSourceHttpConfigAuthorizationConfigAwsIamConfig(); + o.signingRegion = signingRegion; + o.signingServiceName = signingServiceName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceLambdaConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceLambdaConfig.java index 3e273573c55..4aa566961ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceLambdaConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceLambdaConfig.java @@ -13,13 +13,9 @@ public final class DataSourceLambdaConfig { * @return The ARN for the Lambda function. * */ - private final String functionArn; - - @CustomType.Constructor - private DataSourceLambdaConfig(@CustomType.Parameter("functionArn") String functionArn) { - this.functionArn = functionArn; - } + private String functionArn; + private DataSourceLambdaConfig() {} /** * @return The ARN for the Lambda function. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(DataSourceLambdaConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String functionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceLambdaConfig defaults) { Objects.requireNonNull(defaults); this.functionArn = defaults.functionArn; } + @CustomType.Setter public Builder functionArn(String functionArn) { this.functionArn = Objects.requireNonNull(functionArn); return this; - } public DataSourceLambdaConfig build() { - return new DataSourceLambdaConfig(functionArn); + } + public DataSourceLambdaConfig build() { + final var o = new DataSourceLambdaConfig(); + o.functionArn = functionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceRelationalDatabaseConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceRelationalDatabaseConfig.java index 94edbed36c9..df7488dcf98 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceRelationalDatabaseConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceRelationalDatabaseConfig.java @@ -16,21 +16,14 @@ public final class DataSourceRelationalDatabaseConfig { * @return The Amazon RDS HTTP endpoint configuration. See HTTP Endpoint Config. * */ - private final @Nullable DataSourceRelationalDatabaseConfigHttpEndpointConfig httpEndpointConfig; + private @Nullable DataSourceRelationalDatabaseConfigHttpEndpointConfig httpEndpointConfig; /** * @return Source type for the relational database. Valid values: `RDS_HTTP_ENDPOINT`. * */ - private final @Nullable String sourceType; - - @CustomType.Constructor - private DataSourceRelationalDatabaseConfig( - @CustomType.Parameter("httpEndpointConfig") @Nullable DataSourceRelationalDatabaseConfigHttpEndpointConfig httpEndpointConfig, - @CustomType.Parameter("sourceType") @Nullable String sourceType) { - this.httpEndpointConfig = httpEndpointConfig; - this.sourceType = sourceType; - } + private @Nullable String sourceType; + private DataSourceRelationalDatabaseConfig() {} /** * @return The Amazon RDS HTTP endpoint configuration. See HTTP Endpoint Config. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(DataSourceRelationalDatabaseConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DataSourceRelationalDatabaseConfigHttpEndpointConfig httpEndpointConfig; private @Nullable String sourceType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceRelationalDatabaseConfig defaults) { Objects.requireNonNull(defaults); this.httpEndpointConfig = defaults.httpEndpointConfig; this.sourceType = defaults.sourceType; } + @CustomType.Setter public Builder httpEndpointConfig(@Nullable DataSourceRelationalDatabaseConfigHttpEndpointConfig httpEndpointConfig) { this.httpEndpointConfig = httpEndpointConfig; return this; } + @CustomType.Setter public Builder sourceType(@Nullable String sourceType) { this.sourceType = sourceType; return this; - } public DataSourceRelationalDatabaseConfig build() { - return new DataSourceRelationalDatabaseConfig(httpEndpointConfig, sourceType); + } + public DataSourceRelationalDatabaseConfig build() { + final var o = new DataSourceRelationalDatabaseConfig(); + o.httpEndpointConfig = httpEndpointConfig; + o.sourceType = sourceType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceRelationalDatabaseConfigHttpEndpointConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceRelationalDatabaseConfigHttpEndpointConfig.java index 8fe6afdc3da..bc9a0809b9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceRelationalDatabaseConfigHttpEndpointConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/DataSourceRelationalDatabaseConfigHttpEndpointConfig.java @@ -15,42 +15,29 @@ public final class DataSourceRelationalDatabaseConfigHttpEndpointConfig { * @return AWS secret store ARN for database credentials. * */ - private final String awsSecretStoreArn; + private String awsSecretStoreArn; /** * @return Logical database name. * */ - private final @Nullable String databaseName; + private @Nullable String databaseName; /** * @return Amazon RDS cluster identifier. * */ - private final String dbClusterIdentifier; + private String dbClusterIdentifier; /** * @return AWS Region for RDS HTTP endpoint. Defaults to current region. * */ - private final @Nullable String region; + private @Nullable String region; /** * @return Logical schema name. * */ - private final @Nullable String schema; - - @CustomType.Constructor - private DataSourceRelationalDatabaseConfigHttpEndpointConfig( - @CustomType.Parameter("awsSecretStoreArn") String awsSecretStoreArn, - @CustomType.Parameter("databaseName") @Nullable String databaseName, - @CustomType.Parameter("dbClusterIdentifier") String dbClusterIdentifier, - @CustomType.Parameter("region") @Nullable String region, - @CustomType.Parameter("schema") @Nullable String schema) { - this.awsSecretStoreArn = awsSecretStoreArn; - this.databaseName = databaseName; - this.dbClusterIdentifier = dbClusterIdentifier; - this.region = region; - this.schema = schema; - } + private @Nullable String schema; + private DataSourceRelationalDatabaseConfigHttpEndpointConfig() {} /** * @return AWS secret store ARN for database credentials. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(DataSourceRelationalDatabaseConfigHttpEndpointConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String awsSecretStoreArn; private @Nullable String databaseName; private String dbClusterIdentifier; private @Nullable String region; private @Nullable String schema; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceRelationalDatabaseConfigHttpEndpointConfig defaults) { Objects.requireNonNull(defaults); this.awsSecretStoreArn = defaults.awsSecretStoreArn; @@ -115,27 +98,39 @@ public Builder(DataSourceRelationalDatabaseConfigHttpEndpointConfig defaults) { this.schema = defaults.schema; } + @CustomType.Setter public Builder awsSecretStoreArn(String awsSecretStoreArn) { this.awsSecretStoreArn = Objects.requireNonNull(awsSecretStoreArn); return this; } + @CustomType.Setter public Builder databaseName(@Nullable String databaseName) { this.databaseName = databaseName; return this; } + @CustomType.Setter public Builder dbClusterIdentifier(String dbClusterIdentifier) { this.dbClusterIdentifier = Objects.requireNonNull(dbClusterIdentifier); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; } + @CustomType.Setter public Builder schema(@Nullable String schema) { this.schema = schema; return this; - } public DataSourceRelationalDatabaseConfigHttpEndpointConfig build() { - return new DataSourceRelationalDatabaseConfigHttpEndpointConfig(awsSecretStoreArn, databaseName, dbClusterIdentifier, region, schema); + } + public DataSourceRelationalDatabaseConfigHttpEndpointConfig build() { + final var o = new DataSourceRelationalDatabaseConfigHttpEndpointConfig(); + o.awsSecretStoreArn = awsSecretStoreArn; + o.databaseName = databaseName; + o.dbClusterIdentifier = dbClusterIdentifier; + o.region = region; + o.schema = schema; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/FunctionSyncConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/FunctionSyncConfig.java index dff932b2286..474a80074c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/FunctionSyncConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/FunctionSyncConfig.java @@ -16,28 +16,19 @@ public final class FunctionSyncConfig { * @return The Conflict Detection strategy to use. Valid values are `NONE` and `VERSION`. * */ - private final @Nullable String conflictDetection; + private @Nullable String conflictDetection; /** * @return The Conflict Resolution strategy to perform in the event of a conflict. Valid values are `NONE`, `OPTIMISTIC_CONCURRENCY`, `AUTOMERGE`, and `LAMBDA`. * */ - private final @Nullable String conflictHandler; + private @Nullable String conflictHandler; /** * @return The Lambda Conflict Handler Config when configuring `LAMBDA` as the Conflict Handler. See Lambda Conflict Handler Config. * */ - private final @Nullable FunctionSyncConfigLambdaConflictHandlerConfig lambdaConflictHandlerConfig; - - @CustomType.Constructor - private FunctionSyncConfig( - @CustomType.Parameter("conflictDetection") @Nullable String conflictDetection, - @CustomType.Parameter("conflictHandler") @Nullable String conflictHandler, - @CustomType.Parameter("lambdaConflictHandlerConfig") @Nullable FunctionSyncConfigLambdaConflictHandlerConfig lambdaConflictHandlerConfig) { - this.conflictDetection = conflictDetection; - this.conflictHandler = conflictHandler; - this.lambdaConflictHandlerConfig = lambdaConflictHandlerConfig; - } + private @Nullable FunctionSyncConfigLambdaConflictHandlerConfig lambdaConflictHandlerConfig; + private FunctionSyncConfig() {} /** * @return The Conflict Detection strategy to use. Valid values are `NONE` and `VERSION`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FunctionSyncConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String conflictDetection; private @Nullable String conflictHandler; private @Nullable FunctionSyncConfigLambdaConflictHandlerConfig lambdaConflictHandlerConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionSyncConfig defaults) { Objects.requireNonNull(defaults); this.conflictDetection = defaults.conflictDetection; @@ -84,19 +71,27 @@ public Builder(FunctionSyncConfig defaults) { this.lambdaConflictHandlerConfig = defaults.lambdaConflictHandlerConfig; } + @CustomType.Setter public Builder conflictDetection(@Nullable String conflictDetection) { this.conflictDetection = conflictDetection; return this; } + @CustomType.Setter public Builder conflictHandler(@Nullable String conflictHandler) { this.conflictHandler = conflictHandler; return this; } + @CustomType.Setter public Builder lambdaConflictHandlerConfig(@Nullable FunctionSyncConfigLambdaConflictHandlerConfig lambdaConflictHandlerConfig) { this.lambdaConflictHandlerConfig = lambdaConflictHandlerConfig; return this; - } public FunctionSyncConfig build() { - return new FunctionSyncConfig(conflictDetection, conflictHandler, lambdaConflictHandlerConfig); + } + public FunctionSyncConfig build() { + final var o = new FunctionSyncConfig(); + o.conflictDetection = conflictDetection; + o.conflictHandler = conflictHandler; + o.lambdaConflictHandlerConfig = lambdaConflictHandlerConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/FunctionSyncConfigLambdaConflictHandlerConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/FunctionSyncConfigLambdaConflictHandlerConfig.java index 3926aa8eea4..bbcf95c9ce8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/FunctionSyncConfigLambdaConflictHandlerConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/FunctionSyncConfigLambdaConflictHandlerConfig.java @@ -15,13 +15,9 @@ public final class FunctionSyncConfigLambdaConflictHandlerConfig { * @return The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler. * */ - private final @Nullable String lambdaConflictHandlerArn; - - @CustomType.Constructor - private FunctionSyncConfigLambdaConflictHandlerConfig(@CustomType.Parameter("lambdaConflictHandlerArn") @Nullable String lambdaConflictHandlerArn) { - this.lambdaConflictHandlerArn = lambdaConflictHandlerArn; - } + private @Nullable String lambdaConflictHandlerArn; + private FunctionSyncConfigLambdaConflictHandlerConfig() {} /** * @return The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FunctionSyncConfigLambdaConflictHandlerConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String lambdaConflictHandlerArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionSyncConfigLambdaConflictHandlerConfig defaults) { Objects.requireNonNull(defaults); this.lambdaConflictHandlerArn = defaults.lambdaConflictHandlerArn; } + @CustomType.Setter public Builder lambdaConflictHandlerArn(@Nullable String lambdaConflictHandlerArn) { this.lambdaConflictHandlerArn = lambdaConflictHandlerArn; return this; - } public FunctionSyncConfigLambdaConflictHandlerConfig build() { - return new FunctionSyncConfigLambdaConflictHandlerConfig(lambdaConflictHandlerArn); + } + public FunctionSyncConfigLambdaConflictHandlerConfig build() { + final var o = new FunctionSyncConfigLambdaConflictHandlerConfig(); + o.lambdaConflictHandlerArn = lambdaConflictHandlerArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProvider.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProvider.java index 35f95a448aa..eba09a3000d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProvider.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProvider.java @@ -18,35 +18,24 @@ public final class GraphQLApiAdditionalAuthenticationProvider { * @return The authentication type. Valid values: `API_KEY`, `AWS_IAM`, `AMAZON_COGNITO_USER_POOLS`, `OPENID_CONNECT`, `AWS_LAMBDA` * */ - private final String authenticationType; + private String authenticationType; /** * @return Nested argument containing Lambda authorizer configuration. Defined below. * */ - private final @Nullable GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig lambdaAuthorizerConfig; + private @Nullable GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig lambdaAuthorizerConfig; /** * @return Nested argument containing OpenID Connect configuration. Defined below. * */ - private final @Nullable GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig openidConnectConfig; + private @Nullable GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig openidConnectConfig; /** * @return The Amazon Cognito User Pool configuration. Defined below. * */ - private final @Nullable GraphQLApiAdditionalAuthenticationProviderUserPoolConfig userPoolConfig; - - @CustomType.Constructor - private GraphQLApiAdditionalAuthenticationProvider( - @CustomType.Parameter("authenticationType") String authenticationType, - @CustomType.Parameter("lambdaAuthorizerConfig") @Nullable GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig lambdaAuthorizerConfig, - @CustomType.Parameter("openidConnectConfig") @Nullable GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig openidConnectConfig, - @CustomType.Parameter("userPoolConfig") @Nullable GraphQLApiAdditionalAuthenticationProviderUserPoolConfig userPoolConfig) { - this.authenticationType = authenticationType; - this.lambdaAuthorizerConfig = lambdaAuthorizerConfig; - this.openidConnectConfig = openidConnectConfig; - this.userPoolConfig = userPoolConfig; - } + private @Nullable GraphQLApiAdditionalAuthenticationProviderUserPoolConfig userPoolConfig; + private GraphQLApiAdditionalAuthenticationProvider() {} /** * @return The authentication type. Valid values: `API_KEY`, `AWS_IAM`, `AMAZON_COGNITO_USER_POOLS`, `OPENID_CONNECT`, `AWS_LAMBDA` * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(GraphQLApiAdditionalAuthenticationProvider defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String authenticationType; private @Nullable GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig lambdaAuthorizerConfig; private @Nullable GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig openidConnectConfig; private @Nullable GraphQLApiAdditionalAuthenticationProviderUserPoolConfig userPoolConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GraphQLApiAdditionalAuthenticationProvider defaults) { Objects.requireNonNull(defaults); this.authenticationType = defaults.authenticationType; @@ -102,23 +87,33 @@ public Builder(GraphQLApiAdditionalAuthenticationProvider defaults) { this.userPoolConfig = defaults.userPoolConfig; } + @CustomType.Setter public Builder authenticationType(String authenticationType) { this.authenticationType = Objects.requireNonNull(authenticationType); return this; } + @CustomType.Setter public Builder lambdaAuthorizerConfig(@Nullable GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig lambdaAuthorizerConfig) { this.lambdaAuthorizerConfig = lambdaAuthorizerConfig; return this; } + @CustomType.Setter public Builder openidConnectConfig(@Nullable GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig openidConnectConfig) { this.openidConnectConfig = openidConnectConfig; return this; } + @CustomType.Setter public Builder userPoolConfig(@Nullable GraphQLApiAdditionalAuthenticationProviderUserPoolConfig userPoolConfig) { this.userPoolConfig = userPoolConfig; return this; - } public GraphQLApiAdditionalAuthenticationProvider build() { - return new GraphQLApiAdditionalAuthenticationProvider(authenticationType, lambdaAuthorizerConfig, openidConnectConfig, userPoolConfig); + } + public GraphQLApiAdditionalAuthenticationProvider build() { + final var o = new GraphQLApiAdditionalAuthenticationProvider(); + o.authenticationType = authenticationType; + o.lambdaAuthorizerConfig = lambdaAuthorizerConfig; + o.openidConnectConfig = openidConnectConfig; + o.userPoolConfig = userPoolConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig.java index 9d022a15bf3..0888df2a364 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig.java @@ -16,28 +16,19 @@ public final class GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerCon * @return The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a `ttlOverride` key in its response. A value of 0 disables caching of responses. Minimum value of 0. Maximum value of 3600. * */ - private final @Nullable Integer authorizerResultTtlInSeconds; + private @Nullable Integer authorizerResultTtlInSeconds; /** * @return The ARN of the Lambda function to be called for authorization. Note: This Lambda function must have a resource-based policy assigned to it, to allow `lambda:InvokeFunction` from service principal `appsync.amazonaws.com`. * */ - private final String authorizerUri; + private String authorizerUri; /** * @return A regular expression for validation of tokens before the Lambda function is called. * */ - private final @Nullable String identityValidationExpression; - - @CustomType.Constructor - private GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig( - @CustomType.Parameter("authorizerResultTtlInSeconds") @Nullable Integer authorizerResultTtlInSeconds, - @CustomType.Parameter("authorizerUri") String authorizerUri, - @CustomType.Parameter("identityValidationExpression") @Nullable String identityValidationExpression) { - this.authorizerResultTtlInSeconds = authorizerResultTtlInSeconds; - this.authorizerUri = authorizerUri; - this.identityValidationExpression = identityValidationExpression; - } + private @Nullable String identityValidationExpression; + private GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig() {} /** * @return The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a `ttlOverride` key in its response. A value of 0 disables caching of responses. Minimum value of 0. Maximum value of 3600. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer authorizerResultTtlInSeconds; private String authorizerUri; private @Nullable String identityValidationExpression; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig defaults) { Objects.requireNonNull(defaults); this.authorizerResultTtlInSeconds = defaults.authorizerResultTtlInSeconds; @@ -84,19 +71,27 @@ public Builder(GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig this.identityValidationExpression = defaults.identityValidationExpression; } + @CustomType.Setter public Builder authorizerResultTtlInSeconds(@Nullable Integer authorizerResultTtlInSeconds) { this.authorizerResultTtlInSeconds = authorizerResultTtlInSeconds; return this; } + @CustomType.Setter public Builder authorizerUri(String authorizerUri) { this.authorizerUri = Objects.requireNonNull(authorizerUri); return this; } + @CustomType.Setter public Builder identityValidationExpression(@Nullable String identityValidationExpression) { this.identityValidationExpression = identityValidationExpression; return this; - } public GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig build() { - return new GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig(authorizerResultTtlInSeconds, authorizerUri, identityValidationExpression); + } + public GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig build() { + final var o = new GraphQLApiAdditionalAuthenticationProviderLambdaAuthorizerConfig(); + o.authorizerResultTtlInSeconds = authorizerResultTtlInSeconds; + o.authorizerUri = authorizerUri; + o.identityValidationExpression = identityValidationExpression; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig.java index 363fecefb34..c5870cb5af7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig.java @@ -16,35 +16,24 @@ public final class GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig * @return Number of milliseconds a token is valid after being authenticated. * */ - private final @Nullable Integer authTtl; + private @Nullable Integer authTtl; /** * @return Client identifier of the Relying party at the OpenID identity provider. This identifier is typically obtained when the Relying party is registered with the OpenID identity provider. You can specify a regular expression so the AWS AppSync can validate against multiple client identifiers at a time. * */ - private final @Nullable String clientId; + private @Nullable String clientId; /** * @return Number of milliseconds a token is valid after being issued to a user. * */ - private final @Nullable Integer iatTtl; + private @Nullable Integer iatTtl; /** * @return Issuer for the OpenID Connect configuration. The issuer returned by discovery MUST exactly match the value of iss in the ID Token. * */ - private final String issuer; - - @CustomType.Constructor - private GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig( - @CustomType.Parameter("authTtl") @Nullable Integer authTtl, - @CustomType.Parameter("clientId") @Nullable String clientId, - @CustomType.Parameter("iatTtl") @Nullable Integer iatTtl, - @CustomType.Parameter("issuer") String issuer) { - this.authTtl = authTtl; - this.clientId = clientId; - this.iatTtl = iatTtl; - this.issuer = issuer; - } + private String issuer; + private GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig() {} /** * @return Number of milliseconds a token is valid after being authenticated. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer authTtl; private @Nullable String clientId; private @Nullable Integer iatTtl; private String issuer; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig defaults) { Objects.requireNonNull(defaults); this.authTtl = defaults.authTtl; @@ -100,23 +85,33 @@ public Builder(GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig def this.issuer = defaults.issuer; } + @CustomType.Setter public Builder authTtl(@Nullable Integer authTtl) { this.authTtl = authTtl; return this; } + @CustomType.Setter public Builder clientId(@Nullable String clientId) { this.clientId = clientId; return this; } + @CustomType.Setter public Builder iatTtl(@Nullable Integer iatTtl) { this.iatTtl = iatTtl; return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; - } public GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig build() { - return new GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig(authTtl, clientId, iatTtl, issuer); + } + public GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig build() { + final var o = new GraphQLApiAdditionalAuthenticationProviderOpenidConnectConfig(); + o.authTtl = authTtl; + o.clientId = clientId; + o.iatTtl = iatTtl; + o.issuer = issuer; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProviderUserPoolConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProviderUserPoolConfig.java index cf3b225e008..e7244848fc5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProviderUserPoolConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiAdditionalAuthenticationProviderUserPoolConfig.java @@ -15,28 +15,19 @@ public final class GraphQLApiAdditionalAuthenticationProviderUserPoolConfig { * @return A regular expression for validating the incoming Amazon Cognito User Pool app client ID. * */ - private final @Nullable String appIdClientRegex; + private @Nullable String appIdClientRegex; /** * @return The AWS region in which the user pool was created. * */ - private final @Nullable String awsRegion; + private @Nullable String awsRegion; /** * @return The user pool ID. * */ - private final String userPoolId; - - @CustomType.Constructor - private GraphQLApiAdditionalAuthenticationProviderUserPoolConfig( - @CustomType.Parameter("appIdClientRegex") @Nullable String appIdClientRegex, - @CustomType.Parameter("awsRegion") @Nullable String awsRegion, - @CustomType.Parameter("userPoolId") String userPoolId) { - this.appIdClientRegex = appIdClientRegex; - this.awsRegion = awsRegion; - this.userPoolId = userPoolId; - } + private String userPoolId; + private GraphQLApiAdditionalAuthenticationProviderUserPoolConfig() {} /** * @return A regular expression for validating the incoming Amazon Cognito User Pool app client ID. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GraphQLApiAdditionalAuthenticationProviderUserPoolConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String appIdClientRegex; private @Nullable String awsRegion; private String userPoolId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GraphQLApiAdditionalAuthenticationProviderUserPoolConfig defaults) { Objects.requireNonNull(defaults); this.appIdClientRegex = defaults.appIdClientRegex; @@ -83,19 +70,27 @@ public Builder(GraphQLApiAdditionalAuthenticationProviderUserPoolConfig defaults this.userPoolId = defaults.userPoolId; } + @CustomType.Setter public Builder appIdClientRegex(@Nullable String appIdClientRegex) { this.appIdClientRegex = appIdClientRegex; return this; } + @CustomType.Setter public Builder awsRegion(@Nullable String awsRegion) { this.awsRegion = awsRegion; return this; } + @CustomType.Setter public Builder userPoolId(String userPoolId) { this.userPoolId = Objects.requireNonNull(userPoolId); return this; - } public GraphQLApiAdditionalAuthenticationProviderUserPoolConfig build() { - return new GraphQLApiAdditionalAuthenticationProviderUserPoolConfig(appIdClientRegex, awsRegion, userPoolId); + } + public GraphQLApiAdditionalAuthenticationProviderUserPoolConfig build() { + final var o = new GraphQLApiAdditionalAuthenticationProviderUserPoolConfig(); + o.appIdClientRegex = appIdClientRegex; + o.awsRegion = awsRegion; + o.userPoolId = userPoolId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiLambdaAuthorizerConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiLambdaAuthorizerConfig.java index beb798e8fe5..5df5edf1752 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiLambdaAuthorizerConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiLambdaAuthorizerConfig.java @@ -16,28 +16,19 @@ public final class GraphQLApiLambdaAuthorizerConfig { * @return The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a `ttlOverride` key in its response. A value of 0 disables caching of responses. Minimum value of 0. Maximum value of 3600. * */ - private final @Nullable Integer authorizerResultTtlInSeconds; + private @Nullable Integer authorizerResultTtlInSeconds; /** * @return The ARN of the Lambda function to be called for authorization. Note: This Lambda function must have a resource-based policy assigned to it, to allow `lambda:InvokeFunction` from service principal `appsync.amazonaws.com`. * */ - private final String authorizerUri; + private String authorizerUri; /** * @return A regular expression for validation of tokens before the Lambda function is called. * */ - private final @Nullable String identityValidationExpression; - - @CustomType.Constructor - private GraphQLApiLambdaAuthorizerConfig( - @CustomType.Parameter("authorizerResultTtlInSeconds") @Nullable Integer authorizerResultTtlInSeconds, - @CustomType.Parameter("authorizerUri") String authorizerUri, - @CustomType.Parameter("identityValidationExpression") @Nullable String identityValidationExpression) { - this.authorizerResultTtlInSeconds = authorizerResultTtlInSeconds; - this.authorizerUri = authorizerUri; - this.identityValidationExpression = identityValidationExpression; - } + private @Nullable String identityValidationExpression; + private GraphQLApiLambdaAuthorizerConfig() {} /** * @return The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a `ttlOverride` key in its response. A value of 0 disables caching of responses. Minimum value of 0. Maximum value of 3600. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GraphQLApiLambdaAuthorizerConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer authorizerResultTtlInSeconds; private String authorizerUri; private @Nullable String identityValidationExpression; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GraphQLApiLambdaAuthorizerConfig defaults) { Objects.requireNonNull(defaults); this.authorizerResultTtlInSeconds = defaults.authorizerResultTtlInSeconds; @@ -84,19 +71,27 @@ public Builder(GraphQLApiLambdaAuthorizerConfig defaults) { this.identityValidationExpression = defaults.identityValidationExpression; } + @CustomType.Setter public Builder authorizerResultTtlInSeconds(@Nullable Integer authorizerResultTtlInSeconds) { this.authorizerResultTtlInSeconds = authorizerResultTtlInSeconds; return this; } + @CustomType.Setter public Builder authorizerUri(String authorizerUri) { this.authorizerUri = Objects.requireNonNull(authorizerUri); return this; } + @CustomType.Setter public Builder identityValidationExpression(@Nullable String identityValidationExpression) { this.identityValidationExpression = identityValidationExpression; return this; - } public GraphQLApiLambdaAuthorizerConfig build() { - return new GraphQLApiLambdaAuthorizerConfig(authorizerResultTtlInSeconds, authorizerUri, identityValidationExpression); + } + public GraphQLApiLambdaAuthorizerConfig build() { + final var o = new GraphQLApiLambdaAuthorizerConfig(); + o.authorizerResultTtlInSeconds = authorizerResultTtlInSeconds; + o.authorizerUri = authorizerUri; + o.identityValidationExpression = identityValidationExpression; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiLogConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiLogConfig.java index d309e8bf0e8..5871d9e5e3e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiLogConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiLogConfig.java @@ -16,28 +16,19 @@ public final class GraphQLApiLogConfig { * @return Amazon Resource Name of the service role that AWS AppSync will assume to publish to Amazon CloudWatch logs in your account. * */ - private final String cloudwatchLogsRoleArn; + private String cloudwatchLogsRoleArn; /** * @return Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level. Valid values: `true`, `false`. Default value: `false` * */ - private final @Nullable Boolean excludeVerboseContent; + private @Nullable Boolean excludeVerboseContent; /** * @return Field logging level. Valid values: `ALL`, `ERROR`, `NONE`. * */ - private final String fieldLogLevel; - - @CustomType.Constructor - private GraphQLApiLogConfig( - @CustomType.Parameter("cloudwatchLogsRoleArn") String cloudwatchLogsRoleArn, - @CustomType.Parameter("excludeVerboseContent") @Nullable Boolean excludeVerboseContent, - @CustomType.Parameter("fieldLogLevel") String fieldLogLevel) { - this.cloudwatchLogsRoleArn = cloudwatchLogsRoleArn; - this.excludeVerboseContent = excludeVerboseContent; - this.fieldLogLevel = fieldLogLevel; - } + private String fieldLogLevel; + private GraphQLApiLogConfig() {} /** * @return Amazon Resource Name of the service role that AWS AppSync will assume to publish to Amazon CloudWatch logs in your account. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GraphQLApiLogConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cloudwatchLogsRoleArn; private @Nullable Boolean excludeVerboseContent; private String fieldLogLevel; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GraphQLApiLogConfig defaults) { Objects.requireNonNull(defaults); this.cloudwatchLogsRoleArn = defaults.cloudwatchLogsRoleArn; @@ -84,19 +71,27 @@ public Builder(GraphQLApiLogConfig defaults) { this.fieldLogLevel = defaults.fieldLogLevel; } + @CustomType.Setter public Builder cloudwatchLogsRoleArn(String cloudwatchLogsRoleArn) { this.cloudwatchLogsRoleArn = Objects.requireNonNull(cloudwatchLogsRoleArn); return this; } + @CustomType.Setter public Builder excludeVerboseContent(@Nullable Boolean excludeVerboseContent) { this.excludeVerboseContent = excludeVerboseContent; return this; } + @CustomType.Setter public Builder fieldLogLevel(String fieldLogLevel) { this.fieldLogLevel = Objects.requireNonNull(fieldLogLevel); return this; - } public GraphQLApiLogConfig build() { - return new GraphQLApiLogConfig(cloudwatchLogsRoleArn, excludeVerboseContent, fieldLogLevel); + } + public GraphQLApiLogConfig build() { + final var o = new GraphQLApiLogConfig(); + o.cloudwatchLogsRoleArn = cloudwatchLogsRoleArn; + o.excludeVerboseContent = excludeVerboseContent; + o.fieldLogLevel = fieldLogLevel; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiOpenidConnectConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiOpenidConnectConfig.java index 69872b7a153..77c9771a59a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiOpenidConnectConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiOpenidConnectConfig.java @@ -16,35 +16,24 @@ public final class GraphQLApiOpenidConnectConfig { * @return Number of milliseconds a token is valid after being authenticated. * */ - private final @Nullable Integer authTtl; + private @Nullable Integer authTtl; /** * @return Client identifier of the Relying party at the OpenID identity provider. This identifier is typically obtained when the Relying party is registered with the OpenID identity provider. You can specify a regular expression so the AWS AppSync can validate against multiple client identifiers at a time. * */ - private final @Nullable String clientId; + private @Nullable String clientId; /** * @return Number of milliseconds a token is valid after being issued to a user. * */ - private final @Nullable Integer iatTtl; + private @Nullable Integer iatTtl; /** * @return Issuer for the OpenID Connect configuration. The issuer returned by discovery MUST exactly match the value of iss in the ID Token. * */ - private final String issuer; - - @CustomType.Constructor - private GraphQLApiOpenidConnectConfig( - @CustomType.Parameter("authTtl") @Nullable Integer authTtl, - @CustomType.Parameter("clientId") @Nullable String clientId, - @CustomType.Parameter("iatTtl") @Nullable Integer iatTtl, - @CustomType.Parameter("issuer") String issuer) { - this.authTtl = authTtl; - this.clientId = clientId; - this.iatTtl = iatTtl; - this.issuer = issuer; - } + private String issuer; + private GraphQLApiOpenidConnectConfig() {} /** * @return Number of milliseconds a token is valid after being authenticated. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(GraphQLApiOpenidConnectConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer authTtl; private @Nullable String clientId; private @Nullable Integer iatTtl; private String issuer; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GraphQLApiOpenidConnectConfig defaults) { Objects.requireNonNull(defaults); this.authTtl = defaults.authTtl; @@ -100,23 +85,33 @@ public Builder(GraphQLApiOpenidConnectConfig defaults) { this.issuer = defaults.issuer; } + @CustomType.Setter public Builder authTtl(@Nullable Integer authTtl) { this.authTtl = authTtl; return this; } + @CustomType.Setter public Builder clientId(@Nullable String clientId) { this.clientId = clientId; return this; } + @CustomType.Setter public Builder iatTtl(@Nullable Integer iatTtl) { this.iatTtl = iatTtl; return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; - } public GraphQLApiOpenidConnectConfig build() { - return new GraphQLApiOpenidConnectConfig(authTtl, clientId, iatTtl, issuer); + } + public GraphQLApiOpenidConnectConfig build() { + final var o = new GraphQLApiOpenidConnectConfig(); + o.authTtl = authTtl; + o.clientId = clientId; + o.iatTtl = iatTtl; + o.issuer = issuer; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiUserPoolConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiUserPoolConfig.java index a8acca94dd1..412b7abebc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiUserPoolConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/GraphQLApiUserPoolConfig.java @@ -15,35 +15,24 @@ public final class GraphQLApiUserPoolConfig { * @return A regular expression for validating the incoming Amazon Cognito User Pool app client ID. * */ - private final @Nullable String appIdClientRegex; + private @Nullable String appIdClientRegex; /** * @return The AWS region in which the user pool was created. * */ - private final @Nullable String awsRegion; + private @Nullable String awsRegion; /** * @return The action that you want your GraphQL API to take when a request that uses Amazon Cognito User Pool authentication doesn't match the Amazon Cognito User Pool configuration. Valid: `ALLOW` and `DENY` * */ - private final String defaultAction; + private String defaultAction; /** * @return The user pool ID. * */ - private final String userPoolId; - - @CustomType.Constructor - private GraphQLApiUserPoolConfig( - @CustomType.Parameter("appIdClientRegex") @Nullable String appIdClientRegex, - @CustomType.Parameter("awsRegion") @Nullable String awsRegion, - @CustomType.Parameter("defaultAction") String defaultAction, - @CustomType.Parameter("userPoolId") String userPoolId) { - this.appIdClientRegex = appIdClientRegex; - this.awsRegion = awsRegion; - this.defaultAction = defaultAction; - this.userPoolId = userPoolId; - } + private String userPoolId; + private GraphQLApiUserPoolConfig() {} /** * @return A regular expression for validating the incoming Amazon Cognito User Pool app client ID. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(GraphQLApiUserPoolConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String appIdClientRegex; private @Nullable String awsRegion; private String defaultAction; private String userPoolId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GraphQLApiUserPoolConfig defaults) { Objects.requireNonNull(defaults); this.appIdClientRegex = defaults.appIdClientRegex; @@ -99,23 +84,33 @@ public Builder(GraphQLApiUserPoolConfig defaults) { this.userPoolId = defaults.userPoolId; } + @CustomType.Setter public Builder appIdClientRegex(@Nullable String appIdClientRegex) { this.appIdClientRegex = appIdClientRegex; return this; } + @CustomType.Setter public Builder awsRegion(@Nullable String awsRegion) { this.awsRegion = awsRegion; return this; } + @CustomType.Setter public Builder defaultAction(String defaultAction) { this.defaultAction = Objects.requireNonNull(defaultAction); return this; } + @CustomType.Setter public Builder userPoolId(String userPoolId) { this.userPoolId = Objects.requireNonNull(userPoolId); return this; - } public GraphQLApiUserPoolConfig build() { - return new GraphQLApiUserPoolConfig(appIdClientRegex, awsRegion, defaultAction, userPoolId); + } + public GraphQLApiUserPoolConfig build() { + final var o = new GraphQLApiUserPoolConfig(); + o.appIdClientRegex = appIdClientRegex; + o.awsRegion = awsRegion; + o.defaultAction = defaultAction; + o.userPoolId = userPoolId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverCachingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverCachingConfig.java index f26e964ffee..74c015d8712 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverCachingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverCachingConfig.java @@ -17,21 +17,14 @@ public final class ResolverCachingConfig { * @return The list of caching key. * */ - private final @Nullable List cachingKeys; + private @Nullable List cachingKeys; /** * @return The TTL in seconds. * */ - private final @Nullable Integer ttl; - - @CustomType.Constructor - private ResolverCachingConfig( - @CustomType.Parameter("cachingKeys") @Nullable List cachingKeys, - @CustomType.Parameter("ttl") @Nullable Integer ttl) { - this.cachingKeys = cachingKeys; - this.ttl = ttl; - } + private @Nullable Integer ttl; + private ResolverCachingConfig() {} /** * @return The list of caching key. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(ResolverCachingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List cachingKeys; private @Nullable Integer ttl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResolverCachingConfig defaults) { Objects.requireNonNull(defaults); this.cachingKeys = defaults.cachingKeys; this.ttl = defaults.ttl; } + @CustomType.Setter public Builder cachingKeys(@Nullable List cachingKeys) { this.cachingKeys = cachingKeys; return this; @@ -76,11 +66,16 @@ public Builder cachingKeys(@Nullable List cachingKeys) { public Builder cachingKeys(String... cachingKeys) { return cachingKeys(List.of(cachingKeys)); } + @CustomType.Setter public Builder ttl(@Nullable Integer ttl) { this.ttl = ttl; return this; - } public ResolverCachingConfig build() { - return new ResolverCachingConfig(cachingKeys, ttl); + } + public ResolverCachingConfig build() { + final var o = new ResolverCachingConfig(); + o.cachingKeys = cachingKeys; + o.ttl = ttl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverPipelineConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverPipelineConfig.java index f61d83df09e..cfa8d5603cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverPipelineConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverPipelineConfig.java @@ -15,13 +15,9 @@ public final class ResolverPipelineConfig { * @return The list of Function ID. * */ - private final @Nullable List functions; - - @CustomType.Constructor - private ResolverPipelineConfig(@CustomType.Parameter("functions") @Nullable List functions) { - this.functions = functions; - } + private @Nullable List functions; + private ResolverPipelineConfig() {} /** * @return The list of Function ID. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(ResolverPipelineConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List functions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResolverPipelineConfig defaults) { Objects.requireNonNull(defaults); this.functions = defaults.functions; } + @CustomType.Setter public Builder functions(@Nullable List functions) { this.functions = functions; return this; } public Builder functions(String... functions) { return functions(List.of(functions)); - } public ResolverPipelineConfig build() { - return new ResolverPipelineConfig(functions); + } + public ResolverPipelineConfig build() { + final var o = new ResolverPipelineConfig(); + o.functions = functions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverSyncConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverSyncConfig.java index 0c53ebe6277..a34621d19f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverSyncConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverSyncConfig.java @@ -16,28 +16,19 @@ public final class ResolverSyncConfig { * @return The Conflict Detection strategy to use. Valid values are `NONE` and `VERSION`. * */ - private final @Nullable String conflictDetection; + private @Nullable String conflictDetection; /** * @return The Conflict Resolution strategy to perform in the event of a conflict. Valid values are `NONE`, `OPTIMISTIC_CONCURRENCY`, `AUTOMERGE`, and `LAMBDA`. * */ - private final @Nullable String conflictHandler; + private @Nullable String conflictHandler; /** * @return The Lambda Conflict Handler Config when configuring `LAMBDA` as the Conflict Handler. See Lambda Conflict Handler Config. * */ - private final @Nullable ResolverSyncConfigLambdaConflictHandlerConfig lambdaConflictHandlerConfig; - - @CustomType.Constructor - private ResolverSyncConfig( - @CustomType.Parameter("conflictDetection") @Nullable String conflictDetection, - @CustomType.Parameter("conflictHandler") @Nullable String conflictHandler, - @CustomType.Parameter("lambdaConflictHandlerConfig") @Nullable ResolverSyncConfigLambdaConflictHandlerConfig lambdaConflictHandlerConfig) { - this.conflictDetection = conflictDetection; - this.conflictHandler = conflictHandler; - this.lambdaConflictHandlerConfig = lambdaConflictHandlerConfig; - } + private @Nullable ResolverSyncConfigLambdaConflictHandlerConfig lambdaConflictHandlerConfig; + private ResolverSyncConfig() {} /** * @return The Conflict Detection strategy to use. Valid values are `NONE` and `VERSION`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ResolverSyncConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String conflictDetection; private @Nullable String conflictHandler; private @Nullable ResolverSyncConfigLambdaConflictHandlerConfig lambdaConflictHandlerConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResolverSyncConfig defaults) { Objects.requireNonNull(defaults); this.conflictDetection = defaults.conflictDetection; @@ -84,19 +71,27 @@ public Builder(ResolverSyncConfig defaults) { this.lambdaConflictHandlerConfig = defaults.lambdaConflictHandlerConfig; } + @CustomType.Setter public Builder conflictDetection(@Nullable String conflictDetection) { this.conflictDetection = conflictDetection; return this; } + @CustomType.Setter public Builder conflictHandler(@Nullable String conflictHandler) { this.conflictHandler = conflictHandler; return this; } + @CustomType.Setter public Builder lambdaConflictHandlerConfig(@Nullable ResolverSyncConfigLambdaConflictHandlerConfig lambdaConflictHandlerConfig) { this.lambdaConflictHandlerConfig = lambdaConflictHandlerConfig; return this; - } public ResolverSyncConfig build() { - return new ResolverSyncConfig(conflictDetection, conflictHandler, lambdaConflictHandlerConfig); + } + public ResolverSyncConfig build() { + final var o = new ResolverSyncConfig(); + o.conflictDetection = conflictDetection; + o.conflictHandler = conflictHandler; + o.lambdaConflictHandlerConfig = lambdaConflictHandlerConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverSyncConfigLambdaConflictHandlerConfig.java b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverSyncConfigLambdaConflictHandlerConfig.java index ebf8577834f..597476bccfa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverSyncConfigLambdaConflictHandlerConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/appsync/outputs/ResolverSyncConfigLambdaConflictHandlerConfig.java @@ -15,13 +15,9 @@ public final class ResolverSyncConfigLambdaConflictHandlerConfig { * @return The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler. * */ - private final @Nullable String lambdaConflictHandlerArn; - - @CustomType.Constructor - private ResolverSyncConfigLambdaConflictHandlerConfig(@CustomType.Parameter("lambdaConflictHandlerArn") @Nullable String lambdaConflictHandlerArn) { - this.lambdaConflictHandlerArn = lambdaConflictHandlerArn; - } + private @Nullable String lambdaConflictHandlerArn; + private ResolverSyncConfigLambdaConflictHandlerConfig() {} /** * @return The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ResolverSyncConfigLambdaConflictHandlerConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String lambdaConflictHandlerArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResolverSyncConfigLambdaConflictHandlerConfig defaults) { Objects.requireNonNull(defaults); this.lambdaConflictHandlerArn = defaults.lambdaConflictHandlerArn; } + @CustomType.Setter public Builder lambdaConflictHandlerArn(@Nullable String lambdaConflictHandlerArn) { this.lambdaConflictHandlerArn = lambdaConflictHandlerArn; return this; - } public ResolverSyncConfigLambdaConflictHandlerConfig build() { - return new ResolverSyncConfigLambdaConflictHandlerConfig(lambdaConflictHandlerArn); + } + public ResolverSyncConfigLambdaConflictHandlerConfig build() { + final var o = new ResolverSyncConfigLambdaConflictHandlerConfig(); + o.lambdaConflictHandlerArn = lambdaConflictHandlerArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/DatabaseAclConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/DatabaseAclConfiguration.java index 4a589c887b9..f449672f820 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/DatabaseAclConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/DatabaseAclConfiguration.java @@ -13,13 +13,9 @@ public final class DatabaseAclConfiguration { * @return The Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is `BUCKET_OWNER_FULL_CONTROL`. * */ - private final String s3AclOption; - - @CustomType.Constructor - private DatabaseAclConfiguration(@CustomType.Parameter("s3AclOption") String s3AclOption) { - this.s3AclOption = s3AclOption; - } + private String s3AclOption; + private DatabaseAclConfiguration() {} /** * @return The Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is `BUCKET_OWNER_FULL_CONTROL`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(DatabaseAclConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String s3AclOption; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DatabaseAclConfiguration defaults) { Objects.requireNonNull(defaults); this.s3AclOption = defaults.s3AclOption; } + @CustomType.Setter public Builder s3AclOption(String s3AclOption) { this.s3AclOption = Objects.requireNonNull(s3AclOption); return this; - } public DatabaseAclConfiguration build() { - return new DatabaseAclConfiguration(s3AclOption); + } + public DatabaseAclConfiguration build() { + final var o = new DatabaseAclConfiguration(); + o.s3AclOption = s3AclOption; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/DatabaseEncryptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/DatabaseEncryptionConfiguration.java index ed6d22e0e5f..9c39f83dc19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/DatabaseEncryptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/DatabaseEncryptionConfiguration.java @@ -15,21 +15,14 @@ public final class DatabaseEncryptionConfiguration { * @return The type of key; one of `SSE_S3`, `SSE_KMS`, `CSE_KMS` * */ - private final String encryptionOption; + private String encryptionOption; /** * @return The KMS key ARN or ID; required for key types `SSE_KMS` and `CSE_KMS`. * */ - private final @Nullable String kmsKey; - - @CustomType.Constructor - private DatabaseEncryptionConfiguration( - @CustomType.Parameter("encryptionOption") String encryptionOption, - @CustomType.Parameter("kmsKey") @Nullable String kmsKey) { - this.encryptionOption = encryptionOption; - this.kmsKey = kmsKey; - } + private @Nullable String kmsKey; + private DatabaseEncryptionConfiguration() {} /** * @return The type of key; one of `SSE_S3`, `SSE_KMS`, `CSE_KMS` * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DatabaseEncryptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String encryptionOption; private @Nullable String kmsKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DatabaseEncryptionConfiguration defaults) { Objects.requireNonNull(defaults); this.encryptionOption = defaults.encryptionOption; this.kmsKey = defaults.kmsKey; } + @CustomType.Setter public Builder encryptionOption(String encryptionOption) { this.encryptionOption = Objects.requireNonNull(encryptionOption); return this; } + @CustomType.Setter public Builder kmsKey(@Nullable String kmsKey) { this.kmsKey = kmsKey; return this; - } public DatabaseEncryptionConfiguration build() { - return new DatabaseEncryptionConfiguration(encryptionOption, kmsKey); + } + public DatabaseEncryptionConfiguration build() { + final var o = new DatabaseEncryptionConfiguration(); + o.encryptionOption = encryptionOption; + o.kmsKey = kmsKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfiguration.java index 2f330c0a85d..aaca8597862 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfiguration.java @@ -18,49 +18,34 @@ public final class WorkgroupConfiguration { * @return Integer for the upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. Must be at least `10485760`. * */ - private final @Nullable Integer bytesScannedCutoffPerQuery; + private @Nullable Integer bytesScannedCutoffPerQuery; /** * @return Boolean whether the settings for the workgroup override client-side settings. For more information, see [Workgroup Settings Override Client-Side Settings](https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html). Defaults to `true`. * */ - private final @Nullable Boolean enforceWorkgroupConfiguration; + private @Nullable Boolean enforceWorkgroupConfiguration; /** * @return Configuration block for the Athena Engine Versioning. For more information, see [Athena Engine Versioning](https://docs.aws.amazon.com/athena/latest/ug/engine-versions.html). See Engine Version below. * */ - private final @Nullable WorkgroupConfigurationEngineVersion engineVersion; + private @Nullable WorkgroupConfigurationEngineVersion engineVersion; /** * @return Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to `true`. * */ - private final @Nullable Boolean publishCloudwatchMetricsEnabled; + private @Nullable Boolean publishCloudwatchMetricsEnabled; /** * @return If set to true , allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false , workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false . For more information about Requester Pays buckets, see [Requester Pays Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html) in the Amazon Simple Storage Service Developer Guide. * */ - private final @Nullable Boolean requesterPaysEnabled; + private @Nullable Boolean requesterPaysEnabled; /** * @return Configuration block with result settings. See Result Configuration below. * */ - private final @Nullable WorkgroupConfigurationResultConfiguration resultConfiguration; - - @CustomType.Constructor - private WorkgroupConfiguration( - @CustomType.Parameter("bytesScannedCutoffPerQuery") @Nullable Integer bytesScannedCutoffPerQuery, - @CustomType.Parameter("enforceWorkgroupConfiguration") @Nullable Boolean enforceWorkgroupConfiguration, - @CustomType.Parameter("engineVersion") @Nullable WorkgroupConfigurationEngineVersion engineVersion, - @CustomType.Parameter("publishCloudwatchMetricsEnabled") @Nullable Boolean publishCloudwatchMetricsEnabled, - @CustomType.Parameter("requesterPaysEnabled") @Nullable Boolean requesterPaysEnabled, - @CustomType.Parameter("resultConfiguration") @Nullable WorkgroupConfigurationResultConfiguration resultConfiguration) { - this.bytesScannedCutoffPerQuery = bytesScannedCutoffPerQuery; - this.enforceWorkgroupConfiguration = enforceWorkgroupConfiguration; - this.engineVersion = engineVersion; - this.publishCloudwatchMetricsEnabled = publishCloudwatchMetricsEnabled; - this.requesterPaysEnabled = requesterPaysEnabled; - this.resultConfiguration = resultConfiguration; - } + private @Nullable WorkgroupConfigurationResultConfiguration resultConfiguration; + private WorkgroupConfiguration() {} /** * @return Integer for the upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. Must be at least `10485760`. * @@ -111,7 +96,7 @@ public static Builder builder() { public static Builder builder(WorkgroupConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer bytesScannedCutoffPerQuery; private @Nullable Boolean enforceWorkgroupConfiguration; @@ -119,11 +104,7 @@ public static final class Builder { private @Nullable Boolean publishCloudwatchMetricsEnabled; private @Nullable Boolean requesterPaysEnabled; private @Nullable WorkgroupConfigurationResultConfiguration resultConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkgroupConfiguration defaults) { Objects.requireNonNull(defaults); this.bytesScannedCutoffPerQuery = defaults.bytesScannedCutoffPerQuery; @@ -134,31 +115,45 @@ public Builder(WorkgroupConfiguration defaults) { this.resultConfiguration = defaults.resultConfiguration; } + @CustomType.Setter public Builder bytesScannedCutoffPerQuery(@Nullable Integer bytesScannedCutoffPerQuery) { this.bytesScannedCutoffPerQuery = bytesScannedCutoffPerQuery; return this; } + @CustomType.Setter public Builder enforceWorkgroupConfiguration(@Nullable Boolean enforceWorkgroupConfiguration) { this.enforceWorkgroupConfiguration = enforceWorkgroupConfiguration; return this; } + @CustomType.Setter public Builder engineVersion(@Nullable WorkgroupConfigurationEngineVersion engineVersion) { this.engineVersion = engineVersion; return this; } + @CustomType.Setter public Builder publishCloudwatchMetricsEnabled(@Nullable Boolean publishCloudwatchMetricsEnabled) { this.publishCloudwatchMetricsEnabled = publishCloudwatchMetricsEnabled; return this; } + @CustomType.Setter public Builder requesterPaysEnabled(@Nullable Boolean requesterPaysEnabled) { this.requesterPaysEnabled = requesterPaysEnabled; return this; } + @CustomType.Setter public Builder resultConfiguration(@Nullable WorkgroupConfigurationResultConfiguration resultConfiguration) { this.resultConfiguration = resultConfiguration; return this; - } public WorkgroupConfiguration build() { - return new WorkgroupConfiguration(bytesScannedCutoffPerQuery, enforceWorkgroupConfiguration, engineVersion, publishCloudwatchMetricsEnabled, requesterPaysEnabled, resultConfiguration); + } + public WorkgroupConfiguration build() { + final var o = new WorkgroupConfiguration(); + o.bytesScannedCutoffPerQuery = bytesScannedCutoffPerQuery; + o.enforceWorkgroupConfiguration = enforceWorkgroupConfiguration; + o.engineVersion = engineVersion; + o.publishCloudwatchMetricsEnabled = publishCloudwatchMetricsEnabled; + o.requesterPaysEnabled = requesterPaysEnabled; + o.resultConfiguration = resultConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationEngineVersion.java b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationEngineVersion.java index 4c36b414dce..5be790cf859 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationEngineVersion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationEngineVersion.java @@ -15,21 +15,14 @@ public final class WorkgroupConfigurationEngineVersion { * @return The engine version on which the query runs. If `selected_engine_version` is set to `AUTO`, the effective engine version is chosen by Athena. * */ - private final @Nullable String effectiveEngineVersion; + private @Nullable String effectiveEngineVersion; /** * @return The requested engine version. Defaults to `AUTO`. * */ - private final @Nullable String selectedEngineVersion; - - @CustomType.Constructor - private WorkgroupConfigurationEngineVersion( - @CustomType.Parameter("effectiveEngineVersion") @Nullable String effectiveEngineVersion, - @CustomType.Parameter("selectedEngineVersion") @Nullable String selectedEngineVersion) { - this.effectiveEngineVersion = effectiveEngineVersion; - this.selectedEngineVersion = selectedEngineVersion; - } + private @Nullable String selectedEngineVersion; + private WorkgroupConfigurationEngineVersion() {} /** * @return The engine version on which the query runs. If `selected_engine_version` is set to `AUTO`, the effective engine version is chosen by Athena. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(WorkgroupConfigurationEngineVersion defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String effectiveEngineVersion; private @Nullable String selectedEngineVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkgroupConfigurationEngineVersion defaults) { Objects.requireNonNull(defaults); this.effectiveEngineVersion = defaults.effectiveEngineVersion; this.selectedEngineVersion = defaults.selectedEngineVersion; } + @CustomType.Setter public Builder effectiveEngineVersion(@Nullable String effectiveEngineVersion) { this.effectiveEngineVersion = effectiveEngineVersion; return this; } + @CustomType.Setter public Builder selectedEngineVersion(@Nullable String selectedEngineVersion) { this.selectedEngineVersion = selectedEngineVersion; return this; - } public WorkgroupConfigurationEngineVersion build() { - return new WorkgroupConfigurationEngineVersion(effectiveEngineVersion, selectedEngineVersion); + } + public WorkgroupConfigurationEngineVersion build() { + final var o = new WorkgroupConfigurationEngineVersion(); + o.effectiveEngineVersion = effectiveEngineVersion; + o.selectedEngineVersion = selectedEngineVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationResultConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationResultConfiguration.java index c7ebb12d236..f4f9c4cb6a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationResultConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationResultConfiguration.java @@ -17,35 +17,24 @@ public final class WorkgroupConfigurationResultConfiguration { * @return Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below. * */ - private final @Nullable WorkgroupConfigurationResultConfigurationAclConfiguration aclConfiguration; + private @Nullable WorkgroupConfigurationResultConfigurationAclConfiguration aclConfiguration; /** * @return Configuration block with encryption settings. See Encryption Configuration below. * */ - private final @Nullable WorkgroupConfigurationResultConfigurationEncryptionConfiguration encryptionConfiguration; + private @Nullable WorkgroupConfigurationResultConfigurationEncryptionConfiguration encryptionConfiguration; /** * @return The AWS account ID that you expect to be the owner of the Amazon S3 bucket. * */ - private final @Nullable String expectedBucketOwner; + private @Nullable String expectedBucketOwner; /** * @return The location in Amazon S3 where your query results are stored, such as `s3://path/to/query/bucket/`. For more information, see [Queries and Query Result Files](https://docs.aws.amazon.com/athena/latest/ug/querying.html). * */ - private final @Nullable String outputLocation; - - @CustomType.Constructor - private WorkgroupConfigurationResultConfiguration( - @CustomType.Parameter("aclConfiguration") @Nullable WorkgroupConfigurationResultConfigurationAclConfiguration aclConfiguration, - @CustomType.Parameter("encryptionConfiguration") @Nullable WorkgroupConfigurationResultConfigurationEncryptionConfiguration encryptionConfiguration, - @CustomType.Parameter("expectedBucketOwner") @Nullable String expectedBucketOwner, - @CustomType.Parameter("outputLocation") @Nullable String outputLocation) { - this.aclConfiguration = aclConfiguration; - this.encryptionConfiguration = encryptionConfiguration; - this.expectedBucketOwner = expectedBucketOwner; - this.outputLocation = outputLocation; - } + private @Nullable String outputLocation; + private WorkgroupConfigurationResultConfiguration() {} /** * @return Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(WorkgroupConfigurationResultConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WorkgroupConfigurationResultConfigurationAclConfiguration aclConfiguration; private @Nullable WorkgroupConfigurationResultConfigurationEncryptionConfiguration encryptionConfiguration; private @Nullable String expectedBucketOwner; private @Nullable String outputLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkgroupConfigurationResultConfiguration defaults) { Objects.requireNonNull(defaults); this.aclConfiguration = defaults.aclConfiguration; @@ -101,23 +86,33 @@ public Builder(WorkgroupConfigurationResultConfiguration defaults) { this.outputLocation = defaults.outputLocation; } + @CustomType.Setter public Builder aclConfiguration(@Nullable WorkgroupConfigurationResultConfigurationAclConfiguration aclConfiguration) { this.aclConfiguration = aclConfiguration; return this; } + @CustomType.Setter public Builder encryptionConfiguration(@Nullable WorkgroupConfigurationResultConfigurationEncryptionConfiguration encryptionConfiguration) { this.encryptionConfiguration = encryptionConfiguration; return this; } + @CustomType.Setter public Builder expectedBucketOwner(@Nullable String expectedBucketOwner) { this.expectedBucketOwner = expectedBucketOwner; return this; } + @CustomType.Setter public Builder outputLocation(@Nullable String outputLocation) { this.outputLocation = outputLocation; return this; - } public WorkgroupConfigurationResultConfiguration build() { - return new WorkgroupConfigurationResultConfiguration(aclConfiguration, encryptionConfiguration, expectedBucketOwner, outputLocation); + } + public WorkgroupConfigurationResultConfiguration build() { + final var o = new WorkgroupConfigurationResultConfiguration(); + o.aclConfiguration = aclConfiguration; + o.encryptionConfiguration = encryptionConfiguration; + o.expectedBucketOwner = expectedBucketOwner; + o.outputLocation = outputLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationResultConfigurationAclConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationResultConfigurationAclConfiguration.java index 597b9e6289b..a686a106284 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationResultConfigurationAclConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationResultConfigurationAclConfiguration.java @@ -13,13 +13,9 @@ public final class WorkgroupConfigurationResultConfigurationAclConfiguration { * @return The Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is `BUCKET_OWNER_FULL_CONTROL`. * */ - private final String s3AclOption; - - @CustomType.Constructor - private WorkgroupConfigurationResultConfigurationAclConfiguration(@CustomType.Parameter("s3AclOption") String s3AclOption) { - this.s3AclOption = s3AclOption; - } + private String s3AclOption; + private WorkgroupConfigurationResultConfigurationAclConfiguration() {} /** * @return The Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is `BUCKET_OWNER_FULL_CONTROL`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WorkgroupConfigurationResultConfigurationAclConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String s3AclOption; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkgroupConfigurationResultConfigurationAclConfiguration defaults) { Objects.requireNonNull(defaults); this.s3AclOption = defaults.s3AclOption; } + @CustomType.Setter public Builder s3AclOption(String s3AclOption) { this.s3AclOption = Objects.requireNonNull(s3AclOption); return this; - } public WorkgroupConfigurationResultConfigurationAclConfiguration build() { - return new WorkgroupConfigurationResultConfigurationAclConfiguration(s3AclOption); + } + public WorkgroupConfigurationResultConfigurationAclConfiguration build() { + final var o = new WorkgroupConfigurationResultConfigurationAclConfiguration(); + o.s3AclOption = s3AclOption; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationResultConfigurationEncryptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationResultConfigurationEncryptionConfiguration.java index 41828b33265..f14bc384bbe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationResultConfigurationEncryptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/athena/outputs/WorkgroupConfigurationResultConfigurationEncryptionConfiguration.java @@ -15,21 +15,14 @@ public final class WorkgroupConfigurationResultConfigurationEncryptionConfigurat * @return Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (`SSE_S3`), server-side encryption with KMS-managed keys (`SSE_KMS`), or client-side encryption with KMS-managed keys (`CSE_KMS`) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. * */ - private final @Nullable String encryptionOption; + private @Nullable String encryptionOption; /** * @return For `SSE_KMS` and `CSE_KMS`, this is the KMS key Amazon Resource Name (ARN). * */ - private final @Nullable String kmsKeyArn; - - @CustomType.Constructor - private WorkgroupConfigurationResultConfigurationEncryptionConfiguration( - @CustomType.Parameter("encryptionOption") @Nullable String encryptionOption, - @CustomType.Parameter("kmsKeyArn") @Nullable String kmsKeyArn) { - this.encryptionOption = encryptionOption; - this.kmsKeyArn = kmsKeyArn; - } + private @Nullable String kmsKeyArn; + private WorkgroupConfigurationResultConfigurationEncryptionConfiguration() {} /** * @return Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (`SSE_S3`), server-side encryption with KMS-managed keys (`SSE_KMS`), or client-side encryption with KMS-managed keys (`CSE_KMS`) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(WorkgroupConfigurationResultConfigurationEncryptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String encryptionOption; private @Nullable String kmsKeyArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkgroupConfigurationResultConfigurationEncryptionConfiguration defaults) { Objects.requireNonNull(defaults); this.encryptionOption = defaults.encryptionOption; this.kmsKeyArn = defaults.kmsKeyArn; } + @CustomType.Setter public Builder encryptionOption(@Nullable String encryptionOption) { this.encryptionOption = encryptionOption; return this; } + @CustomType.Setter public Builder kmsKeyArn(@Nullable String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; return this; - } public WorkgroupConfigurationResultConfigurationEncryptionConfiguration build() { - return new WorkgroupConfigurationResultConfigurationEncryptionConfiguration(encryptionOption, kmsKeyArn); + } + public WorkgroupConfigurationResultConfigurationEncryptionConfiguration build() { + final var o = new WorkgroupConfigurationResultConfigurationEncryptionConfiguration(); + o.encryptionOption = encryptionOption; + o.kmsKeyArn = kmsKeyArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetAmiIdsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetAmiIdsFilter.java index 6bfd72b821b..978e9ab974e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetAmiIdsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetAmiIdsFilter.java @@ -14,21 +14,14 @@ public final class GetAmiIdsFilter { * @return The name of the DescribeAutoScalingGroup filter. The recommended values are: `tag-key`, `tag-value`, and `tag:<tag name>` * */ - private final String name; + private String name; /** * @return The value of the filter. * */ - private final List values; - - @CustomType.Constructor - private GetAmiIdsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetAmiIdsFilter() {} /** * @return The name of the DescribeAutoScalingGroup filter. The recommended values are: `tag-key`, `tag-value`, and `tag:<tag name>` * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetAmiIdsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiIdsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetAmiIdsFilter build() { - return new GetAmiIdsFilter(name, values); + } + public GetAmiIdsFilter build() { + final var o = new GetAmiIdsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetAmiIdsResult.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetAmiIdsResult.java index b668d2b12f9..d84471b3f9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetAmiIdsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetAmiIdsResult.java @@ -16,31 +16,20 @@ public final class GetAmiIdsResult { * @return A list of the Autoscaling Groups Arns in the current region. * */ - private final List arns; - private final @Nullable List filters; + private List arns; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A list of the Autoscaling Groups in the current region. * */ - private final List names; - - @CustomType.Constructor - private GetAmiIdsResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names) { - this.arns = arns; - this.filters = filters; - this.id = id; - this.names = names; - } + private List names; + private GetAmiIdsResult() {} /** * @return A list of the Autoscaling Groups Arns in the current region. * @@ -73,17 +62,13 @@ public static Builder builder() { public static Builder builder(GetAmiIdsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private @Nullable List filters; private String id; private List names; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiIdsResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -92,6 +77,7 @@ public Builder(GetAmiIdsResult defaults) { this.names = defaults.names; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -99,6 +85,7 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -106,18 +93,26 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetAmiIdsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; } public Builder names(String... names) { return names(List.of(names)); - } public GetAmiIdsResult build() { - return new GetAmiIdsResult(arns, filters, id, names); + } + public GetAmiIdsResult build() { + final var o = new GetAmiIdsResult(); + o.arns = arns; + o.filters = filters; + o.id = id; + o.names = names; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetGroupLaunchTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetGroupLaunchTemplate.java index 2e0075de322..262766ce999 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetGroupLaunchTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetGroupLaunchTemplate.java @@ -13,24 +13,15 @@ public final class GetGroupLaunchTemplate { * @return Name of the Auto Scaling Group. * */ - private final String id; + private String id; /** * @return Specify the exact name of the desired autoscaling group. * */ - private final String name; - private final String version; - - @CustomType.Constructor - private GetGroupLaunchTemplate( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("version") String version) { - this.id = id; - this.name = name; - this.version = version; - } + private String name; + private String version; + private GetGroupLaunchTemplate() {} /** * @return Name of the Auto Scaling Group. * @@ -56,16 +47,12 @@ public static Builder builder() { public static Builder builder(GetGroupLaunchTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String name; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetGroupLaunchTemplate defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -73,19 +60,27 @@ public Builder(GetGroupLaunchTemplate defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public GetGroupLaunchTemplate build() { - return new GetGroupLaunchTemplate(id, name, version); + } + public GetGroupLaunchTemplate build() { + final var o = new GetGroupLaunchTemplate(); + o.id = id; + o.name = name; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetGroupResult.java index 0a3affb8147..fc5c05056f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GetGroupResult.java @@ -17,142 +17,97 @@ public final class GetGroupResult { * @return The Amazon Resource Name (ARN) of the Auto Scaling group. * */ - private final String arn; + private String arn; /** * @return One or more Availability Zones for the group. * */ - private final List availabilityZones; - private final Integer defaultCooldown; + private List availabilityZones; + private Integer defaultCooldown; /** * @return The desired size of the group. * */ - private final Integer desiredCapacity; + private Integer desiredCapacity; /** * @return The list of metrics enabled for collection. * */ - private final List enabledMetrics; + private List enabledMetrics; /** * @return The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service. * */ - private final Integer healthCheckGracePeriod; + private Integer healthCheckGracePeriod; /** * @return The service to use for the health checks. The valid values are EC2 and ELB. * */ - private final String healthCheckType; + private String healthCheckType; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the associated launch configuration. * */ - private final String launchConfiguration; - private final List launchTemplates; + private String launchConfiguration; + private List launchTemplates; /** * @return One or more load balancers associated with the group. * */ - private final List loadBalancers; + private List loadBalancers; /** * @return The maximum size of the group. * */ - private final Integer maxSize; + private Integer maxSize; /** * @return The minimum size of the group. * */ - private final Integer minSize; + private Integer minSize; /** * @return Name of the Auto Scaling Group. * */ - private final String name; - private final Boolean newInstancesProtectedFromScaleIn; + private String name; + private Boolean newInstancesProtectedFromScaleIn; /** * @return The name of the placement group into which to launch your instances, if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in the Amazon Elastic Compute Cloud User Guide. * */ - private final String placementGroup; + private String placementGroup; /** * @return The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf. * */ - private final String serviceLinkedRoleArn; + private String serviceLinkedRoleArn; /** * @return The current state of the group when DeleteAutoScalingGroup is in progress. * */ - private final String status; + private String status; /** * @return The Amazon Resource Names (ARN) of the target groups for your load balancer. * */ - private final List targetGroupArns; + private List targetGroupArns; /** * @return The termination policies for the group. * */ - private final List terminationPolicies; + private List terminationPolicies; /** * @return VPC ID for the group. * */ - private final String vpcZoneIdentifier; - - @CustomType.Constructor - private GetGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("defaultCooldown") Integer defaultCooldown, - @CustomType.Parameter("desiredCapacity") Integer desiredCapacity, - @CustomType.Parameter("enabledMetrics") List enabledMetrics, - @CustomType.Parameter("healthCheckGracePeriod") Integer healthCheckGracePeriod, - @CustomType.Parameter("healthCheckType") String healthCheckType, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("launchConfiguration") String launchConfiguration, - @CustomType.Parameter("launchTemplates") List launchTemplates, - @CustomType.Parameter("loadBalancers") List loadBalancers, - @CustomType.Parameter("maxSize") Integer maxSize, - @CustomType.Parameter("minSize") Integer minSize, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("newInstancesProtectedFromScaleIn") Boolean newInstancesProtectedFromScaleIn, - @CustomType.Parameter("placementGroup") String placementGroup, - @CustomType.Parameter("serviceLinkedRoleArn") String serviceLinkedRoleArn, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("targetGroupArns") List targetGroupArns, - @CustomType.Parameter("terminationPolicies") List terminationPolicies, - @CustomType.Parameter("vpcZoneIdentifier") String vpcZoneIdentifier) { - this.arn = arn; - this.availabilityZones = availabilityZones; - this.defaultCooldown = defaultCooldown; - this.desiredCapacity = desiredCapacity; - this.enabledMetrics = enabledMetrics; - this.healthCheckGracePeriod = healthCheckGracePeriod; - this.healthCheckType = healthCheckType; - this.id = id; - this.launchConfiguration = launchConfiguration; - this.launchTemplates = launchTemplates; - this.loadBalancers = loadBalancers; - this.maxSize = maxSize; - this.minSize = minSize; - this.name = name; - this.newInstancesProtectedFromScaleIn = newInstancesProtectedFromScaleIn; - this.placementGroup = placementGroup; - this.serviceLinkedRoleArn = serviceLinkedRoleArn; - this.status = status; - this.targetGroupArns = targetGroupArns; - this.terminationPolicies = terminationPolicies; - this.vpcZoneIdentifier = vpcZoneIdentifier; - } + private String vpcZoneIdentifier; + private GetGroupResult() {} /** * @return The Amazon Resource Name (ARN) of the Auto Scaling group. * @@ -296,7 +251,7 @@ public static Builder builder() { public static Builder builder(GetGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List availabilityZones; @@ -319,11 +274,7 @@ public static final class Builder { private List targetGroupArns; private List terminationPolicies; private String vpcZoneIdentifier; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -349,10 +300,12 @@ public Builder(GetGroupResult defaults) { this.vpcZoneIdentifier = defaults.vpcZoneIdentifier; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -360,14 +313,17 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder defaultCooldown(Integer defaultCooldown) { this.defaultCooldown = Objects.requireNonNull(defaultCooldown); return this; } + @CustomType.Setter public Builder desiredCapacity(Integer desiredCapacity) { this.desiredCapacity = Objects.requireNonNull(desiredCapacity); return this; } + @CustomType.Setter public Builder enabledMetrics(List enabledMetrics) { this.enabledMetrics = Objects.requireNonNull(enabledMetrics); return this; @@ -375,22 +331,27 @@ public Builder enabledMetrics(List enabledMetrics) { public Builder enabledMetrics(String... enabledMetrics) { return enabledMetrics(List.of(enabledMetrics)); } + @CustomType.Setter public Builder healthCheckGracePeriod(Integer healthCheckGracePeriod) { this.healthCheckGracePeriod = Objects.requireNonNull(healthCheckGracePeriod); return this; } + @CustomType.Setter public Builder healthCheckType(String healthCheckType) { this.healthCheckType = Objects.requireNonNull(healthCheckType); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder launchConfiguration(String launchConfiguration) { this.launchConfiguration = Objects.requireNonNull(launchConfiguration); return this; } + @CustomType.Setter public Builder launchTemplates(List launchTemplates) { this.launchTemplates = Objects.requireNonNull(launchTemplates); return this; @@ -398,6 +359,7 @@ public Builder launchTemplates(List launchTemplates) { public Builder launchTemplates(GetGroupLaunchTemplate... launchTemplates) { return launchTemplates(List.of(launchTemplates)); } + @CustomType.Setter public Builder loadBalancers(List loadBalancers) { this.loadBalancers = Objects.requireNonNull(loadBalancers); return this; @@ -405,34 +367,42 @@ public Builder loadBalancers(List loadBalancers) { public Builder loadBalancers(String... loadBalancers) { return loadBalancers(List.of(loadBalancers)); } + @CustomType.Setter public Builder maxSize(Integer maxSize) { this.maxSize = Objects.requireNonNull(maxSize); return this; } + @CustomType.Setter public Builder minSize(Integer minSize) { this.minSize = Objects.requireNonNull(minSize); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder newInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn) { this.newInstancesProtectedFromScaleIn = Objects.requireNonNull(newInstancesProtectedFromScaleIn); return this; } + @CustomType.Setter public Builder placementGroup(String placementGroup) { this.placementGroup = Objects.requireNonNull(placementGroup); return this; } + @CustomType.Setter public Builder serviceLinkedRoleArn(String serviceLinkedRoleArn) { this.serviceLinkedRoleArn = Objects.requireNonNull(serviceLinkedRoleArn); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder targetGroupArns(List targetGroupArns) { this.targetGroupArns = Objects.requireNonNull(targetGroupArns); return this; @@ -440,6 +410,7 @@ public Builder targetGroupArns(List targetGroupArns) { public Builder targetGroupArns(String... targetGroupArns) { return targetGroupArns(List.of(targetGroupArns)); } + @CustomType.Setter public Builder terminationPolicies(List terminationPolicies) { this.terminationPolicies = Objects.requireNonNull(terminationPolicies); return this; @@ -447,11 +418,35 @@ public Builder terminationPolicies(List terminationPolicies) { public Builder terminationPolicies(String... terminationPolicies) { return terminationPolicies(List.of(terminationPolicies)); } + @CustomType.Setter public Builder vpcZoneIdentifier(String vpcZoneIdentifier) { this.vpcZoneIdentifier = Objects.requireNonNull(vpcZoneIdentifier); return this; - } public GetGroupResult build() { - return new GetGroupResult(arn, availabilityZones, defaultCooldown, desiredCapacity, enabledMetrics, healthCheckGracePeriod, healthCheckType, id, launchConfiguration, launchTemplates, loadBalancers, maxSize, minSize, name, newInstancesProtectedFromScaleIn, placementGroup, serviceLinkedRoleArn, status, targetGroupArns, terminationPolicies, vpcZoneIdentifier); + } + public GetGroupResult build() { + final var o = new GetGroupResult(); + o.arn = arn; + o.availabilityZones = availabilityZones; + o.defaultCooldown = defaultCooldown; + o.desiredCapacity = desiredCapacity; + o.enabledMetrics = enabledMetrics; + o.healthCheckGracePeriod = healthCheckGracePeriod; + o.healthCheckType = healthCheckType; + o.id = id; + o.launchConfiguration = launchConfiguration; + o.launchTemplates = launchTemplates; + o.loadBalancers = loadBalancers; + o.maxSize = maxSize; + o.minSize = minSize; + o.name = name; + o.newInstancesProtectedFromScaleIn = newInstancesProtectedFromScaleIn; + o.placementGroup = placementGroup; + o.serviceLinkedRoleArn = serviceLinkedRoleArn; + o.status = status; + o.targetGroupArns = targetGroupArns; + o.terminationPolicies = terminationPolicies; + o.vpcZoneIdentifier = vpcZoneIdentifier; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupInitialLifecycleHook.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupInitialLifecycleHook.java index a4bce1880dd..169867cbb41 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupInitialLifecycleHook.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupInitialLifecycleHook.java @@ -12,36 +12,19 @@ @CustomType public final class GroupInitialLifecycleHook { - private final @Nullable String defaultResult; - private final @Nullable Integer heartbeatTimeout; - private final String lifecycleTransition; + private @Nullable String defaultResult; + private @Nullable Integer heartbeatTimeout; + private String lifecycleTransition; /** * @return The name of the Auto Scaling Group. By default generated by this provider. Conflicts with `name_prefix`. * */ - private final String name; - private final @Nullable String notificationMetadata; - private final @Nullable String notificationTargetArn; - private final @Nullable String roleArn; - - @CustomType.Constructor - private GroupInitialLifecycleHook( - @CustomType.Parameter("defaultResult") @Nullable String defaultResult, - @CustomType.Parameter("heartbeatTimeout") @Nullable Integer heartbeatTimeout, - @CustomType.Parameter("lifecycleTransition") String lifecycleTransition, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("notificationMetadata") @Nullable String notificationMetadata, - @CustomType.Parameter("notificationTargetArn") @Nullable String notificationTargetArn, - @CustomType.Parameter("roleArn") @Nullable String roleArn) { - this.defaultResult = defaultResult; - this.heartbeatTimeout = heartbeatTimeout; - this.lifecycleTransition = lifecycleTransition; - this.name = name; - this.notificationMetadata = notificationMetadata; - this.notificationTargetArn = notificationTargetArn; - this.roleArn = roleArn; - } + private String name; + private @Nullable String notificationMetadata; + private @Nullable String notificationTargetArn; + private @Nullable String roleArn; + private GroupInitialLifecycleHook() {} public Optional defaultResult() { return Optional.ofNullable(this.defaultResult); } @@ -75,7 +58,7 @@ public static Builder builder() { public static Builder builder(GroupInitialLifecycleHook defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String defaultResult; private @Nullable Integer heartbeatTimeout; @@ -84,11 +67,7 @@ public static final class Builder { private @Nullable String notificationMetadata; private @Nullable String notificationTargetArn; private @Nullable String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupInitialLifecycleHook defaults) { Objects.requireNonNull(defaults); this.defaultResult = defaults.defaultResult; @@ -100,35 +79,51 @@ public Builder(GroupInitialLifecycleHook defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder defaultResult(@Nullable String defaultResult) { this.defaultResult = defaultResult; return this; } + @CustomType.Setter public Builder heartbeatTimeout(@Nullable Integer heartbeatTimeout) { this.heartbeatTimeout = heartbeatTimeout; return this; } + @CustomType.Setter public Builder lifecycleTransition(String lifecycleTransition) { this.lifecycleTransition = Objects.requireNonNull(lifecycleTransition); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder notificationMetadata(@Nullable String notificationMetadata) { this.notificationMetadata = notificationMetadata; return this; } + @CustomType.Setter public Builder notificationTargetArn(@Nullable String notificationTargetArn) { this.notificationTargetArn = notificationTargetArn; return this; } + @CustomType.Setter public Builder roleArn(@Nullable String roleArn) { this.roleArn = roleArn; return this; - } public GroupInitialLifecycleHook build() { - return new GroupInitialLifecycleHook(defaultResult, heartbeatTimeout, lifecycleTransition, name, notificationMetadata, notificationTargetArn, roleArn); + } + public GroupInitialLifecycleHook build() { + final var o = new GroupInitialLifecycleHook(); + o.defaultResult = defaultResult; + o.heartbeatTimeout = heartbeatTimeout; + o.lifecycleTransition = lifecycleTransition; + o.name = name; + o.notificationMetadata = notificationMetadata; + o.notificationTargetArn = notificationTargetArn; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupInstanceRefresh.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupInstanceRefresh.java index c142f218c21..90bad77a08c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupInstanceRefresh.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupInstanceRefresh.java @@ -17,28 +17,19 @@ public final class GroupInstanceRefresh { * @return Override default parameters for Instance Refresh. * */ - private final @Nullable GroupInstanceRefreshPreferences preferences; + private @Nullable GroupInstanceRefreshPreferences preferences; /** * @return The strategy to use for instance refresh. The only allowed value is `Rolling`. See [StartInstanceRefresh Action](https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_StartInstanceRefresh.html#API_StartInstanceRefresh_RequestParameters) for more information. * */ - private final String strategy; + private String strategy; /** * @return Set of additional property names that will trigger an Instance Refresh. A refresh will always be triggered by a change in any of `launch_configuration`, `launch_template`, or `mixed_instances_policy`. * */ - private final @Nullable List triggers; - - @CustomType.Constructor - private GroupInstanceRefresh( - @CustomType.Parameter("preferences") @Nullable GroupInstanceRefreshPreferences preferences, - @CustomType.Parameter("strategy") String strategy, - @CustomType.Parameter("triggers") @Nullable List triggers) { - this.preferences = preferences; - this.strategy = strategy; - this.triggers = triggers; - } + private @Nullable List triggers; + private GroupInstanceRefresh() {} /** * @return Override default parameters for Instance Refresh. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(GroupInstanceRefresh defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GroupInstanceRefreshPreferences preferences; private String strategy; private @Nullable List triggers; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupInstanceRefresh defaults) { Objects.requireNonNull(defaults); this.preferences = defaults.preferences; @@ -85,22 +72,30 @@ public Builder(GroupInstanceRefresh defaults) { this.triggers = defaults.triggers; } + @CustomType.Setter public Builder preferences(@Nullable GroupInstanceRefreshPreferences preferences) { this.preferences = preferences; return this; } + @CustomType.Setter public Builder strategy(String strategy) { this.strategy = Objects.requireNonNull(strategy); return this; } + @CustomType.Setter public Builder triggers(@Nullable List triggers) { this.triggers = triggers; return this; } public Builder triggers(String... triggers) { return triggers(List.of(triggers)); - } public GroupInstanceRefresh build() { - return new GroupInstanceRefresh(preferences, strategy, triggers); + } + public GroupInstanceRefresh build() { + final var o = new GroupInstanceRefresh(); + o.preferences = preferences; + o.strategy = strategy; + o.triggers = triggers; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupInstanceRefreshPreferences.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupInstanceRefreshPreferences.java index 57ce44321d5..bb4ddc16246 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupInstanceRefreshPreferences.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupInstanceRefreshPreferences.java @@ -18,38 +18,25 @@ public final class GroupInstanceRefreshPreferences { * @return The number of seconds to wait after a checkpoint. Defaults to `3600`. * */ - private final @Nullable String checkpointDelay; + private @Nullable String checkpointDelay; /** * @return List of percentages for each checkpoint. Values must be unique and in ascending order. To replace all instances, the final number must be `100`. * */ - private final @Nullable List checkpointPercentages; + private @Nullable List checkpointPercentages; /** * @return The number of seconds until a newly launched instance is configured and ready to use. Default behavior is to use the Auto Scaling Group's health check grace period. * */ - private final @Nullable String instanceWarmup; + private @Nullable String instanceWarmup; /** * @return The amount of capacity in the Auto Scaling group that must remain healthy during an instance refresh to allow the operation to continue, as a percentage of the desired capacity of the Auto Scaling group. Defaults to `90`. * */ - private final @Nullable Integer minHealthyPercentage; - private final @Nullable Boolean skipMatching; - - @CustomType.Constructor - private GroupInstanceRefreshPreferences( - @CustomType.Parameter("checkpointDelay") @Nullable String checkpointDelay, - @CustomType.Parameter("checkpointPercentages") @Nullable List checkpointPercentages, - @CustomType.Parameter("instanceWarmup") @Nullable String instanceWarmup, - @CustomType.Parameter("minHealthyPercentage") @Nullable Integer minHealthyPercentage, - @CustomType.Parameter("skipMatching") @Nullable Boolean skipMatching) { - this.checkpointDelay = checkpointDelay; - this.checkpointPercentages = checkpointPercentages; - this.instanceWarmup = instanceWarmup; - this.minHealthyPercentage = minHealthyPercentage; - this.skipMatching = skipMatching; - } + private @Nullable Integer minHealthyPercentage; + private @Nullable Boolean skipMatching; + private GroupInstanceRefreshPreferences() {} /** * @return The number of seconds to wait after a checkpoint. Defaults to `3600`. * @@ -89,18 +76,14 @@ public static Builder builder() { public static Builder builder(GroupInstanceRefreshPreferences defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String checkpointDelay; private @Nullable List checkpointPercentages; private @Nullable String instanceWarmup; private @Nullable Integer minHealthyPercentage; private @Nullable Boolean skipMatching; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupInstanceRefreshPreferences defaults) { Objects.requireNonNull(defaults); this.checkpointDelay = defaults.checkpointDelay; @@ -110,10 +93,12 @@ public Builder(GroupInstanceRefreshPreferences defaults) { this.skipMatching = defaults.skipMatching; } + @CustomType.Setter public Builder checkpointDelay(@Nullable String checkpointDelay) { this.checkpointDelay = checkpointDelay; return this; } + @CustomType.Setter public Builder checkpointPercentages(@Nullable List checkpointPercentages) { this.checkpointPercentages = checkpointPercentages; return this; @@ -121,19 +106,29 @@ public Builder checkpointPercentages(@Nullable List checkpointPercentag public Builder checkpointPercentages(Integer... checkpointPercentages) { return checkpointPercentages(List.of(checkpointPercentages)); } + @CustomType.Setter public Builder instanceWarmup(@Nullable String instanceWarmup) { this.instanceWarmup = instanceWarmup; return this; } + @CustomType.Setter public Builder minHealthyPercentage(@Nullable Integer minHealthyPercentage) { this.minHealthyPercentage = minHealthyPercentage; return this; } + @CustomType.Setter public Builder skipMatching(@Nullable Boolean skipMatching) { this.skipMatching = skipMatching; return this; - } public GroupInstanceRefreshPreferences build() { - return new GroupInstanceRefreshPreferences(checkpointDelay, checkpointPercentages, instanceWarmup, minHealthyPercentage, skipMatching); + } + public GroupInstanceRefreshPreferences build() { + final var o = new GroupInstanceRefreshPreferences(); + o.checkpointDelay = checkpointDelay; + o.checkpointPercentages = checkpointPercentages; + o.instanceWarmup = instanceWarmup; + o.minHealthyPercentage = minHealthyPercentage; + o.skipMatching = skipMatching; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupLaunchTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupLaunchTemplate.java index e38366f2c71..8c7dcbe20ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupLaunchTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupLaunchTemplate.java @@ -15,28 +15,19 @@ public final class GroupLaunchTemplate { * @return The ID of the launch template. Conflicts with `name`. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the Auto Scaling Group. By default generated by this provider. Conflicts with `name_prefix`. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Template version. Can be version number, `$Latest`, or `$Default`. (Default: `$Default`). * */ - private final @Nullable String version; - - @CustomType.Constructor - private GroupLaunchTemplate( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("version") @Nullable String version) { - this.id = id; - this.name = name; - this.version = version; - } + private @Nullable String version; + private GroupLaunchTemplate() {} /** * @return The ID of the launch template. Conflicts with `name`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GroupLaunchTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private @Nullable String name; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupLaunchTemplate defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -83,19 +70,27 @@ public Builder(GroupLaunchTemplate defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public GroupLaunchTemplate build() { - return new GroupLaunchTemplate(id, name, version); + } + public GroupLaunchTemplate build() { + final var o = new GroupLaunchTemplate(); + o.id = id; + o.name = name; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicy.java index e8205448b75..2ba86651c1a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicy.java @@ -16,21 +16,14 @@ public final class GroupMixedInstancesPolicy { * @return Nested argument containing settings on how to mix on-demand and Spot instances in the Auto Scaling group. Defined below. * */ - private final @Nullable GroupMixedInstancesPolicyInstancesDistribution instancesDistribution; + private @Nullable GroupMixedInstancesPolicyInstancesDistribution instancesDistribution; /** * @return Nested argument containing launch template settings along with the overrides to specify multiple instance types and weights. Defined below. * */ - private final GroupMixedInstancesPolicyLaunchTemplate launchTemplate; - - @CustomType.Constructor - private GroupMixedInstancesPolicy( - @CustomType.Parameter("instancesDistribution") @Nullable GroupMixedInstancesPolicyInstancesDistribution instancesDistribution, - @CustomType.Parameter("launchTemplate") GroupMixedInstancesPolicyLaunchTemplate launchTemplate) { - this.instancesDistribution = instancesDistribution; - this.launchTemplate = launchTemplate; - } + private GroupMixedInstancesPolicyLaunchTemplate launchTemplate; + private GroupMixedInstancesPolicy() {} /** * @return Nested argument containing settings on how to mix on-demand and Spot instances in the Auto Scaling group. Defined below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GroupMixedInstancesPolicyInstancesDistribution instancesDistribution; private GroupMixedInstancesPolicyLaunchTemplate launchTemplate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicy defaults) { Objects.requireNonNull(defaults); this.instancesDistribution = defaults.instancesDistribution; this.launchTemplate = defaults.launchTemplate; } + @CustomType.Setter public Builder instancesDistribution(@Nullable GroupMixedInstancesPolicyInstancesDistribution instancesDistribution) { this.instancesDistribution = instancesDistribution; return this; } + @CustomType.Setter public Builder launchTemplate(GroupMixedInstancesPolicyLaunchTemplate launchTemplate) { this.launchTemplate = Objects.requireNonNull(launchTemplate); return this; - } public GroupMixedInstancesPolicy build() { - return new GroupMixedInstancesPolicy(instancesDistribution, launchTemplate); + } + public GroupMixedInstancesPolicy build() { + final var o = new GroupMixedInstancesPolicy(); + o.instancesDistribution = instancesDistribution; + o.launchTemplate = launchTemplate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyInstancesDistribution.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyInstancesDistribution.java index 52d2de25931..cdf0d73161f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyInstancesDistribution.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyInstancesDistribution.java @@ -16,49 +16,34 @@ public final class GroupMixedInstancesPolicyInstancesDistribution { * @return Strategy to use when launching on-demand instances. Valid values: `prioritized`. Default: `prioritized`. * */ - private final @Nullable String onDemandAllocationStrategy; + private @Nullable String onDemandAllocationStrategy; /** * @return Absolute minimum amount of desired capacity that must be fulfilled by on-demand instances. Default: `0`. * */ - private final @Nullable Integer onDemandBaseCapacity; + private @Nullable Integer onDemandBaseCapacity; /** * @return Percentage split between on-demand and Spot instances above the base on-demand capacity. Default: `100`. * */ - private final @Nullable Integer onDemandPercentageAboveBaseCapacity; + private @Nullable Integer onDemandPercentageAboveBaseCapacity; /** * @return How to allocate capacity across the Spot pools. Valid values: `lowest-price`, `capacity-optimized`, `capacity-optimized-prioritized`. Default: `lowest-price`. * */ - private final @Nullable String spotAllocationStrategy; + private @Nullable String spotAllocationStrategy; /** * @return Number of Spot pools per availability zone to allocate capacity. EC2 Auto Scaling selects the cheapest Spot pools and evenly allocates Spot capacity across the number of Spot pools that you specify. Only available with `spot_allocation_strategy` set to `lowest-price`. Otherwise it must be set to `0`, if it has been defined before. Default: `2`. * */ - private final @Nullable Integer spotInstancePools; + private @Nullable Integer spotInstancePools; /** * @return Maximum price per unit hour that the user is willing to pay for the Spot instances. Default: an empty string which means the on-demand price. * */ - private final @Nullable String spotMaxPrice; - - @CustomType.Constructor - private GroupMixedInstancesPolicyInstancesDistribution( - @CustomType.Parameter("onDemandAllocationStrategy") @Nullable String onDemandAllocationStrategy, - @CustomType.Parameter("onDemandBaseCapacity") @Nullable Integer onDemandBaseCapacity, - @CustomType.Parameter("onDemandPercentageAboveBaseCapacity") @Nullable Integer onDemandPercentageAboveBaseCapacity, - @CustomType.Parameter("spotAllocationStrategy") @Nullable String spotAllocationStrategy, - @CustomType.Parameter("spotInstancePools") @Nullable Integer spotInstancePools, - @CustomType.Parameter("spotMaxPrice") @Nullable String spotMaxPrice) { - this.onDemandAllocationStrategy = onDemandAllocationStrategy; - this.onDemandBaseCapacity = onDemandBaseCapacity; - this.onDemandPercentageAboveBaseCapacity = onDemandPercentageAboveBaseCapacity; - this.spotAllocationStrategy = spotAllocationStrategy; - this.spotInstancePools = spotInstancePools; - this.spotMaxPrice = spotMaxPrice; - } + private @Nullable String spotMaxPrice; + private GroupMixedInstancesPolicyInstancesDistribution() {} /** * @return Strategy to use when launching on-demand instances. Valid values: `prioritized`. Default: `prioritized`. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyInstancesDistribution defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String onDemandAllocationStrategy; private @Nullable Integer onDemandBaseCapacity; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable String spotAllocationStrategy; private @Nullable Integer spotInstancePools; private @Nullable String spotMaxPrice; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyInstancesDistribution defaults) { Objects.requireNonNull(defaults); this.onDemandAllocationStrategy = defaults.onDemandAllocationStrategy; @@ -132,31 +113,45 @@ public Builder(GroupMixedInstancesPolicyInstancesDistribution defaults) { this.spotMaxPrice = defaults.spotMaxPrice; } + @CustomType.Setter public Builder onDemandAllocationStrategy(@Nullable String onDemandAllocationStrategy) { this.onDemandAllocationStrategy = onDemandAllocationStrategy; return this; } + @CustomType.Setter public Builder onDemandBaseCapacity(@Nullable Integer onDemandBaseCapacity) { this.onDemandBaseCapacity = onDemandBaseCapacity; return this; } + @CustomType.Setter public Builder onDemandPercentageAboveBaseCapacity(@Nullable Integer onDemandPercentageAboveBaseCapacity) { this.onDemandPercentageAboveBaseCapacity = onDemandPercentageAboveBaseCapacity; return this; } + @CustomType.Setter public Builder spotAllocationStrategy(@Nullable String spotAllocationStrategy) { this.spotAllocationStrategy = spotAllocationStrategy; return this; } + @CustomType.Setter public Builder spotInstancePools(@Nullable Integer spotInstancePools) { this.spotInstancePools = spotInstancePools; return this; } + @CustomType.Setter public Builder spotMaxPrice(@Nullable String spotMaxPrice) { this.spotMaxPrice = spotMaxPrice; return this; - } public GroupMixedInstancesPolicyInstancesDistribution build() { - return new GroupMixedInstancesPolicyInstancesDistribution(onDemandAllocationStrategy, onDemandBaseCapacity, onDemandPercentageAboveBaseCapacity, spotAllocationStrategy, spotInstancePools, spotMaxPrice); + } + public GroupMixedInstancesPolicyInstancesDistribution build() { + final var o = new GroupMixedInstancesPolicyInstancesDistribution(); + o.onDemandAllocationStrategy = onDemandAllocationStrategy; + o.onDemandBaseCapacity = onDemandBaseCapacity; + o.onDemandPercentageAboveBaseCapacity = onDemandPercentageAboveBaseCapacity; + o.spotAllocationStrategy = spotAllocationStrategy; + o.spotInstancePools = spotInstancePools; + o.spotMaxPrice = spotMaxPrice; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplate.java index bbf9490dad6..a110b8b7d0e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplate.java @@ -16,21 +16,14 @@ public final class GroupMixedInstancesPolicyLaunchTemplate { * @return Override the instance launch template specification in the Launch Template. * */ - private final GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification launchTemplateSpecification; + private GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification launchTemplateSpecification; /** * @return List of nested arguments provides the ability to specify multiple instance types. This will override the same parameter in the launch template. For on-demand instances, Auto Scaling considers the order of preference of instance types to launch based on the order specified in the overrides list. Defined below. * */ - private final @Nullable List overrides; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplate( - @CustomType.Parameter("launchTemplateSpecification") GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification launchTemplateSpecification, - @CustomType.Parameter("overrides") @Nullable List overrides) { - this.launchTemplateSpecification = launchTemplateSpecification; - this.overrides = overrides; - } + private @Nullable List overrides; + private GroupMixedInstancesPolicyLaunchTemplate() {} /** * @return Override the instance launch template specification in the Launch Template. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification launchTemplateSpecification; private @Nullable List overrides; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplate defaults) { Objects.requireNonNull(defaults); this.launchTemplateSpecification = defaults.launchTemplateSpecification; this.overrides = defaults.overrides; } + @CustomType.Setter public Builder launchTemplateSpecification(GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification launchTemplateSpecification) { this.launchTemplateSpecification = Objects.requireNonNull(launchTemplateSpecification); return this; } + @CustomType.Setter public Builder overrides(@Nullable List overrides) { this.overrides = overrides; return this; } public Builder overrides(GroupMixedInstancesPolicyLaunchTemplateOverride... overrides) { return overrides(List.of(overrides)); - } public GroupMixedInstancesPolicyLaunchTemplate build() { - return new GroupMixedInstancesPolicyLaunchTemplate(launchTemplateSpecification, overrides); + } + public GroupMixedInstancesPolicyLaunchTemplate build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplate(); + o.launchTemplateSpecification = launchTemplateSpecification; + o.overrides = overrides; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification.java index 1a89ed52449..c3ddea8f6a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification.java @@ -15,28 +15,19 @@ public final class GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecific * @return The ID of the launch template. Conflicts with `launch_template_name`. * */ - private final @Nullable String launchTemplateId; + private @Nullable String launchTemplateId; /** * @return The name of the launch template. Conflicts with `launch_template_id`. * */ - private final @Nullable String launchTemplateName; + private @Nullable String launchTemplateName; /** * @return Template version. Can be version number, `$Latest`, or `$Default`. (Default: `$Default`). * */ - private final @Nullable String version; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification( - @CustomType.Parameter("launchTemplateId") @Nullable String launchTemplateId, - @CustomType.Parameter("launchTemplateName") @Nullable String launchTemplateName, - @CustomType.Parameter("version") @Nullable String version) { - this.launchTemplateId = launchTemplateId; - this.launchTemplateName = launchTemplateName; - this.version = version; - } + private @Nullable String version; + private GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification() {} /** * @return The ID of the launch template. Conflicts with `launch_template_name`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String launchTemplateId; private @Nullable String launchTemplateName; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification defaults) { Objects.requireNonNull(defaults); this.launchTemplateId = defaults.launchTemplateId; @@ -83,19 +70,27 @@ public Builder(GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecificatio this.version = defaults.version; } + @CustomType.Setter public Builder launchTemplateId(@Nullable String launchTemplateId) { this.launchTemplateId = launchTemplateId; return this; } + @CustomType.Setter public Builder launchTemplateName(@Nullable String launchTemplateName) { this.launchTemplateName = launchTemplateName; return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification build() { - return new GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification(launchTemplateId, launchTemplateName, version); + } + public GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplateLaunchTemplateSpecification(); + o.launchTemplateId = launchTemplateId; + o.launchTemplateName = launchTemplateName; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverride.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverride.java index 34dc0e522e9..3671083d02a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverride.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverride.java @@ -17,35 +17,24 @@ public final class GroupMixedInstancesPolicyLaunchTemplateOverride { * @return Override the instance type in the Launch Template with instance types that satisfy the requirements. * */ - private final @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements instanceRequirements; + private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements instanceRequirements; /** * @return Override the instance type in the Launch Template. * */ - private final @Nullable String instanceType; + private @Nullable String instanceType; /** * @return Override the instance launch template specification in the Launch Template. * */ - private final @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification launchTemplateSpecification; + private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification launchTemplateSpecification; /** * @return The number of capacity units, which gives the instance type a proportional weight to other instance types. * */ - private final @Nullable String weightedCapacity; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplateOverride( - @CustomType.Parameter("instanceRequirements") @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements instanceRequirements, - @CustomType.Parameter("instanceType") @Nullable String instanceType, - @CustomType.Parameter("launchTemplateSpecification") @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification launchTemplateSpecification, - @CustomType.Parameter("weightedCapacity") @Nullable String weightedCapacity) { - this.instanceRequirements = instanceRequirements; - this.instanceType = instanceType; - this.launchTemplateSpecification = launchTemplateSpecification; - this.weightedCapacity = weightedCapacity; - } + private @Nullable String weightedCapacity; + private GroupMixedInstancesPolicyLaunchTemplateOverride() {} /** * @return Override the instance type in the Launch Template with instance types that satisfy the requirements. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateOverride defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements instanceRequirements; private @Nullable String instanceType; private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification launchTemplateSpecification; private @Nullable String weightedCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplateOverride defaults) { Objects.requireNonNull(defaults); this.instanceRequirements = defaults.instanceRequirements; @@ -101,23 +86,33 @@ public Builder(GroupMixedInstancesPolicyLaunchTemplateOverride defaults) { this.weightedCapacity = defaults.weightedCapacity; } + @CustomType.Setter public Builder instanceRequirements(@Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements instanceRequirements) { this.instanceRequirements = instanceRequirements; return this; } + @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { this.instanceType = instanceType; return this; } + @CustomType.Setter public Builder launchTemplateSpecification(@Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification launchTemplateSpecification) { this.launchTemplateSpecification = launchTemplateSpecification; return this; } + @CustomType.Setter public Builder weightedCapacity(@Nullable String weightedCapacity) { this.weightedCapacity = weightedCapacity; return this; - } public GroupMixedInstancesPolicyLaunchTemplateOverride build() { - return new GroupMixedInstancesPolicyLaunchTemplateOverride(instanceRequirements, instanceType, launchTemplateSpecification, weightedCapacity); + } + public GroupMixedInstancesPolicyLaunchTemplateOverride build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplateOverride(); + o.instanceRequirements = instanceRequirements; + o.instanceType = instanceType; + o.launchTemplateSpecification = launchTemplateSpecification; + o.weightedCapacity = weightedCapacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements.java index 9f8d164082a..38de9fe3c1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements.java @@ -26,154 +26,109 @@ public final class GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequir * @return Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. * */ - private final @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount acceleratorCount; + private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount acceleratorCount; /** * @return List of accelerator manufacturer names. Default is any manufacturer. * */ - private final @Nullable List acceleratorManufacturers; + private @Nullable List acceleratorManufacturers; /** * @return List of accelerator names. Default is any acclerator. * */ - private final @Nullable List acceleratorNames; + private @Nullable List acceleratorNames; /** * @return Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. * */ - private final @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib; + private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib; /** * @return List of accelerator types. Default is any accelerator type. * */ - private final @Nullable List acceleratorTypes; + private @Nullable List acceleratorTypes; /** * @return Indicate whether bare metal instace types should be `included`, `excluded`, or `required`. Default is `excluded`. * */ - private final @Nullable String bareMetal; + private @Nullable String bareMetal; /** * @return Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. * */ - private final @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps; + private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps; /** * @return Indicate whether burstable performance instance types should be `included`, `excluded`, or `required`. Default is `excluded`. * */ - private final @Nullable String burstablePerformance; + private @Nullable String burstablePerformance; /** * @return List of CPU manufacturer names. Default is any manufacturer. * */ - private final @Nullable List cpuManufacturers; + private @Nullable List cpuManufacturers; /** * @return List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (\*). The following are examples: `c5*`, `m5a.*`, `r*`, `*3*`. For example, if you specify `c5*`, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*`, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. * */ - private final @Nullable List excludedInstanceTypes; + private @Nullable List excludedInstanceTypes; /** * @return List of instance generation names. Default is any generation. * */ - private final @Nullable List instanceGenerations; + private @Nullable List instanceGenerations; /** * @return Indicate whether instance types with local storage volumes are `included`, `excluded`, or `required`. Default is `included`. * */ - private final @Nullable String localStorage; + private @Nullable String localStorage; /** * @return List of local storage type names. Default any storage type. * */ - private final @Nullable List localStorageTypes; + private @Nullable List localStorageTypes; /** * @return Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. * */ - private final @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu; + private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu; /** * @return Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. * */ - private final @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib memoryMib; + private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib memoryMib; /** * @return Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. * */ - private final @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount networkInterfaceCount; + private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount networkInterfaceCount; /** * @return The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. * */ - private final @Nullable Integer onDemandMaxPricePercentageOverLowestPrice; + private @Nullable Integer onDemandMaxPricePercentageOverLowestPrice; /** * @return Indicate whether instance types must support On-Demand Instance Hibernation, either `true` or `false`. Default is `false`. * */ - private final @Nullable Boolean requireHibernateSupport; + private @Nullable Boolean requireHibernateSupport; /** * @return The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. * */ - private final @Nullable Integer spotMaxPricePercentageOverLowestPrice; + private @Nullable Integer spotMaxPricePercentageOverLowestPrice; /** * @return Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. * */ - private final @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb; + private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb; /** * @return Block describing the minimum and maximum number of vCPUs. Default is no maximum. * */ - private final @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount vcpuCount; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements( - @CustomType.Parameter("acceleratorCount") @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount acceleratorCount, - @CustomType.Parameter("acceleratorManufacturers") @Nullable List acceleratorManufacturers, - @CustomType.Parameter("acceleratorNames") @Nullable List acceleratorNames, - @CustomType.Parameter("acceleratorTotalMemoryMib") @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib, - @CustomType.Parameter("acceleratorTypes") @Nullable List acceleratorTypes, - @CustomType.Parameter("bareMetal") @Nullable String bareMetal, - @CustomType.Parameter("baselineEbsBandwidthMbps") @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps, - @CustomType.Parameter("burstablePerformance") @Nullable String burstablePerformance, - @CustomType.Parameter("cpuManufacturers") @Nullable List cpuManufacturers, - @CustomType.Parameter("excludedInstanceTypes") @Nullable List excludedInstanceTypes, - @CustomType.Parameter("instanceGenerations") @Nullable List instanceGenerations, - @CustomType.Parameter("localStorage") @Nullable String localStorage, - @CustomType.Parameter("localStorageTypes") @Nullable List localStorageTypes, - @CustomType.Parameter("memoryGibPerVcpu") @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu, - @CustomType.Parameter("memoryMib") @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib memoryMib, - @CustomType.Parameter("networkInterfaceCount") @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount networkInterfaceCount, - @CustomType.Parameter("onDemandMaxPricePercentageOverLowestPrice") @Nullable Integer onDemandMaxPricePercentageOverLowestPrice, - @CustomType.Parameter("requireHibernateSupport") @Nullable Boolean requireHibernateSupport, - @CustomType.Parameter("spotMaxPricePercentageOverLowestPrice") @Nullable Integer spotMaxPricePercentageOverLowestPrice, - @CustomType.Parameter("totalLocalStorageGb") @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb, - @CustomType.Parameter("vcpuCount") @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount vcpuCount) { - this.acceleratorCount = acceleratorCount; - this.acceleratorManufacturers = acceleratorManufacturers; - this.acceleratorNames = acceleratorNames; - this.acceleratorTotalMemoryMib = acceleratorTotalMemoryMib; - this.acceleratorTypes = acceleratorTypes; - this.bareMetal = bareMetal; - this.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; - this.burstablePerformance = burstablePerformance; - this.cpuManufacturers = cpuManufacturers; - this.excludedInstanceTypes = excludedInstanceTypes; - this.instanceGenerations = instanceGenerations; - this.localStorage = localStorage; - this.localStorageTypes = localStorageTypes; - this.memoryGibPerVcpu = memoryGibPerVcpu; - this.memoryMib = memoryMib; - this.networkInterfaceCount = networkInterfaceCount; - this.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; - this.requireHibernateSupport = requireHibernateSupport; - this.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; - this.totalLocalStorageGb = totalLocalStorageGb; - this.vcpuCount = vcpuCount; - } + private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount vcpuCount; + private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements() {} /** * @return Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. * @@ -329,7 +284,7 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount acceleratorCount; private @Nullable List acceleratorManufacturers; @@ -352,11 +307,7 @@ public static final class Builder { private @Nullable Integer spotMaxPricePercentageOverLowestPrice; private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb; private @Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount vcpuCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements defaults) { Objects.requireNonNull(defaults); this.acceleratorCount = defaults.acceleratorCount; @@ -382,10 +333,12 @@ public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequiremen this.vcpuCount = defaults.vcpuCount; } + @CustomType.Setter public Builder acceleratorCount(@Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount acceleratorCount) { this.acceleratorCount = acceleratorCount; return this; } + @CustomType.Setter public Builder acceleratorManufacturers(@Nullable List acceleratorManufacturers) { this.acceleratorManufacturers = acceleratorManufacturers; return this; @@ -393,6 +346,7 @@ public Builder acceleratorManufacturers(@Nullable List acceleratorManufa public Builder acceleratorManufacturers(String... acceleratorManufacturers) { return acceleratorManufacturers(List.of(acceleratorManufacturers)); } + @CustomType.Setter public Builder acceleratorNames(@Nullable List acceleratorNames) { this.acceleratorNames = acceleratorNames; return this; @@ -400,10 +354,12 @@ public Builder acceleratorNames(@Nullable List acceleratorNames) { public Builder acceleratorNames(String... acceleratorNames) { return acceleratorNames(List.of(acceleratorNames)); } + @CustomType.Setter public Builder acceleratorTotalMemoryMib(@Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib) { this.acceleratorTotalMemoryMib = acceleratorTotalMemoryMib; return this; } + @CustomType.Setter public Builder acceleratorTypes(@Nullable List acceleratorTypes) { this.acceleratorTypes = acceleratorTypes; return this; @@ -411,18 +367,22 @@ public Builder acceleratorTypes(@Nullable List acceleratorTypes) { public Builder acceleratorTypes(String... acceleratorTypes) { return acceleratorTypes(List.of(acceleratorTypes)); } + @CustomType.Setter public Builder bareMetal(@Nullable String bareMetal) { this.bareMetal = bareMetal; return this; } + @CustomType.Setter public Builder baselineEbsBandwidthMbps(@Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps) { this.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; return this; } + @CustomType.Setter public Builder burstablePerformance(@Nullable String burstablePerformance) { this.burstablePerformance = burstablePerformance; return this; } + @CustomType.Setter public Builder cpuManufacturers(@Nullable List cpuManufacturers) { this.cpuManufacturers = cpuManufacturers; return this; @@ -430,6 +390,7 @@ public Builder cpuManufacturers(@Nullable List cpuManufacturers) { public Builder cpuManufacturers(String... cpuManufacturers) { return cpuManufacturers(List.of(cpuManufacturers)); } + @CustomType.Setter public Builder excludedInstanceTypes(@Nullable List excludedInstanceTypes) { this.excludedInstanceTypes = excludedInstanceTypes; return this; @@ -437,6 +398,7 @@ public Builder excludedInstanceTypes(@Nullable List excludedInstanceType public Builder excludedInstanceTypes(String... excludedInstanceTypes) { return excludedInstanceTypes(List.of(excludedInstanceTypes)); } + @CustomType.Setter public Builder instanceGenerations(@Nullable List instanceGenerations) { this.instanceGenerations = instanceGenerations; return this; @@ -444,10 +406,12 @@ public Builder instanceGenerations(@Nullable List instanceGenerations) { public Builder instanceGenerations(String... instanceGenerations) { return instanceGenerations(List.of(instanceGenerations)); } + @CustomType.Setter public Builder localStorage(@Nullable String localStorage) { this.localStorage = localStorage; return this; } + @CustomType.Setter public Builder localStorageTypes(@Nullable List localStorageTypes) { this.localStorageTypes = localStorageTypes; return this; @@ -455,39 +419,70 @@ public Builder localStorageTypes(@Nullable List localStorageTypes) { public Builder localStorageTypes(String... localStorageTypes) { return localStorageTypes(List.of(localStorageTypes)); } + @CustomType.Setter public Builder memoryGibPerVcpu(@Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu) { this.memoryGibPerVcpu = memoryGibPerVcpu; return this; } + @CustomType.Setter public Builder memoryMib(@Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib memoryMib) { this.memoryMib = memoryMib; return this; } + @CustomType.Setter public Builder networkInterfaceCount(@Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount networkInterfaceCount) { this.networkInterfaceCount = networkInterfaceCount; return this; } + @CustomType.Setter public Builder onDemandMaxPricePercentageOverLowestPrice(@Nullable Integer onDemandMaxPricePercentageOverLowestPrice) { this.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; return this; } + @CustomType.Setter public Builder requireHibernateSupport(@Nullable Boolean requireHibernateSupport) { this.requireHibernateSupport = requireHibernateSupport; return this; } + @CustomType.Setter public Builder spotMaxPricePercentageOverLowestPrice(@Nullable Integer spotMaxPricePercentageOverLowestPrice) { this.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; return this; } + @CustomType.Setter public Builder totalLocalStorageGb(@Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb) { this.totalLocalStorageGb = totalLocalStorageGb; return this; } + @CustomType.Setter public Builder vcpuCount(@Nullable GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount vcpuCount) { this.vcpuCount = vcpuCount; return this; - } public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements build() { - return new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements(acceleratorCount, acceleratorManufacturers, acceleratorNames, acceleratorTotalMemoryMib, acceleratorTypes, bareMetal, baselineEbsBandwidthMbps, burstablePerformance, cpuManufacturers, excludedInstanceTypes, instanceGenerations, localStorage, localStorageTypes, memoryGibPerVcpu, memoryMib, networkInterfaceCount, onDemandMaxPricePercentageOverLowestPrice, requireHibernateSupport, spotMaxPricePercentageOverLowestPrice, totalLocalStorageGb, vcpuCount); + } + public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirements(); + o.acceleratorCount = acceleratorCount; + o.acceleratorManufacturers = acceleratorManufacturers; + o.acceleratorNames = acceleratorNames; + o.acceleratorTotalMemoryMib = acceleratorTotalMemoryMib; + o.acceleratorTypes = acceleratorTypes; + o.bareMetal = bareMetal; + o.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; + o.burstablePerformance = burstablePerformance; + o.cpuManufacturers = cpuManufacturers; + o.excludedInstanceTypes = excludedInstanceTypes; + o.instanceGenerations = instanceGenerations; + o.localStorage = localStorage; + o.localStorageTypes = localStorageTypes; + o.memoryGibPerVcpu = memoryGibPerVcpu; + o.memoryMib = memoryMib; + o.networkInterfaceCount = networkInterfaceCount; + o.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; + o.requireHibernateSupport = requireHibernateSupport; + o.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; + o.totalLocalStorageGb = totalLocalStorageGb; + o.vcpuCount = vcpuCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount.java index d06bb638496..4171c1d6aa4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount.java @@ -15,21 +15,14 @@ public final class GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequir * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount build() { - return new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount(max, min); + } + public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib.java index 7c7c6320495..3733b815343 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib.java @@ -15,21 +15,14 @@ public final class GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequir * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib build() { - return new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib(max, min); + } + public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsAcceleratorTotalMemoryMib(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps.java index 3275040f36a..03b320c6f8e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps.java @@ -15,21 +15,14 @@ public final class GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequir * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps build() { - return new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps(max, min); + } + public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsBaselineEbsBandwidthMbps(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu.java index 9dabad633ff..9dd52166fd5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu.java @@ -15,21 +15,14 @@ public final class GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequir * @return Maximum. * */ - private final @Nullable Double max; + private @Nullable Double max; /** * @return Minimum. * */ - private final @Nullable Double min; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu( - @CustomType.Parameter("max") @Nullable Double max, - @CustomType.Parameter("min") @Nullable Double min) { - this.max = max; - this.min = min; - } + private @Nullable Double min; + private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Double max; private @Nullable Double min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Double max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Double min) { this.min = min; return this; - } public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu build() { - return new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu(max, min); + } + public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryGibPerVcpu(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib.java index 766acdb223d..e52b58bc6e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib.java @@ -15,21 +15,14 @@ public final class GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequir * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib build() { - return new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib(max, min); + } + public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsMemoryMib(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount.java index 0da2db54a9d..99dfddd5da0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount.java @@ -15,21 +15,14 @@ public final class GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequir * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount build() { - return new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount(max, min); + } + public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsNetworkInterfaceCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb.java index 0fedfd0f2e1..7cd2c218f35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb.java @@ -15,21 +15,14 @@ public final class GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequir * @return Maximum. * */ - private final @Nullable Double max; + private @Nullable Double max; /** * @return Minimum. * */ - private final @Nullable Double min; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb( - @CustomType.Parameter("max") @Nullable Double max, - @CustomType.Parameter("min") @Nullable Double min) { - this.max = max; - this.min = min; - } + private @Nullable Double min; + private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Double max; private @Nullable Double min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Double max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Double min) { this.min = min; return this; - } public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb build() { - return new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb(max, min); + } + public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsTotalLocalStorageGb(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount.java index 9ae67bcd1e1..5ec302c8234 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount.java @@ -15,21 +15,14 @@ public final class GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequir * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount build() { - return new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount(max, min); + } + public GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplateOverrideInstanceRequirementsVcpuCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification.java index 98493fa882d..b6254a373ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification.java @@ -15,28 +15,19 @@ public final class GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplate * @return The ID of the launch template. Conflicts with `launch_template_name`. * */ - private final @Nullable String launchTemplateId; + private @Nullable String launchTemplateId; /** * @return The name of the launch template. Conflicts with `launch_template_id`. * */ - private final @Nullable String launchTemplateName; + private @Nullable String launchTemplateName; /** * @return Template version. Can be version number, `$Latest`, or `$Default`. (Default: `$Default`). * */ - private final @Nullable String version; - - @CustomType.Constructor - private GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification( - @CustomType.Parameter("launchTemplateId") @Nullable String launchTemplateId, - @CustomType.Parameter("launchTemplateName") @Nullable String launchTemplateName, - @CustomType.Parameter("version") @Nullable String version) { - this.launchTemplateId = launchTemplateId; - this.launchTemplateName = launchTemplateName; - this.version = version; - } + private @Nullable String version; + private GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification() {} /** * @return The ID of the launch template. Conflicts with `launch_template_name`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String launchTemplateId; private @Nullable String launchTemplateName; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification defaults) { Objects.requireNonNull(defaults); this.launchTemplateId = defaults.launchTemplateId; @@ -83,19 +70,27 @@ public Builder(GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpec this.version = defaults.version; } + @CustomType.Setter public Builder launchTemplateId(@Nullable String launchTemplateId) { this.launchTemplateId = launchTemplateId; return this; } + @CustomType.Setter public Builder launchTemplateName(@Nullable String launchTemplateName) { this.launchTemplateName = launchTemplateName; return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification build() { - return new GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification(launchTemplateId, launchTemplateName, version); + } + public GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification build() { + final var o = new GroupMixedInstancesPolicyLaunchTemplateOverrideLaunchTemplateSpecification(); + o.launchTemplateId = launchTemplateId; + o.launchTemplateName = launchTemplateName; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupTag.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupTag.java index f1f61ff8a2f..91b04813b0a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupTag.java @@ -14,29 +14,20 @@ public final class GroupTag { * @return Key * */ - private final String key; + private String key; /** * @return Enables propagation of the tag to * Amazon EC2 instances launched via this ASG * */ - private final Boolean propagateAtLaunch; + private Boolean propagateAtLaunch; /** * @return Value * */ - private final String value; - - @CustomType.Constructor - private GroupTag( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("propagateAtLaunch") Boolean propagateAtLaunch, - @CustomType.Parameter("value") String value) { - this.key = key; - this.propagateAtLaunch = propagateAtLaunch; - this.value = value; - } + private String value; + private GroupTag() {} /** * @return Key * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GroupTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private Boolean propagateAtLaunch; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupTag defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,19 +71,27 @@ public Builder(GroupTag defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder propagateAtLaunch(Boolean propagateAtLaunch) { this.propagateAtLaunch = Objects.requireNonNull(propagateAtLaunch); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GroupTag build() { - return new GroupTag(key, propagateAtLaunch, value); + } + public GroupTag build() { + final var o = new GroupTag(); + o.key = key; + o.propagateAtLaunch = propagateAtLaunch; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupWarmPool.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupWarmPool.java index 6ed22f7c9f6..f2ca4544861 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupWarmPool.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupWarmPool.java @@ -17,35 +17,24 @@ public final class GroupWarmPool { * @return Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in. * */ - private final @Nullable GroupWarmPoolInstanceReusePolicy instanceReusePolicy; + private @Nullable GroupWarmPoolInstanceReusePolicy instanceReusePolicy; /** * @return Specifies the total maximum number of instances that are allowed to be in the warm pool or in any state except Terminated for the Auto Scaling group. * */ - private final @Nullable Integer maxGroupPreparedCapacity; + private @Nullable Integer maxGroupPreparedCapacity; /** * @return Specifies the minimum number of instances to maintain in the warm pool. This helps you to ensure that there is always a certain number of warmed instances available to handle traffic spikes. Defaults to 0 if not specified. * */ - private final @Nullable Integer minSize; + private @Nullable Integer minSize; /** * @return Sets the instance state to transition to after the lifecycle hooks finish. Valid values are: Stopped (default), Running or Hibernated. * */ - private final @Nullable String poolState; - - @CustomType.Constructor - private GroupWarmPool( - @CustomType.Parameter("instanceReusePolicy") @Nullable GroupWarmPoolInstanceReusePolicy instanceReusePolicy, - @CustomType.Parameter("maxGroupPreparedCapacity") @Nullable Integer maxGroupPreparedCapacity, - @CustomType.Parameter("minSize") @Nullable Integer minSize, - @CustomType.Parameter("poolState") @Nullable String poolState) { - this.instanceReusePolicy = instanceReusePolicy; - this.maxGroupPreparedCapacity = maxGroupPreparedCapacity; - this.minSize = minSize; - this.poolState = poolState; - } + private @Nullable String poolState; + private GroupWarmPool() {} /** * @return Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(GroupWarmPool defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GroupWarmPoolInstanceReusePolicy instanceReusePolicy; private @Nullable Integer maxGroupPreparedCapacity; private @Nullable Integer minSize; private @Nullable String poolState; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupWarmPool defaults) { Objects.requireNonNull(defaults); this.instanceReusePolicy = defaults.instanceReusePolicy; @@ -101,23 +86,33 @@ public Builder(GroupWarmPool defaults) { this.poolState = defaults.poolState; } + @CustomType.Setter public Builder instanceReusePolicy(@Nullable GroupWarmPoolInstanceReusePolicy instanceReusePolicy) { this.instanceReusePolicy = instanceReusePolicy; return this; } + @CustomType.Setter public Builder maxGroupPreparedCapacity(@Nullable Integer maxGroupPreparedCapacity) { this.maxGroupPreparedCapacity = maxGroupPreparedCapacity; return this; } + @CustomType.Setter public Builder minSize(@Nullable Integer minSize) { this.minSize = minSize; return this; } + @CustomType.Setter public Builder poolState(@Nullable String poolState) { this.poolState = poolState; return this; - } public GroupWarmPool build() { - return new GroupWarmPool(instanceReusePolicy, maxGroupPreparedCapacity, minSize, poolState); + } + public GroupWarmPool build() { + final var o = new GroupWarmPool(); + o.instanceReusePolicy = instanceReusePolicy; + o.maxGroupPreparedCapacity = maxGroupPreparedCapacity; + o.minSize = minSize; + o.poolState = poolState; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupWarmPoolInstanceReusePolicy.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupWarmPoolInstanceReusePolicy.java index f8b200390ff..4ada9670bbb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupWarmPoolInstanceReusePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/GroupWarmPoolInstanceReusePolicy.java @@ -15,13 +15,9 @@ public final class GroupWarmPoolInstanceReusePolicy { * @return Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in. * */ - private final @Nullable Boolean reuseOnScaleIn; - - @CustomType.Constructor - private GroupWarmPoolInstanceReusePolicy(@CustomType.Parameter("reuseOnScaleIn") @Nullable Boolean reuseOnScaleIn) { - this.reuseOnScaleIn = reuseOnScaleIn; - } + private @Nullable Boolean reuseOnScaleIn; + private GroupWarmPoolInstanceReusePolicy() {} /** * @return Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(GroupWarmPoolInstanceReusePolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean reuseOnScaleIn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupWarmPoolInstanceReusePolicy defaults) { Objects.requireNonNull(defaults); this.reuseOnScaleIn = defaults.reuseOnScaleIn; } + @CustomType.Setter public Builder reuseOnScaleIn(@Nullable Boolean reuseOnScaleIn) { this.reuseOnScaleIn = reuseOnScaleIn; return this; - } public GroupWarmPoolInstanceReusePolicy build() { - return new GroupWarmPoolInstanceReusePolicy(reuseOnScaleIn); + } + public GroupWarmPoolInstanceReusePolicy build() { + final var o = new GroupWarmPoolInstanceReusePolicy(); + o.reuseOnScaleIn = reuseOnScaleIn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfiguration.java index 7f16e6f9b44..b70349ffb73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfiguration.java @@ -16,42 +16,29 @@ public final class PolicyPredictiveScalingConfiguration { * @return Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity of the Auto Scaling group. Valid values are `HonorMaxCapacity` or `IncreaseMaxCapacity`. Default is `HonorMaxCapacity`. * */ - private final @Nullable String maxCapacityBreachBehavior; + private @Nullable String maxCapacityBreachBehavior; /** * @return The size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. Valid range is `0` to `100`. If set to `0`, Amazon EC2 Auto Scaling may scale capacity higher than the maximum capacity to equal but not exceed forecast capacity. * */ - private final @Nullable String maxCapacityBuffer; + private @Nullable String maxCapacityBuffer; /** * @return This structure includes the metrics and target utilization to use for predictive scaling. * */ - private final PolicyPredictiveScalingConfigurationMetricSpecification metricSpecification; + private PolicyPredictiveScalingConfigurationMetricSpecification metricSpecification; /** * @return The predictive scaling mode. Valid values are `ForecastAndScale` and `ForecastOnly`. Default is `ForecastOnly`. * */ - private final @Nullable String mode; + private @Nullable String mode; /** * @return The amount of time, in seconds, by which the instance launch time can be advanced. Minimum is `0`. * */ - private final @Nullable String schedulingBufferTime; - - @CustomType.Constructor - private PolicyPredictiveScalingConfiguration( - @CustomType.Parameter("maxCapacityBreachBehavior") @Nullable String maxCapacityBreachBehavior, - @CustomType.Parameter("maxCapacityBuffer") @Nullable String maxCapacityBuffer, - @CustomType.Parameter("metricSpecification") PolicyPredictiveScalingConfigurationMetricSpecification metricSpecification, - @CustomType.Parameter("mode") @Nullable String mode, - @CustomType.Parameter("schedulingBufferTime") @Nullable String schedulingBufferTime) { - this.maxCapacityBreachBehavior = maxCapacityBreachBehavior; - this.maxCapacityBuffer = maxCapacityBuffer; - this.metricSpecification = metricSpecification; - this.mode = mode; - this.schedulingBufferTime = schedulingBufferTime; - } + private @Nullable String schedulingBufferTime; + private PolicyPredictiveScalingConfiguration() {} /** * @return Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity of the Auto Scaling group. Valid values are `HonorMaxCapacity` or `IncreaseMaxCapacity`. Default is `HonorMaxCapacity`. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String maxCapacityBreachBehavior; private @Nullable String maxCapacityBuffer; private PolicyPredictiveScalingConfigurationMetricSpecification metricSpecification; private @Nullable String mode; private @Nullable String schedulingBufferTime; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfiguration defaults) { Objects.requireNonNull(defaults); this.maxCapacityBreachBehavior = defaults.maxCapacityBreachBehavior; @@ -116,27 +99,39 @@ public Builder(PolicyPredictiveScalingConfiguration defaults) { this.schedulingBufferTime = defaults.schedulingBufferTime; } + @CustomType.Setter public Builder maxCapacityBreachBehavior(@Nullable String maxCapacityBreachBehavior) { this.maxCapacityBreachBehavior = maxCapacityBreachBehavior; return this; } + @CustomType.Setter public Builder maxCapacityBuffer(@Nullable String maxCapacityBuffer) { this.maxCapacityBuffer = maxCapacityBuffer; return this; } + @CustomType.Setter public Builder metricSpecification(PolicyPredictiveScalingConfigurationMetricSpecification metricSpecification) { this.metricSpecification = Objects.requireNonNull(metricSpecification); return this; } + @CustomType.Setter public Builder mode(@Nullable String mode) { this.mode = mode; return this; } + @CustomType.Setter public Builder schedulingBufferTime(@Nullable String schedulingBufferTime) { this.schedulingBufferTime = schedulingBufferTime; return this; - } public PolicyPredictiveScalingConfiguration build() { - return new PolicyPredictiveScalingConfiguration(maxCapacityBreachBehavior, maxCapacityBuffer, metricSpecification, mode, schedulingBufferTime); + } + public PolicyPredictiveScalingConfiguration build() { + final var o = new PolicyPredictiveScalingConfiguration(); + o.maxCapacityBreachBehavior = maxCapacityBreachBehavior; + o.maxCapacityBuffer = maxCapacityBuffer; + o.metricSpecification = metricSpecification; + o.mode = mode; + o.schedulingBufferTime = schedulingBufferTime; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecification.java index aa9cc5496d5..afca6475aa2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecification.java @@ -21,56 +21,39 @@ public final class PolicyPredictiveScalingConfigurationMetricSpecification { * @return The customized capacity metric specification. The field is only valid when you use `customized_load_metric_specification` * */ - private final @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification customizedCapacityMetricSpecification; + private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification customizedCapacityMetricSpecification; /** * @return The customized load metric specification. * */ - private final @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification customizedLoadMetricSpecification; + private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification customizedLoadMetricSpecification; /** * @return The customized scaling metric specification. * */ - private final @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification customizedScalingMetricSpecification; + private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification customizedScalingMetricSpecification; /** * @return The predefined load metric specification. * */ - private final @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecification predefinedLoadMetricSpecification; + private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecification predefinedLoadMetricSpecification; /** * @return The metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use. * */ - private final @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecification predefinedMetricPairSpecification; + private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecification predefinedMetricPairSpecification; /** * @return The predefined scaling metric specification. * */ - private final @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecification predefinedScalingMetricSpecification; + private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecification predefinedScalingMetricSpecification; /** * @return The target value for the metric. * */ - private final Integer targetValue; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecification( - @CustomType.Parameter("customizedCapacityMetricSpecification") @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification customizedCapacityMetricSpecification, - @CustomType.Parameter("customizedLoadMetricSpecification") @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification customizedLoadMetricSpecification, - @CustomType.Parameter("customizedScalingMetricSpecification") @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification customizedScalingMetricSpecification, - @CustomType.Parameter("predefinedLoadMetricSpecification") @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecification predefinedLoadMetricSpecification, - @CustomType.Parameter("predefinedMetricPairSpecification") @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecification predefinedMetricPairSpecification, - @CustomType.Parameter("predefinedScalingMetricSpecification") @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecification predefinedScalingMetricSpecification, - @CustomType.Parameter("targetValue") Integer targetValue) { - this.customizedCapacityMetricSpecification = customizedCapacityMetricSpecification; - this.customizedLoadMetricSpecification = customizedLoadMetricSpecification; - this.customizedScalingMetricSpecification = customizedScalingMetricSpecification; - this.predefinedLoadMetricSpecification = predefinedLoadMetricSpecification; - this.predefinedMetricPairSpecification = predefinedMetricPairSpecification; - this.predefinedScalingMetricSpecification = predefinedScalingMetricSpecification; - this.targetValue = targetValue; - } + private Integer targetValue; + private PolicyPredictiveScalingConfigurationMetricSpecification() {} /** * @return The customized capacity metric specification. The field is only valid when you use `customized_load_metric_specification` * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification customizedCapacityMetricSpecification; private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification customizedLoadMetricSpecification; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecification predefinedMetricPairSpecification; private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecification predefinedScalingMetricSpecification; private Integer targetValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecification defaults) { Objects.requireNonNull(defaults); this.customizedCapacityMetricSpecification = defaults.customizedCapacityMetricSpecification; @@ -153,35 +132,51 @@ public Builder(PolicyPredictiveScalingConfigurationMetricSpecification defaults) this.targetValue = defaults.targetValue; } + @CustomType.Setter public Builder customizedCapacityMetricSpecification(@Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification customizedCapacityMetricSpecification) { this.customizedCapacityMetricSpecification = customizedCapacityMetricSpecification; return this; } + @CustomType.Setter public Builder customizedLoadMetricSpecification(@Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification customizedLoadMetricSpecification) { this.customizedLoadMetricSpecification = customizedLoadMetricSpecification; return this; } + @CustomType.Setter public Builder customizedScalingMetricSpecification(@Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification customizedScalingMetricSpecification) { this.customizedScalingMetricSpecification = customizedScalingMetricSpecification; return this; } + @CustomType.Setter public Builder predefinedLoadMetricSpecification(@Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedLoadMetricSpecification predefinedLoadMetricSpecification) { this.predefinedLoadMetricSpecification = predefinedLoadMetricSpecification; return this; } + @CustomType.Setter public Builder predefinedMetricPairSpecification(@Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedMetricPairSpecification predefinedMetricPairSpecification) { this.predefinedMetricPairSpecification = predefinedMetricPairSpecification; return this; } + @CustomType.Setter public Builder predefinedScalingMetricSpecification(@Nullable PolicyPredictiveScalingConfigurationMetricSpecificationPredefinedScalingMetricSpecification predefinedScalingMetricSpecification) { this.predefinedScalingMetricSpecification = predefinedScalingMetricSpecification; return this; } + @CustomType.Setter public Builder targetValue(Integer targetValue) { this.targetValue = Objects.requireNonNull(targetValue); return this; - } public PolicyPredictiveScalingConfigurationMetricSpecification build() { - return new PolicyPredictiveScalingConfigurationMetricSpecification(customizedCapacityMetricSpecification, customizedLoadMetricSpecification, customizedScalingMetricSpecification, predefinedLoadMetricSpecification, predefinedMetricPairSpecification, predefinedScalingMetricSpecification, targetValue); + } + public PolicyPredictiveScalingConfigurationMetricSpecification build() { + final var o = new PolicyPredictiveScalingConfigurationMetricSpecification(); + o.customizedCapacityMetricSpecification = customizedCapacityMetricSpecification; + o.customizedLoadMetricSpecification = customizedLoadMetricSpecification; + o.customizedScalingMetricSpecification = customizedScalingMetricSpecification; + o.predefinedLoadMetricSpecification = predefinedLoadMetricSpecification; + o.predefinedMetricPairSpecification = predefinedMetricPairSpecification; + o.predefinedScalingMetricSpecification = predefinedScalingMetricSpecification; + o.targetValue = targetValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification.java index 65c791d3ea8..ed7252f1240 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification.java @@ -14,13 +14,9 @@ public final class PolicyPredictiveScalingConfigurationMetricSpecificationCustom * @return A list of up to 10 structures that defines custom capacity metric in predictive scaling policy * */ - private final List metricDataQueries; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification(@CustomType.Parameter("metricDataQueries") List metricDataQueries) { - this.metricDataQueries = metricDataQueries; - } + private List metricDataQueries; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification() {} /** * @return A list of up to 10 structures that defines custom capacity metric in predictive scaling policy * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List metricDataQueries; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification defaults) { Objects.requireNonNull(defaults); this.metricDataQueries = defaults.metricDataQueries; } + @CustomType.Setter public Builder metricDataQueries(List metricDataQueries) { this.metricDataQueries = Objects.requireNonNull(metricDataQueries); return this; } public Builder metricDataQueries(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery... metricDataQueries) { return metricDataQueries(List.of(metricDataQueries)); - } public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification build() { - return new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification(metricDataQueries); + } + public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification build() { + final var o = new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecification(); + o.metricDataQueries = metricDataQueries; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery.java index c256d8de11e..1c25774ef24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery.java @@ -17,42 +17,29 @@ public final class PolicyPredictiveScalingConfigurationMetricSpecificationCustom * @return The math expression used on the returned metric. You must specify either `expression` or `metric_stat`, but not both. * */ - private final @Nullable String expression; + private @Nullable String expression; /** * @return A short name for the metric used in predictive scaling policy. * */ - private final String id; + private String id; /** * @return A human-readable label for this metric or expression. * */ - private final @Nullable String label; + private @Nullable String label; /** * @return A structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either `expression` or `metric_stat`, but not both. * */ - private final @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat metricStat; + private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat metricStat; /** * @return A boolean that indicates whether to return the timestamps and raw data values of this metric, the default it true * */ - private final @Nullable Boolean returnData; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery( - @CustomType.Parameter("expression") @Nullable String expression, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("label") @Nullable String label, - @CustomType.Parameter("metricStat") @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat metricStat, - @CustomType.Parameter("returnData") @Nullable Boolean returnData) { - this.expression = expression; - this.id = id; - this.label = label; - this.metricStat = metricStat; - this.returnData = returnData; - } + private @Nullable Boolean returnData; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery() {} /** * @return The math expression used on the returned metric. You must specify either `expression` or `metric_stat`, but not both. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String expression; private String id; private @Nullable String label; private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat metricStat; private @Nullable Boolean returnData; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery defaults) { Objects.requireNonNull(defaults); this.expression = defaults.expression; @@ -117,27 +100,39 @@ public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomized this.returnData = defaults.returnData; } + @CustomType.Setter public Builder expression(@Nullable String expression) { this.expression = expression; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder label(@Nullable String label) { this.label = label; return this; } + @CustomType.Setter public Builder metricStat(@Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat metricStat) { this.metricStat = metricStat; return this; } + @CustomType.Setter public Builder returnData(@Nullable Boolean returnData) { this.returnData = returnData; return this; - } public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery build() { - return new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery(expression, id, label, metricStat, returnData); + } + public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery build() { + final var o = new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery(); + o.expression = expression; + o.id = id; + o.label = label; + o.metricStat = metricStat; + o.returnData = returnData; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat.java index d688affd58f..2ecb3605792 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat.java @@ -16,28 +16,19 @@ public final class PolicyPredictiveScalingConfigurationMetricSpecificationCustom * @return A structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. * */ - private final PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric metric; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric metric; /** * @return The statistic of the metrics to return. * */ - private final String stat; + private String stat; /** * @return The unit of the metrics to return. * */ - private final @Nullable String unit; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat( - @CustomType.Parameter("metric") PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric metric, - @CustomType.Parameter("stat") String stat, - @CustomType.Parameter("unit") @Nullable String unit) { - this.metric = metric; - this.stat = stat; - this.unit = unit; - } + private @Nullable String unit; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat() {} /** * @return A structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric metric; private String stat; private @Nullable String unit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat defaults) { Objects.requireNonNull(defaults); this.metric = defaults.metric; @@ -84,19 +71,27 @@ public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomized this.unit = defaults.unit; } + @CustomType.Setter public Builder metric(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric metric) { this.metric = Objects.requireNonNull(metric); return this; } + @CustomType.Setter public Builder stat(String stat) { this.stat = Objects.requireNonNull(stat); return this; } + @CustomType.Setter public Builder unit(@Nullable String unit) { this.unit = unit; return this; - } public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat build() { - return new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat(metric, stat, unit); + } + public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat build() { + final var o = new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat(); + o.metric = metric; + o.stat = stat; + o.unit = unit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric.java index d5be4323258..7b74f0da777 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric.java @@ -16,28 +16,19 @@ public final class PolicyPredictiveScalingConfigurationMetricSpecificationCustom * @return The dimensions of the metric. * */ - private final @Nullable List dimensions; + private @Nullable List dimensions; /** * @return The name of the metric. * */ - private final String metricName; + private String metricName; /** * @return The namespace of the metric. * */ - private final String namespace; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric( - @CustomType.Parameter("dimensions") @Nullable List dimensions, - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("namespace") String namespace) { - this.dimensions = dimensions; - this.metricName = metricName; - this.namespace = namespace; - } + private String namespace; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric() {} /** * @return The dimensions of the metric. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List dimensions; private String metricName; private String namespace; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStatMetric defaults) { Objects.requireNonNull(defaults); this.dimensions = defaults.dimensions; @@ -84,6 +71,7 @@ public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomized this.namespace = defaults.namespace; } + @CustomType.Setter public Builder dimensions(@Nullable List dimensions) { this.dimensions = dimensions; return this; @@ -91,15 +79,22 @@ public Builder dimensions(@Nullable List metricDataQueries; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification(@CustomType.Parameter("metricDataQueries") List metricDataQueries) { - this.metricDataQueries = metricDataQueries; - } + private List metricDataQueries; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification() {} /** * @return A list of up to 10 structures that defines custom capacity metric in predictive scaling policy * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List metricDataQueries; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification defaults) { Objects.requireNonNull(defaults); this.metricDataQueries = defaults.metricDataQueries; } + @CustomType.Setter public Builder metricDataQueries(List metricDataQueries) { this.metricDataQueries = Objects.requireNonNull(metricDataQueries); return this; } public Builder metricDataQueries(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery... metricDataQueries) { return metricDataQueries(List.of(metricDataQueries)); - } public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification build() { - return new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification(metricDataQueries); + } + public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification build() { + final var o = new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecification(); + o.metricDataQueries = metricDataQueries; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery.java index 7baceb4220e..03e61c2f379 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery.java @@ -17,42 +17,29 @@ public final class PolicyPredictiveScalingConfigurationMetricSpecificationCustom * @return The math expression used on the returned metric. You must specify either `expression` or `metric_stat`, but not both. * */ - private final @Nullable String expression; + private @Nullable String expression; /** * @return A short name for the metric used in predictive scaling policy. * */ - private final String id; + private String id; /** * @return A human-readable label for this metric or expression. * */ - private final @Nullable String label; + private @Nullable String label; /** * @return A structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either `expression` or `metric_stat`, but not both. * */ - private final @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat metricStat; + private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat metricStat; /** * @return A boolean that indicates whether to return the timestamps and raw data values of this metric, the default it true * */ - private final @Nullable Boolean returnData; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery( - @CustomType.Parameter("expression") @Nullable String expression, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("label") @Nullable String label, - @CustomType.Parameter("metricStat") @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat metricStat, - @CustomType.Parameter("returnData") @Nullable Boolean returnData) { - this.expression = expression; - this.id = id; - this.label = label; - this.metricStat = metricStat; - this.returnData = returnData; - } + private @Nullable Boolean returnData; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery() {} /** * @return The math expression used on the returned metric. You must specify either `expression` or `metric_stat`, but not both. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String expression; private String id; private @Nullable String label; private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat metricStat; private @Nullable Boolean returnData; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery defaults) { Objects.requireNonNull(defaults); this.expression = defaults.expression; @@ -117,27 +100,39 @@ public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomized this.returnData = defaults.returnData; } + @CustomType.Setter public Builder expression(@Nullable String expression) { this.expression = expression; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder label(@Nullable String label) { this.label = label; return this; } + @CustomType.Setter public Builder metricStat(@Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat metricStat) { this.metricStat = metricStat; return this; } + @CustomType.Setter public Builder returnData(@Nullable Boolean returnData) { this.returnData = returnData; return this; - } public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery build() { - return new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery(expression, id, label, metricStat, returnData); + } + public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery build() { + final var o = new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQuery(); + o.expression = expression; + o.id = id; + o.label = label; + o.metricStat = metricStat; + o.returnData = returnData; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat.java index 65a0424946c..a7daa5d3194 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat.java @@ -16,28 +16,19 @@ public final class PolicyPredictiveScalingConfigurationMetricSpecificationCustom * @return A structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. * */ - private final PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric metric; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric metric; /** * @return The statistic of the metrics to return. * */ - private final String stat; + private String stat; /** * @return The unit of the metrics to return. * */ - private final @Nullable String unit; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat( - @CustomType.Parameter("metric") PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric metric, - @CustomType.Parameter("stat") String stat, - @CustomType.Parameter("unit") @Nullable String unit) { - this.metric = metric; - this.stat = stat; - this.unit = unit; - } + private @Nullable String unit; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat() {} /** * @return A structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric metric; private String stat; private @Nullable String unit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat defaults) { Objects.requireNonNull(defaults); this.metric = defaults.metric; @@ -84,19 +71,27 @@ public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomized this.unit = defaults.unit; } + @CustomType.Setter public Builder metric(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric metric) { this.metric = Objects.requireNonNull(metric); return this; } + @CustomType.Setter public Builder stat(String stat) { this.stat = Objects.requireNonNull(stat); return this; } + @CustomType.Setter public Builder unit(@Nullable String unit) { this.unit = unit; return this; - } public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat build() { - return new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat(metric, stat, unit); + } + public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat build() { + final var o = new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStat(); + o.metric = metric; + o.stat = stat; + o.unit = unit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric.java index b682e967092..6fe0a89618b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric.java @@ -16,28 +16,19 @@ public final class PolicyPredictiveScalingConfigurationMetricSpecificationCustom * @return The dimensions of the metric. * */ - private final @Nullable List dimensions; + private @Nullable List dimensions; /** * @return The name of the metric. * */ - private final String metricName; + private String metricName; /** * @return The namespace of the metric. * */ - private final String namespace; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric( - @CustomType.Parameter("dimensions") @Nullable List dimensions, - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("namespace") String namespace) { - this.dimensions = dimensions; - this.metricName = metricName; - this.namespace = namespace; - } + private String namespace; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric() {} /** * @return The dimensions of the metric. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List dimensions; private String metricName; private String namespace; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedLoadMetricSpecificationMetricDataQueryMetricStatMetric defaults) { Objects.requireNonNull(defaults); this.dimensions = defaults.dimensions; @@ -84,6 +71,7 @@ public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomized this.namespace = defaults.namespace; } + @CustomType.Setter public Builder dimensions(@Nullable List dimensions) { this.dimensions = dimensions; return this; @@ -91,15 +79,22 @@ public Builder dimensions(@Nullable List metricDataQueries; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification(@CustomType.Parameter("metricDataQueries") List metricDataQueries) { - this.metricDataQueries = metricDataQueries; - } + private List metricDataQueries; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification() {} /** * @return A list of up to 10 structures that defines custom capacity metric in predictive scaling policy * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List metricDataQueries; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification defaults) { Objects.requireNonNull(defaults); this.metricDataQueries = defaults.metricDataQueries; } + @CustomType.Setter public Builder metricDataQueries(List metricDataQueries) { this.metricDataQueries = Objects.requireNonNull(metricDataQueries); return this; } public Builder metricDataQueries(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery... metricDataQueries) { return metricDataQueries(List.of(metricDataQueries)); - } public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification build() { - return new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification(metricDataQueries); + } + public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification build() { + final var o = new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecification(); + o.metricDataQueries = metricDataQueries; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery.java index d877ae778fd..782b8291986 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery.java @@ -17,42 +17,29 @@ public final class PolicyPredictiveScalingConfigurationMetricSpecificationCustom * @return The math expression used on the returned metric. You must specify either `expression` or `metric_stat`, but not both. * */ - private final @Nullable String expression; + private @Nullable String expression; /** * @return A short name for the metric used in predictive scaling policy. * */ - private final String id; + private String id; /** * @return A human-readable label for this metric or expression. * */ - private final @Nullable String label; + private @Nullable String label; /** * @return A structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either `expression` or `metric_stat`, but not both. * */ - private final @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat metricStat; + private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat metricStat; /** * @return A boolean that indicates whether to return the timestamps and raw data values of this metric, the default it true * */ - private final @Nullable Boolean returnData; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery( - @CustomType.Parameter("expression") @Nullable String expression, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("label") @Nullable String label, - @CustomType.Parameter("metricStat") @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat metricStat, - @CustomType.Parameter("returnData") @Nullable Boolean returnData) { - this.expression = expression; - this.id = id; - this.label = label; - this.metricStat = metricStat; - this.returnData = returnData; - } + private @Nullable Boolean returnData; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery() {} /** * @return The math expression used on the returned metric. You must specify either `expression` or `metric_stat`, but not both. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String expression; private String id; private @Nullable String label; private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat metricStat; private @Nullable Boolean returnData; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery defaults) { Objects.requireNonNull(defaults); this.expression = defaults.expression; @@ -117,27 +100,39 @@ public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomized this.returnData = defaults.returnData; } + @CustomType.Setter public Builder expression(@Nullable String expression) { this.expression = expression; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder label(@Nullable String label) { this.label = label; return this; } + @CustomType.Setter public Builder metricStat(@Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat metricStat) { this.metricStat = metricStat; return this; } + @CustomType.Setter public Builder returnData(@Nullable Boolean returnData) { this.returnData = returnData; return this; - } public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery build() { - return new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery(expression, id, label, metricStat, returnData); + } + public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery build() { + final var o = new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQuery(); + o.expression = expression; + o.id = id; + o.label = label; + o.metricStat = metricStat; + o.returnData = returnData; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat.java index 841f9ddb0eb..65ff40d3082 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat.java @@ -16,28 +16,19 @@ public final class PolicyPredictiveScalingConfigurationMetricSpecificationCustom * @return A structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. * */ - private final PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric metric; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric metric; /** * @return The statistic of the metrics to return. * */ - private final String stat; + private String stat; /** * @return The unit of the metrics to return. * */ - private final @Nullable String unit; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat( - @CustomType.Parameter("metric") PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric metric, - @CustomType.Parameter("stat") String stat, - @CustomType.Parameter("unit") @Nullable String unit) { - this.metric = metric; - this.stat = stat; - this.unit = unit; - } + private @Nullable String unit; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat() {} /** * @return A structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric metric; private String stat; private @Nullable String unit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat defaults) { Objects.requireNonNull(defaults); this.metric = defaults.metric; @@ -84,19 +71,27 @@ public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomized this.unit = defaults.unit; } + @CustomType.Setter public Builder metric(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric metric) { this.metric = Objects.requireNonNull(metric); return this; } + @CustomType.Setter public Builder stat(String stat) { this.stat = Objects.requireNonNull(stat); return this; } + @CustomType.Setter public Builder unit(@Nullable String unit) { this.unit = unit; return this; - } public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat build() { - return new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat(metric, stat, unit); + } + public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat build() { + final var o = new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStat(); + o.metric = metric; + o.stat = stat; + o.unit = unit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric.java b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric.java index 3d192de037a..92119474eea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscaling/outputs/PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric.java @@ -16,28 +16,19 @@ public final class PolicyPredictiveScalingConfigurationMetricSpecificationCustom * @return The dimensions of the metric. * */ - private final @Nullable List dimensions; + private @Nullable List dimensions; /** * @return The name of the metric. * */ - private final String metricName; + private String metricName; /** * @return The namespace of the metric. * */ - private final String namespace; - - @CustomType.Constructor - private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric( - @CustomType.Parameter("dimensions") @Nullable List dimensions, - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("namespace") String namespace) { - this.dimensions = dimensions; - this.metricName = metricName; - this.namespace = namespace; - } + private String namespace; + private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric() {} /** * @return The dimensions of the metric. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List dimensions; private String metricName; private String namespace; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedScalingMetricSpecificationMetricDataQueryMetricStatMetric defaults) { Objects.requireNonNull(defaults); this.dimensions = defaults.dimensions; @@ -84,6 +71,7 @@ public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomized this.namespace = defaults.namespace; } + @CustomType.Setter public Builder dimensions(@Nullable List dimensions) { this.dimensions = dimensions; return this; @@ -91,15 +79,22 @@ public Builder dimensions(@Nullable List metricDimensions; + private @Nullable List metricDimensions; /** * @return The name of the metric. * */ - private final String metricName; + private String metricName; /** * @return The namespace of the metric. * */ - private final String namespace; + private String namespace; /** * @return The statistic of the metric. * */ - private final String statistic; + private String statistic; /** * @return The unit of the metrics to return. * */ - private final @Nullable String unit; - - @CustomType.Constructor - private PolicyTargetTrackingConfigurationCustomizedMetricSpecification( - @CustomType.Parameter("metricDimensions") @Nullable List metricDimensions, - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("namespace") String namespace, - @CustomType.Parameter("statistic") String statistic, - @CustomType.Parameter("unit") @Nullable String unit) { - this.metricDimensions = metricDimensions; - this.metricName = metricName; - this.namespace = namespace; - this.statistic = statistic; - this.unit = unit; - } + private @Nullable String unit; + private PolicyTargetTrackingConfigurationCustomizedMetricSpecification() {} /** * @return The dimensions of the metric. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(PolicyTargetTrackingConfigurationCustomizedMetricSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List metricDimensions; private String metricName; private String namespace; private String statistic; private @Nullable String unit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyTargetTrackingConfigurationCustomizedMetricSpecification defaults) { Objects.requireNonNull(defaults); this.metricDimensions = defaults.metricDimensions; @@ -117,6 +100,7 @@ public Builder(PolicyTargetTrackingConfigurationCustomizedMetricSpecification de this.unit = defaults.unit; } + @CustomType.Setter public Builder metricDimensions(@Nullable List metricDimensions) { this.metricDimensions = metricDimensions; return this; @@ -124,23 +108,34 @@ public Builder metricDimensions(@Nullable List tagFilters; - - @CustomType.Constructor - private ScalingPlanApplicationSource( - @CustomType.Parameter("cloudformationStackArn") @Nullable String cloudformationStackArn, - @CustomType.Parameter("tagFilters") @Nullable List tagFilters) { - this.cloudformationStackArn = cloudformationStackArn; - this.tagFilters = tagFilters; - } + private @Nullable List tagFilters; + private ScalingPlanApplicationSource() {} /** * @return The Amazon Resource Name (ARN) of a AWS CloudFormation stack. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(ScalingPlanApplicationSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cloudformationStackArn; private @Nullable List tagFilters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScalingPlanApplicationSource defaults) { Objects.requireNonNull(defaults); this.cloudformationStackArn = defaults.cloudformationStackArn; this.tagFilters = defaults.tagFilters; } + @CustomType.Setter public Builder cloudformationStackArn(@Nullable String cloudformationStackArn) { this.cloudformationStackArn = cloudformationStackArn; return this; } + @CustomType.Setter public Builder tagFilters(@Nullable List tagFilters) { this.tagFilters = tagFilters; return this; } public Builder tagFilters(ScalingPlanApplicationSourceTagFilter... tagFilters) { return tagFilters(List.of(tagFilters)); - } public ScalingPlanApplicationSource build() { - return new ScalingPlanApplicationSource(cloudformationStackArn, tagFilters); + } + public ScalingPlanApplicationSource build() { + final var o = new ScalingPlanApplicationSource(); + o.cloudformationStackArn = cloudformationStackArn; + o.tagFilters = tagFilters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanApplicationSourceTagFilter.java b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanApplicationSourceTagFilter.java index e6f2f304783..ed3eca09f34 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanApplicationSourceTagFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanApplicationSourceTagFilter.java @@ -15,21 +15,14 @@ public final class ScalingPlanApplicationSourceTagFilter { * @return The tag key. * */ - private final String key; + private String key; /** * @return The tag values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private ScalingPlanApplicationSourceTagFilter( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.values = values; - } + private @Nullable List values; + private ScalingPlanApplicationSourceTagFilter() {} /** * @return The tag key. * @@ -52,33 +45,35 @@ public static Builder builder() { public static Builder builder(ScalingPlanApplicationSourceTagFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScalingPlanApplicationSourceTagFilter defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public ScalingPlanApplicationSourceTagFilter build() { - return new ScalingPlanApplicationSourceTagFilter(key, values); + } + public ScalingPlanApplicationSourceTagFilter build() { + final var o = new ScalingPlanApplicationSourceTagFilter(); + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstruction.java b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstruction.java index c4853443c2f..7d0912799d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstruction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstruction.java @@ -22,108 +22,77 @@ public final class ScalingPlanScalingInstruction { * More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_CustomizedLoadMetricSpecification.html). * */ - private final @Nullable ScalingPlanScalingInstructionCustomizedLoadMetricSpecification customizedLoadMetricSpecification; + private @Nullable ScalingPlanScalingInstructionCustomizedLoadMetricSpecification customizedLoadMetricSpecification; /** * @return Boolean controlling whether dynamic scaling by AWS Auto Scaling is disabled. Defaults to `false`. * */ - private final @Nullable Boolean disableDynamicScaling; + private @Nullable Boolean disableDynamicScaling; /** * @return The maximum capacity of the resource. The exception to this upper limit is if you specify a non-default setting for `predictive_scaling_max_capacity_behavior`. * */ - private final Integer maxCapacity; + private Integer maxCapacity; /** * @return The minimum capacity of the resource. * */ - private final Integer minCapacity; + private Integer minCapacity; /** * @return The predefined load metric to use for predictive scaling. You must specify either `predefined_load_metric_specification` or `customized_load_metric_specification` when configuring predictive scaling. * More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_PredefinedLoadMetricSpecification.html). * */ - private final @Nullable ScalingPlanScalingInstructionPredefinedLoadMetricSpecification predefinedLoadMetricSpecification; + private @Nullable ScalingPlanScalingInstructionPredefinedLoadMetricSpecification predefinedLoadMetricSpecification; /** * @return Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity specified for the resource. * Valid values: `SetForecastCapacityToMaxCapacity`, `SetMaxCapacityAboveForecastCapacity`, `SetMaxCapacityToForecastCapacity`. * */ - private final @Nullable String predictiveScalingMaxCapacityBehavior; + private @Nullable String predictiveScalingMaxCapacityBehavior; /** * @return The size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. * */ - private final @Nullable Integer predictiveScalingMaxCapacityBuffer; + private @Nullable Integer predictiveScalingMaxCapacityBuffer; /** * @return The predictive scaling mode. Valid values: `ForecastAndScale`, `ForecastOnly`. * */ - private final @Nullable String predictiveScalingMode; + private @Nullable String predictiveScalingMode; /** * @return The ID of the resource. This string consists of the resource type and unique identifier. * */ - private final String resourceId; + private String resourceId; /** * @return The scalable dimension associated with the resource. Valid values: `autoscaling:autoScalingGroup:DesiredCapacity`, `dynamodb:index:ReadCapacityUnits`, `dynamodb:index:WriteCapacityUnits`, `dynamodb:table:ReadCapacityUnits`, `dynamodb:table:WriteCapacityUnits`, `ecs:service:DesiredCount`, `ec2:spot-fleet-request:TargetCapacity`, `rds:cluster:ReadReplicaCount`. * */ - private final String scalableDimension; + private String scalableDimension; /** * @return Controls whether a resource's externally created scaling policies are kept or replaced. Valid values: `KeepExternalPolicies`, `ReplaceExternalPolicies`. Defaults to `KeepExternalPolicies`. * */ - private final @Nullable String scalingPolicyUpdateBehavior; + private @Nullable String scalingPolicyUpdateBehavior; /** * @return The amount of time, in seconds, to buffer the run time of scheduled scaling actions when scaling out. * */ - private final @Nullable Integer scheduledActionBufferTime; + private @Nullable Integer scheduledActionBufferTime; /** * @return The namespace of the AWS service. Valid values: `autoscaling`, `dynamodb`, `ecs`, `ec2`, `rds`. * */ - private final String serviceNamespace; + private String serviceNamespace; /** * @return The structure that defines new target tracking configurations. Each of these structures includes a specific scaling metric and a target value for the metric, along with various parameters to use with dynamic scaling. * More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_TargetTrackingConfiguration.html). * */ - private final List targetTrackingConfigurations; - - @CustomType.Constructor - private ScalingPlanScalingInstruction( - @CustomType.Parameter("customizedLoadMetricSpecification") @Nullable ScalingPlanScalingInstructionCustomizedLoadMetricSpecification customizedLoadMetricSpecification, - @CustomType.Parameter("disableDynamicScaling") @Nullable Boolean disableDynamicScaling, - @CustomType.Parameter("maxCapacity") Integer maxCapacity, - @CustomType.Parameter("minCapacity") Integer minCapacity, - @CustomType.Parameter("predefinedLoadMetricSpecification") @Nullable ScalingPlanScalingInstructionPredefinedLoadMetricSpecification predefinedLoadMetricSpecification, - @CustomType.Parameter("predictiveScalingMaxCapacityBehavior") @Nullable String predictiveScalingMaxCapacityBehavior, - @CustomType.Parameter("predictiveScalingMaxCapacityBuffer") @Nullable Integer predictiveScalingMaxCapacityBuffer, - @CustomType.Parameter("predictiveScalingMode") @Nullable String predictiveScalingMode, - @CustomType.Parameter("resourceId") String resourceId, - @CustomType.Parameter("scalableDimension") String scalableDimension, - @CustomType.Parameter("scalingPolicyUpdateBehavior") @Nullable String scalingPolicyUpdateBehavior, - @CustomType.Parameter("scheduledActionBufferTime") @Nullable Integer scheduledActionBufferTime, - @CustomType.Parameter("serviceNamespace") String serviceNamespace, - @CustomType.Parameter("targetTrackingConfigurations") List targetTrackingConfigurations) { - this.customizedLoadMetricSpecification = customizedLoadMetricSpecification; - this.disableDynamicScaling = disableDynamicScaling; - this.maxCapacity = maxCapacity; - this.minCapacity = minCapacity; - this.predefinedLoadMetricSpecification = predefinedLoadMetricSpecification; - this.predictiveScalingMaxCapacityBehavior = predictiveScalingMaxCapacityBehavior; - this.predictiveScalingMaxCapacityBuffer = predictiveScalingMaxCapacityBuffer; - this.predictiveScalingMode = predictiveScalingMode; - this.resourceId = resourceId; - this.scalableDimension = scalableDimension; - this.scalingPolicyUpdateBehavior = scalingPolicyUpdateBehavior; - this.scheduledActionBufferTime = scheduledActionBufferTime; - this.serviceNamespace = serviceNamespace; - this.targetTrackingConfigurations = targetTrackingConfigurations; - } + private List targetTrackingConfigurations; + private ScalingPlanScalingInstruction() {} /** * @return The customized load metric to use for predictive scaling. You must specify either `customized_load_metric_specification` or `predefined_load_metric_specification` when configuring predictive scaling. * More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_CustomizedLoadMetricSpecification.html). @@ -234,7 +203,7 @@ public static Builder builder() { public static Builder builder(ScalingPlanScalingInstruction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ScalingPlanScalingInstructionCustomizedLoadMetricSpecification customizedLoadMetricSpecification; private @Nullable Boolean disableDynamicScaling; @@ -250,11 +219,7 @@ public static final class Builder { private @Nullable Integer scheduledActionBufferTime; private String serviceNamespace; private List targetTrackingConfigurations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScalingPlanScalingInstruction defaults) { Objects.requireNonNull(defaults); this.customizedLoadMetricSpecification = defaults.customizedLoadMetricSpecification; @@ -273,66 +238,96 @@ public Builder(ScalingPlanScalingInstruction defaults) { this.targetTrackingConfigurations = defaults.targetTrackingConfigurations; } + @CustomType.Setter public Builder customizedLoadMetricSpecification(@Nullable ScalingPlanScalingInstructionCustomizedLoadMetricSpecification customizedLoadMetricSpecification) { this.customizedLoadMetricSpecification = customizedLoadMetricSpecification; return this; } + @CustomType.Setter public Builder disableDynamicScaling(@Nullable Boolean disableDynamicScaling) { this.disableDynamicScaling = disableDynamicScaling; return this; } + @CustomType.Setter public Builder maxCapacity(Integer maxCapacity) { this.maxCapacity = Objects.requireNonNull(maxCapacity); return this; } + @CustomType.Setter public Builder minCapacity(Integer minCapacity) { this.minCapacity = Objects.requireNonNull(minCapacity); return this; } + @CustomType.Setter public Builder predefinedLoadMetricSpecification(@Nullable ScalingPlanScalingInstructionPredefinedLoadMetricSpecification predefinedLoadMetricSpecification) { this.predefinedLoadMetricSpecification = predefinedLoadMetricSpecification; return this; } + @CustomType.Setter public Builder predictiveScalingMaxCapacityBehavior(@Nullable String predictiveScalingMaxCapacityBehavior) { this.predictiveScalingMaxCapacityBehavior = predictiveScalingMaxCapacityBehavior; return this; } + @CustomType.Setter public Builder predictiveScalingMaxCapacityBuffer(@Nullable Integer predictiveScalingMaxCapacityBuffer) { this.predictiveScalingMaxCapacityBuffer = predictiveScalingMaxCapacityBuffer; return this; } + @CustomType.Setter public Builder predictiveScalingMode(@Nullable String predictiveScalingMode) { this.predictiveScalingMode = predictiveScalingMode; return this; } + @CustomType.Setter public Builder resourceId(String resourceId) { this.resourceId = Objects.requireNonNull(resourceId); return this; } + @CustomType.Setter public Builder scalableDimension(String scalableDimension) { this.scalableDimension = Objects.requireNonNull(scalableDimension); return this; } + @CustomType.Setter public Builder scalingPolicyUpdateBehavior(@Nullable String scalingPolicyUpdateBehavior) { this.scalingPolicyUpdateBehavior = scalingPolicyUpdateBehavior; return this; } + @CustomType.Setter public Builder scheduledActionBufferTime(@Nullable Integer scheduledActionBufferTime) { this.scheduledActionBufferTime = scheduledActionBufferTime; return this; } + @CustomType.Setter public Builder serviceNamespace(String serviceNamespace) { this.serviceNamespace = Objects.requireNonNull(serviceNamespace); return this; } + @CustomType.Setter public Builder targetTrackingConfigurations(List targetTrackingConfigurations) { this.targetTrackingConfigurations = Objects.requireNonNull(targetTrackingConfigurations); return this; } public Builder targetTrackingConfigurations(ScalingPlanScalingInstructionTargetTrackingConfiguration... targetTrackingConfigurations) { return targetTrackingConfigurations(List.of(targetTrackingConfigurations)); - } public ScalingPlanScalingInstruction build() { - return new ScalingPlanScalingInstruction(customizedLoadMetricSpecification, disableDynamicScaling, maxCapacity, minCapacity, predefinedLoadMetricSpecification, predictiveScalingMaxCapacityBehavior, predictiveScalingMaxCapacityBuffer, predictiveScalingMode, resourceId, scalableDimension, scalingPolicyUpdateBehavior, scheduledActionBufferTime, serviceNamespace, targetTrackingConfigurations); + } + public ScalingPlanScalingInstruction build() { + final var o = new ScalingPlanScalingInstruction(); + o.customizedLoadMetricSpecification = customizedLoadMetricSpecification; + o.disableDynamicScaling = disableDynamicScaling; + o.maxCapacity = maxCapacity; + o.minCapacity = minCapacity; + o.predefinedLoadMetricSpecification = predefinedLoadMetricSpecification; + o.predictiveScalingMaxCapacityBehavior = predictiveScalingMaxCapacityBehavior; + o.predictiveScalingMaxCapacityBuffer = predictiveScalingMaxCapacityBuffer; + o.predictiveScalingMode = predictiveScalingMode; + o.resourceId = resourceId; + o.scalableDimension = scalableDimension; + o.scalingPolicyUpdateBehavior = scalingPolicyUpdateBehavior; + o.scheduledActionBufferTime = scheduledActionBufferTime; + o.serviceNamespace = serviceNamespace; + o.targetTrackingConfigurations = targetTrackingConfigurations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionCustomizedLoadMetricSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionCustomizedLoadMetricSpecification.java index 1922447c40d..d2edd7b5851 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionCustomizedLoadMetricSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionCustomizedLoadMetricSpecification.java @@ -16,42 +16,29 @@ public final class ScalingPlanScalingInstructionCustomizedLoadMetricSpecificatio * @return The dimensions of the metric. * */ - private final @Nullable Map dimensions; + private @Nullable Map dimensions; /** * @return The name of the metric. * */ - private final String metricName; + private String metricName; /** * @return The namespace of the metric. * */ - private final String namespace; + private String namespace; /** * @return The statistic of the metric. Currently, the value must always be `Sum`. * */ - private final String statistic; + private String statistic; /** * @return The unit of the metric. * */ - private final @Nullable String unit; - - @CustomType.Constructor - private ScalingPlanScalingInstructionCustomizedLoadMetricSpecification( - @CustomType.Parameter("dimensions") @Nullable Map dimensions, - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("namespace") String namespace, - @CustomType.Parameter("statistic") String statistic, - @CustomType.Parameter("unit") @Nullable String unit) { - this.dimensions = dimensions; - this.metricName = metricName; - this.namespace = namespace; - this.statistic = statistic; - this.unit = unit; - } + private @Nullable String unit; + private ScalingPlanScalingInstructionCustomizedLoadMetricSpecification() {} /** * @return The dimensions of the metric. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ScalingPlanScalingInstructionCustomizedLoadMetricSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map dimensions; private String metricName; private String namespace; private String statistic; private @Nullable String unit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScalingPlanScalingInstructionCustomizedLoadMetricSpecification defaults) { Objects.requireNonNull(defaults); this.dimensions = defaults.dimensions; @@ -116,27 +99,39 @@ public Builder(ScalingPlanScalingInstructionCustomizedLoadMetricSpecification de this.unit = defaults.unit; } + @CustomType.Setter public Builder dimensions(@Nullable Map dimensions) { this.dimensions = dimensions; return this; } + @CustomType.Setter public Builder metricName(String metricName) { this.metricName = Objects.requireNonNull(metricName); return this; } + @CustomType.Setter public Builder namespace(String namespace) { this.namespace = Objects.requireNonNull(namespace); return this; } + @CustomType.Setter public Builder statistic(String statistic) { this.statistic = Objects.requireNonNull(statistic); return this; } + @CustomType.Setter public Builder unit(@Nullable String unit) { this.unit = unit; return this; - } public ScalingPlanScalingInstructionCustomizedLoadMetricSpecification build() { - return new ScalingPlanScalingInstructionCustomizedLoadMetricSpecification(dimensions, metricName, namespace, statistic, unit); + } + public ScalingPlanScalingInstructionCustomizedLoadMetricSpecification build() { + final var o = new ScalingPlanScalingInstructionCustomizedLoadMetricSpecification(); + o.dimensions = dimensions; + o.metricName = metricName; + o.namespace = namespace; + o.statistic = statistic; + o.unit = unit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionPredefinedLoadMetricSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionPredefinedLoadMetricSpecification.java index 43f15b0149d..4aa58e6473e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionPredefinedLoadMetricSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionPredefinedLoadMetricSpecification.java @@ -15,21 +15,14 @@ public final class ScalingPlanScalingInstructionPredefinedLoadMetricSpecificatio * @return The metric type. Valid values: `ALBTargetGroupRequestCount`, `ASGTotalCPUUtilization`, `ASGTotalNetworkIn`, `ASGTotalNetworkOut`. * */ - private final String predefinedLoadMetricType; + private String predefinedLoadMetricType; /** * @return Identifies the resource associated with the metric type. * */ - private final @Nullable String resourceLabel; - - @CustomType.Constructor - private ScalingPlanScalingInstructionPredefinedLoadMetricSpecification( - @CustomType.Parameter("predefinedLoadMetricType") String predefinedLoadMetricType, - @CustomType.Parameter("resourceLabel") @Nullable String resourceLabel) { - this.predefinedLoadMetricType = predefinedLoadMetricType; - this.resourceLabel = resourceLabel; - } + private @Nullable String resourceLabel; + private ScalingPlanScalingInstructionPredefinedLoadMetricSpecification() {} /** * @return The metric type. Valid values: `ALBTargetGroupRequestCount`, `ASGTotalCPUUtilization`, `ASGTotalNetworkIn`, `ASGTotalNetworkOut`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ScalingPlanScalingInstructionPredefinedLoadMetricSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String predefinedLoadMetricType; private @Nullable String resourceLabel; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScalingPlanScalingInstructionPredefinedLoadMetricSpecification defaults) { Objects.requireNonNull(defaults); this.predefinedLoadMetricType = defaults.predefinedLoadMetricType; this.resourceLabel = defaults.resourceLabel; } + @CustomType.Setter public Builder predefinedLoadMetricType(String predefinedLoadMetricType) { this.predefinedLoadMetricType = Objects.requireNonNull(predefinedLoadMetricType); return this; } + @CustomType.Setter public Builder resourceLabel(@Nullable String resourceLabel) { this.resourceLabel = resourceLabel; return this; - } public ScalingPlanScalingInstructionPredefinedLoadMetricSpecification build() { - return new ScalingPlanScalingInstructionPredefinedLoadMetricSpecification(predefinedLoadMetricType, resourceLabel); + } + public ScalingPlanScalingInstructionPredefinedLoadMetricSpecification build() { + final var o = new ScalingPlanScalingInstructionPredefinedLoadMetricSpecification(); + o.predefinedLoadMetricType = predefinedLoadMetricType; + o.resourceLabel = resourceLabel; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionTargetTrackingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionTargetTrackingConfiguration.java index ab2569bc2d6..745cda3ea01 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionTargetTrackingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionTargetTrackingConfiguration.java @@ -20,60 +20,43 @@ public final class ScalingPlanScalingInstructionTargetTrackingConfiguration { * More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_CustomizedScalingMetricSpecification.html). * */ - private final @Nullable ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification customizedScalingMetricSpecification; + private @Nullable ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification customizedScalingMetricSpecification; /** * @return Boolean indicating whether scale in by the target tracking scaling policy is disabled. Defaults to `false`. * */ - private final @Nullable Boolean disableScaleIn; + private @Nullable Boolean disableScaleIn; /** * @return The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. * This value is used only if the resource is an Auto Scaling group. * */ - private final @Nullable Integer estimatedInstanceWarmup; + private @Nullable Integer estimatedInstanceWarmup; /** * @return A predefined metric. You can specify either `predefined_scaling_metric_specification` or `customized_scaling_metric_specification`. * More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_PredefinedScalingMetricSpecification.html). * */ - private final @Nullable ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification predefinedScalingMetricSpecification; + private @Nullable ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification predefinedScalingMetricSpecification; /** * @return The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. * This value is not used if the scalable resource is an Auto Scaling group. * */ - private final @Nullable Integer scaleInCooldown; + private @Nullable Integer scaleInCooldown; /** * @return The amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start. * This value is not used if the scalable resource is an Auto Scaling group. * */ - private final @Nullable Integer scaleOutCooldown; + private @Nullable Integer scaleOutCooldown; /** * @return The target value for the metric. * */ - private final Double targetValue; - - @CustomType.Constructor - private ScalingPlanScalingInstructionTargetTrackingConfiguration( - @CustomType.Parameter("customizedScalingMetricSpecification") @Nullable ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification customizedScalingMetricSpecification, - @CustomType.Parameter("disableScaleIn") @Nullable Boolean disableScaleIn, - @CustomType.Parameter("estimatedInstanceWarmup") @Nullable Integer estimatedInstanceWarmup, - @CustomType.Parameter("predefinedScalingMetricSpecification") @Nullable ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification predefinedScalingMetricSpecification, - @CustomType.Parameter("scaleInCooldown") @Nullable Integer scaleInCooldown, - @CustomType.Parameter("scaleOutCooldown") @Nullable Integer scaleOutCooldown, - @CustomType.Parameter("targetValue") Double targetValue) { - this.customizedScalingMetricSpecification = customizedScalingMetricSpecification; - this.disableScaleIn = disableScaleIn; - this.estimatedInstanceWarmup = estimatedInstanceWarmup; - this.predefinedScalingMetricSpecification = predefinedScalingMetricSpecification; - this.scaleInCooldown = scaleInCooldown; - this.scaleOutCooldown = scaleOutCooldown; - this.targetValue = targetValue; - } + private Double targetValue; + private ScalingPlanScalingInstructionTargetTrackingConfiguration() {} /** * @return A customized metric. You can specify either `customized_scaling_metric_specification` or `predefined_scaling_metric_specification`. * More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_CustomizedScalingMetricSpecification.html). @@ -136,7 +119,7 @@ public static Builder builder() { public static Builder builder(ScalingPlanScalingInstructionTargetTrackingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification customizedScalingMetricSpecification; private @Nullable Boolean disableScaleIn; @@ -145,11 +128,7 @@ public static final class Builder { private @Nullable Integer scaleInCooldown; private @Nullable Integer scaleOutCooldown; private Double targetValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScalingPlanScalingInstructionTargetTrackingConfiguration defaults) { Objects.requireNonNull(defaults); this.customizedScalingMetricSpecification = defaults.customizedScalingMetricSpecification; @@ -161,35 +140,51 @@ public Builder(ScalingPlanScalingInstructionTargetTrackingConfiguration defaults this.targetValue = defaults.targetValue; } + @CustomType.Setter public Builder customizedScalingMetricSpecification(@Nullable ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification customizedScalingMetricSpecification) { this.customizedScalingMetricSpecification = customizedScalingMetricSpecification; return this; } + @CustomType.Setter public Builder disableScaleIn(@Nullable Boolean disableScaleIn) { this.disableScaleIn = disableScaleIn; return this; } + @CustomType.Setter public Builder estimatedInstanceWarmup(@Nullable Integer estimatedInstanceWarmup) { this.estimatedInstanceWarmup = estimatedInstanceWarmup; return this; } + @CustomType.Setter public Builder predefinedScalingMetricSpecification(@Nullable ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification predefinedScalingMetricSpecification) { this.predefinedScalingMetricSpecification = predefinedScalingMetricSpecification; return this; } + @CustomType.Setter public Builder scaleInCooldown(@Nullable Integer scaleInCooldown) { this.scaleInCooldown = scaleInCooldown; return this; } + @CustomType.Setter public Builder scaleOutCooldown(@Nullable Integer scaleOutCooldown) { this.scaleOutCooldown = scaleOutCooldown; return this; } + @CustomType.Setter public Builder targetValue(Double targetValue) { this.targetValue = Objects.requireNonNull(targetValue); return this; - } public ScalingPlanScalingInstructionTargetTrackingConfiguration build() { - return new ScalingPlanScalingInstructionTargetTrackingConfiguration(customizedScalingMetricSpecification, disableScaleIn, estimatedInstanceWarmup, predefinedScalingMetricSpecification, scaleInCooldown, scaleOutCooldown, targetValue); + } + public ScalingPlanScalingInstructionTargetTrackingConfiguration build() { + final var o = new ScalingPlanScalingInstructionTargetTrackingConfiguration(); + o.customizedScalingMetricSpecification = customizedScalingMetricSpecification; + o.disableScaleIn = disableScaleIn; + o.estimatedInstanceWarmup = estimatedInstanceWarmup; + o.predefinedScalingMetricSpecification = predefinedScalingMetricSpecification; + o.scaleInCooldown = scaleInCooldown; + o.scaleOutCooldown = scaleOutCooldown; + o.targetValue = targetValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification.java index ba41b7155a4..56e8bd8cf47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification.java @@ -16,42 +16,29 @@ public final class ScalingPlanScalingInstructionTargetTrackingConfigurationCusto * @return The dimensions of the metric. * */ - private final @Nullable Map dimensions; + private @Nullable Map dimensions; /** * @return The name of the metric. * */ - private final String metricName; + private String metricName; /** * @return The namespace of the metric. * */ - private final String namespace; + private String namespace; /** * @return The statistic of the metric. Valid values: `Average`, `Maximum`, `Minimum`, `SampleCount`, `Sum`. * */ - private final String statistic; + private String statistic; /** * @return The unit of the metric. * */ - private final @Nullable String unit; - - @CustomType.Constructor - private ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification( - @CustomType.Parameter("dimensions") @Nullable Map dimensions, - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("namespace") String namespace, - @CustomType.Parameter("statistic") String statistic, - @CustomType.Parameter("unit") @Nullable String unit) { - this.dimensions = dimensions; - this.metricName = metricName; - this.namespace = namespace; - this.statistic = statistic; - this.unit = unit; - } + private @Nullable String unit; + private ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification() {} /** * @return The dimensions of the metric. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map dimensions; private String metricName; private String namespace; private String statistic; private @Nullable String unit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification defaults) { Objects.requireNonNull(defaults); this.dimensions = defaults.dimensions; @@ -116,27 +99,39 @@ public Builder(ScalingPlanScalingInstructionTargetTrackingConfigurationCustomize this.unit = defaults.unit; } + @CustomType.Setter public Builder dimensions(@Nullable Map dimensions) { this.dimensions = dimensions; return this; } + @CustomType.Setter public Builder metricName(String metricName) { this.metricName = Objects.requireNonNull(metricName); return this; } + @CustomType.Setter public Builder namespace(String namespace) { this.namespace = Objects.requireNonNull(namespace); return this; } + @CustomType.Setter public Builder statistic(String statistic) { this.statistic = Objects.requireNonNull(statistic); return this; } + @CustomType.Setter public Builder unit(@Nullable String unit) { this.unit = unit; return this; - } public ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification build() { - return new ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification(dimensions, metricName, namespace, statistic, unit); + } + public ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification build() { + final var o = new ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification(); + o.dimensions = dimensions; + o.metricName = metricName; + o.namespace = namespace; + o.statistic = statistic; + o.unit = unit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification.java index 6dff4f92d73..e1fe6d7cfa1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/autoscalingplans/outputs/ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification.java @@ -15,21 +15,14 @@ public final class ScalingPlanScalingInstructionTargetTrackingConfigurationPrede * @return The metric type. Valid values: `ALBRequestCountPerTarget`, `ASGAverageCPUUtilization`, `ASGAverageNetworkIn`, `ASGAverageNetworkOut`, `DynamoDBReadCapacityUtilization`, `DynamoDBWriteCapacityUtilization`, `ECSServiceAverageCPUUtilization`, `ECSServiceAverageMemoryUtilization`, `EC2SpotFleetRequestAverageCPUUtilization`, `EC2SpotFleetRequestAverageNetworkIn`, `EC2SpotFleetRequestAverageNetworkOut`, `RDSReaderAverageCPUUtilization`, `RDSReaderAverageDatabaseConnections`. * */ - private final String predefinedScalingMetricType; + private String predefinedScalingMetricType; /** * @return Identifies the resource associated with the metric type. * */ - private final @Nullable String resourceLabel; - - @CustomType.Constructor - private ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification( - @CustomType.Parameter("predefinedScalingMetricType") String predefinedScalingMetricType, - @CustomType.Parameter("resourceLabel") @Nullable String resourceLabel) { - this.predefinedScalingMetricType = predefinedScalingMetricType; - this.resourceLabel = resourceLabel; - } + private @Nullable String resourceLabel; + private ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification() {} /** * @return The metric type. Valid values: `ALBRequestCountPerTarget`, `ASGAverageCPUUtilization`, `ASGAverageNetworkIn`, `ASGAverageNetworkOut`, `DynamoDBReadCapacityUtilization`, `DynamoDBWriteCapacityUtilization`, `ECSServiceAverageCPUUtilization`, `ECSServiceAverageMemoryUtilization`, `EC2SpotFleetRequestAverageCPUUtilization`, `EC2SpotFleetRequestAverageNetworkIn`, `EC2SpotFleetRequestAverageNetworkOut`, `RDSReaderAverageCPUUtilization`, `RDSReaderAverageDatabaseConnections`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String predefinedScalingMetricType; private @Nullable String resourceLabel; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification defaults) { Objects.requireNonNull(defaults); this.predefinedScalingMetricType = defaults.predefinedScalingMetricType; this.resourceLabel = defaults.resourceLabel; } + @CustomType.Setter public Builder predefinedScalingMetricType(String predefinedScalingMetricType) { this.predefinedScalingMetricType = Objects.requireNonNull(predefinedScalingMetricType); return this; } + @CustomType.Setter public Builder resourceLabel(@Nullable String resourceLabel) { this.resourceLabel = resourceLabel; return this; - } public ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification build() { - return new ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification(predefinedScalingMetricType, resourceLabel); + } + public ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification build() { + final var o = new ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification(); + o.predefinedScalingMetricType = predefinedScalingMetricType; + o.resourceLabel = resourceLabel; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/FrameworkControl.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/FrameworkControl.java index 96156556901..4112b986c47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/FrameworkControl.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/FrameworkControl.java @@ -18,28 +18,19 @@ public final class FrameworkControl { * @return One or more input parameter blocks. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year". The first parameter is daily. The second parameter is 1 year. Detailed below. * */ - private final @Nullable List inputParameters; + private @Nullable List inputParameters; /** * @return The name of a parameter, for example, BackupPlanFrequency. * */ - private final String name; + private String name; /** * @return The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans. Detailed below. * */ - private final @Nullable FrameworkControlScope scope; - - @CustomType.Constructor - private FrameworkControl( - @CustomType.Parameter("inputParameters") @Nullable List inputParameters, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("scope") @Nullable FrameworkControlScope scope) { - this.inputParameters = inputParameters; - this.name = name; - this.scope = scope; - } + private @Nullable FrameworkControlScope scope; + private FrameworkControl() {} /** * @return One or more input parameter blocks. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year". The first parameter is daily. The second parameter is 1 year. Detailed below. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(FrameworkControl defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List inputParameters; private String name; private @Nullable FrameworkControlScope scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FrameworkControl defaults) { Objects.requireNonNull(defaults); this.inputParameters = defaults.inputParameters; @@ -86,6 +73,7 @@ public Builder(FrameworkControl defaults) { this.scope = defaults.scope; } + @CustomType.Setter public Builder inputParameters(@Nullable List inputParameters) { this.inputParameters = inputParameters; return this; @@ -93,15 +81,22 @@ public Builder inputParameters(@Nullable List in public Builder inputParameters(FrameworkControlInputParameter... inputParameters) { return inputParameters(List.of(inputParameters)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder scope(@Nullable FrameworkControlScope scope) { this.scope = scope; return this; - } public FrameworkControl build() { - return new FrameworkControl(inputParameters, name, scope); + } + public FrameworkControl build() { + final var o = new FrameworkControl(); + o.inputParameters = inputParameters; + o.name = name; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/FrameworkControlInputParameter.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/FrameworkControlInputParameter.java index 17f1e032b2c..0c284c2488c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/FrameworkControlInputParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/FrameworkControlInputParameter.java @@ -15,21 +15,14 @@ public final class FrameworkControlInputParameter { * @return The name of a parameter, for example, BackupPlanFrequency. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return The value of parameter, for example, hourly. * */ - private final @Nullable String value; - - @CustomType.Constructor - private FrameworkControlInputParameter( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("value") @Nullable String value) { - this.name = name; - this.value = value; - } + private @Nullable String value; + private FrameworkControlInputParameter() {} /** * @return The name of a parameter, for example, BackupPlanFrequency. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FrameworkControlInputParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FrameworkControlInputParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public FrameworkControlInputParameter build() { - return new FrameworkControlInputParameter(name, value); + } + public FrameworkControlInputParameter build() { + final var o = new FrameworkControlInputParameter(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/FrameworkControlScope.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/FrameworkControlScope.java index ca4078e03ea..e91df5ef765 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/FrameworkControlScope.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/FrameworkControlScope.java @@ -16,28 +16,19 @@ public final class FrameworkControlScope { * @return The ID of the only AWS resource that you want your control scope to contain. Minimum number of 1 item. Maximum number of 100 items. * */ - private final @Nullable List complianceResourceIds; + private @Nullable List complianceResourceIds; /** * @return Describes whether the control scope includes one or more types of resources, such as EFS or RDS. * */ - private final @Nullable List complianceResourceTypes; + private @Nullable List complianceResourceTypes; /** * @return The tag key-value pair applied to those AWS resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. * */ - private final @Nullable Map tags; - - @CustomType.Constructor - private FrameworkControlScope( - @CustomType.Parameter("complianceResourceIds") @Nullable List complianceResourceIds, - @CustomType.Parameter("complianceResourceTypes") @Nullable List complianceResourceTypes, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.complianceResourceIds = complianceResourceIds; - this.complianceResourceTypes = complianceResourceTypes; - this.tags = tags; - } + private @Nullable Map tags; + private FrameworkControlScope() {} /** * @return The ID of the only AWS resource that you want your control scope to contain. Minimum number of 1 item. Maximum number of 100 items. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FrameworkControlScope defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List complianceResourceIds; private @Nullable List complianceResourceTypes; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FrameworkControlScope defaults) { Objects.requireNonNull(defaults); this.complianceResourceIds = defaults.complianceResourceIds; @@ -84,6 +71,7 @@ public Builder(FrameworkControlScope defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder complianceResourceIds(@Nullable List complianceResourceIds) { this.complianceResourceIds = complianceResourceIds; return this; @@ -91,6 +79,7 @@ public Builder complianceResourceIds(@Nullable List complianceResourceId public Builder complianceResourceIds(String... complianceResourceIds) { return complianceResourceIds(List.of(complianceResourceIds)); } + @CustomType.Setter public Builder complianceResourceTypes(@Nullable List complianceResourceTypes) { this.complianceResourceTypes = complianceResourceTypes; return this; @@ -98,11 +87,17 @@ public Builder complianceResourceTypes(@Nullable List complianceResource public Builder complianceResourceTypes(String... complianceResourceTypes) { return complianceResourceTypes(List.of(complianceResourceTypes)); } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public FrameworkControlScope build() { - return new FrameworkControlScope(complianceResourceIds, complianceResourceTypes, tags); + } + public FrameworkControlScope build() { + final var o = new FrameworkControlScope(); + o.complianceResourceIds = complianceResourceIds; + o.complianceResourceTypes = complianceResourceTypes; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkControl.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkControl.java index ebe82f8afc4..3f755fa84bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkControl.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkControl.java @@ -16,28 +16,19 @@ public final class GetFrameworkControl { * @return One or more input parameter blocks. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year". The first parameter is daily. The second parameter is 1 year. Detailed below. * */ - private final List inputParameters; + private List inputParameters; /** * @return The backup framework name. * */ - private final String name; + private String name; /** * @return The scope of a control. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans. Detailed below. * */ - private final List scopes; - - @CustomType.Constructor - private GetFrameworkControl( - @CustomType.Parameter("inputParameters") List inputParameters, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("scopes") List scopes) { - this.inputParameters = inputParameters; - this.name = name; - this.scopes = scopes; - } + private List scopes; + private GetFrameworkControl() {} /** * @return One or more input parameter blocks. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year". The first parameter is daily. The second parameter is 1 year. Detailed below. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetFrameworkControl defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List inputParameters; private String name; private List scopes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFrameworkControl defaults) { Objects.requireNonNull(defaults); this.inputParameters = defaults.inputParameters; @@ -84,6 +71,7 @@ public Builder(GetFrameworkControl defaults) { this.scopes = defaults.scopes; } + @CustomType.Setter public Builder inputParameters(List inputParameters) { this.inputParameters = Objects.requireNonNull(inputParameters); return this; @@ -91,18 +79,25 @@ public Builder inputParameters(List inputPara public Builder inputParameters(GetFrameworkControlInputParameter... inputParameters) { return inputParameters(List.of(inputParameters)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder scopes(List scopes) { this.scopes = Objects.requireNonNull(scopes); return this; } public Builder scopes(GetFrameworkControlScope... scopes) { return scopes(List.of(scopes)); - } public GetFrameworkControl build() { - return new GetFrameworkControl(inputParameters, name, scopes); + } + public GetFrameworkControl build() { + final var o = new GetFrameworkControl(); + o.inputParameters = inputParameters; + o.name = name; + o.scopes = scopes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkControlInputParameter.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkControlInputParameter.java index 99c7fb094bb..35457d4488c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkControlInputParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkControlInputParameter.java @@ -13,21 +13,14 @@ public final class GetFrameworkControlInputParameter { * @return The backup framework name. * */ - private final String name; + private String name; /** * @return The value of parameter, for example, hourly. * */ - private final String value; - - @CustomType.Constructor - private GetFrameworkControlInputParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private GetFrameworkControlInputParameter() {} /** * @return The backup framework name. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetFrameworkControlInputParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFrameworkControlInputParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetFrameworkControlInputParameter build() { - return new GetFrameworkControlInputParameter(name, value); + } + public GetFrameworkControlInputParameter build() { + final var o = new GetFrameworkControlInputParameter(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkControlScope.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkControlScope.java index 6cf5ab90334..080242a7edb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkControlScope.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkControlScope.java @@ -15,28 +15,19 @@ public final class GetFrameworkControlScope { * @return The ID of the only AWS resource that you want your control scope to contain. * */ - private final List complianceResourceIds; + private List complianceResourceIds; /** * @return Describes whether the control scope includes one or more types of resources, such as EFS or RDS. * */ - private final List complianceResourceTypes; + private List complianceResourceTypes; /** * @return The tag key-value pair applied to those AWS resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. * */ - private final Map tags; - - @CustomType.Constructor - private GetFrameworkControlScope( - @CustomType.Parameter("complianceResourceIds") List complianceResourceIds, - @CustomType.Parameter("complianceResourceTypes") List complianceResourceTypes, - @CustomType.Parameter("tags") Map tags) { - this.complianceResourceIds = complianceResourceIds; - this.complianceResourceTypes = complianceResourceTypes; - this.tags = tags; - } + private Map tags; + private GetFrameworkControlScope() {} /** * @return The ID of the only AWS resource that you want your control scope to contain. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetFrameworkControlScope defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List complianceResourceIds; private List complianceResourceTypes; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFrameworkControlScope defaults) { Objects.requireNonNull(defaults); this.complianceResourceIds = defaults.complianceResourceIds; @@ -83,6 +70,7 @@ public Builder(GetFrameworkControlScope defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder complianceResourceIds(List complianceResourceIds) { this.complianceResourceIds = Objects.requireNonNull(complianceResourceIds); return this; @@ -90,6 +78,7 @@ public Builder complianceResourceIds(List complianceResourceIds) { public Builder complianceResourceIds(String... complianceResourceIds) { return complianceResourceIds(List.of(complianceResourceIds)); } + @CustomType.Setter public Builder complianceResourceTypes(List complianceResourceTypes) { this.complianceResourceTypes = Objects.requireNonNull(complianceResourceTypes); return this; @@ -97,11 +86,17 @@ public Builder complianceResourceTypes(List complianceResourceTypes) { public Builder complianceResourceTypes(String... complianceResourceTypes) { return complianceResourceTypes(List.of(complianceResourceTypes)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetFrameworkControlScope build() { - return new GetFrameworkControlScope(complianceResourceIds, complianceResourceTypes, tags); + } + public GetFrameworkControlScope build() { + final var o = new GetFrameworkControlScope(); + o.complianceResourceIds = complianceResourceIds; + o.complianceResourceTypes = complianceResourceTypes; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkResult.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkResult.java index e54bb5faf7a..80ac5503110 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetFrameworkResult.java @@ -16,70 +16,49 @@ public final class GetFrameworkResult { * @return The ARN of the backup framework. * */ - private final String arn; + private String arn; /** * @return One or more control blocks that make up the framework. Each control in the list has a name, input parameters, and scope. Detailed below. * */ - private final List controls; + private List controls; /** * @return The date and time that a framework is created, in Unix format and Coordinated Universal Time (UTC). * */ - private final String creationTime; + private String creationTime; /** * @return The deployment status of a framework. The statuses are: `CREATE_IN_PROGRESS` | `UPDATE_IN_PROGRESS` | `DELETE_IN_PROGRESS` | `COMPLETED`| `FAILED`. * */ - private final String deploymentStatus; + private String deploymentStatus; /** * @return The description of the framework. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of a parameter, for example, BackupPlanFrequency. * */ - private final String name; + private String name; /** * @return A framework consists of one or more controls. Each control governs a resource, such as backup plans, backup selections, backup vaults, or recovery points. You can also turn AWS Config recording on or off for each resource. The statuses are: `ACTIVE`, `PARTIALLY_ACTIVE`, `INACTIVE`, `UNAVAILABLE`. For more information refer to the [AWS documentation for Framework Status](https://docs.aws.amazon.com/aws-backup/latest/devguide/API_DescribeFramework.html#Backup-DescribeFramework-response-FrameworkStatus) * */ - private final String status; + private String status; /** * @return The tag key-value pair applied to those AWS resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. * */ - private final Map tags; - - @CustomType.Constructor - private GetFrameworkResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("controls") List controls, - @CustomType.Parameter("creationTime") String creationTime, - @CustomType.Parameter("deploymentStatus") String deploymentStatus, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.controls = controls; - this.creationTime = creationTime; - this.deploymentStatus = deploymentStatus; - this.description = description; - this.id = id; - this.name = name; - this.status = status; - this.tags = tags; - } + private Map tags; + private GetFrameworkResult() {} /** * @return The ARN of the backup framework. * @@ -151,7 +130,7 @@ public static Builder builder() { public static Builder builder(GetFrameworkResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List controls; @@ -162,11 +141,7 @@ public static final class Builder { private String name; private String status; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFrameworkResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -180,10 +155,12 @@ public Builder(GetFrameworkResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder controls(List controls) { this.controls = Objects.requireNonNull(controls); return this; @@ -191,35 +168,53 @@ public Builder controls(List controls) { public Builder controls(GetFrameworkControl... controls) { return controls(List.of(controls)); } + @CustomType.Setter public Builder creationTime(String creationTime) { this.creationTime = Objects.requireNonNull(creationTime); return this; } + @CustomType.Setter public Builder deploymentStatus(String deploymentStatus) { this.deploymentStatus = Objects.requireNonNull(deploymentStatus); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetFrameworkResult build() { - return new GetFrameworkResult(arn, controls, creationTime, deploymentStatus, description, id, name, status, tags); + } + public GetFrameworkResult build() { + final var o = new GetFrameworkResult(); + o.arn = arn; + o.controls = controls; + o.creationTime = creationTime; + o.deploymentStatus = deploymentStatus; + o.description = description; + o.id = id; + o.name = name; + o.status = status; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetPlanResult.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetPlanResult.java index 8250cc942a9..550875ffcb8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetPlanResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetPlanResult.java @@ -14,45 +14,30 @@ public final class GetPlanResult { * @return The ARN of the backup plan. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The display name of a backup plan. * */ - private final String name; - private final String planId; + private String name; + private String planId; /** * @return Metadata that you can assign to help organize the plans you create. * */ - private final Map tags; + private Map tags; /** * @return Unique, randomly generated, Unicode, UTF-8 encoded string that serves as the version ID of the backup plan. * */ - private final String version; - - @CustomType.Constructor - private GetPlanResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("planId") String planId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("version") String version) { - this.arn = arn; - this.id = id; - this.name = name; - this.planId = planId; - this.tags = tags; - this.version = version; - } + private String version; + private GetPlanResult() {} /** * @return The ARN of the backup plan. * @@ -99,7 +84,7 @@ public static Builder builder() { public static Builder builder(GetPlanResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; @@ -107,11 +92,7 @@ public static final class Builder { private String planId; private Map tags; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPlanResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -122,31 +103,45 @@ public Builder(GetPlanResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder planId(String planId) { this.planId = Objects.requireNonNull(planId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public GetPlanResult build() { - return new GetPlanResult(arn, id, name, planId, tags, version); + } + public GetPlanResult build() { + final var o = new GetPlanResult(); + o.arn = arn; + o.id = id; + o.name = name; + o.planId = planId; + o.tags = tags; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetReportPlanReportDeliveryChannel.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetReportPlanReportDeliveryChannel.java index 1f2a62449fa..8a2740678ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetReportPlanReportDeliveryChannel.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetReportPlanReportDeliveryChannel.java @@ -14,28 +14,19 @@ public final class GetReportPlanReportDeliveryChannel { * @return A list of the format of your reports: CSV, JSON, or both. * */ - private final List formats; + private List formats; /** * @return The unique name of the S3 bucket that receives your reports. * */ - private final String s3BucketName; + private String s3BucketName; /** * @return The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the following path: s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. * */ - private final String s3KeyPrefix; - - @CustomType.Constructor - private GetReportPlanReportDeliveryChannel( - @CustomType.Parameter("formats") List formats, - @CustomType.Parameter("s3BucketName") String s3BucketName, - @CustomType.Parameter("s3KeyPrefix") String s3KeyPrefix) { - this.formats = formats; - this.s3BucketName = s3BucketName; - this.s3KeyPrefix = s3KeyPrefix; - } + private String s3KeyPrefix; + private GetReportPlanReportDeliveryChannel() {} /** * @return A list of the format of your reports: CSV, JSON, or both. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetReportPlanReportDeliveryChannel defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List formats; private String s3BucketName; private String s3KeyPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetReportPlanReportDeliveryChannel defaults) { Objects.requireNonNull(defaults); this.formats = defaults.formats; @@ -82,6 +69,7 @@ public Builder(GetReportPlanReportDeliveryChannel defaults) { this.s3KeyPrefix = defaults.s3KeyPrefix; } + @CustomType.Setter public Builder formats(List formats) { this.formats = Objects.requireNonNull(formats); return this; @@ -89,15 +77,22 @@ public Builder formats(List formats) { public Builder formats(String... formats) { return formats(List.of(formats)); } + @CustomType.Setter public Builder s3BucketName(String s3BucketName) { this.s3BucketName = Objects.requireNonNull(s3BucketName); return this; } + @CustomType.Setter public Builder s3KeyPrefix(String s3KeyPrefix) { this.s3KeyPrefix = Objects.requireNonNull(s3KeyPrefix); return this; - } public GetReportPlanReportDeliveryChannel build() { - return new GetReportPlanReportDeliveryChannel(formats, s3BucketName, s3KeyPrefix); + } + public GetReportPlanReportDeliveryChannel build() { + final var o = new GetReportPlanReportDeliveryChannel(); + o.formats = formats; + o.s3BucketName = s3BucketName; + o.s3KeyPrefix = s3KeyPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetReportPlanReportSetting.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetReportPlanReportSetting.java index ee494cbcfa8..21da7b6bb58 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetReportPlanReportSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetReportPlanReportSetting.java @@ -15,28 +15,19 @@ public final class GetReportPlanReportSetting { * @return Specifies the Amazon Resource Names (ARNs) of the frameworks a report covers. * */ - private final List frameworkArns; + private List frameworkArns; /** * @return Specifies the number of frameworks a report covers. * */ - private final Integer numberOfFrameworks; + private Integer numberOfFrameworks; /** * @return Identifies the report template for the report. Reports are built using a report template. * */ - private final String reportTemplate; - - @CustomType.Constructor - private GetReportPlanReportSetting( - @CustomType.Parameter("frameworkArns") List frameworkArns, - @CustomType.Parameter("numberOfFrameworks") Integer numberOfFrameworks, - @CustomType.Parameter("reportTemplate") String reportTemplate) { - this.frameworkArns = frameworkArns; - this.numberOfFrameworks = numberOfFrameworks; - this.reportTemplate = reportTemplate; - } + private String reportTemplate; + private GetReportPlanReportSetting() {} /** * @return Specifies the Amazon Resource Names (ARNs) of the frameworks a report covers. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetReportPlanReportSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List frameworkArns; private Integer numberOfFrameworks; private String reportTemplate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetReportPlanReportSetting defaults) { Objects.requireNonNull(defaults); this.frameworkArns = defaults.frameworkArns; @@ -83,6 +70,7 @@ public Builder(GetReportPlanReportSetting defaults) { this.reportTemplate = defaults.reportTemplate; } + @CustomType.Setter public Builder frameworkArns(List frameworkArns) { this.frameworkArns = Objects.requireNonNull(frameworkArns); return this; @@ -90,15 +78,22 @@ public Builder frameworkArns(List frameworkArns) { public Builder frameworkArns(String... frameworkArns) { return frameworkArns(List.of(frameworkArns)); } + @CustomType.Setter public Builder numberOfFrameworks(Integer numberOfFrameworks) { this.numberOfFrameworks = Objects.requireNonNull(numberOfFrameworks); return this; } + @CustomType.Setter public Builder reportTemplate(String reportTemplate) { this.reportTemplate = Objects.requireNonNull(reportTemplate); return this; - } public GetReportPlanReportSetting build() { - return new GetReportPlanReportSetting(frameworkArns, numberOfFrameworks, reportTemplate); + } + public GetReportPlanReportSetting build() { + final var o = new GetReportPlanReportSetting(); + o.frameworkArns = frameworkArns; + o.numberOfFrameworks = numberOfFrameworks; + o.reportTemplate = reportTemplate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetReportPlanResult.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetReportPlanResult.java index 47e9e3824e8..a27bf498c61 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetReportPlanResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetReportPlanResult.java @@ -17,66 +17,45 @@ public final class GetReportPlanResult { * @return The ARN of the backup report plan. * */ - private final String arn; + private String arn; /** * @return The date and time that a report plan is created, in Unix format and Coordinated Universal Time (UTC). * */ - private final String creationTime; + private String creationTime; /** * @return The deployment status of a report plan. The statuses are: `CREATE_IN_PROGRESS` | `UPDATE_IN_PROGRESS` | `DELETE_IN_PROGRESS` | `COMPLETED`. * */ - private final String deploymentStatus; + private String deploymentStatus; /** * @return The description of the report plan. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return An object that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports. Detailed below. * */ - private final List reportDeliveryChannels; + private List reportDeliveryChannels; /** * @return An object that identifies the report template for the report. Reports are built using a report template. Detailed below. * */ - private final List reportSettings; + private List reportSettings; /** * @return Metadata that you can assign to help organize the report plans you create. * */ - private final Map tags; - - @CustomType.Constructor - private GetReportPlanResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("creationTime") String creationTime, - @CustomType.Parameter("deploymentStatus") String deploymentStatus, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("reportDeliveryChannels") List reportDeliveryChannels, - @CustomType.Parameter("reportSettings") List reportSettings, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.creationTime = creationTime; - this.deploymentStatus = deploymentStatus; - this.description = description; - this.id = id; - this.name = name; - this.reportDeliveryChannels = reportDeliveryChannels; - this.reportSettings = reportSettings; - this.tags = tags; - } + private Map tags; + private GetReportPlanResult() {} /** * @return The ARN of the backup report plan. * @@ -144,7 +123,7 @@ public static Builder builder() { public static Builder builder(GetReportPlanResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String creationTime; @@ -155,11 +134,7 @@ public static final class Builder { private List reportDeliveryChannels; private List reportSettings; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetReportPlanResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -173,30 +148,37 @@ public Builder(GetReportPlanResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder creationTime(String creationTime) { this.creationTime = Objects.requireNonNull(creationTime); return this; } + @CustomType.Setter public Builder deploymentStatus(String deploymentStatus) { this.deploymentStatus = Objects.requireNonNull(deploymentStatus); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder reportDeliveryChannels(List reportDeliveryChannels) { this.reportDeliveryChannels = Objects.requireNonNull(reportDeliveryChannels); return this; @@ -204,6 +186,7 @@ public Builder reportDeliveryChannels(List r public Builder reportDeliveryChannels(GetReportPlanReportDeliveryChannel... reportDeliveryChannels) { return reportDeliveryChannels(List.of(reportDeliveryChannels)); } + @CustomType.Setter public Builder reportSettings(List reportSettings) { this.reportSettings = Objects.requireNonNull(reportSettings); return this; @@ -211,11 +194,23 @@ public Builder reportSettings(List reportSettings) { public Builder reportSettings(GetReportPlanReportSetting... reportSettings) { return reportSettings(List.of(reportSettings)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetReportPlanResult build() { - return new GetReportPlanResult(arn, creationTime, deploymentStatus, description, id, name, reportDeliveryChannels, reportSettings, tags); + } + public GetReportPlanResult build() { + final var o = new GetReportPlanResult(); + o.arn = arn; + o.creationTime = creationTime; + o.deploymentStatus = deploymentStatus; + o.description = description; + o.id = id; + o.name = name; + o.reportDeliveryChannels = reportDeliveryChannels; + o.reportSettings = reportSettings; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetSelectionResult.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetSelectionResult.java index ca53a7264cf..c442fe85d75 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetSelectionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetSelectionResult.java @@ -14,41 +14,26 @@ public final class GetSelectionResult { * @return The ARN of the IAM role that AWS Backup uses to authenticate when restoring and backing up the target resource. See the [AWS Backup Developer Guide](https://docs.aws.amazon.com/aws-backup/latest/devguide/access-control.html#managed-policies) for additional information about using AWS managed policies or creating custom policies attached to the IAM role. * */ - private final String iamRoleArn; + private String iamRoleArn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The display name of a resource selection document. * */ - private final String name; - private final String planId; + private String name; + private String planId; /** * @return An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to assign to a backup plan.. * */ - private final List resources; - private final String selectionId; - - @CustomType.Constructor - private GetSelectionResult( - @CustomType.Parameter("iamRoleArn") String iamRoleArn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("planId") String planId, - @CustomType.Parameter("resources") List resources, - @CustomType.Parameter("selectionId") String selectionId) { - this.iamRoleArn = iamRoleArn; - this.id = id; - this.name = name; - this.planId = planId; - this.resources = resources; - this.selectionId = selectionId; - } + private List resources; + private String selectionId; + private GetSelectionResult() {} /** * @return The ARN of the IAM role that AWS Backup uses to authenticate when restoring and backing up the target resource. See the [AWS Backup Developer Guide](https://docs.aws.amazon.com/aws-backup/latest/devguide/access-control.html#managed-policies) for additional information about using AWS managed policies or creating custom policies attached to the IAM role. * @@ -91,7 +76,7 @@ public static Builder builder() { public static Builder builder(GetSelectionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String iamRoleArn; private String id; @@ -99,11 +84,7 @@ public static final class Builder { private String planId; private List resources; private String selectionId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSelectionResult defaults) { Objects.requireNonNull(defaults); this.iamRoleArn = defaults.iamRoleArn; @@ -114,22 +95,27 @@ public Builder(GetSelectionResult defaults) { this.selectionId = defaults.selectionId; } + @CustomType.Setter public Builder iamRoleArn(String iamRoleArn) { this.iamRoleArn = Objects.requireNonNull(iamRoleArn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder planId(String planId) { this.planId = Objects.requireNonNull(planId); return this; } + @CustomType.Setter public Builder resources(List resources) { this.resources = Objects.requireNonNull(resources); return this; @@ -137,11 +123,20 @@ public Builder resources(List resources) { public Builder resources(String... resources) { return resources(List.of(resources)); } + @CustomType.Setter public Builder selectionId(String selectionId) { this.selectionId = Objects.requireNonNull(selectionId); return this; - } public GetSelectionResult build() { - return new GetSelectionResult(iamRoleArn, id, name, planId, resources, selectionId); + } + public GetSelectionResult build() { + final var o = new GetSelectionResult(); + o.iamRoleArn = iamRoleArn; + o.id = id; + o.name = name; + o.planId = planId; + o.resources = resources; + o.selectionId = selectionId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetVaultResult.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetVaultResult.java index be408008bb8..4f34e58baed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetVaultResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/GetVaultResult.java @@ -15,45 +15,30 @@ public final class GetVaultResult { * @return The ARN of the vault. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The server-side encryption key that is used to protect your backups. * */ - private final String kmsKeyArn; - private final String name; + private String kmsKeyArn; + private String name; /** * @return The number of recovery points that are stored in a backup vault. * */ - private final Integer recoveryPoints; + private Integer recoveryPoints; /** * @return Metadata that you can assign to help organize the resources that you create. * */ - private final Map tags; - - @CustomType.Constructor - private GetVaultResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKeyArn") String kmsKeyArn, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("recoveryPoints") Integer recoveryPoints, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.id = id; - this.kmsKeyArn = kmsKeyArn; - this.name = name; - this.recoveryPoints = recoveryPoints; - this.tags = tags; - } + private Map tags; + private GetVaultResult() {} /** * @return The ARN of the vault. * @@ -100,7 +85,7 @@ public static Builder builder() { public static Builder builder(GetVaultResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; @@ -108,11 +93,7 @@ public static final class Builder { private String name; private Integer recoveryPoints; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVaultResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -123,31 +104,45 @@ public Builder(GetVaultResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = Objects.requireNonNull(kmsKeyArn); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder recoveryPoints(Integer recoveryPoints) { this.recoveryPoints = Objects.requireNonNull(recoveryPoints); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetVaultResult build() { - return new GetVaultResult(arn, id, kmsKeyArn, name, recoveryPoints, tags); + } + public GetVaultResult build() { + final var o = new GetVaultResult(); + o.arn = arn; + o.id = id; + o.kmsKeyArn = kmsKeyArn; + o.name = name; + o.recoveryPoints = recoveryPoints; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanAdvancedBackupSetting.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanAdvancedBackupSetting.java index f5fe7d3bb33..3f89df206a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanAdvancedBackupSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanAdvancedBackupSetting.java @@ -14,21 +14,14 @@ public final class PlanAdvancedBackupSetting { * @return Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to `{ WindowsVSS = "enabled" }` to enable Windows VSS backup option and create a VSS Windows backup. * */ - private final Map backupOptions; + private Map backupOptions; /** * @return The type of AWS resource to be backed up. For VSS Windows backups, the only supported resource type is Amazon EC2. Valid values: `EC2`. * */ - private final String resourceType; - - @CustomType.Constructor - private PlanAdvancedBackupSetting( - @CustomType.Parameter("backupOptions") Map backupOptions, - @CustomType.Parameter("resourceType") String resourceType) { - this.backupOptions = backupOptions; - this.resourceType = resourceType; - } + private String resourceType; + private PlanAdvancedBackupSetting() {} /** * @return Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Set to `{ WindowsVSS = "enabled" }` to enable Windows VSS backup option and create a VSS Windows backup. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(PlanAdvancedBackupSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map backupOptions; private String resourceType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PlanAdvancedBackupSetting defaults) { Objects.requireNonNull(defaults); this.backupOptions = defaults.backupOptions; this.resourceType = defaults.resourceType; } + @CustomType.Setter public Builder backupOptions(Map backupOptions) { this.backupOptions = Objects.requireNonNull(backupOptions); return this; } + @CustomType.Setter public Builder resourceType(String resourceType) { this.resourceType = Objects.requireNonNull(resourceType); return this; - } public PlanAdvancedBackupSetting build() { - return new PlanAdvancedBackupSetting(backupOptions, resourceType); + } + public PlanAdvancedBackupSetting build() { + final var o = new PlanAdvancedBackupSetting(); + o.backupOptions = backupOptions; + o.resourceType = resourceType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRule.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRule.java index 3c8b627b6c4..fc320de8b92 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRule.java @@ -21,70 +21,49 @@ public final class PlanRule { * @return The amount of time in minutes AWS Backup attempts a backup before canceling the job and returning an error. * */ - private final @Nullable Integer completionWindow; + private @Nullable Integer completionWindow; /** * @return Configuration block(s) with copy operation settings. Detailed below. * */ - private final @Nullable List copyActions; + private @Nullable List copyActions; /** * @return Enable continuous backups for supported resources. * */ - private final @Nullable Boolean enableContinuousBackup; + private @Nullable Boolean enableContinuousBackup; /** * @return The lifecycle defines when a protected resource is copied over to a backup vault and when it expires. Fields documented above. * */ - private final @Nullable PlanRuleLifecycle lifecycle; + private @Nullable PlanRuleLifecycle lifecycle; /** * @return Metadata that you can assign to help organize the resources that you create. * */ - private final @Nullable Map recoveryPointTags; + private @Nullable Map recoveryPointTags; /** * @return An display name for a backup rule. * */ - private final String ruleName; + private String ruleName; /** * @return A CRON expression specifying when AWS Backup initiates a backup job. * */ - private final @Nullable String schedule; + private @Nullable String schedule; /** * @return The amount of time in minutes before beginning a backup. * */ - private final @Nullable Integer startWindow; + private @Nullable Integer startWindow; /** * @return The name of a logical container where backups are stored. * */ - private final String targetVaultName; - - @CustomType.Constructor - private PlanRule( - @CustomType.Parameter("completionWindow") @Nullable Integer completionWindow, - @CustomType.Parameter("copyActions") @Nullable List copyActions, - @CustomType.Parameter("enableContinuousBackup") @Nullable Boolean enableContinuousBackup, - @CustomType.Parameter("lifecycle") @Nullable PlanRuleLifecycle lifecycle, - @CustomType.Parameter("recoveryPointTags") @Nullable Map recoveryPointTags, - @CustomType.Parameter("ruleName") String ruleName, - @CustomType.Parameter("schedule") @Nullable String schedule, - @CustomType.Parameter("startWindow") @Nullable Integer startWindow, - @CustomType.Parameter("targetVaultName") String targetVaultName) { - this.completionWindow = completionWindow; - this.copyActions = copyActions; - this.enableContinuousBackup = enableContinuousBackup; - this.lifecycle = lifecycle; - this.recoveryPointTags = recoveryPointTags; - this.ruleName = ruleName; - this.schedule = schedule; - this.startWindow = startWindow; - this.targetVaultName = targetVaultName; - } + private String targetVaultName; + private PlanRule() {} /** * @return The amount of time in minutes AWS Backup attempts a backup before canceling the job and returning an error. * @@ -156,7 +135,7 @@ public static Builder builder() { public static Builder builder(PlanRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer completionWindow; private @Nullable List copyActions; @@ -167,11 +146,7 @@ public static final class Builder { private @Nullable String schedule; private @Nullable Integer startWindow; private String targetVaultName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PlanRule defaults) { Objects.requireNonNull(defaults); this.completionWindow = defaults.completionWindow; @@ -185,10 +160,12 @@ public Builder(PlanRule defaults) { this.targetVaultName = defaults.targetVaultName; } + @CustomType.Setter public Builder completionWindow(@Nullable Integer completionWindow) { this.completionWindow = completionWindow; return this; } + @CustomType.Setter public Builder copyActions(@Nullable List copyActions) { this.copyActions = copyActions; return this; @@ -196,35 +173,53 @@ public Builder copyActions(@Nullable List copyActions) { public Builder copyActions(PlanRuleCopyAction... copyActions) { return copyActions(List.of(copyActions)); } + @CustomType.Setter public Builder enableContinuousBackup(@Nullable Boolean enableContinuousBackup) { this.enableContinuousBackup = enableContinuousBackup; return this; } + @CustomType.Setter public Builder lifecycle(@Nullable PlanRuleLifecycle lifecycle) { this.lifecycle = lifecycle; return this; } + @CustomType.Setter public Builder recoveryPointTags(@Nullable Map recoveryPointTags) { this.recoveryPointTags = recoveryPointTags; return this; } + @CustomType.Setter public Builder ruleName(String ruleName) { this.ruleName = Objects.requireNonNull(ruleName); return this; } + @CustomType.Setter public Builder schedule(@Nullable String schedule) { this.schedule = schedule; return this; } + @CustomType.Setter public Builder startWindow(@Nullable Integer startWindow) { this.startWindow = startWindow; return this; } + @CustomType.Setter public Builder targetVaultName(String targetVaultName) { this.targetVaultName = Objects.requireNonNull(targetVaultName); return this; - } public PlanRule build() { - return new PlanRule(completionWindow, copyActions, enableContinuousBackup, lifecycle, recoveryPointTags, ruleName, schedule, startWindow, targetVaultName); + } + public PlanRule build() { + final var o = new PlanRule(); + o.completionWindow = completionWindow; + o.copyActions = copyActions; + o.enableContinuousBackup = enableContinuousBackup; + o.lifecycle = lifecycle; + o.recoveryPointTags = recoveryPointTags; + o.ruleName = ruleName; + o.schedule = schedule; + o.startWindow = startWindow; + o.targetVaultName = targetVaultName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRuleCopyAction.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRuleCopyAction.java index e4eec076f60..afe4e6c0550 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRuleCopyAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRuleCopyAction.java @@ -16,21 +16,14 @@ public final class PlanRuleCopyAction { * @return An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. * */ - private final String destinationVaultArn; + private String destinationVaultArn; /** * @return The lifecycle defines when a protected resource is copied over to a backup vault and when it expires. Fields documented above. * */ - private final @Nullable PlanRuleCopyActionLifecycle lifecycle; - - @CustomType.Constructor - private PlanRuleCopyAction( - @CustomType.Parameter("destinationVaultArn") String destinationVaultArn, - @CustomType.Parameter("lifecycle") @Nullable PlanRuleCopyActionLifecycle lifecycle) { - this.destinationVaultArn = destinationVaultArn; - this.lifecycle = lifecycle; - } + private @Nullable PlanRuleCopyActionLifecycle lifecycle; + private PlanRuleCopyAction() {} /** * @return An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(PlanRuleCopyAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destinationVaultArn; private @Nullable PlanRuleCopyActionLifecycle lifecycle; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PlanRuleCopyAction defaults) { Objects.requireNonNull(defaults); this.destinationVaultArn = defaults.destinationVaultArn; this.lifecycle = defaults.lifecycle; } + @CustomType.Setter public Builder destinationVaultArn(String destinationVaultArn) { this.destinationVaultArn = Objects.requireNonNull(destinationVaultArn); return this; } + @CustomType.Setter public Builder lifecycle(@Nullable PlanRuleCopyActionLifecycle lifecycle) { this.lifecycle = lifecycle; return this; - } public PlanRuleCopyAction build() { - return new PlanRuleCopyAction(destinationVaultArn, lifecycle); + } + public PlanRuleCopyAction build() { + final var o = new PlanRuleCopyAction(); + o.destinationVaultArn = destinationVaultArn; + o.lifecycle = lifecycle; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRuleCopyActionLifecycle.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRuleCopyActionLifecycle.java index 5550a10eebd..ff703b629ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRuleCopyActionLifecycle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRuleCopyActionLifecycle.java @@ -15,21 +15,14 @@ public final class PlanRuleCopyActionLifecycle { * @return Specifies the number of days after creation that a recovery point is moved to cold storage. * */ - private final @Nullable Integer coldStorageAfter; + private @Nullable Integer coldStorageAfter; /** * @return Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`. * */ - private final @Nullable Integer deleteAfter; - - @CustomType.Constructor - private PlanRuleCopyActionLifecycle( - @CustomType.Parameter("coldStorageAfter") @Nullable Integer coldStorageAfter, - @CustomType.Parameter("deleteAfter") @Nullable Integer deleteAfter) { - this.coldStorageAfter = coldStorageAfter; - this.deleteAfter = deleteAfter; - } + private @Nullable Integer deleteAfter; + private PlanRuleCopyActionLifecycle() {} /** * @return Specifies the number of days after creation that a recovery point is moved to cold storage. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(PlanRuleCopyActionLifecycle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer coldStorageAfter; private @Nullable Integer deleteAfter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PlanRuleCopyActionLifecycle defaults) { Objects.requireNonNull(defaults); this.coldStorageAfter = defaults.coldStorageAfter; this.deleteAfter = defaults.deleteAfter; } + @CustomType.Setter public Builder coldStorageAfter(@Nullable Integer coldStorageAfter) { this.coldStorageAfter = coldStorageAfter; return this; } + @CustomType.Setter public Builder deleteAfter(@Nullable Integer deleteAfter) { this.deleteAfter = deleteAfter; return this; - } public PlanRuleCopyActionLifecycle build() { - return new PlanRuleCopyActionLifecycle(coldStorageAfter, deleteAfter); + } + public PlanRuleCopyActionLifecycle build() { + final var o = new PlanRuleCopyActionLifecycle(); + o.coldStorageAfter = coldStorageAfter; + o.deleteAfter = deleteAfter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRuleLifecycle.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRuleLifecycle.java index d3a3cc93e7c..9d93024bbf6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRuleLifecycle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/PlanRuleLifecycle.java @@ -15,21 +15,14 @@ public final class PlanRuleLifecycle { * @return Specifies the number of days after creation that a recovery point is moved to cold storage. * */ - private final @Nullable Integer coldStorageAfter; + private @Nullable Integer coldStorageAfter; /** * @return Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`. * */ - private final @Nullable Integer deleteAfter; - - @CustomType.Constructor - private PlanRuleLifecycle( - @CustomType.Parameter("coldStorageAfter") @Nullable Integer coldStorageAfter, - @CustomType.Parameter("deleteAfter") @Nullable Integer deleteAfter) { - this.coldStorageAfter = coldStorageAfter; - this.deleteAfter = deleteAfter; - } + private @Nullable Integer deleteAfter; + private PlanRuleLifecycle() {} /** * @return Specifies the number of days after creation that a recovery point is moved to cold storage. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(PlanRuleLifecycle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer coldStorageAfter; private @Nullable Integer deleteAfter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PlanRuleLifecycle defaults) { Objects.requireNonNull(defaults); this.coldStorageAfter = defaults.coldStorageAfter; this.deleteAfter = defaults.deleteAfter; } + @CustomType.Setter public Builder coldStorageAfter(@Nullable Integer coldStorageAfter) { this.coldStorageAfter = coldStorageAfter; return this; } + @CustomType.Setter public Builder deleteAfter(@Nullable Integer deleteAfter) { this.deleteAfter = deleteAfter; return this; - } public PlanRuleLifecycle build() { - return new PlanRuleLifecycle(coldStorageAfter, deleteAfter); + } + public PlanRuleLifecycle build() { + final var o = new PlanRuleLifecycle(); + o.coldStorageAfter = coldStorageAfter; + o.deleteAfter = deleteAfter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/ReportPlanReportDeliveryChannel.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/ReportPlanReportDeliveryChannel.java index 59e2b1eeb96..759d0319f2c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/ReportPlanReportDeliveryChannel.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/ReportPlanReportDeliveryChannel.java @@ -16,28 +16,19 @@ public final class ReportPlanReportDeliveryChannel { * @return A list of the format of your reports: CSV, JSON, or both. If not specified, the default format is CSV. * */ - private final @Nullable List formats; + private @Nullable List formats; /** * @return The unique name of the S3 bucket that receives your reports. * */ - private final String s3BucketName; + private String s3BucketName; /** * @return The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the following path: s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. If not specified, there is no prefix. * */ - private final @Nullable String s3KeyPrefix; - - @CustomType.Constructor - private ReportPlanReportDeliveryChannel( - @CustomType.Parameter("formats") @Nullable List formats, - @CustomType.Parameter("s3BucketName") String s3BucketName, - @CustomType.Parameter("s3KeyPrefix") @Nullable String s3KeyPrefix) { - this.formats = formats; - this.s3BucketName = s3BucketName; - this.s3KeyPrefix = s3KeyPrefix; - } + private @Nullable String s3KeyPrefix; + private ReportPlanReportDeliveryChannel() {} /** * @return A list of the format of your reports: CSV, JSON, or both. If not specified, the default format is CSV. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ReportPlanReportDeliveryChannel defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List formats; private String s3BucketName; private @Nullable String s3KeyPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReportPlanReportDeliveryChannel defaults) { Objects.requireNonNull(defaults); this.formats = defaults.formats; @@ -84,6 +71,7 @@ public Builder(ReportPlanReportDeliveryChannel defaults) { this.s3KeyPrefix = defaults.s3KeyPrefix; } + @CustomType.Setter public Builder formats(@Nullable List formats) { this.formats = formats; return this; @@ -91,15 +79,22 @@ public Builder formats(@Nullable List formats) { public Builder formats(String... formats) { return formats(List.of(formats)); } + @CustomType.Setter public Builder s3BucketName(String s3BucketName) { this.s3BucketName = Objects.requireNonNull(s3BucketName); return this; } + @CustomType.Setter public Builder s3KeyPrefix(@Nullable String s3KeyPrefix) { this.s3KeyPrefix = s3KeyPrefix; return this; - } public ReportPlanReportDeliveryChannel build() { - return new ReportPlanReportDeliveryChannel(formats, s3BucketName, s3KeyPrefix); + } + public ReportPlanReportDeliveryChannel build() { + final var o = new ReportPlanReportDeliveryChannel(); + o.formats = formats; + o.s3BucketName = s3BucketName; + o.s3KeyPrefix = s3KeyPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/ReportPlanReportSetting.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/ReportPlanReportSetting.java index 1d17311646e..de83ea84d27 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/ReportPlanReportSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/ReportPlanReportSetting.java @@ -17,28 +17,19 @@ public final class ReportPlanReportSetting { * @return Specifies the Amazon Resource Names (ARNs) of the frameworks a report covers. * */ - private final @Nullable List frameworkArns; + private @Nullable List frameworkArns; /** * @return Specifies the number of frameworks a report covers. * */ - private final @Nullable Integer numberOfFrameworks; + private @Nullable Integer numberOfFrameworks; /** * @return Identifies the report template for the report. Reports are built using a report template. The report templates are: `RESOURCE_COMPLIANCE_REPORT` | `CONTROL_COMPLIANCE_REPORT` | `BACKUP_JOB_REPORT` | `COPY_JOB_REPORT` | `RESTORE_JOB_REPORT`. * */ - private final String reportTemplate; - - @CustomType.Constructor - private ReportPlanReportSetting( - @CustomType.Parameter("frameworkArns") @Nullable List frameworkArns, - @CustomType.Parameter("numberOfFrameworks") @Nullable Integer numberOfFrameworks, - @CustomType.Parameter("reportTemplate") String reportTemplate) { - this.frameworkArns = frameworkArns; - this.numberOfFrameworks = numberOfFrameworks; - this.reportTemplate = reportTemplate; - } + private String reportTemplate; + private ReportPlanReportSetting() {} /** * @return Specifies the Amazon Resource Names (ARNs) of the frameworks a report covers. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(ReportPlanReportSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List frameworkArns; private @Nullable Integer numberOfFrameworks; private String reportTemplate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReportPlanReportSetting defaults) { Objects.requireNonNull(defaults); this.frameworkArns = defaults.frameworkArns; @@ -85,6 +72,7 @@ public Builder(ReportPlanReportSetting defaults) { this.reportTemplate = defaults.reportTemplate; } + @CustomType.Setter public Builder frameworkArns(@Nullable List frameworkArns) { this.frameworkArns = frameworkArns; return this; @@ -92,15 +80,22 @@ public Builder frameworkArns(@Nullable List frameworkArns) { public Builder frameworkArns(String... frameworkArns) { return frameworkArns(List.of(frameworkArns)); } + @CustomType.Setter public Builder numberOfFrameworks(@Nullable Integer numberOfFrameworks) { this.numberOfFrameworks = numberOfFrameworks; return this; } + @CustomType.Setter public Builder reportTemplate(String reportTemplate) { this.reportTemplate = Objects.requireNonNull(reportTemplate); return this; - } public ReportPlanReportSetting build() { - return new ReportPlanReportSetting(frameworkArns, numberOfFrameworks, reportTemplate); + } + public ReportPlanReportSetting build() { + final var o = new ReportPlanReportSetting(); + o.frameworkArns = frameworkArns; + o.numberOfFrameworks = numberOfFrameworks; + o.reportTemplate = reportTemplate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionCondition.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionCondition.java index fc201988134..5e8f6157acc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionCondition.java @@ -14,23 +14,12 @@ @CustomType public final class SelectionCondition { - private final @Nullable List stringEquals; - private final @Nullable List stringLikes; - private final @Nullable List stringNotEquals; - private final @Nullable List stringNotLikes; - - @CustomType.Constructor - private SelectionCondition( - @CustomType.Parameter("stringEquals") @Nullable List stringEquals, - @CustomType.Parameter("stringLikes") @Nullable List stringLikes, - @CustomType.Parameter("stringNotEquals") @Nullable List stringNotEquals, - @CustomType.Parameter("stringNotLikes") @Nullable List stringNotLikes) { - this.stringEquals = stringEquals; - this.stringLikes = stringLikes; - this.stringNotEquals = stringNotEquals; - this.stringNotLikes = stringNotLikes; - } + private @Nullable List stringEquals; + private @Nullable List stringLikes; + private @Nullable List stringNotEquals; + private @Nullable List stringNotLikes; + private SelectionCondition() {} public List stringEquals() { return this.stringEquals == null ? List.of() : this.stringEquals; } @@ -51,17 +40,13 @@ public static Builder builder() { public static Builder builder(SelectionCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List stringEquals; private @Nullable List stringLikes; private @Nullable List stringNotEquals; private @Nullable List stringNotLikes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SelectionCondition defaults) { Objects.requireNonNull(defaults); this.stringEquals = defaults.stringEquals; @@ -70,6 +55,7 @@ public Builder(SelectionCondition defaults) { this.stringNotLikes = defaults.stringNotLikes; } + @CustomType.Setter public Builder stringEquals(@Nullable List stringEquals) { this.stringEquals = stringEquals; return this; @@ -77,6 +63,7 @@ public Builder stringEquals(@Nullable List string public Builder stringEquals(SelectionConditionStringEqual... stringEquals) { return stringEquals(List.of(stringEquals)); } + @CustomType.Setter public Builder stringLikes(@Nullable List stringLikes) { this.stringLikes = stringLikes; return this; @@ -84,6 +71,7 @@ public Builder stringLikes(@Nullable List stringLi public Builder stringLikes(SelectionConditionStringLike... stringLikes) { return stringLikes(List.of(stringLikes)); } + @CustomType.Setter public Builder stringNotEquals(@Nullable List stringNotEquals) { this.stringNotEquals = stringNotEquals; return this; @@ -91,14 +79,21 @@ public Builder stringNotEquals(@Nullable List public Builder stringNotEquals(SelectionConditionStringNotEqual... stringNotEquals) { return stringNotEquals(List.of(stringNotEquals)); } + @CustomType.Setter public Builder stringNotLikes(@Nullable List stringNotLikes) { this.stringNotLikes = stringNotLikes; return this; } public Builder stringNotLikes(SelectionConditionStringNotLike... stringNotLikes) { return stringNotLikes(List.of(stringNotLikes)); - } public SelectionCondition build() { - return new SelectionCondition(stringEquals, stringLikes, stringNotEquals, stringNotLikes); + } + public SelectionCondition build() { + final var o = new SelectionCondition(); + o.stringEquals = stringEquals; + o.stringLikes = stringLikes; + o.stringNotEquals = stringNotEquals; + o.stringNotLikes = stringNotLikes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringEqual.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringEqual.java index 7f5a75edff6..2f480b710a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringEqual.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringEqual.java @@ -13,21 +13,14 @@ public final class SelectionConditionStringEqual { * @return The key in a key-value pair. * */ - private final String key; + private String key; /** * @return The value in a key-value pair. * */ - private final String value; - - @CustomType.Constructor - private SelectionConditionStringEqual( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private SelectionConditionStringEqual() {} /** * @return The key in a key-value pair. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(SelectionConditionStringEqual defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SelectionConditionStringEqual defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public SelectionConditionStringEqual build() { - return new SelectionConditionStringEqual(key, value); + } + public SelectionConditionStringEqual build() { + final var o = new SelectionConditionStringEqual(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringLike.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringLike.java index 9332cb2f65c..5e9c0a3ccfb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringLike.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringLike.java @@ -13,21 +13,14 @@ public final class SelectionConditionStringLike { * @return The key in a key-value pair. * */ - private final String key; + private String key; /** * @return The value in a key-value pair. * */ - private final String value; - - @CustomType.Constructor - private SelectionConditionStringLike( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private SelectionConditionStringLike() {} /** * @return The key in a key-value pair. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(SelectionConditionStringLike defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SelectionConditionStringLike defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public SelectionConditionStringLike build() { - return new SelectionConditionStringLike(key, value); + } + public SelectionConditionStringLike build() { + final var o = new SelectionConditionStringLike(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringNotEqual.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringNotEqual.java index da5897a50ee..8412603d464 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringNotEqual.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringNotEqual.java @@ -13,21 +13,14 @@ public final class SelectionConditionStringNotEqual { * @return The key in a key-value pair. * */ - private final String key; + private String key; /** * @return The value in a key-value pair. * */ - private final String value; - - @CustomType.Constructor - private SelectionConditionStringNotEqual( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private SelectionConditionStringNotEqual() {} /** * @return The key in a key-value pair. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(SelectionConditionStringNotEqual defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SelectionConditionStringNotEqual defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public SelectionConditionStringNotEqual build() { - return new SelectionConditionStringNotEqual(key, value); + } + public SelectionConditionStringNotEqual build() { + final var o = new SelectionConditionStringNotEqual(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringNotLike.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringNotLike.java index 91e71fd33e3..7260e9941dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringNotLike.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionConditionStringNotLike.java @@ -13,21 +13,14 @@ public final class SelectionConditionStringNotLike { * @return The key in a key-value pair. * */ - private final String key; + private String key; /** * @return The value in a key-value pair. * */ - private final String value; - - @CustomType.Constructor - private SelectionConditionStringNotLike( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private SelectionConditionStringNotLike() {} /** * @return The key in a key-value pair. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(SelectionConditionStringNotLike defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SelectionConditionStringNotLike defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public SelectionConditionStringNotLike build() { - return new SelectionConditionStringNotLike(key, value); + } + public SelectionConditionStringNotLike build() { + final var o = new SelectionConditionStringNotLike(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionSelectionTag.java b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionSelectionTag.java index 2f67d79643e..3346106efc6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionSelectionTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/backup/outputs/SelectionSelectionTag.java @@ -13,28 +13,19 @@ public final class SelectionSelectionTag { * @return The key in a key-value pair. * */ - private final String key; + private String key; /** * @return An operation, such as `StringEquals`, that is applied to a key-value pair used to filter resources in a selection. * */ - private final String type; + private String type; /** * @return The value in a key-value pair. * */ - private final String value; - - @CustomType.Constructor - private SelectionSelectionTag( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") String value) { - this.key = key; - this.type = type; - this.value = value; - } + private String value; + private SelectionSelectionTag() {} /** * @return The key in a key-value pair. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(SelectionSelectionTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String type; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SelectionSelectionTag defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -81,19 +68,27 @@ public Builder(SelectionSelectionTag defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public SelectionSelectionTag build() { - return new SelectionSelectionTag(key, type, value); + } + public SelectionSelectionTag build() { + final var o = new SelectionSelectionTag(); + o.key = key; + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/ComputeEnvironmentComputeResources.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/ComputeEnvironmentComputeResources.java index b8fb0698ce9..9b09165ee6f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/ComputeEnvironmentComputeResources.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/ComputeEnvironmentComputeResources.java @@ -20,119 +20,84 @@ public final class ComputeEnvironmentComputeResources { * @return The allocation strategy to use for the compute resource in case not enough instances of the best fitting instance type can be allocated. Valid items are `BEST_FIT_PROGRESSIVE`, `SPOT_CAPACITY_OPTIMIZED` or `BEST_FIT`. Defaults to `BEST_FIT`. See [AWS docs](https://docs.aws.amazon.com/batch/latest/userguide/allocation-strategies.html) for details. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. * */ - private final @Nullable String allocationStrategy; + private @Nullable String allocationStrategy; /** * @return Integer of maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched. For example, if your bid percentage is 20% (`20`), then the Spot price must be below 20% of the current On-Demand price for that EC2 instance. If you leave this field empty, the default value is 100% of the On-Demand price. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. * */ - private final @Nullable Integer bidPercentage; + private @Nullable Integer bidPercentage; /** * @return The desired number of EC2 vCPUS in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. * */ - private final @Nullable Integer desiredVcpus; + private @Nullable Integer desiredVcpus; /** * @return Provides information used to select Amazon Machine Images (AMIs) for EC2 instances in the compute environment. If Ec2Configuration isn't specified, the default is ECS_AL2. This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified. * */ - private final @Nullable ComputeEnvironmentComputeResourcesEc2Configuration ec2Configuration; + private @Nullable ComputeEnvironmentComputeResourcesEc2Configuration ec2Configuration; /** * @return The EC2 key pair that is used for instances launched in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. * */ - private final @Nullable String ec2KeyPair; + private @Nullable String ec2KeyPair; /** * @return The Amazon Machine Image (AMI) ID used for instances launched in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. (Deprecated, use `ec2_configuration` `image_id_override` instead) * */ - private final @Nullable String imageId; + private @Nullable String imageId; /** * @return The Amazon ECS instance role applied to Amazon EC2 instances in a compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. * */ - private final @Nullable String instanceRole; + private @Nullable String instanceRole; /** * @return A list of instance types that may be launched. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. * */ - private final @Nullable List instanceTypes; + private @Nullable List instanceTypes; /** * @return The launch template to use for your compute resources. See details below. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. * */ - private final @Nullable ComputeEnvironmentComputeResourcesLaunchTemplate launchTemplate; + private @Nullable ComputeEnvironmentComputeResourcesLaunchTemplate launchTemplate; /** * @return The maximum number of EC2 vCPUs that an environment can reach. * */ - private final Integer maxVcpus; + private Integer maxVcpus; /** * @return The minimum number of EC2 vCPUs that an environment should maintain. For `EC2` or `SPOT` compute environments, if the parameter is not explicitly defined, a `0` default value will be set. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. * */ - private final @Nullable Integer minVcpus; + private @Nullable Integer minVcpus; /** * @return A list of EC2 security group that are associated with instances launched in the compute environment. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment. This parameter is required for SPOT compute environments. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. * */ - private final @Nullable String spotIamFleetRole; + private @Nullable String spotIamFleetRole; /** * @return A list of VPC subnets into which the compute resources are launched. * */ - private final List subnets; + private List subnets; /** * @return Key-value pair tags to be applied to resources that are launched in the compute environment. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return The type of compute environment. Valid items are `EC2`, `SPOT`, `FARGATE` or `FARGATE_SPOT`. * */ - private final String type; - - @CustomType.Constructor - private ComputeEnvironmentComputeResources( - @CustomType.Parameter("allocationStrategy") @Nullable String allocationStrategy, - @CustomType.Parameter("bidPercentage") @Nullable Integer bidPercentage, - @CustomType.Parameter("desiredVcpus") @Nullable Integer desiredVcpus, - @CustomType.Parameter("ec2Configuration") @Nullable ComputeEnvironmentComputeResourcesEc2Configuration ec2Configuration, - @CustomType.Parameter("ec2KeyPair") @Nullable String ec2KeyPair, - @CustomType.Parameter("imageId") @Nullable String imageId, - @CustomType.Parameter("instanceRole") @Nullable String instanceRole, - @CustomType.Parameter("instanceTypes") @Nullable List instanceTypes, - @CustomType.Parameter("launchTemplate") @Nullable ComputeEnvironmentComputeResourcesLaunchTemplate launchTemplate, - @CustomType.Parameter("maxVcpus") Integer maxVcpus, - @CustomType.Parameter("minVcpus") @Nullable Integer minVcpus, - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("spotIamFleetRole") @Nullable String spotIamFleetRole, - @CustomType.Parameter("subnets") List subnets, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("type") String type) { - this.allocationStrategy = allocationStrategy; - this.bidPercentage = bidPercentage; - this.desiredVcpus = desiredVcpus; - this.ec2Configuration = ec2Configuration; - this.ec2KeyPair = ec2KeyPair; - this.imageId = imageId; - this.instanceRole = instanceRole; - this.instanceTypes = instanceTypes; - this.launchTemplate = launchTemplate; - this.maxVcpus = maxVcpus; - this.minVcpus = minVcpus; - this.securityGroupIds = securityGroupIds; - this.spotIamFleetRole = spotIamFleetRole; - this.subnets = subnets; - this.tags = tags; - this.type = type; - } + private String type; + private ComputeEnvironmentComputeResources() {} /** * @return The allocation strategy to use for the compute resource in case not enough instances of the best fitting instance type can be allocated. Valid items are `BEST_FIT_PROGRESSIVE`, `SPOT_CAPACITY_OPTIMIZED` or `BEST_FIT`. Defaults to `BEST_FIT`. See [AWS docs](https://docs.aws.amazon.com/batch/latest/userguide/allocation-strategies.html) for details. This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified. * @@ -253,7 +218,7 @@ public static Builder builder() { public static Builder builder(ComputeEnvironmentComputeResources defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String allocationStrategy; private @Nullable Integer bidPercentage; @@ -271,11 +236,7 @@ public static final class Builder { private List subnets; private @Nullable Map tags; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ComputeEnvironmentComputeResources defaults) { Objects.requireNonNull(defaults); this.allocationStrategy = defaults.allocationStrategy; @@ -296,34 +257,42 @@ public Builder(ComputeEnvironmentComputeResources defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder allocationStrategy(@Nullable String allocationStrategy) { this.allocationStrategy = allocationStrategy; return this; } + @CustomType.Setter public Builder bidPercentage(@Nullable Integer bidPercentage) { this.bidPercentage = bidPercentage; return this; } + @CustomType.Setter public Builder desiredVcpus(@Nullable Integer desiredVcpus) { this.desiredVcpus = desiredVcpus; return this; } + @CustomType.Setter public Builder ec2Configuration(@Nullable ComputeEnvironmentComputeResourcesEc2Configuration ec2Configuration) { this.ec2Configuration = ec2Configuration; return this; } + @CustomType.Setter public Builder ec2KeyPair(@Nullable String ec2KeyPair) { this.ec2KeyPair = ec2KeyPair; return this; } + @CustomType.Setter public Builder imageId(@Nullable String imageId) { this.imageId = imageId; return this; } + @CustomType.Setter public Builder instanceRole(@Nullable String instanceRole) { this.instanceRole = instanceRole; return this; } + @CustomType.Setter public Builder instanceTypes(@Nullable List instanceTypes) { this.instanceTypes = instanceTypes; return this; @@ -331,18 +300,22 @@ public Builder instanceTypes(@Nullable List instanceTypes) { public Builder instanceTypes(String... instanceTypes) { return instanceTypes(List.of(instanceTypes)); } + @CustomType.Setter public Builder launchTemplate(@Nullable ComputeEnvironmentComputeResourcesLaunchTemplate launchTemplate) { this.launchTemplate = launchTemplate; return this; } + @CustomType.Setter public Builder maxVcpus(Integer maxVcpus) { this.maxVcpus = Objects.requireNonNull(maxVcpus); return this; } + @CustomType.Setter public Builder minVcpus(@Nullable Integer minVcpus) { this.minVcpus = minVcpus; return this; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -350,10 +323,12 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder spotIamFleetRole(@Nullable String spotIamFleetRole) { this.spotIamFleetRole = spotIamFleetRole; return this; } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; @@ -361,15 +336,35 @@ public Builder subnets(List subnets) { public Builder subnets(String... subnets) { return subnets(List.of(subnets)); } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ComputeEnvironmentComputeResources build() { - return new ComputeEnvironmentComputeResources(allocationStrategy, bidPercentage, desiredVcpus, ec2Configuration, ec2KeyPair, imageId, instanceRole, instanceTypes, launchTemplate, maxVcpus, minVcpus, securityGroupIds, spotIamFleetRole, subnets, tags, type); + } + public ComputeEnvironmentComputeResources build() { + final var o = new ComputeEnvironmentComputeResources(); + o.allocationStrategy = allocationStrategy; + o.bidPercentage = bidPercentage; + o.desiredVcpus = desiredVcpus; + o.ec2Configuration = ec2Configuration; + o.ec2KeyPair = ec2KeyPair; + o.imageId = imageId; + o.instanceRole = instanceRole; + o.instanceTypes = instanceTypes; + o.launchTemplate = launchTemplate; + o.maxVcpus = maxVcpus; + o.minVcpus = minVcpus; + o.securityGroupIds = securityGroupIds; + o.spotIamFleetRole = spotIamFleetRole; + o.subnets = subnets; + o.tags = tags; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/ComputeEnvironmentComputeResourcesEc2Configuration.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/ComputeEnvironmentComputeResourcesEc2Configuration.java index 527c9398716..0b17e9f11b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/ComputeEnvironmentComputeResourcesEc2Configuration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/ComputeEnvironmentComputeResourcesEc2Configuration.java @@ -15,21 +15,14 @@ public final class ComputeEnvironmentComputeResourcesEc2Configuration { * @return The AMI ID used for instances launched in the compute environment that match the image type. This setting overrides the `image_id` argument in the `compute_resources` block. * */ - private final @Nullable String imageIdOverride; + private @Nullable String imageIdOverride; /** * @return The image type to match with the instance type to select an AMI. If the `image_id_override` parameter isn't specified, then a recent [Amazon ECS-optimized Amazon Linux 2 AMI](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami) (`ECS_AL2`) is used. * */ - private final @Nullable String imageType; - - @CustomType.Constructor - private ComputeEnvironmentComputeResourcesEc2Configuration( - @CustomType.Parameter("imageIdOverride") @Nullable String imageIdOverride, - @CustomType.Parameter("imageType") @Nullable String imageType) { - this.imageIdOverride = imageIdOverride; - this.imageType = imageType; - } + private @Nullable String imageType; + private ComputeEnvironmentComputeResourcesEc2Configuration() {} /** * @return The AMI ID used for instances launched in the compute environment that match the image type. This setting overrides the `image_id` argument in the `compute_resources` block. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ComputeEnvironmentComputeResourcesEc2Configuration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String imageIdOverride; private @Nullable String imageType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ComputeEnvironmentComputeResourcesEc2Configuration defaults) { Objects.requireNonNull(defaults); this.imageIdOverride = defaults.imageIdOverride; this.imageType = defaults.imageType; } + @CustomType.Setter public Builder imageIdOverride(@Nullable String imageIdOverride) { this.imageIdOverride = imageIdOverride; return this; } + @CustomType.Setter public Builder imageType(@Nullable String imageType) { this.imageType = imageType; return this; - } public ComputeEnvironmentComputeResourcesEc2Configuration build() { - return new ComputeEnvironmentComputeResourcesEc2Configuration(imageIdOverride, imageType); + } + public ComputeEnvironmentComputeResourcesEc2Configuration build() { + final var o = new ComputeEnvironmentComputeResourcesEc2Configuration(); + o.imageIdOverride = imageIdOverride; + o.imageType = imageType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/ComputeEnvironmentComputeResourcesLaunchTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/ComputeEnvironmentComputeResourcesLaunchTemplate.java index ebd18847ab1..752cd345581 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/ComputeEnvironmentComputeResourcesLaunchTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/ComputeEnvironmentComputeResourcesLaunchTemplate.java @@ -15,28 +15,19 @@ public final class ComputeEnvironmentComputeResourcesLaunchTemplate { * @return ID of the launch template. You must specify either the launch template ID or launch template name in the request, but not both. * */ - private final @Nullable String launchTemplateId; + private @Nullable String launchTemplateId; /** * @return Name of the launch template. * */ - private final @Nullable String launchTemplateName; + private @Nullable String launchTemplateName; /** * @return The version number of the launch template. Default: The default version of the launch template. * */ - private final @Nullable String version; - - @CustomType.Constructor - private ComputeEnvironmentComputeResourcesLaunchTemplate( - @CustomType.Parameter("launchTemplateId") @Nullable String launchTemplateId, - @CustomType.Parameter("launchTemplateName") @Nullable String launchTemplateName, - @CustomType.Parameter("version") @Nullable String version) { - this.launchTemplateId = launchTemplateId; - this.launchTemplateName = launchTemplateName; - this.version = version; - } + private @Nullable String version; + private ComputeEnvironmentComputeResourcesLaunchTemplate() {} /** * @return ID of the launch template. You must specify either the launch template ID or launch template name in the request, but not both. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ComputeEnvironmentComputeResourcesLaunchTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String launchTemplateId; private @Nullable String launchTemplateName; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ComputeEnvironmentComputeResourcesLaunchTemplate defaults) { Objects.requireNonNull(defaults); this.launchTemplateId = defaults.launchTemplateId; @@ -83,19 +70,27 @@ public Builder(ComputeEnvironmentComputeResourcesLaunchTemplate defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder launchTemplateId(@Nullable String launchTemplateId) { this.launchTemplateId = launchTemplateId; return this; } + @CustomType.Setter public Builder launchTemplateName(@Nullable String launchTemplateName) { this.launchTemplateName = launchTemplateName; return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public ComputeEnvironmentComputeResourcesLaunchTemplate build() { - return new ComputeEnvironmentComputeResourcesLaunchTemplate(launchTemplateId, launchTemplateName, version); + } + public ComputeEnvironmentComputeResourcesLaunchTemplate build() { + final var o = new ComputeEnvironmentComputeResourcesLaunchTemplate(); + o.launchTemplateId = launchTemplateId; + o.launchTemplateName = launchTemplateName; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetComputeEnvironmentResult.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetComputeEnvironmentResult.java index b69f38a0575..1c7a46b1bbb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetComputeEnvironmentResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetComputeEnvironmentResult.java @@ -14,73 +14,50 @@ public final class GetComputeEnvironmentResult { * @return The ARN of the compute environment. * */ - private final String arn; - private final String computeEnvironmentName; + private String arn; + private String computeEnvironmentName; /** * @return The ARN of the underlying Amazon ECS cluster used by the compute environment. * */ - private final String ecsClusterArn; + private String ecsClusterArn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The ARN of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. * */ - private final String serviceRole; + private String serviceRole; /** * @return The state of the compute environment (for example, `ENABLED` or `DISABLED`). If the state is `ENABLED`, then the compute environment accepts jobs from a queue and can scale out automatically based on queues. * */ - private final String state; + private String state; /** * @return The current status of the compute environment (for example, `CREATING` or `VALID`). * */ - private final String status; + private String status; /** * @return A short, human-readable string to provide additional details about the current status of the compute environment. * */ - private final String statusReason; + private String statusReason; /** * @return Key-value map of resource tags * */ - private final Map tags; + private Map tags; /** * @return The type of the compute environment (for example, `MANAGED` or `UNMANAGED`). * */ - private final String type; - - @CustomType.Constructor - private GetComputeEnvironmentResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("computeEnvironmentName") String computeEnvironmentName, - @CustomType.Parameter("ecsClusterArn") String ecsClusterArn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("serviceRole") String serviceRole, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("statusReason") String statusReason, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("type") String type) { - this.arn = arn; - this.computeEnvironmentName = computeEnvironmentName; - this.ecsClusterArn = ecsClusterArn; - this.id = id; - this.serviceRole = serviceRole; - this.state = state; - this.status = status; - this.statusReason = statusReason; - this.tags = tags; - this.type = type; - } + private String type; + private GetComputeEnvironmentResult() {} /** * @return The ARN of the compute environment. * @@ -155,7 +132,7 @@ public static Builder builder() { public static Builder builder(GetComputeEnvironmentResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String computeEnvironmentName; @@ -167,11 +144,7 @@ public static final class Builder { private String statusReason; private Map tags; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetComputeEnvironmentResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -186,47 +159,69 @@ public Builder(GetComputeEnvironmentResult defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder computeEnvironmentName(String computeEnvironmentName) { this.computeEnvironmentName = Objects.requireNonNull(computeEnvironmentName); return this; } + @CustomType.Setter public Builder ecsClusterArn(String ecsClusterArn) { this.ecsClusterArn = Objects.requireNonNull(ecsClusterArn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder serviceRole(String serviceRole) { this.serviceRole = Objects.requireNonNull(serviceRole); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder statusReason(String statusReason) { this.statusReason = Objects.requireNonNull(statusReason); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetComputeEnvironmentResult build() { - return new GetComputeEnvironmentResult(arn, computeEnvironmentName, ecsClusterArn, id, serviceRole, state, status, statusReason, tags, type); + } + public GetComputeEnvironmentResult build() { + final var o = new GetComputeEnvironmentResult(); + o.arn = arn; + o.computeEnvironmentName = computeEnvironmentName; + o.ecsClusterArn = ecsClusterArn; + o.id = id; + o.serviceRole = serviceRole; + o.state = state; + o.status = status; + o.statusReason = statusReason; + o.tags = tags; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetJobQueueComputeEnvironmentOrder.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetJobQueueComputeEnvironmentOrder.java index 99f671498eb..dd157753eb4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetJobQueueComputeEnvironmentOrder.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetJobQueueComputeEnvironmentOrder.java @@ -10,17 +10,10 @@ @CustomType public final class GetJobQueueComputeEnvironmentOrder { - private final String computeEnvironment; - private final Integer order; - - @CustomType.Constructor - private GetJobQueueComputeEnvironmentOrder( - @CustomType.Parameter("computeEnvironment") String computeEnvironment, - @CustomType.Parameter("order") Integer order) { - this.computeEnvironment = computeEnvironment; - this.order = order; - } + private String computeEnvironment; + private Integer order; + private GetJobQueueComputeEnvironmentOrder() {} public String computeEnvironment() { return this.computeEnvironment; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetJobQueueComputeEnvironmentOrder defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String computeEnvironment; private Integer order; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetJobQueueComputeEnvironmentOrder defaults) { Objects.requireNonNull(defaults); this.computeEnvironment = defaults.computeEnvironment; this.order = defaults.order; } + @CustomType.Setter public Builder computeEnvironment(String computeEnvironment) { this.computeEnvironment = Objects.requireNonNull(computeEnvironment); return this; } + @CustomType.Setter public Builder order(Integer order) { this.order = Objects.requireNonNull(order); return this; - } public GetJobQueueComputeEnvironmentOrder build() { - return new GetJobQueueComputeEnvironmentOrder(computeEnvironment, order); + } + public GetJobQueueComputeEnvironmentOrder build() { + final var o = new GetJobQueueComputeEnvironmentOrder(); + o.computeEnvironment = computeEnvironment; + o.order = order; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetJobQueueResult.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetJobQueueResult.java index 3c9696f2ef8..2848587e382 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetJobQueueResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetJobQueueResult.java @@ -17,7 +17,7 @@ public final class GetJobQueueResult { * @return The ARN of the job queue. * */ - private final String arn; + private String arn; /** * @return The compute environments that are attached to the job queue and the order in * which job placement is preferred. Compute environments are selected for job placement in ascending order. @@ -25,70 +25,47 @@ public final class GetJobQueueResult { * * `compute_environment_order.#.compute_environment` - The ARN of the compute environment. * */ - private final List computeEnvironmentOrders; + private List computeEnvironmentOrders; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return The priority of the job queue. Job queues with a higher priority are evaluated first when * associated with the same compute environment. * */ - private final Integer priority; + private Integer priority; /** * @return The ARN of the fair share scheduling policy. If this attribute has a value, the job queue uses a fair share scheduling policy. If this attribute does not have a value, the job queue uses a first in, first out (FIFO) scheduling policy. * */ - private final String schedulingPolicyArn; + private String schedulingPolicyArn; /** * @return Describes the ability of the queue to accept new jobs (for example, `ENABLED` or `DISABLED`). * */ - private final String state; + private String state; /** * @return The current status of the job queue (for example, `CREATING` or `VALID`). * */ - private final String status; + private String status; /** * @return A short, human-readable string to provide additional details about the current status * of the job queue. * */ - private final String statusReason; + private String statusReason; /** * @return Key-value map of resource tags * */ - private final Map tags; - - @CustomType.Constructor - private GetJobQueueResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("computeEnvironmentOrders") List computeEnvironmentOrders, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("schedulingPolicyArn") String schedulingPolicyArn, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("statusReason") String statusReason, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.computeEnvironmentOrders = computeEnvironmentOrders; - this.id = id; - this.name = name; - this.priority = priority; - this.schedulingPolicyArn = schedulingPolicyArn; - this.state = state; - this.status = status; - this.statusReason = statusReason; - this.tags = tags; - } + private Map tags; + private GetJobQueueResult() {} /** * @return The ARN of the job queue. * @@ -168,7 +145,7 @@ public static Builder builder() { public static Builder builder(GetJobQueueResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List computeEnvironmentOrders; @@ -180,11 +157,7 @@ public static final class Builder { private String status; private String statusReason; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetJobQueueResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -199,10 +172,12 @@ public Builder(GetJobQueueResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder computeEnvironmentOrders(List computeEnvironmentOrders) { this.computeEnvironmentOrders = Objects.requireNonNull(computeEnvironmentOrders); return this; @@ -210,39 +185,59 @@ public Builder computeEnvironmentOrders(List public Builder computeEnvironmentOrders(GetJobQueueComputeEnvironmentOrder... computeEnvironmentOrders) { return computeEnvironmentOrders(List.of(computeEnvironmentOrders)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder schedulingPolicyArn(String schedulingPolicyArn) { this.schedulingPolicyArn = Objects.requireNonNull(schedulingPolicyArn); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder statusReason(String statusReason) { this.statusReason = Objects.requireNonNull(statusReason); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetJobQueueResult build() { - return new GetJobQueueResult(arn, computeEnvironmentOrders, id, name, priority, schedulingPolicyArn, state, status, statusReason, tags); + } + public GetJobQueueResult build() { + final var o = new GetJobQueueResult(); + o.arn = arn; + o.computeEnvironmentOrders = computeEnvironmentOrders; + o.id = id; + o.name = name; + o.priority = priority; + o.schedulingPolicyArn = schedulingPolicyArn; + o.state = state; + o.status = status; + o.statusReason = statusReason; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetSchedulingPolicyFairSharePolicy.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetSchedulingPolicyFairSharePolicy.java index d197367273b..40bc3f52086 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetSchedulingPolicyFairSharePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetSchedulingPolicyFairSharePolicy.java @@ -15,24 +15,15 @@ public final class GetSchedulingPolicyFairSharePolicy { * @return A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see [FairsharePolicy](https://docs.aws.amazon.com/batch/latest/APIReference/API_FairsharePolicy.html). * */ - private final Integer computeReservation; - private final Integer shareDecaySeconds; + private Integer computeReservation; + private Integer shareDecaySeconds; /** * @return One or more share distribution blocks which define the weights for the fair share identifiers for the fair share policy. For more information, see [FairsharePolicy](https://docs.aws.amazon.com/batch/latest/APIReference/API_FairsharePolicy.html). The `share_distribution` block is documented below. * */ - private final List shareDistributions; - - @CustomType.Constructor - private GetSchedulingPolicyFairSharePolicy( - @CustomType.Parameter("computeReservation") Integer computeReservation, - @CustomType.Parameter("shareDecaySeconds") Integer shareDecaySeconds, - @CustomType.Parameter("shareDistributions") List shareDistributions) { - this.computeReservation = computeReservation; - this.shareDecaySeconds = shareDecaySeconds; - this.shareDistributions = shareDistributions; - } + private List shareDistributions; + private GetSchedulingPolicyFairSharePolicy() {} /** * @return A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see [FairsharePolicy](https://docs.aws.amazon.com/batch/latest/APIReference/API_FairsharePolicy.html). * @@ -58,16 +49,12 @@ public static Builder builder() { public static Builder builder(GetSchedulingPolicyFairSharePolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer computeReservation; private Integer shareDecaySeconds; private List shareDistributions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSchedulingPolicyFairSharePolicy defaults) { Objects.requireNonNull(defaults); this.computeReservation = defaults.computeReservation; @@ -75,22 +62,30 @@ public Builder(GetSchedulingPolicyFairSharePolicy defaults) { this.shareDistributions = defaults.shareDistributions; } + @CustomType.Setter public Builder computeReservation(Integer computeReservation) { this.computeReservation = Objects.requireNonNull(computeReservation); return this; } + @CustomType.Setter public Builder shareDecaySeconds(Integer shareDecaySeconds) { this.shareDecaySeconds = Objects.requireNonNull(shareDecaySeconds); return this; } + @CustomType.Setter public Builder shareDistributions(List shareDistributions) { this.shareDistributions = Objects.requireNonNull(shareDistributions); return this; } public Builder shareDistributions(GetSchedulingPolicyFairSharePolicyShareDistribution... shareDistributions) { return shareDistributions(List.of(shareDistributions)); - } public GetSchedulingPolicyFairSharePolicy build() { - return new GetSchedulingPolicyFairSharePolicy(computeReservation, shareDecaySeconds, shareDistributions); + } + public GetSchedulingPolicyFairSharePolicy build() { + final var o = new GetSchedulingPolicyFairSharePolicy(); + o.computeReservation = computeReservation; + o.shareDecaySeconds = shareDecaySeconds; + o.shareDistributions = shareDistributions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetSchedulingPolicyFairSharePolicyShareDistribution.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetSchedulingPolicyFairSharePolicyShareDistribution.java index 926fc810d2d..da271b9f534 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetSchedulingPolicyFairSharePolicyShareDistribution.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetSchedulingPolicyFairSharePolicyShareDistribution.java @@ -14,21 +14,14 @@ public final class GetSchedulingPolicyFairSharePolicyShareDistribution { * @return A fair share identifier or fair share identifier prefix. For more information, see [ShareAttributes](https://docs.aws.amazon.com/batch/latest/APIReference/API_ShareAttributes.html). * */ - private final String shareIdentifier; + private String shareIdentifier; /** * @return The weight factor for the fair share identifier. For more information, see [ShareAttributes](https://docs.aws.amazon.com/batch/latest/APIReference/API_ShareAttributes.html). * */ - private final Double weightFactor; - - @CustomType.Constructor - private GetSchedulingPolicyFairSharePolicyShareDistribution( - @CustomType.Parameter("shareIdentifier") String shareIdentifier, - @CustomType.Parameter("weightFactor") Double weightFactor) { - this.shareIdentifier = shareIdentifier; - this.weightFactor = weightFactor; - } + private Double weightFactor; + private GetSchedulingPolicyFairSharePolicyShareDistribution() {} /** * @return A fair share identifier or fair share identifier prefix. For more information, see [ShareAttributes](https://docs.aws.amazon.com/batch/latest/APIReference/API_ShareAttributes.html). * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetSchedulingPolicyFairSharePolicyShareDistribution defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String shareIdentifier; private Double weightFactor; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSchedulingPolicyFairSharePolicyShareDistribution defaults) { Objects.requireNonNull(defaults); this.shareIdentifier = defaults.shareIdentifier; this.weightFactor = defaults.weightFactor; } + @CustomType.Setter public Builder shareIdentifier(String shareIdentifier) { this.shareIdentifier = Objects.requireNonNull(shareIdentifier); return this; } + @CustomType.Setter public Builder weightFactor(Double weightFactor) { this.weightFactor = Objects.requireNonNull(weightFactor); return this; - } public GetSchedulingPolicyFairSharePolicyShareDistribution build() { - return new GetSchedulingPolicyFairSharePolicyShareDistribution(shareIdentifier, weightFactor); + } + public GetSchedulingPolicyFairSharePolicyShareDistribution build() { + final var o = new GetSchedulingPolicyFairSharePolicyShareDistribution(); + o.shareIdentifier = shareIdentifier; + o.weightFactor = weightFactor; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetSchedulingPolicyResult.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetSchedulingPolicyResult.java index 125e4e9c6db..5cd00c3e0d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetSchedulingPolicyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/GetSchedulingPolicyResult.java @@ -12,38 +12,25 @@ @CustomType public final class GetSchedulingPolicyResult { - private final String arn; - private final List fairSharePolicies; + private String arn; + private List fairSharePolicies; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Specifies the name of the scheduling policy. * */ - private final String name; + private String name; /** * @return Key-value map of resource tags * */ - private final Map tags; - - @CustomType.Constructor - private GetSchedulingPolicyResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fairSharePolicies") List fairSharePolicies, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.fairSharePolicies = fairSharePolicies; - this.id = id; - this.name = name; - this.tags = tags; - } + private Map tags; + private GetSchedulingPolicyResult() {} public String arn() { return this.arn; } @@ -79,18 +66,14 @@ public static Builder builder() { public static Builder builder(GetSchedulingPolicyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List fairSharePolicies; private String id; private String name; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSchedulingPolicyResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -100,10 +83,12 @@ public Builder(GetSchedulingPolicyResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fairSharePolicies(List fairSharePolicies) { this.fairSharePolicies = Objects.requireNonNull(fairSharePolicies); return this; @@ -111,19 +96,29 @@ public Builder fairSharePolicies(List fairSh public Builder fairSharePolicies(GetSchedulingPolicyFairSharePolicy... fairSharePolicies) { return fairSharePolicies(List.of(fairSharePolicies)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetSchedulingPolicyResult build() { - return new GetSchedulingPolicyResult(arn, fairSharePolicies, id, name, tags); + } + public GetSchedulingPolicyResult build() { + final var o = new GetSchedulingPolicyResult(); + o.arn = arn; + o.fairSharePolicies = fairSharePolicies; + o.id = id; + o.name = name; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/JobDefinitionRetryStrategy.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/JobDefinitionRetryStrategy.java index b17c5f3cd22..fd80d6401ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/JobDefinitionRetryStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/JobDefinitionRetryStrategy.java @@ -17,21 +17,14 @@ public final class JobDefinitionRetryStrategy { * @return The number of times to move a job to the `RUNNABLE` status. You may specify between `1` and `10` attempts. * */ - private final @Nullable Integer attempts; + private @Nullable Integer attempts; /** * @return The evaluate on exit conditions under which the job should be retried or failed. If this parameter is specified, then the `attempts` parameter must also be specified. You may specify up to 5 configuration blocks. * */ - private final @Nullable List evaluateOnExits; - - @CustomType.Constructor - private JobDefinitionRetryStrategy( - @CustomType.Parameter("attempts") @Nullable Integer attempts, - @CustomType.Parameter("evaluateOnExits") @Nullable List evaluateOnExits) { - this.attempts = attempts; - this.evaluateOnExits = evaluateOnExits; - } + private @Nullable List evaluateOnExits; + private JobDefinitionRetryStrategy() {} /** * @return The number of times to move a job to the `RUNNABLE` status. You may specify between `1` and `10` attempts. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(JobDefinitionRetryStrategy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer attempts; private @Nullable List evaluateOnExits; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(JobDefinitionRetryStrategy defaults) { Objects.requireNonNull(defaults); this.attempts = defaults.attempts; this.evaluateOnExits = defaults.evaluateOnExits; } + @CustomType.Setter public Builder attempts(@Nullable Integer attempts) { this.attempts = attempts; return this; } + @CustomType.Setter public Builder evaluateOnExits(@Nullable List evaluateOnExits) { this.evaluateOnExits = evaluateOnExits; return this; } public Builder evaluateOnExits(JobDefinitionRetryStrategyEvaluateOnExit... evaluateOnExits) { return evaluateOnExits(List.of(evaluateOnExits)); - } public JobDefinitionRetryStrategy build() { - return new JobDefinitionRetryStrategy(attempts, evaluateOnExits); + } + public JobDefinitionRetryStrategy build() { + final var o = new JobDefinitionRetryStrategy(); + o.attempts = attempts; + o.evaluateOnExits = evaluateOnExits; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/JobDefinitionRetryStrategyEvaluateOnExit.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/JobDefinitionRetryStrategyEvaluateOnExit.java index 9b9ac5d498b..5a66da7766b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/JobDefinitionRetryStrategyEvaluateOnExit.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/JobDefinitionRetryStrategyEvaluateOnExit.java @@ -15,35 +15,24 @@ public final class JobDefinitionRetryStrategyEvaluateOnExit { * @return Specifies the action to take if all of the specified conditions are met. The values are not case sensitive. Valid values: `RETRY`, `EXIT`. * */ - private final String action; + private String action; /** * @return A glob pattern to match against the decimal representation of the exit code returned for a job. * */ - private final @Nullable String onExitCode; + private @Nullable String onExitCode; /** * @return A glob pattern to match against the reason returned for a job. * */ - private final @Nullable String onReason; + private @Nullable String onReason; /** * @return A glob pattern to match against the status reason returned for a job. * */ - private final @Nullable String onStatusReason; - - @CustomType.Constructor - private JobDefinitionRetryStrategyEvaluateOnExit( - @CustomType.Parameter("action") String action, - @CustomType.Parameter("onExitCode") @Nullable String onExitCode, - @CustomType.Parameter("onReason") @Nullable String onReason, - @CustomType.Parameter("onStatusReason") @Nullable String onStatusReason) { - this.action = action; - this.onExitCode = onExitCode; - this.onReason = onReason; - this.onStatusReason = onStatusReason; - } + private @Nullable String onStatusReason; + private JobDefinitionRetryStrategyEvaluateOnExit() {} /** * @return Specifies the action to take if all of the specified conditions are met. The values are not case sensitive. Valid values: `RETRY`, `EXIT`. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(JobDefinitionRetryStrategyEvaluateOnExit defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String action; private @Nullable String onExitCode; private @Nullable String onReason; private @Nullable String onStatusReason; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(JobDefinitionRetryStrategyEvaluateOnExit defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -99,23 +84,33 @@ public Builder(JobDefinitionRetryStrategyEvaluateOnExit defaults) { this.onStatusReason = defaults.onStatusReason; } + @CustomType.Setter public Builder action(String action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder onExitCode(@Nullable String onExitCode) { this.onExitCode = onExitCode; return this; } + @CustomType.Setter public Builder onReason(@Nullable String onReason) { this.onReason = onReason; return this; } + @CustomType.Setter public Builder onStatusReason(@Nullable String onStatusReason) { this.onStatusReason = onStatusReason; return this; - } public JobDefinitionRetryStrategyEvaluateOnExit build() { - return new JobDefinitionRetryStrategyEvaluateOnExit(action, onExitCode, onReason, onStatusReason); + } + public JobDefinitionRetryStrategyEvaluateOnExit build() { + final var o = new JobDefinitionRetryStrategyEvaluateOnExit(); + o.action = action; + o.onExitCode = onExitCode; + o.onReason = onReason; + o.onStatusReason = onStatusReason; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/JobDefinitionTimeout.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/JobDefinitionTimeout.java index d8cd511c1ff..ce53f4d5862 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/JobDefinitionTimeout.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/JobDefinitionTimeout.java @@ -15,13 +15,9 @@ public final class JobDefinitionTimeout { * @return The time duration in seconds after which AWS Batch terminates your jobs if they have not finished. The minimum value for the timeout is `60` seconds. * */ - private final @Nullable Integer attemptDurationSeconds; - - @CustomType.Constructor - private JobDefinitionTimeout(@CustomType.Parameter("attemptDurationSeconds") @Nullable Integer attemptDurationSeconds) { - this.attemptDurationSeconds = attemptDurationSeconds; - } + private @Nullable Integer attemptDurationSeconds; + private JobDefinitionTimeout() {} /** * @return The time duration in seconds after which AWS Batch terminates your jobs if they have not finished. The minimum value for the timeout is `60` seconds. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(JobDefinitionTimeout defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer attemptDurationSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(JobDefinitionTimeout defaults) { Objects.requireNonNull(defaults); this.attemptDurationSeconds = defaults.attemptDurationSeconds; } + @CustomType.Setter public Builder attemptDurationSeconds(@Nullable Integer attemptDurationSeconds) { this.attemptDurationSeconds = attemptDurationSeconds; return this; - } public JobDefinitionTimeout build() { - return new JobDefinitionTimeout(attemptDurationSeconds); + } + public JobDefinitionTimeout build() { + final var o = new JobDefinitionTimeout(); + o.attemptDurationSeconds = attemptDurationSeconds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/SchedulingPolicyFairSharePolicy.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/SchedulingPolicyFairSharePolicy.java index 8ac2beb39fd..34b0820957b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/SchedulingPolicyFairSharePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/SchedulingPolicyFairSharePolicy.java @@ -17,24 +17,15 @@ public final class SchedulingPolicyFairSharePolicy { * @return A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see [FairsharePolicy](https://docs.aws.amazon.com/batch/latest/APIReference/API_FairsharePolicy.html). * */ - private final @Nullable Integer computeReservation; - private final @Nullable Integer shareDecaySeconds; + private @Nullable Integer computeReservation; + private @Nullable Integer shareDecaySeconds; /** * @return One or more share distribution blocks which define the weights for the fair share identifiers for the fair share policy. For more information, see [FairsharePolicy](https://docs.aws.amazon.com/batch/latest/APIReference/API_FairsharePolicy.html). The `share_distribution` block is documented below. * */ - private final @Nullable List shareDistributions; - - @CustomType.Constructor - private SchedulingPolicyFairSharePolicy( - @CustomType.Parameter("computeReservation") @Nullable Integer computeReservation, - @CustomType.Parameter("shareDecaySeconds") @Nullable Integer shareDecaySeconds, - @CustomType.Parameter("shareDistributions") @Nullable List shareDistributions) { - this.computeReservation = computeReservation; - this.shareDecaySeconds = shareDecaySeconds; - this.shareDistributions = shareDistributions; - } + private @Nullable List shareDistributions; + private SchedulingPolicyFairSharePolicy() {} /** * @return A value used to reserve some of the available maximum vCPU for fair share identifiers that have not yet been used. For more information, see [FairsharePolicy](https://docs.aws.amazon.com/batch/latest/APIReference/API_FairsharePolicy.html). * @@ -60,16 +51,12 @@ public static Builder builder() { public static Builder builder(SchedulingPolicyFairSharePolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer computeReservation; private @Nullable Integer shareDecaySeconds; private @Nullable List shareDistributions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SchedulingPolicyFairSharePolicy defaults) { Objects.requireNonNull(defaults); this.computeReservation = defaults.computeReservation; @@ -77,22 +64,30 @@ public Builder(SchedulingPolicyFairSharePolicy defaults) { this.shareDistributions = defaults.shareDistributions; } + @CustomType.Setter public Builder computeReservation(@Nullable Integer computeReservation) { this.computeReservation = computeReservation; return this; } + @CustomType.Setter public Builder shareDecaySeconds(@Nullable Integer shareDecaySeconds) { this.shareDecaySeconds = shareDecaySeconds; return this; } + @CustomType.Setter public Builder shareDistributions(@Nullable List shareDistributions) { this.shareDistributions = shareDistributions; return this; } public Builder shareDistributions(SchedulingPolicyFairSharePolicyShareDistribution... shareDistributions) { return shareDistributions(List.of(shareDistributions)); - } public SchedulingPolicyFairSharePolicy build() { - return new SchedulingPolicyFairSharePolicy(computeReservation, shareDecaySeconds, shareDistributions); + } + public SchedulingPolicyFairSharePolicy build() { + final var o = new SchedulingPolicyFairSharePolicy(); + o.computeReservation = computeReservation; + o.shareDecaySeconds = shareDecaySeconds; + o.shareDistributions = shareDistributions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/SchedulingPolicyFairSharePolicyShareDistribution.java b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/SchedulingPolicyFairSharePolicyShareDistribution.java index 7dd81d6e6b4..8c2ba87fa30 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/SchedulingPolicyFairSharePolicyShareDistribution.java +++ b/sdk/java/src/main/java/com/pulumi/aws/batch/outputs/SchedulingPolicyFairSharePolicyShareDistribution.java @@ -16,21 +16,14 @@ public final class SchedulingPolicyFairSharePolicyShareDistribution { * @return A fair share identifier or fair share identifier prefix. For more information, see [ShareAttributes](https://docs.aws.amazon.com/batch/latest/APIReference/API_ShareAttributes.html). * */ - private final String shareIdentifier; + private String shareIdentifier; /** * @return The weight factor for the fair share identifier. For more information, see [ShareAttributes](https://docs.aws.amazon.com/batch/latest/APIReference/API_ShareAttributes.html). * */ - private final @Nullable Double weightFactor; - - @CustomType.Constructor - private SchedulingPolicyFairSharePolicyShareDistribution( - @CustomType.Parameter("shareIdentifier") String shareIdentifier, - @CustomType.Parameter("weightFactor") @Nullable Double weightFactor) { - this.shareIdentifier = shareIdentifier; - this.weightFactor = weightFactor; - } + private @Nullable Double weightFactor; + private SchedulingPolicyFairSharePolicyShareDistribution() {} /** * @return A fair share identifier or fair share identifier prefix. For more information, see [ShareAttributes](https://docs.aws.amazon.com/batch/latest/APIReference/API_ShareAttributes.html). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(SchedulingPolicyFairSharePolicyShareDistribution defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String shareIdentifier; private @Nullable Double weightFactor; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SchedulingPolicyFairSharePolicyShareDistribution defaults) { Objects.requireNonNull(defaults); this.shareIdentifier = defaults.shareIdentifier; this.weightFactor = defaults.weightFactor; } + @CustomType.Setter public Builder shareIdentifier(String shareIdentifier) { this.shareIdentifier = Objects.requireNonNull(shareIdentifier); return this; } + @CustomType.Setter public Builder weightFactor(@Nullable Double weightFactor) { this.weightFactor = weightFactor; return this; - } public SchedulingPolicyFairSharePolicyShareDistribution build() { - return new SchedulingPolicyFairSharePolicyShareDistribution(shareIdentifier, weightFactor); + } + public SchedulingPolicyFairSharePolicyShareDistribution build() { + final var o = new SchedulingPolicyFairSharePolicyShareDistribution(); + o.shareIdentifier = shareIdentifier; + o.weightFactor = weightFactor; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionActionThreshold.java b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionActionThreshold.java index 2437d40c767..bea2481bd6f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionActionThreshold.java +++ b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionActionThreshold.java @@ -14,21 +14,14 @@ public final class BudgetActionActionThreshold { * @return The type of threshold for a notification. Valid values are `PERCENTAGE` or `ABSOLUTE_VALUE`. * */ - private final String actionThresholdType; + private String actionThresholdType; /** * @return The threshold of a notification. * */ - private final Double actionThresholdValue; - - @CustomType.Constructor - private BudgetActionActionThreshold( - @CustomType.Parameter("actionThresholdType") String actionThresholdType, - @CustomType.Parameter("actionThresholdValue") Double actionThresholdValue) { - this.actionThresholdType = actionThresholdType; - this.actionThresholdValue = actionThresholdValue; - } + private Double actionThresholdValue; + private BudgetActionActionThreshold() {} /** * @return The type of threshold for a notification. Valid values are `PERCENTAGE` or `ABSOLUTE_VALUE`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(BudgetActionActionThreshold defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String actionThresholdType; private Double actionThresholdValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BudgetActionActionThreshold defaults) { Objects.requireNonNull(defaults); this.actionThresholdType = defaults.actionThresholdType; this.actionThresholdValue = defaults.actionThresholdValue; } + @CustomType.Setter public Builder actionThresholdType(String actionThresholdType) { this.actionThresholdType = Objects.requireNonNull(actionThresholdType); return this; } + @CustomType.Setter public Builder actionThresholdValue(Double actionThresholdValue) { this.actionThresholdValue = Objects.requireNonNull(actionThresholdValue); return this; - } public BudgetActionActionThreshold build() { - return new BudgetActionActionThreshold(actionThresholdType, actionThresholdValue); + } + public BudgetActionActionThreshold build() { + final var o = new BudgetActionActionThreshold(); + o.actionThresholdType = actionThresholdType; + o.actionThresholdValue = actionThresholdValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinition.java index 4a012de9a6c..839431fda46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinition.java @@ -17,28 +17,19 @@ public final class BudgetActionDefinition { * @return The AWS Identity and Access Management (IAM) action definition details. See IAM Action Definition. * */ - private final @Nullable BudgetActionDefinitionIamActionDefinition iamActionDefinition; + private @Nullable BudgetActionDefinitionIamActionDefinition iamActionDefinition; /** * @return The service control policies (SCPs) action definition details. See SCP Action Definition. * */ - private final @Nullable BudgetActionDefinitionScpActionDefinition scpActionDefinition; + private @Nullable BudgetActionDefinitionScpActionDefinition scpActionDefinition; /** * @return The AWS Systems Manager (SSM) action definition details. See SSM Action Definition. * */ - private final @Nullable BudgetActionDefinitionSsmActionDefinition ssmActionDefinition; - - @CustomType.Constructor - private BudgetActionDefinition( - @CustomType.Parameter("iamActionDefinition") @Nullable BudgetActionDefinitionIamActionDefinition iamActionDefinition, - @CustomType.Parameter("scpActionDefinition") @Nullable BudgetActionDefinitionScpActionDefinition scpActionDefinition, - @CustomType.Parameter("ssmActionDefinition") @Nullable BudgetActionDefinitionSsmActionDefinition ssmActionDefinition) { - this.iamActionDefinition = iamActionDefinition; - this.scpActionDefinition = scpActionDefinition; - this.ssmActionDefinition = ssmActionDefinition; - } + private @Nullable BudgetActionDefinitionSsmActionDefinition ssmActionDefinition; + private BudgetActionDefinition() {} /** * @return The AWS Identity and Access Management (IAM) action definition details. See IAM Action Definition. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(BudgetActionDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BudgetActionDefinitionIamActionDefinition iamActionDefinition; private @Nullable BudgetActionDefinitionScpActionDefinition scpActionDefinition; private @Nullable BudgetActionDefinitionSsmActionDefinition ssmActionDefinition; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BudgetActionDefinition defaults) { Objects.requireNonNull(defaults); this.iamActionDefinition = defaults.iamActionDefinition; @@ -85,19 +72,27 @@ public Builder(BudgetActionDefinition defaults) { this.ssmActionDefinition = defaults.ssmActionDefinition; } + @CustomType.Setter public Builder iamActionDefinition(@Nullable BudgetActionDefinitionIamActionDefinition iamActionDefinition) { this.iamActionDefinition = iamActionDefinition; return this; } + @CustomType.Setter public Builder scpActionDefinition(@Nullable BudgetActionDefinitionScpActionDefinition scpActionDefinition) { this.scpActionDefinition = scpActionDefinition; return this; } + @CustomType.Setter public Builder ssmActionDefinition(@Nullable BudgetActionDefinitionSsmActionDefinition ssmActionDefinition) { this.ssmActionDefinition = ssmActionDefinition; return this; - } public BudgetActionDefinition build() { - return new BudgetActionDefinition(iamActionDefinition, scpActionDefinition, ssmActionDefinition); + } + public BudgetActionDefinition build() { + final var o = new BudgetActionDefinition(); + o.iamActionDefinition = iamActionDefinition; + o.scpActionDefinition = scpActionDefinition; + o.ssmActionDefinition = ssmActionDefinition; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinitionIamActionDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinitionIamActionDefinition.java index f264c16ad45..7929a5b2e47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinitionIamActionDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinitionIamActionDefinition.java @@ -15,35 +15,24 @@ public final class BudgetActionDefinitionIamActionDefinition { * @return A list of groups to be attached. There must be at least one group. * */ - private final @Nullable List groups; + private @Nullable List groups; /** * @return The Amazon Resource Name (ARN) of the policy to be attached. * */ - private final String policyArn; + private String policyArn; /** * @return A list of roles to be attached. There must be at least one role. * */ - private final @Nullable List roles; + private @Nullable List roles; /** * @return A list of users to be attached. There must be at least one user. * */ - private final @Nullable List users; - - @CustomType.Constructor - private BudgetActionDefinitionIamActionDefinition( - @CustomType.Parameter("groups") @Nullable List groups, - @CustomType.Parameter("policyArn") String policyArn, - @CustomType.Parameter("roles") @Nullable List roles, - @CustomType.Parameter("users") @Nullable List users) { - this.groups = groups; - this.policyArn = policyArn; - this.roles = roles; - this.users = users; - } + private @Nullable List users; + private BudgetActionDefinitionIamActionDefinition() {} /** * @return A list of groups to be attached. There must be at least one group. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(BudgetActionDefinitionIamActionDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List groups; private String policyArn; private @Nullable List roles; private @Nullable List users; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BudgetActionDefinitionIamActionDefinition defaults) { Objects.requireNonNull(defaults); this.groups = defaults.groups; @@ -99,6 +84,7 @@ public Builder(BudgetActionDefinitionIamActionDefinition defaults) { this.users = defaults.users; } + @CustomType.Setter public Builder groups(@Nullable List groups) { this.groups = groups; return this; @@ -106,10 +92,12 @@ public Builder groups(@Nullable List groups) { public Builder groups(String... groups) { return groups(List.of(groups)); } + @CustomType.Setter public Builder policyArn(String policyArn) { this.policyArn = Objects.requireNonNull(policyArn); return this; } + @CustomType.Setter public Builder roles(@Nullable List roles) { this.roles = roles; return this; @@ -117,14 +105,21 @@ public Builder roles(@Nullable List roles) { public Builder roles(String... roles) { return roles(List.of(roles)); } + @CustomType.Setter public Builder users(@Nullable List users) { this.users = users; return this; } public Builder users(String... users) { return users(List.of(users)); - } public BudgetActionDefinitionIamActionDefinition build() { - return new BudgetActionDefinitionIamActionDefinition(groups, policyArn, roles, users); + } + public BudgetActionDefinitionIamActionDefinition build() { + final var o = new BudgetActionDefinitionIamActionDefinition(); + o.groups = groups; + o.policyArn = policyArn; + o.roles = roles; + o.users = users; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinitionScpActionDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinitionScpActionDefinition.java index 65f57eeba0f..75dfec85d10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinitionScpActionDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinitionScpActionDefinition.java @@ -14,21 +14,14 @@ public final class BudgetActionDefinitionScpActionDefinition { * @return The policy ID attached. * */ - private final String policyId; + private String policyId; /** * @return A list of target IDs. * */ - private final List targetIds; - - @CustomType.Constructor - private BudgetActionDefinitionScpActionDefinition( - @CustomType.Parameter("policyId") String policyId, - @CustomType.Parameter("targetIds") List targetIds) { - this.policyId = policyId; - this.targetIds = targetIds; - } + private List targetIds; + private BudgetActionDefinitionScpActionDefinition() {} /** * @return The policy ID attached. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(BudgetActionDefinitionScpActionDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String policyId; private List targetIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BudgetActionDefinitionScpActionDefinition defaults) { Objects.requireNonNull(defaults); this.policyId = defaults.policyId; this.targetIds = defaults.targetIds; } + @CustomType.Setter public Builder policyId(String policyId) { this.policyId = Objects.requireNonNull(policyId); return this; } + @CustomType.Setter public Builder targetIds(List targetIds) { this.targetIds = Objects.requireNonNull(targetIds); return this; } public Builder targetIds(String... targetIds) { return targetIds(List.of(targetIds)); - } public BudgetActionDefinitionScpActionDefinition build() { - return new BudgetActionDefinitionScpActionDefinition(policyId, targetIds); + } + public BudgetActionDefinitionScpActionDefinition build() { + final var o = new BudgetActionDefinitionScpActionDefinition(); + o.policyId = policyId; + o.targetIds = targetIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinitionSsmActionDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinitionSsmActionDefinition.java index cf32d07725e..3cdb997877f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinitionSsmActionDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionDefinitionSsmActionDefinition.java @@ -14,28 +14,19 @@ public final class BudgetActionDefinitionSsmActionDefinition { * @return The action subType. Valid values are `STOP_EC2_INSTANCES` or `STOP_RDS_INSTANCES`. * */ - private final String actionSubType; + private String actionSubType; /** * @return The EC2 and RDS instance IDs. * */ - private final List instanceIds; + private List instanceIds; /** * @return The Region to run the SSM document. * */ - private final String region; - - @CustomType.Constructor - private BudgetActionDefinitionSsmActionDefinition( - @CustomType.Parameter("actionSubType") String actionSubType, - @CustomType.Parameter("instanceIds") List instanceIds, - @CustomType.Parameter("region") String region) { - this.actionSubType = actionSubType; - this.instanceIds = instanceIds; - this.region = region; - } + private String region; + private BudgetActionDefinitionSsmActionDefinition() {} /** * @return The action subType. Valid values are `STOP_EC2_INSTANCES` or `STOP_RDS_INSTANCES`. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(BudgetActionDefinitionSsmActionDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String actionSubType; private List instanceIds; private String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BudgetActionDefinitionSsmActionDefinition defaults) { Objects.requireNonNull(defaults); this.actionSubType = defaults.actionSubType; @@ -82,10 +69,12 @@ public Builder(BudgetActionDefinitionSsmActionDefinition defaults) { this.region = defaults.region; } + @CustomType.Setter public Builder actionSubType(String actionSubType) { this.actionSubType = Objects.requireNonNull(actionSubType); return this; } + @CustomType.Setter public Builder instanceIds(List instanceIds) { this.instanceIds = Objects.requireNonNull(instanceIds); return this; @@ -93,11 +82,17 @@ public Builder instanceIds(List instanceIds) { public Builder instanceIds(String... instanceIds) { return instanceIds(List.of(instanceIds)); } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; - } public BudgetActionDefinitionSsmActionDefinition build() { - return new BudgetActionDefinitionSsmActionDefinition(actionSubType, instanceIds, region); + } + public BudgetActionDefinitionSsmActionDefinition build() { + final var o = new BudgetActionDefinitionSsmActionDefinition(); + o.actionSubType = actionSubType; + o.instanceIds = instanceIds; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionSubscriber.java b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionSubscriber.java index 535d7bdb348..c875a67f87a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionSubscriber.java +++ b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetActionSubscriber.java @@ -13,21 +13,14 @@ public final class BudgetActionSubscriber { * @return The address that AWS sends budget notifications to, either an SNS topic or an email. * */ - private final String address; + private String address; /** * @return The type of notification that AWS sends to a subscriber. Valid values are `SNS` or `EMAIL`. * */ - private final String subscriptionType; - - @CustomType.Constructor - private BudgetActionSubscriber( - @CustomType.Parameter("address") String address, - @CustomType.Parameter("subscriptionType") String subscriptionType) { - this.address = address; - this.subscriptionType = subscriptionType; - } + private String subscriptionType; + private BudgetActionSubscriber() {} /** * @return The address that AWS sends budget notifications to, either an SNS topic or an email. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(BudgetActionSubscriber defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String address; private String subscriptionType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BudgetActionSubscriber defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; this.subscriptionType = defaults.subscriptionType; } + @CustomType.Setter public Builder address(String address) { this.address = Objects.requireNonNull(address); return this; } + @CustomType.Setter public Builder subscriptionType(String subscriptionType) { this.subscriptionType = Objects.requireNonNull(subscriptionType); return this; - } public BudgetActionSubscriber build() { - return new BudgetActionSubscriber(address, subscriptionType); + } + public BudgetActionSubscriber build() { + final var o = new BudgetActionSubscriber(); + o.address = address; + o.subscriptionType = subscriptionType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetCostFilter.java b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetCostFilter.java index 19593c22e4d..ed665e4cecc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetCostFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetCostFilter.java @@ -14,17 +14,10 @@ public final class BudgetCostFilter { * @return The name of a budget. Unique within accounts. * */ - private final String name; - private final List values; - - @CustomType.Constructor - private BudgetCostFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private BudgetCostFilter() {} /** * @return The name of a budget. Unique within accounts. * @@ -43,33 +36,35 @@ public static Builder builder() { public static Builder builder(BudgetCostFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BudgetCostFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public BudgetCostFilter build() { - return new BudgetCostFilter(name, values); + } + public BudgetCostFilter build() { + final var o = new BudgetCostFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetCostTypes.java b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetCostTypes.java index 3d458dca290..c1852b838d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetCostTypes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetCostTypes.java @@ -15,84 +15,59 @@ public final class BudgetCostTypes { * @return A boolean value whether to include credits in the cost budget. Defaults to `true` * */ - private final @Nullable Boolean includeCredit; + private @Nullable Boolean includeCredit; /** * @return Specifies whether a budget includes discounts. Defaults to `true` * */ - private final @Nullable Boolean includeDiscount; + private @Nullable Boolean includeDiscount; /** * @return A boolean value whether to include other subscription costs in the cost budget. Defaults to `true` * */ - private final @Nullable Boolean includeOtherSubscription; + private @Nullable Boolean includeOtherSubscription; /** * @return A boolean value whether to include recurring costs in the cost budget. Defaults to `true` * */ - private final @Nullable Boolean includeRecurring; + private @Nullable Boolean includeRecurring; /** * @return A boolean value whether to include refunds in the cost budget. Defaults to `true` * */ - private final @Nullable Boolean includeRefund; + private @Nullable Boolean includeRefund; /** * @return A boolean value whether to include subscriptions in the cost budget. Defaults to `true` * */ - private final @Nullable Boolean includeSubscription; + private @Nullable Boolean includeSubscription; /** * @return A boolean value whether to include support costs in the cost budget. Defaults to `true` * */ - private final @Nullable Boolean includeSupport; + private @Nullable Boolean includeSupport; /** * @return A boolean value whether to include tax in the cost budget. Defaults to `true` * */ - private final @Nullable Boolean includeTax; + private @Nullable Boolean includeTax; /** * @return A boolean value whether to include upfront costs in the cost budget. Defaults to `true` * */ - private final @Nullable Boolean includeUpfront; + private @Nullable Boolean includeUpfront; /** * @return Specifies whether a budget uses the amortized rate. Defaults to `false` * */ - private final @Nullable Boolean useAmortized; + private @Nullable Boolean useAmortized; /** * @return A boolean value whether to use blended costs in the cost budget. Defaults to `false` * */ - private final @Nullable Boolean useBlended; - - @CustomType.Constructor - private BudgetCostTypes( - @CustomType.Parameter("includeCredit") @Nullable Boolean includeCredit, - @CustomType.Parameter("includeDiscount") @Nullable Boolean includeDiscount, - @CustomType.Parameter("includeOtherSubscription") @Nullable Boolean includeOtherSubscription, - @CustomType.Parameter("includeRecurring") @Nullable Boolean includeRecurring, - @CustomType.Parameter("includeRefund") @Nullable Boolean includeRefund, - @CustomType.Parameter("includeSubscription") @Nullable Boolean includeSubscription, - @CustomType.Parameter("includeSupport") @Nullable Boolean includeSupport, - @CustomType.Parameter("includeTax") @Nullable Boolean includeTax, - @CustomType.Parameter("includeUpfront") @Nullable Boolean includeUpfront, - @CustomType.Parameter("useAmortized") @Nullable Boolean useAmortized, - @CustomType.Parameter("useBlended") @Nullable Boolean useBlended) { - this.includeCredit = includeCredit; - this.includeDiscount = includeDiscount; - this.includeOtherSubscription = includeOtherSubscription; - this.includeRecurring = includeRecurring; - this.includeRefund = includeRefund; - this.includeSubscription = includeSubscription; - this.includeSupport = includeSupport; - this.includeTax = includeTax; - this.includeUpfront = includeUpfront; - this.useAmortized = useAmortized; - this.useBlended = useBlended; - } + private @Nullable Boolean useBlended; + private BudgetCostTypes() {} /** * @return A boolean value whether to include credits in the cost budget. Defaults to `true` * @@ -178,7 +153,7 @@ public static Builder builder() { public static Builder builder(BudgetCostTypes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean includeCredit; private @Nullable Boolean includeDiscount; @@ -191,11 +166,7 @@ public static final class Builder { private @Nullable Boolean includeUpfront; private @Nullable Boolean useAmortized; private @Nullable Boolean useBlended; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BudgetCostTypes defaults) { Objects.requireNonNull(defaults); this.includeCredit = defaults.includeCredit; @@ -211,51 +182,75 @@ public Builder(BudgetCostTypes defaults) { this.useBlended = defaults.useBlended; } + @CustomType.Setter public Builder includeCredit(@Nullable Boolean includeCredit) { this.includeCredit = includeCredit; return this; } + @CustomType.Setter public Builder includeDiscount(@Nullable Boolean includeDiscount) { this.includeDiscount = includeDiscount; return this; } + @CustomType.Setter public Builder includeOtherSubscription(@Nullable Boolean includeOtherSubscription) { this.includeOtherSubscription = includeOtherSubscription; return this; } + @CustomType.Setter public Builder includeRecurring(@Nullable Boolean includeRecurring) { this.includeRecurring = includeRecurring; return this; } + @CustomType.Setter public Builder includeRefund(@Nullable Boolean includeRefund) { this.includeRefund = includeRefund; return this; } + @CustomType.Setter public Builder includeSubscription(@Nullable Boolean includeSubscription) { this.includeSubscription = includeSubscription; return this; } + @CustomType.Setter public Builder includeSupport(@Nullable Boolean includeSupport) { this.includeSupport = includeSupport; return this; } + @CustomType.Setter public Builder includeTax(@Nullable Boolean includeTax) { this.includeTax = includeTax; return this; } + @CustomType.Setter public Builder includeUpfront(@Nullable Boolean includeUpfront) { this.includeUpfront = includeUpfront; return this; } + @CustomType.Setter public Builder useAmortized(@Nullable Boolean useAmortized) { this.useAmortized = useAmortized; return this; } + @CustomType.Setter public Builder useBlended(@Nullable Boolean useBlended) { this.useBlended = useBlended; return this; - } public BudgetCostTypes build() { - return new BudgetCostTypes(includeCredit, includeDiscount, includeOtherSubscription, includeRecurring, includeRefund, includeSubscription, includeSupport, includeTax, includeUpfront, useAmortized, useBlended); + } + public BudgetCostTypes build() { + final var o = new BudgetCostTypes(); + o.includeCredit = includeCredit; + o.includeDiscount = includeDiscount; + o.includeOtherSubscription = includeOtherSubscription; + o.includeRecurring = includeRecurring; + o.includeRefund = includeRefund; + o.includeSubscription = includeSubscription; + o.includeSupport = includeSupport; + o.includeTax = includeTax; + o.includeUpfront = includeUpfront; + o.useAmortized = useAmortized; + o.useBlended = useBlended; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetNotification.java b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetNotification.java index d4fd7f8e6c2..66a43a1631b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetNotification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/budgets/outputs/BudgetNotification.java @@ -16,49 +16,34 @@ public final class BudgetNotification { * @return (Required) Comparison operator to use to evaluate the condition. Can be `LESS_THAN`, `EQUAL_TO` or `GREATER_THAN`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return (Required) What kind of budget value to notify on. Can be `ACTUAL` or `FORECASTED` * */ - private final String notificationType; + private String notificationType; /** * @return (Optional) E-Mail addresses to notify. Either this or `subscriber_sns_topic_arns` is required. * */ - private final @Nullable List subscriberEmailAddresses; + private @Nullable List subscriberEmailAddresses; /** * @return (Optional) SNS topics to notify. Either this or `subscriber_email_addresses` is required. * */ - private final @Nullable List subscriberSnsTopicArns; + private @Nullable List subscriberSnsTopicArns; /** * @return (Required) Threshold when the notification should be sent. * */ - private final Double threshold; + private Double threshold; /** * @return (Required) What kind of threshold is defined. Can be `PERCENTAGE` OR `ABSOLUTE_VALUE`. * */ - private final String thresholdType; - - @CustomType.Constructor - private BudgetNotification( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("notificationType") String notificationType, - @CustomType.Parameter("subscriberEmailAddresses") @Nullable List subscriberEmailAddresses, - @CustomType.Parameter("subscriberSnsTopicArns") @Nullable List subscriberSnsTopicArns, - @CustomType.Parameter("threshold") Double threshold, - @CustomType.Parameter("thresholdType") String thresholdType) { - this.comparisonOperator = comparisonOperator; - this.notificationType = notificationType; - this.subscriberEmailAddresses = subscriberEmailAddresses; - this.subscriberSnsTopicArns = subscriberSnsTopicArns; - this.threshold = threshold; - this.thresholdType = thresholdType; - } + private String thresholdType; + private BudgetNotification() {} /** * @return (Required) Comparison operator to use to evaluate the condition. Can be `LESS_THAN`, `EQUAL_TO` or `GREATER_THAN`. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(BudgetNotification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private String notificationType; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable List subscriberSnsTopicArns; private Double threshold; private String thresholdType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BudgetNotification defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -132,14 +113,17 @@ public Builder(BudgetNotification defaults) { this.thresholdType = defaults.thresholdType; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder notificationType(String notificationType) { this.notificationType = Objects.requireNonNull(notificationType); return this; } + @CustomType.Setter public Builder subscriberEmailAddresses(@Nullable List subscriberEmailAddresses) { this.subscriberEmailAddresses = subscriberEmailAddresses; return this; @@ -147,6 +131,7 @@ public Builder subscriberEmailAddresses(@Nullable List subscriberEmailAd public Builder subscriberEmailAddresses(String... subscriberEmailAddresses) { return subscriberEmailAddresses(List.of(subscriberEmailAddresses)); } + @CustomType.Setter public Builder subscriberSnsTopicArns(@Nullable List subscriberSnsTopicArns) { this.subscriberSnsTopicArns = subscriberSnsTopicArns; return this; @@ -154,15 +139,25 @@ public Builder subscriberSnsTopicArns(@Nullable List subscriberSnsTopicA public Builder subscriberSnsTopicArns(String... subscriberSnsTopicArns) { return subscriberSnsTopicArns(List.of(subscriberSnsTopicArns)); } + @CustomType.Setter public Builder threshold(Double threshold) { this.threshold = Objects.requireNonNull(threshold); return this; } + @CustomType.Setter public Builder thresholdType(String thresholdType) { this.thresholdType = Objects.requireNonNull(thresholdType); return this; - } public BudgetNotification build() { - return new BudgetNotification(comparisonOperator, notificationType, subscriberEmailAddresses, subscriberSnsTopicArns, threshold, thresholdType); + } + public BudgetNotification build() { + final var o = new BudgetNotification(); + o.comparisonOperator = comparisonOperator; + o.notificationType = notificationType; + o.subscriberEmailAddresses = subscriberEmailAddresses; + o.subscriberSnsTopicArns = subscriberSnsTopicArns; + o.threshold = threshold; + o.thresholdType = thresholdType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/ConfigurationAggregatorAccountAggregationSource.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/ConfigurationAggregatorAccountAggregationSource.java index 30cd9bde3a5..e0b3612aeb5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/ConfigurationAggregatorAccountAggregationSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/ConfigurationAggregatorAccountAggregationSource.java @@ -17,28 +17,19 @@ public final class ConfigurationAggregatorAccountAggregationSource { * @return List of 12-digit account IDs of the account(s) being aggregated. * */ - private final List accountIds; + private List accountIds; /** * @return If true, aggregate existing AWS Config regions and future regions. * */ - private final @Nullable Boolean allRegions; + private @Nullable Boolean allRegions; /** * @return List of source regions being aggregated. * */ - private final @Nullable List regions; - - @CustomType.Constructor - private ConfigurationAggregatorAccountAggregationSource( - @CustomType.Parameter("accountIds") List accountIds, - @CustomType.Parameter("allRegions") @Nullable Boolean allRegions, - @CustomType.Parameter("regions") @Nullable List regions) { - this.accountIds = accountIds; - this.allRegions = allRegions; - this.regions = regions; - } + private @Nullable List regions; + private ConfigurationAggregatorAccountAggregationSource() {} /** * @return List of 12-digit account IDs of the account(s) being aggregated. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(ConfigurationAggregatorAccountAggregationSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List accountIds; private @Nullable Boolean allRegions; private @Nullable List regions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConfigurationAggregatorAccountAggregationSource defaults) { Objects.requireNonNull(defaults); this.accountIds = defaults.accountIds; @@ -85,6 +72,7 @@ public Builder(ConfigurationAggregatorAccountAggregationSource defaults) { this.regions = defaults.regions; } + @CustomType.Setter public Builder accountIds(List accountIds) { this.accountIds = Objects.requireNonNull(accountIds); return this; @@ -92,18 +80,25 @@ public Builder accountIds(List accountIds) { public Builder accountIds(String... accountIds) { return accountIds(List.of(accountIds)); } + @CustomType.Setter public Builder allRegions(@Nullable Boolean allRegions) { this.allRegions = allRegions; return this; } + @CustomType.Setter public Builder regions(@Nullable List regions) { this.regions = regions; return this; } public Builder regions(String... regions) { return regions(List.of(regions)); - } public ConfigurationAggregatorAccountAggregationSource build() { - return new ConfigurationAggregatorAccountAggregationSource(accountIds, allRegions, regions); + } + public ConfigurationAggregatorAccountAggregationSource build() { + final var o = new ConfigurationAggregatorAccountAggregationSource(); + o.accountIds = accountIds; + o.allRegions = allRegions; + o.regions = regions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/ConfigurationAggregatorOrganizationAggregationSource.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/ConfigurationAggregatorOrganizationAggregationSource.java index 92b39a0f1f7..6b152fc86c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/ConfigurationAggregatorOrganizationAggregationSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/ConfigurationAggregatorOrganizationAggregationSource.java @@ -17,28 +17,19 @@ public final class ConfigurationAggregatorOrganizationAggregationSource { * @return If true, aggregate existing AWS Config regions and future regions. * */ - private final @Nullable Boolean allRegions; + private @Nullable Boolean allRegions; /** * @return List of source regions being aggregated. * */ - private final @Nullable List regions; + private @Nullable List regions; /** * @return ARN of the IAM role used to retrieve AWS Organization details associated with the aggregator account. * */ - private final String roleArn; - - @CustomType.Constructor - private ConfigurationAggregatorOrganizationAggregationSource( - @CustomType.Parameter("allRegions") @Nullable Boolean allRegions, - @CustomType.Parameter("regions") @Nullable List regions, - @CustomType.Parameter("roleArn") String roleArn) { - this.allRegions = allRegions; - this.regions = regions; - this.roleArn = roleArn; - } + private String roleArn; + private ConfigurationAggregatorOrganizationAggregationSource() {} /** * @return If true, aggregate existing AWS Config regions and future regions. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(ConfigurationAggregatorOrganizationAggregationSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allRegions; private @Nullable List regions; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConfigurationAggregatorOrganizationAggregationSource defaults) { Objects.requireNonNull(defaults); this.allRegions = defaults.allRegions; @@ -85,10 +72,12 @@ public Builder(ConfigurationAggregatorOrganizationAggregationSource defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder allRegions(@Nullable Boolean allRegions) { this.allRegions = allRegions; return this; } + @CustomType.Setter public Builder regions(@Nullable List regions) { this.regions = regions; return this; @@ -96,11 +85,17 @@ public Builder regions(@Nullable List regions) { public Builder regions(String... regions) { return regions(List.of(regions)); } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public ConfigurationAggregatorOrganizationAggregationSource build() { - return new ConfigurationAggregatorOrganizationAggregationSource(allRegions, regions, roleArn); + } + public ConfigurationAggregatorOrganizationAggregationSource build() { + final var o = new ConfigurationAggregatorOrganizationAggregationSource(); + o.allRegions = allRegions; + o.regions = regions; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/ConformancePackInputParameter.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/ConformancePackInputParameter.java index 782e61749cb..0b7c5e18e46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/ConformancePackInputParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/ConformancePackInputParameter.java @@ -13,21 +13,14 @@ public final class ConformancePackInputParameter { * @return The input key. * */ - private final String parameterName; + private String parameterName; /** * @return The input value. * */ - private final String parameterValue; - - @CustomType.Constructor - private ConformancePackInputParameter( - @CustomType.Parameter("parameterName") String parameterName, - @CustomType.Parameter("parameterValue") String parameterValue) { - this.parameterName = parameterName; - this.parameterValue = parameterValue; - } + private String parameterValue; + private ConformancePackInputParameter() {} /** * @return The input key. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ConformancePackInputParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String parameterName; private String parameterValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConformancePackInputParameter defaults) { Objects.requireNonNull(defaults); this.parameterName = defaults.parameterName; this.parameterValue = defaults.parameterValue; } + @CustomType.Setter public Builder parameterName(String parameterName) { this.parameterName = Objects.requireNonNull(parameterName); return this; } + @CustomType.Setter public Builder parameterValue(String parameterValue) { this.parameterValue = Objects.requireNonNull(parameterValue); return this; - } public ConformancePackInputParameter build() { - return new ConformancePackInputParameter(parameterName, parameterValue); + } + public ConformancePackInputParameter build() { + final var o = new ConformancePackInputParameter(); + o.parameterName = parameterName; + o.parameterValue = parameterValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/DeliveryChannelSnapshotDeliveryProperties.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/DeliveryChannelSnapshotDeliveryProperties.java index 9cee6abab44..e13f250823c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/DeliveryChannelSnapshotDeliveryProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/DeliveryChannelSnapshotDeliveryProperties.java @@ -15,13 +15,9 @@ public final class DeliveryChannelSnapshotDeliveryProperties { * @return - The frequency with which AWS Config recurringly delivers configuration snapshotsE.g., `One_Hour` or `Three_Hours`. Valid values are listed [here](https://docs.aws.amazon.com/config/latest/APIReference/API_ConfigSnapshotDeliveryProperties.html#API_ConfigSnapshotDeliveryProperties_Contents). * */ - private final @Nullable String deliveryFrequency; - - @CustomType.Constructor - private DeliveryChannelSnapshotDeliveryProperties(@CustomType.Parameter("deliveryFrequency") @Nullable String deliveryFrequency) { - this.deliveryFrequency = deliveryFrequency; - } + private @Nullable String deliveryFrequency; + private DeliveryChannelSnapshotDeliveryProperties() {} /** * @return - The frequency with which AWS Config recurringly delivers configuration snapshotsE.g., `One_Hour` or `Three_Hours`. Valid values are listed [here](https://docs.aws.amazon.com/config/latest/APIReference/API_ConfigSnapshotDeliveryProperties.html#API_ConfigSnapshotDeliveryProperties_Contents). * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DeliveryChannelSnapshotDeliveryProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deliveryFrequency; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeliveryChannelSnapshotDeliveryProperties defaults) { Objects.requireNonNull(defaults); this.deliveryFrequency = defaults.deliveryFrequency; } + @CustomType.Setter public Builder deliveryFrequency(@Nullable String deliveryFrequency) { this.deliveryFrequency = deliveryFrequency; return this; - } public DeliveryChannelSnapshotDeliveryProperties build() { - return new DeliveryChannelSnapshotDeliveryProperties(deliveryFrequency); + } + public DeliveryChannelSnapshotDeliveryProperties build() { + final var o = new DeliveryChannelSnapshotDeliveryProperties(); + o.deliveryFrequency = deliveryFrequency; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/OrganizationConformancePackInputParameter.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/OrganizationConformancePackInputParameter.java index 9d28d1f74cc..b0a018640fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/OrganizationConformancePackInputParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/OrganizationConformancePackInputParameter.java @@ -13,21 +13,14 @@ public final class OrganizationConformancePackInputParameter { * @return The input key. * */ - private final String parameterName; + private String parameterName; /** * @return The input value. * */ - private final String parameterValue; - - @CustomType.Constructor - private OrganizationConformancePackInputParameter( - @CustomType.Parameter("parameterName") String parameterName, - @CustomType.Parameter("parameterValue") String parameterValue) { - this.parameterName = parameterName; - this.parameterValue = parameterValue; - } + private String parameterValue; + private OrganizationConformancePackInputParameter() {} /** * @return The input key. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(OrganizationConformancePackInputParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String parameterName; private String parameterValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationConformancePackInputParameter defaults) { Objects.requireNonNull(defaults); this.parameterName = defaults.parameterName; this.parameterValue = defaults.parameterValue; } + @CustomType.Setter public Builder parameterName(String parameterName) { this.parameterName = Objects.requireNonNull(parameterName); return this; } + @CustomType.Setter public Builder parameterValue(String parameterValue) { this.parameterValue = Objects.requireNonNull(parameterValue); return this; - } public OrganizationConformancePackInputParameter build() { - return new OrganizationConformancePackInputParameter(parameterName, parameterValue); + } + public OrganizationConformancePackInputParameter build() { + final var o = new OrganizationConformancePackInputParameter(); + o.parameterName = parameterName; + o.parameterValue = parameterValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RecorderRecordingGroup.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RecorderRecordingGroup.java index 139fd5ff55a..4337b2a2700 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RecorderRecordingGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RecorderRecordingGroup.java @@ -17,28 +17,19 @@ public final class RecorderRecordingGroup { * @return Specifies whether AWS Config records configuration changes for every supported type of regional resource (which includes any new type that will become supported in the future). Conflicts with `resource_types`. Defaults to `true`. * */ - private final @Nullable Boolean allSupported; + private @Nullable Boolean allSupported; /** * @return Specifies whether AWS Config includes all supported types of *global resources* with the resources that it records. Requires `all_supported = true`. Conflicts with `resource_types`. * */ - private final @Nullable Boolean includeGlobalResourceTypes; + private @Nullable Boolean includeGlobalResourceTypes; /** * @return A list that specifies the types of AWS resources for which AWS Config records configuration changes (for example, `AWS::EC2::Instance` or `AWS::CloudTrail::Trail`). See [relevant part of AWS Docs](http://docs.aws.amazon.com/config/latest/APIReference/API_ResourceIdentifier.html#config-Type-ResourceIdentifier-resourceType) for available types. In order to use this attribute, `all_supported` must be set to false. * */ - private final @Nullable List resourceTypes; - - @CustomType.Constructor - private RecorderRecordingGroup( - @CustomType.Parameter("allSupported") @Nullable Boolean allSupported, - @CustomType.Parameter("includeGlobalResourceTypes") @Nullable Boolean includeGlobalResourceTypes, - @CustomType.Parameter("resourceTypes") @Nullable List resourceTypes) { - this.allSupported = allSupported; - this.includeGlobalResourceTypes = includeGlobalResourceTypes; - this.resourceTypes = resourceTypes; - } + private @Nullable List resourceTypes; + private RecorderRecordingGroup() {} /** * @return Specifies whether AWS Config records configuration changes for every supported type of regional resource (which includes any new type that will become supported in the future). Conflicts with `resource_types`. Defaults to `true`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(RecorderRecordingGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allSupported; private @Nullable Boolean includeGlobalResourceTypes; private @Nullable List resourceTypes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RecorderRecordingGroup defaults) { Objects.requireNonNull(defaults); this.allSupported = defaults.allSupported; @@ -85,22 +72,30 @@ public Builder(RecorderRecordingGroup defaults) { this.resourceTypes = defaults.resourceTypes; } + @CustomType.Setter public Builder allSupported(@Nullable Boolean allSupported) { this.allSupported = allSupported; return this; } + @CustomType.Setter public Builder includeGlobalResourceTypes(@Nullable Boolean includeGlobalResourceTypes) { this.includeGlobalResourceTypes = includeGlobalResourceTypes; return this; } + @CustomType.Setter public Builder resourceTypes(@Nullable List resourceTypes) { this.resourceTypes = resourceTypes; return this; } public Builder resourceTypes(String... resourceTypes) { return resourceTypes(List.of(resourceTypes)); - } public RecorderRecordingGroup build() { - return new RecorderRecordingGroup(allSupported, includeGlobalResourceTypes, resourceTypes); + } + public RecorderRecordingGroup build() { + final var o = new RecorderRecordingGroup(); + o.allSupported = allSupported; + o.includeGlobalResourceTypes = includeGlobalResourceTypes; + o.resourceTypes = resourceTypes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RemediationConfigurationExecutionControls.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RemediationConfigurationExecutionControls.java index 9ffbb6756d6..8de4fda5965 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RemediationConfigurationExecutionControls.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RemediationConfigurationExecutionControls.java @@ -15,13 +15,9 @@ public final class RemediationConfigurationExecutionControls { * @return Configuration block for SSM controls. See below. * */ - private final @Nullable RemediationConfigurationExecutionControlsSsmControls ssmControls; - - @CustomType.Constructor - private RemediationConfigurationExecutionControls(@CustomType.Parameter("ssmControls") @Nullable RemediationConfigurationExecutionControlsSsmControls ssmControls) { - this.ssmControls = ssmControls; - } + private @Nullable RemediationConfigurationExecutionControlsSsmControls ssmControls; + private RemediationConfigurationExecutionControls() {} /** * @return Configuration block for SSM controls. See below. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(RemediationConfigurationExecutionControls defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RemediationConfigurationExecutionControlsSsmControls ssmControls; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RemediationConfigurationExecutionControls defaults) { Objects.requireNonNull(defaults); this.ssmControls = defaults.ssmControls; } + @CustomType.Setter public Builder ssmControls(@Nullable RemediationConfigurationExecutionControlsSsmControls ssmControls) { this.ssmControls = ssmControls; return this; - } public RemediationConfigurationExecutionControls build() { - return new RemediationConfigurationExecutionControls(ssmControls); + } + public RemediationConfigurationExecutionControls build() { + final var o = new RemediationConfigurationExecutionControls(); + o.ssmControls = ssmControls; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RemediationConfigurationExecutionControlsSsmControls.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RemediationConfigurationExecutionControlsSsmControls.java index ffe22c8f3e6..c2a52b2eb15 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RemediationConfigurationExecutionControlsSsmControls.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RemediationConfigurationExecutionControlsSsmControls.java @@ -15,21 +15,14 @@ public final class RemediationConfigurationExecutionControlsSsmControls { * @return Maximum percentage of remediation actions allowed to run in parallel on the non-compliant resources for that specific rule. The default value is 10%. * */ - private final @Nullable Integer concurrentExecutionRatePercentage; + private @Nullable Integer concurrentExecutionRatePercentage; /** * @return Percentage of errors that are allowed before SSM stops running automations on non-compliant resources for that specific rule. The default is 50%. * */ - private final @Nullable Integer errorPercentage; - - @CustomType.Constructor - private RemediationConfigurationExecutionControlsSsmControls( - @CustomType.Parameter("concurrentExecutionRatePercentage") @Nullable Integer concurrentExecutionRatePercentage, - @CustomType.Parameter("errorPercentage") @Nullable Integer errorPercentage) { - this.concurrentExecutionRatePercentage = concurrentExecutionRatePercentage; - this.errorPercentage = errorPercentage; - } + private @Nullable Integer errorPercentage; + private RemediationConfigurationExecutionControlsSsmControls() {} /** * @return Maximum percentage of remediation actions allowed to run in parallel on the non-compliant resources for that specific rule. The default value is 10%. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(RemediationConfigurationExecutionControlsSsmControls defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer concurrentExecutionRatePercentage; private @Nullable Integer errorPercentage; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RemediationConfigurationExecutionControlsSsmControls defaults) { Objects.requireNonNull(defaults); this.concurrentExecutionRatePercentage = defaults.concurrentExecutionRatePercentage; this.errorPercentage = defaults.errorPercentage; } + @CustomType.Setter public Builder concurrentExecutionRatePercentage(@Nullable Integer concurrentExecutionRatePercentage) { this.concurrentExecutionRatePercentage = concurrentExecutionRatePercentage; return this; } + @CustomType.Setter public Builder errorPercentage(@Nullable Integer errorPercentage) { this.errorPercentage = errorPercentage; return this; - } public RemediationConfigurationExecutionControlsSsmControls build() { - return new RemediationConfigurationExecutionControlsSsmControls(concurrentExecutionRatePercentage, errorPercentage); + } + public RemediationConfigurationExecutionControlsSsmControls build() { + final var o = new RemediationConfigurationExecutionControlsSsmControls(); + o.concurrentExecutionRatePercentage = concurrentExecutionRatePercentage; + o.errorPercentage = errorPercentage; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RemediationConfigurationParameter.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RemediationConfigurationParameter.java index c5a49c6d8a0..f8a515003eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RemediationConfigurationParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RemediationConfigurationParameter.java @@ -16,35 +16,24 @@ public final class RemediationConfigurationParameter { * @return Name of the attribute. * */ - private final String name; + private String name; /** * @return Value is dynamic and changes at run-time. * */ - private final @Nullable String resourceValue; + private @Nullable String resourceValue; /** * @return Value is static and does not change at run-time. * */ - private final @Nullable String staticValue; + private @Nullable String staticValue; /** * @return List of static values. * */ - private final @Nullable List staticValues; - - @CustomType.Constructor - private RemediationConfigurationParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("resourceValue") @Nullable String resourceValue, - @CustomType.Parameter("staticValue") @Nullable String staticValue, - @CustomType.Parameter("staticValues") @Nullable List staticValues) { - this.name = name; - this.resourceValue = resourceValue; - this.staticValue = staticValue; - this.staticValues = staticValues; - } + private @Nullable List staticValues; + private RemediationConfigurationParameter() {} /** * @return Name of the attribute. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(RemediationConfigurationParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private @Nullable String resourceValue; private @Nullable String staticValue; private @Nullable List staticValues; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RemediationConfigurationParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -100,26 +85,36 @@ public Builder(RemediationConfigurationParameter defaults) { this.staticValues = defaults.staticValues; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder resourceValue(@Nullable String resourceValue) { this.resourceValue = resourceValue; return this; } + @CustomType.Setter public Builder staticValue(@Nullable String staticValue) { this.staticValue = staticValue; return this; } + @CustomType.Setter public Builder staticValues(@Nullable List staticValues) { this.staticValues = staticValues; return this; } public Builder staticValues(String... staticValues) { return staticValues(List.of(staticValues)); - } public RemediationConfigurationParameter build() { - return new RemediationConfigurationParameter(name, resourceValue, staticValue, staticValues); + } + public RemediationConfigurationParameter build() { + final var o = new RemediationConfigurationParameter(); + o.name = name; + o.resourceValue = resourceValue; + o.staticValue = staticValue; + o.staticValues = staticValues; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleScope.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleScope.java index 9787a86ba96..e7e4b51ba1c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleScope.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleScope.java @@ -16,35 +16,24 @@ public final class RuleScope { * @return The IDs of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for `compliance_resource_types`. * */ - private final @Nullable String complianceResourceId; + private @Nullable String complianceResourceId; /** * @return A list of resource types of only those AWS resources that you want to trigger an evaluation for the ruleE.g., `AWS::EC2::Instance`. You can only specify one type if you also specify a resource ID for `compliance_resource_id`. See [relevant part of AWS Docs](http://docs.aws.amazon.com/config/latest/APIReference/API_ResourceIdentifier.html#config-Type-ResourceIdentifier-resourceType) for available types. * */ - private final @Nullable List complianceResourceTypes; + private @Nullable List complianceResourceTypes; /** * @return The tag key that is applied to only those AWS resources that you want you want to trigger an evaluation for the rule. * */ - private final @Nullable String tagKey; + private @Nullable String tagKey; /** * @return The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule. * */ - private final @Nullable String tagValue; - - @CustomType.Constructor - private RuleScope( - @CustomType.Parameter("complianceResourceId") @Nullable String complianceResourceId, - @CustomType.Parameter("complianceResourceTypes") @Nullable List complianceResourceTypes, - @CustomType.Parameter("tagKey") @Nullable String tagKey, - @CustomType.Parameter("tagValue") @Nullable String tagValue) { - this.complianceResourceId = complianceResourceId; - this.complianceResourceTypes = complianceResourceTypes; - this.tagKey = tagKey; - this.tagValue = tagValue; - } + private @Nullable String tagValue; + private RuleScope() {} /** * @return The IDs of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for `compliance_resource_types`. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(RuleScope defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String complianceResourceId; private @Nullable List complianceResourceTypes; private @Nullable String tagKey; private @Nullable String tagValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleScope defaults) { Objects.requireNonNull(defaults); this.complianceResourceId = defaults.complianceResourceId; @@ -100,10 +85,12 @@ public Builder(RuleScope defaults) { this.tagValue = defaults.tagValue; } + @CustomType.Setter public Builder complianceResourceId(@Nullable String complianceResourceId) { this.complianceResourceId = complianceResourceId; return this; } + @CustomType.Setter public Builder complianceResourceTypes(@Nullable List complianceResourceTypes) { this.complianceResourceTypes = complianceResourceTypes; return this; @@ -111,15 +98,23 @@ public Builder complianceResourceTypes(@Nullable List complianceResource public Builder complianceResourceTypes(String... complianceResourceTypes) { return complianceResourceTypes(List.of(complianceResourceTypes)); } + @CustomType.Setter public Builder tagKey(@Nullable String tagKey) { this.tagKey = tagKey; return this; } + @CustomType.Setter public Builder tagValue(@Nullable String tagValue) { this.tagValue = tagValue; return this; - } public RuleScope build() { - return new RuleScope(complianceResourceId, complianceResourceTypes, tagKey, tagValue); + } + public RuleScope build() { + final var o = new RuleScope(); + o.complianceResourceId = complianceResourceId; + o.complianceResourceTypes = complianceResourceTypes; + o.tagKey = tagKey; + o.tagValue = tagValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleSource.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleSource.java index b263c36349b..d853a1a6bbf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleSource.java @@ -18,35 +18,24 @@ public final class RuleSource { * @return Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to `CUSTOM_POLICY`. See Custom Policy Details Below. * */ - private final @Nullable RuleSourceCustomPolicyDetails customPolicyDetails; + private @Nullable RuleSourceCustomPolicyDetails customPolicyDetails; /** * @return Indicates whether AWS or the customer owns and manages the AWS Config rule. Valid values are `AWS`, `CUSTOM_LAMBDA` or `CUSTOM_POLICY`. For more information about managed rules, see the [AWS Config Managed Rules documentation](https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html). For more information about custom rules, see the [AWS Config Custom Rules documentation](https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_develop-rules.html). Custom Lambda Functions require permissions to allow the AWS Config service to invoke them, e.g., via the [`aws.lambda.Permission` resource](https://www.terraform.io/docs/providers/aws/r/lambda_permission.html). * */ - private final String owner; + private String owner; /** * @return Provides the source and type of the event that causes AWS Config to evaluate your AWS resources. Only valid if `owner` is `CUSTOM_LAMBDA` or `CUSTOM_POLICY`. See Source Detail Below. * */ - private final @Nullable List sourceDetails; + private @Nullable List sourceDetails; /** * @return For AWS Config managed rules, a predefined identifier, e.g `IAM_PASSWORD_POLICY`. For custom Lambda rules, the identifier is the ARN of the Lambda Function, such as `arn:aws:lambda:us-east-1:123456789012:function:custom_rule_name` or the [`arn` attribute of the `aws.lambda.Function` resource](https://www.terraform.io/docs/providers/aws/r/lambda_function.html#arn). * */ - private final @Nullable String sourceIdentifier; - - @CustomType.Constructor - private RuleSource( - @CustomType.Parameter("customPolicyDetails") @Nullable RuleSourceCustomPolicyDetails customPolicyDetails, - @CustomType.Parameter("owner") String owner, - @CustomType.Parameter("sourceDetails") @Nullable List sourceDetails, - @CustomType.Parameter("sourceIdentifier") @Nullable String sourceIdentifier) { - this.customPolicyDetails = customPolicyDetails; - this.owner = owner; - this.sourceDetails = sourceDetails; - this.sourceIdentifier = sourceIdentifier; - } + private @Nullable String sourceIdentifier; + private RuleSource() {} /** * @return Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to `CUSTOM_POLICY`. See Custom Policy Details Below. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleSourceCustomPolicyDetails customPolicyDetails; private String owner; private @Nullable List sourceDetails; private @Nullable String sourceIdentifier; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleSource defaults) { Objects.requireNonNull(defaults); this.customPolicyDetails = defaults.customPolicyDetails; @@ -102,14 +87,17 @@ public Builder(RuleSource defaults) { this.sourceIdentifier = defaults.sourceIdentifier; } + @CustomType.Setter public Builder customPolicyDetails(@Nullable RuleSourceCustomPolicyDetails customPolicyDetails) { this.customPolicyDetails = customPolicyDetails; return this; } + @CustomType.Setter public Builder owner(String owner) { this.owner = Objects.requireNonNull(owner); return this; } + @CustomType.Setter public Builder sourceDetails(@Nullable List sourceDetails) { this.sourceDetails = sourceDetails; return this; @@ -117,11 +105,18 @@ public Builder sourceDetails(@Nullable List sourceDetail public Builder sourceDetails(RuleSourceSourceDetail... sourceDetails) { return sourceDetails(List.of(sourceDetails)); } + @CustomType.Setter public Builder sourceIdentifier(@Nullable String sourceIdentifier) { this.sourceIdentifier = sourceIdentifier; return this; - } public RuleSource build() { - return new RuleSource(customPolicyDetails, owner, sourceDetails, sourceIdentifier); + } + public RuleSource build() { + final var o = new RuleSource(); + o.customPolicyDetails = customPolicyDetails; + o.owner = owner; + o.sourceDetails = sourceDetails; + o.sourceIdentifier = sourceIdentifier; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleSourceCustomPolicyDetails.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleSourceCustomPolicyDetails.java index 274e7b5ea47..075aabcf8e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleSourceCustomPolicyDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleSourceCustomPolicyDetails.java @@ -16,28 +16,19 @@ public final class RuleSourceCustomPolicyDetails { * @return The boolean expression for enabling debug logging for your Config Custom Policy rule. The default value is `false`. * */ - private final @Nullable Boolean enableDebugLogDelivery; + private @Nullable Boolean enableDebugLogDelivery; /** * @return The runtime system for your Config Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by Config Custom Policy rules. For more information about Guard, see the [Guard GitHub Repository](https://github.com/aws-cloudformation/cloudformation-guard). * */ - private final String policyRuntime; + private String policyRuntime; /** * @return The policy definition containing the logic for your Config Custom Policy rule. * */ - private final String policyText; - - @CustomType.Constructor - private RuleSourceCustomPolicyDetails( - @CustomType.Parameter("enableDebugLogDelivery") @Nullable Boolean enableDebugLogDelivery, - @CustomType.Parameter("policyRuntime") String policyRuntime, - @CustomType.Parameter("policyText") String policyText) { - this.enableDebugLogDelivery = enableDebugLogDelivery; - this.policyRuntime = policyRuntime; - this.policyText = policyText; - } + private String policyText; + private RuleSourceCustomPolicyDetails() {} /** * @return The boolean expression for enabling debug logging for your Config Custom Policy rule. The default value is `false`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(RuleSourceCustomPolicyDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enableDebugLogDelivery; private String policyRuntime; private String policyText; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleSourceCustomPolicyDetails defaults) { Objects.requireNonNull(defaults); this.enableDebugLogDelivery = defaults.enableDebugLogDelivery; @@ -84,19 +71,27 @@ public Builder(RuleSourceCustomPolicyDetails defaults) { this.policyText = defaults.policyText; } + @CustomType.Setter public Builder enableDebugLogDelivery(@Nullable Boolean enableDebugLogDelivery) { this.enableDebugLogDelivery = enableDebugLogDelivery; return this; } + @CustomType.Setter public Builder policyRuntime(String policyRuntime) { this.policyRuntime = Objects.requireNonNull(policyRuntime); return this; } + @CustomType.Setter public Builder policyText(String policyText) { this.policyText = Objects.requireNonNull(policyText); return this; - } public RuleSourceCustomPolicyDetails build() { - return new RuleSourceCustomPolicyDetails(enableDebugLogDelivery, policyRuntime, policyText); + } + public RuleSourceCustomPolicyDetails build() { + final var o = new RuleSourceCustomPolicyDetails(); + o.enableDebugLogDelivery = enableDebugLogDelivery; + o.policyRuntime = policyRuntime; + o.policyText = policyText; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleSourceSourceDetail.java b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleSourceSourceDetail.java index bfff043d293..3acb78164e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleSourceSourceDetail.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cfg/outputs/RuleSourceSourceDetail.java @@ -15,28 +15,19 @@ public final class RuleSourceSourceDetail { * @return The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWSresources. This defaults to `aws.config` and is the only valid value. * */ - private final @Nullable String eventSource; + private @Nullable String eventSource; /** * @return The frequency that you want AWS Config to run evaluations for a rule that istriggered periodically. If specified, requires `message_type` to be `ScheduledNotification`. * */ - private final @Nullable String maximumExecutionFrequency; + private @Nullable String maximumExecutionFrequency; /** * @return The type of notification that triggers AWS Config to run an evaluation for a rule. You canspecify the following notification types: * */ - private final @Nullable String messageType; - - @CustomType.Constructor - private RuleSourceSourceDetail( - @CustomType.Parameter("eventSource") @Nullable String eventSource, - @CustomType.Parameter("maximumExecutionFrequency") @Nullable String maximumExecutionFrequency, - @CustomType.Parameter("messageType") @Nullable String messageType) { - this.eventSource = eventSource; - this.maximumExecutionFrequency = maximumExecutionFrequency; - this.messageType = messageType; - } + private @Nullable String messageType; + private RuleSourceSourceDetail() {} /** * @return The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWSresources. This defaults to `aws.config` and is the only valid value. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(RuleSourceSourceDetail defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String eventSource; private @Nullable String maximumExecutionFrequency; private @Nullable String messageType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleSourceSourceDetail defaults) { Objects.requireNonNull(defaults); this.eventSource = defaults.eventSource; @@ -83,19 +70,27 @@ public Builder(RuleSourceSourceDetail defaults) { this.messageType = defaults.messageType; } + @CustomType.Setter public Builder eventSource(@Nullable String eventSource) { this.eventSource = eventSource; return this; } + @CustomType.Setter public Builder maximumExecutionFrequency(@Nullable String maximumExecutionFrequency) { this.maximumExecutionFrequency = maximumExecutionFrequency; return this; } + @CustomType.Setter public Builder messageType(@Nullable String messageType) { this.messageType = messageType; return this; - } public RuleSourceSourceDetail build() { - return new RuleSourceSourceDetail(eventSource, maximumExecutionFrequency, messageType); + } + public RuleSourceSourceDetail build() { + final var o = new RuleSourceSourceDetail(); + o.eventSource = eventSource; + o.maximumExecutionFrequency = maximumExecutionFrequency; + o.messageType = messageType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/chime/outputs/VoiceConnectorGroupConnector.java b/sdk/java/src/main/java/com/pulumi/aws/chime/outputs/VoiceConnectorGroupConnector.java index 6b2289310f5..66beb22d60a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/chime/outputs/VoiceConnectorGroupConnector.java +++ b/sdk/java/src/main/java/com/pulumi/aws/chime/outputs/VoiceConnectorGroupConnector.java @@ -14,21 +14,14 @@ public final class VoiceConnectorGroupConnector { * @return The priority associated with the Amazon Chime Voice Connector, with 1 being the highest priority. Higher priority Amazon Chime Voice Connectors are attempted first. * */ - private final Integer priority; + private Integer priority; /** * @return The Amazon Chime Voice Connector ID. * */ - private final String voiceConnectorId; - - @CustomType.Constructor - private VoiceConnectorGroupConnector( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("voiceConnectorId") String voiceConnectorId) { - this.priority = priority; - this.voiceConnectorId = voiceConnectorId; - } + private String voiceConnectorId; + private VoiceConnectorGroupConnector() {} /** * @return The priority associated with the Amazon Chime Voice Connector, with 1 being the highest priority. Higher priority Amazon Chime Voice Connectors are attempted first. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(VoiceConnectorGroupConnector defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String voiceConnectorId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VoiceConnectorGroupConnector defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.voiceConnectorId = defaults.voiceConnectorId; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder voiceConnectorId(String voiceConnectorId) { this.voiceConnectorId = Objects.requireNonNull(voiceConnectorId); return this; - } public VoiceConnectorGroupConnector build() { - return new VoiceConnectorGroupConnector(priority, voiceConnectorId); + } + public VoiceConnectorGroupConnector build() { + final var o = new VoiceConnectorGroupConnector(); + o.priority = priority; + o.voiceConnectorId = voiceConnectorId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/chime/outputs/VoiceConnectorOrganizationRoute.java b/sdk/java/src/main/java/com/pulumi/aws/chime/outputs/VoiceConnectorOrganizationRoute.java index 96d86ed9b16..94f37cd6e74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/chime/outputs/VoiceConnectorOrganizationRoute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/chime/outputs/VoiceConnectorOrganizationRoute.java @@ -16,42 +16,29 @@ public final class VoiceConnectorOrganizationRoute { * @return The FQDN or IP address to contact for origination traffic. * */ - private final String host; + private String host; /** * @return The designated origination route port. Defaults to `5060`. * */ - private final @Nullable Integer port; + private @Nullable Integer port; /** * @return The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first. * */ - private final Integer priority; + private Integer priority; /** * @return The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default. * */ - private final String protocol; + private String protocol; /** * @return The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight. * */ - private final Integer weight; - - @CustomType.Constructor - private VoiceConnectorOrganizationRoute( - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") @Nullable Integer port, - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("weight") Integer weight) { - this.host = host; - this.port = port; - this.priority = priority; - this.protocol = protocol; - this.weight = weight; - } + private Integer weight; + private VoiceConnectorOrganizationRoute() {} /** * @return The FQDN or IP address to contact for origination traffic. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(VoiceConnectorOrganizationRoute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String host; private @Nullable Integer port; private Integer priority; private String protocol; private Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VoiceConnectorOrganizationRoute defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -116,27 +99,39 @@ public Builder(VoiceConnectorOrganizationRoute defaults) { this.weight = defaults.weight; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder weight(Integer weight) { this.weight = Objects.requireNonNull(weight); return this; - } public VoiceConnectorOrganizationRoute build() { - return new VoiceConnectorOrganizationRoute(host, port, priority, protocol, weight); + } + public VoiceConnectorOrganizationRoute build() { + final var o = new VoiceConnectorOrganizationRoute(); + o.host = host; + o.port = port; + o.priority = priority; + o.protocol = protocol; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/chime/outputs/VoiceConnectorTerminationCredentialsCredential.java b/sdk/java/src/main/java/com/pulumi/aws/chime/outputs/VoiceConnectorTerminationCredentialsCredential.java index 4bc69078c95..3a84742b08a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/chime/outputs/VoiceConnectorTerminationCredentialsCredential.java +++ b/sdk/java/src/main/java/com/pulumi/aws/chime/outputs/VoiceConnectorTerminationCredentialsCredential.java @@ -13,21 +13,14 @@ public final class VoiceConnectorTerminationCredentialsCredential { * @return RFC2617 compliant password associated with the SIP credentials. * */ - private final String password; + private String password; /** * @return RFC2617 compliant username associated with the SIP credentials. * */ - private final String username; - - @CustomType.Constructor - private VoiceConnectorTerminationCredentialsCredential( - @CustomType.Parameter("password") String password, - @CustomType.Parameter("username") String username) { - this.password = password; - this.username = username; - } + private String username; + private VoiceConnectorTerminationCredentialsCredential() {} /** * @return RFC2617 compliant password associated with the SIP credentials. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(VoiceConnectorTerminationCredentialsCredential defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String password; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VoiceConnectorTerminationCredentialsCredential defaults) { Objects.requireNonNull(defaults); this.password = defaults.password; this.username = defaults.username; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public VoiceConnectorTerminationCredentialsCredential build() { - return new VoiceConnectorTerminationCredentialsCredential(password, username); + } + public VoiceConnectorTerminationCredentialsCredential build() { + final var o = new VoiceConnectorTerminationCredentialsCredential(); + o.password = password; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudcontrol/outputs/GetResourceResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudcontrol/outputs/GetResourceResult.java index 60e79a54232..e5327dc1a5a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudcontrol/outputs/GetResourceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudcontrol/outputs/GetResourceResult.java @@ -15,33 +15,18 @@ public final class GetResourceResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String identifier; + private String id; + private String identifier; /** * @return JSON string matching the CloudFormation resource type schema with current configuration. * */ - private final String properties; - private final @Nullable String roleArn; - private final String typeName; - private final @Nullable String typeVersionId; - - @CustomType.Constructor - private GetResourceResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("identifier") String identifier, - @CustomType.Parameter("properties") String properties, - @CustomType.Parameter("roleArn") @Nullable String roleArn, - @CustomType.Parameter("typeName") String typeName, - @CustomType.Parameter("typeVersionId") @Nullable String typeVersionId) { - this.id = id; - this.identifier = identifier; - this.properties = properties; - this.roleArn = roleArn; - this.typeName = typeName; - this.typeVersionId = typeVersionId; - } + private String properties; + private @Nullable String roleArn; + private String typeName; + private @Nullable String typeVersionId; + private GetResourceResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -76,7 +61,7 @@ public static Builder builder() { public static Builder builder(GetResourceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String identifier; @@ -84,11 +69,7 @@ public static final class Builder { private @Nullable String roleArn; private String typeName; private @Nullable String typeVersionId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResourceResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -99,31 +80,45 @@ public Builder(GetResourceResult defaults) { this.typeVersionId = defaults.typeVersionId; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder identifier(String identifier) { this.identifier = Objects.requireNonNull(identifier); return this; } + @CustomType.Setter public Builder properties(String properties) { this.properties = Objects.requireNonNull(properties); return this; } + @CustomType.Setter public Builder roleArn(@Nullable String roleArn) { this.roleArn = roleArn; return this; } + @CustomType.Setter public Builder typeName(String typeName) { this.typeName = Objects.requireNonNull(typeName); return this; } + @CustomType.Setter public Builder typeVersionId(@Nullable String typeVersionId) { this.typeVersionId = typeVersionId; return this; - } public GetResourceResult build() { - return new GetResourceResult(id, identifier, properties, roleArn, typeName, typeVersionId); + } + public GetResourceResult build() { + final var o = new GetResourceResult(); + o.id = id; + o.identifier = identifier; + o.properties = properties; + o.roleArn = roleArn; + o.typeName = typeName; + o.typeVersionId = typeVersionId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/CloudFormationTypeLoggingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/CloudFormationTypeLoggingConfig.java index d571e89ed8c..dfad83df973 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/CloudFormationTypeLoggingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/CloudFormationTypeLoggingConfig.java @@ -13,21 +13,14 @@ public final class CloudFormationTypeLoggingConfig { * @return Name of the CloudWatch Log Group where CloudFormation sends error logging information when invoking the type's handlers. * */ - private final String logGroupName; + private String logGroupName; /** * @return Amazon Resource Name (ARN) of the IAM Role CloudFormation assumes when sending error logging information to CloudWatch Logs. * */ - private final String logRoleArn; - - @CustomType.Constructor - private CloudFormationTypeLoggingConfig( - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("logRoleArn") String logRoleArn) { - this.logGroupName = logGroupName; - this.logRoleArn = logRoleArn; - } + private String logRoleArn; + private CloudFormationTypeLoggingConfig() {} /** * @return Name of the CloudWatch Log Group where CloudFormation sends error logging information when invoking the type's handlers. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(CloudFormationTypeLoggingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String logGroupName; private String logRoleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CloudFormationTypeLoggingConfig defaults) { Objects.requireNonNull(defaults); this.logGroupName = defaults.logGroupName; this.logRoleArn = defaults.logRoleArn; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder logRoleArn(String logRoleArn) { this.logRoleArn = Objects.requireNonNull(logRoleArn); return this; - } public CloudFormationTypeLoggingConfig build() { - return new CloudFormationTypeLoggingConfig(logGroupName, logRoleArn); + } + public CloudFormationTypeLoggingConfig build() { + final var o = new CloudFormationTypeLoggingConfig(); + o.logGroupName = logGroupName; + o.logRoleArn = logRoleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetCloudFormationTypeLoggingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetCloudFormationTypeLoggingConfig.java index f1f2a4263a0..c58587813f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetCloudFormationTypeLoggingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetCloudFormationTypeLoggingConfig.java @@ -13,21 +13,14 @@ public final class GetCloudFormationTypeLoggingConfig { * @return Name of the CloudWatch Log Group where CloudFormation sends error logging information when invoking the type's handlers. * */ - private final String logGroupName; + private String logGroupName; /** * @return Amazon Resource Name (ARN) of the IAM Role CloudFormation assumes when sending error logging information to CloudWatch Logs. * */ - private final String logRoleArn; - - @CustomType.Constructor - private GetCloudFormationTypeLoggingConfig( - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("logRoleArn") String logRoleArn) { - this.logGroupName = logGroupName; - this.logRoleArn = logRoleArn; - } + private String logRoleArn; + private GetCloudFormationTypeLoggingConfig() {} /** * @return Name of the CloudWatch Log Group where CloudFormation sends error logging information when invoking the type's handlers. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetCloudFormationTypeLoggingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String logGroupName; private String logRoleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCloudFormationTypeLoggingConfig defaults) { Objects.requireNonNull(defaults); this.logGroupName = defaults.logGroupName; this.logRoleArn = defaults.logRoleArn; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder logRoleArn(String logRoleArn) { this.logRoleArn = Objects.requireNonNull(logRoleArn); return this; - } public GetCloudFormationTypeLoggingConfig build() { - return new GetCloudFormationTypeLoggingConfig(logGroupName, logRoleArn); + } + public GetCloudFormationTypeLoggingConfig build() { + final var o = new GetCloudFormationTypeLoggingConfig(); + o.logGroupName = logGroupName; + o.logRoleArn = logRoleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetCloudFormationTypeResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetCloudFormationTypeResult.java index fa731e7c49d..b2753f6ab52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetCloudFormationTypeResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetCloudFormationTypeResult.java @@ -14,110 +14,73 @@ @CustomType public final class GetCloudFormationTypeResult { - private final String arn; + private String arn; /** * @return Identifier of the CloudFormation Type default version. * */ - private final String defaultVersionId; + private String defaultVersionId; /** * @return Deprecation status of the CloudFormation Type. * */ - private final String deprecatedStatus; + private String deprecatedStatus; /** * @return Description of the CloudFormation Type. * */ - private final String description; + private String description; /** * @return URL of the documentation for the CloudFormation Type. * */ - private final String documentationUrl; + private String documentationUrl; /** * @return Amazon Resource Name (ARN) of the IAM Role used to register the CloudFormation Type. * */ - private final String executionRoleArn; + private String executionRoleArn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Whether the CloudFormation Type version is the default version. * */ - private final Boolean isDefaultVersion; + private Boolean isDefaultVersion; /** * @return List of objects containing logging configuration. * */ - private final List loggingConfigs; + private List loggingConfigs; /** * @return Provisioning behavior of the CloudFormation Type. * */ - private final String provisioningType; + private String provisioningType; /** * @return JSON document of the CloudFormation Type schema. * */ - private final String schema; + private String schema; /** * @return URL of the source code for the CloudFormation Type. * */ - private final String sourceUrl; - private final String type; - private final String typeArn; - private final String typeName; - private final @Nullable String versionId; + private String sourceUrl; + private String type; + private String typeArn; + private String typeName; + private @Nullable String versionId; /** * @return Scope of the CloudFormation Type. * */ - private final String visibility; - - @CustomType.Constructor - private GetCloudFormationTypeResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("defaultVersionId") String defaultVersionId, - @CustomType.Parameter("deprecatedStatus") String deprecatedStatus, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("documentationUrl") String documentationUrl, - @CustomType.Parameter("executionRoleArn") String executionRoleArn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("isDefaultVersion") Boolean isDefaultVersion, - @CustomType.Parameter("loggingConfigs") List loggingConfigs, - @CustomType.Parameter("provisioningType") String provisioningType, - @CustomType.Parameter("schema") String schema, - @CustomType.Parameter("sourceUrl") String sourceUrl, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("typeArn") String typeArn, - @CustomType.Parameter("typeName") String typeName, - @CustomType.Parameter("versionId") @Nullable String versionId, - @CustomType.Parameter("visibility") String visibility) { - this.arn = arn; - this.defaultVersionId = defaultVersionId; - this.deprecatedStatus = deprecatedStatus; - this.description = description; - this.documentationUrl = documentationUrl; - this.executionRoleArn = executionRoleArn; - this.id = id; - this.isDefaultVersion = isDefaultVersion; - this.loggingConfigs = loggingConfigs; - this.provisioningType = provisioningType; - this.schema = schema; - this.sourceUrl = sourceUrl; - this.type = type; - this.typeArn = typeArn; - this.typeName = typeName; - this.versionId = versionId; - this.visibility = visibility; - } + private String visibility; + private GetCloudFormationTypeResult() {} public String arn() { return this.arn; } @@ -225,7 +188,7 @@ public static Builder builder() { public static Builder builder(GetCloudFormationTypeResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String defaultVersionId; @@ -244,11 +207,7 @@ public static final class Builder { private String typeName; private @Nullable String versionId; private String visibility; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCloudFormationTypeResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -270,38 +229,47 @@ public Builder(GetCloudFormationTypeResult defaults) { this.visibility = defaults.visibility; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder defaultVersionId(String defaultVersionId) { this.defaultVersionId = Objects.requireNonNull(defaultVersionId); return this; } + @CustomType.Setter public Builder deprecatedStatus(String deprecatedStatus) { this.deprecatedStatus = Objects.requireNonNull(deprecatedStatus); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder documentationUrl(String documentationUrl) { this.documentationUrl = Objects.requireNonNull(documentationUrl); return this; } + @CustomType.Setter public Builder executionRoleArn(String executionRoleArn) { this.executionRoleArn = Objects.requireNonNull(executionRoleArn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder isDefaultVersion(Boolean isDefaultVersion) { this.isDefaultVersion = Objects.requireNonNull(isDefaultVersion); return this; } + @CustomType.Setter public Builder loggingConfigs(List loggingConfigs) { this.loggingConfigs = Objects.requireNonNull(loggingConfigs); return this; @@ -309,39 +277,66 @@ public Builder loggingConfigs(List loggingCo public Builder loggingConfigs(GetCloudFormationTypeLoggingConfig... loggingConfigs) { return loggingConfigs(List.of(loggingConfigs)); } + @CustomType.Setter public Builder provisioningType(String provisioningType) { this.provisioningType = Objects.requireNonNull(provisioningType); return this; } + @CustomType.Setter public Builder schema(String schema) { this.schema = Objects.requireNonNull(schema); return this; } + @CustomType.Setter public Builder sourceUrl(String sourceUrl) { this.sourceUrl = Objects.requireNonNull(sourceUrl); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder typeArn(String typeArn) { this.typeArn = Objects.requireNonNull(typeArn); return this; } + @CustomType.Setter public Builder typeName(String typeName) { this.typeName = Objects.requireNonNull(typeName); return this; } + @CustomType.Setter public Builder versionId(@Nullable String versionId) { this.versionId = versionId; return this; } + @CustomType.Setter public Builder visibility(String visibility) { this.visibility = Objects.requireNonNull(visibility); return this; - } public GetCloudFormationTypeResult build() { - return new GetCloudFormationTypeResult(arn, defaultVersionId, deprecatedStatus, description, documentationUrl, executionRoleArn, id, isDefaultVersion, loggingConfigs, provisioningType, schema, sourceUrl, type, typeArn, typeName, versionId, visibility); + } + public GetCloudFormationTypeResult build() { + final var o = new GetCloudFormationTypeResult(); + o.arn = arn; + o.defaultVersionId = defaultVersionId; + o.deprecatedStatus = deprecatedStatus; + o.description = description; + o.documentationUrl = documentationUrl; + o.executionRoleArn = executionRoleArn; + o.id = id; + o.isDefaultVersion = isDefaultVersion; + o.loggingConfigs = loggingConfigs; + o.provisioningType = provisioningType; + o.schema = schema; + o.sourceUrl = sourceUrl; + o.type = type; + o.typeArn = typeArn; + o.typeName = typeName; + o.versionId = versionId; + o.visibility = visibility; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetExportResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetExportResult.java index 15f8d88e6c4..37efa883f2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetExportResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetExportResult.java @@ -13,31 +13,20 @@ public final class GetExportResult { * @return The exporting_stack_id (AWS ARNs) equivalent `ExportingStackId` from [list-exports](http://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-exports.html) * */ - private final String exportingStackId; + private String exportingStackId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return The value from Cloudformation export identified by the export name found from [list-exports](http://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-exports.html) * */ - private final String value; - - @CustomType.Constructor - private GetExportResult( - @CustomType.Parameter("exportingStackId") String exportingStackId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.exportingStackId = exportingStackId; - this.id = id; - this.name = name; - this.value = value; - } + private String value; + private GetExportResult() {} /** * @return The exporting_stack_id (AWS ARNs) equivalent `ExportingStackId` from [list-exports](http://docs.aws.amazon.com/cli/latest/reference/cloudformation/list-exports.html) * @@ -70,17 +59,13 @@ public static Builder builder() { public static Builder builder(GetExportResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String exportingStackId; private String id; private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetExportResult defaults) { Objects.requireNonNull(defaults); this.exportingStackId = defaults.exportingStackId; @@ -89,23 +74,33 @@ public Builder(GetExportResult defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder exportingStackId(String exportingStackId) { this.exportingStackId = Objects.requireNonNull(exportingStackId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetExportResult build() { - return new GetExportResult(exportingStackId, id, name, value); + } + public GetExportResult build() { + final var o = new GetExportResult(); + o.exportingStackId = exportingStackId; + o.id = id; + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetStackResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetStackResult.java index b3502841e7c..a881b860810 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetStackResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/GetStackResult.java @@ -17,87 +17,60 @@ public final class GetStackResult { * @return A list of capabilities * */ - private final List capabilities; + private List capabilities; /** * @return Description of the stack * */ - private final String description; + private String description; /** * @return Whether the rollback of the stack is disabled when stack creation fails * */ - private final Boolean disableRollback; + private Boolean disableRollback; /** * @return The ARN of the IAM role used to create the stack. * */ - private final String iamRoleArn; + private String iamRoleArn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return A list of SNS topic ARNs to publish stack related events * */ - private final List notificationArns; + private List notificationArns; /** * @return A map of outputs from the stack. * */ - private final Map outputs; + private Map outputs; /** * @return A map of parameters that specify input parameters for the stack. * */ - private final Map parameters; + private Map parameters; /** * @return A map of tags associated with this stack. * */ - private final Map tags; + private Map tags; /** * @return Structure containing the template body. * */ - private final String templateBody; + private String templateBody; /** * @return The amount of time that can pass before the stack status becomes `CREATE_FAILED` * */ - private final Integer timeoutInMinutes; - - @CustomType.Constructor - private GetStackResult( - @CustomType.Parameter("capabilities") List capabilities, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("disableRollback") Boolean disableRollback, - @CustomType.Parameter("iamRoleArn") String iamRoleArn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("notificationArns") List notificationArns, - @CustomType.Parameter("outputs") Map outputs, - @CustomType.Parameter("parameters") Map parameters, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("templateBody") String templateBody, - @CustomType.Parameter("timeoutInMinutes") Integer timeoutInMinutes) { - this.capabilities = capabilities; - this.description = description; - this.disableRollback = disableRollback; - this.iamRoleArn = iamRoleArn; - this.id = id; - this.name = name; - this.notificationArns = notificationArns; - this.outputs = outputs; - this.parameters = parameters; - this.tags = tags; - this.templateBody = templateBody; - this.timeoutInMinutes = timeoutInMinutes; - } + private Integer timeoutInMinutes; + private GetStackResult() {} /** * @return A list of capabilities * @@ -186,7 +159,7 @@ public static Builder builder() { public static Builder builder(GetStackResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List capabilities; private String description; @@ -200,11 +173,7 @@ public static final class Builder { private Map tags; private String templateBody; private Integer timeoutInMinutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetStackResult defaults) { Objects.requireNonNull(defaults); this.capabilities = defaults.capabilities; @@ -221,6 +190,7 @@ public Builder(GetStackResult defaults) { this.timeoutInMinutes = defaults.timeoutInMinutes; } + @CustomType.Setter public Builder capabilities(List capabilities) { this.capabilities = Objects.requireNonNull(capabilities); return this; @@ -228,26 +198,32 @@ public Builder capabilities(List capabilities) { public Builder capabilities(String... capabilities) { return capabilities(List.of(capabilities)); } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder disableRollback(Boolean disableRollback) { this.disableRollback = Objects.requireNonNull(disableRollback); return this; } + @CustomType.Setter public Builder iamRoleArn(String iamRoleArn) { this.iamRoleArn = Objects.requireNonNull(iamRoleArn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder notificationArns(List notificationArns) { this.notificationArns = Objects.requireNonNull(notificationArns); return this; @@ -255,27 +231,46 @@ public Builder notificationArns(List notificationArns) { public Builder notificationArns(String... notificationArns) { return notificationArns(List.of(notificationArns)); } + @CustomType.Setter public Builder outputs(Map outputs) { this.outputs = Objects.requireNonNull(outputs); return this; } + @CustomType.Setter public Builder parameters(Map parameters) { this.parameters = Objects.requireNonNull(parameters); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder templateBody(String templateBody) { this.templateBody = Objects.requireNonNull(templateBody); return this; } + @CustomType.Setter public Builder timeoutInMinutes(Integer timeoutInMinutes) { this.timeoutInMinutes = Objects.requireNonNull(timeoutInMinutes); return this; - } public GetStackResult build() { - return new GetStackResult(capabilities, description, disableRollback, iamRoleArn, id, name, notificationArns, outputs, parameters, tags, templateBody, timeoutInMinutes); + } + public GetStackResult build() { + final var o = new GetStackResult(); + o.capabilities = capabilities; + o.description = description; + o.disableRollback = disableRollback; + o.iamRoleArn = iamRoleArn; + o.id = id; + o.name = name; + o.notificationArns = notificationArns; + o.outputs = outputs; + o.parameters = parameters; + o.tags = tags; + o.templateBody = templateBody; + o.timeoutInMinutes = timeoutInMinutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetAutoDeployment.java b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetAutoDeployment.java index d1d9e5e9157..c0e64fe595b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetAutoDeployment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetAutoDeployment.java @@ -15,21 +15,14 @@ public final class StackSetAutoDeployment { * @return Whether or not auto-deployment is enabled. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Whether or not to retain stacks when the account is removed. * */ - private final @Nullable Boolean retainStacksOnAccountRemoval; - - @CustomType.Constructor - private StackSetAutoDeployment( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("retainStacksOnAccountRemoval") @Nullable Boolean retainStacksOnAccountRemoval) { - this.enabled = enabled; - this.retainStacksOnAccountRemoval = retainStacksOnAccountRemoval; - } + private @Nullable Boolean retainStacksOnAccountRemoval; + private StackSetAutoDeployment() {} /** * @return Whether or not auto-deployment is enabled. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(StackSetAutoDeployment defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable Boolean retainStacksOnAccountRemoval; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StackSetAutoDeployment defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.retainStacksOnAccountRemoval = defaults.retainStacksOnAccountRemoval; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder retainStacksOnAccountRemoval(@Nullable Boolean retainStacksOnAccountRemoval) { this.retainStacksOnAccountRemoval = retainStacksOnAccountRemoval; return this; - } public StackSetAutoDeployment build() { - return new StackSetAutoDeployment(enabled, retainStacksOnAccountRemoval); + } + public StackSetAutoDeployment build() { + final var o = new StackSetAutoDeployment(); + o.enabled = enabled; + o.retainStacksOnAccountRemoval = retainStacksOnAccountRemoval; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetInstanceDeploymentTargets.java b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetInstanceDeploymentTargets.java index 9bee3e1bf7d..685202db385 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetInstanceDeploymentTargets.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetInstanceDeploymentTargets.java @@ -11,13 +11,9 @@ @CustomType public final class StackSetInstanceDeploymentTargets { - private final @Nullable List organizationalUnitIds; - - @CustomType.Constructor - private StackSetInstanceDeploymentTargets(@CustomType.Parameter("organizationalUnitIds") @Nullable List organizationalUnitIds) { - this.organizationalUnitIds = organizationalUnitIds; - } + private @Nullable List organizationalUnitIds; + private StackSetInstanceDeploymentTargets() {} public List organizationalUnitIds() { return this.organizationalUnitIds == null ? List.of() : this.organizationalUnitIds; } @@ -29,27 +25,27 @@ public static Builder builder() { public static Builder builder(StackSetInstanceDeploymentTargets defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List organizationalUnitIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StackSetInstanceDeploymentTargets defaults) { Objects.requireNonNull(defaults); this.organizationalUnitIds = defaults.organizationalUnitIds; } + @CustomType.Setter public Builder organizationalUnitIds(@Nullable List organizationalUnitIds) { this.organizationalUnitIds = organizationalUnitIds; return this; } public Builder organizationalUnitIds(String... organizationalUnitIds) { return organizationalUnitIds(List.of(organizationalUnitIds)); - } public StackSetInstanceDeploymentTargets build() { - return new StackSetInstanceDeploymentTargets(organizationalUnitIds); + } + public StackSetInstanceDeploymentTargets build() { + final var o = new StackSetInstanceDeploymentTargets(); + o.organizationalUnitIds = organizationalUnitIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetInstanceOperationPreferences.java b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetInstanceOperationPreferences.java index 7c3cd9dd883..19daf693862 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetInstanceOperationPreferences.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetInstanceOperationPreferences.java @@ -13,29 +13,14 @@ @CustomType public final class StackSetInstanceOperationPreferences { - private final @Nullable Integer failureToleranceCount; - private final @Nullable Integer failureTolerancePercentage; - private final @Nullable Integer maxConcurrentCount; - private final @Nullable Integer maxConcurrentPercentage; - private final @Nullable String regionConcurrencyType; - private final @Nullable List regionOrders; - - @CustomType.Constructor - private StackSetInstanceOperationPreferences( - @CustomType.Parameter("failureToleranceCount") @Nullable Integer failureToleranceCount, - @CustomType.Parameter("failureTolerancePercentage") @Nullable Integer failureTolerancePercentage, - @CustomType.Parameter("maxConcurrentCount") @Nullable Integer maxConcurrentCount, - @CustomType.Parameter("maxConcurrentPercentage") @Nullable Integer maxConcurrentPercentage, - @CustomType.Parameter("regionConcurrencyType") @Nullable String regionConcurrencyType, - @CustomType.Parameter("regionOrders") @Nullable List regionOrders) { - this.failureToleranceCount = failureToleranceCount; - this.failureTolerancePercentage = failureTolerancePercentage; - this.maxConcurrentCount = maxConcurrentCount; - this.maxConcurrentPercentage = maxConcurrentPercentage; - this.regionConcurrencyType = regionConcurrencyType; - this.regionOrders = regionOrders; - } + private @Nullable Integer failureToleranceCount; + private @Nullable Integer failureTolerancePercentage; + private @Nullable Integer maxConcurrentCount; + private @Nullable Integer maxConcurrentPercentage; + private @Nullable String regionConcurrencyType; + private @Nullable List regionOrders; + private StackSetInstanceOperationPreferences() {} public Optional failureToleranceCount() { return Optional.ofNullable(this.failureToleranceCount); } @@ -62,7 +47,7 @@ public static Builder builder() { public static Builder builder(StackSetInstanceOperationPreferences defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer failureToleranceCount; private @Nullable Integer failureTolerancePercentage; @@ -70,11 +55,7 @@ public static final class Builder { private @Nullable Integer maxConcurrentPercentage; private @Nullable String regionConcurrencyType; private @Nullable List regionOrders; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StackSetInstanceOperationPreferences defaults) { Objects.requireNonNull(defaults); this.failureToleranceCount = defaults.failureToleranceCount; @@ -85,34 +66,48 @@ public Builder(StackSetInstanceOperationPreferences defaults) { this.regionOrders = defaults.regionOrders; } + @CustomType.Setter public Builder failureToleranceCount(@Nullable Integer failureToleranceCount) { this.failureToleranceCount = failureToleranceCount; return this; } + @CustomType.Setter public Builder failureTolerancePercentage(@Nullable Integer failureTolerancePercentage) { this.failureTolerancePercentage = failureTolerancePercentage; return this; } + @CustomType.Setter public Builder maxConcurrentCount(@Nullable Integer maxConcurrentCount) { this.maxConcurrentCount = maxConcurrentCount; return this; } + @CustomType.Setter public Builder maxConcurrentPercentage(@Nullable Integer maxConcurrentPercentage) { this.maxConcurrentPercentage = maxConcurrentPercentage; return this; } + @CustomType.Setter public Builder regionConcurrencyType(@Nullable String regionConcurrencyType) { this.regionConcurrencyType = regionConcurrencyType; return this; } + @CustomType.Setter public Builder regionOrders(@Nullable List regionOrders) { this.regionOrders = regionOrders; return this; } public Builder regionOrders(String... regionOrders) { return regionOrders(List.of(regionOrders)); - } public StackSetInstanceOperationPreferences build() { - return new StackSetInstanceOperationPreferences(failureToleranceCount, failureTolerancePercentage, maxConcurrentCount, maxConcurrentPercentage, regionConcurrencyType, regionOrders); + } + public StackSetInstanceOperationPreferences build() { + final var o = new StackSetInstanceOperationPreferences(); + o.failureToleranceCount = failureToleranceCount; + o.failureTolerancePercentage = failureTolerancePercentage; + o.maxConcurrentCount = maxConcurrentCount; + o.maxConcurrentPercentage = maxConcurrentPercentage; + o.regionConcurrencyType = regionConcurrencyType; + o.regionOrders = regionOrders; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetOperationPreferences.java b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetOperationPreferences.java index 5c754c15a76..6d9085b8aa9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetOperationPreferences.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudformation/outputs/StackSetOperationPreferences.java @@ -17,49 +17,34 @@ public final class StackSetOperationPreferences { * @return The number of accounts, per Region, for which this operation can fail before AWS CloudFormation stops the operation in that Region. * */ - private final @Nullable Integer failureToleranceCount; + private @Nullable Integer failureToleranceCount; /** * @return The percentage of accounts, per Region, for which this stack operation can fail before AWS CloudFormation stops the operation in that Region. * */ - private final @Nullable Integer failureTolerancePercentage; + private @Nullable Integer failureTolerancePercentage; /** * @return The maximum number of accounts in which to perform this operation at one time. * */ - private final @Nullable Integer maxConcurrentCount; + private @Nullable Integer maxConcurrentCount; /** * @return The maximum percentage of accounts in which to perform this operation at one time. * */ - private final @Nullable Integer maxConcurrentPercentage; + private @Nullable Integer maxConcurrentPercentage; /** * @return The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time. * */ - private final @Nullable String regionConcurrencyType; + private @Nullable String regionConcurrencyType; /** * @return The order of the Regions in where you want to perform the stack operation. * */ - private final @Nullable List regionOrders; - - @CustomType.Constructor - private StackSetOperationPreferences( - @CustomType.Parameter("failureToleranceCount") @Nullable Integer failureToleranceCount, - @CustomType.Parameter("failureTolerancePercentage") @Nullable Integer failureTolerancePercentage, - @CustomType.Parameter("maxConcurrentCount") @Nullable Integer maxConcurrentCount, - @CustomType.Parameter("maxConcurrentPercentage") @Nullable Integer maxConcurrentPercentage, - @CustomType.Parameter("regionConcurrencyType") @Nullable String regionConcurrencyType, - @CustomType.Parameter("regionOrders") @Nullable List regionOrders) { - this.failureToleranceCount = failureToleranceCount; - this.failureTolerancePercentage = failureTolerancePercentage; - this.maxConcurrentCount = maxConcurrentCount; - this.maxConcurrentPercentage = maxConcurrentPercentage; - this.regionConcurrencyType = regionConcurrencyType; - this.regionOrders = regionOrders; - } + private @Nullable List regionOrders; + private StackSetOperationPreferences() {} /** * @return The number of accounts, per Region, for which this operation can fail before AWS CloudFormation stops the operation in that Region. * @@ -110,7 +95,7 @@ public static Builder builder() { public static Builder builder(StackSetOperationPreferences defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer failureToleranceCount; private @Nullable Integer failureTolerancePercentage; @@ -118,11 +103,7 @@ public static final class Builder { private @Nullable Integer maxConcurrentPercentage; private @Nullable String regionConcurrencyType; private @Nullable List regionOrders; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StackSetOperationPreferences defaults) { Objects.requireNonNull(defaults); this.failureToleranceCount = defaults.failureToleranceCount; @@ -133,34 +114,48 @@ public Builder(StackSetOperationPreferences defaults) { this.regionOrders = defaults.regionOrders; } + @CustomType.Setter public Builder failureToleranceCount(@Nullable Integer failureToleranceCount) { this.failureToleranceCount = failureToleranceCount; return this; } + @CustomType.Setter public Builder failureTolerancePercentage(@Nullable Integer failureTolerancePercentage) { this.failureTolerancePercentage = failureTolerancePercentage; return this; } + @CustomType.Setter public Builder maxConcurrentCount(@Nullable Integer maxConcurrentCount) { this.maxConcurrentCount = maxConcurrentCount; return this; } + @CustomType.Setter public Builder maxConcurrentPercentage(@Nullable Integer maxConcurrentPercentage) { this.maxConcurrentPercentage = maxConcurrentPercentage; return this; } + @CustomType.Setter public Builder regionConcurrencyType(@Nullable String regionConcurrencyType) { this.regionConcurrencyType = regionConcurrencyType; return this; } + @CustomType.Setter public Builder regionOrders(@Nullable List regionOrders) { this.regionOrders = regionOrders; return this; } public Builder regionOrders(String... regionOrders) { return regionOrders(List.of(regionOrders)); - } public StackSetOperationPreferences build() { - return new StackSetOperationPreferences(failureToleranceCount, failureTolerancePercentage, maxConcurrentCount, maxConcurrentPercentage, regionConcurrencyType, regionOrders); + } + public StackSetOperationPreferences build() { + final var o = new StackSetOperationPreferences(); + o.failureToleranceCount = failureToleranceCount; + o.failureTolerancePercentage = failureTolerancePercentage; + o.maxConcurrentCount = maxConcurrentCount; + o.maxConcurrentPercentage = maxConcurrentPercentage; + o.regionConcurrencyType = regionConcurrencyType; + o.regionOrders = regionOrders; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOrigin.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOrigin.java index 51a0641b5de..489a72a923b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOrigin.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOrigin.java @@ -18,42 +18,29 @@ public final class CachePolicyParametersInCacheKeyAndForwardedToOrigin { * @return Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information. * */ - private final CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig cookiesConfig; + private CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig cookiesConfig; /** * @return A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin. * */ - private final @Nullable Boolean enableAcceptEncodingBrotli; + private @Nullable Boolean enableAcceptEncodingBrotli; /** * @return A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin. * */ - private final @Nullable Boolean enableAcceptEncodingGzip; + private @Nullable Boolean enableAcceptEncodingGzip; /** * @return Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information. * */ - private final CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig headersConfig; + private CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig headersConfig; /** * @return Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information. * */ - private final CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig queryStringsConfig; - - @CustomType.Constructor - private CachePolicyParametersInCacheKeyAndForwardedToOrigin( - @CustomType.Parameter("cookiesConfig") CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig cookiesConfig, - @CustomType.Parameter("enableAcceptEncodingBrotli") @Nullable Boolean enableAcceptEncodingBrotli, - @CustomType.Parameter("enableAcceptEncodingGzip") @Nullable Boolean enableAcceptEncodingGzip, - @CustomType.Parameter("headersConfig") CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig headersConfig, - @CustomType.Parameter("queryStringsConfig") CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig queryStringsConfig) { - this.cookiesConfig = cookiesConfig; - this.enableAcceptEncodingBrotli = enableAcceptEncodingBrotli; - this.enableAcceptEncodingGzip = enableAcceptEncodingGzip; - this.headersConfig = headersConfig; - this.queryStringsConfig = queryStringsConfig; - } + private CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig queryStringsConfig; + private CachePolicyParametersInCacheKeyAndForwardedToOrigin() {} /** * @return Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(CachePolicyParametersInCacheKeyAndForwardedToOrigin defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig cookiesConfig; private @Nullable Boolean enableAcceptEncodingBrotli; private @Nullable Boolean enableAcceptEncodingGzip; private CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig headersConfig; private CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig queryStringsConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CachePolicyParametersInCacheKeyAndForwardedToOrigin defaults) { Objects.requireNonNull(defaults); this.cookiesConfig = defaults.cookiesConfig; @@ -118,27 +101,39 @@ public Builder(CachePolicyParametersInCacheKeyAndForwardedToOrigin defaults) { this.queryStringsConfig = defaults.queryStringsConfig; } + @CustomType.Setter public Builder cookiesConfig(CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig cookiesConfig) { this.cookiesConfig = Objects.requireNonNull(cookiesConfig); return this; } + @CustomType.Setter public Builder enableAcceptEncodingBrotli(@Nullable Boolean enableAcceptEncodingBrotli) { this.enableAcceptEncodingBrotli = enableAcceptEncodingBrotli; return this; } + @CustomType.Setter public Builder enableAcceptEncodingGzip(@Nullable Boolean enableAcceptEncodingGzip) { this.enableAcceptEncodingGzip = enableAcceptEncodingGzip; return this; } + @CustomType.Setter public Builder headersConfig(CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig headersConfig) { this.headersConfig = Objects.requireNonNull(headersConfig); return this; } + @CustomType.Setter public Builder queryStringsConfig(CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig queryStringsConfig) { this.queryStringsConfig = Objects.requireNonNull(queryStringsConfig); return this; - } public CachePolicyParametersInCacheKeyAndForwardedToOrigin build() { - return new CachePolicyParametersInCacheKeyAndForwardedToOrigin(cookiesConfig, enableAcceptEncodingBrotli, enableAcceptEncodingGzip, headersConfig, queryStringsConfig); + } + public CachePolicyParametersInCacheKeyAndForwardedToOrigin build() { + final var o = new CachePolicyParametersInCacheKeyAndForwardedToOrigin(); + o.cookiesConfig = cookiesConfig; + o.enableAcceptEncodingBrotli = enableAcceptEncodingBrotli; + o.enableAcceptEncodingGzip = enableAcceptEncodingGzip; + o.headersConfig = headersConfig; + o.queryStringsConfig = queryStringsConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig.java index 6105df5c488..34768e107c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig.java @@ -16,21 +16,14 @@ public final class CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesCon * @return Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are `none`, `whitelist`, `allExcept`, `all`. * */ - private final String cookieBehavior; + private String cookieBehavior; /** * @return Object that contains a list of cookie names. See Items for more information. * */ - private final @Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies cookies; - - @CustomType.Constructor - private CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig( - @CustomType.Parameter("cookieBehavior") String cookieBehavior, - @CustomType.Parameter("cookies") @Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies cookies) { - this.cookieBehavior = cookieBehavior; - this.cookies = cookies; - } + private @Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies cookies; + private CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig() {} /** * @return Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are `none`, `whitelist`, `allExcept`, `all`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cookieBehavior; private @Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies cookies; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig defaults) { Objects.requireNonNull(defaults); this.cookieBehavior = defaults.cookieBehavior; this.cookies = defaults.cookies; } + @CustomType.Setter public Builder cookieBehavior(String cookieBehavior) { this.cookieBehavior = Objects.requireNonNull(cookieBehavior); return this; } + @CustomType.Setter public Builder cookies(@Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies cookies) { this.cookies = cookies; return this; - } public CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig build() { - return new CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig(cookieBehavior, cookies); + } + public CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig build() { + final var o = new CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig(); + o.cookieBehavior = cookieBehavior; + o.cookies = cookies; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies.java index d40def9143a..a543bfbefb2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies.java @@ -15,13 +15,9 @@ public final class CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesCon * @return A list of item names (cookies, headers, or query strings). * */ - private final @Nullable List items; - - @CustomType.Constructor - private CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies() {} /** * @return A list of item names (cookies, headers, or query strings). * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(String... items) { return items(List.of(items)); - } public CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies build() { - return new CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies(items); + } + public CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies build() { + final var o = new CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig.java index 18d29a6d8cd..64f183e91cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig.java @@ -16,21 +16,14 @@ public final class CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersCon * @return Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are `none`, `whitelist`. * */ - private final @Nullable String headerBehavior; + private @Nullable String headerBehavior; /** * @return Object that contains a list of header names. See Items for more information. * */ - private final @Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders headers; - - @CustomType.Constructor - private CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig( - @CustomType.Parameter("headerBehavior") @Nullable String headerBehavior, - @CustomType.Parameter("headers") @Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders headers) { - this.headerBehavior = headerBehavior; - this.headers = headers; - } + private @Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders headers; + private CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig() {} /** * @return Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are `none`, `whitelist`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String headerBehavior; private @Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders headers; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig defaults) { Objects.requireNonNull(defaults); this.headerBehavior = defaults.headerBehavior; this.headers = defaults.headers; } + @CustomType.Setter public Builder headerBehavior(@Nullable String headerBehavior) { this.headerBehavior = headerBehavior; return this; } + @CustomType.Setter public Builder headers(@Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders headers) { this.headers = headers; return this; - } public CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig build() { - return new CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig(headerBehavior, headers); + } + public CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig build() { + final var o = new CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig(); + o.headerBehavior = headerBehavior; + o.headers = headers; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders.java index 04397693da5..1385e8458f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders.java @@ -15,13 +15,9 @@ public final class CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersCon * @return A list of item names (cookies, headers, or query strings). * */ - private final @Nullable List items; - - @CustomType.Constructor - private CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders() {} /** * @return A list of item names (cookies, headers, or query strings). * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(String... items) { return items(List.of(items)); - } public CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders build() { - return new CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders(items); + } + public CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders build() { + final var o = new CachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig.java index c058262b2aa..4c99f900a31 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig.java @@ -16,21 +16,14 @@ public final class CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStrin * @return Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are `none`, `whitelist`, `allExcept`, `all`. * */ - private final String queryStringBehavior; + private String queryStringBehavior; /** * @return Object that contains a list of query string names. See Items for more information. * */ - private final @Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings queryStrings; - - @CustomType.Constructor - private CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig( - @CustomType.Parameter("queryStringBehavior") String queryStringBehavior, - @CustomType.Parameter("queryStrings") @Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings queryStrings) { - this.queryStringBehavior = queryStringBehavior; - this.queryStrings = queryStrings; - } + private @Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings queryStrings; + private CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig() {} /** * @return Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are `none`, `whitelist`, `allExcept`, `all`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String queryStringBehavior; private @Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings queryStrings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig defaults) { Objects.requireNonNull(defaults); this.queryStringBehavior = defaults.queryStringBehavior; this.queryStrings = defaults.queryStrings; } + @CustomType.Setter public Builder queryStringBehavior(String queryStringBehavior) { this.queryStringBehavior = Objects.requireNonNull(queryStringBehavior); return this; } + @CustomType.Setter public Builder queryStrings(@Nullable CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings queryStrings) { this.queryStrings = queryStrings; return this; - } public CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig build() { - return new CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig(queryStringBehavior, queryStrings); + } + public CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig build() { + final var o = new CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig(); + o.queryStringBehavior = queryStringBehavior; + o.queryStrings = queryStrings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings.java index 5198463317f..f340549fc56 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings.java @@ -15,13 +15,9 @@ public final class CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStrin * @return A list of item names (cookies, headers, or query strings). * */ - private final @Nullable List items; - - @CustomType.Constructor - private CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings() {} /** * @return A list of item names (cookies, headers, or query strings). * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(String... items) { return items(List.of(items)); - } public CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings build() { - return new CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings(items); + } + public CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings build() { + final var o = new CachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionCustomErrorResponse.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionCustomErrorResponse.java index 877c69dd942..949bd5e6620 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionCustomErrorResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionCustomErrorResponse.java @@ -18,38 +18,27 @@ public final class DistributionCustomErrorResponse { * origin to see whether the object has been updated. * */ - private final @Nullable Integer errorCachingMinTtl; + private @Nullable Integer errorCachingMinTtl; /** * @return The 4xx or 5xx HTTP status code that you want to * customize. * */ - private final Integer errorCode; + private Integer errorCode; /** * @return The HTTP status code that you want CloudFront * to return with the custom error page to the viewer. * */ - private final @Nullable Integer responseCode; + private @Nullable Integer responseCode; /** * @return The path of the custom error page (for * example, `/custom_404.html`). * */ - private final @Nullable String responsePagePath; - - @CustomType.Constructor - private DistributionCustomErrorResponse( - @CustomType.Parameter("errorCachingMinTtl") @Nullable Integer errorCachingMinTtl, - @CustomType.Parameter("errorCode") Integer errorCode, - @CustomType.Parameter("responseCode") @Nullable Integer responseCode, - @CustomType.Parameter("responsePagePath") @Nullable String responsePagePath) { - this.errorCachingMinTtl = errorCachingMinTtl; - this.errorCode = errorCode; - this.responseCode = responseCode; - this.responsePagePath = responsePagePath; - } + private @Nullable String responsePagePath; + private DistributionCustomErrorResponse() {} /** * @return The minimum amount of time you want * HTTP error codes to stay in CloudFront caches before CloudFront queries your @@ -91,17 +80,13 @@ public static Builder builder() { public static Builder builder(DistributionCustomErrorResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer errorCachingMinTtl; private Integer errorCode; private @Nullable Integer responseCode; private @Nullable String responsePagePath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionCustomErrorResponse defaults) { Objects.requireNonNull(defaults); this.errorCachingMinTtl = defaults.errorCachingMinTtl; @@ -110,23 +95,33 @@ public Builder(DistributionCustomErrorResponse defaults) { this.responsePagePath = defaults.responsePagePath; } + @CustomType.Setter public Builder errorCachingMinTtl(@Nullable Integer errorCachingMinTtl) { this.errorCachingMinTtl = errorCachingMinTtl; return this; } + @CustomType.Setter public Builder errorCode(Integer errorCode) { this.errorCode = Objects.requireNonNull(errorCode); return this; } + @CustomType.Setter public Builder responseCode(@Nullable Integer responseCode) { this.responseCode = responseCode; return this; } + @CustomType.Setter public Builder responsePagePath(@Nullable String responsePagePath) { this.responsePagePath = responsePagePath; return this; - } public DistributionCustomErrorResponse build() { - return new DistributionCustomErrorResponse(errorCachingMinTtl, errorCode, responseCode, responsePagePath); + } + public DistributionCustomErrorResponse build() { + final var o = new DistributionCustomErrorResponse(); + o.errorCachingMinTtl = errorCachingMinTtl; + o.errorCode = errorCode; + o.responseCode = responseCode; + o.responsePagePath = responsePagePath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehavior.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehavior.java index d1e5677f1b8..a3b12957bd4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehavior.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehavior.java @@ -22,56 +22,56 @@ public final class DistributionDefaultCacheBehavior { * processes and forwards to your Amazon S3 bucket or your custom origin. * */ - private final List allowedMethods; + private List allowedMethods; /** * @return The unique identifier of the cache policy that * is attached to the cache behavior. * */ - private final @Nullable String cachePolicyId; + private @Nullable String cachePolicyId; /** * @return Controls whether CloudFront caches the * response to requests using the specified HTTP methods. * */ - private final List cachedMethods; + private List cachedMethods; /** * @return Whether you want CloudFront to automatically * compress content for web requests that include `Accept-Encoding: gzip` in * the request header (default: `false`). * */ - private final @Nullable Boolean compress; + private @Nullable Boolean compress; /** * @return The default amount of time (in seconds) that an * object is in a CloudFront cache before CloudFront forwards another request * in the absence of an `Cache-Control max-age` or `Expires` header. * */ - private final @Nullable Integer defaultTtl; + private @Nullable Integer defaultTtl; /** * @return Field level encryption configuration ID * */ - private final @Nullable String fieldLevelEncryptionId; + private @Nullable String fieldLevelEncryptionId; /** * @return The forwarded values configuration that specifies how CloudFront * handles query strings, cookies and headers (maximum one). * */ - private final @Nullable DistributionDefaultCacheBehaviorForwardedValues forwardedValues; + private @Nullable DistributionDefaultCacheBehaviorForwardedValues forwardedValues; /** * @return A config block that triggers a cloudfront * function with specific actions (maximum 2). * */ - private final @Nullable List functionAssociations; + private @Nullable List functionAssociations; /** * @return A config block that triggers a lambda * function with specific actions (maximum 4). * */ - private final @Nullable List lambdaFunctionAssociations; + private @Nullable List lambdaFunctionAssociations; /** * @return The maximum amount of time (in seconds) that an * object is in a CloudFront cache before CloudFront forwards another request @@ -80,57 +80,57 @@ public final class DistributionDefaultCacheBehavior { * s-maxage`, and `Expires` headers. * */ - private final @Nullable Integer maxTtl; + private @Nullable Integer maxTtl; /** * @return The minimum amount of time that you want objects to * stay in CloudFront caches before CloudFront queries your origin to see * whether the object has been updated. Defaults to 0 seconds. * */ - private final @Nullable Integer minTtl; + private @Nullable Integer minTtl; /** * @return The unique identifier of the origin request policy * that is attached to the behavior. * */ - private final @Nullable String originRequestPolicyId; + private @Nullable String originRequestPolicyId; /** * @return The ARN of the real-time log configuration * that is attached to this cache behavior. * */ - private final @Nullable String realtimeLogConfigArn; + private @Nullable String realtimeLogConfigArn; /** * @return The identifier for a response headers policy. * */ - private final @Nullable String responseHeadersPolicyId; + private @Nullable String responseHeadersPolicyId; /** * @return Indicates whether you want to distribute * media files in Microsoft Smooth Streaming format using the origin that is * associated with this cache behavior. * */ - private final @Nullable Boolean smoothStreaming; + private @Nullable Boolean smoothStreaming; /** * @return The value of ID for the origin that you want * CloudFront to route requests to when a request matches the path pattern * either for a cache behavior or for the default cache behavior. * */ - private final String targetOriginId; + private String targetOriginId; /** * @return A list of key group IDs that CloudFront can use to validate signed URLs or signed cookies. * See the [CloudFront User Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html) for more information about this feature. * */ - private final @Nullable List trustedKeyGroups; + private @Nullable List trustedKeyGroups; /** * @return List of AWS account IDs (or `self`) that you want to allow to create signed URLs for private content. * See the [CloudFront User Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html) for more information about this feature. * */ - private final @Nullable List trustedSigners; + private @Nullable List trustedSigners; /** * @return Use this element to specify the * protocol that users can use to access the files in the origin specified by @@ -138,50 +138,9 @@ public final class DistributionDefaultCacheBehavior { * of `allow-all`, `https-only`, or `redirect-to-https`. * */ - private final String viewerProtocolPolicy; - - @CustomType.Constructor - private DistributionDefaultCacheBehavior( - @CustomType.Parameter("allowedMethods") List allowedMethods, - @CustomType.Parameter("cachePolicyId") @Nullable String cachePolicyId, - @CustomType.Parameter("cachedMethods") List cachedMethods, - @CustomType.Parameter("compress") @Nullable Boolean compress, - @CustomType.Parameter("defaultTtl") @Nullable Integer defaultTtl, - @CustomType.Parameter("fieldLevelEncryptionId") @Nullable String fieldLevelEncryptionId, - @CustomType.Parameter("forwardedValues") @Nullable DistributionDefaultCacheBehaviorForwardedValues forwardedValues, - @CustomType.Parameter("functionAssociations") @Nullable List functionAssociations, - @CustomType.Parameter("lambdaFunctionAssociations") @Nullable List lambdaFunctionAssociations, - @CustomType.Parameter("maxTtl") @Nullable Integer maxTtl, - @CustomType.Parameter("minTtl") @Nullable Integer minTtl, - @CustomType.Parameter("originRequestPolicyId") @Nullable String originRequestPolicyId, - @CustomType.Parameter("realtimeLogConfigArn") @Nullable String realtimeLogConfigArn, - @CustomType.Parameter("responseHeadersPolicyId") @Nullable String responseHeadersPolicyId, - @CustomType.Parameter("smoothStreaming") @Nullable Boolean smoothStreaming, - @CustomType.Parameter("targetOriginId") String targetOriginId, - @CustomType.Parameter("trustedKeyGroups") @Nullable List trustedKeyGroups, - @CustomType.Parameter("trustedSigners") @Nullable List trustedSigners, - @CustomType.Parameter("viewerProtocolPolicy") String viewerProtocolPolicy) { - this.allowedMethods = allowedMethods; - this.cachePolicyId = cachePolicyId; - this.cachedMethods = cachedMethods; - this.compress = compress; - this.defaultTtl = defaultTtl; - this.fieldLevelEncryptionId = fieldLevelEncryptionId; - this.forwardedValues = forwardedValues; - this.functionAssociations = functionAssociations; - this.lambdaFunctionAssociations = lambdaFunctionAssociations; - this.maxTtl = maxTtl; - this.minTtl = minTtl; - this.originRequestPolicyId = originRequestPolicyId; - this.realtimeLogConfigArn = realtimeLogConfigArn; - this.responseHeadersPolicyId = responseHeadersPolicyId; - this.smoothStreaming = smoothStreaming; - this.targetOriginId = targetOriginId; - this.trustedKeyGroups = trustedKeyGroups; - this.trustedSigners = trustedSigners; - this.viewerProtocolPolicy = viewerProtocolPolicy; - } + private String viewerProtocolPolicy; + private DistributionDefaultCacheBehavior() {} /** * @return Controls which HTTP methods CloudFront * processes and forwards to your Amazon S3 bucket or your custom origin. @@ -350,7 +309,7 @@ public static Builder builder() { public static Builder builder(DistributionDefaultCacheBehavior defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List allowedMethods; private @Nullable String cachePolicyId; @@ -371,11 +330,7 @@ public static final class Builder { private @Nullable List trustedKeyGroups; private @Nullable List trustedSigners; private String viewerProtocolPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionDefaultCacheBehavior defaults) { Objects.requireNonNull(defaults); this.allowedMethods = defaults.allowedMethods; @@ -399,6 +354,7 @@ public Builder(DistributionDefaultCacheBehavior defaults) { this.viewerProtocolPolicy = defaults.viewerProtocolPolicy; } + @CustomType.Setter public Builder allowedMethods(List allowedMethods) { this.allowedMethods = Objects.requireNonNull(allowedMethods); return this; @@ -406,10 +362,12 @@ public Builder allowedMethods(List allowedMethods) { public Builder allowedMethods(String... allowedMethods) { return allowedMethods(List.of(allowedMethods)); } + @CustomType.Setter public Builder cachePolicyId(@Nullable String cachePolicyId) { this.cachePolicyId = cachePolicyId; return this; } + @CustomType.Setter public Builder cachedMethods(List cachedMethods) { this.cachedMethods = Objects.requireNonNull(cachedMethods); return this; @@ -417,22 +375,27 @@ public Builder cachedMethods(List cachedMethods) { public Builder cachedMethods(String... cachedMethods) { return cachedMethods(List.of(cachedMethods)); } + @CustomType.Setter public Builder compress(@Nullable Boolean compress) { this.compress = compress; return this; } + @CustomType.Setter public Builder defaultTtl(@Nullable Integer defaultTtl) { this.defaultTtl = defaultTtl; return this; } + @CustomType.Setter public Builder fieldLevelEncryptionId(@Nullable String fieldLevelEncryptionId) { this.fieldLevelEncryptionId = fieldLevelEncryptionId; return this; } + @CustomType.Setter public Builder forwardedValues(@Nullable DistributionDefaultCacheBehaviorForwardedValues forwardedValues) { this.forwardedValues = forwardedValues; return this; } + @CustomType.Setter public Builder functionAssociations(@Nullable List functionAssociations) { this.functionAssociations = functionAssociations; return this; @@ -440,6 +403,7 @@ public Builder functionAssociations(@Nullable List lambdaFunctionAssociations) { this.lambdaFunctionAssociations = lambdaFunctionAssociations; return this; @@ -447,34 +411,42 @@ public Builder lambdaFunctionAssociations(@Nullable List trustedKeyGroups) { this.trustedKeyGroups = trustedKeyGroups; return this; @@ -482,6 +454,7 @@ public Builder trustedKeyGroups(@Nullable List trustedKeyGroups) { public Builder trustedKeyGroups(String... trustedKeyGroups) { return trustedKeyGroups(List.of(trustedKeyGroups)); } + @CustomType.Setter public Builder trustedSigners(@Nullable List trustedSigners) { this.trustedSigners = trustedSigners; return this; @@ -489,11 +462,33 @@ public Builder trustedSigners(@Nullable List trustedSigners) { public Builder trustedSigners(String... trustedSigners) { return trustedSigners(List.of(trustedSigners)); } + @CustomType.Setter public Builder viewerProtocolPolicy(String viewerProtocolPolicy) { this.viewerProtocolPolicy = Objects.requireNonNull(viewerProtocolPolicy); return this; - } public DistributionDefaultCacheBehavior build() { - return new DistributionDefaultCacheBehavior(allowedMethods, cachePolicyId, cachedMethods, compress, defaultTtl, fieldLevelEncryptionId, forwardedValues, functionAssociations, lambdaFunctionAssociations, maxTtl, minTtl, originRequestPolicyId, realtimeLogConfigArn, responseHeadersPolicyId, smoothStreaming, targetOriginId, trustedKeyGroups, trustedSigners, viewerProtocolPolicy); + } + public DistributionDefaultCacheBehavior build() { + final var o = new DistributionDefaultCacheBehavior(); + o.allowedMethods = allowedMethods; + o.cachePolicyId = cachePolicyId; + o.cachedMethods = cachedMethods; + o.compress = compress; + o.defaultTtl = defaultTtl; + o.fieldLevelEncryptionId = fieldLevelEncryptionId; + o.forwardedValues = forwardedValues; + o.functionAssociations = functionAssociations; + o.lambdaFunctionAssociations = lambdaFunctionAssociations; + o.maxTtl = maxTtl; + o.minTtl = minTtl; + o.originRequestPolicyId = originRequestPolicyId; + o.realtimeLogConfigArn = realtimeLogConfigArn; + o.responseHeadersPolicyId = responseHeadersPolicyId; + o.smoothStreaming = smoothStreaming; + o.targetOriginId = targetOriginId; + o.trustedKeyGroups = trustedKeyGroups; + o.trustedSigners = trustedSigners; + o.viewerProtocolPolicy = viewerProtocolPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorForwardedValues.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorForwardedValues.java index c85200eea7a..fe7c74c2b90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorForwardedValues.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorForwardedValues.java @@ -18,20 +18,20 @@ public final class DistributionDefaultCacheBehaviorForwardedValues { * that specifies how CloudFront handles cookies (maximum one). * */ - private final DistributionDefaultCacheBehaviorForwardedValuesCookies cookies; + private DistributionDefaultCacheBehaviorForwardedValuesCookies cookies; /** * @return Specifies the Headers, if any, that you want * CloudFront to vary upon for this cache behavior. Specify `*` to include all * headers. * */ - private final @Nullable List headers; + private @Nullable List headers; /** * @return Indicates whether you want CloudFront to forward * query strings to the origin that is associated with this cache behavior. * */ - private final Boolean queryString; + private Boolean queryString; /** * @return When specified, along with a value of * `true` for `query_string`, all query strings are forwarded, however only the @@ -39,20 +39,9 @@ public final class DistributionDefaultCacheBehaviorForwardedValues { * value of `true` for `query_string`, all query string keys are cached. * */ - private final @Nullable List queryStringCacheKeys; - - @CustomType.Constructor - private DistributionDefaultCacheBehaviorForwardedValues( - @CustomType.Parameter("cookies") DistributionDefaultCacheBehaviorForwardedValuesCookies cookies, - @CustomType.Parameter("headers") @Nullable List headers, - @CustomType.Parameter("queryString") Boolean queryString, - @CustomType.Parameter("queryStringCacheKeys") @Nullable List queryStringCacheKeys) { - this.cookies = cookies; - this.headers = headers; - this.queryString = queryString; - this.queryStringCacheKeys = queryStringCacheKeys; - } + private @Nullable List queryStringCacheKeys; + private DistributionDefaultCacheBehaviorForwardedValues() {} /** * @return The forwarded values cookies * that specifies how CloudFront handles cookies (maximum one). @@ -96,17 +85,13 @@ public static Builder builder() { public static Builder builder(DistributionDefaultCacheBehaviorForwardedValues defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private DistributionDefaultCacheBehaviorForwardedValuesCookies cookies; private @Nullable List headers; private Boolean queryString; private @Nullable List queryStringCacheKeys; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionDefaultCacheBehaviorForwardedValues defaults) { Objects.requireNonNull(defaults); this.cookies = defaults.cookies; @@ -115,10 +100,12 @@ public Builder(DistributionDefaultCacheBehaviorForwardedValues defaults) { this.queryStringCacheKeys = defaults.queryStringCacheKeys; } + @CustomType.Setter public Builder cookies(DistributionDefaultCacheBehaviorForwardedValuesCookies cookies) { this.cookies = Objects.requireNonNull(cookies); return this; } + @CustomType.Setter public Builder headers(@Nullable List headers) { this.headers = headers; return this; @@ -126,18 +113,26 @@ public Builder headers(@Nullable List headers) { public Builder headers(String... headers) { return headers(List.of(headers)); } + @CustomType.Setter public Builder queryString(Boolean queryString) { this.queryString = Objects.requireNonNull(queryString); return this; } + @CustomType.Setter public Builder queryStringCacheKeys(@Nullable List queryStringCacheKeys) { this.queryStringCacheKeys = queryStringCacheKeys; return this; } public Builder queryStringCacheKeys(String... queryStringCacheKeys) { return queryStringCacheKeys(List.of(queryStringCacheKeys)); - } public DistributionDefaultCacheBehaviorForwardedValues build() { - return new DistributionDefaultCacheBehaviorForwardedValues(cookies, headers, queryString, queryStringCacheKeys); + } + public DistributionDefaultCacheBehaviorForwardedValues build() { + final var o = new DistributionDefaultCacheBehaviorForwardedValues(); + o.cookies = cookies; + o.headers = headers; + o.queryString = queryString; + o.queryStringCacheKeys = queryStringCacheKeys; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorForwardedValuesCookies.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorForwardedValuesCookies.java index 0524726ca93..061757f2545 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorForwardedValuesCookies.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorForwardedValuesCookies.java @@ -18,23 +18,16 @@ public final class DistributionDefaultCacheBehaviorForwardedValuesCookies { * subsequent `whitelisted_names` * */ - private final String forward; + private String forward; /** * @return If you have specified `whitelist` to * `forward`, the whitelisted cookies that you want CloudFront to forward to * your origin. * */ - private final @Nullable List whitelistedNames; - - @CustomType.Constructor - private DistributionDefaultCacheBehaviorForwardedValuesCookies( - @CustomType.Parameter("forward") String forward, - @CustomType.Parameter("whitelistedNames") @Nullable List whitelistedNames) { - this.forward = forward; - this.whitelistedNames = whitelistedNames; - } + private @Nullable List whitelistedNames; + private DistributionDefaultCacheBehaviorForwardedValuesCookies() {} /** * @return Specifies whether you want CloudFront to forward * cookies to the origin that is associated with this cache behavior. You can @@ -62,33 +55,35 @@ public static Builder builder() { public static Builder builder(DistributionDefaultCacheBehaviorForwardedValuesCookies defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String forward; private @Nullable List whitelistedNames; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionDefaultCacheBehaviorForwardedValuesCookies defaults) { Objects.requireNonNull(defaults); this.forward = defaults.forward; this.whitelistedNames = defaults.whitelistedNames; } + @CustomType.Setter public Builder forward(String forward) { this.forward = Objects.requireNonNull(forward); return this; } + @CustomType.Setter public Builder whitelistedNames(@Nullable List whitelistedNames) { this.whitelistedNames = whitelistedNames; return this; } public Builder whitelistedNames(String... whitelistedNames) { return whitelistedNames(List.of(whitelistedNames)); - } public DistributionDefaultCacheBehaviorForwardedValuesCookies build() { - return new DistributionDefaultCacheBehaviorForwardedValuesCookies(forward, whitelistedNames); + } + public DistributionDefaultCacheBehaviorForwardedValuesCookies build() { + final var o = new DistributionDefaultCacheBehaviorForwardedValuesCookies(); + o.forward = forward; + o.whitelistedNames = whitelistedNames; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorFunctionAssociation.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorFunctionAssociation.java index 3facb18f6a9..3cadaf26011 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorFunctionAssociation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorFunctionAssociation.java @@ -14,21 +14,14 @@ public final class DistributionDefaultCacheBehaviorFunctionAssociation { * Valid values: `viewer-request` or `viewer-response` * */ - private final String eventType; + private String eventType; /** * @return ARN of the Cloudfront function. * */ - private final String functionArn; - - @CustomType.Constructor - private DistributionDefaultCacheBehaviorFunctionAssociation( - @CustomType.Parameter("eventType") String eventType, - @CustomType.Parameter("functionArn") String functionArn) { - this.eventType = eventType; - this.functionArn = functionArn; - } + private String functionArn; + private DistributionDefaultCacheBehaviorFunctionAssociation() {} /** * @return The specific event to trigger this function. * Valid values: `viewer-request` or `viewer-response` @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DistributionDefaultCacheBehaviorFunctionAssociation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String eventType; private String functionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionDefaultCacheBehaviorFunctionAssociation defaults) { Objects.requireNonNull(defaults); this.eventType = defaults.eventType; this.functionArn = defaults.functionArn; } + @CustomType.Setter public Builder eventType(String eventType) { this.eventType = Objects.requireNonNull(eventType); return this; } + @CustomType.Setter public Builder functionArn(String functionArn) { this.functionArn = Objects.requireNonNull(functionArn); return this; - } public DistributionDefaultCacheBehaviorFunctionAssociation build() { - return new DistributionDefaultCacheBehaviorFunctionAssociation(eventType, functionArn); + } + public DistributionDefaultCacheBehaviorFunctionAssociation build() { + final var o = new DistributionDefaultCacheBehaviorFunctionAssociation(); + o.eventType = eventType; + o.functionArn = functionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorLambdaFunctionAssociation.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorLambdaFunctionAssociation.java index 98920ceb82c..ec1e2045eb9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorLambdaFunctionAssociation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionDefaultCacheBehaviorLambdaFunctionAssociation.java @@ -17,28 +17,19 @@ public final class DistributionDefaultCacheBehaviorLambdaFunctionAssociation { * Valid values: `viewer-request` or `viewer-response` * */ - private final String eventType; + private String eventType; /** * @return When set to true it exposes the request body to the lambda function. Defaults to false. Valid values: `true`, `false`. * */ - private final @Nullable Boolean includeBody; + private @Nullable Boolean includeBody; /** * @return ARN of the Lambda function. * */ - private final String lambdaArn; - - @CustomType.Constructor - private DistributionDefaultCacheBehaviorLambdaFunctionAssociation( - @CustomType.Parameter("eventType") String eventType, - @CustomType.Parameter("includeBody") @Nullable Boolean includeBody, - @CustomType.Parameter("lambdaArn") String lambdaArn) { - this.eventType = eventType; - this.includeBody = includeBody; - this.lambdaArn = lambdaArn; - } + private String lambdaArn; + private DistributionDefaultCacheBehaviorLambdaFunctionAssociation() {} /** * @return The specific event to trigger this function. * Valid values: `viewer-request` or `viewer-response` @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(DistributionDefaultCacheBehaviorLambdaFunctionAssociation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String eventType; private @Nullable Boolean includeBody; private String lambdaArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionDefaultCacheBehaviorLambdaFunctionAssociation defaults) { Objects.requireNonNull(defaults); this.eventType = defaults.eventType; @@ -86,19 +73,27 @@ public Builder(DistributionDefaultCacheBehaviorLambdaFunctionAssociation default this.lambdaArn = defaults.lambdaArn; } + @CustomType.Setter public Builder eventType(String eventType) { this.eventType = Objects.requireNonNull(eventType); return this; } + @CustomType.Setter public Builder includeBody(@Nullable Boolean includeBody) { this.includeBody = includeBody; return this; } + @CustomType.Setter public Builder lambdaArn(String lambdaArn) { this.lambdaArn = Objects.requireNonNull(lambdaArn); return this; - } public DistributionDefaultCacheBehaviorLambdaFunctionAssociation build() { - return new DistributionDefaultCacheBehaviorLambdaFunctionAssociation(eventType, includeBody, lambdaArn); + } + public DistributionDefaultCacheBehaviorLambdaFunctionAssociation build() { + final var o = new DistributionDefaultCacheBehaviorLambdaFunctionAssociation(); + o.eventType = eventType; + o.includeBody = includeBody; + o.lambdaArn = lambdaArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionLoggingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionLoggingConfig.java index 581f108edc2..27ecd5b68e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionLoggingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionLoggingConfig.java @@ -17,30 +17,21 @@ public final class DistributionLoggingConfig { * example, `myawslogbucket.s3.amazonaws.com`. * */ - private final String bucket; + private String bucket; /** * @return Specifies whether you want CloudFront to * include cookies in access logs (default: `false`). * */ - private final @Nullable Boolean includeCookies; + private @Nullable Boolean includeCookies; /** * @return An optional string that you want CloudFront to prefix * to the access log filenames for this distribution, for example, `myprefix/`. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private DistributionLoggingConfig( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("includeCookies") @Nullable Boolean includeCookies, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.bucket = bucket; - this.includeCookies = includeCookies; - this.prefix = prefix; - } + private @Nullable String prefix; + private DistributionLoggingConfig() {} /** * @return The Amazon S3 bucket to store the access logs in, for * example, `myawslogbucket.s3.amazonaws.com`. @@ -73,16 +64,12 @@ public static Builder builder() { public static Builder builder(DistributionLoggingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private @Nullable Boolean includeCookies; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionLoggingConfig defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -90,19 +77,27 @@ public Builder(DistributionLoggingConfig defaults) { this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder includeCookies(@Nullable Boolean includeCookies) { this.includeCookies = includeCookies; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public DistributionLoggingConfig build() { - return new DistributionLoggingConfig(bucket, includeCookies, prefix); + } + public DistributionLoggingConfig build() { + final var o = new DistributionLoggingConfig(); + o.bucket = bucket; + o.includeCookies = includeCookies; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehavior.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehavior.java index 918e9306a94..c6379c18de3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehavior.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehavior.java @@ -22,56 +22,56 @@ public final class DistributionOrderedCacheBehavior { * processes and forwards to your Amazon S3 bucket or your custom origin. * */ - private final List allowedMethods; + private List allowedMethods; /** * @return The unique identifier of the cache policy that * is attached to the cache behavior. * */ - private final @Nullable String cachePolicyId; + private @Nullable String cachePolicyId; /** * @return Controls whether CloudFront caches the * response to requests using the specified HTTP methods. * */ - private final List cachedMethods; + private List cachedMethods; /** * @return Whether you want CloudFront to automatically * compress content for web requests that include `Accept-Encoding: gzip` in * the request header (default: `false`). * */ - private final @Nullable Boolean compress; + private @Nullable Boolean compress; /** * @return The default amount of time (in seconds) that an * object is in a CloudFront cache before CloudFront forwards another request * in the absence of an `Cache-Control max-age` or `Expires` header. * */ - private final @Nullable Integer defaultTtl; + private @Nullable Integer defaultTtl; /** * @return Field level encryption configuration ID * */ - private final @Nullable String fieldLevelEncryptionId; + private @Nullable String fieldLevelEncryptionId; /** * @return The forwarded values configuration that specifies how CloudFront * handles query strings, cookies and headers (maximum one). * */ - private final @Nullable DistributionOrderedCacheBehaviorForwardedValues forwardedValues; + private @Nullable DistributionOrderedCacheBehaviorForwardedValues forwardedValues; /** * @return A config block that triggers a cloudfront * function with specific actions (maximum 2). * */ - private final @Nullable List functionAssociations; + private @Nullable List functionAssociations; /** * @return A config block that triggers a lambda * function with specific actions (maximum 4). * */ - private final @Nullable List lambdaFunctionAssociations; + private @Nullable List lambdaFunctionAssociations; /** * @return The maximum amount of time (in seconds) that an * object is in a CloudFront cache before CloudFront forwards another request @@ -80,63 +80,63 @@ public final class DistributionOrderedCacheBehavior { * s-maxage`, and `Expires` headers. * */ - private final @Nullable Integer maxTtl; + private @Nullable Integer maxTtl; /** * @return The minimum amount of time that you want objects to * stay in CloudFront caches before CloudFront queries your origin to see * whether the object has been updated. Defaults to 0 seconds. * */ - private final @Nullable Integer minTtl; + private @Nullable Integer minTtl; /** * @return The unique identifier of the origin request policy * that is attached to the behavior. * */ - private final @Nullable String originRequestPolicyId; + private @Nullable String originRequestPolicyId; /** * @return The pattern (for example, `images/*.jpg`) that * specifies which requests you want this cache behavior to apply to. * */ - private final String pathPattern; + private String pathPattern; /** * @return The ARN of the real-time log configuration * that is attached to this cache behavior. * */ - private final @Nullable String realtimeLogConfigArn; + private @Nullable String realtimeLogConfigArn; /** * @return The identifier for a response headers policy. * */ - private final @Nullable String responseHeadersPolicyId; + private @Nullable String responseHeadersPolicyId; /** * @return Indicates whether you want to distribute * media files in Microsoft Smooth Streaming format using the origin that is * associated with this cache behavior. * */ - private final @Nullable Boolean smoothStreaming; + private @Nullable Boolean smoothStreaming; /** * @return The value of ID for the origin that you want * CloudFront to route requests to when a request matches the path pattern * either for a cache behavior or for the default cache behavior. * */ - private final String targetOriginId; + private String targetOriginId; /** * @return A list of key group IDs that CloudFront can use to validate signed URLs or signed cookies. * See the [CloudFront User Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html) for more information about this feature. * */ - private final @Nullable List trustedKeyGroups; + private @Nullable List trustedKeyGroups; /** * @return List of AWS account IDs (or `self`) that you want to allow to create signed URLs for private content. * See the [CloudFront User Guide](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html) for more information about this feature. * */ - private final @Nullable List trustedSigners; + private @Nullable List trustedSigners; /** * @return Use this element to specify the * protocol that users can use to access the files in the origin specified by @@ -144,52 +144,9 @@ public final class DistributionOrderedCacheBehavior { * of `allow-all`, `https-only`, or `redirect-to-https`. * */ - private final String viewerProtocolPolicy; - - @CustomType.Constructor - private DistributionOrderedCacheBehavior( - @CustomType.Parameter("allowedMethods") List allowedMethods, - @CustomType.Parameter("cachePolicyId") @Nullable String cachePolicyId, - @CustomType.Parameter("cachedMethods") List cachedMethods, - @CustomType.Parameter("compress") @Nullable Boolean compress, - @CustomType.Parameter("defaultTtl") @Nullable Integer defaultTtl, - @CustomType.Parameter("fieldLevelEncryptionId") @Nullable String fieldLevelEncryptionId, - @CustomType.Parameter("forwardedValues") @Nullable DistributionOrderedCacheBehaviorForwardedValues forwardedValues, - @CustomType.Parameter("functionAssociations") @Nullable List functionAssociations, - @CustomType.Parameter("lambdaFunctionAssociations") @Nullable List lambdaFunctionAssociations, - @CustomType.Parameter("maxTtl") @Nullable Integer maxTtl, - @CustomType.Parameter("minTtl") @Nullable Integer minTtl, - @CustomType.Parameter("originRequestPolicyId") @Nullable String originRequestPolicyId, - @CustomType.Parameter("pathPattern") String pathPattern, - @CustomType.Parameter("realtimeLogConfigArn") @Nullable String realtimeLogConfigArn, - @CustomType.Parameter("responseHeadersPolicyId") @Nullable String responseHeadersPolicyId, - @CustomType.Parameter("smoothStreaming") @Nullable Boolean smoothStreaming, - @CustomType.Parameter("targetOriginId") String targetOriginId, - @CustomType.Parameter("trustedKeyGroups") @Nullable List trustedKeyGroups, - @CustomType.Parameter("trustedSigners") @Nullable List trustedSigners, - @CustomType.Parameter("viewerProtocolPolicy") String viewerProtocolPolicy) { - this.allowedMethods = allowedMethods; - this.cachePolicyId = cachePolicyId; - this.cachedMethods = cachedMethods; - this.compress = compress; - this.defaultTtl = defaultTtl; - this.fieldLevelEncryptionId = fieldLevelEncryptionId; - this.forwardedValues = forwardedValues; - this.functionAssociations = functionAssociations; - this.lambdaFunctionAssociations = lambdaFunctionAssociations; - this.maxTtl = maxTtl; - this.minTtl = minTtl; - this.originRequestPolicyId = originRequestPolicyId; - this.pathPattern = pathPattern; - this.realtimeLogConfigArn = realtimeLogConfigArn; - this.responseHeadersPolicyId = responseHeadersPolicyId; - this.smoothStreaming = smoothStreaming; - this.targetOriginId = targetOriginId; - this.trustedKeyGroups = trustedKeyGroups; - this.trustedSigners = trustedSigners; - this.viewerProtocolPolicy = viewerProtocolPolicy; - } + private String viewerProtocolPolicy; + private DistributionOrderedCacheBehavior() {} /** * @return Controls which HTTP methods CloudFront * processes and forwards to your Amazon S3 bucket or your custom origin. @@ -366,7 +323,7 @@ public static Builder builder() { public static Builder builder(DistributionOrderedCacheBehavior defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List allowedMethods; private @Nullable String cachePolicyId; @@ -388,11 +345,7 @@ public static final class Builder { private @Nullable List trustedKeyGroups; private @Nullable List trustedSigners; private String viewerProtocolPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOrderedCacheBehavior defaults) { Objects.requireNonNull(defaults); this.allowedMethods = defaults.allowedMethods; @@ -417,6 +370,7 @@ public Builder(DistributionOrderedCacheBehavior defaults) { this.viewerProtocolPolicy = defaults.viewerProtocolPolicy; } + @CustomType.Setter public Builder allowedMethods(List allowedMethods) { this.allowedMethods = Objects.requireNonNull(allowedMethods); return this; @@ -424,10 +378,12 @@ public Builder allowedMethods(List allowedMethods) { public Builder allowedMethods(String... allowedMethods) { return allowedMethods(List.of(allowedMethods)); } + @CustomType.Setter public Builder cachePolicyId(@Nullable String cachePolicyId) { this.cachePolicyId = cachePolicyId; return this; } + @CustomType.Setter public Builder cachedMethods(List cachedMethods) { this.cachedMethods = Objects.requireNonNull(cachedMethods); return this; @@ -435,22 +391,27 @@ public Builder cachedMethods(List cachedMethods) { public Builder cachedMethods(String... cachedMethods) { return cachedMethods(List.of(cachedMethods)); } + @CustomType.Setter public Builder compress(@Nullable Boolean compress) { this.compress = compress; return this; } + @CustomType.Setter public Builder defaultTtl(@Nullable Integer defaultTtl) { this.defaultTtl = defaultTtl; return this; } + @CustomType.Setter public Builder fieldLevelEncryptionId(@Nullable String fieldLevelEncryptionId) { this.fieldLevelEncryptionId = fieldLevelEncryptionId; return this; } + @CustomType.Setter public Builder forwardedValues(@Nullable DistributionOrderedCacheBehaviorForwardedValues forwardedValues) { this.forwardedValues = forwardedValues; return this; } + @CustomType.Setter public Builder functionAssociations(@Nullable List functionAssociations) { this.functionAssociations = functionAssociations; return this; @@ -458,6 +419,7 @@ public Builder functionAssociations(@Nullable List lambdaFunctionAssociations) { this.lambdaFunctionAssociations = lambdaFunctionAssociations; return this; @@ -465,38 +427,47 @@ public Builder lambdaFunctionAssociations(@Nullable List trustedKeyGroups) { this.trustedKeyGroups = trustedKeyGroups; return this; @@ -504,6 +475,7 @@ public Builder trustedKeyGroups(@Nullable List trustedKeyGroups) { public Builder trustedKeyGroups(String... trustedKeyGroups) { return trustedKeyGroups(List.of(trustedKeyGroups)); } + @CustomType.Setter public Builder trustedSigners(@Nullable List trustedSigners) { this.trustedSigners = trustedSigners; return this; @@ -511,11 +483,34 @@ public Builder trustedSigners(@Nullable List trustedSigners) { public Builder trustedSigners(String... trustedSigners) { return trustedSigners(List.of(trustedSigners)); } + @CustomType.Setter public Builder viewerProtocolPolicy(String viewerProtocolPolicy) { this.viewerProtocolPolicy = Objects.requireNonNull(viewerProtocolPolicy); return this; - } public DistributionOrderedCacheBehavior build() { - return new DistributionOrderedCacheBehavior(allowedMethods, cachePolicyId, cachedMethods, compress, defaultTtl, fieldLevelEncryptionId, forwardedValues, functionAssociations, lambdaFunctionAssociations, maxTtl, minTtl, originRequestPolicyId, pathPattern, realtimeLogConfigArn, responseHeadersPolicyId, smoothStreaming, targetOriginId, trustedKeyGroups, trustedSigners, viewerProtocolPolicy); + } + public DistributionOrderedCacheBehavior build() { + final var o = new DistributionOrderedCacheBehavior(); + o.allowedMethods = allowedMethods; + o.cachePolicyId = cachePolicyId; + o.cachedMethods = cachedMethods; + o.compress = compress; + o.defaultTtl = defaultTtl; + o.fieldLevelEncryptionId = fieldLevelEncryptionId; + o.forwardedValues = forwardedValues; + o.functionAssociations = functionAssociations; + o.lambdaFunctionAssociations = lambdaFunctionAssociations; + o.maxTtl = maxTtl; + o.minTtl = minTtl; + o.originRequestPolicyId = originRequestPolicyId; + o.pathPattern = pathPattern; + o.realtimeLogConfigArn = realtimeLogConfigArn; + o.responseHeadersPolicyId = responseHeadersPolicyId; + o.smoothStreaming = smoothStreaming; + o.targetOriginId = targetOriginId; + o.trustedKeyGroups = trustedKeyGroups; + o.trustedSigners = trustedSigners; + o.viewerProtocolPolicy = viewerProtocolPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorForwardedValues.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorForwardedValues.java index 66376205cae..94202cf70a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorForwardedValues.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorForwardedValues.java @@ -18,20 +18,20 @@ public final class DistributionOrderedCacheBehaviorForwardedValues { * that specifies how CloudFront handles cookies (maximum one). * */ - private final DistributionOrderedCacheBehaviorForwardedValuesCookies cookies; + private DistributionOrderedCacheBehaviorForwardedValuesCookies cookies; /** * @return Specifies the Headers, if any, that you want * CloudFront to vary upon for this cache behavior. Specify `*` to include all * headers. * */ - private final @Nullable List headers; + private @Nullable List headers; /** * @return Indicates whether you want CloudFront to forward * query strings to the origin that is associated with this cache behavior. * */ - private final Boolean queryString; + private Boolean queryString; /** * @return When specified, along with a value of * `true` for `query_string`, all query strings are forwarded, however only the @@ -39,20 +39,9 @@ public final class DistributionOrderedCacheBehaviorForwardedValues { * value of `true` for `query_string`, all query string keys are cached. * */ - private final @Nullable List queryStringCacheKeys; - - @CustomType.Constructor - private DistributionOrderedCacheBehaviorForwardedValues( - @CustomType.Parameter("cookies") DistributionOrderedCacheBehaviorForwardedValuesCookies cookies, - @CustomType.Parameter("headers") @Nullable List headers, - @CustomType.Parameter("queryString") Boolean queryString, - @CustomType.Parameter("queryStringCacheKeys") @Nullable List queryStringCacheKeys) { - this.cookies = cookies; - this.headers = headers; - this.queryString = queryString; - this.queryStringCacheKeys = queryStringCacheKeys; - } + private @Nullable List queryStringCacheKeys; + private DistributionOrderedCacheBehaviorForwardedValues() {} /** * @return The forwarded values cookies * that specifies how CloudFront handles cookies (maximum one). @@ -96,17 +85,13 @@ public static Builder builder() { public static Builder builder(DistributionOrderedCacheBehaviorForwardedValues defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private DistributionOrderedCacheBehaviorForwardedValuesCookies cookies; private @Nullable List headers; private Boolean queryString; private @Nullable List queryStringCacheKeys; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOrderedCacheBehaviorForwardedValues defaults) { Objects.requireNonNull(defaults); this.cookies = defaults.cookies; @@ -115,10 +100,12 @@ public Builder(DistributionOrderedCacheBehaviorForwardedValues defaults) { this.queryStringCacheKeys = defaults.queryStringCacheKeys; } + @CustomType.Setter public Builder cookies(DistributionOrderedCacheBehaviorForwardedValuesCookies cookies) { this.cookies = Objects.requireNonNull(cookies); return this; } + @CustomType.Setter public Builder headers(@Nullable List headers) { this.headers = headers; return this; @@ -126,18 +113,26 @@ public Builder headers(@Nullable List headers) { public Builder headers(String... headers) { return headers(List.of(headers)); } + @CustomType.Setter public Builder queryString(Boolean queryString) { this.queryString = Objects.requireNonNull(queryString); return this; } + @CustomType.Setter public Builder queryStringCacheKeys(@Nullable List queryStringCacheKeys) { this.queryStringCacheKeys = queryStringCacheKeys; return this; } public Builder queryStringCacheKeys(String... queryStringCacheKeys) { return queryStringCacheKeys(List.of(queryStringCacheKeys)); - } public DistributionOrderedCacheBehaviorForwardedValues build() { - return new DistributionOrderedCacheBehaviorForwardedValues(cookies, headers, queryString, queryStringCacheKeys); + } + public DistributionOrderedCacheBehaviorForwardedValues build() { + final var o = new DistributionOrderedCacheBehaviorForwardedValues(); + o.cookies = cookies; + o.headers = headers; + o.queryString = queryString; + o.queryStringCacheKeys = queryStringCacheKeys; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorForwardedValuesCookies.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorForwardedValuesCookies.java index 501bdcd77cc..d673b16a1ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorForwardedValuesCookies.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorForwardedValuesCookies.java @@ -18,23 +18,16 @@ public final class DistributionOrderedCacheBehaviorForwardedValuesCookies { * subsequent `whitelisted_names` * */ - private final String forward; + private String forward; /** * @return If you have specified `whitelist` to * `forward`, the whitelisted cookies that you want CloudFront to forward to * your origin. * */ - private final @Nullable List whitelistedNames; - - @CustomType.Constructor - private DistributionOrderedCacheBehaviorForwardedValuesCookies( - @CustomType.Parameter("forward") String forward, - @CustomType.Parameter("whitelistedNames") @Nullable List whitelistedNames) { - this.forward = forward; - this.whitelistedNames = whitelistedNames; - } + private @Nullable List whitelistedNames; + private DistributionOrderedCacheBehaviorForwardedValuesCookies() {} /** * @return Specifies whether you want CloudFront to forward * cookies to the origin that is associated with this cache behavior. You can @@ -62,33 +55,35 @@ public static Builder builder() { public static Builder builder(DistributionOrderedCacheBehaviorForwardedValuesCookies defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String forward; private @Nullable List whitelistedNames; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOrderedCacheBehaviorForwardedValuesCookies defaults) { Objects.requireNonNull(defaults); this.forward = defaults.forward; this.whitelistedNames = defaults.whitelistedNames; } + @CustomType.Setter public Builder forward(String forward) { this.forward = Objects.requireNonNull(forward); return this; } + @CustomType.Setter public Builder whitelistedNames(@Nullable List whitelistedNames) { this.whitelistedNames = whitelistedNames; return this; } public Builder whitelistedNames(String... whitelistedNames) { return whitelistedNames(List.of(whitelistedNames)); - } public DistributionOrderedCacheBehaviorForwardedValuesCookies build() { - return new DistributionOrderedCacheBehaviorForwardedValuesCookies(forward, whitelistedNames); + } + public DistributionOrderedCacheBehaviorForwardedValuesCookies build() { + final var o = new DistributionOrderedCacheBehaviorForwardedValuesCookies(); + o.forward = forward; + o.whitelistedNames = whitelistedNames; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorFunctionAssociation.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorFunctionAssociation.java index 68e90edf45a..8e450a3e2cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorFunctionAssociation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorFunctionAssociation.java @@ -14,21 +14,14 @@ public final class DistributionOrderedCacheBehaviorFunctionAssociation { * Valid values: `viewer-request` or `viewer-response` * */ - private final String eventType; + private String eventType; /** * @return ARN of the Cloudfront function. * */ - private final String functionArn; - - @CustomType.Constructor - private DistributionOrderedCacheBehaviorFunctionAssociation( - @CustomType.Parameter("eventType") String eventType, - @CustomType.Parameter("functionArn") String functionArn) { - this.eventType = eventType; - this.functionArn = functionArn; - } + private String functionArn; + private DistributionOrderedCacheBehaviorFunctionAssociation() {} /** * @return The specific event to trigger this function. * Valid values: `viewer-request` or `viewer-response` @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DistributionOrderedCacheBehaviorFunctionAssociation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String eventType; private String functionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOrderedCacheBehaviorFunctionAssociation defaults) { Objects.requireNonNull(defaults); this.eventType = defaults.eventType; this.functionArn = defaults.functionArn; } + @CustomType.Setter public Builder eventType(String eventType) { this.eventType = Objects.requireNonNull(eventType); return this; } + @CustomType.Setter public Builder functionArn(String functionArn) { this.functionArn = Objects.requireNonNull(functionArn); return this; - } public DistributionOrderedCacheBehaviorFunctionAssociation build() { - return new DistributionOrderedCacheBehaviorFunctionAssociation(eventType, functionArn); + } + public DistributionOrderedCacheBehaviorFunctionAssociation build() { + final var o = new DistributionOrderedCacheBehaviorFunctionAssociation(); + o.eventType = eventType; + o.functionArn = functionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorLambdaFunctionAssociation.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorLambdaFunctionAssociation.java index 9a6ef0aa82c..159ec47559f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorLambdaFunctionAssociation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrderedCacheBehaviorLambdaFunctionAssociation.java @@ -17,28 +17,19 @@ public final class DistributionOrderedCacheBehaviorLambdaFunctionAssociation { * Valid values: `viewer-request` or `viewer-response` * */ - private final String eventType; + private String eventType; /** * @return When set to true it exposes the request body to the lambda function. Defaults to false. Valid values: `true`, `false`. * */ - private final @Nullable Boolean includeBody; + private @Nullable Boolean includeBody; /** * @return ARN of the Lambda function. * */ - private final String lambdaArn; - - @CustomType.Constructor - private DistributionOrderedCacheBehaviorLambdaFunctionAssociation( - @CustomType.Parameter("eventType") String eventType, - @CustomType.Parameter("includeBody") @Nullable Boolean includeBody, - @CustomType.Parameter("lambdaArn") String lambdaArn) { - this.eventType = eventType; - this.includeBody = includeBody; - this.lambdaArn = lambdaArn; - } + private String lambdaArn; + private DistributionOrderedCacheBehaviorLambdaFunctionAssociation() {} /** * @return The specific event to trigger this function. * Valid values: `viewer-request` or `viewer-response` @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(DistributionOrderedCacheBehaviorLambdaFunctionAssociation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String eventType; private @Nullable Boolean includeBody; private String lambdaArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOrderedCacheBehaviorLambdaFunctionAssociation defaults) { Objects.requireNonNull(defaults); this.eventType = defaults.eventType; @@ -86,19 +73,27 @@ public Builder(DistributionOrderedCacheBehaviorLambdaFunctionAssociation default this.lambdaArn = defaults.lambdaArn; } + @CustomType.Setter public Builder eventType(String eventType) { this.eventType = Objects.requireNonNull(eventType); return this; } + @CustomType.Setter public Builder includeBody(@Nullable Boolean includeBody) { this.includeBody = includeBody; return this; } + @CustomType.Setter public Builder lambdaArn(String lambdaArn) { this.lambdaArn = Objects.requireNonNull(lambdaArn); return this; - } public DistributionOrderedCacheBehaviorLambdaFunctionAssociation build() { - return new DistributionOrderedCacheBehaviorLambdaFunctionAssociation(eventType, includeBody, lambdaArn); + } + public DistributionOrderedCacheBehaviorLambdaFunctionAssociation build() { + final var o = new DistributionOrderedCacheBehaviorLambdaFunctionAssociation(); + o.eventType = eventType; + o.includeBody = includeBody; + o.lambdaArn = lambdaArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrigin.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrigin.java index cd36427e837..15f1025bac0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrigin.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOrigin.java @@ -21,80 +21,59 @@ public final class DistributionOrigin { * @return The number of times that CloudFront attempts to connect to the origin. Must be between 1-3. Defaults to 3. * */ - private final @Nullable Integer connectionAttempts; + private @Nullable Integer connectionAttempts; /** * @return The number of seconds that CloudFront waits when trying to establish a connection to the origin. Must be between 1-10. Defaults to 10. * */ - private final @Nullable Integer connectionTimeout; + private @Nullable Integer connectionTimeout; /** * @return One or more sub-resources with `name` and * `value` parameters that specify header data that will be sent to the origin * (multiples allowed). * */ - private final @Nullable List customHeaders; + private @Nullable List customHeaders; /** * @return The CloudFront custom * origin configuration information. If an S3 * origin is required, use `s3_origin_config` instead. * */ - private final @Nullable DistributionOriginCustomOriginConfig customOriginConfig; + private @Nullable DistributionOriginCustomOriginConfig customOriginConfig; /** * @return The DNS domain name of either the S3 bucket, or * web site of your custom origin. * */ - private final String domainName; + private String domainName; /** * @return The unique identifier of the member origin * */ - private final String originId; + private String originId; /** * @return An optional element that causes CloudFront to * request your content from a directory in your Amazon S3 bucket or your * custom origin. * */ - private final @Nullable String originPath; + private @Nullable String originPath; /** * @return The CloudFront Origin Shield * configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html) in the Amazon CloudFront Developer Guide. * */ - private final @Nullable DistributionOriginOriginShield originShield; + private @Nullable DistributionOriginOriginShield originShield; /** * @return The CloudFront S3 origin * configuration information. If a custom origin is required, use * `custom_origin_config` instead. * */ - private final @Nullable DistributionOriginS3OriginConfig s3OriginConfig; - - @CustomType.Constructor - private DistributionOrigin( - @CustomType.Parameter("connectionAttempts") @Nullable Integer connectionAttempts, - @CustomType.Parameter("connectionTimeout") @Nullable Integer connectionTimeout, - @CustomType.Parameter("customHeaders") @Nullable List customHeaders, - @CustomType.Parameter("customOriginConfig") @Nullable DistributionOriginCustomOriginConfig customOriginConfig, - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("originId") String originId, - @CustomType.Parameter("originPath") @Nullable String originPath, - @CustomType.Parameter("originShield") @Nullable DistributionOriginOriginShield originShield, - @CustomType.Parameter("s3OriginConfig") @Nullable DistributionOriginS3OriginConfig s3OriginConfig) { - this.connectionAttempts = connectionAttempts; - this.connectionTimeout = connectionTimeout; - this.customHeaders = customHeaders; - this.customOriginConfig = customOriginConfig; - this.domainName = domainName; - this.originId = originId; - this.originPath = originPath; - this.originShield = originShield; - this.s3OriginConfig = s3OriginConfig; - } + private @Nullable DistributionOriginS3OriginConfig s3OriginConfig; + private DistributionOrigin() {} /** * @return The number of times that CloudFront attempts to connect to the origin. Must be between 1-3. Defaults to 3. * @@ -176,7 +155,7 @@ public static Builder builder() { public static Builder builder(DistributionOrigin defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer connectionAttempts; private @Nullable Integer connectionTimeout; @@ -187,11 +166,7 @@ public static final class Builder { private @Nullable String originPath; private @Nullable DistributionOriginOriginShield originShield; private @Nullable DistributionOriginS3OriginConfig s3OriginConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOrigin defaults) { Objects.requireNonNull(defaults); this.connectionAttempts = defaults.connectionAttempts; @@ -205,14 +180,17 @@ public Builder(DistributionOrigin defaults) { this.s3OriginConfig = defaults.s3OriginConfig; } + @CustomType.Setter public Builder connectionAttempts(@Nullable Integer connectionAttempts) { this.connectionAttempts = connectionAttempts; return this; } + @CustomType.Setter public Builder connectionTimeout(@Nullable Integer connectionTimeout) { this.connectionTimeout = connectionTimeout; return this; } + @CustomType.Setter public Builder customHeaders(@Nullable List customHeaders) { this.customHeaders = customHeaders; return this; @@ -220,31 +198,48 @@ public Builder customHeaders(@Nullable List cust public Builder customHeaders(DistributionOriginCustomHeader... customHeaders) { return customHeaders(List.of(customHeaders)); } + @CustomType.Setter public Builder customOriginConfig(@Nullable DistributionOriginCustomOriginConfig customOriginConfig) { this.customOriginConfig = customOriginConfig; return this; } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder originId(String originId) { this.originId = Objects.requireNonNull(originId); return this; } + @CustomType.Setter public Builder originPath(@Nullable String originPath) { this.originPath = originPath; return this; } + @CustomType.Setter public Builder originShield(@Nullable DistributionOriginOriginShield originShield) { this.originShield = originShield; return this; } + @CustomType.Setter public Builder s3OriginConfig(@Nullable DistributionOriginS3OriginConfig s3OriginConfig) { this.s3OriginConfig = s3OriginConfig; return this; - } public DistributionOrigin build() { - return new DistributionOrigin(connectionAttempts, connectionTimeout, customHeaders, customOriginConfig, domainName, originId, originPath, originShield, s3OriginConfig); + } + public DistributionOrigin build() { + final var o = new DistributionOrigin(); + o.connectionAttempts = connectionAttempts; + o.connectionTimeout = connectionTimeout; + o.customHeaders = customHeaders; + o.customOriginConfig = customOriginConfig; + o.domainName = domainName; + o.originId = originId; + o.originPath = originPath; + o.originShield = originShield; + o.s3OriginConfig = s3OriginConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginCustomHeader.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginCustomHeader.java index 855e451203d..248bd1a42bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginCustomHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginCustomHeader.java @@ -9,17 +9,10 @@ @CustomType public final class DistributionOriginCustomHeader { - private final String name; - private final String value; - - @CustomType.Constructor - private DistributionOriginCustomHeader( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String name; + private String value; + private DistributionOriginCustomHeader() {} public String name() { return this.name; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(DistributionOriginCustomHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOriginCustomHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public DistributionOriginCustomHeader build() { - return new DistributionOriginCustomHeader(name, value); + } + public DistributionOriginCustomHeader build() { + final var o = new DistributionOriginCustomHeader(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginCustomOriginConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginCustomOriginConfig.java index 0cf29a95081..074aafc2f44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginCustomOriginConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginCustomOriginConfig.java @@ -17,52 +17,37 @@ public final class DistributionOriginCustomOriginConfig { * @return The HTTP port the custom origin listens on. * */ - private final Integer httpPort; + private Integer httpPort; /** * @return The HTTPS port the custom origin listens on. * */ - private final Integer httpsPort; + private Integer httpsPort; /** * @return The Custom KeepAlive timeout, in seconds. By default, AWS enforces a limit of `60`. But you can request an [increase](http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/RequestAndResponseBehaviorCustomOrigin.html#request-custom-request-timeout). * */ - private final @Nullable Integer originKeepaliveTimeout; + private @Nullable Integer originKeepaliveTimeout; /** * @return The origin protocol policy to apply to * your origin. One of `http-only`, `https-only`, or `match-viewer`. * */ - private final String originProtocolPolicy; + private String originProtocolPolicy; /** * @return The Custom Read timeout, in seconds. By default, AWS enforces a limit of `60`. But you can request an [increase](http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/RequestAndResponseBehaviorCustomOrigin.html#request-custom-request-timeout). * */ - private final @Nullable Integer originReadTimeout; + private @Nullable Integer originReadTimeout; /** * @return The SSL/TLS protocols that you want * CloudFront to use when communicating with your origin over HTTPS. A list of * one or more of `SSLv3`, `TLSv1`, `TLSv1.1`, and `TLSv1.2`. * */ - private final List originSslProtocols; - - @CustomType.Constructor - private DistributionOriginCustomOriginConfig( - @CustomType.Parameter("httpPort") Integer httpPort, - @CustomType.Parameter("httpsPort") Integer httpsPort, - @CustomType.Parameter("originKeepaliveTimeout") @Nullable Integer originKeepaliveTimeout, - @CustomType.Parameter("originProtocolPolicy") String originProtocolPolicy, - @CustomType.Parameter("originReadTimeout") @Nullable Integer originReadTimeout, - @CustomType.Parameter("originSslProtocols") List originSslProtocols) { - this.httpPort = httpPort; - this.httpsPort = httpsPort; - this.originKeepaliveTimeout = originKeepaliveTimeout; - this.originProtocolPolicy = originProtocolPolicy; - this.originReadTimeout = originReadTimeout; - this.originSslProtocols = originSslProtocols; - } + private List originSslProtocols; + private DistributionOriginCustomOriginConfig() {} /** * @return The HTTP port the custom origin listens on. * @@ -116,7 +101,7 @@ public static Builder builder() { public static Builder builder(DistributionOriginCustomOriginConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer httpPort; private Integer httpsPort; @@ -124,11 +109,7 @@ public static final class Builder { private String originProtocolPolicy; private @Nullable Integer originReadTimeout; private List originSslProtocols; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOriginCustomOriginConfig defaults) { Objects.requireNonNull(defaults); this.httpPort = defaults.httpPort; @@ -139,34 +120,48 @@ public Builder(DistributionOriginCustomOriginConfig defaults) { this.originSslProtocols = defaults.originSslProtocols; } + @CustomType.Setter public Builder httpPort(Integer httpPort) { this.httpPort = Objects.requireNonNull(httpPort); return this; } + @CustomType.Setter public Builder httpsPort(Integer httpsPort) { this.httpsPort = Objects.requireNonNull(httpsPort); return this; } + @CustomType.Setter public Builder originKeepaliveTimeout(@Nullable Integer originKeepaliveTimeout) { this.originKeepaliveTimeout = originKeepaliveTimeout; return this; } + @CustomType.Setter public Builder originProtocolPolicy(String originProtocolPolicy) { this.originProtocolPolicy = Objects.requireNonNull(originProtocolPolicy); return this; } + @CustomType.Setter public Builder originReadTimeout(@Nullable Integer originReadTimeout) { this.originReadTimeout = originReadTimeout; return this; } + @CustomType.Setter public Builder originSslProtocols(List originSslProtocols) { this.originSslProtocols = Objects.requireNonNull(originSslProtocols); return this; } public Builder originSslProtocols(String... originSslProtocols) { return originSslProtocols(List.of(originSslProtocols)); - } public DistributionOriginCustomOriginConfig build() { - return new DistributionOriginCustomOriginConfig(httpPort, httpsPort, originKeepaliveTimeout, originProtocolPolicy, originReadTimeout, originSslProtocols); + } + public DistributionOriginCustomOriginConfig build() { + final var o = new DistributionOriginCustomOriginConfig(); + o.httpPort = httpPort; + o.httpsPort = httpsPort; + o.originKeepaliveTimeout = originKeepaliveTimeout; + o.originProtocolPolicy = originProtocolPolicy; + o.originReadTimeout = originReadTimeout; + o.originSslProtocols = originSslProtocols; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginGroup.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginGroup.java index 55c8878d06b..5257bff5220 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginGroup.java @@ -16,28 +16,19 @@ public final class DistributionOriginGroup { * @return The failover criteria for when to failover to the secondary origin * */ - private final DistributionOriginGroupFailoverCriteria failoverCriteria; + private DistributionOriginGroupFailoverCriteria failoverCriteria; /** * @return Ordered member configuration blocks assigned to the origin group, where the first member is the primary origin. You must specify two members. * */ - private final List members; + private List members; /** * @return The unique identifier of the member origin * */ - private final String originId; - - @CustomType.Constructor - private DistributionOriginGroup( - @CustomType.Parameter("failoverCriteria") DistributionOriginGroupFailoverCriteria failoverCriteria, - @CustomType.Parameter("members") List members, - @CustomType.Parameter("originId") String originId) { - this.failoverCriteria = failoverCriteria; - this.members = members; - this.originId = originId; - } + private String originId; + private DistributionOriginGroup() {} /** * @return The failover criteria for when to failover to the secondary origin * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(DistributionOriginGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private DistributionOriginGroupFailoverCriteria failoverCriteria; private List members; private String originId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOriginGroup defaults) { Objects.requireNonNull(defaults); this.failoverCriteria = defaults.failoverCriteria; @@ -84,10 +71,12 @@ public Builder(DistributionOriginGroup defaults) { this.originId = defaults.originId; } + @CustomType.Setter public Builder failoverCriteria(DistributionOriginGroupFailoverCriteria failoverCriteria) { this.failoverCriteria = Objects.requireNonNull(failoverCriteria); return this; } + @CustomType.Setter public Builder members(List members) { this.members = Objects.requireNonNull(members); return this; @@ -95,11 +84,17 @@ public Builder members(List members) { public Builder members(DistributionOriginGroupMember... members) { return members(List.of(members)); } + @CustomType.Setter public Builder originId(String originId) { this.originId = Objects.requireNonNull(originId); return this; - } public DistributionOriginGroup build() { - return new DistributionOriginGroup(failoverCriteria, members, originId); + } + public DistributionOriginGroup build() { + final var o = new DistributionOriginGroup(); + o.failoverCriteria = failoverCriteria; + o.members = members; + o.originId = originId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginGroupFailoverCriteria.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginGroupFailoverCriteria.java index a9461e8b37d..185bbdecc05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginGroupFailoverCriteria.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginGroupFailoverCriteria.java @@ -14,13 +14,9 @@ public final class DistributionOriginGroupFailoverCriteria { * @return A list of HTTP status codes for the origin group * */ - private final List statusCodes; - - @CustomType.Constructor - private DistributionOriginGroupFailoverCriteria(@CustomType.Parameter("statusCodes") List statusCodes) { - this.statusCodes = statusCodes; - } + private List statusCodes; + private DistributionOriginGroupFailoverCriteria() {} /** * @return A list of HTTP status codes for the origin group * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(DistributionOriginGroupFailoverCriteria defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statusCodes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOriginGroupFailoverCriteria defaults) { Objects.requireNonNull(defaults); this.statusCodes = defaults.statusCodes; } + @CustomType.Setter public Builder statusCodes(List statusCodes) { this.statusCodes = Objects.requireNonNull(statusCodes); return this; } public Builder statusCodes(Integer... statusCodes) { return statusCodes(List.of(statusCodes)); - } public DistributionOriginGroupFailoverCriteria build() { - return new DistributionOriginGroupFailoverCriteria(statusCodes); + } + public DistributionOriginGroupFailoverCriteria build() { + final var o = new DistributionOriginGroupFailoverCriteria(); + o.statusCodes = statusCodes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginGroupMember.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginGroupMember.java index 1d3994d5fe3..d45d66f407f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginGroupMember.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginGroupMember.java @@ -13,13 +13,9 @@ public final class DistributionOriginGroupMember { * @return The unique identifier of the member origin * */ - private final String originId; - - @CustomType.Constructor - private DistributionOriginGroupMember(@CustomType.Parameter("originId") String originId) { - this.originId = originId; - } + private String originId; + private DistributionOriginGroupMember() {} /** * @return The unique identifier of the member origin * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(DistributionOriginGroupMember defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String originId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOriginGroupMember defaults) { Objects.requireNonNull(defaults); this.originId = defaults.originId; } + @CustomType.Setter public Builder originId(String originId) { this.originId = Objects.requireNonNull(originId); return this; - } public DistributionOriginGroupMember build() { - return new DistributionOriginGroupMember(originId); + } + public DistributionOriginGroupMember build() { + final var o = new DistributionOriginGroupMember(); + o.originId = originId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginOriginShield.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginOriginShield.java index 4fbceb3c5bc..efb3aaca1ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginOriginShield.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginOriginShield.java @@ -14,21 +14,14 @@ public final class DistributionOriginOriginShield { * @return A flag that specifies whether Origin Shield is enabled. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return The AWS Region for Origin Shield. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2. * */ - private final String originShieldRegion; - - @CustomType.Constructor - private DistributionOriginOriginShield( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("originShieldRegion") String originShieldRegion) { - this.enabled = enabled; - this.originShieldRegion = originShieldRegion; - } + private String originShieldRegion; + private DistributionOriginOriginShield() {} /** * @return A flag that specifies whether Origin Shield is enabled. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(DistributionOriginOriginShield defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private String originShieldRegion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOriginOriginShield defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.originShieldRegion = defaults.originShieldRegion; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder originShieldRegion(String originShieldRegion) { this.originShieldRegion = Objects.requireNonNull(originShieldRegion); return this; - } public DistributionOriginOriginShield build() { - return new DistributionOriginOriginShield(enabled, originShieldRegion); + } + public DistributionOriginOriginShield build() { + final var o = new DistributionOriginOriginShield(); + o.enabled = enabled; + o.originShieldRegion = originShieldRegion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginS3OriginConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginS3OriginConfig.java index 5e7199ae6bd..0c0f183d5df 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginS3OriginConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionOriginS3OriginConfig.java @@ -14,13 +14,9 @@ public final class DistributionOriginS3OriginConfig { * identity][5] to associate with the origin. * */ - private final String originAccessIdentity; - - @CustomType.Constructor - private DistributionOriginS3OriginConfig(@CustomType.Parameter("originAccessIdentity") String originAccessIdentity) { - this.originAccessIdentity = originAccessIdentity; - } + private String originAccessIdentity; + private DistributionOriginS3OriginConfig() {} /** * @return The [CloudFront origin access * identity][5] to associate with the origin. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DistributionOriginS3OriginConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String originAccessIdentity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionOriginS3OriginConfig defaults) { Objects.requireNonNull(defaults); this.originAccessIdentity = defaults.originAccessIdentity; } + @CustomType.Setter public Builder originAccessIdentity(String originAccessIdentity) { this.originAccessIdentity = Objects.requireNonNull(originAccessIdentity); return this; - } public DistributionOriginS3OriginConfig build() { - return new DistributionOriginS3OriginConfig(originAccessIdentity); + } + public DistributionOriginS3OriginConfig build() { + final var o = new DistributionOriginS3OriginConfig(); + o.originAccessIdentity = originAccessIdentity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionRestrictions.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionRestrictions.java index 0396a8fdf30..01941884201 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionRestrictions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionRestrictions.java @@ -9,13 +9,9 @@ @CustomType public final class DistributionRestrictions { - private final DistributionRestrictionsGeoRestriction geoRestriction; - - @CustomType.Constructor - private DistributionRestrictions(@CustomType.Parameter("geoRestriction") DistributionRestrictionsGeoRestriction geoRestriction) { - this.geoRestriction = geoRestriction; - } + private DistributionRestrictionsGeoRestriction geoRestriction; + private DistributionRestrictions() {} public DistributionRestrictionsGeoRestriction geoRestriction() { return this.geoRestriction; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(DistributionRestrictions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private DistributionRestrictionsGeoRestriction geoRestriction; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionRestrictions defaults) { Objects.requireNonNull(defaults); this.geoRestriction = defaults.geoRestriction; } + @CustomType.Setter public Builder geoRestriction(DistributionRestrictionsGeoRestriction geoRestriction) { this.geoRestriction = Objects.requireNonNull(geoRestriction); return this; - } public DistributionRestrictions build() { - return new DistributionRestrictions(geoRestriction); + } + public DistributionRestrictions build() { + final var o = new DistributionRestrictions(); + o.geoRestriction = geoRestriction; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionRestrictionsGeoRestriction.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionRestrictionsGeoRestriction.java index 84d806eef7c..b4d1ec22970 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionRestrictionsGeoRestriction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionRestrictionsGeoRestriction.java @@ -17,23 +17,16 @@ public final class DistributionRestrictionsGeoRestriction { * distribute your content (`blacklist`). * */ - private final @Nullable List locations; + private @Nullable List locations; /** * @return The method that you want to use to restrict * distribution of your content by country: `none`, `whitelist`, or * `blacklist`. * */ - private final String restrictionType; - - @CustomType.Constructor - private DistributionRestrictionsGeoRestriction( - @CustomType.Parameter("locations") @Nullable List locations, - @CustomType.Parameter("restrictionType") String restrictionType) { - this.locations = locations; - this.restrictionType = restrictionType; - } + private String restrictionType; + private DistributionRestrictionsGeoRestriction() {} /** * @return The [ISO 3166-1-alpha-2 codes][4] for which you * want CloudFront either to distribute your content (`whitelist`) or not @@ -60,21 +53,18 @@ public static Builder builder() { public static Builder builder(DistributionRestrictionsGeoRestriction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List locations; private String restrictionType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionRestrictionsGeoRestriction defaults) { Objects.requireNonNull(defaults); this.locations = defaults.locations; this.restrictionType = defaults.restrictionType; } + @CustomType.Setter public Builder locations(@Nullable List locations) { this.locations = locations; return this; @@ -82,11 +72,16 @@ public Builder locations(@Nullable List locations) { public Builder locations(String... locations) { return locations(List.of(locations)); } + @CustomType.Setter public Builder restrictionType(String restrictionType) { this.restrictionType = Objects.requireNonNull(restrictionType); return this; - } public DistributionRestrictionsGeoRestriction build() { - return new DistributionRestrictionsGeoRestriction(locations, restrictionType); + } + public DistributionRestrictionsGeoRestriction build() { + final var o = new DistributionRestrictionsGeoRestriction(); + o.locations = locations; + o.restrictionType = restrictionType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedKeyGroup.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedKeyGroup.java index eebcb5f716a..4ce400255e5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedKeyGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedKeyGroup.java @@ -17,21 +17,14 @@ public final class DistributionTrustedKeyGroup { * @return A flag that specifies whether Origin Shield is enabled. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return List of nested attributes for each trusted signer * */ - private final @Nullable List items; - - @CustomType.Constructor - private DistributionTrustedKeyGroup( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("items") @Nullable List items) { - this.enabled = enabled; - this.items = items; - } + private @Nullable List items; + private DistributionTrustedKeyGroup() {} /** * @return A flag that specifies whether Origin Shield is enabled. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(DistributionTrustedKeyGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionTrustedKeyGroup defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.items = defaults.items; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(DistributionTrustedKeyGroupItem... items) { return items(List.of(items)); - } public DistributionTrustedKeyGroup build() { - return new DistributionTrustedKeyGroup(enabled, items); + } + public DistributionTrustedKeyGroup build() { + final var o = new DistributionTrustedKeyGroup(); + o.enabled = enabled; + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedKeyGroupItem.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedKeyGroupItem.java index 47efeeb82fe..ae7c36ce0bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedKeyGroupItem.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedKeyGroupItem.java @@ -16,21 +16,14 @@ public final class DistributionTrustedKeyGroupItem { * @return The ID of the key group that contains the public keys * */ - private final @Nullable String keyGroupId; + private @Nullable String keyGroupId; /** * @return Set of active CloudFront key pairs associated with the signer account * */ - private final @Nullable List keyPairIds; - - @CustomType.Constructor - private DistributionTrustedKeyGroupItem( - @CustomType.Parameter("keyGroupId") @Nullable String keyGroupId, - @CustomType.Parameter("keyPairIds") @Nullable List keyPairIds) { - this.keyGroupId = keyGroupId; - this.keyPairIds = keyPairIds; - } + private @Nullable List keyPairIds; + private DistributionTrustedKeyGroupItem() {} /** * @return The ID of the key group that contains the public keys * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(DistributionTrustedKeyGroupItem defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String keyGroupId; private @Nullable List keyPairIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionTrustedKeyGroupItem defaults) { Objects.requireNonNull(defaults); this.keyGroupId = defaults.keyGroupId; this.keyPairIds = defaults.keyPairIds; } + @CustomType.Setter public Builder keyGroupId(@Nullable String keyGroupId) { this.keyGroupId = keyGroupId; return this; } + @CustomType.Setter public Builder keyPairIds(@Nullable List keyPairIds) { this.keyPairIds = keyPairIds; return this; } public Builder keyPairIds(String... keyPairIds) { return keyPairIds(List.of(keyPairIds)); - } public DistributionTrustedKeyGroupItem build() { - return new DistributionTrustedKeyGroupItem(keyGroupId, keyPairIds); + } + public DistributionTrustedKeyGroupItem build() { + final var o = new DistributionTrustedKeyGroupItem(); + o.keyGroupId = keyGroupId; + o.keyPairIds = keyPairIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedSigner.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedSigner.java index d29d082f404..e74a4d75287 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedSigner.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedSigner.java @@ -17,21 +17,14 @@ public final class DistributionTrustedSigner { * @return A flag that specifies whether Origin Shield is enabled. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return List of nested attributes for each trusted signer * */ - private final @Nullable List items; - - @CustomType.Constructor - private DistributionTrustedSigner( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("items") @Nullable List items) { - this.enabled = enabled; - this.items = items; - } + private @Nullable List items; + private DistributionTrustedSigner() {} /** * @return A flag that specifies whether Origin Shield is enabled. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(DistributionTrustedSigner defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionTrustedSigner defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.items = defaults.items; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(DistributionTrustedSignerItem... items) { return items(List.of(items)); - } public DistributionTrustedSigner build() { - return new DistributionTrustedSigner(enabled, items); + } + public DistributionTrustedSigner build() { + final var o = new DistributionTrustedSigner(); + o.enabled = enabled; + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedSignerItem.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedSignerItem.java index 585c9ed0737..aa6829744a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedSignerItem.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionTrustedSignerItem.java @@ -16,21 +16,14 @@ public final class DistributionTrustedSignerItem { * @return AWS account ID or `self` * */ - private final @Nullable String awsAccountNumber; + private @Nullable String awsAccountNumber; /** * @return Set of active CloudFront key pairs associated with the signer account * */ - private final @Nullable List keyPairIds; - - @CustomType.Constructor - private DistributionTrustedSignerItem( - @CustomType.Parameter("awsAccountNumber") @Nullable String awsAccountNumber, - @CustomType.Parameter("keyPairIds") @Nullable List keyPairIds) { - this.awsAccountNumber = awsAccountNumber; - this.keyPairIds = keyPairIds; - } + private @Nullable List keyPairIds; + private DistributionTrustedSignerItem() {} /** * @return AWS account ID or `self` * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(DistributionTrustedSignerItem defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String awsAccountNumber; private @Nullable List keyPairIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionTrustedSignerItem defaults) { Objects.requireNonNull(defaults); this.awsAccountNumber = defaults.awsAccountNumber; this.keyPairIds = defaults.keyPairIds; } + @CustomType.Setter public Builder awsAccountNumber(@Nullable String awsAccountNumber) { this.awsAccountNumber = awsAccountNumber; return this; } + @CustomType.Setter public Builder keyPairIds(@Nullable List keyPairIds) { this.keyPairIds = keyPairIds; return this; } public Builder keyPairIds(String... keyPairIds) { return keyPairIds(List.of(keyPairIds)); - } public DistributionTrustedSignerItem build() { - return new DistributionTrustedSignerItem(awsAccountNumber, keyPairIds); + } + public DistributionTrustedSignerItem build() { + final var o = new DistributionTrustedSignerItem(); + o.awsAccountNumber = awsAccountNumber; + o.keyPairIds = keyPairIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionViewerCertificate.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionViewerCertificate.java index afd492ba191..c7fa63f1ba7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionViewerCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/DistributionViewerCertificate.java @@ -19,21 +19,21 @@ public final class DistributionViewerCertificate { * certificate must be in US-EAST-1. * */ - private final @Nullable String acmCertificateArn; + private @Nullable String acmCertificateArn; /** * @return `true` if you want viewers to use HTTPS * to request your objects and you're using the CloudFront domain name for your * distribution. Specify this, `acm_certificate_arn`, or `iam_certificate_id`. * */ - private final @Nullable Boolean cloudfrontDefaultCertificate; + private @Nullable Boolean cloudfrontDefaultCertificate; /** * @return The IAM certificate identifier of the custom viewer * certificate for this distribution if you are using a custom domain. Specify * this, `acm_certificate_arn`, or `cloudfront_default_certificate`. * */ - private final @Nullable String iamCertificateId; + private @Nullable String iamCertificateId; /** * @return The minimum version of the SSL protocol that * you want CloudFront to use for HTTPS connections. Can only be set if @@ -49,23 +49,10 @@ public final class DistributionViewerCertificate { * must be specified. * */ - private final @Nullable String minimumProtocolVersion; - private final @Nullable String sslSupportMethod; - - @CustomType.Constructor - private DistributionViewerCertificate( - @CustomType.Parameter("acmCertificateArn") @Nullable String acmCertificateArn, - @CustomType.Parameter("cloudfrontDefaultCertificate") @Nullable Boolean cloudfrontDefaultCertificate, - @CustomType.Parameter("iamCertificateId") @Nullable String iamCertificateId, - @CustomType.Parameter("minimumProtocolVersion") @Nullable String minimumProtocolVersion, - @CustomType.Parameter("sslSupportMethod") @Nullable String sslSupportMethod) { - this.acmCertificateArn = acmCertificateArn; - this.cloudfrontDefaultCertificate = cloudfrontDefaultCertificate; - this.iamCertificateId = iamCertificateId; - this.minimumProtocolVersion = minimumProtocolVersion; - this.sslSupportMethod = sslSupportMethod; - } + private @Nullable String minimumProtocolVersion; + private @Nullable String sslSupportMethod; + private DistributionViewerCertificate() {} /** * @return The ARN of the [AWS Certificate Manager](https://aws.amazon.com/certificate-manager/) * certificate that you wish to use with this distribution. Specify this, @@ -123,18 +110,14 @@ public static Builder builder() { public static Builder builder(DistributionViewerCertificate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String acmCertificateArn; private @Nullable Boolean cloudfrontDefaultCertificate; private @Nullable String iamCertificateId; private @Nullable String minimumProtocolVersion; private @Nullable String sslSupportMethod; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionViewerCertificate defaults) { Objects.requireNonNull(defaults); this.acmCertificateArn = defaults.acmCertificateArn; @@ -144,27 +127,39 @@ public Builder(DistributionViewerCertificate defaults) { this.sslSupportMethod = defaults.sslSupportMethod; } + @CustomType.Setter public Builder acmCertificateArn(@Nullable String acmCertificateArn) { this.acmCertificateArn = acmCertificateArn; return this; } + @CustomType.Setter public Builder cloudfrontDefaultCertificate(@Nullable Boolean cloudfrontDefaultCertificate) { this.cloudfrontDefaultCertificate = cloudfrontDefaultCertificate; return this; } + @CustomType.Setter public Builder iamCertificateId(@Nullable String iamCertificateId) { this.iamCertificateId = iamCertificateId; return this; } + @CustomType.Setter public Builder minimumProtocolVersion(@Nullable String minimumProtocolVersion) { this.minimumProtocolVersion = minimumProtocolVersion; return this; } + @CustomType.Setter public Builder sslSupportMethod(@Nullable String sslSupportMethod) { this.sslSupportMethod = sslSupportMethod; return this; - } public DistributionViewerCertificate build() { - return new DistributionViewerCertificate(acmCertificateArn, cloudfrontDefaultCertificate, iamCertificateId, minimumProtocolVersion, sslSupportMethod); + } + public DistributionViewerCertificate build() { + final var o = new DistributionViewerCertificate(); + o.acmCertificateArn = acmCertificateArn; + o.cloudfrontDefaultCertificate = cloudfrontDefaultCertificate; + o.iamCertificateId = iamCertificateId; + o.minimumProtocolVersion = minimumProtocolVersion; + o.sslSupportMethod = sslSupportMethod; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigContentTypeProfileConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigContentTypeProfileConfig.java index e945a31a775..cb30661938a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigContentTypeProfileConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigContentTypeProfileConfig.java @@ -14,21 +14,14 @@ public final class FieldLevelEncryptionConfigContentTypeProfileConfig { * @return Object that contains an attribute `items` that contains the list of configurations for a field-level encryption content type-profile. See Content Type Profile. * */ - private final FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles contentTypeProfiles; + private FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles contentTypeProfiles; /** * @return specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown. * */ - private final Boolean forwardWhenContentTypeIsUnknown; - - @CustomType.Constructor - private FieldLevelEncryptionConfigContentTypeProfileConfig( - @CustomType.Parameter("contentTypeProfiles") FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles contentTypeProfiles, - @CustomType.Parameter("forwardWhenContentTypeIsUnknown") Boolean forwardWhenContentTypeIsUnknown) { - this.contentTypeProfiles = contentTypeProfiles; - this.forwardWhenContentTypeIsUnknown = forwardWhenContentTypeIsUnknown; - } + private Boolean forwardWhenContentTypeIsUnknown; + private FieldLevelEncryptionConfigContentTypeProfileConfig() {} /** * @return Object that contains an attribute `items` that contains the list of configurations for a field-level encryption content type-profile. See Content Type Profile. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(FieldLevelEncryptionConfigContentTypeProfileConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles contentTypeProfiles; private Boolean forwardWhenContentTypeIsUnknown; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FieldLevelEncryptionConfigContentTypeProfileConfig defaults) { Objects.requireNonNull(defaults); this.contentTypeProfiles = defaults.contentTypeProfiles; this.forwardWhenContentTypeIsUnknown = defaults.forwardWhenContentTypeIsUnknown; } + @CustomType.Setter public Builder contentTypeProfiles(FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles contentTypeProfiles) { this.contentTypeProfiles = Objects.requireNonNull(contentTypeProfiles); return this; } + @CustomType.Setter public Builder forwardWhenContentTypeIsUnknown(Boolean forwardWhenContentTypeIsUnknown) { this.forwardWhenContentTypeIsUnknown = Objects.requireNonNull(forwardWhenContentTypeIsUnknown); return this; - } public FieldLevelEncryptionConfigContentTypeProfileConfig build() { - return new FieldLevelEncryptionConfigContentTypeProfileConfig(contentTypeProfiles, forwardWhenContentTypeIsUnknown); + } + public FieldLevelEncryptionConfigContentTypeProfileConfig build() { + final var o = new FieldLevelEncryptionConfigContentTypeProfileConfig(); + o.contentTypeProfiles = contentTypeProfiles; + o.forwardWhenContentTypeIsUnknown = forwardWhenContentTypeIsUnknown; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles.java index b6a0783029d..2786c2a60ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles.java @@ -10,13 +10,9 @@ @CustomType public final class FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles { - private final List items; - - @CustomType.Constructor - private FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles(@CustomType.Parameter("items") List items) { - this.items = items; - } + private List items; + private FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles() {} public List items() { return this.items; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(List items) { this.items = Objects.requireNonNull(items); return this; } public Builder items(FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem... items) { return items(List.of(items)); - } public FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles build() { - return new FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles(items); + } + public FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles build() { + final var o = new FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfiles(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem.java index 2b3d8ea2efd..b7f4a0e73f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem.java @@ -15,28 +15,19 @@ public final class FieldLevelEncryptionConfigContentTypeProfileConfigContentType * @return he content type for a field-level encryption content type-profile mapping. Valid value is `application/x-www-form-urlencoded`. * */ - private final String contentType; + private String contentType; /** * @return The format for a field-level encryption content type-profile mapping. Valid value is `URLEncoded`. * */ - private final String format; + private String format; /** * @return ID of profile to use for field-level encryption query argument-profile mapping * */ - private final @Nullable String profileId; - - @CustomType.Constructor - private FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("format") String format, - @CustomType.Parameter("profileId") @Nullable String profileId) { - this.contentType = contentType; - this.format = format; - this.profileId = profileId; - } + private @Nullable String profileId; + private FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem() {} /** * @return he content type for a field-level encryption content type-profile mapping. Valid value is `application/x-www-form-urlencoded`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private String format; private @Nullable String profileId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -83,19 +70,27 @@ public Builder(FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProf this.profileId = defaults.profileId; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder format(String format) { this.format = Objects.requireNonNull(format); return this; } + @CustomType.Setter public Builder profileId(@Nullable String profileId) { this.profileId = profileId; return this; - } public FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem build() { - return new FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem(contentType, format, profileId); + } + public FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem build() { + final var o = new FieldLevelEncryptionConfigContentTypeProfileConfigContentTypeProfilesItem(); + o.contentType = contentType; + o.format = format; + o.profileId = profileId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigQueryArgProfileConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigQueryArgProfileConfig.java index 811d9400473..a2ae8116209 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigQueryArgProfileConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigQueryArgProfileConfig.java @@ -16,21 +16,14 @@ public final class FieldLevelEncryptionConfigQueryArgProfileConfig { * @return Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown. * */ - private final Boolean forwardWhenQueryArgProfileIsUnknown; + private Boolean forwardWhenQueryArgProfileIsUnknown; /** * @return Object that contains an attribute `items` that contains the list ofrofiles specified for query argument-profile mapping for field-level encryption. see Query Arg Profile. * */ - private final @Nullable FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles queryArgProfiles; - - @CustomType.Constructor - private FieldLevelEncryptionConfigQueryArgProfileConfig( - @CustomType.Parameter("forwardWhenQueryArgProfileIsUnknown") Boolean forwardWhenQueryArgProfileIsUnknown, - @CustomType.Parameter("queryArgProfiles") @Nullable FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles queryArgProfiles) { - this.forwardWhenQueryArgProfileIsUnknown = forwardWhenQueryArgProfileIsUnknown; - this.queryArgProfiles = queryArgProfiles; - } + private @Nullable FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles queryArgProfiles; + private FieldLevelEncryptionConfigQueryArgProfileConfig() {} /** * @return Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(FieldLevelEncryptionConfigQueryArgProfileConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean forwardWhenQueryArgProfileIsUnknown; private @Nullable FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles queryArgProfiles; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FieldLevelEncryptionConfigQueryArgProfileConfig defaults) { Objects.requireNonNull(defaults); this.forwardWhenQueryArgProfileIsUnknown = defaults.forwardWhenQueryArgProfileIsUnknown; this.queryArgProfiles = defaults.queryArgProfiles; } + @CustomType.Setter public Builder forwardWhenQueryArgProfileIsUnknown(Boolean forwardWhenQueryArgProfileIsUnknown) { this.forwardWhenQueryArgProfileIsUnknown = Objects.requireNonNull(forwardWhenQueryArgProfileIsUnknown); return this; } + @CustomType.Setter public Builder queryArgProfiles(@Nullable FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles queryArgProfiles) { this.queryArgProfiles = queryArgProfiles; return this; - } public FieldLevelEncryptionConfigQueryArgProfileConfig build() { - return new FieldLevelEncryptionConfigQueryArgProfileConfig(forwardWhenQueryArgProfileIsUnknown, queryArgProfiles); + } + public FieldLevelEncryptionConfigQueryArgProfileConfig build() { + final var o = new FieldLevelEncryptionConfigQueryArgProfileConfig(); + o.forwardWhenQueryArgProfileIsUnknown = forwardWhenQueryArgProfileIsUnknown; + o.queryArgProfiles = queryArgProfiles; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles.java index d565c234f64..a36f573ab06 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles.java @@ -11,13 +11,9 @@ @CustomType public final class FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles { - private final @Nullable List items; - - @CustomType.Constructor - private FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles() {} public List items() { return this.items == null ? List.of() : this.items; } @@ -29,27 +25,27 @@ public static Builder builder() { public static Builder builder(FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem... items) { return items(List.of(items)); - } public FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles build() { - return new FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles(items); + } + public FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles build() { + final var o = new FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfiles(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem.java index 3e19e15837a..d78bab52039 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem.java @@ -13,21 +13,14 @@ public final class FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfil * @return ID of profile to use for field-level encryption query argument-profile mapping * */ - private final String profileId; + private String profileId; /** * @return Query argument for field-level encryption query argument-profile mapping. * */ - private final String queryArg; - - @CustomType.Constructor - private FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem( - @CustomType.Parameter("profileId") String profileId, - @CustomType.Parameter("queryArg") String queryArg) { - this.profileId = profileId; - this.queryArg = queryArg; - } + private String queryArg; + private FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem() {} /** * @return ID of profile to use for field-level encryption query argument-profile mapping * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String profileId; private String queryArg; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem defaults) { Objects.requireNonNull(defaults); this.profileId = defaults.profileId; this.queryArg = defaults.queryArg; } + @CustomType.Setter public Builder profileId(String profileId) { this.profileId = Objects.requireNonNull(profileId); return this; } + @CustomType.Setter public Builder queryArg(String queryArg) { this.queryArg = Objects.requireNonNull(queryArg); return this; - } public FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem build() { - return new FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem(profileId, queryArg); + } + public FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem build() { + final var o = new FieldLevelEncryptionConfigQueryArgProfileConfigQueryArgProfilesItem(); + o.profileId = profileId; + o.queryArg = queryArg; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionProfileEncryptionEntities.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionProfileEncryptionEntities.java index 442343dd796..be629c32bbb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionProfileEncryptionEntities.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionProfileEncryptionEntities.java @@ -11,13 +11,9 @@ @CustomType public final class FieldLevelEncryptionProfileEncryptionEntities { - private final @Nullable List items; - - @CustomType.Constructor - private FieldLevelEncryptionProfileEncryptionEntities(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private FieldLevelEncryptionProfileEncryptionEntities() {} public List items() { return this.items == null ? List.of() : this.items; } @@ -29,27 +25,27 @@ public static Builder builder() { public static Builder builder(FieldLevelEncryptionProfileEncryptionEntities defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FieldLevelEncryptionProfileEncryptionEntities defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(FieldLevelEncryptionProfileEncryptionEntitiesItem... items) { return items(List.of(items)); - } public FieldLevelEncryptionProfileEncryptionEntities build() { - return new FieldLevelEncryptionProfileEncryptionEntities(items); + } + public FieldLevelEncryptionProfileEncryptionEntities build() { + final var o = new FieldLevelEncryptionProfileEncryptionEntities(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionProfileEncryptionEntitiesItem.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionProfileEncryptionEntitiesItem.java index c7dcd637e81..059ed796111 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionProfileEncryptionEntitiesItem.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionProfileEncryptionEntitiesItem.java @@ -14,28 +14,19 @@ public final class FieldLevelEncryptionProfileEncryptionEntitiesItem { * @return Object that contains an attribute `items` that contains the list of field patterns in a field-level encryption content type profile specify the fields that you want to be encrypted. * */ - private final FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns fieldPatterns; + private FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns fieldPatterns; /** * @return The provider associated with the public key being used for encryption. * */ - private final String providerId; + private String providerId; /** * @return The public key associated with a set of field-level encryption patterns, to be used when encrypting the fields that match the patterns. * */ - private final String publicKeyId; - - @CustomType.Constructor - private FieldLevelEncryptionProfileEncryptionEntitiesItem( - @CustomType.Parameter("fieldPatterns") FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns fieldPatterns, - @CustomType.Parameter("providerId") String providerId, - @CustomType.Parameter("publicKeyId") String publicKeyId) { - this.fieldPatterns = fieldPatterns; - this.providerId = providerId; - this.publicKeyId = publicKeyId; - } + private String publicKeyId; + private FieldLevelEncryptionProfileEncryptionEntitiesItem() {} /** * @return Object that contains an attribute `items` that contains the list of field patterns in a field-level encryption content type profile specify the fields that you want to be encrypted. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(FieldLevelEncryptionProfileEncryptionEntitiesItem defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns fieldPatterns; private String providerId; private String publicKeyId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FieldLevelEncryptionProfileEncryptionEntitiesItem defaults) { Objects.requireNonNull(defaults); this.fieldPatterns = defaults.fieldPatterns; @@ -82,19 +69,27 @@ public Builder(FieldLevelEncryptionProfileEncryptionEntitiesItem defaults) { this.publicKeyId = defaults.publicKeyId; } + @CustomType.Setter public Builder fieldPatterns(FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns fieldPatterns) { this.fieldPatterns = Objects.requireNonNull(fieldPatterns); return this; } + @CustomType.Setter public Builder providerId(String providerId) { this.providerId = Objects.requireNonNull(providerId); return this; } + @CustomType.Setter public Builder publicKeyId(String publicKeyId) { this.publicKeyId = Objects.requireNonNull(publicKeyId); return this; - } public FieldLevelEncryptionProfileEncryptionEntitiesItem build() { - return new FieldLevelEncryptionProfileEncryptionEntitiesItem(fieldPatterns, providerId, publicKeyId); + } + public FieldLevelEncryptionProfileEncryptionEntitiesItem build() { + final var o = new FieldLevelEncryptionProfileEncryptionEntitiesItem(); + o.fieldPatterns = fieldPatterns; + o.providerId = providerId; + o.publicKeyId = publicKeyId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns.java index 1d51833e9a5..b774b313dde 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns.java @@ -11,13 +11,9 @@ @CustomType public final class FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns { - private final @Nullable List items; - - @CustomType.Constructor - private FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns() {} public List items() { return this.items == null ? List.of() : this.items; } @@ -29,27 +25,27 @@ public static Builder builder() { public static Builder builder(FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(String... items) { return items(List.of(items)); - } public FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns build() { - return new FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns(items); + } + public FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns build() { + final var o = new FieldLevelEncryptionProfileEncryptionEntitiesItemFieldPatterns(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOrigin.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOrigin.java index 1e1b3ca48b4..2967bde5046 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOrigin.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOrigin.java @@ -17,42 +17,29 @@ public final class GetCachePolicyParametersInCacheKeyAndForwardedToOrigin { * @return Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information. * */ - private final List cookiesConfigs; + private List cookiesConfigs; /** * @return A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin. * */ - private final Boolean enableAcceptEncodingBrotli; + private Boolean enableAcceptEncodingBrotli; /** * @return A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin. * */ - private final Boolean enableAcceptEncodingGzip; + private Boolean enableAcceptEncodingGzip; /** * @return Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information. * */ - private final List headersConfigs; + private List headersConfigs; /** * @return Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information. * */ - private final List queryStringsConfigs; - - @CustomType.Constructor - private GetCachePolicyParametersInCacheKeyAndForwardedToOrigin( - @CustomType.Parameter("cookiesConfigs") List cookiesConfigs, - @CustomType.Parameter("enableAcceptEncodingBrotli") Boolean enableAcceptEncodingBrotli, - @CustomType.Parameter("enableAcceptEncodingGzip") Boolean enableAcceptEncodingGzip, - @CustomType.Parameter("headersConfigs") List headersConfigs, - @CustomType.Parameter("queryStringsConfigs") List queryStringsConfigs) { - this.cookiesConfigs = cookiesConfigs; - this.enableAcceptEncodingBrotli = enableAcceptEncodingBrotli; - this.enableAcceptEncodingGzip = enableAcceptEncodingGzip; - this.headersConfigs = headersConfigs; - this.queryStringsConfigs = queryStringsConfigs; - } + private List queryStringsConfigs; + private GetCachePolicyParametersInCacheKeyAndForwardedToOrigin() {} /** * @return Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(GetCachePolicyParametersInCacheKeyAndForwardedToOrigin defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List cookiesConfigs; private Boolean enableAcceptEncodingBrotli; private Boolean enableAcceptEncodingGzip; private List headersConfigs; private List queryStringsConfigs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCachePolicyParametersInCacheKeyAndForwardedToOrigin defaults) { Objects.requireNonNull(defaults); this.cookiesConfigs = defaults.cookiesConfigs; @@ -117,6 +100,7 @@ public Builder(GetCachePolicyParametersInCacheKeyAndForwardedToOrigin defaults) this.queryStringsConfigs = defaults.queryStringsConfigs; } + @CustomType.Setter public Builder cookiesConfigs(List cookiesConfigs) { this.cookiesConfigs = Objects.requireNonNull(cookiesConfigs); return this; @@ -124,14 +108,17 @@ public Builder cookiesConfigs(List headersConfigs) { this.headersConfigs = Objects.requireNonNull(headersConfigs); return this; @@ -139,14 +126,22 @@ public Builder headersConfigs(List queryStringsConfigs) { this.queryStringsConfigs = Objects.requireNonNull(queryStringsConfigs); return this; } public Builder queryStringsConfigs(GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig... queryStringsConfigs) { return queryStringsConfigs(List.of(queryStringsConfigs)); - } public GetCachePolicyParametersInCacheKeyAndForwardedToOrigin build() { - return new GetCachePolicyParametersInCacheKeyAndForwardedToOrigin(cookiesConfigs, enableAcceptEncodingBrotli, enableAcceptEncodingGzip, headersConfigs, queryStringsConfigs); + } + public GetCachePolicyParametersInCacheKeyAndForwardedToOrigin build() { + final var o = new GetCachePolicyParametersInCacheKeyAndForwardedToOrigin(); + o.cookiesConfigs = cookiesConfigs; + o.enableAcceptEncodingBrotli = enableAcceptEncodingBrotli; + o.enableAcceptEncodingGzip = enableAcceptEncodingGzip; + o.headersConfigs = headersConfigs; + o.queryStringsConfigs = queryStringsConfigs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig.java index 74f1a4408dd..a942fbcb5bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig.java @@ -15,21 +15,14 @@ public final class GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookies * @return Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are `none`, `whitelist`, `allExcept`, `all`. * */ - private final String cookieBehavior; + private String cookieBehavior; /** * @return Object that contains a list of cookie names. See Items for more information. * */ - private final List cookies; - - @CustomType.Constructor - private GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig( - @CustomType.Parameter("cookieBehavior") String cookieBehavior, - @CustomType.Parameter("cookies") List cookies) { - this.cookieBehavior = cookieBehavior; - this.cookies = cookies; - } + private List cookies; + private GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig() {} /** * @return Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are `none`, `whitelist`, `allExcept`, `all`. * @@ -52,33 +45,35 @@ public static Builder builder() { public static Builder builder(GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cookieBehavior; private List cookies; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig defaults) { Objects.requireNonNull(defaults); this.cookieBehavior = defaults.cookieBehavior; this.cookies = defaults.cookies; } + @CustomType.Setter public Builder cookieBehavior(String cookieBehavior) { this.cookieBehavior = Objects.requireNonNull(cookieBehavior); return this; } + @CustomType.Setter public Builder cookies(List cookies) { this.cookies = Objects.requireNonNull(cookies); return this; } public Builder cookies(GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie... cookies) { return cookies(List.of(cookies)); - } public GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig build() { - return new GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig(cookieBehavior, cookies); + } + public GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig build() { + final var o = new GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfig(); + o.cookieBehavior = cookieBehavior; + o.cookies = cookies; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie.java index 51a47a0712d..01b9c32b051 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie.java @@ -14,13 +14,9 @@ public final class GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookies * @return A list of item names (`cookies`, `headers`, or `query_strings`). * */ - private final List items; - - @CustomType.Constructor - private GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie(@CustomType.Parameter("items") List items) { - this.items = items; - } + private List items; + private GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie() {} /** * @return A list of item names (`cookies`, `headers`, or `query_strings`). * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(List items) { this.items = Objects.requireNonNull(items); return this; } public Builder items(String... items) { return items(List.of(items)); - } public GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie build() { - return new GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie(items); + } + public GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie build() { + final var o = new GetCachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookie(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig.java index 08be426174a..87f803b77b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig.java @@ -15,21 +15,14 @@ public final class GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeaders * @return Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are `none`, `whitelist`. * */ - private final String headerBehavior; + private String headerBehavior; /** * @return Object that contains a list of header names. See Items for more information. * */ - private final List headers; - - @CustomType.Constructor - private GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig( - @CustomType.Parameter("headerBehavior") String headerBehavior, - @CustomType.Parameter("headers") List headers) { - this.headerBehavior = headerBehavior; - this.headers = headers; - } + private List headers; + private GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig() {} /** * @return Determines whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are `none`, `whitelist`. * @@ -52,33 +45,35 @@ public static Builder builder() { public static Builder builder(GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String headerBehavior; private List headers; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig defaults) { Objects.requireNonNull(defaults); this.headerBehavior = defaults.headerBehavior; this.headers = defaults.headers; } + @CustomType.Setter public Builder headerBehavior(String headerBehavior) { this.headerBehavior = Objects.requireNonNull(headerBehavior); return this; } + @CustomType.Setter public Builder headers(List headers) { this.headers = Objects.requireNonNull(headers); return this; } public Builder headers(GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader... headers) { return headers(List.of(headers)); - } public GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig build() { - return new GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig(headerBehavior, headers); + } + public GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig build() { + final var o = new GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfig(); + o.headerBehavior = headerBehavior; + o.headers = headers; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader.java index f169e21939b..a5b2abceed2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader.java @@ -14,13 +14,9 @@ public final class GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeaders * @return A list of item names (`cookies`, `headers`, or `query_strings`). * */ - private final List items; - - @CustomType.Constructor - private GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader(@CustomType.Parameter("items") List items) { - this.items = items; - } + private List items; + private GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader() {} /** * @return A list of item names (`cookies`, `headers`, or `query_strings`). * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(List items) { this.items = Objects.requireNonNull(items); return this; } public Builder items(String... items) { return items(List.of(items)); - } public GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader build() { - return new GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader(items); + } + public GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader build() { + final var o = new GetCachePolicyParametersInCacheKeyAndForwardedToOriginHeadersConfigHeader(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig.java index 38c31167c8b..c5bae194362 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig.java @@ -15,21 +15,14 @@ public final class GetCachePolicyParametersInCacheKeyAndForwardedToOriginQuerySt * @return Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are `none`, `whitelist`, `allExcept`, `all`. * */ - private final String queryStringBehavior; + private String queryStringBehavior; /** * @return Object that contains a list of query string names. See Items for more information. * */ - private final List queryStrings; - - @CustomType.Constructor - private GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig( - @CustomType.Parameter("queryStringBehavior") String queryStringBehavior, - @CustomType.Parameter("queryStrings") List queryStrings) { - this.queryStringBehavior = queryStringBehavior; - this.queryStrings = queryStrings; - } + private List queryStrings; + private GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig() {} /** * @return Determines whether any URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values are `none`, `whitelist`, `allExcept`, `all`. * @@ -52,33 +45,35 @@ public static Builder builder() { public static Builder builder(GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String queryStringBehavior; private List queryStrings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig defaults) { Objects.requireNonNull(defaults); this.queryStringBehavior = defaults.queryStringBehavior; this.queryStrings = defaults.queryStrings; } + @CustomType.Setter public Builder queryStringBehavior(String queryStringBehavior) { this.queryStringBehavior = Objects.requireNonNull(queryStringBehavior); return this; } + @CustomType.Setter public Builder queryStrings(List queryStrings) { this.queryStrings = Objects.requireNonNull(queryStrings); return this; } public Builder queryStrings(GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString... queryStrings) { return queryStrings(List.of(queryStrings)); - } public GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig build() { - return new GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig(queryStringBehavior, queryStrings); + } + public GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig build() { + final var o = new GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfig(); + o.queryStringBehavior = queryStringBehavior; + o.queryStrings = queryStrings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString.java index cf40fed4ec6..e13ad6ed866 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString.java @@ -14,13 +14,9 @@ public final class GetCachePolicyParametersInCacheKeyAndForwardedToOriginQuerySt * @return A list of item names (`cookies`, `headers`, or `query_strings`). * */ - private final List items; - - @CustomType.Constructor - private GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString(@CustomType.Parameter("items") List items) { - this.items = items; - } + private List items; + private GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString() {} /** * @return A list of item names (`cookies`, `headers`, or `query_strings`). * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(List items) { this.items = Objects.requireNonNull(items); return this; } public Builder items(String... items) { return items(List.of(items)); - } public GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString build() { - return new GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString(items); + } + public GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString build() { + final var o = new GetCachePolicyParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryString(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyResult.java index 46bd44ddc9a..d3a03a2a8c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetCachePolicyResult.java @@ -18,55 +18,36 @@ public final class GetCachePolicyResult { * @return A comment to describe the cache policy. * */ - private final String comment; + private String comment; /** * @return The default amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. * */ - private final Integer defaultTtl; + private Integer defaultTtl; /** * @return The current version of the cache policy. * */ - private final String etag; - private final @Nullable String id; + private String etag; + private @Nullable String id; /** * @return The maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. * */ - private final Integer maxTtl; + private Integer maxTtl; /** * @return The minimum amount of time, in seconds, that you want objects to stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. * */ - private final Integer minTtl; - private final @Nullable String name; + private Integer minTtl; + private @Nullable String name; /** * @return The HTTP headers, cookies, and URL query strings to include in the cache key. See Parameters In Cache Key And Forwarded To Origin for more information. * */ - private final List parametersInCacheKeyAndForwardedToOrigins; - - @CustomType.Constructor - private GetCachePolicyResult( - @CustomType.Parameter("comment") String comment, - @CustomType.Parameter("defaultTtl") Integer defaultTtl, - @CustomType.Parameter("etag") String etag, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("maxTtl") Integer maxTtl, - @CustomType.Parameter("minTtl") Integer minTtl, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("parametersInCacheKeyAndForwardedToOrigins") List parametersInCacheKeyAndForwardedToOrigins) { - this.comment = comment; - this.defaultTtl = defaultTtl; - this.etag = etag; - this.id = id; - this.maxTtl = maxTtl; - this.minTtl = minTtl; - this.name = name; - this.parametersInCacheKeyAndForwardedToOrigins = parametersInCacheKeyAndForwardedToOrigins; - } + private List parametersInCacheKeyAndForwardedToOrigins; + private GetCachePolicyResult() {} /** * @return A comment to describe the cache policy. * @@ -123,7 +104,7 @@ public static Builder builder() { public static Builder builder(GetCachePolicyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comment; private Integer defaultTtl; @@ -133,11 +114,7 @@ public static final class Builder { private Integer minTtl; private @Nullable String name; private List parametersInCacheKeyAndForwardedToOrigins; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCachePolicyResult defaults) { Objects.requireNonNull(defaults); this.comment = defaults.comment; @@ -150,42 +127,60 @@ public Builder(GetCachePolicyResult defaults) { this.parametersInCacheKeyAndForwardedToOrigins = defaults.parametersInCacheKeyAndForwardedToOrigins; } + @CustomType.Setter public Builder comment(String comment) { this.comment = Objects.requireNonNull(comment); return this; } + @CustomType.Setter public Builder defaultTtl(Integer defaultTtl) { this.defaultTtl = Objects.requireNonNull(defaultTtl); return this; } + @CustomType.Setter public Builder etag(String etag) { this.etag = Objects.requireNonNull(etag); return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder maxTtl(Integer maxTtl) { this.maxTtl = Objects.requireNonNull(maxTtl); return this; } + @CustomType.Setter public Builder minTtl(Integer minTtl) { this.minTtl = Objects.requireNonNull(minTtl); return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder parametersInCacheKeyAndForwardedToOrigins(List parametersInCacheKeyAndForwardedToOrigins) { this.parametersInCacheKeyAndForwardedToOrigins = Objects.requireNonNull(parametersInCacheKeyAndForwardedToOrigins); return this; } public Builder parametersInCacheKeyAndForwardedToOrigins(GetCachePolicyParametersInCacheKeyAndForwardedToOrigin... parametersInCacheKeyAndForwardedToOrigins) { return parametersInCacheKeyAndForwardedToOrigins(List.of(parametersInCacheKeyAndForwardedToOrigins)); - } public GetCachePolicyResult build() { - return new GetCachePolicyResult(comment, defaultTtl, etag, id, maxTtl, minTtl, name, parametersInCacheKeyAndForwardedToOrigins); + } + public GetCachePolicyResult build() { + final var o = new GetCachePolicyResult(); + o.comment = comment; + o.defaultTtl = defaultTtl; + o.etag = etag; + o.id = id; + o.maxTtl = maxTtl; + o.minTtl = minTtl; + o.name = name; + o.parametersInCacheKeyAndForwardedToOrigins = parametersInCacheKeyAndForwardedToOrigins; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetDistributionResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetDistributionResult.java index 6f71d46e9bc..948598b7876 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetDistributionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetDistributionResult.java @@ -18,83 +18,58 @@ public final class GetDistributionResult { * @return A list that contains information about CNAMEs (alternate domain names), if any, for this distribution. * */ - private final List aliases; + private List aliases; /** * @return The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID. * */ - private final String arn; + private String arn; /** * @return The domain name corresponding to the distribution. For * example: `d604721fxaaqy9.cloudfront.net`. * */ - private final String domainName; - private final Boolean enabled; + private String domainName; + private Boolean enabled; /** * @return The current version of the distribution's information. For example: * `E2QWRUHAPOMQZL`. * */ - private final String etag; + private String etag; /** * @return The CloudFront Route 53 zone ID that can be used to * route an [Alias Resource Record Set][7] to. This attribute is simply an * alias for the zone ID `Z2FDTNDATAQYW2`. * */ - private final String hostedZoneId; + private String hostedZoneId; /** * @return The identifier for the distribution. For example: `EDFDVBD632BHDS5`. * */ - private final String id; + private String id; /** * @return The number of invalidation batches * currently in progress. * */ - private final Integer inProgressValidationBatches; + private Integer inProgressValidationBatches; /** * @return The date and time the distribution was last modified. * */ - private final String lastModifiedTime; + private String lastModifiedTime; /** * @return The current status of the distribution. `Deployed` if the * distribution's information is fully propagated throughout the Amazon * CloudFront system. * */ - private final String status; - private final @Nullable Map tags; - - @CustomType.Constructor - private GetDistributionResult( - @CustomType.Parameter("aliases") List aliases, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("etag") String etag, - @CustomType.Parameter("hostedZoneId") String hostedZoneId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("inProgressValidationBatches") Integer inProgressValidationBatches, - @CustomType.Parameter("lastModifiedTime") String lastModifiedTime, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.aliases = aliases; - this.arn = arn; - this.domainName = domainName; - this.enabled = enabled; - this.etag = etag; - this.hostedZoneId = hostedZoneId; - this.id = id; - this.inProgressValidationBatches = inProgressValidationBatches; - this.lastModifiedTime = lastModifiedTime; - this.status = status; - this.tags = tags; - } + private String status; + private @Nullable Map tags; + private GetDistributionResult() {} /** * @return A list that contains information about CNAMEs (alternate domain names), if any, for this distribution. * @@ -179,7 +154,7 @@ public static Builder builder() { public static Builder builder(GetDistributionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List aliases; private String arn; @@ -192,11 +167,7 @@ public static final class Builder { private String lastModifiedTime; private String status; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionResult defaults) { Objects.requireNonNull(defaults); this.aliases = defaults.aliases; @@ -212,6 +183,7 @@ public Builder(GetDistributionResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder aliases(List aliases) { this.aliases = Objects.requireNonNull(aliases); return this; @@ -219,47 +191,70 @@ public Builder aliases(List aliases) { public Builder aliases(String... aliases) { return aliases(List.of(aliases)); } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder etag(String etag) { this.etag = Objects.requireNonNull(etag); return this; } + @CustomType.Setter public Builder hostedZoneId(String hostedZoneId) { this.hostedZoneId = Objects.requireNonNull(hostedZoneId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder inProgressValidationBatches(Integer inProgressValidationBatches) { this.inProgressValidationBatches = Objects.requireNonNull(inProgressValidationBatches); return this; } + @CustomType.Setter public Builder lastModifiedTime(String lastModifiedTime) { this.lastModifiedTime = Objects.requireNonNull(lastModifiedTime); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public GetDistributionResult build() { - return new GetDistributionResult(aliases, arn, domainName, enabled, etag, hostedZoneId, id, inProgressValidationBatches, lastModifiedTime, status, tags); + } + public GetDistributionResult build() { + final var o = new GetDistributionResult(); + o.aliases = aliases; + o.arn = arn; + o.domainName = domainName; + o.enabled = enabled; + o.etag = etag; + o.hostedZoneId = hostedZoneId; + o.id = id; + o.inProgressValidationBatches = inProgressValidationBatches; + o.lastModifiedTime = lastModifiedTime; + o.status = status; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetFunctionResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetFunctionResult.java index e3b7fed0761..490e305719f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetFunctionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetFunctionResult.java @@ -13,69 +13,46 @@ public final class GetFunctionResult { * @return Amazon Resource Name (ARN) identifying your CloudFront Function. * */ - private final String arn; + private String arn; /** * @return Source code of the function * */ - private final String code; + private String code; /** * @return Comment. * */ - private final String comment; + private String comment; /** * @return ETag hash of the function * */ - private final String etag; + private String etag; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return When this resource was last modified. * */ - private final String lastModifiedTime; - private final String name; + private String lastModifiedTime; + private String name; /** * @return Identifier of the function's runtime. * */ - private final String runtime; - private final String stage; + private String runtime; + private String stage; /** * @return Status of the function. Can be `UNPUBLISHED`, `UNASSOCIATED` or `ASSOCIATED`. * */ - private final String status; - - @CustomType.Constructor - private GetFunctionResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("code") String code, - @CustomType.Parameter("comment") String comment, - @CustomType.Parameter("etag") String etag, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastModifiedTime") String lastModifiedTime, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("runtime") String runtime, - @CustomType.Parameter("stage") String stage, - @CustomType.Parameter("status") String status) { - this.arn = arn; - this.code = code; - this.comment = comment; - this.etag = etag; - this.id = id; - this.lastModifiedTime = lastModifiedTime; - this.name = name; - this.runtime = runtime; - this.stage = stage; - this.status = status; - } + private String status; + private GetFunctionResult() {} /** * @return Amazon Resource Name (ARN) identifying your CloudFront Function. * @@ -146,7 +123,7 @@ public static Builder builder() { public static Builder builder(GetFunctionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String code; @@ -158,11 +135,7 @@ public static final class Builder { private String runtime; private String stage; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFunctionResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -177,47 +150,69 @@ public Builder(GetFunctionResult defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder code(String code) { this.code = Objects.requireNonNull(code); return this; } + @CustomType.Setter public Builder comment(String comment) { this.comment = Objects.requireNonNull(comment); return this; } + @CustomType.Setter public Builder etag(String etag) { this.etag = Objects.requireNonNull(etag); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastModifiedTime(String lastModifiedTime) { this.lastModifiedTime = Objects.requireNonNull(lastModifiedTime); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder runtime(String runtime) { this.runtime = Objects.requireNonNull(runtime); return this; } + @CustomType.Setter public Builder stage(String stage) { this.stage = Objects.requireNonNull(stage); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public GetFunctionResult build() { - return new GetFunctionResult(arn, code, comment, etag, id, lastModifiedTime, name, runtime, stage, status); + } + public GetFunctionResult build() { + final var o = new GetFunctionResult(); + o.arn = arn; + o.code = code; + o.comment = comment; + o.etag = etag; + o.id = id; + o.lastModifiedTime = lastModifiedTime; + o.name = name; + o.runtime = runtime; + o.stage = stage; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetLogDeliveryCanonicalUserIdResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetLogDeliveryCanonicalUserIdResult.java index 1e35d21cdf7..b1508d27a44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetLogDeliveryCanonicalUserIdResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetLogDeliveryCanonicalUserIdResult.java @@ -15,17 +15,10 @@ public final class GetLogDeliveryCanonicalUserIdResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String region; - - @CustomType.Constructor - private GetLogDeliveryCanonicalUserIdResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("region") @Nullable String region) { - this.id = id; - this.region = region; - } + private String id; + private @Nullable String region; + private GetLogDeliveryCanonicalUserIdResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -44,30 +37,32 @@ public static Builder builder() { public static Builder builder(GetLogDeliveryCanonicalUserIdResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private @Nullable String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLogDeliveryCanonicalUserIdResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.region = defaults.region; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; - } public GetLogDeliveryCanonicalUserIdResult build() { - return new GetLogDeliveryCanonicalUserIdResult(id, region); + } + public GetLogDeliveryCanonicalUserIdResult build() { + final var o = new GetLogDeliveryCanonicalUserIdResult(); + o.id = id; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginAccessIdentitiesResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginAccessIdentitiesResult.java index d350908700e..7cb53d5a4fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginAccessIdentitiesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginAccessIdentitiesResult.java @@ -11,42 +11,29 @@ @CustomType public final class GetOriginAccessIdentitiesResult { - private final @Nullable List comments; + private @Nullable List comments; /** * @return Set of ARNs of the matched origin access identities. * */ - private final List iamArns; + private List iamArns; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of ids of the matched origin access identities. * */ - private final List ids; + private List ids; /** * @return Set of S3 canonical user IDs of the matched origin access identities. * */ - private final List s3CanonicalUserIds; - - @CustomType.Constructor - private GetOriginAccessIdentitiesResult( - @CustomType.Parameter("comments") @Nullable List comments, - @CustomType.Parameter("iamArns") List iamArns, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("s3CanonicalUserIds") List s3CanonicalUserIds) { - this.comments = comments; - this.iamArns = iamArns; - this.id = id; - this.ids = ids; - this.s3CanonicalUserIds = s3CanonicalUserIds; - } + private List s3CanonicalUserIds; + private GetOriginAccessIdentitiesResult() {} public List comments() { return this.comments == null ? List.of() : this.comments; } @@ -86,18 +73,14 @@ public static Builder builder() { public static Builder builder(GetOriginAccessIdentitiesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List comments; private List iamArns; private String id; private List ids; private List s3CanonicalUserIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOriginAccessIdentitiesResult defaults) { Objects.requireNonNull(defaults); this.comments = defaults.comments; @@ -107,6 +90,7 @@ public Builder(GetOriginAccessIdentitiesResult defaults) { this.s3CanonicalUserIds = defaults.s3CanonicalUserIds; } + @CustomType.Setter public Builder comments(@Nullable List comments) { this.comments = comments; return this; @@ -114,6 +98,7 @@ public Builder comments(@Nullable List comments) { public Builder comments(String... comments) { return comments(List.of(comments)); } + @CustomType.Setter public Builder iamArns(List iamArns) { this.iamArns = Objects.requireNonNull(iamArns); return this; @@ -121,10 +106,12 @@ public Builder iamArns(List iamArns) { public Builder iamArns(String... iamArns) { return iamArns(List.of(iamArns)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -132,14 +119,22 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder s3CanonicalUserIds(List s3CanonicalUserIds) { this.s3CanonicalUserIds = Objects.requireNonNull(s3CanonicalUserIds); return this; } public Builder s3CanonicalUserIds(String... s3CanonicalUserIds) { return s3CanonicalUserIds(List.of(s3CanonicalUserIds)); - } public GetOriginAccessIdentitiesResult build() { - return new GetOriginAccessIdentitiesResult(comments, iamArns, id, ids, s3CanonicalUserIds); + } + public GetOriginAccessIdentitiesResult build() { + final var o = new GetOriginAccessIdentitiesResult(); + o.comments = comments; + o.iamArns = iamArns; + o.id = id; + o.ids = ids; + o.s3CanonicalUserIds = s3CanonicalUserIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginAccessIdentityResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginAccessIdentityResult.java index 612a91ec04b..2ebb36cf948 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginAccessIdentityResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginAccessIdentityResult.java @@ -14,58 +14,41 @@ public final class GetOriginAccessIdentityResult { * updates to the origin access identity. * */ - private final String callerReference; + private String callerReference; /** * @return A shortcut to the full path for the * origin access identity to use in CloudFront, see below. * */ - private final String cloudfrontAccessIdentityPath; + private String cloudfrontAccessIdentityPath; /** * @return An optional comment for the origin access identity. * */ - private final String comment; + private String comment; /** * @return The current version of the origin access identity's information. * For example: `E2QWRUHAPOMQZL`. * */ - private final String etag; + private String etag; /** * @return A pre-generated ARN for use in S3 bucket policies (see below). * Example: `arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity * E2QWRUHAPOMQZL`. * */ - private final String iamArn; - private final String id; + private String iamArn; + private String id; /** * @return The Amazon S3 canonical user ID for the origin * access identity, which you use when giving the origin access identity read * permission to an object in Amazon S3. * */ - private final String s3CanonicalUserId; - - @CustomType.Constructor - private GetOriginAccessIdentityResult( - @CustomType.Parameter("callerReference") String callerReference, - @CustomType.Parameter("cloudfrontAccessIdentityPath") String cloudfrontAccessIdentityPath, - @CustomType.Parameter("comment") String comment, - @CustomType.Parameter("etag") String etag, - @CustomType.Parameter("iamArn") String iamArn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("s3CanonicalUserId") String s3CanonicalUserId) { - this.callerReference = callerReference; - this.cloudfrontAccessIdentityPath = cloudfrontAccessIdentityPath; - this.comment = comment; - this.etag = etag; - this.iamArn = iamArn; - this.id = id; - this.s3CanonicalUserId = s3CanonicalUserId; - } + private String s3CanonicalUserId; + private GetOriginAccessIdentityResult() {} /** * @return Internal value used by CloudFront to allow future * updates to the origin access identity. @@ -126,7 +109,7 @@ public static Builder builder() { public static Builder builder(GetOriginAccessIdentityResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String callerReference; private String cloudfrontAccessIdentityPath; @@ -135,11 +118,7 @@ public static final class Builder { private String iamArn; private String id; private String s3CanonicalUserId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOriginAccessIdentityResult defaults) { Objects.requireNonNull(defaults); this.callerReference = defaults.callerReference; @@ -151,35 +130,51 @@ public Builder(GetOriginAccessIdentityResult defaults) { this.s3CanonicalUserId = defaults.s3CanonicalUserId; } + @CustomType.Setter public Builder callerReference(String callerReference) { this.callerReference = Objects.requireNonNull(callerReference); return this; } + @CustomType.Setter public Builder cloudfrontAccessIdentityPath(String cloudfrontAccessIdentityPath) { this.cloudfrontAccessIdentityPath = Objects.requireNonNull(cloudfrontAccessIdentityPath); return this; } + @CustomType.Setter public Builder comment(String comment) { this.comment = Objects.requireNonNull(comment); return this; } + @CustomType.Setter public Builder etag(String etag) { this.etag = Objects.requireNonNull(etag); return this; } + @CustomType.Setter public Builder iamArn(String iamArn) { this.iamArn = Objects.requireNonNull(iamArn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder s3CanonicalUserId(String s3CanonicalUserId) { this.s3CanonicalUserId = Objects.requireNonNull(s3CanonicalUserId); return this; - } public GetOriginAccessIdentityResult build() { - return new GetOriginAccessIdentityResult(callerReference, cloudfrontAccessIdentityPath, comment, etag, iamArn, id, s3CanonicalUserId); + } + public GetOriginAccessIdentityResult build() { + final var o = new GetOriginAccessIdentityResult(); + o.callerReference = callerReference; + o.cloudfrontAccessIdentityPath = cloudfrontAccessIdentityPath; + o.comment = comment; + o.etag = etag; + o.iamArn = iamArn; + o.id = id; + o.s3CanonicalUserId = s3CanonicalUserId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyCookiesConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyCookiesConfig.java index 364b27e8537..fa63d556351 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyCookiesConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyCookiesConfig.java @@ -11,17 +11,10 @@ @CustomType public final class GetOriginRequestPolicyCookiesConfig { - private final String cookieBehavior; - private final List cookies; - - @CustomType.Constructor - private GetOriginRequestPolicyCookiesConfig( - @CustomType.Parameter("cookieBehavior") String cookieBehavior, - @CustomType.Parameter("cookies") List cookies) { - this.cookieBehavior = cookieBehavior; - this.cookies = cookies; - } + private String cookieBehavior; + private List cookies; + private GetOriginRequestPolicyCookiesConfig() {} public String cookieBehavior() { return this.cookieBehavior; } @@ -36,33 +29,35 @@ public static Builder builder() { public static Builder builder(GetOriginRequestPolicyCookiesConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cookieBehavior; private List cookies; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOriginRequestPolicyCookiesConfig defaults) { Objects.requireNonNull(defaults); this.cookieBehavior = defaults.cookieBehavior; this.cookies = defaults.cookies; } + @CustomType.Setter public Builder cookieBehavior(String cookieBehavior) { this.cookieBehavior = Objects.requireNonNull(cookieBehavior); return this; } + @CustomType.Setter public Builder cookies(List cookies) { this.cookies = Objects.requireNonNull(cookies); return this; } public Builder cookies(GetOriginRequestPolicyCookiesConfigCookie... cookies) { return cookies(List.of(cookies)); - } public GetOriginRequestPolicyCookiesConfig build() { - return new GetOriginRequestPolicyCookiesConfig(cookieBehavior, cookies); + } + public GetOriginRequestPolicyCookiesConfig build() { + final var o = new GetOriginRequestPolicyCookiesConfig(); + o.cookieBehavior = cookieBehavior; + o.cookies = cookies; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyCookiesConfigCookie.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyCookiesConfigCookie.java index 48330b0495d..69c83d444d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyCookiesConfigCookie.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyCookiesConfigCookie.java @@ -10,13 +10,9 @@ @CustomType public final class GetOriginRequestPolicyCookiesConfigCookie { - private final List items; - - @CustomType.Constructor - private GetOriginRequestPolicyCookiesConfigCookie(@CustomType.Parameter("items") List items) { - this.items = items; - } + private List items; + private GetOriginRequestPolicyCookiesConfigCookie() {} public List items() { return this.items; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(GetOriginRequestPolicyCookiesConfigCookie defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOriginRequestPolicyCookiesConfigCookie defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(List items) { this.items = Objects.requireNonNull(items); return this; } public Builder items(String... items) { return items(List.of(items)); - } public GetOriginRequestPolicyCookiesConfigCookie build() { - return new GetOriginRequestPolicyCookiesConfigCookie(items); + } + public GetOriginRequestPolicyCookiesConfigCookie build() { + final var o = new GetOriginRequestPolicyCookiesConfigCookie(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyHeadersConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyHeadersConfig.java index 6d445dad239..5236eec819c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyHeadersConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyHeadersConfig.java @@ -11,17 +11,10 @@ @CustomType public final class GetOriginRequestPolicyHeadersConfig { - private final String headerBehavior; - private final List headers; - - @CustomType.Constructor - private GetOriginRequestPolicyHeadersConfig( - @CustomType.Parameter("headerBehavior") String headerBehavior, - @CustomType.Parameter("headers") List headers) { - this.headerBehavior = headerBehavior; - this.headers = headers; - } + private String headerBehavior; + private List headers; + private GetOriginRequestPolicyHeadersConfig() {} public String headerBehavior() { return this.headerBehavior; } @@ -36,33 +29,35 @@ public static Builder builder() { public static Builder builder(GetOriginRequestPolicyHeadersConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String headerBehavior; private List headers; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOriginRequestPolicyHeadersConfig defaults) { Objects.requireNonNull(defaults); this.headerBehavior = defaults.headerBehavior; this.headers = defaults.headers; } + @CustomType.Setter public Builder headerBehavior(String headerBehavior) { this.headerBehavior = Objects.requireNonNull(headerBehavior); return this; } + @CustomType.Setter public Builder headers(List headers) { this.headers = Objects.requireNonNull(headers); return this; } public Builder headers(GetOriginRequestPolicyHeadersConfigHeader... headers) { return headers(List.of(headers)); - } public GetOriginRequestPolicyHeadersConfig build() { - return new GetOriginRequestPolicyHeadersConfig(headerBehavior, headers); + } + public GetOriginRequestPolicyHeadersConfig build() { + final var o = new GetOriginRequestPolicyHeadersConfig(); + o.headerBehavior = headerBehavior; + o.headers = headers; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyHeadersConfigHeader.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyHeadersConfigHeader.java index ccbc7c6e1cd..83c1ece729d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyHeadersConfigHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyHeadersConfigHeader.java @@ -10,13 +10,9 @@ @CustomType public final class GetOriginRequestPolicyHeadersConfigHeader { - private final List items; - - @CustomType.Constructor - private GetOriginRequestPolicyHeadersConfigHeader(@CustomType.Parameter("items") List items) { - this.items = items; - } + private List items; + private GetOriginRequestPolicyHeadersConfigHeader() {} public List items() { return this.items; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(GetOriginRequestPolicyHeadersConfigHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOriginRequestPolicyHeadersConfigHeader defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(List items) { this.items = Objects.requireNonNull(items); return this; } public Builder items(String... items) { return items(List.of(items)); - } public GetOriginRequestPolicyHeadersConfigHeader build() { - return new GetOriginRequestPolicyHeadersConfigHeader(items); + } + public GetOriginRequestPolicyHeadersConfigHeader build() { + final var o = new GetOriginRequestPolicyHeadersConfigHeader(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyQueryStringsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyQueryStringsConfig.java index c0c1e5e3221..15eebbe53ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyQueryStringsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyQueryStringsConfig.java @@ -11,17 +11,10 @@ @CustomType public final class GetOriginRequestPolicyQueryStringsConfig { - private final String queryStringBehavior; - private final List queryStrings; - - @CustomType.Constructor - private GetOriginRequestPolicyQueryStringsConfig( - @CustomType.Parameter("queryStringBehavior") String queryStringBehavior, - @CustomType.Parameter("queryStrings") List queryStrings) { - this.queryStringBehavior = queryStringBehavior; - this.queryStrings = queryStrings; - } + private String queryStringBehavior; + private List queryStrings; + private GetOriginRequestPolicyQueryStringsConfig() {} public String queryStringBehavior() { return this.queryStringBehavior; } @@ -36,33 +29,35 @@ public static Builder builder() { public static Builder builder(GetOriginRequestPolicyQueryStringsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String queryStringBehavior; private List queryStrings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOriginRequestPolicyQueryStringsConfig defaults) { Objects.requireNonNull(defaults); this.queryStringBehavior = defaults.queryStringBehavior; this.queryStrings = defaults.queryStrings; } + @CustomType.Setter public Builder queryStringBehavior(String queryStringBehavior) { this.queryStringBehavior = Objects.requireNonNull(queryStringBehavior); return this; } + @CustomType.Setter public Builder queryStrings(List queryStrings) { this.queryStrings = Objects.requireNonNull(queryStrings); return this; } public Builder queryStrings(GetOriginRequestPolicyQueryStringsConfigQueryString... queryStrings) { return queryStrings(List.of(queryStrings)); - } public GetOriginRequestPolicyQueryStringsConfig build() { - return new GetOriginRequestPolicyQueryStringsConfig(queryStringBehavior, queryStrings); + } + public GetOriginRequestPolicyQueryStringsConfig build() { + final var o = new GetOriginRequestPolicyQueryStringsConfig(); + o.queryStringBehavior = queryStringBehavior; + o.queryStrings = queryStrings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyQueryStringsConfigQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyQueryStringsConfigQueryString.java index 084b30d1bf0..b6a517b3eaf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyQueryStringsConfigQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyQueryStringsConfigQueryString.java @@ -10,13 +10,9 @@ @CustomType public final class GetOriginRequestPolicyQueryStringsConfigQueryString { - private final List items; - - @CustomType.Constructor - private GetOriginRequestPolicyQueryStringsConfigQueryString(@CustomType.Parameter("items") List items) { - this.items = items; - } + private List items; + private GetOriginRequestPolicyQueryStringsConfigQueryString() {} public List items() { return this.items; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(GetOriginRequestPolicyQueryStringsConfigQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOriginRequestPolicyQueryStringsConfigQueryString defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(List items) { this.items = Objects.requireNonNull(items); return this; } public Builder items(String... items) { return items(List.of(items)); - } public GetOriginRequestPolicyQueryStringsConfigQueryString build() { - return new GetOriginRequestPolicyQueryStringsConfigQueryString(items); + } + public GetOriginRequestPolicyQueryStringsConfigQueryString build() { + final var o = new GetOriginRequestPolicyQueryStringsConfigQueryString(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyResult.java index 9057d2cbb0c..c8cef126ade 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetOriginRequestPolicyResult.java @@ -19,48 +19,31 @@ public final class GetOriginRequestPolicyResult { * @return Comment to describe the origin request policy. * */ - private final String comment; + private String comment; /** * @return Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Cookies Config for more information. * */ - private final List cookiesConfigs; + private List cookiesConfigs; /** * @return The current version of the origin request policy. * */ - private final String etag; + private String etag; /** * @return Object that determines whether any HTTP headers (and if so, which headers) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Headers Config for more information. * */ - private final List headersConfigs; - private final @Nullable String id; - private final @Nullable String name; + private List headersConfigs; + private @Nullable String id; + private @Nullable String name; /** * @return Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the origin request key and automatically included in requests that CloudFront sends to the origin. See Query String Config for more information. * */ - private final List queryStringsConfigs; - - @CustomType.Constructor - private GetOriginRequestPolicyResult( - @CustomType.Parameter("comment") String comment, - @CustomType.Parameter("cookiesConfigs") List cookiesConfigs, - @CustomType.Parameter("etag") String etag, - @CustomType.Parameter("headersConfigs") List headersConfigs, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("queryStringsConfigs") List queryStringsConfigs) { - this.comment = comment; - this.cookiesConfigs = cookiesConfigs; - this.etag = etag; - this.headersConfigs = headersConfigs; - this.id = id; - this.name = name; - this.queryStringsConfigs = queryStringsConfigs; - } + private List queryStringsConfigs; + private GetOriginRequestPolicyResult() {} /** * @return Comment to describe the origin request policy. * @@ -110,7 +93,7 @@ public static Builder builder() { public static Builder builder(GetOriginRequestPolicyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comment; private List cookiesConfigs; @@ -119,11 +102,7 @@ public static final class Builder { private @Nullable String id; private @Nullable String name; private List queryStringsConfigs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOriginRequestPolicyResult defaults) { Objects.requireNonNull(defaults); this.comment = defaults.comment; @@ -135,10 +114,12 @@ public Builder(GetOriginRequestPolicyResult defaults) { this.queryStringsConfigs = defaults.queryStringsConfigs; } + @CustomType.Setter public Builder comment(String comment) { this.comment = Objects.requireNonNull(comment); return this; } + @CustomType.Setter public Builder cookiesConfigs(List cookiesConfigs) { this.cookiesConfigs = Objects.requireNonNull(cookiesConfigs); return this; @@ -146,10 +127,12 @@ public Builder cookiesConfigs(List cookiesC public Builder cookiesConfigs(GetOriginRequestPolicyCookiesConfig... cookiesConfigs) { return cookiesConfigs(List.of(cookiesConfigs)); } + @CustomType.Setter public Builder etag(String etag) { this.etag = Objects.requireNonNull(etag); return this; } + @CustomType.Setter public Builder headersConfigs(List headersConfigs) { this.headersConfigs = Objects.requireNonNull(headersConfigs); return this; @@ -157,22 +140,34 @@ public Builder headersConfigs(List headersC public Builder headersConfigs(GetOriginRequestPolicyHeadersConfig... headersConfigs) { return headersConfigs(List.of(headersConfigs)); } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder queryStringsConfigs(List queryStringsConfigs) { this.queryStringsConfigs = Objects.requireNonNull(queryStringsConfigs); return this; } public Builder queryStringsConfigs(GetOriginRequestPolicyQueryStringsConfig... queryStringsConfigs) { return queryStringsConfigs(List.of(queryStringsConfigs)); - } public GetOriginRequestPolicyResult build() { - return new GetOriginRequestPolicyResult(comment, cookiesConfigs, etag, headersConfigs, id, name, queryStringsConfigs); + } + public GetOriginRequestPolicyResult build() { + final var o = new GetOriginRequestPolicyResult(); + o.comment = comment; + o.cookiesConfigs = cookiesConfigs; + o.etag = etag; + o.headersConfigs = headersConfigs; + o.id = id; + o.name = name; + o.queryStringsConfigs = queryStringsConfigs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetRealtimeLogConfigEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetRealtimeLogConfigEndpoint.java index 9a82b7dc8f8..7b510f10d6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetRealtimeLogConfigEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetRealtimeLogConfigEndpoint.java @@ -15,21 +15,14 @@ public final class GetRealtimeLogConfigEndpoint { * @return (Required) The Amazon Kinesis data stream configuration. * */ - private final List kinesisStreamConfigs; + private List kinesisStreamConfigs; /** * @return (Required) The type of data stream where real-time log data is sent. The only valid value is `Kinesis`. * */ - private final String streamType; - - @CustomType.Constructor - private GetRealtimeLogConfigEndpoint( - @CustomType.Parameter("kinesisStreamConfigs") List kinesisStreamConfigs, - @CustomType.Parameter("streamType") String streamType) { - this.kinesisStreamConfigs = kinesisStreamConfigs; - this.streamType = streamType; - } + private String streamType; + private GetRealtimeLogConfigEndpoint() {} /** * @return (Required) The Amazon Kinesis data stream configuration. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(GetRealtimeLogConfigEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List kinesisStreamConfigs; private String streamType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRealtimeLogConfigEndpoint defaults) { Objects.requireNonNull(defaults); this.kinesisStreamConfigs = defaults.kinesisStreamConfigs; this.streamType = defaults.streamType; } + @CustomType.Setter public Builder kinesisStreamConfigs(List kinesisStreamConfigs) { this.kinesisStreamConfigs = Objects.requireNonNull(kinesisStreamConfigs); return this; @@ -74,11 +64,16 @@ public Builder kinesisStreamConfigs(List endpoints; + private List endpoints; /** * @return (Required) The fields that are included in each real-time log record. See the [AWS documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-fields) for supported values. * */ - private final List fields; + private List fields; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return (Required) The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. An integer between `1` and `100`, inclusive. * */ - private final Integer samplingRate; - - @CustomType.Constructor - private GetRealtimeLogConfigResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("endpoints") List endpoints, - @CustomType.Parameter("fields") List fields, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("samplingRate") Integer samplingRate) { - this.arn = arn; - this.endpoints = endpoints; - this.fields = fields; - this.id = id; - this.name = name; - this.samplingRate = samplingRate; - } + private Integer samplingRate; + private GetRealtimeLogConfigResult() {} /** * @return The ARN (Amazon Resource Name) of the CloudFront real-time log configuration. * @@ -101,7 +86,7 @@ public static Builder builder() { public static Builder builder(GetRealtimeLogConfigResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List endpoints; @@ -109,11 +94,7 @@ public static final class Builder { private String id; private String name; private Integer samplingRate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRealtimeLogConfigResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -124,10 +105,12 @@ public Builder(GetRealtimeLogConfigResult defaults) { this.samplingRate = defaults.samplingRate; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder endpoints(List endpoints) { this.endpoints = Objects.requireNonNull(endpoints); return this; @@ -135,6 +118,7 @@ public Builder endpoints(List endpoints) { public Builder endpoints(GetRealtimeLogConfigEndpoint... endpoints) { return endpoints(List.of(endpoints)); } + @CustomType.Setter public Builder fields(List fields) { this.fields = Objects.requireNonNull(fields); return this; @@ -142,19 +126,30 @@ public Builder fields(List fields) { public Builder fields(String... fields) { return fields(List.of(fields)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder samplingRate(Integer samplingRate) { this.samplingRate = Objects.requireNonNull(samplingRate); return this; - } public GetRealtimeLogConfigResult build() { - return new GetRealtimeLogConfigResult(arn, endpoints, fields, id, name, samplingRate); + } + public GetRealtimeLogConfigResult build() { + final var o = new GetRealtimeLogConfigResult(); + o.arn = arn; + o.endpoints = endpoints; + o.fields = fields; + o.id = id; + o.name = name; + o.samplingRate = samplingRate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfig.java index 4608a212a15..71c087134dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfig.java @@ -19,52 +19,35 @@ public final class GetResponseHeadersPolicyCorsConfig { * @return A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header. * */ - private final Boolean accessControlAllowCredentials; + private Boolean accessControlAllowCredentials; /** * @return Object that contains an attribute `items` that contains a list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header. * */ - private final List accessControlAllowHeaders; + private List accessControlAllowHeaders; /** * @return Object that contains an attribute `items` that contains a list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. Valid values: `GET` | `POST` | `OPTIONS` | `PUT` | `DELETE` | `HEAD` | `ALL` * */ - private final List accessControlAllowMethods; + private List accessControlAllowMethods; /** * @return Object that contains an attribute `items` that contains a list of origins that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header. * */ - private final List accessControlAllowOrigins; + private List accessControlAllowOrigins; /** * @return Object that contains an attribute `items` that contains a list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header. * */ - private final List accessControlExposeHeaders; + private List accessControlExposeHeaders; /** * @return A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header. * */ - private final Integer accessControlMaxAgeSec; - private final Boolean originOverride; - - @CustomType.Constructor - private GetResponseHeadersPolicyCorsConfig( - @CustomType.Parameter("accessControlAllowCredentials") Boolean accessControlAllowCredentials, - @CustomType.Parameter("accessControlAllowHeaders") List accessControlAllowHeaders, - @CustomType.Parameter("accessControlAllowMethods") List accessControlAllowMethods, - @CustomType.Parameter("accessControlAllowOrigins") List accessControlAllowOrigins, - @CustomType.Parameter("accessControlExposeHeaders") List accessControlExposeHeaders, - @CustomType.Parameter("accessControlMaxAgeSec") Integer accessControlMaxAgeSec, - @CustomType.Parameter("originOverride") Boolean originOverride) { - this.accessControlAllowCredentials = accessControlAllowCredentials; - this.accessControlAllowHeaders = accessControlAllowHeaders; - this.accessControlAllowMethods = accessControlAllowMethods; - this.accessControlAllowOrigins = accessControlAllowOrigins; - this.accessControlExposeHeaders = accessControlExposeHeaders; - this.accessControlMaxAgeSec = accessControlMaxAgeSec; - this.originOverride = originOverride; - } + private Integer accessControlMaxAgeSec; + private Boolean originOverride; + private GetResponseHeadersPolicyCorsConfig() {} /** * @return A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header. * @@ -118,7 +101,7 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicyCorsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean accessControlAllowCredentials; private List accessControlAllowHeaders; @@ -127,11 +110,7 @@ public static final class Builder { private List accessControlExposeHeaders; private Integer accessControlMaxAgeSec; private Boolean originOverride; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicyCorsConfig defaults) { Objects.requireNonNull(defaults); this.accessControlAllowCredentials = defaults.accessControlAllowCredentials; @@ -143,10 +122,12 @@ public Builder(GetResponseHeadersPolicyCorsConfig defaults) { this.originOverride = defaults.originOverride; } + @CustomType.Setter public Builder accessControlAllowCredentials(Boolean accessControlAllowCredentials) { this.accessControlAllowCredentials = Objects.requireNonNull(accessControlAllowCredentials); return this; } + @CustomType.Setter public Builder accessControlAllowHeaders(List accessControlAllowHeaders) { this.accessControlAllowHeaders = Objects.requireNonNull(accessControlAllowHeaders); return this; @@ -154,6 +135,7 @@ public Builder accessControlAllowHeaders(List accessControlAllowMethods) { this.accessControlAllowMethods = Objects.requireNonNull(accessControlAllowMethods); return this; @@ -161,6 +143,7 @@ public Builder accessControlAllowMethods(List accessControlAllowOrigins) { this.accessControlAllowOrigins = Objects.requireNonNull(accessControlAllowOrigins); return this; @@ -168,6 +151,7 @@ public Builder accessControlAllowOrigins(List accessControlExposeHeaders) { this.accessControlExposeHeaders = Objects.requireNonNull(accessControlExposeHeaders); return this; @@ -175,15 +159,26 @@ public Builder accessControlExposeHeaders(List items; - - @CustomType.Constructor - private GetResponseHeadersPolicyCorsConfigAccessControlAllowHeader(@CustomType.Parameter("items") List items) { - this.items = items; - } + private List items; + private GetResponseHeadersPolicyCorsConfigAccessControlAllowHeader() {} public List items() { return this.items; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicyCorsConfigAccessControlAllowHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicyCorsConfigAccessControlAllowHeader defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(List items) { this.items = Objects.requireNonNull(items); return this; } public Builder items(String... items) { return items(List.of(items)); - } public GetResponseHeadersPolicyCorsConfigAccessControlAllowHeader build() { - return new GetResponseHeadersPolicyCorsConfigAccessControlAllowHeader(items); + } + public GetResponseHeadersPolicyCorsConfigAccessControlAllowHeader build() { + final var o = new GetResponseHeadersPolicyCorsConfigAccessControlAllowHeader(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod.java index 7a513ebe7d3..ebfd0534a08 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod.java @@ -10,13 +10,9 @@ @CustomType public final class GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod { - private final List items; - - @CustomType.Constructor - private GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod(@CustomType.Parameter("items") List items) { - this.items = items; - } + private List items; + private GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod() {} public List items() { return this.items; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(List items) { this.items = Objects.requireNonNull(items); return this; } public Builder items(String... items) { return items(List.of(items)); - } public GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod build() { - return new GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod(items); + } + public GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod build() { + final var o = new GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin.java index 433aa49fa3b..a6eb4aab090 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin.java @@ -10,13 +10,9 @@ @CustomType public final class GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin { - private final List items; - - @CustomType.Constructor - private GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin(@CustomType.Parameter("items") List items) { - this.items = items; - } + private List items; + private GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin() {} public List items() { return this.items; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(List items) { this.items = Objects.requireNonNull(items); return this; } public Builder items(String... items) { return items(List.of(items)); - } public GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin build() { - return new GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin(items); + } + public GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin build() { + final var o = new GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader.java index f0cbe8438da..29f65deef2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader.java @@ -10,13 +10,9 @@ @CustomType public final class GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader { - private final List items; - - @CustomType.Constructor - private GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader(@CustomType.Parameter("items") List items) { - this.items = items; - } + private List items; + private GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader() {} public List items() { return this.items; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(List items) { this.items = Objects.requireNonNull(items); return this; } public Builder items(String... items) { return items(List.of(items)); - } public GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader build() { - return new GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader(items); + } + public GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader build() { + final var o = new GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCustomHeadersConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCustomHeadersConfig.java index e1c312467a4..eb6e0b19c33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCustomHeadersConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCustomHeadersConfig.java @@ -10,13 +10,9 @@ @CustomType public final class GetResponseHeadersPolicyCustomHeadersConfig { - private final List items; - - @CustomType.Constructor - private GetResponseHeadersPolicyCustomHeadersConfig(@CustomType.Parameter("items") List items) { - this.items = items; - } + private List items; + private GetResponseHeadersPolicyCustomHeadersConfig() {} public List items() { return this.items; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicyCustomHeadersConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicyCustomHeadersConfig defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(List items) { this.items = Objects.requireNonNull(items); return this; } public Builder items(GetResponseHeadersPolicyCustomHeadersConfigItem... items) { return items(List.of(items)); - } public GetResponseHeadersPolicyCustomHeadersConfig build() { - return new GetResponseHeadersPolicyCustomHeadersConfig(items); + } + public GetResponseHeadersPolicyCustomHeadersConfig build() { + final var o = new GetResponseHeadersPolicyCustomHeadersConfig(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCustomHeadersConfigItem.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCustomHeadersConfigItem.java index 824d989abb4..bfa00508655 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCustomHeadersConfigItem.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyCustomHeadersConfigItem.java @@ -14,28 +14,19 @@ public final class GetResponseHeadersPolicyCustomHeadersConfigItem { * @return The HTTP response header name. * */ - private final String header; + private String header; /** * @return A Boolean value that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; + private Boolean override; /** * @return The value for the HTTP response header. * */ - private final String value; - - @CustomType.Constructor - private GetResponseHeadersPolicyCustomHeadersConfigItem( - @CustomType.Parameter("header") String header, - @CustomType.Parameter("override") Boolean override, - @CustomType.Parameter("value") String value) { - this.header = header; - this.override = override; - this.value = value; - } + private String value; + private GetResponseHeadersPolicyCustomHeadersConfigItem() {} /** * @return The HTTP response header name. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicyCustomHeadersConfigItem defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String header; private Boolean override; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicyCustomHeadersConfigItem defaults) { Objects.requireNonNull(defaults); this.header = defaults.header; @@ -82,19 +69,27 @@ public Builder(GetResponseHeadersPolicyCustomHeadersConfigItem defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder header(String header) { this.header = Objects.requireNonNull(header); return this; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetResponseHeadersPolicyCustomHeadersConfigItem build() { - return new GetResponseHeadersPolicyCustomHeadersConfigItem(header, override, value); + } + public GetResponseHeadersPolicyCustomHeadersConfigItem build() { + final var o = new GetResponseHeadersPolicyCustomHeadersConfigItem(); + o.header = header; + o.override = override; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyResult.java index 51ce6b043fc..538dc198d64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyResult.java @@ -18,55 +18,36 @@ public final class GetResponseHeadersPolicyResult { * @return A comment to describe the response headers policy. The comment cannot be longer than 128 characters. * */ - private final String comment; + private String comment; /** * @return A configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information. * */ - private final List corsConfigs; + private List corsConfigs; /** * @return Object that contains an attribute `items` that contains a list of Custom Headers See Custom Header for more information. * */ - private final List customHeadersConfigs; + private List customHeadersConfigs; /** * @return The current version of the response headers policy. * */ - private final String etag; - private final String id; - private final String name; + private String etag; + private String id; + private String name; /** * @return A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information. * */ - private final List securityHeadersConfigs; + private List securityHeadersConfigs; /** * @return (Optional) A configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information. * */ - private final List serverTimingHeadersConfigs; - - @CustomType.Constructor - private GetResponseHeadersPolicyResult( - @CustomType.Parameter("comment") String comment, - @CustomType.Parameter("corsConfigs") List corsConfigs, - @CustomType.Parameter("customHeadersConfigs") List customHeadersConfigs, - @CustomType.Parameter("etag") String etag, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("securityHeadersConfigs") List securityHeadersConfigs, - @CustomType.Parameter("serverTimingHeadersConfigs") List serverTimingHeadersConfigs) { - this.comment = comment; - this.corsConfigs = corsConfigs; - this.customHeadersConfigs = customHeadersConfigs; - this.etag = etag; - this.id = id; - this.name = name; - this.securityHeadersConfigs = securityHeadersConfigs; - this.serverTimingHeadersConfigs = serverTimingHeadersConfigs; - } + private List serverTimingHeadersConfigs; + private GetResponseHeadersPolicyResult() {} /** * @return A comment to describe the response headers policy. The comment cannot be longer than 128 characters. * @@ -123,7 +104,7 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comment; private List corsConfigs; @@ -133,11 +114,7 @@ public static final class Builder { private String name; private List securityHeadersConfigs; private List serverTimingHeadersConfigs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicyResult defaults) { Objects.requireNonNull(defaults); this.comment = defaults.comment; @@ -150,10 +127,12 @@ public Builder(GetResponseHeadersPolicyResult defaults) { this.serverTimingHeadersConfigs = defaults.serverTimingHeadersConfigs; } + @CustomType.Setter public Builder comment(String comment) { this.comment = Objects.requireNonNull(comment); return this; } + @CustomType.Setter public Builder corsConfigs(List corsConfigs) { this.corsConfigs = Objects.requireNonNull(corsConfigs); return this; @@ -161,6 +140,7 @@ public Builder corsConfigs(List corsConfigs) public Builder corsConfigs(GetResponseHeadersPolicyCorsConfig... corsConfigs) { return corsConfigs(List.of(corsConfigs)); } + @CustomType.Setter public Builder customHeadersConfigs(List customHeadersConfigs) { this.customHeadersConfigs = Objects.requireNonNull(customHeadersConfigs); return this; @@ -168,18 +148,22 @@ public Builder customHeadersConfigs(List securityHeadersConfigs) { this.securityHeadersConfigs = Objects.requireNonNull(securityHeadersConfigs); return this; @@ -187,14 +171,25 @@ public Builder securityHeadersConfigs(List serverTimingHeadersConfigs) { this.serverTimingHeadersConfigs = Objects.requireNonNull(serverTimingHeadersConfigs); return this; } public Builder serverTimingHeadersConfigs(GetResponseHeadersPolicyServerTimingHeadersConfig... serverTimingHeadersConfigs) { return serverTimingHeadersConfigs(List.of(serverTimingHeadersConfigs)); - } public GetResponseHeadersPolicyResult build() { - return new GetResponseHeadersPolicyResult(comment, corsConfigs, customHeadersConfigs, etag, id, name, securityHeadersConfigs, serverTimingHeadersConfigs); + } + public GetResponseHeadersPolicyResult build() { + final var o = new GetResponseHeadersPolicyResult(); + o.comment = comment; + o.corsConfigs = corsConfigs; + o.customHeadersConfigs = customHeadersConfigs; + o.etag = etag; + o.id = id; + o.name = name; + o.securityHeadersConfigs = securityHeadersConfigs; + o.serverTimingHeadersConfigs = serverTimingHeadersConfigs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfig.java index ee820f426f4..a100eff974d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfig.java @@ -19,49 +19,34 @@ public final class GetResponseHeadersPolicySecurityHeadersConfig { * @return The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header. * */ - private final List contentSecurityPolicies; + private List contentSecurityPolicies; /** * @return A setting that determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff. See Content Type Options for more information. * */ - private final List contentTypeOptions; + private List contentTypeOptions; /** * @return A setting that determines whether CloudFront includes the X-Frame-Options HTTP response header and the header’s value. See Frame Options for more information. * */ - private final List frameOptions; + private List frameOptions; /** * @return The value of the Referrer-Policy HTTP response header. Valid Values: `no-referrer` | `no-referrer-when-downgrade` | `origin` | `origin-when-cross-origin` | `same-origin` | `strict-origin` | `strict-origin-when-cross-origin` | `unsafe-url` * */ - private final List referrerPolicies; + private List referrerPolicies; /** * @return Settings that determine whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value. See Strict Transport Security for more information. * */ - private final List strictTransportSecurities; + private List strictTransportSecurities; /** * @return Settings that determine whether CloudFront includes the X-XSS-Protection HTTP response header and the header’s value. See XSS Protection for more information. * */ - private final List xssProtections; - - @CustomType.Constructor - private GetResponseHeadersPolicySecurityHeadersConfig( - @CustomType.Parameter("contentSecurityPolicies") List contentSecurityPolicies, - @CustomType.Parameter("contentTypeOptions") List contentTypeOptions, - @CustomType.Parameter("frameOptions") List frameOptions, - @CustomType.Parameter("referrerPolicies") List referrerPolicies, - @CustomType.Parameter("strictTransportSecurities") List strictTransportSecurities, - @CustomType.Parameter("xssProtections") List xssProtections) { - this.contentSecurityPolicies = contentSecurityPolicies; - this.contentTypeOptions = contentTypeOptions; - this.frameOptions = frameOptions; - this.referrerPolicies = referrerPolicies; - this.strictTransportSecurities = strictTransportSecurities; - this.xssProtections = xssProtections; - } + private List xssProtections; + private GetResponseHeadersPolicySecurityHeadersConfig() {} /** * @return The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header. * @@ -112,7 +97,7 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicySecurityHeadersConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List contentSecurityPolicies; private List contentTypeOptions; @@ -120,11 +105,7 @@ public static final class Builder { private List referrerPolicies; private List strictTransportSecurities; private List xssProtections; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicySecurityHeadersConfig defaults) { Objects.requireNonNull(defaults); this.contentSecurityPolicies = defaults.contentSecurityPolicies; @@ -135,6 +116,7 @@ public Builder(GetResponseHeadersPolicySecurityHeadersConfig defaults) { this.xssProtections = defaults.xssProtections; } + @CustomType.Setter public Builder contentSecurityPolicies(List contentSecurityPolicies) { this.contentSecurityPolicies = Objects.requireNonNull(contentSecurityPolicies); return this; @@ -142,6 +124,7 @@ public Builder contentSecurityPolicies(List contentTypeOptions) { this.contentTypeOptions = Objects.requireNonNull(contentTypeOptions); return this; @@ -149,6 +132,7 @@ public Builder contentTypeOptions(List frameOptions) { this.frameOptions = Objects.requireNonNull(frameOptions); return this; @@ -156,6 +140,7 @@ public Builder frameOptions(List referrerPolicies) { this.referrerPolicies = Objects.requireNonNull(referrerPolicies); return this; @@ -163,6 +148,7 @@ public Builder referrerPolicies(List strictTransportSecurities) { this.strictTransportSecurities = Objects.requireNonNull(strictTransportSecurities); return this; @@ -170,14 +156,23 @@ public Builder strictTransportSecurities(List xssProtections) { this.xssProtections = Objects.requireNonNull(xssProtections); return this; } public Builder xssProtections(GetResponseHeadersPolicySecurityHeadersConfigXssProtection... xssProtections) { return xssProtections(List.of(xssProtections)); - } public GetResponseHeadersPolicySecurityHeadersConfig build() { - return new GetResponseHeadersPolicySecurityHeadersConfig(contentSecurityPolicies, contentTypeOptions, frameOptions, referrerPolicies, strictTransportSecurities, xssProtections); + } + public GetResponseHeadersPolicySecurityHeadersConfig build() { + final var o = new GetResponseHeadersPolicySecurityHeadersConfig(); + o.contentSecurityPolicies = contentSecurityPolicies; + o.contentTypeOptions = contentTypeOptions; + o.frameOptions = frameOptions; + o.referrerPolicies = referrerPolicies; + o.strictTransportSecurities = strictTransportSecurities; + o.xssProtections = xssProtections; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy.java index e5f818e5062..3d9b02601d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy.java @@ -14,21 +14,14 @@ public final class GetResponseHeadersPolicySecurityHeadersConfigContentSecurityP * @return The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header. * */ - private final String contentSecurityPolicy; + private String contentSecurityPolicy; /** * @return A Boolean value that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; - - @CustomType.Constructor - private GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy( - @CustomType.Parameter("contentSecurityPolicy") String contentSecurityPolicy, - @CustomType.Parameter("override") Boolean override) { - this.contentSecurityPolicy = contentSecurityPolicy; - this.override = override; - } + private Boolean override; + private GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy() {} /** * @return The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentSecurityPolicy; private Boolean override; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy defaults) { Objects.requireNonNull(defaults); this.contentSecurityPolicy = defaults.contentSecurityPolicy; this.override = defaults.override; } + @CustomType.Setter public Builder contentSecurityPolicy(String contentSecurityPolicy) { this.contentSecurityPolicy = Objects.requireNonNull(contentSecurityPolicy); return this; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; - } public GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy build() { - return new GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy(contentSecurityPolicy, override); + } + public GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy build() { + final var o = new GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy(); + o.contentSecurityPolicy = contentSecurityPolicy; + o.override = override; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption.java index 61bf9376e80..0afb141e9b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption.java @@ -13,13 +13,9 @@ public final class GetResponseHeadersPolicySecurityHeadersConfigContentTypeOptio * @return A Boolean value that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; - - @CustomType.Constructor - private GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption(@CustomType.Parameter("override") Boolean override) { - this.override = override; - } + private Boolean override; + private GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption() {} /** * @return A Boolean value that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean override; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption defaults) { Objects.requireNonNull(defaults); this.override = defaults.override; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; - } public GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption build() { - return new GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption(override); + } + public GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption build() { + final var o = new GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption(); + o.override = override; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigFrameOption.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigFrameOption.java index 33e5fb6f4fa..da654669327 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigFrameOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigFrameOption.java @@ -14,21 +14,14 @@ public final class GetResponseHeadersPolicySecurityHeadersConfigFrameOption { * @return The value of the X-Frame-Options HTTP response header. Valid values: `DENY` | `SAMEORIGIN` * */ - private final String frameOption; + private String frameOption; /** * @return A Boolean value that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; - - @CustomType.Constructor - private GetResponseHeadersPolicySecurityHeadersConfigFrameOption( - @CustomType.Parameter("frameOption") String frameOption, - @CustomType.Parameter("override") Boolean override) { - this.frameOption = frameOption; - this.override = override; - } + private Boolean override; + private GetResponseHeadersPolicySecurityHeadersConfigFrameOption() {} /** * @return The value of the X-Frame-Options HTTP response header. Valid values: `DENY` | `SAMEORIGIN` * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicySecurityHeadersConfigFrameOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String frameOption; private Boolean override; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicySecurityHeadersConfigFrameOption defaults) { Objects.requireNonNull(defaults); this.frameOption = defaults.frameOption; this.override = defaults.override; } + @CustomType.Setter public Builder frameOption(String frameOption) { this.frameOption = Objects.requireNonNull(frameOption); return this; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; - } public GetResponseHeadersPolicySecurityHeadersConfigFrameOption build() { - return new GetResponseHeadersPolicySecurityHeadersConfigFrameOption(frameOption, override); + } + public GetResponseHeadersPolicySecurityHeadersConfigFrameOption build() { + final var o = new GetResponseHeadersPolicySecurityHeadersConfigFrameOption(); + o.frameOption = frameOption; + o.override = override; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy.java index 80710ccdee0..051d22d3142 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy.java @@ -14,21 +14,14 @@ public final class GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy { * @return A Boolean value that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; + private Boolean override; /** * @return The value of the Referrer-Policy HTTP response header. Valid Values: `no-referrer` | `no-referrer-when-downgrade` | `origin` | `origin-when-cross-origin` | `same-origin` | `strict-origin` | `strict-origin-when-cross-origin` | `unsafe-url` * */ - private final String referrerPolicy; - - @CustomType.Constructor - private GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy( - @CustomType.Parameter("override") Boolean override, - @CustomType.Parameter("referrerPolicy") String referrerPolicy) { - this.override = override; - this.referrerPolicy = referrerPolicy; - } + private String referrerPolicy; + private GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy() {} /** * @return A Boolean value that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean override; private String referrerPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy defaults) { Objects.requireNonNull(defaults); this.override = defaults.override; this.referrerPolicy = defaults.referrerPolicy; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; } + @CustomType.Setter public Builder referrerPolicy(String referrerPolicy) { this.referrerPolicy = Objects.requireNonNull(referrerPolicy); return this; - } public GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy build() { - return new GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy(override, referrerPolicy); + } + public GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy build() { + final var o = new GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy(); + o.override = override; + o.referrerPolicy = referrerPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity.java index 8adc1fadddd..57cc51a1f25 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity.java @@ -14,35 +14,24 @@ public final class GetResponseHeadersPolicySecurityHeadersConfigStrictTransportS * @return A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header. * */ - private final Integer accessControlMaxAgeSec; + private Integer accessControlMaxAgeSec; /** * @return A Boolean value that determines whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header. * */ - private final Boolean includeSubdomains; + private Boolean includeSubdomains; /** * @return A Boolean value that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; + private Boolean override; /** * @return A Boolean value that determines whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header. * */ - private final Boolean preload; - - @CustomType.Constructor - private GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity( - @CustomType.Parameter("accessControlMaxAgeSec") Integer accessControlMaxAgeSec, - @CustomType.Parameter("includeSubdomains") Boolean includeSubdomains, - @CustomType.Parameter("override") Boolean override, - @CustomType.Parameter("preload") Boolean preload) { - this.accessControlMaxAgeSec = accessControlMaxAgeSec; - this.includeSubdomains = includeSubdomains; - this.override = override; - this.preload = preload; - } + private Boolean preload; + private GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity() {} /** * @return A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header. * @@ -79,17 +68,13 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer accessControlMaxAgeSec; private Boolean includeSubdomains; private Boolean override; private Boolean preload; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity defaults) { Objects.requireNonNull(defaults); this.accessControlMaxAgeSec = defaults.accessControlMaxAgeSec; @@ -98,23 +83,33 @@ public Builder(GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecur this.preload = defaults.preload; } + @CustomType.Setter public Builder accessControlMaxAgeSec(Integer accessControlMaxAgeSec) { this.accessControlMaxAgeSec = Objects.requireNonNull(accessControlMaxAgeSec); return this; } + @CustomType.Setter public Builder includeSubdomains(Boolean includeSubdomains) { this.includeSubdomains = Objects.requireNonNull(includeSubdomains); return this; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; } + @CustomType.Setter public Builder preload(Boolean preload) { this.preload = Objects.requireNonNull(preload); return this; - } public GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity build() { - return new GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity(accessControlMaxAgeSec, includeSubdomains, override, preload); + } + public GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity build() { + final var o = new GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity(); + o.accessControlMaxAgeSec = accessControlMaxAgeSec; + o.includeSubdomains = includeSubdomains; + o.override = override; + o.preload = preload; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigXssProtection.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigXssProtection.java index d015e1b2ea7..aa8a9c45c8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigXssProtection.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicySecurityHeadersConfigXssProtection.java @@ -14,35 +14,24 @@ public final class GetResponseHeadersPolicySecurityHeadersConfigXssProtection { * @return A Boolean value that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header. * */ - private final Boolean modeBlock; + private Boolean modeBlock; /** * @return A Boolean value that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; + private Boolean override; /** * @return A Boolean value that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0. * */ - private final Boolean protection; + private Boolean protection; /** * @return A Boolean value that determines whether CloudFront sets a reporting URI in the X-XSS-Protection header. * */ - private final String reportUri; - - @CustomType.Constructor - private GetResponseHeadersPolicySecurityHeadersConfigXssProtection( - @CustomType.Parameter("modeBlock") Boolean modeBlock, - @CustomType.Parameter("override") Boolean override, - @CustomType.Parameter("protection") Boolean protection, - @CustomType.Parameter("reportUri") String reportUri) { - this.modeBlock = modeBlock; - this.override = override; - this.protection = protection; - this.reportUri = reportUri; - } + private String reportUri; + private GetResponseHeadersPolicySecurityHeadersConfigXssProtection() {} /** * @return A Boolean value that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header. * @@ -79,17 +68,13 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicySecurityHeadersConfigXssProtection defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean modeBlock; private Boolean override; private Boolean protection; private String reportUri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicySecurityHeadersConfigXssProtection defaults) { Objects.requireNonNull(defaults); this.modeBlock = defaults.modeBlock; @@ -98,23 +83,33 @@ public Builder(GetResponseHeadersPolicySecurityHeadersConfigXssProtection defaul this.reportUri = defaults.reportUri; } + @CustomType.Setter public Builder modeBlock(Boolean modeBlock) { this.modeBlock = Objects.requireNonNull(modeBlock); return this; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; } + @CustomType.Setter public Builder protection(Boolean protection) { this.protection = Objects.requireNonNull(protection); return this; } + @CustomType.Setter public Builder reportUri(String reportUri) { this.reportUri = Objects.requireNonNull(reportUri); return this; - } public GetResponseHeadersPolicySecurityHeadersConfigXssProtection build() { - return new GetResponseHeadersPolicySecurityHeadersConfigXssProtection(modeBlock, override, protection, reportUri); + } + public GetResponseHeadersPolicySecurityHeadersConfigXssProtection build() { + final var o = new GetResponseHeadersPolicySecurityHeadersConfigXssProtection(); + o.modeBlock = modeBlock; + o.override = override; + o.protection = protection; + o.reportUri = reportUri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyServerTimingHeadersConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyServerTimingHeadersConfig.java index 29f9639b306..eb032ee9356 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyServerTimingHeadersConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/GetResponseHeadersPolicyServerTimingHeadersConfig.java @@ -14,21 +14,14 @@ public final class GetResponseHeadersPolicyServerTimingHeadersConfig { * @return A Boolean that determines whether CloudFront adds the `Server-Timing` header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to. * */ - private final Double samplingRate; - - @CustomType.Constructor - private GetResponseHeadersPolicyServerTimingHeadersConfig( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("samplingRate") Double samplingRate) { - this.enabled = enabled; - this.samplingRate = samplingRate; - } + private Double samplingRate; + private GetResponseHeadersPolicyServerTimingHeadersConfig() {} /** * @return A Boolean that determines whether CloudFront adds the `Server-Timing` header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetResponseHeadersPolicyServerTimingHeadersConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private Double samplingRate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResponseHeadersPolicyServerTimingHeadersConfig defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.samplingRate = defaults.samplingRate; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder samplingRate(Double samplingRate) { this.samplingRate = Objects.requireNonNull(samplingRate); return this; - } public GetResponseHeadersPolicyServerTimingHeadersConfig build() { - return new GetResponseHeadersPolicyServerTimingHeadersConfig(enabled, samplingRate); + } + public GetResponseHeadersPolicyServerTimingHeadersConfig build() { + final var o = new GetResponseHeadersPolicyServerTimingHeadersConfig(); + o.enabled = enabled; + o.samplingRate = samplingRate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/MonitoringSubscriptionMonitoringSubscription.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/MonitoringSubscriptionMonitoringSubscription.java index c718d32d111..7a31c27ca64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/MonitoringSubscriptionMonitoringSubscription.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/MonitoringSubscriptionMonitoringSubscription.java @@ -13,13 +13,9 @@ public final class MonitoringSubscriptionMonitoringSubscription { * @return A subscription configuration for additional CloudWatch metrics. See below. * */ - private final MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig realtimeMetricsSubscriptionConfig; - - @CustomType.Constructor - private MonitoringSubscriptionMonitoringSubscription(@CustomType.Parameter("realtimeMetricsSubscriptionConfig") MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig realtimeMetricsSubscriptionConfig) { - this.realtimeMetricsSubscriptionConfig = realtimeMetricsSubscriptionConfig; - } + private MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig realtimeMetricsSubscriptionConfig; + private MonitoringSubscriptionMonitoringSubscription() {} /** * @return A subscription configuration for additional CloudWatch metrics. See below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(MonitoringSubscriptionMonitoringSubscription defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig realtimeMetricsSubscriptionConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MonitoringSubscriptionMonitoringSubscription defaults) { Objects.requireNonNull(defaults); this.realtimeMetricsSubscriptionConfig = defaults.realtimeMetricsSubscriptionConfig; } + @CustomType.Setter public Builder realtimeMetricsSubscriptionConfig(MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig realtimeMetricsSubscriptionConfig) { this.realtimeMetricsSubscriptionConfig = Objects.requireNonNull(realtimeMetricsSubscriptionConfig); return this; - } public MonitoringSubscriptionMonitoringSubscription build() { - return new MonitoringSubscriptionMonitoringSubscription(realtimeMetricsSubscriptionConfig); + } + public MonitoringSubscriptionMonitoringSubscription build() { + final var o = new MonitoringSubscriptionMonitoringSubscription(); + o.realtimeMetricsSubscriptionConfig = realtimeMetricsSubscriptionConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig.java index 2279ea17158..5836fc8ee9a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig.java @@ -13,13 +13,9 @@ public final class MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSu * @return A flag that indicates whether additional CloudWatch metrics are enabled for a given CloudFront distribution. Valid values are `Enabled` and `Disabled`. See below. * */ - private final String realtimeMetricsSubscriptionStatus; - - @CustomType.Constructor - private MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig(@CustomType.Parameter("realtimeMetricsSubscriptionStatus") String realtimeMetricsSubscriptionStatus) { - this.realtimeMetricsSubscriptionStatus = realtimeMetricsSubscriptionStatus; - } + private String realtimeMetricsSubscriptionStatus; + private MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig() {} /** * @return A flag that indicates whether additional CloudWatch metrics are enabled for a given CloudFront distribution. Valid values are `Enabled` and `Disabled`. See below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String realtimeMetricsSubscriptionStatus; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig defaults) { Objects.requireNonNull(defaults); this.realtimeMetricsSubscriptionStatus = defaults.realtimeMetricsSubscriptionStatus; } + @CustomType.Setter public Builder realtimeMetricsSubscriptionStatus(String realtimeMetricsSubscriptionStatus) { this.realtimeMetricsSubscriptionStatus = Objects.requireNonNull(realtimeMetricsSubscriptionStatus); return this; - } public MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig build() { - return new MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig(realtimeMetricsSubscriptionStatus); + } + public MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig build() { + final var o = new MonitoringSubscriptionMonitoringSubscriptionRealtimeMetricsSubscriptionConfig(); + o.realtimeMetricsSubscriptionStatus = realtimeMetricsSubscriptionStatus; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyCookiesConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyCookiesConfig.java index 6f7dab3d5eb..13f1da94adb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyCookiesConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyCookiesConfig.java @@ -12,17 +12,10 @@ @CustomType public final class OriginRequestPolicyCookiesConfig { - private final String cookieBehavior; - private final @Nullable OriginRequestPolicyCookiesConfigCookies cookies; - - @CustomType.Constructor - private OriginRequestPolicyCookiesConfig( - @CustomType.Parameter("cookieBehavior") String cookieBehavior, - @CustomType.Parameter("cookies") @Nullable OriginRequestPolicyCookiesConfigCookies cookies) { - this.cookieBehavior = cookieBehavior; - this.cookies = cookies; - } + private String cookieBehavior; + private @Nullable OriginRequestPolicyCookiesConfigCookies cookies; + private OriginRequestPolicyCookiesConfig() {} public String cookieBehavior() { return this.cookieBehavior; } @@ -37,30 +30,32 @@ public static Builder builder() { public static Builder builder(OriginRequestPolicyCookiesConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cookieBehavior; private @Nullable OriginRequestPolicyCookiesConfigCookies cookies; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OriginRequestPolicyCookiesConfig defaults) { Objects.requireNonNull(defaults); this.cookieBehavior = defaults.cookieBehavior; this.cookies = defaults.cookies; } + @CustomType.Setter public Builder cookieBehavior(String cookieBehavior) { this.cookieBehavior = Objects.requireNonNull(cookieBehavior); return this; } + @CustomType.Setter public Builder cookies(@Nullable OriginRequestPolicyCookiesConfigCookies cookies) { this.cookies = cookies; return this; - } public OriginRequestPolicyCookiesConfig build() { - return new OriginRequestPolicyCookiesConfig(cookieBehavior, cookies); + } + public OriginRequestPolicyCookiesConfig build() { + final var o = new OriginRequestPolicyCookiesConfig(); + o.cookieBehavior = cookieBehavior; + o.cookies = cookies; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyCookiesConfigCookies.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyCookiesConfigCookies.java index 8f38522acd3..d2fc94e3bcb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyCookiesConfigCookies.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyCookiesConfigCookies.java @@ -11,13 +11,9 @@ @CustomType public final class OriginRequestPolicyCookiesConfigCookies { - private final @Nullable List items; - - @CustomType.Constructor - private OriginRequestPolicyCookiesConfigCookies(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private OriginRequestPolicyCookiesConfigCookies() {} public List items() { return this.items == null ? List.of() : this.items; } @@ -29,27 +25,27 @@ public static Builder builder() { public static Builder builder(OriginRequestPolicyCookiesConfigCookies defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OriginRequestPolicyCookiesConfigCookies defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(String... items) { return items(List.of(items)); - } public OriginRequestPolicyCookiesConfigCookies build() { - return new OriginRequestPolicyCookiesConfigCookies(items); + } + public OriginRequestPolicyCookiesConfigCookies build() { + final var o = new OriginRequestPolicyCookiesConfigCookies(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyHeadersConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyHeadersConfig.java index e10bb8e8272..d100f22f658 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyHeadersConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyHeadersConfig.java @@ -12,17 +12,10 @@ @CustomType public final class OriginRequestPolicyHeadersConfig { - private final @Nullable String headerBehavior; - private final @Nullable OriginRequestPolicyHeadersConfigHeaders headers; - - @CustomType.Constructor - private OriginRequestPolicyHeadersConfig( - @CustomType.Parameter("headerBehavior") @Nullable String headerBehavior, - @CustomType.Parameter("headers") @Nullable OriginRequestPolicyHeadersConfigHeaders headers) { - this.headerBehavior = headerBehavior; - this.headers = headers; - } + private @Nullable String headerBehavior; + private @Nullable OriginRequestPolicyHeadersConfigHeaders headers; + private OriginRequestPolicyHeadersConfig() {} public Optional headerBehavior() { return Optional.ofNullable(this.headerBehavior); } @@ -37,30 +30,32 @@ public static Builder builder() { public static Builder builder(OriginRequestPolicyHeadersConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String headerBehavior; private @Nullable OriginRequestPolicyHeadersConfigHeaders headers; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OriginRequestPolicyHeadersConfig defaults) { Objects.requireNonNull(defaults); this.headerBehavior = defaults.headerBehavior; this.headers = defaults.headers; } + @CustomType.Setter public Builder headerBehavior(@Nullable String headerBehavior) { this.headerBehavior = headerBehavior; return this; } + @CustomType.Setter public Builder headers(@Nullable OriginRequestPolicyHeadersConfigHeaders headers) { this.headers = headers; return this; - } public OriginRequestPolicyHeadersConfig build() { - return new OriginRequestPolicyHeadersConfig(headerBehavior, headers); + } + public OriginRequestPolicyHeadersConfig build() { + final var o = new OriginRequestPolicyHeadersConfig(); + o.headerBehavior = headerBehavior; + o.headers = headers; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyHeadersConfigHeaders.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyHeadersConfigHeaders.java index 2fa1a6e31c9..28acc4cb3ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyHeadersConfigHeaders.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyHeadersConfigHeaders.java @@ -11,13 +11,9 @@ @CustomType public final class OriginRequestPolicyHeadersConfigHeaders { - private final @Nullable List items; - - @CustomType.Constructor - private OriginRequestPolicyHeadersConfigHeaders(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private OriginRequestPolicyHeadersConfigHeaders() {} public List items() { return this.items == null ? List.of() : this.items; } @@ -29,27 +25,27 @@ public static Builder builder() { public static Builder builder(OriginRequestPolicyHeadersConfigHeaders defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OriginRequestPolicyHeadersConfigHeaders defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(String... items) { return items(List.of(items)); - } public OriginRequestPolicyHeadersConfigHeaders build() { - return new OriginRequestPolicyHeadersConfigHeaders(items); + } + public OriginRequestPolicyHeadersConfigHeaders build() { + final var o = new OriginRequestPolicyHeadersConfigHeaders(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyQueryStringsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyQueryStringsConfig.java index 6de7194b88a..3e053a2fda6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyQueryStringsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyQueryStringsConfig.java @@ -12,17 +12,10 @@ @CustomType public final class OriginRequestPolicyQueryStringsConfig { - private final String queryStringBehavior; - private final @Nullable OriginRequestPolicyQueryStringsConfigQueryStrings queryStrings; - - @CustomType.Constructor - private OriginRequestPolicyQueryStringsConfig( - @CustomType.Parameter("queryStringBehavior") String queryStringBehavior, - @CustomType.Parameter("queryStrings") @Nullable OriginRequestPolicyQueryStringsConfigQueryStrings queryStrings) { - this.queryStringBehavior = queryStringBehavior; - this.queryStrings = queryStrings; - } + private String queryStringBehavior; + private @Nullable OriginRequestPolicyQueryStringsConfigQueryStrings queryStrings; + private OriginRequestPolicyQueryStringsConfig() {} public String queryStringBehavior() { return this.queryStringBehavior; } @@ -37,30 +30,32 @@ public static Builder builder() { public static Builder builder(OriginRequestPolicyQueryStringsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String queryStringBehavior; private @Nullable OriginRequestPolicyQueryStringsConfigQueryStrings queryStrings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OriginRequestPolicyQueryStringsConfig defaults) { Objects.requireNonNull(defaults); this.queryStringBehavior = defaults.queryStringBehavior; this.queryStrings = defaults.queryStrings; } + @CustomType.Setter public Builder queryStringBehavior(String queryStringBehavior) { this.queryStringBehavior = Objects.requireNonNull(queryStringBehavior); return this; } + @CustomType.Setter public Builder queryStrings(@Nullable OriginRequestPolicyQueryStringsConfigQueryStrings queryStrings) { this.queryStrings = queryStrings; return this; - } public OriginRequestPolicyQueryStringsConfig build() { - return new OriginRequestPolicyQueryStringsConfig(queryStringBehavior, queryStrings); + } + public OriginRequestPolicyQueryStringsConfig build() { + final var o = new OriginRequestPolicyQueryStringsConfig(); + o.queryStringBehavior = queryStringBehavior; + o.queryStrings = queryStrings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyQueryStringsConfigQueryStrings.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyQueryStringsConfigQueryStrings.java index ced8574e106..a60871de375 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyQueryStringsConfigQueryStrings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/OriginRequestPolicyQueryStringsConfigQueryStrings.java @@ -11,13 +11,9 @@ @CustomType public final class OriginRequestPolicyQueryStringsConfigQueryStrings { - private final @Nullable List items; - - @CustomType.Constructor - private OriginRequestPolicyQueryStringsConfigQueryStrings(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private OriginRequestPolicyQueryStringsConfigQueryStrings() {} public List items() { return this.items == null ? List.of() : this.items; } @@ -29,27 +25,27 @@ public static Builder builder() { public static Builder builder(OriginRequestPolicyQueryStringsConfigQueryStrings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OriginRequestPolicyQueryStringsConfigQueryStrings defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(String... items) { return items(List.of(items)); - } public OriginRequestPolicyQueryStringsConfigQueryStrings build() { - return new OriginRequestPolicyQueryStringsConfigQueryStrings(items); + } + public OriginRequestPolicyQueryStringsConfigQueryStrings build() { + final var o = new OriginRequestPolicyQueryStringsConfigQueryStrings(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/RealtimeLogConfigEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/RealtimeLogConfigEndpoint.java index 858710f90ed..183635b0253 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/RealtimeLogConfigEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/RealtimeLogConfigEndpoint.java @@ -14,21 +14,14 @@ public final class RealtimeLogConfigEndpoint { * @return The Amazon Kinesis data stream configuration. * */ - private final RealtimeLogConfigEndpointKinesisStreamConfig kinesisStreamConfig; + private RealtimeLogConfigEndpointKinesisStreamConfig kinesisStreamConfig; /** * @return The type of data stream where real-time log data is sent. The only valid value is `Kinesis`. * */ - private final String streamType; - - @CustomType.Constructor - private RealtimeLogConfigEndpoint( - @CustomType.Parameter("kinesisStreamConfig") RealtimeLogConfigEndpointKinesisStreamConfig kinesisStreamConfig, - @CustomType.Parameter("streamType") String streamType) { - this.kinesisStreamConfig = kinesisStreamConfig; - this.streamType = streamType; - } + private String streamType; + private RealtimeLogConfigEndpoint() {} /** * @return The Amazon Kinesis data stream configuration. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RealtimeLogConfigEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RealtimeLogConfigEndpointKinesisStreamConfig kinesisStreamConfig; private String streamType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RealtimeLogConfigEndpoint defaults) { Objects.requireNonNull(defaults); this.kinesisStreamConfig = defaults.kinesisStreamConfig; this.streamType = defaults.streamType; } + @CustomType.Setter public Builder kinesisStreamConfig(RealtimeLogConfigEndpointKinesisStreamConfig kinesisStreamConfig) { this.kinesisStreamConfig = Objects.requireNonNull(kinesisStreamConfig); return this; } + @CustomType.Setter public Builder streamType(String streamType) { this.streamType = Objects.requireNonNull(streamType); return this; - } public RealtimeLogConfigEndpoint build() { - return new RealtimeLogConfigEndpoint(kinesisStreamConfig, streamType); + } + public RealtimeLogConfigEndpoint build() { + final var o = new RealtimeLogConfigEndpoint(); + o.kinesisStreamConfig = kinesisStreamConfig; + o.streamType = streamType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/RealtimeLogConfigEndpointKinesisStreamConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/RealtimeLogConfigEndpointKinesisStreamConfig.java index 52b11937760..7ff7f221d69 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/RealtimeLogConfigEndpointKinesisStreamConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/RealtimeLogConfigEndpointKinesisStreamConfig.java @@ -14,21 +14,14 @@ public final class RealtimeLogConfigEndpointKinesisStreamConfig { * See the [AWS documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-iam-role) for more information. * */ - private final String roleArn; + private String roleArn; /** * @return The ARN of the Kinesis data stream. * */ - private final String streamArn; - - @CustomType.Constructor - private RealtimeLogConfigEndpointKinesisStreamConfig( - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("streamArn") String streamArn) { - this.roleArn = roleArn; - this.streamArn = streamArn; - } + private String streamArn; + private RealtimeLogConfigEndpointKinesisStreamConfig() {} /** * @return The ARN of an IAM role that CloudFront can use to send real-time log data to the Kinesis data stream. * See the [AWS documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html#understand-real-time-log-config-iam-role) for more information. @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(RealtimeLogConfigEndpointKinesisStreamConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String roleArn; private String streamArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RealtimeLogConfigEndpointKinesisStreamConfig defaults) { Objects.requireNonNull(defaults); this.roleArn = defaults.roleArn; this.streamArn = defaults.streamArn; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder streamArn(String streamArn) { this.streamArn = Objects.requireNonNull(streamArn); return this; - } public RealtimeLogConfigEndpointKinesisStreamConfig build() { - return new RealtimeLogConfigEndpointKinesisStreamConfig(roleArn, streamArn); + } + public RealtimeLogConfigEndpointKinesisStreamConfig build() { + final var o = new RealtimeLogConfigEndpointKinesisStreamConfig(); + o.roleArn = roleArn; + o.streamArn = streamArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfig.java index 64de8fadb4c..bc3060c4fbf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfig.java @@ -20,56 +20,39 @@ public final class ResponseHeadersPolicyCorsConfig { * @return A Boolean value that CloudFront uses as the value for the `Access-Control-Allow-Credentials` HTTP response header. * */ - private final Boolean accessControlAllowCredentials; + private Boolean accessControlAllowCredentials; /** * @return Object that contains an attribute `items` that contains a list of HTTP header names that CloudFront includes as values for the `Access-Control-Allow-Headers` HTTP response header. * */ - private final ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders accessControlAllowHeaders; + private ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders accessControlAllowHeaders; /** * @return Object that contains an attribute `items` that contains a list of HTTP methods that CloudFront includes as values for the `Access-Control-Allow-Methods` HTTP response header. Valid values: `GET` | `POST` | `OPTIONS` | `PUT` | `DELETE` | `HEAD` | `ALL` * */ - private final ResponseHeadersPolicyCorsConfigAccessControlAllowMethods accessControlAllowMethods; + private ResponseHeadersPolicyCorsConfigAccessControlAllowMethods accessControlAllowMethods; /** * @return Object that contains an attribute `items` that contains a list of origins that CloudFront can use as the value for the `Access-Control-Allow-Origin` HTTP response header. * */ - private final ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins accessControlAllowOrigins; + private ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins accessControlAllowOrigins; /** * @return Object that contains an attribute `items` that contains a list of HTTP headers that CloudFront includes as values for the `Access-Control-Expose-Headers` HTTP response header. * */ - private final @Nullable ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders accessControlExposeHeaders; + private @Nullable ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders accessControlExposeHeaders; /** * @return A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header. * */ - private final @Nullable Integer accessControlMaxAgeSec; + private @Nullable Integer accessControlMaxAgeSec; /** * @return A Boolean value that determines how CloudFront behaves for the HTTP response header. * */ - private final Boolean originOverride; - - @CustomType.Constructor - private ResponseHeadersPolicyCorsConfig( - @CustomType.Parameter("accessControlAllowCredentials") Boolean accessControlAllowCredentials, - @CustomType.Parameter("accessControlAllowHeaders") ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders accessControlAllowHeaders, - @CustomType.Parameter("accessControlAllowMethods") ResponseHeadersPolicyCorsConfigAccessControlAllowMethods accessControlAllowMethods, - @CustomType.Parameter("accessControlAllowOrigins") ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins accessControlAllowOrigins, - @CustomType.Parameter("accessControlExposeHeaders") @Nullable ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders accessControlExposeHeaders, - @CustomType.Parameter("accessControlMaxAgeSec") @Nullable Integer accessControlMaxAgeSec, - @CustomType.Parameter("originOverride") Boolean originOverride) { - this.accessControlAllowCredentials = accessControlAllowCredentials; - this.accessControlAllowHeaders = accessControlAllowHeaders; - this.accessControlAllowMethods = accessControlAllowMethods; - this.accessControlAllowOrigins = accessControlAllowOrigins; - this.accessControlExposeHeaders = accessControlExposeHeaders; - this.accessControlMaxAgeSec = accessControlMaxAgeSec; - this.originOverride = originOverride; - } + private Boolean originOverride; + private ResponseHeadersPolicyCorsConfig() {} /** * @return A Boolean value that CloudFront uses as the value for the `Access-Control-Allow-Credentials` HTTP response header. * @@ -127,7 +110,7 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicyCorsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean accessControlAllowCredentials; private ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders accessControlAllowHeaders; @@ -136,11 +119,7 @@ public static final class Builder { private @Nullable ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders accessControlExposeHeaders; private @Nullable Integer accessControlMaxAgeSec; private Boolean originOverride; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicyCorsConfig defaults) { Objects.requireNonNull(defaults); this.accessControlAllowCredentials = defaults.accessControlAllowCredentials; @@ -152,35 +131,51 @@ public Builder(ResponseHeadersPolicyCorsConfig defaults) { this.originOverride = defaults.originOverride; } + @CustomType.Setter public Builder accessControlAllowCredentials(Boolean accessControlAllowCredentials) { this.accessControlAllowCredentials = Objects.requireNonNull(accessControlAllowCredentials); return this; } + @CustomType.Setter public Builder accessControlAllowHeaders(ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders accessControlAllowHeaders) { this.accessControlAllowHeaders = Objects.requireNonNull(accessControlAllowHeaders); return this; } + @CustomType.Setter public Builder accessControlAllowMethods(ResponseHeadersPolicyCorsConfigAccessControlAllowMethods accessControlAllowMethods) { this.accessControlAllowMethods = Objects.requireNonNull(accessControlAllowMethods); return this; } + @CustomType.Setter public Builder accessControlAllowOrigins(ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins accessControlAllowOrigins) { this.accessControlAllowOrigins = Objects.requireNonNull(accessControlAllowOrigins); return this; } + @CustomType.Setter public Builder accessControlExposeHeaders(@Nullable ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders accessControlExposeHeaders) { this.accessControlExposeHeaders = accessControlExposeHeaders; return this; } + @CustomType.Setter public Builder accessControlMaxAgeSec(@Nullable Integer accessControlMaxAgeSec) { this.accessControlMaxAgeSec = accessControlMaxAgeSec; return this; } + @CustomType.Setter public Builder originOverride(Boolean originOverride) { this.originOverride = Objects.requireNonNull(originOverride); return this; - } public ResponseHeadersPolicyCorsConfig build() { - return new ResponseHeadersPolicyCorsConfig(accessControlAllowCredentials, accessControlAllowHeaders, accessControlAllowMethods, accessControlAllowOrigins, accessControlExposeHeaders, accessControlMaxAgeSec, originOverride); + } + public ResponseHeadersPolicyCorsConfig build() { + final var o = new ResponseHeadersPolicyCorsConfig(); + o.accessControlAllowCredentials = accessControlAllowCredentials; + o.accessControlAllowHeaders = accessControlAllowHeaders; + o.accessControlAllowMethods = accessControlAllowMethods; + o.accessControlAllowOrigins = accessControlAllowOrigins; + o.accessControlExposeHeaders = accessControlExposeHeaders; + o.accessControlMaxAgeSec = accessControlMaxAgeSec; + o.originOverride = originOverride; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders.java index 0780af5d1d1..d3a60a56bec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders.java @@ -11,13 +11,9 @@ @CustomType public final class ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders { - private final @Nullable List items; - - @CustomType.Constructor - private ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders() {} public List items() { return this.items == null ? List.of() : this.items; } @@ -29,27 +25,27 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(String... items) { return items(List.of(items)); - } public ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders build() { - return new ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders(items); + } + public ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders build() { + final var o = new ResponseHeadersPolicyCorsConfigAccessControlAllowHeaders(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlAllowMethods.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlAllowMethods.java index bd94d10b372..8fc6f90df9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlAllowMethods.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlAllowMethods.java @@ -11,13 +11,9 @@ @CustomType public final class ResponseHeadersPolicyCorsConfigAccessControlAllowMethods { - private final @Nullable List items; - - @CustomType.Constructor - private ResponseHeadersPolicyCorsConfigAccessControlAllowMethods(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private ResponseHeadersPolicyCorsConfigAccessControlAllowMethods() {} public List items() { return this.items == null ? List.of() : this.items; } @@ -29,27 +25,27 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicyCorsConfigAccessControlAllowMethods defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicyCorsConfigAccessControlAllowMethods defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(String... items) { return items(List.of(items)); - } public ResponseHeadersPolicyCorsConfigAccessControlAllowMethods build() { - return new ResponseHeadersPolicyCorsConfigAccessControlAllowMethods(items); + } + public ResponseHeadersPolicyCorsConfigAccessControlAllowMethods build() { + final var o = new ResponseHeadersPolicyCorsConfigAccessControlAllowMethods(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins.java index 3dd41992399..6cdfef6345f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins.java @@ -11,13 +11,9 @@ @CustomType public final class ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins { - private final @Nullable List items; - - @CustomType.Constructor - private ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins() {} public List items() { return this.items == null ? List.of() : this.items; } @@ -29,27 +25,27 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(String... items) { return items(List.of(items)); - } public ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins build() { - return new ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins(items); + } + public ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins build() { + final var o = new ResponseHeadersPolicyCorsConfigAccessControlAllowOrigins(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders.java index 1dca0d39346..12de2c40e9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders.java @@ -11,13 +11,9 @@ @CustomType public final class ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders { - private final @Nullable List items; - - @CustomType.Constructor - private ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders() {} public List items() { return this.items == null ? List.of() : this.items; } @@ -29,27 +25,27 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(String... items) { return items(List.of(items)); - } public ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders build() { - return new ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders(items); + } + public ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders build() { + final var o = new ResponseHeadersPolicyCorsConfigAccessControlExposeHeaders(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCustomHeadersConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCustomHeadersConfig.java index 140babb0f63..0cb3443431f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCustomHeadersConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCustomHeadersConfig.java @@ -11,13 +11,9 @@ @CustomType public final class ResponseHeadersPolicyCustomHeadersConfig { - private final @Nullable List items; - - @CustomType.Constructor - private ResponseHeadersPolicyCustomHeadersConfig(@CustomType.Parameter("items") @Nullable List items) { - this.items = items; - } + private @Nullable List items; + private ResponseHeadersPolicyCustomHeadersConfig() {} public List items() { return this.items == null ? List.of() : this.items; } @@ -29,27 +25,27 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicyCustomHeadersConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List items; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicyCustomHeadersConfig defaults) { Objects.requireNonNull(defaults); this.items = defaults.items; } + @CustomType.Setter public Builder items(@Nullable List items) { this.items = items; return this; } public Builder items(ResponseHeadersPolicyCustomHeadersConfigItem... items) { return items(List.of(items)); - } public ResponseHeadersPolicyCustomHeadersConfig build() { - return new ResponseHeadersPolicyCustomHeadersConfig(items); + } + public ResponseHeadersPolicyCustomHeadersConfig build() { + final var o = new ResponseHeadersPolicyCustomHeadersConfig(); + o.items = items; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCustomHeadersConfigItem.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCustomHeadersConfigItem.java index ae949706e6f..c810b30fa0d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCustomHeadersConfigItem.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyCustomHeadersConfigItem.java @@ -14,28 +14,19 @@ public final class ResponseHeadersPolicyCustomHeadersConfigItem { * @return The HTTP response header name. * */ - private final String header; + private String header; /** * @return A Boolean value that determines whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; + private Boolean override; /** * @return The value for the HTTP response header. * */ - private final String value; - - @CustomType.Constructor - private ResponseHeadersPolicyCustomHeadersConfigItem( - @CustomType.Parameter("header") String header, - @CustomType.Parameter("override") Boolean override, - @CustomType.Parameter("value") String value) { - this.header = header; - this.override = override; - this.value = value; - } + private String value; + private ResponseHeadersPolicyCustomHeadersConfigItem() {} /** * @return The HTTP response header name. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicyCustomHeadersConfigItem defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String header; private Boolean override; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicyCustomHeadersConfigItem defaults) { Objects.requireNonNull(defaults); this.header = defaults.header; @@ -82,19 +69,27 @@ public Builder(ResponseHeadersPolicyCustomHeadersConfigItem defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder header(String header) { this.header = Objects.requireNonNull(header); return this; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ResponseHeadersPolicyCustomHeadersConfigItem build() { - return new ResponseHeadersPolicyCustomHeadersConfigItem(header, override, value); + } + public ResponseHeadersPolicyCustomHeadersConfigItem build() { + final var o = new ResponseHeadersPolicyCustomHeadersConfigItem(); + o.header = header; + o.override = override; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfig.java index 9748485e157..528e7b79879 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfig.java @@ -20,49 +20,34 @@ public final class ResponseHeadersPolicySecurityHeadersConfig { * @return The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header. * */ - private final @Nullable ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy contentSecurityPolicy; + private @Nullable ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy contentSecurityPolicy; /** * @return Determines whether CloudFront includes the `X-Content-Type-Options` HTTP response header with its value set to `nosniff`. See Content Type Options for more information. * */ - private final @Nullable ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions contentTypeOptions; + private @Nullable ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions contentTypeOptions; /** * @return Determines whether CloudFront includes the `X-Frame-Options` HTTP response header and the header’s value. See Frame Options for more information. * */ - private final @Nullable ResponseHeadersPolicySecurityHeadersConfigFrameOptions frameOptions; + private @Nullable ResponseHeadersPolicySecurityHeadersConfigFrameOptions frameOptions; /** * @return The value of the `Referrer-Policy` HTTP response header. Valid Values: `no-referrer` | `no-referrer-when-downgrade` | `origin` | `origin-when-cross-origin` | `same-origin` | `strict-origin` | `strict-origin-when-cross-origin` | `unsafe-url` * */ - private final @Nullable ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy referrerPolicy; + private @Nullable ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy referrerPolicy; /** * @return Determines whether CloudFront includes the `Strict-Transport-Security` HTTP response header and the header’s value. See Strict Transport Security for more information. * */ - private final @Nullable ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity strictTransportSecurity; + private @Nullable ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity strictTransportSecurity; /** * @return Determine whether CloudFront includes the `X-XSS-Protection` HTTP response header and the header’s value. See XSS Protection for more information. * */ - private final @Nullable ResponseHeadersPolicySecurityHeadersConfigXssProtection xssProtection; - - @CustomType.Constructor - private ResponseHeadersPolicySecurityHeadersConfig( - @CustomType.Parameter("contentSecurityPolicy") @Nullable ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy contentSecurityPolicy, - @CustomType.Parameter("contentTypeOptions") @Nullable ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions contentTypeOptions, - @CustomType.Parameter("frameOptions") @Nullable ResponseHeadersPolicySecurityHeadersConfigFrameOptions frameOptions, - @CustomType.Parameter("referrerPolicy") @Nullable ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy referrerPolicy, - @CustomType.Parameter("strictTransportSecurity") @Nullable ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity strictTransportSecurity, - @CustomType.Parameter("xssProtection") @Nullable ResponseHeadersPolicySecurityHeadersConfigXssProtection xssProtection) { - this.contentSecurityPolicy = contentSecurityPolicy; - this.contentTypeOptions = contentTypeOptions; - this.frameOptions = frameOptions; - this.referrerPolicy = referrerPolicy; - this.strictTransportSecurity = strictTransportSecurity; - this.xssProtection = xssProtection; - } + private @Nullable ResponseHeadersPolicySecurityHeadersConfigXssProtection xssProtection; + private ResponseHeadersPolicySecurityHeadersConfig() {} /** * @return The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicySecurityHeadersConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy contentSecurityPolicy; private @Nullable ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions contentTypeOptions; @@ -121,11 +106,7 @@ public static final class Builder { private @Nullable ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy referrerPolicy; private @Nullable ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity strictTransportSecurity; private @Nullable ResponseHeadersPolicySecurityHeadersConfigXssProtection xssProtection; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicySecurityHeadersConfig defaults) { Objects.requireNonNull(defaults); this.contentSecurityPolicy = defaults.contentSecurityPolicy; @@ -136,31 +117,45 @@ public Builder(ResponseHeadersPolicySecurityHeadersConfig defaults) { this.xssProtection = defaults.xssProtection; } + @CustomType.Setter public Builder contentSecurityPolicy(@Nullable ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy contentSecurityPolicy) { this.contentSecurityPolicy = contentSecurityPolicy; return this; } + @CustomType.Setter public Builder contentTypeOptions(@Nullable ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions contentTypeOptions) { this.contentTypeOptions = contentTypeOptions; return this; } + @CustomType.Setter public Builder frameOptions(@Nullable ResponseHeadersPolicySecurityHeadersConfigFrameOptions frameOptions) { this.frameOptions = frameOptions; return this; } + @CustomType.Setter public Builder referrerPolicy(@Nullable ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy referrerPolicy) { this.referrerPolicy = referrerPolicy; return this; } + @CustomType.Setter public Builder strictTransportSecurity(@Nullable ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity strictTransportSecurity) { this.strictTransportSecurity = strictTransportSecurity; return this; } + @CustomType.Setter public Builder xssProtection(@Nullable ResponseHeadersPolicySecurityHeadersConfigXssProtection xssProtection) { this.xssProtection = xssProtection; return this; - } public ResponseHeadersPolicySecurityHeadersConfig build() { - return new ResponseHeadersPolicySecurityHeadersConfig(contentSecurityPolicy, contentTypeOptions, frameOptions, referrerPolicy, strictTransportSecurity, xssProtection); + } + public ResponseHeadersPolicySecurityHeadersConfig build() { + final var o = new ResponseHeadersPolicySecurityHeadersConfig(); + o.contentSecurityPolicy = contentSecurityPolicy; + o.contentTypeOptions = contentTypeOptions; + o.frameOptions = frameOptions; + o.referrerPolicy = referrerPolicy; + o.strictTransportSecurity = strictTransportSecurity; + o.xssProtection = xssProtection; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy.java index 13a8c1948e8..a6c166090b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy.java @@ -14,21 +14,14 @@ public final class ResponseHeadersPolicySecurityHeadersConfigContentSecurityPoli * @return The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header. * */ - private final String contentSecurityPolicy; + private String contentSecurityPolicy; /** * @return A Boolean value that determines whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; - - @CustomType.Constructor - private ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy( - @CustomType.Parameter("contentSecurityPolicy") String contentSecurityPolicy, - @CustomType.Parameter("override") Boolean override) { - this.contentSecurityPolicy = contentSecurityPolicy; - this.override = override; - } + private Boolean override; + private ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy() {} /** * @return The policy directives and their values that CloudFront includes as values for the `Content-Security-Policy` HTTP response header. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentSecurityPolicy; private Boolean override; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy defaults) { Objects.requireNonNull(defaults); this.contentSecurityPolicy = defaults.contentSecurityPolicy; this.override = defaults.override; } + @CustomType.Setter public Builder contentSecurityPolicy(String contentSecurityPolicy) { this.contentSecurityPolicy = Objects.requireNonNull(contentSecurityPolicy); return this; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; - } public ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy build() { - return new ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy(contentSecurityPolicy, override); + } + public ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy build() { + final var o = new ResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy(); + o.contentSecurityPolicy = contentSecurityPolicy; + o.override = override; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions.java index ac39715755f..bfb591a68c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions.java @@ -13,13 +13,9 @@ public final class ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions * @return A Boolean value that determines whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; - - @CustomType.Constructor - private ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions(@CustomType.Parameter("override") Boolean override) { - this.override = override; - } + private Boolean override; + private ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions() {} /** * @return A Boolean value that determines whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean override; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions defaults) { Objects.requireNonNull(defaults); this.override = defaults.override; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; - } public ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions build() { - return new ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions(override); + } + public ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions build() { + final var o = new ResponseHeadersPolicySecurityHeadersConfigContentTypeOptions(); + o.override = override; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigFrameOptions.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigFrameOptions.java index a4444d84b83..7d52d616f3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigFrameOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigFrameOptions.java @@ -14,21 +14,14 @@ public final class ResponseHeadersPolicySecurityHeadersConfigFrameOptions { * @return The value of the `X-Frame-Options` HTTP response header. Valid values: `DENY` | `SAMEORIGIN` * */ - private final String frameOption; + private String frameOption; /** * @return A Boolean value that determines whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; - - @CustomType.Constructor - private ResponseHeadersPolicySecurityHeadersConfigFrameOptions( - @CustomType.Parameter("frameOption") String frameOption, - @CustomType.Parameter("override") Boolean override) { - this.frameOption = frameOption; - this.override = override; - } + private Boolean override; + private ResponseHeadersPolicySecurityHeadersConfigFrameOptions() {} /** * @return The value of the `X-Frame-Options` HTTP response header. Valid values: `DENY` | `SAMEORIGIN` * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicySecurityHeadersConfigFrameOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String frameOption; private Boolean override; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicySecurityHeadersConfigFrameOptions defaults) { Objects.requireNonNull(defaults); this.frameOption = defaults.frameOption; this.override = defaults.override; } + @CustomType.Setter public Builder frameOption(String frameOption) { this.frameOption = Objects.requireNonNull(frameOption); return this; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; - } public ResponseHeadersPolicySecurityHeadersConfigFrameOptions build() { - return new ResponseHeadersPolicySecurityHeadersConfigFrameOptions(frameOption, override); + } + public ResponseHeadersPolicySecurityHeadersConfigFrameOptions build() { + final var o = new ResponseHeadersPolicySecurityHeadersConfigFrameOptions(); + o.frameOption = frameOption; + o.override = override; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy.java index 40738f0a3a4..6a9ce8c9a35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy.java @@ -14,21 +14,14 @@ public final class ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy { * @return A Boolean value that determines whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; + private Boolean override; /** * @return The value of the `Referrer-Policy` HTTP response header. Valid Values: `no-referrer` | `no-referrer-when-downgrade` | `origin` | `origin-when-cross-origin` | `same-origin` | `strict-origin` | `strict-origin-when-cross-origin` | `unsafe-url` * */ - private final String referrerPolicy; - - @CustomType.Constructor - private ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy( - @CustomType.Parameter("override") Boolean override, - @CustomType.Parameter("referrerPolicy") String referrerPolicy) { - this.override = override; - this.referrerPolicy = referrerPolicy; - } + private String referrerPolicy; + private ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy() {} /** * @return A Boolean value that determines whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean override; private String referrerPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy defaults) { Objects.requireNonNull(defaults); this.override = defaults.override; this.referrerPolicy = defaults.referrerPolicy; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; } + @CustomType.Setter public Builder referrerPolicy(String referrerPolicy) { this.referrerPolicy = Objects.requireNonNull(referrerPolicy); return this; - } public ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy build() { - return new ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy(override, referrerPolicy); + } + public ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy build() { + final var o = new ResponseHeadersPolicySecurityHeadersConfigReferrerPolicy(); + o.override = override; + o.referrerPolicy = referrerPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity.java index 84382eff4ef..4b1b6a460e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity.java @@ -16,35 +16,24 @@ public final class ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecu * @return A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header. * */ - private final Integer accessControlMaxAgeSec; + private Integer accessControlMaxAgeSec; /** * @return A Boolean value that determines whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header. * */ - private final @Nullable Boolean includeSubdomains; + private @Nullable Boolean includeSubdomains; /** * @return A Boolean value that determines whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; + private Boolean override; /** * @return A Boolean value that determines whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header. * */ - private final @Nullable Boolean preload; - - @CustomType.Constructor - private ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity( - @CustomType.Parameter("accessControlMaxAgeSec") Integer accessControlMaxAgeSec, - @CustomType.Parameter("includeSubdomains") @Nullable Boolean includeSubdomains, - @CustomType.Parameter("override") Boolean override, - @CustomType.Parameter("preload") @Nullable Boolean preload) { - this.accessControlMaxAgeSec = accessControlMaxAgeSec; - this.includeSubdomains = includeSubdomains; - this.override = override; - this.preload = preload; - } + private @Nullable Boolean preload; + private ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity() {} /** * @return A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer accessControlMaxAgeSec; private @Nullable Boolean includeSubdomains; private Boolean override; private @Nullable Boolean preload; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity defaults) { Objects.requireNonNull(defaults); this.accessControlMaxAgeSec = defaults.accessControlMaxAgeSec; @@ -100,23 +85,33 @@ public Builder(ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity this.preload = defaults.preload; } + @CustomType.Setter public Builder accessControlMaxAgeSec(Integer accessControlMaxAgeSec) { this.accessControlMaxAgeSec = Objects.requireNonNull(accessControlMaxAgeSec); return this; } + @CustomType.Setter public Builder includeSubdomains(@Nullable Boolean includeSubdomains) { this.includeSubdomains = includeSubdomains; return this; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; } + @CustomType.Setter public Builder preload(@Nullable Boolean preload) { this.preload = preload; return this; - } public ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity build() { - return new ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity(accessControlMaxAgeSec, includeSubdomains, override, preload); + } + public ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity build() { + final var o = new ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity(); + o.accessControlMaxAgeSec = accessControlMaxAgeSec; + o.includeSubdomains = includeSubdomains; + o.override = override; + o.preload = preload; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigXssProtection.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigXssProtection.java index ed0e800a062..477774edbea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigXssProtection.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicySecurityHeadersConfigXssProtection.java @@ -16,35 +16,24 @@ public final class ResponseHeadersPolicySecurityHeadersConfigXssProtection { * @return A Boolean value that determines whether CloudFront includes the `mode=block` directive in the `X-XSS-Protection` header. * */ - private final @Nullable Boolean modeBlock; + private @Nullable Boolean modeBlock; /** * @return A Boolean value that determines whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy. * */ - private final Boolean override; + private Boolean override; /** * @return A Boolean value that determines the value of the `X-XSS-Protection` HTTP response header. When this setting is `true`, the value of the `X-XSS-Protection` header is `1`. When this setting is `false`, the value of the `X-XSS-Protection` header is `0`. * */ - private final Boolean protection; + private Boolean protection; /** * @return A reporting URI, which CloudFront uses as the value of the report directive in the `X-XSS-Protection` header. You cannot specify a `report_uri` when `mode_block` is `true`. * */ - private final @Nullable String reportUri; - - @CustomType.Constructor - private ResponseHeadersPolicySecurityHeadersConfigXssProtection( - @CustomType.Parameter("modeBlock") @Nullable Boolean modeBlock, - @CustomType.Parameter("override") Boolean override, - @CustomType.Parameter("protection") Boolean protection, - @CustomType.Parameter("reportUri") @Nullable String reportUri) { - this.modeBlock = modeBlock; - this.override = override; - this.protection = protection; - this.reportUri = reportUri; - } + private @Nullable String reportUri; + private ResponseHeadersPolicySecurityHeadersConfigXssProtection() {} /** * @return A Boolean value that determines whether CloudFront includes the `mode=block` directive in the `X-XSS-Protection` header. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicySecurityHeadersConfigXssProtection defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean modeBlock; private Boolean override; private Boolean protection; private @Nullable String reportUri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicySecurityHeadersConfigXssProtection defaults) { Objects.requireNonNull(defaults); this.modeBlock = defaults.modeBlock; @@ -100,23 +85,33 @@ public Builder(ResponseHeadersPolicySecurityHeadersConfigXssProtection defaults) this.reportUri = defaults.reportUri; } + @CustomType.Setter public Builder modeBlock(@Nullable Boolean modeBlock) { this.modeBlock = modeBlock; return this; } + @CustomType.Setter public Builder override(Boolean override) { this.override = Objects.requireNonNull(override); return this; } + @CustomType.Setter public Builder protection(Boolean protection) { this.protection = Objects.requireNonNull(protection); return this; } + @CustomType.Setter public Builder reportUri(@Nullable String reportUri) { this.reportUri = reportUri; return this; - } public ResponseHeadersPolicySecurityHeadersConfigXssProtection build() { - return new ResponseHeadersPolicySecurityHeadersConfigXssProtection(modeBlock, override, protection, reportUri); + } + public ResponseHeadersPolicySecurityHeadersConfigXssProtection build() { + final var o = new ResponseHeadersPolicySecurityHeadersConfigXssProtection(); + o.modeBlock = modeBlock; + o.override = override; + o.protection = protection; + o.reportUri = reportUri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyServerTimingHeadersConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyServerTimingHeadersConfig.java index 8cb0eb66de3..896433c53f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyServerTimingHeadersConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudfront/outputs/ResponseHeadersPolicyServerTimingHeadersConfig.java @@ -14,21 +14,14 @@ public final class ResponseHeadersPolicyServerTimingHeadersConfig { * @return A Boolean that determines whether CloudFront adds the `Server-Timing` header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to. Valid range: Minimum value of 0.0. Maximum value of 100.0. * */ - private final Double samplingRate; - - @CustomType.Constructor - private ResponseHeadersPolicyServerTimingHeadersConfig( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("samplingRate") Double samplingRate) { - this.enabled = enabled; - this.samplingRate = samplingRate; - } + private Double samplingRate; + private ResponseHeadersPolicyServerTimingHeadersConfig() {} /** * @return A Boolean that determines whether CloudFront adds the `Server-Timing` header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(ResponseHeadersPolicyServerTimingHeadersConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private Double samplingRate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResponseHeadersPolicyServerTimingHeadersConfig defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.samplingRate = defaults.samplingRate; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder samplingRate(Double samplingRate) { this.samplingRate = Objects.requireNonNull(samplingRate); return this; - } public ResponseHeadersPolicyServerTimingHeadersConfig build() { - return new ResponseHeadersPolicyServerTimingHeadersConfig(enabled, samplingRate); + } + public ResponseHeadersPolicyServerTimingHeadersConfig build() { + final var o = new ResponseHeadersPolicyServerTimingHeadersConfig(); + o.enabled = enabled; + o.samplingRate = samplingRate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudhsmv2/outputs/ClusterClusterCertificate.java b/sdk/java/src/main/java/com/pulumi/aws/cloudhsmv2/outputs/ClusterClusterCertificate.java index 32d62e3428d..2f6c6878ecc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudhsmv2/outputs/ClusterClusterCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudhsmv2/outputs/ClusterClusterCertificate.java @@ -11,26 +11,13 @@ @CustomType public final class ClusterClusterCertificate { - private final @Nullable String awsHardwareCertificate; - private final @Nullable String clusterCertificate; - private final @Nullable String clusterCsr; - private final @Nullable String hsmCertificate; - private final @Nullable String manufacturerHardwareCertificate; - - @CustomType.Constructor - private ClusterClusterCertificate( - @CustomType.Parameter("awsHardwareCertificate") @Nullable String awsHardwareCertificate, - @CustomType.Parameter("clusterCertificate") @Nullable String clusterCertificate, - @CustomType.Parameter("clusterCsr") @Nullable String clusterCsr, - @CustomType.Parameter("hsmCertificate") @Nullable String hsmCertificate, - @CustomType.Parameter("manufacturerHardwareCertificate") @Nullable String manufacturerHardwareCertificate) { - this.awsHardwareCertificate = awsHardwareCertificate; - this.clusterCertificate = clusterCertificate; - this.clusterCsr = clusterCsr; - this.hsmCertificate = hsmCertificate; - this.manufacturerHardwareCertificate = manufacturerHardwareCertificate; - } + private @Nullable String awsHardwareCertificate; + private @Nullable String clusterCertificate; + private @Nullable String clusterCsr; + private @Nullable String hsmCertificate; + private @Nullable String manufacturerHardwareCertificate; + private ClusterClusterCertificate() {} public Optional awsHardwareCertificate() { return Optional.ofNullable(this.awsHardwareCertificate); } @@ -54,18 +41,14 @@ public static Builder builder() { public static Builder builder(ClusterClusterCertificate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String awsHardwareCertificate; private @Nullable String clusterCertificate; private @Nullable String clusterCsr; private @Nullable String hsmCertificate; private @Nullable String manufacturerHardwareCertificate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterClusterCertificate defaults) { Objects.requireNonNull(defaults); this.awsHardwareCertificate = defaults.awsHardwareCertificate; @@ -75,27 +58,39 @@ public Builder(ClusterClusterCertificate defaults) { this.manufacturerHardwareCertificate = defaults.manufacturerHardwareCertificate; } + @CustomType.Setter public Builder awsHardwareCertificate(@Nullable String awsHardwareCertificate) { this.awsHardwareCertificate = awsHardwareCertificate; return this; } + @CustomType.Setter public Builder clusterCertificate(@Nullable String clusterCertificate) { this.clusterCertificate = clusterCertificate; return this; } + @CustomType.Setter public Builder clusterCsr(@Nullable String clusterCsr) { this.clusterCsr = clusterCsr; return this; } + @CustomType.Setter public Builder hsmCertificate(@Nullable String hsmCertificate) { this.hsmCertificate = hsmCertificate; return this; } + @CustomType.Setter public Builder manufacturerHardwareCertificate(@Nullable String manufacturerHardwareCertificate) { this.manufacturerHardwareCertificate = manufacturerHardwareCertificate; return this; - } public ClusterClusterCertificate build() { - return new ClusterClusterCertificate(awsHardwareCertificate, clusterCertificate, clusterCsr, hsmCertificate, manufacturerHardwareCertificate); + } + public ClusterClusterCertificate build() { + final var o = new ClusterClusterCertificate(); + o.awsHardwareCertificate = awsHardwareCertificate; + o.clusterCertificate = clusterCertificate; + o.clusterCsr = clusterCsr; + o.hsmCertificate = hsmCertificate; + o.manufacturerHardwareCertificate = manufacturerHardwareCertificate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudhsmv2/outputs/GetClusterClusterCertificate.java b/sdk/java/src/main/java/com/pulumi/aws/cloudhsmv2/outputs/GetClusterClusterCertificate.java index 4761b4a725d..700f3bc91db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudhsmv2/outputs/GetClusterClusterCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudhsmv2/outputs/GetClusterClusterCertificate.java @@ -9,26 +9,13 @@ @CustomType public final class GetClusterClusterCertificate { - private final String awsHardwareCertificate; - private final String clusterCertificate; - private final String clusterCsr; - private final String hsmCertificate; - private final String manufacturerHardwareCertificate; - - @CustomType.Constructor - private GetClusterClusterCertificate( - @CustomType.Parameter("awsHardwareCertificate") String awsHardwareCertificate, - @CustomType.Parameter("clusterCertificate") String clusterCertificate, - @CustomType.Parameter("clusterCsr") String clusterCsr, - @CustomType.Parameter("hsmCertificate") String hsmCertificate, - @CustomType.Parameter("manufacturerHardwareCertificate") String manufacturerHardwareCertificate) { - this.awsHardwareCertificate = awsHardwareCertificate; - this.clusterCertificate = clusterCertificate; - this.clusterCsr = clusterCsr; - this.hsmCertificate = hsmCertificate; - this.manufacturerHardwareCertificate = manufacturerHardwareCertificate; - } + private String awsHardwareCertificate; + private String clusterCertificate; + private String clusterCsr; + private String hsmCertificate; + private String manufacturerHardwareCertificate; + private GetClusterClusterCertificate() {} public String awsHardwareCertificate() { return this.awsHardwareCertificate; } @@ -52,18 +39,14 @@ public static Builder builder() { public static Builder builder(GetClusterClusterCertificate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String awsHardwareCertificate; private String clusterCertificate; private String clusterCsr; private String hsmCertificate; private String manufacturerHardwareCertificate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterClusterCertificate defaults) { Objects.requireNonNull(defaults); this.awsHardwareCertificate = defaults.awsHardwareCertificate; @@ -73,27 +56,39 @@ public Builder(GetClusterClusterCertificate defaults) { this.manufacturerHardwareCertificate = defaults.manufacturerHardwareCertificate; } + @CustomType.Setter public Builder awsHardwareCertificate(String awsHardwareCertificate) { this.awsHardwareCertificate = Objects.requireNonNull(awsHardwareCertificate); return this; } + @CustomType.Setter public Builder clusterCertificate(String clusterCertificate) { this.clusterCertificate = Objects.requireNonNull(clusterCertificate); return this; } + @CustomType.Setter public Builder clusterCsr(String clusterCsr) { this.clusterCsr = Objects.requireNonNull(clusterCsr); return this; } + @CustomType.Setter public Builder hsmCertificate(String hsmCertificate) { this.hsmCertificate = Objects.requireNonNull(hsmCertificate); return this; } + @CustomType.Setter public Builder manufacturerHardwareCertificate(String manufacturerHardwareCertificate) { this.manufacturerHardwareCertificate = Objects.requireNonNull(manufacturerHardwareCertificate); return this; - } public GetClusterClusterCertificate build() { - return new GetClusterClusterCertificate(awsHardwareCertificate, clusterCertificate, clusterCsr, hsmCertificate, manufacturerHardwareCertificate); + } + public GetClusterClusterCertificate build() { + final var o = new GetClusterClusterCertificate(); + o.awsHardwareCertificate = awsHardwareCertificate; + o.clusterCertificate = clusterCertificate; + o.clusterCsr = clusterCsr; + o.hsmCertificate = hsmCertificate; + o.manufacturerHardwareCertificate = manufacturerHardwareCertificate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudhsmv2/outputs/GetClusterResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudhsmv2/outputs/GetClusterResult.java index 15744be7024..99f20c9c7c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudhsmv2/outputs/GetClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudhsmv2/outputs/GetClusterResult.java @@ -21,48 +21,31 @@ public final class GetClusterResult { * The number of available cluster certificates may vary depending on state of the cluster. * */ - private final List clusterCertificates; - private final String clusterId; - private final String clusterState; + private List clusterCertificates; + private String clusterId; + private String clusterState; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The ID of the security group associated with the CloudHSM cluster. * */ - private final String securityGroupId; + private String securityGroupId; /** * @return The IDs of subnets in which cluster operates. * */ - private final List subnetIds; + private List subnetIds; /** * @return The id of the VPC that the CloudHSM cluster resides in. * */ - private final String vpcId; - - @CustomType.Constructor - private GetClusterResult( - @CustomType.Parameter("clusterCertificates") List clusterCertificates, - @CustomType.Parameter("clusterId") String clusterId, - @CustomType.Parameter("clusterState") String clusterState, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("securityGroupId") String securityGroupId, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.clusterCertificates = clusterCertificates; - this.clusterId = clusterId; - this.clusterState = clusterState; - this.id = id; - this.securityGroupId = securityGroupId; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private GetClusterResult() {} /** * @return The list of cluster certificates. * * `cluster_certificates.0.cluster_certificate` - The cluster certificate issued (signed) by the issuing certificate authority (CA) of the cluster's owner. @@ -118,7 +101,7 @@ public static Builder builder() { public static Builder builder(GetClusterResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List clusterCertificates; private String clusterId; @@ -127,11 +110,7 @@ public static final class Builder { private String securityGroupId; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterResult defaults) { Objects.requireNonNull(defaults); this.clusterCertificates = defaults.clusterCertificates; @@ -143,6 +122,7 @@ public Builder(GetClusterResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder clusterCertificates(List clusterCertificates) { this.clusterCertificates = Objects.requireNonNull(clusterCertificates); return this; @@ -150,22 +130,27 @@ public Builder clusterCertificates(List clusterCer public Builder clusterCertificates(GetClusterClusterCertificate... clusterCertificates) { return clusterCertificates(List.of(clusterCertificates)); } + @CustomType.Setter public Builder clusterId(String clusterId) { this.clusterId = Objects.requireNonNull(clusterId); return this; } + @CustomType.Setter public Builder clusterState(String clusterState) { this.clusterState = Objects.requireNonNull(clusterState); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder securityGroupId(String securityGroupId) { this.securityGroupId = Objects.requireNonNull(securityGroupId); return this; } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -173,11 +158,21 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetClusterResult build() { - return new GetClusterResult(clusterCertificates, clusterId, clusterState, id, securityGroupId, subnetIds, vpcId); + } + public GetClusterResult build() { + final var o = new GetClusterResult(); + o.clusterCertificates = clusterCertificates; + o.clusterId = clusterId; + o.clusterState = clusterState; + o.id = id; + o.securityGroupId = securityGroupId; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudsearch/outputs/DomainEndpointOptions.java b/sdk/java/src/main/java/com/pulumi/aws/cloudsearch/outputs/DomainEndpointOptions.java index 52aab25e3a7..e913249d0a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudsearch/outputs/DomainEndpointOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudsearch/outputs/DomainEndpointOptions.java @@ -16,21 +16,14 @@ public final class DomainEndpointOptions { * @return Enables or disables the requirement that all requests to the domain arrive over HTTPS. * */ - private final @Nullable Boolean enforceHttps; + private @Nullable Boolean enforceHttps; /** * @return The minimum required TLS version. See the [AWS documentation](https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_DomainEndpointOptions.html) for valid values. * */ - private final @Nullable String tlsSecurityPolicy; - - @CustomType.Constructor - private DomainEndpointOptions( - @CustomType.Parameter("enforceHttps") @Nullable Boolean enforceHttps, - @CustomType.Parameter("tlsSecurityPolicy") @Nullable String tlsSecurityPolicy) { - this.enforceHttps = enforceHttps; - this.tlsSecurityPolicy = tlsSecurityPolicy; - } + private @Nullable String tlsSecurityPolicy; + private DomainEndpointOptions() {} /** * @return Enables or disables the requirement that all requests to the domain arrive over HTTPS. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(DomainEndpointOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enforceHttps; private @Nullable String tlsSecurityPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainEndpointOptions defaults) { Objects.requireNonNull(defaults); this.enforceHttps = defaults.enforceHttps; this.tlsSecurityPolicy = defaults.tlsSecurityPolicy; } + @CustomType.Setter public Builder enforceHttps(@Nullable Boolean enforceHttps) { this.enforceHttps = enforceHttps; return this; } + @CustomType.Setter public Builder tlsSecurityPolicy(@Nullable String tlsSecurityPolicy) { this.tlsSecurityPolicy = tlsSecurityPolicy; return this; - } public DomainEndpointOptions build() { - return new DomainEndpointOptions(enforceHttps, tlsSecurityPolicy); + } + public DomainEndpointOptions build() { + final var o = new DomainEndpointOptions(); + o.enforceHttps = enforceHttps; + o.tlsSecurityPolicy = tlsSecurityPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudsearch/outputs/DomainIndexField.java b/sdk/java/src/main/java/com/pulumi/aws/cloudsearch/outputs/DomainIndexField.java index 759e1ae52af..78303dc0491 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudsearch/outputs/DomainIndexField.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudsearch/outputs/DomainIndexField.java @@ -16,77 +16,54 @@ public final class DomainIndexField { * @return The analysis scheme you want to use for a `text` field. The analysis scheme specifies the language-specific text processing options that are used during indexing. * */ - private final @Nullable String analysisScheme; + private @Nullable String analysisScheme; /** * @return The default value for the field. This value is used when no value is specified for the field in the document data. * */ - private final @Nullable String defaultValue; + private @Nullable String defaultValue; /** * @return You can get facet information by enabling this. * */ - private final @Nullable Boolean facet; + private @Nullable Boolean facet; /** * @return You can highlight information. * */ - private final @Nullable Boolean highlight; + private @Nullable Boolean highlight; /** * @return A unique name for the field. Field names must begin with a letter and be at least 3 and no more than 64 characters long. The allowed characters are: `a`-`z` (lower-case letters), `0`-`9`, and `_` (underscore). The name `score` is reserved and cannot be used as a field name. * */ - private final String name; + private String name; /** * @return You can enable returning the value of all searchable fields. * */ - private final @Nullable Boolean return_; + private @Nullable Boolean return_; /** * @return You can set whether this index should be searchable or not. * */ - private final @Nullable Boolean search; + private @Nullable Boolean search; /** * @return You can enable the property to be sortable. * */ - private final @Nullable Boolean sort; + private @Nullable Boolean sort; /** * @return A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields. * */ - private final @Nullable String sourceFields; + private @Nullable String sourceFields; /** * @return The field type. Valid values: `date`, `date-array`, `double`, `double-array`, `int`, `int-array`, `literal`, `literal-array`, `text`, `text-array`. * */ - private final String type; - - @CustomType.Constructor - private DomainIndexField( - @CustomType.Parameter("analysisScheme") @Nullable String analysisScheme, - @CustomType.Parameter("defaultValue") @Nullable String defaultValue, - @CustomType.Parameter("facet") @Nullable Boolean facet, - @CustomType.Parameter("highlight") @Nullable Boolean highlight, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("return") @Nullable Boolean return_, - @CustomType.Parameter("search") @Nullable Boolean search, - @CustomType.Parameter("sort") @Nullable Boolean sort, - @CustomType.Parameter("sourceFields") @Nullable String sourceFields, - @CustomType.Parameter("type") String type) { - this.analysisScheme = analysisScheme; - this.defaultValue = defaultValue; - this.facet = facet; - this.highlight = highlight; - this.name = name; - this.return_ = return_; - this.search = search; - this.sort = sort; - this.sourceFields = sourceFields; - this.type = type; - } + private String type; + private DomainIndexField() {} /** * @return The analysis scheme you want to use for a `text` field. The analysis scheme specifies the language-specific text processing options that are used during indexing. * @@ -165,7 +142,7 @@ public static Builder builder() { public static Builder builder(DomainIndexField defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String analysisScheme; private @Nullable String defaultValue; @@ -177,11 +154,7 @@ public static final class Builder { private @Nullable Boolean sort; private @Nullable String sourceFields; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainIndexField defaults) { Objects.requireNonNull(defaults); this.analysisScheme = defaults.analysisScheme; @@ -196,47 +169,69 @@ public Builder(DomainIndexField defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder analysisScheme(@Nullable String analysisScheme) { this.analysisScheme = analysisScheme; return this; } + @CustomType.Setter public Builder defaultValue(@Nullable String defaultValue) { this.defaultValue = defaultValue; return this; } + @CustomType.Setter public Builder facet(@Nullable Boolean facet) { this.facet = facet; return this; } + @CustomType.Setter public Builder highlight(@Nullable Boolean highlight) { this.highlight = highlight; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter("return") public Builder return_(@Nullable Boolean return_) { this.return_ = return_; return this; } + @CustomType.Setter public Builder search(@Nullable Boolean search) { this.search = search; return this; } + @CustomType.Setter public Builder sort(@Nullable Boolean sort) { this.sort = sort; return this; } + @CustomType.Setter public Builder sourceFields(@Nullable String sourceFields) { this.sourceFields = sourceFields; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public DomainIndexField build() { - return new DomainIndexField(analysisScheme, defaultValue, facet, highlight, name, return_, search, sort, sourceFields, type); + } + public DomainIndexField build() { + final var o = new DomainIndexField(); + o.analysisScheme = analysisScheme; + o.defaultValue = defaultValue; + o.facet = facet; + o.highlight = highlight; + o.name = name; + o.return_ = return_; + o.search = search; + o.sort = sort; + o.sourceFields = sourceFields; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudsearch/outputs/DomainScalingParameters.java b/sdk/java/src/main/java/com/pulumi/aws/cloudsearch/outputs/DomainScalingParameters.java index 224ca7159b3..e7f2b92572f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudsearch/outputs/DomainScalingParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudsearch/outputs/DomainScalingParameters.java @@ -16,28 +16,19 @@ public final class DomainScalingParameters { * @return The instance type that you want to preconfigure for your domain. See the [AWS documentation](https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_ScalingParameters.html) for valid values. * */ - private final @Nullable String desiredInstanceType; + private @Nullable String desiredInstanceType; /** * @return The number of partitions you want to preconfigure for your domain. Only valid when you select `search.2xlarge` as the instance type. * */ - private final @Nullable Integer desiredPartitionCount; + private @Nullable Integer desiredPartitionCount; /** * @return The number of replicas you want to preconfigure for each index partition. * */ - private final @Nullable Integer desiredReplicationCount; - - @CustomType.Constructor - private DomainScalingParameters( - @CustomType.Parameter("desiredInstanceType") @Nullable String desiredInstanceType, - @CustomType.Parameter("desiredPartitionCount") @Nullable Integer desiredPartitionCount, - @CustomType.Parameter("desiredReplicationCount") @Nullable Integer desiredReplicationCount) { - this.desiredInstanceType = desiredInstanceType; - this.desiredPartitionCount = desiredPartitionCount; - this.desiredReplicationCount = desiredReplicationCount; - } + private @Nullable Integer desiredReplicationCount; + private DomainScalingParameters() {} /** * @return The instance type that you want to preconfigure for your domain. See the [AWS documentation](https://docs.aws.amazon.com/cloudsearch/latest/developerguide/API_ScalingParameters.html) for valid values. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(DomainScalingParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String desiredInstanceType; private @Nullable Integer desiredPartitionCount; private @Nullable Integer desiredReplicationCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainScalingParameters defaults) { Objects.requireNonNull(defaults); this.desiredInstanceType = defaults.desiredInstanceType; @@ -84,19 +71,27 @@ public Builder(DomainScalingParameters defaults) { this.desiredReplicationCount = defaults.desiredReplicationCount; } + @CustomType.Setter public Builder desiredInstanceType(@Nullable String desiredInstanceType) { this.desiredInstanceType = desiredInstanceType; return this; } + @CustomType.Setter public Builder desiredPartitionCount(@Nullable Integer desiredPartitionCount) { this.desiredPartitionCount = desiredPartitionCount; return this; } + @CustomType.Setter public Builder desiredReplicationCount(@Nullable Integer desiredReplicationCount) { this.desiredReplicationCount = desiredReplicationCount; return this; - } public DomainScalingParameters build() { - return new DomainScalingParameters(desiredInstanceType, desiredPartitionCount, desiredReplicationCount); + } + public DomainScalingParameters build() { + final var o = new DomainScalingParameters(); + o.desiredInstanceType = desiredInstanceType; + o.desiredPartitionCount = desiredPartitionCount; + o.desiredReplicationCount = desiredReplicationCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/EventDataStoreAdvancedEventSelector.java b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/EventDataStoreAdvancedEventSelector.java index 7ac195af428..9a98eeb3031 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/EventDataStoreAdvancedEventSelector.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/EventDataStoreAdvancedEventSelector.java @@ -17,21 +17,14 @@ public final class EventDataStoreAdvancedEventSelector { * @return Specifies the selector statements in an advanced event selector. Fields documented below. * */ - private final @Nullable List fieldSelectors; + private @Nullable List fieldSelectors; /** * @return Specifies the name of the advanced event selector. * */ - private final @Nullable String name; - - @CustomType.Constructor - private EventDataStoreAdvancedEventSelector( - @CustomType.Parameter("fieldSelectors") @Nullable List fieldSelectors, - @CustomType.Parameter("name") @Nullable String name) { - this.fieldSelectors = fieldSelectors; - this.name = name; - } + private @Nullable String name; + private EventDataStoreAdvancedEventSelector() {} /** * @return Specifies the selector statements in an advanced event selector. Fields documented below. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(EventDataStoreAdvancedEventSelector defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List fieldSelectors; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventDataStoreAdvancedEventSelector defaults) { Objects.requireNonNull(defaults); this.fieldSelectors = defaults.fieldSelectors; this.name = defaults.name; } + @CustomType.Setter public Builder fieldSelectors(@Nullable List fieldSelectors) { this.fieldSelectors = fieldSelectors; return this; @@ -76,11 +66,16 @@ public Builder fieldSelectors(@Nullable List endsWiths; + private @Nullable List endsWiths; /** * @return A list of values that includes events that match the exact value of the event record field specified as the value of `field`. This is the only valid operator that you can use with the `readOnly`, `eventCategory`, and `resources.type` fields. * */ - private final @Nullable List equals; + private @Nullable List equals; /** * @return Specifies a field in an event record on which to filter events to be logged. You can specify only the following values: `readOnly`, `eventSource`, `eventName`, `eventCategory`, `resources.type`, `resources.ARN`. * */ - private final @Nullable String field; + private @Nullable String field; /** * @return A list of values that excludes events that match the last few characters of the event record field specified as the value of `field`. * */ - private final @Nullable List notEndsWiths; + private @Nullable List notEndsWiths; /** * @return A list of values that excludes events that match the exact value of the event record field specified as the value of `field`. * */ - private final @Nullable List notEquals; + private @Nullable List notEquals; /** * @return A list of values that excludes events that match the first few characters of the event record field specified as the value of `field`. * */ - private final @Nullable List notStartsWiths; + private @Nullable List notStartsWiths; /** * @return A list of values that includes events that match the first few characters of the event record field specified as the value of `field`. * */ - private final @Nullable List startsWiths; - - @CustomType.Constructor - private EventDataStoreAdvancedEventSelectorFieldSelector( - @CustomType.Parameter("endsWiths") @Nullable List endsWiths, - @CustomType.Parameter("equals") @Nullable List equals, - @CustomType.Parameter("field") @Nullable String field, - @CustomType.Parameter("notEndsWiths") @Nullable List notEndsWiths, - @CustomType.Parameter("notEquals") @Nullable List notEquals, - @CustomType.Parameter("notStartsWiths") @Nullable List notStartsWiths, - @CustomType.Parameter("startsWiths") @Nullable List startsWiths) { - this.endsWiths = endsWiths; - this.equals = equals; - this.field = field; - this.notEndsWiths = notEndsWiths; - this.notEquals = notEquals; - this.notStartsWiths = notStartsWiths; - this.startsWiths = startsWiths; - } + private @Nullable List startsWiths; + private EventDataStoreAdvancedEventSelectorFieldSelector() {} /** * @return A list of values that includes events that match the last few characters of the event record field specified as the value of `field`. * @@ -123,7 +106,7 @@ public static Builder builder() { public static Builder builder(EventDataStoreAdvancedEventSelectorFieldSelector defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List endsWiths; private @Nullable List equals; @@ -132,11 +115,7 @@ public static final class Builder { private @Nullable List notEquals; private @Nullable List notStartsWiths; private @Nullable List startsWiths; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventDataStoreAdvancedEventSelectorFieldSelector defaults) { Objects.requireNonNull(defaults); this.endsWiths = defaults.endsWiths; @@ -148,6 +127,7 @@ public Builder(EventDataStoreAdvancedEventSelectorFieldSelector defaults) { this.startsWiths = defaults.startsWiths; } + @CustomType.Setter public Builder endsWiths(@Nullable List endsWiths) { this.endsWiths = endsWiths; return this; @@ -155,6 +135,7 @@ public Builder endsWiths(@Nullable List endsWiths) { public Builder endsWiths(String... endsWiths) { return endsWiths(List.of(endsWiths)); } + @CustomType.Setter("equals") public Builder equals_(@Nullable List equals) { this.equals = equals; return this; @@ -162,10 +143,12 @@ public Builder equals_(@Nullable List equals) { public Builder equals_(String... equals) { return equals_(List.of(equals)); } + @CustomType.Setter public Builder field(@Nullable String field) { this.field = field; return this; } + @CustomType.Setter public Builder notEndsWiths(@Nullable List notEndsWiths) { this.notEndsWiths = notEndsWiths; return this; @@ -173,6 +156,7 @@ public Builder notEndsWiths(@Nullable List notEndsWiths) { public Builder notEndsWiths(String... notEndsWiths) { return notEndsWiths(List.of(notEndsWiths)); } + @CustomType.Setter public Builder notEquals(@Nullable List notEquals) { this.notEquals = notEquals; return this; @@ -180,6 +164,7 @@ public Builder notEquals(@Nullable List notEquals) { public Builder notEquals(String... notEquals) { return notEquals(List.of(notEquals)); } + @CustomType.Setter public Builder notStartsWiths(@Nullable List notStartsWiths) { this.notStartsWiths = notStartsWiths; return this; @@ -187,14 +172,24 @@ public Builder notStartsWiths(@Nullable List notStartsWiths) { public Builder notStartsWiths(String... notStartsWiths) { return notStartsWiths(List.of(notStartsWiths)); } + @CustomType.Setter public Builder startsWiths(@Nullable List startsWiths) { this.startsWiths = startsWiths; return this; } public Builder startsWiths(String... startsWiths) { return startsWiths(List.of(startsWiths)); - } public EventDataStoreAdvancedEventSelectorFieldSelector build() { - return new EventDataStoreAdvancedEventSelectorFieldSelector(endsWiths, equals, field, notEndsWiths, notEquals, notStartsWiths, startsWiths); + } + public EventDataStoreAdvancedEventSelectorFieldSelector build() { + final var o = new EventDataStoreAdvancedEventSelectorFieldSelector(); + o.endsWiths = endsWiths; + o.equals = equals; + o.field = field; + o.notEndsWiths = notEndsWiths; + o.notEquals = notEquals; + o.notStartsWiths = notStartsWiths; + o.startsWiths = startsWiths; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/GetFunctionResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/GetFunctionResult.java index 974c6754cf4..e016e24a0be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/GetFunctionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/GetFunctionResult.java @@ -13,69 +13,46 @@ public final class GetFunctionResult { * @return Amazon Resource Name (ARN) identifying your CloudFront Function. * */ - private final String arn; + private String arn; /** * @return Source code of the function * */ - private final String code; + private String code; /** * @return Comment. * */ - private final String comment; + private String comment; /** * @return ETag hash of the function * */ - private final String etag; + private String etag; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return When this resource was last modified. * */ - private final String lastModifiedTime; - private final String name; + private String lastModifiedTime; + private String name; /** * @return Identifier of the function's runtime. * */ - private final String runtime; - private final String stage; + private String runtime; + private String stage; /** * @return Status of the function. Can be `UNPUBLISHED`, `UNASSOCIATED` or `ASSOCIATED`. * */ - private final String status; - - @CustomType.Constructor - private GetFunctionResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("code") String code, - @CustomType.Parameter("comment") String comment, - @CustomType.Parameter("etag") String etag, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastModifiedTime") String lastModifiedTime, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("runtime") String runtime, - @CustomType.Parameter("stage") String stage, - @CustomType.Parameter("status") String status) { - this.arn = arn; - this.code = code; - this.comment = comment; - this.etag = etag; - this.id = id; - this.lastModifiedTime = lastModifiedTime; - this.name = name; - this.runtime = runtime; - this.stage = stage; - this.status = status; - } + private String status; + private GetFunctionResult() {} /** * @return Amazon Resource Name (ARN) identifying your CloudFront Function. * @@ -146,7 +123,7 @@ public static Builder builder() { public static Builder builder(GetFunctionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String code; @@ -158,11 +135,7 @@ public static final class Builder { private String runtime; private String stage; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFunctionResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -177,47 +150,69 @@ public Builder(GetFunctionResult defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder code(String code) { this.code = Objects.requireNonNull(code); return this; } + @CustomType.Setter public Builder comment(String comment) { this.comment = Objects.requireNonNull(comment); return this; } + @CustomType.Setter public Builder etag(String etag) { this.etag = Objects.requireNonNull(etag); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastModifiedTime(String lastModifiedTime) { this.lastModifiedTime = Objects.requireNonNull(lastModifiedTime); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder runtime(String runtime) { this.runtime = Objects.requireNonNull(runtime); return this; } + @CustomType.Setter public Builder stage(String stage) { this.stage = Objects.requireNonNull(stage); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public GetFunctionResult build() { - return new GetFunctionResult(arn, code, comment, etag, id, lastModifiedTime, name, runtime, stage, status); + } + public GetFunctionResult build() { + final var o = new GetFunctionResult(); + o.arn = arn; + o.code = code; + o.comment = comment; + o.etag = etag; + o.id = id; + o.lastModifiedTime = lastModifiedTime; + o.name = name; + o.runtime = runtime; + o.stage = stage; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/GetServiceAccountResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/GetServiceAccountResult.java index 70ca0287c28..570b4a1e116 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/GetServiceAccountResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/GetServiceAccountResult.java @@ -15,24 +15,15 @@ public final class GetServiceAccountResult { * @return The ARN of the AWS CloudTrail service account in the selected region. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String region; - - @CustomType.Constructor - private GetServiceAccountResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("region") @Nullable String region) { - this.arn = arn; - this.id = id; - this.region = region; - } + private String id; + private @Nullable String region; + private GetServiceAccountResult() {} /** * @return The ARN of the AWS CloudTrail service account in the selected region. * @@ -58,16 +49,12 @@ public static Builder builder() { public static Builder builder(GetServiceAccountResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private @Nullable String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceAccountResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -75,19 +62,27 @@ public Builder(GetServiceAccountResult defaults) { this.region = defaults.region; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; - } public GetServiceAccountResult build() { - return new GetServiceAccountResult(arn, id, region); + } + public GetServiceAccountResult build() { + final var o = new GetServiceAccountResult(); + o.arn = arn; + o.id = id; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailAdvancedEventSelector.java b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailAdvancedEventSelector.java index 067cedfc61d..2193f79afc4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailAdvancedEventSelector.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailAdvancedEventSelector.java @@ -17,21 +17,14 @@ public final class TrailAdvancedEventSelector { * @return Specifies the selector statements in an advanced event selector. Fields documented below. * */ - private final List fieldSelectors; + private List fieldSelectors; /** * @return Specifies the name of the advanced event selector. * */ - private final @Nullable String name; - - @CustomType.Constructor - private TrailAdvancedEventSelector( - @CustomType.Parameter("fieldSelectors") List fieldSelectors, - @CustomType.Parameter("name") @Nullable String name) { - this.fieldSelectors = fieldSelectors; - this.name = name; - } + private @Nullable String name; + private TrailAdvancedEventSelector() {} /** * @return Specifies the selector statements in an advanced event selector. Fields documented below. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(TrailAdvancedEventSelector defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List fieldSelectors; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TrailAdvancedEventSelector defaults) { Objects.requireNonNull(defaults); this.fieldSelectors = defaults.fieldSelectors; this.name = defaults.name; } + @CustomType.Setter public Builder fieldSelectors(List fieldSelectors) { this.fieldSelectors = Objects.requireNonNull(fieldSelectors); return this; @@ -76,11 +66,16 @@ public Builder fieldSelectors(List fiel public Builder fieldSelectors(TrailAdvancedEventSelectorFieldSelector... fieldSelectors) { return fieldSelectors(List.of(fieldSelectors)); } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public TrailAdvancedEventSelector build() { - return new TrailAdvancedEventSelector(fieldSelectors, name); + } + public TrailAdvancedEventSelector build() { + final var o = new TrailAdvancedEventSelector(); + o.fieldSelectors = fieldSelectors; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailAdvancedEventSelectorFieldSelector.java b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailAdvancedEventSelectorFieldSelector.java index fd42013c3a4..6993afe03a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailAdvancedEventSelectorFieldSelector.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailAdvancedEventSelectorFieldSelector.java @@ -15,56 +15,39 @@ public final class TrailAdvancedEventSelectorFieldSelector { * @return A list of values that includes events that match the last few characters of the event record field specified as the value of `field`. * */ - private final @Nullable List endsWiths; + private @Nullable List endsWiths; /** * @return A list of values that includes events that match the exact value of the event record field specified as the value of `field`. This is the only valid operator that you can use with the `readOnly`, `eventCategory`, and `resources.type` fields. * */ - private final @Nullable List equals; + private @Nullable List equals; /** * @return Specifies a field in an event record on which to filter events to be logged. You can specify only the following values: `readOnly`, `eventSource`, `eventName`, `eventCategory`, `resources.type`, `resources.ARN`. * */ - private final String field; + private String field; /** * @return A list of values that excludes events that match the last few characters of the event record field specified as the value of `field`. * */ - private final @Nullable List notEndsWiths; + private @Nullable List notEndsWiths; /** * @return A list of values that excludes events that match the exact value of the event record field specified as the value of `field`. * */ - private final @Nullable List notEquals; + private @Nullable List notEquals; /** * @return A list of values that excludes events that match the first few characters of the event record field specified as the value of `field`. * */ - private final @Nullable List notStartsWiths; + private @Nullable List notStartsWiths; /** * @return A list of values that includes events that match the first few characters of the event record field specified as the value of `field`. * */ - private final @Nullable List startsWiths; - - @CustomType.Constructor - private TrailAdvancedEventSelectorFieldSelector( - @CustomType.Parameter("endsWiths") @Nullable List endsWiths, - @CustomType.Parameter("equals") @Nullable List equals, - @CustomType.Parameter("field") String field, - @CustomType.Parameter("notEndsWiths") @Nullable List notEndsWiths, - @CustomType.Parameter("notEquals") @Nullable List notEquals, - @CustomType.Parameter("notStartsWiths") @Nullable List notStartsWiths, - @CustomType.Parameter("startsWiths") @Nullable List startsWiths) { - this.endsWiths = endsWiths; - this.equals = equals; - this.field = field; - this.notEndsWiths = notEndsWiths; - this.notEquals = notEquals; - this.notStartsWiths = notStartsWiths; - this.startsWiths = startsWiths; - } + private @Nullable List startsWiths; + private TrailAdvancedEventSelectorFieldSelector() {} /** * @return A list of values that includes events that match the last few characters of the event record field specified as the value of `field`. * @@ -122,7 +105,7 @@ public static Builder builder() { public static Builder builder(TrailAdvancedEventSelectorFieldSelector defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List endsWiths; private @Nullable List equals; @@ -131,11 +114,7 @@ public static final class Builder { private @Nullable List notEquals; private @Nullable List notStartsWiths; private @Nullable List startsWiths; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TrailAdvancedEventSelectorFieldSelector defaults) { Objects.requireNonNull(defaults); this.endsWiths = defaults.endsWiths; @@ -147,6 +126,7 @@ public Builder(TrailAdvancedEventSelectorFieldSelector defaults) { this.startsWiths = defaults.startsWiths; } + @CustomType.Setter public Builder endsWiths(@Nullable List endsWiths) { this.endsWiths = endsWiths; return this; @@ -154,6 +134,7 @@ public Builder endsWiths(@Nullable List endsWiths) { public Builder endsWiths(String... endsWiths) { return endsWiths(List.of(endsWiths)); } + @CustomType.Setter("equals") public Builder equals_(@Nullable List equals) { this.equals = equals; return this; @@ -161,10 +142,12 @@ public Builder equals_(@Nullable List equals) { public Builder equals_(String... equals) { return equals_(List.of(equals)); } + @CustomType.Setter public Builder field(String field) { this.field = Objects.requireNonNull(field); return this; } + @CustomType.Setter public Builder notEndsWiths(@Nullable List notEndsWiths) { this.notEndsWiths = notEndsWiths; return this; @@ -172,6 +155,7 @@ public Builder notEndsWiths(@Nullable List notEndsWiths) { public Builder notEndsWiths(String... notEndsWiths) { return notEndsWiths(List.of(notEndsWiths)); } + @CustomType.Setter public Builder notEquals(@Nullable List notEquals) { this.notEquals = notEquals; return this; @@ -179,6 +163,7 @@ public Builder notEquals(@Nullable List notEquals) { public Builder notEquals(String... notEquals) { return notEquals(List.of(notEquals)); } + @CustomType.Setter public Builder notStartsWiths(@Nullable List notStartsWiths) { this.notStartsWiths = notStartsWiths; return this; @@ -186,14 +171,24 @@ public Builder notStartsWiths(@Nullable List notStartsWiths) { public Builder notStartsWiths(String... notStartsWiths) { return notStartsWiths(List.of(notStartsWiths)); } + @CustomType.Setter public Builder startsWiths(@Nullable List startsWiths) { this.startsWiths = startsWiths; return this; } public Builder startsWiths(String... startsWiths) { return startsWiths(List.of(startsWiths)); - } public TrailAdvancedEventSelectorFieldSelector build() { - return new TrailAdvancedEventSelectorFieldSelector(endsWiths, equals, field, notEndsWiths, notEquals, notStartsWiths, startsWiths); + } + public TrailAdvancedEventSelectorFieldSelector build() { + final var o = new TrailAdvancedEventSelectorFieldSelector(); + o.endsWiths = endsWiths; + o.equals = equals; + o.field = field; + o.notEndsWiths = notEndsWiths; + o.notEquals = notEquals; + o.notStartsWiths = notStartsWiths; + o.startsWiths = startsWiths; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailEventSelector.java b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailEventSelector.java index 06d8dcff71e..5e8ce1c78fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailEventSelector.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailEventSelector.java @@ -18,35 +18,24 @@ public final class TrailEventSelector { * @return Configuration block for data events. See details below. * */ - private final @Nullable List dataResources; + private @Nullable List dataResources; /** * @return A set of event sources to exclude. Valid values include: `kms.amazonaws.com` and `rdsdata.amazonaws.com`. `include_management_events` must be set to`true` to allow this. * */ - private final @Nullable List excludeManagementEventSources; + private @Nullable List excludeManagementEventSources; /** * @return Whether to include management events for your trail. Defaults to `true`. * */ - private final @Nullable Boolean includeManagementEvents; + private @Nullable Boolean includeManagementEvents; /** * @return Type of events to log. Valid values are `ReadOnly`, `WriteOnly`, `All`. Default value is `All`. * */ - private final @Nullable String readWriteType; - - @CustomType.Constructor - private TrailEventSelector( - @CustomType.Parameter("dataResources") @Nullable List dataResources, - @CustomType.Parameter("excludeManagementEventSources") @Nullable List excludeManagementEventSources, - @CustomType.Parameter("includeManagementEvents") @Nullable Boolean includeManagementEvents, - @CustomType.Parameter("readWriteType") @Nullable String readWriteType) { - this.dataResources = dataResources; - this.excludeManagementEventSources = excludeManagementEventSources; - this.includeManagementEvents = includeManagementEvents; - this.readWriteType = readWriteType; - } + private @Nullable String readWriteType; + private TrailEventSelector() {} /** * @return Configuration block for data events. See details below. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(TrailEventSelector defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List dataResources; private @Nullable List excludeManagementEventSources; private @Nullable Boolean includeManagementEvents; private @Nullable String readWriteType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TrailEventSelector defaults) { Objects.requireNonNull(defaults); this.dataResources = defaults.dataResources; @@ -102,6 +87,7 @@ public Builder(TrailEventSelector defaults) { this.readWriteType = defaults.readWriteType; } + @CustomType.Setter public Builder dataResources(@Nullable List dataResources) { this.dataResources = dataResources; return this; @@ -109,6 +95,7 @@ public Builder dataResources(@Nullable List data public Builder dataResources(TrailEventSelectorDataResource... dataResources) { return dataResources(List.of(dataResources)); } + @CustomType.Setter public Builder excludeManagementEventSources(@Nullable List excludeManagementEventSources) { this.excludeManagementEventSources = excludeManagementEventSources; return this; @@ -116,15 +103,23 @@ public Builder excludeManagementEventSources(@Nullable List excludeManag public Builder excludeManagementEventSources(String... excludeManagementEventSources) { return excludeManagementEventSources(List.of(excludeManagementEventSources)); } + @CustomType.Setter public Builder includeManagementEvents(@Nullable Boolean includeManagementEvents) { this.includeManagementEvents = includeManagementEvents; return this; } + @CustomType.Setter public Builder readWriteType(@Nullable String readWriteType) { this.readWriteType = readWriteType; return this; - } public TrailEventSelector build() { - return new TrailEventSelector(dataResources, excludeManagementEventSources, includeManagementEvents, readWriteType); + } + public TrailEventSelector build() { + final var o = new TrailEventSelector(); + o.dataResources = dataResources; + o.excludeManagementEventSources = excludeManagementEventSources; + o.includeManagementEvents = includeManagementEvents; + o.readWriteType = readWriteType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailEventSelectorDataResource.java b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailEventSelectorDataResource.java index a33d84f4fc5..3480b33ceeb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailEventSelectorDataResource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailEventSelectorDataResource.java @@ -14,21 +14,14 @@ public final class TrailEventSelectorDataResource { * @return Resource type in which you want to log data events. You can specify only the following value: "AWS::S3::Object", "AWS::Lambda::Function" and "AWS::DynamoDB::Table". * */ - private final String type; + private String type; /** * @return List of ARN strings or partial ARN strings to specify selectors for data audit events over data resources. ARN list is specific to single-valued `type`. For example, `arn:aws:s3:::<bucket name>/` for all objects in a bucket, `arn:aws:s3:::<bucket name>/key` for specific objects, `arn:aws:lambda` for all lambda events within an account, `arn:aws:lambda:<region>:<account number>:function:<function name>` for a specific Lambda function, `arn:aws:dynamodb` for all DDB events for all tables within an account, or `arn:aws:dynamodb:<region>:<account number>:table/<table name>` for a specific DynamoDB table. * */ - private final List values; - - @CustomType.Constructor - private TrailEventSelectorDataResource( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("values") List values) { - this.type = type; - this.values = values; - } + private List values; + private TrailEventSelectorDataResource() {} /** * @return Resource type in which you want to log data events. You can specify only the following value: "AWS::S3::Object", "AWS::Lambda::Function" and "AWS::DynamoDB::Table". * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(TrailEventSelectorDataResource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TrailEventSelectorDataResource defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.values = defaults.values; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public TrailEventSelectorDataResource build() { - return new TrailEventSelectorDataResource(type, values); + } + public TrailEventSelectorDataResource build() { + final var o = new TrailEventSelectorDataResource(); + o.type = type; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailInsightSelector.java b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailInsightSelector.java index fd0fed65e03..22cb117f5d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailInsightSelector.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudtrail/outputs/TrailInsightSelector.java @@ -13,13 +13,9 @@ public final class TrailInsightSelector { * @return Type of insights to log on a trail. Valid values are: `ApiCallRateInsight` and `ApiErrorRateInsight`. * */ - private final String insightType; - - @CustomType.Constructor - private TrailInsightSelector(@CustomType.Parameter("insightType") String insightType) { - this.insightType = insightType; - } + private String insightType; + private TrailInsightSelector() {} /** * @return Type of insights to log on a trail. Valid values are: `ApiCallRateInsight` and `ApiErrorRateInsight`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(TrailInsightSelector defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String insightType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TrailInsightSelector defaults) { Objects.requireNonNull(defaults); this.insightType = defaults.insightType; } + @CustomType.Setter public Builder insightType(String insightType) { this.insightType = Objects.requireNonNull(insightType); return this; - } public TrailInsightSelector build() { - return new TrailInsightSelector(insightType); + } + public TrailInsightSelector build() { + final var o = new TrailInsightSelector(); + o.insightType = insightType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParameters.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParameters.java index 630a77a8482..d7c90b5a02d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParameters.java @@ -18,35 +18,24 @@ public final class EventConnectionAuthParameters { * @return Parameters used for API_KEY authorization. An API key to include in the header for each authentication request. A maximum of 1 are allowed. Conflicts with `basic` and `oauth`. Documented below. * */ - private final @Nullable EventConnectionAuthParametersApiKey apiKey; + private @Nullable EventConnectionAuthParametersApiKey apiKey; /** * @return Parameters used for BASIC authorization. A maximum of 1 are allowed. Conflicts with `api_key` and `oauth`. Documented below. * */ - private final @Nullable EventConnectionAuthParametersBasic basic; + private @Nullable EventConnectionAuthParametersBasic basic; /** * @return Invocation Http Parameters are additional credentials used to sign each Invocation of the ApiDestination created from this Connection. If the ApiDestination Rule Target has additional HttpParameters, the values will be merged together, with the Connection Invocation Http Parameters taking precedence. Secret values are stored and managed by AWS Secrets Manager. A maximum of 1 are allowed. Documented below. * */ - private final @Nullable EventConnectionAuthParametersInvocationHttpParameters invocationHttpParameters; + private @Nullable EventConnectionAuthParametersInvocationHttpParameters invocationHttpParameters; /** * @return Parameters used for OAUTH_CLIENT_CREDENTIALS authorization. A maximum of 1 are allowed. Conflicts with `basic` and `api_key`. Documented below. * */ - private final @Nullable EventConnectionAuthParametersOauth oauth; - - @CustomType.Constructor - private EventConnectionAuthParameters( - @CustomType.Parameter("apiKey") @Nullable EventConnectionAuthParametersApiKey apiKey, - @CustomType.Parameter("basic") @Nullable EventConnectionAuthParametersBasic basic, - @CustomType.Parameter("invocationHttpParameters") @Nullable EventConnectionAuthParametersInvocationHttpParameters invocationHttpParameters, - @CustomType.Parameter("oauth") @Nullable EventConnectionAuthParametersOauth oauth) { - this.apiKey = apiKey; - this.basic = basic; - this.invocationHttpParameters = invocationHttpParameters; - this.oauth = oauth; - } + private @Nullable EventConnectionAuthParametersOauth oauth; + private EventConnectionAuthParameters() {} /** * @return Parameters used for API_KEY authorization. An API key to include in the header for each authentication request. A maximum of 1 are allowed. Conflicts with `basic` and `oauth`. Documented below. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable EventConnectionAuthParametersApiKey apiKey; private @Nullable EventConnectionAuthParametersBasic basic; private @Nullable EventConnectionAuthParametersInvocationHttpParameters invocationHttpParameters; private @Nullable EventConnectionAuthParametersOauth oauth; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParameters defaults) { Objects.requireNonNull(defaults); this.apiKey = defaults.apiKey; @@ -102,23 +87,33 @@ public Builder(EventConnectionAuthParameters defaults) { this.oauth = defaults.oauth; } + @CustomType.Setter public Builder apiKey(@Nullable EventConnectionAuthParametersApiKey apiKey) { this.apiKey = apiKey; return this; } + @CustomType.Setter public Builder basic(@Nullable EventConnectionAuthParametersBasic basic) { this.basic = basic; return this; } + @CustomType.Setter public Builder invocationHttpParameters(@Nullable EventConnectionAuthParametersInvocationHttpParameters invocationHttpParameters) { this.invocationHttpParameters = invocationHttpParameters; return this; } + @CustomType.Setter public Builder oauth(@Nullable EventConnectionAuthParametersOauth oauth) { this.oauth = oauth; return this; - } public EventConnectionAuthParameters build() { - return new EventConnectionAuthParameters(apiKey, basic, invocationHttpParameters, oauth); + } + public EventConnectionAuthParameters build() { + final var o = new EventConnectionAuthParameters(); + o.apiKey = apiKey; + o.basic = basic; + o.invocationHttpParameters = invocationHttpParameters; + o.oauth = oauth; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersApiKey.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersApiKey.java index 5c8f762da1f..a9a0ce570fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersApiKey.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersApiKey.java @@ -13,21 +13,14 @@ public final class EventConnectionAuthParametersApiKey { * @return Header Name. * */ - private final String key; + private String key; /** * @return Header Value. Created and stored in AWS Secrets Manager. * */ - private final String value; - - @CustomType.Constructor - private EventConnectionAuthParametersApiKey( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private EventConnectionAuthParametersApiKey() {} /** * @return Header Name. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParametersApiKey defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParametersApiKey defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public EventConnectionAuthParametersApiKey build() { - return new EventConnectionAuthParametersApiKey(key, value); + } + public EventConnectionAuthParametersApiKey build() { + final var o = new EventConnectionAuthParametersApiKey(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersBasic.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersBasic.java index eea60589ef3..918007699b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersBasic.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersBasic.java @@ -13,21 +13,14 @@ public final class EventConnectionAuthParametersBasic { * @return A password for the authorization. Created and stored in AWS Secrets Manager. * */ - private final String password; + private String password; /** * @return A username for the authorization. * */ - private final String username; - - @CustomType.Constructor - private EventConnectionAuthParametersBasic( - @CustomType.Parameter("password") String password, - @CustomType.Parameter("username") String username) { - this.password = password; - this.username = username; - } + private String username; + private EventConnectionAuthParametersBasic() {} /** * @return A password for the authorization. Created and stored in AWS Secrets Manager. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParametersBasic defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String password; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParametersBasic defaults) { Objects.requireNonNull(defaults); this.password = defaults.password; this.username = defaults.username; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public EventConnectionAuthParametersBasic build() { - return new EventConnectionAuthParametersBasic(password, username); + } + public EventConnectionAuthParametersBasic build() { + final var o = new EventConnectionAuthParametersBasic(); + o.password = password; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParameters.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParameters.java index d621ee6d275..0d149115823 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParameters.java @@ -17,28 +17,19 @@ public final class EventConnectionAuthParametersInvocationHttpParameters { * @return Contains additional body string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: * */ - private final @Nullable List bodies; + private @Nullable List bodies; /** * @return Contains additional header parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: * */ - private final @Nullable List headers; + private @Nullable List headers; /** * @return Contains additional query string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: * */ - private final @Nullable List queryStrings; - - @CustomType.Constructor - private EventConnectionAuthParametersInvocationHttpParameters( - @CustomType.Parameter("bodies") @Nullable List bodies, - @CustomType.Parameter("headers") @Nullable List headers, - @CustomType.Parameter("queryStrings") @Nullable List queryStrings) { - this.bodies = bodies; - this.headers = headers; - this.queryStrings = queryStrings; - } + private @Nullable List queryStrings; + private EventConnectionAuthParametersInvocationHttpParameters() {} /** * @return Contains additional body string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParametersInvocationHttpParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List bodies; private @Nullable List headers; private @Nullable List queryStrings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParametersInvocationHttpParameters defaults) { Objects.requireNonNull(defaults); this.bodies = defaults.bodies; @@ -85,6 +72,7 @@ public Builder(EventConnectionAuthParametersInvocationHttpParameters defaults) { this.queryStrings = defaults.queryStrings; } + @CustomType.Setter public Builder bodies(@Nullable List bodies) { this.bodies = bodies; return this; @@ -92,6 +80,7 @@ public Builder bodies(@Nullable List headers) { this.headers = headers; return this; @@ -99,14 +88,20 @@ public Builder headers(@Nullable List queryStrings) { this.queryStrings = queryStrings; return this; } public Builder queryStrings(EventConnectionAuthParametersInvocationHttpParametersQueryString... queryStrings) { return queryStrings(List.of(queryStrings)); - } public EventConnectionAuthParametersInvocationHttpParameters build() { - return new EventConnectionAuthParametersInvocationHttpParameters(bodies, headers, queryStrings); + } + public EventConnectionAuthParametersInvocationHttpParameters build() { + final var o = new EventConnectionAuthParametersInvocationHttpParameters(); + o.bodies = bodies; + o.headers = headers; + o.queryStrings = queryStrings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParametersBody.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParametersBody.java index 43e51265146..0e63efea326 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParametersBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParametersBody.java @@ -16,28 +16,19 @@ public final class EventConnectionAuthParametersInvocationHttpParametersBody { * @return Specified whether the value is secret. * */ - private final @Nullable Boolean isValueSecret; + private @Nullable Boolean isValueSecret; /** * @return Header Name. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Header Value. Created and stored in AWS Secrets Manager. * */ - private final @Nullable String value; - - @CustomType.Constructor - private EventConnectionAuthParametersInvocationHttpParametersBody( - @CustomType.Parameter("isValueSecret") @Nullable Boolean isValueSecret, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") @Nullable String value) { - this.isValueSecret = isValueSecret; - this.key = key; - this.value = value; - } + private @Nullable String value; + private EventConnectionAuthParametersInvocationHttpParametersBody() {} /** * @return Specified whether the value is secret. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParametersInvocationHttpParametersBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean isValueSecret; private @Nullable String key; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParametersInvocationHttpParametersBody defaults) { Objects.requireNonNull(defaults); this.isValueSecret = defaults.isValueSecret; @@ -84,19 +71,27 @@ public Builder(EventConnectionAuthParametersInvocationHttpParametersBody default this.value = defaults.value; } + @CustomType.Setter public Builder isValueSecret(@Nullable Boolean isValueSecret) { this.isValueSecret = isValueSecret; return this; } + @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; - } public EventConnectionAuthParametersInvocationHttpParametersBody build() { - return new EventConnectionAuthParametersInvocationHttpParametersBody(isValueSecret, key, value); + } + public EventConnectionAuthParametersInvocationHttpParametersBody build() { + final var o = new EventConnectionAuthParametersInvocationHttpParametersBody(); + o.isValueSecret = isValueSecret; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParametersHeader.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParametersHeader.java index dd8002c81ca..4a128a02c4d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParametersHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParametersHeader.java @@ -16,28 +16,19 @@ public final class EventConnectionAuthParametersInvocationHttpParametersHeader { * @return Specified whether the value is secret. * */ - private final @Nullable Boolean isValueSecret; + private @Nullable Boolean isValueSecret; /** * @return Header Name. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Header Value. Created and stored in AWS Secrets Manager. * */ - private final @Nullable String value; - - @CustomType.Constructor - private EventConnectionAuthParametersInvocationHttpParametersHeader( - @CustomType.Parameter("isValueSecret") @Nullable Boolean isValueSecret, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") @Nullable String value) { - this.isValueSecret = isValueSecret; - this.key = key; - this.value = value; - } + private @Nullable String value; + private EventConnectionAuthParametersInvocationHttpParametersHeader() {} /** * @return Specified whether the value is secret. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParametersInvocationHttpParametersHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean isValueSecret; private @Nullable String key; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParametersInvocationHttpParametersHeader defaults) { Objects.requireNonNull(defaults); this.isValueSecret = defaults.isValueSecret; @@ -84,19 +71,27 @@ public Builder(EventConnectionAuthParametersInvocationHttpParametersHeader defau this.value = defaults.value; } + @CustomType.Setter public Builder isValueSecret(@Nullable Boolean isValueSecret) { this.isValueSecret = isValueSecret; return this; } + @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; - } public EventConnectionAuthParametersInvocationHttpParametersHeader build() { - return new EventConnectionAuthParametersInvocationHttpParametersHeader(isValueSecret, key, value); + } + public EventConnectionAuthParametersInvocationHttpParametersHeader build() { + final var o = new EventConnectionAuthParametersInvocationHttpParametersHeader(); + o.isValueSecret = isValueSecret; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParametersQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParametersQueryString.java index 7660c113e8b..e090bd45bf1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParametersQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersInvocationHttpParametersQueryString.java @@ -16,28 +16,19 @@ public final class EventConnectionAuthParametersInvocationHttpParametersQueryStr * @return Specified whether the value is secret. * */ - private final @Nullable Boolean isValueSecret; + private @Nullable Boolean isValueSecret; /** * @return Header Name. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Header Value. Created and stored in AWS Secrets Manager. * */ - private final @Nullable String value; - - @CustomType.Constructor - private EventConnectionAuthParametersInvocationHttpParametersQueryString( - @CustomType.Parameter("isValueSecret") @Nullable Boolean isValueSecret, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") @Nullable String value) { - this.isValueSecret = isValueSecret; - this.key = key; - this.value = value; - } + private @Nullable String value; + private EventConnectionAuthParametersInvocationHttpParametersQueryString() {} /** * @return Specified whether the value is secret. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParametersInvocationHttpParametersQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean isValueSecret; private @Nullable String key; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParametersInvocationHttpParametersQueryString defaults) { Objects.requireNonNull(defaults); this.isValueSecret = defaults.isValueSecret; @@ -84,19 +71,27 @@ public Builder(EventConnectionAuthParametersInvocationHttpParametersQueryString this.value = defaults.value; } + @CustomType.Setter public Builder isValueSecret(@Nullable Boolean isValueSecret) { this.isValueSecret = isValueSecret; return this; } + @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; - } public EventConnectionAuthParametersInvocationHttpParametersQueryString build() { - return new EventConnectionAuthParametersInvocationHttpParametersQueryString(isValueSecret, key, value); + } + public EventConnectionAuthParametersInvocationHttpParametersQueryString build() { + final var o = new EventConnectionAuthParametersInvocationHttpParametersQueryString(); + o.isValueSecret = isValueSecret; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauth.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauth.java index cd00fdd6b06..76e50090c32 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauth.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauth.java @@ -17,35 +17,24 @@ public final class EventConnectionAuthParametersOauth { * @return The URL to the authorization endpoint. * */ - private final String authorizationEndpoint; + private String authorizationEndpoint; /** * @return Contains the client parameters for OAuth authorization. Contains the following two parameters. * */ - private final @Nullable EventConnectionAuthParametersOauthClientParameters clientParameters; + private @Nullable EventConnectionAuthParametersOauthClientParameters clientParameters; /** * @return A password for the authorization. Created and stored in AWS Secrets Manager. * */ - private final String httpMethod; + private String httpMethod; /** * @return OAuth Http Parameters are additional credentials used to sign the request to the authorization endpoint to exchange the OAuth Client information for an access token. Secret values are stored and managed by AWS Secrets Manager. A maximum of 1 are allowed. Documented below. * */ - private final EventConnectionAuthParametersOauthOauthHttpParameters oauthHttpParameters; - - @CustomType.Constructor - private EventConnectionAuthParametersOauth( - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientParameters") @Nullable EventConnectionAuthParametersOauthClientParameters clientParameters, - @CustomType.Parameter("httpMethod") String httpMethod, - @CustomType.Parameter("oauthHttpParameters") EventConnectionAuthParametersOauthOauthHttpParameters oauthHttpParameters) { - this.authorizationEndpoint = authorizationEndpoint; - this.clientParameters = clientParameters; - this.httpMethod = httpMethod; - this.oauthHttpParameters = oauthHttpParameters; - } + private EventConnectionAuthParametersOauthOauthHttpParameters oauthHttpParameters; + private EventConnectionAuthParametersOauth() {} /** * @return The URL to the authorization endpoint. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParametersOauth defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String authorizationEndpoint; private @Nullable EventConnectionAuthParametersOauthClientParameters clientParameters; private String httpMethod; private EventConnectionAuthParametersOauthOauthHttpParameters oauthHttpParameters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParametersOauth defaults) { Objects.requireNonNull(defaults); this.authorizationEndpoint = defaults.authorizationEndpoint; @@ -101,23 +86,33 @@ public Builder(EventConnectionAuthParametersOauth defaults) { this.oauthHttpParameters = defaults.oauthHttpParameters; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientParameters(@Nullable EventConnectionAuthParametersOauthClientParameters clientParameters) { this.clientParameters = clientParameters; return this; } + @CustomType.Setter public Builder httpMethod(String httpMethod) { this.httpMethod = Objects.requireNonNull(httpMethod); return this; } + @CustomType.Setter public Builder oauthHttpParameters(EventConnectionAuthParametersOauthOauthHttpParameters oauthHttpParameters) { this.oauthHttpParameters = Objects.requireNonNull(oauthHttpParameters); return this; - } public EventConnectionAuthParametersOauth build() { - return new EventConnectionAuthParametersOauth(authorizationEndpoint, clientParameters, httpMethod, oauthHttpParameters); + } + public EventConnectionAuthParametersOauth build() { + final var o = new EventConnectionAuthParametersOauth(); + o.authorizationEndpoint = authorizationEndpoint; + o.clientParameters = clientParameters; + o.httpMethod = httpMethod; + o.oauthHttpParameters = oauthHttpParameters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthClientParameters.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthClientParameters.java index f1c41fbdb6c..04d30fad104 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthClientParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthClientParameters.java @@ -13,21 +13,14 @@ public final class EventConnectionAuthParametersOauthClientParameters { * @return The client ID for the credentials to use for authorization. Created and stored in AWS Secrets Manager. * */ - private final String clientId; + private String clientId; /** * @return The client secret for the credentials to use for authorization. Created and stored in AWS Secrets Manager. * */ - private final String clientSecret; - - @CustomType.Constructor - private EventConnectionAuthParametersOauthClientParameters( - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret) { - this.clientId = clientId; - this.clientSecret = clientSecret; - } + private String clientSecret; + private EventConnectionAuthParametersOauthClientParameters() {} /** * @return The client ID for the credentials to use for authorization. Created and stored in AWS Secrets Manager. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParametersOauthClientParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String clientId; private String clientSecret; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParametersOauthClientParameters defaults) { Objects.requireNonNull(defaults); this.clientId = defaults.clientId; this.clientSecret = defaults.clientSecret; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; - } public EventConnectionAuthParametersOauthClientParameters build() { - return new EventConnectionAuthParametersOauthClientParameters(clientId, clientSecret); + } + public EventConnectionAuthParametersOauthClientParameters build() { + final var o = new EventConnectionAuthParametersOauthClientParameters(); + o.clientId = clientId; + o.clientSecret = clientSecret; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParameters.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParameters.java index 2e5dbceaedb..ef2f99e517e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParameters.java @@ -17,28 +17,19 @@ public final class EventConnectionAuthParametersOauthOauthHttpParameters { * @return Contains additional body string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: * */ - private final @Nullable List bodies; + private @Nullable List bodies; /** * @return Contains additional header parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: * */ - private final @Nullable List headers; + private @Nullable List headers; /** * @return Contains additional query string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: * */ - private final @Nullable List queryStrings; - - @CustomType.Constructor - private EventConnectionAuthParametersOauthOauthHttpParameters( - @CustomType.Parameter("bodies") @Nullable List bodies, - @CustomType.Parameter("headers") @Nullable List headers, - @CustomType.Parameter("queryStrings") @Nullable List queryStrings) { - this.bodies = bodies; - this.headers = headers; - this.queryStrings = queryStrings; - } + private @Nullable List queryStrings; + private EventConnectionAuthParametersOauthOauthHttpParameters() {} /** * @return Contains additional body string parameters for the connection. You can include up to 100 additional body string parameters per request. Each additional parameter counts towards the event payload size, which cannot exceed 64 KB. Each parameter can contain the following: * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParametersOauthOauthHttpParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List bodies; private @Nullable List headers; private @Nullable List queryStrings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParametersOauthOauthHttpParameters defaults) { Objects.requireNonNull(defaults); this.bodies = defaults.bodies; @@ -85,6 +72,7 @@ public Builder(EventConnectionAuthParametersOauthOauthHttpParameters defaults) { this.queryStrings = defaults.queryStrings; } + @CustomType.Setter public Builder bodies(@Nullable List bodies) { this.bodies = bodies; return this; @@ -92,6 +80,7 @@ public Builder bodies(@Nullable List headers) { this.headers = headers; return this; @@ -99,14 +88,20 @@ public Builder headers(@Nullable List queryStrings) { this.queryStrings = queryStrings; return this; } public Builder queryStrings(EventConnectionAuthParametersOauthOauthHttpParametersQueryString... queryStrings) { return queryStrings(List.of(queryStrings)); - } public EventConnectionAuthParametersOauthOauthHttpParameters build() { - return new EventConnectionAuthParametersOauthOauthHttpParameters(bodies, headers, queryStrings); + } + public EventConnectionAuthParametersOauthOauthHttpParameters build() { + final var o = new EventConnectionAuthParametersOauthOauthHttpParameters(); + o.bodies = bodies; + o.headers = headers; + o.queryStrings = queryStrings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParametersBody.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParametersBody.java index 7b8dde7652e..d3f197813b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParametersBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParametersBody.java @@ -16,28 +16,19 @@ public final class EventConnectionAuthParametersOauthOauthHttpParametersBody { * @return Specified whether the value is secret. * */ - private final @Nullable Boolean isValueSecret; + private @Nullable Boolean isValueSecret; /** * @return Header Name. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Header Value. Created and stored in AWS Secrets Manager. * */ - private final @Nullable String value; - - @CustomType.Constructor - private EventConnectionAuthParametersOauthOauthHttpParametersBody( - @CustomType.Parameter("isValueSecret") @Nullable Boolean isValueSecret, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") @Nullable String value) { - this.isValueSecret = isValueSecret; - this.key = key; - this.value = value; - } + private @Nullable String value; + private EventConnectionAuthParametersOauthOauthHttpParametersBody() {} /** * @return Specified whether the value is secret. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParametersOauthOauthHttpParametersBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean isValueSecret; private @Nullable String key; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParametersOauthOauthHttpParametersBody defaults) { Objects.requireNonNull(defaults); this.isValueSecret = defaults.isValueSecret; @@ -84,19 +71,27 @@ public Builder(EventConnectionAuthParametersOauthOauthHttpParametersBody default this.value = defaults.value; } + @CustomType.Setter public Builder isValueSecret(@Nullable Boolean isValueSecret) { this.isValueSecret = isValueSecret; return this; } + @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; - } public EventConnectionAuthParametersOauthOauthHttpParametersBody build() { - return new EventConnectionAuthParametersOauthOauthHttpParametersBody(isValueSecret, key, value); + } + public EventConnectionAuthParametersOauthOauthHttpParametersBody build() { + final var o = new EventConnectionAuthParametersOauthOauthHttpParametersBody(); + o.isValueSecret = isValueSecret; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParametersHeader.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParametersHeader.java index 9aed75843f4..41cc65f09e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParametersHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParametersHeader.java @@ -16,28 +16,19 @@ public final class EventConnectionAuthParametersOauthOauthHttpParametersHeader { * @return Specified whether the value is secret. * */ - private final @Nullable Boolean isValueSecret; + private @Nullable Boolean isValueSecret; /** * @return Header Name. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Header Value. Created and stored in AWS Secrets Manager. * */ - private final @Nullable String value; - - @CustomType.Constructor - private EventConnectionAuthParametersOauthOauthHttpParametersHeader( - @CustomType.Parameter("isValueSecret") @Nullable Boolean isValueSecret, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") @Nullable String value) { - this.isValueSecret = isValueSecret; - this.key = key; - this.value = value; - } + private @Nullable String value; + private EventConnectionAuthParametersOauthOauthHttpParametersHeader() {} /** * @return Specified whether the value is secret. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParametersOauthOauthHttpParametersHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean isValueSecret; private @Nullable String key; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParametersOauthOauthHttpParametersHeader defaults) { Objects.requireNonNull(defaults); this.isValueSecret = defaults.isValueSecret; @@ -84,19 +71,27 @@ public Builder(EventConnectionAuthParametersOauthOauthHttpParametersHeader defau this.value = defaults.value; } + @CustomType.Setter public Builder isValueSecret(@Nullable Boolean isValueSecret) { this.isValueSecret = isValueSecret; return this; } + @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; - } public EventConnectionAuthParametersOauthOauthHttpParametersHeader build() { - return new EventConnectionAuthParametersOauthOauthHttpParametersHeader(isValueSecret, key, value); + } + public EventConnectionAuthParametersOauthOauthHttpParametersHeader build() { + final var o = new EventConnectionAuthParametersOauthOauthHttpParametersHeader(); + o.isValueSecret = isValueSecret; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParametersQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParametersQueryString.java index 2ec2de4ca20..54d16ca2a35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParametersQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventConnectionAuthParametersOauthOauthHttpParametersQueryString.java @@ -16,28 +16,19 @@ public final class EventConnectionAuthParametersOauthOauthHttpParametersQueryStr * @return Specified whether the value is secret. * */ - private final @Nullable Boolean isValueSecret; + private @Nullable Boolean isValueSecret; /** * @return Header Name. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Header Value. Created and stored in AWS Secrets Manager. * */ - private final @Nullable String value; - - @CustomType.Constructor - private EventConnectionAuthParametersOauthOauthHttpParametersQueryString( - @CustomType.Parameter("isValueSecret") @Nullable Boolean isValueSecret, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") @Nullable String value) { - this.isValueSecret = isValueSecret; - this.key = key; - this.value = value; - } + private @Nullable String value; + private EventConnectionAuthParametersOauthOauthHttpParametersQueryString() {} /** * @return Specified whether the value is secret. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(EventConnectionAuthParametersOauthOauthHttpParametersQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean isValueSecret; private @Nullable String key; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventConnectionAuthParametersOauthOauthHttpParametersQueryString defaults) { Objects.requireNonNull(defaults); this.isValueSecret = defaults.isValueSecret; @@ -84,19 +71,27 @@ public Builder(EventConnectionAuthParametersOauthOauthHttpParametersQueryString this.value = defaults.value; } + @CustomType.Setter public Builder isValueSecret(@Nullable Boolean isValueSecret) { this.isValueSecret = isValueSecret; return this; } + @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; - } public EventConnectionAuthParametersOauthOauthHttpParametersQueryString build() { - return new EventConnectionAuthParametersOauthOauthHttpParametersQueryString(isValueSecret, key, value); + } + public EventConnectionAuthParametersOauthOauthHttpParametersQueryString build() { + final var o = new EventConnectionAuthParametersOauthOauthHttpParametersQueryString(); + o.isValueSecret = isValueSecret; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventPermissionCondition.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventPermissionCondition.java index 3ef27df1415..f2c35d4d0f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventPermissionCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventPermissionCondition.java @@ -13,28 +13,19 @@ public final class EventPermissionCondition { * @return Key for the condition. Valid values: `aws:PrincipalOrgID`. * */ - private final String key; + private String key; /** * @return Type of condition. Value values: `StringEquals`. * */ - private final String type; + private String type; /** * @return Value for the key. * */ - private final String value; - - @CustomType.Constructor - private EventPermissionCondition( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") String value) { - this.key = key; - this.type = type; - this.value = value; - } + private String value; + private EventPermissionCondition() {} /** * @return Key for the condition. Valid values: `aws:PrincipalOrgID`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(EventPermissionCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String type; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventPermissionCondition defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -81,19 +68,27 @@ public Builder(EventPermissionCondition defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public EventPermissionCondition build() { - return new EventPermissionCondition(key, type, value); + } + public EventPermissionCondition build() { + final var o = new EventPermissionCondition(); + o.key = key; + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetBatchTarget.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetBatchTarget.java index e44e5f0ef22..475b51bedaa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetBatchTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetBatchTarget.java @@ -16,35 +16,24 @@ public final class EventTargetBatchTarget { * @return The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000. * */ - private final @Nullable Integer arraySize; + private @Nullable Integer arraySize; /** * @return The number of times to attempt to retry, if the job fails. Valid values are 1 to 10. * */ - private final @Nullable Integer jobAttempts; + private @Nullable Integer jobAttempts; /** * @return The ARN or name of the job definition to use if the event target is an AWS Batch job. This job definition must already exist. * */ - private final String jobDefinition; + private String jobDefinition; /** * @return The name to use for this execution of the job, if the target is an AWS Batch job. * */ - private final String jobName; - - @CustomType.Constructor - private EventTargetBatchTarget( - @CustomType.Parameter("arraySize") @Nullable Integer arraySize, - @CustomType.Parameter("jobAttempts") @Nullable Integer jobAttempts, - @CustomType.Parameter("jobDefinition") String jobDefinition, - @CustomType.Parameter("jobName") String jobName) { - this.arraySize = arraySize; - this.jobAttempts = jobAttempts; - this.jobDefinition = jobDefinition; - this.jobName = jobName; - } + private String jobName; + private EventTargetBatchTarget() {} /** * @return The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(EventTargetBatchTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer arraySize; private @Nullable Integer jobAttempts; private String jobDefinition; private String jobName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventTargetBatchTarget defaults) { Objects.requireNonNull(defaults); this.arraySize = defaults.arraySize; @@ -100,23 +85,33 @@ public Builder(EventTargetBatchTarget defaults) { this.jobName = defaults.jobName; } + @CustomType.Setter public Builder arraySize(@Nullable Integer arraySize) { this.arraySize = arraySize; return this; } + @CustomType.Setter public Builder jobAttempts(@Nullable Integer jobAttempts) { this.jobAttempts = jobAttempts; return this; } + @CustomType.Setter public Builder jobDefinition(String jobDefinition) { this.jobDefinition = Objects.requireNonNull(jobDefinition); return this; } + @CustomType.Setter public Builder jobName(String jobName) { this.jobName = Objects.requireNonNull(jobName); return this; - } public EventTargetBatchTarget build() { - return new EventTargetBatchTarget(arraySize, jobAttempts, jobDefinition, jobName); + } + public EventTargetBatchTarget build() { + final var o = new EventTargetBatchTarget(); + o.arraySize = arraySize; + o.jobAttempts = jobAttempts; + o.jobDefinition = jobDefinition; + o.jobName = jobName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetDeadLetterConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetDeadLetterConfig.java index 4e4de252ea3..b2c28f930ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetDeadLetterConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetDeadLetterConfig.java @@ -15,13 +15,9 @@ public final class EventTargetDeadLetterConfig { * @return - ARN of the SQS queue specified as the target for the dead-letter queue. * */ - private final @Nullable String arn; - - @CustomType.Constructor - private EventTargetDeadLetterConfig(@CustomType.Parameter("arn") @Nullable String arn) { - this.arn = arn; - } + private @Nullable String arn; + private EventTargetDeadLetterConfig() {} /** * @return - ARN of the SQS queue specified as the target for the dead-letter queue. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(EventTargetDeadLetterConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventTargetDeadLetterConfig defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; - } public EventTargetDeadLetterConfig build() { - return new EventTargetDeadLetterConfig(arn); + } + public EventTargetDeadLetterConfig build() { + final var o = new EventTargetDeadLetterConfig(); + o.arn = arn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetEcsTarget.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetEcsTarget.java index fd54f5be45f..453ff99a4b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetEcsTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetEcsTarget.java @@ -21,84 +21,59 @@ public final class EventTargetEcsTarget { * @return Specifies whether to enable Amazon ECS managed tags for the task. * */ - private final @Nullable Boolean enableEcsManagedTags; + private @Nullable Boolean enableEcsManagedTags; /** * @return Whether or not to enable the execute command functionality for the containers in this task. If true, this enables execute command functionality on all containers in the task. * */ - private final @Nullable Boolean enableExecuteCommand; + private @Nullable Boolean enableExecuteCommand; /** * @return Specifies an ECS task group for the task. The maximum length is 255 characters. * */ - private final @Nullable String group; + private @Nullable String group; /** * @return Specifies the launch type on which your task is running. The launch type that you specify here must match one of the launch type (compatibilities) of the target task. Valid values include: `EC2`, `EXTERNAL`, or `FARGATE`. * */ - private final @Nullable String launchType; + private @Nullable String launchType; /** * @return Use this if the ECS task uses the awsvpc network mode. This specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. Required if launch_type is FARGATE because the awsvpc mode is required for Fargate tasks. * */ - private final @Nullable EventTargetEcsTargetNetworkConfiguration networkConfiguration; + private @Nullable EventTargetEcsTargetNetworkConfiguration networkConfiguration; /** * @return An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). See Below. * */ - private final @Nullable List placementConstraints; + private @Nullable List placementConstraints; /** * @return Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as 1.1.0. This is used only if LaunchType is FARGATE. For more information about valid platform versions, see [AWS Fargate Platform Versions](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html). * */ - private final @Nullable String platformVersion; + private @Nullable String platformVersion; /** * @return Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags are not propagated. Tags can only be propagated to the task during task creation. * */ - private final @Nullable String propagateTags; + private @Nullable String propagateTags; /** * @return A map of tags to assign to ecs resources. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return The number of tasks to create based on the TaskDefinition. The default is 1. * */ - private final @Nullable Integer taskCount; + private @Nullable Integer taskCount; /** * @return The ARN of the task definition to use if the event target is an Amazon ECS cluster. * */ - private final String taskDefinitionArn; - - @CustomType.Constructor - private EventTargetEcsTarget( - @CustomType.Parameter("enableEcsManagedTags") @Nullable Boolean enableEcsManagedTags, - @CustomType.Parameter("enableExecuteCommand") @Nullable Boolean enableExecuteCommand, - @CustomType.Parameter("group") @Nullable String group, - @CustomType.Parameter("launchType") @Nullable String launchType, - @CustomType.Parameter("networkConfiguration") @Nullable EventTargetEcsTargetNetworkConfiguration networkConfiguration, - @CustomType.Parameter("placementConstraints") @Nullable List placementConstraints, - @CustomType.Parameter("platformVersion") @Nullable String platformVersion, - @CustomType.Parameter("propagateTags") @Nullable String propagateTags, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("taskCount") @Nullable Integer taskCount, - @CustomType.Parameter("taskDefinitionArn") String taskDefinitionArn) { - this.enableEcsManagedTags = enableEcsManagedTags; - this.enableExecuteCommand = enableExecuteCommand; - this.group = group; - this.launchType = launchType; - this.networkConfiguration = networkConfiguration; - this.placementConstraints = placementConstraints; - this.platformVersion = platformVersion; - this.propagateTags = propagateTags; - this.tags = tags; - this.taskCount = taskCount; - this.taskDefinitionArn = taskDefinitionArn; - } + private String taskDefinitionArn; + private EventTargetEcsTarget() {} /** * @return Specifies whether to enable Amazon ECS managed tags for the task. * @@ -184,7 +159,7 @@ public static Builder builder() { public static Builder builder(EventTargetEcsTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enableEcsManagedTags; private @Nullable Boolean enableExecuteCommand; @@ -197,11 +172,7 @@ public static final class Builder { private @Nullable Map tags; private @Nullable Integer taskCount; private String taskDefinitionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventTargetEcsTarget defaults) { Objects.requireNonNull(defaults); this.enableEcsManagedTags = defaults.enableEcsManagedTags; @@ -217,26 +188,32 @@ public Builder(EventTargetEcsTarget defaults) { this.taskDefinitionArn = defaults.taskDefinitionArn; } + @CustomType.Setter public Builder enableEcsManagedTags(@Nullable Boolean enableEcsManagedTags) { this.enableEcsManagedTags = enableEcsManagedTags; return this; } + @CustomType.Setter public Builder enableExecuteCommand(@Nullable Boolean enableExecuteCommand) { this.enableExecuteCommand = enableExecuteCommand; return this; } + @CustomType.Setter public Builder group(@Nullable String group) { this.group = group; return this; } + @CustomType.Setter public Builder launchType(@Nullable String launchType) { this.launchType = launchType; return this; } + @CustomType.Setter public Builder networkConfiguration(@Nullable EventTargetEcsTargetNetworkConfiguration networkConfiguration) { this.networkConfiguration = networkConfiguration; return this; } + @CustomType.Setter public Builder placementConstraints(@Nullable List placementConstraints) { this.placementConstraints = placementConstraints; return this; @@ -244,27 +221,45 @@ public Builder placementConstraints(@Nullable List tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder taskCount(@Nullable Integer taskCount) { this.taskCount = taskCount; return this; } + @CustomType.Setter public Builder taskDefinitionArn(String taskDefinitionArn) { this.taskDefinitionArn = Objects.requireNonNull(taskDefinitionArn); return this; - } public EventTargetEcsTarget build() { - return new EventTargetEcsTarget(enableEcsManagedTags, enableExecuteCommand, group, launchType, networkConfiguration, placementConstraints, platformVersion, propagateTags, tags, taskCount, taskDefinitionArn); + } + public EventTargetEcsTarget build() { + final var o = new EventTargetEcsTarget(); + o.enableEcsManagedTags = enableEcsManagedTags; + o.enableExecuteCommand = enableExecuteCommand; + o.group = group; + o.launchType = launchType; + o.networkConfiguration = networkConfiguration; + o.placementConstraints = placementConstraints; + o.platformVersion = platformVersion; + o.propagateTags = propagateTags; + o.tags = tags; + o.taskCount = taskCount; + o.taskDefinitionArn = taskDefinitionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetEcsTargetNetworkConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetEcsTargetNetworkConfiguration.java index 3b3a6411360..3803038507a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetEcsTargetNetworkConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetEcsTargetNetworkConfiguration.java @@ -17,28 +17,19 @@ public final class EventTargetEcsTargetNetworkConfiguration { * @return Assign a public IP address to the ENI (Fargate launch type only). Valid values are `true` or `false`. Default `false`. * */ - private final @Nullable Boolean assignPublicIp; + private @Nullable Boolean assignPublicIp; /** * @return The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. * */ - private final @Nullable List securityGroups; + private @Nullable List securityGroups; /** * @return The subnets associated with the task or service. * */ - private final List subnets; - - @CustomType.Constructor - private EventTargetEcsTargetNetworkConfiguration( - @CustomType.Parameter("assignPublicIp") @Nullable Boolean assignPublicIp, - @CustomType.Parameter("securityGroups") @Nullable List securityGroups, - @CustomType.Parameter("subnets") List subnets) { - this.assignPublicIp = assignPublicIp; - this.securityGroups = securityGroups; - this.subnets = subnets; - } + private List subnets; + private EventTargetEcsTargetNetworkConfiguration() {} /** * @return Assign a public IP address to the ENI (Fargate launch type only). Valid values are `true` or `false`. Default `false`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(EventTargetEcsTargetNetworkConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean assignPublicIp; private @Nullable List securityGroups; private List subnets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventTargetEcsTargetNetworkConfiguration defaults) { Objects.requireNonNull(defaults); this.assignPublicIp = defaults.assignPublicIp; @@ -85,10 +72,12 @@ public Builder(EventTargetEcsTargetNetworkConfiguration defaults) { this.subnets = defaults.subnets; } + @CustomType.Setter public Builder assignPublicIp(@Nullable Boolean assignPublicIp) { this.assignPublicIp = assignPublicIp; return this; } + @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { this.securityGroups = securityGroups; return this; @@ -96,14 +85,20 @@ public Builder securityGroups(@Nullable List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; } public Builder subnets(String... subnets) { return subnets(List.of(subnets)); - } public EventTargetEcsTargetNetworkConfiguration build() { - return new EventTargetEcsTargetNetworkConfiguration(assignPublicIp, securityGroups, subnets); + } + public EventTargetEcsTargetNetworkConfiguration build() { + final var o = new EventTargetEcsTargetNetworkConfiguration(); + o.assignPublicIp = assignPublicIp; + o.securityGroups = securityGroups; + o.subnets = subnets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetEcsTargetPlacementConstraint.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetEcsTargetPlacementConstraint.java index 2056e2c1adb..284c98a46b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetEcsTargetPlacementConstraint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetEcsTargetPlacementConstraint.java @@ -15,21 +15,14 @@ public final class EventTargetEcsTargetPlacementConstraint { * @return Cluster Query Language expression to apply to the constraint. Does not need to be specified for the `distinctInstance` type. For more information, see [Cluster Query Language in the Amazon EC2 Container Service Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html). * */ - private final @Nullable String expression; + private @Nullable String expression; /** * @return Type of constraint. The only valid values at this time are `memberOf` and `distinctInstance`. * */ - private final String type; - - @CustomType.Constructor - private EventTargetEcsTargetPlacementConstraint( - @CustomType.Parameter("expression") @Nullable String expression, - @CustomType.Parameter("type") String type) { - this.expression = expression; - this.type = type; - } + private String type; + private EventTargetEcsTargetPlacementConstraint() {} /** * @return Cluster Query Language expression to apply to the constraint. Does not need to be specified for the `distinctInstance` type. For more information, see [Cluster Query Language in the Amazon EC2 Container Service Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html). * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(EventTargetEcsTargetPlacementConstraint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String expression; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventTargetEcsTargetPlacementConstraint defaults) { Objects.requireNonNull(defaults); this.expression = defaults.expression; this.type = defaults.type; } + @CustomType.Setter public Builder expression(@Nullable String expression) { this.expression = expression; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public EventTargetEcsTargetPlacementConstraint build() { - return new EventTargetEcsTargetPlacementConstraint(expression, type); + } + public EventTargetEcsTargetPlacementConstraint build() { + final var o = new EventTargetEcsTargetPlacementConstraint(); + o.expression = expression; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetHttpTarget.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetHttpTarget.java index 99578dc3dd3..bae8cb970a0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetHttpTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetHttpTarget.java @@ -16,28 +16,19 @@ public final class EventTargetHttpTarget { * @return Enables you to specify HTTP headers to add to the request. * */ - private final @Nullable Map headerParameters; + private @Nullable Map headerParameters; /** * @return The list of values that correspond sequentially to any path variables in your endpoint ARN (for example `arn:aws:execute-api:us-east-1:123456:myapi/*{@literal /}POST/pets/*`). * */ - private final @Nullable List pathParameterValues; + private @Nullable List pathParameterValues; /** * @return Represents keys/values of query string parameters that are appended to the invoked endpoint. * */ - private final @Nullable Map queryStringParameters; - - @CustomType.Constructor - private EventTargetHttpTarget( - @CustomType.Parameter("headerParameters") @Nullable Map headerParameters, - @CustomType.Parameter("pathParameterValues") @Nullable List pathParameterValues, - @CustomType.Parameter("queryStringParameters") @Nullable Map queryStringParameters) { - this.headerParameters = headerParameters; - this.pathParameterValues = pathParameterValues; - this.queryStringParameters = queryStringParameters; - } + private @Nullable Map queryStringParameters; + private EventTargetHttpTarget() {} /** * @return Enables you to specify HTTP headers to add to the request. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(EventTargetHttpTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map headerParameters; private @Nullable List pathParameterValues; private @Nullable Map queryStringParameters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventTargetHttpTarget defaults) { Objects.requireNonNull(defaults); this.headerParameters = defaults.headerParameters; @@ -84,10 +71,12 @@ public Builder(EventTargetHttpTarget defaults) { this.queryStringParameters = defaults.queryStringParameters; } + @CustomType.Setter public Builder headerParameters(@Nullable Map headerParameters) { this.headerParameters = headerParameters; return this; } + @CustomType.Setter public Builder pathParameterValues(@Nullable List pathParameterValues) { this.pathParameterValues = pathParameterValues; return this; @@ -95,11 +84,17 @@ public Builder pathParameterValues(@Nullable List pathParameterValues) { public Builder pathParameterValues(String... pathParameterValues) { return pathParameterValues(List.of(pathParameterValues)); } + @CustomType.Setter public Builder queryStringParameters(@Nullable Map queryStringParameters) { this.queryStringParameters = queryStringParameters; return this; - } public EventTargetHttpTarget build() { - return new EventTargetHttpTarget(headerParameters, pathParameterValues, queryStringParameters); + } + public EventTargetHttpTarget build() { + final var o = new EventTargetHttpTarget(); + o.headerParameters = headerParameters; + o.pathParameterValues = pathParameterValues; + o.queryStringParameters = queryStringParameters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetInputTransformer.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetInputTransformer.java index 5861dd96078..35f45301de1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetInputTransformer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetInputTransformer.java @@ -18,21 +18,14 @@ public final class EventTargetInputTransformer { * * The keys can't start with "AWS". * */ - private final @Nullable Map inputPaths; + private @Nullable Map inputPaths; /** * @return Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes. Values must be escaped for both JSON and the provider, e.g., `"\"Your string goes here.\\nA new line.\""` * */ - private final String inputTemplate; - - @CustomType.Constructor - private EventTargetInputTransformer( - @CustomType.Parameter("inputPaths") @Nullable Map inputPaths, - @CustomType.Parameter("inputTemplate") String inputTemplate) { - this.inputPaths = inputPaths; - this.inputTemplate = inputTemplate; - } + private String inputTemplate; + private EventTargetInputTransformer() {} /** * @return Key value pairs specified in the form of JSONPath (for example, time = $.time) * * You can have as many as 100 key-value pairs. @@ -58,30 +51,32 @@ public static Builder builder() { public static Builder builder(EventTargetInputTransformer defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map inputPaths; private String inputTemplate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventTargetInputTransformer defaults) { Objects.requireNonNull(defaults); this.inputPaths = defaults.inputPaths; this.inputTemplate = defaults.inputTemplate; } + @CustomType.Setter public Builder inputPaths(@Nullable Map inputPaths) { this.inputPaths = inputPaths; return this; } + @CustomType.Setter public Builder inputTemplate(String inputTemplate) { this.inputTemplate = Objects.requireNonNull(inputTemplate); return this; - } public EventTargetInputTransformer build() { - return new EventTargetInputTransformer(inputPaths, inputTemplate); + } + public EventTargetInputTransformer build() { + final var o = new EventTargetInputTransformer(); + o.inputPaths = inputPaths; + o.inputTemplate = inputTemplate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetKinesisTarget.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetKinesisTarget.java index c3574887d58..d3386c3d59c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetKinesisTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetKinesisTarget.java @@ -15,13 +15,9 @@ public final class EventTargetKinesisTarget { * @return The JSON path to be extracted from the event and used as the partition key. * */ - private final @Nullable String partitionKeyPath; - - @CustomType.Constructor - private EventTargetKinesisTarget(@CustomType.Parameter("partitionKeyPath") @Nullable String partitionKeyPath) { - this.partitionKeyPath = partitionKeyPath; - } + private @Nullable String partitionKeyPath; + private EventTargetKinesisTarget() {} /** * @return The JSON path to be extracted from the event and used as the partition key. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(EventTargetKinesisTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String partitionKeyPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventTargetKinesisTarget defaults) { Objects.requireNonNull(defaults); this.partitionKeyPath = defaults.partitionKeyPath; } + @CustomType.Setter public Builder partitionKeyPath(@Nullable String partitionKeyPath) { this.partitionKeyPath = partitionKeyPath; return this; - } public EventTargetKinesisTarget build() { - return new EventTargetKinesisTarget(partitionKeyPath); + } + public EventTargetKinesisTarget build() { + final var o = new EventTargetKinesisTarget(); + o.partitionKeyPath = partitionKeyPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetRedshiftTarget.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetRedshiftTarget.java index ae42e67435f..db67e0b16f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetRedshiftTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetRedshiftTarget.java @@ -16,49 +16,34 @@ public final class EventTargetRedshiftTarget { * @return The name of the database. * */ - private final String database; + private String database; /** * @return The database user name. * */ - private final @Nullable String dbUser; + private @Nullable String dbUser; /** * @return The name or ARN of the secret that enables access to the database. * */ - private final @Nullable String secretsManagerArn; + private @Nullable String secretsManagerArn; /** * @return The SQL statement text to run. * */ - private final @Nullable String sql; + private @Nullable String sql; /** * @return The name of the SQL statement. * */ - private final @Nullable String statementName; + private @Nullable String statementName; /** * @return Indicates whether to send an event back to EventBridge after the SQL statement runs. * */ - private final @Nullable Boolean withEvent; - - @CustomType.Constructor - private EventTargetRedshiftTarget( - @CustomType.Parameter("database") String database, - @CustomType.Parameter("dbUser") @Nullable String dbUser, - @CustomType.Parameter("secretsManagerArn") @Nullable String secretsManagerArn, - @CustomType.Parameter("sql") @Nullable String sql, - @CustomType.Parameter("statementName") @Nullable String statementName, - @CustomType.Parameter("withEvent") @Nullable Boolean withEvent) { - this.database = database; - this.dbUser = dbUser; - this.secretsManagerArn = secretsManagerArn; - this.sql = sql; - this.statementName = statementName; - this.withEvent = withEvent; - } + private @Nullable Boolean withEvent; + private EventTargetRedshiftTarget() {} /** * @return The name of the database. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(EventTargetRedshiftTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String database; private @Nullable String dbUser; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable String sql; private @Nullable String statementName; private @Nullable Boolean withEvent; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventTargetRedshiftTarget defaults) { Objects.requireNonNull(defaults); this.database = defaults.database; @@ -132,31 +113,45 @@ public Builder(EventTargetRedshiftTarget defaults) { this.withEvent = defaults.withEvent; } + @CustomType.Setter public Builder database(String database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder dbUser(@Nullable String dbUser) { this.dbUser = dbUser; return this; } + @CustomType.Setter public Builder secretsManagerArn(@Nullable String secretsManagerArn) { this.secretsManagerArn = secretsManagerArn; return this; } + @CustomType.Setter public Builder sql(@Nullable String sql) { this.sql = sql; return this; } + @CustomType.Setter public Builder statementName(@Nullable String statementName) { this.statementName = statementName; return this; } + @CustomType.Setter public Builder withEvent(@Nullable Boolean withEvent) { this.withEvent = withEvent; return this; - } public EventTargetRedshiftTarget build() { - return new EventTargetRedshiftTarget(database, dbUser, secretsManagerArn, sql, statementName, withEvent); + } + public EventTargetRedshiftTarget build() { + final var o = new EventTargetRedshiftTarget(); + o.database = database; + o.dbUser = dbUser; + o.secretsManagerArn = secretsManagerArn; + o.sql = sql; + o.statementName = statementName; + o.withEvent = withEvent; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetRetryPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetRetryPolicy.java index b9b07fceab7..c2828b3010a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetRetryPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetRetryPolicy.java @@ -15,21 +15,14 @@ public final class EventTargetRetryPolicy { * @return The age in seconds to continue to make retry attempts. * */ - private final @Nullable Integer maximumEventAgeInSeconds; + private @Nullable Integer maximumEventAgeInSeconds; /** * @return maximum number of retry attempts to make before the request fails * */ - private final @Nullable Integer maximumRetryAttempts; - - @CustomType.Constructor - private EventTargetRetryPolicy( - @CustomType.Parameter("maximumEventAgeInSeconds") @Nullable Integer maximumEventAgeInSeconds, - @CustomType.Parameter("maximumRetryAttempts") @Nullable Integer maximumRetryAttempts) { - this.maximumEventAgeInSeconds = maximumEventAgeInSeconds; - this.maximumRetryAttempts = maximumRetryAttempts; - } + private @Nullable Integer maximumRetryAttempts; + private EventTargetRetryPolicy() {} /** * @return The age in seconds to continue to make retry attempts. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(EventTargetRetryPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer maximumEventAgeInSeconds; private @Nullable Integer maximumRetryAttempts; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventTargetRetryPolicy defaults) { Objects.requireNonNull(defaults); this.maximumEventAgeInSeconds = defaults.maximumEventAgeInSeconds; this.maximumRetryAttempts = defaults.maximumRetryAttempts; } + @CustomType.Setter public Builder maximumEventAgeInSeconds(@Nullable Integer maximumEventAgeInSeconds) { this.maximumEventAgeInSeconds = maximumEventAgeInSeconds; return this; } + @CustomType.Setter public Builder maximumRetryAttempts(@Nullable Integer maximumRetryAttempts) { this.maximumRetryAttempts = maximumRetryAttempts; return this; - } public EventTargetRetryPolicy build() { - return new EventTargetRetryPolicy(maximumEventAgeInSeconds, maximumRetryAttempts); + } + public EventTargetRetryPolicy build() { + final var o = new EventTargetRetryPolicy(); + o.maximumEventAgeInSeconds = maximumEventAgeInSeconds; + o.maximumRetryAttempts = maximumRetryAttempts; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetRunCommandTarget.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetRunCommandTarget.java index be8c6579166..5bd1d36b231 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetRunCommandTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetRunCommandTarget.java @@ -14,21 +14,14 @@ public final class EventTargetRunCommandTarget { * @return Can be either `tag:tag-key` or `InstanceIds`. * */ - private final String key; + private String key; /** * @return If Key is `tag:tag-key`, Values is a list of tag values. If Key is `InstanceIds`, Values is a list of Amazon EC2 instance IDs. * */ - private final List values; - - @CustomType.Constructor - private EventTargetRunCommandTarget( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") List values) { - this.key = key; - this.values = values; - } + private List values; + private EventTargetRunCommandTarget() {} /** * @return Can be either `tag:tag-key` or `InstanceIds`. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(EventTargetRunCommandTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventTargetRunCommandTarget defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public EventTargetRunCommandTarget build() { - return new EventTargetRunCommandTarget(key, values); + } + public EventTargetRunCommandTarget build() { + final var o = new EventTargetRunCommandTarget(); + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetSqsTarget.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetSqsTarget.java index 3e901b0a09b..39628a552da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetSqsTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/EventTargetSqsTarget.java @@ -15,13 +15,9 @@ public final class EventTargetSqsTarget { * @return The FIFO message group ID to use as the target. * */ - private final @Nullable String messageGroupId; - - @CustomType.Constructor - private EventTargetSqsTarget(@CustomType.Parameter("messageGroupId") @Nullable String messageGroupId) { - this.messageGroupId = messageGroupId; - } + private @Nullable String messageGroupId; + private EventTargetSqsTarget() {} /** * @return The FIFO message group ID to use as the target. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(EventTargetSqsTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String messageGroupId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventTargetSqsTarget defaults) { Objects.requireNonNull(defaults); this.messageGroupId = defaults.messageGroupId; } + @CustomType.Setter public Builder messageGroupId(@Nullable String messageGroupId) { this.messageGroupId = messageGroupId; return this; - } public EventTargetSqsTarget build() { - return new EventTargetSqsTarget(messageGroupId); + } + public EventTargetSqsTarget build() { + final var o = new EventTargetSqsTarget(); + o.messageGroupId = messageGroupId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetEventBusResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetEventBusResult.java index 47f51b517a6..fb832905ea0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetEventBusResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetEventBusResult.java @@ -13,24 +13,15 @@ public final class GetEventBusResult { * @return The Amazon Resource Name (ARN) specifying the role. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetEventBusResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetEventBusResult() {} /** * @return The Amazon Resource Name (ARN) specifying the role. * @@ -56,16 +47,12 @@ public static Builder builder() { public static Builder builder(GetEventBusResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEventBusResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -73,19 +60,27 @@ public Builder(GetEventBusResult defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetEventBusResult build() { - return new GetEventBusResult(arn, id, name); + } + public GetEventBusResult build() { + final var o = new GetEventBusResult(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetEventConnectionResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetEventConnectionResult.java index 76519329f89..56e227906d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetEventConnectionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetEventConnectionResult.java @@ -13,42 +13,29 @@ public final class GetEventConnectionResult { * @return The ARN (Amazon Resource Name) for the connection. * */ - private final String arn; + private String arn; /** * @return The type of authorization to use to connect. One of `API_KEY`,`BASIC`,`OAUTH_CLIENT_CREDENTIALS`. * */ - private final String authorizationType; + private String authorizationType; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the connection. * */ - private final String name; + private String name; /** * @return The ARN (Amazon Resource Name) for the secret created from the authorization parameters specified for the connection. * */ - private final String secretArn; - - @CustomType.Constructor - private GetEventConnectionResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("authorizationType") String authorizationType, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("secretArn") String secretArn) { - this.arn = arn; - this.authorizationType = authorizationType; - this.id = id; - this.name = name; - this.secretArn = secretArn; - } + private String secretArn; + private GetEventConnectionResult() {} /** * @return The ARN (Amazon Resource Name) for the connection. * @@ -92,18 +79,14 @@ public static Builder builder() { public static Builder builder(GetEventConnectionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String authorizationType; private String id; private String name; private String secretArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEventConnectionResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -113,27 +96,39 @@ public Builder(GetEventConnectionResult defaults) { this.secretArn = defaults.secretArn; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder authorizationType(String authorizationType) { this.authorizationType = Objects.requireNonNull(authorizationType); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder secretArn(String secretArn) { this.secretArn = Objects.requireNonNull(secretArn); return this; - } public GetEventConnectionResult build() { - return new GetEventConnectionResult(arn, authorizationType, id, name, secretArn); + } + public GetEventConnectionResult build() { + final var o = new GetEventConnectionResult(); + o.arn = arn; + o.authorizationType = authorizationType; + o.id = id; + o.name = name; + o.secretArn = secretArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetEventSourceResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetEventSourceResult.java index d27c06e5249..b95dcc597fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetEventSourceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetEventSourceResult.java @@ -15,45 +15,30 @@ public final class GetEventSourceResult { * @return The ARN of the partner event source * */ - private final String arn; + private String arn; /** * @return The name of the SaaS partner that created the event source * */ - private final String createdBy; + private String createdBy; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the event source * */ - private final String name; - private final @Nullable String namePrefix; + private String name; + private @Nullable String namePrefix; /** * @return The state of the event source (`ACTIVE` or `PENDING`) * */ - private final String state; - - @CustomType.Constructor - private GetEventSourceResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createdBy") String createdBy, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("namePrefix") @Nullable String namePrefix, - @CustomType.Parameter("state") String state) { - this.arn = arn; - this.createdBy = createdBy; - this.id = id; - this.name = name; - this.namePrefix = namePrefix; - this.state = state; - } + private String state; + private GetEventSourceResult() {} /** * @return The ARN of the partner event source * @@ -100,7 +85,7 @@ public static Builder builder() { public static Builder builder(GetEventSourceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String createdBy; @@ -108,11 +93,7 @@ public static final class Builder { private String name; private @Nullable String namePrefix; private String state; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEventSourceResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -123,31 +104,45 @@ public Builder(GetEventSourceResult defaults) { this.state = defaults.state; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createdBy(String createdBy) { this.createdBy = Objects.requireNonNull(createdBy); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder namePrefix(@Nullable String namePrefix) { this.namePrefix = namePrefix; return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; - } public GetEventSourceResult build() { - return new GetEventSourceResult(arn, createdBy, id, name, namePrefix, state); + } + public GetEventSourceResult build() { + final var o = new GetEventSourceResult(); + o.arn = arn; + o.createdBy = createdBy; + o.id = id; + o.name = name; + o.namePrefix = namePrefix; + o.state = state; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetLogGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetLogGroupResult.java index a8a958aef0f..cd541d8eed8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetLogGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetLogGroupResult.java @@ -15,52 +15,35 @@ public final class GetLogGroupResult { * @return The ARN of the Cloudwatch log group. Any `:*` suffix added by the API, denoting all CloudWatch Log Streams under the CloudWatch Log Group, is removed for greater compatibility with other AWS services that do not accept the suffix. * */ - private final String arn; + private String arn; /** * @return The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. * */ - private final Integer creationTime; + private Integer creationTime; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The ARN of the KMS Key to use when encrypting log data. * */ - private final String kmsKeyId; - private final String name; + private String kmsKeyId; + private String name; /** * @return The number of days log events retained in the specified log group. * */ - private final Integer retentionInDays; + private Integer retentionInDays; /** * @return A map of tags to assign to the resource. * */ - private final Map tags; - - @CustomType.Constructor - private GetLogGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("creationTime") Integer creationTime, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("retentionInDays") Integer retentionInDays, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.creationTime = creationTime; - this.id = id; - this.kmsKeyId = kmsKeyId; - this.name = name; - this.retentionInDays = retentionInDays; - this.tags = tags; - } + private Map tags; + private GetLogGroupResult() {} /** * @return The ARN of the Cloudwatch log group. Any `:*` suffix added by the API, denoting all CloudWatch Log Streams under the CloudWatch Log Group, is removed for greater compatibility with other AWS services that do not accept the suffix. * @@ -114,7 +97,7 @@ public static Builder builder() { public static Builder builder(GetLogGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Integer creationTime; @@ -123,11 +106,7 @@ public static final class Builder { private String name; private Integer retentionInDays; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLogGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -139,35 +118,51 @@ public Builder(GetLogGroupResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder creationTime(Integer creationTime) { this.creationTime = Objects.requireNonNull(creationTime); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder retentionInDays(Integer retentionInDays) { this.retentionInDays = Objects.requireNonNull(retentionInDays); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetLogGroupResult build() { - return new GetLogGroupResult(arn, creationTime, id, kmsKeyId, name, retentionInDays, tags); + } + public GetLogGroupResult build() { + final var o = new GetLogGroupResult(); + o.arn = arn; + o.creationTime = creationTime; + o.id = id; + o.kmsKeyId = kmsKeyId; + o.name = name; + o.retentionInDays = retentionInDays; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetLogGroupsResult.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetLogGroupsResult.java index 5b08db6c485..e542a35c4f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetLogGroupsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/GetLogGroupsResult.java @@ -16,31 +16,20 @@ public final class GetLogGroupsResult { * @return Set of ARNs of the Cloudwatch log groups * */ - private final List arns; + private List arns; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String logGroupNamePrefix; + private String id; + private @Nullable String logGroupNamePrefix; /** * @return Set of names of the Cloudwatch log groups * */ - private final List logGroupNames; - - @CustomType.Constructor - private GetLogGroupsResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("logGroupNamePrefix") @Nullable String logGroupNamePrefix, - @CustomType.Parameter("logGroupNames") List logGroupNames) { - this.arns = arns; - this.id = id; - this.logGroupNamePrefix = logGroupNamePrefix; - this.logGroupNames = logGroupNames; - } + private List logGroupNames; + private GetLogGroupsResult() {} /** * @return Set of ARNs of the Cloudwatch log groups * @@ -73,17 +62,13 @@ public static Builder builder() { public static Builder builder(GetLogGroupsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private String id; private @Nullable String logGroupNamePrefix; private List logGroupNames; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLogGroupsResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -92,6 +77,7 @@ public Builder(GetLogGroupsResult defaults) { this.logGroupNames = defaults.logGroupNames; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -99,22 +85,31 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder logGroupNamePrefix(@Nullable String logGroupNamePrefix) { this.logGroupNamePrefix = logGroupNamePrefix; return this; } + @CustomType.Setter public Builder logGroupNames(List logGroupNames) { this.logGroupNames = Objects.requireNonNull(logGroupNames); return this; } public Builder logGroupNames(String... logGroupNames) { return logGroupNames(List.of(logGroupNames)); - } public GetLogGroupsResult build() { - return new GetLogGroupsResult(arns, id, logGroupNamePrefix, logGroupNames); + } + public GetLogGroupsResult build() { + final var o = new GetLogGroupsResult(); + o.arns = arns; + o.id = id; + o.logGroupNamePrefix = logGroupNamePrefix; + o.logGroupNames = logGroupNames; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/LogMetricFilterMetricTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/LogMetricFilterMetricTransformation.java index bd767b3e7b1..57a6f3df751 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/LogMetricFilterMetricTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/LogMetricFilterMetricTransformation.java @@ -16,49 +16,34 @@ public final class LogMetricFilterMetricTransformation { * @return The value to emit when a filter pattern does not match a log event. Conflicts with `dimensions`. * */ - private final @Nullable String defaultValue; + private @Nullable String defaultValue; /** * @return Map of fields to use as dimensions for the metric. Up to 3 dimensions are allowed. Conflicts with `default_value`. * */ - private final @Nullable Map dimensions; + private @Nullable Map dimensions; /** * @return The name of the CloudWatch metric to which the monitored log information should be published (e.g., `ErrorCount`) * */ - private final String name; + private String name; /** * @return The destination namespace of the CloudWatch metric. * */ - private final String namespace; + private String namespace; /** * @return The unit to assign to the metric. If you omit this, the unit is set as `None`. * */ - private final @Nullable String unit; + private @Nullable String unit; /** * @return What to publish to the metric. For example, if you're counting the occurrences of a particular term like "Error", the value will be "1" for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event. * */ - private final String value; - - @CustomType.Constructor - private LogMetricFilterMetricTransformation( - @CustomType.Parameter("defaultValue") @Nullable String defaultValue, - @CustomType.Parameter("dimensions") @Nullable Map dimensions, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("namespace") String namespace, - @CustomType.Parameter("unit") @Nullable String unit, - @CustomType.Parameter("value") String value) { - this.defaultValue = defaultValue; - this.dimensions = dimensions; - this.name = name; - this.namespace = namespace; - this.unit = unit; - this.value = value; - } + private String value; + private LogMetricFilterMetricTransformation() {} /** * @return The value to emit when a filter pattern does not match a log event. Conflicts with `dimensions`. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(LogMetricFilterMetricTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String defaultValue; private @Nullable Map dimensions; @@ -117,11 +102,7 @@ public static final class Builder { private String namespace; private @Nullable String unit; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LogMetricFilterMetricTransformation defaults) { Objects.requireNonNull(defaults); this.defaultValue = defaults.defaultValue; @@ -132,31 +113,45 @@ public Builder(LogMetricFilterMetricTransformation defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder defaultValue(@Nullable String defaultValue) { this.defaultValue = defaultValue; return this; } + @CustomType.Setter public Builder dimensions(@Nullable Map dimensions) { this.dimensions = dimensions; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder namespace(String namespace) { this.namespace = Objects.requireNonNull(namespace); return this; } + @CustomType.Setter public Builder unit(@Nullable String unit) { this.unit = unit; return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public LogMetricFilterMetricTransformation build() { - return new LogMetricFilterMetricTransformation(defaultValue, dimensions, name, namespace, unit, value); + } + public LogMetricFilterMetricTransformation build() { + final var o = new LogMetricFilterMetricTransformation(); + o.defaultValue = defaultValue; + o.dimensions = dimensions; + o.name = name; + o.namespace = namespace; + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricAlarmMetricQuery.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricAlarmMetricQuery.java index 37cf4c4e1de..cced927f0c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricAlarmMetricQuery.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricAlarmMetricQuery.java @@ -17,49 +17,34 @@ public final class MetricAlarmMetricQuery { * @return The ID of the account where the metrics are located, if this is a cross-account alarm. * */ - private final @Nullable String accountId; + private @Nullable String accountId; /** * @return The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the id of the other metrics to refer to those metrics, and can also use the id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the [Amazon CloudWatch User Guide](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax). * */ - private final @Nullable String expression; + private @Nullable String expression; /** * @return A short name used to tie this object to the results in the response. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. * */ - private final String id; + private String id; /** * @return A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. * */ - private final @Nullable String label; + private @Nullable String label; /** * @return The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data. * */ - private final @Nullable MetricAlarmMetricQueryMetric metric; + private @Nullable MetricAlarmMetricQueryMetric metric; /** * @return Specify exactly one `metric_query` to be `true` to use that `metric_query` result as the alarm. * */ - private final @Nullable Boolean returnData; - - @CustomType.Constructor - private MetricAlarmMetricQuery( - @CustomType.Parameter("accountId") @Nullable String accountId, - @CustomType.Parameter("expression") @Nullable String expression, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("label") @Nullable String label, - @CustomType.Parameter("metric") @Nullable MetricAlarmMetricQueryMetric metric, - @CustomType.Parameter("returnData") @Nullable Boolean returnData) { - this.accountId = accountId; - this.expression = expression; - this.id = id; - this.label = label; - this.metric = metric; - this.returnData = returnData; - } + private @Nullable Boolean returnData; + private MetricAlarmMetricQuery() {} /** * @return The ID of the account where the metrics are located, if this is a cross-account alarm. * @@ -110,7 +95,7 @@ public static Builder builder() { public static Builder builder(MetricAlarmMetricQuery defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accountId; private @Nullable String expression; @@ -118,11 +103,7 @@ public static final class Builder { private @Nullable String label; private @Nullable MetricAlarmMetricQueryMetric metric; private @Nullable Boolean returnData; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MetricAlarmMetricQuery defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; @@ -133,31 +114,45 @@ public Builder(MetricAlarmMetricQuery defaults) { this.returnData = defaults.returnData; } + @CustomType.Setter public Builder accountId(@Nullable String accountId) { this.accountId = accountId; return this; } + @CustomType.Setter public Builder expression(@Nullable String expression) { this.expression = expression; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder label(@Nullable String label) { this.label = label; return this; } + @CustomType.Setter public Builder metric(@Nullable MetricAlarmMetricQueryMetric metric) { this.metric = metric; return this; } + @CustomType.Setter public Builder returnData(@Nullable Boolean returnData) { this.returnData = returnData; return this; - } public MetricAlarmMetricQuery build() { - return new MetricAlarmMetricQuery(accountId, expression, id, label, metric, returnData); + } + public MetricAlarmMetricQuery build() { + final var o = new MetricAlarmMetricQuery(); + o.accountId = accountId; + o.expression = expression; + o.id = id; + o.label = label; + o.metric = metric; + o.returnData = returnData; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricAlarmMetricQueryMetric.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricAlarmMetricQueryMetric.java index c48d37c3309..87704b7195e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricAlarmMetricQueryMetric.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricAlarmMetricQueryMetric.java @@ -17,52 +17,37 @@ public final class MetricAlarmMetricQueryMetric { * @return The dimensions for this metric. For the list of available dimensions see the AWS documentation [here](http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html). * */ - private final @Nullable Map dimensions; + private @Nullable Map dimensions; /** * @return The name for this metric. * See docs for [supported metrics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html). * */ - private final String metricName; + private String metricName; /** * @return The namespace for this metric. See docs for the [list of namespaces](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/aws-namespaces.html). * See docs for [supported metrics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html). * */ - private final @Nullable String namespace; + private @Nullable String namespace; /** * @return The period in seconds over which the specified `stat` is applied. * */ - private final Integer period; + private Integer period; /** * @return The statistic to apply to this metric. * See docs for [supported statistics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html). * */ - private final String stat; + private String stat; /** * @return The unit for this metric. * */ - private final @Nullable String unit; - - @CustomType.Constructor - private MetricAlarmMetricQueryMetric( - @CustomType.Parameter("dimensions") @Nullable Map dimensions, - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("namespace") @Nullable String namespace, - @CustomType.Parameter("period") Integer period, - @CustomType.Parameter("stat") String stat, - @CustomType.Parameter("unit") @Nullable String unit) { - this.dimensions = dimensions; - this.metricName = metricName; - this.namespace = namespace; - this.period = period; - this.stat = stat; - this.unit = unit; - } + private @Nullable String unit; + private MetricAlarmMetricQueryMetric() {} /** * @return The dimensions for this metric. For the list of available dimensions see the AWS documentation [here](http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html). * @@ -116,7 +101,7 @@ public static Builder builder() { public static Builder builder(MetricAlarmMetricQueryMetric defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map dimensions; private String metricName; @@ -124,11 +109,7 @@ public static final class Builder { private Integer period; private String stat; private @Nullable String unit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MetricAlarmMetricQueryMetric defaults) { Objects.requireNonNull(defaults); this.dimensions = defaults.dimensions; @@ -139,31 +120,45 @@ public Builder(MetricAlarmMetricQueryMetric defaults) { this.unit = defaults.unit; } + @CustomType.Setter public Builder dimensions(@Nullable Map dimensions) { this.dimensions = dimensions; return this; } + @CustomType.Setter public Builder metricName(String metricName) { this.metricName = Objects.requireNonNull(metricName); return this; } + @CustomType.Setter public Builder namespace(@Nullable String namespace) { this.namespace = namespace; return this; } + @CustomType.Setter public Builder period(Integer period) { this.period = Objects.requireNonNull(period); return this; } + @CustomType.Setter public Builder stat(String stat) { this.stat = Objects.requireNonNull(stat); return this; } + @CustomType.Setter public Builder unit(@Nullable String unit) { this.unit = unit; return this; - } public MetricAlarmMetricQueryMetric build() { - return new MetricAlarmMetricQueryMetric(dimensions, metricName, namespace, period, stat, unit); + } + public MetricAlarmMetricQueryMetric build() { + final var o = new MetricAlarmMetricQueryMetric(); + o.dimensions = dimensions; + o.metricName = metricName; + o.namespace = namespace; + o.period = period; + o.stat = stat; + o.unit = unit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamExcludeFilter.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamExcludeFilter.java index 65cba6fcd40..6c48cb5ab79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamExcludeFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamExcludeFilter.java @@ -13,13 +13,9 @@ public final class MetricStreamExcludeFilter { * @return The namespace of the metric. * */ - private final String namespace; - - @CustomType.Constructor - private MetricStreamExcludeFilter(@CustomType.Parameter("namespace") String namespace) { - this.namespace = namespace; - } + private String namespace; + private MetricStreamExcludeFilter() {} /** * @return The namespace of the metric. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(MetricStreamExcludeFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String namespace; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MetricStreamExcludeFilter defaults) { Objects.requireNonNull(defaults); this.namespace = defaults.namespace; } + @CustomType.Setter public Builder namespace(String namespace) { this.namespace = Objects.requireNonNull(namespace); return this; - } public MetricStreamExcludeFilter build() { - return new MetricStreamExcludeFilter(namespace); + } + public MetricStreamExcludeFilter build() { + final var o = new MetricStreamExcludeFilter(); + o.namespace = namespace; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamIncludeFilter.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamIncludeFilter.java index 16cc43b6146..3adea4777e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamIncludeFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamIncludeFilter.java @@ -13,13 +13,9 @@ public final class MetricStreamIncludeFilter { * @return The namespace of the metric. * */ - private final String namespace; - - @CustomType.Constructor - private MetricStreamIncludeFilter(@CustomType.Parameter("namespace") String namespace) { - this.namespace = namespace; - } + private String namespace; + private MetricStreamIncludeFilter() {} /** * @return The namespace of the metric. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(MetricStreamIncludeFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String namespace; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MetricStreamIncludeFilter defaults) { Objects.requireNonNull(defaults); this.namespace = defaults.namespace; } + @CustomType.Setter public Builder namespace(String namespace) { this.namespace = Objects.requireNonNull(namespace); return this; - } public MetricStreamIncludeFilter build() { - return new MetricStreamIncludeFilter(namespace); + } + public MetricStreamIncludeFilter build() { + final var o = new MetricStreamIncludeFilter(); + o.namespace = namespace; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamStatisticsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamStatisticsConfiguration.java index f1416a1381b..1ef2339f979 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamStatisticsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamStatisticsConfiguration.java @@ -15,21 +15,14 @@ public final class MetricStreamStatisticsConfiguration { * @return The additional statistics to stream for the metrics listed in `include_metrics`. * */ - private final List additionalStatistics; + private List additionalStatistics; /** * @return An array that defines the metrics that are to have additional statistics streamed. See details below. * */ - private final List includeMetrics; - - @CustomType.Constructor - private MetricStreamStatisticsConfiguration( - @CustomType.Parameter("additionalStatistics") List additionalStatistics, - @CustomType.Parameter("includeMetrics") List includeMetrics) { - this.additionalStatistics = additionalStatistics; - this.includeMetrics = includeMetrics; - } + private List includeMetrics; + private MetricStreamStatisticsConfiguration() {} /** * @return The additional statistics to stream for the metrics listed in `include_metrics`. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(MetricStreamStatisticsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List additionalStatistics; private List includeMetrics; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MetricStreamStatisticsConfiguration defaults) { Objects.requireNonNull(defaults); this.additionalStatistics = defaults.additionalStatistics; this.includeMetrics = defaults.includeMetrics; } + @CustomType.Setter public Builder additionalStatistics(List additionalStatistics) { this.additionalStatistics = Objects.requireNonNull(additionalStatistics); return this; @@ -74,14 +64,19 @@ public Builder additionalStatistics(List additionalStatistics) { public Builder additionalStatistics(String... additionalStatistics) { return additionalStatistics(List.of(additionalStatistics)); } + @CustomType.Setter public Builder includeMetrics(List includeMetrics) { this.includeMetrics = Objects.requireNonNull(includeMetrics); return this; } public Builder includeMetrics(MetricStreamStatisticsConfigurationIncludeMetric... includeMetrics) { return includeMetrics(List.of(includeMetrics)); - } public MetricStreamStatisticsConfiguration build() { - return new MetricStreamStatisticsConfiguration(additionalStatistics, includeMetrics); + } + public MetricStreamStatisticsConfiguration build() { + final var o = new MetricStreamStatisticsConfiguration(); + o.additionalStatistics = additionalStatistics; + o.includeMetrics = includeMetrics; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamStatisticsConfigurationIncludeMetric.java b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamStatisticsConfigurationIncludeMetric.java index 19012f89825..a68b213c77d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamStatisticsConfigurationIncludeMetric.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cloudwatch/outputs/MetricStreamStatisticsConfigurationIncludeMetric.java @@ -13,21 +13,14 @@ public final class MetricStreamStatisticsConfigurationIncludeMetric { * @return The name of the metric. * */ - private final String metricName; + private String metricName; /** * @return The namespace of the metric. * */ - private final String namespace; - - @CustomType.Constructor - private MetricStreamStatisticsConfigurationIncludeMetric( - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("namespace") String namespace) { - this.metricName = metricName; - this.namespace = namespace; - } + private String namespace; + private MetricStreamStatisticsConfigurationIncludeMetric() {} /** * @return The name of the metric. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(MetricStreamStatisticsConfigurationIncludeMetric defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String metricName; private String namespace; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MetricStreamStatisticsConfigurationIncludeMetric defaults) { Objects.requireNonNull(defaults); this.metricName = defaults.metricName; this.namespace = defaults.namespace; } + @CustomType.Setter public Builder metricName(String metricName) { this.metricName = Objects.requireNonNull(metricName); return this; } + @CustomType.Setter public Builder namespace(String namespace) { this.namespace = Objects.requireNonNull(namespace); return this; - } public MetricStreamStatisticsConfigurationIncludeMetric build() { - return new MetricStreamStatisticsConfigurationIncludeMetric(metricName, namespace); + } + public MetricStreamStatisticsConfigurationIncludeMetric build() { + final var o = new MetricStreamStatisticsConfigurationIncludeMetric(); + o.metricName = metricName; + o.namespace = namespace; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/GetAuthorizationTokenResult.java b/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/GetAuthorizationTokenResult.java index 89193d2ea9a..884cba48f88 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/GetAuthorizationTokenResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/GetAuthorizationTokenResult.java @@ -16,37 +16,22 @@ public final class GetAuthorizationTokenResult { * @return Temporary authorization token. * */ - private final String authorizationToken; - private final String domain; - private final String domainOwner; - private final @Nullable Integer durationSeconds; + private String authorizationToken; + private String domain; + private String domainOwner; + private @Nullable Integer durationSeconds; /** * @return The time in UTC RFC3339 format when the authorization token expires. * */ - private final String expiration; + private String expiration; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetAuthorizationTokenResult( - @CustomType.Parameter("authorizationToken") String authorizationToken, - @CustomType.Parameter("domain") String domain, - @CustomType.Parameter("domainOwner") String domainOwner, - @CustomType.Parameter("durationSeconds") @Nullable Integer durationSeconds, - @CustomType.Parameter("expiration") String expiration, - @CustomType.Parameter("id") String id) { - this.authorizationToken = authorizationToken; - this.domain = domain; - this.domainOwner = domainOwner; - this.durationSeconds = durationSeconds; - this.expiration = expiration; - this.id = id; - } + private String id; + private GetAuthorizationTokenResult() {} /** * @return Temporary authorization token. * @@ -85,7 +70,7 @@ public static Builder builder() { public static Builder builder(GetAuthorizationTokenResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String authorizationToken; private String domain; @@ -93,11 +78,7 @@ public static final class Builder { private @Nullable Integer durationSeconds; private String expiration; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAuthorizationTokenResult defaults) { Objects.requireNonNull(defaults); this.authorizationToken = defaults.authorizationToken; @@ -108,31 +89,45 @@ public Builder(GetAuthorizationTokenResult defaults) { this.id = defaults.id; } + @CustomType.Setter public Builder authorizationToken(String authorizationToken) { this.authorizationToken = Objects.requireNonNull(authorizationToken); return this; } + @CustomType.Setter public Builder domain(String domain) { this.domain = Objects.requireNonNull(domain); return this; } + @CustomType.Setter public Builder domainOwner(String domainOwner) { this.domainOwner = Objects.requireNonNull(domainOwner); return this; } + @CustomType.Setter public Builder durationSeconds(@Nullable Integer durationSeconds) { this.durationSeconds = durationSeconds; return this; } + @CustomType.Setter public Builder expiration(String expiration) { this.expiration = Objects.requireNonNull(expiration); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetAuthorizationTokenResult build() { - return new GetAuthorizationTokenResult(authorizationToken, domain, domainOwner, durationSeconds, expiration, id); + } + public GetAuthorizationTokenResult build() { + final var o = new GetAuthorizationTokenResult(); + o.authorizationToken = authorizationToken; + o.domain = domain; + o.domainOwner = domainOwner; + o.durationSeconds = durationSeconds; + o.expiration = expiration; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/GetRepositoryEndpointResult.java b/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/GetRepositoryEndpointResult.java index c6cccb0b070..53c943d1010 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/GetRepositoryEndpointResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/GetRepositoryEndpointResult.java @@ -9,37 +9,22 @@ @CustomType public final class GetRepositoryEndpointResult { - private final String domain; - private final String domainOwner; - private final String format; + private String domain; + private String domainOwner; + private String format; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String repository; + private String id; + private String repository; /** * @return The URL of the returned endpoint. * */ - private final String repositoryEndpoint; - - @CustomType.Constructor - private GetRepositoryEndpointResult( - @CustomType.Parameter("domain") String domain, - @CustomType.Parameter("domainOwner") String domainOwner, - @CustomType.Parameter("format") String format, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("repository") String repository, - @CustomType.Parameter("repositoryEndpoint") String repositoryEndpoint) { - this.domain = domain; - this.domainOwner = domainOwner; - this.format = format; - this.id = id; - this.repository = repository; - this.repositoryEndpoint = repositoryEndpoint; - } + private String repositoryEndpoint; + private GetRepositoryEndpointResult() {} public String domain() { return this.domain; } @@ -74,7 +59,7 @@ public static Builder builder() { public static Builder builder(GetRepositoryEndpointResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String domain; private String domainOwner; @@ -82,11 +67,7 @@ public static final class Builder { private String id; private String repository; private String repositoryEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRepositoryEndpointResult defaults) { Objects.requireNonNull(defaults); this.domain = defaults.domain; @@ -97,31 +78,45 @@ public Builder(GetRepositoryEndpointResult defaults) { this.repositoryEndpoint = defaults.repositoryEndpoint; } + @CustomType.Setter public Builder domain(String domain) { this.domain = Objects.requireNonNull(domain); return this; } + @CustomType.Setter public Builder domainOwner(String domainOwner) { this.domainOwner = Objects.requireNonNull(domainOwner); return this; } + @CustomType.Setter public Builder format(String format) { this.format = Objects.requireNonNull(format); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder repository(String repository) { this.repository = Objects.requireNonNull(repository); return this; } + @CustomType.Setter public Builder repositoryEndpoint(String repositoryEndpoint) { this.repositoryEndpoint = Objects.requireNonNull(repositoryEndpoint); return this; - } public GetRepositoryEndpointResult build() { - return new GetRepositoryEndpointResult(domain, domainOwner, format, id, repository, repositoryEndpoint); + } + public GetRepositoryEndpointResult build() { + final var o = new GetRepositoryEndpointResult(); + o.domain = domain; + o.domainOwner = domainOwner; + o.format = format; + o.id = id; + o.repository = repository; + o.repositoryEndpoint = repositoryEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/RepositoryExternalConnections.java b/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/RepositoryExternalConnections.java index c3e593c6ae1..e66f1c5ccf7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/RepositoryExternalConnections.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/RepositoryExternalConnections.java @@ -15,20 +15,11 @@ public final class RepositoryExternalConnections { * @return The name of the external connection associated with a repository. * */ - private final String externalConnectionName; - private final @Nullable String packageFormat; - private final @Nullable String status; - - @CustomType.Constructor - private RepositoryExternalConnections( - @CustomType.Parameter("externalConnectionName") String externalConnectionName, - @CustomType.Parameter("packageFormat") @Nullable String packageFormat, - @CustomType.Parameter("status") @Nullable String status) { - this.externalConnectionName = externalConnectionName; - this.packageFormat = packageFormat; - this.status = status; - } + private String externalConnectionName; + private @Nullable String packageFormat; + private @Nullable String status; + private RepositoryExternalConnections() {} /** * @return The name of the external connection associated with a repository. * @@ -50,16 +41,12 @@ public static Builder builder() { public static Builder builder(RepositoryExternalConnections defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String externalConnectionName; private @Nullable String packageFormat; private @Nullable String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RepositoryExternalConnections defaults) { Objects.requireNonNull(defaults); this.externalConnectionName = defaults.externalConnectionName; @@ -67,19 +54,27 @@ public Builder(RepositoryExternalConnections defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder externalConnectionName(String externalConnectionName) { this.externalConnectionName = Objects.requireNonNull(externalConnectionName); return this; } + @CustomType.Setter public Builder packageFormat(@Nullable String packageFormat) { this.packageFormat = packageFormat; return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; - } public RepositoryExternalConnections build() { - return new RepositoryExternalConnections(externalConnectionName, packageFormat, status); + } + public RepositoryExternalConnections build() { + final var o = new RepositoryExternalConnections(); + o.externalConnectionName = externalConnectionName; + o.packageFormat = packageFormat; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/RepositoryUpstream.java b/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/RepositoryUpstream.java index 151b6a97a0a..807377cad5d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/RepositoryUpstream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codeartifact/outputs/RepositoryUpstream.java @@ -13,13 +13,9 @@ public final class RepositoryUpstream { * @return The name of an upstream repository. * */ - private final String repositoryName; - - @CustomType.Constructor - private RepositoryUpstream(@CustomType.Parameter("repositoryName") String repositoryName) { - this.repositoryName = repositoryName; - } + private String repositoryName; + private RepositoryUpstream() {} /** * @return The name of an upstream repository. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RepositoryUpstream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String repositoryName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RepositoryUpstream defaults) { Objects.requireNonNull(defaults); this.repositoryName = defaults.repositoryName; } + @CustomType.Setter public Builder repositoryName(String repositoryName) { this.repositoryName = Objects.requireNonNull(repositoryName); return this; - } public RepositoryUpstream build() { - return new RepositoryUpstream(repositoryName); + } + public RepositoryUpstream build() { + final var o = new RepositoryUpstream(); + o.repositoryName = repositoryName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectArtifacts.java b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectArtifacts.java index d2ae79c1cb2..14919d7f033 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectArtifacts.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectArtifacts.java @@ -16,77 +16,54 @@ public final class ProjectArtifacts { * @return Artifact identifier. Must be the same specified inside the AWS CodeBuild build specification. * */ - private final @Nullable String artifactIdentifier; + private @Nullable String artifactIdentifier; /** * @return Specifies the bucket owner's access for objects that another account uploads to their Amazon S3 bucket. By default, only the account that uploads the objects to the bucket has access to these objects. This property allows you to give the bucket owner access to these objects. Valid values are `NONE`, `READ_ONLY`, and `FULL`. your CodeBuild service role must have the `s3:PutBucketAcl` permission. This permission allows CodeBuild to modify the access control list for the bucket. * */ - private final @Nullable String bucketOwnerAccess; + private @Nullable String bucketOwnerAccess; /** * @return Whether to disable encrypting output artifacts. If `type` is set to `NO_ARTIFACTS`, this value is ignored. Defaults to `false`. * */ - private final @Nullable Boolean encryptionDisabled; + private @Nullable Boolean encryptionDisabled; /** * @return Location of the source code from git or s3. * */ - private final @Nullable String location; + private @Nullable String location; /** * @return Name of the project. If `type` is set to `S3`, this is the name of the output artifact object * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Namespace to use in storing build artifacts. If `type` is set to `S3`, then valid values are `BUILD_ID` or `NONE`. * */ - private final @Nullable String namespaceType; + private @Nullable String namespaceType; /** * @return Whether a name specified in the build specification overrides the artifact name. * */ - private final @Nullable Boolean overrideArtifactName; + private @Nullable Boolean overrideArtifactName; /** * @return Type of build output artifact to create. If `type` is set to `S3`, valid values are `NONE`, `ZIP` * */ - private final @Nullable String packaging; + private @Nullable String packaging; /** * @return If `type` is set to `S3`, this is the path to the output artifact. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return Type of repository that contains the source code to be built. Valid values: `CODECOMMIT`, `CODEPIPELINE`, `GITHUB`, `GITHUB_ENTERPRISE`, `BITBUCKET`, `S3`, `NO_SOURCE`. * */ - private final String type; - - @CustomType.Constructor - private ProjectArtifacts( - @CustomType.Parameter("artifactIdentifier") @Nullable String artifactIdentifier, - @CustomType.Parameter("bucketOwnerAccess") @Nullable String bucketOwnerAccess, - @CustomType.Parameter("encryptionDisabled") @Nullable Boolean encryptionDisabled, - @CustomType.Parameter("location") @Nullable String location, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("namespaceType") @Nullable String namespaceType, - @CustomType.Parameter("overrideArtifactName") @Nullable Boolean overrideArtifactName, - @CustomType.Parameter("packaging") @Nullable String packaging, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("type") String type) { - this.artifactIdentifier = artifactIdentifier; - this.bucketOwnerAccess = bucketOwnerAccess; - this.encryptionDisabled = encryptionDisabled; - this.location = location; - this.name = name; - this.namespaceType = namespaceType; - this.overrideArtifactName = overrideArtifactName; - this.packaging = packaging; - this.path = path; - this.type = type; - } + private String type; + private ProjectArtifacts() {} /** * @return Artifact identifier. Must be the same specified inside the AWS CodeBuild build specification. * @@ -165,7 +142,7 @@ public static Builder builder() { public static Builder builder(ProjectArtifacts defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String artifactIdentifier; private @Nullable String bucketOwnerAccess; @@ -177,11 +154,7 @@ public static final class Builder { private @Nullable String packaging; private @Nullable String path; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProjectArtifacts defaults) { Objects.requireNonNull(defaults); this.artifactIdentifier = defaults.artifactIdentifier; @@ -196,47 +169,69 @@ public Builder(ProjectArtifacts defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder artifactIdentifier(@Nullable String artifactIdentifier) { this.artifactIdentifier = artifactIdentifier; return this; } + @CustomType.Setter public Builder bucketOwnerAccess(@Nullable String bucketOwnerAccess) { this.bucketOwnerAccess = bucketOwnerAccess; return this; } + @CustomType.Setter public Builder encryptionDisabled(@Nullable Boolean encryptionDisabled) { this.encryptionDisabled = encryptionDisabled; return this; } + @CustomType.Setter public Builder location(@Nullable String location) { this.location = location; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder namespaceType(@Nullable String namespaceType) { this.namespaceType = namespaceType; return this; } + @CustomType.Setter public Builder overrideArtifactName(@Nullable Boolean overrideArtifactName) { this.overrideArtifactName = overrideArtifactName; return this; } + @CustomType.Setter public Builder packaging(@Nullable String packaging) { this.packaging = packaging; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ProjectArtifacts build() { - return new ProjectArtifacts(artifactIdentifier, bucketOwnerAccess, encryptionDisabled, location, name, namespaceType, overrideArtifactName, packaging, path, type); + } + public ProjectArtifacts build() { + final var o = new ProjectArtifacts(); + o.artifactIdentifier = artifactIdentifier; + o.bucketOwnerAccess = bucketOwnerAccess; + o.encryptionDisabled = encryptionDisabled; + o.location = location; + o.name = name; + o.namespaceType = namespaceType; + o.overrideArtifactName = overrideArtifactName; + o.packaging = packaging; + o.path = path; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectBuildBatchConfig.java b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectBuildBatchConfig.java index f0e1565e81d..858e26a2566 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectBuildBatchConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectBuildBatchConfig.java @@ -18,35 +18,24 @@ public final class ProjectBuildBatchConfig { * @return Specifies if the build artifacts for the batch build should be combined into a single artifact location. * */ - private final @Nullable Boolean combineArtifacts; + private @Nullable Boolean combineArtifacts; /** * @return Specifies the restrictions for the batch build. * */ - private final @Nullable ProjectBuildBatchConfigRestrictions restrictions; + private @Nullable ProjectBuildBatchConfigRestrictions restrictions; /** * @return Specifies the service role ARN for the batch build project. * */ - private final String serviceRole; + private String serviceRole; /** * @return Specifies the maximum amount of time, in minutes, that the batch build must be completed in. * */ - private final @Nullable Integer timeoutInMins; - - @CustomType.Constructor - private ProjectBuildBatchConfig( - @CustomType.Parameter("combineArtifacts") @Nullable Boolean combineArtifacts, - @CustomType.Parameter("restrictions") @Nullable ProjectBuildBatchConfigRestrictions restrictions, - @CustomType.Parameter("serviceRole") String serviceRole, - @CustomType.Parameter("timeoutInMins") @Nullable Integer timeoutInMins) { - this.combineArtifacts = combineArtifacts; - this.restrictions = restrictions; - this.serviceRole = serviceRole; - this.timeoutInMins = timeoutInMins; - } + private @Nullable Integer timeoutInMins; + private ProjectBuildBatchConfig() {} /** * @return Specifies if the build artifacts for the batch build should be combined into a single artifact location. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(ProjectBuildBatchConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean combineArtifacts; private @Nullable ProjectBuildBatchConfigRestrictions restrictions; private String serviceRole; private @Nullable Integer timeoutInMins; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProjectBuildBatchConfig defaults) { Objects.requireNonNull(defaults); this.combineArtifacts = defaults.combineArtifacts; @@ -102,23 +87,33 @@ public Builder(ProjectBuildBatchConfig defaults) { this.timeoutInMins = defaults.timeoutInMins; } + @CustomType.Setter public Builder combineArtifacts(@Nullable Boolean combineArtifacts) { this.combineArtifacts = combineArtifacts; return this; } + @CustomType.Setter public Builder restrictions(@Nullable ProjectBuildBatchConfigRestrictions restrictions) { this.restrictions = restrictions; return this; } + @CustomType.Setter public Builder serviceRole(String serviceRole) { this.serviceRole = Objects.requireNonNull(serviceRole); return this; } + @CustomType.Setter public Builder timeoutInMins(@Nullable Integer timeoutInMins) { this.timeoutInMins = timeoutInMins; return this; - } public ProjectBuildBatchConfig build() { - return new ProjectBuildBatchConfig(combineArtifacts, restrictions, serviceRole, timeoutInMins); + } + public ProjectBuildBatchConfig build() { + final var o = new ProjectBuildBatchConfig(); + o.combineArtifacts = combineArtifacts; + o.restrictions = restrictions; + o.serviceRole = serviceRole; + o.timeoutInMins = timeoutInMins; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectBuildBatchConfigRestrictions.java b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectBuildBatchConfigRestrictions.java index 46dfff7c872..36dd438c817 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectBuildBatchConfigRestrictions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectBuildBatchConfigRestrictions.java @@ -17,21 +17,14 @@ public final class ProjectBuildBatchConfigRestrictions { * @return An array of strings that specify the compute types that are allowed for the batch build. See [Build environment compute types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) in the AWS CodeBuild User Guide for these values. * */ - private final @Nullable List computeTypesAlloweds; + private @Nullable List computeTypesAlloweds; /** * @return Specifies the maximum number of builds allowed. * */ - private final @Nullable Integer maximumBuildsAllowed; - - @CustomType.Constructor - private ProjectBuildBatchConfigRestrictions( - @CustomType.Parameter("computeTypesAlloweds") @Nullable List computeTypesAlloweds, - @CustomType.Parameter("maximumBuildsAllowed") @Nullable Integer maximumBuildsAllowed) { - this.computeTypesAlloweds = computeTypesAlloweds; - this.maximumBuildsAllowed = maximumBuildsAllowed; - } + private @Nullable Integer maximumBuildsAllowed; + private ProjectBuildBatchConfigRestrictions() {} /** * @return An array of strings that specify the compute types that are allowed for the batch build. See [Build environment compute types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) in the AWS CodeBuild User Guide for these values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(ProjectBuildBatchConfigRestrictions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List computeTypesAlloweds; private @Nullable Integer maximumBuildsAllowed; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProjectBuildBatchConfigRestrictions defaults) { Objects.requireNonNull(defaults); this.computeTypesAlloweds = defaults.computeTypesAlloweds; this.maximumBuildsAllowed = defaults.maximumBuildsAllowed; } + @CustomType.Setter public Builder computeTypesAlloweds(@Nullable List computeTypesAlloweds) { this.computeTypesAlloweds = computeTypesAlloweds; return this; @@ -76,11 +66,16 @@ public Builder computeTypesAlloweds(@Nullable List computeTypesAlloweds) public Builder computeTypesAlloweds(String... computeTypesAlloweds) { return computeTypesAlloweds(List.of(computeTypesAlloweds)); } + @CustomType.Setter public Builder maximumBuildsAllowed(@Nullable Integer maximumBuildsAllowed) { this.maximumBuildsAllowed = maximumBuildsAllowed; return this; - } public ProjectBuildBatchConfigRestrictions build() { - return new ProjectBuildBatchConfigRestrictions(computeTypesAlloweds, maximumBuildsAllowed); + } + public ProjectBuildBatchConfigRestrictions build() { + final var o = new ProjectBuildBatchConfigRestrictions(); + o.computeTypesAlloweds = computeTypesAlloweds; + o.maximumBuildsAllowed = maximumBuildsAllowed; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectCache.java b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectCache.java index 030dc66bd93..f483a5bb18d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectCache.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectCache.java @@ -16,28 +16,19 @@ public final class ProjectCache { * @return Location of the source code from git or s3. * */ - private final @Nullable String location; + private @Nullable String location; /** * @return Specifies settings that AWS CodeBuild uses to store and reuse build dependencies. Valid values: `LOCAL_SOURCE_CACHE`, `LOCAL_DOCKER_LAYER_CACHE`, `LOCAL_CUSTOM_CACHE`. * */ - private final @Nullable List modes; + private @Nullable List modes; /** * @return Type of repository that contains the source code to be built. Valid values: `CODECOMMIT`, `CODEPIPELINE`, `GITHUB`, `GITHUB_ENTERPRISE`, `BITBUCKET`, `S3`, `NO_SOURCE`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private ProjectCache( - @CustomType.Parameter("location") @Nullable String location, - @CustomType.Parameter("modes") @Nullable List modes, - @CustomType.Parameter("type") @Nullable String type) { - this.location = location; - this.modes = modes; - this.type = type; - } + private @Nullable String type; + private ProjectCache() {} /** * @return Location of the source code from git or s3. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ProjectCache defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String location; private @Nullable List modes; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProjectCache defaults) { Objects.requireNonNull(defaults); this.location = defaults.location; @@ -84,10 +71,12 @@ public Builder(ProjectCache defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder location(@Nullable String location) { this.location = location; return this; } + @CustomType.Setter public Builder modes(@Nullable List modes) { this.modes = modes; return this; @@ -95,11 +84,17 @@ public Builder modes(@Nullable List modes) { public Builder modes(String... modes) { return modes(List.of(modes)); } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public ProjectCache build() { - return new ProjectCache(location, modes, type); + } + public ProjectCache build() { + final var o = new ProjectCache(); + o.location = location; + o.modes = modes; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectEnvironment.java b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectEnvironment.java index e9fc34503b6..e6ac0b0c69f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectEnvironment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ProjectEnvironment.java @@ -19,63 +19,44 @@ public final class ProjectEnvironment { * @return ARN of the S3 bucket, path prefix and object key that contains the PEM-encoded certificate. * */ - private final @Nullable String certificate; + private @Nullable String certificate; /** * @return Information about the compute resources the build project will use. Valid values: `BUILD_GENERAL1_SMALL`, `BUILD_GENERAL1_MEDIUM`, `BUILD_GENERAL1_LARGE`, `BUILD_GENERAL1_2XLARGE`. `BUILD_GENERAL1_SMALL` is only valid if `type` is set to `LINUX_CONTAINER`. When `type` is set to `LINUX_GPU_CONTAINER`, `compute_type` must be `BUILD_GENERAL1_LARGE`. * */ - private final String computeType; + private String computeType; /** * @return Configuration block. Detailed below. * */ - private final @Nullable List environmentVariables; + private @Nullable List environmentVariables; /** * @return Docker image to use for this build project. Valid values include [Docker images provided by CodeBuild](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html) (e.g `aws/codebuild/standard:2.0`), [Docker Hub images](https://hub.docker.com/) (e.g., `nginx/nginx:latest`), and full Docker repository URIs such as those for ECR (e.g., `137112412989.dkr.ecr.us-west-2.amazonaws.com/amazonlinux:latest`). * */ - private final String image; + private String image; /** * @return Type of credentials AWS CodeBuild uses to pull images in your build. Valid values: `CODEBUILD`, `SERVICE_ROLE`. When you use a cross-account or private registry image, you must use SERVICE_ROLE credentials. When you use an AWS CodeBuild curated image, you must use CodeBuild credentials. Defaults to `CODEBUILD`. * */ - private final @Nullable String imagePullCredentialsType; + private @Nullable String imagePullCredentialsType; /** * @return Whether to enable running the Docker daemon inside a Docker container. Defaults to `false`. * */ - private final @Nullable Boolean privilegedMode; + private @Nullable Boolean privilegedMode; /** * @return Configuration block. Detailed below. * */ - private final @Nullable ProjectEnvironmentRegistryCredential registryCredential; + private @Nullable ProjectEnvironmentRegistryCredential registryCredential; /** * @return Type of repository that contains the source code to be built. Valid values: `CODECOMMIT`, `CODEPIPELINE`, `GITHUB`, `GITHUB_ENTERPRISE`, `BITBUCKET`, `S3`, `NO_SOURCE`. * */ - private final String type; - - @CustomType.Constructor - private ProjectEnvironment( - @CustomType.Parameter("certificate") @Nullable String certificate, - @CustomType.Parameter("computeType") String computeType, - @CustomType.Parameter("environmentVariables") @Nullable List environmentVariables, - @CustomType.Parameter("image") String image, - @CustomType.Parameter("imagePullCredentialsType") @Nullable String imagePullCredentialsType, - @CustomType.Parameter("privilegedMode") @Nullable Boolean privilegedMode, - @CustomType.Parameter("registryCredential") @Nullable ProjectEnvironmentRegistryCredential registryCredential, - @CustomType.Parameter("type") String type) { - this.certificate = certificate; - this.computeType = computeType; - this.environmentVariables = environmentVariables; - this.image = image; - this.imagePullCredentialsType = imagePullCredentialsType; - this.privilegedMode = privilegedMode; - this.registryCredential = registryCredential; - this.type = type; - } + private String type; + private ProjectEnvironment() {} /** * @return ARN of the S3 bucket, path prefix and object key that contains the PEM-encoded certificate. * @@ -140,7 +121,7 @@ public static Builder builder() { public static Builder builder(ProjectEnvironment defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String certificate; private String computeType; @@ -150,11 +131,7 @@ public static final class Builder { private @Nullable Boolean privilegedMode; private @Nullable ProjectEnvironmentRegistryCredential registryCredential; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProjectEnvironment defaults) { Objects.requireNonNull(defaults); this.certificate = defaults.certificate; @@ -167,14 +144,17 @@ public Builder(ProjectEnvironment defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder certificate(@Nullable String certificate) { this.certificate = certificate; return this; } + @CustomType.Setter public Builder computeType(String computeType) { this.computeType = Objects.requireNonNull(computeType); return this; } + @CustomType.Setter public Builder environmentVariables(@Nullable List environmentVariables) { this.environmentVariables = environmentVariables; return this; @@ -182,27 +162,42 @@ public Builder environmentVariables(@Nullable List securityGroupIds; + private List securityGroupIds; /** * @return Subnet IDs within which to run builds. * */ - private final List subnets; + private List subnets; /** * @return ID of the VPC within which to run builds. * */ - private final String vpcId; - - @CustomType.Constructor - private ProjectVpcConfig( - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnets") List subnets, - @CustomType.Parameter("vpcId") String vpcId) { - this.securityGroupIds = securityGroupIds; - this.subnets = subnets; - this.vpcId = vpcId; - } + private String vpcId; + private ProjectVpcConfig() {} /** * @return Security group IDs to assign to running builds. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(ProjectVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List securityGroupIds; private List subnets; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProjectVpcConfig defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; @@ -82,6 +69,7 @@ public Builder(ProjectVpcConfig defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -89,6 +77,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; @@ -96,11 +85,17 @@ public Builder subnets(List subnets) { public Builder subnets(String... subnets) { return subnets(List.of(subnets)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public ProjectVpcConfig build() { - return new ProjectVpcConfig(securityGroupIds, subnets, vpcId); + } + public ProjectVpcConfig build() { + final var o = new ProjectVpcConfig(); + o.securityGroupIds = securityGroupIds; + o.subnets = subnets; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ReportGroupExportConfig.java b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ReportGroupExportConfig.java index fbaf130e5fb..13a914dfa53 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ReportGroupExportConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ReportGroupExportConfig.java @@ -16,21 +16,14 @@ public final class ReportGroupExportConfig { * @return contains information about the S3 bucket where the run of a report is exported. see S3 Destination documented below. * */ - private final @Nullable ReportGroupExportConfigS3Destination s3Destination; + private @Nullable ReportGroupExportConfigS3Destination s3Destination; /** * @return The export configuration type. Valid values are `S3` and `NO_EXPORT`. * */ - private final String type; - - @CustomType.Constructor - private ReportGroupExportConfig( - @CustomType.Parameter("s3Destination") @Nullable ReportGroupExportConfigS3Destination s3Destination, - @CustomType.Parameter("type") String type) { - this.s3Destination = s3Destination; - this.type = type; - } + private String type; + private ReportGroupExportConfig() {} /** * @return contains information about the S3 bucket where the run of a report is exported. see S3 Destination documented below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ReportGroupExportConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ReportGroupExportConfigS3Destination s3Destination; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReportGroupExportConfig defaults) { Objects.requireNonNull(defaults); this.s3Destination = defaults.s3Destination; this.type = defaults.type; } + @CustomType.Setter public Builder s3Destination(@Nullable ReportGroupExportConfigS3Destination s3Destination) { this.s3Destination = s3Destination; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ReportGroupExportConfig build() { - return new ReportGroupExportConfig(s3Destination, type); + } + public ReportGroupExportConfig build() { + final var o = new ReportGroupExportConfig(); + o.s3Destination = s3Destination; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ReportGroupExportConfigS3Destination.java b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ReportGroupExportConfigS3Destination.java index 0b6ec61a248..a6d16c4deee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ReportGroupExportConfigS3Destination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/ReportGroupExportConfigS3Destination.java @@ -16,43 +16,30 @@ public final class ReportGroupExportConfigS3Destination { * @return The name of the S3 bucket where the raw data of a report are exported. * */ - private final String bucket; + private String bucket; /** * @return A boolean value that specifies if the results of a report are encrypted. * **Note: the API does not currently allow setting encryption as disabled** * */ - private final @Nullable Boolean encryptionDisabled; + private @Nullable Boolean encryptionDisabled; /** * @return The encryption key for the report's encrypted raw data. The KMS key ARN. * */ - private final String encryptionKey; + private String encryptionKey; /** * @return The type of build output artifact to create. Valid values are: `NONE` (default) and `ZIP`. * */ - private final @Nullable String packaging; + private @Nullable String packaging; /** * @return The path to the exported report's raw data results. * */ - private final @Nullable String path; - - @CustomType.Constructor - private ReportGroupExportConfigS3Destination( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("encryptionDisabled") @Nullable Boolean encryptionDisabled, - @CustomType.Parameter("encryptionKey") String encryptionKey, - @CustomType.Parameter("packaging") @Nullable String packaging, - @CustomType.Parameter("path") @Nullable String path) { - this.bucket = bucket; - this.encryptionDisabled = encryptionDisabled; - this.encryptionKey = encryptionKey; - this.packaging = packaging; - this.path = path; - } + private @Nullable String path; + private ReportGroupExportConfigS3Destination() {} /** * @return The name of the S3 bucket where the raw data of a report are exported. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(ReportGroupExportConfigS3Destination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private @Nullable Boolean encryptionDisabled; private String encryptionKey; private @Nullable String packaging; private @Nullable String path; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReportGroupExportConfigS3Destination defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -118,27 +101,39 @@ public Builder(ReportGroupExportConfigS3Destination defaults) { this.path = defaults.path; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder encryptionDisabled(@Nullable Boolean encryptionDisabled) { this.encryptionDisabled = encryptionDisabled; return this; } + @CustomType.Setter public Builder encryptionKey(String encryptionKey) { this.encryptionKey = Objects.requireNonNull(encryptionKey); return this; } + @CustomType.Setter public Builder packaging(@Nullable String packaging) { this.packaging = packaging; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; - } public ReportGroupExportConfigS3Destination build() { - return new ReportGroupExportConfigS3Destination(bucket, encryptionDisabled, encryptionKey, packaging, path); + } + public ReportGroupExportConfigS3Destination build() { + final var o = new ReportGroupExportConfigS3Destination(); + o.bucket = bucket; + o.encryptionDisabled = encryptionDisabled; + o.encryptionKey = encryptionKey; + o.packaging = packaging; + o.path = path; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/WebhookFilterGroup.java b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/WebhookFilterGroup.java index 4446266a1b9..e8c27d79b33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/WebhookFilterGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/WebhookFilterGroup.java @@ -15,13 +15,9 @@ public final class WebhookFilterGroup { * @return A webhook filter for the group. Filter blocks are documented below. * */ - private final @Nullable List filters; - - @CustomType.Constructor - private WebhookFilterGroup(@CustomType.Parameter("filters") @Nullable List filters) { - this.filters = filters; - } + private @Nullable List filters; + private WebhookFilterGroup() {} /** * @return A webhook filter for the group. Filter blocks are documented below. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(WebhookFilterGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebhookFilterGroup defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; } public Builder filters(WebhookFilterGroupFilter... filters) { return filters(List.of(filters)); - } public WebhookFilterGroup build() { - return new WebhookFilterGroup(filters); + } + public WebhookFilterGroup build() { + final var o = new WebhookFilterGroup(); + o.filters = filters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/WebhookFilterGroupFilter.java b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/WebhookFilterGroupFilter.java index 3c06096d904..dd98ef79d09 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/WebhookFilterGroupFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codebuild/outputs/WebhookFilterGroupFilter.java @@ -16,28 +16,19 @@ public final class WebhookFilterGroupFilter { * @return If set to `true`, the specified filter does *not* trigger a build. Defaults to `false`. * */ - private final @Nullable Boolean excludeMatchedPattern; + private @Nullable Boolean excludeMatchedPattern; /** * @return For a filter that uses `EVENT` type, a comma-separated string that specifies one event: `PUSH`, `PULL_REQUEST_CREATED`, `PULL_REQUEST_UPDATED`, `PULL_REQUEST_REOPENED`. `PULL_REQUEST_MERGED` works with GitHub & GitHub Enterprise only. For a filter that uses any of the other filter types, a regular expression. * */ - private final String pattern; + private String pattern; /** * @return The webhook filter group's type. Valid values for this parameter are: `EVENT`, `BASE_REF`, `HEAD_REF`, `ACTOR_ACCOUNT_ID`, `FILE_PATH`, `COMMIT_MESSAGE`. At least one filter group must specify `EVENT` as its type. * */ - private final String type; - - @CustomType.Constructor - private WebhookFilterGroupFilter( - @CustomType.Parameter("excludeMatchedPattern") @Nullable Boolean excludeMatchedPattern, - @CustomType.Parameter("pattern") String pattern, - @CustomType.Parameter("type") String type) { - this.excludeMatchedPattern = excludeMatchedPattern; - this.pattern = pattern; - this.type = type; - } + private String type; + private WebhookFilterGroupFilter() {} /** * @return If set to `true`, the specified filter does *not* trigger a build. Defaults to `false`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(WebhookFilterGroupFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean excludeMatchedPattern; private String pattern; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebhookFilterGroupFilter defaults) { Objects.requireNonNull(defaults); this.excludeMatchedPattern = defaults.excludeMatchedPattern; @@ -84,19 +71,27 @@ public Builder(WebhookFilterGroupFilter defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder excludeMatchedPattern(@Nullable Boolean excludeMatchedPattern) { this.excludeMatchedPattern = excludeMatchedPattern; return this; } + @CustomType.Setter public Builder pattern(String pattern) { this.pattern = Objects.requireNonNull(pattern); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebhookFilterGroupFilter build() { - return new WebhookFilterGroupFilter(excludeMatchedPattern, pattern, type); + } + public WebhookFilterGroupFilter build() { + final var o = new WebhookFilterGroupFilter(); + o.excludeMatchedPattern = excludeMatchedPattern; + o.pattern = pattern; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codecommit/outputs/GetApprovalRuleTemplateResult.java b/sdk/java/src/main/java/com/pulumi/aws/codecommit/outputs/GetApprovalRuleTemplateResult.java index 7ccd6319789..34a48ace63b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codecommit/outputs/GetApprovalRuleTemplateResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codecommit/outputs/GetApprovalRuleTemplateResult.java @@ -13,66 +13,45 @@ public final class GetApprovalRuleTemplateResult { * @return The ID of the approval rule template. * */ - private final String approvalRuleTemplateId; + private String approvalRuleTemplateId; /** * @return The content of the approval rule template. * */ - private final String content; + private String content; /** * @return The date the approval rule template was created, in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8). * */ - private final String creationDate; + private String creationDate; /** * @return The description of the approval rule template. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The date the approval rule template was most recently changed, in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8). * */ - private final String lastModifiedDate; + private String lastModifiedDate; /** * @return The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule template. * */ - private final String lastModifiedUser; - private final String name; + private String lastModifiedUser; + private String name; /** * @return The SHA-256 hash signature for the content of the approval rule template. * */ - private final String ruleContentSha256; - - @CustomType.Constructor - private GetApprovalRuleTemplateResult( - @CustomType.Parameter("approvalRuleTemplateId") String approvalRuleTemplateId, - @CustomType.Parameter("content") String content, - @CustomType.Parameter("creationDate") String creationDate, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastModifiedDate") String lastModifiedDate, - @CustomType.Parameter("lastModifiedUser") String lastModifiedUser, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("ruleContentSha256") String ruleContentSha256) { - this.approvalRuleTemplateId = approvalRuleTemplateId; - this.content = content; - this.creationDate = creationDate; - this.description = description; - this.id = id; - this.lastModifiedDate = lastModifiedDate; - this.lastModifiedUser = lastModifiedUser; - this.name = name; - this.ruleContentSha256 = ruleContentSha256; - } + private String ruleContentSha256; + private GetApprovalRuleTemplateResult() {} /** * @return The ID of the approval rule template. * @@ -140,7 +119,7 @@ public static Builder builder() { public static Builder builder(GetApprovalRuleTemplateResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String approvalRuleTemplateId; private String content; @@ -151,11 +130,7 @@ public static final class Builder { private String lastModifiedUser; private String name; private String ruleContentSha256; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetApprovalRuleTemplateResult defaults) { Objects.requireNonNull(defaults); this.approvalRuleTemplateId = defaults.approvalRuleTemplateId; @@ -169,43 +144,63 @@ public Builder(GetApprovalRuleTemplateResult defaults) { this.ruleContentSha256 = defaults.ruleContentSha256; } + @CustomType.Setter public Builder approvalRuleTemplateId(String approvalRuleTemplateId) { this.approvalRuleTemplateId = Objects.requireNonNull(approvalRuleTemplateId); return this; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder creationDate(String creationDate) { this.creationDate = Objects.requireNonNull(creationDate); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastModifiedDate(String lastModifiedDate) { this.lastModifiedDate = Objects.requireNonNull(lastModifiedDate); return this; } + @CustomType.Setter public Builder lastModifiedUser(String lastModifiedUser) { this.lastModifiedUser = Objects.requireNonNull(lastModifiedUser); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder ruleContentSha256(String ruleContentSha256) { this.ruleContentSha256 = Objects.requireNonNull(ruleContentSha256); return this; - } public GetApprovalRuleTemplateResult build() { - return new GetApprovalRuleTemplateResult(approvalRuleTemplateId, content, creationDate, description, id, lastModifiedDate, lastModifiedUser, name, ruleContentSha256); + } + public GetApprovalRuleTemplateResult build() { + final var o = new GetApprovalRuleTemplateResult(); + o.approvalRuleTemplateId = approvalRuleTemplateId; + o.content = content; + o.creationDate = creationDate; + o.description = description; + o.id = id; + o.lastModifiedDate = lastModifiedDate; + o.lastModifiedUser = lastModifiedUser; + o.name = name; + o.ruleContentSha256 = ruleContentSha256; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codecommit/outputs/GetRepositoryResult.java b/sdk/java/src/main/java/com/pulumi/aws/codecommit/outputs/GetRepositoryResult.java index b58e0c1ce1c..8ff58b01b7d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codecommit/outputs/GetRepositoryResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codecommit/outputs/GetRepositoryResult.java @@ -13,45 +13,30 @@ public final class GetRepositoryResult { * @return The ARN of the repository * */ - private final String arn; + private String arn; /** * @return The URL to use for cloning the repository over HTTPS. * */ - private final String cloneUrlHttp; + private String cloneUrlHttp; /** * @return The URL to use for cloning the repository over SSH. * */ - private final String cloneUrlSsh; + private String cloneUrlSsh; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The ID of the repository * */ - private final String repositoryId; - private final String repositoryName; - - @CustomType.Constructor - private GetRepositoryResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("cloneUrlHttp") String cloneUrlHttp, - @CustomType.Parameter("cloneUrlSsh") String cloneUrlSsh, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("repositoryId") String repositoryId, - @CustomType.Parameter("repositoryName") String repositoryName) { - this.arn = arn; - this.cloneUrlHttp = cloneUrlHttp; - this.cloneUrlSsh = cloneUrlSsh; - this.id = id; - this.repositoryId = repositoryId; - this.repositoryName = repositoryName; - } + private String repositoryId; + private String repositoryName; + private GetRepositoryResult() {} /** * @return The ARN of the repository * @@ -98,7 +83,7 @@ public static Builder builder() { public static Builder builder(GetRepositoryResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String cloneUrlHttp; @@ -106,11 +91,7 @@ public static final class Builder { private String id; private String repositoryId; private String repositoryName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRepositoryResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -121,31 +102,45 @@ public Builder(GetRepositoryResult defaults) { this.repositoryName = defaults.repositoryName; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder cloneUrlHttp(String cloneUrlHttp) { this.cloneUrlHttp = Objects.requireNonNull(cloneUrlHttp); return this; } + @CustomType.Setter public Builder cloneUrlSsh(String cloneUrlSsh) { this.cloneUrlSsh = Objects.requireNonNull(cloneUrlSsh); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder repositoryId(String repositoryId) { this.repositoryId = Objects.requireNonNull(repositoryId); return this; } + @CustomType.Setter public Builder repositoryName(String repositoryName) { this.repositoryName = Objects.requireNonNull(repositoryName); return this; - } public GetRepositoryResult build() { - return new GetRepositoryResult(arn, cloneUrlHttp, cloneUrlSsh, id, repositoryId, repositoryName); + } + public GetRepositoryResult build() { + final var o = new GetRepositoryResult(); + o.arn = arn; + o.cloneUrlHttp = cloneUrlHttp; + o.cloneUrlSsh = cloneUrlSsh; + o.id = id; + o.repositoryId = repositoryId; + o.repositoryName = repositoryName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codecommit/outputs/TriggerTrigger.java b/sdk/java/src/main/java/com/pulumi/aws/codecommit/outputs/TriggerTrigger.java index 8709876a4a2..8fc80d59379 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codecommit/outputs/TriggerTrigger.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codecommit/outputs/TriggerTrigger.java @@ -16,42 +16,29 @@ public final class TriggerTrigger { * @return The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches. * */ - private final @Nullable List branches; + private @Nullable List branches; /** * @return Any custom data associated with the trigger that will be included in the information sent to the target of the trigger. * */ - private final @Nullable String customData; + private @Nullable String customData; /** * @return The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS). * */ - private final String destinationArn; + private String destinationArn; /** * @return The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events. Event types include: `all`, `updateReference`, `createReference`, `deleteReference`. * */ - private final List events; + private List events; /** * @return The name of the trigger. * */ - private final String name; - - @CustomType.Constructor - private TriggerTrigger( - @CustomType.Parameter("branches") @Nullable List branches, - @CustomType.Parameter("customData") @Nullable String customData, - @CustomType.Parameter("destinationArn") String destinationArn, - @CustomType.Parameter("events") List events, - @CustomType.Parameter("name") String name) { - this.branches = branches; - this.customData = customData; - this.destinationArn = destinationArn; - this.events = events; - this.name = name; - } + private String name; + private TriggerTrigger() {} /** * @return The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(TriggerTrigger defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List branches; private @Nullable String customData; private String destinationArn; private List events; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TriggerTrigger defaults) { Objects.requireNonNull(defaults); this.branches = defaults.branches; @@ -116,6 +99,7 @@ public Builder(TriggerTrigger defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder branches(@Nullable List branches) { this.branches = branches; return this; @@ -123,14 +107,17 @@ public Builder branches(@Nullable List branches) { public Builder branches(String... branches) { return branches(List.of(branches)); } + @CustomType.Setter public Builder customData(@Nullable String customData) { this.customData = customData; return this; } + @CustomType.Setter public Builder destinationArn(String destinationArn) { this.destinationArn = Objects.requireNonNull(destinationArn); return this; } + @CustomType.Setter public Builder events(List events) { this.events = Objects.requireNonNull(events); return this; @@ -138,11 +125,19 @@ public Builder events(List events) { public Builder events(String... events) { return events(List.of(events)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public TriggerTrigger build() { - return new TriggerTrigger(branches, customData, destinationArn, events, name); + } + public TriggerTrigger build() { + final var o = new TriggerTrigger(); + o.branches = branches; + o.customData = customData; + o.destinationArn = destinationArn; + o.events = events; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigMinimumHealthyHosts.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigMinimumHealthyHosts.java index 4c04a4dbed5..bccb8e18bf1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigMinimumHealthyHosts.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigMinimumHealthyHosts.java @@ -16,7 +16,7 @@ public final class DeploymentConfigMinimumHealthyHosts { * @return The type can either be `FLEET_PERCENT` or `HOST_COUNT`. * */ - private final @Nullable String type; + private @Nullable String type; /** * @return The value when the type is `FLEET_PERCENT` represents the minimum number of healthy instances as * a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the @@ -24,16 +24,9 @@ public final class DeploymentConfigMinimumHealthyHosts { * When the type is `HOST_COUNT`, the value represents the minimum number of healthy instances as an absolute value. * */ - private final @Nullable Integer value; - - @CustomType.Constructor - private DeploymentConfigMinimumHealthyHosts( - @CustomType.Parameter("type") @Nullable String type, - @CustomType.Parameter("value") @Nullable Integer value) { - this.type = type; - this.value = value; - } + private @Nullable Integer value; + private DeploymentConfigMinimumHealthyHosts() {} /** * @return The type can either be `FLEET_PERCENT` or `HOST_COUNT`. * @@ -59,30 +52,32 @@ public static Builder builder() { public static Builder builder(DeploymentConfigMinimumHealthyHosts defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String type; private @Nullable Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentConfigMinimumHealthyHosts defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.value = defaults.value; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; } + @CustomType.Setter public Builder value(@Nullable Integer value) { this.value = value; return this; - } public DeploymentConfigMinimumHealthyHosts build() { - return new DeploymentConfigMinimumHealthyHosts(type, value); + } + public DeploymentConfigMinimumHealthyHosts build() { + final var o = new DeploymentConfigMinimumHealthyHosts(); + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigTrafficRoutingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigTrafficRoutingConfig.java index d3b3a3f1c31..5723401772e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigTrafficRoutingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigTrafficRoutingConfig.java @@ -17,28 +17,19 @@ public final class DeploymentConfigTrafficRoutingConfig { * @return The time based canary configuration information. If `type` is `TimeBasedLinear`, use `time_based_linear` instead. * */ - private final @Nullable DeploymentConfigTrafficRoutingConfigTimeBasedCanary timeBasedCanary; + private @Nullable DeploymentConfigTrafficRoutingConfigTimeBasedCanary timeBasedCanary; /** * @return The time based linear configuration information. If `type` is `TimeBasedCanary`, use `time_based_canary` instead. * */ - private final @Nullable DeploymentConfigTrafficRoutingConfigTimeBasedLinear timeBasedLinear; + private @Nullable DeploymentConfigTrafficRoutingConfigTimeBasedLinear timeBasedLinear; /** * @return Type of traffic routing config. One of `TimeBasedCanary`, `TimeBasedLinear`, `AllAtOnce`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private DeploymentConfigTrafficRoutingConfig( - @CustomType.Parameter("timeBasedCanary") @Nullable DeploymentConfigTrafficRoutingConfigTimeBasedCanary timeBasedCanary, - @CustomType.Parameter("timeBasedLinear") @Nullable DeploymentConfigTrafficRoutingConfigTimeBasedLinear timeBasedLinear, - @CustomType.Parameter("type") @Nullable String type) { - this.timeBasedCanary = timeBasedCanary; - this.timeBasedLinear = timeBasedLinear; - this.type = type; - } + private @Nullable String type; + private DeploymentConfigTrafficRoutingConfig() {} /** * @return The time based canary configuration information. If `type` is `TimeBasedLinear`, use `time_based_linear` instead. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(DeploymentConfigTrafficRoutingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DeploymentConfigTrafficRoutingConfigTimeBasedCanary timeBasedCanary; private @Nullable DeploymentConfigTrafficRoutingConfigTimeBasedLinear timeBasedLinear; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentConfigTrafficRoutingConfig defaults) { Objects.requireNonNull(defaults); this.timeBasedCanary = defaults.timeBasedCanary; @@ -85,19 +72,27 @@ public Builder(DeploymentConfigTrafficRoutingConfig defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder timeBasedCanary(@Nullable DeploymentConfigTrafficRoutingConfigTimeBasedCanary timeBasedCanary) { this.timeBasedCanary = timeBasedCanary; return this; } + @CustomType.Setter public Builder timeBasedLinear(@Nullable DeploymentConfigTrafficRoutingConfigTimeBasedLinear timeBasedLinear) { this.timeBasedLinear = timeBasedLinear; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public DeploymentConfigTrafficRoutingConfig build() { - return new DeploymentConfigTrafficRoutingConfig(timeBasedCanary, timeBasedLinear, type); + } + public DeploymentConfigTrafficRoutingConfig build() { + final var o = new DeploymentConfigTrafficRoutingConfig(); + o.timeBasedCanary = timeBasedCanary; + o.timeBasedLinear = timeBasedLinear; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigTrafficRoutingConfigTimeBasedCanary.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigTrafficRoutingConfigTimeBasedCanary.java index f9f26f0f923..3639ff2baaa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigTrafficRoutingConfigTimeBasedCanary.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigTrafficRoutingConfigTimeBasedCanary.java @@ -15,21 +15,14 @@ public final class DeploymentConfigTrafficRoutingConfigTimeBasedCanary { * @return The number of minutes between the first and second traffic shifts of a `TimeBasedCanary` deployment. * */ - private final @Nullable Integer interval; + private @Nullable Integer interval; /** * @return The percentage of traffic to shift in the first increment of a `TimeBasedCanary` deployment. * */ - private final @Nullable Integer percentage; - - @CustomType.Constructor - private DeploymentConfigTrafficRoutingConfigTimeBasedCanary( - @CustomType.Parameter("interval") @Nullable Integer interval, - @CustomType.Parameter("percentage") @Nullable Integer percentage) { - this.interval = interval; - this.percentage = percentage; - } + private @Nullable Integer percentage; + private DeploymentConfigTrafficRoutingConfigTimeBasedCanary() {} /** * @return The number of minutes between the first and second traffic shifts of a `TimeBasedCanary` deployment. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DeploymentConfigTrafficRoutingConfigTimeBasedCanary defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer interval; private @Nullable Integer percentage; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentConfigTrafficRoutingConfigTimeBasedCanary defaults) { Objects.requireNonNull(defaults); this.interval = defaults.interval; this.percentage = defaults.percentage; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; } + @CustomType.Setter public Builder percentage(@Nullable Integer percentage) { this.percentage = percentage; return this; - } public DeploymentConfigTrafficRoutingConfigTimeBasedCanary build() { - return new DeploymentConfigTrafficRoutingConfigTimeBasedCanary(interval, percentage); + } + public DeploymentConfigTrafficRoutingConfigTimeBasedCanary build() { + final var o = new DeploymentConfigTrafficRoutingConfigTimeBasedCanary(); + o.interval = interval; + o.percentage = percentage; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigTrafficRoutingConfigTimeBasedLinear.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigTrafficRoutingConfigTimeBasedLinear.java index e2b2f5edf4b..d33321b7d94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigTrafficRoutingConfigTimeBasedLinear.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentConfigTrafficRoutingConfigTimeBasedLinear.java @@ -15,21 +15,14 @@ public final class DeploymentConfigTrafficRoutingConfigTimeBasedLinear { * @return The number of minutes between each incremental traffic shift of a `TimeBasedLinear` deployment. * */ - private final @Nullable Integer interval; + private @Nullable Integer interval; /** * @return The percentage of traffic that is shifted at the start of each increment of a `TimeBasedLinear` deployment. * */ - private final @Nullable Integer percentage; - - @CustomType.Constructor - private DeploymentConfigTrafficRoutingConfigTimeBasedLinear( - @CustomType.Parameter("interval") @Nullable Integer interval, - @CustomType.Parameter("percentage") @Nullable Integer percentage) { - this.interval = interval; - this.percentage = percentage; - } + private @Nullable Integer percentage; + private DeploymentConfigTrafficRoutingConfigTimeBasedLinear() {} /** * @return The number of minutes between each incremental traffic shift of a `TimeBasedLinear` deployment. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DeploymentConfigTrafficRoutingConfigTimeBasedLinear defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer interval; private @Nullable Integer percentage; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentConfigTrafficRoutingConfigTimeBasedLinear defaults) { Objects.requireNonNull(defaults); this.interval = defaults.interval; this.percentage = defaults.percentage; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; } + @CustomType.Setter public Builder percentage(@Nullable Integer percentage) { this.percentage = percentage; return this; - } public DeploymentConfigTrafficRoutingConfigTimeBasedLinear build() { - return new DeploymentConfigTrafficRoutingConfigTimeBasedLinear(interval, percentage); + } + public DeploymentConfigTrafficRoutingConfigTimeBasedLinear build() { + final var o = new DeploymentConfigTrafficRoutingConfigTimeBasedLinear(); + o.interval = interval; + o.percentage = percentage; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupAlarmConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupAlarmConfiguration.java index a2c9f3b45cd..210a14c3bd4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupAlarmConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupAlarmConfiguration.java @@ -17,30 +17,21 @@ public final class DeploymentGroupAlarmConfiguration { * @return A list of alarms configured for the deployment group. _A maximum of 10 alarms can be added to a deployment group_. * */ - private final @Nullable List alarms; + private @Nullable List alarms; /** * @return Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is `false`. * * `true`: The deployment will proceed even if alarm status information can't be retrieved. * * `false`: The deployment will stop if alarm status information can't be retrieved. * */ - private final @Nullable Boolean ignorePollAlarmFailure; - - @CustomType.Constructor - private DeploymentGroupAlarmConfiguration( - @CustomType.Parameter("alarms") @Nullable List alarms, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("ignorePollAlarmFailure") @Nullable Boolean ignorePollAlarmFailure) { - this.alarms = alarms; - this.enabled = enabled; - this.ignorePollAlarmFailure = ignorePollAlarmFailure; - } + private @Nullable Boolean ignorePollAlarmFailure; + private DeploymentGroupAlarmConfiguration() {} /** * @return A list of alarms configured for the deployment group. _A maximum of 10 alarms can be added to a deployment group_. * @@ -72,16 +63,12 @@ public static Builder builder() { public static Builder builder(DeploymentGroupAlarmConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List alarms; private @Nullable Boolean enabled; private @Nullable Boolean ignorePollAlarmFailure; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupAlarmConfiguration defaults) { Objects.requireNonNull(defaults); this.alarms = defaults.alarms; @@ -89,6 +76,7 @@ public Builder(DeploymentGroupAlarmConfiguration defaults) { this.ignorePollAlarmFailure = defaults.ignorePollAlarmFailure; } + @CustomType.Setter public Builder alarms(@Nullable List alarms) { this.alarms = alarms; return this; @@ -96,15 +84,22 @@ public Builder alarms(@Nullable List alarms) { public Builder alarms(String... alarms) { return alarms(List.of(alarms)); } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder ignorePollAlarmFailure(@Nullable Boolean ignorePollAlarmFailure) { this.ignorePollAlarmFailure = ignorePollAlarmFailure; return this; - } public DeploymentGroupAlarmConfiguration build() { - return new DeploymentGroupAlarmConfiguration(alarms, enabled, ignorePollAlarmFailure); + } + public DeploymentGroupAlarmConfiguration build() { + final var o = new DeploymentGroupAlarmConfiguration(); + o.alarms = alarms; + o.enabled = enabled; + o.ignorePollAlarmFailure = ignorePollAlarmFailure; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupAutoRollbackConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupAutoRollbackConfiguration.java index 6728a008d77..e597e4d305a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupAutoRollbackConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupAutoRollbackConfiguration.java @@ -17,21 +17,14 @@ public final class DeploymentGroupAutoRollbackConfiguration { * @return Indicates whether a defined automatic rollback configuration is currently enabled for this Deployment Group. If you enable automatic rollback, you must specify at least one event type. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The event type or types that trigger a rollback. Supported types are `DEPLOYMENT_FAILURE` and `DEPLOYMENT_STOP_ON_ALARM`. * */ - private final @Nullable List events; - - @CustomType.Constructor - private DeploymentGroupAutoRollbackConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("events") @Nullable List events) { - this.enabled = enabled; - this.events = events; - } + private @Nullable List events; + private DeploymentGroupAutoRollbackConfiguration() {} /** * @return Indicates whether a defined automatic rollback configuration is currently enabled for this Deployment Group. If you enable automatic rollback, you must specify at least one event type. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(DeploymentGroupAutoRollbackConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List events; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupAutoRollbackConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.events = defaults.events; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder events(@Nullable List events) { this.events = events; return this; } public Builder events(String... events) { return events(List.of(events)); - } public DeploymentGroupAutoRollbackConfiguration build() { - return new DeploymentGroupAutoRollbackConfiguration(enabled, events); + } + public DeploymentGroupAutoRollbackConfiguration build() { + final var o = new DeploymentGroupAutoRollbackConfiguration(); + o.enabled = enabled; + o.events = events; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfig.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfig.java index 7d4b90148a7..043d4dbb954 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfig.java @@ -17,28 +17,19 @@ public final class DeploymentGroupBlueGreenDeploymentConfig { * @return Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below). * */ - private final @Nullable DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption deploymentReadyOption; + private @Nullable DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption deploymentReadyOption; /** * @return Information about how instances are provisioned for a replacement environment in a blue/green deployment (documented below). * */ - private final @Nullable DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption greenFleetProvisioningOption; + private @Nullable DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption greenFleetProvisioningOption; /** * @return Information about whether to terminate instances in the original fleet during a blue/green deployment (documented below). * */ - private final @Nullable DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess terminateBlueInstancesOnDeploymentSuccess; - - @CustomType.Constructor - private DeploymentGroupBlueGreenDeploymentConfig( - @CustomType.Parameter("deploymentReadyOption") @Nullable DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption deploymentReadyOption, - @CustomType.Parameter("greenFleetProvisioningOption") @Nullable DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption greenFleetProvisioningOption, - @CustomType.Parameter("terminateBlueInstancesOnDeploymentSuccess") @Nullable DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess terminateBlueInstancesOnDeploymentSuccess) { - this.deploymentReadyOption = deploymentReadyOption; - this.greenFleetProvisioningOption = greenFleetProvisioningOption; - this.terminateBlueInstancesOnDeploymentSuccess = terminateBlueInstancesOnDeploymentSuccess; - } + private @Nullable DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess terminateBlueInstancesOnDeploymentSuccess; + private DeploymentGroupBlueGreenDeploymentConfig() {} /** * @return Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment (documented below). * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(DeploymentGroupBlueGreenDeploymentConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption deploymentReadyOption; private @Nullable DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption greenFleetProvisioningOption; private @Nullable DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess terminateBlueInstancesOnDeploymentSuccess; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupBlueGreenDeploymentConfig defaults) { Objects.requireNonNull(defaults); this.deploymentReadyOption = defaults.deploymentReadyOption; @@ -85,19 +72,27 @@ public Builder(DeploymentGroupBlueGreenDeploymentConfig defaults) { this.terminateBlueInstancesOnDeploymentSuccess = defaults.terminateBlueInstancesOnDeploymentSuccess; } + @CustomType.Setter public Builder deploymentReadyOption(@Nullable DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption deploymentReadyOption) { this.deploymentReadyOption = deploymentReadyOption; return this; } + @CustomType.Setter public Builder greenFleetProvisioningOption(@Nullable DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption greenFleetProvisioningOption) { this.greenFleetProvisioningOption = greenFleetProvisioningOption; return this; } + @CustomType.Setter public Builder terminateBlueInstancesOnDeploymentSuccess(@Nullable DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess terminateBlueInstancesOnDeploymentSuccess) { this.terminateBlueInstancesOnDeploymentSuccess = terminateBlueInstancesOnDeploymentSuccess; return this; - } public DeploymentGroupBlueGreenDeploymentConfig build() { - return new DeploymentGroupBlueGreenDeploymentConfig(deploymentReadyOption, greenFleetProvisioningOption, terminateBlueInstancesOnDeploymentSuccess); + } + public DeploymentGroupBlueGreenDeploymentConfig build() { + final var o = new DeploymentGroupBlueGreenDeploymentConfig(); + o.deploymentReadyOption = deploymentReadyOption; + o.greenFleetProvisioningOption = greenFleetProvisioningOption; + o.terminateBlueInstancesOnDeploymentSuccess = terminateBlueInstancesOnDeploymentSuccess; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption.java index 162535404c0..79a1fd9358b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption.java @@ -18,21 +18,14 @@ public final class DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption * * `STOP_DEPLOYMENT`: Do not register new instances with load balancer unless traffic is rerouted manually. If traffic is not rerouted manually before the end of the specified wait period, the deployment status is changed to Stopped. * */ - private final @Nullable String actionOnTimeout; + private @Nullable String actionOnTimeout; /** * @return The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the `STOP_DEPLOYMENT` option for `action_on_timeout`. * */ - private final @Nullable Integer waitTimeInMinutes; - - @CustomType.Constructor - private DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption( - @CustomType.Parameter("actionOnTimeout") @Nullable String actionOnTimeout, - @CustomType.Parameter("waitTimeInMinutes") @Nullable Integer waitTimeInMinutes) { - this.actionOnTimeout = actionOnTimeout; - this.waitTimeInMinutes = waitTimeInMinutes; - } + private @Nullable Integer waitTimeInMinutes; + private DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption() {} /** * @return When to reroute traffic from an original environment to a replacement environment in a blue/green deployment. * * `CONTINUE_DEPLOYMENT`: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment. @@ -57,30 +50,32 @@ public static Builder builder() { public static Builder builder(DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String actionOnTimeout; private @Nullable Integer waitTimeInMinutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption defaults) { Objects.requireNonNull(defaults); this.actionOnTimeout = defaults.actionOnTimeout; this.waitTimeInMinutes = defaults.waitTimeInMinutes; } + @CustomType.Setter public Builder actionOnTimeout(@Nullable String actionOnTimeout) { this.actionOnTimeout = actionOnTimeout; return this; } + @CustomType.Setter public Builder waitTimeInMinutes(@Nullable Integer waitTimeInMinutes) { this.waitTimeInMinutes = waitTimeInMinutes; return this; - } public DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption build() { - return new DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption(actionOnTimeout, waitTimeInMinutes); + } + public DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption build() { + final var o = new DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption(); + o.actionOnTimeout = actionOnTimeout; + o.waitTimeInMinutes = waitTimeInMinutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption.java index 819c9ab812f..7c336afd9f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption.java @@ -17,13 +17,9 @@ public final class DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisionin * * `COPY_AUTO_SCALING_GROUP`: Use settings from a specified **Auto Scaling** group to define and create instances in a new Auto Scaling group. _Exactly one Auto Scaling group must be specified_ when selecting `COPY_AUTO_SCALING_GROUP`. Use `autoscaling_groups` to specify the Auto Scaling group. * */ - private final @Nullable String action; - - @CustomType.Constructor - private DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption(@CustomType.Parameter("action") @Nullable String action) { - this.action = action; - } + private @Nullable String action; + private DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption() {} /** * @return The method used to add instances to a replacement environment. * * `DISCOVER_EXISTING`: Use instances that already exist or will be created manually. @@ -41,24 +37,24 @@ public static Builder builder() { public static Builder builder(DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String action; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; } + @CustomType.Setter public Builder action(@Nullable String action) { this.action = action; return this; - } public DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption build() { - return new DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption(action); + } + public DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption build() { + final var o = new DeploymentGroupBlueGreenDeploymentConfigGreenFleetProvisioningOption(); + o.action = action; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess.java index 59a29ce21d3..f66660913d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess.java @@ -18,21 +18,14 @@ public final class DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstance * * `KEEP_ALIVE`: Instances are left running after they are deregistered from the load balancer and removed from the deployment group. * */ - private final @Nullable String action; + private @Nullable String action; /** * @return The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment. * */ - private final @Nullable Integer terminationWaitTimeInMinutes; - - @CustomType.Constructor - private DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess( - @CustomType.Parameter("action") @Nullable String action, - @CustomType.Parameter("terminationWaitTimeInMinutes") @Nullable Integer terminationWaitTimeInMinutes) { - this.action = action; - this.terminationWaitTimeInMinutes = terminationWaitTimeInMinutes; - } + private @Nullable Integer terminationWaitTimeInMinutes; + private DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess() {} /** * @return The action to take on instances in the original environment after a successful blue/green deployment. * * `TERMINATE`: Instances are terminated after a specified wait time. @@ -57,30 +50,32 @@ public static Builder builder() { public static Builder builder(DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String action; private @Nullable Integer terminationWaitTimeInMinutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; this.terminationWaitTimeInMinutes = defaults.terminationWaitTimeInMinutes; } + @CustomType.Setter public Builder action(@Nullable String action) { this.action = action; return this; } + @CustomType.Setter public Builder terminationWaitTimeInMinutes(@Nullable Integer terminationWaitTimeInMinutes) { this.terminationWaitTimeInMinutes = terminationWaitTimeInMinutes; return this; - } public DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess build() { - return new DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess(action, terminationWaitTimeInMinutes); + } + public DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess build() { + final var o = new DeploymentGroupBlueGreenDeploymentConfigTerminateBlueInstancesOnDeploymentSuccess(); + o.action = action; + o.terminationWaitTimeInMinutes = terminationWaitTimeInMinutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupDeploymentStyle.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupDeploymentStyle.java index afc85761ab9..18e84b30d6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupDeploymentStyle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupDeploymentStyle.java @@ -15,21 +15,14 @@ public final class DeploymentGroupDeploymentStyle { * @return Indicates whether to route deployment traffic behind a load balancer. Valid Values are `WITH_TRAFFIC_CONTROL` or `WITHOUT_TRAFFIC_CONTROL`. Default is `WITHOUT_TRAFFIC_CONTROL`. * */ - private final @Nullable String deploymentOption; + private @Nullable String deploymentOption; /** * @return Indicates whether to run an in-place deployment or a blue/green deployment. Valid Values are `IN_PLACE` or `BLUE_GREEN`. Default is `IN_PLACE`. * */ - private final @Nullable String deploymentType; - - @CustomType.Constructor - private DeploymentGroupDeploymentStyle( - @CustomType.Parameter("deploymentOption") @Nullable String deploymentOption, - @CustomType.Parameter("deploymentType") @Nullable String deploymentType) { - this.deploymentOption = deploymentOption; - this.deploymentType = deploymentType; - } + private @Nullable String deploymentType; + private DeploymentGroupDeploymentStyle() {} /** * @return Indicates whether to route deployment traffic behind a load balancer. Valid Values are `WITH_TRAFFIC_CONTROL` or `WITHOUT_TRAFFIC_CONTROL`. Default is `WITHOUT_TRAFFIC_CONTROL`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DeploymentGroupDeploymentStyle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deploymentOption; private @Nullable String deploymentType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupDeploymentStyle defaults) { Objects.requireNonNull(defaults); this.deploymentOption = defaults.deploymentOption; this.deploymentType = defaults.deploymentType; } + @CustomType.Setter public Builder deploymentOption(@Nullable String deploymentOption) { this.deploymentOption = deploymentOption; return this; } + @CustomType.Setter public Builder deploymentType(@Nullable String deploymentType) { this.deploymentType = deploymentType; return this; - } public DeploymentGroupDeploymentStyle build() { - return new DeploymentGroupDeploymentStyle(deploymentOption, deploymentType); + } + public DeploymentGroupDeploymentStyle build() { + final var o = new DeploymentGroupDeploymentStyle(); + o.deploymentOption = deploymentOption; + o.deploymentType = deploymentType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEc2TagFilter.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEc2TagFilter.java index bc086e8d751..dc734f10f63 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEc2TagFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEc2TagFilter.java @@ -15,28 +15,19 @@ public final class DeploymentGroupEc2TagFilter { * @return The key of the tag filter. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return The type of the tag filter, either `KEY_ONLY`, `VALUE_ONLY`, or `KEY_AND_VALUE`. * */ - private final @Nullable String type; + private @Nullable String type; /** * @return The value of the tag filter. * */ - private final @Nullable String value; - - @CustomType.Constructor - private DeploymentGroupEc2TagFilter( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("type") @Nullable String type, - @CustomType.Parameter("value") @Nullable String value) { - this.key = key; - this.type = type; - this.value = value; - } + private @Nullable String value; + private DeploymentGroupEc2TagFilter() {} /** * @return The key of the tag filter. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(DeploymentGroupEc2TagFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable String type; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupEc2TagFilter defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -83,19 +70,27 @@ public Builder(DeploymentGroupEc2TagFilter defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public DeploymentGroupEc2TagFilter build() { - return new DeploymentGroupEc2TagFilter(key, type, value); + } + public DeploymentGroupEc2TagFilter build() { + final var o = new DeploymentGroupEc2TagFilter(); + o.key = key; + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEc2TagSet.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEc2TagSet.java index 98d99bcd5e2..4663d014a8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEc2TagSet.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEc2TagSet.java @@ -15,13 +15,9 @@ public final class DeploymentGroupEc2TagSet { * @return Tag filters associated with the deployment group. See the AWS docs for details. * */ - private final @Nullable List ec2TagFilters; - - @CustomType.Constructor - private DeploymentGroupEc2TagSet(@CustomType.Parameter("ec2TagFilters") @Nullable List ec2TagFilters) { - this.ec2TagFilters = ec2TagFilters; - } + private @Nullable List ec2TagFilters; + private DeploymentGroupEc2TagSet() {} /** * @return Tag filters associated with the deployment group. See the AWS docs for details. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(DeploymentGroupEc2TagSet defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List ec2TagFilters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupEc2TagSet defaults) { Objects.requireNonNull(defaults); this.ec2TagFilters = defaults.ec2TagFilters; } + @CustomType.Setter public Builder ec2TagFilters(@Nullable List ec2TagFilters) { this.ec2TagFilters = ec2TagFilters; return this; } public Builder ec2TagFilters(DeploymentGroupEc2TagSetEc2TagFilter... ec2TagFilters) { return ec2TagFilters(List.of(ec2TagFilters)); - } public DeploymentGroupEc2TagSet build() { - return new DeploymentGroupEc2TagSet(ec2TagFilters); + } + public DeploymentGroupEc2TagSet build() { + final var o = new DeploymentGroupEc2TagSet(); + o.ec2TagFilters = ec2TagFilters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEc2TagSetEc2TagFilter.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEc2TagSetEc2TagFilter.java index cb61585b74d..f92a7ad45d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEc2TagSetEc2TagFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEc2TagSetEc2TagFilter.java @@ -15,28 +15,19 @@ public final class DeploymentGroupEc2TagSetEc2TagFilter { * @return The key of the tag filter. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return The type of the tag filter, either `KEY_ONLY`, `VALUE_ONLY`, or `KEY_AND_VALUE`. * */ - private final @Nullable String type; + private @Nullable String type; /** * @return The value of the tag filter. * */ - private final @Nullable String value; - - @CustomType.Constructor - private DeploymentGroupEc2TagSetEc2TagFilter( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("type") @Nullable String type, - @CustomType.Parameter("value") @Nullable String value) { - this.key = key; - this.type = type; - this.value = value; - } + private @Nullable String value; + private DeploymentGroupEc2TagSetEc2TagFilter() {} /** * @return The key of the tag filter. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(DeploymentGroupEc2TagSetEc2TagFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable String type; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupEc2TagSetEc2TagFilter defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -83,19 +70,27 @@ public Builder(DeploymentGroupEc2TagSetEc2TagFilter defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public DeploymentGroupEc2TagSetEc2TagFilter build() { - return new DeploymentGroupEc2TagSetEc2TagFilter(key, type, value); + } + public DeploymentGroupEc2TagSetEc2TagFilter build() { + final var o = new DeploymentGroupEc2TagSetEc2TagFilter(); + o.key = key; + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEcsService.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEcsService.java index 7e7976a6e9c..d7410b9eabb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEcsService.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupEcsService.java @@ -13,21 +13,14 @@ public final class DeploymentGroupEcsService { * @return The name of the ECS cluster. * */ - private final String clusterName; + private String clusterName; /** * @return The name of the ECS service. * */ - private final String serviceName; - - @CustomType.Constructor - private DeploymentGroupEcsService( - @CustomType.Parameter("clusterName") String clusterName, - @CustomType.Parameter("serviceName") String serviceName) { - this.clusterName = clusterName; - this.serviceName = serviceName; - } + private String serviceName; + private DeploymentGroupEcsService() {} /** * @return The name of the ECS cluster. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(DeploymentGroupEcsService defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String clusterName; private String serviceName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupEcsService defaults) { Objects.requireNonNull(defaults); this.clusterName = defaults.clusterName; this.serviceName = defaults.serviceName; } + @CustomType.Setter public Builder clusterName(String clusterName) { this.clusterName = Objects.requireNonNull(clusterName); return this; } + @CustomType.Setter public Builder serviceName(String serviceName) { this.serviceName = Objects.requireNonNull(serviceName); return this; - } public DeploymentGroupEcsService build() { - return new DeploymentGroupEcsService(clusterName, serviceName); + } + public DeploymentGroupEcsService build() { + final var o = new DeploymentGroupEcsService(); + o.clusterName = clusterName; + o.serviceName = serviceName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupLoadBalancerInfo.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupLoadBalancerInfo.java index dc7292fabb1..aa7fe6966c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupLoadBalancerInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupLoadBalancerInfo.java @@ -18,28 +18,19 @@ public final class DeploymentGroupLoadBalancerInfo { * @return The Classic Elastic Load Balancer to use in a deployment. Conflicts with `target_group_info` and `target_group_pair_info`. * */ - private final @Nullable List elbInfos; + private @Nullable List elbInfos; /** * @return The (Application/Network Load Balancer) target group to use in a deployment. Conflicts with `elb_info` and `target_group_pair_info`. * */ - private final @Nullable List targetGroupInfos; + private @Nullable List targetGroupInfos; /** * @return The (Application/Network Load Balancer) target group pair to use in a deployment. Conflicts with `elb_info` and `target_group_info`. * */ - private final @Nullable DeploymentGroupLoadBalancerInfoTargetGroupPairInfo targetGroupPairInfo; - - @CustomType.Constructor - private DeploymentGroupLoadBalancerInfo( - @CustomType.Parameter("elbInfos") @Nullable List elbInfos, - @CustomType.Parameter("targetGroupInfos") @Nullable List targetGroupInfos, - @CustomType.Parameter("targetGroupPairInfo") @Nullable DeploymentGroupLoadBalancerInfoTargetGroupPairInfo targetGroupPairInfo) { - this.elbInfos = elbInfos; - this.targetGroupInfos = targetGroupInfos; - this.targetGroupPairInfo = targetGroupPairInfo; - } + private @Nullable DeploymentGroupLoadBalancerInfoTargetGroupPairInfo targetGroupPairInfo; + private DeploymentGroupLoadBalancerInfo() {} /** * @return The Classic Elastic Load Balancer to use in a deployment. Conflicts with `target_group_info` and `target_group_pair_info`. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(DeploymentGroupLoadBalancerInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List elbInfos; private @Nullable List targetGroupInfos; private @Nullable DeploymentGroupLoadBalancerInfoTargetGroupPairInfo targetGroupPairInfo; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupLoadBalancerInfo defaults) { Objects.requireNonNull(defaults); this.elbInfos = defaults.elbInfos; @@ -86,6 +73,7 @@ public Builder(DeploymentGroupLoadBalancerInfo defaults) { this.targetGroupPairInfo = defaults.targetGroupPairInfo; } + @CustomType.Setter public Builder elbInfos(@Nullable List elbInfos) { this.elbInfos = elbInfos; return this; @@ -93,6 +81,7 @@ public Builder elbInfos(@Nullable List e public Builder elbInfos(DeploymentGroupLoadBalancerInfoElbInfo... elbInfos) { return elbInfos(List.of(elbInfos)); } + @CustomType.Setter public Builder targetGroupInfos(@Nullable List targetGroupInfos) { this.targetGroupInfos = targetGroupInfos; return this; @@ -100,11 +89,17 @@ public Builder targetGroupInfos(@Nullable List targetGroups; + private List targetGroups; /** * @return Configuration block for the test traffic route (documented below). * */ - private final @Nullable DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute testTrafficRoute; - - @CustomType.Constructor - private DeploymentGroupLoadBalancerInfoTargetGroupPairInfo( - @CustomType.Parameter("prodTrafficRoute") DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute prodTrafficRoute, - @CustomType.Parameter("targetGroups") List targetGroups, - @CustomType.Parameter("testTrafficRoute") @Nullable DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute testTrafficRoute) { - this.prodTrafficRoute = prodTrafficRoute; - this.targetGroups = targetGroups; - this.testTrafficRoute = testTrafficRoute; - } + private @Nullable DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute testTrafficRoute; + private DeploymentGroupLoadBalancerInfoTargetGroupPairInfo() {} /** * @return Configuration block for the production traffic route (documented below). * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(DeploymentGroupLoadBalancerInfoTargetGroupPairInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute prodTrafficRoute; private List targetGroups; private @Nullable DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute testTrafficRoute; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupLoadBalancerInfoTargetGroupPairInfo defaults) { Objects.requireNonNull(defaults); this.prodTrafficRoute = defaults.prodTrafficRoute; @@ -86,10 +73,12 @@ public Builder(DeploymentGroupLoadBalancerInfoTargetGroupPairInfo defaults) { this.testTrafficRoute = defaults.testTrafficRoute; } + @CustomType.Setter public Builder prodTrafficRoute(DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute prodTrafficRoute) { this.prodTrafficRoute = Objects.requireNonNull(prodTrafficRoute); return this; } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; @@ -97,11 +86,17 @@ public Builder targetGroups(List listenerArns; - - @CustomType.Constructor - private DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute(@CustomType.Parameter("listenerArns") List listenerArns) { - this.listenerArns = listenerArns; - } + private List listenerArns; + private DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute() {} /** * @return List of Amazon Resource Names (ARNs) of the load balancer listeners. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List listenerArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute defaults) { Objects.requireNonNull(defaults); this.listenerArns = defaults.listenerArns; } + @CustomType.Setter public Builder listenerArns(List listenerArns) { this.listenerArns = Objects.requireNonNull(listenerArns); return this; } public Builder listenerArns(String... listenerArns) { return listenerArns(List.of(listenerArns)); - } public DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute build() { - return new DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute(listenerArns); + } + public DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute build() { + final var o = new DeploymentGroupLoadBalancerInfoTargetGroupPairInfoProdTrafficRoute(); + o.listenerArns = listenerArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup.java index 843f2dd662e..02233980d0d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup.java @@ -13,13 +13,9 @@ public final class DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup * @return Name of the target group. * */ - private final String name; - - @CustomType.Constructor - private DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup() {} /** * @return Name of the target group. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup build() { - return new DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup(name); + } + public DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup build() { + final var o = new DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTargetGroup(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute.java index e69abf73fb7..4c25e6dae87 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute.java @@ -14,13 +14,9 @@ public final class DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTraffic * @return List of Amazon Resource Names (ARNs) of the load balancer listeners. * */ - private final List listenerArns; - - @CustomType.Constructor - private DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute(@CustomType.Parameter("listenerArns") List listenerArns) { - this.listenerArns = listenerArns; - } + private List listenerArns; + private DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute() {} /** * @return List of Amazon Resource Names (ARNs) of the load balancer listeners. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List listenerArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute defaults) { Objects.requireNonNull(defaults); this.listenerArns = defaults.listenerArns; } + @CustomType.Setter public Builder listenerArns(List listenerArns) { this.listenerArns = Objects.requireNonNull(listenerArns); return this; } public Builder listenerArns(String... listenerArns) { return listenerArns(List.of(listenerArns)); - } public DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute build() { - return new DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute(listenerArns); + } + public DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute build() { + final var o = new DeploymentGroupLoadBalancerInfoTargetGroupPairInfoTestTrafficRoute(); + o.listenerArns = listenerArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupOnPremisesInstanceTagFilter.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupOnPremisesInstanceTagFilter.java index 132ae039a9f..0934ad542f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupOnPremisesInstanceTagFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupOnPremisesInstanceTagFilter.java @@ -15,28 +15,19 @@ public final class DeploymentGroupOnPremisesInstanceTagFilter { * @return The key of the tag filter. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return The type of the tag filter, either `KEY_ONLY`, `VALUE_ONLY`, or `KEY_AND_VALUE`. * */ - private final @Nullable String type; + private @Nullable String type; /** * @return The value of the tag filter. * */ - private final @Nullable String value; - - @CustomType.Constructor - private DeploymentGroupOnPremisesInstanceTagFilter( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("type") @Nullable String type, - @CustomType.Parameter("value") @Nullable String value) { - this.key = key; - this.type = type; - this.value = value; - } + private @Nullable String value; + private DeploymentGroupOnPremisesInstanceTagFilter() {} /** * @return The key of the tag filter. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(DeploymentGroupOnPremisesInstanceTagFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable String type; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupOnPremisesInstanceTagFilter defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -83,19 +70,27 @@ public Builder(DeploymentGroupOnPremisesInstanceTagFilter defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public DeploymentGroupOnPremisesInstanceTagFilter build() { - return new DeploymentGroupOnPremisesInstanceTagFilter(key, type, value); + } + public DeploymentGroupOnPremisesInstanceTagFilter build() { + final var o = new DeploymentGroupOnPremisesInstanceTagFilter(); + o.key = key; + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupTriggerConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupTriggerConfiguration.java index 02c3f418bea..bbe94a20e40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupTriggerConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codedeploy/outputs/DeploymentGroupTriggerConfiguration.java @@ -14,28 +14,19 @@ public final class DeploymentGroupTriggerConfiguration { * @return The event type or types for which notifications are triggered. Some values that are supported: `DeploymentStart`, `DeploymentSuccess`, `DeploymentFailure`, `DeploymentStop`, `DeploymentRollback`, `InstanceStart`, `InstanceSuccess`, `InstanceFailure`. See [the CodeDeploy documentation](http://docs.aws.amazon.com/codedeploy/latest/userguide/monitoring-sns-event-notifications-create-trigger.html) for all possible values. * */ - private final List triggerEvents; + private List triggerEvents; /** * @return The name of the notification trigger. * */ - private final String triggerName; + private String triggerName; /** * @return The ARN of the SNS topic through which notifications are sent. * */ - private final String triggerTargetArn; - - @CustomType.Constructor - private DeploymentGroupTriggerConfiguration( - @CustomType.Parameter("triggerEvents") List triggerEvents, - @CustomType.Parameter("triggerName") String triggerName, - @CustomType.Parameter("triggerTargetArn") String triggerTargetArn) { - this.triggerEvents = triggerEvents; - this.triggerName = triggerName; - this.triggerTargetArn = triggerTargetArn; - } + private String triggerTargetArn; + private DeploymentGroupTriggerConfiguration() {} /** * @return The event type or types for which notifications are triggered. Some values that are supported: `DeploymentStart`, `DeploymentSuccess`, `DeploymentFailure`, `DeploymentStop`, `DeploymentRollback`, `InstanceStart`, `InstanceSuccess`, `InstanceFailure`. See [the CodeDeploy documentation](http://docs.aws.amazon.com/codedeploy/latest/userguide/monitoring-sns-event-notifications-create-trigger.html) for all possible values. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(DeploymentGroupTriggerConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List triggerEvents; private String triggerName; private String triggerTargetArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeploymentGroupTriggerConfiguration defaults) { Objects.requireNonNull(defaults); this.triggerEvents = defaults.triggerEvents; @@ -82,6 +69,7 @@ public Builder(DeploymentGroupTriggerConfiguration defaults) { this.triggerTargetArn = defaults.triggerTargetArn; } + @CustomType.Setter public Builder triggerEvents(List triggerEvents) { this.triggerEvents = Objects.requireNonNull(triggerEvents); return this; @@ -89,15 +77,22 @@ public Builder triggerEvents(List triggerEvents) { public Builder triggerEvents(String... triggerEvents) { return triggerEvents(List.of(triggerEvents)); } + @CustomType.Setter public Builder triggerName(String triggerName) { this.triggerName = Objects.requireNonNull(triggerName); return this; } + @CustomType.Setter public Builder triggerTargetArn(String triggerTargetArn) { this.triggerTargetArn = Objects.requireNonNull(triggerTargetArn); return this; - } public DeploymentGroupTriggerConfiguration build() { - return new DeploymentGroupTriggerConfiguration(triggerEvents, triggerName, triggerTargetArn); + } + public DeploymentGroupTriggerConfiguration build() { + final var o = new DeploymentGroupTriggerConfiguration(); + o.triggerEvents = triggerEvents; + o.triggerName = triggerName; + o.triggerTargetArn = triggerTargetArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineArtifactStore.java b/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineArtifactStore.java index f8be94ca689..8d229f572dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineArtifactStore.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineArtifactStore.java @@ -16,35 +16,24 @@ public final class PipelineArtifactStore { * @return The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An `encryption_key` block is documented below. * */ - private final @Nullable PipelineArtifactStoreEncryptionKey encryptionKey; + private @Nullable PipelineArtifactStoreEncryptionKey encryptionKey; /** * @return The location where AWS CodePipeline stores artifacts for a pipeline; currently only `S3` is supported. * */ - private final String location; + private String location; /** * @return The region where the artifact store is located. Required for a cross-region CodePipeline, do not provide for a single-region CodePipeline. * */ - private final @Nullable String region; + private @Nullable String region; /** * @return The type of the artifact store, such as Amazon S3 * */ - private final String type; - - @CustomType.Constructor - private PipelineArtifactStore( - @CustomType.Parameter("encryptionKey") @Nullable PipelineArtifactStoreEncryptionKey encryptionKey, - @CustomType.Parameter("location") String location, - @CustomType.Parameter("region") @Nullable String region, - @CustomType.Parameter("type") String type) { - this.encryptionKey = encryptionKey; - this.location = location; - this.region = region; - this.type = type; - } + private String type; + private PipelineArtifactStore() {} /** * @return The encryption key block AWS CodePipeline uses to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If you don't specify a key, AWS CodePipeline uses the default key for Amazon Simple Storage Service (Amazon S3). An `encryption_key` block is documented below. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(PipelineArtifactStore defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable PipelineArtifactStoreEncryptionKey encryptionKey; private String location; private @Nullable String region; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PipelineArtifactStore defaults) { Objects.requireNonNull(defaults); this.encryptionKey = defaults.encryptionKey; @@ -100,23 +85,33 @@ public Builder(PipelineArtifactStore defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder encryptionKey(@Nullable PipelineArtifactStoreEncryptionKey encryptionKey) { this.encryptionKey = encryptionKey; return this; } + @CustomType.Setter public Builder location(String location) { this.location = Objects.requireNonNull(location); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public PipelineArtifactStore build() { - return new PipelineArtifactStore(encryptionKey, location, region, type); + } + public PipelineArtifactStore build() { + final var o = new PipelineArtifactStore(); + o.encryptionKey = encryptionKey; + o.location = location; + o.region = region; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineArtifactStoreEncryptionKey.java b/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineArtifactStoreEncryptionKey.java index 90d34df3e6f..570aed123be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineArtifactStoreEncryptionKey.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineArtifactStoreEncryptionKey.java @@ -13,21 +13,14 @@ public final class PipelineArtifactStoreEncryptionKey { * @return The KMS key ARN or ID * */ - private final String id; + private String id; /** * @return The type of key; currently only `KMS` is supported * */ - private final String type; - - @CustomType.Constructor - private PipelineArtifactStoreEncryptionKey( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("type") String type) { - this.id = id; - this.type = type; - } + private String type; + private PipelineArtifactStoreEncryptionKey() {} /** * @return The KMS key ARN or ID * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(PipelineArtifactStoreEncryptionKey defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PipelineArtifactStoreEncryptionKey defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.type = defaults.type; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public PipelineArtifactStoreEncryptionKey build() { - return new PipelineArtifactStoreEncryptionKey(id, type); + } + public PipelineArtifactStoreEncryptionKey build() { + final var o = new PipelineArtifactStoreEncryptionKey(); + o.id = id; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineStage.java b/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineStage.java index 4e657d972f1..35290d37094 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineStage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineStage.java @@ -15,21 +15,14 @@ public final class PipelineStage { * @return The action(s) to include in the stage. Defined as an `action` block below * */ - private final List actions; + private List actions; /** * @return The name of the stage. * */ - private final String name; - - @CustomType.Constructor - private PipelineStage( - @CustomType.Parameter("actions") List actions, - @CustomType.Parameter("name") String name) { - this.actions = actions; - this.name = name; - } + private String name; + private PipelineStage() {} /** * @return The action(s) to include in the stage. Defined as an `action` block below * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(PipelineStage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List actions; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PipelineStage defaults) { Objects.requireNonNull(defaults); this.actions = defaults.actions; this.name = defaults.name; } + @CustomType.Setter public Builder actions(List actions) { this.actions = Objects.requireNonNull(actions); return this; @@ -74,11 +64,16 @@ public Builder actions(List actions) { public Builder actions(PipelineStageAction... actions) { return actions(List.of(actions)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public PipelineStage build() { - return new PipelineStage(actions, name); + } + public PipelineStage build() { + final var o = new PipelineStage(); + o.actions = actions; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineStageAction.java b/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineStageAction.java index ff9d45a66a8..0590436fefb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineStageAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/PipelineStageAction.java @@ -18,91 +18,64 @@ public final class PipelineStageAction { * @return A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Possible values are `Approval`, `Build`, `Deploy`, `Invoke`, `Source` and `Test`. * */ - private final String category; + private String category; /** * @return A map of the action declaration's configuration. Configurations options for action types and providers can be found in the [Pipeline Structure Reference](http://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#action-requirements) and [Action Structure Reference](https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference.html) documentation. * */ - private final @Nullable Map configuration; + private @Nullable Map configuration; /** * @return A list of artifact names to be worked on. * */ - private final @Nullable List inputArtifacts; + private @Nullable List inputArtifacts; /** * @return The action declaration's name. * */ - private final String name; + private String name; /** * @return The namespace all output variables will be accessed from. * */ - private final @Nullable String namespace; + private @Nullable String namespace; /** * @return A list of artifact names to output. Output artifact names must be unique within a pipeline. * */ - private final @Nullable List outputArtifacts; + private @Nullable List outputArtifacts; /** * @return The creator of the action being called. Possible values are `AWS`, `Custom` and `ThirdParty`. * */ - private final String owner; + private String owner; /** * @return The provider of the service being called by the action. Valid providers are determined by the action category. Provider names are listed in the [Action Structure Reference](https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference.html) documentation. * */ - private final String provider; + private String provider; /** * @return The region in which to run the action. * */ - private final @Nullable String region; + private @Nullable String region; /** * @return The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline. * */ - private final @Nullable String roleArn; + private @Nullable String roleArn; /** * @return The order in which actions are run. * */ - private final @Nullable Integer runOrder; + private @Nullable Integer runOrder; /** * @return A string that identifies the action type. * */ - private final String version; - - @CustomType.Constructor - private PipelineStageAction( - @CustomType.Parameter("category") String category, - @CustomType.Parameter("configuration") @Nullable Map configuration, - @CustomType.Parameter("inputArtifacts") @Nullable List inputArtifacts, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("namespace") @Nullable String namespace, - @CustomType.Parameter("outputArtifacts") @Nullable List outputArtifacts, - @CustomType.Parameter("owner") String owner, - @CustomType.Parameter("provider") String provider, - @CustomType.Parameter("region") @Nullable String region, - @CustomType.Parameter("roleArn") @Nullable String roleArn, - @CustomType.Parameter("runOrder") @Nullable Integer runOrder, - @CustomType.Parameter("version") String version) { - this.category = category; - this.configuration = configuration; - this.inputArtifacts = inputArtifacts; - this.name = name; - this.namespace = namespace; - this.outputArtifacts = outputArtifacts; - this.owner = owner; - this.provider = provider; - this.region = region; - this.roleArn = roleArn; - this.runOrder = runOrder; - this.version = version; - } + private String version; + private PipelineStageAction() {} /** * @return A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Possible values are `Approval`, `Build`, `Deploy`, `Invoke`, `Source` and `Test`. * @@ -195,7 +168,7 @@ public static Builder builder() { public static Builder builder(PipelineStageAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String category; private @Nullable Map configuration; @@ -209,11 +182,7 @@ public static final class Builder { private @Nullable String roleArn; private @Nullable Integer runOrder; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PipelineStageAction defaults) { Objects.requireNonNull(defaults); this.category = defaults.category; @@ -230,14 +199,17 @@ public Builder(PipelineStageAction defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder category(String category) { this.category = Objects.requireNonNull(category); return this; } + @CustomType.Setter public Builder configuration(@Nullable Map configuration) { this.configuration = configuration; return this; } + @CustomType.Setter public Builder inputArtifacts(@Nullable List inputArtifacts) { this.inputArtifacts = inputArtifacts; return this; @@ -245,14 +217,17 @@ public Builder inputArtifacts(@Nullable List inputArtifacts) { public Builder inputArtifacts(String... inputArtifacts) { return inputArtifacts(List.of(inputArtifacts)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder namespace(@Nullable String namespace) { this.namespace = namespace; return this; } + @CustomType.Setter public Builder outputArtifacts(@Nullable List outputArtifacts) { this.outputArtifacts = outputArtifacts; return this; @@ -260,31 +235,51 @@ public Builder outputArtifacts(@Nullable List outputArtifacts) { public Builder outputArtifacts(String... outputArtifacts) { return outputArtifacts(List.of(outputArtifacts)); } + @CustomType.Setter public Builder owner(String owner) { this.owner = Objects.requireNonNull(owner); return this; } + @CustomType.Setter public Builder provider(String provider) { this.provider = Objects.requireNonNull(provider); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; } + @CustomType.Setter public Builder roleArn(@Nullable String roleArn) { this.roleArn = roleArn; return this; } + @CustomType.Setter public Builder runOrder(@Nullable Integer runOrder) { this.runOrder = runOrder; return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public PipelineStageAction build() { - return new PipelineStageAction(category, configuration, inputArtifacts, name, namespace, outputArtifacts, owner, provider, region, roleArn, runOrder, version); + } + public PipelineStageAction build() { + final var o = new PipelineStageAction(); + o.category = category; + o.configuration = configuration; + o.inputArtifacts = inputArtifacts; + o.name = name; + o.namespace = namespace; + o.outputArtifacts = outputArtifacts; + o.owner = owner; + o.provider = provider; + o.region = region; + o.roleArn = roleArn; + o.runOrder = runOrder; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/WebhookAuthenticationConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/WebhookAuthenticationConfiguration.java index bef678f56f2..ceb1d8fdcaf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/WebhookAuthenticationConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/WebhookAuthenticationConfiguration.java @@ -15,21 +15,14 @@ public final class WebhookAuthenticationConfiguration { * @return A valid CIDR block for `IP` filtering. Required for `IP`. * */ - private final @Nullable String allowedIpRange; + private @Nullable String allowedIpRange; /** * @return The shared secret for the GitHub repository webhook. Set this as `secret` in your `github_repository_webhook`'s `configuration` block. Required for `GITHUB_HMAC`. * */ - private final @Nullable String secretToken; - - @CustomType.Constructor - private WebhookAuthenticationConfiguration( - @CustomType.Parameter("allowedIpRange") @Nullable String allowedIpRange, - @CustomType.Parameter("secretToken") @Nullable String secretToken) { - this.allowedIpRange = allowedIpRange; - this.secretToken = secretToken; - } + private @Nullable String secretToken; + private WebhookAuthenticationConfiguration() {} /** * @return A valid CIDR block for `IP` filtering. Required for `IP`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(WebhookAuthenticationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String allowedIpRange; private @Nullable String secretToken; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebhookAuthenticationConfiguration defaults) { Objects.requireNonNull(defaults); this.allowedIpRange = defaults.allowedIpRange; this.secretToken = defaults.secretToken; } + @CustomType.Setter public Builder allowedIpRange(@Nullable String allowedIpRange) { this.allowedIpRange = allowedIpRange; return this; } + @CustomType.Setter public Builder secretToken(@Nullable String secretToken) { this.secretToken = secretToken; return this; - } public WebhookAuthenticationConfiguration build() { - return new WebhookAuthenticationConfiguration(allowedIpRange, secretToken); + } + public WebhookAuthenticationConfiguration build() { + final var o = new WebhookAuthenticationConfiguration(); + o.allowedIpRange = allowedIpRange; + o.secretToken = secretToken; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/WebhookFilter.java b/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/WebhookFilter.java index 5fc71e4994a..bb7379b17ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/WebhookFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codepipeline/outputs/WebhookFilter.java @@ -13,21 +13,14 @@ public final class WebhookFilter { * @return The [JSON path](https://github.com/json-path/JsonPath) to filter on. * */ - private final String jsonPath; + private String jsonPath; /** * @return The value to match on (e.g., `refs/heads/{Branch}`). See [AWS docs](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_WebhookFilterRule.html) for details. * */ - private final String matchEquals; - - @CustomType.Constructor - private WebhookFilter( - @CustomType.Parameter("jsonPath") String jsonPath, - @CustomType.Parameter("matchEquals") String matchEquals) { - this.jsonPath = jsonPath; - this.matchEquals = matchEquals; - } + private String matchEquals; + private WebhookFilter() {} /** * @return The [JSON path](https://github.com/json-path/JsonPath) to filter on. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebhookFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String jsonPath; private String matchEquals; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebhookFilter defaults) { Objects.requireNonNull(defaults); this.jsonPath = defaults.jsonPath; this.matchEquals = defaults.matchEquals; } + @CustomType.Setter public Builder jsonPath(String jsonPath) { this.jsonPath = Objects.requireNonNull(jsonPath); return this; } + @CustomType.Setter public Builder matchEquals(String matchEquals) { this.matchEquals = Objects.requireNonNull(matchEquals); return this; - } public WebhookFilter build() { - return new WebhookFilter(jsonPath, matchEquals); + } + public WebhookFilter build() { + final var o = new WebhookFilter(); + o.jsonPath = jsonPath; + o.matchEquals = matchEquals; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codestarconnections/outputs/GetConnectionResult.java b/sdk/java/src/main/java/com/pulumi/aws/codestarconnections/outputs/GetConnectionResult.java index 8fa5fdce90e..6116a44a638 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codestarconnections/outputs/GetConnectionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codestarconnections/outputs/GetConnectionResult.java @@ -10,52 +10,35 @@ @CustomType public final class GetConnectionResult { - private final String arn; + private String arn; /** * @return The CodeStar Connection status. Possible values are `PENDING`, `AVAILABLE` and `ERROR`. * */ - private final String connectionStatus; + private String connectionStatus; /** * @return The Amazon Resource Name (ARN) of the host associated with the connection. * */ - private final String hostArn; + private String hostArn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the CodeStar Connection. The name is unique in the calling AWS account. * */ - private final String name; - private final String providerType; + private String name; + private String providerType; /** * @return Map of key-value resource tags to associate with the resource. * */ - private final Map tags; - - @CustomType.Constructor - private GetConnectionResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("connectionStatus") String connectionStatus, - @CustomType.Parameter("hostArn") String hostArn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("providerType") String providerType, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.connectionStatus = connectionStatus; - this.hostArn = hostArn; - this.id = id; - this.name = name; - this.providerType = providerType; - this.tags = tags; - } + private Map tags; + private GetConnectionResult() {} public String arn() { return this.arn; } @@ -105,7 +88,7 @@ public static Builder builder() { public static Builder builder(GetConnectionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String connectionStatus; @@ -114,11 +97,7 @@ public static final class Builder { private String name; private String providerType; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConnectionResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -130,35 +109,51 @@ public Builder(GetConnectionResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder connectionStatus(String connectionStatus) { this.connectionStatus = Objects.requireNonNull(connectionStatus); return this; } + @CustomType.Setter public Builder hostArn(String hostArn) { this.hostArn = Objects.requireNonNull(hostArn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder providerType(String providerType) { this.providerType = Objects.requireNonNull(providerType); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetConnectionResult build() { - return new GetConnectionResult(arn, connectionStatus, hostArn, id, name, providerType, tags); + } + public GetConnectionResult build() { + final var o = new GetConnectionResult(); + o.arn = arn; + o.connectionStatus = connectionStatus; + o.hostArn = hostArn; + o.id = id; + o.name = name; + o.providerType = providerType; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codestarconnections/outputs/HostVpcConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/codestarconnections/outputs/HostVpcConfiguration.java index 35e816a4b8b..b3af7f9d575 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codestarconnections/outputs/HostVpcConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codestarconnections/outputs/HostVpcConfiguration.java @@ -16,35 +16,24 @@ public final class HostVpcConfiguration { * @return he ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed. * */ - private final List subnetIds; + private List subnetIds; /** * @return The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed. * */ - private final @Nullable String tlsCertificate; + private @Nullable String tlsCertificate; /** * @return The ID of the Amazon VPC connected to the infrastructure where your provider type is installed. * */ - private final String vpcId; - - @CustomType.Constructor - private HostVpcConfiguration( - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("tlsCertificate") @Nullable String tlsCertificate, - @CustomType.Parameter("vpcId") String vpcId) { - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.tlsCertificate = tlsCertificate; - this.vpcId = vpcId; - } + private String vpcId; + private HostVpcConfiguration() {} /** * @return he ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(HostVpcConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List securityGroupIds; private List subnetIds; private @Nullable String tlsCertificate; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(HostVpcConfiguration defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; @@ -100,6 +85,7 @@ public Builder(HostVpcConfiguration defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -107,6 +93,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -114,15 +101,23 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder tlsCertificate(@Nullable String tlsCertificate) { this.tlsCertificate = tlsCertificate; return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public HostVpcConfiguration build() { - return new HostVpcConfiguration(securityGroupIds, subnetIds, tlsCertificate, vpcId); + } + public HostVpcConfiguration build() { + final var o = new HostVpcConfiguration(); + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.tlsCertificate = tlsCertificate; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/codestarnotifications/outputs/NotificationRuleTarget.java b/sdk/java/src/main/java/com/pulumi/aws/codestarnotifications/outputs/NotificationRuleTarget.java index 615518af0cb..df8fde63656 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/codestarnotifications/outputs/NotificationRuleTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/codestarnotifications/outputs/NotificationRuleTarget.java @@ -15,28 +15,19 @@ public final class NotificationRuleTarget { * @return The ARN of notification rule target. For example, a SNS Topic ARN. * */ - private final String address; + private String address; /** * @return The status of the notification rule. Possible values are `ENABLED` and `DISABLED`, default is `ENABLED`. * */ - private final @Nullable String status; + private @Nullable String status; /** * @return The type of the notification target. Default value is `SNS`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private NotificationRuleTarget( - @CustomType.Parameter("address") String address, - @CustomType.Parameter("status") @Nullable String status, - @CustomType.Parameter("type") @Nullable String type) { - this.address = address; - this.status = status; - this.type = type; - } + private @Nullable String type; + private NotificationRuleTarget() {} /** * @return The ARN of notification rule target. For example, a SNS Topic ARN. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(NotificationRuleTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String address; private @Nullable String status; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NotificationRuleTarget defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; @@ -83,19 +70,27 @@ public Builder(NotificationRuleTarget defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder address(String address) { this.address = Objects.requireNonNull(address); return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public NotificationRuleTarget build() { - return new NotificationRuleTarget(address, status, type); + } + public NotificationRuleTarget build() { + final var o = new NotificationRuleTarget(); + o.address = address; + o.status = status; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientAnalyticsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientAnalyticsConfiguration.java index ba58e1e1581..ca33d54e008 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientAnalyticsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientAnalyticsConfiguration.java @@ -14,39 +14,26 @@ public final class GetUserPoolClientAnalyticsConfiguration { * @return (Optional) Application ARN for an Amazon Pinpoint application. Conflicts with `external_id` and `role_arn`. * */ - private final String applicationArn; + private String applicationArn; /** * @return (Optional) Application ID for an Amazon Pinpoint application. * */ - private final String applicationId; + private String applicationId; /** * @return (Optional) ID for the Analytics Configuration. Conflicts with `application_arn`. * */ - private final String externalId; + private String externalId; /** * @return (Optional) ARN of an IAM role that authorizes Amazon Cognito to publish events to Amazon Pinpoint analytics. Conflicts with `application_arn`. * * `user_data_shared` (Optional) If set to `true`, Amazon Cognito will include user data in the events it publishes to Amazon Pinpoint analytics. * */ - private final String roleArn; - private final Boolean userDataShared; - - @CustomType.Constructor - private GetUserPoolClientAnalyticsConfiguration( - @CustomType.Parameter("applicationArn") String applicationArn, - @CustomType.Parameter("applicationId") String applicationId, - @CustomType.Parameter("externalId") String externalId, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("userDataShared") Boolean userDataShared) { - this.applicationArn = applicationArn; - this.applicationId = applicationId; - this.externalId = externalId; - this.roleArn = roleArn; - this.userDataShared = userDataShared; - } + private String roleArn; + private Boolean userDataShared; + private GetUserPoolClientAnalyticsConfiguration() {} /** * @return (Optional) Application ARN for an Amazon Pinpoint application. Conflicts with `external_id` and `role_arn`. * @@ -87,18 +74,14 @@ public static Builder builder() { public static Builder builder(GetUserPoolClientAnalyticsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String applicationArn; private String applicationId; private String externalId; private String roleArn; private Boolean userDataShared; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserPoolClientAnalyticsConfiguration defaults) { Objects.requireNonNull(defaults); this.applicationArn = defaults.applicationArn; @@ -108,27 +91,39 @@ public Builder(GetUserPoolClientAnalyticsConfiguration defaults) { this.userDataShared = defaults.userDataShared; } + @CustomType.Setter public Builder applicationArn(String applicationArn) { this.applicationArn = Objects.requireNonNull(applicationArn); return this; } + @CustomType.Setter public Builder applicationId(String applicationId) { this.applicationId = Objects.requireNonNull(applicationId); return this; } + @CustomType.Setter public Builder externalId(String externalId) { this.externalId = Objects.requireNonNull(externalId); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder userDataShared(Boolean userDataShared) { this.userDataShared = Objects.requireNonNull(userDataShared); return this; - } public GetUserPoolClientAnalyticsConfiguration build() { - return new GetUserPoolClientAnalyticsConfiguration(applicationArn, applicationId, externalId, roleArn, userDataShared); + } + public GetUserPoolClientAnalyticsConfiguration build() { + final var o = new GetUserPoolClientAnalyticsConfiguration(); + o.applicationArn = applicationArn; + o.applicationId = applicationId; + o.externalId = externalId; + o.roleArn = roleArn; + o.userDataShared = userDataShared; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientResult.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientResult.java index 5796c34599f..cf8e40cdcbf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientResult.java @@ -18,155 +18,104 @@ public final class GetUserPoolClientResult { * @return (Optional) Time limit, between 5 minutes and 1 day, after which the access token is no longer valid and cannot be used. This value will be overridden if you have entered a value in `token_validity_units`. * */ - private final Integer accessTokenValidity; + private Integer accessTokenValidity; /** * @return (Optional) List of allowed OAuth flows (code, implicit, client_credentials). * */ - private final List allowedOauthFlows; + private List allowedOauthFlows; /** * @return (Optional) Whether the client is allowed to follow the OAuth protocol when interacting with Cognito user pools. * */ - private final Boolean allowedOauthFlowsUserPoolClient; + private Boolean allowedOauthFlowsUserPoolClient; /** * @return (Optional) List of allowed OAuth scopes (phone, email, openid, profile, and aws.cognito.signin.user.admin). * */ - private final List allowedOauthScopes; + private List allowedOauthScopes; /** * @return (Optional) Configuration block for Amazon Pinpoint analytics for collecting metrics for this user pool. Detailed below. * */ - private final List analyticsConfigurations; + private List analyticsConfigurations; /** * @return (Optional) List of allowed callback URLs for the identity providers. * */ - private final List callbackUrls; - private final String clientId; - private final String clientSecret; + private List callbackUrls; + private String clientId; + private String clientSecret; /** * @return (Optional) Default redirect URI. Must be in the list of callback URLs. * */ - private final String defaultRedirectUri; - private final Boolean enablePropagateAdditionalUserContextData; + private String defaultRedirectUri; + private Boolean enablePropagateAdditionalUserContextData; /** * @return (Optional) Enables or disables token revocation. * */ - private final Boolean enableTokenRevocation; + private Boolean enableTokenRevocation; /** * @return (Optional) List of authentication flows (ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, USER_PASSWORD_AUTH, ALLOW_ADMIN_USER_PASSWORD_AUTH, ALLOW_CUSTOM_AUTH, ALLOW_USER_PASSWORD_AUTH, ALLOW_USER_SRP_AUTH, ALLOW_REFRESH_TOKEN_AUTH). * */ - private final List explicitAuthFlows; + private List explicitAuthFlows; /** * @return (Optional) Should an application secret be generated. * */ - private final Boolean generateSecret; + private Boolean generateSecret; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return (Optional) Time limit, between 5 minutes and 1 day, after which the ID token is no longer valid and cannot be used. This value will be overridden if you have entered a value in `token_validity_units`. * */ - private final Integer idTokenValidity; + private Integer idTokenValidity; /** * @return (Optional) List of allowed logout URLs for the identity providers. * */ - private final List logoutUrls; - private final String name; + private List logoutUrls; + private String name; /** * @return (Optional) Choose which errors and responses are returned by Cognito APIs during authentication, account confirmation, and password recovery when the user does not exist in the user pool. When set to `ENABLED` and the user does not exist, authentication returns an error indicating either the username or password was incorrect, and account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to `LEGACY`, those APIs will return a `UserNotFoundException` exception if the user does not exist in the user pool. * */ - private final String preventUserExistenceErrors; + private String preventUserExistenceErrors; /** * @return (Optional) List of user pool attributes the application client can read from. * */ - private final List readAttributes; + private List readAttributes; /** * @return (Optional) Time limit in days refresh tokens are valid for. * */ - private final Integer refreshTokenValidity; + private Integer refreshTokenValidity; /** * @return (Optional) List of provider names for the identity providers that are supported on this client. Uses the `provider_name` attribute of `aws.cognito.IdentityProvider` resource(s), or the equivalent string(s). * */ - private final List supportedIdentityProviders; + private List supportedIdentityProviders; /** * @return (Optional) Configuration block for units in which the validity times are represented in. Detailed below. * */ - private final List tokenValidityUnits; - private final String userPoolId; + private List tokenValidityUnits; + private String userPoolId; /** * @return (Optional) List of user pool attributes the application client can write to. * */ - private final List writeAttributes; - - @CustomType.Constructor - private GetUserPoolClientResult( - @CustomType.Parameter("accessTokenValidity") Integer accessTokenValidity, - @CustomType.Parameter("allowedOauthFlows") List allowedOauthFlows, - @CustomType.Parameter("allowedOauthFlowsUserPoolClient") Boolean allowedOauthFlowsUserPoolClient, - @CustomType.Parameter("allowedOauthScopes") List allowedOauthScopes, - @CustomType.Parameter("analyticsConfigurations") List analyticsConfigurations, - @CustomType.Parameter("callbackUrls") List callbackUrls, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("defaultRedirectUri") String defaultRedirectUri, - @CustomType.Parameter("enablePropagateAdditionalUserContextData") Boolean enablePropagateAdditionalUserContextData, - @CustomType.Parameter("enableTokenRevocation") Boolean enableTokenRevocation, - @CustomType.Parameter("explicitAuthFlows") List explicitAuthFlows, - @CustomType.Parameter("generateSecret") Boolean generateSecret, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("idTokenValidity") Integer idTokenValidity, - @CustomType.Parameter("logoutUrls") List logoutUrls, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("preventUserExistenceErrors") String preventUserExistenceErrors, - @CustomType.Parameter("readAttributes") List readAttributes, - @CustomType.Parameter("refreshTokenValidity") Integer refreshTokenValidity, - @CustomType.Parameter("supportedIdentityProviders") List supportedIdentityProviders, - @CustomType.Parameter("tokenValidityUnits") List tokenValidityUnits, - @CustomType.Parameter("userPoolId") String userPoolId, - @CustomType.Parameter("writeAttributes") List writeAttributes) { - this.accessTokenValidity = accessTokenValidity; - this.allowedOauthFlows = allowedOauthFlows; - this.allowedOauthFlowsUserPoolClient = allowedOauthFlowsUserPoolClient; - this.allowedOauthScopes = allowedOauthScopes; - this.analyticsConfigurations = analyticsConfigurations; - this.callbackUrls = callbackUrls; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.defaultRedirectUri = defaultRedirectUri; - this.enablePropagateAdditionalUserContextData = enablePropagateAdditionalUserContextData; - this.enableTokenRevocation = enableTokenRevocation; - this.explicitAuthFlows = explicitAuthFlows; - this.generateSecret = generateSecret; - this.id = id; - this.idTokenValidity = idTokenValidity; - this.logoutUrls = logoutUrls; - this.name = name; - this.preventUserExistenceErrors = preventUserExistenceErrors; - this.readAttributes = readAttributes; - this.refreshTokenValidity = refreshTokenValidity; - this.supportedIdentityProviders = supportedIdentityProviders; - this.tokenValidityUnits = tokenValidityUnits; - this.userPoolId = userPoolId; - this.writeAttributes = writeAttributes; - } + private List writeAttributes; + private GetUserPoolClientResult() {} /** * @return (Optional) Time limit, between 5 minutes and 1 day, after which the access token is no longer valid and cannot be used. This value will be overridden if you have entered a value in `token_validity_units`. * @@ -323,7 +272,7 @@ public static Builder builder() { public static Builder builder(GetUserPoolClientResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer accessTokenValidity; private List allowedOauthFlows; @@ -349,11 +298,7 @@ public static final class Builder { private List tokenValidityUnits; private String userPoolId; private List writeAttributes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserPoolClientResult defaults) { Objects.requireNonNull(defaults); this.accessTokenValidity = defaults.accessTokenValidity; @@ -382,10 +327,12 @@ public Builder(GetUserPoolClientResult defaults) { this.writeAttributes = defaults.writeAttributes; } + @CustomType.Setter public Builder accessTokenValidity(Integer accessTokenValidity) { this.accessTokenValidity = Objects.requireNonNull(accessTokenValidity); return this; } + @CustomType.Setter public Builder allowedOauthFlows(List allowedOauthFlows) { this.allowedOauthFlows = Objects.requireNonNull(allowedOauthFlows); return this; @@ -393,10 +340,12 @@ public Builder allowedOauthFlows(List allowedOauthFlows) { public Builder allowedOauthFlows(String... allowedOauthFlows) { return allowedOauthFlows(List.of(allowedOauthFlows)); } + @CustomType.Setter public Builder allowedOauthFlowsUserPoolClient(Boolean allowedOauthFlowsUserPoolClient) { this.allowedOauthFlowsUserPoolClient = Objects.requireNonNull(allowedOauthFlowsUserPoolClient); return this; } + @CustomType.Setter public Builder allowedOauthScopes(List allowedOauthScopes) { this.allowedOauthScopes = Objects.requireNonNull(allowedOauthScopes); return this; @@ -404,6 +353,7 @@ public Builder allowedOauthScopes(List allowedOauthScopes) { public Builder allowedOauthScopes(String... allowedOauthScopes) { return allowedOauthScopes(List.of(allowedOauthScopes)); } + @CustomType.Setter public Builder analyticsConfigurations(List analyticsConfigurations) { this.analyticsConfigurations = Objects.requireNonNull(analyticsConfigurations); return this; @@ -411,6 +361,7 @@ public Builder analyticsConfigurations(List callbackUrls) { this.callbackUrls = Objects.requireNonNull(callbackUrls); return this; @@ -418,26 +369,32 @@ public Builder callbackUrls(List callbackUrls) { public Builder callbackUrls(String... callbackUrls) { return callbackUrls(List.of(callbackUrls)); } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder defaultRedirectUri(String defaultRedirectUri) { this.defaultRedirectUri = Objects.requireNonNull(defaultRedirectUri); return this; } + @CustomType.Setter public Builder enablePropagateAdditionalUserContextData(Boolean enablePropagateAdditionalUserContextData) { this.enablePropagateAdditionalUserContextData = Objects.requireNonNull(enablePropagateAdditionalUserContextData); return this; } + @CustomType.Setter public Builder enableTokenRevocation(Boolean enableTokenRevocation) { this.enableTokenRevocation = Objects.requireNonNull(enableTokenRevocation); return this; } + @CustomType.Setter public Builder explicitAuthFlows(List explicitAuthFlows) { this.explicitAuthFlows = Objects.requireNonNull(explicitAuthFlows); return this; @@ -445,18 +402,22 @@ public Builder explicitAuthFlows(List explicitAuthFlows) { public Builder explicitAuthFlows(String... explicitAuthFlows) { return explicitAuthFlows(List.of(explicitAuthFlows)); } + @CustomType.Setter public Builder generateSecret(Boolean generateSecret) { this.generateSecret = Objects.requireNonNull(generateSecret); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder idTokenValidity(Integer idTokenValidity) { this.idTokenValidity = Objects.requireNonNull(idTokenValidity); return this; } + @CustomType.Setter public Builder logoutUrls(List logoutUrls) { this.logoutUrls = Objects.requireNonNull(logoutUrls); return this; @@ -464,14 +425,17 @@ public Builder logoutUrls(List logoutUrls) { public Builder logoutUrls(String... logoutUrls) { return logoutUrls(List.of(logoutUrls)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder preventUserExistenceErrors(String preventUserExistenceErrors) { this.preventUserExistenceErrors = Objects.requireNonNull(preventUserExistenceErrors); return this; } + @CustomType.Setter public Builder readAttributes(List readAttributes) { this.readAttributes = Objects.requireNonNull(readAttributes); return this; @@ -479,10 +443,12 @@ public Builder readAttributes(List readAttributes) { public Builder readAttributes(String... readAttributes) { return readAttributes(List.of(readAttributes)); } + @CustomType.Setter public Builder refreshTokenValidity(Integer refreshTokenValidity) { this.refreshTokenValidity = Objects.requireNonNull(refreshTokenValidity); return this; } + @CustomType.Setter public Builder supportedIdentityProviders(List supportedIdentityProviders) { this.supportedIdentityProviders = Objects.requireNonNull(supportedIdentityProviders); return this; @@ -490,6 +456,7 @@ public Builder supportedIdentityProviders(List supportedIdentityProvider public Builder supportedIdentityProviders(String... supportedIdentityProviders) { return supportedIdentityProviders(List.of(supportedIdentityProviders)); } + @CustomType.Setter public Builder tokenValidityUnits(List tokenValidityUnits) { this.tokenValidityUnits = Objects.requireNonNull(tokenValidityUnits); return this; @@ -497,18 +464,46 @@ public Builder tokenValidityUnits(List token public Builder tokenValidityUnits(GetUserPoolClientTokenValidityUnit... tokenValidityUnits) { return tokenValidityUnits(List.of(tokenValidityUnits)); } + @CustomType.Setter public Builder userPoolId(String userPoolId) { this.userPoolId = Objects.requireNonNull(userPoolId); return this; } + @CustomType.Setter public Builder writeAttributes(List writeAttributes) { this.writeAttributes = Objects.requireNonNull(writeAttributes); return this; } public Builder writeAttributes(String... writeAttributes) { return writeAttributes(List.of(writeAttributes)); - } public GetUserPoolClientResult build() { - return new GetUserPoolClientResult(accessTokenValidity, allowedOauthFlows, allowedOauthFlowsUserPoolClient, allowedOauthScopes, analyticsConfigurations, callbackUrls, clientId, clientSecret, defaultRedirectUri, enablePropagateAdditionalUserContextData, enableTokenRevocation, explicitAuthFlows, generateSecret, id, idTokenValidity, logoutUrls, name, preventUserExistenceErrors, readAttributes, refreshTokenValidity, supportedIdentityProviders, tokenValidityUnits, userPoolId, writeAttributes); + } + public GetUserPoolClientResult build() { + final var o = new GetUserPoolClientResult(); + o.accessTokenValidity = accessTokenValidity; + o.allowedOauthFlows = allowedOauthFlows; + o.allowedOauthFlowsUserPoolClient = allowedOauthFlowsUserPoolClient; + o.allowedOauthScopes = allowedOauthScopes; + o.analyticsConfigurations = analyticsConfigurations; + o.callbackUrls = callbackUrls; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.defaultRedirectUri = defaultRedirectUri; + o.enablePropagateAdditionalUserContextData = enablePropagateAdditionalUserContextData; + o.enableTokenRevocation = enableTokenRevocation; + o.explicitAuthFlows = explicitAuthFlows; + o.generateSecret = generateSecret; + o.id = id; + o.idTokenValidity = idTokenValidity; + o.logoutUrls = logoutUrls; + o.name = name; + o.preventUserExistenceErrors = preventUserExistenceErrors; + o.readAttributes = readAttributes; + o.refreshTokenValidity = refreshTokenValidity; + o.supportedIdentityProviders = supportedIdentityProviders; + o.tokenValidityUnits = tokenValidityUnits; + o.userPoolId = userPoolId; + o.writeAttributes = writeAttributes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientTokenValidityUnit.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientTokenValidityUnit.java index 532d1342ef0..951456ea58c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientTokenValidityUnit.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientTokenValidityUnit.java @@ -13,28 +13,19 @@ public final class GetUserPoolClientTokenValidityUnit { * @return (Optional) Time unit in for the value in `access_token_validity`, defaults to `hours`. * */ - private final String accessToken; + private String accessToken; /** * @return (Optional) Time unit in for the value in `id_token_validity`, defaults to `hours`. * */ - private final String idToken; + private String idToken; /** * @return (Optional) Time unit in for the value in `refresh_token_validity`, defaults to `days`. * */ - private final String refreshToken; - - @CustomType.Constructor - private GetUserPoolClientTokenValidityUnit( - @CustomType.Parameter("accessToken") String accessToken, - @CustomType.Parameter("idToken") String idToken, - @CustomType.Parameter("refreshToken") String refreshToken) { - this.accessToken = accessToken; - this.idToken = idToken; - this.refreshToken = refreshToken; - } + private String refreshToken; + private GetUserPoolClientTokenValidityUnit() {} /** * @return (Optional) Time unit in for the value in `access_token_validity`, defaults to `hours`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetUserPoolClientTokenValidityUnit defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accessToken; private String idToken; private String refreshToken; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserPoolClientTokenValidityUnit defaults) { Objects.requireNonNull(defaults); this.accessToken = defaults.accessToken; @@ -81,19 +68,27 @@ public Builder(GetUserPoolClientTokenValidityUnit defaults) { this.refreshToken = defaults.refreshToken; } + @CustomType.Setter public Builder accessToken(String accessToken) { this.accessToken = Objects.requireNonNull(accessToken); return this; } + @CustomType.Setter public Builder idToken(String idToken) { this.idToken = Objects.requireNonNull(idToken); return this; } + @CustomType.Setter public Builder refreshToken(String refreshToken) { this.refreshToken = Objects.requireNonNull(refreshToken); return this; - } public GetUserPoolClientTokenValidityUnit build() { - return new GetUserPoolClientTokenValidityUnit(accessToken, idToken, refreshToken); + } + public GetUserPoolClientTokenValidityUnit build() { + final var o = new GetUserPoolClientTokenValidityUnit(); + o.accessToken = accessToken; + o.idToken = idToken; + o.refreshToken = refreshToken; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientsResult.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientsResult.java index 363580d5011..947c76d9cb0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolClientsResult.java @@ -14,31 +14,20 @@ public final class GetUserPoolClientsResult { * @return List of Cognito user pool client IDs. * */ - private final List clientIds; + private List clientIds; /** * @return List of Cognito user pool client names. * */ - private final List clientNames; + private List clientNames; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String userPoolId; - - @CustomType.Constructor - private GetUserPoolClientsResult( - @CustomType.Parameter("clientIds") List clientIds, - @CustomType.Parameter("clientNames") List clientNames, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("userPoolId") String userPoolId) { - this.clientIds = clientIds; - this.clientNames = clientNames; - this.id = id; - this.userPoolId = userPoolId; - } + private String id; + private String userPoolId; + private GetUserPoolClientsResult() {} /** * @return List of Cognito user pool client IDs. * @@ -71,17 +60,13 @@ public static Builder builder() { public static Builder builder(GetUserPoolClientsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List clientIds; private List clientNames; private String id; private String userPoolId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserPoolClientsResult defaults) { Objects.requireNonNull(defaults); this.clientIds = defaults.clientIds; @@ -90,6 +75,7 @@ public Builder(GetUserPoolClientsResult defaults) { this.userPoolId = defaults.userPoolId; } + @CustomType.Setter public Builder clientIds(List clientIds) { this.clientIds = Objects.requireNonNull(clientIds); return this; @@ -97,6 +83,7 @@ public Builder clientIds(List clientIds) { public Builder clientIds(String... clientIds) { return clientIds(List.of(clientIds)); } + @CustomType.Setter public Builder clientNames(List clientNames) { this.clientNames = Objects.requireNonNull(clientNames); return this; @@ -104,15 +91,23 @@ public Builder clientNames(List clientNames) { public Builder clientNames(String... clientNames) { return clientNames(List.of(clientNames)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder userPoolId(String userPoolId) { this.userPoolId = Objects.requireNonNull(userPoolId); return this; - } public GetUserPoolClientsResult build() { - return new GetUserPoolClientsResult(clientIds, clientNames, id, userPoolId); + } + public GetUserPoolClientsResult build() { + final var o = new GetUserPoolClientsResult(); + o.clientIds = clientIds; + o.clientNames = clientNames; + o.id = id; + o.userPoolId = userPoolId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolSigningCertificateResult.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolSigningCertificateResult.java index 85e37447289..23f95e47798 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolSigningCertificateResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolSigningCertificateResult.java @@ -13,24 +13,15 @@ public final class GetUserPoolSigningCertificateResult { * @return The certificate string * */ - private final String certificate; + private String certificate; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String userPoolId; - - @CustomType.Constructor - private GetUserPoolSigningCertificateResult( - @CustomType.Parameter("certificate") String certificate, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("userPoolId") String userPoolId) { - this.certificate = certificate; - this.id = id; - this.userPoolId = userPoolId; - } + private String id; + private String userPoolId; + private GetUserPoolSigningCertificateResult() {} /** * @return The certificate string * @@ -56,16 +47,12 @@ public static Builder builder() { public static Builder builder(GetUserPoolSigningCertificateResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificate; private String id; private String userPoolId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserPoolSigningCertificateResult defaults) { Objects.requireNonNull(defaults); this.certificate = defaults.certificate; @@ -73,19 +60,27 @@ public Builder(GetUserPoolSigningCertificateResult defaults) { this.userPoolId = defaults.userPoolId; } + @CustomType.Setter public Builder certificate(String certificate) { this.certificate = Objects.requireNonNull(certificate); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder userPoolId(String userPoolId) { this.userPoolId = Objects.requireNonNull(userPoolId); return this; - } public GetUserPoolSigningCertificateResult build() { - return new GetUserPoolSigningCertificateResult(certificate, id, userPoolId); + } + public GetUserPoolSigningCertificateResult build() { + final var o = new GetUserPoolSigningCertificateResult(); + o.certificate = certificate; + o.id = id; + o.userPoolId = userPoolId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolsResult.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolsResult.java index c6446f88289..971ee140b49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/GetUserPoolsResult.java @@ -14,31 +14,20 @@ public final class GetUserPoolsResult { * @return The set of cognito user pool Amazon Resource Names (ARNs). * */ - private final List arns; + private List arns; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The set of cognito user pool ids. * */ - private final List ids; - private final String name; - - @CustomType.Constructor - private GetUserPoolsResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("name") String name) { - this.arns = arns; - this.id = id; - this.ids = ids; - this.name = name; - } + private List ids; + private String name; + private GetUserPoolsResult() {} /** * @return The set of cognito user pool Amazon Resource Names (ARNs). * @@ -71,17 +60,13 @@ public static Builder builder() { public static Builder builder(GetUserPoolsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private String id; private List ids; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserPoolsResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -90,6 +75,7 @@ public Builder(GetUserPoolsResult defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -97,10 +83,12 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -108,11 +96,18 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetUserPoolsResult build() { - return new GetUserPoolsResult(arns, id, ids, name); + } + public GetUserPoolsResult build() { + final var o = new GetUserPoolsResult(); + o.arns = arns; + o.id = id; + o.ids = ids; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/IdentityPoolCognitoIdentityProvider.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/IdentityPoolCognitoIdentityProvider.java index 40c1cbe8167..e1ad9836217 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/IdentityPoolCognitoIdentityProvider.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/IdentityPoolCognitoIdentityProvider.java @@ -16,28 +16,19 @@ public final class IdentityPoolCognitoIdentityProvider { * @return The client ID for the Amazon Cognito Identity User Pool. * */ - private final @Nullable String clientId; + private @Nullable String clientId; /** * @return The provider name for an Amazon Cognito Identity User Pool. * */ - private final @Nullable String providerName; + private @Nullable String providerName; /** * @return Whether server-side token validation is enabled for the identity provider’s token or not. * */ - private final @Nullable Boolean serverSideTokenCheck; - - @CustomType.Constructor - private IdentityPoolCognitoIdentityProvider( - @CustomType.Parameter("clientId") @Nullable String clientId, - @CustomType.Parameter("providerName") @Nullable String providerName, - @CustomType.Parameter("serverSideTokenCheck") @Nullable Boolean serverSideTokenCheck) { - this.clientId = clientId; - this.providerName = providerName; - this.serverSideTokenCheck = serverSideTokenCheck; - } + private @Nullable Boolean serverSideTokenCheck; + private IdentityPoolCognitoIdentityProvider() {} /** * @return The client ID for the Amazon Cognito Identity User Pool. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(IdentityPoolCognitoIdentityProvider defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String clientId; private @Nullable String providerName; private @Nullable Boolean serverSideTokenCheck; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IdentityPoolCognitoIdentityProvider defaults) { Objects.requireNonNull(defaults); this.clientId = defaults.clientId; @@ -84,19 +71,27 @@ public Builder(IdentityPoolCognitoIdentityProvider defaults) { this.serverSideTokenCheck = defaults.serverSideTokenCheck; } + @CustomType.Setter public Builder clientId(@Nullable String clientId) { this.clientId = clientId; return this; } + @CustomType.Setter public Builder providerName(@Nullable String providerName) { this.providerName = providerName; return this; } + @CustomType.Setter public Builder serverSideTokenCheck(@Nullable Boolean serverSideTokenCheck) { this.serverSideTokenCheck = serverSideTokenCheck; return this; - } public IdentityPoolCognitoIdentityProvider build() { - return new IdentityPoolCognitoIdentityProvider(clientId, providerName, serverSideTokenCheck); + } + public IdentityPoolCognitoIdentityProvider build() { + final var o = new IdentityPoolCognitoIdentityProvider(); + o.clientId = clientId; + o.providerName = providerName; + o.serverSideTokenCheck = serverSideTokenCheck; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/IdentityPoolRoleAttachmentRoleMapping.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/IdentityPoolRoleAttachmentRoleMapping.java index 4439aeb7d36..a9217285c76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/IdentityPoolRoleAttachmentRoleMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/IdentityPoolRoleAttachmentRoleMapping.java @@ -17,35 +17,24 @@ public final class IdentityPoolRoleAttachmentRoleMapping { * @return Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type. `Required` if you specify Token or Rules as the Type. * */ - private final @Nullable String ambiguousRoleResolution; + private @Nullable String ambiguousRoleResolution; /** * @return A string identifying the identity provider, for example, "graph.facebook.com" or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". Depends on `cognito_identity_providers` set on `aws.cognito.IdentityPool` resource or a `aws.cognito.IdentityProvider` resource. * */ - private final String identityProvider; + private String identityProvider; /** * @return The Rules Configuration to be used for mapping users to roles. You can specify up to 25 rules per identity provider. Rules are evaluated in order. The first one to match specifies the role. * */ - private final @Nullable List mappingRules; + private @Nullable List mappingRules; /** * @return The role mapping type. * */ - private final String type; - - @CustomType.Constructor - private IdentityPoolRoleAttachmentRoleMapping( - @CustomType.Parameter("ambiguousRoleResolution") @Nullable String ambiguousRoleResolution, - @CustomType.Parameter("identityProvider") String identityProvider, - @CustomType.Parameter("mappingRules") @Nullable List mappingRules, - @CustomType.Parameter("type") String type) { - this.ambiguousRoleResolution = ambiguousRoleResolution; - this.identityProvider = identityProvider; - this.mappingRules = mappingRules; - this.type = type; - } + private String type; + private IdentityPoolRoleAttachmentRoleMapping() {} /** * @return Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type. `Required` if you specify Token or Rules as the Type. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(IdentityPoolRoleAttachmentRoleMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String ambiguousRoleResolution; private String identityProvider; private @Nullable List mappingRules; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IdentityPoolRoleAttachmentRoleMapping defaults) { Objects.requireNonNull(defaults); this.ambiguousRoleResolution = defaults.ambiguousRoleResolution; @@ -101,14 +86,17 @@ public Builder(IdentityPoolRoleAttachmentRoleMapping defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder ambiguousRoleResolution(@Nullable String ambiguousRoleResolution) { this.ambiguousRoleResolution = ambiguousRoleResolution; return this; } + @CustomType.Setter public Builder identityProvider(String identityProvider) { this.identityProvider = Objects.requireNonNull(identityProvider); return this; } + @CustomType.Setter public Builder mappingRules(@Nullable List mappingRules) { this.mappingRules = mappingRules; return this; @@ -116,11 +104,18 @@ public Builder mappingRules(@Nullable List eventFilters; - - @CustomType.Constructor - private RiskConfigurationCompromisedCredentialsRiskConfiguration( - @CustomType.Parameter("actions") RiskConfigurationCompromisedCredentialsRiskConfigurationActions actions, - @CustomType.Parameter("eventFilters") @Nullable List eventFilters) { - this.actions = actions; - this.eventFilters = eventFilters; - } + private @Nullable List eventFilters; + private RiskConfigurationCompromisedCredentialsRiskConfiguration() {} /** * @return The compromised credentials risk configuration actions. See details below. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(RiskConfigurationCompromisedCredentialsRiskConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RiskConfigurationCompromisedCredentialsRiskConfigurationActions actions; private @Nullable List eventFilters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RiskConfigurationCompromisedCredentialsRiskConfiguration defaults) { Objects.requireNonNull(defaults); this.actions = defaults.actions; this.eventFilters = defaults.eventFilters; } + @CustomType.Setter public Builder actions(RiskConfigurationCompromisedCredentialsRiskConfigurationActions actions) { this.actions = Objects.requireNonNull(actions); return this; } + @CustomType.Setter public Builder eventFilters(@Nullable List eventFilters) { this.eventFilters = eventFilters; return this; } public Builder eventFilters(String... eventFilters) { return eventFilters(List.of(eventFilters)); - } public RiskConfigurationCompromisedCredentialsRiskConfiguration build() { - return new RiskConfigurationCompromisedCredentialsRiskConfiguration(actions, eventFilters); + } + public RiskConfigurationCompromisedCredentialsRiskConfiguration build() { + final var o = new RiskConfigurationCompromisedCredentialsRiskConfiguration(); + o.actions = actions; + o.eventFilters = eventFilters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/RiskConfigurationCompromisedCredentialsRiskConfigurationActions.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/RiskConfigurationCompromisedCredentialsRiskConfigurationActions.java index f4461ded496..04a95f3f2ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/RiskConfigurationCompromisedCredentialsRiskConfigurationActions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/RiskConfigurationCompromisedCredentialsRiskConfigurationActions.java @@ -13,13 +13,9 @@ public final class RiskConfigurationCompromisedCredentialsRiskConfigurationActio * @return The event action. Valid values are `BLOCK` or `NO_ACTION`. * */ - private final String eventAction; - - @CustomType.Constructor - private RiskConfigurationCompromisedCredentialsRiskConfigurationActions(@CustomType.Parameter("eventAction") String eventAction) { - this.eventAction = eventAction; - } + private String eventAction; + private RiskConfigurationCompromisedCredentialsRiskConfigurationActions() {} /** * @return The event action. Valid values are `BLOCK` or `NO_ACTION`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RiskConfigurationCompromisedCredentialsRiskConfigurationActions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String eventAction; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RiskConfigurationCompromisedCredentialsRiskConfigurationActions defaults) { Objects.requireNonNull(defaults); this.eventAction = defaults.eventAction; } + @CustomType.Setter public Builder eventAction(String eventAction) { this.eventAction = Objects.requireNonNull(eventAction); return this; - } public RiskConfigurationCompromisedCredentialsRiskConfigurationActions build() { - return new RiskConfigurationCompromisedCredentialsRiskConfigurationActions(eventAction); + } + public RiskConfigurationCompromisedCredentialsRiskConfigurationActions build() { + final var o = new RiskConfigurationCompromisedCredentialsRiskConfigurationActions(); + o.eventAction = eventAction; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/RiskConfigurationRiskExceptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/RiskConfigurationRiskExceptionConfiguration.java index 6af1874e7f1..5d9fb68b77e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/RiskConfigurationRiskExceptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/RiskConfigurationRiskExceptionConfiguration.java @@ -15,21 +15,14 @@ public final class RiskConfigurationRiskExceptionConfiguration { * @return Overrides the risk decision to always block the pre-authentication requests. The IP range is in CIDR notation, a compact representation of an IP address and its routing prefix. * */ - private final @Nullable List blockedIpRangeLists; + private @Nullable List blockedIpRangeLists; /** * @return Risk detection isn't performed on the IP addresses in this range list. The IP range is in CIDR notation. * */ - private final @Nullable List skippedIpRangeLists; - - @CustomType.Constructor - private RiskConfigurationRiskExceptionConfiguration( - @CustomType.Parameter("blockedIpRangeLists") @Nullable List blockedIpRangeLists, - @CustomType.Parameter("skippedIpRangeLists") @Nullable List skippedIpRangeLists) { - this.blockedIpRangeLists = blockedIpRangeLists; - this.skippedIpRangeLists = skippedIpRangeLists; - } + private @Nullable List skippedIpRangeLists; + private RiskConfigurationRiskExceptionConfiguration() {} /** * @return Overrides the risk decision to always block the pre-authentication requests. The IP range is in CIDR notation, a compact representation of an IP address and its routing prefix. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(RiskConfigurationRiskExceptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List blockedIpRangeLists; private @Nullable List skippedIpRangeLists; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RiskConfigurationRiskExceptionConfiguration defaults) { Objects.requireNonNull(defaults); this.blockedIpRangeLists = defaults.blockedIpRangeLists; this.skippedIpRangeLists = defaults.skippedIpRangeLists; } + @CustomType.Setter public Builder blockedIpRangeLists(@Nullable List blockedIpRangeLists) { this.blockedIpRangeLists = blockedIpRangeLists; return this; @@ -74,14 +64,19 @@ public Builder blockedIpRangeLists(@Nullable List blockedIpRangeLists) { public Builder blockedIpRangeLists(String... blockedIpRangeLists) { return blockedIpRangeLists(List.of(blockedIpRangeLists)); } + @CustomType.Setter public Builder skippedIpRangeLists(@Nullable List skippedIpRangeLists) { this.skippedIpRangeLists = skippedIpRangeLists; return this; } public Builder skippedIpRangeLists(String... skippedIpRangeLists) { return skippedIpRangeLists(List.of(skippedIpRangeLists)); - } public RiskConfigurationRiskExceptionConfiguration build() { - return new RiskConfigurationRiskExceptionConfiguration(blockedIpRangeLists, skippedIpRangeLists); + } + public RiskConfigurationRiskExceptionConfiguration build() { + final var o = new RiskConfigurationRiskExceptionConfiguration(); + o.blockedIpRangeLists = blockedIpRangeLists; + o.skippedIpRangeLists = skippedIpRangeLists; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAccountRecoverySetting.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAccountRecoverySetting.java index 8b2f69dda17..d4752d78c1a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAccountRecoverySetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAccountRecoverySetting.java @@ -14,13 +14,9 @@ public final class UserPoolAccountRecoverySetting { * @return List of Account Recovery Options of the following structure: * */ - private final List recoveryMechanisms; - - @CustomType.Constructor - private UserPoolAccountRecoverySetting(@CustomType.Parameter("recoveryMechanisms") List recoveryMechanisms) { - this.recoveryMechanisms = recoveryMechanisms; - } + private List recoveryMechanisms; + private UserPoolAccountRecoverySetting() {} /** * @return List of Account Recovery Options of the following structure: * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(UserPoolAccountRecoverySetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List recoveryMechanisms; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolAccountRecoverySetting defaults) { Objects.requireNonNull(defaults); this.recoveryMechanisms = defaults.recoveryMechanisms; } + @CustomType.Setter public Builder recoveryMechanisms(List recoveryMechanisms) { this.recoveryMechanisms = Objects.requireNonNull(recoveryMechanisms); return this; } public Builder recoveryMechanisms(UserPoolAccountRecoverySettingRecoveryMechanism... recoveryMechanisms) { return recoveryMechanisms(List.of(recoveryMechanisms)); - } public UserPoolAccountRecoverySetting build() { - return new UserPoolAccountRecoverySetting(recoveryMechanisms); + } + public UserPoolAccountRecoverySetting build() { + final var o = new UserPoolAccountRecoverySetting(); + o.recoveryMechanisms = recoveryMechanisms; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAccountRecoverySettingRecoveryMechanism.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAccountRecoverySettingRecoveryMechanism.java index 97bbd7b8346..2e6d9c05fcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAccountRecoverySettingRecoveryMechanism.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAccountRecoverySettingRecoveryMechanism.java @@ -14,21 +14,14 @@ public final class UserPoolAccountRecoverySettingRecoveryMechanism { * @return Name of the attribute. * */ - private final String name; + private String name; /** * @return Positive integer specifying priority of a method with 1 being the highest priority. * */ - private final Integer priority; - - @CustomType.Constructor - private UserPoolAccountRecoverySettingRecoveryMechanism( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("priority") Integer priority) { - this.name = name; - this.priority = priority; - } + private Integer priority; + private UserPoolAccountRecoverySettingRecoveryMechanism() {} /** * @return Name of the attribute. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(UserPoolAccountRecoverySettingRecoveryMechanism defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private Integer priority; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolAccountRecoverySettingRecoveryMechanism defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.priority = defaults.priority; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; - } public UserPoolAccountRecoverySettingRecoveryMechanism build() { - return new UserPoolAccountRecoverySettingRecoveryMechanism(name, priority); + } + public UserPoolAccountRecoverySettingRecoveryMechanism build() { + final var o = new UserPoolAccountRecoverySettingRecoveryMechanism(); + o.name = name; + o.priority = priority; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAdminCreateUserConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAdminCreateUserConfig.java index 94e81de9c03..f31b90468be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAdminCreateUserConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAdminCreateUserConfig.java @@ -16,21 +16,14 @@ public final class UserPoolAdminCreateUserConfig { * @return Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app. * */ - private final @Nullable Boolean allowAdminCreateUserOnly; + private @Nullable Boolean allowAdminCreateUserOnly; /** * @return Invite message template structure. Detailed below. * */ - private final @Nullable UserPoolAdminCreateUserConfigInviteMessageTemplate inviteMessageTemplate; - - @CustomType.Constructor - private UserPoolAdminCreateUserConfig( - @CustomType.Parameter("allowAdminCreateUserOnly") @Nullable Boolean allowAdminCreateUserOnly, - @CustomType.Parameter("inviteMessageTemplate") @Nullable UserPoolAdminCreateUserConfigInviteMessageTemplate inviteMessageTemplate) { - this.allowAdminCreateUserOnly = allowAdminCreateUserOnly; - this.inviteMessageTemplate = inviteMessageTemplate; - } + private @Nullable UserPoolAdminCreateUserConfigInviteMessageTemplate inviteMessageTemplate; + private UserPoolAdminCreateUserConfig() {} /** * @return Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(UserPoolAdminCreateUserConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allowAdminCreateUserOnly; private @Nullable UserPoolAdminCreateUserConfigInviteMessageTemplate inviteMessageTemplate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolAdminCreateUserConfig defaults) { Objects.requireNonNull(defaults); this.allowAdminCreateUserOnly = defaults.allowAdminCreateUserOnly; this.inviteMessageTemplate = defaults.inviteMessageTemplate; } + @CustomType.Setter public Builder allowAdminCreateUserOnly(@Nullable Boolean allowAdminCreateUserOnly) { this.allowAdminCreateUserOnly = allowAdminCreateUserOnly; return this; } + @CustomType.Setter public Builder inviteMessageTemplate(@Nullable UserPoolAdminCreateUserConfigInviteMessageTemplate inviteMessageTemplate) { this.inviteMessageTemplate = inviteMessageTemplate; return this; - } public UserPoolAdminCreateUserConfig build() { - return new UserPoolAdminCreateUserConfig(allowAdminCreateUserOnly, inviteMessageTemplate); + } + public UserPoolAdminCreateUserConfig build() { + final var o = new UserPoolAdminCreateUserConfig(); + o.allowAdminCreateUserOnly = allowAdminCreateUserOnly; + o.inviteMessageTemplate = inviteMessageTemplate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAdminCreateUserConfigInviteMessageTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAdminCreateUserConfigInviteMessageTemplate.java index 50bd6494725..5df13360336 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAdminCreateUserConfigInviteMessageTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolAdminCreateUserConfigInviteMessageTemplate.java @@ -15,28 +15,19 @@ public final class UserPoolAdminCreateUserConfigInviteMessageTemplate { * @return Email message template. Must contain the `{####}` placeholder. Conflicts with `email_verification_message` argument. * */ - private final @Nullable String emailMessage; + private @Nullable String emailMessage; /** * @return Subject line for the email message template. Conflicts with `email_verification_subject` argument. * */ - private final @Nullable String emailSubject; + private @Nullable String emailSubject; /** * @return SMS message template. Must contain the `{####}` placeholder. Conflicts with `sms_verification_message` argument. * */ - private final @Nullable String smsMessage; - - @CustomType.Constructor - private UserPoolAdminCreateUserConfigInviteMessageTemplate( - @CustomType.Parameter("emailMessage") @Nullable String emailMessage, - @CustomType.Parameter("emailSubject") @Nullable String emailSubject, - @CustomType.Parameter("smsMessage") @Nullable String smsMessage) { - this.emailMessage = emailMessage; - this.emailSubject = emailSubject; - this.smsMessage = smsMessage; - } + private @Nullable String smsMessage; + private UserPoolAdminCreateUserConfigInviteMessageTemplate() {} /** * @return Email message template. Must contain the `{####}` placeholder. Conflicts with `email_verification_message` argument. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserPoolAdminCreateUserConfigInviteMessageTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String emailMessage; private @Nullable String emailSubject; private @Nullable String smsMessage; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolAdminCreateUserConfigInviteMessageTemplate defaults) { Objects.requireNonNull(defaults); this.emailMessage = defaults.emailMessage; @@ -83,19 +70,27 @@ public Builder(UserPoolAdminCreateUserConfigInviteMessageTemplate defaults) { this.smsMessage = defaults.smsMessage; } + @CustomType.Setter public Builder emailMessage(@Nullable String emailMessage) { this.emailMessage = emailMessage; return this; } + @CustomType.Setter public Builder emailSubject(@Nullable String emailSubject) { this.emailSubject = emailSubject; return this; } + @CustomType.Setter public Builder smsMessage(@Nullable String smsMessage) { this.smsMessage = smsMessage; return this; - } public UserPoolAdminCreateUserConfigInviteMessageTemplate build() { - return new UserPoolAdminCreateUserConfigInviteMessageTemplate(emailMessage, emailSubject, smsMessage); + } + public UserPoolAdminCreateUserConfigInviteMessageTemplate build() { + final var o = new UserPoolAdminCreateUserConfigInviteMessageTemplate(); + o.emailMessage = emailMessage; + o.emailSubject = emailSubject; + o.smsMessage = smsMessage; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolClientAnalyticsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolClientAnalyticsConfiguration.java index 7589c6693bf..a24bebedca2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolClientAnalyticsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolClientAnalyticsConfiguration.java @@ -16,42 +16,29 @@ public final class UserPoolClientAnalyticsConfiguration { * @return Application ARN for an Amazon Pinpoint application. Conflicts with `external_id` and `role_arn`. * */ - private final @Nullable String applicationArn; + private @Nullable String applicationArn; /** * @return Application ID for an Amazon Pinpoint application. * */ - private final @Nullable String applicationId; + private @Nullable String applicationId; /** * @return ID for the Analytics Configuration. Conflicts with `application_arn`. * */ - private final @Nullable String externalId; + private @Nullable String externalId; /** * @return ARN of an IAM role that authorizes Amazon Cognito to publish events to Amazon Pinpoint analytics. Conflicts with `application_arn`. * */ - private final @Nullable String roleArn; + private @Nullable String roleArn; /** * @return If set to `true`, Amazon Cognito will include user data in the events it publishes to Amazon Pinpoint analytics. * */ - private final @Nullable Boolean userDataShared; - - @CustomType.Constructor - private UserPoolClientAnalyticsConfiguration( - @CustomType.Parameter("applicationArn") @Nullable String applicationArn, - @CustomType.Parameter("applicationId") @Nullable String applicationId, - @CustomType.Parameter("externalId") @Nullable String externalId, - @CustomType.Parameter("roleArn") @Nullable String roleArn, - @CustomType.Parameter("userDataShared") @Nullable Boolean userDataShared) { - this.applicationArn = applicationArn; - this.applicationId = applicationId; - this.externalId = externalId; - this.roleArn = roleArn; - this.userDataShared = userDataShared; - } + private @Nullable Boolean userDataShared; + private UserPoolClientAnalyticsConfiguration() {} /** * @return Application ARN for an Amazon Pinpoint application. Conflicts with `external_id` and `role_arn`. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(UserPoolClientAnalyticsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String applicationArn; private @Nullable String applicationId; private @Nullable String externalId; private @Nullable String roleArn; private @Nullable Boolean userDataShared; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolClientAnalyticsConfiguration defaults) { Objects.requireNonNull(defaults); this.applicationArn = defaults.applicationArn; @@ -116,27 +99,39 @@ public Builder(UserPoolClientAnalyticsConfiguration defaults) { this.userDataShared = defaults.userDataShared; } + @CustomType.Setter public Builder applicationArn(@Nullable String applicationArn) { this.applicationArn = applicationArn; return this; } + @CustomType.Setter public Builder applicationId(@Nullable String applicationId) { this.applicationId = applicationId; return this; } + @CustomType.Setter public Builder externalId(@Nullable String externalId) { this.externalId = externalId; return this; } + @CustomType.Setter public Builder roleArn(@Nullable String roleArn) { this.roleArn = roleArn; return this; } + @CustomType.Setter public Builder userDataShared(@Nullable Boolean userDataShared) { this.userDataShared = userDataShared; return this; - } public UserPoolClientAnalyticsConfiguration build() { - return new UserPoolClientAnalyticsConfiguration(applicationArn, applicationId, externalId, roleArn, userDataShared); + } + public UserPoolClientAnalyticsConfiguration build() { + final var o = new UserPoolClientAnalyticsConfiguration(); + o.applicationArn = applicationArn; + o.applicationId = applicationId; + o.externalId = externalId; + o.roleArn = roleArn; + o.userDataShared = userDataShared; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolClientTokenValidityUnits.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolClientTokenValidityUnits.java index 45249afedf7..3150bf86ad3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolClientTokenValidityUnits.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolClientTokenValidityUnits.java @@ -15,28 +15,19 @@ public final class UserPoolClientTokenValidityUnits { * @return Time unit in for the value in `access_token_validity`, defaults to `hours`. * */ - private final @Nullable String accessToken; + private @Nullable String accessToken; /** * @return Time unit in for the value in `id_token_validity`, defaults to `hours`. * */ - private final @Nullable String idToken; + private @Nullable String idToken; /** * @return Time unit in for the value in `refresh_token_validity`, defaults to `days`. * */ - private final @Nullable String refreshToken; - - @CustomType.Constructor - private UserPoolClientTokenValidityUnits( - @CustomType.Parameter("accessToken") @Nullable String accessToken, - @CustomType.Parameter("idToken") @Nullable String idToken, - @CustomType.Parameter("refreshToken") @Nullable String refreshToken) { - this.accessToken = accessToken; - this.idToken = idToken; - this.refreshToken = refreshToken; - } + private @Nullable String refreshToken; + private UserPoolClientTokenValidityUnits() {} /** * @return Time unit in for the value in `access_token_validity`, defaults to `hours`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserPoolClientTokenValidityUnits defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessToken; private @Nullable String idToken; private @Nullable String refreshToken; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolClientTokenValidityUnits defaults) { Objects.requireNonNull(defaults); this.accessToken = defaults.accessToken; @@ -83,19 +70,27 @@ public Builder(UserPoolClientTokenValidityUnits defaults) { this.refreshToken = defaults.refreshToken; } + @CustomType.Setter public Builder accessToken(@Nullable String accessToken) { this.accessToken = accessToken; return this; } + @CustomType.Setter public Builder idToken(@Nullable String idToken) { this.idToken = idToken; return this; } + @CustomType.Setter public Builder refreshToken(@Nullable String refreshToken) { this.refreshToken = refreshToken; return this; - } public UserPoolClientTokenValidityUnits build() { - return new UserPoolClientTokenValidityUnits(accessToken, idToken, refreshToken); + } + public UserPoolClientTokenValidityUnits build() { + final var o = new UserPoolClientTokenValidityUnits(); + o.accessToken = accessToken; + o.idToken = idToken; + o.refreshToken = refreshToken; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolDeviceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolDeviceConfiguration.java index b7d3d9abfd2..bdc8ff41d39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolDeviceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolDeviceConfiguration.java @@ -15,21 +15,14 @@ public final class UserPoolDeviceConfiguration { * @return Whether a challenge is required on a new device. Only applicable to a new device. * */ - private final @Nullable Boolean challengeRequiredOnNewDevice; + private @Nullable Boolean challengeRequiredOnNewDevice; /** * @return Whether a device is only remembered on user prompt. `false` equates to "Always" remember, `true` is "User Opt In," and not using a `device_configuration` block is "No." * */ - private final @Nullable Boolean deviceOnlyRememberedOnUserPrompt; - - @CustomType.Constructor - private UserPoolDeviceConfiguration( - @CustomType.Parameter("challengeRequiredOnNewDevice") @Nullable Boolean challengeRequiredOnNewDevice, - @CustomType.Parameter("deviceOnlyRememberedOnUserPrompt") @Nullable Boolean deviceOnlyRememberedOnUserPrompt) { - this.challengeRequiredOnNewDevice = challengeRequiredOnNewDevice; - this.deviceOnlyRememberedOnUserPrompt = deviceOnlyRememberedOnUserPrompt; - } + private @Nullable Boolean deviceOnlyRememberedOnUserPrompt; + private UserPoolDeviceConfiguration() {} /** * @return Whether a challenge is required on a new device. Only applicable to a new device. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(UserPoolDeviceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean challengeRequiredOnNewDevice; private @Nullable Boolean deviceOnlyRememberedOnUserPrompt; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolDeviceConfiguration defaults) { Objects.requireNonNull(defaults); this.challengeRequiredOnNewDevice = defaults.challengeRequiredOnNewDevice; this.deviceOnlyRememberedOnUserPrompt = defaults.deviceOnlyRememberedOnUserPrompt; } + @CustomType.Setter public Builder challengeRequiredOnNewDevice(@Nullable Boolean challengeRequiredOnNewDevice) { this.challengeRequiredOnNewDevice = challengeRequiredOnNewDevice; return this; } + @CustomType.Setter public Builder deviceOnlyRememberedOnUserPrompt(@Nullable Boolean deviceOnlyRememberedOnUserPrompt) { this.deviceOnlyRememberedOnUserPrompt = deviceOnlyRememberedOnUserPrompt; return this; - } public UserPoolDeviceConfiguration build() { - return new UserPoolDeviceConfiguration(challengeRequiredOnNewDevice, deviceOnlyRememberedOnUserPrompt); + } + public UserPoolDeviceConfiguration build() { + final var o = new UserPoolDeviceConfiguration(); + o.challengeRequiredOnNewDevice = challengeRequiredOnNewDevice; + o.deviceOnlyRememberedOnUserPrompt = deviceOnlyRememberedOnUserPrompt; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolEmailConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolEmailConfiguration.java index be73728cd5f..0b75fc31289 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolEmailConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolEmailConfiguration.java @@ -15,42 +15,29 @@ public final class UserPoolEmailConfiguration { * @return Email configuration set name from SES. * */ - private final @Nullable String configurationSet; + private @Nullable String configurationSet; /** * @return Email delivery method to use. `COGNITO_DEFAULT` for the default email functionality built into Cognito or `DEVELOPER` to use your Amazon SES configuration. * */ - private final @Nullable String emailSendingAccount; + private @Nullable String emailSendingAccount; /** * @return Sender’s email address or sender’s display name with their email address (e.g., `john@example.com`, `John Smith <john@example.com>` or `\"John Smith Ph.D.\" <john@example.com>`). Escaped double quotes are required around display names that contain certain characters as specified in [RFC 5322](https://tools.ietf.org/html/rfc5322). * */ - private final @Nullable String fromEmailAddress; + private @Nullable String fromEmailAddress; /** * @return REPLY-TO email address. * */ - private final @Nullable String replyToEmailAddress; + private @Nullable String replyToEmailAddress; /** * @return ARN of the SES verified email identity to to use. Required if `email_sending_account` is set to `DEVELOPER`. * */ - private final @Nullable String sourceArn; - - @CustomType.Constructor - private UserPoolEmailConfiguration( - @CustomType.Parameter("configurationSet") @Nullable String configurationSet, - @CustomType.Parameter("emailSendingAccount") @Nullable String emailSendingAccount, - @CustomType.Parameter("fromEmailAddress") @Nullable String fromEmailAddress, - @CustomType.Parameter("replyToEmailAddress") @Nullable String replyToEmailAddress, - @CustomType.Parameter("sourceArn") @Nullable String sourceArn) { - this.configurationSet = configurationSet; - this.emailSendingAccount = emailSendingAccount; - this.fromEmailAddress = fromEmailAddress; - this.replyToEmailAddress = replyToEmailAddress; - this.sourceArn = sourceArn; - } + private @Nullable String sourceArn; + private UserPoolEmailConfiguration() {} /** * @return Email configuration set name from SES. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(UserPoolEmailConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String configurationSet; private @Nullable String emailSendingAccount; private @Nullable String fromEmailAddress; private @Nullable String replyToEmailAddress; private @Nullable String sourceArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolEmailConfiguration defaults) { Objects.requireNonNull(defaults); this.configurationSet = defaults.configurationSet; @@ -115,27 +98,39 @@ public Builder(UserPoolEmailConfiguration defaults) { this.sourceArn = defaults.sourceArn; } + @CustomType.Setter public Builder configurationSet(@Nullable String configurationSet) { this.configurationSet = configurationSet; return this; } + @CustomType.Setter public Builder emailSendingAccount(@Nullable String emailSendingAccount) { this.emailSendingAccount = emailSendingAccount; return this; } + @CustomType.Setter public Builder fromEmailAddress(@Nullable String fromEmailAddress) { this.fromEmailAddress = fromEmailAddress; return this; } + @CustomType.Setter public Builder replyToEmailAddress(@Nullable String replyToEmailAddress) { this.replyToEmailAddress = replyToEmailAddress; return this; } + @CustomType.Setter public Builder sourceArn(@Nullable String sourceArn) { this.sourceArn = sourceArn; return this; - } public UserPoolEmailConfiguration build() { - return new UserPoolEmailConfiguration(configurationSet, emailSendingAccount, fromEmailAddress, replyToEmailAddress, sourceArn); + } + public UserPoolEmailConfiguration build() { + final var o = new UserPoolEmailConfiguration(); + o.configurationSet = configurationSet; + o.emailSendingAccount = emailSendingAccount; + o.fromEmailAddress = fromEmailAddress; + o.replyToEmailAddress = replyToEmailAddress; + o.sourceArn = sourceArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolLambdaConfig.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolLambdaConfig.java index d07a4c28222..ec9aa890bba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolLambdaConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolLambdaConfig.java @@ -17,98 +17,69 @@ public final class UserPoolLambdaConfig { * @return ARN of the lambda creating an authentication challenge. * */ - private final @Nullable String createAuthChallenge; + private @Nullable String createAuthChallenge; /** * @return A custom email sender AWS Lambda trigger. See custom_email_sender Below. * */ - private final @Nullable UserPoolLambdaConfigCustomEmailSender customEmailSender; + private @Nullable UserPoolLambdaConfigCustomEmailSender customEmailSender; /** * @return Custom Message AWS Lambda trigger. * */ - private final @Nullable String customMessage; + private @Nullable String customMessage; /** * @return A custom SMS sender AWS Lambda trigger. See custom_sms_sender Below. * */ - private final @Nullable UserPoolLambdaConfigCustomSmsSender customSmsSender; + private @Nullable UserPoolLambdaConfigCustomSmsSender customSmsSender; /** * @return Defines the authentication challenge. * */ - private final @Nullable String defineAuthChallenge; + private @Nullable String defineAuthChallenge; /** * @return The Amazon Resource Name of Key Management Service Customer master keys. Amazon Cognito uses the key to encrypt codes and temporary passwords sent to CustomEmailSender and CustomSMSSender. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return Post-authentication AWS Lambda trigger. * */ - private final @Nullable String postAuthentication; + private @Nullable String postAuthentication; /** * @return Post-confirmation AWS Lambda trigger. * */ - private final @Nullable String postConfirmation; + private @Nullable String postConfirmation; /** * @return Pre-authentication AWS Lambda trigger. * */ - private final @Nullable String preAuthentication; + private @Nullable String preAuthentication; /** * @return Pre-registration AWS Lambda trigger. * */ - private final @Nullable String preSignUp; + private @Nullable String preSignUp; /** * @return Allow to customize identity token claims before token generation. * */ - private final @Nullable String preTokenGeneration; + private @Nullable String preTokenGeneration; /** * @return User migration Lambda config type. * */ - private final @Nullable String userMigration; + private @Nullable String userMigration; /** * @return Verifies the authentication challenge response. * */ - private final @Nullable String verifyAuthChallengeResponse; - - @CustomType.Constructor - private UserPoolLambdaConfig( - @CustomType.Parameter("createAuthChallenge") @Nullable String createAuthChallenge, - @CustomType.Parameter("customEmailSender") @Nullable UserPoolLambdaConfigCustomEmailSender customEmailSender, - @CustomType.Parameter("customMessage") @Nullable String customMessage, - @CustomType.Parameter("customSmsSender") @Nullable UserPoolLambdaConfigCustomSmsSender customSmsSender, - @CustomType.Parameter("defineAuthChallenge") @Nullable String defineAuthChallenge, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("postAuthentication") @Nullable String postAuthentication, - @CustomType.Parameter("postConfirmation") @Nullable String postConfirmation, - @CustomType.Parameter("preAuthentication") @Nullable String preAuthentication, - @CustomType.Parameter("preSignUp") @Nullable String preSignUp, - @CustomType.Parameter("preTokenGeneration") @Nullable String preTokenGeneration, - @CustomType.Parameter("userMigration") @Nullable String userMigration, - @CustomType.Parameter("verifyAuthChallengeResponse") @Nullable String verifyAuthChallengeResponse) { - this.createAuthChallenge = createAuthChallenge; - this.customEmailSender = customEmailSender; - this.customMessage = customMessage; - this.customSmsSender = customSmsSender; - this.defineAuthChallenge = defineAuthChallenge; - this.kmsKeyId = kmsKeyId; - this.postAuthentication = postAuthentication; - this.postConfirmation = postConfirmation; - this.preAuthentication = preAuthentication; - this.preSignUp = preSignUp; - this.preTokenGeneration = preTokenGeneration; - this.userMigration = userMigration; - this.verifyAuthChallengeResponse = verifyAuthChallengeResponse; - } + private @Nullable String verifyAuthChallengeResponse; + private UserPoolLambdaConfig() {} /** * @return ARN of the lambda creating an authentication challenge. * @@ -208,7 +179,7 @@ public static Builder builder() { public static Builder builder(UserPoolLambdaConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String createAuthChallenge; private @Nullable UserPoolLambdaConfigCustomEmailSender customEmailSender; @@ -223,11 +194,7 @@ public static final class Builder { private @Nullable String preTokenGeneration; private @Nullable String userMigration; private @Nullable String verifyAuthChallengeResponse; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolLambdaConfig defaults) { Objects.requireNonNull(defaults); this.createAuthChallenge = defaults.createAuthChallenge; @@ -245,59 +212,87 @@ public Builder(UserPoolLambdaConfig defaults) { this.verifyAuthChallengeResponse = defaults.verifyAuthChallengeResponse; } + @CustomType.Setter public Builder createAuthChallenge(@Nullable String createAuthChallenge) { this.createAuthChallenge = createAuthChallenge; return this; } + @CustomType.Setter public Builder customEmailSender(@Nullable UserPoolLambdaConfigCustomEmailSender customEmailSender) { this.customEmailSender = customEmailSender; return this; } + @CustomType.Setter public Builder customMessage(@Nullable String customMessage) { this.customMessage = customMessage; return this; } + @CustomType.Setter public Builder customSmsSender(@Nullable UserPoolLambdaConfigCustomSmsSender customSmsSender) { this.customSmsSender = customSmsSender; return this; } + @CustomType.Setter public Builder defineAuthChallenge(@Nullable String defineAuthChallenge) { this.defineAuthChallenge = defineAuthChallenge; return this; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder postAuthentication(@Nullable String postAuthentication) { this.postAuthentication = postAuthentication; return this; } + @CustomType.Setter public Builder postConfirmation(@Nullable String postConfirmation) { this.postConfirmation = postConfirmation; return this; } + @CustomType.Setter public Builder preAuthentication(@Nullable String preAuthentication) { this.preAuthentication = preAuthentication; return this; } + @CustomType.Setter public Builder preSignUp(@Nullable String preSignUp) { this.preSignUp = preSignUp; return this; } + @CustomType.Setter public Builder preTokenGeneration(@Nullable String preTokenGeneration) { this.preTokenGeneration = preTokenGeneration; return this; } + @CustomType.Setter public Builder userMigration(@Nullable String userMigration) { this.userMigration = userMigration; return this; } + @CustomType.Setter public Builder verifyAuthChallengeResponse(@Nullable String verifyAuthChallengeResponse) { this.verifyAuthChallengeResponse = verifyAuthChallengeResponse; return this; - } public UserPoolLambdaConfig build() { - return new UserPoolLambdaConfig(createAuthChallenge, customEmailSender, customMessage, customSmsSender, defineAuthChallenge, kmsKeyId, postAuthentication, postConfirmation, preAuthentication, preSignUp, preTokenGeneration, userMigration, verifyAuthChallengeResponse); + } + public UserPoolLambdaConfig build() { + final var o = new UserPoolLambdaConfig(); + o.createAuthChallenge = createAuthChallenge; + o.customEmailSender = customEmailSender; + o.customMessage = customMessage; + o.customSmsSender = customSmsSender; + o.defineAuthChallenge = defineAuthChallenge; + o.kmsKeyId = kmsKeyId; + o.postAuthentication = postAuthentication; + o.postConfirmation = postConfirmation; + o.preAuthentication = preAuthentication; + o.preSignUp = preSignUp; + o.preTokenGeneration = preTokenGeneration; + o.userMigration = userMigration; + o.verifyAuthChallengeResponse = verifyAuthChallengeResponse; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolLambdaConfigCustomEmailSender.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolLambdaConfigCustomEmailSender.java index 83e8fceb077..faab61d26b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolLambdaConfigCustomEmailSender.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolLambdaConfigCustomEmailSender.java @@ -13,21 +13,14 @@ public final class UserPoolLambdaConfigCustomEmailSender { * @return The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send SMS notifications to users. * */ - private final String lambdaArn; + private String lambdaArn; /** * @return The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom SMS Lambda function. The only supported value is `V1_0`. * */ - private final String lambdaVersion; - - @CustomType.Constructor - private UserPoolLambdaConfigCustomEmailSender( - @CustomType.Parameter("lambdaArn") String lambdaArn, - @CustomType.Parameter("lambdaVersion") String lambdaVersion) { - this.lambdaArn = lambdaArn; - this.lambdaVersion = lambdaVersion; - } + private String lambdaVersion; + private UserPoolLambdaConfigCustomEmailSender() {} /** * @return The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send SMS notifications to users. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(UserPoolLambdaConfigCustomEmailSender defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String lambdaArn; private String lambdaVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolLambdaConfigCustomEmailSender defaults) { Objects.requireNonNull(defaults); this.lambdaArn = defaults.lambdaArn; this.lambdaVersion = defaults.lambdaVersion; } + @CustomType.Setter public Builder lambdaArn(String lambdaArn) { this.lambdaArn = Objects.requireNonNull(lambdaArn); return this; } + @CustomType.Setter public Builder lambdaVersion(String lambdaVersion) { this.lambdaVersion = Objects.requireNonNull(lambdaVersion); return this; - } public UserPoolLambdaConfigCustomEmailSender build() { - return new UserPoolLambdaConfigCustomEmailSender(lambdaArn, lambdaVersion); + } + public UserPoolLambdaConfigCustomEmailSender build() { + final var o = new UserPoolLambdaConfigCustomEmailSender(); + o.lambdaArn = lambdaArn; + o.lambdaVersion = lambdaVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolLambdaConfigCustomSmsSender.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolLambdaConfigCustomSmsSender.java index 49f24fa610c..6879de0f8f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolLambdaConfigCustomSmsSender.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolLambdaConfigCustomSmsSender.java @@ -13,21 +13,14 @@ public final class UserPoolLambdaConfigCustomSmsSender { * @return The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send SMS notifications to users. * */ - private final String lambdaArn; + private String lambdaArn; /** * @return The Lambda version represents the signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom SMS Lambda function. The only supported value is `V1_0`. * */ - private final String lambdaVersion; - - @CustomType.Constructor - private UserPoolLambdaConfigCustomSmsSender( - @CustomType.Parameter("lambdaArn") String lambdaArn, - @CustomType.Parameter("lambdaVersion") String lambdaVersion) { - this.lambdaArn = lambdaArn; - this.lambdaVersion = lambdaVersion; - } + private String lambdaVersion; + private UserPoolLambdaConfigCustomSmsSender() {} /** * @return The Lambda Amazon Resource Name of the Lambda function that Amazon Cognito triggers to send SMS notifications to users. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(UserPoolLambdaConfigCustomSmsSender defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String lambdaArn; private String lambdaVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolLambdaConfigCustomSmsSender defaults) { Objects.requireNonNull(defaults); this.lambdaArn = defaults.lambdaArn; this.lambdaVersion = defaults.lambdaVersion; } + @CustomType.Setter public Builder lambdaArn(String lambdaArn) { this.lambdaArn = Objects.requireNonNull(lambdaArn); return this; } + @CustomType.Setter public Builder lambdaVersion(String lambdaVersion) { this.lambdaVersion = Objects.requireNonNull(lambdaVersion); return this; - } public UserPoolLambdaConfigCustomSmsSender build() { - return new UserPoolLambdaConfigCustomSmsSender(lambdaArn, lambdaVersion); + } + public UserPoolLambdaConfigCustomSmsSender build() { + final var o = new UserPoolLambdaConfigCustomSmsSender(); + o.lambdaArn = lambdaArn; + o.lambdaVersion = lambdaVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolPasswordPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolPasswordPolicy.java index 48c78952c3e..c804db3e0f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolPasswordPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolPasswordPolicy.java @@ -16,49 +16,34 @@ public final class UserPoolPasswordPolicy { * @return Minimum length of the password policy that you have set. * */ - private final @Nullable Integer minimumLength; + private @Nullable Integer minimumLength; /** * @return Whether you have required users to use at least one lowercase letter in their password. * */ - private final @Nullable Boolean requireLowercase; + private @Nullable Boolean requireLowercase; /** * @return Whether you have required users to use at least one number in their password. * */ - private final @Nullable Boolean requireNumbers; + private @Nullable Boolean requireNumbers; /** * @return Whether you have required users to use at least one symbol in their password. * */ - private final @Nullable Boolean requireSymbols; + private @Nullable Boolean requireSymbols; /** * @return Whether you have required users to use at least one uppercase letter in their password. * */ - private final @Nullable Boolean requireUppercase; + private @Nullable Boolean requireUppercase; /** * @return In the password policy you have set, refers to the number of days a temporary password is valid. If the user does not sign-in during this time, their password will need to be reset by an administrator. * */ - private final @Nullable Integer temporaryPasswordValidityDays; - - @CustomType.Constructor - private UserPoolPasswordPolicy( - @CustomType.Parameter("minimumLength") @Nullable Integer minimumLength, - @CustomType.Parameter("requireLowercase") @Nullable Boolean requireLowercase, - @CustomType.Parameter("requireNumbers") @Nullable Boolean requireNumbers, - @CustomType.Parameter("requireSymbols") @Nullable Boolean requireSymbols, - @CustomType.Parameter("requireUppercase") @Nullable Boolean requireUppercase, - @CustomType.Parameter("temporaryPasswordValidityDays") @Nullable Integer temporaryPasswordValidityDays) { - this.minimumLength = minimumLength; - this.requireLowercase = requireLowercase; - this.requireNumbers = requireNumbers; - this.requireSymbols = requireSymbols; - this.requireUppercase = requireUppercase; - this.temporaryPasswordValidityDays = temporaryPasswordValidityDays; - } + private @Nullable Integer temporaryPasswordValidityDays; + private UserPoolPasswordPolicy() {} /** * @return Minimum length of the password policy that you have set. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(UserPoolPasswordPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer minimumLength; private @Nullable Boolean requireLowercase; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable Boolean requireSymbols; private @Nullable Boolean requireUppercase; private @Nullable Integer temporaryPasswordValidityDays; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolPasswordPolicy defaults) { Objects.requireNonNull(defaults); this.minimumLength = defaults.minimumLength; @@ -132,31 +113,45 @@ public Builder(UserPoolPasswordPolicy defaults) { this.temporaryPasswordValidityDays = defaults.temporaryPasswordValidityDays; } + @CustomType.Setter public Builder minimumLength(@Nullable Integer minimumLength) { this.minimumLength = minimumLength; return this; } + @CustomType.Setter public Builder requireLowercase(@Nullable Boolean requireLowercase) { this.requireLowercase = requireLowercase; return this; } + @CustomType.Setter public Builder requireNumbers(@Nullable Boolean requireNumbers) { this.requireNumbers = requireNumbers; return this; } + @CustomType.Setter public Builder requireSymbols(@Nullable Boolean requireSymbols) { this.requireSymbols = requireSymbols; return this; } + @CustomType.Setter public Builder requireUppercase(@Nullable Boolean requireUppercase) { this.requireUppercase = requireUppercase; return this; } + @CustomType.Setter public Builder temporaryPasswordValidityDays(@Nullable Integer temporaryPasswordValidityDays) { this.temporaryPasswordValidityDays = temporaryPasswordValidityDays; return this; - } public UserPoolPasswordPolicy build() { - return new UserPoolPasswordPolicy(minimumLength, requireLowercase, requireNumbers, requireSymbols, requireUppercase, temporaryPasswordValidityDays); + } + public UserPoolPasswordPolicy build() { + final var o = new UserPoolPasswordPolicy(); + o.minimumLength = minimumLength; + o.requireLowercase = requireLowercase; + o.requireNumbers = requireNumbers; + o.requireSymbols = requireSymbols; + o.requireUppercase = requireUppercase; + o.temporaryPasswordValidityDays = temporaryPasswordValidityDays; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSchema.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSchema.java index c03da13d92f..577045c2a6d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSchema.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSchema.java @@ -18,56 +18,39 @@ public final class UserPoolSchema { * @return Attribute data type. Must be one of `Boolean`, `Number`, `String`, `DateTime`. * */ - private final String attributeDataType; + private String attributeDataType; /** * @return Whether the attribute type is developer only. * */ - private final @Nullable Boolean developerOnlyAttribute; + private @Nullable Boolean developerOnlyAttribute; /** * @return Whether the attribute can be changed once it has been created. * */ - private final @Nullable Boolean mutable; + private @Nullable Boolean mutable; /** * @return Name of the attribute. * */ - private final String name; + private String name; /** * @return Configuration block for the constraints for an attribute of the number type. Detailed below. * */ - private final @Nullable UserPoolSchemaNumberAttributeConstraints numberAttributeConstraints; + private @Nullable UserPoolSchemaNumberAttributeConstraints numberAttributeConstraints; /** * @return Whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail. * */ - private final @Nullable Boolean required; + private @Nullable Boolean required; /** * @return Constraints for an attribute of the string type. Detailed below. * */ - private final @Nullable UserPoolSchemaStringAttributeConstraints stringAttributeConstraints; - - @CustomType.Constructor - private UserPoolSchema( - @CustomType.Parameter("attributeDataType") String attributeDataType, - @CustomType.Parameter("developerOnlyAttribute") @Nullable Boolean developerOnlyAttribute, - @CustomType.Parameter("mutable") @Nullable Boolean mutable, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("numberAttributeConstraints") @Nullable UserPoolSchemaNumberAttributeConstraints numberAttributeConstraints, - @CustomType.Parameter("required") @Nullable Boolean required, - @CustomType.Parameter("stringAttributeConstraints") @Nullable UserPoolSchemaStringAttributeConstraints stringAttributeConstraints) { - this.attributeDataType = attributeDataType; - this.developerOnlyAttribute = developerOnlyAttribute; - this.mutable = mutable; - this.name = name; - this.numberAttributeConstraints = numberAttributeConstraints; - this.required = required; - this.stringAttributeConstraints = stringAttributeConstraints; - } + private @Nullable UserPoolSchemaStringAttributeConstraints stringAttributeConstraints; + private UserPoolSchema() {} /** * @return Attribute data type. Must be one of `Boolean`, `Number`, `String`, `DateTime`. * @@ -125,7 +108,7 @@ public static Builder builder() { public static Builder builder(UserPoolSchema defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String attributeDataType; private @Nullable Boolean developerOnlyAttribute; @@ -134,11 +117,7 @@ public static final class Builder { private @Nullable UserPoolSchemaNumberAttributeConstraints numberAttributeConstraints; private @Nullable Boolean required; private @Nullable UserPoolSchemaStringAttributeConstraints stringAttributeConstraints; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolSchema defaults) { Objects.requireNonNull(defaults); this.attributeDataType = defaults.attributeDataType; @@ -150,35 +129,51 @@ public Builder(UserPoolSchema defaults) { this.stringAttributeConstraints = defaults.stringAttributeConstraints; } + @CustomType.Setter public Builder attributeDataType(String attributeDataType) { this.attributeDataType = Objects.requireNonNull(attributeDataType); return this; } + @CustomType.Setter public Builder developerOnlyAttribute(@Nullable Boolean developerOnlyAttribute) { this.developerOnlyAttribute = developerOnlyAttribute; return this; } + @CustomType.Setter public Builder mutable(@Nullable Boolean mutable) { this.mutable = mutable; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder numberAttributeConstraints(@Nullable UserPoolSchemaNumberAttributeConstraints numberAttributeConstraints) { this.numberAttributeConstraints = numberAttributeConstraints; return this; } + @CustomType.Setter public Builder required(@Nullable Boolean required) { this.required = required; return this; } + @CustomType.Setter public Builder stringAttributeConstraints(@Nullable UserPoolSchemaStringAttributeConstraints stringAttributeConstraints) { this.stringAttributeConstraints = stringAttributeConstraints; return this; - } public UserPoolSchema build() { - return new UserPoolSchema(attributeDataType, developerOnlyAttribute, mutable, name, numberAttributeConstraints, required, stringAttributeConstraints); + } + public UserPoolSchema build() { + final var o = new UserPoolSchema(); + o.attributeDataType = attributeDataType; + o.developerOnlyAttribute = developerOnlyAttribute; + o.mutable = mutable; + o.name = name; + o.numberAttributeConstraints = numberAttributeConstraints; + o.required = required; + o.stringAttributeConstraints = stringAttributeConstraints; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSchemaNumberAttributeConstraints.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSchemaNumberAttributeConstraints.java index e382ebefdfd..920ebf0afbe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSchemaNumberAttributeConstraints.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSchemaNumberAttributeConstraints.java @@ -15,21 +15,14 @@ public final class UserPoolSchemaNumberAttributeConstraints { * @return Maximum value of an attribute that is of the number data type. * */ - private final @Nullable String maxValue; + private @Nullable String maxValue; /** * @return Minimum value of an attribute that is of the number data type. * */ - private final @Nullable String minValue; - - @CustomType.Constructor - private UserPoolSchemaNumberAttributeConstraints( - @CustomType.Parameter("maxValue") @Nullable String maxValue, - @CustomType.Parameter("minValue") @Nullable String minValue) { - this.maxValue = maxValue; - this.minValue = minValue; - } + private @Nullable String minValue; + private UserPoolSchemaNumberAttributeConstraints() {} /** * @return Maximum value of an attribute that is of the number data type. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(UserPoolSchemaNumberAttributeConstraints defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String maxValue; private @Nullable String minValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolSchemaNumberAttributeConstraints defaults) { Objects.requireNonNull(defaults); this.maxValue = defaults.maxValue; this.minValue = defaults.minValue; } + @CustomType.Setter public Builder maxValue(@Nullable String maxValue) { this.maxValue = maxValue; return this; } + @CustomType.Setter public Builder minValue(@Nullable String minValue) { this.minValue = minValue; return this; - } public UserPoolSchemaNumberAttributeConstraints build() { - return new UserPoolSchemaNumberAttributeConstraints(maxValue, minValue); + } + public UserPoolSchemaNumberAttributeConstraints build() { + final var o = new UserPoolSchemaNumberAttributeConstraints(); + o.maxValue = maxValue; + o.minValue = minValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSchemaStringAttributeConstraints.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSchemaStringAttributeConstraints.java index fef4fc44ce3..9b55cd14e51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSchemaStringAttributeConstraints.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSchemaStringAttributeConstraints.java @@ -15,21 +15,14 @@ public final class UserPoolSchemaStringAttributeConstraints { * @return Maximum length of an attribute value of the string type. * */ - private final @Nullable String maxLength; + private @Nullable String maxLength; /** * @return Minimum length of an attribute value of the string type. * */ - private final @Nullable String minLength; - - @CustomType.Constructor - private UserPoolSchemaStringAttributeConstraints( - @CustomType.Parameter("maxLength") @Nullable String maxLength, - @CustomType.Parameter("minLength") @Nullable String minLength) { - this.maxLength = maxLength; - this.minLength = minLength; - } + private @Nullable String minLength; + private UserPoolSchemaStringAttributeConstraints() {} /** * @return Maximum length of an attribute value of the string type. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(UserPoolSchemaStringAttributeConstraints defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String maxLength; private @Nullable String minLength; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolSchemaStringAttributeConstraints defaults) { Objects.requireNonNull(defaults); this.maxLength = defaults.maxLength; this.minLength = defaults.minLength; } + @CustomType.Setter public Builder maxLength(@Nullable String maxLength) { this.maxLength = maxLength; return this; } + @CustomType.Setter public Builder minLength(@Nullable String minLength) { this.minLength = minLength; return this; - } public UserPoolSchemaStringAttributeConstraints build() { - return new UserPoolSchemaStringAttributeConstraints(maxLength, minLength); + } + public UserPoolSchemaStringAttributeConstraints build() { + final var o = new UserPoolSchemaStringAttributeConstraints(); + o.maxLength = maxLength; + o.minLength = minLength; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSmsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSmsConfiguration.java index 189e35d8c2d..bb8e25ad352 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSmsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSmsConfiguration.java @@ -13,21 +13,14 @@ public final class UserPoolSmsConfiguration { * @return External ID used in IAM role trust relationships. For more information about using external IDs, see [How to Use an External ID When Granting Access to Your AWS Resources to a Third Party](http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html). * */ - private final String externalId; + private String externalId; /** * @return ARN of the Amazon SNS caller. This is usually the IAM role that you've given Cognito permission to assume. * */ - private final String snsCallerArn; - - @CustomType.Constructor - private UserPoolSmsConfiguration( - @CustomType.Parameter("externalId") String externalId, - @CustomType.Parameter("snsCallerArn") String snsCallerArn) { - this.externalId = externalId; - this.snsCallerArn = snsCallerArn; - } + private String snsCallerArn; + private UserPoolSmsConfiguration() {} /** * @return External ID used in IAM role trust relationships. For more information about using external IDs, see [How to Use an External ID When Granting Access to Your AWS Resources to a Third Party](http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html). * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(UserPoolSmsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String externalId; private String snsCallerArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolSmsConfiguration defaults) { Objects.requireNonNull(defaults); this.externalId = defaults.externalId; this.snsCallerArn = defaults.snsCallerArn; } + @CustomType.Setter public Builder externalId(String externalId) { this.externalId = Objects.requireNonNull(externalId); return this; } + @CustomType.Setter public Builder snsCallerArn(String snsCallerArn) { this.snsCallerArn = Objects.requireNonNull(snsCallerArn); return this; - } public UserPoolSmsConfiguration build() { - return new UserPoolSmsConfiguration(externalId, snsCallerArn); + } + public UserPoolSmsConfiguration build() { + final var o = new UserPoolSmsConfiguration(); + o.externalId = externalId; + o.snsCallerArn = snsCallerArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSoftwareTokenMfaConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSoftwareTokenMfaConfiguration.java index 8d077725893..80286956e81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSoftwareTokenMfaConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolSoftwareTokenMfaConfiguration.java @@ -13,13 +13,9 @@ public final class UserPoolSoftwareTokenMfaConfiguration { * @return Boolean whether to enable software token Multi-Factor (MFA) tokens, such as Time-based One-Time Password (TOTP). To disable software token MFA When `sms_configuration` is not present, the `mfa_configuration` argument must be set to `OFF` and the `software_token_mfa_configuration` configuration block must be fully removed. * */ - private final Boolean enabled; - - @CustomType.Constructor - private UserPoolSoftwareTokenMfaConfiguration(@CustomType.Parameter("enabled") Boolean enabled) { - this.enabled = enabled; - } + private Boolean enabled; + private UserPoolSoftwareTokenMfaConfiguration() {} /** * @return Boolean whether to enable software token Multi-Factor (MFA) tokens, such as Time-based One-Time Password (TOTP). To disable software token MFA When `sms_configuration` is not present, the `mfa_configuration` argument must be set to `OFF` and the `software_token_mfa_configuration` configuration block must be fully removed. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(UserPoolSoftwareTokenMfaConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolSoftwareTokenMfaConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public UserPoolSoftwareTokenMfaConfiguration build() { - return new UserPoolSoftwareTokenMfaConfiguration(enabled); + } + public UserPoolSoftwareTokenMfaConfiguration build() { + final var o = new UserPoolSoftwareTokenMfaConfiguration(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolUserPoolAddOns.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolUserPoolAddOns.java index 0f83ade69cf..24f6bc1c396 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolUserPoolAddOns.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolUserPoolAddOns.java @@ -13,13 +13,9 @@ public final class UserPoolUserPoolAddOns { * @return Mode for advanced security, must be one of `OFF`, `AUDIT` or `ENFORCED`. * */ - private final String advancedSecurityMode; - - @CustomType.Constructor - private UserPoolUserPoolAddOns(@CustomType.Parameter("advancedSecurityMode") String advancedSecurityMode) { - this.advancedSecurityMode = advancedSecurityMode; - } + private String advancedSecurityMode; + private UserPoolUserPoolAddOns() {} /** * @return Mode for advanced security, must be one of `OFF`, `AUDIT` or `ENFORCED`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(UserPoolUserPoolAddOns defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String advancedSecurityMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolUserPoolAddOns defaults) { Objects.requireNonNull(defaults); this.advancedSecurityMode = defaults.advancedSecurityMode; } + @CustomType.Setter public Builder advancedSecurityMode(String advancedSecurityMode) { this.advancedSecurityMode = Objects.requireNonNull(advancedSecurityMode); return this; - } public UserPoolUserPoolAddOns build() { - return new UserPoolUserPoolAddOns(advancedSecurityMode); + } + public UserPoolUserPoolAddOns build() { + final var o = new UserPoolUserPoolAddOns(); + o.advancedSecurityMode = advancedSecurityMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolUsernameConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolUsernameConfiguration.java index 41dfd1c6967..68ef43a77f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolUsernameConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolUsernameConfiguration.java @@ -13,13 +13,9 @@ public final class UserPoolUsernameConfiguration { * @return Whether username case sensitivity will be applied for all users in the user pool through Cognito APIs. * */ - private final Boolean caseSensitive; - - @CustomType.Constructor - private UserPoolUsernameConfiguration(@CustomType.Parameter("caseSensitive") Boolean caseSensitive) { - this.caseSensitive = caseSensitive; - } + private Boolean caseSensitive; + private UserPoolUsernameConfiguration() {} /** * @return Whether username case sensitivity will be applied for all users in the user pool through Cognito APIs. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(UserPoolUsernameConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean caseSensitive; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolUsernameConfiguration defaults) { Objects.requireNonNull(defaults); this.caseSensitive = defaults.caseSensitive; } + @CustomType.Setter public Builder caseSensitive(Boolean caseSensitive) { this.caseSensitive = Objects.requireNonNull(caseSensitive); return this; - } public UserPoolUsernameConfiguration build() { - return new UserPoolUsernameConfiguration(caseSensitive); + } + public UserPoolUsernameConfiguration build() { + final var o = new UserPoolUsernameConfiguration(); + o.caseSensitive = caseSensitive; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolVerificationMessageTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolVerificationMessageTemplate.java index 85340d70c48..f3073983efe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolVerificationMessageTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cognito/outputs/UserPoolVerificationMessageTemplate.java @@ -15,49 +15,34 @@ public final class UserPoolVerificationMessageTemplate { * @return Default email option. Must be either `CONFIRM_WITH_CODE` or `CONFIRM_WITH_LINK`. Defaults to `CONFIRM_WITH_CODE`. * */ - private final @Nullable String defaultEmailOption; + private @Nullable String defaultEmailOption; /** * @return Email message template. Must contain the `{####}` placeholder. Conflicts with `email_verification_message` argument. * */ - private final @Nullable String emailMessage; + private @Nullable String emailMessage; /** * @return Email message template for sending a confirmation link to the user, it must contain the `{##Click Here##}` placeholder. * */ - private final @Nullable String emailMessageByLink; + private @Nullable String emailMessageByLink; /** * @return Subject line for the email message template. Conflicts with `email_verification_subject` argument. * */ - private final @Nullable String emailSubject; + private @Nullable String emailSubject; /** * @return Subject line for the email message template for sending a confirmation link to the user. * */ - private final @Nullable String emailSubjectByLink; + private @Nullable String emailSubjectByLink; /** * @return SMS message template. Must contain the `{####}` placeholder. Conflicts with `sms_verification_message` argument. * */ - private final @Nullable String smsMessage; - - @CustomType.Constructor - private UserPoolVerificationMessageTemplate( - @CustomType.Parameter("defaultEmailOption") @Nullable String defaultEmailOption, - @CustomType.Parameter("emailMessage") @Nullable String emailMessage, - @CustomType.Parameter("emailMessageByLink") @Nullable String emailMessageByLink, - @CustomType.Parameter("emailSubject") @Nullable String emailSubject, - @CustomType.Parameter("emailSubjectByLink") @Nullable String emailSubjectByLink, - @CustomType.Parameter("smsMessage") @Nullable String smsMessage) { - this.defaultEmailOption = defaultEmailOption; - this.emailMessage = emailMessage; - this.emailMessageByLink = emailMessageByLink; - this.emailSubject = emailSubject; - this.emailSubjectByLink = emailSubjectByLink; - this.smsMessage = smsMessage; - } + private @Nullable String smsMessage; + private UserPoolVerificationMessageTemplate() {} /** * @return Default email option. Must be either `CONFIRM_WITH_CODE` or `CONFIRM_WITH_LINK`. Defaults to `CONFIRM_WITH_CODE`. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(UserPoolVerificationMessageTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String defaultEmailOption; private @Nullable String emailMessage; @@ -116,11 +101,7 @@ public static final class Builder { private @Nullable String emailSubject; private @Nullable String emailSubjectByLink; private @Nullable String smsMessage; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPoolVerificationMessageTemplate defaults) { Objects.requireNonNull(defaults); this.defaultEmailOption = defaults.defaultEmailOption; @@ -131,31 +112,45 @@ public Builder(UserPoolVerificationMessageTemplate defaults) { this.smsMessage = defaults.smsMessage; } + @CustomType.Setter public Builder defaultEmailOption(@Nullable String defaultEmailOption) { this.defaultEmailOption = defaultEmailOption; return this; } + @CustomType.Setter public Builder emailMessage(@Nullable String emailMessage) { this.emailMessage = emailMessage; return this; } + @CustomType.Setter public Builder emailMessageByLink(@Nullable String emailMessageByLink) { this.emailMessageByLink = emailMessageByLink; return this; } + @CustomType.Setter public Builder emailSubject(@Nullable String emailSubject) { this.emailSubject = emailSubject; return this; } + @CustomType.Setter public Builder emailSubjectByLink(@Nullable String emailSubjectByLink) { this.emailSubjectByLink = emailSubjectByLink; return this; } + @CustomType.Setter public Builder smsMessage(@Nullable String smsMessage) { this.smsMessage = smsMessage; return this; - } public UserPoolVerificationMessageTemplate build() { - return new UserPoolVerificationMessageTemplate(defaultEmailOption, emailMessage, emailMessageByLink, emailSubject, emailSubjectByLink, smsMessage); + } + public UserPoolVerificationMessageTemplate build() { + final var o = new UserPoolVerificationMessageTemplate(); + o.defaultEmailOption = defaultEmailOption; + o.emailMessage = emailMessage; + o.emailMessageByLink = emailMessageByLink; + o.emailSubject = emailSubject; + o.emailSubjectByLink = emailSubjectByLink; + o.smsMessage = smsMessage; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfig.java b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfig.java index e6f31264c27..c4a1fcb8cf5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfig.java @@ -23,58 +23,43 @@ public final class EntityRecognizerInputDataConfig { * One of `annotations` or `entity_list` is required. * */ - private final @Nullable EntityRecognizerInputDataConfigAnnotations annotations; + private @Nullable EntityRecognizerInputDataConfigAnnotations annotations; /** * @return List of training datasets produced by Amazon SageMaker Ground Truth. * Used if `data_format` is `AUGMENTED_MANIFEST`. * See the `augmented_manifests` Configuration Block section below. * */ - private final @Nullable List augmentedManifests; + private @Nullable List augmentedManifests; /** * @return The format for the training data. * One of `COMPREHEND_CSV` or `AUGMENTED_MANIFEST`. * */ - private final @Nullable String dataFormat; + private @Nullable String dataFormat; /** * @return Specifies a collection of training documents. * Used if `data_format` is `COMPREHEND_CSV`. * See the `documents` Configuration Block section below. * */ - private final @Nullable EntityRecognizerInputDataConfigDocuments documents; + private @Nullable EntityRecognizerInputDataConfigDocuments documents; /** * @return Specifies location of the entity list data. * See the `entity_list` Configuration Block section below. * One of `entity_list` or `annotations` is required. * */ - private final @Nullable EntityRecognizerInputDataConfigEntityList entityList; + private @Nullable EntityRecognizerInputDataConfigEntityList entityList; /** * @return Set of entity types to be recognized. * Has a maximum of 25 items. * See the `entity_types` Configuration Block section below. * */ - private final List entityTypes; - - @CustomType.Constructor - private EntityRecognizerInputDataConfig( - @CustomType.Parameter("annotations") @Nullable EntityRecognizerInputDataConfigAnnotations annotations, - @CustomType.Parameter("augmentedManifests") @Nullable List augmentedManifests, - @CustomType.Parameter("dataFormat") @Nullable String dataFormat, - @CustomType.Parameter("documents") @Nullable EntityRecognizerInputDataConfigDocuments documents, - @CustomType.Parameter("entityList") @Nullable EntityRecognizerInputDataConfigEntityList entityList, - @CustomType.Parameter("entityTypes") List entityTypes) { - this.annotations = annotations; - this.augmentedManifests = augmentedManifests; - this.dataFormat = dataFormat; - this.documents = documents; - this.entityList = entityList; - this.entityTypes = entityTypes; - } + private List entityTypes; + private EntityRecognizerInputDataConfig() {} /** * @return Specifies location of the document annotation data. * See the `annotations` Configuration Block section below. @@ -136,7 +121,7 @@ public static Builder builder() { public static Builder builder(EntityRecognizerInputDataConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable EntityRecognizerInputDataConfigAnnotations annotations; private @Nullable List augmentedManifests; @@ -144,11 +129,7 @@ public static final class Builder { private @Nullable EntityRecognizerInputDataConfigDocuments documents; private @Nullable EntityRecognizerInputDataConfigEntityList entityList; private List entityTypes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EntityRecognizerInputDataConfig defaults) { Objects.requireNonNull(defaults); this.annotations = defaults.annotations; @@ -159,10 +140,12 @@ public Builder(EntityRecognizerInputDataConfig defaults) { this.entityTypes = defaults.entityTypes; } + @CustomType.Setter public Builder annotations(@Nullable EntityRecognizerInputDataConfigAnnotations annotations) { this.annotations = annotations; return this; } + @CustomType.Setter public Builder augmentedManifests(@Nullable List augmentedManifests) { this.augmentedManifests = augmentedManifests; return this; @@ -170,26 +153,38 @@ public Builder augmentedManifests(@Nullable List entityTypes) { this.entityTypes = Objects.requireNonNull(entityTypes); return this; } public Builder entityTypes(EntityRecognizerInputDataConfigEntityType... entityTypes) { return entityTypes(List.of(entityTypes)); - } public EntityRecognizerInputDataConfig build() { - return new EntityRecognizerInputDataConfig(annotations, augmentedManifests, dataFormat, documents, entityList, entityTypes); + } + public EntityRecognizerInputDataConfig build() { + final var o = new EntityRecognizerInputDataConfig(); + o.annotations = annotations; + o.augmentedManifests = augmentedManifests; + o.dataFormat = dataFormat; + o.documents = documents; + o.entityList = entityList; + o.entityTypes = entityTypes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigAnnotations.java b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigAnnotations.java index 7351abeaa09..0e6936f684c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigAnnotations.java +++ b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigAnnotations.java @@ -15,17 +15,10 @@ public final class EntityRecognizerInputDataConfigAnnotations { * @return Location of entity list. * */ - private final String s3Uri; - private final @Nullable String testS3Uri; - - @CustomType.Constructor - private EntityRecognizerInputDataConfigAnnotations( - @CustomType.Parameter("s3Uri") String s3Uri, - @CustomType.Parameter("testS3Uri") @Nullable String testS3Uri) { - this.s3Uri = s3Uri; - this.testS3Uri = testS3Uri; - } + private String s3Uri; + private @Nullable String testS3Uri; + private EntityRecognizerInputDataConfigAnnotations() {} /** * @return Location of entity list. * @@ -44,30 +37,32 @@ public static Builder builder() { public static Builder builder(EntityRecognizerInputDataConfigAnnotations defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String s3Uri; private @Nullable String testS3Uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EntityRecognizerInputDataConfigAnnotations defaults) { Objects.requireNonNull(defaults); this.s3Uri = defaults.s3Uri; this.testS3Uri = defaults.testS3Uri; } + @CustomType.Setter public Builder s3Uri(String s3Uri) { this.s3Uri = Objects.requireNonNull(s3Uri); return this; } + @CustomType.Setter public Builder testS3Uri(@Nullable String testS3Uri) { this.testS3Uri = testS3Uri; return this; - } public EntityRecognizerInputDataConfigAnnotations build() { - return new EntityRecognizerInputDataConfigAnnotations(s3Uri, testS3Uri); + } + public EntityRecognizerInputDataConfigAnnotations build() { + final var o = new EntityRecognizerInputDataConfigAnnotations(); + o.s3Uri = s3Uri; + o.testS3Uri = testS3Uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigAugmentedManifest.java b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigAugmentedManifest.java index 507f7a1e806..f6418858898 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigAugmentedManifest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigAugmentedManifest.java @@ -16,51 +16,36 @@ public final class EntityRecognizerInputDataConfigAugmentedManifest { * @return Location of annotation files. * */ - private final @Nullable String annotationDataS3Uri; + private @Nullable String annotationDataS3Uri; /** * @return The JSON attribute that contains the annotations for the training documents. * */ - private final List attributeNames; + private List attributeNames; /** * @return Type of augmented manifest. * One of `PLAIN_TEXT_DOCUMENT` or `SEMI_STRUCTURED_DOCUMENT`. * */ - private final @Nullable String documentType; + private @Nullable String documentType; /** * @return Location of entity list. * */ - private final String s3Uri; + private String s3Uri; /** * @return Location of source PDF files. * */ - private final @Nullable String sourceDocumentsS3Uri; + private @Nullable String sourceDocumentsS3Uri; /** * @return Purpose of data in augmented manifest. * One of `TRAIN` or `TEST`. * */ - private final @Nullable String split; - - @CustomType.Constructor - private EntityRecognizerInputDataConfigAugmentedManifest( - @CustomType.Parameter("annotationDataS3Uri") @Nullable String annotationDataS3Uri, - @CustomType.Parameter("attributeNames") List attributeNames, - @CustomType.Parameter("documentType") @Nullable String documentType, - @CustomType.Parameter("s3Uri") String s3Uri, - @CustomType.Parameter("sourceDocumentsS3Uri") @Nullable String sourceDocumentsS3Uri, - @CustomType.Parameter("split") @Nullable String split) { - this.annotationDataS3Uri = annotationDataS3Uri; - this.attributeNames = attributeNames; - this.documentType = documentType; - this.s3Uri = s3Uri; - this.sourceDocumentsS3Uri = sourceDocumentsS3Uri; - this.split = split; - } + private @Nullable String split; + private EntityRecognizerInputDataConfigAugmentedManifest() {} /** * @return Location of annotation files. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(EntityRecognizerInputDataConfigAugmentedManifest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String annotationDataS3Uri; private List attributeNames; @@ -121,11 +106,7 @@ public static final class Builder { private String s3Uri; private @Nullable String sourceDocumentsS3Uri; private @Nullable String split; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EntityRecognizerInputDataConfigAugmentedManifest defaults) { Objects.requireNonNull(defaults); this.annotationDataS3Uri = defaults.annotationDataS3Uri; @@ -136,10 +117,12 @@ public Builder(EntityRecognizerInputDataConfigAugmentedManifest defaults) { this.split = defaults.split; } + @CustomType.Setter public Builder annotationDataS3Uri(@Nullable String annotationDataS3Uri) { this.annotationDataS3Uri = annotationDataS3Uri; return this; } + @CustomType.Setter public Builder attributeNames(List attributeNames) { this.attributeNames = Objects.requireNonNull(attributeNames); return this; @@ -147,23 +130,35 @@ public Builder attributeNames(List attributeNames) { public Builder attributeNames(String... attributeNames) { return attributeNames(List.of(attributeNames)); } + @CustomType.Setter public Builder documentType(@Nullable String documentType) { this.documentType = documentType; return this; } + @CustomType.Setter public Builder s3Uri(String s3Uri) { this.s3Uri = Objects.requireNonNull(s3Uri); return this; } + @CustomType.Setter public Builder sourceDocumentsS3Uri(@Nullable String sourceDocumentsS3Uri) { this.sourceDocumentsS3Uri = sourceDocumentsS3Uri; return this; } + @CustomType.Setter public Builder split(@Nullable String split) { this.split = split; return this; - } public EntityRecognizerInputDataConfigAugmentedManifest build() { - return new EntityRecognizerInputDataConfigAugmentedManifest(annotationDataS3Uri, attributeNames, documentType, s3Uri, sourceDocumentsS3Uri, split); + } + public EntityRecognizerInputDataConfigAugmentedManifest build() { + final var o = new EntityRecognizerInputDataConfigAugmentedManifest(); + o.annotationDataS3Uri = annotationDataS3Uri; + o.attributeNames = attributeNames; + o.documentType = documentType; + o.s3Uri = s3Uri; + o.sourceDocumentsS3Uri = sourceDocumentsS3Uri; + o.split = split; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigDocuments.java b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigDocuments.java index d4601650c3e..a7d55b7f0b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigDocuments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigDocuments.java @@ -16,24 +16,15 @@ public final class EntityRecognizerInputDataConfigDocuments { * One of `ONE_DOC_PER_LINE` or `ONE_DOC_PER_FILE`. * */ - private final @Nullable String inputFormat; + private @Nullable String inputFormat; /** * @return Location of entity list. * */ - private final String s3Uri; - private final @Nullable String testS3Uri; - - @CustomType.Constructor - private EntityRecognizerInputDataConfigDocuments( - @CustomType.Parameter("inputFormat") @Nullable String inputFormat, - @CustomType.Parameter("s3Uri") String s3Uri, - @CustomType.Parameter("testS3Uri") @Nullable String testS3Uri) { - this.inputFormat = inputFormat; - this.s3Uri = s3Uri; - this.testS3Uri = testS3Uri; - } + private String s3Uri; + private @Nullable String testS3Uri; + private EntityRecognizerInputDataConfigDocuments() {} /** * @return Specifies how the input files should be processed. * One of `ONE_DOC_PER_LINE` or `ONE_DOC_PER_FILE`. @@ -60,16 +51,12 @@ public static Builder builder() { public static Builder builder(EntityRecognizerInputDataConfigDocuments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String inputFormat; private String s3Uri; private @Nullable String testS3Uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EntityRecognizerInputDataConfigDocuments defaults) { Objects.requireNonNull(defaults); this.inputFormat = defaults.inputFormat; @@ -77,19 +64,27 @@ public Builder(EntityRecognizerInputDataConfigDocuments defaults) { this.testS3Uri = defaults.testS3Uri; } + @CustomType.Setter public Builder inputFormat(@Nullable String inputFormat) { this.inputFormat = inputFormat; return this; } + @CustomType.Setter public Builder s3Uri(String s3Uri) { this.s3Uri = Objects.requireNonNull(s3Uri); return this; } + @CustomType.Setter public Builder testS3Uri(@Nullable String testS3Uri) { this.testS3Uri = testS3Uri; return this; - } public EntityRecognizerInputDataConfigDocuments build() { - return new EntityRecognizerInputDataConfigDocuments(inputFormat, s3Uri, testS3Uri); + } + public EntityRecognizerInputDataConfigDocuments build() { + final var o = new EntityRecognizerInputDataConfigDocuments(); + o.inputFormat = inputFormat; + o.s3Uri = s3Uri; + o.testS3Uri = testS3Uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigEntityList.java b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigEntityList.java index 8626b5438f0..218f8be91a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigEntityList.java +++ b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigEntityList.java @@ -13,13 +13,9 @@ public final class EntityRecognizerInputDataConfigEntityList { * @return Location of entity list. * */ - private final String s3Uri; - - @CustomType.Constructor - private EntityRecognizerInputDataConfigEntityList(@CustomType.Parameter("s3Uri") String s3Uri) { - this.s3Uri = s3Uri; - } + private String s3Uri; + private EntityRecognizerInputDataConfigEntityList() {} /** * @return Location of entity list. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(EntityRecognizerInputDataConfigEntityList defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String s3Uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EntityRecognizerInputDataConfigEntityList defaults) { Objects.requireNonNull(defaults); this.s3Uri = defaults.s3Uri; } + @CustomType.Setter public Builder s3Uri(String s3Uri) { this.s3Uri = Objects.requireNonNull(s3Uri); return this; - } public EntityRecognizerInputDataConfigEntityList build() { - return new EntityRecognizerInputDataConfigEntityList(s3Uri); + } + public EntityRecognizerInputDataConfigEntityList build() { + final var o = new EntityRecognizerInputDataConfigEntityList(); + o.s3Uri = s3Uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigEntityType.java b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigEntityType.java index 5338ff9bec3..a19b5a634b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigEntityType.java +++ b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerInputDataConfigEntityType.java @@ -14,13 +14,9 @@ public final class EntityRecognizerInputDataConfigEntityType { * Cannot contain a newline (`\n`), carriage return (`\r`), or tab (`\t`). * */ - private final String type; - - @CustomType.Constructor - private EntityRecognizerInputDataConfigEntityType(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private EntityRecognizerInputDataConfigEntityType() {} /** * @return An entity type to be matched by the Entity Recognizer. * Cannot contain a newline (`\n`), carriage return (`\r`), or tab (`\t`). @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(EntityRecognizerInputDataConfigEntityType defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EntityRecognizerInputDataConfigEntityType defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public EntityRecognizerInputDataConfigEntityType build() { - return new EntityRecognizerInputDataConfigEntityType(type); + } + public EntityRecognizerInputDataConfigEntityType build() { + final var o = new EntityRecognizerInputDataConfigEntityType(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerVpcConfig.java b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerVpcConfig.java index ebadbd00805..b69899b9af1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerVpcConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/comprehend/outputs/EntityRecognizerVpcConfig.java @@ -14,21 +14,14 @@ public final class EntityRecognizerVpcConfig { * @return List of security group IDs. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return List of VPC subnets. * */ - private final List subnets; - - @CustomType.Constructor - private EntityRecognizerVpcConfig( - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnets") List subnets) { - this.securityGroupIds = securityGroupIds; - this.subnets = subnets; - } + private List subnets; + private EntityRecognizerVpcConfig() {} /** * @return List of security group IDs. * @@ -51,21 +44,18 @@ public static Builder builder() { public static Builder builder(EntityRecognizerVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List securityGroupIds; private List subnets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EntityRecognizerVpcConfig defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; this.subnets = defaults.subnets; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -73,14 +63,19 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; } public Builder subnets(String... subnets) { return subnets(List.of(subnets)); - } public EntityRecognizerVpcConfig build() { - return new EntityRecognizerVpcConfig(securityGroupIds, subnets); + } + public EntityRecognizerVpcConfig build() { + final var o = new EntityRecognizerVpcConfig(); + o.securityGroupIds = securityGroupIds; + o.subnets = subnets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/config/inputs/AssumeRole.java b/sdk/java/src/main/java/com/pulumi/aws/config/inputs/AssumeRole.java index fd1fa31478f..019c5cb4342 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/config/inputs/AssumeRole.java +++ b/sdk/java/src/main/java/com/pulumi/aws/config/inputs/AssumeRole.java @@ -14,44 +14,23 @@ @CustomType public final class AssumeRole { - private final @Nullable String duration; + private @Nullable String duration; /** * @deprecated * Use assume_role.duration instead * */ @Deprecated /* Use assume_role.duration instead */ - private final @Nullable Integer durationSeconds; - private final @Nullable String externalId; - private final @Nullable String policy; - private final @Nullable List policyArns; - private final @Nullable String roleArn; - private final @Nullable String sessionName; - private final @Nullable Map tags; - private final @Nullable List transitiveTagKeys; - - @CustomType.Constructor - private AssumeRole( - @CustomType.Parameter("duration") @Nullable String duration, - @CustomType.Parameter("durationSeconds") @Nullable Integer durationSeconds, - @CustomType.Parameter("externalId") @Nullable String externalId, - @CustomType.Parameter("policy") @Nullable String policy, - @CustomType.Parameter("policyArns") @Nullable List policyArns, - @CustomType.Parameter("roleArn") @Nullable String roleArn, - @CustomType.Parameter("sessionName") @Nullable String sessionName, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("transitiveTagKeys") @Nullable List transitiveTagKeys) { - this.duration = duration; - this.durationSeconds = durationSeconds; - this.externalId = externalId; - this.policy = policy; - this.policyArns = policyArns; - this.roleArn = roleArn; - this.sessionName = sessionName; - this.tags = tags; - this.transitiveTagKeys = transitiveTagKeys; - } + private @Nullable Integer durationSeconds; + private @Nullable String externalId; + private @Nullable String policy; + private @Nullable List policyArns; + private @Nullable String roleArn; + private @Nullable String sessionName; + private @Nullable Map tags; + private @Nullable List transitiveTagKeys; + private AssumeRole() {} public Optional duration() { return Optional.ofNullable(this.duration); } @@ -93,7 +72,7 @@ public static Builder builder() { public static Builder builder(AssumeRole defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String duration; private @Nullable Integer durationSeconds; @@ -104,11 +83,7 @@ public static final class Builder { private @Nullable String sessionName; private @Nullable Map tags; private @Nullable List transitiveTagKeys; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AssumeRole defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; @@ -122,22 +97,27 @@ public Builder(AssumeRole defaults) { this.transitiveTagKeys = defaults.transitiveTagKeys; } + @CustomType.Setter public Builder duration(@Nullable String duration) { this.duration = duration; return this; } + @CustomType.Setter public Builder durationSeconds(@Nullable Integer durationSeconds) { this.durationSeconds = durationSeconds; return this; } + @CustomType.Setter public Builder externalId(@Nullable String externalId) { this.externalId = externalId; return this; } + @CustomType.Setter public Builder policy(@Nullable String policy) { this.policy = policy; return this; } + @CustomType.Setter public Builder policyArns(@Nullable List policyArns) { this.policyArns = policyArns; return this; @@ -145,26 +125,41 @@ public Builder policyArns(@Nullable List policyArns) { public Builder policyArns(String... policyArns) { return policyArns(List.of(policyArns)); } + @CustomType.Setter public Builder roleArn(@Nullable String roleArn) { this.roleArn = roleArn; return this; } + @CustomType.Setter public Builder sessionName(@Nullable String sessionName) { this.sessionName = sessionName; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder transitiveTagKeys(@Nullable List transitiveTagKeys) { this.transitiveTagKeys = transitiveTagKeys; return this; } public Builder transitiveTagKeys(String... transitiveTagKeys) { return transitiveTagKeys(List.of(transitiveTagKeys)); - } public AssumeRole build() { - return new AssumeRole(duration, durationSeconds, externalId, policy, policyArns, roleArn, sessionName, tags, transitiveTagKeys); + } + public AssumeRole build() { + final var o = new AssumeRole(); + o.duration = duration; + o.durationSeconds = durationSeconds; + o.externalId = externalId; + o.policy = policy; + o.policyArns = policyArns; + o.roleArn = roleArn; + o.sessionName = sessionName; + o.tags = tags; + o.transitiveTagKeys = transitiveTagKeys; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/config/inputs/AssumeRoleWithWebIdentity.java b/sdk/java/src/main/java/com/pulumi/aws/config/inputs/AssumeRoleWithWebIdentity.java index fd7bddd916d..e405279a023 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/config/inputs/AssumeRoleWithWebIdentity.java +++ b/sdk/java/src/main/java/com/pulumi/aws/config/inputs/AssumeRoleWithWebIdentity.java @@ -12,32 +12,15 @@ @CustomType public final class AssumeRoleWithWebIdentity { - private final @Nullable String duration; - private final @Nullable String policy; - private final @Nullable List policyArns; - private final @Nullable String roleArn; - private final @Nullable String sessionName; - private final @Nullable String webIdentityToken; - private final @Nullable String webIdentityTokenFile; - - @CustomType.Constructor - private AssumeRoleWithWebIdentity( - @CustomType.Parameter("duration") @Nullable String duration, - @CustomType.Parameter("policy") @Nullable String policy, - @CustomType.Parameter("policyArns") @Nullable List policyArns, - @CustomType.Parameter("roleArn") @Nullable String roleArn, - @CustomType.Parameter("sessionName") @Nullable String sessionName, - @CustomType.Parameter("webIdentityToken") @Nullable String webIdentityToken, - @CustomType.Parameter("webIdentityTokenFile") @Nullable String webIdentityTokenFile) { - this.duration = duration; - this.policy = policy; - this.policyArns = policyArns; - this.roleArn = roleArn; - this.sessionName = sessionName; - this.webIdentityToken = webIdentityToken; - this.webIdentityTokenFile = webIdentityTokenFile; - } + private @Nullable String duration; + private @Nullable String policy; + private @Nullable List policyArns; + private @Nullable String roleArn; + private @Nullable String sessionName; + private @Nullable String webIdentityToken; + private @Nullable String webIdentityTokenFile; + private AssumeRoleWithWebIdentity() {} public Optional duration() { return Optional.ofNullable(this.duration); } @@ -67,7 +50,7 @@ public static Builder builder() { public static Builder builder(AssumeRoleWithWebIdentity defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String duration; private @Nullable String policy; @@ -76,11 +59,7 @@ public static final class Builder { private @Nullable String sessionName; private @Nullable String webIdentityToken; private @Nullable String webIdentityTokenFile; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AssumeRoleWithWebIdentity defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; @@ -92,14 +71,17 @@ public Builder(AssumeRoleWithWebIdentity defaults) { this.webIdentityTokenFile = defaults.webIdentityTokenFile; } + @CustomType.Setter public Builder duration(@Nullable String duration) { this.duration = duration; return this; } + @CustomType.Setter public Builder policy(@Nullable String policy) { this.policy = policy; return this; } + @CustomType.Setter public Builder policyArns(@Nullable List policyArns) { this.policyArns = policyArns; return this; @@ -107,23 +89,36 @@ public Builder policyArns(@Nullable List policyArns) { public Builder policyArns(String... policyArns) { return policyArns(List.of(policyArns)); } + @CustomType.Setter public Builder roleArn(@Nullable String roleArn) { this.roleArn = roleArn; return this; } + @CustomType.Setter public Builder sessionName(@Nullable String sessionName) { this.sessionName = sessionName; return this; } + @CustomType.Setter public Builder webIdentityToken(@Nullable String webIdentityToken) { this.webIdentityToken = webIdentityToken; return this; } + @CustomType.Setter public Builder webIdentityTokenFile(@Nullable String webIdentityTokenFile) { this.webIdentityTokenFile = webIdentityTokenFile; return this; - } public AssumeRoleWithWebIdentity build() { - return new AssumeRoleWithWebIdentity(duration, policy, policyArns, roleArn, sessionName, webIdentityToken, webIdentityTokenFile); + } + public AssumeRoleWithWebIdentity build() { + final var o = new AssumeRoleWithWebIdentity(); + o.duration = duration; + o.policy = policy; + o.policyArns = policyArns; + o.roleArn = roleArn; + o.sessionName = sessionName; + o.webIdentityToken = webIdentityToken; + o.webIdentityTokenFile = webIdentityTokenFile; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/config/inputs/DefaultTags.java b/sdk/java/src/main/java/com/pulumi/aws/config/inputs/DefaultTags.java index 6634f4b0071..22da1674b53 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/config/inputs/DefaultTags.java +++ b/sdk/java/src/main/java/com/pulumi/aws/config/inputs/DefaultTags.java @@ -11,13 +11,9 @@ @CustomType public final class DefaultTags { - private final @Nullable Map tags; - - @CustomType.Constructor - private DefaultTags(@CustomType.Parameter("tags") @Nullable Map tags) { - this.tags = tags; - } + private @Nullable Map tags; + private DefaultTags() {} public Map tags() { return this.tags == null ? Map.of() : this.tags; } @@ -29,24 +25,24 @@ public static Builder builder() { public static Builder builder(DefaultTags defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DefaultTags defaults) { Objects.requireNonNull(defaults); this.tags = defaults.tags; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public DefaultTags build() { - return new DefaultTags(tags); + } + public DefaultTags build() { + final var o = new DefaultTags(); + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/config/inputs/Endpoints.java b/sdk/java/src/main/java/com/pulumi/aws/config/inputs/Endpoints.java index 5a44949bf37..4126143fabe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/config/inputs/Endpoints.java +++ b/sdk/java/src/main/java/com/pulumi/aws/config/inputs/Endpoints.java @@ -380,378 +380,7 @@ public final class Endpoints { private @Nullable String workspacesweb; private @Nullable String xray; - @CustomType.Constructor - - private Endpoints() { - this.accessanalyzer = null; - this.account = null; - this.acm = null; - this.acmpca = null; - this.alexaforbusiness = null; - this.amg = null; - this.amp = null; - this.amplify = null; - this.amplifybackend = null; - this.amplifyuibuilder = null; - this.apigateway = null; - this.apigatewaymanagementapi = null; - this.apigatewayv2 = null; - this.appautoscaling = null; - this.appconfig = null; - this.appconfigdata = null; - this.appflow = null; - this.appintegrations = null; - this.appintegrationsservice = null; - this.applicationautoscaling = null; - this.applicationcostprofiler = null; - this.applicationdiscovery = null; - this.applicationdiscoveryservice = null; - this.applicationinsights = null; - this.appmesh = null; - this.appregistry = null; - this.apprunner = null; - this.appstream = null; - this.appsync = null; - this.athena = null; - this.auditmanager = null; - this.augmentedairuntime = null; - this.autoscaling = null; - this.autoscalingplans = null; - this.backup = null; - this.backupgateway = null; - this.batch = null; - this.beanstalk = null; - this.billingconductor = null; - this.braket = null; - this.budgets = null; - this.ce = null; - this.chime = null; - this.chimesdkidentity = null; - this.chimesdkmeetings = null; - this.chimesdkmessaging = null; - this.cloud9 = null; - this.cloudcontrol = null; - this.cloudcontrolapi = null; - this.clouddirectory = null; - this.cloudformation = null; - this.cloudfront = null; - this.cloudhsm = null; - this.cloudhsmv2 = null; - this.cloudsearch = null; - this.cloudsearchdomain = null; - this.cloudtrail = null; - this.cloudwatch = null; - this.cloudwatchevents = null; - this.cloudwatchevidently = null; - this.cloudwatchlog = null; - this.cloudwatchlogs = null; - this.cloudwatchrum = null; - this.codeartifact = null; - this.codebuild = null; - this.codecommit = null; - this.codedeploy = null; - this.codeguruprofiler = null; - this.codegurureviewer = null; - this.codepipeline = null; - this.codestar = null; - this.codestarconnections = null; - this.codestarnotifications = null; - this.cognitoidentity = null; - this.cognitoidentityprovider = null; - this.cognitoidp = null; - this.cognitosync = null; - this.comprehend = null; - this.comprehendmedical = null; - this.computeoptimizer = null; - this.config = null; - this.configservice = null; - this.connect = null; - this.connectcontactlens = null; - this.connectparticipant = null; - this.connectwisdomservice = null; - this.costandusagereportservice = null; - this.costexplorer = null; - this.cur = null; - this.customerprofiles = null; - this.databasemigration = null; - this.databasemigrationservice = null; - this.databrew = null; - this.dataexchange = null; - this.datapipeline = null; - this.datasync = null; - this.dax = null; - this.deploy = null; - this.detective = null; - this.devicefarm = null; - this.devopsguru = null; - this.directconnect = null; - this.directoryservice = null; - this.discovery = null; - this.dlm = null; - this.dms = null; - this.docdb = null; - this.drs = null; - this.ds = null; - this.dynamodb = null; - this.dynamodbstreams = null; - this.ebs = null; - this.ec2 = null; - this.ec2instanceconnect = null; - this.ecr = null; - this.ecrpublic = null; - this.ecs = null; - this.efs = null; - this.eks = null; - this.elasticache = null; - this.elasticbeanstalk = null; - this.elasticinference = null; - this.elasticloadbalancing = null; - this.elasticloadbalancingv2 = null; - this.elasticsearch = null; - this.elasticsearchservice = null; - this.elastictranscoder = null; - this.elb = null; - this.elbv2 = null; - this.emr = null; - this.emrcontainers = null; - this.emrserverless = null; - this.es = null; - this.eventbridge = null; - this.events = null; - this.evidently = null; - this.finspace = null; - this.finspacedata = null; - this.firehose = null; - this.fis = null; - this.fms = null; - this.forecast = null; - this.forecastquery = null; - this.forecastqueryservice = null; - this.forecastservice = null; - this.frauddetector = null; - this.fsx = null; - this.gamelift = null; - this.glacier = null; - this.globalaccelerator = null; - this.glue = null; - this.gluedatabrew = null; - this.grafana = null; - this.greengrass = null; - this.greengrassv2 = null; - this.groundstation = null; - this.guardduty = null; - this.health = null; - this.healthlake = null; - this.honeycode = null; - this.iam = null; - this.identitystore = null; - this.imagebuilder = null; - this.inspector = null; - this.inspector2 = null; - this.iot = null; - this.iot1clickdevices = null; - this.iot1clickdevicesservice = null; - this.iot1clickprojects = null; - this.iotanalytics = null; - this.iotdata = null; - this.iotdataplane = null; - this.iotdeviceadvisor = null; - this.iotevents = null; - this.ioteventsdata = null; - this.iotfleethub = null; - this.iotjobsdata = null; - this.iotjobsdataplane = null; - this.iotsecuretunneling = null; - this.iotsitewise = null; - this.iotthingsgraph = null; - this.iottwinmaker = null; - this.iotwireless = null; - this.ivs = null; - this.kafka = null; - this.kafkaconnect = null; - this.kendra = null; - this.keyspaces = null; - this.kinesis = null; - this.kinesisanalytics = null; - this.kinesisanalyticsv2 = null; - this.kinesisvideo = null; - this.kinesisvideoarchivedmedia = null; - this.kinesisvideomedia = null; - this.kinesisvideosignaling = null; - this.kinesisvideosignalingchannels = null; - this.kms = null; - this.lakeformation = null; - this.lambda = null; - this.lex = null; - this.lexmodelbuilding = null; - this.lexmodelbuildingservice = null; - this.lexmodels = null; - this.lexmodelsv2 = null; - this.lexruntime = null; - this.lexruntimeservice = null; - this.lexruntimev2 = null; - this.lexv2models = null; - this.lexv2runtime = null; - this.licensemanager = null; - this.lightsail = null; - this.location = null; - this.locationservice = null; - this.logs = null; - this.lookoutequipment = null; - this.lookoutforvision = null; - this.lookoutmetrics = null; - this.lookoutvision = null; - this.machinelearning = null; - this.macie = null; - this.macie2 = null; - this.managedblockchain = null; - this.managedgrafana = null; - this.marketplacecatalog = null; - this.marketplacecommerceanalytics = null; - this.marketplaceentitlement = null; - this.marketplaceentitlementservice = null; - this.marketplacemetering = null; - this.mediaconnect = null; - this.mediaconvert = null; - this.medialive = null; - this.mediapackage = null; - this.mediapackagevod = null; - this.mediastore = null; - this.mediastoredata = null; - this.mediatailor = null; - this.memorydb = null; - this.meteringmarketplace = null; - this.mgh = null; - this.mgn = null; - this.migrationhub = null; - this.migrationhubconfig = null; - this.migrationhubrefactorspaces = null; - this.migrationhubstrategy = null; - this.migrationhubstrategyrecommendations = null; - this.mobile = null; - this.mq = null; - this.msk = null; - this.mturk = null; - this.mwaa = null; - this.neptune = null; - this.networkfirewall = null; - this.networkmanager = null; - this.nimble = null; - this.nimblestudio = null; - this.opensearch = null; - this.opensearchservice = null; - this.opsworks = null; - this.opsworkscm = null; - this.organizations = null; - this.outposts = null; - this.panorama = null; - this.personalize = null; - this.personalizeevents = null; - this.personalizeruntime = null; - this.pi = null; - this.pinpoint = null; - this.pinpointemail = null; - this.pinpointsmsvoice = null; - this.polly = null; - this.pricing = null; - this.prometheus = null; - this.prometheusservice = null; - this.proton = null; - this.qldb = null; - this.qldbsession = null; - this.quicksight = null; - this.ram = null; - this.rbin = null; - this.rds = null; - this.rdsdata = null; - this.rdsdataservice = null; - this.recyclebin = null; - this.redshift = null; - this.redshiftdata = null; - this.redshiftdataapiservice = null; - this.redshiftserverless = null; - this.rekognition = null; - this.resiliencehub = null; - this.resourcegroups = null; - this.resourcegroupstagging = null; - this.resourcegroupstaggingapi = null; - this.robomaker = null; - this.rolesanywhere = null; - this.route53 = null; - this.route53domains = null; - this.route53recoverycluster = null; - this.route53recoverycontrolconfig = null; - this.route53recoveryreadiness = null; - this.route53resolver = null; - this.rum = null; - this.s3 = null; - this.s3api = null; - this.s3control = null; - this.s3outposts = null; - this.sagemaker = null; - this.sagemakera2iruntime = null; - this.sagemakeredge = null; - this.sagemakeredgemanager = null; - this.sagemakerfeaturestoreruntime = null; - this.sagemakerruntime = null; - this.savingsplans = null; - this.schemas = null; - this.sdb = null; - this.secretsmanager = null; - this.securityhub = null; - this.serverlessapplicationrepository = null; - this.serverlessapprepo = null; - this.serverlessrepo = null; - this.servicecatalog = null; - this.servicecatalogappregistry = null; - this.servicediscovery = null; - this.servicequotas = null; - this.ses = null; - this.sesv2 = null; - this.sfn = null; - this.shield = null; - this.signer = null; - this.simpledb = null; - this.sms = null; - this.snowball = null; - this.snowdevicemanagement = null; - this.sns = null; - this.sqs = null; - this.ssm = null; - this.ssmcontacts = null; - this.ssmincidents = null; - this.sso = null; - this.ssoadmin = null; - this.ssooidc = null; - this.stepfunctions = null; - this.storagegateway = null; - this.sts = null; - this.support = null; - this.swf = null; - this.synthetics = null; - this.textract = null; - this.timestreamquery = null; - this.timestreamwrite = null; - this.transcribe = null; - this.transcribeservice = null; - this.transcribestreaming = null; - this.transcribestreamingservice = null; - this.transfer = null; - this.translate = null; - this.voiceid = null; - this.waf = null; - this.wafregional = null; - this.wafv2 = null; - this.wellarchitected = null; - this.wisdom = null; - this.workdocs = null; - this.worklink = null; - this.workmail = null; - this.workmailmessageflow = null; - this.workspaces = null; - this.workspacesweb = null; - this.xray = null; - } + private Endpoints() {} public Optional accessanalyzer() { return Optional.ofNullable(this.accessanalyzer); } @@ -1864,7 +1493,7 @@ public static Builder builder() { public static Builder builder(Endpoints defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessanalyzer; private @Nullable String account; @@ -2234,11 +1863,7 @@ public static final class Builder { private @Nullable String workspaces; private @Nullable String workspacesweb; private @Nullable String xray; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(Endpoints defaults) { Objects.requireNonNull(defaults); this.accessanalyzer = defaults.accessanalyzer; @@ -2611,1849 +2236,2217 @@ public Builder(Endpoints defaults) { this.xray = defaults.xray; } + @CustomType.Setter public Builder accessanalyzer(@Nullable String accessanalyzer) { this.accessanalyzer = accessanalyzer; return this; } + @CustomType.Setter public Builder account(@Nullable String account) { this.account = account; return this; } + @CustomType.Setter public Builder acm(@Nullable String acm) { this.acm = acm; return this; } + @CustomType.Setter public Builder acmpca(@Nullable String acmpca) { this.acmpca = acmpca; return this; } + @CustomType.Setter public Builder alexaforbusiness(@Nullable String alexaforbusiness) { this.alexaforbusiness = alexaforbusiness; return this; } + @CustomType.Setter public Builder amg(@Nullable String amg) { this.amg = amg; return this; } + @CustomType.Setter public Builder amp(@Nullable String amp) { this.amp = amp; return this; } + @CustomType.Setter public Builder amplify(@Nullable String amplify) { this.amplify = amplify; return this; } + @CustomType.Setter public Builder amplifybackend(@Nullable String amplifybackend) { this.amplifybackend = amplifybackend; return this; } + @CustomType.Setter public Builder amplifyuibuilder(@Nullable String amplifyuibuilder) { this.amplifyuibuilder = amplifyuibuilder; return this; } + @CustomType.Setter public Builder apigateway(@Nullable String apigateway) { this.apigateway = apigateway; return this; } + @CustomType.Setter public Builder apigatewaymanagementapi(@Nullable String apigatewaymanagementapi) { this.apigatewaymanagementapi = apigatewaymanagementapi; return this; } + @CustomType.Setter public Builder apigatewayv2(@Nullable String apigatewayv2) { this.apigatewayv2 = apigatewayv2; return this; } + @CustomType.Setter public Builder appautoscaling(@Nullable String appautoscaling) { this.appautoscaling = appautoscaling; return this; } + @CustomType.Setter public Builder appconfig(@Nullable String appconfig) { this.appconfig = appconfig; return this; } + @CustomType.Setter public Builder appconfigdata(@Nullable String appconfigdata) { this.appconfigdata = appconfigdata; return this; } + @CustomType.Setter public Builder appflow(@Nullable String appflow) { this.appflow = appflow; return this; } + @CustomType.Setter public Builder appintegrations(@Nullable String appintegrations) { this.appintegrations = appintegrations; return this; } + @CustomType.Setter public Builder appintegrationsservice(@Nullable String appintegrationsservice) { this.appintegrationsservice = appintegrationsservice; return this; } + @CustomType.Setter public Builder applicationautoscaling(@Nullable String applicationautoscaling) { this.applicationautoscaling = applicationautoscaling; return this; } + @CustomType.Setter public Builder applicationcostprofiler(@Nullable String applicationcostprofiler) { this.applicationcostprofiler = applicationcostprofiler; return this; } + @CustomType.Setter public Builder applicationdiscovery(@Nullable String applicationdiscovery) { this.applicationdiscovery = applicationdiscovery; return this; } + @CustomType.Setter public Builder applicationdiscoveryservice(@Nullable String applicationdiscoveryservice) { this.applicationdiscoveryservice = applicationdiscoveryservice; return this; } + @CustomType.Setter public Builder applicationinsights(@Nullable String applicationinsights) { this.applicationinsights = applicationinsights; return this; } + @CustomType.Setter public Builder appmesh(@Nullable String appmesh) { this.appmesh = appmesh; return this; } + @CustomType.Setter public Builder appregistry(@Nullable String appregistry) { this.appregistry = appregistry; return this; } + @CustomType.Setter public Builder apprunner(@Nullable String apprunner) { this.apprunner = apprunner; return this; } + @CustomType.Setter public Builder appstream(@Nullable String appstream) { this.appstream = appstream; return this; } + @CustomType.Setter public Builder appsync(@Nullable String appsync) { this.appsync = appsync; return this; } + @CustomType.Setter public Builder athena(@Nullable String athena) { this.athena = athena; return this; } + @CustomType.Setter public Builder auditmanager(@Nullable String auditmanager) { this.auditmanager = auditmanager; return this; } + @CustomType.Setter public Builder augmentedairuntime(@Nullable String augmentedairuntime) { this.augmentedairuntime = augmentedairuntime; return this; } + @CustomType.Setter public Builder autoscaling(@Nullable String autoscaling) { this.autoscaling = autoscaling; return this; } + @CustomType.Setter public Builder autoscalingplans(@Nullable String autoscalingplans) { this.autoscalingplans = autoscalingplans; return this; } + @CustomType.Setter public Builder backup(@Nullable String backup) { this.backup = backup; return this; } + @CustomType.Setter public Builder backupgateway(@Nullable String backupgateway) { this.backupgateway = backupgateway; return this; } + @CustomType.Setter public Builder batch(@Nullable String batch) { this.batch = batch; return this; } + @CustomType.Setter public Builder beanstalk(@Nullable String beanstalk) { this.beanstalk = beanstalk; return this; } + @CustomType.Setter public Builder billingconductor(@Nullable String billingconductor) { this.billingconductor = billingconductor; return this; } + @CustomType.Setter public Builder braket(@Nullable String braket) { this.braket = braket; return this; } + @CustomType.Setter public Builder budgets(@Nullable String budgets) { this.budgets = budgets; return this; } + @CustomType.Setter public Builder ce(@Nullable String ce) { this.ce = ce; return this; } + @CustomType.Setter public Builder chime(@Nullable String chime) { this.chime = chime; return this; } + @CustomType.Setter public Builder chimesdkidentity(@Nullable String chimesdkidentity) { this.chimesdkidentity = chimesdkidentity; return this; } + @CustomType.Setter public Builder chimesdkmeetings(@Nullable String chimesdkmeetings) { this.chimesdkmeetings = chimesdkmeetings; return this; } + @CustomType.Setter public Builder chimesdkmessaging(@Nullable String chimesdkmessaging) { this.chimesdkmessaging = chimesdkmessaging; return this; } + @CustomType.Setter public Builder cloud9(@Nullable String cloud9) { this.cloud9 = cloud9; return this; } + @CustomType.Setter public Builder cloudcontrol(@Nullable String cloudcontrol) { this.cloudcontrol = cloudcontrol; return this; } + @CustomType.Setter public Builder cloudcontrolapi(@Nullable String cloudcontrolapi) { this.cloudcontrolapi = cloudcontrolapi; return this; } + @CustomType.Setter public Builder clouddirectory(@Nullable String clouddirectory) { this.clouddirectory = clouddirectory; return this; } + @CustomType.Setter public Builder cloudformation(@Nullable String cloudformation) { this.cloudformation = cloudformation; return this; } + @CustomType.Setter public Builder cloudfront(@Nullable String cloudfront) { this.cloudfront = cloudfront; return this; } + @CustomType.Setter public Builder cloudhsm(@Nullable String cloudhsm) { this.cloudhsm = cloudhsm; return this; } + @CustomType.Setter public Builder cloudhsmv2(@Nullable String cloudhsmv2) { this.cloudhsmv2 = cloudhsmv2; return this; } + @CustomType.Setter public Builder cloudsearch(@Nullable String cloudsearch) { this.cloudsearch = cloudsearch; return this; } + @CustomType.Setter public Builder cloudsearchdomain(@Nullable String cloudsearchdomain) { this.cloudsearchdomain = cloudsearchdomain; return this; } + @CustomType.Setter public Builder cloudtrail(@Nullable String cloudtrail) { this.cloudtrail = cloudtrail; return this; } + @CustomType.Setter public Builder cloudwatch(@Nullable String cloudwatch) { this.cloudwatch = cloudwatch; return this; } + @CustomType.Setter public Builder cloudwatchevents(@Nullable String cloudwatchevents) { this.cloudwatchevents = cloudwatchevents; return this; } + @CustomType.Setter public Builder cloudwatchevidently(@Nullable String cloudwatchevidently) { this.cloudwatchevidently = cloudwatchevidently; return this; } + @CustomType.Setter public Builder cloudwatchlog(@Nullable String cloudwatchlog) { this.cloudwatchlog = cloudwatchlog; return this; } + @CustomType.Setter public Builder cloudwatchlogs(@Nullable String cloudwatchlogs) { this.cloudwatchlogs = cloudwatchlogs; return this; } + @CustomType.Setter public Builder cloudwatchrum(@Nullable String cloudwatchrum) { this.cloudwatchrum = cloudwatchrum; return this; } + @CustomType.Setter public Builder codeartifact(@Nullable String codeartifact) { this.codeartifact = codeartifact; return this; } + @CustomType.Setter public Builder codebuild(@Nullable String codebuild) { this.codebuild = codebuild; return this; } + @CustomType.Setter public Builder codecommit(@Nullable String codecommit) { this.codecommit = codecommit; return this; } + @CustomType.Setter public Builder codedeploy(@Nullable String codedeploy) { this.codedeploy = codedeploy; return this; } + @CustomType.Setter public Builder codeguruprofiler(@Nullable String codeguruprofiler) { this.codeguruprofiler = codeguruprofiler; return this; } + @CustomType.Setter public Builder codegurureviewer(@Nullable String codegurureviewer) { this.codegurureviewer = codegurureviewer; return this; } + @CustomType.Setter public Builder codepipeline(@Nullable String codepipeline) { this.codepipeline = codepipeline; return this; } + @CustomType.Setter public Builder codestar(@Nullable String codestar) { this.codestar = codestar; return this; } + @CustomType.Setter public Builder codestarconnections(@Nullable String codestarconnections) { this.codestarconnections = codestarconnections; return this; } + @CustomType.Setter public Builder codestarnotifications(@Nullable String codestarnotifications) { this.codestarnotifications = codestarnotifications; return this; } + @CustomType.Setter public Builder cognitoidentity(@Nullable String cognitoidentity) { this.cognitoidentity = cognitoidentity; return this; } + @CustomType.Setter public Builder cognitoidentityprovider(@Nullable String cognitoidentityprovider) { this.cognitoidentityprovider = cognitoidentityprovider; return this; } + @CustomType.Setter public Builder cognitoidp(@Nullable String cognitoidp) { this.cognitoidp = cognitoidp; return this; } + @CustomType.Setter public Builder cognitosync(@Nullable String cognitosync) { this.cognitosync = cognitosync; return this; } + @CustomType.Setter public Builder comprehend(@Nullable String comprehend) { this.comprehend = comprehend; return this; } + @CustomType.Setter public Builder comprehendmedical(@Nullable String comprehendmedical) { this.comprehendmedical = comprehendmedical; return this; } + @CustomType.Setter public Builder computeoptimizer(@Nullable String computeoptimizer) { this.computeoptimizer = computeoptimizer; return this; } + @CustomType.Setter public Builder config(@Nullable String config) { this.config = config; return this; } + @CustomType.Setter public Builder configservice(@Nullable String configservice) { this.configservice = configservice; return this; } + @CustomType.Setter public Builder connect(@Nullable String connect) { this.connect = connect; return this; } + @CustomType.Setter public Builder connectcontactlens(@Nullable String connectcontactlens) { this.connectcontactlens = connectcontactlens; return this; } + @CustomType.Setter public Builder connectparticipant(@Nullable String connectparticipant) { this.connectparticipant = connectparticipant; return this; } + @CustomType.Setter public Builder connectwisdomservice(@Nullable String connectwisdomservice) { this.connectwisdomservice = connectwisdomservice; return this; } + @CustomType.Setter public Builder costandusagereportservice(@Nullable String costandusagereportservice) { this.costandusagereportservice = costandusagereportservice; return this; } + @CustomType.Setter public Builder costexplorer(@Nullable String costexplorer) { this.costexplorer = costexplorer; return this; } + @CustomType.Setter public Builder cur(@Nullable String cur) { this.cur = cur; return this; } + @CustomType.Setter public Builder customerprofiles(@Nullable String customerprofiles) { this.customerprofiles = customerprofiles; return this; } + @CustomType.Setter public Builder databasemigration(@Nullable String databasemigration) { this.databasemigration = databasemigration; return this; } + @CustomType.Setter public Builder databasemigrationservice(@Nullable String databasemigrationservice) { this.databasemigrationservice = databasemigrationservice; return this; } + @CustomType.Setter public Builder databrew(@Nullable String databrew) { this.databrew = databrew; return this; } + @CustomType.Setter public Builder dataexchange(@Nullable String dataexchange) { this.dataexchange = dataexchange; return this; } + @CustomType.Setter public Builder datapipeline(@Nullable String datapipeline) { this.datapipeline = datapipeline; return this; } + @CustomType.Setter public Builder datasync(@Nullable String datasync) { this.datasync = datasync; return this; } + @CustomType.Setter public Builder dax(@Nullable String dax) { this.dax = dax; return this; } + @CustomType.Setter public Builder deploy(@Nullable String deploy) { this.deploy = deploy; return this; } + @CustomType.Setter public Builder detective(@Nullable String detective) { this.detective = detective; return this; } + @CustomType.Setter public Builder devicefarm(@Nullable String devicefarm) { this.devicefarm = devicefarm; return this; } + @CustomType.Setter public Builder devopsguru(@Nullable String devopsguru) { this.devopsguru = devopsguru; return this; } + @CustomType.Setter public Builder directconnect(@Nullable String directconnect) { this.directconnect = directconnect; return this; } + @CustomType.Setter public Builder directoryservice(@Nullable String directoryservice) { this.directoryservice = directoryservice; return this; } + @CustomType.Setter public Builder discovery(@Nullable String discovery) { this.discovery = discovery; return this; } + @CustomType.Setter public Builder dlm(@Nullable String dlm) { this.dlm = dlm; return this; } + @CustomType.Setter public Builder dms(@Nullable String dms) { this.dms = dms; return this; } + @CustomType.Setter public Builder docdb(@Nullable String docdb) { this.docdb = docdb; return this; } + @CustomType.Setter public Builder drs(@Nullable String drs) { this.drs = drs; return this; } + @CustomType.Setter public Builder ds(@Nullable String ds) { this.ds = ds; return this; } + @CustomType.Setter public Builder dynamodb(@Nullable String dynamodb) { this.dynamodb = dynamodb; return this; } + @CustomType.Setter public Builder dynamodbstreams(@Nullable String dynamodbstreams) { this.dynamodbstreams = dynamodbstreams; return this; } + @CustomType.Setter public Builder ebs(@Nullable String ebs) { this.ebs = ebs; return this; } + @CustomType.Setter public Builder ec2(@Nullable String ec2) { this.ec2 = ec2; return this; } + @CustomType.Setter public Builder ec2instanceconnect(@Nullable String ec2instanceconnect) { this.ec2instanceconnect = ec2instanceconnect; return this; } + @CustomType.Setter public Builder ecr(@Nullable String ecr) { this.ecr = ecr; return this; } + @CustomType.Setter public Builder ecrpublic(@Nullable String ecrpublic) { this.ecrpublic = ecrpublic; return this; } + @CustomType.Setter public Builder ecs(@Nullable String ecs) { this.ecs = ecs; return this; } + @CustomType.Setter public Builder efs(@Nullable String efs) { this.efs = efs; return this; } + @CustomType.Setter public Builder eks(@Nullable String eks) { this.eks = eks; return this; } + @CustomType.Setter public Builder elasticache(@Nullable String elasticache) { this.elasticache = elasticache; return this; } + @CustomType.Setter public Builder elasticbeanstalk(@Nullable String elasticbeanstalk) { this.elasticbeanstalk = elasticbeanstalk; return this; } + @CustomType.Setter public Builder elasticinference(@Nullable String elasticinference) { this.elasticinference = elasticinference; return this; } + @CustomType.Setter public Builder elasticloadbalancing(@Nullable String elasticloadbalancing) { this.elasticloadbalancing = elasticloadbalancing; return this; } + @CustomType.Setter public Builder elasticloadbalancingv2(@Nullable String elasticloadbalancingv2) { this.elasticloadbalancingv2 = elasticloadbalancingv2; return this; } + @CustomType.Setter public Builder elasticsearch(@Nullable String elasticsearch) { this.elasticsearch = elasticsearch; return this; } + @CustomType.Setter public Builder elasticsearchservice(@Nullable String elasticsearchservice) { this.elasticsearchservice = elasticsearchservice; return this; } + @CustomType.Setter public Builder elastictranscoder(@Nullable String elastictranscoder) { this.elastictranscoder = elastictranscoder; return this; } + @CustomType.Setter public Builder elb(@Nullable String elb) { this.elb = elb; return this; } + @CustomType.Setter public Builder elbv2(@Nullable String elbv2) { this.elbv2 = elbv2; return this; } + @CustomType.Setter public Builder emr(@Nullable String emr) { this.emr = emr; return this; } + @CustomType.Setter public Builder emrcontainers(@Nullable String emrcontainers) { this.emrcontainers = emrcontainers; return this; } + @CustomType.Setter public Builder emrserverless(@Nullable String emrserverless) { this.emrserverless = emrserverless; return this; } + @CustomType.Setter public Builder es(@Nullable String es) { this.es = es; return this; } + @CustomType.Setter public Builder eventbridge(@Nullable String eventbridge) { this.eventbridge = eventbridge; return this; } + @CustomType.Setter public Builder events(@Nullable String events) { this.events = events; return this; } + @CustomType.Setter public Builder evidently(@Nullable String evidently) { this.evidently = evidently; return this; } + @CustomType.Setter public Builder finspace(@Nullable String finspace) { this.finspace = finspace; return this; } + @CustomType.Setter public Builder finspacedata(@Nullable String finspacedata) { this.finspacedata = finspacedata; return this; } + @CustomType.Setter public Builder firehose(@Nullable String firehose) { this.firehose = firehose; return this; } + @CustomType.Setter public Builder fis(@Nullable String fis) { this.fis = fis; return this; } + @CustomType.Setter public Builder fms(@Nullable String fms) { this.fms = fms; return this; } + @CustomType.Setter public Builder forecast(@Nullable String forecast) { this.forecast = forecast; return this; } + @CustomType.Setter public Builder forecastquery(@Nullable String forecastquery) { this.forecastquery = forecastquery; return this; } + @CustomType.Setter public Builder forecastqueryservice(@Nullable String forecastqueryservice) { this.forecastqueryservice = forecastqueryservice; return this; } + @CustomType.Setter public Builder forecastservice(@Nullable String forecastservice) { this.forecastservice = forecastservice; return this; } + @CustomType.Setter public Builder frauddetector(@Nullable String frauddetector) { this.frauddetector = frauddetector; return this; } + @CustomType.Setter public Builder fsx(@Nullable String fsx) { this.fsx = fsx; return this; } + @CustomType.Setter public Builder gamelift(@Nullable String gamelift) { this.gamelift = gamelift; return this; } + @CustomType.Setter public Builder glacier(@Nullable String glacier) { this.glacier = glacier; return this; } + @CustomType.Setter public Builder globalaccelerator(@Nullable String globalaccelerator) { this.globalaccelerator = globalaccelerator; return this; } + @CustomType.Setter public Builder glue(@Nullable String glue) { this.glue = glue; return this; } + @CustomType.Setter public Builder gluedatabrew(@Nullable String gluedatabrew) { this.gluedatabrew = gluedatabrew; return this; } + @CustomType.Setter public Builder grafana(@Nullable String grafana) { this.grafana = grafana; return this; } + @CustomType.Setter public Builder greengrass(@Nullable String greengrass) { this.greengrass = greengrass; return this; } + @CustomType.Setter public Builder greengrassv2(@Nullable String greengrassv2) { this.greengrassv2 = greengrassv2; return this; } + @CustomType.Setter public Builder groundstation(@Nullable String groundstation) { this.groundstation = groundstation; return this; } + @CustomType.Setter public Builder guardduty(@Nullable String guardduty) { this.guardduty = guardduty; return this; } + @CustomType.Setter public Builder health(@Nullable String health) { this.health = health; return this; } + @CustomType.Setter public Builder healthlake(@Nullable String healthlake) { this.healthlake = healthlake; return this; } + @CustomType.Setter public Builder honeycode(@Nullable String honeycode) { this.honeycode = honeycode; return this; } + @CustomType.Setter public Builder iam(@Nullable String iam) { this.iam = iam; return this; } + @CustomType.Setter public Builder identitystore(@Nullable String identitystore) { this.identitystore = identitystore; return this; } + @CustomType.Setter public Builder imagebuilder(@Nullable String imagebuilder) { this.imagebuilder = imagebuilder; return this; } + @CustomType.Setter public Builder inspector(@Nullable String inspector) { this.inspector = inspector; return this; } + @CustomType.Setter public Builder inspector2(@Nullable String inspector2) { this.inspector2 = inspector2; return this; } + @CustomType.Setter public Builder iot(@Nullable String iot) { this.iot = iot; return this; } + @CustomType.Setter public Builder iot1clickdevices(@Nullable String iot1clickdevices) { this.iot1clickdevices = iot1clickdevices; return this; } + @CustomType.Setter public Builder iot1clickdevicesservice(@Nullable String iot1clickdevicesservice) { this.iot1clickdevicesservice = iot1clickdevicesservice; return this; } + @CustomType.Setter public Builder iot1clickprojects(@Nullable String iot1clickprojects) { this.iot1clickprojects = iot1clickprojects; return this; } + @CustomType.Setter public Builder iotanalytics(@Nullable String iotanalytics) { this.iotanalytics = iotanalytics; return this; } + @CustomType.Setter public Builder iotdata(@Nullable String iotdata) { this.iotdata = iotdata; return this; } + @CustomType.Setter public Builder iotdataplane(@Nullable String iotdataplane) { this.iotdataplane = iotdataplane; return this; } + @CustomType.Setter public Builder iotdeviceadvisor(@Nullable String iotdeviceadvisor) { this.iotdeviceadvisor = iotdeviceadvisor; return this; } + @CustomType.Setter public Builder iotevents(@Nullable String iotevents) { this.iotevents = iotevents; return this; } + @CustomType.Setter public Builder ioteventsdata(@Nullable String ioteventsdata) { this.ioteventsdata = ioteventsdata; return this; } + @CustomType.Setter public Builder iotfleethub(@Nullable String iotfleethub) { this.iotfleethub = iotfleethub; return this; } + @CustomType.Setter public Builder iotjobsdata(@Nullable String iotjobsdata) { this.iotjobsdata = iotjobsdata; return this; } + @CustomType.Setter public Builder iotjobsdataplane(@Nullable String iotjobsdataplane) { this.iotjobsdataplane = iotjobsdataplane; return this; } + @CustomType.Setter public Builder iotsecuretunneling(@Nullable String iotsecuretunneling) { this.iotsecuretunneling = iotsecuretunneling; return this; } + @CustomType.Setter public Builder iotsitewise(@Nullable String iotsitewise) { this.iotsitewise = iotsitewise; return this; } + @CustomType.Setter public Builder iotthingsgraph(@Nullable String iotthingsgraph) { this.iotthingsgraph = iotthingsgraph; return this; } + @CustomType.Setter public Builder iottwinmaker(@Nullable String iottwinmaker) { this.iottwinmaker = iottwinmaker; return this; } + @CustomType.Setter public Builder iotwireless(@Nullable String iotwireless) { this.iotwireless = iotwireless; return this; } + @CustomType.Setter public Builder ivs(@Nullable String ivs) { this.ivs = ivs; return this; } + @CustomType.Setter public Builder kafka(@Nullable String kafka) { this.kafka = kafka; return this; } + @CustomType.Setter public Builder kafkaconnect(@Nullable String kafkaconnect) { this.kafkaconnect = kafkaconnect; return this; } + @CustomType.Setter public Builder kendra(@Nullable String kendra) { this.kendra = kendra; return this; } + @CustomType.Setter public Builder keyspaces(@Nullable String keyspaces) { this.keyspaces = keyspaces; return this; } + @CustomType.Setter public Builder kinesis(@Nullable String kinesis) { this.kinesis = kinesis; return this; } + @CustomType.Setter public Builder kinesisanalytics(@Nullable String kinesisanalytics) { this.kinesisanalytics = kinesisanalytics; return this; } + @CustomType.Setter public Builder kinesisanalyticsv2(@Nullable String kinesisanalyticsv2) { this.kinesisanalyticsv2 = kinesisanalyticsv2; return this; } + @CustomType.Setter public Builder kinesisvideo(@Nullable String kinesisvideo) { this.kinesisvideo = kinesisvideo; return this; } + @CustomType.Setter public Builder kinesisvideoarchivedmedia(@Nullable String kinesisvideoarchivedmedia) { this.kinesisvideoarchivedmedia = kinesisvideoarchivedmedia; return this; } + @CustomType.Setter public Builder kinesisvideomedia(@Nullable String kinesisvideomedia) { this.kinesisvideomedia = kinesisvideomedia; return this; } + @CustomType.Setter public Builder kinesisvideosignaling(@Nullable String kinesisvideosignaling) { this.kinesisvideosignaling = kinesisvideosignaling; return this; } + @CustomType.Setter public Builder kinesisvideosignalingchannels(@Nullable String kinesisvideosignalingchannels) { this.kinesisvideosignalingchannels = kinesisvideosignalingchannels; return this; } + @CustomType.Setter public Builder kms(@Nullable String kms) { this.kms = kms; return this; } + @CustomType.Setter public Builder lakeformation(@Nullable String lakeformation) { this.lakeformation = lakeformation; return this; } + @CustomType.Setter public Builder lambda(@Nullable String lambda) { this.lambda = lambda; return this; } + @CustomType.Setter public Builder lex(@Nullable String lex) { this.lex = lex; return this; } + @CustomType.Setter public Builder lexmodelbuilding(@Nullable String lexmodelbuilding) { this.lexmodelbuilding = lexmodelbuilding; return this; } + @CustomType.Setter public Builder lexmodelbuildingservice(@Nullable String lexmodelbuildingservice) { this.lexmodelbuildingservice = lexmodelbuildingservice; return this; } + @CustomType.Setter public Builder lexmodels(@Nullable String lexmodels) { this.lexmodels = lexmodels; return this; } + @CustomType.Setter public Builder lexmodelsv2(@Nullable String lexmodelsv2) { this.lexmodelsv2 = lexmodelsv2; return this; } + @CustomType.Setter public Builder lexruntime(@Nullable String lexruntime) { this.lexruntime = lexruntime; return this; } + @CustomType.Setter public Builder lexruntimeservice(@Nullable String lexruntimeservice) { this.lexruntimeservice = lexruntimeservice; return this; } + @CustomType.Setter public Builder lexruntimev2(@Nullable String lexruntimev2) { this.lexruntimev2 = lexruntimev2; return this; } + @CustomType.Setter public Builder lexv2models(@Nullable String lexv2models) { this.lexv2models = lexv2models; return this; } + @CustomType.Setter public Builder lexv2runtime(@Nullable String lexv2runtime) { this.lexv2runtime = lexv2runtime; return this; } + @CustomType.Setter public Builder licensemanager(@Nullable String licensemanager) { this.licensemanager = licensemanager; return this; } + @CustomType.Setter public Builder lightsail(@Nullable String lightsail) { this.lightsail = lightsail; return this; } + @CustomType.Setter public Builder location(@Nullable String location) { this.location = location; return this; } + @CustomType.Setter public Builder locationservice(@Nullable String locationservice) { this.locationservice = locationservice; return this; } + @CustomType.Setter public Builder logs(@Nullable String logs) { this.logs = logs; return this; } + @CustomType.Setter public Builder lookoutequipment(@Nullable String lookoutequipment) { this.lookoutequipment = lookoutequipment; return this; } + @CustomType.Setter public Builder lookoutforvision(@Nullable String lookoutforvision) { this.lookoutforvision = lookoutforvision; return this; } + @CustomType.Setter public Builder lookoutmetrics(@Nullable String lookoutmetrics) { this.lookoutmetrics = lookoutmetrics; return this; } + @CustomType.Setter public Builder lookoutvision(@Nullable String lookoutvision) { this.lookoutvision = lookoutvision; return this; } + @CustomType.Setter public Builder machinelearning(@Nullable String machinelearning) { this.machinelearning = machinelearning; return this; } + @CustomType.Setter public Builder macie(@Nullable String macie) { this.macie = macie; return this; } + @CustomType.Setter public Builder macie2(@Nullable String macie2) { this.macie2 = macie2; return this; } + @CustomType.Setter public Builder managedblockchain(@Nullable String managedblockchain) { this.managedblockchain = managedblockchain; return this; } + @CustomType.Setter public Builder managedgrafana(@Nullable String managedgrafana) { this.managedgrafana = managedgrafana; return this; } + @CustomType.Setter public Builder marketplacecatalog(@Nullable String marketplacecatalog) { this.marketplacecatalog = marketplacecatalog; return this; } + @CustomType.Setter public Builder marketplacecommerceanalytics(@Nullable String marketplacecommerceanalytics) { this.marketplacecommerceanalytics = marketplacecommerceanalytics; return this; } + @CustomType.Setter public Builder marketplaceentitlement(@Nullable String marketplaceentitlement) { this.marketplaceentitlement = marketplaceentitlement; return this; } + @CustomType.Setter public Builder marketplaceentitlementservice(@Nullable String marketplaceentitlementservice) { this.marketplaceentitlementservice = marketplaceentitlementservice; return this; } + @CustomType.Setter public Builder marketplacemetering(@Nullable String marketplacemetering) { this.marketplacemetering = marketplacemetering; return this; } + @CustomType.Setter public Builder mediaconnect(@Nullable String mediaconnect) { this.mediaconnect = mediaconnect; return this; } + @CustomType.Setter public Builder mediaconvert(@Nullable String mediaconvert) { this.mediaconvert = mediaconvert; return this; } + @CustomType.Setter public Builder medialive(@Nullable String medialive) { this.medialive = medialive; return this; } + @CustomType.Setter public Builder mediapackage(@Nullable String mediapackage) { this.mediapackage = mediapackage; return this; } + @CustomType.Setter public Builder mediapackagevod(@Nullable String mediapackagevod) { this.mediapackagevod = mediapackagevod; return this; } + @CustomType.Setter public Builder mediastore(@Nullable String mediastore) { this.mediastore = mediastore; return this; } + @CustomType.Setter public Builder mediastoredata(@Nullable String mediastoredata) { this.mediastoredata = mediastoredata; return this; } + @CustomType.Setter public Builder mediatailor(@Nullable String mediatailor) { this.mediatailor = mediatailor; return this; } + @CustomType.Setter public Builder memorydb(@Nullable String memorydb) { this.memorydb = memorydb; return this; } + @CustomType.Setter public Builder meteringmarketplace(@Nullable String meteringmarketplace) { this.meteringmarketplace = meteringmarketplace; return this; } + @CustomType.Setter public Builder mgh(@Nullable String mgh) { this.mgh = mgh; return this; } + @CustomType.Setter public Builder mgn(@Nullable String mgn) { this.mgn = mgn; return this; } + @CustomType.Setter public Builder migrationhub(@Nullable String migrationhub) { this.migrationhub = migrationhub; return this; } + @CustomType.Setter public Builder migrationhubconfig(@Nullable String migrationhubconfig) { this.migrationhubconfig = migrationhubconfig; return this; } + @CustomType.Setter public Builder migrationhubrefactorspaces(@Nullable String migrationhubrefactorspaces) { this.migrationhubrefactorspaces = migrationhubrefactorspaces; return this; } + @CustomType.Setter public Builder migrationhubstrategy(@Nullable String migrationhubstrategy) { this.migrationhubstrategy = migrationhubstrategy; return this; } + @CustomType.Setter public Builder migrationhubstrategyrecommendations(@Nullable String migrationhubstrategyrecommendations) { this.migrationhubstrategyrecommendations = migrationhubstrategyrecommendations; return this; } + @CustomType.Setter public Builder mobile(@Nullable String mobile) { this.mobile = mobile; return this; } + @CustomType.Setter public Builder mq(@Nullable String mq) { this.mq = mq; return this; } + @CustomType.Setter public Builder msk(@Nullable String msk) { this.msk = msk; return this; } + @CustomType.Setter public Builder mturk(@Nullable String mturk) { this.mturk = mturk; return this; } + @CustomType.Setter public Builder mwaa(@Nullable String mwaa) { this.mwaa = mwaa; return this; } + @CustomType.Setter public Builder neptune(@Nullable String neptune) { this.neptune = neptune; return this; } + @CustomType.Setter public Builder networkfirewall(@Nullable String networkfirewall) { this.networkfirewall = networkfirewall; return this; } + @CustomType.Setter public Builder networkmanager(@Nullable String networkmanager) { this.networkmanager = networkmanager; return this; } + @CustomType.Setter public Builder nimble(@Nullable String nimble) { this.nimble = nimble; return this; } + @CustomType.Setter public Builder nimblestudio(@Nullable String nimblestudio) { this.nimblestudio = nimblestudio; return this; } + @CustomType.Setter public Builder opensearch(@Nullable String opensearch) { this.opensearch = opensearch; return this; } + @CustomType.Setter public Builder opensearchservice(@Nullable String opensearchservice) { this.opensearchservice = opensearchservice; return this; } + @CustomType.Setter public Builder opsworks(@Nullable String opsworks) { this.opsworks = opsworks; return this; } + @CustomType.Setter public Builder opsworkscm(@Nullable String opsworkscm) { this.opsworkscm = opsworkscm; return this; } + @CustomType.Setter public Builder organizations(@Nullable String organizations) { this.organizations = organizations; return this; } + @CustomType.Setter public Builder outposts(@Nullable String outposts) { this.outposts = outposts; return this; } + @CustomType.Setter public Builder panorama(@Nullable String panorama) { this.panorama = panorama; return this; } + @CustomType.Setter public Builder personalize(@Nullable String personalize) { this.personalize = personalize; return this; } + @CustomType.Setter public Builder personalizeevents(@Nullable String personalizeevents) { this.personalizeevents = personalizeevents; return this; } + @CustomType.Setter public Builder personalizeruntime(@Nullable String personalizeruntime) { this.personalizeruntime = personalizeruntime; return this; } + @CustomType.Setter public Builder pi(@Nullable String pi) { this.pi = pi; return this; } + @CustomType.Setter public Builder pinpoint(@Nullable String pinpoint) { this.pinpoint = pinpoint; return this; } + @CustomType.Setter public Builder pinpointemail(@Nullable String pinpointemail) { this.pinpointemail = pinpointemail; return this; } + @CustomType.Setter public Builder pinpointsmsvoice(@Nullable String pinpointsmsvoice) { this.pinpointsmsvoice = pinpointsmsvoice; return this; } + @CustomType.Setter public Builder polly(@Nullable String polly) { this.polly = polly; return this; } + @CustomType.Setter public Builder pricing(@Nullable String pricing) { this.pricing = pricing; return this; } + @CustomType.Setter public Builder prometheus(@Nullable String prometheus) { this.prometheus = prometheus; return this; } + @CustomType.Setter public Builder prometheusservice(@Nullable String prometheusservice) { this.prometheusservice = prometheusservice; return this; } + @CustomType.Setter public Builder proton(@Nullable String proton) { this.proton = proton; return this; } + @CustomType.Setter public Builder qldb(@Nullable String qldb) { this.qldb = qldb; return this; } + @CustomType.Setter public Builder qldbsession(@Nullable String qldbsession) { this.qldbsession = qldbsession; return this; } + @CustomType.Setter public Builder quicksight(@Nullable String quicksight) { this.quicksight = quicksight; return this; } + @CustomType.Setter public Builder ram(@Nullable String ram) { this.ram = ram; return this; } + @CustomType.Setter public Builder rbin(@Nullable String rbin) { this.rbin = rbin; return this; } + @CustomType.Setter public Builder rds(@Nullable String rds) { this.rds = rds; return this; } + @CustomType.Setter public Builder rdsdata(@Nullable String rdsdata) { this.rdsdata = rdsdata; return this; } + @CustomType.Setter public Builder rdsdataservice(@Nullable String rdsdataservice) { this.rdsdataservice = rdsdataservice; return this; } + @CustomType.Setter public Builder recyclebin(@Nullable String recyclebin) { this.recyclebin = recyclebin; return this; } + @CustomType.Setter public Builder redshift(@Nullable String redshift) { this.redshift = redshift; return this; } + @CustomType.Setter public Builder redshiftdata(@Nullable String redshiftdata) { this.redshiftdata = redshiftdata; return this; } + @CustomType.Setter public Builder redshiftdataapiservice(@Nullable String redshiftdataapiservice) { this.redshiftdataapiservice = redshiftdataapiservice; return this; } + @CustomType.Setter public Builder redshiftserverless(@Nullable String redshiftserverless) { this.redshiftserverless = redshiftserverless; return this; } + @CustomType.Setter public Builder rekognition(@Nullable String rekognition) { this.rekognition = rekognition; return this; } + @CustomType.Setter public Builder resiliencehub(@Nullable String resiliencehub) { this.resiliencehub = resiliencehub; return this; } + @CustomType.Setter public Builder resourcegroups(@Nullable String resourcegroups) { this.resourcegroups = resourcegroups; return this; } + @CustomType.Setter public Builder resourcegroupstagging(@Nullable String resourcegroupstagging) { this.resourcegroupstagging = resourcegroupstagging; return this; } + @CustomType.Setter public Builder resourcegroupstaggingapi(@Nullable String resourcegroupstaggingapi) { this.resourcegroupstaggingapi = resourcegroupstaggingapi; return this; } + @CustomType.Setter public Builder robomaker(@Nullable String robomaker) { this.robomaker = robomaker; return this; } + @CustomType.Setter public Builder rolesanywhere(@Nullable String rolesanywhere) { this.rolesanywhere = rolesanywhere; return this; } + @CustomType.Setter public Builder route53(@Nullable String route53) { this.route53 = route53; return this; } + @CustomType.Setter public Builder route53domains(@Nullable String route53domains) { this.route53domains = route53domains; return this; } + @CustomType.Setter public Builder route53recoverycluster(@Nullable String route53recoverycluster) { this.route53recoverycluster = route53recoverycluster; return this; } + @CustomType.Setter public Builder route53recoverycontrolconfig(@Nullable String route53recoverycontrolconfig) { this.route53recoverycontrolconfig = route53recoverycontrolconfig; return this; } + @CustomType.Setter public Builder route53recoveryreadiness(@Nullable String route53recoveryreadiness) { this.route53recoveryreadiness = route53recoveryreadiness; return this; } + @CustomType.Setter public Builder route53resolver(@Nullable String route53resolver) { this.route53resolver = route53resolver; return this; } + @CustomType.Setter public Builder rum(@Nullable String rum) { this.rum = rum; return this; } + @CustomType.Setter public Builder s3(@Nullable String s3) { this.s3 = s3; return this; } + @CustomType.Setter public Builder s3api(@Nullable String s3api) { this.s3api = s3api; return this; } + @CustomType.Setter public Builder s3control(@Nullable String s3control) { this.s3control = s3control; return this; } + @CustomType.Setter public Builder s3outposts(@Nullable String s3outposts) { this.s3outposts = s3outposts; return this; } + @CustomType.Setter public Builder sagemaker(@Nullable String sagemaker) { this.sagemaker = sagemaker; return this; } + @CustomType.Setter public Builder sagemakera2iruntime(@Nullable String sagemakera2iruntime) { this.sagemakera2iruntime = sagemakera2iruntime; return this; } + @CustomType.Setter public Builder sagemakeredge(@Nullable String sagemakeredge) { this.sagemakeredge = sagemakeredge; return this; } + @CustomType.Setter public Builder sagemakeredgemanager(@Nullable String sagemakeredgemanager) { this.sagemakeredgemanager = sagemakeredgemanager; return this; } + @CustomType.Setter public Builder sagemakerfeaturestoreruntime(@Nullable String sagemakerfeaturestoreruntime) { this.sagemakerfeaturestoreruntime = sagemakerfeaturestoreruntime; return this; } + @CustomType.Setter public Builder sagemakerruntime(@Nullable String sagemakerruntime) { this.sagemakerruntime = sagemakerruntime; return this; } + @CustomType.Setter public Builder savingsplans(@Nullable String savingsplans) { this.savingsplans = savingsplans; return this; } + @CustomType.Setter public Builder schemas(@Nullable String schemas) { this.schemas = schemas; return this; } + @CustomType.Setter public Builder sdb(@Nullable String sdb) { this.sdb = sdb; return this; } + @CustomType.Setter public Builder secretsmanager(@Nullable String secretsmanager) { this.secretsmanager = secretsmanager; return this; } + @CustomType.Setter public Builder securityhub(@Nullable String securityhub) { this.securityhub = securityhub; return this; } + @CustomType.Setter public Builder serverlessapplicationrepository(@Nullable String serverlessapplicationrepository) { this.serverlessapplicationrepository = serverlessapplicationrepository; return this; } + @CustomType.Setter public Builder serverlessapprepo(@Nullable String serverlessapprepo) { this.serverlessapprepo = serverlessapprepo; return this; } + @CustomType.Setter public Builder serverlessrepo(@Nullable String serverlessrepo) { this.serverlessrepo = serverlessrepo; return this; } + @CustomType.Setter public Builder servicecatalog(@Nullable String servicecatalog) { this.servicecatalog = servicecatalog; return this; } + @CustomType.Setter public Builder servicecatalogappregistry(@Nullable String servicecatalogappregistry) { this.servicecatalogappregistry = servicecatalogappregistry; return this; } + @CustomType.Setter public Builder servicediscovery(@Nullable String servicediscovery) { this.servicediscovery = servicediscovery; return this; } + @CustomType.Setter public Builder servicequotas(@Nullable String servicequotas) { this.servicequotas = servicequotas; return this; } + @CustomType.Setter public Builder ses(@Nullable String ses) { this.ses = ses; return this; } + @CustomType.Setter public Builder sesv2(@Nullable String sesv2) { this.sesv2 = sesv2; return this; } + @CustomType.Setter public Builder sfn(@Nullable String sfn) { this.sfn = sfn; return this; } + @CustomType.Setter public Builder shield(@Nullable String shield) { this.shield = shield; return this; } + @CustomType.Setter public Builder signer(@Nullable String signer) { this.signer = signer; return this; } + @CustomType.Setter public Builder simpledb(@Nullable String simpledb) { this.simpledb = simpledb; return this; } + @CustomType.Setter public Builder sms(@Nullable String sms) { this.sms = sms; return this; } + @CustomType.Setter public Builder snowball(@Nullable String snowball) { this.snowball = snowball; return this; } + @CustomType.Setter public Builder snowdevicemanagement(@Nullable String snowdevicemanagement) { this.snowdevicemanagement = snowdevicemanagement; return this; } + @CustomType.Setter public Builder sns(@Nullable String sns) { this.sns = sns; return this; } + @CustomType.Setter public Builder sqs(@Nullable String sqs) { this.sqs = sqs; return this; } + @CustomType.Setter public Builder ssm(@Nullable String ssm) { this.ssm = ssm; return this; } + @CustomType.Setter public Builder ssmcontacts(@Nullable String ssmcontacts) { this.ssmcontacts = ssmcontacts; return this; } + @CustomType.Setter public Builder ssmincidents(@Nullable String ssmincidents) { this.ssmincidents = ssmincidents; return this; } + @CustomType.Setter public Builder sso(@Nullable String sso) { this.sso = sso; return this; } + @CustomType.Setter public Builder ssoadmin(@Nullable String ssoadmin) { this.ssoadmin = ssoadmin; return this; } + @CustomType.Setter public Builder ssooidc(@Nullable String ssooidc) { this.ssooidc = ssooidc; return this; } + @CustomType.Setter public Builder stepfunctions(@Nullable String stepfunctions) { this.stepfunctions = stepfunctions; return this; } + @CustomType.Setter public Builder storagegateway(@Nullable String storagegateway) { this.storagegateway = storagegateway; return this; } + @CustomType.Setter public Builder sts(@Nullable String sts) { this.sts = sts; return this; } + @CustomType.Setter public Builder support(@Nullable String support) { this.support = support; return this; } + @CustomType.Setter public Builder swf(@Nullable String swf) { this.swf = swf; return this; } + @CustomType.Setter public Builder synthetics(@Nullable String synthetics) { this.synthetics = synthetics; return this; } + @CustomType.Setter public Builder textract(@Nullable String textract) { this.textract = textract; return this; } + @CustomType.Setter public Builder timestreamquery(@Nullable String timestreamquery) { this.timestreamquery = timestreamquery; return this; } + @CustomType.Setter public Builder timestreamwrite(@Nullable String timestreamwrite) { this.timestreamwrite = timestreamwrite; return this; } + @CustomType.Setter public Builder transcribe(@Nullable String transcribe) { this.transcribe = transcribe; return this; } + @CustomType.Setter public Builder transcribeservice(@Nullable String transcribeservice) { this.transcribeservice = transcribeservice; return this; } + @CustomType.Setter public Builder transcribestreaming(@Nullable String transcribestreaming) { this.transcribestreaming = transcribestreaming; return this; } + @CustomType.Setter public Builder transcribestreamingservice(@Nullable String transcribestreamingservice) { this.transcribestreamingservice = transcribestreamingservice; return this; } + @CustomType.Setter public Builder transfer(@Nullable String transfer) { this.transfer = transfer; return this; } + @CustomType.Setter public Builder translate(@Nullable String translate) { this.translate = translate; return this; } + @CustomType.Setter public Builder voiceid(@Nullable String voiceid) { this.voiceid = voiceid; return this; } + @CustomType.Setter public Builder waf(@Nullable String waf) { this.waf = waf; return this; } + @CustomType.Setter public Builder wafregional(@Nullable String wafregional) { this.wafregional = wafregional; return this; } + @CustomType.Setter public Builder wafv2(@Nullable String wafv2) { this.wafv2 = wafv2; return this; } + @CustomType.Setter public Builder wellarchitected(@Nullable String wellarchitected) { this.wellarchitected = wellarchitected; return this; } + @CustomType.Setter public Builder wisdom(@Nullable String wisdom) { this.wisdom = wisdom; return this; } + @CustomType.Setter public Builder workdocs(@Nullable String workdocs) { this.workdocs = workdocs; return this; } + @CustomType.Setter public Builder worklink(@Nullable String worklink) { this.worklink = worklink; return this; } + @CustomType.Setter public Builder workmail(@Nullable String workmail) { this.workmail = workmail; return this; } + @CustomType.Setter public Builder workmailmessageflow(@Nullable String workmailmessageflow) { this.workmailmessageflow = workmailmessageflow; return this; } + @CustomType.Setter public Builder workspaces(@Nullable String workspaces) { this.workspaces = workspaces; return this; } + @CustomType.Setter public Builder workspacesweb(@Nullable String workspacesweb) { this.workspacesweb = workspacesweb; return this; } + @CustomType.Setter public Builder xray(@Nullable String xray) { this.xray = xray; return this; - } public Endpoints build() { - final var built = new Endpoints(); - - built.accessanalyzer = accessanalyzer; - built.account = account; - built.acm = acm; - built.acmpca = acmpca; - built.alexaforbusiness = alexaforbusiness; - built.amg = amg; - built.amp = amp; - built.amplify = amplify; - built.amplifybackend = amplifybackend; - built.amplifyuibuilder = amplifyuibuilder; - built.apigateway = apigateway; - built.apigatewaymanagementapi = apigatewaymanagementapi; - built.apigatewayv2 = apigatewayv2; - built.appautoscaling = appautoscaling; - built.appconfig = appconfig; - built.appconfigdata = appconfigdata; - built.appflow = appflow; - built.appintegrations = appintegrations; - built.appintegrationsservice = appintegrationsservice; - built.applicationautoscaling = applicationautoscaling; - built.applicationcostprofiler = applicationcostprofiler; - built.applicationdiscovery = applicationdiscovery; - built.applicationdiscoveryservice = applicationdiscoveryservice; - built.applicationinsights = applicationinsights; - built.appmesh = appmesh; - built.appregistry = appregistry; - built.apprunner = apprunner; - built.appstream = appstream; - built.appsync = appsync; - built.athena = athena; - built.auditmanager = auditmanager; - built.augmentedairuntime = augmentedairuntime; - built.autoscaling = autoscaling; - built.autoscalingplans = autoscalingplans; - built.backup = backup; - built.backupgateway = backupgateway; - built.batch = batch; - built.beanstalk = beanstalk; - built.billingconductor = billingconductor; - built.braket = braket; - built.budgets = budgets; - built.ce = ce; - built.chime = chime; - built.chimesdkidentity = chimesdkidentity; - built.chimesdkmeetings = chimesdkmeetings; - built.chimesdkmessaging = chimesdkmessaging; - built.cloud9 = cloud9; - built.cloudcontrol = cloudcontrol; - built.cloudcontrolapi = cloudcontrolapi; - built.clouddirectory = clouddirectory; - built.cloudformation = cloudformation; - built.cloudfront = cloudfront; - built.cloudhsm = cloudhsm; - built.cloudhsmv2 = cloudhsmv2; - built.cloudsearch = cloudsearch; - built.cloudsearchdomain = cloudsearchdomain; - built.cloudtrail = cloudtrail; - built.cloudwatch = cloudwatch; - built.cloudwatchevents = cloudwatchevents; - built.cloudwatchevidently = cloudwatchevidently; - built.cloudwatchlog = cloudwatchlog; - built.cloudwatchlogs = cloudwatchlogs; - built.cloudwatchrum = cloudwatchrum; - built.codeartifact = codeartifact; - built.codebuild = codebuild; - built.codecommit = codecommit; - built.codedeploy = codedeploy; - built.codeguruprofiler = codeguruprofiler; - built.codegurureviewer = codegurureviewer; - built.codepipeline = codepipeline; - built.codestar = codestar; - built.codestarconnections = codestarconnections; - built.codestarnotifications = codestarnotifications; - built.cognitoidentity = cognitoidentity; - built.cognitoidentityprovider = cognitoidentityprovider; - built.cognitoidp = cognitoidp; - built.cognitosync = cognitosync; - built.comprehend = comprehend; - built.comprehendmedical = comprehendmedical; - built.computeoptimizer = computeoptimizer; - built.config = config; - built.configservice = configservice; - built.connect = connect; - built.connectcontactlens = connectcontactlens; - built.connectparticipant = connectparticipant; - built.connectwisdomservice = connectwisdomservice; - built.costandusagereportservice = costandusagereportservice; - built.costexplorer = costexplorer; - built.cur = cur; - built.customerprofiles = customerprofiles; - built.databasemigration = databasemigration; - built.databasemigrationservice = databasemigrationservice; - built.databrew = databrew; - built.dataexchange = dataexchange; - built.datapipeline = datapipeline; - built.datasync = datasync; - built.dax = dax; - built.deploy = deploy; - built.detective = detective; - built.devicefarm = devicefarm; - built.devopsguru = devopsguru; - built.directconnect = directconnect; - built.directoryservice = directoryservice; - built.discovery = discovery; - built.dlm = dlm; - built.dms = dms; - built.docdb = docdb; - built.drs = drs; - built.ds = ds; - built.dynamodb = dynamodb; - built.dynamodbstreams = dynamodbstreams; - built.ebs = ebs; - built.ec2 = ec2; - built.ec2instanceconnect = ec2instanceconnect; - built.ecr = ecr; - built.ecrpublic = ecrpublic; - built.ecs = ecs; - built.efs = efs; - built.eks = eks; - built.elasticache = elasticache; - built.elasticbeanstalk = elasticbeanstalk; - built.elasticinference = elasticinference; - built.elasticloadbalancing = elasticloadbalancing; - built.elasticloadbalancingv2 = elasticloadbalancingv2; - built.elasticsearch = elasticsearch; - built.elasticsearchservice = elasticsearchservice; - built.elastictranscoder = elastictranscoder; - built.elb = elb; - built.elbv2 = elbv2; - built.emr = emr; - built.emrcontainers = emrcontainers; - built.emrserverless = emrserverless; - built.es = es; - built.eventbridge = eventbridge; - built.events = events; - built.evidently = evidently; - built.finspace = finspace; - built.finspacedata = finspacedata; - built.firehose = firehose; - built.fis = fis; - built.fms = fms; - built.forecast = forecast; - built.forecastquery = forecastquery; - built.forecastqueryservice = forecastqueryservice; - built.forecastservice = forecastservice; - built.frauddetector = frauddetector; - built.fsx = fsx; - built.gamelift = gamelift; - built.glacier = glacier; - built.globalaccelerator = globalaccelerator; - built.glue = glue; - built.gluedatabrew = gluedatabrew; - built.grafana = grafana; - built.greengrass = greengrass; - built.greengrassv2 = greengrassv2; - built.groundstation = groundstation; - built.guardduty = guardduty; - built.health = health; - built.healthlake = healthlake; - built.honeycode = honeycode; - built.iam = iam; - built.identitystore = identitystore; - built.imagebuilder = imagebuilder; - built.inspector = inspector; - built.inspector2 = inspector2; - built.iot = iot; - built.iot1clickdevices = iot1clickdevices; - built.iot1clickdevicesservice = iot1clickdevicesservice; - built.iot1clickprojects = iot1clickprojects; - built.iotanalytics = iotanalytics; - built.iotdata = iotdata; - built.iotdataplane = iotdataplane; - built.iotdeviceadvisor = iotdeviceadvisor; - built.iotevents = iotevents; - built.ioteventsdata = ioteventsdata; - built.iotfleethub = iotfleethub; - built.iotjobsdata = iotjobsdata; - built.iotjobsdataplane = iotjobsdataplane; - built.iotsecuretunneling = iotsecuretunneling; - built.iotsitewise = iotsitewise; - built.iotthingsgraph = iotthingsgraph; - built.iottwinmaker = iottwinmaker; - built.iotwireless = iotwireless; - built.ivs = ivs; - built.kafka = kafka; - built.kafkaconnect = kafkaconnect; - built.kendra = kendra; - built.keyspaces = keyspaces; - built.kinesis = kinesis; - built.kinesisanalytics = kinesisanalytics; - built.kinesisanalyticsv2 = kinesisanalyticsv2; - built.kinesisvideo = kinesisvideo; - built.kinesisvideoarchivedmedia = kinesisvideoarchivedmedia; - built.kinesisvideomedia = kinesisvideomedia; - built.kinesisvideosignaling = kinesisvideosignaling; - built.kinesisvideosignalingchannels = kinesisvideosignalingchannels; - built.kms = kms; - built.lakeformation = lakeformation; - built.lambda = lambda; - built.lex = lex; - built.lexmodelbuilding = lexmodelbuilding; - built.lexmodelbuildingservice = lexmodelbuildingservice; - built.lexmodels = lexmodels; - built.lexmodelsv2 = lexmodelsv2; - built.lexruntime = lexruntime; - built.lexruntimeservice = lexruntimeservice; - built.lexruntimev2 = lexruntimev2; - built.lexv2models = lexv2models; - built.lexv2runtime = lexv2runtime; - built.licensemanager = licensemanager; - built.lightsail = lightsail; - built.location = location; - built.locationservice = locationservice; - built.logs = logs; - built.lookoutequipment = lookoutequipment; - built.lookoutforvision = lookoutforvision; - built.lookoutmetrics = lookoutmetrics; - built.lookoutvision = lookoutvision; - built.machinelearning = machinelearning; - built.macie = macie; - built.macie2 = macie2; - built.managedblockchain = managedblockchain; - built.managedgrafana = managedgrafana; - built.marketplacecatalog = marketplacecatalog; - built.marketplacecommerceanalytics = marketplacecommerceanalytics; - built.marketplaceentitlement = marketplaceentitlement; - built.marketplaceentitlementservice = marketplaceentitlementservice; - built.marketplacemetering = marketplacemetering; - built.mediaconnect = mediaconnect; - built.mediaconvert = mediaconvert; - built.medialive = medialive; - built.mediapackage = mediapackage; - built.mediapackagevod = mediapackagevod; - built.mediastore = mediastore; - built.mediastoredata = mediastoredata; - built.mediatailor = mediatailor; - built.memorydb = memorydb; - built.meteringmarketplace = meteringmarketplace; - built.mgh = mgh; - built.mgn = mgn; - built.migrationhub = migrationhub; - built.migrationhubconfig = migrationhubconfig; - built.migrationhubrefactorspaces = migrationhubrefactorspaces; - built.migrationhubstrategy = migrationhubstrategy; - built.migrationhubstrategyrecommendations = migrationhubstrategyrecommendations; - built.mobile = mobile; - built.mq = mq; - built.msk = msk; - built.mturk = mturk; - built.mwaa = mwaa; - built.neptune = neptune; - built.networkfirewall = networkfirewall; - built.networkmanager = networkmanager; - built.nimble = nimble; - built.nimblestudio = nimblestudio; - built.opensearch = opensearch; - built.opensearchservice = opensearchservice; - built.opsworks = opsworks; - built.opsworkscm = opsworkscm; - built.organizations = organizations; - built.outposts = outposts; - built.panorama = panorama; - built.personalize = personalize; - built.personalizeevents = personalizeevents; - built.personalizeruntime = personalizeruntime; - built.pi = pi; - built.pinpoint = pinpoint; - built.pinpointemail = pinpointemail; - built.pinpointsmsvoice = pinpointsmsvoice; - built.polly = polly; - built.pricing = pricing; - built.prometheus = prometheus; - built.prometheusservice = prometheusservice; - built.proton = proton; - built.qldb = qldb; - built.qldbsession = qldbsession; - built.quicksight = quicksight; - built.ram = ram; - built.rbin = rbin; - built.rds = rds; - built.rdsdata = rdsdata; - built.rdsdataservice = rdsdataservice; - built.recyclebin = recyclebin; - built.redshift = redshift; - built.redshiftdata = redshiftdata; - built.redshiftdataapiservice = redshiftdataapiservice; - built.redshiftserverless = redshiftserverless; - built.rekognition = rekognition; - built.resiliencehub = resiliencehub; - built.resourcegroups = resourcegroups; - built.resourcegroupstagging = resourcegroupstagging; - built.resourcegroupstaggingapi = resourcegroupstaggingapi; - built.robomaker = robomaker; - built.rolesanywhere = rolesanywhere; - built.route53 = route53; - built.route53domains = route53domains; - built.route53recoverycluster = route53recoverycluster; - built.route53recoverycontrolconfig = route53recoverycontrolconfig; - built.route53recoveryreadiness = route53recoveryreadiness; - built.route53resolver = route53resolver; - built.rum = rum; - built.s3 = s3; - built.s3api = s3api; - built.s3control = s3control; - built.s3outposts = s3outposts; - built.sagemaker = sagemaker; - built.sagemakera2iruntime = sagemakera2iruntime; - built.sagemakeredge = sagemakeredge; - built.sagemakeredgemanager = sagemakeredgemanager; - built.sagemakerfeaturestoreruntime = sagemakerfeaturestoreruntime; - built.sagemakerruntime = sagemakerruntime; - built.savingsplans = savingsplans; - built.schemas = schemas; - built.sdb = sdb; - built.secretsmanager = secretsmanager; - built.securityhub = securityhub; - built.serverlessapplicationrepository = serverlessapplicationrepository; - built.serverlessapprepo = serverlessapprepo; - built.serverlessrepo = serverlessrepo; - built.servicecatalog = servicecatalog; - built.servicecatalogappregistry = servicecatalogappregistry; - built.servicediscovery = servicediscovery; - built.servicequotas = servicequotas; - built.ses = ses; - built.sesv2 = sesv2; - built.sfn = sfn; - built.shield = shield; - built.signer = signer; - built.simpledb = simpledb; - built.sms = sms; - built.snowball = snowball; - built.snowdevicemanagement = snowdevicemanagement; - built.sns = sns; - built.sqs = sqs; - built.ssm = ssm; - built.ssmcontacts = ssmcontacts; - built.ssmincidents = ssmincidents; - built.sso = sso; - built.ssoadmin = ssoadmin; - built.ssooidc = ssooidc; - built.stepfunctions = stepfunctions; - built.storagegateway = storagegateway; - built.sts = sts; - built.support = support; - built.swf = swf; - built.synthetics = synthetics; - built.textract = textract; - built.timestreamquery = timestreamquery; - built.timestreamwrite = timestreamwrite; - built.transcribe = transcribe; - built.transcribeservice = transcribeservice; - built.transcribestreaming = transcribestreaming; - built.transcribestreamingservice = transcribestreamingservice; - built.transfer = transfer; - built.translate = translate; - built.voiceid = voiceid; - built.waf = waf; - built.wafregional = wafregional; - built.wafv2 = wafv2; - built.wellarchitected = wellarchitected; - built.wisdom = wisdom; - built.workdocs = workdocs; - built.worklink = worklink; - built.workmail = workmail; - built.workmailmessageflow = workmailmessageflow; - built.workspaces = workspaces; - built.workspacesweb = workspacesweb; - built.xray = xray; - return built; + } + public Endpoints build() { + final var o = new Endpoints(); + o.accessanalyzer = accessanalyzer; + o.account = account; + o.acm = acm; + o.acmpca = acmpca; + o.alexaforbusiness = alexaforbusiness; + o.amg = amg; + o.amp = amp; + o.amplify = amplify; + o.amplifybackend = amplifybackend; + o.amplifyuibuilder = amplifyuibuilder; + o.apigateway = apigateway; + o.apigatewaymanagementapi = apigatewaymanagementapi; + o.apigatewayv2 = apigatewayv2; + o.appautoscaling = appautoscaling; + o.appconfig = appconfig; + o.appconfigdata = appconfigdata; + o.appflow = appflow; + o.appintegrations = appintegrations; + o.appintegrationsservice = appintegrationsservice; + o.applicationautoscaling = applicationautoscaling; + o.applicationcostprofiler = applicationcostprofiler; + o.applicationdiscovery = applicationdiscovery; + o.applicationdiscoveryservice = applicationdiscoveryservice; + o.applicationinsights = applicationinsights; + o.appmesh = appmesh; + o.appregistry = appregistry; + o.apprunner = apprunner; + o.appstream = appstream; + o.appsync = appsync; + o.athena = athena; + o.auditmanager = auditmanager; + o.augmentedairuntime = augmentedairuntime; + o.autoscaling = autoscaling; + o.autoscalingplans = autoscalingplans; + o.backup = backup; + o.backupgateway = backupgateway; + o.batch = batch; + o.beanstalk = beanstalk; + o.billingconductor = billingconductor; + o.braket = braket; + o.budgets = budgets; + o.ce = ce; + o.chime = chime; + o.chimesdkidentity = chimesdkidentity; + o.chimesdkmeetings = chimesdkmeetings; + o.chimesdkmessaging = chimesdkmessaging; + o.cloud9 = cloud9; + o.cloudcontrol = cloudcontrol; + o.cloudcontrolapi = cloudcontrolapi; + o.clouddirectory = clouddirectory; + o.cloudformation = cloudformation; + o.cloudfront = cloudfront; + o.cloudhsm = cloudhsm; + o.cloudhsmv2 = cloudhsmv2; + o.cloudsearch = cloudsearch; + o.cloudsearchdomain = cloudsearchdomain; + o.cloudtrail = cloudtrail; + o.cloudwatch = cloudwatch; + o.cloudwatchevents = cloudwatchevents; + o.cloudwatchevidently = cloudwatchevidently; + o.cloudwatchlog = cloudwatchlog; + o.cloudwatchlogs = cloudwatchlogs; + o.cloudwatchrum = cloudwatchrum; + o.codeartifact = codeartifact; + o.codebuild = codebuild; + o.codecommit = codecommit; + o.codedeploy = codedeploy; + o.codeguruprofiler = codeguruprofiler; + o.codegurureviewer = codegurureviewer; + o.codepipeline = codepipeline; + o.codestar = codestar; + o.codestarconnections = codestarconnections; + o.codestarnotifications = codestarnotifications; + o.cognitoidentity = cognitoidentity; + o.cognitoidentityprovider = cognitoidentityprovider; + o.cognitoidp = cognitoidp; + o.cognitosync = cognitosync; + o.comprehend = comprehend; + o.comprehendmedical = comprehendmedical; + o.computeoptimizer = computeoptimizer; + o.config = config; + o.configservice = configservice; + o.connect = connect; + o.connectcontactlens = connectcontactlens; + o.connectparticipant = connectparticipant; + o.connectwisdomservice = connectwisdomservice; + o.costandusagereportservice = costandusagereportservice; + o.costexplorer = costexplorer; + o.cur = cur; + o.customerprofiles = customerprofiles; + o.databasemigration = databasemigration; + o.databasemigrationservice = databasemigrationservice; + o.databrew = databrew; + o.dataexchange = dataexchange; + o.datapipeline = datapipeline; + o.datasync = datasync; + o.dax = dax; + o.deploy = deploy; + o.detective = detective; + o.devicefarm = devicefarm; + o.devopsguru = devopsguru; + o.directconnect = directconnect; + o.directoryservice = directoryservice; + o.discovery = discovery; + o.dlm = dlm; + o.dms = dms; + o.docdb = docdb; + o.drs = drs; + o.ds = ds; + o.dynamodb = dynamodb; + o.dynamodbstreams = dynamodbstreams; + o.ebs = ebs; + o.ec2 = ec2; + o.ec2instanceconnect = ec2instanceconnect; + o.ecr = ecr; + o.ecrpublic = ecrpublic; + o.ecs = ecs; + o.efs = efs; + o.eks = eks; + o.elasticache = elasticache; + o.elasticbeanstalk = elasticbeanstalk; + o.elasticinference = elasticinference; + o.elasticloadbalancing = elasticloadbalancing; + o.elasticloadbalancingv2 = elasticloadbalancingv2; + o.elasticsearch = elasticsearch; + o.elasticsearchservice = elasticsearchservice; + o.elastictranscoder = elastictranscoder; + o.elb = elb; + o.elbv2 = elbv2; + o.emr = emr; + o.emrcontainers = emrcontainers; + o.emrserverless = emrserverless; + o.es = es; + o.eventbridge = eventbridge; + o.events = events; + o.evidently = evidently; + o.finspace = finspace; + o.finspacedata = finspacedata; + o.firehose = firehose; + o.fis = fis; + o.fms = fms; + o.forecast = forecast; + o.forecastquery = forecastquery; + o.forecastqueryservice = forecastqueryservice; + o.forecastservice = forecastservice; + o.frauddetector = frauddetector; + o.fsx = fsx; + o.gamelift = gamelift; + o.glacier = glacier; + o.globalaccelerator = globalaccelerator; + o.glue = glue; + o.gluedatabrew = gluedatabrew; + o.grafana = grafana; + o.greengrass = greengrass; + o.greengrassv2 = greengrassv2; + o.groundstation = groundstation; + o.guardduty = guardduty; + o.health = health; + o.healthlake = healthlake; + o.honeycode = honeycode; + o.iam = iam; + o.identitystore = identitystore; + o.imagebuilder = imagebuilder; + o.inspector = inspector; + o.inspector2 = inspector2; + o.iot = iot; + o.iot1clickdevices = iot1clickdevices; + o.iot1clickdevicesservice = iot1clickdevicesservice; + o.iot1clickprojects = iot1clickprojects; + o.iotanalytics = iotanalytics; + o.iotdata = iotdata; + o.iotdataplane = iotdataplane; + o.iotdeviceadvisor = iotdeviceadvisor; + o.iotevents = iotevents; + o.ioteventsdata = ioteventsdata; + o.iotfleethub = iotfleethub; + o.iotjobsdata = iotjobsdata; + o.iotjobsdataplane = iotjobsdataplane; + o.iotsecuretunneling = iotsecuretunneling; + o.iotsitewise = iotsitewise; + o.iotthingsgraph = iotthingsgraph; + o.iottwinmaker = iottwinmaker; + o.iotwireless = iotwireless; + o.ivs = ivs; + o.kafka = kafka; + o.kafkaconnect = kafkaconnect; + o.kendra = kendra; + o.keyspaces = keyspaces; + o.kinesis = kinesis; + o.kinesisanalytics = kinesisanalytics; + o.kinesisanalyticsv2 = kinesisanalyticsv2; + o.kinesisvideo = kinesisvideo; + o.kinesisvideoarchivedmedia = kinesisvideoarchivedmedia; + o.kinesisvideomedia = kinesisvideomedia; + o.kinesisvideosignaling = kinesisvideosignaling; + o.kinesisvideosignalingchannels = kinesisvideosignalingchannels; + o.kms = kms; + o.lakeformation = lakeformation; + o.lambda = lambda; + o.lex = lex; + o.lexmodelbuilding = lexmodelbuilding; + o.lexmodelbuildingservice = lexmodelbuildingservice; + o.lexmodels = lexmodels; + o.lexmodelsv2 = lexmodelsv2; + o.lexruntime = lexruntime; + o.lexruntimeservice = lexruntimeservice; + o.lexruntimev2 = lexruntimev2; + o.lexv2models = lexv2models; + o.lexv2runtime = lexv2runtime; + o.licensemanager = licensemanager; + o.lightsail = lightsail; + o.location = location; + o.locationservice = locationservice; + o.logs = logs; + o.lookoutequipment = lookoutequipment; + o.lookoutforvision = lookoutforvision; + o.lookoutmetrics = lookoutmetrics; + o.lookoutvision = lookoutvision; + o.machinelearning = machinelearning; + o.macie = macie; + o.macie2 = macie2; + o.managedblockchain = managedblockchain; + o.managedgrafana = managedgrafana; + o.marketplacecatalog = marketplacecatalog; + o.marketplacecommerceanalytics = marketplacecommerceanalytics; + o.marketplaceentitlement = marketplaceentitlement; + o.marketplaceentitlementservice = marketplaceentitlementservice; + o.marketplacemetering = marketplacemetering; + o.mediaconnect = mediaconnect; + o.mediaconvert = mediaconvert; + o.medialive = medialive; + o.mediapackage = mediapackage; + o.mediapackagevod = mediapackagevod; + o.mediastore = mediastore; + o.mediastoredata = mediastoredata; + o.mediatailor = mediatailor; + o.memorydb = memorydb; + o.meteringmarketplace = meteringmarketplace; + o.mgh = mgh; + o.mgn = mgn; + o.migrationhub = migrationhub; + o.migrationhubconfig = migrationhubconfig; + o.migrationhubrefactorspaces = migrationhubrefactorspaces; + o.migrationhubstrategy = migrationhubstrategy; + o.migrationhubstrategyrecommendations = migrationhubstrategyrecommendations; + o.mobile = mobile; + o.mq = mq; + o.msk = msk; + o.mturk = mturk; + o.mwaa = mwaa; + o.neptune = neptune; + o.networkfirewall = networkfirewall; + o.networkmanager = networkmanager; + o.nimble = nimble; + o.nimblestudio = nimblestudio; + o.opensearch = opensearch; + o.opensearchservice = opensearchservice; + o.opsworks = opsworks; + o.opsworkscm = opsworkscm; + o.organizations = organizations; + o.outposts = outposts; + o.panorama = panorama; + o.personalize = personalize; + o.personalizeevents = personalizeevents; + o.personalizeruntime = personalizeruntime; + o.pi = pi; + o.pinpoint = pinpoint; + o.pinpointemail = pinpointemail; + o.pinpointsmsvoice = pinpointsmsvoice; + o.polly = polly; + o.pricing = pricing; + o.prometheus = prometheus; + o.prometheusservice = prometheusservice; + o.proton = proton; + o.qldb = qldb; + o.qldbsession = qldbsession; + o.quicksight = quicksight; + o.ram = ram; + o.rbin = rbin; + o.rds = rds; + o.rdsdata = rdsdata; + o.rdsdataservice = rdsdataservice; + o.recyclebin = recyclebin; + o.redshift = redshift; + o.redshiftdata = redshiftdata; + o.redshiftdataapiservice = redshiftdataapiservice; + o.redshiftserverless = redshiftserverless; + o.rekognition = rekognition; + o.resiliencehub = resiliencehub; + o.resourcegroups = resourcegroups; + o.resourcegroupstagging = resourcegroupstagging; + o.resourcegroupstaggingapi = resourcegroupstaggingapi; + o.robomaker = robomaker; + o.rolesanywhere = rolesanywhere; + o.route53 = route53; + o.route53domains = route53domains; + o.route53recoverycluster = route53recoverycluster; + o.route53recoverycontrolconfig = route53recoverycontrolconfig; + o.route53recoveryreadiness = route53recoveryreadiness; + o.route53resolver = route53resolver; + o.rum = rum; + o.s3 = s3; + o.s3api = s3api; + o.s3control = s3control; + o.s3outposts = s3outposts; + o.sagemaker = sagemaker; + o.sagemakera2iruntime = sagemakera2iruntime; + o.sagemakeredge = sagemakeredge; + o.sagemakeredgemanager = sagemakeredgemanager; + o.sagemakerfeaturestoreruntime = sagemakerfeaturestoreruntime; + o.sagemakerruntime = sagemakerruntime; + o.savingsplans = savingsplans; + o.schemas = schemas; + o.sdb = sdb; + o.secretsmanager = secretsmanager; + o.securityhub = securityhub; + o.serverlessapplicationrepository = serverlessapplicationrepository; + o.serverlessapprepo = serverlessapprepo; + o.serverlessrepo = serverlessrepo; + o.servicecatalog = servicecatalog; + o.servicecatalogappregistry = servicecatalogappregistry; + o.servicediscovery = servicediscovery; + o.servicequotas = servicequotas; + o.ses = ses; + o.sesv2 = sesv2; + o.sfn = sfn; + o.shield = shield; + o.signer = signer; + o.simpledb = simpledb; + o.sms = sms; + o.snowball = snowball; + o.snowdevicemanagement = snowdevicemanagement; + o.sns = sns; + o.sqs = sqs; + o.ssm = ssm; + o.ssmcontacts = ssmcontacts; + o.ssmincidents = ssmincidents; + o.sso = sso; + o.ssoadmin = ssoadmin; + o.ssooidc = ssooidc; + o.stepfunctions = stepfunctions; + o.storagegateway = storagegateway; + o.sts = sts; + o.support = support; + o.swf = swf; + o.synthetics = synthetics; + o.textract = textract; + o.timestreamquery = timestreamquery; + o.timestreamwrite = timestreamwrite; + o.transcribe = transcribe; + o.transcribeservice = transcribeservice; + o.transcribestreaming = transcribestreaming; + o.transcribestreamingservice = transcribestreamingservice; + o.transfer = transfer; + o.translate = translate; + o.voiceid = voiceid; + o.waf = waf; + o.wafregional = wafregional; + o.wafv2 = wafv2; + o.wellarchitected = wellarchitected; + o.wisdom = wisdom; + o.workdocs = workdocs; + o.worklink = worklink; + o.workmail = workmail; + o.workmailmessageflow = workmailmessageflow; + o.workspaces = workspaces; + o.workspacesweb = workspacesweb; + o.xray = xray; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/config/inputs/IgnoreTags.java b/sdk/java/src/main/java/com/pulumi/aws/config/inputs/IgnoreTags.java index 26700328784..ee324b05c9f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/config/inputs/IgnoreTags.java +++ b/sdk/java/src/main/java/com/pulumi/aws/config/inputs/IgnoreTags.java @@ -11,17 +11,10 @@ @CustomType public final class IgnoreTags { - private final @Nullable List keyPrefixes; - private final @Nullable List keys; - - @CustomType.Constructor - private IgnoreTags( - @CustomType.Parameter("keyPrefixes") @Nullable List keyPrefixes, - @CustomType.Parameter("keys") @Nullable List keys) { - this.keyPrefixes = keyPrefixes; - this.keys = keys; - } + private @Nullable List keyPrefixes; + private @Nullable List keys; + private IgnoreTags() {} public List keyPrefixes() { return this.keyPrefixes == null ? List.of() : this.keyPrefixes; } @@ -36,21 +29,18 @@ public static Builder builder() { public static Builder builder(IgnoreTags defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List keyPrefixes; private @Nullable List keys; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IgnoreTags defaults) { Objects.requireNonNull(defaults); this.keyPrefixes = defaults.keyPrefixes; this.keys = defaults.keys; } + @CustomType.Setter public Builder keyPrefixes(@Nullable List keyPrefixes) { this.keyPrefixes = keyPrefixes; return this; @@ -58,14 +48,19 @@ public Builder keyPrefixes(@Nullable List keyPrefixes) { public Builder keyPrefixes(String... keyPrefixes) { return keyPrefixes(List.of(keyPrefixes)); } + @CustomType.Setter public Builder keys(@Nullable List keys) { this.keys = keys; return this; } public Builder keys(String... keys) { return keys(List.of(keys)); - } public IgnoreTags build() { - return new IgnoreTags(keyPrefixes, keys); + } + public IgnoreTags build() { + final var o = new IgnoreTags(); + o.keyPrefixes = keyPrefixes; + o.keys = keys; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/BotAssociationLexBot.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/BotAssociationLexBot.java index e9dd976cdca..bb8ceb67bb5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/BotAssociationLexBot.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/BotAssociationLexBot.java @@ -15,21 +15,14 @@ public final class BotAssociationLexBot { * @return The Region that the Amazon Lex (V1) bot was created in. Defaults to current region. * */ - private final @Nullable String lexRegion; + private @Nullable String lexRegion; /** * @return The name of the Amazon Lex (V1) bot. * */ - private final String name; - - @CustomType.Constructor - private BotAssociationLexBot( - @CustomType.Parameter("lexRegion") @Nullable String lexRegion, - @CustomType.Parameter("name") String name) { - this.lexRegion = lexRegion; - this.name = name; - } + private String name; + private BotAssociationLexBot() {} /** * @return The Region that the Amazon Lex (V1) bot was created in. Defaults to current region. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(BotAssociationLexBot defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String lexRegion; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BotAssociationLexBot defaults) { Objects.requireNonNull(defaults); this.lexRegion = defaults.lexRegion; this.name = defaults.name; } + @CustomType.Setter public Builder lexRegion(@Nullable String lexRegion) { this.lexRegion = lexRegion; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public BotAssociationLexBot build() { - return new BotAssociationLexBot(lexRegion, name); + } + public BotAssociationLexBot build() { + final var o = new BotAssociationLexBot(); + o.lexRegion = lexRegion; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetBotAssociationLexBot.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetBotAssociationLexBot.java index 4daec27b3bd..82649ba6562 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetBotAssociationLexBot.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetBotAssociationLexBot.java @@ -13,21 +13,14 @@ public final class GetBotAssociationLexBot { * @return The Region that the Amazon Lex (V1) bot was created in. * */ - private final String lexRegion; + private String lexRegion; /** * @return The name of the Amazon Lex (V1) bot. * */ - private final String name; - - @CustomType.Constructor - private GetBotAssociationLexBot( - @CustomType.Parameter("lexRegion") String lexRegion, - @CustomType.Parameter("name") String name) { - this.lexRegion = lexRegion; - this.name = name; - } + private String name; + private GetBotAssociationLexBot() {} /** * @return The Region that the Amazon Lex (V1) bot was created in. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetBotAssociationLexBot defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String lexRegion; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBotAssociationLexBot defaults) { Objects.requireNonNull(defaults); this.lexRegion = defaults.lexRegion; this.name = defaults.name; } + @CustomType.Setter public Builder lexRegion(String lexRegion) { this.lexRegion = Objects.requireNonNull(lexRegion); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetBotAssociationLexBot build() { - return new GetBotAssociationLexBot(lexRegion, name); + } + public GetBotAssociationLexBot build() { + final var o = new GetBotAssociationLexBot(); + o.lexRegion = lexRegion; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetBotAssociationResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetBotAssociationResult.java index 8adbbf30ef3..c04ad22737f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetBotAssociationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetBotAssociationResult.java @@ -14,20 +14,11 @@ public final class GetBotAssociationResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceId; - private final GetBotAssociationLexBot lexBot; - - @CustomType.Constructor - private GetBotAssociationResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("lexBot") GetBotAssociationLexBot lexBot) { - this.id = id; - this.instanceId = instanceId; - this.lexBot = lexBot; - } + private String id; + private String instanceId; + private GetBotAssociationLexBot lexBot; + private GetBotAssociationResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -49,16 +40,12 @@ public static Builder builder() { public static Builder builder(GetBotAssociationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String instanceId; private GetBotAssociationLexBot lexBot; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBotAssociationResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -66,19 +53,27 @@ public Builder(GetBotAssociationResult defaults) { this.lexBot = defaults.lexBot; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder lexBot(GetBotAssociationLexBot lexBot) { this.lexBot = Objects.requireNonNull(lexBot); return this; - } public GetBotAssociationResult build() { - return new GetBotAssociationResult(id, instanceId, lexBot); + } + public GetBotAssociationResult build() { + final var o = new GetBotAssociationResult(); + o.id = id; + o.instanceId = instanceId; + o.lexBot = lexBot; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetContactFlowModuleResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetContactFlowModuleResult.java index 16db2fa62f0..4f6501d53a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetContactFlowModuleResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetContactFlowModuleResult.java @@ -14,65 +14,42 @@ public final class GetContactFlowModuleResult { * @return The Amazon Resource Name (ARN) of the Contact Flow Module. * */ - private final String arn; - private final String contactFlowModuleId; + private String arn; + private String contactFlowModuleId; /** * @return Specifies the logic of the Contact Flow Module. * */ - private final String content; + private String content; /** * @return Specifies the description of the Contact Flow Module. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceId; - private final String name; + private String id; + private String instanceId; + private String name; /** * @return Specifies the type of Contact Flow Module Module. Values are either `ACTIVE` or `ARCHIVED`. * */ - private final String state; + private String state; /** * @return The status of the Contact Flow Module Module. Values are either `PUBLISHED` or `SAVED`. * */ - private final String status; + private String status; /** * @return A map of tags to assign to the Contact Flow Module. * */ - private final Map tags; - - @CustomType.Constructor - private GetContactFlowModuleResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("contactFlowModuleId") String contactFlowModuleId, - @CustomType.Parameter("content") String content, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.contactFlowModuleId = contactFlowModuleId; - this.content = content; - this.description = description; - this.id = id; - this.instanceId = instanceId; - this.name = name; - this.state = state; - this.status = status; - this.tags = tags; - } + private Map tags; + private GetContactFlowModuleResult() {} /** * @return The Amazon Resource Name (ARN) of the Contact Flow Module. * @@ -139,7 +116,7 @@ public static Builder builder() { public static Builder builder(GetContactFlowModuleResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String contactFlowModuleId; @@ -151,11 +128,7 @@ public static final class Builder { private String state; private String status; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetContactFlowModuleResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -170,47 +143,69 @@ public Builder(GetContactFlowModuleResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder contactFlowModuleId(String contactFlowModuleId) { this.contactFlowModuleId = Objects.requireNonNull(contactFlowModuleId); return this; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetContactFlowModuleResult build() { - return new GetContactFlowModuleResult(arn, contactFlowModuleId, content, description, id, instanceId, name, state, status, tags); + } + public GetContactFlowModuleResult build() { + final var o = new GetContactFlowModuleResult(); + o.arn = arn; + o.contactFlowModuleId = contactFlowModuleId; + o.content = content; + o.description = description; + o.id = id; + o.instanceId = instanceId; + o.name = name; + o.state = state; + o.status = status; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetContactFlowResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetContactFlowResult.java index c09849716b5..cf345cc4c1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetContactFlowResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetContactFlowResult.java @@ -16,58 +16,37 @@ public final class GetContactFlowResult { * @return The Amazon Resource Name (ARN) of the Contact Flow. * */ - private final String arn; - private final String contactFlowId; + private String arn; + private String contactFlowId; /** * @return Specifies the logic of the Contact Flow. * */ - private final String content; + private String content; /** * @return Specifies the description of the Contact Flow. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceId; - private final String name; + private String id; + private String instanceId; + private String name; /** * @return A the map of tags to assign to the Contact Flow. * */ - private final Map tags; + private Map tags; /** * @return Specifies the type of Contact Flow. * */ - private final @Nullable String type; - - @CustomType.Constructor - private GetContactFlowResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("contactFlowId") String contactFlowId, - @CustomType.Parameter("content") String content, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("type") @Nullable String type) { - this.arn = arn; - this.contactFlowId = contactFlowId; - this.content = content; - this.description = description; - this.id = id; - this.instanceId = instanceId; - this.name = name; - this.tags = tags; - this.type = type; - } + private @Nullable String type; + private GetContactFlowResult() {} /** * @return The Amazon Resource Name (ARN) of the Contact Flow. * @@ -127,7 +106,7 @@ public static Builder builder() { public static Builder builder(GetContactFlowResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String contactFlowId; @@ -138,11 +117,7 @@ public static final class Builder { private String name; private Map tags; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetContactFlowResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -156,43 +131,63 @@ public Builder(GetContactFlowResult defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder contactFlowId(String contactFlowId) { this.contactFlowId = Objects.requireNonNull(contactFlowId); return this; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public GetContactFlowResult build() { - return new GetContactFlowResult(arn, contactFlowId, content, description, id, instanceId, name, tags, type); + } + public GetContactFlowResult build() { + final var o = new GetContactFlowResult(); + o.arn = arn; + o.contactFlowId = contactFlowId; + o.content = content; + o.description = description; + o.id = id; + o.instanceId = instanceId; + o.name = name; + o.tags = tags; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationConfig.java index eeb97449977..1bc70c1a5b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationConfig.java @@ -16,28 +16,19 @@ public final class GetHoursOfOperationConfig { * @return Specifies the day that the hours of operation applies to. * */ - private final String day; + private String day; /** * @return A end time block specifies the time that your contact center closes. The `end_time` is documented below. * */ - private final List endTimes; + private List endTimes; /** * @return A start time block specifies the time that your contact center opens. The `start_time` is documented below. * */ - private final List startTimes; - - @CustomType.Constructor - private GetHoursOfOperationConfig( - @CustomType.Parameter("day") String day, - @CustomType.Parameter("endTimes") List endTimes, - @CustomType.Parameter("startTimes") List startTimes) { - this.day = day; - this.endTimes = endTimes; - this.startTimes = startTimes; - } + private List startTimes; + private GetHoursOfOperationConfig() {} /** * @return Specifies the day that the hours of operation applies to. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetHoursOfOperationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String day; private List endTimes; private List startTimes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetHoursOfOperationConfig defaults) { Objects.requireNonNull(defaults); this.day = defaults.day; @@ -84,10 +71,12 @@ public Builder(GetHoursOfOperationConfig defaults) { this.startTimes = defaults.startTimes; } + @CustomType.Setter public Builder day(String day) { this.day = Objects.requireNonNull(day); return this; } + @CustomType.Setter public Builder endTimes(List endTimes) { this.endTimes = Objects.requireNonNull(endTimes); return this; @@ -95,14 +84,20 @@ public Builder endTimes(List endTimes) { public Builder endTimes(GetHoursOfOperationConfigEndTime... endTimes) { return endTimes(List.of(endTimes)); } + @CustomType.Setter public Builder startTimes(List startTimes) { this.startTimes = Objects.requireNonNull(startTimes); return this; } public Builder startTimes(GetHoursOfOperationConfigStartTime... startTimes) { return startTimes(List.of(startTimes)); - } public GetHoursOfOperationConfig build() { - return new GetHoursOfOperationConfig(day, endTimes, startTimes); + } + public GetHoursOfOperationConfig build() { + final var o = new GetHoursOfOperationConfig(); + o.day = day; + o.endTimes = endTimes; + o.startTimes = startTimes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationConfigEndTime.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationConfigEndTime.java index 458729acd36..c63f48c4760 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationConfigEndTime.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationConfigEndTime.java @@ -13,21 +13,14 @@ public final class GetHoursOfOperationConfigEndTime { * @return Specifies the hour of opening. * */ - private final Integer hours; + private Integer hours; /** * @return Specifies the minute of opening. * */ - private final Integer minutes; - - @CustomType.Constructor - private GetHoursOfOperationConfigEndTime( - @CustomType.Parameter("hours") Integer hours, - @CustomType.Parameter("minutes") Integer minutes) { - this.hours = hours; - this.minutes = minutes; - } + private Integer minutes; + private GetHoursOfOperationConfigEndTime() {} /** * @return Specifies the hour of opening. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetHoursOfOperationConfigEndTime defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer hours; private Integer minutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetHoursOfOperationConfigEndTime defaults) { Objects.requireNonNull(defaults); this.hours = defaults.hours; this.minutes = defaults.minutes; } + @CustomType.Setter public Builder hours(Integer hours) { this.hours = Objects.requireNonNull(hours); return this; } + @CustomType.Setter public Builder minutes(Integer minutes) { this.minutes = Objects.requireNonNull(minutes); return this; - } public GetHoursOfOperationConfigEndTime build() { - return new GetHoursOfOperationConfigEndTime(hours, minutes); + } + public GetHoursOfOperationConfigEndTime build() { + final var o = new GetHoursOfOperationConfigEndTime(); + o.hours = hours; + o.minutes = minutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationConfigStartTime.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationConfigStartTime.java index 9aa2d361b32..3c20ad67a7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationConfigStartTime.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationConfigStartTime.java @@ -13,21 +13,14 @@ public final class GetHoursOfOperationConfigStartTime { * @return Specifies the hour of opening. * */ - private final Integer hours; + private Integer hours; /** * @return Specifies the minute of opening. * */ - private final Integer minutes; - - @CustomType.Constructor - private GetHoursOfOperationConfigStartTime( - @CustomType.Parameter("hours") Integer hours, - @CustomType.Parameter("minutes") Integer minutes) { - this.hours = hours; - this.minutes = minutes; - } + private Integer minutes; + private GetHoursOfOperationConfigStartTime() {} /** * @return Specifies the hour of opening. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetHoursOfOperationConfigStartTime defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer hours; private Integer minutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetHoursOfOperationConfigStartTime defaults) { Objects.requireNonNull(defaults); this.hours = defaults.hours; this.minutes = defaults.minutes; } + @CustomType.Setter public Builder hours(Integer hours) { this.hours = Objects.requireNonNull(hours); return this; } + @CustomType.Setter public Builder minutes(Integer minutes) { this.minutes = Objects.requireNonNull(minutes); return this; - } public GetHoursOfOperationConfigStartTime build() { - return new GetHoursOfOperationConfigStartTime(hours, minutes); + } + public GetHoursOfOperationConfigStartTime build() { + final var o = new GetHoursOfOperationConfigStartTime(); + o.hours = hours; + o.minutes = minutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationResult.java index 82f8ddae141..2071f5e9f57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetHoursOfOperationResult.java @@ -16,17 +16,17 @@ public final class GetHoursOfOperationResult { * @return The Amazon Resource Name (ARN) of the Hours of Operation. * */ - private final String arn; + private String arn; /** * @return Specifies configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below. Config blocks are documented below. * */ - private final List configs; + private List configs; /** * @return Specifies the description of the Hours of Operation. * */ - private final String description; + private String description; /** * @return (**Deprecated**) The Amazon Resource Name (ARN) of the Hours of Operation. * @@ -35,62 +35,39 @@ public final class GetHoursOfOperationResult { * */ @Deprecated /* use 'arn' attribute instead */ - private final String hoursOfOperationArn; + private String hoursOfOperationArn; /** * @return The identifier for the hours of operation. * */ - private final String hoursOfOperationId; + private String hoursOfOperationId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Specifies the identifier of the hosting Amazon Connect Instance. * */ - private final String instanceId; + private String instanceId; /** * @return Specifies the name of the Hours of Operation. * */ - private final String name; + private String name; /** * @return A map of tags to assign to the Hours of Operation. * */ - private final Map tags; + private Map tags; /** * @return Specifies the time zone of the Hours of Operation. * */ - private final String timeZone; - - @CustomType.Constructor - private GetHoursOfOperationResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("configs") List configs, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("hoursOfOperationArn") String hoursOfOperationArn, - @CustomType.Parameter("hoursOfOperationId") String hoursOfOperationId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("timeZone") String timeZone) { - this.arn = arn; - this.configs = configs; - this.description = description; - this.hoursOfOperationArn = hoursOfOperationArn; - this.hoursOfOperationId = hoursOfOperationId; - this.id = id; - this.instanceId = instanceId; - this.name = name; - this.tags = tags; - this.timeZone = timeZone; - } + private String timeZone; + private GetHoursOfOperationResult() {} /** * @return The Amazon Resource Name (ARN) of the Hours of Operation. * @@ -173,7 +150,7 @@ public static Builder builder() { public static Builder builder(GetHoursOfOperationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List configs; @@ -185,11 +162,7 @@ public static final class Builder { private String name; private Map tags; private String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetHoursOfOperationResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -204,10 +177,12 @@ public Builder(GetHoursOfOperationResult defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder configs(List configs) { this.configs = Objects.requireNonNull(configs); return this; @@ -215,39 +190,59 @@ public Builder configs(List configs) { public Builder configs(GetHoursOfOperationConfig... configs) { return configs(List.of(configs)); } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder hoursOfOperationArn(String hoursOfOperationArn) { this.hoursOfOperationArn = Objects.requireNonNull(hoursOfOperationArn); return this; } + @CustomType.Setter public Builder hoursOfOperationId(String hoursOfOperationId) { this.hoursOfOperationId = Objects.requireNonNull(hoursOfOperationId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder timeZone(String timeZone) { this.timeZone = Objects.requireNonNull(timeZone); return this; - } public GetHoursOfOperationResult build() { - return new GetHoursOfOperationResult(arn, configs, description, hoursOfOperationArn, hoursOfOperationId, id, instanceId, name, tags, timeZone); + } + public GetHoursOfOperationResult build() { + final var o = new GetHoursOfOperationResult(); + o.arn = arn; + o.configs = configs; + o.description = description; + o.hoursOfOperationArn = hoursOfOperationArn; + o.hoursOfOperationId = hoursOfOperationId; + o.id = id; + o.instanceId = instanceId; + o.name = name; + o.tags = tags; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetInstanceResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetInstanceResult.java index aa5afe1e0fc..875ed3c1ce4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetInstanceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetInstanceResult.java @@ -14,93 +14,62 @@ public final class GetInstanceResult { * @return The Amazon Resource Name (ARN) of the instance. * */ - private final String arn; - private final Boolean autoResolveBestVoicesEnabled; + private String arn; + private Boolean autoResolveBestVoicesEnabled; /** * @return Specifies Whether contact flow logs are enabled. * */ - private final Boolean contactFlowLogsEnabled; + private Boolean contactFlowLogsEnabled; /** * @return Specifies Whether contact lens is enabled. * */ - private final Boolean contactLensEnabled; + private Boolean contactLensEnabled; /** * @return Specifies When the instance was created. * */ - private final String createdTime; + private String createdTime; /** * @return Specifies Whether early media for outbound calls is enabled . * */ - private final Boolean earlyMediaEnabled; + private Boolean earlyMediaEnabled; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Specifies The identity management type attached to the instance. * */ - private final String identityManagementType; + private String identityManagementType; /** * @return Specifies Whether inbound calls are enabled. * */ - private final Boolean inboundCallsEnabled; - private final String instanceAlias; - private final String instanceId; + private Boolean inboundCallsEnabled; + private String instanceAlias; + private String instanceId; /** * @return Specifies Whether outbound calls are enabled. * */ - private final Boolean outboundCallsEnabled; + private Boolean outboundCallsEnabled; /** * @return The service role of the instance. * */ - private final String serviceRole; + private String serviceRole; /** * @return Specifies The state of the instance. * */ - private final String status; - - @CustomType.Constructor - private GetInstanceResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("autoResolveBestVoicesEnabled") Boolean autoResolveBestVoicesEnabled, - @CustomType.Parameter("contactFlowLogsEnabled") Boolean contactFlowLogsEnabled, - @CustomType.Parameter("contactLensEnabled") Boolean contactLensEnabled, - @CustomType.Parameter("createdTime") String createdTime, - @CustomType.Parameter("earlyMediaEnabled") Boolean earlyMediaEnabled, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("identityManagementType") String identityManagementType, - @CustomType.Parameter("inboundCallsEnabled") Boolean inboundCallsEnabled, - @CustomType.Parameter("instanceAlias") String instanceAlias, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("outboundCallsEnabled") Boolean outboundCallsEnabled, - @CustomType.Parameter("serviceRole") String serviceRole, - @CustomType.Parameter("status") String status) { - this.arn = arn; - this.autoResolveBestVoicesEnabled = autoResolveBestVoicesEnabled; - this.contactFlowLogsEnabled = contactFlowLogsEnabled; - this.contactLensEnabled = contactLensEnabled; - this.createdTime = createdTime; - this.earlyMediaEnabled = earlyMediaEnabled; - this.id = id; - this.identityManagementType = identityManagementType; - this.inboundCallsEnabled = inboundCallsEnabled; - this.instanceAlias = instanceAlias; - this.instanceId = instanceId; - this.outboundCallsEnabled = outboundCallsEnabled; - this.serviceRole = serviceRole; - this.status = status; - } + private String status; + private GetInstanceResult() {} /** * @return The Amazon Resource Name (ARN) of the instance. * @@ -195,7 +164,7 @@ public static Builder builder() { public static Builder builder(GetInstanceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Boolean autoResolveBestVoicesEnabled; @@ -211,11 +180,7 @@ public static final class Builder { private Boolean outboundCallsEnabled; private String serviceRole; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -234,63 +199,93 @@ public Builder(GetInstanceResult defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder autoResolveBestVoicesEnabled(Boolean autoResolveBestVoicesEnabled) { this.autoResolveBestVoicesEnabled = Objects.requireNonNull(autoResolveBestVoicesEnabled); return this; } + @CustomType.Setter public Builder contactFlowLogsEnabled(Boolean contactFlowLogsEnabled) { this.contactFlowLogsEnabled = Objects.requireNonNull(contactFlowLogsEnabled); return this; } + @CustomType.Setter public Builder contactLensEnabled(Boolean contactLensEnabled) { this.contactLensEnabled = Objects.requireNonNull(contactLensEnabled); return this; } + @CustomType.Setter public Builder createdTime(String createdTime) { this.createdTime = Objects.requireNonNull(createdTime); return this; } + @CustomType.Setter public Builder earlyMediaEnabled(Boolean earlyMediaEnabled) { this.earlyMediaEnabled = Objects.requireNonNull(earlyMediaEnabled); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder identityManagementType(String identityManagementType) { this.identityManagementType = Objects.requireNonNull(identityManagementType); return this; } + @CustomType.Setter public Builder inboundCallsEnabled(Boolean inboundCallsEnabled) { this.inboundCallsEnabled = Objects.requireNonNull(inboundCallsEnabled); return this; } + @CustomType.Setter public Builder instanceAlias(String instanceAlias) { this.instanceAlias = Objects.requireNonNull(instanceAlias); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder outboundCallsEnabled(Boolean outboundCallsEnabled) { this.outboundCallsEnabled = Objects.requireNonNull(outboundCallsEnabled); return this; } + @CustomType.Setter public Builder serviceRole(String serviceRole) { this.serviceRole = Objects.requireNonNull(serviceRole); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public GetInstanceResult build() { - return new GetInstanceResult(arn, autoResolveBestVoicesEnabled, contactFlowLogsEnabled, contactLensEnabled, createdTime, earlyMediaEnabled, id, identityManagementType, inboundCallsEnabled, instanceAlias, instanceId, outboundCallsEnabled, serviceRole, status); + } + public GetInstanceResult build() { + final var o = new GetInstanceResult(); + o.arn = arn; + o.autoResolveBestVoicesEnabled = autoResolveBestVoicesEnabled; + o.contactFlowLogsEnabled = contactFlowLogsEnabled; + o.contactLensEnabled = contactLensEnabled; + o.createdTime = createdTime; + o.earlyMediaEnabled = earlyMediaEnabled; + o.id = id; + o.identityManagementType = identityManagementType; + o.inboundCallsEnabled = inboundCallsEnabled; + o.instanceAlias = instanceAlias; + o.instanceId = instanceId; + o.outboundCallsEnabled = outboundCallsEnabled; + o.serviceRole = serviceRole; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetLambdaFunctionAssociationResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetLambdaFunctionAssociationResult.java index e64a33e2f1a..1bc7b858584 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetLambdaFunctionAssociationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetLambdaFunctionAssociationResult.java @@ -9,24 +9,15 @@ @CustomType public final class GetLambdaFunctionAssociationResult { - private final String functionArn; + private String functionArn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceId; - - @CustomType.Constructor - private GetLambdaFunctionAssociationResult( - @CustomType.Parameter("functionArn") String functionArn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId) { - this.functionArn = functionArn; - this.id = id; - this.instanceId = instanceId; - } + private String id; + private String instanceId; + private GetLambdaFunctionAssociationResult() {} public String functionArn() { return this.functionArn; } @@ -48,16 +39,12 @@ public static Builder builder() { public static Builder builder(GetLambdaFunctionAssociationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String functionArn; private String id; private String instanceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLambdaFunctionAssociationResult defaults) { Objects.requireNonNull(defaults); this.functionArn = defaults.functionArn; @@ -65,19 +52,27 @@ public Builder(GetLambdaFunctionAssociationResult defaults) { this.instanceId = defaults.instanceId; } + @CustomType.Setter public Builder functionArn(String functionArn) { this.functionArn = Objects.requireNonNull(functionArn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; - } public GetLambdaFunctionAssociationResult build() { - return new GetLambdaFunctionAssociationResult(functionArn, id, instanceId); + } + public GetLambdaFunctionAssociationResult build() { + final var o = new GetLambdaFunctionAssociationResult(); + o.functionArn = functionArn; + o.id = id; + o.instanceId = instanceId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetPromptResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetPromptResult.java index 74ad71521da..b42ff97007d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetPromptResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetPromptResult.java @@ -13,34 +13,21 @@ public final class GetPromptResult { * @return The Amazon Resource Name (ARN) of the Prompt. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceId; - private final String name; + private String id; + private String instanceId; + private String name; /** * @return The identifier for the prompt. * */ - private final String promptId; - - @CustomType.Constructor - private GetPromptResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("promptId") String promptId) { - this.arn = arn; - this.id = id; - this.instanceId = instanceId; - this.name = name; - this.promptId = promptId; - } + private String promptId; + private GetPromptResult() {} /** * @return The Amazon Resource Name (ARN) of the Prompt. * @@ -76,18 +63,14 @@ public static Builder builder() { public static Builder builder(GetPromptResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String instanceId; private String name; private String promptId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPromptResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -97,27 +80,39 @@ public Builder(GetPromptResult defaults) { this.promptId = defaults.promptId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder promptId(String promptId) { this.promptId = Objects.requireNonNull(promptId); return this; - } public GetPromptResult build() { - return new GetPromptResult(arn, id, instanceId, name, promptId); + } + public GetPromptResult build() { + final var o = new GetPromptResult(); + o.arn = arn; + o.id = id; + o.instanceId = instanceId; + o.name = name; + o.promptId = promptId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQueueOutboundCallerConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQueueOutboundCallerConfig.java index ab07b748515..99e6dfa1b3b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQueueOutboundCallerConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQueueOutboundCallerConfig.java @@ -13,28 +13,19 @@ public final class GetQueueOutboundCallerConfig { * @return Specifies the caller ID name. * */ - private final String outboundCallerIdName; + private String outboundCallerIdName; /** * @return Specifies the caller ID number. * */ - private final String outboundCallerIdNumberId; + private String outboundCallerIdNumberId; /** * @return Specifies the outbound whisper flow to be used during an outbound call. * */ - private final String outboundFlowId; - - @CustomType.Constructor - private GetQueueOutboundCallerConfig( - @CustomType.Parameter("outboundCallerIdName") String outboundCallerIdName, - @CustomType.Parameter("outboundCallerIdNumberId") String outboundCallerIdNumberId, - @CustomType.Parameter("outboundFlowId") String outboundFlowId) { - this.outboundCallerIdName = outboundCallerIdName; - this.outboundCallerIdNumberId = outboundCallerIdNumberId; - this.outboundFlowId = outboundFlowId; - } + private String outboundFlowId; + private GetQueueOutboundCallerConfig() {} /** * @return Specifies the caller ID name. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetQueueOutboundCallerConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String outboundCallerIdName; private String outboundCallerIdNumberId; private String outboundFlowId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetQueueOutboundCallerConfig defaults) { Objects.requireNonNull(defaults); this.outboundCallerIdName = defaults.outboundCallerIdName; @@ -81,19 +68,27 @@ public Builder(GetQueueOutboundCallerConfig defaults) { this.outboundFlowId = defaults.outboundFlowId; } + @CustomType.Setter public Builder outboundCallerIdName(String outboundCallerIdName) { this.outboundCallerIdName = Objects.requireNonNull(outboundCallerIdName); return this; } + @CustomType.Setter public Builder outboundCallerIdNumberId(String outboundCallerIdNumberId) { this.outboundCallerIdNumberId = Objects.requireNonNull(outboundCallerIdNumberId); return this; } + @CustomType.Setter public Builder outboundFlowId(String outboundFlowId) { this.outboundFlowId = Objects.requireNonNull(outboundFlowId); return this; - } public GetQueueOutboundCallerConfig build() { - return new GetQueueOutboundCallerConfig(outboundCallerIdName, outboundCallerIdNumberId, outboundFlowId); + } + public GetQueueOutboundCallerConfig build() { + final var o = new GetQueueOutboundCallerConfig(); + o.outboundCallerIdName = outboundCallerIdName; + o.outboundCallerIdNumberId = outboundCallerIdNumberId; + o.outboundFlowId = outboundFlowId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQueueResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQueueResult.java index 151d4bc2173..df83be5e226 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQueueResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQueueResult.java @@ -17,76 +17,51 @@ public final class GetQueueResult { * @return The Amazon Resource Name (ARN) of the Queue. * */ - private final String arn; + private String arn; /** * @return Specifies the description of the Queue. * */ - private final String description; + private String description; /** * @return Specifies the identifier of the Hours of Operation. * */ - private final String hoursOfOperationId; + private String hoursOfOperationId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceId; + private String id; + private String instanceId; /** * @return Specifies the maximum number of contacts that can be in the queue before it is considered full. Minimum value of 0. * */ - private final Integer maxContacts; - private final String name; + private Integer maxContacts; + private String name; /** * @return A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Caller Config block is documented below. * */ - private final List outboundCallerConfigs; + private List outboundCallerConfigs; /** * @return The identifier for the Queue. * */ - private final String queueId; + private String queueId; /** * @return Specifies the description of the Queue. Values are `ENABLED` or `DISABLED`. * */ - private final String status; + private String status; /** * @return A map of tags assigned to the Queue. * */ - private final Map tags; - - @CustomType.Constructor - private GetQueueResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("hoursOfOperationId") String hoursOfOperationId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("maxContacts") Integer maxContacts, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("outboundCallerConfigs") List outboundCallerConfigs, - @CustomType.Parameter("queueId") String queueId, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.description = description; - this.hoursOfOperationId = hoursOfOperationId; - this.id = id; - this.instanceId = instanceId; - this.maxContacts = maxContacts; - this.name = name; - this.outboundCallerConfigs = outboundCallerConfigs; - this.queueId = queueId; - this.status = status; - this.tags = tags; - } + private Map tags; + private GetQueueResult() {} /** * @return The Amazon Resource Name (ARN) of the Queue. * @@ -164,7 +139,7 @@ public static Builder builder() { public static Builder builder(GetQueueResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -177,11 +152,7 @@ public static final class Builder { private String queueId; private String status; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetQueueResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -197,34 +168,42 @@ public Builder(GetQueueResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder hoursOfOperationId(String hoursOfOperationId) { this.hoursOfOperationId = Objects.requireNonNull(hoursOfOperationId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder maxContacts(Integer maxContacts) { this.maxContacts = Objects.requireNonNull(maxContacts); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder outboundCallerConfigs(List outboundCallerConfigs) { this.outboundCallerConfigs = Objects.requireNonNull(outboundCallerConfigs); return this; @@ -232,19 +211,35 @@ public Builder outboundCallerConfigs(List outbound public Builder outboundCallerConfigs(GetQueueOutboundCallerConfig... outboundCallerConfigs) { return outboundCallerConfigs(List.of(outboundCallerConfigs)); } + @CustomType.Setter public Builder queueId(String queueId) { this.queueId = Objects.requireNonNull(queueId); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetQueueResult build() { - return new GetQueueResult(arn, description, hoursOfOperationId, id, instanceId, maxContacts, name, outboundCallerConfigs, queueId, status, tags); + } + public GetQueueResult build() { + final var o = new GetQueueResult(); + o.arn = arn; + o.description = description; + o.hoursOfOperationId = hoursOfOperationId; + o.id = id; + o.instanceId = instanceId; + o.maxContacts = maxContacts; + o.name = name; + o.outboundCallerConfigs = outboundCallerConfigs; + o.queueId = queueId; + o.status = status; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfig.java index 558572f6612..9a0719674bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfig.java @@ -17,35 +17,24 @@ public final class GetQuickConnectQuickConnectConfig { * @return Specifies the phone configuration of the Quick Connect. This is returned only if `quick_connect_type` is `PHONE_NUMBER`. The `phone_config` block is documented below. * */ - private final List phoneConfigs; + private List phoneConfigs; /** * @return Specifies the queue configuration of the Quick Connect. This is returned only if `quick_connect_type` is `QUEUE`. The `queue_config` block is documented below. * */ - private final List queueConfigs; + private List queueConfigs; /** * @return Specifies the configuration type of the Quick Connect. Valid values are `PHONE_NUMBER`, `QUEUE`, `USER`. * */ - private final String quickConnectType; + private String quickConnectType; /** * @return Specifies the user configuration of the Quick Connect. This is returned only if `quick_connect_type` is `USER`. The `user_config` block is documented below. * */ - private final List userConfigs; - - @CustomType.Constructor - private GetQuickConnectQuickConnectConfig( - @CustomType.Parameter("phoneConfigs") List phoneConfigs, - @CustomType.Parameter("queueConfigs") List queueConfigs, - @CustomType.Parameter("quickConnectType") String quickConnectType, - @CustomType.Parameter("userConfigs") List userConfigs) { - this.phoneConfigs = phoneConfigs; - this.queueConfigs = queueConfigs; - this.quickConnectType = quickConnectType; - this.userConfigs = userConfigs; - } + private List userConfigs; + private GetQuickConnectQuickConnectConfig() {} /** * @return Specifies the phone configuration of the Quick Connect. This is returned only if `quick_connect_type` is `PHONE_NUMBER`. The `phone_config` block is documented below. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(GetQuickConnectQuickConnectConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List phoneConfigs; private List queueConfigs; private String quickConnectType; private List userConfigs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetQuickConnectQuickConnectConfig defaults) { Objects.requireNonNull(defaults); this.phoneConfigs = defaults.phoneConfigs; @@ -101,6 +86,7 @@ public Builder(GetQuickConnectQuickConnectConfig defaults) { this.userConfigs = defaults.userConfigs; } + @CustomType.Setter public Builder phoneConfigs(List phoneConfigs) { this.phoneConfigs = Objects.requireNonNull(phoneConfigs); return this; @@ -108,6 +94,7 @@ public Builder phoneConfigs(List p public Builder phoneConfigs(GetQuickConnectQuickConnectConfigPhoneConfig... phoneConfigs) { return phoneConfigs(List.of(phoneConfigs)); } + @CustomType.Setter public Builder queueConfigs(List queueConfigs) { this.queueConfigs = Objects.requireNonNull(queueConfigs); return this; @@ -115,18 +102,26 @@ public Builder queueConfigs(List q public Builder queueConfigs(GetQuickConnectQuickConnectConfigQueueConfig... queueConfigs) { return queueConfigs(List.of(queueConfigs)); } + @CustomType.Setter public Builder quickConnectType(String quickConnectType) { this.quickConnectType = Objects.requireNonNull(quickConnectType); return this; } + @CustomType.Setter public Builder userConfigs(List userConfigs) { this.userConfigs = Objects.requireNonNull(userConfigs); return this; } public Builder userConfigs(GetQuickConnectQuickConnectConfigUserConfig... userConfigs) { return userConfigs(List.of(userConfigs)); - } public GetQuickConnectQuickConnectConfig build() { - return new GetQuickConnectQuickConnectConfig(phoneConfigs, queueConfigs, quickConnectType, userConfigs); + } + public GetQuickConnectQuickConnectConfig build() { + final var o = new GetQuickConnectQuickConnectConfig(); + o.phoneConfigs = phoneConfigs; + o.queueConfigs = queueConfigs; + o.quickConnectType = quickConnectType; + o.userConfigs = userConfigs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfigPhoneConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfigPhoneConfig.java index 07c1f33fe99..118da63b44b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfigPhoneConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfigPhoneConfig.java @@ -13,13 +13,9 @@ public final class GetQuickConnectQuickConnectConfigPhoneConfig { * @return Specifies the phone number in in E.164 format. * */ - private final String phoneNumber; - - @CustomType.Constructor - private GetQuickConnectQuickConnectConfigPhoneConfig(@CustomType.Parameter("phoneNumber") String phoneNumber) { - this.phoneNumber = phoneNumber; - } + private String phoneNumber; + private GetQuickConnectQuickConnectConfigPhoneConfig() {} /** * @return Specifies the phone number in in E.164 format. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetQuickConnectQuickConnectConfigPhoneConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String phoneNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetQuickConnectQuickConnectConfigPhoneConfig defaults) { Objects.requireNonNull(defaults); this.phoneNumber = defaults.phoneNumber; } + @CustomType.Setter public Builder phoneNumber(String phoneNumber) { this.phoneNumber = Objects.requireNonNull(phoneNumber); return this; - } public GetQuickConnectQuickConnectConfigPhoneConfig build() { - return new GetQuickConnectQuickConnectConfigPhoneConfig(phoneNumber); + } + public GetQuickConnectQuickConnectConfigPhoneConfig build() { + final var o = new GetQuickConnectQuickConnectConfigPhoneConfig(); + o.phoneNumber = phoneNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfigQueueConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfigQueueConfig.java index c8eb168a794..af4752dce86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfigQueueConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfigQueueConfig.java @@ -13,21 +13,14 @@ public final class GetQuickConnectQuickConnectConfigQueueConfig { * @return Specifies the identifier of the contact flow. * */ - private final String contactFlowId; + private String contactFlowId; /** * @return Specifies the identifier for the queue. * */ - private final String queueId; - - @CustomType.Constructor - private GetQuickConnectQuickConnectConfigQueueConfig( - @CustomType.Parameter("contactFlowId") String contactFlowId, - @CustomType.Parameter("queueId") String queueId) { - this.contactFlowId = contactFlowId; - this.queueId = queueId; - } + private String queueId; + private GetQuickConnectQuickConnectConfigQueueConfig() {} /** * @return Specifies the identifier of the contact flow. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetQuickConnectQuickConnectConfigQueueConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contactFlowId; private String queueId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetQuickConnectQuickConnectConfigQueueConfig defaults) { Objects.requireNonNull(defaults); this.contactFlowId = defaults.contactFlowId; this.queueId = defaults.queueId; } + @CustomType.Setter public Builder contactFlowId(String contactFlowId) { this.contactFlowId = Objects.requireNonNull(contactFlowId); return this; } + @CustomType.Setter public Builder queueId(String queueId) { this.queueId = Objects.requireNonNull(queueId); return this; - } public GetQuickConnectQuickConnectConfigQueueConfig build() { - return new GetQuickConnectQuickConnectConfigQueueConfig(contactFlowId, queueId); + } + public GetQuickConnectQuickConnectConfigQueueConfig build() { + final var o = new GetQuickConnectQuickConnectConfigQueueConfig(); + o.contactFlowId = contactFlowId; + o.queueId = queueId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfigUserConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfigUserConfig.java index 217034e4f54..e5c2b92bb41 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfigUserConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectQuickConnectConfigUserConfig.java @@ -13,21 +13,14 @@ public final class GetQuickConnectQuickConnectConfigUserConfig { * @return Specifies the identifier of the contact flow. * */ - private final String contactFlowId; + private String contactFlowId; /** * @return Specifies the identifier for the user. * */ - private final String userId; - - @CustomType.Constructor - private GetQuickConnectQuickConnectConfigUserConfig( - @CustomType.Parameter("contactFlowId") String contactFlowId, - @CustomType.Parameter("userId") String userId) { - this.contactFlowId = contactFlowId; - this.userId = userId; - } + private String userId; + private GetQuickConnectQuickConnectConfigUserConfig() {} /** * @return Specifies the identifier of the contact flow. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetQuickConnectQuickConnectConfigUserConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contactFlowId; private String userId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetQuickConnectQuickConnectConfigUserConfig defaults) { Objects.requireNonNull(defaults); this.contactFlowId = defaults.contactFlowId; this.userId = defaults.userId; } + @CustomType.Setter public Builder contactFlowId(String contactFlowId) { this.contactFlowId = Objects.requireNonNull(contactFlowId); return this; } + @CustomType.Setter public Builder userId(String userId) { this.userId = Objects.requireNonNull(userId); return this; - } public GetQuickConnectQuickConnectConfigUserConfig build() { - return new GetQuickConnectQuickConnectConfigUserConfig(contactFlowId, userId); + } + public GetQuickConnectQuickConnectConfigUserConfig build() { + final var o = new GetQuickConnectQuickConnectConfigUserConfig(); + o.contactFlowId = contactFlowId; + o.userId = userId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectResult.java index cbb69af3400..1eb42e00717 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetQuickConnectResult.java @@ -16,55 +16,36 @@ public final class GetQuickConnectResult { * @return The Amazon Resource Name (ARN) of the Quick Connect. * */ - private final String arn; + private String arn; /** * @return Specifies the description of the Quick Connect. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceId; - private final String name; + private String id; + private String instanceId; + private String name; /** * @return A block that defines the configuration information for the Quick Connect: `quick_connect_type` and one of `phone_config`, `queue_config`, `user_config` . The Quick Connect Config block is documented below. * */ - private final List quickConnectConfigs; + private List quickConnectConfigs; /** * @return The identifier for the Quick Connect. * */ - private final String quickConnectId; + private String quickConnectId; /** * @return A map of tags to assign to the Quick Connect. * */ - private final Map tags; - - @CustomType.Constructor - private GetQuickConnectResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("quickConnectConfigs") List quickConnectConfigs, - @CustomType.Parameter("quickConnectId") String quickConnectId, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.description = description; - this.id = id; - this.instanceId = instanceId; - this.name = name; - this.quickConnectConfigs = quickConnectConfigs; - this.quickConnectId = quickConnectId; - this.tags = tags; - } + private Map tags; + private GetQuickConnectResult() {} /** * @return The Amazon Resource Name (ARN) of the Quick Connect. * @@ -121,7 +102,7 @@ public static Builder builder() { public static Builder builder(GetQuickConnectResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -131,11 +112,7 @@ public static final class Builder { private List quickConnectConfigs; private String quickConnectId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetQuickConnectResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -148,26 +125,32 @@ public Builder(GetQuickConnectResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder quickConnectConfigs(List quickConnectConfigs) { this.quickConnectConfigs = Objects.requireNonNull(quickConnectConfigs); return this; @@ -175,15 +158,27 @@ public Builder quickConnectConfigs(List quick public Builder quickConnectConfigs(GetQuickConnectQuickConnectConfig... quickConnectConfigs) { return quickConnectConfigs(List.of(quickConnectConfigs)); } + @CustomType.Setter public Builder quickConnectId(String quickConnectId) { this.quickConnectId = Objects.requireNonNull(quickConnectId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetQuickConnectResult build() { - return new GetQuickConnectResult(arn, description, id, instanceId, name, quickConnectConfigs, quickConnectId, tags); + } + public GetQuickConnectResult build() { + final var o = new GetQuickConnectResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.instanceId = instanceId; + o.name = name; + o.quickConnectConfigs = quickConnectConfigs; + o.quickConnectId = quickConnectId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetRoutingProfileMediaConcurrency.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetRoutingProfileMediaConcurrency.java index 115a5d10d55..71652e5565b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetRoutingProfileMediaConcurrency.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetRoutingProfileMediaConcurrency.java @@ -14,21 +14,14 @@ public final class GetRoutingProfileMediaConcurrency { * @return Specifies the channels agents can handle in the Contact Control Panel (CCP) for this routing profile. Valid values are `VOICE`, `CHAT`, `TASK`. * */ - private final String channel; + private String channel; /** * @return Specifies the number of contacts an agent can have on a channel simultaneously. Valid Range for `VOICE`: Minimum value of 1. Maximum value of 1. Valid Range for `CHAT`: Minimum value of 1. Maximum value of 10. Valid Range for `TASK`: Minimum value of 1. Maximum value of 10. * */ - private final Integer concurrency; - - @CustomType.Constructor - private GetRoutingProfileMediaConcurrency( - @CustomType.Parameter("channel") String channel, - @CustomType.Parameter("concurrency") Integer concurrency) { - this.channel = channel; - this.concurrency = concurrency; - } + private Integer concurrency; + private GetRoutingProfileMediaConcurrency() {} /** * @return Specifies the channels agents can handle in the Contact Control Panel (CCP) for this routing profile. Valid values are `VOICE`, `CHAT`, `TASK`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetRoutingProfileMediaConcurrency defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String channel; private Integer concurrency; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRoutingProfileMediaConcurrency defaults) { Objects.requireNonNull(defaults); this.channel = defaults.channel; this.concurrency = defaults.concurrency; } + @CustomType.Setter public Builder channel(String channel) { this.channel = Objects.requireNonNull(channel); return this; } + @CustomType.Setter public Builder concurrency(Integer concurrency) { this.concurrency = Objects.requireNonNull(concurrency); return this; - } public GetRoutingProfileMediaConcurrency build() { - return new GetRoutingProfileMediaConcurrency(channel, concurrency); + } + public GetRoutingProfileMediaConcurrency build() { + final var o = new GetRoutingProfileMediaConcurrency(); + o.channel = channel; + o.concurrency = concurrency; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetRoutingProfileQueueConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetRoutingProfileQueueConfig.java index a66837085e8..e1ef23a4165 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetRoutingProfileQueueConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetRoutingProfileQueueConfig.java @@ -14,49 +14,34 @@ public final class GetRoutingProfileQueueConfig { * @return Specifies the channels agents can handle in the Contact Control Panel (CCP) for this routing profile. Valid values are `VOICE`, `CHAT`, `TASK`. * */ - private final String channel; + private String channel; /** * @return Specifies the delay, in seconds, that a contact should be in the queue before they are routed to an available agent * */ - private final Integer delay; + private Integer delay; /** * @return Specifies the order in which contacts are to be handled for the queue. * */ - private final Integer priority; + private Integer priority; /** * @return Specifies the ARN for the queue. * */ - private final String queueArn; + private String queueArn; /** * @return Specifies the identifier for the queue. * */ - private final String queueId; + private String queueId; /** * @return Specifies the name for the queue. * */ - private final String queueName; - - @CustomType.Constructor - private GetRoutingProfileQueueConfig( - @CustomType.Parameter("channel") String channel, - @CustomType.Parameter("delay") Integer delay, - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("queueArn") String queueArn, - @CustomType.Parameter("queueId") String queueId, - @CustomType.Parameter("queueName") String queueName) { - this.channel = channel; - this.delay = delay; - this.priority = priority; - this.queueArn = queueArn; - this.queueId = queueId; - this.queueName = queueName; - } + private String queueName; + private GetRoutingProfileQueueConfig() {} /** * @return Specifies the channels agents can handle in the Contact Control Panel (CCP) for this routing profile. Valid values are `VOICE`, `CHAT`, `TASK`. * @@ -107,7 +92,7 @@ public static Builder builder() { public static Builder builder(GetRoutingProfileQueueConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String channel; private Integer delay; @@ -115,11 +100,7 @@ public static final class Builder { private String queueArn; private String queueId; private String queueName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRoutingProfileQueueConfig defaults) { Objects.requireNonNull(defaults); this.channel = defaults.channel; @@ -130,31 +111,45 @@ public Builder(GetRoutingProfileQueueConfig defaults) { this.queueName = defaults.queueName; } + @CustomType.Setter public Builder channel(String channel) { this.channel = Objects.requireNonNull(channel); return this; } + @CustomType.Setter public Builder delay(Integer delay) { this.delay = Objects.requireNonNull(delay); return this; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder queueArn(String queueArn) { this.queueArn = Objects.requireNonNull(queueArn); return this; } + @CustomType.Setter public Builder queueId(String queueId) { this.queueId = Objects.requireNonNull(queueId); return this; } + @CustomType.Setter public Builder queueName(String queueName) { this.queueName = Objects.requireNonNull(queueName); return this; - } public GetRoutingProfileQueueConfig build() { - return new GetRoutingProfileQueueConfig(channel, delay, priority, queueArn, queueId, queueName); + } + public GetRoutingProfileQueueConfig build() { + final var o = new GetRoutingProfileQueueConfig(); + o.channel = channel; + o.delay = delay; + o.priority = priority; + o.queueArn = queueArn; + o.queueId = queueId; + o.queueName = queueName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetRoutingProfileResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetRoutingProfileResult.java index b90f2a9e06a..df5616808e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetRoutingProfileResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetRoutingProfileResult.java @@ -17,65 +17,42 @@ public final class GetRoutingProfileResult { * @return The Amazon Resource Name (ARN) of the Routing Profile. * */ - private final String arn; + private String arn; /** * @return Specifies the default outbound queue for the Routing Profile. * */ - private final String defaultOutboundQueueId; + private String defaultOutboundQueueId; /** * @return Specifies the description of the Routing Profile. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceId; + private String id; + private String instanceId; /** * @return One or more `media_concurrencies` blocks that specify the channels that agents can handle in the Contact Control Panel (CCP) for this Routing Profile. The `media_concurrencies` block is documented below. * */ - private final List mediaConcurrencies; - private final String name; + private List mediaConcurrencies; + private String name; /** * @return One or more `queue_configs` blocks that specify the inbound queues associated with the routing profile. If no queue is added, the agent only can make outbound calls. The `queue_configs` block is documented below. * */ - private final List queueConfigs; - private final String routingProfileId; + private List queueConfigs; + private String routingProfileId; /** * @return A map of tags to assign to the Routing Profile. * */ - private final Map tags; - - @CustomType.Constructor - private GetRoutingProfileResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("defaultOutboundQueueId") String defaultOutboundQueueId, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("mediaConcurrencies") List mediaConcurrencies, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("queueConfigs") List queueConfigs, - @CustomType.Parameter("routingProfileId") String routingProfileId, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.defaultOutboundQueueId = defaultOutboundQueueId; - this.description = description; - this.id = id; - this.instanceId = instanceId; - this.mediaConcurrencies = mediaConcurrencies; - this.name = name; - this.queueConfigs = queueConfigs; - this.routingProfileId = routingProfileId; - this.tags = tags; - } + private Map tags; + private GetRoutingProfileResult() {} /** * @return The Amazon Resource Name (ARN) of the Routing Profile. * @@ -142,7 +119,7 @@ public static Builder builder() { public static Builder builder(GetRoutingProfileResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String defaultOutboundQueueId; @@ -154,11 +131,7 @@ public static final class Builder { private List queueConfigs; private String routingProfileId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRoutingProfileResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -173,26 +146,32 @@ public Builder(GetRoutingProfileResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder defaultOutboundQueueId(String defaultOutboundQueueId) { this.defaultOutboundQueueId = Objects.requireNonNull(defaultOutboundQueueId); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder mediaConcurrencies(List mediaConcurrencies) { this.mediaConcurrencies = Objects.requireNonNull(mediaConcurrencies); return this; @@ -200,10 +179,12 @@ public Builder mediaConcurrencies(List mediaC public Builder mediaConcurrencies(GetRoutingProfileMediaConcurrency... mediaConcurrencies) { return mediaConcurrencies(List.of(mediaConcurrencies)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder queueConfigs(List queueConfigs) { this.queueConfigs = Objects.requireNonNull(queueConfigs); return this; @@ -211,15 +192,29 @@ public Builder queueConfigs(List queueConfigs) { public Builder queueConfigs(GetRoutingProfileQueueConfig... queueConfigs) { return queueConfigs(List.of(queueConfigs)); } + @CustomType.Setter public Builder routingProfileId(String routingProfileId) { this.routingProfileId = Objects.requireNonNull(routingProfileId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetRoutingProfileResult build() { - return new GetRoutingProfileResult(arn, defaultOutboundQueueId, description, id, instanceId, mediaConcurrencies, name, queueConfigs, routingProfileId, tags); + } + public GetRoutingProfileResult build() { + final var o = new GetRoutingProfileResult(); + o.arn = arn; + o.defaultOutboundQueueId = defaultOutboundQueueId; + o.description = description; + o.id = id; + o.instanceId = instanceId; + o.mediaConcurrencies = mediaConcurrencies; + o.name = name; + o.queueConfigs = queueConfigs; + o.routingProfileId = routingProfileId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetSecurityProfileResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetSecurityProfileResult.java index 54ad5094c95..5c3254cc4e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetSecurityProfileResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetSecurityProfileResult.java @@ -15,58 +15,37 @@ public final class GetSecurityProfileResult { * @return The Amazon Resource Name (ARN) of the Security Profile. * */ - private final String arn; + private String arn; /** * @return Specifies the description of the Security Profile. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceId; - private final String name; + private String id; + private String instanceId; + private String name; /** * @return The organization resource identifier for the security profile. * */ - private final String organizationResourceId; + private String organizationResourceId; /** * @return Specifies a list of permissions assigned to the security profile. * */ - private final List permissions; - private final String securityProfileId; + private List permissions; + private String securityProfileId; /** * @return A map of tags to assign to the Security Profile. * */ - private final Map tags; - - @CustomType.Constructor - private GetSecurityProfileResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("organizationResourceId") String organizationResourceId, - @CustomType.Parameter("permissions") List permissions, - @CustomType.Parameter("securityProfileId") String securityProfileId, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.description = description; - this.id = id; - this.instanceId = instanceId; - this.name = name; - this.organizationResourceId = organizationResourceId; - this.permissions = permissions; - this.securityProfileId = securityProfileId; - this.tags = tags; - } + private Map tags; + private GetSecurityProfileResult() {} /** * @return The Amazon Resource Name (ARN) of the Security Profile. * @@ -126,7 +105,7 @@ public static Builder builder() { public static Builder builder(GetSecurityProfileResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -137,11 +116,7 @@ public static final class Builder { private List permissions; private String securityProfileId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecurityProfileResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -155,30 +130,37 @@ public Builder(GetSecurityProfileResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder organizationResourceId(String organizationResourceId) { this.organizationResourceId = Objects.requireNonNull(organizationResourceId); return this; } + @CustomType.Setter public Builder permissions(List permissions) { this.permissions = Objects.requireNonNull(permissions); return this; @@ -186,15 +168,28 @@ public Builder permissions(List permissions) { public Builder permissions(String... permissions) { return permissions(List.of(permissions)); } + @CustomType.Setter public Builder securityProfileId(String securityProfileId) { this.securityProfileId = Objects.requireNonNull(securityProfileId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetSecurityProfileResult build() { - return new GetSecurityProfileResult(arn, description, id, instanceId, name, organizationResourceId, permissions, securityProfileId, tags); + } + public GetSecurityProfileResult build() { + final var o = new GetSecurityProfileResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.instanceId = instanceId; + o.name = name; + o.organizationResourceId = organizationResourceId; + o.permissions = permissions; + o.securityProfileId = securityProfileId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPath.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPath.java index 3f11fb691ca..63a8c623067 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPath.java @@ -18,42 +18,29 @@ public final class GetUserHierarchyGroupHierarchyPath { * @return A block that defines the details of level five. The level block is documented below. * */ - private final List levelFives; + private List levelFives; /** * @return A block that defines the details of level four. The level block is documented below. * */ - private final List levelFours; + private List levelFours; /** * @return A block that defines the details of level one. The level block is documented below. * */ - private final List levelOnes; + private List levelOnes; /** * @return A block that defines the details of level three. The level block is documented below. * */ - private final List levelThrees; + private List levelThrees; /** * @return A block that defines the details of level two. The level block is documented below. * */ - private final List levelTwos; - - @CustomType.Constructor - private GetUserHierarchyGroupHierarchyPath( - @CustomType.Parameter("levelFives") List levelFives, - @CustomType.Parameter("levelFours") List levelFours, - @CustomType.Parameter("levelOnes") List levelOnes, - @CustomType.Parameter("levelThrees") List levelThrees, - @CustomType.Parameter("levelTwos") List levelTwos) { - this.levelFives = levelFives; - this.levelFours = levelFours; - this.levelOnes = levelOnes; - this.levelThrees = levelThrees; - this.levelTwos = levelTwos; - } + private List levelTwos; + private GetUserHierarchyGroupHierarchyPath() {} /** * @return A block that defines the details of level five. The level block is documented below. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyGroupHierarchyPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List levelFives; private List levelFours; private List levelOnes; private List levelThrees; private List levelTwos; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyGroupHierarchyPath defaults) { Objects.requireNonNull(defaults); this.levelFives = defaults.levelFives; @@ -118,6 +101,7 @@ public Builder(GetUserHierarchyGroupHierarchyPath defaults) { this.levelTwos = defaults.levelTwos; } + @CustomType.Setter public Builder levelFives(List levelFives) { this.levelFives = Objects.requireNonNull(levelFives); return this; @@ -125,6 +109,7 @@ public Builder levelFives(List leve public Builder levelFives(GetUserHierarchyGroupHierarchyPathLevelFife... levelFives) { return levelFives(List.of(levelFives)); } + @CustomType.Setter public Builder levelFours(List levelFours) { this.levelFours = Objects.requireNonNull(levelFours); return this; @@ -132,6 +117,7 @@ public Builder levelFours(List leve public Builder levelFours(GetUserHierarchyGroupHierarchyPathLevelFour... levelFours) { return levelFours(List.of(levelFours)); } + @CustomType.Setter public Builder levelOnes(List levelOnes) { this.levelOnes = Objects.requireNonNull(levelOnes); return this; @@ -139,6 +125,7 @@ public Builder levelOnes(List levelO public Builder levelOnes(GetUserHierarchyGroupHierarchyPathLevelOne... levelOnes) { return levelOnes(List.of(levelOnes)); } + @CustomType.Setter public Builder levelThrees(List levelThrees) { this.levelThrees = Objects.requireNonNull(levelThrees); return this; @@ -146,14 +133,22 @@ public Builder levelThrees(List le public Builder levelThrees(GetUserHierarchyGroupHierarchyPathLevelThree... levelThrees) { return levelThrees(List.of(levelThrees)); } + @CustomType.Setter public Builder levelTwos(List levelTwos) { this.levelTwos = Objects.requireNonNull(levelTwos); return this; } public Builder levelTwos(GetUserHierarchyGroupHierarchyPathLevelTwo... levelTwos) { return levelTwos(List.of(levelTwos)); - } public GetUserHierarchyGroupHierarchyPath build() { - return new GetUserHierarchyGroupHierarchyPath(levelFives, levelFours, levelOnes, levelThrees, levelTwos); + } + public GetUserHierarchyGroupHierarchyPath build() { + final var o = new GetUserHierarchyGroupHierarchyPath(); + o.levelFives = levelFives; + o.levelFours = levelFours; + o.levelOnes = levelOnes; + o.levelThrees = levelThrees; + o.levelTwos = levelTwos; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelFife.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelFife.java index 8afe18feaef..2d6322fc3e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelFife.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelFife.java @@ -13,28 +13,19 @@ public final class GetUserHierarchyGroupHierarchyPathLevelFife { * @return The Amazon Resource Name (ARN) of the hierarchy group. * */ - private final String arn; + private String arn; /** * @return The identifier of the hierarchy group. * */ - private final String id; + private String id; /** * @return Returns information on a specific hierarchy group by name * */ - private final String name; - - @CustomType.Constructor - private GetUserHierarchyGroupHierarchyPathLevelFife( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private GetUserHierarchyGroupHierarchyPathLevelFife() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy group. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyGroupHierarchyPathLevelFife defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyGroupHierarchyPathLevelFife defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetUserHierarchyGroupHierarchyPathLevelFife defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetUserHierarchyGroupHierarchyPathLevelFife build() { - return new GetUserHierarchyGroupHierarchyPathLevelFife(arn, id, name); + } + public GetUserHierarchyGroupHierarchyPathLevelFife build() { + final var o = new GetUserHierarchyGroupHierarchyPathLevelFife(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelFour.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelFour.java index 9fe0f17b92e..b53205b63b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelFour.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelFour.java @@ -13,28 +13,19 @@ public final class GetUserHierarchyGroupHierarchyPathLevelFour { * @return The Amazon Resource Name (ARN) of the hierarchy group. * */ - private final String arn; + private String arn; /** * @return The identifier of the hierarchy group. * */ - private final String id; + private String id; /** * @return Returns information on a specific hierarchy group by name * */ - private final String name; - - @CustomType.Constructor - private GetUserHierarchyGroupHierarchyPathLevelFour( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private GetUserHierarchyGroupHierarchyPathLevelFour() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy group. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyGroupHierarchyPathLevelFour defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyGroupHierarchyPathLevelFour defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetUserHierarchyGroupHierarchyPathLevelFour defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetUserHierarchyGroupHierarchyPathLevelFour build() { - return new GetUserHierarchyGroupHierarchyPathLevelFour(arn, id, name); + } + public GetUserHierarchyGroupHierarchyPathLevelFour build() { + final var o = new GetUserHierarchyGroupHierarchyPathLevelFour(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelOne.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelOne.java index 887880743ae..fe051e81024 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelOne.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelOne.java @@ -13,28 +13,19 @@ public final class GetUserHierarchyGroupHierarchyPathLevelOne { * @return The Amazon Resource Name (ARN) of the hierarchy group. * */ - private final String arn; + private String arn; /** * @return The identifier of the hierarchy group. * */ - private final String id; + private String id; /** * @return Returns information on a specific hierarchy group by name * */ - private final String name; - - @CustomType.Constructor - private GetUserHierarchyGroupHierarchyPathLevelOne( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private GetUserHierarchyGroupHierarchyPathLevelOne() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy group. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyGroupHierarchyPathLevelOne defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyGroupHierarchyPathLevelOne defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetUserHierarchyGroupHierarchyPathLevelOne defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetUserHierarchyGroupHierarchyPathLevelOne build() { - return new GetUserHierarchyGroupHierarchyPathLevelOne(arn, id, name); + } + public GetUserHierarchyGroupHierarchyPathLevelOne build() { + final var o = new GetUserHierarchyGroupHierarchyPathLevelOne(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelThree.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelThree.java index bc11007bfe0..01b7fb48da4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelThree.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelThree.java @@ -13,28 +13,19 @@ public final class GetUserHierarchyGroupHierarchyPathLevelThree { * @return The Amazon Resource Name (ARN) of the hierarchy group. * */ - private final String arn; + private String arn; /** * @return The identifier of the hierarchy group. * */ - private final String id; + private String id; /** * @return Returns information on a specific hierarchy group by name * */ - private final String name; - - @CustomType.Constructor - private GetUserHierarchyGroupHierarchyPathLevelThree( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private GetUserHierarchyGroupHierarchyPathLevelThree() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy group. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyGroupHierarchyPathLevelThree defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyGroupHierarchyPathLevelThree defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetUserHierarchyGroupHierarchyPathLevelThree defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetUserHierarchyGroupHierarchyPathLevelThree build() { - return new GetUserHierarchyGroupHierarchyPathLevelThree(arn, id, name); + } + public GetUserHierarchyGroupHierarchyPathLevelThree build() { + final var o = new GetUserHierarchyGroupHierarchyPathLevelThree(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelTwo.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelTwo.java index 859b25364d9..63d1801b411 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelTwo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupHierarchyPathLevelTwo.java @@ -13,28 +13,19 @@ public final class GetUserHierarchyGroupHierarchyPathLevelTwo { * @return The Amazon Resource Name (ARN) of the hierarchy group. * */ - private final String arn; + private String arn; /** * @return The identifier of the hierarchy group. * */ - private final String id; + private String id; /** * @return Returns information on a specific hierarchy group by name * */ - private final String name; - - @CustomType.Constructor - private GetUserHierarchyGroupHierarchyPathLevelTwo( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private GetUserHierarchyGroupHierarchyPathLevelTwo() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy group. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyGroupHierarchyPathLevelTwo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyGroupHierarchyPathLevelTwo defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetUserHierarchyGroupHierarchyPathLevelTwo defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetUserHierarchyGroupHierarchyPathLevelTwo build() { - return new GetUserHierarchyGroupHierarchyPathLevelTwo(arn, id, name); + } + public GetUserHierarchyGroupHierarchyPathLevelTwo build() { + final var o = new GetUserHierarchyGroupHierarchyPathLevelTwo(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupResult.java index 944b4a8422a..43bf7877b5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyGroupResult.java @@ -16,55 +16,36 @@ public final class GetUserHierarchyGroupResult { * @return The Amazon Resource Name (ARN) of the hierarchy group. * */ - private final String arn; - private final String hierarchyGroupId; + private String arn; + private String hierarchyGroupId; /** * @return A block that contains information about the levels in the hierarchy group. The `hierarchy_path` block is documented below. * */ - private final List hierarchyPaths; + private List hierarchyPaths; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceId; + private String id; + private String instanceId; /** * @return The identifier of the level in the hierarchy group. * */ - private final String levelId; + private String levelId; /** * @return The name of the hierarchy group. * */ - private final String name; + private String name; /** * @return A map of tags to assign to the hierarchy group. * */ - private final Map tags; - - @CustomType.Constructor - private GetUserHierarchyGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("hierarchyGroupId") String hierarchyGroupId, - @CustomType.Parameter("hierarchyPaths") List hierarchyPaths, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("levelId") String levelId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.hierarchyGroupId = hierarchyGroupId; - this.hierarchyPaths = hierarchyPaths; - this.id = id; - this.instanceId = instanceId; - this.levelId = levelId; - this.name = name; - this.tags = tags; - } + private Map tags; + private GetUserHierarchyGroupResult() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy group. * @@ -121,7 +102,7 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String hierarchyGroupId; @@ -131,11 +112,7 @@ public static final class Builder { private String levelId; private String name; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -148,14 +125,17 @@ public Builder(GetUserHierarchyGroupResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder hierarchyGroupId(String hierarchyGroupId) { this.hierarchyGroupId = Objects.requireNonNull(hierarchyGroupId); return this; } + @CustomType.Setter public Builder hierarchyPaths(List hierarchyPaths) { this.hierarchyPaths = Objects.requireNonNull(hierarchyPaths); return this; @@ -163,27 +143,42 @@ public Builder hierarchyPaths(List hierarchy public Builder hierarchyPaths(GetUserHierarchyGroupHierarchyPath... hierarchyPaths) { return hierarchyPaths(List.of(hierarchyPaths)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder levelId(String levelId) { this.levelId = Objects.requireNonNull(levelId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetUserHierarchyGroupResult build() { - return new GetUserHierarchyGroupResult(arn, hierarchyGroupId, hierarchyPaths, id, instanceId, levelId, name, tags); + } + public GetUserHierarchyGroupResult build() { + final var o = new GetUserHierarchyGroupResult(); + o.arn = arn; + o.hierarchyGroupId = hierarchyGroupId; + o.hierarchyPaths = hierarchyPaths; + o.id = id; + o.instanceId = instanceId; + o.levelId = levelId; + o.name = name; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructure.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructure.java index c6a3860fcb6..d6765464e20 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructure.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructure.java @@ -18,42 +18,29 @@ public final class GetUserHierarchyStructureHierarchyStructure { * @return A block that defines the details of level five. The level block is documented below. * */ - private final List levelFives; + private List levelFives; /** * @return A block that defines the details of level four. The level block is documented below. * */ - private final List levelFours; + private List levelFours; /** * @return A block that defines the details of level one. The level block is documented below. * */ - private final List levelOnes; + private List levelOnes; /** * @return A block that defines the details of level three. The level block is documented below. * */ - private final List levelThrees; + private List levelThrees; /** * @return A block that defines the details of level two. The level block is documented below. * */ - private final List levelTwos; - - @CustomType.Constructor - private GetUserHierarchyStructureHierarchyStructure( - @CustomType.Parameter("levelFives") List levelFives, - @CustomType.Parameter("levelFours") List levelFours, - @CustomType.Parameter("levelOnes") List levelOnes, - @CustomType.Parameter("levelThrees") List levelThrees, - @CustomType.Parameter("levelTwos") List levelTwos) { - this.levelFives = levelFives; - this.levelFours = levelFours; - this.levelOnes = levelOnes; - this.levelThrees = levelThrees; - this.levelTwos = levelTwos; - } + private List levelTwos; + private GetUserHierarchyStructureHierarchyStructure() {} /** * @return A block that defines the details of level five. The level block is documented below. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyStructureHierarchyStructure defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List levelFives; private List levelFours; private List levelOnes; private List levelThrees; private List levelTwos; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyStructureHierarchyStructure defaults) { Objects.requireNonNull(defaults); this.levelFives = defaults.levelFives; @@ -118,6 +101,7 @@ public Builder(GetUserHierarchyStructureHierarchyStructure defaults) { this.levelTwos = defaults.levelTwos; } + @CustomType.Setter public Builder levelFives(List levelFives) { this.levelFives = Objects.requireNonNull(levelFives); return this; @@ -125,6 +109,7 @@ public Builder levelFives(List levelFours) { this.levelFours = Objects.requireNonNull(levelFours); return this; @@ -132,6 +117,7 @@ public Builder levelFours(List levelOnes) { this.levelOnes = Objects.requireNonNull(levelOnes); return this; @@ -139,6 +125,7 @@ public Builder levelOnes(List levelThrees) { this.levelThrees = Objects.requireNonNull(levelThrees); return this; @@ -146,14 +133,22 @@ public Builder levelThrees(List levelTwos) { this.levelTwos = Objects.requireNonNull(levelTwos); return this; } public Builder levelTwos(GetUserHierarchyStructureHierarchyStructureLevelTwo... levelTwos) { return levelTwos(List.of(levelTwos)); - } public GetUserHierarchyStructureHierarchyStructure build() { - return new GetUserHierarchyStructureHierarchyStructure(levelFives, levelFours, levelOnes, levelThrees, levelTwos); + } + public GetUserHierarchyStructureHierarchyStructure build() { + final var o = new GetUserHierarchyStructureHierarchyStructure(); + o.levelFives = levelFives; + o.levelFours = levelFours; + o.levelOnes = levelOnes; + o.levelThrees = levelThrees; + o.levelTwos = levelTwos; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelFife.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelFife.java index 21649a0bea0..dc4187ae8fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelFife.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelFife.java @@ -13,28 +13,19 @@ public final class GetUserHierarchyStructureHierarchyStructureLevelFife { * @return The Amazon Resource Name (ARN) of the hierarchy level. * */ - private final String arn; + private String arn; /** * @return The identifier of the hierarchy level. * */ - private final String id; + private String id; /** * @return The name of the user hierarchy level. Must not be more than 50 characters. * */ - private final String name; - - @CustomType.Constructor - private GetUserHierarchyStructureHierarchyStructureLevelFife( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private GetUserHierarchyStructureHierarchyStructureLevelFife() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy level. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyStructureHierarchyStructureLevelFife defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyStructureHierarchyStructureLevelFife defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetUserHierarchyStructureHierarchyStructureLevelFife defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetUserHierarchyStructureHierarchyStructureLevelFife build() { - return new GetUserHierarchyStructureHierarchyStructureLevelFife(arn, id, name); + } + public GetUserHierarchyStructureHierarchyStructureLevelFife build() { + final var o = new GetUserHierarchyStructureHierarchyStructureLevelFife(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelFour.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelFour.java index 7672a06eb73..16d51549fbe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelFour.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelFour.java @@ -13,28 +13,19 @@ public final class GetUserHierarchyStructureHierarchyStructureLevelFour { * @return The Amazon Resource Name (ARN) of the hierarchy level. * */ - private final String arn; + private String arn; /** * @return The identifier of the hierarchy level. * */ - private final String id; + private String id; /** * @return The name of the user hierarchy level. Must not be more than 50 characters. * */ - private final String name; - - @CustomType.Constructor - private GetUserHierarchyStructureHierarchyStructureLevelFour( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private GetUserHierarchyStructureHierarchyStructureLevelFour() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy level. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyStructureHierarchyStructureLevelFour defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyStructureHierarchyStructureLevelFour defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetUserHierarchyStructureHierarchyStructureLevelFour defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetUserHierarchyStructureHierarchyStructureLevelFour build() { - return new GetUserHierarchyStructureHierarchyStructureLevelFour(arn, id, name); + } + public GetUserHierarchyStructureHierarchyStructureLevelFour build() { + final var o = new GetUserHierarchyStructureHierarchyStructureLevelFour(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelOne.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelOne.java index de4529917d9..58d4ea5d9b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelOne.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelOne.java @@ -13,28 +13,19 @@ public final class GetUserHierarchyStructureHierarchyStructureLevelOne { * @return The Amazon Resource Name (ARN) of the hierarchy level. * */ - private final String arn; + private String arn; /** * @return The identifier of the hierarchy level. * */ - private final String id; + private String id; /** * @return The name of the user hierarchy level. Must not be more than 50 characters. * */ - private final String name; - - @CustomType.Constructor - private GetUserHierarchyStructureHierarchyStructureLevelOne( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private GetUserHierarchyStructureHierarchyStructureLevelOne() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy level. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyStructureHierarchyStructureLevelOne defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyStructureHierarchyStructureLevelOne defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetUserHierarchyStructureHierarchyStructureLevelOne defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetUserHierarchyStructureHierarchyStructureLevelOne build() { - return new GetUserHierarchyStructureHierarchyStructureLevelOne(arn, id, name); + } + public GetUserHierarchyStructureHierarchyStructureLevelOne build() { + final var o = new GetUserHierarchyStructureHierarchyStructureLevelOne(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelThree.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelThree.java index e32fe59f7db..7e3e8502129 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelThree.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelThree.java @@ -13,28 +13,19 @@ public final class GetUserHierarchyStructureHierarchyStructureLevelThree { * @return The Amazon Resource Name (ARN) of the hierarchy level. * */ - private final String arn; + private String arn; /** * @return The identifier of the hierarchy level. * */ - private final String id; + private String id; /** * @return The name of the user hierarchy level. Must not be more than 50 characters. * */ - private final String name; - - @CustomType.Constructor - private GetUserHierarchyStructureHierarchyStructureLevelThree( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private GetUserHierarchyStructureHierarchyStructureLevelThree() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy level. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyStructureHierarchyStructureLevelThree defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyStructureHierarchyStructureLevelThree defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetUserHierarchyStructureHierarchyStructureLevelThree defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetUserHierarchyStructureHierarchyStructureLevelThree build() { - return new GetUserHierarchyStructureHierarchyStructureLevelThree(arn, id, name); + } + public GetUserHierarchyStructureHierarchyStructureLevelThree build() { + final var o = new GetUserHierarchyStructureHierarchyStructureLevelThree(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelTwo.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelTwo.java index 34cff37561d..cece549002f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelTwo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureHierarchyStructureLevelTwo.java @@ -13,28 +13,19 @@ public final class GetUserHierarchyStructureHierarchyStructureLevelTwo { * @return The Amazon Resource Name (ARN) of the hierarchy level. * */ - private final String arn; + private String arn; /** * @return The identifier of the hierarchy level. * */ - private final String id; + private String id; /** * @return The name of the user hierarchy level. Must not be more than 50 characters. * */ - private final String name; - - @CustomType.Constructor - private GetUserHierarchyStructureHierarchyStructureLevelTwo( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private GetUserHierarchyStructureHierarchyStructureLevelTwo() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy level. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyStructureHierarchyStructureLevelTwo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyStructureHierarchyStructureLevelTwo defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetUserHierarchyStructureHierarchyStructureLevelTwo defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetUserHierarchyStructureHierarchyStructureLevelTwo build() { - return new GetUserHierarchyStructureHierarchyStructureLevelTwo(arn, id, name); + } + public GetUserHierarchyStructureHierarchyStructureLevelTwo build() { + final var o = new GetUserHierarchyStructureHierarchyStructureLevelTwo(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureResult.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureResult.java index cd6ec7e767d..b0ec8fe1942 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/GetUserHierarchyStructureResult.java @@ -15,24 +15,15 @@ public final class GetUserHierarchyStructureResult { * @return A block that defines the hierarchy structure's levels. The `hierarchy_structure` block is documented below. * */ - private final List hierarchyStructures; + private List hierarchyStructures; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceId; - - @CustomType.Constructor - private GetUserHierarchyStructureResult( - @CustomType.Parameter("hierarchyStructures") List hierarchyStructures, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId) { - this.hierarchyStructures = hierarchyStructures; - this.id = id; - this.instanceId = instanceId; - } + private String id; + private String instanceId; + private GetUserHierarchyStructureResult() {} /** * @return A block that defines the hierarchy structure's levels. The `hierarchy_structure` block is documented below. * @@ -58,16 +49,12 @@ public static Builder builder() { public static Builder builder(GetUserHierarchyStructureResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List hierarchyStructures; private String id; private String instanceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserHierarchyStructureResult defaults) { Objects.requireNonNull(defaults); this.hierarchyStructures = defaults.hierarchyStructures; @@ -75,6 +62,7 @@ public Builder(GetUserHierarchyStructureResult defaults) { this.instanceId = defaults.instanceId; } + @CustomType.Setter public Builder hierarchyStructures(List hierarchyStructures) { this.hierarchyStructures = Objects.requireNonNull(hierarchyStructures); return this; @@ -82,15 +70,22 @@ public Builder hierarchyStructures(List phoneConfigs; + private @Nullable List phoneConfigs; /** * @return Specifies the queue configuration of the Quick Connect. This is required only if `quick_connect_type` is `QUEUE`. The `queue_config` block is documented below. * */ - private final @Nullable List queueConfigs; + private @Nullable List queueConfigs; /** * @return Specifies the configuration type of the quick connect. valid values are `PHONE_NUMBER`, `QUEUE`, `USER`. * */ - private final String quickConnectType; + private String quickConnectType; /** * @return Specifies the user configuration of the Quick Connect. This is required only if `quick_connect_type` is `USER`. The `user_config` block is documented below. * */ - private final @Nullable List userConfigs; - - @CustomType.Constructor - private QuickConnectQuickConnectConfig( - @CustomType.Parameter("phoneConfigs") @Nullable List phoneConfigs, - @CustomType.Parameter("queueConfigs") @Nullable List queueConfigs, - @CustomType.Parameter("quickConnectType") String quickConnectType, - @CustomType.Parameter("userConfigs") @Nullable List userConfigs) { - this.phoneConfigs = phoneConfigs; - this.queueConfigs = queueConfigs; - this.quickConnectType = quickConnectType; - this.userConfigs = userConfigs; - } + private @Nullable List userConfigs; + private QuickConnectQuickConnectConfig() {} /** * @return Specifies the phone configuration of the Quick Connect. This is required only if `quick_connect_type` is `PHONE_NUMBER`. The `phone_config` block is documented below. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(QuickConnectQuickConnectConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List phoneConfigs; private @Nullable List queueConfigs; private String quickConnectType; private @Nullable List userConfigs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(QuickConnectQuickConnectConfig defaults) { Objects.requireNonNull(defaults); this.phoneConfigs = defaults.phoneConfigs; @@ -102,6 +87,7 @@ public Builder(QuickConnectQuickConnectConfig defaults) { this.userConfigs = defaults.userConfigs; } + @CustomType.Setter public Builder phoneConfigs(@Nullable List phoneConfigs) { this.phoneConfigs = phoneConfigs; return this; @@ -109,6 +95,7 @@ public Builder phoneConfigs(@Nullable List queueConfigs) { this.queueConfigs = queueConfigs; return this; @@ -116,18 +103,26 @@ public Builder queueConfigs(@Nullable List userConfigs) { this.userConfigs = userConfigs; return this; } public Builder userConfigs(QuickConnectQuickConnectConfigUserConfig... userConfigs) { return userConfigs(List.of(userConfigs)); - } public QuickConnectQuickConnectConfig build() { - return new QuickConnectQuickConnectConfig(phoneConfigs, queueConfigs, quickConnectType, userConfigs); + } + public QuickConnectQuickConnectConfig build() { + final var o = new QuickConnectQuickConnectConfig(); + o.phoneConfigs = phoneConfigs; + o.queueConfigs = queueConfigs; + o.quickConnectType = quickConnectType; + o.userConfigs = userConfigs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/QuickConnectQuickConnectConfigPhoneConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/QuickConnectQuickConnectConfigPhoneConfig.java index d719260d2f9..3e397f5f8ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/QuickConnectQuickConnectConfigPhoneConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/QuickConnectQuickConnectConfigPhoneConfig.java @@ -13,13 +13,9 @@ public final class QuickConnectQuickConnectConfigPhoneConfig { * @return Specifies the phone number in in E.164 format. * */ - private final String phoneNumber; - - @CustomType.Constructor - private QuickConnectQuickConnectConfigPhoneConfig(@CustomType.Parameter("phoneNumber") String phoneNumber) { - this.phoneNumber = phoneNumber; - } + private String phoneNumber; + private QuickConnectQuickConnectConfigPhoneConfig() {} /** * @return Specifies the phone number in in E.164 format. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(QuickConnectQuickConnectConfigPhoneConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String phoneNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(QuickConnectQuickConnectConfigPhoneConfig defaults) { Objects.requireNonNull(defaults); this.phoneNumber = defaults.phoneNumber; } + @CustomType.Setter public Builder phoneNumber(String phoneNumber) { this.phoneNumber = Objects.requireNonNull(phoneNumber); return this; - } public QuickConnectQuickConnectConfigPhoneConfig build() { - return new QuickConnectQuickConnectConfigPhoneConfig(phoneNumber); + } + public QuickConnectQuickConnectConfigPhoneConfig build() { + final var o = new QuickConnectQuickConnectConfigPhoneConfig(); + o.phoneNumber = phoneNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/QuickConnectQuickConnectConfigQueueConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/QuickConnectQuickConnectConfigQueueConfig.java index 7821c19c547..ad27d65a8e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/QuickConnectQuickConnectConfigQueueConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/QuickConnectQuickConnectConfigQueueConfig.java @@ -13,21 +13,14 @@ public final class QuickConnectQuickConnectConfigQueueConfig { * @return Specifies the identifier of the contact flow. * */ - private final String contactFlowId; + private String contactFlowId; /** * @return Specifies the identifier for the queue. * */ - private final String queueId; - - @CustomType.Constructor - private QuickConnectQuickConnectConfigQueueConfig( - @CustomType.Parameter("contactFlowId") String contactFlowId, - @CustomType.Parameter("queueId") String queueId) { - this.contactFlowId = contactFlowId; - this.queueId = queueId; - } + private String queueId; + private QuickConnectQuickConnectConfigQueueConfig() {} /** * @return Specifies the identifier of the contact flow. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(QuickConnectQuickConnectConfigQueueConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contactFlowId; private String queueId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(QuickConnectQuickConnectConfigQueueConfig defaults) { Objects.requireNonNull(defaults); this.contactFlowId = defaults.contactFlowId; this.queueId = defaults.queueId; } + @CustomType.Setter public Builder contactFlowId(String contactFlowId) { this.contactFlowId = Objects.requireNonNull(contactFlowId); return this; } + @CustomType.Setter public Builder queueId(String queueId) { this.queueId = Objects.requireNonNull(queueId); return this; - } public QuickConnectQuickConnectConfigQueueConfig build() { - return new QuickConnectQuickConnectConfigQueueConfig(contactFlowId, queueId); + } + public QuickConnectQuickConnectConfigQueueConfig build() { + final var o = new QuickConnectQuickConnectConfigQueueConfig(); + o.contactFlowId = contactFlowId; + o.queueId = queueId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/QuickConnectQuickConnectConfigUserConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/QuickConnectQuickConnectConfigUserConfig.java index 7c6d2bb1376..e5e382c333b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/QuickConnectQuickConnectConfigUserConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/QuickConnectQuickConnectConfigUserConfig.java @@ -13,21 +13,14 @@ public final class QuickConnectQuickConnectConfigUserConfig { * @return Specifies the identifier of the contact flow. * */ - private final String contactFlowId; + private String contactFlowId; /** * @return Specifies the identifier for the user. * */ - private final String userId; - - @CustomType.Constructor - private QuickConnectQuickConnectConfigUserConfig( - @CustomType.Parameter("contactFlowId") String contactFlowId, - @CustomType.Parameter("userId") String userId) { - this.contactFlowId = contactFlowId; - this.userId = userId; - } + private String userId; + private QuickConnectQuickConnectConfigUserConfig() {} /** * @return Specifies the identifier of the contact flow. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(QuickConnectQuickConnectConfigUserConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contactFlowId; private String userId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(QuickConnectQuickConnectConfigUserConfig defaults) { Objects.requireNonNull(defaults); this.contactFlowId = defaults.contactFlowId; this.userId = defaults.userId; } + @CustomType.Setter public Builder contactFlowId(String contactFlowId) { this.contactFlowId = Objects.requireNonNull(contactFlowId); return this; } + @CustomType.Setter public Builder userId(String userId) { this.userId = Objects.requireNonNull(userId); return this; - } public QuickConnectQuickConnectConfigUserConfig build() { - return new QuickConnectQuickConnectConfigUserConfig(contactFlowId, userId); + } + public QuickConnectQuickConnectConfigUserConfig build() { + final var o = new QuickConnectQuickConnectConfigUserConfig(); + o.contactFlowId = contactFlowId; + o.userId = userId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/RoutingProfileMediaConcurrency.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/RoutingProfileMediaConcurrency.java index 813e0789a99..7c4a4708465 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/RoutingProfileMediaConcurrency.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/RoutingProfileMediaConcurrency.java @@ -14,21 +14,14 @@ public final class RoutingProfileMediaConcurrency { * @return Specifies the channels that agents can handle in the Contact Control Panel (CCP). Valid values are `VOICE`, `CHAT`, `TASK`. * */ - private final String channel; + private String channel; /** * @return Specifies the number of contacts an agent can have on a channel simultaneously. Valid Range for `VOICE`: Minimum value of 1. Maximum value of 1. Valid Range for `CHAT`: Minimum value of 1. Maximum value of 10. Valid Range for `TASK`: Minimum value of 1. Maximum value of 10. * */ - private final Integer concurrency; - - @CustomType.Constructor - private RoutingProfileMediaConcurrency( - @CustomType.Parameter("channel") String channel, - @CustomType.Parameter("concurrency") Integer concurrency) { - this.channel = channel; - this.concurrency = concurrency; - } + private Integer concurrency; + private RoutingProfileMediaConcurrency() {} /** * @return Specifies the channels that agents can handle in the Contact Control Panel (CCP). Valid values are `VOICE`, `CHAT`, `TASK`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RoutingProfileMediaConcurrency defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String channel; private Integer concurrency; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RoutingProfileMediaConcurrency defaults) { Objects.requireNonNull(defaults); this.channel = defaults.channel; this.concurrency = defaults.concurrency; } + @CustomType.Setter public Builder channel(String channel) { this.channel = Objects.requireNonNull(channel); return this; } + @CustomType.Setter public Builder concurrency(Integer concurrency) { this.concurrency = Objects.requireNonNull(concurrency); return this; - } public RoutingProfileMediaConcurrency build() { - return new RoutingProfileMediaConcurrency(channel, concurrency); + } + public RoutingProfileMediaConcurrency build() { + final var o = new RoutingProfileMediaConcurrency(); + o.channel = channel; + o.concurrency = concurrency; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/RoutingProfileQueueConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/RoutingProfileQueueConfig.java index fe9891ed5ed..5383e362981 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/RoutingProfileQueueConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/RoutingProfileQueueConfig.java @@ -16,49 +16,34 @@ public final class RoutingProfileQueueConfig { * @return Specifies the channels agents can handle in the Contact Control Panel (CCP) for this routing profile. Valid values are `VOICE`, `CHAT`, `TASK`. * */ - private final String channel; + private String channel; /** * @return Specifies the delay, in seconds, that a contact should be in the queue before they are routed to an available agent * */ - private final Integer delay; + private Integer delay; /** * @return Specifies the order in which contacts are to be handled for the queue. * */ - private final Integer priority; + private Integer priority; /** * @return Specifies the ARN for the queue. * */ - private final @Nullable String queueArn; + private @Nullable String queueArn; /** * @return Specifies the identifier for the queue. * */ - private final String queueId; + private String queueId; /** * @return Specifies the name for the queue. * */ - private final @Nullable String queueName; - - @CustomType.Constructor - private RoutingProfileQueueConfig( - @CustomType.Parameter("channel") String channel, - @CustomType.Parameter("delay") Integer delay, - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("queueArn") @Nullable String queueArn, - @CustomType.Parameter("queueId") String queueId, - @CustomType.Parameter("queueName") @Nullable String queueName) { - this.channel = channel; - this.delay = delay; - this.priority = priority; - this.queueArn = queueArn; - this.queueId = queueId; - this.queueName = queueName; - } + private @Nullable String queueName; + private RoutingProfileQueueConfig() {} /** * @return Specifies the channels agents can handle in the Contact Control Panel (CCP) for this routing profile. Valid values are `VOICE`, `CHAT`, `TASK`. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(RoutingProfileQueueConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String channel; private Integer delay; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable String queueArn; private String queueId; private @Nullable String queueName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RoutingProfileQueueConfig defaults) { Objects.requireNonNull(defaults); this.channel = defaults.channel; @@ -132,31 +113,45 @@ public Builder(RoutingProfileQueueConfig defaults) { this.queueName = defaults.queueName; } + @CustomType.Setter public Builder channel(String channel) { this.channel = Objects.requireNonNull(channel); return this; } + @CustomType.Setter public Builder delay(Integer delay) { this.delay = Objects.requireNonNull(delay); return this; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder queueArn(@Nullable String queueArn) { this.queueArn = queueArn; return this; } + @CustomType.Setter public Builder queueId(String queueId) { this.queueId = Objects.requireNonNull(queueId); return this; } + @CustomType.Setter public Builder queueName(@Nullable String queueName) { this.queueName = queueName; return this; - } public RoutingProfileQueueConfig build() { - return new RoutingProfileQueueConfig(channel, delay, priority, queueArn, queueId, queueName); + } + public RoutingProfileQueueConfig build() { + final var o = new RoutingProfileQueueConfig(); + o.channel = channel; + o.delay = delay; + o.priority = priority; + o.queueArn = queueArn; + o.queueId = queueId; + o.queueName = queueName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/RoutingProfileQueueConfigsAssociated.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/RoutingProfileQueueConfigsAssociated.java index d0327b1df43..3cb63784dcb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/RoutingProfileQueueConfigsAssociated.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/RoutingProfileQueueConfigsAssociated.java @@ -16,49 +16,34 @@ public final class RoutingProfileQueueConfigsAssociated { * @return Specifies the channels that agents can handle in the Contact Control Panel (CCP). Valid values are `VOICE`, `CHAT`, `TASK`. * */ - private final @Nullable String channel; + private @Nullable String channel; /** * @return Specifies the delay, in seconds, that a contact should be in the queue before they are routed to an available agent * */ - private final @Nullable Integer delay; + private @Nullable Integer delay; /** * @return Specifies the order in which contacts are to be handled for the queue. * */ - private final @Nullable Integer priority; + private @Nullable Integer priority; /** * @return Specifies the ARN for the queue. * */ - private final @Nullable String queueArn; + private @Nullable String queueArn; /** * @return Specifies the identifier for the queue. * */ - private final @Nullable String queueId; + private @Nullable String queueId; /** * @return Specifies the name for the queue. * */ - private final @Nullable String queueName; - - @CustomType.Constructor - private RoutingProfileQueueConfigsAssociated( - @CustomType.Parameter("channel") @Nullable String channel, - @CustomType.Parameter("delay") @Nullable Integer delay, - @CustomType.Parameter("priority") @Nullable Integer priority, - @CustomType.Parameter("queueArn") @Nullable String queueArn, - @CustomType.Parameter("queueId") @Nullable String queueId, - @CustomType.Parameter("queueName") @Nullable String queueName) { - this.channel = channel; - this.delay = delay; - this.priority = priority; - this.queueArn = queueArn; - this.queueId = queueId; - this.queueName = queueName; - } + private @Nullable String queueName; + private RoutingProfileQueueConfigsAssociated() {} /** * @return Specifies the channels that agents can handle in the Contact Control Panel (CCP). Valid values are `VOICE`, `CHAT`, `TASK`. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(RoutingProfileQueueConfigsAssociated defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String channel; private @Nullable Integer delay; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable String queueArn; private @Nullable String queueId; private @Nullable String queueName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RoutingProfileQueueConfigsAssociated defaults) { Objects.requireNonNull(defaults); this.channel = defaults.channel; @@ -132,31 +113,45 @@ public Builder(RoutingProfileQueueConfigsAssociated defaults) { this.queueName = defaults.queueName; } + @CustomType.Setter public Builder channel(@Nullable String channel) { this.channel = channel; return this; } + @CustomType.Setter public Builder delay(@Nullable Integer delay) { this.delay = delay; return this; } + @CustomType.Setter public Builder priority(@Nullable Integer priority) { this.priority = priority; return this; } + @CustomType.Setter public Builder queueArn(@Nullable String queueArn) { this.queueArn = queueArn; return this; } + @CustomType.Setter public Builder queueId(@Nullable String queueId) { this.queueId = queueId; return this; } + @CustomType.Setter public Builder queueName(@Nullable String queueName) { this.queueName = queueName; return this; - } public RoutingProfileQueueConfigsAssociated build() { - return new RoutingProfileQueueConfigsAssociated(channel, delay, priority, queueArn, queueId, queueName); + } + public RoutingProfileQueueConfigsAssociated build() { + final var o = new RoutingProfileQueueConfigsAssociated(); + o.channel = channel; + o.delay = delay; + o.priority = priority; + o.queueArn = queueArn; + o.queueId = queueId; + o.queueName = queueName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPath.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPath.java index a684832a5a9..554b9712dbd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPath.java @@ -19,42 +19,29 @@ public final class UserHierarchyGroupHierarchyPath { * @return A block that defines the details of level five. The level block is documented below. * */ - private final @Nullable List levelFives; + private @Nullable List levelFives; /** * @return A block that defines the details of level four. The level block is documented below. * */ - private final @Nullable List levelFours; + private @Nullable List levelFours; /** * @return A block that defines the details of level one. The level block is documented below. * */ - private final @Nullable List levelOnes; + private @Nullable List levelOnes; /** * @return A block that defines the details of level three. The level block is documented below. * */ - private final @Nullable List levelThrees; + private @Nullable List levelThrees; /** * @return A block that defines the details of level two. The level block is documented below. * */ - private final @Nullable List levelTwos; - - @CustomType.Constructor - private UserHierarchyGroupHierarchyPath( - @CustomType.Parameter("levelFives") @Nullable List levelFives, - @CustomType.Parameter("levelFours") @Nullable List levelFours, - @CustomType.Parameter("levelOnes") @Nullable List levelOnes, - @CustomType.Parameter("levelThrees") @Nullable List levelThrees, - @CustomType.Parameter("levelTwos") @Nullable List levelTwos) { - this.levelFives = levelFives; - this.levelFours = levelFours; - this.levelOnes = levelOnes; - this.levelThrees = levelThrees; - this.levelTwos = levelTwos; - } + private @Nullable List levelTwos; + private UserHierarchyGroupHierarchyPath() {} /** * @return A block that defines the details of level five. The level block is documented below. * @@ -98,18 +85,14 @@ public static Builder builder() { public static Builder builder(UserHierarchyGroupHierarchyPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List levelFives; private @Nullable List levelFours; private @Nullable List levelOnes; private @Nullable List levelThrees; private @Nullable List levelTwos; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHierarchyGroupHierarchyPath defaults) { Objects.requireNonNull(defaults); this.levelFives = defaults.levelFives; @@ -119,6 +102,7 @@ public Builder(UserHierarchyGroupHierarchyPath defaults) { this.levelTwos = defaults.levelTwos; } + @CustomType.Setter public Builder levelFives(@Nullable List levelFives) { this.levelFives = levelFives; return this; @@ -126,6 +110,7 @@ public Builder levelFives(@Nullable List levelFours) { this.levelFours = levelFours; return this; @@ -133,6 +118,7 @@ public Builder levelFours(@Nullable List levelOnes) { this.levelOnes = levelOnes; return this; @@ -140,6 +126,7 @@ public Builder levelOnes(@Nullable List public Builder levelOnes(UserHierarchyGroupHierarchyPathLevelOne... levelOnes) { return levelOnes(List.of(levelOnes)); } + @CustomType.Setter public Builder levelThrees(@Nullable List levelThrees) { this.levelThrees = levelThrees; return this; @@ -147,14 +134,22 @@ public Builder levelThrees(@Nullable List levelTwos) { this.levelTwos = levelTwos; return this; } public Builder levelTwos(UserHierarchyGroupHierarchyPathLevelTwo... levelTwos) { return levelTwos(List.of(levelTwos)); - } public UserHierarchyGroupHierarchyPath build() { - return new UserHierarchyGroupHierarchyPath(levelFives, levelFours, levelOnes, levelThrees, levelTwos); + } + public UserHierarchyGroupHierarchyPath build() { + final var o = new UserHierarchyGroupHierarchyPath(); + o.levelFives = levelFives; + o.levelFours = levelFours; + o.levelOnes = levelOnes; + o.levelThrees = levelThrees; + o.levelTwos = levelTwos; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelFife.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelFife.java index 93fdc001b14..dfa02a8d615 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelFife.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelFife.java @@ -15,28 +15,19 @@ public final class UserHierarchyGroupHierarchyPathLevelFife { * @return The Amazon Resource Name (ARN) of the hierarchy group. * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return The identifier of the hierarchy group. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the user hierarchy group. Must not be more than 100 characters. * */ - private final @Nullable String name; - - @CustomType.Constructor - private UserHierarchyGroupHierarchyPathLevelFife( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private @Nullable String name; + private UserHierarchyGroupHierarchyPathLevelFife() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy group. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserHierarchyGroupHierarchyPathLevelFife defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String id; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHierarchyGroupHierarchyPathLevelFife defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -83,19 +70,27 @@ public Builder(UserHierarchyGroupHierarchyPathLevelFife defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public UserHierarchyGroupHierarchyPathLevelFife build() { - return new UserHierarchyGroupHierarchyPathLevelFife(arn, id, name); + } + public UserHierarchyGroupHierarchyPathLevelFife build() { + final var o = new UserHierarchyGroupHierarchyPathLevelFife(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelFour.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelFour.java index 373e91ef5a4..36bce02b868 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelFour.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelFour.java @@ -15,28 +15,19 @@ public final class UserHierarchyGroupHierarchyPathLevelFour { * @return The Amazon Resource Name (ARN) of the hierarchy group. * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return The identifier of the hierarchy group. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the user hierarchy group. Must not be more than 100 characters. * */ - private final @Nullable String name; - - @CustomType.Constructor - private UserHierarchyGroupHierarchyPathLevelFour( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private @Nullable String name; + private UserHierarchyGroupHierarchyPathLevelFour() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy group. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserHierarchyGroupHierarchyPathLevelFour defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String id; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHierarchyGroupHierarchyPathLevelFour defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -83,19 +70,27 @@ public Builder(UserHierarchyGroupHierarchyPathLevelFour defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public UserHierarchyGroupHierarchyPathLevelFour build() { - return new UserHierarchyGroupHierarchyPathLevelFour(arn, id, name); + } + public UserHierarchyGroupHierarchyPathLevelFour build() { + final var o = new UserHierarchyGroupHierarchyPathLevelFour(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelOne.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelOne.java index a4dbdc59f2f..c78a621cb54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelOne.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelOne.java @@ -15,28 +15,19 @@ public final class UserHierarchyGroupHierarchyPathLevelOne { * @return The Amazon Resource Name (ARN) of the hierarchy group. * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return The identifier of the hierarchy group. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the user hierarchy group. Must not be more than 100 characters. * */ - private final @Nullable String name; - - @CustomType.Constructor - private UserHierarchyGroupHierarchyPathLevelOne( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private @Nullable String name; + private UserHierarchyGroupHierarchyPathLevelOne() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy group. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserHierarchyGroupHierarchyPathLevelOne defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String id; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHierarchyGroupHierarchyPathLevelOne defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -83,19 +70,27 @@ public Builder(UserHierarchyGroupHierarchyPathLevelOne defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public UserHierarchyGroupHierarchyPathLevelOne build() { - return new UserHierarchyGroupHierarchyPathLevelOne(arn, id, name); + } + public UserHierarchyGroupHierarchyPathLevelOne build() { + final var o = new UserHierarchyGroupHierarchyPathLevelOne(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelThree.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelThree.java index fada6324cd3..16cc9e4520e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelThree.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelThree.java @@ -15,28 +15,19 @@ public final class UserHierarchyGroupHierarchyPathLevelThree { * @return The Amazon Resource Name (ARN) of the hierarchy group. * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return The identifier of the hierarchy group. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the user hierarchy group. Must not be more than 100 characters. * */ - private final @Nullable String name; - - @CustomType.Constructor - private UserHierarchyGroupHierarchyPathLevelThree( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private @Nullable String name; + private UserHierarchyGroupHierarchyPathLevelThree() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy group. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserHierarchyGroupHierarchyPathLevelThree defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String id; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHierarchyGroupHierarchyPathLevelThree defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -83,19 +70,27 @@ public Builder(UserHierarchyGroupHierarchyPathLevelThree defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public UserHierarchyGroupHierarchyPathLevelThree build() { - return new UserHierarchyGroupHierarchyPathLevelThree(arn, id, name); + } + public UserHierarchyGroupHierarchyPathLevelThree build() { + final var o = new UserHierarchyGroupHierarchyPathLevelThree(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelTwo.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelTwo.java index 8c2430ed6f8..edb9796053c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelTwo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyGroupHierarchyPathLevelTwo.java @@ -15,28 +15,19 @@ public final class UserHierarchyGroupHierarchyPathLevelTwo { * @return The Amazon Resource Name (ARN) of the hierarchy group. * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return The identifier of the hierarchy group. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the user hierarchy group. Must not be more than 100 characters. * */ - private final @Nullable String name; - - @CustomType.Constructor - private UserHierarchyGroupHierarchyPathLevelTwo( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private @Nullable String name; + private UserHierarchyGroupHierarchyPathLevelTwo() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy group. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserHierarchyGroupHierarchyPathLevelTwo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String id; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHierarchyGroupHierarchyPathLevelTwo defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -83,19 +70,27 @@ public Builder(UserHierarchyGroupHierarchyPathLevelTwo defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public UserHierarchyGroupHierarchyPathLevelTwo build() { - return new UserHierarchyGroupHierarchyPathLevelTwo(arn, id, name); + } + public UserHierarchyGroupHierarchyPathLevelTwo build() { + final var o = new UserHierarchyGroupHierarchyPathLevelTwo(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructure.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructure.java index a56a5d27732..47f15981d90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructure.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructure.java @@ -19,42 +19,29 @@ public final class UserHierarchyStructureHierarchyStructure { * @return A block that defines the details of level five. The level block is documented below. * */ - private final @Nullable UserHierarchyStructureHierarchyStructureLevelFive levelFive; + private @Nullable UserHierarchyStructureHierarchyStructureLevelFive levelFive; /** * @return A block that defines the details of level four. The level block is documented below. * */ - private final @Nullable UserHierarchyStructureHierarchyStructureLevelFour levelFour; + private @Nullable UserHierarchyStructureHierarchyStructureLevelFour levelFour; /** * @return A block that defines the details of level one. The level block is documented below. * */ - private final @Nullable UserHierarchyStructureHierarchyStructureLevelOne levelOne; + private @Nullable UserHierarchyStructureHierarchyStructureLevelOne levelOne; /** * @return A block that defines the details of level three. The level block is documented below. * */ - private final @Nullable UserHierarchyStructureHierarchyStructureLevelThree levelThree; + private @Nullable UserHierarchyStructureHierarchyStructureLevelThree levelThree; /** * @return A block that defines the details of level two. The level block is documented below. * */ - private final @Nullable UserHierarchyStructureHierarchyStructureLevelTwo levelTwo; - - @CustomType.Constructor - private UserHierarchyStructureHierarchyStructure( - @CustomType.Parameter("levelFive") @Nullable UserHierarchyStructureHierarchyStructureLevelFive levelFive, - @CustomType.Parameter("levelFour") @Nullable UserHierarchyStructureHierarchyStructureLevelFour levelFour, - @CustomType.Parameter("levelOne") @Nullable UserHierarchyStructureHierarchyStructureLevelOne levelOne, - @CustomType.Parameter("levelThree") @Nullable UserHierarchyStructureHierarchyStructureLevelThree levelThree, - @CustomType.Parameter("levelTwo") @Nullable UserHierarchyStructureHierarchyStructureLevelTwo levelTwo) { - this.levelFive = levelFive; - this.levelFour = levelFour; - this.levelOne = levelOne; - this.levelThree = levelThree; - this.levelTwo = levelTwo; - } + private @Nullable UserHierarchyStructureHierarchyStructureLevelTwo levelTwo; + private UserHierarchyStructureHierarchyStructure() {} /** * @return A block that defines the details of level five. The level block is documented below. * @@ -98,18 +85,14 @@ public static Builder builder() { public static Builder builder(UserHierarchyStructureHierarchyStructure defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable UserHierarchyStructureHierarchyStructureLevelFive levelFive; private @Nullable UserHierarchyStructureHierarchyStructureLevelFour levelFour; private @Nullable UserHierarchyStructureHierarchyStructureLevelOne levelOne; private @Nullable UserHierarchyStructureHierarchyStructureLevelThree levelThree; private @Nullable UserHierarchyStructureHierarchyStructureLevelTwo levelTwo; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHierarchyStructureHierarchyStructure defaults) { Objects.requireNonNull(defaults); this.levelFive = defaults.levelFive; @@ -119,27 +102,39 @@ public Builder(UserHierarchyStructureHierarchyStructure defaults) { this.levelTwo = defaults.levelTwo; } + @CustomType.Setter public Builder levelFive(@Nullable UserHierarchyStructureHierarchyStructureLevelFive levelFive) { this.levelFive = levelFive; return this; } + @CustomType.Setter public Builder levelFour(@Nullable UserHierarchyStructureHierarchyStructureLevelFour levelFour) { this.levelFour = levelFour; return this; } + @CustomType.Setter public Builder levelOne(@Nullable UserHierarchyStructureHierarchyStructureLevelOne levelOne) { this.levelOne = levelOne; return this; } + @CustomType.Setter public Builder levelThree(@Nullable UserHierarchyStructureHierarchyStructureLevelThree levelThree) { this.levelThree = levelThree; return this; } + @CustomType.Setter public Builder levelTwo(@Nullable UserHierarchyStructureHierarchyStructureLevelTwo levelTwo) { this.levelTwo = levelTwo; return this; - } public UserHierarchyStructureHierarchyStructure build() { - return new UserHierarchyStructureHierarchyStructure(levelFive, levelFour, levelOne, levelThree, levelTwo); + } + public UserHierarchyStructureHierarchyStructure build() { + final var o = new UserHierarchyStructureHierarchyStructure(); + o.levelFive = levelFive; + o.levelFour = levelFour; + o.levelOne = levelOne; + o.levelThree = levelThree; + o.levelTwo = levelTwo; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelFive.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelFive.java index 6dde464ec5c..59be22d9e40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelFive.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelFive.java @@ -15,28 +15,19 @@ public final class UserHierarchyStructureHierarchyStructureLevelFive { * @return The Amazon Resource Name (ARN) of the hierarchy level. * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return The identifier of the hierarchy level. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the user hierarchy level. Must not be more than 50 characters. * */ - private final String name; - - @CustomType.Constructor - private UserHierarchyStructureHierarchyStructureLevelFive( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private UserHierarchyStructureHierarchyStructureLevelFive() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy level. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserHierarchyStructureHierarchyStructureLevelFive defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHierarchyStructureHierarchyStructureLevelFive defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -83,19 +70,27 @@ public Builder(UserHierarchyStructureHierarchyStructureLevelFive defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public UserHierarchyStructureHierarchyStructureLevelFive build() { - return new UserHierarchyStructureHierarchyStructureLevelFive(arn, id, name); + } + public UserHierarchyStructureHierarchyStructureLevelFive build() { + final var o = new UserHierarchyStructureHierarchyStructureLevelFive(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelFour.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelFour.java index 0f5749d0420..137c2b4aac4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelFour.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelFour.java @@ -15,28 +15,19 @@ public final class UserHierarchyStructureHierarchyStructureLevelFour { * @return The Amazon Resource Name (ARN) of the hierarchy level. * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return The identifier of the hierarchy level. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the user hierarchy level. Must not be more than 50 characters. * */ - private final String name; - - @CustomType.Constructor - private UserHierarchyStructureHierarchyStructureLevelFour( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private UserHierarchyStructureHierarchyStructureLevelFour() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy level. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserHierarchyStructureHierarchyStructureLevelFour defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHierarchyStructureHierarchyStructureLevelFour defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -83,19 +70,27 @@ public Builder(UserHierarchyStructureHierarchyStructureLevelFour defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public UserHierarchyStructureHierarchyStructureLevelFour build() { - return new UserHierarchyStructureHierarchyStructureLevelFour(arn, id, name); + } + public UserHierarchyStructureHierarchyStructureLevelFour build() { + final var o = new UserHierarchyStructureHierarchyStructureLevelFour(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelOne.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelOne.java index f27990b9476..7e236fa7747 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelOne.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelOne.java @@ -15,28 +15,19 @@ public final class UserHierarchyStructureHierarchyStructureLevelOne { * @return The Amazon Resource Name (ARN) of the hierarchy level. * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return The identifier of the hierarchy level. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the user hierarchy level. Must not be more than 50 characters. * */ - private final String name; - - @CustomType.Constructor - private UserHierarchyStructureHierarchyStructureLevelOne( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private UserHierarchyStructureHierarchyStructureLevelOne() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy level. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserHierarchyStructureHierarchyStructureLevelOne defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHierarchyStructureHierarchyStructureLevelOne defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -83,19 +70,27 @@ public Builder(UserHierarchyStructureHierarchyStructureLevelOne defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public UserHierarchyStructureHierarchyStructureLevelOne build() { - return new UserHierarchyStructureHierarchyStructureLevelOne(arn, id, name); + } + public UserHierarchyStructureHierarchyStructureLevelOne build() { + final var o = new UserHierarchyStructureHierarchyStructureLevelOne(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelThree.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelThree.java index e52399a3d84..bce2a4dd183 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelThree.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelThree.java @@ -15,28 +15,19 @@ public final class UserHierarchyStructureHierarchyStructureLevelThree { * @return The Amazon Resource Name (ARN) of the hierarchy level. * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return The identifier of the hierarchy level. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the user hierarchy level. Must not be more than 50 characters. * */ - private final String name; - - @CustomType.Constructor - private UserHierarchyStructureHierarchyStructureLevelThree( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private UserHierarchyStructureHierarchyStructureLevelThree() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy level. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserHierarchyStructureHierarchyStructureLevelThree defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHierarchyStructureHierarchyStructureLevelThree defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -83,19 +70,27 @@ public Builder(UserHierarchyStructureHierarchyStructureLevelThree defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public UserHierarchyStructureHierarchyStructureLevelThree build() { - return new UserHierarchyStructureHierarchyStructureLevelThree(arn, id, name); + } + public UserHierarchyStructureHierarchyStructureLevelThree build() { + final var o = new UserHierarchyStructureHierarchyStructureLevelThree(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelTwo.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelTwo.java index b52e15b9292..f5ca3f71f56 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelTwo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserHierarchyStructureHierarchyStructureLevelTwo.java @@ -15,28 +15,19 @@ public final class UserHierarchyStructureHierarchyStructureLevelTwo { * @return The Amazon Resource Name (ARN) of the hierarchy level. * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return The identifier of the hierarchy level. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the user hierarchy level. Must not be more than 50 characters. * */ - private final String name; - - @CustomType.Constructor - private UserHierarchyStructureHierarchyStructureLevelTwo( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private UserHierarchyStructureHierarchyStructureLevelTwo() {} /** * @return The Amazon Resource Name (ARN) of the hierarchy level. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserHierarchyStructureHierarchyStructureLevelTwo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHierarchyStructureHierarchyStructureLevelTwo defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -83,19 +70,27 @@ public Builder(UserHierarchyStructureHierarchyStructureLevelTwo defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public UserHierarchyStructureHierarchyStructureLevelTwo build() { - return new UserHierarchyStructureHierarchyStructureLevelTwo(arn, id, name); + } + public UserHierarchyStructureHierarchyStructureLevelTwo build() { + final var o = new UserHierarchyStructureHierarchyStructureLevelTwo(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserIdentityInfo.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserIdentityInfo.java index 7c39a43cf52..b691b405c65 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserIdentityInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserIdentityInfo.java @@ -15,28 +15,19 @@ public final class UserIdentityInfo { * @return The email address. If you are using SAML for identity management and include this parameter, an error is returned. Note that updates to the `email` is supported. From the [UpdateUserIdentityInfo API documentation](https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateUserIdentityInfo.html) it is strongly recommended to limit who has the ability to invoke `UpdateUserIdentityInfo`. Someone with that ability can change the login credentials of other users by changing their email address. This poses a security risk to your organization. They can change the email address of a user to the attacker's email address, and then reset the password through email. For more information, see [Best Practices for Security Profiles](https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-best-practices.html) in the Amazon Connect Administrator Guide. * */ - private final @Nullable String email; + private @Nullable String email; /** * @return The first name. This is required if you are using Amazon Connect or SAML for identity management. Minimum length of 1. Maximum length of 100. * */ - private final @Nullable String firstName; + private @Nullable String firstName; /** * @return The last name. This is required if you are using Amazon Connect or SAML for identity management. Minimum length of 1. Maximum length of 100. * */ - private final @Nullable String lastName; - - @CustomType.Constructor - private UserIdentityInfo( - @CustomType.Parameter("email") @Nullable String email, - @CustomType.Parameter("firstName") @Nullable String firstName, - @CustomType.Parameter("lastName") @Nullable String lastName) { - this.email = email; - this.firstName = firstName; - this.lastName = lastName; - } + private @Nullable String lastName; + private UserIdentityInfo() {} /** * @return The email address. If you are using SAML for identity management and include this parameter, an error is returned. Note that updates to the `email` is supported. From the [UpdateUserIdentityInfo API documentation](https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateUserIdentityInfo.html) it is strongly recommended to limit who has the ability to invoke `UpdateUserIdentityInfo`. Someone with that ability can change the login credentials of other users by changing their email address. This poses a security risk to your organization. They can change the email address of a user to the attacker's email address, and then reset the password through email. For more information, see [Best Practices for Security Profiles](https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-best-practices.html) in the Amazon Connect Administrator Guide. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserIdentityInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String email; private @Nullable String firstName; private @Nullable String lastName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserIdentityInfo defaults) { Objects.requireNonNull(defaults); this.email = defaults.email; @@ -83,19 +70,27 @@ public Builder(UserIdentityInfo defaults) { this.lastName = defaults.lastName; } + @CustomType.Setter public Builder email(@Nullable String email) { this.email = email; return this; } + @CustomType.Setter public Builder firstName(@Nullable String firstName) { this.firstName = firstName; return this; } + @CustomType.Setter public Builder lastName(@Nullable String lastName) { this.lastName = lastName; return this; - } public UserIdentityInfo build() { - return new UserIdentityInfo(email, firstName, lastName); + } + public UserIdentityInfo build() { + final var o = new UserIdentityInfo(); + o.email = email; + o.firstName = firstName; + o.lastName = lastName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserPhoneConfig.java b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserPhoneConfig.java index a51f506ce18..12af02430ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserPhoneConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/connect/outputs/UserPhoneConfig.java @@ -17,35 +17,24 @@ public final class UserPhoneConfig { * @return The After Call Work (ACW) timeout setting, in seconds. Minimum value of 0. * */ - private final @Nullable Integer afterContactWorkTimeLimit; + private @Nullable Integer afterContactWorkTimeLimit; /** * @return When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically. * */ - private final @Nullable Boolean autoAccept; + private @Nullable Boolean autoAccept; /** * @return The phone number for the user's desk phone. Required if `phone_type` is set as `DESK_PHONE`. * */ - private final @Nullable String deskPhoneNumber; + private @Nullable String deskPhoneNumber; /** * @return The phone type. Valid values are `DESK_PHONE` and `SOFT_PHONE`. * */ - private final String phoneType; - - @CustomType.Constructor - private UserPhoneConfig( - @CustomType.Parameter("afterContactWorkTimeLimit") @Nullable Integer afterContactWorkTimeLimit, - @CustomType.Parameter("autoAccept") @Nullable Boolean autoAccept, - @CustomType.Parameter("deskPhoneNumber") @Nullable String deskPhoneNumber, - @CustomType.Parameter("phoneType") String phoneType) { - this.afterContactWorkTimeLimit = afterContactWorkTimeLimit; - this.autoAccept = autoAccept; - this.deskPhoneNumber = deskPhoneNumber; - this.phoneType = phoneType; - } + private String phoneType; + private UserPhoneConfig() {} /** * @return The After Call Work (ACW) timeout setting, in seconds. Minimum value of 0. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(UserPhoneConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer afterContactWorkTimeLimit; private @Nullable Boolean autoAccept; private @Nullable String deskPhoneNumber; private String phoneType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPhoneConfig defaults) { Objects.requireNonNull(defaults); this.afterContactWorkTimeLimit = defaults.afterContactWorkTimeLimit; @@ -101,23 +86,33 @@ public Builder(UserPhoneConfig defaults) { this.phoneType = defaults.phoneType; } + @CustomType.Setter public Builder afterContactWorkTimeLimit(@Nullable Integer afterContactWorkTimeLimit) { this.afterContactWorkTimeLimit = afterContactWorkTimeLimit; return this; } + @CustomType.Setter public Builder autoAccept(@Nullable Boolean autoAccept) { this.autoAccept = autoAccept; return this; } + @CustomType.Setter public Builder deskPhoneNumber(@Nullable String deskPhoneNumber) { this.deskPhoneNumber = deskPhoneNumber; return this; } + @CustomType.Setter public Builder phoneType(String phoneType) { this.phoneType = Objects.requireNonNull(phoneType); return this; - } public UserPhoneConfig build() { - return new UserPhoneConfig(afterContactWorkTimeLimit, autoAccept, deskPhoneNumber, phoneType); + } + public UserPhoneConfig build() { + final var o = new UserPhoneConfig(); + o.afterContactWorkTimeLimit = afterContactWorkTimeLimit; + o.autoAccept = autoAccept; + o.deskPhoneNumber = deskPhoneNumber; + o.phoneType = phoneType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/AnomalySubscriptionSubscriber.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/AnomalySubscriptionSubscriber.java index b570c78d600..25b9f8e24bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/AnomalySubscriptionSubscriber.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/AnomalySubscriptionSubscriber.java @@ -13,21 +13,14 @@ public final class AnomalySubscriptionSubscriber { * @return The address of the subscriber. If type is `SNS`, this will be the arn of the sns topic. If type is `EMAIL`, this will be the destination email address. * */ - private final String address; + private String address; /** * @return The type of subscription. Valid Values: `SNS` | `EMAIL`. * */ - private final String type; - - @CustomType.Constructor - private AnomalySubscriptionSubscriber( - @CustomType.Parameter("address") String address, - @CustomType.Parameter("type") String type) { - this.address = address; - this.type = type; - } + private String type; + private AnomalySubscriptionSubscriber() {} /** * @return The address of the subscriber. If type is `SNS`, this will be the arn of the sns topic. If type is `EMAIL`, this will be the destination email address. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(AnomalySubscriptionSubscriber defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String address; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnomalySubscriptionSubscriber defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; this.type = defaults.type; } + @CustomType.Setter public Builder address(String address) { this.address = Objects.requireNonNull(address); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public AnomalySubscriptionSubscriber build() { - return new AnomalySubscriptionSubscriber(address, type); + } + public AnomalySubscriptionSubscriber build() { + final var o = new AnomalySubscriptionSubscriber(); + o.address = address; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRule.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRule.java index d4b7673305c..398b6558558 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRule.java @@ -17,35 +17,24 @@ public final class CostCategoryRule { * @return Configuration block for the value the line item is categorized as if the line item contains the matched dimension. See below. * */ - private final @Nullable CostCategoryRuleInheritedValue inheritedValue; + private @Nullable CostCategoryRuleInheritedValue inheritedValue; /** * @return Configuration block for the `Expression` object used to categorize costs. See below. * */ - private final @Nullable CostCategoryRuleRule rule; + private @Nullable CostCategoryRuleRule rule; /** * @return Parameter type. * */ - private final @Nullable String type; + private @Nullable String type; /** * @return Default value for the cost category. * */ - private final @Nullable String value; - - @CustomType.Constructor - private CostCategoryRule( - @CustomType.Parameter("inheritedValue") @Nullable CostCategoryRuleInheritedValue inheritedValue, - @CustomType.Parameter("rule") @Nullable CostCategoryRuleRule rule, - @CustomType.Parameter("type") @Nullable String type, - @CustomType.Parameter("value") @Nullable String value) { - this.inheritedValue = inheritedValue; - this.rule = rule; - this.type = type; - this.value = value; - } + private @Nullable String value; + private CostCategoryRule() {} /** * @return Configuration block for the value the line item is categorized as if the line item contains the matched dimension. See below. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(CostCategoryRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable CostCategoryRuleInheritedValue inheritedValue; private @Nullable CostCategoryRuleRule rule; private @Nullable String type; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRule defaults) { Objects.requireNonNull(defaults); this.inheritedValue = defaults.inheritedValue; @@ -101,23 +86,33 @@ public Builder(CostCategoryRule defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder inheritedValue(@Nullable CostCategoryRuleInheritedValue inheritedValue) { this.inheritedValue = inheritedValue; return this; } + @CustomType.Setter public Builder rule(@Nullable CostCategoryRuleRule rule) { this.rule = rule; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public CostCategoryRule build() { - return new CostCategoryRule(inheritedValue, rule, type, value); + } + public CostCategoryRule build() { + final var o = new CostCategoryRule(); + o.inheritedValue = inheritedValue; + o.rule = rule; + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleInheritedValue.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleInheritedValue.java index ccd537ae75c..7b604862d0a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleInheritedValue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleInheritedValue.java @@ -15,21 +15,14 @@ public final class CostCategoryRuleInheritedValue { * @return Key to extract cost category values. * */ - private final @Nullable String dimensionKey; + private @Nullable String dimensionKey; /** * @return Name of the dimension that's used to group costs. If you specify `LINKED_ACCOUNT_NAME`, the cost category value is based on account name. If you specify `TAG`, the cost category value will be based on the value of the specified tag key. Valid values are `LINKED_ACCOUNT_NAME`, `TAG` * */ - private final @Nullable String dimensionName; - - @CustomType.Constructor - private CostCategoryRuleInheritedValue( - @CustomType.Parameter("dimensionKey") @Nullable String dimensionKey, - @CustomType.Parameter("dimensionName") @Nullable String dimensionName) { - this.dimensionKey = dimensionKey; - this.dimensionName = dimensionName; - } + private @Nullable String dimensionName; + private CostCategoryRuleInheritedValue() {} /** * @return Key to extract cost category values. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleInheritedValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dimensionKey; private @Nullable String dimensionName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleInheritedValue defaults) { Objects.requireNonNull(defaults); this.dimensionKey = defaults.dimensionKey; this.dimensionName = defaults.dimensionName; } + @CustomType.Setter public Builder dimensionKey(@Nullable String dimensionKey) { this.dimensionKey = dimensionKey; return this; } + @CustomType.Setter public Builder dimensionName(@Nullable String dimensionName) { this.dimensionName = dimensionName; return this; - } public CostCategoryRuleInheritedValue build() { - return new CostCategoryRuleInheritedValue(dimensionKey, dimensionName); + } + public CostCategoryRuleInheritedValue build() { + final var o = new CostCategoryRuleInheritedValue(); + o.dimensionKey = dimensionKey; + o.dimensionName = dimensionName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRule.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRule.java index c96f03a3775..c27015ede31 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRule.java @@ -21,45 +21,30 @@ public final class CostCategoryRuleRule { * @return Return results that match both `Dimension` objects. * */ - private final @Nullable List ands; + private @Nullable List ands; /** * @return Configuration block for the filter that's based on `CostCategory` values. See below. * */ - private final @Nullable CostCategoryRuleRuleCostCategory costCategory; + private @Nullable CostCategoryRuleRuleCostCategory costCategory; /** * @return Configuration block for the specific `Dimension` to use for `Expression`. See below. * */ - private final @Nullable CostCategoryRuleRuleDimension dimension; + private @Nullable CostCategoryRuleRuleDimension dimension; /** * @return Return results that match both `Dimension` object. * */ - private final @Nullable CostCategoryRuleRuleNot not; + private @Nullable CostCategoryRuleRuleNot not; /** * @return Return results that match both `Dimension` object. * */ - private final @Nullable List ors; - private final @Nullable CostCategoryRuleRuleTags tags; - - @CustomType.Constructor - private CostCategoryRuleRule( - @CustomType.Parameter("ands") @Nullable List ands, - @CustomType.Parameter("costCategory") @Nullable CostCategoryRuleRuleCostCategory costCategory, - @CustomType.Parameter("dimension") @Nullable CostCategoryRuleRuleDimension dimension, - @CustomType.Parameter("not") @Nullable CostCategoryRuleRuleNot not, - @CustomType.Parameter("ors") @Nullable List ors, - @CustomType.Parameter("tags") @Nullable CostCategoryRuleRuleTags tags) { - this.ands = ands; - this.costCategory = costCategory; - this.dimension = dimension; - this.not = not; - this.ors = ors; - this.tags = tags; - } + private @Nullable List ors; + private @Nullable CostCategoryRuleRuleTags tags; + private CostCategoryRuleRule() {} /** * @return Return results that match both `Dimension` objects. * @@ -106,7 +91,7 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List ands; private @Nullable CostCategoryRuleRuleCostCategory costCategory; @@ -114,11 +99,7 @@ public static final class Builder { private @Nullable CostCategoryRuleRuleNot not; private @Nullable List ors; private @Nullable CostCategoryRuleRuleTags tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRule defaults) { Objects.requireNonNull(defaults); this.ands = defaults.ands; @@ -129,6 +110,7 @@ public Builder(CostCategoryRuleRule defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder ands(@Nullable List ands) { this.ands = ands; return this; @@ -136,18 +118,22 @@ public Builder ands(@Nullable List ands) { public Builder ands(CostCategoryRuleRuleAnd... ands) { return ands(List.of(ands)); } + @CustomType.Setter public Builder costCategory(@Nullable CostCategoryRuleRuleCostCategory costCategory) { this.costCategory = costCategory; return this; } + @CustomType.Setter public Builder dimension(@Nullable CostCategoryRuleRuleDimension dimension) { this.dimension = dimension; return this; } + @CustomType.Setter public Builder not(@Nullable CostCategoryRuleRuleNot not) { this.not = not; return this; } + @CustomType.Setter public Builder ors(@Nullable List ors) { this.ors = ors; return this; @@ -155,11 +141,20 @@ public Builder ors(@Nullable List ors) { public Builder ors(CostCategoryRuleRuleOr... ors) { return ors(List.of(ors)); } + @CustomType.Setter public Builder tags(@Nullable CostCategoryRuleRuleTags tags) { this.tags = tags; return this; - } public CostCategoryRuleRule build() { - return new CostCategoryRuleRule(ands, costCategory, dimension, not, ors, tags); + } + public CostCategoryRuleRule build() { + final var o = new CostCategoryRuleRule(); + o.ands = ands; + o.costCategory = costCategory; + o.dimension = dimension; + o.not = not; + o.ors = ors; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAnd.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAnd.java index 0f73a4238e2..5552c9c4269 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAnd.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAnd.java @@ -17,24 +17,15 @@ public final class CostCategoryRuleRuleAnd { * @return Configuration block for the filter that's based on `CostCategory` values. See below. * */ - private final @Nullable CostCategoryRuleRuleAndCostCategory costCategory; + private @Nullable CostCategoryRuleRuleAndCostCategory costCategory; /** * @return Configuration block for the specific `Dimension` to use for `Expression`. See below. * */ - private final @Nullable CostCategoryRuleRuleAndDimension dimension; - private final @Nullable CostCategoryRuleRuleAndTags tags; - - @CustomType.Constructor - private CostCategoryRuleRuleAnd( - @CustomType.Parameter("costCategory") @Nullable CostCategoryRuleRuleAndCostCategory costCategory, - @CustomType.Parameter("dimension") @Nullable CostCategoryRuleRuleAndDimension dimension, - @CustomType.Parameter("tags") @Nullable CostCategoryRuleRuleAndTags tags) { - this.costCategory = costCategory; - this.dimension = dimension; - this.tags = tags; - } + private @Nullable CostCategoryRuleRuleAndDimension dimension; + private @Nullable CostCategoryRuleRuleAndTags tags; + private CostCategoryRuleRuleAnd() {} /** * @return Configuration block for the filter that's based on `CostCategory` values. See below. * @@ -60,16 +51,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleAnd defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable CostCategoryRuleRuleAndCostCategory costCategory; private @Nullable CostCategoryRuleRuleAndDimension dimension; private @Nullable CostCategoryRuleRuleAndTags tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleAnd defaults) { Objects.requireNonNull(defaults); this.costCategory = defaults.costCategory; @@ -77,19 +64,27 @@ public Builder(CostCategoryRuleRuleAnd defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder costCategory(@Nullable CostCategoryRuleRuleAndCostCategory costCategory) { this.costCategory = costCategory; return this; } + @CustomType.Setter public Builder dimension(@Nullable CostCategoryRuleRuleAndDimension dimension) { this.dimension = dimension; return this; } + @CustomType.Setter public Builder tags(@Nullable CostCategoryRuleRuleAndTags tags) { this.tags = tags; return this; - } public CostCategoryRuleRuleAnd build() { - return new CostCategoryRuleRuleAnd(costCategory, dimension, tags); + } + public CostCategoryRuleRuleAnd build() { + final var o = new CostCategoryRuleRuleAnd(); + o.costCategory = costCategory; + o.dimension = dimension; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAndCostCategory.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAndCostCategory.java index 53cd9abae28..025ae5de957 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAndCostCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAndCostCategory.java @@ -16,28 +16,19 @@ public final class CostCategoryRuleRuleAndCostCategory { * @return Key for the tag. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategoryRuleRuleAndCostCategory( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private CostCategoryRuleRuleAndCostCategory() {} /** * @return Key for the tag. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleAndCostCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleAndCostCategory defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(CostCategoryRuleRuleAndCostCategory defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategoryRuleRuleAndCostCategory build() { - return new CostCategoryRuleRuleAndCostCategory(key, matchOptions, values); + } + public CostCategoryRuleRuleAndCostCategory build() { + final var o = new CostCategoryRuleRuleAndCostCategory(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAndDimension.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAndDimension.java index 3fe30c7cdaa..62a1358433e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAndDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAndDimension.java @@ -16,28 +16,19 @@ public final class CostCategoryRuleRuleAndDimension { * @return Key for the tag. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategoryRuleRuleAndDimension( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private CostCategoryRuleRuleAndDimension() {} /** * @return Key for the tag. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleAndDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleAndDimension defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(CostCategoryRuleRuleAndDimension defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategoryRuleRuleAndDimension build() { - return new CostCategoryRuleRuleAndDimension(key, matchOptions, values); + } + public CostCategoryRuleRuleAndDimension build() { + final var o = new CostCategoryRuleRuleAndDimension(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAndTags.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAndTags.java index aee73dd48b5..a998bf64ec5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAndTags.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleAndTags.java @@ -16,28 +16,19 @@ public final class CostCategoryRuleRuleAndTags { * @return Key for the tag. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategoryRuleRuleAndTags( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private CostCategoryRuleRuleAndTags() {} /** * @return Key for the tag. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleAndTags defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleAndTags defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(CostCategoryRuleRuleAndTags defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategoryRuleRuleAndTags build() { - return new CostCategoryRuleRuleAndTags(key, matchOptions, values); + } + public CostCategoryRuleRuleAndTags build() { + final var o = new CostCategoryRuleRuleAndTags(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleCostCategory.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleCostCategory.java index 541d3e9e34f..53fee826084 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleCostCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleCostCategory.java @@ -16,28 +16,19 @@ public final class CostCategoryRuleRuleCostCategory { * @return Key for the tag. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategoryRuleRuleCostCategory( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private CostCategoryRuleRuleCostCategory() {} /** * @return Key for the tag. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleCostCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleCostCategory defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(CostCategoryRuleRuleCostCategory defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategoryRuleRuleCostCategory build() { - return new CostCategoryRuleRuleCostCategory(key, matchOptions, values); + } + public CostCategoryRuleRuleCostCategory build() { + final var o = new CostCategoryRuleRuleCostCategory(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleDimension.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleDimension.java index 9f3b17fce54..c0c868d7694 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleDimension.java @@ -16,28 +16,19 @@ public final class CostCategoryRuleRuleDimension { * @return Key for the tag. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategoryRuleRuleDimension( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private CostCategoryRuleRuleDimension() {} /** * @return Key for the tag. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleDimension defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(CostCategoryRuleRuleDimension defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategoryRuleRuleDimension build() { - return new CostCategoryRuleRuleDimension(key, matchOptions, values); + } + public CostCategoryRuleRuleDimension build() { + final var o = new CostCategoryRuleRuleDimension(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNot.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNot.java index 56ed9f12df4..07244a9bf7c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNot.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNot.java @@ -17,24 +17,15 @@ public final class CostCategoryRuleRuleNot { * @return Configuration block for the filter that's based on `CostCategory` values. See below. * */ - private final @Nullable CostCategoryRuleRuleNotCostCategory costCategory; + private @Nullable CostCategoryRuleRuleNotCostCategory costCategory; /** * @return Configuration block for the specific `Dimension` to use for `Expression`. See below. * */ - private final @Nullable CostCategoryRuleRuleNotDimension dimension; - private final @Nullable CostCategoryRuleRuleNotTags tags; - - @CustomType.Constructor - private CostCategoryRuleRuleNot( - @CustomType.Parameter("costCategory") @Nullable CostCategoryRuleRuleNotCostCategory costCategory, - @CustomType.Parameter("dimension") @Nullable CostCategoryRuleRuleNotDimension dimension, - @CustomType.Parameter("tags") @Nullable CostCategoryRuleRuleNotTags tags) { - this.costCategory = costCategory; - this.dimension = dimension; - this.tags = tags; - } + private @Nullable CostCategoryRuleRuleNotDimension dimension; + private @Nullable CostCategoryRuleRuleNotTags tags; + private CostCategoryRuleRuleNot() {} /** * @return Configuration block for the filter that's based on `CostCategory` values. See below. * @@ -60,16 +51,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleNot defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable CostCategoryRuleRuleNotCostCategory costCategory; private @Nullable CostCategoryRuleRuleNotDimension dimension; private @Nullable CostCategoryRuleRuleNotTags tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleNot defaults) { Objects.requireNonNull(defaults); this.costCategory = defaults.costCategory; @@ -77,19 +64,27 @@ public Builder(CostCategoryRuleRuleNot defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder costCategory(@Nullable CostCategoryRuleRuleNotCostCategory costCategory) { this.costCategory = costCategory; return this; } + @CustomType.Setter public Builder dimension(@Nullable CostCategoryRuleRuleNotDimension dimension) { this.dimension = dimension; return this; } + @CustomType.Setter public Builder tags(@Nullable CostCategoryRuleRuleNotTags tags) { this.tags = tags; return this; - } public CostCategoryRuleRuleNot build() { - return new CostCategoryRuleRuleNot(costCategory, dimension, tags); + } + public CostCategoryRuleRuleNot build() { + final var o = new CostCategoryRuleRuleNot(); + o.costCategory = costCategory; + o.dimension = dimension; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNotCostCategory.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNotCostCategory.java index fe02132c6c0..cbdd4fcaca4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNotCostCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNotCostCategory.java @@ -16,28 +16,19 @@ public final class CostCategoryRuleRuleNotCostCategory { * @return Key for the tag. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategoryRuleRuleNotCostCategory( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private CostCategoryRuleRuleNotCostCategory() {} /** * @return Key for the tag. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleNotCostCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleNotCostCategory defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(CostCategoryRuleRuleNotCostCategory defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategoryRuleRuleNotCostCategory build() { - return new CostCategoryRuleRuleNotCostCategory(key, matchOptions, values); + } + public CostCategoryRuleRuleNotCostCategory build() { + final var o = new CostCategoryRuleRuleNotCostCategory(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNotDimension.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNotDimension.java index c0aae1a8ca4..013dd97955b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNotDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNotDimension.java @@ -16,28 +16,19 @@ public final class CostCategoryRuleRuleNotDimension { * @return Key for the tag. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategoryRuleRuleNotDimension( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private CostCategoryRuleRuleNotDimension() {} /** * @return Key for the tag. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleNotDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleNotDimension defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(CostCategoryRuleRuleNotDimension defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategoryRuleRuleNotDimension build() { - return new CostCategoryRuleRuleNotDimension(key, matchOptions, values); + } + public CostCategoryRuleRuleNotDimension build() { + final var o = new CostCategoryRuleRuleNotDimension(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNotTags.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNotTags.java index 15a6ffb4667..0d93e529fcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNotTags.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleNotTags.java @@ -16,28 +16,19 @@ public final class CostCategoryRuleRuleNotTags { * @return Key for the tag. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategoryRuleRuleNotTags( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private CostCategoryRuleRuleNotTags() {} /** * @return Key for the tag. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleNotTags defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleNotTags defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(CostCategoryRuleRuleNotTags defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategoryRuleRuleNotTags build() { - return new CostCategoryRuleRuleNotTags(key, matchOptions, values); + } + public CostCategoryRuleRuleNotTags build() { + final var o = new CostCategoryRuleRuleNotTags(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOr.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOr.java index 9d842cfe7f0..ae9919e11bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOr.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOr.java @@ -17,24 +17,15 @@ public final class CostCategoryRuleRuleOr { * @return Configuration block for the filter that's based on `CostCategory` values. See below. * */ - private final @Nullable CostCategoryRuleRuleOrCostCategory costCategory; + private @Nullable CostCategoryRuleRuleOrCostCategory costCategory; /** * @return Configuration block for the specific `Dimension` to use for `Expression`. See below. * */ - private final @Nullable CostCategoryRuleRuleOrDimension dimension; - private final @Nullable CostCategoryRuleRuleOrTags tags; - - @CustomType.Constructor - private CostCategoryRuleRuleOr( - @CustomType.Parameter("costCategory") @Nullable CostCategoryRuleRuleOrCostCategory costCategory, - @CustomType.Parameter("dimension") @Nullable CostCategoryRuleRuleOrDimension dimension, - @CustomType.Parameter("tags") @Nullable CostCategoryRuleRuleOrTags tags) { - this.costCategory = costCategory; - this.dimension = dimension; - this.tags = tags; - } + private @Nullable CostCategoryRuleRuleOrDimension dimension; + private @Nullable CostCategoryRuleRuleOrTags tags; + private CostCategoryRuleRuleOr() {} /** * @return Configuration block for the filter that's based on `CostCategory` values. See below. * @@ -60,16 +51,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleOr defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable CostCategoryRuleRuleOrCostCategory costCategory; private @Nullable CostCategoryRuleRuleOrDimension dimension; private @Nullable CostCategoryRuleRuleOrTags tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleOr defaults) { Objects.requireNonNull(defaults); this.costCategory = defaults.costCategory; @@ -77,19 +64,27 @@ public Builder(CostCategoryRuleRuleOr defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder costCategory(@Nullable CostCategoryRuleRuleOrCostCategory costCategory) { this.costCategory = costCategory; return this; } + @CustomType.Setter public Builder dimension(@Nullable CostCategoryRuleRuleOrDimension dimension) { this.dimension = dimension; return this; } + @CustomType.Setter public Builder tags(@Nullable CostCategoryRuleRuleOrTags tags) { this.tags = tags; return this; - } public CostCategoryRuleRuleOr build() { - return new CostCategoryRuleRuleOr(costCategory, dimension, tags); + } + public CostCategoryRuleRuleOr build() { + final var o = new CostCategoryRuleRuleOr(); + o.costCategory = costCategory; + o.dimension = dimension; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOrCostCategory.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOrCostCategory.java index d75b692d3cd..dfd288efdd9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOrCostCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOrCostCategory.java @@ -16,28 +16,19 @@ public final class CostCategoryRuleRuleOrCostCategory { * @return Key for the tag. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategoryRuleRuleOrCostCategory( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private CostCategoryRuleRuleOrCostCategory() {} /** * @return Key for the tag. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleOrCostCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleOrCostCategory defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(CostCategoryRuleRuleOrCostCategory defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategoryRuleRuleOrCostCategory build() { - return new CostCategoryRuleRuleOrCostCategory(key, matchOptions, values); + } + public CostCategoryRuleRuleOrCostCategory build() { + final var o = new CostCategoryRuleRuleOrCostCategory(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOrDimension.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOrDimension.java index dab9c07466b..98d9838f5dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOrDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOrDimension.java @@ -16,28 +16,19 @@ public final class CostCategoryRuleRuleOrDimension { * @return Key for the tag. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategoryRuleRuleOrDimension( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private CostCategoryRuleRuleOrDimension() {} /** * @return Key for the tag. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleOrDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleOrDimension defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(CostCategoryRuleRuleOrDimension defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategoryRuleRuleOrDimension build() { - return new CostCategoryRuleRuleOrDimension(key, matchOptions, values); + } + public CostCategoryRuleRuleOrDimension build() { + final var o = new CostCategoryRuleRuleOrDimension(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOrTags.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOrTags.java index 862a4470b20..bbf4dc2ea2f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOrTags.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleOrTags.java @@ -16,28 +16,19 @@ public final class CostCategoryRuleRuleOrTags { * @return Key for the tag. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategoryRuleRuleOrTags( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private CostCategoryRuleRuleOrTags() {} /** * @return Key for the tag. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleOrTags defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleOrTags defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(CostCategoryRuleRuleOrTags defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategoryRuleRuleOrTags build() { - return new CostCategoryRuleRuleOrTags(key, matchOptions, values); + } + public CostCategoryRuleRuleOrTags build() { + final var o = new CostCategoryRuleRuleOrTags(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleTags.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleTags.java index 9b7bd7cdae9..28b8bda99b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleTags.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategoryRuleRuleTags.java @@ -16,28 +16,19 @@ public final class CostCategoryRuleRuleTags { * @return Key for the tag. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategoryRuleRuleTags( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private CostCategoryRuleRuleTags() {} /** * @return Key for the tag. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CostCategoryRuleRuleTags defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategoryRuleRuleTags defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(CostCategoryRuleRuleTags defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategoryRuleRuleTags build() { - return new CostCategoryRuleRuleTags(key, matchOptions, values); + } + public CostCategoryRuleRuleTags build() { + final var o = new CostCategoryRuleRuleTags(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategorySplitChargeRule.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategorySplitChargeRule.java index 22054e82f50..131f7cc5edb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategorySplitChargeRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategorySplitChargeRule.java @@ -16,35 +16,24 @@ public final class CostCategorySplitChargeRule { * @return Method that's used to define how to split your source costs across your targets. Valid values are `FIXED`, `PROPORTIONAL`, `EVEN` * */ - private final String method; + private String method; /** * @return Configuration block for the parameters for a split charge method. This is only required for the `FIXED` method. See below. * */ - private final @Nullable List parameters; + private @Nullable List parameters; /** * @return Cost Category value that you want to split. * */ - private final String source; + private String source; /** * @return Cost Category values that you want to split costs across. These values can't be used as a source in other split charge rules. * */ - private final List targets; - - @CustomType.Constructor - private CostCategorySplitChargeRule( - @CustomType.Parameter("method") String method, - @CustomType.Parameter("parameters") @Nullable List parameters, - @CustomType.Parameter("source") String source, - @CustomType.Parameter("targets") List targets) { - this.method = method; - this.parameters = parameters; - this.source = source; - this.targets = targets; - } + private List targets; + private CostCategorySplitChargeRule() {} /** * @return Method that's used to define how to split your source costs across your targets. Valid values are `FIXED`, `PROPORTIONAL`, `EVEN` * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(CostCategorySplitChargeRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String method; private @Nullable List parameters; private String source; private List targets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategorySplitChargeRule defaults) { Objects.requireNonNull(defaults); this.method = defaults.method; @@ -100,10 +85,12 @@ public Builder(CostCategorySplitChargeRule defaults) { this.targets = defaults.targets; } + @CustomType.Setter public Builder method(String method) { this.method = Objects.requireNonNull(method); return this; } + @CustomType.Setter public Builder parameters(@Nullable List parameters) { this.parameters = parameters; return this; @@ -111,18 +98,26 @@ public Builder parameters(@Nullable List p public Builder parameters(CostCategorySplitChargeRuleParameter... parameters) { return parameters(List.of(parameters)); } + @CustomType.Setter public Builder source(String source) { this.source = Objects.requireNonNull(source); return this; } + @CustomType.Setter public Builder targets(List targets) { this.targets = Objects.requireNonNull(targets); return this; } public Builder targets(String... targets) { return targets(List.of(targets)); - } public CostCategorySplitChargeRule build() { - return new CostCategorySplitChargeRule(method, parameters, source, targets); + } + public CostCategorySplitChargeRule build() { + final var o = new CostCategorySplitChargeRule(); + o.method = method; + o.parameters = parameters; + o.source = source; + o.targets = targets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategorySplitChargeRuleParameter.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategorySplitChargeRuleParameter.java index c6828d80225..d03e918445a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategorySplitChargeRuleParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/CostCategorySplitChargeRuleParameter.java @@ -16,21 +16,14 @@ public final class CostCategorySplitChargeRuleParameter { * @return Parameter type. * */ - private final @Nullable String type; + private @Nullable String type; /** * @return Parameter values. * */ - private final @Nullable List values; - - @CustomType.Constructor - private CostCategorySplitChargeRuleParameter( - @CustomType.Parameter("type") @Nullable String type, - @CustomType.Parameter("values") @Nullable List values) { - this.type = type; - this.values = values; - } + private @Nullable List values; + private CostCategorySplitChargeRuleParameter() {} /** * @return Parameter type. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(CostCategorySplitChargeRuleParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String type; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CostCategorySplitChargeRuleParameter defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.values = defaults.values; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public CostCategorySplitChargeRuleParameter build() { - return new CostCategorySplitChargeRuleParameter(type, values); + } + public CostCategorySplitChargeRuleParameter build() { + final var o = new CostCategorySplitChargeRuleParameter(); + o.type = type; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryResult.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryResult.java index 70a835bd207..5ae715b69cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryResult.java @@ -13,66 +13,45 @@ @CustomType public final class GetCostCategoryResult { - private final String costCategoryArn; + private String costCategoryArn; /** * @return Effective end data of your Cost Category. * */ - private final String effectiveEnd; + private String effectiveEnd; /** * @return Effective state data of your Cost Category. * */ - private final String effectiveStart; + private String effectiveStart; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return Rule schema version in this particular Cost Category. * */ - private final String ruleVersion; + private String ruleVersion; /** * @return Configuration block for the `Expression` object used to categorize costs. See below. * */ - private final List rules; + private List rules; /** * @return Configuration block for the split charge rules used to allocate your charges between your Cost Category values. See below. * */ - private final List splitChargeRules; + private List splitChargeRules; /** * @return Resource tags. * */ - private final Map tags; - - @CustomType.Constructor - private GetCostCategoryResult( - @CustomType.Parameter("costCategoryArn") String costCategoryArn, - @CustomType.Parameter("effectiveEnd") String effectiveEnd, - @CustomType.Parameter("effectiveStart") String effectiveStart, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("ruleVersion") String ruleVersion, - @CustomType.Parameter("rules") List rules, - @CustomType.Parameter("splitChargeRules") List splitChargeRules, - @CustomType.Parameter("tags") Map tags) { - this.costCategoryArn = costCategoryArn; - this.effectiveEnd = effectiveEnd; - this.effectiveStart = effectiveStart; - this.id = id; - this.name = name; - this.ruleVersion = ruleVersion; - this.rules = rules; - this.splitChargeRules = splitChargeRules; - this.tags = tags; - } + private Map tags; + private GetCostCategoryResult() {} public String costCategoryArn() { return this.costCategoryArn; } @@ -136,7 +115,7 @@ public static Builder builder() { public static Builder builder(GetCostCategoryResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String costCategoryArn; private String effectiveEnd; @@ -147,11 +126,7 @@ public static final class Builder { private List rules; private List splitChargeRules; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryResult defaults) { Objects.requireNonNull(defaults); this.costCategoryArn = defaults.costCategoryArn; @@ -165,30 +140,37 @@ public Builder(GetCostCategoryResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder costCategoryArn(String costCategoryArn) { this.costCategoryArn = Objects.requireNonNull(costCategoryArn); return this; } + @CustomType.Setter public Builder effectiveEnd(String effectiveEnd) { this.effectiveEnd = Objects.requireNonNull(effectiveEnd); return this; } + @CustomType.Setter public Builder effectiveStart(String effectiveStart) { this.effectiveStart = Objects.requireNonNull(effectiveStart); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder ruleVersion(String ruleVersion) { this.ruleVersion = Objects.requireNonNull(ruleVersion); return this; } + @CustomType.Setter public Builder rules(List rules) { this.rules = Objects.requireNonNull(rules); return this; @@ -196,6 +178,7 @@ public Builder rules(List rules) { public Builder rules(GetCostCategoryRule... rules) { return rules(List.of(rules)); } + @CustomType.Setter public Builder splitChargeRules(List splitChargeRules) { this.splitChargeRules = Objects.requireNonNull(splitChargeRules); return this; @@ -203,11 +186,23 @@ public Builder splitChargeRules(List splitCharge public Builder splitChargeRules(GetCostCategorySplitChargeRule... splitChargeRules) { return splitChargeRules(List.of(splitChargeRules)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetCostCategoryResult build() { - return new GetCostCategoryResult(costCategoryArn, effectiveEnd, effectiveStart, id, name, ruleVersion, rules, splitChargeRules, tags); + } + public GetCostCategoryResult build() { + final var o = new GetCostCategoryResult(); + o.costCategoryArn = costCategoryArn; + o.effectiveEnd = effectiveEnd; + o.effectiveStart = effectiveStart; + o.id = id; + o.name = name; + o.ruleVersion = ruleVersion; + o.rules = rules; + o.splitChargeRules = splitChargeRules; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRule.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRule.java index 10690f275cd..37992b8fa5b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRule.java @@ -16,35 +16,24 @@ public final class GetCostCategoryRule { * @return Configuration block for the value the line item is categorized as if the line item contains the matched dimension. See below. * */ - private final List inheritedValues; + private List inheritedValues; /** * @return Configuration block for the `Expression` object used to categorize costs. See below. * */ - private final List rules; + private List rules; /** * @return Parameter type. * */ - private final String type; + private String type; /** * @return Default value for the cost category. * */ - private final String value; - - @CustomType.Constructor - private GetCostCategoryRule( - @CustomType.Parameter("inheritedValues") List inheritedValues, - @CustomType.Parameter("rules") List rules, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") String value) { - this.inheritedValues = inheritedValues; - this.rules = rules; - this.type = type; - this.value = value; - } + private String value; + private GetCostCategoryRule() {} /** * @return Configuration block for the value the line item is categorized as if the line item contains the matched dimension. See below. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List inheritedValues; private List rules; private String type; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRule defaults) { Objects.requireNonNull(defaults); this.inheritedValues = defaults.inheritedValues; @@ -100,6 +85,7 @@ public Builder(GetCostCategoryRule defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder inheritedValues(List inheritedValues) { this.inheritedValues = Objects.requireNonNull(inheritedValues); return this; @@ -107,6 +93,7 @@ public Builder inheritedValues(List inherited public Builder inheritedValues(GetCostCategoryRuleInheritedValue... inheritedValues) { return inheritedValues(List.of(inheritedValues)); } + @CustomType.Setter public Builder rules(List rules) { this.rules = Objects.requireNonNull(rules); return this; @@ -114,15 +101,23 @@ public Builder rules(List rules) { public Builder rules(GetCostCategoryRuleRule... rules) { return rules(List.of(rules)); } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetCostCategoryRule build() { - return new GetCostCategoryRule(inheritedValues, rules, type, value); + } + public GetCostCategoryRule build() { + final var o = new GetCostCategoryRule(); + o.inheritedValues = inheritedValues; + o.rules = rules; + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleInheritedValue.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleInheritedValue.java index 16529d80e2d..233621508a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleInheritedValue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleInheritedValue.java @@ -13,21 +13,14 @@ public final class GetCostCategoryRuleInheritedValue { * @return Key to extract cost category values. * */ - private final String dimensionKey; + private String dimensionKey; /** * @return Name of the dimension that's used to group costs. If you specify `LINKED_ACCOUNT_NAME`, the cost category value is based on account name. If you specify `TAG`, the cost category value will be based on the value of the specified tag key. Valid values are `LINKED_ACCOUNT_NAME`, `TAG` * */ - private final String dimensionName; - - @CustomType.Constructor - private GetCostCategoryRuleInheritedValue( - @CustomType.Parameter("dimensionKey") String dimensionKey, - @CustomType.Parameter("dimensionName") String dimensionName) { - this.dimensionKey = dimensionKey; - this.dimensionName = dimensionName; - } + private String dimensionName; + private GetCostCategoryRuleInheritedValue() {} /** * @return Key to extract cost category values. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleInheritedValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dimensionKey; private String dimensionName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleInheritedValue defaults) { Objects.requireNonNull(defaults); this.dimensionKey = defaults.dimensionKey; this.dimensionName = defaults.dimensionName; } + @CustomType.Setter public Builder dimensionKey(String dimensionKey) { this.dimensionKey = Objects.requireNonNull(dimensionKey); return this; } + @CustomType.Setter public Builder dimensionName(String dimensionName) { this.dimensionName = Objects.requireNonNull(dimensionName); return this; - } public GetCostCategoryRuleInheritedValue build() { - return new GetCostCategoryRuleInheritedValue(dimensionKey, dimensionName); + } + public GetCostCategoryRuleInheritedValue build() { + final var o = new GetCostCategoryRuleInheritedValue(); + o.dimensionKey = dimensionKey; + o.dimensionName = dimensionName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRule.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRule.java index 9a8762f8dec..f88b4f92c33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRule.java @@ -19,49 +19,34 @@ public final class GetCostCategoryRuleRule { * @return Return results that match both `Dimension` objects. * */ - private final List ands; + private List ands; /** * @return Configuration block for the filter that's based on `CostCategory` values. See below. * */ - private final List costCategories; + private List costCategories; /** * @return Configuration block for the specific `Dimension` to use for `Expression`. See below. * */ - private final List dimensions; + private List dimensions; /** * @return Return results that match both `Dimension` object. * */ - private final List nots; + private List nots; /** * @return Return results that match both `Dimension` object. * */ - private final List ors; + private List ors; /** * @return Resource tags. * */ - private final List tags; - - @CustomType.Constructor - private GetCostCategoryRuleRule( - @CustomType.Parameter("ands") List ands, - @CustomType.Parameter("costCategories") List costCategories, - @CustomType.Parameter("dimensions") List dimensions, - @CustomType.Parameter("nots") List nots, - @CustomType.Parameter("ors") List ors, - @CustomType.Parameter("tags") List tags) { - this.ands = ands; - this.costCategories = costCategories; - this.dimensions = dimensions; - this.nots = nots; - this.ors = ors; - this.tags = tags; - } + private List tags; + private GetCostCategoryRuleRule() {} /** * @return Return results that match both `Dimension` objects. * @@ -112,7 +97,7 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List ands; private List costCategories; @@ -120,11 +105,7 @@ public static final class Builder { private List nots; private List ors; private List tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRule defaults) { Objects.requireNonNull(defaults); this.ands = defaults.ands; @@ -135,6 +116,7 @@ public Builder(GetCostCategoryRuleRule defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder ands(List ands) { this.ands = Objects.requireNonNull(ands); return this; @@ -142,6 +124,7 @@ public Builder ands(List ands) { public Builder ands(GetCostCategoryRuleRuleAnd... ands) { return ands(List.of(ands)); } + @CustomType.Setter public Builder costCategories(List costCategories) { this.costCategories = Objects.requireNonNull(costCategories); return this; @@ -149,6 +132,7 @@ public Builder costCategories(List costCate public Builder costCategories(GetCostCategoryRuleRuleCostCategory... costCategories) { return costCategories(List.of(costCategories)); } + @CustomType.Setter public Builder dimensions(List dimensions) { this.dimensions = Objects.requireNonNull(dimensions); return this; @@ -156,6 +140,7 @@ public Builder dimensions(List dimensions) { public Builder dimensions(GetCostCategoryRuleRuleDimension... dimensions) { return dimensions(List.of(dimensions)); } + @CustomType.Setter public Builder nots(List nots) { this.nots = Objects.requireNonNull(nots); return this; @@ -163,6 +148,7 @@ public Builder nots(List nots) { public Builder nots(GetCostCategoryRuleRuleNot... nots) { return nots(List.of(nots)); } + @CustomType.Setter public Builder ors(List ors) { this.ors = Objects.requireNonNull(ors); return this; @@ -170,14 +156,23 @@ public Builder ors(List ors) { public Builder ors(GetCostCategoryRuleRuleOr... ors) { return ors(List.of(ors)); } + @CustomType.Setter public Builder tags(List tags) { this.tags = Objects.requireNonNull(tags); return this; } public Builder tags(GetCostCategoryRuleRuleTag... tags) { return tags(List.of(tags)); - } public GetCostCategoryRuleRule build() { - return new GetCostCategoryRuleRule(ands, costCategories, dimensions, nots, ors, tags); + } + public GetCostCategoryRuleRule build() { + final var o = new GetCostCategoryRuleRule(); + o.ands = ands; + o.costCategories = costCategories; + o.dimensions = dimensions; + o.nots = nots; + o.ors = ors; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAnd.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAnd.java index a78276f2159..80f00a5c3e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAnd.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAnd.java @@ -16,28 +16,19 @@ public final class GetCostCategoryRuleRuleAnd { * @return Configuration block for the filter that's based on `CostCategory` values. See below. * */ - private final List costCategories; + private List costCategories; /** * @return Configuration block for the specific `Dimension` to use for `Expression`. See below. * */ - private final List dimensions; + private List dimensions; /** * @return Resource tags. * */ - private final List tags; - - @CustomType.Constructor - private GetCostCategoryRuleRuleAnd( - @CustomType.Parameter("costCategories") List costCategories, - @CustomType.Parameter("dimensions") List dimensions, - @CustomType.Parameter("tags") List tags) { - this.costCategories = costCategories; - this.dimensions = dimensions; - this.tags = tags; - } + private List tags; + private GetCostCategoryRuleRuleAnd() {} /** * @return Configuration block for the filter that's based on `CostCategory` values. See below. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleAnd defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List costCategories; private List dimensions; private List tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleAnd defaults) { Objects.requireNonNull(defaults); this.costCategories = defaults.costCategories; @@ -84,6 +71,7 @@ public Builder(GetCostCategoryRuleRuleAnd defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder costCategories(List costCategories) { this.costCategories = Objects.requireNonNull(costCategories); return this; @@ -91,6 +79,7 @@ public Builder costCategories(List costC public Builder costCategories(GetCostCategoryRuleRuleAndCostCategory... costCategories) { return costCategories(List.of(costCategories)); } + @CustomType.Setter public Builder dimensions(List dimensions) { this.dimensions = Objects.requireNonNull(dimensions); return this; @@ -98,14 +87,20 @@ public Builder dimensions(List dimensions) public Builder dimensions(GetCostCategoryRuleRuleAndDimension... dimensions) { return dimensions(List.of(dimensions)); } + @CustomType.Setter public Builder tags(List tags) { this.tags = Objects.requireNonNull(tags); return this; } public Builder tags(GetCostCategoryRuleRuleAndTag... tags) { return tags(List.of(tags)); - } public GetCostCategoryRuleRuleAnd build() { - return new GetCostCategoryRuleRuleAnd(costCategories, dimensions, tags); + } + public GetCostCategoryRuleRuleAnd build() { + final var o = new GetCostCategoryRuleRuleAnd(); + o.costCategories = costCategories; + o.dimensions = dimensions; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAndCostCategory.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAndCostCategory.java index e99bdeb1d8c..9e755523176 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAndCostCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAndCostCategory.java @@ -14,28 +14,19 @@ public final class GetCostCategoryRuleRuleAndCostCategory { * @return Key for the tag. * */ - private final String key; + private String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final List matchOptions; + private List matchOptions; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategoryRuleRuleAndCostCategory( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("matchOptions") List matchOptions, - @CustomType.Parameter("values") List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private List values; + private GetCostCategoryRuleRuleAndCostCategory() {} /** * @return Key for the tag. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleAndCostCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List matchOptions; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleAndCostCategory defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -82,10 +69,12 @@ public Builder(GetCostCategoryRuleRuleAndCostCategory defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder matchOptions(List matchOptions) { this.matchOptions = Objects.requireNonNull(matchOptions); return this; @@ -93,14 +82,20 @@ public Builder matchOptions(List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategoryRuleRuleAndCostCategory build() { - return new GetCostCategoryRuleRuleAndCostCategory(key, matchOptions, values); + } + public GetCostCategoryRuleRuleAndCostCategory build() { + final var o = new GetCostCategoryRuleRuleAndCostCategory(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAndDimension.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAndDimension.java index 6cf4ec4a480..45314905fcb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAndDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAndDimension.java @@ -14,28 +14,19 @@ public final class GetCostCategoryRuleRuleAndDimension { * @return Key for the tag. * */ - private final String key; + private String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final List matchOptions; + private List matchOptions; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategoryRuleRuleAndDimension( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("matchOptions") List matchOptions, - @CustomType.Parameter("values") List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private List values; + private GetCostCategoryRuleRuleAndDimension() {} /** * @return Key for the tag. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleAndDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List matchOptions; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleAndDimension defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -82,10 +69,12 @@ public Builder(GetCostCategoryRuleRuleAndDimension defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder matchOptions(List matchOptions) { this.matchOptions = Objects.requireNonNull(matchOptions); return this; @@ -93,14 +82,20 @@ public Builder matchOptions(List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategoryRuleRuleAndDimension build() { - return new GetCostCategoryRuleRuleAndDimension(key, matchOptions, values); + } + public GetCostCategoryRuleRuleAndDimension build() { + final var o = new GetCostCategoryRuleRuleAndDimension(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAndTag.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAndTag.java index dee4b02936e..e060eec965e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAndTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleAndTag.java @@ -14,28 +14,19 @@ public final class GetCostCategoryRuleRuleAndTag { * @return Key for the tag. * */ - private final String key; + private String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final List matchOptions; + private List matchOptions; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategoryRuleRuleAndTag( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("matchOptions") List matchOptions, - @CustomType.Parameter("values") List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private List values; + private GetCostCategoryRuleRuleAndTag() {} /** * @return Key for the tag. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleAndTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List matchOptions; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleAndTag defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -82,10 +69,12 @@ public Builder(GetCostCategoryRuleRuleAndTag defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder matchOptions(List matchOptions) { this.matchOptions = Objects.requireNonNull(matchOptions); return this; @@ -93,14 +82,20 @@ public Builder matchOptions(List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategoryRuleRuleAndTag build() { - return new GetCostCategoryRuleRuleAndTag(key, matchOptions, values); + } + public GetCostCategoryRuleRuleAndTag build() { + final var o = new GetCostCategoryRuleRuleAndTag(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleCostCategory.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleCostCategory.java index 07fff9061bc..12c946f4ced 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleCostCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleCostCategory.java @@ -14,28 +14,19 @@ public final class GetCostCategoryRuleRuleCostCategory { * @return Key for the tag. * */ - private final String key; + private String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final List matchOptions; + private List matchOptions; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategoryRuleRuleCostCategory( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("matchOptions") List matchOptions, - @CustomType.Parameter("values") List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private List values; + private GetCostCategoryRuleRuleCostCategory() {} /** * @return Key for the tag. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleCostCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List matchOptions; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleCostCategory defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -82,10 +69,12 @@ public Builder(GetCostCategoryRuleRuleCostCategory defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder matchOptions(List matchOptions) { this.matchOptions = Objects.requireNonNull(matchOptions); return this; @@ -93,14 +82,20 @@ public Builder matchOptions(List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategoryRuleRuleCostCategory build() { - return new GetCostCategoryRuleRuleCostCategory(key, matchOptions, values); + } + public GetCostCategoryRuleRuleCostCategory build() { + final var o = new GetCostCategoryRuleRuleCostCategory(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleDimension.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleDimension.java index 36fa99207a7..dba0fcf6a63 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleDimension.java @@ -14,28 +14,19 @@ public final class GetCostCategoryRuleRuleDimension { * @return Key for the tag. * */ - private final String key; + private String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final List matchOptions; + private List matchOptions; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategoryRuleRuleDimension( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("matchOptions") List matchOptions, - @CustomType.Parameter("values") List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private List values; + private GetCostCategoryRuleRuleDimension() {} /** * @return Key for the tag. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List matchOptions; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleDimension defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -82,10 +69,12 @@ public Builder(GetCostCategoryRuleRuleDimension defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder matchOptions(List matchOptions) { this.matchOptions = Objects.requireNonNull(matchOptions); return this; @@ -93,14 +82,20 @@ public Builder matchOptions(List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategoryRuleRuleDimension build() { - return new GetCostCategoryRuleRuleDimension(key, matchOptions, values); + } + public GetCostCategoryRuleRuleDimension build() { + final var o = new GetCostCategoryRuleRuleDimension(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNot.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNot.java index 08ff9ea323f..e49cd1adbd9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNot.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNot.java @@ -16,28 +16,19 @@ public final class GetCostCategoryRuleRuleNot { * @return Configuration block for the filter that's based on `CostCategory` values. See below. * */ - private final List costCategories; + private List costCategories; /** * @return Configuration block for the specific `Dimension` to use for `Expression`. See below. * */ - private final List dimensions; + private List dimensions; /** * @return Resource tags. * */ - private final List tags; - - @CustomType.Constructor - private GetCostCategoryRuleRuleNot( - @CustomType.Parameter("costCategories") List costCategories, - @CustomType.Parameter("dimensions") List dimensions, - @CustomType.Parameter("tags") List tags) { - this.costCategories = costCategories; - this.dimensions = dimensions; - this.tags = tags; - } + private List tags; + private GetCostCategoryRuleRuleNot() {} /** * @return Configuration block for the filter that's based on `CostCategory` values. See below. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleNot defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List costCategories; private List dimensions; private List tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleNot defaults) { Objects.requireNonNull(defaults); this.costCategories = defaults.costCategories; @@ -84,6 +71,7 @@ public Builder(GetCostCategoryRuleRuleNot defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder costCategories(List costCategories) { this.costCategories = Objects.requireNonNull(costCategories); return this; @@ -91,6 +79,7 @@ public Builder costCategories(List costC public Builder costCategories(GetCostCategoryRuleRuleNotCostCategory... costCategories) { return costCategories(List.of(costCategories)); } + @CustomType.Setter public Builder dimensions(List dimensions) { this.dimensions = Objects.requireNonNull(dimensions); return this; @@ -98,14 +87,20 @@ public Builder dimensions(List dimensions) public Builder dimensions(GetCostCategoryRuleRuleNotDimension... dimensions) { return dimensions(List.of(dimensions)); } + @CustomType.Setter public Builder tags(List tags) { this.tags = Objects.requireNonNull(tags); return this; } public Builder tags(GetCostCategoryRuleRuleNotTag... tags) { return tags(List.of(tags)); - } public GetCostCategoryRuleRuleNot build() { - return new GetCostCategoryRuleRuleNot(costCategories, dimensions, tags); + } + public GetCostCategoryRuleRuleNot build() { + final var o = new GetCostCategoryRuleRuleNot(); + o.costCategories = costCategories; + o.dimensions = dimensions; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNotCostCategory.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNotCostCategory.java index 159f98a3cb9..d1078923d6d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNotCostCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNotCostCategory.java @@ -14,28 +14,19 @@ public final class GetCostCategoryRuleRuleNotCostCategory { * @return Key for the tag. * */ - private final String key; + private String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final List matchOptions; + private List matchOptions; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategoryRuleRuleNotCostCategory( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("matchOptions") List matchOptions, - @CustomType.Parameter("values") List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private List values; + private GetCostCategoryRuleRuleNotCostCategory() {} /** * @return Key for the tag. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleNotCostCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List matchOptions; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleNotCostCategory defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -82,10 +69,12 @@ public Builder(GetCostCategoryRuleRuleNotCostCategory defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder matchOptions(List matchOptions) { this.matchOptions = Objects.requireNonNull(matchOptions); return this; @@ -93,14 +82,20 @@ public Builder matchOptions(List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategoryRuleRuleNotCostCategory build() { - return new GetCostCategoryRuleRuleNotCostCategory(key, matchOptions, values); + } + public GetCostCategoryRuleRuleNotCostCategory build() { + final var o = new GetCostCategoryRuleRuleNotCostCategory(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNotDimension.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNotDimension.java index 5427e643db4..fef95d2f93c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNotDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNotDimension.java @@ -14,28 +14,19 @@ public final class GetCostCategoryRuleRuleNotDimension { * @return Key for the tag. * */ - private final String key; + private String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final List matchOptions; + private List matchOptions; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategoryRuleRuleNotDimension( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("matchOptions") List matchOptions, - @CustomType.Parameter("values") List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private List values; + private GetCostCategoryRuleRuleNotDimension() {} /** * @return Key for the tag. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleNotDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List matchOptions; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleNotDimension defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -82,10 +69,12 @@ public Builder(GetCostCategoryRuleRuleNotDimension defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder matchOptions(List matchOptions) { this.matchOptions = Objects.requireNonNull(matchOptions); return this; @@ -93,14 +82,20 @@ public Builder matchOptions(List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategoryRuleRuleNotDimension build() { - return new GetCostCategoryRuleRuleNotDimension(key, matchOptions, values); + } + public GetCostCategoryRuleRuleNotDimension build() { + final var o = new GetCostCategoryRuleRuleNotDimension(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNotTag.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNotTag.java index 043e208b9e2..8ac4103e74b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNotTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleNotTag.java @@ -14,28 +14,19 @@ public final class GetCostCategoryRuleRuleNotTag { * @return Key for the tag. * */ - private final String key; + private String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final List matchOptions; + private List matchOptions; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategoryRuleRuleNotTag( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("matchOptions") List matchOptions, - @CustomType.Parameter("values") List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private List values; + private GetCostCategoryRuleRuleNotTag() {} /** * @return Key for the tag. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleNotTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List matchOptions; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleNotTag defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -82,10 +69,12 @@ public Builder(GetCostCategoryRuleRuleNotTag defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder matchOptions(List matchOptions) { this.matchOptions = Objects.requireNonNull(matchOptions); return this; @@ -93,14 +82,20 @@ public Builder matchOptions(List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategoryRuleRuleNotTag build() { - return new GetCostCategoryRuleRuleNotTag(key, matchOptions, values); + } + public GetCostCategoryRuleRuleNotTag build() { + final var o = new GetCostCategoryRuleRuleNotTag(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOr.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOr.java index ae6026d3213..9a75efa6143 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOr.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOr.java @@ -16,28 +16,19 @@ public final class GetCostCategoryRuleRuleOr { * @return Configuration block for the filter that's based on `CostCategory` values. See below. * */ - private final List costCategories; + private List costCategories; /** * @return Configuration block for the specific `Dimension` to use for `Expression`. See below. * */ - private final List dimensions; + private List dimensions; /** * @return Resource tags. * */ - private final List tags; - - @CustomType.Constructor - private GetCostCategoryRuleRuleOr( - @CustomType.Parameter("costCategories") List costCategories, - @CustomType.Parameter("dimensions") List dimensions, - @CustomType.Parameter("tags") List tags) { - this.costCategories = costCategories; - this.dimensions = dimensions; - this.tags = tags; - } + private List tags; + private GetCostCategoryRuleRuleOr() {} /** * @return Configuration block for the filter that's based on `CostCategory` values. See below. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleOr defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List costCategories; private List dimensions; private List tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleOr defaults) { Objects.requireNonNull(defaults); this.costCategories = defaults.costCategories; @@ -84,6 +71,7 @@ public Builder(GetCostCategoryRuleRuleOr defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder costCategories(List costCategories) { this.costCategories = Objects.requireNonNull(costCategories); return this; @@ -91,6 +79,7 @@ public Builder costCategories(List costCa public Builder costCategories(GetCostCategoryRuleRuleOrCostCategory... costCategories) { return costCategories(List.of(costCategories)); } + @CustomType.Setter public Builder dimensions(List dimensions) { this.dimensions = Objects.requireNonNull(dimensions); return this; @@ -98,14 +87,20 @@ public Builder dimensions(List dimensions) { public Builder dimensions(GetCostCategoryRuleRuleOrDimension... dimensions) { return dimensions(List.of(dimensions)); } + @CustomType.Setter public Builder tags(List tags) { this.tags = Objects.requireNonNull(tags); return this; } public Builder tags(GetCostCategoryRuleRuleOrTag... tags) { return tags(List.of(tags)); - } public GetCostCategoryRuleRuleOr build() { - return new GetCostCategoryRuleRuleOr(costCategories, dimensions, tags); + } + public GetCostCategoryRuleRuleOr build() { + final var o = new GetCostCategoryRuleRuleOr(); + o.costCategories = costCategories; + o.dimensions = dimensions; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOrCostCategory.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOrCostCategory.java index f28a00dfa0a..67120e8c5bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOrCostCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOrCostCategory.java @@ -14,28 +14,19 @@ public final class GetCostCategoryRuleRuleOrCostCategory { * @return Key for the tag. * */ - private final String key; + private String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final List matchOptions; + private List matchOptions; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategoryRuleRuleOrCostCategory( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("matchOptions") List matchOptions, - @CustomType.Parameter("values") List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private List values; + private GetCostCategoryRuleRuleOrCostCategory() {} /** * @return Key for the tag. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleOrCostCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List matchOptions; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleOrCostCategory defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -82,10 +69,12 @@ public Builder(GetCostCategoryRuleRuleOrCostCategory defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder matchOptions(List matchOptions) { this.matchOptions = Objects.requireNonNull(matchOptions); return this; @@ -93,14 +82,20 @@ public Builder matchOptions(List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategoryRuleRuleOrCostCategory build() { - return new GetCostCategoryRuleRuleOrCostCategory(key, matchOptions, values); + } + public GetCostCategoryRuleRuleOrCostCategory build() { + final var o = new GetCostCategoryRuleRuleOrCostCategory(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOrDimension.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOrDimension.java index c8635eb4c77..93af6fcb61c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOrDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOrDimension.java @@ -14,28 +14,19 @@ public final class GetCostCategoryRuleRuleOrDimension { * @return Key for the tag. * */ - private final String key; + private String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final List matchOptions; + private List matchOptions; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategoryRuleRuleOrDimension( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("matchOptions") List matchOptions, - @CustomType.Parameter("values") List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private List values; + private GetCostCategoryRuleRuleOrDimension() {} /** * @return Key for the tag. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleOrDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List matchOptions; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleOrDimension defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -82,10 +69,12 @@ public Builder(GetCostCategoryRuleRuleOrDimension defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder matchOptions(List matchOptions) { this.matchOptions = Objects.requireNonNull(matchOptions); return this; @@ -93,14 +82,20 @@ public Builder matchOptions(List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategoryRuleRuleOrDimension build() { - return new GetCostCategoryRuleRuleOrDimension(key, matchOptions, values); + } + public GetCostCategoryRuleRuleOrDimension build() { + final var o = new GetCostCategoryRuleRuleOrDimension(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOrTag.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOrTag.java index 6e9ca704091..cce6d24bcd0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOrTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleOrTag.java @@ -14,28 +14,19 @@ public final class GetCostCategoryRuleRuleOrTag { * @return Key for the tag. * */ - private final String key; + private String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final List matchOptions; + private List matchOptions; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategoryRuleRuleOrTag( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("matchOptions") List matchOptions, - @CustomType.Parameter("values") List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private List values; + private GetCostCategoryRuleRuleOrTag() {} /** * @return Key for the tag. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleOrTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List matchOptions; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleOrTag defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -82,10 +69,12 @@ public Builder(GetCostCategoryRuleRuleOrTag defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder matchOptions(List matchOptions) { this.matchOptions = Objects.requireNonNull(matchOptions); return this; @@ -93,14 +82,20 @@ public Builder matchOptions(List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategoryRuleRuleOrTag build() { - return new GetCostCategoryRuleRuleOrTag(key, matchOptions, values); + } + public GetCostCategoryRuleRuleOrTag build() { + final var o = new GetCostCategoryRuleRuleOrTag(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleTag.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleTag.java index 67990372b17..a717d581a41 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategoryRuleRuleTag.java @@ -14,28 +14,19 @@ public final class GetCostCategoryRuleRuleTag { * @return Key for the tag. * */ - private final String key; + private String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final List matchOptions; + private List matchOptions; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategoryRuleRuleTag( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("matchOptions") List matchOptions, - @CustomType.Parameter("values") List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private List values; + private GetCostCategoryRuleRuleTag() {} /** * @return Key for the tag. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetCostCategoryRuleRuleTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List matchOptions; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategoryRuleRuleTag defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -82,10 +69,12 @@ public Builder(GetCostCategoryRuleRuleTag defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder matchOptions(List matchOptions) { this.matchOptions = Objects.requireNonNull(matchOptions); return this; @@ -93,14 +82,20 @@ public Builder matchOptions(List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategoryRuleRuleTag build() { - return new GetCostCategoryRuleRuleTag(key, matchOptions, values); + } + public GetCostCategoryRuleRuleTag build() { + final var o = new GetCostCategoryRuleRuleTag(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategorySplitChargeRule.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategorySplitChargeRule.java index 4789f97f118..64e21fc4d83 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategorySplitChargeRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategorySplitChargeRule.java @@ -15,35 +15,24 @@ public final class GetCostCategorySplitChargeRule { * @return Method that's used to define how to split your source costs across your targets. Valid values are `FIXED`, `PROPORTIONAL`, `EVEN` * */ - private final String method; + private String method; /** * @return Configuration block for the parameters for a split charge method. This is only required for the `FIXED` method. See below. * */ - private final List parameters; + private List parameters; /** * @return Cost Category value that you want to split. * */ - private final String source; + private String source; /** * @return Cost Category values that you want to split costs across. These values can't be used as a source in other split charge rules. * */ - private final List targets; - - @CustomType.Constructor - private GetCostCategorySplitChargeRule( - @CustomType.Parameter("method") String method, - @CustomType.Parameter("parameters") List parameters, - @CustomType.Parameter("source") String source, - @CustomType.Parameter("targets") List targets) { - this.method = method; - this.parameters = parameters; - this.source = source; - this.targets = targets; - } + private List targets; + private GetCostCategorySplitChargeRule() {} /** * @return Method that's used to define how to split your source costs across your targets. Valid values are `FIXED`, `PROPORTIONAL`, `EVEN` * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(GetCostCategorySplitChargeRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String method; private List parameters; private String source; private List targets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategorySplitChargeRule defaults) { Objects.requireNonNull(defaults); this.method = defaults.method; @@ -99,10 +84,12 @@ public Builder(GetCostCategorySplitChargeRule defaults) { this.targets = defaults.targets; } + @CustomType.Setter public Builder method(String method) { this.method = Objects.requireNonNull(method); return this; } + @CustomType.Setter public Builder parameters(List parameters) { this.parameters = Objects.requireNonNull(parameters); return this; @@ -110,18 +97,26 @@ public Builder parameters(List paramete public Builder parameters(GetCostCategorySplitChargeRuleParameter... parameters) { return parameters(List.of(parameters)); } + @CustomType.Setter public Builder source(String source) { this.source = Objects.requireNonNull(source); return this; } + @CustomType.Setter public Builder targets(List targets) { this.targets = Objects.requireNonNull(targets); return this; } public Builder targets(String... targets) { return targets(List.of(targets)); - } public GetCostCategorySplitChargeRule build() { - return new GetCostCategorySplitChargeRule(method, parameters, source, targets); + } + public GetCostCategorySplitChargeRule build() { + final var o = new GetCostCategorySplitChargeRule(); + o.method = method; + o.parameters = parameters; + o.source = source; + o.targets = targets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategorySplitChargeRuleParameter.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategorySplitChargeRuleParameter.java index 45498e34daf..fdbd68b8238 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategorySplitChargeRuleParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetCostCategorySplitChargeRuleParameter.java @@ -14,21 +14,14 @@ public final class GetCostCategorySplitChargeRuleParameter { * @return Parameter type. * */ - private final String type; + private String type; /** * @return Parameter values. * */ - private final List values; - - @CustomType.Constructor - private GetCostCategorySplitChargeRuleParameter( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("values") List values) { - this.type = type; - this.values = values; - } + private List values; + private GetCostCategorySplitChargeRuleParameter() {} /** * @return Parameter type. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetCostCategorySplitChargeRuleParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCostCategorySplitChargeRuleParameter defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.values = defaults.values; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCostCategorySplitChargeRuleParameter build() { - return new GetCostCategorySplitChargeRuleParameter(type, values); + } + public GetCostCategorySplitChargeRuleParameter build() { + final var o = new GetCostCategorySplitChargeRuleParameter(); + o.type = type; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilter.java index 38cf599f6a5..52f6c6c8a01 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilter.java @@ -21,49 +21,34 @@ public final class GetTagsFilter { * @return Return results that match both `Dimension` objects. * */ - private final @Nullable List ands; + private @Nullable List ands; /** * @return Configuration block for the filter that's based on `CostCategory` values. See below. * */ - private final @Nullable GetTagsFilterCostCategory costCategory; + private @Nullable GetTagsFilterCostCategory costCategory; /** * @return Configuration block for the specific `Dimension` to use for `Expression`. See below. * */ - private final @Nullable GetTagsFilterDimension dimension; + private @Nullable GetTagsFilterDimension dimension; /** * @return Return results that match both `Dimension` object. * */ - private final @Nullable GetTagsFilterNot not; + private @Nullable GetTagsFilterNot not; /** * @return Return results that match both `Dimension` object. * */ - private final @Nullable List ors; + private @Nullable List ors; /** * @return Tags that match your request. * */ - private final @Nullable GetTagsFilterTags tags; - - @CustomType.Constructor - private GetTagsFilter( - @CustomType.Parameter("ands") @Nullable List ands, - @CustomType.Parameter("costCategory") @Nullable GetTagsFilterCostCategory costCategory, - @CustomType.Parameter("dimension") @Nullable GetTagsFilterDimension dimension, - @CustomType.Parameter("not") @Nullable GetTagsFilterNot not, - @CustomType.Parameter("ors") @Nullable List ors, - @CustomType.Parameter("tags") @Nullable GetTagsFilterTags tags) { - this.ands = ands; - this.costCategory = costCategory; - this.dimension = dimension; - this.not = not; - this.ors = ors; - this.tags = tags; - } + private @Nullable GetTagsFilterTags tags; + private GetTagsFilter() {} /** * @return Return results that match both `Dimension` objects. * @@ -114,7 +99,7 @@ public static Builder builder() { public static Builder builder(GetTagsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List ands; private @Nullable GetTagsFilterCostCategory costCategory; @@ -122,11 +107,7 @@ public static final class Builder { private @Nullable GetTagsFilterNot not; private @Nullable List ors; private @Nullable GetTagsFilterTags tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilter defaults) { Objects.requireNonNull(defaults); this.ands = defaults.ands; @@ -137,6 +118,7 @@ public Builder(GetTagsFilter defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder ands(@Nullable List ands) { this.ands = ands; return this; @@ -144,18 +126,22 @@ public Builder ands(@Nullable List ands) { public Builder ands(GetTagsFilterAnd... ands) { return ands(List.of(ands)); } + @CustomType.Setter public Builder costCategory(@Nullable GetTagsFilterCostCategory costCategory) { this.costCategory = costCategory; return this; } + @CustomType.Setter public Builder dimension(@Nullable GetTagsFilterDimension dimension) { this.dimension = dimension; return this; } + @CustomType.Setter public Builder not(@Nullable GetTagsFilterNot not) { this.not = not; return this; } + @CustomType.Setter public Builder ors(@Nullable List ors) { this.ors = ors; return this; @@ -163,11 +149,20 @@ public Builder ors(@Nullable List ors) { public Builder ors(GetTagsFilterOr... ors) { return ors(List.of(ors)); } + @CustomType.Setter public Builder tags(@Nullable GetTagsFilterTags tags) { this.tags = tags; return this; - } public GetTagsFilter build() { - return new GetTagsFilter(ands, costCategory, dimension, not, ors, tags); + } + public GetTagsFilter build() { + final var o = new GetTagsFilter(); + o.ands = ands; + o.costCategory = costCategory; + o.dimension = dimension; + o.not = not; + o.ors = ors; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAnd.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAnd.java index a32fba4123b..e0adf6e300b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAnd.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAnd.java @@ -17,28 +17,19 @@ public final class GetTagsFilterAnd { * @return Configuration block for the filter that's based on `CostCategory` values. See below. * */ - private final @Nullable GetTagsFilterAndCostCategory costCategory; + private @Nullable GetTagsFilterAndCostCategory costCategory; /** * @return Configuration block for the specific `Dimension` to use for `Expression`. See below. * */ - private final @Nullable GetTagsFilterAndDimension dimension; + private @Nullable GetTagsFilterAndDimension dimension; /** * @return Tags that match your request. * */ - private final @Nullable GetTagsFilterAndTags tags; - - @CustomType.Constructor - private GetTagsFilterAnd( - @CustomType.Parameter("costCategory") @Nullable GetTagsFilterAndCostCategory costCategory, - @CustomType.Parameter("dimension") @Nullable GetTagsFilterAndDimension dimension, - @CustomType.Parameter("tags") @Nullable GetTagsFilterAndTags tags) { - this.costCategory = costCategory; - this.dimension = dimension; - this.tags = tags; - } + private @Nullable GetTagsFilterAndTags tags; + private GetTagsFilterAnd() {} /** * @return Configuration block for the filter that's based on `CostCategory` values. See below. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterAnd defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GetTagsFilterAndCostCategory costCategory; private @Nullable GetTagsFilterAndDimension dimension; private @Nullable GetTagsFilterAndTags tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterAnd defaults) { Objects.requireNonNull(defaults); this.costCategory = defaults.costCategory; @@ -85,19 +72,27 @@ public Builder(GetTagsFilterAnd defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder costCategory(@Nullable GetTagsFilterAndCostCategory costCategory) { this.costCategory = costCategory; return this; } + @CustomType.Setter public Builder dimension(@Nullable GetTagsFilterAndDimension dimension) { this.dimension = dimension; return this; } + @CustomType.Setter public Builder tags(@Nullable GetTagsFilterAndTags tags) { this.tags = tags; return this; - } public GetTagsFilterAnd build() { - return new GetTagsFilterAnd(costCategory, dimension, tags); + } + public GetTagsFilterAnd build() { + final var o = new GetTagsFilterAnd(); + o.costCategory = costCategory; + o.dimension = dimension; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAndCostCategory.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAndCostCategory.java index fca4dfb383d..af4785183a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAndCostCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAndCostCategory.java @@ -16,28 +16,19 @@ public final class GetTagsFilterAndCostCategory { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Specific value of the Cost Category. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetTagsFilterAndCostCategory( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private GetTagsFilterAndCostCategory() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterAndCostCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterAndCostCategory defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(GetTagsFilterAndCostCategory defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTagsFilterAndCostCategory build() { - return new GetTagsFilterAndCostCategory(key, matchOptions, values); + } + public GetTagsFilterAndCostCategory build() { + final var o = new GetTagsFilterAndCostCategory(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAndDimension.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAndDimension.java index 8267c74c541..d6a552cb603 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAndDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAndDimension.java @@ -16,28 +16,19 @@ public final class GetTagsFilterAndDimension { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Specific value of the Cost Category. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetTagsFilterAndDimension( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private GetTagsFilterAndDimension() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterAndDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterAndDimension defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(GetTagsFilterAndDimension defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTagsFilterAndDimension build() { - return new GetTagsFilterAndDimension(key, matchOptions, values); + } + public GetTagsFilterAndDimension build() { + final var o = new GetTagsFilterAndDimension(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAndTags.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAndTags.java index c03b2fb2c33..0fea0f70464 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAndTags.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterAndTags.java @@ -16,28 +16,19 @@ public final class GetTagsFilterAndTags { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Specific value of the Cost Category. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetTagsFilterAndTags( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private GetTagsFilterAndTags() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterAndTags defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterAndTags defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(GetTagsFilterAndTags defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTagsFilterAndTags build() { - return new GetTagsFilterAndTags(key, matchOptions, values); + } + public GetTagsFilterAndTags build() { + final var o = new GetTagsFilterAndTags(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterCostCategory.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterCostCategory.java index dfc8729c3cf..fc783331b7b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterCostCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterCostCategory.java @@ -16,28 +16,19 @@ public final class GetTagsFilterCostCategory { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Specific value of the Cost Category. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetTagsFilterCostCategory( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private GetTagsFilterCostCategory() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterCostCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterCostCategory defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(GetTagsFilterCostCategory defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTagsFilterCostCategory build() { - return new GetTagsFilterCostCategory(key, matchOptions, values); + } + public GetTagsFilterCostCategory build() { + final var o = new GetTagsFilterCostCategory(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterDimension.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterDimension.java index 5fea15c082a..3da301f94c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterDimension.java @@ -16,28 +16,19 @@ public final class GetTagsFilterDimension { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Specific value of the Cost Category. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetTagsFilterDimension( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private GetTagsFilterDimension() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterDimension defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(GetTagsFilterDimension defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTagsFilterDimension build() { - return new GetTagsFilterDimension(key, matchOptions, values); + } + public GetTagsFilterDimension build() { + final var o = new GetTagsFilterDimension(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNot.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNot.java index b091fd5d7cc..c6c2f308f44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNot.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNot.java @@ -17,28 +17,19 @@ public final class GetTagsFilterNot { * @return Configuration block for the filter that's based on `CostCategory` values. See below. * */ - private final @Nullable GetTagsFilterNotCostCategory costCategory; + private @Nullable GetTagsFilterNotCostCategory costCategory; /** * @return Configuration block for the specific `Dimension` to use for `Expression`. See below. * */ - private final @Nullable GetTagsFilterNotDimension dimension; + private @Nullable GetTagsFilterNotDimension dimension; /** * @return Tags that match your request. * */ - private final @Nullable GetTagsFilterNotTags tags; - - @CustomType.Constructor - private GetTagsFilterNot( - @CustomType.Parameter("costCategory") @Nullable GetTagsFilterNotCostCategory costCategory, - @CustomType.Parameter("dimension") @Nullable GetTagsFilterNotDimension dimension, - @CustomType.Parameter("tags") @Nullable GetTagsFilterNotTags tags) { - this.costCategory = costCategory; - this.dimension = dimension; - this.tags = tags; - } + private @Nullable GetTagsFilterNotTags tags; + private GetTagsFilterNot() {} /** * @return Configuration block for the filter that's based on `CostCategory` values. See below. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterNot defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GetTagsFilterNotCostCategory costCategory; private @Nullable GetTagsFilterNotDimension dimension; private @Nullable GetTagsFilterNotTags tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterNot defaults) { Objects.requireNonNull(defaults); this.costCategory = defaults.costCategory; @@ -85,19 +72,27 @@ public Builder(GetTagsFilterNot defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder costCategory(@Nullable GetTagsFilterNotCostCategory costCategory) { this.costCategory = costCategory; return this; } + @CustomType.Setter public Builder dimension(@Nullable GetTagsFilterNotDimension dimension) { this.dimension = dimension; return this; } + @CustomType.Setter public Builder tags(@Nullable GetTagsFilterNotTags tags) { this.tags = tags; return this; - } public GetTagsFilterNot build() { - return new GetTagsFilterNot(costCategory, dimension, tags); + } + public GetTagsFilterNot build() { + final var o = new GetTagsFilterNot(); + o.costCategory = costCategory; + o.dimension = dimension; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNotCostCategory.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNotCostCategory.java index 738db7c1d79..d26feb0ba6b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNotCostCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNotCostCategory.java @@ -16,28 +16,19 @@ public final class GetTagsFilterNotCostCategory { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Specific value of the Cost Category. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetTagsFilterNotCostCategory( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private GetTagsFilterNotCostCategory() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterNotCostCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterNotCostCategory defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(GetTagsFilterNotCostCategory defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTagsFilterNotCostCategory build() { - return new GetTagsFilterNotCostCategory(key, matchOptions, values); + } + public GetTagsFilterNotCostCategory build() { + final var o = new GetTagsFilterNotCostCategory(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNotDimension.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNotDimension.java index 2dff2513eea..d52831c026d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNotDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNotDimension.java @@ -16,28 +16,19 @@ public final class GetTagsFilterNotDimension { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Specific value of the Cost Category. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetTagsFilterNotDimension( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private GetTagsFilterNotDimension() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterNotDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterNotDimension defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(GetTagsFilterNotDimension defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTagsFilterNotDimension build() { - return new GetTagsFilterNotDimension(key, matchOptions, values); + } + public GetTagsFilterNotDimension build() { + final var o = new GetTagsFilterNotDimension(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNotTags.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNotTags.java index 85dcb38e682..c77d140c739 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNotTags.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterNotTags.java @@ -16,28 +16,19 @@ public final class GetTagsFilterNotTags { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Specific value of the Cost Category. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetTagsFilterNotTags( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private GetTagsFilterNotTags() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterNotTags defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterNotTags defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(GetTagsFilterNotTags defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTagsFilterNotTags build() { - return new GetTagsFilterNotTags(key, matchOptions, values); + } + public GetTagsFilterNotTags build() { + final var o = new GetTagsFilterNotTags(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOr.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOr.java index 2891c6ccb71..b42a5950b10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOr.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOr.java @@ -17,28 +17,19 @@ public final class GetTagsFilterOr { * @return Configuration block for the filter that's based on `CostCategory` values. See below. * */ - private final @Nullable GetTagsFilterOrCostCategory costCategory; + private @Nullable GetTagsFilterOrCostCategory costCategory; /** * @return Configuration block for the specific `Dimension` to use for `Expression`. See below. * */ - private final @Nullable GetTagsFilterOrDimension dimension; + private @Nullable GetTagsFilterOrDimension dimension; /** * @return Tags that match your request. * */ - private final @Nullable GetTagsFilterOrTags tags; - - @CustomType.Constructor - private GetTagsFilterOr( - @CustomType.Parameter("costCategory") @Nullable GetTagsFilterOrCostCategory costCategory, - @CustomType.Parameter("dimension") @Nullable GetTagsFilterOrDimension dimension, - @CustomType.Parameter("tags") @Nullable GetTagsFilterOrTags tags) { - this.costCategory = costCategory; - this.dimension = dimension; - this.tags = tags; - } + private @Nullable GetTagsFilterOrTags tags; + private GetTagsFilterOr() {} /** * @return Configuration block for the filter that's based on `CostCategory` values. See below. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterOr defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GetTagsFilterOrCostCategory costCategory; private @Nullable GetTagsFilterOrDimension dimension; private @Nullable GetTagsFilterOrTags tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterOr defaults) { Objects.requireNonNull(defaults); this.costCategory = defaults.costCategory; @@ -85,19 +72,27 @@ public Builder(GetTagsFilterOr defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder costCategory(@Nullable GetTagsFilterOrCostCategory costCategory) { this.costCategory = costCategory; return this; } + @CustomType.Setter public Builder dimension(@Nullable GetTagsFilterOrDimension dimension) { this.dimension = dimension; return this; } + @CustomType.Setter public Builder tags(@Nullable GetTagsFilterOrTags tags) { this.tags = tags; return this; - } public GetTagsFilterOr build() { - return new GetTagsFilterOr(costCategory, dimension, tags); + } + public GetTagsFilterOr build() { + final var o = new GetTagsFilterOr(); + o.costCategory = costCategory; + o.dimension = dimension; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOrCostCategory.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOrCostCategory.java index ad9536c9145..909b78580ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOrCostCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOrCostCategory.java @@ -16,28 +16,19 @@ public final class GetTagsFilterOrCostCategory { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Specific value of the Cost Category. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetTagsFilterOrCostCategory( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private GetTagsFilterOrCostCategory() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterOrCostCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterOrCostCategory defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(GetTagsFilterOrCostCategory defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTagsFilterOrCostCategory build() { - return new GetTagsFilterOrCostCategory(key, matchOptions, values); + } + public GetTagsFilterOrCostCategory build() { + final var o = new GetTagsFilterOrCostCategory(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOrDimension.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOrDimension.java index 89658a6b462..fba36740939 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOrDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOrDimension.java @@ -16,28 +16,19 @@ public final class GetTagsFilterOrDimension { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Specific value of the Cost Category. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetTagsFilterOrDimension( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private GetTagsFilterOrDimension() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterOrDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterOrDimension defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(GetTagsFilterOrDimension defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTagsFilterOrDimension build() { - return new GetTagsFilterOrDimension(key, matchOptions, values); + } + public GetTagsFilterOrDimension build() { + final var o = new GetTagsFilterOrDimension(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOrTags.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOrTags.java index 448cf509558..61bb67d448b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOrTags.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterOrTags.java @@ -16,28 +16,19 @@ public final class GetTagsFilterOrTags { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Specific value of the Cost Category. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetTagsFilterOrTags( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private GetTagsFilterOrTags() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterOrTags defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterOrTags defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(GetTagsFilterOrTags defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTagsFilterOrTags build() { - return new GetTagsFilterOrTags(key, matchOptions, values); + } + public GetTagsFilterOrTags build() { + final var o = new GetTagsFilterOrTags(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterTags.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterTags.java index 09d8e590f6a..7fdeff855d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterTags.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsFilterTags.java @@ -16,28 +16,19 @@ public final class GetTagsFilterTags { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is `EQUALS` and `CASE_SENSITIVE`. Valid values are: `EQUALS`, `ABSENT`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CASE_SENSITIVE`, `CASE_INSENSITIVE`. * */ - private final @Nullable List matchOptions; + private @Nullable List matchOptions; /** * @return Specific value of the Cost Category. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetTagsFilterTags( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("matchOptions") @Nullable List matchOptions, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.matchOptions = matchOptions; - this.values = values; - } + private @Nullable List values; + private GetTagsFilterTags() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetTagsFilterTags defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable List matchOptions; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsFilterTags defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,10 +71,12 @@ public Builder(GetTagsFilterTags defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder matchOptions(@Nullable List matchOptions) { this.matchOptions = matchOptions; return this; @@ -95,14 +84,20 @@ public Builder matchOptions(@Nullable List matchOptions) { public Builder matchOptions(String... matchOptions) { return matchOptions(List.of(matchOptions)); } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTagsFilterTags build() { - return new GetTagsFilterTags(key, matchOptions, values); + } + public GetTagsFilterTags build() { + final var o = new GetTagsFilterTags(); + o.key = key; + o.matchOptions = matchOptions; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsResult.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsResult.java index 538f7a1deb0..7389fc211da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsResult.java @@ -15,40 +15,23 @@ @CustomType public final class GetTagsResult { - private final @Nullable GetTagsFilter filter; + private @Nullable GetTagsFilter filter; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String searchString; - private final @Nullable List sortBies; - private final @Nullable String tagKey; + private String id; + private @Nullable String searchString; + private @Nullable List sortBies; + private @Nullable String tagKey; /** * @return Tags that match your request. * */ - private final List tags; - private final GetTagsTimePeriod timePeriod; - - @CustomType.Constructor - private GetTagsResult( - @CustomType.Parameter("filter") @Nullable GetTagsFilter filter, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("searchString") @Nullable String searchString, - @CustomType.Parameter("sortBies") @Nullable List sortBies, - @CustomType.Parameter("tagKey") @Nullable String tagKey, - @CustomType.Parameter("tags") List tags, - @CustomType.Parameter("timePeriod") GetTagsTimePeriod timePeriod) { - this.filter = filter; - this.id = id; - this.searchString = searchString; - this.sortBies = sortBies; - this.tagKey = tagKey; - this.tags = tags; - this.timePeriod = timePeriod; - } + private List tags; + private GetTagsTimePeriod timePeriod; + private GetTagsResult() {} public Optional filter() { return Optional.ofNullable(this.filter); } @@ -86,7 +69,7 @@ public static Builder builder() { public static Builder builder(GetTagsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GetTagsFilter filter; private String id; @@ -95,11 +78,7 @@ public static final class Builder { private @Nullable String tagKey; private List tags; private GetTagsTimePeriod timePeriod; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsResult defaults) { Objects.requireNonNull(defaults); this.filter = defaults.filter; @@ -111,18 +90,22 @@ public Builder(GetTagsResult defaults) { this.timePeriod = defaults.timePeriod; } + @CustomType.Setter public Builder filter(@Nullable GetTagsFilter filter) { this.filter = filter; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder searchString(@Nullable String searchString) { this.searchString = searchString; return this; } + @CustomType.Setter public Builder sortBies(@Nullable List sortBies) { this.sortBies = sortBies; return this; @@ -130,10 +113,12 @@ public Builder sortBies(@Nullable List sortBies) { public Builder sortBies(GetTagsSortBy... sortBies) { return sortBies(List.of(sortBies)); } + @CustomType.Setter public Builder tagKey(@Nullable String tagKey) { this.tagKey = tagKey; return this; } + @CustomType.Setter public Builder tags(List tags) { this.tags = Objects.requireNonNull(tags); return this; @@ -141,11 +126,21 @@ public Builder tags(List tags) { public Builder tags(String... tags) { return tags(List.of(tags)); } + @CustomType.Setter public Builder timePeriod(GetTagsTimePeriod timePeriod) { this.timePeriod = Objects.requireNonNull(timePeriod); return this; - } public GetTagsResult build() { - return new GetTagsResult(filter, id, searchString, sortBies, tagKey, tags, timePeriod); + } + public GetTagsResult build() { + final var o = new GetTagsResult(); + o.filter = filter; + o.id = id; + o.searchString = searchString; + o.sortBies = sortBies; + o.tagKey = tagKey; + o.tags = tags; + o.timePeriod = timePeriod; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsSortBy.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsSortBy.java index 01350add5f4..083ba99158c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsSortBy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsSortBy.java @@ -15,21 +15,14 @@ public final class GetTagsSortBy { * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return order that's used to sort the data. Valid values are: `ASCENDING`, `DESCENDING`. * */ - private final @Nullable String sortOrder; - - @CustomType.Constructor - private GetTagsSortBy( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("sortOrder") @Nullable String sortOrder) { - this.key = key; - this.sortOrder = sortOrder; - } + private @Nullable String sortOrder; + private GetTagsSortBy() {} /** * @return key that's used to sort the data. Valid values are: `BlendedCost`, `UnblendedCost`, `AmortizedCost`, `NetAmortizedCost`, `NetUnblendedCost`, `UsageQuantity`, `NormalizedUsageAmount`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GetTagsSortBy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable String sortOrder; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsSortBy defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.sortOrder = defaults.sortOrder; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder sortOrder(@Nullable String sortOrder) { this.sortOrder = sortOrder; return this; - } public GetTagsSortBy build() { - return new GetTagsSortBy(key, sortOrder); + } + public GetTagsSortBy build() { + final var o = new GetTagsSortBy(); + o.key = key; + o.sortOrder = sortOrder; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsTimePeriod.java b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsTimePeriod.java index bdcf2cd7073..aaa7784ae6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsTimePeriod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/costexplorer/outputs/GetTagsTimePeriod.java @@ -13,21 +13,14 @@ public final class GetTagsTimePeriod { * @return Beginning of the time period. * */ - private final String end; + private String end; /** * @return End of the time period. * */ - private final String start; - - @CustomType.Constructor - private GetTagsTimePeriod( - @CustomType.Parameter("end") String end, - @CustomType.Parameter("start") String start) { - this.end = end; - this.start = start; - } + private String start; + private GetTagsTimePeriod() {} /** * @return Beginning of the time period. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetTagsTimePeriod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String end; private String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTagsTimePeriod defaults) { Objects.requireNonNull(defaults); this.end = defaults.end; this.start = defaults.start; } + @CustomType.Setter public Builder end(String end) { this.end = Objects.requireNonNull(end); return this; } + @CustomType.Setter public Builder start(String start) { this.start = Objects.requireNonNull(start); return this; - } public GetTagsTimePeriod build() { - return new GetTagsTimePeriod(end, start); + } + public GetTagsTimePeriod build() { + final var o = new GetTagsTimePeriod(); + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/cur/outputs/GetReportDefinitionResult.java b/sdk/java/src/main/java/com/pulumi/aws/cur/outputs/GetReportDefinitionResult.java index 8e59695b358..78f18e0fbc5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/cur/outputs/GetReportDefinitionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/cur/outputs/GetReportDefinitionResult.java @@ -15,87 +15,60 @@ public final class GetReportDefinitionResult { * @return A list of additional artifacts. * */ - private final List additionalArtifacts; + private List additionalArtifacts; /** * @return A list of schema elements. * */ - private final List additionalSchemaElements; + private List additionalSchemaElements; /** * @return Preferred format for report. * */ - private final String compression; + private String compression; /** * @return Preferred compression format for report. * */ - private final String format; + private String format; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return If true reports are updated after they have been finalized. * */ - private final Boolean refreshClosedReports; - private final String reportName; + private Boolean refreshClosedReports; + private String reportName; /** * @return Overwrite the previous version of each report or to deliver the report in addition to the previous versions. * */ - private final String reportVersioning; + private String reportVersioning; /** * @return Name of customer S3 bucket. * */ - private final String s3Bucket; + private String s3Bucket; /** * @return Preferred report path prefix. * */ - private final String s3Prefix; + private String s3Prefix; /** * @return Region of customer S3 bucket. * */ - private final String s3Region; + private String s3Region; /** * @return The frequency on which report data are measured and displayed. * */ - private final String timeUnit; - - @CustomType.Constructor - private GetReportDefinitionResult( - @CustomType.Parameter("additionalArtifacts") List additionalArtifacts, - @CustomType.Parameter("additionalSchemaElements") List additionalSchemaElements, - @CustomType.Parameter("compression") String compression, - @CustomType.Parameter("format") String format, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("refreshClosedReports") Boolean refreshClosedReports, - @CustomType.Parameter("reportName") String reportName, - @CustomType.Parameter("reportVersioning") String reportVersioning, - @CustomType.Parameter("s3Bucket") String s3Bucket, - @CustomType.Parameter("s3Prefix") String s3Prefix, - @CustomType.Parameter("s3Region") String s3Region, - @CustomType.Parameter("timeUnit") String timeUnit) { - this.additionalArtifacts = additionalArtifacts; - this.additionalSchemaElements = additionalSchemaElements; - this.compression = compression; - this.format = format; - this.id = id; - this.refreshClosedReports = refreshClosedReports; - this.reportName = reportName; - this.reportVersioning = reportVersioning; - this.s3Bucket = s3Bucket; - this.s3Prefix = s3Prefix; - this.s3Region = s3Region; - this.timeUnit = timeUnit; - } + private String timeUnit; + private GetReportDefinitionResult() {} /** * @return A list of additional artifacts. * @@ -184,7 +157,7 @@ public static Builder builder() { public static Builder builder(GetReportDefinitionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List additionalArtifacts; private List additionalSchemaElements; @@ -198,11 +171,7 @@ public static final class Builder { private String s3Prefix; private String s3Region; private String timeUnit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetReportDefinitionResult defaults) { Objects.requireNonNull(defaults); this.additionalArtifacts = defaults.additionalArtifacts; @@ -219,6 +188,7 @@ public Builder(GetReportDefinitionResult defaults) { this.timeUnit = defaults.timeUnit; } + @CustomType.Setter public Builder additionalArtifacts(List additionalArtifacts) { this.additionalArtifacts = Objects.requireNonNull(additionalArtifacts); return this; @@ -226,6 +196,7 @@ public Builder additionalArtifacts(List additionalArtifacts) { public Builder additionalArtifacts(String... additionalArtifacts) { return additionalArtifacts(List.of(additionalArtifacts)); } + @CustomType.Setter public Builder additionalSchemaElements(List additionalSchemaElements) { this.additionalSchemaElements = Objects.requireNonNull(additionalSchemaElements); return this; @@ -233,47 +204,71 @@ public Builder additionalSchemaElements(List additionalSchemaElements) { public Builder additionalSchemaElements(String... additionalSchemaElements) { return additionalSchemaElements(List.of(additionalSchemaElements)); } + @CustomType.Setter public Builder compression(String compression) { this.compression = Objects.requireNonNull(compression); return this; } + @CustomType.Setter public Builder format(String format) { this.format = Objects.requireNonNull(format); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder refreshClosedReports(Boolean refreshClosedReports) { this.refreshClosedReports = Objects.requireNonNull(refreshClosedReports); return this; } + @CustomType.Setter public Builder reportName(String reportName) { this.reportName = Objects.requireNonNull(reportName); return this; } + @CustomType.Setter public Builder reportVersioning(String reportVersioning) { this.reportVersioning = Objects.requireNonNull(reportVersioning); return this; } + @CustomType.Setter public Builder s3Bucket(String s3Bucket) { this.s3Bucket = Objects.requireNonNull(s3Bucket); return this; } + @CustomType.Setter public Builder s3Prefix(String s3Prefix) { this.s3Prefix = Objects.requireNonNull(s3Prefix); return this; } + @CustomType.Setter public Builder s3Region(String s3Region) { this.s3Region = Objects.requireNonNull(s3Region); return this; } + @CustomType.Setter public Builder timeUnit(String timeUnit) { this.timeUnit = Objects.requireNonNull(timeUnit); return this; - } public GetReportDefinitionResult build() { - return new GetReportDefinitionResult(additionalArtifacts, additionalSchemaElements, compression, format, id, refreshClosedReports, reportName, reportVersioning, s3Bucket, s3Prefix, s3Region, timeUnit); + } + public GetReportDefinitionResult build() { + final var o = new GetReportDefinitionResult(); + o.additionalArtifacts = additionalArtifacts; + o.additionalSchemaElements = additionalSchemaElements; + o.compression = compression; + o.format = format; + o.id = id; + o.refreshClosedReports = refreshClosedReports; + o.reportName = reportName; + o.reportVersioning = reportVersioning; + o.s3Bucket = s3Bucket; + o.s3Prefix = s3Prefix; + o.s3Region = s3Region; + o.timeUnit = timeUnit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionParameterObject.java b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionParameterObject.java index 92f6e0e4fc5..cd16f543588 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionParameterObject.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionParameterObject.java @@ -11,21 +11,14 @@ @CustomType public final class GetPipelineDefinitionParameterObject { - private final List attributes; + private List attributes; /** * @return ID of the object. * */ - private final String id; - - @CustomType.Constructor - private GetPipelineDefinitionParameterObject( - @CustomType.Parameter("attributes") List attributes, - @CustomType.Parameter("id") String id) { - this.attributes = attributes; - this.id = id; - } + private String id; + private GetPipelineDefinitionParameterObject() {} public List attributes() { return this.attributes; } @@ -44,21 +37,18 @@ public static Builder builder() { public static Builder builder(GetPipelineDefinitionParameterObject defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List attributes; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPipelineDefinitionParameterObject defaults) { Objects.requireNonNull(defaults); this.attributes = defaults.attributes; this.id = defaults.id; } + @CustomType.Setter public Builder attributes(List attributes) { this.attributes = Objects.requireNonNull(attributes); return this; @@ -66,11 +56,16 @@ public Builder attributes(List at public Builder attributes(GetPipelineDefinitionParameterObjectAttribute... attributes) { return attributes(List.of(attributes)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetPipelineDefinitionParameterObject build() { - return new GetPipelineDefinitionParameterObject(attributes, id); + } + public GetPipelineDefinitionParameterObject build() { + final var o = new GetPipelineDefinitionParameterObject(); + o.attributes = attributes; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionParameterObjectAttribute.java b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionParameterObjectAttribute.java index 9a56d2d5963..682e5944356 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionParameterObjectAttribute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionParameterObjectAttribute.java @@ -13,21 +13,14 @@ public final class GetPipelineDefinitionParameterObjectAttribute { * @return Field identifier. * */ - private final String key; + private String key; /** * @return Field value, expressed as a String. * */ - private final String stringValue; - - @CustomType.Constructor - private GetPipelineDefinitionParameterObjectAttribute( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("stringValue") String stringValue) { - this.key = key; - this.stringValue = stringValue; - } + private String stringValue; + private GetPipelineDefinitionParameterObjectAttribute() {} /** * @return Field identifier. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetPipelineDefinitionParameterObjectAttribute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String stringValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPipelineDefinitionParameterObjectAttribute defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.stringValue = defaults.stringValue; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder stringValue(String stringValue) { this.stringValue = Objects.requireNonNull(stringValue); return this; - } public GetPipelineDefinitionParameterObjectAttribute build() { - return new GetPipelineDefinitionParameterObjectAttribute(key, stringValue); + } + public GetPipelineDefinitionParameterObjectAttribute build() { + final var o = new GetPipelineDefinitionParameterObjectAttribute(); + o.key = key; + o.stringValue = stringValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionParameterValue.java b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionParameterValue.java index 4a55d53c5ca..5ea6a3b6572 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionParameterValue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionParameterValue.java @@ -13,21 +13,14 @@ public final class GetPipelineDefinitionParameterValue { * @return ID of the object. * */ - private final String id; + private String id; /** * @return Field value, expressed as a String. * */ - private final String stringValue; - - @CustomType.Constructor - private GetPipelineDefinitionParameterValue( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("stringValue") String stringValue) { - this.id = id; - this.stringValue = stringValue; - } + private String stringValue; + private GetPipelineDefinitionParameterValue() {} /** * @return ID of the object. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetPipelineDefinitionParameterValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String stringValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPipelineDefinitionParameterValue defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.stringValue = defaults.stringValue; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder stringValue(String stringValue) { this.stringValue = Objects.requireNonNull(stringValue); return this; - } public GetPipelineDefinitionParameterValue build() { - return new GetPipelineDefinitionParameterValue(id, stringValue); + } + public GetPipelineDefinitionParameterValue build() { + final var o = new GetPipelineDefinitionParameterValue(); + o.id = id; + o.stringValue = stringValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionPipelineObject.java b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionPipelineObject.java index b3a4bf53f62..e1bedd2333f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionPipelineObject.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionPipelineObject.java @@ -16,28 +16,19 @@ public final class GetPipelineDefinitionPipelineObject { * @return Key-value pairs that define the properties of the object. See below * */ - private final @Nullable List fields; + private @Nullable List fields; /** * @return ID of the object. * */ - private final String id; + private String id; /** * @return ARN of the storage connector. * */ - private final String name; - - @CustomType.Constructor - private GetPipelineDefinitionPipelineObject( - @CustomType.Parameter("fields") @Nullable List fields, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.fields = fields; - this.id = id; - this.name = name; - } + private String name; + private GetPipelineDefinitionPipelineObject() {} /** * @return Key-value pairs that define the properties of the object. See below * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetPipelineDefinitionPipelineObject defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List fields; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPipelineDefinitionPipelineObject defaults) { Objects.requireNonNull(defaults); this.fields = defaults.fields; @@ -84,6 +71,7 @@ public Builder(GetPipelineDefinitionPipelineObject defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder fields(@Nullable List fields) { this.fields = fields; return this; @@ -91,15 +79,22 @@ public Builder fields(@Nullable List f public Builder fields(GetPipelineDefinitionPipelineObjectField... fields) { return fields(List.of(fields)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetPipelineDefinitionPipelineObject build() { - return new GetPipelineDefinitionPipelineObject(fields, id, name); + } + public GetPipelineDefinitionPipelineObject build() { + final var o = new GetPipelineDefinitionPipelineObject(); + o.fields = fields; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionPipelineObjectField.java b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionPipelineObjectField.java index c337e58739c..c679e203964 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionPipelineObjectField.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionPipelineObjectField.java @@ -13,28 +13,19 @@ public final class GetPipelineDefinitionPipelineObjectField { * @return Field identifier. * */ - private final String key; + private String key; /** * @return Field value, expressed as the identifier of another object * */ - private final String refValue; + private String refValue; /** * @return Field value, expressed as a String. * */ - private final String stringValue; - - @CustomType.Constructor - private GetPipelineDefinitionPipelineObjectField( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("refValue") String refValue, - @CustomType.Parameter("stringValue") String stringValue) { - this.key = key; - this.refValue = refValue; - this.stringValue = stringValue; - } + private String stringValue; + private GetPipelineDefinitionPipelineObjectField() {} /** * @return Field identifier. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetPipelineDefinitionPipelineObjectField defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String refValue; private String stringValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPipelineDefinitionPipelineObjectField defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -81,19 +68,27 @@ public Builder(GetPipelineDefinitionPipelineObjectField defaults) { this.stringValue = defaults.stringValue; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder refValue(String refValue) { this.refValue = Objects.requireNonNull(refValue); return this; } + @CustomType.Setter public Builder stringValue(String stringValue) { this.stringValue = Objects.requireNonNull(stringValue); return this; - } public GetPipelineDefinitionPipelineObjectField build() { - return new GetPipelineDefinitionPipelineObjectField(key, refValue, stringValue); + } + public GetPipelineDefinitionPipelineObjectField build() { + final var o = new GetPipelineDefinitionPipelineObjectField(); + o.key = key; + o.refValue = refValue; + o.stringValue = stringValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionResult.java b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionResult.java index 671a4c986ea..0af1eea525a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineDefinitionResult.java @@ -18,38 +18,25 @@ public final class GetPipelineDefinitionResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Parameter objects used in the pipeline definition. See below * */ - private final List parameterObjects; + private List parameterObjects; /** * @return Parameter values used in the pipeline definition. See below * */ - private final @Nullable List parameterValues; - private final String pipelineId; + private @Nullable List parameterValues; + private String pipelineId; /** * @return Objects defined in the pipeline. See below * */ - private final List pipelineObjects; - - @CustomType.Constructor - private GetPipelineDefinitionResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("parameterObjects") List parameterObjects, - @CustomType.Parameter("parameterValues") @Nullable List parameterValues, - @CustomType.Parameter("pipelineId") String pipelineId, - @CustomType.Parameter("pipelineObjects") List pipelineObjects) { - this.id = id; - this.parameterObjects = parameterObjects; - this.parameterValues = parameterValues; - this.pipelineId = pipelineId; - this.pipelineObjects = pipelineObjects; - } + private List pipelineObjects; + private GetPipelineDefinitionResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -89,18 +76,14 @@ public static Builder builder() { public static Builder builder(GetPipelineDefinitionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private List parameterObjects; private @Nullable List parameterValues; private String pipelineId; private List pipelineObjects; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPipelineDefinitionResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -110,10 +93,12 @@ public Builder(GetPipelineDefinitionResult defaults) { this.pipelineObjects = defaults.pipelineObjects; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder parameterObjects(List parameterObjects) { this.parameterObjects = Objects.requireNonNull(parameterObjects); return this; @@ -121,6 +106,7 @@ public Builder parameterObjects(List param public Builder parameterObjects(GetPipelineDefinitionParameterObject... parameterObjects) { return parameterObjects(List.of(parameterObjects)); } + @CustomType.Setter public Builder parameterValues(@Nullable List parameterValues) { this.parameterValues = parameterValues; return this; @@ -128,18 +114,27 @@ public Builder parameterValues(@Nullable List pipelineObjects) { this.pipelineObjects = Objects.requireNonNull(pipelineObjects); return this; } public Builder pipelineObjects(GetPipelineDefinitionPipelineObject... pipelineObjects) { return pipelineObjects(List.of(pipelineObjects)); - } public GetPipelineDefinitionResult build() { - return new GetPipelineDefinitionResult(id, parameterObjects, parameterValues, pipelineId, pipelineObjects); + } + public GetPipelineDefinitionResult build() { + final var o = new GetPipelineDefinitionResult(); + o.id = id; + o.parameterObjects = parameterObjects; + o.parameterValues = parameterValues; + o.pipelineId = pipelineId; + o.pipelineObjects = pipelineObjects; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineResult.java b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineResult.java index 9e2a086fb08..555947facfd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/GetPipelineResult.java @@ -14,38 +14,25 @@ public final class GetPipelineResult { * @return Description of Pipeline. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Name of Pipeline. * */ - private final String name; - private final String pipelineId; + private String name; + private String pipelineId; /** * @return A map of tags assigned to the resource. * */ - private final Map tags; - - @CustomType.Constructor - private GetPipelineResult( - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("pipelineId") String pipelineId, - @CustomType.Parameter("tags") Map tags) { - this.description = description; - this.id = id; - this.name = name; - this.pipelineId = pipelineId; - this.tags = tags; - } + private Map tags; + private GetPipelineResult() {} /** * @return Description of Pipeline. * @@ -85,18 +72,14 @@ public static Builder builder() { public static Builder builder(GetPipelineResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String description; private String id; private String name; private String pipelineId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPipelineResult defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; @@ -106,27 +89,39 @@ public Builder(GetPipelineResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder pipelineId(String pipelineId) { this.pipelineId = Objects.requireNonNull(pipelineId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetPipelineResult build() { - return new GetPipelineResult(description, id, name, pipelineId, tags); + } + public GetPipelineResult build() { + final var o = new GetPipelineResult(); + o.description = description; + o.id = id; + o.name = name; + o.pipelineId = pipelineId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/PipelineDefinitionParameterObject.java b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/PipelineDefinitionParameterObject.java index bf524059919..d2cfab5fdc7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/PipelineDefinitionParameterObject.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/PipelineDefinitionParameterObject.java @@ -16,21 +16,14 @@ public final class PipelineDefinitionParameterObject { * @return Configuration block for attributes of the parameter object. See below * */ - private final @Nullable List attributes; + private @Nullable List attributes; /** * @return ID of the parameter value. * */ - private final String id; - - @CustomType.Constructor - private PipelineDefinitionParameterObject( - @CustomType.Parameter("attributes") @Nullable List attributes, - @CustomType.Parameter("id") String id) { - this.attributes = attributes; - this.id = id; - } + private String id; + private PipelineDefinitionParameterObject() {} /** * @return Configuration block for attributes of the parameter object. See below * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(PipelineDefinitionParameterObject defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List attributes; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PipelineDefinitionParameterObject defaults) { Objects.requireNonNull(defaults); this.attributes = defaults.attributes; this.id = defaults.id; } + @CustomType.Setter public Builder attributes(@Nullable List attributes) { this.attributes = attributes; return this; @@ -75,11 +65,16 @@ public Builder attributes(@Nullable List fields; + private @Nullable List fields; /** * @return ID of the parameter value. * */ - private final String id; + private String id; /** * @return ARN of the storage connector. * */ - private final String name; - - @CustomType.Constructor - private PipelineDefinitionPipelineObject( - @CustomType.Parameter("fields") @Nullable List fields, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.fields = fields; - this.id = id; - this.name = name; - } + private String name; + private PipelineDefinitionPipelineObject() {} /** * @return Configuration block for Key-value pairs that define the properties of the object. See below * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PipelineDefinitionPipelineObject defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List fields; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PipelineDefinitionPipelineObject defaults) { Objects.requireNonNull(defaults); this.fields = defaults.fields; @@ -84,6 +71,7 @@ public Builder(PipelineDefinitionPipelineObject defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder fields(@Nullable List fields) { this.fields = fields; return this; @@ -91,15 +79,22 @@ public Builder fields(@Nullable List fiel public Builder fields(PipelineDefinitionPipelineObjectField... fields) { return fields(List.of(fields)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public PipelineDefinitionPipelineObject build() { - return new PipelineDefinitionPipelineObject(fields, id, name); + } + public PipelineDefinitionPipelineObject build() { + final var o = new PipelineDefinitionPipelineObject(); + o.fields = fields; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/PipelineDefinitionPipelineObjectField.java b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/PipelineDefinitionPipelineObjectField.java index edd44862f50..336ca94e7da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/PipelineDefinitionPipelineObjectField.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datapipeline/outputs/PipelineDefinitionPipelineObjectField.java @@ -15,28 +15,19 @@ public final class PipelineDefinitionPipelineObjectField { * @return Field identifier. * */ - private final String key; + private String key; /** * @return Field value, expressed as the identifier of another object * */ - private final @Nullable String refValue; + private @Nullable String refValue; /** * @return Field value, expressed as a String. * */ - private final @Nullable String stringValue; - - @CustomType.Constructor - private PipelineDefinitionPipelineObjectField( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("refValue") @Nullable String refValue, - @CustomType.Parameter("stringValue") @Nullable String stringValue) { - this.key = key; - this.refValue = refValue; - this.stringValue = stringValue; - } + private @Nullable String stringValue; + private PipelineDefinitionPipelineObjectField() {} /** * @return Field identifier. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(PipelineDefinitionPipelineObjectField defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private @Nullable String refValue; private @Nullable String stringValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PipelineDefinitionPipelineObjectField defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -83,19 +70,27 @@ public Builder(PipelineDefinitionPipelineObjectField defaults) { this.stringValue = defaults.stringValue; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder refValue(@Nullable String refValue) { this.refValue = refValue; return this; } + @CustomType.Setter public Builder stringValue(@Nullable String stringValue) { this.stringValue = stringValue; return this; - } public PipelineDefinitionPipelineObjectField build() { - return new PipelineDefinitionPipelineObjectField(key, refValue, stringValue); + } + public PipelineDefinitionPipelineObjectField build() { + final var o = new PipelineDefinitionPipelineObjectField(); + o.key = key; + o.refValue = refValue; + o.stringValue = stringValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/EfsLocationEc2Config.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/EfsLocationEc2Config.java index 1e2755d6986..cedfc460272 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/EfsLocationEc2Config.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/EfsLocationEc2Config.java @@ -14,21 +14,14 @@ public final class EfsLocationEc2Config { * @return List of Amazon Resource Names (ARNs) of the EC2 Security Groups that are associated with the EFS Mount Target. * */ - private final List securityGroupArns; + private List securityGroupArns; /** * @return Amazon Resource Name (ARN) of the EC2 Subnet that is associated with the EFS Mount Target. * */ - private final String subnetArn; - - @CustomType.Constructor - private EfsLocationEc2Config( - @CustomType.Parameter("securityGroupArns") List securityGroupArns, - @CustomType.Parameter("subnetArn") String subnetArn) { - this.securityGroupArns = securityGroupArns; - this.subnetArn = subnetArn; - } + private String subnetArn; + private EfsLocationEc2Config() {} /** * @return List of Amazon Resource Names (ARNs) of the EC2 Security Groups that are associated with the EFS Mount Target. * @@ -51,21 +44,18 @@ public static Builder builder() { public static Builder builder(EfsLocationEc2Config defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List securityGroupArns; private String subnetArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EfsLocationEc2Config defaults) { Objects.requireNonNull(defaults); this.securityGroupArns = defaults.securityGroupArns; this.subnetArn = defaults.subnetArn; } + @CustomType.Setter public Builder securityGroupArns(List securityGroupArns) { this.securityGroupArns = Objects.requireNonNull(securityGroupArns); return this; @@ -73,11 +63,16 @@ public Builder securityGroupArns(List securityGroupArns) { public Builder securityGroupArns(String... securityGroupArns) { return securityGroupArns(List.of(securityGroupArns)); } + @CustomType.Setter public Builder subnetArn(String subnetArn) { this.subnetArn = Objects.requireNonNull(subnetArn); return this; - } public EfsLocationEc2Config build() { - return new EfsLocationEc2Config(securityGroupArns, subnetArn); + } + public EfsLocationEc2Config build() { + final var o = new EfsLocationEc2Config(); + o.securityGroupArns = securityGroupArns; + o.subnetArn = subnetArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/FsxOpenZfsFileSystemProtocol.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/FsxOpenZfsFileSystemProtocol.java index 36506212acf..36a70749a9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/FsxOpenZfsFileSystemProtocol.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/FsxOpenZfsFileSystemProtocol.java @@ -13,13 +13,9 @@ public final class FsxOpenZfsFileSystemProtocol { * @return Represents the Network File System (NFS) protocol that DataSync uses to access your FSx for OpenZFS file system. See below. * */ - private final FsxOpenZfsFileSystemProtocolNfs nfs; - - @CustomType.Constructor - private FsxOpenZfsFileSystemProtocol(@CustomType.Parameter("nfs") FsxOpenZfsFileSystemProtocolNfs nfs) { - this.nfs = nfs; - } + private FsxOpenZfsFileSystemProtocolNfs nfs; + private FsxOpenZfsFileSystemProtocol() {} /** * @return Represents the Network File System (NFS) protocol that DataSync uses to access your FSx for OpenZFS file system. See below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FsxOpenZfsFileSystemProtocol defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private FsxOpenZfsFileSystemProtocolNfs nfs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FsxOpenZfsFileSystemProtocol defaults) { Objects.requireNonNull(defaults); this.nfs = defaults.nfs; } + @CustomType.Setter public Builder nfs(FsxOpenZfsFileSystemProtocolNfs nfs) { this.nfs = Objects.requireNonNull(nfs); return this; - } public FsxOpenZfsFileSystemProtocol build() { - return new FsxOpenZfsFileSystemProtocol(nfs); + } + public FsxOpenZfsFileSystemProtocol build() { + final var o = new FsxOpenZfsFileSystemProtocol(); + o.nfs = nfs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/FsxOpenZfsFileSystemProtocolNfs.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/FsxOpenZfsFileSystemProtocolNfs.java index 23923ac11bf..56d036fedc0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/FsxOpenZfsFileSystemProtocolNfs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/FsxOpenZfsFileSystemProtocolNfs.java @@ -13,13 +13,9 @@ public final class FsxOpenZfsFileSystemProtocolNfs { * @return Represents the mount options that are available for DataSync to access an NFS location. See below. * */ - private final FsxOpenZfsFileSystemProtocolNfsMountOptions mountOptions; - - @CustomType.Constructor - private FsxOpenZfsFileSystemProtocolNfs(@CustomType.Parameter("mountOptions") FsxOpenZfsFileSystemProtocolNfsMountOptions mountOptions) { - this.mountOptions = mountOptions; - } + private FsxOpenZfsFileSystemProtocolNfsMountOptions mountOptions; + private FsxOpenZfsFileSystemProtocolNfs() {} /** * @return Represents the mount options that are available for DataSync to access an NFS location. See below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FsxOpenZfsFileSystemProtocolNfs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private FsxOpenZfsFileSystemProtocolNfsMountOptions mountOptions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FsxOpenZfsFileSystemProtocolNfs defaults) { Objects.requireNonNull(defaults); this.mountOptions = defaults.mountOptions; } + @CustomType.Setter public Builder mountOptions(FsxOpenZfsFileSystemProtocolNfsMountOptions mountOptions) { this.mountOptions = Objects.requireNonNull(mountOptions); return this; - } public FsxOpenZfsFileSystemProtocolNfs build() { - return new FsxOpenZfsFileSystemProtocolNfs(mountOptions); + } + public FsxOpenZfsFileSystemProtocolNfs build() { + final var o = new FsxOpenZfsFileSystemProtocolNfs(); + o.mountOptions = mountOptions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/FsxOpenZfsFileSystemProtocolNfsMountOptions.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/FsxOpenZfsFileSystemProtocolNfsMountOptions.java index 68d4c27c9d7..42ea741db50 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/FsxOpenZfsFileSystemProtocolNfsMountOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/FsxOpenZfsFileSystemProtocolNfsMountOptions.java @@ -15,13 +15,9 @@ public final class FsxOpenZfsFileSystemProtocolNfsMountOptions { * @return The specific NFS version that you want DataSync to use for mounting your NFS share. Valid values: `AUTOMATIC`, `NFS3`, `NFS4_0` and `NFS4_1`. Default: `AUTOMATIC` * */ - private final @Nullable String version; - - @CustomType.Constructor - private FsxOpenZfsFileSystemProtocolNfsMountOptions(@CustomType.Parameter("version") @Nullable String version) { - this.version = version; - } + private @Nullable String version; + private FsxOpenZfsFileSystemProtocolNfsMountOptions() {} /** * @return The specific NFS version that you want DataSync to use for mounting your NFS share. Valid values: `AUTOMATIC`, `NFS3`, `NFS4_0` and `NFS4_1`. Default: `AUTOMATIC` * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FsxOpenZfsFileSystemProtocolNfsMountOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FsxOpenZfsFileSystemProtocolNfsMountOptions defaults) { Objects.requireNonNull(defaults); this.version = defaults.version; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public FsxOpenZfsFileSystemProtocolNfsMountOptions build() { - return new FsxOpenZfsFileSystemProtocolNfsMountOptions(version); + } + public FsxOpenZfsFileSystemProtocolNfsMountOptions build() { + final var o = new FsxOpenZfsFileSystemProtocolNfsMountOptions(); + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/LocationHdfsNameNode.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/LocationHdfsNameNode.java index 3b883a73721..7d603bde74e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/LocationHdfsNameNode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/LocationHdfsNameNode.java @@ -14,21 +14,14 @@ public final class LocationHdfsNameNode { * @return The hostname of the NameNode in the HDFS cluster. This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that's installed on-premises uses this hostname to communicate with the NameNode in the network. * */ - private final String hostname; + private String hostname; /** * @return The port that the NameNode uses to listen to client requests. * */ - private final Integer port; - - @CustomType.Constructor - private LocationHdfsNameNode( - @CustomType.Parameter("hostname") String hostname, - @CustomType.Parameter("port") Integer port) { - this.hostname = hostname; - this.port = port; - } + private Integer port; + private LocationHdfsNameNode() {} /** * @return The hostname of the NameNode in the HDFS cluster. This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that's installed on-premises uses this hostname to communicate with the NameNode in the network. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(LocationHdfsNameNode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String hostname; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LocationHdfsNameNode defaults) { Objects.requireNonNull(defaults); this.hostname = defaults.hostname; this.port = defaults.port; } + @CustomType.Setter public Builder hostname(String hostname) { this.hostname = Objects.requireNonNull(hostname); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public LocationHdfsNameNode build() { - return new LocationHdfsNameNode(hostname, port); + } + public LocationHdfsNameNode build() { + final var o = new LocationHdfsNameNode(); + o.hostname = hostname; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/LocationHdfsQopConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/LocationHdfsQopConfiguration.java index 26e2e8f1127..7445f83ad3a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/LocationHdfsQopConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/LocationHdfsQopConfiguration.java @@ -15,21 +15,14 @@ public final class LocationHdfsQopConfiguration { * @return The data transfer protection setting configured on the HDFS cluster. This setting corresponds to your dfs.data.transfer.protection setting in the hdfs-site.xml file on your Hadoop cluster. Valid values are `DISABLED`, `AUTHENTICATION`, `INTEGRITY` and `PRIVACY`. * */ - private final @Nullable String dataTransferProtection; + private @Nullable String dataTransferProtection; /** * @return The RPC protection setting configured on the HDFS cluster. This setting corresponds to your hadoop.rpc.protection setting in your core-site.xml file on your Hadoop cluster. Valid values are `DISABLED`, `AUTHENTICATION`, `INTEGRITY` and `PRIVACY`. * */ - private final @Nullable String rpcProtection; - - @CustomType.Constructor - private LocationHdfsQopConfiguration( - @CustomType.Parameter("dataTransferProtection") @Nullable String dataTransferProtection, - @CustomType.Parameter("rpcProtection") @Nullable String rpcProtection) { - this.dataTransferProtection = dataTransferProtection; - this.rpcProtection = rpcProtection; - } + private @Nullable String rpcProtection; + private LocationHdfsQopConfiguration() {} /** * @return The data transfer protection setting configured on the HDFS cluster. This setting corresponds to your dfs.data.transfer.protection setting in the hdfs-site.xml file on your Hadoop cluster. Valid values are `DISABLED`, `AUTHENTICATION`, `INTEGRITY` and `PRIVACY`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LocationHdfsQopConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dataTransferProtection; private @Nullable String rpcProtection; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LocationHdfsQopConfiguration defaults) { Objects.requireNonNull(defaults); this.dataTransferProtection = defaults.dataTransferProtection; this.rpcProtection = defaults.rpcProtection; } + @CustomType.Setter public Builder dataTransferProtection(@Nullable String dataTransferProtection) { this.dataTransferProtection = dataTransferProtection; return this; } + @CustomType.Setter public Builder rpcProtection(@Nullable String rpcProtection) { this.rpcProtection = rpcProtection; return this; - } public LocationHdfsQopConfiguration build() { - return new LocationHdfsQopConfiguration(dataTransferProtection, rpcProtection); + } + public LocationHdfsQopConfiguration build() { + final var o = new LocationHdfsQopConfiguration(); + o.dataTransferProtection = dataTransferProtection; + o.rpcProtection = rpcProtection; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/LocationSmbMountOptions.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/LocationSmbMountOptions.java index ca55968ae10..13792edc2fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/LocationSmbMountOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/LocationSmbMountOptions.java @@ -15,13 +15,9 @@ public final class LocationSmbMountOptions { * @return The specific SMB version that you want DataSync to use for mounting your SMB share. Valid values: `AUTOMATIC`, `SMB2`, and `SMB3`. Default: `AUTOMATIC` * */ - private final @Nullable String version; - - @CustomType.Constructor - private LocationSmbMountOptions(@CustomType.Parameter("version") @Nullable String version) { - this.version = version; - } + private @Nullable String version; + private LocationSmbMountOptions() {} /** * @return The specific SMB version that you want DataSync to use for mounting your SMB share. Valid values: `AUTOMATIC`, `SMB2`, and `SMB3`. Default: `AUTOMATIC` * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(LocationSmbMountOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LocationSmbMountOptions defaults) { Objects.requireNonNull(defaults); this.version = defaults.version; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public LocationSmbMountOptions build() { - return new LocationSmbMountOptions(version); + } + public LocationSmbMountOptions build() { + final var o = new LocationSmbMountOptions(); + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/NfsLocationMountOptions.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/NfsLocationMountOptions.java index 1f7fcf4476a..010a73c646a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/NfsLocationMountOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/NfsLocationMountOptions.java @@ -15,13 +15,9 @@ public final class NfsLocationMountOptions { * @return The specific NFS version that you want DataSync to use for mounting your NFS share. Valid values: `AUTOMATIC`, `NFS3`, `NFS4_0` and `NFS4_1`. Default: `AUTOMATIC` * */ - private final @Nullable String version; - - @CustomType.Constructor - private NfsLocationMountOptions(@CustomType.Parameter("version") @Nullable String version) { - this.version = version; - } + private @Nullable String version; + private NfsLocationMountOptions() {} /** * @return The specific NFS version that you want DataSync to use for mounting your NFS share. Valid values: `AUTOMATIC`, `NFS3`, `NFS4_0` and `NFS4_1`. Default: `AUTOMATIC` * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(NfsLocationMountOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NfsLocationMountOptions defaults) { Objects.requireNonNull(defaults); this.version = defaults.version; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public NfsLocationMountOptions build() { - return new NfsLocationMountOptions(version); + } + public NfsLocationMountOptions build() { + final var o = new NfsLocationMountOptions(); + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/NfsLocationOnPremConfig.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/NfsLocationOnPremConfig.java index c11b204796a..f9d6ce7a5e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/NfsLocationOnPremConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/NfsLocationOnPremConfig.java @@ -14,13 +14,9 @@ public final class NfsLocationOnPremConfig { * @return List of Amazon Resource Names (ARNs) of the DataSync Agents used to connect to the NFS server. * */ - private final List agentArns; - - @CustomType.Constructor - private NfsLocationOnPremConfig(@CustomType.Parameter("agentArns") List agentArns) { - this.agentArns = agentArns; - } + private List agentArns; + private NfsLocationOnPremConfig() {} /** * @return List of Amazon Resource Names (ARNs) of the DataSync Agents used to connect to the NFS server. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(NfsLocationOnPremConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List agentArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NfsLocationOnPremConfig defaults) { Objects.requireNonNull(defaults); this.agentArns = defaults.agentArns; } + @CustomType.Setter public Builder agentArns(List agentArns) { this.agentArns = Objects.requireNonNull(agentArns); return this; } public Builder agentArns(String... agentArns) { return agentArns(List.of(agentArns)); - } public NfsLocationOnPremConfig build() { - return new NfsLocationOnPremConfig(agentArns); + } + public NfsLocationOnPremConfig build() { + final var o = new NfsLocationOnPremConfig(); + o.agentArns = agentArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/S3LocationS3Config.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/S3LocationS3Config.java index 33b90d32c0b..9c0a2838fd4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/S3LocationS3Config.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/S3LocationS3Config.java @@ -13,13 +13,9 @@ public final class S3LocationS3Config { * @return Amazon Resource Names (ARN) of the IAM Role used to connect to the S3 Bucket. * */ - private final String bucketAccessRoleArn; - - @CustomType.Constructor - private S3LocationS3Config(@CustomType.Parameter("bucketAccessRoleArn") String bucketAccessRoleArn) { - this.bucketAccessRoleArn = bucketAccessRoleArn; - } + private String bucketAccessRoleArn; + private S3LocationS3Config() {} /** * @return Amazon Resource Names (ARN) of the IAM Role used to connect to the S3 Bucket. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(S3LocationS3Config defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketAccessRoleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(S3LocationS3Config defaults) { Objects.requireNonNull(defaults); this.bucketAccessRoleArn = defaults.bucketAccessRoleArn; } + @CustomType.Setter public Builder bucketAccessRoleArn(String bucketAccessRoleArn) { this.bucketAccessRoleArn = Objects.requireNonNull(bucketAccessRoleArn); return this; - } public S3LocationS3Config build() { - return new S3LocationS3Config(bucketAccessRoleArn); + } + public S3LocationS3Config build() { + final var o = new S3LocationS3Config(); + o.bucketAccessRoleArn = bucketAccessRoleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskExcludes.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskExcludes.java index a90caa080db..8752d34523c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskExcludes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskExcludes.java @@ -15,21 +15,14 @@ public final class TaskExcludes { * @return The type of filter rule to apply. Valid values: `SIMPLE_PATTERN`. * */ - private final @Nullable String filterType; + private @Nullable String filterType; /** * @return A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: `/folder1|/folder2` * */ - private final @Nullable String value; - - @CustomType.Constructor - private TaskExcludes( - @CustomType.Parameter("filterType") @Nullable String filterType, - @CustomType.Parameter("value") @Nullable String value) { - this.filterType = filterType; - this.value = value; - } + private @Nullable String value; + private TaskExcludes() {} /** * @return The type of filter rule to apply. Valid values: `SIMPLE_PATTERN`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(TaskExcludes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String filterType; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskExcludes defaults) { Objects.requireNonNull(defaults); this.filterType = defaults.filterType; this.value = defaults.value; } + @CustomType.Setter public Builder filterType(@Nullable String filterType) { this.filterType = filterType; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public TaskExcludes build() { - return new TaskExcludes(filterType, value); + } + public TaskExcludes build() { + final var o = new TaskExcludes(); + o.filterType = filterType; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskIncludes.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskIncludes.java index 4f1fa6de75c..3f3f8415b75 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskIncludes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskIncludes.java @@ -15,21 +15,14 @@ public final class TaskIncludes { * @return The type of filter rule to apply. Valid values: `SIMPLE_PATTERN`. * */ - private final @Nullable String filterType; + private @Nullable String filterType; /** * @return A single filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe), for example: `/folder1|/folder2` * */ - private final @Nullable String value; - - @CustomType.Constructor - private TaskIncludes( - @CustomType.Parameter("filterType") @Nullable String filterType, - @CustomType.Parameter("value") @Nullable String value) { - this.filterType = filterType; - this.value = value; - } + private @Nullable String value; + private TaskIncludes() {} /** * @return The type of filter rule to apply. Valid values: `SIMPLE_PATTERN`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(TaskIncludes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String filterType; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskIncludes defaults) { Objects.requireNonNull(defaults); this.filterType = defaults.filterType; this.value = defaults.value; } + @CustomType.Setter public Builder filterType(@Nullable String filterType) { this.filterType = filterType; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public TaskIncludes build() { - return new TaskIncludes(filterType, value); + } + public TaskIncludes build() { + final var o = new TaskIncludes(); + o.filterType = filterType; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskOptions.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskOptions.java index b4c1a7eb224..46a6a3b50b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskOptions.java @@ -16,98 +16,69 @@ public final class TaskOptions { * @return A file metadata that shows the last time a file was accessed (that is when the file was read or written to). If set to `BEST_EFFORT`, the DataSync Task attempts to preserve the original (that is, the version before sync `PREPARING` phase) `atime` attribute on all source files. Valid values: `BEST_EFFORT`, `NONE`. Default: `BEST_EFFORT`. * */ - private final @Nullable String atime; + private @Nullable String atime; /** * @return Limits the bandwidth utilized. For example, to set a maximum of 1 MB, set this value to `1048576`. Value values: `-1` or greater. Default: `-1` (unlimited). * */ - private final @Nullable Integer bytesPerSecond; + private @Nullable Integer bytesPerSecond; /** * @return Group identifier of the file's owners. Valid values: `BOTH`, `INT_VALUE`, `NAME`, `NONE`. Default: `INT_VALUE` (preserve integer value of the ID). * */ - private final @Nullable String gid; + private @Nullable String gid; /** * @return Determines the type of logs that DataSync publishes to a log stream in the Amazon CloudWatch log group that you provide. Valid values: `OFF`, `BASIC`, `TRANSFER`. Default: `OFF`. * */ - private final @Nullable String logLevel; + private @Nullable String logLevel; /** * @return A file metadata that indicates the last time a file was modified (written to) before the sync `PREPARING` phase. Value values: `NONE`, `PRESERVE`. Default: `PRESERVE`. * */ - private final @Nullable String mtime; + private @Nullable String mtime; /** * @return Determines whether files at the destination should be overwritten or preserved when copying files. Valid values: `ALWAYS`, `NEVER`. Default: `ALWAYS`. * */ - private final @Nullable String overwriteMode; + private @Nullable String overwriteMode; /** * @return Determines which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file. Valid values: `NONE`, `PRESERVE`. Default: `PRESERVE`. * */ - private final @Nullable String posixPermissions; + private @Nullable String posixPermissions; /** * @return Whether files deleted in the source should be removed or preserved in the destination file system. Valid values: `PRESERVE`, `REMOVE`. Default: `PRESERVE`. * */ - private final @Nullable String preserveDeletedFiles; + private @Nullable String preserveDeletedFiles; /** * @return Whether the DataSync Task should preserve the metadata of block and character devices in the source files system, and recreate the files with that device name and metadata on the destination. The DataSync Task can’t sync the actual contents of such devices, because many of the devices are non-terminal and don’t return an end of file (EOF) marker. Valid values: `NONE`, `PRESERVE`. Default: `NONE` (ignore special devices). * */ - private final @Nullable String preserveDevices; + private @Nullable String preserveDevices; /** * @return Determines whether tasks should be queued before executing the tasks. Valid values: `ENABLED`, `DISABLED`. Default `ENABLED`. * */ - private final @Nullable String taskQueueing; + private @Nullable String taskQueueing; /** * @return Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location, or whether DataSync transfers all the content from the source, without comparing to the destination location. Valid values: `CHANGED`, `ALL`. Default: `CHANGED` * */ - private final @Nullable String transferMode; + private @Nullable String transferMode; /** * @return User identifier of the file's owners. Valid values: `BOTH`, `INT_VALUE`, `NAME`, `NONE`. Default: `INT_VALUE` (preserve integer value of the ID). * */ - private final @Nullable String uid; + private @Nullable String uid; /** * @return Whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred. Valid values: `NONE`, `POINT_IN_TIME_CONSISTENT`, `ONLY_FILES_TRANSFERRED`. Default: `POINT_IN_TIME_CONSISTENT`. * */ - private final @Nullable String verifyMode; - - @CustomType.Constructor - private TaskOptions( - @CustomType.Parameter("atime") @Nullable String atime, - @CustomType.Parameter("bytesPerSecond") @Nullable Integer bytesPerSecond, - @CustomType.Parameter("gid") @Nullable String gid, - @CustomType.Parameter("logLevel") @Nullable String logLevel, - @CustomType.Parameter("mtime") @Nullable String mtime, - @CustomType.Parameter("overwriteMode") @Nullable String overwriteMode, - @CustomType.Parameter("posixPermissions") @Nullable String posixPermissions, - @CustomType.Parameter("preserveDeletedFiles") @Nullable String preserveDeletedFiles, - @CustomType.Parameter("preserveDevices") @Nullable String preserveDevices, - @CustomType.Parameter("taskQueueing") @Nullable String taskQueueing, - @CustomType.Parameter("transferMode") @Nullable String transferMode, - @CustomType.Parameter("uid") @Nullable String uid, - @CustomType.Parameter("verifyMode") @Nullable String verifyMode) { - this.atime = atime; - this.bytesPerSecond = bytesPerSecond; - this.gid = gid; - this.logLevel = logLevel; - this.mtime = mtime; - this.overwriteMode = overwriteMode; - this.posixPermissions = posixPermissions; - this.preserveDeletedFiles = preserveDeletedFiles; - this.preserveDevices = preserveDevices; - this.taskQueueing = taskQueueing; - this.transferMode = transferMode; - this.uid = uid; - this.verifyMode = verifyMode; - } + private @Nullable String verifyMode; + private TaskOptions() {} /** * @return A file metadata that shows the last time a file was accessed (that is when the file was read or written to). If set to `BEST_EFFORT`, the DataSync Task attempts to preserve the original (that is, the version before sync `PREPARING` phase) `atime` attribute on all source files. Valid values: `BEST_EFFORT`, `NONE`. Default: `BEST_EFFORT`. * @@ -207,7 +178,7 @@ public static Builder builder() { public static Builder builder(TaskOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String atime; private @Nullable Integer bytesPerSecond; @@ -222,11 +193,7 @@ public static final class Builder { private @Nullable String transferMode; private @Nullable String uid; private @Nullable String verifyMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskOptions defaults) { Objects.requireNonNull(defaults); this.atime = defaults.atime; @@ -244,59 +211,87 @@ public Builder(TaskOptions defaults) { this.verifyMode = defaults.verifyMode; } + @CustomType.Setter public Builder atime(@Nullable String atime) { this.atime = atime; return this; } + @CustomType.Setter public Builder bytesPerSecond(@Nullable Integer bytesPerSecond) { this.bytesPerSecond = bytesPerSecond; return this; } + @CustomType.Setter public Builder gid(@Nullable String gid) { this.gid = gid; return this; } + @CustomType.Setter public Builder logLevel(@Nullable String logLevel) { this.logLevel = logLevel; return this; } + @CustomType.Setter public Builder mtime(@Nullable String mtime) { this.mtime = mtime; return this; } + @CustomType.Setter public Builder overwriteMode(@Nullable String overwriteMode) { this.overwriteMode = overwriteMode; return this; } + @CustomType.Setter public Builder posixPermissions(@Nullable String posixPermissions) { this.posixPermissions = posixPermissions; return this; } + @CustomType.Setter public Builder preserveDeletedFiles(@Nullable String preserveDeletedFiles) { this.preserveDeletedFiles = preserveDeletedFiles; return this; } + @CustomType.Setter public Builder preserveDevices(@Nullable String preserveDevices) { this.preserveDevices = preserveDevices; return this; } + @CustomType.Setter public Builder taskQueueing(@Nullable String taskQueueing) { this.taskQueueing = taskQueueing; return this; } + @CustomType.Setter public Builder transferMode(@Nullable String transferMode) { this.transferMode = transferMode; return this; } + @CustomType.Setter public Builder uid(@Nullable String uid) { this.uid = uid; return this; } + @CustomType.Setter public Builder verifyMode(@Nullable String verifyMode) { this.verifyMode = verifyMode; return this; - } public TaskOptions build() { - return new TaskOptions(atime, bytesPerSecond, gid, logLevel, mtime, overwriteMode, posixPermissions, preserveDeletedFiles, preserveDevices, taskQueueing, transferMode, uid, verifyMode); + } + public TaskOptions build() { + final var o = new TaskOptions(); + o.atime = atime; + o.bytesPerSecond = bytesPerSecond; + o.gid = gid; + o.logLevel = logLevel; + o.mtime = mtime; + o.overwriteMode = overwriteMode; + o.posixPermissions = posixPermissions; + o.preserveDeletedFiles = preserveDeletedFiles; + o.preserveDevices = preserveDevices; + o.taskQueueing = taskQueueing; + o.transferMode = transferMode; + o.uid = uid; + o.verifyMode = verifyMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskSchedule.java b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskSchedule.java index cde9c049181..4fe97b152ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskSchedule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/datasync/outputs/TaskSchedule.java @@ -13,13 +13,9 @@ public final class TaskSchedule { * @return Specifies the schedule you want your task to use for repeated executions. For more information, see [Schedule Expressions for Rules](https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html). * */ - private final String scheduleExpression; - - @CustomType.Constructor - private TaskSchedule(@CustomType.Parameter("scheduleExpression") String scheduleExpression) { - this.scheduleExpression = scheduleExpression; - } + private String scheduleExpression; + private TaskSchedule() {} /** * @return Specifies the schedule you want your task to use for repeated executions. For more information, see [Schedule Expressions for Rules](https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html). * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(TaskSchedule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String scheduleExpression; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskSchedule defaults) { Objects.requireNonNull(defaults); this.scheduleExpression = defaults.scheduleExpression; } + @CustomType.Setter public Builder scheduleExpression(String scheduleExpression) { this.scheduleExpression = Objects.requireNonNull(scheduleExpression); return this; - } public TaskSchedule build() { - return new TaskSchedule(scheduleExpression); + } + public TaskSchedule build() { + final var o = new TaskSchedule(); + o.scheduleExpression = scheduleExpression; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dax/outputs/ClusterNode.java b/sdk/java/src/main/java/com/pulumi/aws/dax/outputs/ClusterNode.java index f43cbfb5405..c6b95565530 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dax/outputs/ClusterNode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dax/outputs/ClusterNode.java @@ -12,27 +12,16 @@ @CustomType public final class ClusterNode { - private final @Nullable String address; - private final @Nullable String availabilityZone; - private final @Nullable String id; + private @Nullable String address; + private @Nullable String availabilityZone; + private @Nullable String id; /** * @return The port used by the configuration endpoint * */ - private final @Nullable Integer port; - - @CustomType.Constructor - private ClusterNode( - @CustomType.Parameter("address") @Nullable String address, - @CustomType.Parameter("availabilityZone") @Nullable String availabilityZone, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("port") @Nullable Integer port) { - this.address = address; - this.availabilityZone = availabilityZone; - this.id = id; - this.port = port; - } + private @Nullable Integer port; + private ClusterNode() {} public Optional address() { return Optional.ofNullable(this.address); } @@ -57,17 +46,13 @@ public static Builder builder() { public static Builder builder(ClusterNode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String address; private @Nullable String availabilityZone; private @Nullable String id; private @Nullable Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterNode defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; @@ -76,23 +61,33 @@ public Builder(ClusterNode defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder address(@Nullable String address) { this.address = address; return this; } + @CustomType.Setter public Builder availabilityZone(@Nullable String availabilityZone) { this.availabilityZone = availabilityZone; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; - } public ClusterNode build() { - return new ClusterNode(address, availabilityZone, id, port); + } + public ClusterNode build() { + final var o = new ClusterNode(); + o.address = address; + o.availabilityZone = availabilityZone; + o.id = id; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dax/outputs/ClusterServerSideEncryption.java b/sdk/java/src/main/java/com/pulumi/aws/dax/outputs/ClusterServerSideEncryption.java index 8a020e2e76e..35ebffaea48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dax/outputs/ClusterServerSideEncryption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dax/outputs/ClusterServerSideEncryption.java @@ -15,13 +15,9 @@ public final class ClusterServerSideEncryption { * @return Whether to enable encryption at rest. Defaults to `false`. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private ClusterServerSideEncryption(@CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private ClusterServerSideEncryption() {} /** * @return Whether to enable encryption at rest. Defaults to `false`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ClusterServerSideEncryption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterServerSideEncryption defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public ClusterServerSideEncryption build() { - return new ClusterServerSideEncryption(enabled); + } + public ClusterServerSideEncryption build() { + final var o = new ClusterServerSideEncryption(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dax/outputs/ParameterGroupParameter.java b/sdk/java/src/main/java/com/pulumi/aws/dax/outputs/ParameterGroupParameter.java index 695d208132b..b1a458cca7c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dax/outputs/ParameterGroupParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dax/outputs/ParameterGroupParameter.java @@ -13,21 +13,14 @@ public final class ParameterGroupParameter { * @return The name of the parameter. * */ - private final String name; + private String name; /** * @return The value for the parameter. * */ - private final String value; - - @CustomType.Constructor - private ParameterGroupParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private ParameterGroupParameter() {} /** * @return The name of the parameter. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ParameterGroupParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ParameterGroupParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ParameterGroupParameter build() { - return new ParameterGroupParameter(name, value); + } + public ParameterGroupParameter build() { + final var o = new ParameterGroupParameter(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/devicefarm/outputs/DevicePoolRule.java b/sdk/java/src/main/java/com/pulumi/aws/devicefarm/outputs/DevicePoolRule.java index bd2dd58843c..33c8a6ea490 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/devicefarm/outputs/DevicePoolRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/devicefarm/outputs/DevicePoolRule.java @@ -15,28 +15,19 @@ public final class DevicePoolRule { * @return The rule's stringified attribute. Valid values are: `APPIUM_VERSION`, `ARN`, `AVAILABILITY`, `FLEET_TYPE`, `FORM_FACTOR`, `INSTANCE_ARN`, `INSTANCE_LABELS`, `MANUFACTURER`, `MODEL`, `OS_VERSION`, `PLATFORM`, `REMOTE_ACCESS_ENABLED`, `REMOTE_DEBUG_ENABLED`. * */ - private final @Nullable String attribute; + private @Nullable String attribute; /** * @return Specifies how Device Farm compares the rule's attribute to the value. For the operators that are supported by each attribute. Valid values are: `EQUALS`, `NOT_IN`, `IN`, `GREATER_THAN`, `GREATER_THAN_OR_EQUALS`, `LESS_THAN`, `LESS_THAN_OR_EQUALS`, `CONTAINS`. * */ - private final @Nullable String operator; + private @Nullable String operator; /** * @return The rule's value. * */ - private final @Nullable String value; - - @CustomType.Constructor - private DevicePoolRule( - @CustomType.Parameter("attribute") @Nullable String attribute, - @CustomType.Parameter("operator") @Nullable String operator, - @CustomType.Parameter("value") @Nullable String value) { - this.attribute = attribute; - this.operator = operator; - this.value = value; - } + private @Nullable String value; + private DevicePoolRule() {} /** * @return The rule's stringified attribute. Valid values are: `APPIUM_VERSION`, `ARN`, `AVAILABILITY`, `FLEET_TYPE`, `FORM_FACTOR`, `INSTANCE_ARN`, `INSTANCE_LABELS`, `MANUFACTURER`, `MODEL`, `OS_VERSION`, `PLATFORM`, `REMOTE_ACCESS_ENABLED`, `REMOTE_DEBUG_ENABLED`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(DevicePoolRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String attribute; private @Nullable String operator; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DevicePoolRule defaults) { Objects.requireNonNull(defaults); this.attribute = defaults.attribute; @@ -83,19 +70,27 @@ public Builder(DevicePoolRule defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder attribute(@Nullable String attribute) { this.attribute = attribute; return this; } + @CustomType.Setter public Builder operator(@Nullable String operator) { this.operator = operator; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public DevicePoolRule build() { - return new DevicePoolRule(attribute, operator, value); + } + public DevicePoolRule build() { + final var o = new DevicePoolRule(); + o.attribute = attribute; + o.operator = operator; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/devicefarm/outputs/TestGridProjectVpcConfig.java b/sdk/java/src/main/java/com/pulumi/aws/devicefarm/outputs/TestGridProjectVpcConfig.java index 7cb6579c0e1..536126d33f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/devicefarm/outputs/TestGridProjectVpcConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/devicefarm/outputs/TestGridProjectVpcConfig.java @@ -14,28 +14,19 @@ public final class TestGridProjectVpcConfig { * @return A list of VPC security group IDs in your Amazon VPC. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return A list of VPC subnet IDs in your Amazon VPC. * */ - private final List subnetIds; + private List subnetIds; /** * @return The ID of the Amazon VPC. * */ - private final String vpcId; - - @CustomType.Constructor - private TestGridProjectVpcConfig( - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private TestGridProjectVpcConfig() {} /** * @return A list of VPC security group IDs in your Amazon VPC. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(TestGridProjectVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List securityGroupIds; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TestGridProjectVpcConfig defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; @@ -82,6 +69,7 @@ public Builder(TestGridProjectVpcConfig defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -89,6 +77,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -96,11 +85,17 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public TestGridProjectVpcConfig build() { - return new TestGridProjectVpcConfig(securityGroupIds, subnetIds, vpcId); + } + public TestGridProjectVpcConfig build() { + final var o = new TestGridProjectVpcConfig(); + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetConnectionResult.java b/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetConnectionResult.java index d0e7222d2b2..be98a456f40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetConnectionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetConnectionResult.java @@ -14,66 +14,45 @@ public final class GetConnectionResult { * @return The ARN of the connection. * */ - private final String arn; + private String arn; /** * @return The Direct Connect endpoint on which the physical connection terminates. * */ - private final String awsDevice; + private String awsDevice; /** * @return The bandwidth of the connection. * */ - private final String bandwidth; + private String bandwidth; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The AWS Direct Connect location where the connection is located. * */ - private final String location; - private final String name; + private String location; + private String name; /** * @return The ID of the AWS account that owns the connection. * */ - private final String ownerAccountId; + private String ownerAccountId; /** * @return The name of the service provider associated with the connection. * */ - private final String providerName; + private String providerName; /** * @return A map of tags for the resource. * */ - private final Map tags; - - @CustomType.Constructor - private GetConnectionResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("awsDevice") String awsDevice, - @CustomType.Parameter("bandwidth") String bandwidth, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("location") String location, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("ownerAccountId") String ownerAccountId, - @CustomType.Parameter("providerName") String providerName, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.awsDevice = awsDevice; - this.bandwidth = bandwidth; - this.id = id; - this.location = location; - this.name = name; - this.ownerAccountId = ownerAccountId; - this.providerName = providerName; - this.tags = tags; - } + private Map tags; + private GetConnectionResult() {} /** * @return The ARN of the connection. * @@ -141,7 +120,7 @@ public static Builder builder() { public static Builder builder(GetConnectionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String awsDevice; @@ -152,11 +131,7 @@ public static final class Builder { private String ownerAccountId; private String providerName; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConnectionResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -170,43 +145,63 @@ public Builder(GetConnectionResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder awsDevice(String awsDevice) { this.awsDevice = Objects.requireNonNull(awsDevice); return this; } + @CustomType.Setter public Builder bandwidth(String bandwidth) { this.bandwidth = Objects.requireNonNull(bandwidth); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder location(String location) { this.location = Objects.requireNonNull(location); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder ownerAccountId(String ownerAccountId) { this.ownerAccountId = Objects.requireNonNull(ownerAccountId); return this; } + @CustomType.Setter public Builder providerName(String providerName) { this.providerName = Objects.requireNonNull(providerName); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetConnectionResult build() { - return new GetConnectionResult(arn, awsDevice, bandwidth, id, location, name, ownerAccountId, providerName, tags); + } + public GetConnectionResult build() { + final var o = new GetConnectionResult(); + o.arn = arn; + o.awsDevice = awsDevice; + o.bandwidth = bandwidth; + o.id = id; + o.location = location; + o.name = name; + o.ownerAccountId = ownerAccountId; + o.providerName = providerName; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetGatewayResult.java b/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetGatewayResult.java index a0a18f85935..669764ebe54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetGatewayResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetGatewayResult.java @@ -13,31 +13,20 @@ public final class GetGatewayResult { * @return The ASN on the Amazon side of the connection. * */ - private final String amazonSideAsn; + private String amazonSideAsn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return AWS Account ID of the gateway. * */ - private final String ownerAccountId; - - @CustomType.Constructor - private GetGatewayResult( - @CustomType.Parameter("amazonSideAsn") String amazonSideAsn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("ownerAccountId") String ownerAccountId) { - this.amazonSideAsn = amazonSideAsn; - this.id = id; - this.name = name; - this.ownerAccountId = ownerAccountId; - } + private String ownerAccountId; + private GetGatewayResult() {} /** * @return The ASN on the Amazon side of the connection. * @@ -70,17 +59,13 @@ public static Builder builder() { public static Builder builder(GetGatewayResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String amazonSideAsn; private String id; private String name; private String ownerAccountId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetGatewayResult defaults) { Objects.requireNonNull(defaults); this.amazonSideAsn = defaults.amazonSideAsn; @@ -89,23 +74,33 @@ public Builder(GetGatewayResult defaults) { this.ownerAccountId = defaults.ownerAccountId; } + @CustomType.Setter public Builder amazonSideAsn(String amazonSideAsn) { this.amazonSideAsn = Objects.requireNonNull(amazonSideAsn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder ownerAccountId(String ownerAccountId) { this.ownerAccountId = Objects.requireNonNull(ownerAccountId); return this; - } public GetGatewayResult build() { - return new GetGatewayResult(amazonSideAsn, id, name, ownerAccountId); + } + public GetGatewayResult build() { + final var o = new GetGatewayResult(); + o.amazonSideAsn = amazonSideAsn; + o.id = id; + o.name = name; + o.ownerAccountId = ownerAccountId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetLocationResult.java b/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetLocationResult.java index 2ded4390724..541c6db87fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetLocationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetLocationResult.java @@ -14,45 +14,30 @@ public final class GetLocationResult { * @return The available MAC Security (MACsec) port speeds for the location. * */ - private final List availableMacsecPortSpeeds; + private List availableMacsecPortSpeeds; /** * @return The available port speeds for the location. * */ - private final List availablePortSpeeds; + private List availablePortSpeeds; /** * @return The names of the service providers for the location. * */ - private final List availableProviders; + private List availableProviders; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String locationCode; + private String id; + private String locationCode; /** * @return The name of the location. This includes the name of the colocation partner and the physical site of the building. * */ - private final String locationName; - - @CustomType.Constructor - private GetLocationResult( - @CustomType.Parameter("availableMacsecPortSpeeds") List availableMacsecPortSpeeds, - @CustomType.Parameter("availablePortSpeeds") List availablePortSpeeds, - @CustomType.Parameter("availableProviders") List availableProviders, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("locationCode") String locationCode, - @CustomType.Parameter("locationName") String locationName) { - this.availableMacsecPortSpeeds = availableMacsecPortSpeeds; - this.availablePortSpeeds = availablePortSpeeds; - this.availableProviders = availableProviders; - this.id = id; - this.locationCode = locationCode; - this.locationName = locationName; - } + private String locationName; + private GetLocationResult() {} /** * @return The available MAC Security (MACsec) port speeds for the location. * @@ -99,7 +84,7 @@ public static Builder builder() { public static Builder builder(GetLocationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List availableMacsecPortSpeeds; private List availablePortSpeeds; @@ -107,11 +92,7 @@ public static final class Builder { private String id; private String locationCode; private String locationName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocationResult defaults) { Objects.requireNonNull(defaults); this.availableMacsecPortSpeeds = defaults.availableMacsecPortSpeeds; @@ -122,6 +103,7 @@ public Builder(GetLocationResult defaults) { this.locationName = defaults.locationName; } + @CustomType.Setter public Builder availableMacsecPortSpeeds(List availableMacsecPortSpeeds) { this.availableMacsecPortSpeeds = Objects.requireNonNull(availableMacsecPortSpeeds); return this; @@ -129,6 +111,7 @@ public Builder availableMacsecPortSpeeds(List availableMacsecPortSpeeds) public Builder availableMacsecPortSpeeds(String... availableMacsecPortSpeeds) { return availableMacsecPortSpeeds(List.of(availableMacsecPortSpeeds)); } + @CustomType.Setter public Builder availablePortSpeeds(List availablePortSpeeds) { this.availablePortSpeeds = Objects.requireNonNull(availablePortSpeeds); return this; @@ -136,6 +119,7 @@ public Builder availablePortSpeeds(List availablePortSpeeds) { public Builder availablePortSpeeds(String... availablePortSpeeds) { return availablePortSpeeds(List.of(availablePortSpeeds)); } + @CustomType.Setter public Builder availableProviders(List availableProviders) { this.availableProviders = Objects.requireNonNull(availableProviders); return this; @@ -143,19 +127,30 @@ public Builder availableProviders(List availableProviders) { public Builder availableProviders(String... availableProviders) { return availableProviders(List.of(availableProviders)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder locationCode(String locationCode) { this.locationCode = Objects.requireNonNull(locationCode); return this; } + @CustomType.Setter public Builder locationName(String locationName) { this.locationName = Objects.requireNonNull(locationName); return this; - } public GetLocationResult build() { - return new GetLocationResult(availableMacsecPortSpeeds, availablePortSpeeds, availableProviders, id, locationCode, locationName); + } + public GetLocationResult build() { + final var o = new GetLocationResult(); + o.availableMacsecPortSpeeds = availableMacsecPortSpeeds; + o.availablePortSpeeds = availablePortSpeeds; + o.availableProviders = availableProviders; + o.id = id; + o.locationCode = locationCode; + o.locationName = locationName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetLocationsResult.java b/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetLocationsResult.java index 4fb57d80cee..40881f790a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetLocationsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/directconnect/outputs/GetLocationsResult.java @@ -14,21 +14,14 @@ public final class GetLocationsResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The code for the locations. * */ - private final List locationCodes; - - @CustomType.Constructor - private GetLocationsResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("locationCodes") List locationCodes) { - this.id = id; - this.locationCodes = locationCodes; - } + private List locationCodes; + private GetLocationsResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetLocationsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private List locationCodes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocationsResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.locationCodes = defaults.locationCodes; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder locationCodes(List locationCodes) { this.locationCodes = Objects.requireNonNull(locationCodes); return this; } public Builder locationCodes(String... locationCodes) { return locationCodes(List.of(locationCodes)); - } public GetLocationsResult build() { - return new GetLocationsResult(id, locationCodes); + } + public GetLocationsResult build() { + final var o = new GetLocationsResult(); + o.id = id; + o.locationCodes = locationCodes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/DirectoryConnectSettings.java b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/DirectoryConnectSettings.java index 0e6468534df..4ba4f05c471 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/DirectoryConnectSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/DirectoryConnectSettings.java @@ -11,49 +11,34 @@ @CustomType public final class DirectoryConnectSettings { - private final @Nullable List availabilityZones; + private @Nullable List availabilityZones; /** * @return The IP addresses of the AD Connector servers. * */ - private final @Nullable List connectIps; + private @Nullable List connectIps; /** * @return The DNS IP addresses of the domain to connect to. * */ - private final List customerDnsIps; + private List customerDnsIps; /** * @return The username corresponding to the password provided. * */ - private final String customerUsername; + private String customerUsername; /** * @return The identifiers of the subnets for the directory servers (2 subnets in 2 different AZs). * */ - private final List subnetIds; + private List subnetIds; /** * @return The identifier of the VPC that the directory is in. * */ - private final String vpcId; - - @CustomType.Constructor - private DirectoryConnectSettings( - @CustomType.Parameter("availabilityZones") @Nullable List availabilityZones, - @CustomType.Parameter("connectIps") @Nullable List connectIps, - @CustomType.Parameter("customerDnsIps") List customerDnsIps, - @CustomType.Parameter("customerUsername") String customerUsername, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.availabilityZones = availabilityZones; - this.connectIps = connectIps; - this.customerDnsIps = customerDnsIps; - this.customerUsername = customerUsername; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private DirectoryConnectSettings() {} public List availabilityZones() { return this.availabilityZones == null ? List.of() : this.availabilityZones; } @@ -100,7 +85,7 @@ public static Builder builder() { public static Builder builder(DirectoryConnectSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List availabilityZones; private @Nullable List connectIps; @@ -108,11 +93,7 @@ public static final class Builder { private String customerUsername; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DirectoryConnectSettings defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -123,6 +104,7 @@ public Builder(DirectoryConnectSettings defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder availabilityZones(@Nullable List availabilityZones) { this.availabilityZones = availabilityZones; return this; @@ -130,6 +112,7 @@ public Builder availabilityZones(@Nullable List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder connectIps(@Nullable List connectIps) { this.connectIps = connectIps; return this; @@ -137,6 +120,7 @@ public Builder connectIps(@Nullable List connectIps) { public Builder connectIps(String... connectIps) { return connectIps(List.of(connectIps)); } + @CustomType.Setter public Builder customerDnsIps(List customerDnsIps) { this.customerDnsIps = Objects.requireNonNull(customerDnsIps); return this; @@ -144,10 +128,12 @@ public Builder customerDnsIps(List customerDnsIps) { public Builder customerDnsIps(String... customerDnsIps) { return customerDnsIps(List.of(customerDnsIps)); } + @CustomType.Setter public Builder customerUsername(String customerUsername) { this.customerUsername = Objects.requireNonNull(customerUsername); return this; } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -155,11 +141,20 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public DirectoryConnectSettings build() { - return new DirectoryConnectSettings(availabilityZones, connectIps, customerDnsIps, customerUsername, subnetIds, vpcId); + } + public DirectoryConnectSettings build() { + final var o = new DirectoryConnectSettings(); + o.availabilityZones = availabilityZones; + o.connectIps = connectIps; + o.customerDnsIps = customerDnsIps; + o.customerUsername = customerUsername; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/DirectoryVpcSettings.java b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/DirectoryVpcSettings.java index 6bbdb4abe26..ba461de788d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/DirectoryVpcSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/DirectoryVpcSettings.java @@ -11,28 +11,19 @@ @CustomType public final class DirectoryVpcSettings { - private final @Nullable List availabilityZones; + private @Nullable List availabilityZones; /** * @return The identifiers of the subnets for the directory servers (2 subnets in 2 different AZs). * */ - private final List subnetIds; + private List subnetIds; /** * @return The identifier of the VPC that the directory is in. * */ - private final String vpcId; - - @CustomType.Constructor - private DirectoryVpcSettings( - @CustomType.Parameter("availabilityZones") @Nullable List availabilityZones, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.availabilityZones = availabilityZones; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private DirectoryVpcSettings() {} public List availabilityZones() { return this.availabilityZones == null ? List.of() : this.availabilityZones; } @@ -58,16 +49,12 @@ public static Builder builder() { public static Builder builder(DirectoryVpcSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List availabilityZones; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DirectoryVpcSettings defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -75,6 +62,7 @@ public Builder(DirectoryVpcSettings defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder availabilityZones(@Nullable List availabilityZones) { this.availabilityZones = availabilityZones; return this; @@ -82,6 +70,7 @@ public Builder availabilityZones(@Nullable List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -89,11 +78,17 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public DirectoryVpcSettings build() { - return new DirectoryVpcSettings(availabilityZones, subnetIds, vpcId); + } + public DirectoryVpcSettings build() { + final var o = new DirectoryVpcSettings(); + o.availabilityZones = availabilityZones; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryConnectSetting.java b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryConnectSetting.java index 3ee8bbf2ed5..5ca2955cc55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryConnectSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryConnectSetting.java @@ -10,49 +10,34 @@ @CustomType public final class GetDirectoryConnectSetting { - private final List availabilityZones; + private List availabilityZones; /** * @return The IP addresses of the AD Connector servers. * */ - private final List connectIps; + private List connectIps; /** * @return The DNS IP addresses of the domain to connect to. * */ - private final List customerDnsIps; + private List customerDnsIps; /** * @return The username corresponding to the password provided. * */ - private final String customerUsername; + private String customerUsername; /** * @return The identifiers of the subnets for the connector servers (2 subnets in 2 different AZs). * */ - private final List subnetIds; + private List subnetIds; /** * @return The ID of the VPC that the connector is in. * */ - private final String vpcId; - - @CustomType.Constructor - private GetDirectoryConnectSetting( - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("connectIps") List connectIps, - @CustomType.Parameter("customerDnsIps") List customerDnsIps, - @CustomType.Parameter("customerUsername") String customerUsername, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.availabilityZones = availabilityZones; - this.connectIps = connectIps; - this.customerDnsIps = customerDnsIps; - this.customerUsername = customerUsername; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private GetDirectoryConnectSetting() {} public List availabilityZones() { return this.availabilityZones; } @@ -99,7 +84,7 @@ public static Builder builder() { public static Builder builder(GetDirectoryConnectSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List availabilityZones; private List connectIps; @@ -107,11 +92,7 @@ public static final class Builder { private String customerUsername; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDirectoryConnectSetting defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -122,6 +103,7 @@ public Builder(GetDirectoryConnectSetting defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -129,6 +111,7 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder connectIps(List connectIps) { this.connectIps = Objects.requireNonNull(connectIps); return this; @@ -136,6 +119,7 @@ public Builder connectIps(List connectIps) { public Builder connectIps(String... connectIps) { return connectIps(List.of(connectIps)); } + @CustomType.Setter public Builder customerDnsIps(List customerDnsIps) { this.customerDnsIps = Objects.requireNonNull(customerDnsIps); return this; @@ -143,10 +127,12 @@ public Builder customerDnsIps(List customerDnsIps) { public Builder customerDnsIps(String... customerDnsIps) { return customerDnsIps(List.of(customerDnsIps)); } + @CustomType.Setter public Builder customerUsername(String customerUsername) { this.customerUsername = Objects.requireNonNull(customerUsername); return this; } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -154,11 +140,20 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetDirectoryConnectSetting build() { - return new GetDirectoryConnectSetting(availabilityZones, connectIps, customerDnsIps, customerUsername, subnetIds, vpcId); + } + public GetDirectoryConnectSetting build() { + final var o = new GetDirectoryConnectSetting(); + o.availabilityZones = availabilityZones; + o.connectIps = connectIps; + o.customerDnsIps = customerDnsIps; + o.customerUsername = customerUsername; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryRadiusSetting.java b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryRadiusSetting.java index 17fb58b564c..c7c8e35408c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryRadiusSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryRadiusSetting.java @@ -16,56 +16,39 @@ public final class GetDirectoryRadiusSetting { * @return The protocol specified for your RADIUS endpoints. * */ - private final String authenticationProtocol; + private String authenticationProtocol; /** * @return Display label. * */ - private final String displayLabel; + private String displayLabel; /** * @return The port that your RADIUS server is using for communications. * */ - private final Integer radiusPort; + private Integer radiusPort; /** * @return The maximum number of times that communication with the RADIUS server is attempted. * */ - private final Integer radiusRetries; + private Integer radiusRetries; /** * @return A set of strings that contains the fully qualified domain name (FQDN) or IP addresses of the RADIUS server endpoints, or the FQDN or IP addresses of your RADIUS server load balancer. * */ - private final List radiusServers; + private List radiusServers; /** * @return The amount of time, in seconds, to wait for the RADIUS server to respond. * */ - private final Integer radiusTimeout; + private Integer radiusTimeout; /** * @return Not currently used. * */ - private final Boolean useSameUsername; - - @CustomType.Constructor - private GetDirectoryRadiusSetting( - @CustomType.Parameter("authenticationProtocol") String authenticationProtocol, - @CustomType.Parameter("displayLabel") String displayLabel, - @CustomType.Parameter("radiusPort") Integer radiusPort, - @CustomType.Parameter("radiusRetries") Integer radiusRetries, - @CustomType.Parameter("radiusServers") List radiusServers, - @CustomType.Parameter("radiusTimeout") Integer radiusTimeout, - @CustomType.Parameter("useSameUsername") Boolean useSameUsername) { - this.authenticationProtocol = authenticationProtocol; - this.displayLabel = displayLabel; - this.radiusPort = radiusPort; - this.radiusRetries = radiusRetries; - this.radiusServers = radiusServers; - this.radiusTimeout = radiusTimeout; - this.useSameUsername = useSameUsername; - } + private Boolean useSameUsername; + private GetDirectoryRadiusSetting() {} /** * @return The protocol specified for your RADIUS endpoints. * @@ -123,7 +106,7 @@ public static Builder builder() { public static Builder builder(GetDirectoryRadiusSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String authenticationProtocol; private String displayLabel; @@ -132,11 +115,7 @@ public static final class Builder { private List radiusServers; private Integer radiusTimeout; private Boolean useSameUsername; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDirectoryRadiusSetting defaults) { Objects.requireNonNull(defaults); this.authenticationProtocol = defaults.authenticationProtocol; @@ -148,22 +127,27 @@ public Builder(GetDirectoryRadiusSetting defaults) { this.useSameUsername = defaults.useSameUsername; } + @CustomType.Setter public Builder authenticationProtocol(String authenticationProtocol) { this.authenticationProtocol = Objects.requireNonNull(authenticationProtocol); return this; } + @CustomType.Setter public Builder displayLabel(String displayLabel) { this.displayLabel = Objects.requireNonNull(displayLabel); return this; } + @CustomType.Setter public Builder radiusPort(Integer radiusPort) { this.radiusPort = Objects.requireNonNull(radiusPort); return this; } + @CustomType.Setter public Builder radiusRetries(Integer radiusRetries) { this.radiusRetries = Objects.requireNonNull(radiusRetries); return this; } + @CustomType.Setter public Builder radiusServers(List radiusServers) { this.radiusServers = Objects.requireNonNull(radiusServers); return this; @@ -171,15 +155,26 @@ public Builder radiusServers(List radiusServers) { public Builder radiusServers(String... radiusServers) { return radiusServers(List.of(radiusServers)); } + @CustomType.Setter public Builder radiusTimeout(Integer radiusTimeout) { this.radiusTimeout = Objects.requireNonNull(radiusTimeout); return this; } + @CustomType.Setter public Builder useSameUsername(Boolean useSameUsername) { this.useSameUsername = Objects.requireNonNull(useSameUsername); return this; - } public GetDirectoryRadiusSetting build() { - return new GetDirectoryRadiusSetting(authenticationProtocol, displayLabel, radiusPort, radiusRetries, radiusServers, radiusTimeout, useSameUsername); + } + public GetDirectoryRadiusSetting build() { + final var o = new GetDirectoryRadiusSetting(); + o.authenticationProtocol = authenticationProtocol; + o.displayLabel = displayLabel; + o.radiusPort = radiusPort; + o.radiusRetries = radiusRetries; + o.radiusServers = radiusServers; + o.radiusTimeout = radiusTimeout; + o.useSameUsername = useSameUsername; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryResult.java b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryResult.java index 323f01fb5eb..005627d3729 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryResult.java @@ -19,110 +19,73 @@ public final class GetDirectoryResult { * @return The access URL for the directory/connector, such as http://alias.awsapps.com. * */ - private final String accessUrl; + private String accessUrl; /** * @return The alias for the directory/connector, such as `d-991708b282.awsapps.com`. * */ - private final String alias; - private final List connectSettings; + private String alias; + private List connectSettings; /** * @return A textual description for the directory/connector. * */ - private final String description; - private final String directoryId; + private String description; + private String directoryId; /** * @return A list of IP addresses of the DNS servers for the directory/connector. * */ - private final List dnsIpAddresses; + private List dnsIpAddresses; /** * @return (for `MicrosoftAD`) The Microsoft AD edition (`Standard` or `Enterprise`). * */ - private final String edition; + private String edition; /** * @return The directory/connector single-sign on status. * */ - private final Boolean enableSso; + private Boolean enableSso; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The fully qualified name for the directory/connector. * */ - private final String name; - private final List radiusSettings; + private String name; + private List radiusSettings; /** * @return The ID of the security group created by the directory/connector. * */ - private final String securityGroupId; + private String securityGroupId; /** * @return The short name of the directory/connector, such as `CORP`. * */ - private final String shortName; + private String shortName; /** * @return (for `SimpleAD` and `ADConnector`) The size of the directory/connector (`Small` or `Large`). * */ - private final String size; + private String size; /** * @return A map of tags assigned to the directory/connector. * */ - private final Map tags; + private Map tags; /** * @return The directory type (`SimpleAD`, `ADConnector` or `MicrosoftAD`). * */ - private final String type; - private final List vpcSettings; - - @CustomType.Constructor - private GetDirectoryResult( - @CustomType.Parameter("accessUrl") String accessUrl, - @CustomType.Parameter("alias") String alias, - @CustomType.Parameter("connectSettings") List connectSettings, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("directoryId") String directoryId, - @CustomType.Parameter("dnsIpAddresses") List dnsIpAddresses, - @CustomType.Parameter("edition") String edition, - @CustomType.Parameter("enableSso") Boolean enableSso, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("radiusSettings") List radiusSettings, - @CustomType.Parameter("securityGroupId") String securityGroupId, - @CustomType.Parameter("shortName") String shortName, - @CustomType.Parameter("size") String size, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("vpcSettings") List vpcSettings) { - this.accessUrl = accessUrl; - this.alias = alias; - this.connectSettings = connectSettings; - this.description = description; - this.directoryId = directoryId; - this.dnsIpAddresses = dnsIpAddresses; - this.edition = edition; - this.enableSso = enableSso; - this.id = id; - this.name = name; - this.radiusSettings = radiusSettings; - this.securityGroupId = securityGroupId; - this.shortName = shortName; - this.size = size; - this.tags = tags; - this.type = type; - this.vpcSettings = vpcSettings; - } + private String type; + private List vpcSettings; + private GetDirectoryResult() {} /** * @return The access URL for the directory/connector, such as http://alias.awsapps.com. * @@ -234,7 +197,7 @@ public static Builder builder() { public static Builder builder(GetDirectoryResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accessUrl; private String alias; @@ -253,11 +216,7 @@ public static final class Builder { private Map tags; private String type; private List vpcSettings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDirectoryResult defaults) { Objects.requireNonNull(defaults); this.accessUrl = defaults.accessUrl; @@ -279,14 +238,17 @@ public Builder(GetDirectoryResult defaults) { this.vpcSettings = defaults.vpcSettings; } + @CustomType.Setter public Builder accessUrl(String accessUrl) { this.accessUrl = Objects.requireNonNull(accessUrl); return this; } + @CustomType.Setter public Builder alias(String alias) { this.alias = Objects.requireNonNull(alias); return this; } + @CustomType.Setter public Builder connectSettings(List connectSettings) { this.connectSettings = Objects.requireNonNull(connectSettings); return this; @@ -294,14 +256,17 @@ public Builder connectSettings(List connectSettings) public Builder connectSettings(GetDirectoryConnectSetting... connectSettings) { return connectSettings(List.of(connectSettings)); } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder directoryId(String directoryId) { this.directoryId = Objects.requireNonNull(directoryId); return this; } + @CustomType.Setter public Builder dnsIpAddresses(List dnsIpAddresses) { this.dnsIpAddresses = Objects.requireNonNull(dnsIpAddresses); return this; @@ -309,22 +274,27 @@ public Builder dnsIpAddresses(List dnsIpAddresses) { public Builder dnsIpAddresses(String... dnsIpAddresses) { return dnsIpAddresses(List.of(dnsIpAddresses)); } + @CustomType.Setter public Builder edition(String edition) { this.edition = Objects.requireNonNull(edition); return this; } + @CustomType.Setter public Builder enableSso(Boolean enableSso) { this.enableSso = Objects.requireNonNull(enableSso); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder radiusSettings(List radiusSettings) { this.radiusSettings = Objects.requireNonNull(radiusSettings); return this; @@ -332,34 +302,59 @@ public Builder radiusSettings(List radiusSettings) { public Builder radiusSettings(GetDirectoryRadiusSetting... radiusSettings) { return radiusSettings(List.of(radiusSettings)); } + @CustomType.Setter public Builder securityGroupId(String securityGroupId) { this.securityGroupId = Objects.requireNonNull(securityGroupId); return this; } + @CustomType.Setter public Builder shortName(String shortName) { this.shortName = Objects.requireNonNull(shortName); return this; } + @CustomType.Setter public Builder size(String size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder vpcSettings(List vpcSettings) { this.vpcSettings = Objects.requireNonNull(vpcSettings); return this; } public Builder vpcSettings(GetDirectoryVpcSetting... vpcSettings) { return vpcSettings(List.of(vpcSettings)); - } public GetDirectoryResult build() { - return new GetDirectoryResult(accessUrl, alias, connectSettings, description, directoryId, dnsIpAddresses, edition, enableSso, id, name, radiusSettings, securityGroupId, shortName, size, tags, type, vpcSettings); + } + public GetDirectoryResult build() { + final var o = new GetDirectoryResult(); + o.accessUrl = accessUrl; + o.alias = alias; + o.connectSettings = connectSettings; + o.description = description; + o.directoryId = directoryId; + o.dnsIpAddresses = dnsIpAddresses; + o.edition = edition; + o.enableSso = enableSso; + o.id = id; + o.name = name; + o.radiusSettings = radiusSettings; + o.securityGroupId = securityGroupId; + o.shortName = shortName; + o.size = size; + o.tags = tags; + o.type = type; + o.vpcSettings = vpcSettings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryVpcSetting.java b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryVpcSetting.java index 51b448c7557..f73f8ebffd8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryVpcSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/GetDirectoryVpcSetting.java @@ -10,28 +10,19 @@ @CustomType public final class GetDirectoryVpcSetting { - private final List availabilityZones; + private List availabilityZones; /** * @return The identifiers of the subnets for the connector servers (2 subnets in 2 different AZs). * */ - private final List subnetIds; + private List subnetIds; /** * @return The ID of the VPC that the connector is in. * */ - private final String vpcId; - - @CustomType.Constructor - private GetDirectoryVpcSetting( - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.availabilityZones = availabilityZones; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private GetDirectoryVpcSetting() {} public List availabilityZones() { return this.availabilityZones; } @@ -57,16 +48,12 @@ public static Builder builder() { public static Builder builder(GetDirectoryVpcSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List availabilityZones; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDirectoryVpcSetting defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -74,6 +61,7 @@ public Builder(GetDirectoryVpcSetting defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -81,6 +69,7 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -88,11 +77,17 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetDirectoryVpcSetting build() { - return new GetDirectoryVpcSetting(availabilityZones, subnetIds, vpcId); + } + public GetDirectoryVpcSetting build() { + final var o = new GetDirectoryVpcSetting(); + o.availabilityZones = availabilityZones; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/ServiceRegionVpcSettings.java b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/ServiceRegionVpcSettings.java index 1978d899848..9f4099900f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/ServiceRegionVpcSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/ServiceRegionVpcSettings.java @@ -14,21 +14,14 @@ public final class ServiceRegionVpcSettings { * @return The identifiers of the subnets for the directory servers. * */ - private final List subnetIds; + private List subnetIds; /** * @return The identifier of the VPC in which to create the directory. * */ - private final String vpcId; - - @CustomType.Constructor - private ServiceRegionVpcSettings( - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private ServiceRegionVpcSettings() {} /** * @return The identifiers of the subnets for the directory servers. * @@ -51,21 +44,18 @@ public static Builder builder() { public static Builder builder(ServiceRegionVpcSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceRegionVpcSettings defaults) { Objects.requireNonNull(defaults); this.subnetIds = defaults.subnetIds; this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -73,11 +63,16 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public ServiceRegionVpcSettings build() { - return new ServiceRegionVpcSettings(subnetIds, vpcId); + } + public ServiceRegionVpcSettings build() { + final var o = new ServiceRegionVpcSettings(); + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/SharedDirectoryTarget.java b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/SharedDirectoryTarget.java index 5c190c99a79..fc805aa17f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/SharedDirectoryTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/directoryservice/outputs/SharedDirectoryTarget.java @@ -15,21 +15,14 @@ public final class SharedDirectoryTarget { * @return Identifier of the directory consumer account. * */ - private final String id; + private String id; /** * @return Type of identifier to be used in the `id` field. Valid value is `ACCOUNT`. Default is `ACCOUNT`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private SharedDirectoryTarget( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("type") @Nullable String type) { - this.id = id; - this.type = type; - } + private @Nullable String type; + private SharedDirectoryTarget() {} /** * @return Identifier of the directory consumer account. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SharedDirectoryTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SharedDirectoryTarget defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.type = defaults.type; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public SharedDirectoryTarget build() { - return new SharedDirectoryTarget(id, type); + } + public SharedDirectoryTarget build() { + final var o = new SharedDirectoryTarget(); + o.id = id; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetails.java b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetails.java index 0dcd5fb4ed4..0d677a2609a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetails.java @@ -21,63 +21,44 @@ public final class LifecyclePolicyPolicyDetails { * @return The actions to be performed when the event-based policy is triggered. You can specify only one action per policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the `action` configuration block. * */ - private final @Nullable LifecyclePolicyPolicyDetailsAction action; + private @Nullable LifecyclePolicyPolicyDetailsAction action; /** * @return The event that triggers the event-based policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the `event_source` configuration block. * */ - private final @Nullable LifecyclePolicyPolicyDetailsEventSource eventSource; + private @Nullable LifecyclePolicyPolicyDetailsEventSource eventSource; /** * @return Information about the event. See the `parameters` configuration block. * */ - private final @Nullable LifecyclePolicyPolicyDetailsParameters parameters; + private @Nullable LifecyclePolicyPolicyDetailsParameters parameters; /** * @return The valid target resource types and actions a policy can manage. Specify `EBS_SNAPSHOT_MANAGEMENT` to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify `IMAGE_MANAGEMENT` to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify `EVENT_BASED_POLICY` to create an event-based policy that performs specific actions when a defined event occurs in your AWS account. Default value is `EBS_SNAPSHOT_MANAGEMENT`. * */ - private final @Nullable String policyType; + private @Nullable String policyType; /** * @return The location of the resources to backup. If the source resources are located in an AWS Region, specify `CLOUD`. If the source resources are located on an Outpost in your account, specify `OUTPOST`. If you specify `OUTPOST`, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account. Valid values are `CLOUD` and `OUTPOST`. * */ - private final @Nullable String resourceLocations; + private @Nullable String resourceLocations; /** * @return A list of resource types that should be targeted by the lifecycle policy. Valid values are `VOLUME` and `INSTANCE`. * */ - private final @Nullable List resourceTypes; + private @Nullable List resourceTypes; /** * @return See the `schedule` configuration block. * */ - private final @Nullable List schedules; + private @Nullable List schedules; /** * @return A map of tag keys and their values. Any resources that match the `resource_types` and are tagged with _any_ of these tags will be targeted. * */ - private final @Nullable Map targetTags; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetails( - @CustomType.Parameter("action") @Nullable LifecyclePolicyPolicyDetailsAction action, - @CustomType.Parameter("eventSource") @Nullable LifecyclePolicyPolicyDetailsEventSource eventSource, - @CustomType.Parameter("parameters") @Nullable LifecyclePolicyPolicyDetailsParameters parameters, - @CustomType.Parameter("policyType") @Nullable String policyType, - @CustomType.Parameter("resourceLocations") @Nullable String resourceLocations, - @CustomType.Parameter("resourceTypes") @Nullable List resourceTypes, - @CustomType.Parameter("schedules") @Nullable List schedules, - @CustomType.Parameter("targetTags") @Nullable Map targetTags) { - this.action = action; - this.eventSource = eventSource; - this.parameters = parameters; - this.policyType = policyType; - this.resourceLocations = resourceLocations; - this.resourceTypes = resourceTypes; - this.schedules = schedules; - this.targetTags = targetTags; - } + private @Nullable Map targetTags; + private LifecyclePolicyPolicyDetails() {} /** * @return The actions to be performed when the event-based policy is triggered. You can specify only one action per policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the `action` configuration block. * @@ -142,7 +123,7 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable LifecyclePolicyPolicyDetailsAction action; private @Nullable LifecyclePolicyPolicyDetailsEventSource eventSource; @@ -152,11 +133,7 @@ public static final class Builder { private @Nullable List resourceTypes; private @Nullable List schedules; private @Nullable Map targetTags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetails defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -169,26 +146,32 @@ public Builder(LifecyclePolicyPolicyDetails defaults) { this.targetTags = defaults.targetTags; } + @CustomType.Setter public Builder action(@Nullable LifecyclePolicyPolicyDetailsAction action) { this.action = action; return this; } + @CustomType.Setter public Builder eventSource(@Nullable LifecyclePolicyPolicyDetailsEventSource eventSource) { this.eventSource = eventSource; return this; } + @CustomType.Setter public Builder parameters(@Nullable LifecyclePolicyPolicyDetailsParameters parameters) { this.parameters = parameters; return this; } + @CustomType.Setter public Builder policyType(@Nullable String policyType) { this.policyType = policyType; return this; } + @CustomType.Setter public Builder resourceLocations(@Nullable String resourceLocations) { this.resourceLocations = resourceLocations; return this; } + @CustomType.Setter public Builder resourceTypes(@Nullable List resourceTypes) { this.resourceTypes = resourceTypes; return this; @@ -196,6 +179,7 @@ public Builder resourceTypes(@Nullable List resourceTypes) { public Builder resourceTypes(String... resourceTypes) { return resourceTypes(List.of(resourceTypes)); } + @CustomType.Setter public Builder schedules(@Nullable List schedules) { this.schedules = schedules; return this; @@ -203,11 +187,22 @@ public Builder schedules(@Nullable List sc public Builder schedules(LifecyclePolicyPolicyDetailsSchedule... schedules) { return schedules(List.of(schedules)); } + @CustomType.Setter public Builder targetTags(@Nullable Map targetTags) { this.targetTags = targetTags; return this; - } public LifecyclePolicyPolicyDetails build() { - return new LifecyclePolicyPolicyDetails(action, eventSource, parameters, policyType, resourceLocations, resourceTypes, schedules, targetTags); + } + public LifecyclePolicyPolicyDetails build() { + final var o = new LifecyclePolicyPolicyDetails(); + o.action = action; + o.eventSource = eventSource; + o.parameters = parameters; + o.policyType = policyType; + o.resourceLocations = resourceLocations; + o.resourceTypes = resourceTypes; + o.schedules = schedules; + o.targetTags = targetTags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsAction.java b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsAction.java index d22d446bbfb..291e30deb4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsAction.java @@ -15,21 +15,14 @@ public final class LifecyclePolicyPolicyDetailsAction { * @return The rule for copying shared snapshots across Regions. See the `cross_region_copy` configuration block. * */ - private final List crossRegionCopies; + private List crossRegionCopies; /** * @return A name for the schedule. * */ - private final String name; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetailsAction( - @CustomType.Parameter("crossRegionCopies") List crossRegionCopies, - @CustomType.Parameter("name") String name) { - this.crossRegionCopies = crossRegionCopies; - this.name = name; - } + private String name; + private LifecyclePolicyPolicyDetailsAction() {} /** * @return The rule for copying shared snapshots across Regions. See the `cross_region_copy` configuration block. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetailsAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List crossRegionCopies; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetailsAction defaults) { Objects.requireNonNull(defaults); this.crossRegionCopies = defaults.crossRegionCopies; this.name = defaults.name; } + @CustomType.Setter public Builder crossRegionCopies(List crossRegionCopies) { this.crossRegionCopies = Objects.requireNonNull(crossRegionCopies); return this; @@ -74,11 +64,16 @@ public Builder crossRegionCopies(List snapshotOwners; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetailsEventSourceParameters( - @CustomType.Parameter("descriptionRegex") String descriptionRegex, - @CustomType.Parameter("eventType") String eventType, - @CustomType.Parameter("snapshotOwners") List snapshotOwners) { - this.descriptionRegex = descriptionRegex; - this.eventType = eventType; - this.snapshotOwners = snapshotOwners; - } + private List snapshotOwners; + private LifecyclePolicyPolicyDetailsEventSourceParameters() {} /** * @return The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetailsEventSourceParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String descriptionRegex; private String eventType; private List snapshotOwners; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetailsEventSourceParameters defaults) { Objects.requireNonNull(defaults); this.descriptionRegex = defaults.descriptionRegex; @@ -82,22 +69,30 @@ public Builder(LifecyclePolicyPolicyDetailsEventSourceParameters defaults) { this.snapshotOwners = defaults.snapshotOwners; } + @CustomType.Setter public Builder descriptionRegex(String descriptionRegex) { this.descriptionRegex = Objects.requireNonNull(descriptionRegex); return this; } + @CustomType.Setter public Builder eventType(String eventType) { this.eventType = Objects.requireNonNull(eventType); return this; } + @CustomType.Setter public Builder snapshotOwners(List snapshotOwners) { this.snapshotOwners = Objects.requireNonNull(snapshotOwners); return this; } public Builder snapshotOwners(String... snapshotOwners) { return snapshotOwners(List.of(snapshotOwners)); - } public LifecyclePolicyPolicyDetailsEventSourceParameters build() { - return new LifecyclePolicyPolicyDetailsEventSourceParameters(descriptionRegex, eventType, snapshotOwners); + } + public LifecyclePolicyPolicyDetailsEventSourceParameters build() { + final var o = new LifecyclePolicyPolicyDetailsEventSourceParameters(); + o.descriptionRegex = descriptionRegex; + o.eventType = eventType; + o.snapshotOwners = snapshotOwners; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsParameters.java b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsParameters.java index d12f916e3bb..5026feda18c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsParameters.java @@ -15,21 +15,14 @@ public final class LifecyclePolicyPolicyDetailsParameters { * @return Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is `false`. * */ - private final @Nullable Boolean excludeBootVolume; + private @Nullable Boolean excludeBootVolume; /** * @return Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. `true` indicates that targeted instances are not rebooted when the policy runs. `false` indicates that target instances are rebooted when the policy runs. The default is `true` (instances are not rebooted). * */ - private final @Nullable Boolean noReboot; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetailsParameters( - @CustomType.Parameter("excludeBootVolume") @Nullable Boolean excludeBootVolume, - @CustomType.Parameter("noReboot") @Nullable Boolean noReboot) { - this.excludeBootVolume = excludeBootVolume; - this.noReboot = noReboot; - } + private @Nullable Boolean noReboot; + private LifecyclePolicyPolicyDetailsParameters() {} /** * @return Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is `false`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetailsParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean excludeBootVolume; private @Nullable Boolean noReboot; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetailsParameters defaults) { Objects.requireNonNull(defaults); this.excludeBootVolume = defaults.excludeBootVolume; this.noReboot = defaults.noReboot; } + @CustomType.Setter public Builder excludeBootVolume(@Nullable Boolean excludeBootVolume) { this.excludeBootVolume = excludeBootVolume; return this; } + @CustomType.Setter public Builder noReboot(@Nullable Boolean noReboot) { this.noReboot = noReboot; return this; - } public LifecyclePolicyPolicyDetailsParameters build() { - return new LifecyclePolicyPolicyDetailsParameters(excludeBootVolume, noReboot); + } + public LifecyclePolicyPolicyDetailsParameters build() { + final var o = new LifecyclePolicyPolicyDetailsParameters(); + o.excludeBootVolume = excludeBootVolume; + o.noReboot = noReboot; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsSchedule.java b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsSchedule.java index c0dfe6746d0..51ada0d5f7a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsSchedule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsSchedule.java @@ -24,77 +24,54 @@ public final class LifecyclePolicyPolicyDetailsSchedule { * @return Whether to copy all user-defined tags from the source snapshot to the cross-region snapshot copy. * */ - private final @Nullable Boolean copyTags; + private @Nullable Boolean copyTags; /** * @return See the `create_rule` block. Max of 1 per schedule. * */ - private final LifecyclePolicyPolicyDetailsScheduleCreateRule createRule; + private LifecyclePolicyPolicyDetailsScheduleCreateRule createRule; /** * @return See the `cross_region_copy_rule` block. Max of 3 per schedule. * */ - private final @Nullable List crossRegionCopyRules; + private @Nullable List crossRegionCopyRules; /** * @return The AMI deprecation rule for cross-Region AMI copies created by the rule. See the `deprecate_rule` block. * */ - private final @Nullable LifecyclePolicyPolicyDetailsScheduleDeprecateRule deprecateRule; + private @Nullable LifecyclePolicyPolicyDetailsScheduleDeprecateRule deprecateRule; /** * @return See the `fast_restore_rule` block. Max of 1 per schedule. * */ - private final @Nullable LifecyclePolicyPolicyDetailsScheduleFastRestoreRule fastRestoreRule; + private @Nullable LifecyclePolicyPolicyDetailsScheduleFastRestoreRule fastRestoreRule; /** * @return A name for the schedule. * */ - private final String name; + private String name; /** * @return The retention rule that indicates how long snapshot copies are to be retained in the destination Region. See the `retain_rule` block. Max of 1 per schedule. * */ - private final LifecyclePolicyPolicyDetailsScheduleRetainRule retainRule; + private LifecyclePolicyPolicyDetailsScheduleRetainRule retainRule; /** * @return See the `share_rule` block. Max of 1 per schedule. * */ - private final @Nullable LifecyclePolicyPolicyDetailsScheduleShareRule shareRule; + private @Nullable LifecyclePolicyPolicyDetailsScheduleShareRule shareRule; /** * @return A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these. * */ - private final @Nullable Map tagsToAdd; + private @Nullable Map tagsToAdd; /** * @return A map of tag keys and variable values, where the values are determined when the policy is executed. Only `$(instance-id)` or `$(timestamp)` are valid values. Can only be used when `resource_types` is `INSTANCE`. * */ - private final @Nullable Map variableTags; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetailsSchedule( - @CustomType.Parameter("copyTags") @Nullable Boolean copyTags, - @CustomType.Parameter("createRule") LifecyclePolicyPolicyDetailsScheduleCreateRule createRule, - @CustomType.Parameter("crossRegionCopyRules") @Nullable List crossRegionCopyRules, - @CustomType.Parameter("deprecateRule") @Nullable LifecyclePolicyPolicyDetailsScheduleDeprecateRule deprecateRule, - @CustomType.Parameter("fastRestoreRule") @Nullable LifecyclePolicyPolicyDetailsScheduleFastRestoreRule fastRestoreRule, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("retainRule") LifecyclePolicyPolicyDetailsScheduleRetainRule retainRule, - @CustomType.Parameter("shareRule") @Nullable LifecyclePolicyPolicyDetailsScheduleShareRule shareRule, - @CustomType.Parameter("tagsToAdd") @Nullable Map tagsToAdd, - @CustomType.Parameter("variableTags") @Nullable Map variableTags) { - this.copyTags = copyTags; - this.createRule = createRule; - this.crossRegionCopyRules = crossRegionCopyRules; - this.deprecateRule = deprecateRule; - this.fastRestoreRule = fastRestoreRule; - this.name = name; - this.retainRule = retainRule; - this.shareRule = shareRule; - this.tagsToAdd = tagsToAdd; - this.variableTags = variableTags; - } + private @Nullable Map variableTags; + private LifecyclePolicyPolicyDetailsSchedule() {} /** * @return Whether to copy all user-defined tags from the source snapshot to the cross-region snapshot copy. * @@ -173,7 +150,7 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetailsSchedule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean copyTags; private LifecyclePolicyPolicyDetailsScheduleCreateRule createRule; @@ -185,11 +162,7 @@ public static final class Builder { private @Nullable LifecyclePolicyPolicyDetailsScheduleShareRule shareRule; private @Nullable Map tagsToAdd; private @Nullable Map variableTags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetailsSchedule defaults) { Objects.requireNonNull(defaults); this.copyTags = defaults.copyTags; @@ -204,14 +177,17 @@ public Builder(LifecyclePolicyPolicyDetailsSchedule defaults) { this.variableTags = defaults.variableTags; } + @CustomType.Setter public Builder copyTags(@Nullable Boolean copyTags) { this.copyTags = copyTags; return this; } + @CustomType.Setter public Builder createRule(LifecyclePolicyPolicyDetailsScheduleCreateRule createRule) { this.createRule = Objects.requireNonNull(createRule); return this; } + @CustomType.Setter public Builder crossRegionCopyRules(@Nullable List crossRegionCopyRules) { this.crossRegionCopyRules = crossRegionCopyRules; return this; @@ -219,35 +195,54 @@ public Builder crossRegionCopyRules(@Nullable List tagsToAdd) { this.tagsToAdd = tagsToAdd; return this; } + @CustomType.Setter public Builder variableTags(@Nullable Map variableTags) { this.variableTags = variableTags; return this; - } public LifecyclePolicyPolicyDetailsSchedule build() { - return new LifecyclePolicyPolicyDetailsSchedule(copyTags, createRule, crossRegionCopyRules, deprecateRule, fastRestoreRule, name, retainRule, shareRule, tagsToAdd, variableTags); + } + public LifecyclePolicyPolicyDetailsSchedule build() { + final var o = new LifecyclePolicyPolicyDetailsSchedule(); + o.copyTags = copyTags; + o.createRule = createRule; + o.crossRegionCopyRules = crossRegionCopyRules; + o.deprecateRule = deprecateRule; + o.fastRestoreRule = fastRestoreRule; + o.name = name; + o.retainRule = retainRule; + o.shareRule = shareRule; + o.tagsToAdd = tagsToAdd; + o.variableTags = variableTags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCreateRule.java b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCreateRule.java index 25072ba1ca0..5d5649d3bd4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCreateRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCreateRule.java @@ -16,42 +16,29 @@ public final class LifecyclePolicyPolicyDetailsScheduleCreateRule { * @return The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. * */ - private final @Nullable String cronExpression; + private @Nullable String cronExpression; /** * @return The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days. * */ - private final @Nullable Integer interval; + private @Nullable Integer interval; /** * @return The unit of time for time-based retention. Valid values: `DAYS`, `WEEKS`, `MONTHS`, or `YEARS`. * */ - private final @Nullable String intervalUnit; + private @Nullable String intervalUnit; /** * @return Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify `CLOUD`. To create snapshots on the same Outpost as the source resource, specify `OUTPOST_LOCAL`. If you omit this parameter, `CLOUD` is used by default. If the policy targets resources in an AWS Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost. Valid values are `CLOUD` and `OUTPOST_LOCAL`. * */ - private final @Nullable String location; + private @Nullable String location; /** * @return A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1. * */ - private final @Nullable String times; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetailsScheduleCreateRule( - @CustomType.Parameter("cronExpression") @Nullable String cronExpression, - @CustomType.Parameter("interval") @Nullable Integer interval, - @CustomType.Parameter("intervalUnit") @Nullable String intervalUnit, - @CustomType.Parameter("location") @Nullable String location, - @CustomType.Parameter("times") @Nullable String times) { - this.cronExpression = cronExpression; - this.interval = interval; - this.intervalUnit = intervalUnit; - this.location = location; - this.times = times; - } + private @Nullable String times; + private LifecyclePolicyPolicyDetailsScheduleCreateRule() {} /** * @return The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetailsScheduleCreateRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cronExpression; private @Nullable Integer interval; private @Nullable String intervalUnit; private @Nullable String location; private @Nullable String times; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetailsScheduleCreateRule defaults) { Objects.requireNonNull(defaults); this.cronExpression = defaults.cronExpression; @@ -116,27 +99,39 @@ public Builder(LifecyclePolicyPolicyDetailsScheduleCreateRule defaults) { this.times = defaults.times; } + @CustomType.Setter public Builder cronExpression(@Nullable String cronExpression) { this.cronExpression = cronExpression; return this; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; } + @CustomType.Setter public Builder intervalUnit(@Nullable String intervalUnit) { this.intervalUnit = intervalUnit; return this; } + @CustomType.Setter public Builder location(@Nullable String location) { this.location = location; return this; } + @CustomType.Setter public Builder times(@Nullable String times) { this.times = times; return this; - } public LifecyclePolicyPolicyDetailsScheduleCreateRule build() { - return new LifecyclePolicyPolicyDetailsScheduleCreateRule(cronExpression, interval, intervalUnit, location, times); + } + public LifecyclePolicyPolicyDetailsScheduleCreateRule build() { + final var o = new LifecyclePolicyPolicyDetailsScheduleCreateRule(); + o.cronExpression = cronExpression; + o.interval = interval; + o.intervalUnit = intervalUnit; + o.location = location; + o.times = times; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule.java b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule.java index a9f45f34ee1..140c8a3de75 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule.java @@ -18,49 +18,34 @@ public final class LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule { * @return The Amazon Resource Name (ARN) of the AWS KMS customer master key (CMK) to use for EBS encryption. If this argument is not specified, the default KMS key for the account is used. * */ - private final @Nullable String cmkArn; + private @Nullable String cmkArn; /** * @return Whether to copy all user-defined tags from the source snapshot to the cross-region snapshot copy. * */ - private final @Nullable Boolean copyTags; + private @Nullable Boolean copyTags; /** * @return The AMI deprecation rule for cross-Region AMI copies created by the rule. See the `deprecate_rule` block. * */ - private final @Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule deprecateRule; + private @Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule deprecateRule; /** * @return To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled. * */ - private final Boolean encrypted; + private Boolean encrypted; /** * @return The retention rule that indicates how long snapshot copies are to be retained in the destination Region. See the `retain_rule` block. Max of 1 per schedule. * */ - private final @Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule retainRule; + private @Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule retainRule; /** * @return The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies. * */ - private final String target; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule( - @CustomType.Parameter("cmkArn") @Nullable String cmkArn, - @CustomType.Parameter("copyTags") @Nullable Boolean copyTags, - @CustomType.Parameter("deprecateRule") @Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule deprecateRule, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("retainRule") @Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule retainRule, - @CustomType.Parameter("target") String target) { - this.cmkArn = cmkArn; - this.copyTags = copyTags; - this.deprecateRule = deprecateRule; - this.encrypted = encrypted; - this.retainRule = retainRule; - this.target = target; - } + private String target; + private LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule() {} /** * @return The Amazon Resource Name (ARN) of the AWS KMS customer master key (CMK) to use for EBS encryption. If this argument is not specified, the default KMS key for the account is used. * @@ -111,7 +96,7 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cmkArn; private @Nullable Boolean copyTags; @@ -119,11 +104,7 @@ public static final class Builder { private Boolean encrypted; private @Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule retainRule; private String target; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule defaults) { Objects.requireNonNull(defaults); this.cmkArn = defaults.cmkArn; @@ -134,31 +115,45 @@ public Builder(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule defaults) this.target = defaults.target; } + @CustomType.Setter public Builder cmkArn(@Nullable String cmkArn) { this.cmkArn = cmkArn; return this; } + @CustomType.Setter public Builder copyTags(@Nullable Boolean copyTags) { this.copyTags = copyTags; return this; } + @CustomType.Setter public Builder deprecateRule(@Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule deprecateRule) { this.deprecateRule = deprecateRule; return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder retainRule(@Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule retainRule) { this.retainRule = retainRule; return this; } + @CustomType.Setter public Builder target(String target) { this.target = Objects.requireNonNull(target); return this; - } public LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule build() { - return new LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule(cmkArn, copyTags, deprecateRule, encrypted, retainRule, target); + } + public LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule build() { + final var o = new LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule(); + o.cmkArn = cmkArn; + o.copyTags = copyTags; + o.deprecateRule = deprecateRule; + o.encrypted = encrypted; + o.retainRule = retainRule; + o.target = target; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule.java b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule.java index 07fe87af41b..c329f6bc239 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule.java @@ -14,21 +14,14 @@ public final class LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprec * @return The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days. * */ - private final Integer interval; + private Integer interval; /** * @return The unit of time for time-based retention. Valid values: `DAYS`, `WEEKS`, `MONTHS`, or `YEARS`. * */ - private final String intervalUnit; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule( - @CustomType.Parameter("interval") Integer interval, - @CustomType.Parameter("intervalUnit") String intervalUnit) { - this.interval = interval; - this.intervalUnit = intervalUnit; - } + private String intervalUnit; + private LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule() {} /** * @return The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer interval; private String intervalUnit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule defaults) { Objects.requireNonNull(defaults); this.interval = defaults.interval; this.intervalUnit = defaults.intervalUnit; } + @CustomType.Setter public Builder interval(Integer interval) { this.interval = Objects.requireNonNull(interval); return this; } + @CustomType.Setter public Builder intervalUnit(String intervalUnit) { this.intervalUnit = Objects.requireNonNull(intervalUnit); return this; - } public LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule build() { - return new LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule(interval, intervalUnit); + } + public LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule build() { + final var o = new LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule(); + o.interval = interval; + o.intervalUnit = intervalUnit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule.java b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule.java index 76371a47fa1..df08428a4ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule.java @@ -14,21 +14,14 @@ public final class LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetain * @return The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days. * */ - private final Integer interval; + private Integer interval; /** * @return The unit of time for time-based retention. Valid values: `DAYS`, `WEEKS`, `MONTHS`, or `YEARS`. * */ - private final String intervalUnit; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule( - @CustomType.Parameter("interval") Integer interval, - @CustomType.Parameter("intervalUnit") String intervalUnit) { - this.interval = interval; - this.intervalUnit = intervalUnit; - } + private String intervalUnit; + private LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule() {} /** * @return The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer interval; private String intervalUnit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule defaults) { Objects.requireNonNull(defaults); this.interval = defaults.interval; this.intervalUnit = defaults.intervalUnit; } + @CustomType.Setter public Builder interval(Integer interval) { this.interval = Objects.requireNonNull(interval); return this; } + @CustomType.Setter public Builder intervalUnit(String intervalUnit) { this.intervalUnit = Objects.requireNonNull(intervalUnit); return this; - } public LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule build() { - return new LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule(interval, intervalUnit); + } + public LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule build() { + final var o = new LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule(); + o.interval = interval; + o.intervalUnit = intervalUnit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleDeprecateRule.java b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleDeprecateRule.java index ff77810cded..e2294bf8d24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleDeprecateRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleDeprecateRule.java @@ -16,28 +16,19 @@ public final class LifecyclePolicyPolicyDetailsScheduleDeprecateRule { * @return How many snapshots to keep. Must be an integer between `1` and `1000`. * */ - private final @Nullable Integer count; + private @Nullable Integer count; /** * @return The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days. * */ - private final @Nullable Integer interval; + private @Nullable Integer interval; /** * @return The unit of time for time-based retention. Valid values: `DAYS`, `WEEKS`, `MONTHS`, or `YEARS`. * */ - private final @Nullable String intervalUnit; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetailsScheduleDeprecateRule( - @CustomType.Parameter("count") @Nullable Integer count, - @CustomType.Parameter("interval") @Nullable Integer interval, - @CustomType.Parameter("intervalUnit") @Nullable String intervalUnit) { - this.count = count; - this.interval = interval; - this.intervalUnit = intervalUnit; - } + private @Nullable String intervalUnit; + private LifecyclePolicyPolicyDetailsScheduleDeprecateRule() {} /** * @return How many snapshots to keep. Must be an integer between `1` and `1000`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetailsScheduleDeprecateRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer count; private @Nullable Integer interval; private @Nullable String intervalUnit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetailsScheduleDeprecateRule defaults) { Objects.requireNonNull(defaults); this.count = defaults.count; @@ -84,19 +71,27 @@ public Builder(LifecyclePolicyPolicyDetailsScheduleDeprecateRule defaults) { this.intervalUnit = defaults.intervalUnit; } + @CustomType.Setter public Builder count(@Nullable Integer count) { this.count = count; return this; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; } + @CustomType.Setter public Builder intervalUnit(@Nullable String intervalUnit) { this.intervalUnit = intervalUnit; return this; - } public LifecyclePolicyPolicyDetailsScheduleDeprecateRule build() { - return new LifecyclePolicyPolicyDetailsScheduleDeprecateRule(count, interval, intervalUnit); + } + public LifecyclePolicyPolicyDetailsScheduleDeprecateRule build() { + final var o = new LifecyclePolicyPolicyDetailsScheduleDeprecateRule(); + o.count = count; + o.interval = interval; + o.intervalUnit = intervalUnit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleFastRestoreRule.java b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleFastRestoreRule.java index 14b84e868a3..761a178f365 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleFastRestoreRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleFastRestoreRule.java @@ -17,35 +17,24 @@ public final class LifecyclePolicyPolicyDetailsScheduleFastRestoreRule { * @return The Availability Zones in which to enable fast snapshot restore. * */ - private final List availabilityZones; + private List availabilityZones; /** * @return How many snapshots to keep. Must be an integer between `1` and `1000`. * */ - private final @Nullable Integer count; + private @Nullable Integer count; /** * @return The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days. * */ - private final @Nullable Integer interval; + private @Nullable Integer interval; /** * @return The unit of time for time-based retention. Valid values: `DAYS`, `WEEKS`, `MONTHS`, or `YEARS`. * */ - private final @Nullable String intervalUnit; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetailsScheduleFastRestoreRule( - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("count") @Nullable Integer count, - @CustomType.Parameter("interval") @Nullable Integer interval, - @CustomType.Parameter("intervalUnit") @Nullable String intervalUnit) { - this.availabilityZones = availabilityZones; - this.count = count; - this.interval = interval; - this.intervalUnit = intervalUnit; - } + private @Nullable String intervalUnit; + private LifecyclePolicyPolicyDetailsScheduleFastRestoreRule() {} /** * @return The Availability Zones in which to enable fast snapshot restore. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetailsScheduleFastRestoreRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List availabilityZones; private @Nullable Integer count; private @Nullable Integer interval; private @Nullable String intervalUnit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetailsScheduleFastRestoreRule defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -101,6 +86,7 @@ public Builder(LifecyclePolicyPolicyDetailsScheduleFastRestoreRule defaults) { this.intervalUnit = defaults.intervalUnit; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -108,19 +94,28 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder count(@Nullable Integer count) { this.count = count; return this; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; } + @CustomType.Setter public Builder intervalUnit(@Nullable String intervalUnit) { this.intervalUnit = intervalUnit; return this; - } public LifecyclePolicyPolicyDetailsScheduleFastRestoreRule build() { - return new LifecyclePolicyPolicyDetailsScheduleFastRestoreRule(availabilityZones, count, interval, intervalUnit); + } + public LifecyclePolicyPolicyDetailsScheduleFastRestoreRule build() { + final var o = new LifecyclePolicyPolicyDetailsScheduleFastRestoreRule(); + o.availabilityZones = availabilityZones; + o.count = count; + o.interval = interval; + o.intervalUnit = intervalUnit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleRetainRule.java b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleRetainRule.java index 223f266a1b4..d6dc3bc32ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleRetainRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleRetainRule.java @@ -16,28 +16,19 @@ public final class LifecyclePolicyPolicyDetailsScheduleRetainRule { * @return How many snapshots to keep. Must be an integer between `1` and `1000`. * */ - private final @Nullable Integer count; + private @Nullable Integer count; /** * @return The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days. * */ - private final @Nullable Integer interval; + private @Nullable Integer interval; /** * @return The unit of time for time-based retention. Valid values: `DAYS`, `WEEKS`, `MONTHS`, or `YEARS`. * */ - private final @Nullable String intervalUnit; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetailsScheduleRetainRule( - @CustomType.Parameter("count") @Nullable Integer count, - @CustomType.Parameter("interval") @Nullable Integer interval, - @CustomType.Parameter("intervalUnit") @Nullable String intervalUnit) { - this.count = count; - this.interval = interval; - this.intervalUnit = intervalUnit; - } + private @Nullable String intervalUnit; + private LifecyclePolicyPolicyDetailsScheduleRetainRule() {} /** * @return How many snapshots to keep. Must be an integer between `1` and `1000`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetailsScheduleRetainRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer count; private @Nullable Integer interval; private @Nullable String intervalUnit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetailsScheduleRetainRule defaults) { Objects.requireNonNull(defaults); this.count = defaults.count; @@ -84,19 +71,27 @@ public Builder(LifecyclePolicyPolicyDetailsScheduleRetainRule defaults) { this.intervalUnit = defaults.intervalUnit; } + @CustomType.Setter public Builder count(@Nullable Integer count) { this.count = count; return this; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; } + @CustomType.Setter public Builder intervalUnit(@Nullable String intervalUnit) { this.intervalUnit = intervalUnit; return this; - } public LifecyclePolicyPolicyDetailsScheduleRetainRule build() { - return new LifecyclePolicyPolicyDetailsScheduleRetainRule(count, interval, intervalUnit); + } + public LifecyclePolicyPolicyDetailsScheduleRetainRule build() { + final var o = new LifecyclePolicyPolicyDetailsScheduleRetainRule(); + o.count = count; + o.interval = interval; + o.intervalUnit = intervalUnit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleShareRule.java b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleShareRule.java index 627af237a36..c3befd870a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleShareRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dlm/outputs/LifecyclePolicyPolicyDetailsScheduleShareRule.java @@ -17,20 +17,11 @@ public final class LifecyclePolicyPolicyDetailsScheduleShareRule { * @return The IDs of the AWS accounts with which to share the snapshots. * */ - private final List targetAccounts; - private final @Nullable Integer unshareInterval; - private final @Nullable String unshareIntervalUnit; - - @CustomType.Constructor - private LifecyclePolicyPolicyDetailsScheduleShareRule( - @CustomType.Parameter("targetAccounts") List targetAccounts, - @CustomType.Parameter("unshareInterval") @Nullable Integer unshareInterval, - @CustomType.Parameter("unshareIntervalUnit") @Nullable String unshareIntervalUnit) { - this.targetAccounts = targetAccounts; - this.unshareInterval = unshareInterval; - this.unshareIntervalUnit = unshareIntervalUnit; - } + private List targetAccounts; + private @Nullable Integer unshareInterval; + private @Nullable String unshareIntervalUnit; + private LifecyclePolicyPolicyDetailsScheduleShareRule() {} /** * @return The IDs of the AWS accounts with which to share the snapshots. * @@ -52,16 +43,12 @@ public static Builder builder() { public static Builder builder(LifecyclePolicyPolicyDetailsScheduleShareRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List targetAccounts; private @Nullable Integer unshareInterval; private @Nullable String unshareIntervalUnit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LifecyclePolicyPolicyDetailsScheduleShareRule defaults) { Objects.requireNonNull(defaults); this.targetAccounts = defaults.targetAccounts; @@ -69,6 +56,7 @@ public Builder(LifecyclePolicyPolicyDetailsScheduleShareRule defaults) { this.unshareIntervalUnit = defaults.unshareIntervalUnit; } + @CustomType.Setter public Builder targetAccounts(List targetAccounts) { this.targetAccounts = Objects.requireNonNull(targetAccounts); return this; @@ -76,15 +64,22 @@ public Builder targetAccounts(List targetAccounts) { public Builder targetAccounts(String... targetAccounts) { return targetAccounts(List.of(targetAccounts)); } + @CustomType.Setter public Builder unshareInterval(@Nullable Integer unshareInterval) { this.unshareInterval = unshareInterval; return this; } + @CustomType.Setter public Builder unshareIntervalUnit(@Nullable String unshareIntervalUnit) { this.unshareIntervalUnit = unshareIntervalUnit; return this; - } public LifecyclePolicyPolicyDetailsScheduleShareRule build() { - return new LifecyclePolicyPolicyDetailsScheduleShareRule(targetAccounts, unshareInterval, unshareIntervalUnit); + } + public LifecyclePolicyPolicyDetailsScheduleShareRule build() { + final var o = new LifecyclePolicyPolicyDetailsScheduleShareRule(); + o.targetAccounts = targetAccounts; + o.unshareInterval = unshareInterval; + o.unshareIntervalUnit = unshareIntervalUnit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointElasticsearchSettings.java b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointElasticsearchSettings.java index c29fbbd9fcf..f9b7d4b3636 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointElasticsearchSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointElasticsearchSettings.java @@ -16,35 +16,24 @@ public final class EndpointElasticsearchSettings { * @return Endpoint for the OpenSearch cluster. * */ - private final String endpointUri; + private String endpointUri; /** * @return Maximum number of seconds for which DMS retries failed API requests to the OpenSearch cluster. Default is `300`. * */ - private final @Nullable Integer errorRetryDuration; + private @Nullable Integer errorRetryDuration; /** * @return Maximum percentage of records that can fail to be written before a full load operation stops. Default is `10`. * */ - private final @Nullable Integer fullLoadErrorPercentage; + private @Nullable Integer fullLoadErrorPercentage; /** * @return ARN of the IAM Role with permissions to read from or write to the S3 Bucket. * */ - private final String serviceAccessRoleArn; - - @CustomType.Constructor - private EndpointElasticsearchSettings( - @CustomType.Parameter("endpointUri") String endpointUri, - @CustomType.Parameter("errorRetryDuration") @Nullable Integer errorRetryDuration, - @CustomType.Parameter("fullLoadErrorPercentage") @Nullable Integer fullLoadErrorPercentage, - @CustomType.Parameter("serviceAccessRoleArn") String serviceAccessRoleArn) { - this.endpointUri = endpointUri; - this.errorRetryDuration = errorRetryDuration; - this.fullLoadErrorPercentage = fullLoadErrorPercentage; - this.serviceAccessRoleArn = serviceAccessRoleArn; - } + private String serviceAccessRoleArn; + private EndpointElasticsearchSettings() {} /** * @return Endpoint for the OpenSearch cluster. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(EndpointElasticsearchSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String endpointUri; private @Nullable Integer errorRetryDuration; private @Nullable Integer fullLoadErrorPercentage; private String serviceAccessRoleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointElasticsearchSettings defaults) { Objects.requireNonNull(defaults); this.endpointUri = defaults.endpointUri; @@ -100,23 +85,33 @@ public Builder(EndpointElasticsearchSettings defaults) { this.serviceAccessRoleArn = defaults.serviceAccessRoleArn; } + @CustomType.Setter public Builder endpointUri(String endpointUri) { this.endpointUri = Objects.requireNonNull(endpointUri); return this; } + @CustomType.Setter public Builder errorRetryDuration(@Nullable Integer errorRetryDuration) { this.errorRetryDuration = errorRetryDuration; return this; } + @CustomType.Setter public Builder fullLoadErrorPercentage(@Nullable Integer fullLoadErrorPercentage) { this.fullLoadErrorPercentage = fullLoadErrorPercentage; return this; } + @CustomType.Setter public Builder serviceAccessRoleArn(String serviceAccessRoleArn) { this.serviceAccessRoleArn = Objects.requireNonNull(serviceAccessRoleArn); return this; - } public EndpointElasticsearchSettings build() { - return new EndpointElasticsearchSettings(endpointUri, errorRetryDuration, fullLoadErrorPercentage, serviceAccessRoleArn); + } + public EndpointElasticsearchSettings build() { + final var o = new EndpointElasticsearchSettings(); + o.endpointUri = endpointUri; + o.errorRetryDuration = errorRetryDuration; + o.fullLoadErrorPercentage = fullLoadErrorPercentage; + o.serviceAccessRoleArn = serviceAccessRoleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointKafkaSettings.java b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointKafkaSettings.java index c716261f3e2..689019e8937 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointKafkaSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointKafkaSettings.java @@ -17,133 +17,94 @@ public final class EndpointKafkaSettings { * @return Kafka broker location. Specify in the form broker-hostname-or-ip:port. * */ - private final String broker; + private String broker; /** * @return Shows detailed control information for table definition, column definition, and table and column changes in the Kinesis message output. Default is `false`. * */ - private final @Nullable Boolean includeControlDetails; + private @Nullable Boolean includeControlDetails; /** * @return Include NULL and empty columns in the target. Default is `false`. * */ - private final @Nullable Boolean includeNullAndEmpty; + private @Nullable Boolean includeNullAndEmpty; /** * @return Shows the partition value within the Kinesis message output, unless the partition type is schema-table-type. Default is `false`. * */ - private final @Nullable Boolean includePartitionValue; + private @Nullable Boolean includePartitionValue; /** * @return Includes any data definition language (DDL) operations that change the table in the control data. Default is `false`. * */ - private final @Nullable Boolean includeTableAlterOperations; + private @Nullable Boolean includeTableAlterOperations; /** * @return Provides detailed transaction information from the source database. Default is `false`. * */ - private final @Nullable Boolean includeTransactionDetails; + private @Nullable Boolean includeTransactionDetails; /** * @return Output format for the records created. Default is `json`. Valid values are `json` and `json-unformatted` (a single line with no tab). * */ - private final @Nullable String messageFormat; + private @Nullable String messageFormat; /** * @return Maximum size in bytes for records created on the endpoint Default is `1,000,000`. * */ - private final @Nullable Integer messageMaxBytes; + private @Nullable Integer messageMaxBytes; /** * @return Set this optional parameter to true to avoid adding a '0x' prefix to raw data in hexadecimal format. For example, by default, AWS DMS adds a '0x' prefix to the LOB column type in hexadecimal format moving from an Oracle source to a Kafka target. Use the `no_hex_prefix` endpoint setting to enable migration of RAW data type columns without adding the `'0x'` prefix. * */ - private final @Nullable Boolean noHexPrefix; + private @Nullable Boolean noHexPrefix; /** * @return Prefixes schema and table names to partition values, when the partition type is primary-key-type. Default is `false`. * */ - private final @Nullable Boolean partitionIncludeSchemaTable; + private @Nullable Boolean partitionIncludeSchemaTable; /** * @return Secure password you created when you first set up your MSK cluster to validate a client identity and make an encrypted connection between server and client using SASL-SSL authentication. * */ - private final @Nullable String saslPassword; + private @Nullable String saslPassword; /** * @return Secure user name you created when you first set up your MSK cluster to validate a client identity and make an encrypted connection between server and client using SASL-SSL authentication. * */ - private final @Nullable String saslUsername; + private @Nullable String saslUsername; /** * @return Set secure connection to a Kafka target endpoint using Transport Layer Security (TLS). Options include `ssl-encryption`, `ssl-authentication`, and `sasl-ssl`. `sasl-ssl` requires `sasl_username` and `sasl_password`. * */ - private final @Nullable String securityProtocol; + private @Nullable String securityProtocol; /** * @return ARN for the private certificate authority (CA) cert that AWS DMS uses to securely connect to your Kafka target endpoint. * */ - private final @Nullable String sslCaCertificateArn; + private @Nullable String sslCaCertificateArn; /** * @return ARN of the client certificate used to securely connect to a Kafka target endpoint. * */ - private final @Nullable String sslClientCertificateArn; + private @Nullable String sslClientCertificateArn; /** * @return ARN for the client private key used to securely connect to a Kafka target endpoint. * */ - private final @Nullable String sslClientKeyArn; + private @Nullable String sslClientKeyArn; /** * @return Password for the client private key used to securely connect to a Kafka target endpoint. * */ - private final @Nullable String sslClientKeyPassword; + private @Nullable String sslClientKeyPassword; /** * @return Kafka topic for migration. Default is `kafka-default-topic`. * */ - private final @Nullable String topic; - - @CustomType.Constructor - private EndpointKafkaSettings( - @CustomType.Parameter("broker") String broker, - @CustomType.Parameter("includeControlDetails") @Nullable Boolean includeControlDetails, - @CustomType.Parameter("includeNullAndEmpty") @Nullable Boolean includeNullAndEmpty, - @CustomType.Parameter("includePartitionValue") @Nullable Boolean includePartitionValue, - @CustomType.Parameter("includeTableAlterOperations") @Nullable Boolean includeTableAlterOperations, - @CustomType.Parameter("includeTransactionDetails") @Nullable Boolean includeTransactionDetails, - @CustomType.Parameter("messageFormat") @Nullable String messageFormat, - @CustomType.Parameter("messageMaxBytes") @Nullable Integer messageMaxBytes, - @CustomType.Parameter("noHexPrefix") @Nullable Boolean noHexPrefix, - @CustomType.Parameter("partitionIncludeSchemaTable") @Nullable Boolean partitionIncludeSchemaTable, - @CustomType.Parameter("saslPassword") @Nullable String saslPassword, - @CustomType.Parameter("saslUsername") @Nullable String saslUsername, - @CustomType.Parameter("securityProtocol") @Nullable String securityProtocol, - @CustomType.Parameter("sslCaCertificateArn") @Nullable String sslCaCertificateArn, - @CustomType.Parameter("sslClientCertificateArn") @Nullable String sslClientCertificateArn, - @CustomType.Parameter("sslClientKeyArn") @Nullable String sslClientKeyArn, - @CustomType.Parameter("sslClientKeyPassword") @Nullable String sslClientKeyPassword, - @CustomType.Parameter("topic") @Nullable String topic) { - this.broker = broker; - this.includeControlDetails = includeControlDetails; - this.includeNullAndEmpty = includeNullAndEmpty; - this.includePartitionValue = includePartitionValue; - this.includeTableAlterOperations = includeTableAlterOperations; - this.includeTransactionDetails = includeTransactionDetails; - this.messageFormat = messageFormat; - this.messageMaxBytes = messageMaxBytes; - this.noHexPrefix = noHexPrefix; - this.partitionIncludeSchemaTable = partitionIncludeSchemaTable; - this.saslPassword = saslPassword; - this.saslUsername = saslUsername; - this.securityProtocol = securityProtocol; - this.sslCaCertificateArn = sslCaCertificateArn; - this.sslClientCertificateArn = sslClientCertificateArn; - this.sslClientKeyArn = sslClientKeyArn; - this.sslClientKeyPassword = sslClientKeyPassword; - this.topic = topic; - } + private @Nullable String topic; + private EndpointKafkaSettings() {} /** * @return Kafka broker location. Specify in the form broker-hostname-or-ip:port. * @@ -278,7 +239,7 @@ public static Builder builder() { public static Builder builder(EndpointKafkaSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String broker; private @Nullable Boolean includeControlDetails; @@ -298,11 +259,7 @@ public static final class Builder { private @Nullable String sslClientKeyArn; private @Nullable String sslClientKeyPassword; private @Nullable String topic; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointKafkaSettings defaults) { Objects.requireNonNull(defaults); this.broker = defaults.broker; @@ -325,79 +282,117 @@ public Builder(EndpointKafkaSettings defaults) { this.topic = defaults.topic; } + @CustomType.Setter public Builder broker(String broker) { this.broker = Objects.requireNonNull(broker); return this; } + @CustomType.Setter public Builder includeControlDetails(@Nullable Boolean includeControlDetails) { this.includeControlDetails = includeControlDetails; return this; } + @CustomType.Setter public Builder includeNullAndEmpty(@Nullable Boolean includeNullAndEmpty) { this.includeNullAndEmpty = includeNullAndEmpty; return this; } + @CustomType.Setter public Builder includePartitionValue(@Nullable Boolean includePartitionValue) { this.includePartitionValue = includePartitionValue; return this; } + @CustomType.Setter public Builder includeTableAlterOperations(@Nullable Boolean includeTableAlterOperations) { this.includeTableAlterOperations = includeTableAlterOperations; return this; } + @CustomType.Setter public Builder includeTransactionDetails(@Nullable Boolean includeTransactionDetails) { this.includeTransactionDetails = includeTransactionDetails; return this; } + @CustomType.Setter public Builder messageFormat(@Nullable String messageFormat) { this.messageFormat = messageFormat; return this; } + @CustomType.Setter public Builder messageMaxBytes(@Nullable Integer messageMaxBytes) { this.messageMaxBytes = messageMaxBytes; return this; } + @CustomType.Setter public Builder noHexPrefix(@Nullable Boolean noHexPrefix) { this.noHexPrefix = noHexPrefix; return this; } + @CustomType.Setter public Builder partitionIncludeSchemaTable(@Nullable Boolean partitionIncludeSchemaTable) { this.partitionIncludeSchemaTable = partitionIncludeSchemaTable; return this; } + @CustomType.Setter public Builder saslPassword(@Nullable String saslPassword) { this.saslPassword = saslPassword; return this; } + @CustomType.Setter public Builder saslUsername(@Nullable String saslUsername) { this.saslUsername = saslUsername; return this; } + @CustomType.Setter public Builder securityProtocol(@Nullable String securityProtocol) { this.securityProtocol = securityProtocol; return this; } + @CustomType.Setter public Builder sslCaCertificateArn(@Nullable String sslCaCertificateArn) { this.sslCaCertificateArn = sslCaCertificateArn; return this; } + @CustomType.Setter public Builder sslClientCertificateArn(@Nullable String sslClientCertificateArn) { this.sslClientCertificateArn = sslClientCertificateArn; return this; } + @CustomType.Setter public Builder sslClientKeyArn(@Nullable String sslClientKeyArn) { this.sslClientKeyArn = sslClientKeyArn; return this; } + @CustomType.Setter public Builder sslClientKeyPassword(@Nullable String sslClientKeyPassword) { this.sslClientKeyPassword = sslClientKeyPassword; return this; } + @CustomType.Setter public Builder topic(@Nullable String topic) { this.topic = topic; return this; - } public EndpointKafkaSettings build() { - return new EndpointKafkaSettings(broker, includeControlDetails, includeNullAndEmpty, includePartitionValue, includeTableAlterOperations, includeTransactionDetails, messageFormat, messageMaxBytes, noHexPrefix, partitionIncludeSchemaTable, saslPassword, saslUsername, securityProtocol, sslCaCertificateArn, sslClientCertificateArn, sslClientKeyArn, sslClientKeyPassword, topic); + } + public EndpointKafkaSettings build() { + final var o = new EndpointKafkaSettings(); + o.broker = broker; + o.includeControlDetails = includeControlDetails; + o.includeNullAndEmpty = includeNullAndEmpty; + o.includePartitionValue = includePartitionValue; + o.includeTableAlterOperations = includeTableAlterOperations; + o.includeTransactionDetails = includeTransactionDetails; + o.messageFormat = messageFormat; + o.messageMaxBytes = messageMaxBytes; + o.noHexPrefix = noHexPrefix; + o.partitionIncludeSchemaTable = partitionIncludeSchemaTable; + o.saslPassword = saslPassword; + o.saslUsername = saslUsername; + o.securityProtocol = securityProtocol; + o.sslCaCertificateArn = sslCaCertificateArn; + o.sslClientCertificateArn = sslClientCertificateArn; + o.sslClientKeyArn = sslClientKeyArn; + o.sslClientKeyPassword = sslClientKeyPassword; + o.topic = topic; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointKinesisSettings.java b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointKinesisSettings.java index 40d2745e927..bc5106bc11f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointKinesisSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointKinesisSettings.java @@ -16,70 +16,49 @@ public final class EndpointKinesisSettings { * @return Shows detailed control information for table definition, column definition, and table and column changes in the Kinesis message output. Default is `false`. * */ - private final @Nullable Boolean includeControlDetails; + private @Nullable Boolean includeControlDetails; /** * @return Include NULL and empty columns in the target. Default is `false`. * */ - private final @Nullable Boolean includeNullAndEmpty; + private @Nullable Boolean includeNullAndEmpty; /** * @return Shows the partition value within the Kinesis message output, unless the partition type is schema-table-type. Default is `false`. * */ - private final @Nullable Boolean includePartitionValue; + private @Nullable Boolean includePartitionValue; /** * @return Includes any data definition language (DDL) operations that change the table in the control data. Default is `false`. * */ - private final @Nullable Boolean includeTableAlterOperations; + private @Nullable Boolean includeTableAlterOperations; /** * @return Provides detailed transaction information from the source database. Default is `false`. * */ - private final @Nullable Boolean includeTransactionDetails; + private @Nullable Boolean includeTransactionDetails; /** * @return Output format for the records created. Default is `json`. Valid values are `json` and `json-unformatted` (a single line with no tab). * */ - private final @Nullable String messageFormat; + private @Nullable String messageFormat; /** * @return Prefixes schema and table names to partition values, when the partition type is primary-key-type. Default is `false`. * */ - private final @Nullable Boolean partitionIncludeSchemaTable; + private @Nullable Boolean partitionIncludeSchemaTable; /** * @return ARN of the IAM Role with permissions to read from or write to the S3 Bucket. * */ - private final @Nullable String serviceAccessRoleArn; + private @Nullable String serviceAccessRoleArn; /** * @return ARN of the Kinesis data stream. * */ - private final @Nullable String streamArn; - - @CustomType.Constructor - private EndpointKinesisSettings( - @CustomType.Parameter("includeControlDetails") @Nullable Boolean includeControlDetails, - @CustomType.Parameter("includeNullAndEmpty") @Nullable Boolean includeNullAndEmpty, - @CustomType.Parameter("includePartitionValue") @Nullable Boolean includePartitionValue, - @CustomType.Parameter("includeTableAlterOperations") @Nullable Boolean includeTableAlterOperations, - @CustomType.Parameter("includeTransactionDetails") @Nullable Boolean includeTransactionDetails, - @CustomType.Parameter("messageFormat") @Nullable String messageFormat, - @CustomType.Parameter("partitionIncludeSchemaTable") @Nullable Boolean partitionIncludeSchemaTable, - @CustomType.Parameter("serviceAccessRoleArn") @Nullable String serviceAccessRoleArn, - @CustomType.Parameter("streamArn") @Nullable String streamArn) { - this.includeControlDetails = includeControlDetails; - this.includeNullAndEmpty = includeNullAndEmpty; - this.includePartitionValue = includePartitionValue; - this.includeTableAlterOperations = includeTableAlterOperations; - this.includeTransactionDetails = includeTransactionDetails; - this.messageFormat = messageFormat; - this.partitionIncludeSchemaTable = partitionIncludeSchemaTable; - this.serviceAccessRoleArn = serviceAccessRoleArn; - this.streamArn = streamArn; - } + private @Nullable String streamArn; + private EndpointKinesisSettings() {} /** * @return Shows detailed control information for table definition, column definition, and table and column changes in the Kinesis message output. Default is `false`. * @@ -151,7 +130,7 @@ public static Builder builder() { public static Builder builder(EndpointKinesisSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean includeControlDetails; private @Nullable Boolean includeNullAndEmpty; @@ -162,11 +141,7 @@ public static final class Builder { private @Nullable Boolean partitionIncludeSchemaTable; private @Nullable String serviceAccessRoleArn; private @Nullable String streamArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointKinesisSettings defaults) { Objects.requireNonNull(defaults); this.includeControlDetails = defaults.includeControlDetails; @@ -180,43 +155,63 @@ public Builder(EndpointKinesisSettings defaults) { this.streamArn = defaults.streamArn; } + @CustomType.Setter public Builder includeControlDetails(@Nullable Boolean includeControlDetails) { this.includeControlDetails = includeControlDetails; return this; } + @CustomType.Setter public Builder includeNullAndEmpty(@Nullable Boolean includeNullAndEmpty) { this.includeNullAndEmpty = includeNullAndEmpty; return this; } + @CustomType.Setter public Builder includePartitionValue(@Nullable Boolean includePartitionValue) { this.includePartitionValue = includePartitionValue; return this; } + @CustomType.Setter public Builder includeTableAlterOperations(@Nullable Boolean includeTableAlterOperations) { this.includeTableAlterOperations = includeTableAlterOperations; return this; } + @CustomType.Setter public Builder includeTransactionDetails(@Nullable Boolean includeTransactionDetails) { this.includeTransactionDetails = includeTransactionDetails; return this; } + @CustomType.Setter public Builder messageFormat(@Nullable String messageFormat) { this.messageFormat = messageFormat; return this; } + @CustomType.Setter public Builder partitionIncludeSchemaTable(@Nullable Boolean partitionIncludeSchemaTable) { this.partitionIncludeSchemaTable = partitionIncludeSchemaTable; return this; } + @CustomType.Setter public Builder serviceAccessRoleArn(@Nullable String serviceAccessRoleArn) { this.serviceAccessRoleArn = serviceAccessRoleArn; return this; } + @CustomType.Setter public Builder streamArn(@Nullable String streamArn) { this.streamArn = streamArn; return this; - } public EndpointKinesisSettings build() { - return new EndpointKinesisSettings(includeControlDetails, includeNullAndEmpty, includePartitionValue, includeTableAlterOperations, includeTransactionDetails, messageFormat, partitionIncludeSchemaTable, serviceAccessRoleArn, streamArn); + } + public EndpointKinesisSettings build() { + final var o = new EndpointKinesisSettings(); + o.includeControlDetails = includeControlDetails; + o.includeNullAndEmpty = includeNullAndEmpty; + o.includePartitionValue = includePartitionValue; + o.includeTableAlterOperations = includeTableAlterOperations; + o.includeTransactionDetails = includeTransactionDetails; + o.messageFormat = messageFormat; + o.partitionIncludeSchemaTable = partitionIncludeSchemaTable; + o.serviceAccessRoleArn = serviceAccessRoleArn; + o.streamArn = streamArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointMongodbSettings.java b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointMongodbSettings.java index 1f11f4d7adc..39d15c1a2c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointMongodbSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointMongodbSettings.java @@ -15,49 +15,34 @@ public final class EndpointMongodbSettings { * @return Authentication mechanism to access the MongoDB source endpoint. Default is `default`. * */ - private final @Nullable String authMechanism; + private @Nullable String authMechanism; /** * @return Authentication database name. Not used when `auth_type` is `no`. Default is `admin`. * */ - private final @Nullable String authSource; + private @Nullable String authSource; /** * @return Authentication type to access the MongoDB source endpoint. Default is `password`. * */ - private final @Nullable String authType; + private @Nullable String authType; /** * @return Number of documents to preview to determine the document organization. Use this setting when `nesting_level` is set to `one`. Default is `1000`. * */ - private final @Nullable String docsToInvestigate; + private @Nullable String docsToInvestigate; /** * @return Document ID. Use this setting when `nesting_level` is set to `none`. Default is `false`. * */ - private final @Nullable String extractDocId; + private @Nullable String extractDocId; /** * @return Specifies either document or table mode. Default is `none`. Valid values are `one` (table mode) and `none` (document mode). * */ - private final @Nullable String nestingLevel; - - @CustomType.Constructor - private EndpointMongodbSettings( - @CustomType.Parameter("authMechanism") @Nullable String authMechanism, - @CustomType.Parameter("authSource") @Nullable String authSource, - @CustomType.Parameter("authType") @Nullable String authType, - @CustomType.Parameter("docsToInvestigate") @Nullable String docsToInvestigate, - @CustomType.Parameter("extractDocId") @Nullable String extractDocId, - @CustomType.Parameter("nestingLevel") @Nullable String nestingLevel) { - this.authMechanism = authMechanism; - this.authSource = authSource; - this.authType = authType; - this.docsToInvestigate = docsToInvestigate; - this.extractDocId = extractDocId; - this.nestingLevel = nestingLevel; - } + private @Nullable String nestingLevel; + private EndpointMongodbSettings() {} /** * @return Authentication mechanism to access the MongoDB source endpoint. Default is `default`. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(EndpointMongodbSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String authMechanism; private @Nullable String authSource; @@ -116,11 +101,7 @@ public static final class Builder { private @Nullable String docsToInvestigate; private @Nullable String extractDocId; private @Nullable String nestingLevel; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointMongodbSettings defaults) { Objects.requireNonNull(defaults); this.authMechanism = defaults.authMechanism; @@ -131,31 +112,45 @@ public Builder(EndpointMongodbSettings defaults) { this.nestingLevel = defaults.nestingLevel; } + @CustomType.Setter public Builder authMechanism(@Nullable String authMechanism) { this.authMechanism = authMechanism; return this; } + @CustomType.Setter public Builder authSource(@Nullable String authSource) { this.authSource = authSource; return this; } + @CustomType.Setter public Builder authType(@Nullable String authType) { this.authType = authType; return this; } + @CustomType.Setter public Builder docsToInvestigate(@Nullable String docsToInvestigate) { this.docsToInvestigate = docsToInvestigate; return this; } + @CustomType.Setter public Builder extractDocId(@Nullable String extractDocId) { this.extractDocId = extractDocId; return this; } + @CustomType.Setter public Builder nestingLevel(@Nullable String nestingLevel) { this.nestingLevel = nestingLevel; return this; - } public EndpointMongodbSettings build() { - return new EndpointMongodbSettings(authMechanism, authSource, authType, docsToInvestigate, extractDocId, nestingLevel); + } + public EndpointMongodbSettings build() { + final var o = new EndpointMongodbSettings(); + o.authMechanism = authMechanism; + o.authSource = authSource; + o.authType = authType; + o.docsToInvestigate = docsToInvestigate; + o.extractDocId = extractDocId; + o.nestingLevel = nestingLevel; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointRedshiftSettings.java b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointRedshiftSettings.java index a9bfebb57ed..0146fc3d06d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointRedshiftSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointRedshiftSettings.java @@ -15,42 +15,29 @@ public final class EndpointRedshiftSettings { * @return S3 object prefix. * */ - private final @Nullable String bucketFolder; + private @Nullable String bucketFolder; /** * @return S3 bucket name. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return Server-side encryption mode that you want to encrypt your .csv or .parquet object files copied to S3. Valid values are `SSE_S3` and `SSE_KMS`. Default is `SSE_S3`. * */ - private final @Nullable String encryptionMode; + private @Nullable String encryptionMode; /** * @return If you set encryptionMode to `SSE_KMS`, set this parameter to the ARN for the AWS KMS key. * */ - private final @Nullable String serverSideEncryptionKmsKeyId; + private @Nullable String serverSideEncryptionKmsKeyId; /** * @return ARN of the IAM Role with permissions to read from or write to the S3 Bucket. * */ - private final @Nullable String serviceAccessRoleArn; - - @CustomType.Constructor - private EndpointRedshiftSettings( - @CustomType.Parameter("bucketFolder") @Nullable String bucketFolder, - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("encryptionMode") @Nullable String encryptionMode, - @CustomType.Parameter("serverSideEncryptionKmsKeyId") @Nullable String serverSideEncryptionKmsKeyId, - @CustomType.Parameter("serviceAccessRoleArn") @Nullable String serviceAccessRoleArn) { - this.bucketFolder = bucketFolder; - this.bucketName = bucketName; - this.encryptionMode = encryptionMode; - this.serverSideEncryptionKmsKeyId = serverSideEncryptionKmsKeyId; - this.serviceAccessRoleArn = serviceAccessRoleArn; - } + private @Nullable String serviceAccessRoleArn; + private EndpointRedshiftSettings() {} /** * @return S3 object prefix. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(EndpointRedshiftSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketFolder; private @Nullable String bucketName; private @Nullable String encryptionMode; private @Nullable String serverSideEncryptionKmsKeyId; private @Nullable String serviceAccessRoleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointRedshiftSettings defaults) { Objects.requireNonNull(defaults); this.bucketFolder = defaults.bucketFolder; @@ -115,27 +98,39 @@ public Builder(EndpointRedshiftSettings defaults) { this.serviceAccessRoleArn = defaults.serviceAccessRoleArn; } + @CustomType.Setter public Builder bucketFolder(@Nullable String bucketFolder) { this.bucketFolder = bucketFolder; return this; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder encryptionMode(@Nullable String encryptionMode) { this.encryptionMode = encryptionMode; return this; } + @CustomType.Setter public Builder serverSideEncryptionKmsKeyId(@Nullable String serverSideEncryptionKmsKeyId) { this.serverSideEncryptionKmsKeyId = serverSideEncryptionKmsKeyId; return this; } + @CustomType.Setter public Builder serviceAccessRoleArn(@Nullable String serviceAccessRoleArn) { this.serviceAccessRoleArn = serviceAccessRoleArn; return this; - } public EndpointRedshiftSettings build() { - return new EndpointRedshiftSettings(bucketFolder, bucketName, encryptionMode, serverSideEncryptionKmsKeyId, serviceAccessRoleArn); + } + public EndpointRedshiftSettings build() { + final var o = new EndpointRedshiftSettings(); + o.bucketFolder = bucketFolder; + o.bucketName = bucketName; + o.encryptionMode = encryptionMode; + o.serverSideEncryptionKmsKeyId = serverSideEncryptionKmsKeyId; + o.serviceAccessRoleArn = serviceAccessRoleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointS3Settings.java b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointS3Settings.java index ba6340aacb6..d020044982d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointS3Settings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dms/outputs/EndpointS3Settings.java @@ -17,259 +17,184 @@ public final class EndpointS3Settings { * @return Whether to add column name information to the .csv output file. Default is `false`. * */ - private final @Nullable Boolean addColumnName; + private @Nullable Boolean addColumnName; /** * @return S3 object prefix. * */ - private final @Nullable String bucketFolder; + private @Nullable String bucketFolder; /** * @return S3 bucket name. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return Predefined (canned) access control list for objects created in an S3 bucket. Valid values include `NONE`, `PRIVATE`, `PUBLIC_READ`, `PUBLIC_READ_WRITE`, `AUTHENTICATED_READ`, `AWS_EXEC_READ`, `BUCKET_OWNER_READ`, and `BUCKET_OWNER_FULL_CONTROL`. Default is `NONE`. * */ - private final @Nullable String cannedAclForObjects; + private @Nullable String cannedAclForObjects; /** * @return Whether to write insert and update operations to .csv or .parquet output files. Default is `false`. * */ - private final @Nullable Boolean cdcInsertsAndUpdates; + private @Nullable Boolean cdcInsertsAndUpdates; /** * @return Whether to write insert operations to .csv or .parquet output files. Default is `false`. * */ - private final @Nullable Boolean cdcInsertsOnly; + private @Nullable Boolean cdcInsertsOnly; /** * @return Maximum length of the interval, defined in seconds, after which to output a file to Amazon S3. Default is `60`. * */ - private final @Nullable Integer cdcMaxBatchInterval; + private @Nullable Integer cdcMaxBatchInterval; /** * @return Minimum file size, defined in megabytes, to reach for a file output. Default is `32`. * */ - private final @Nullable Integer cdcMinFileSize; + private @Nullable Integer cdcMinFileSize; /** * @return Folder path of CDC files. For an S3 source, this setting is required if a task captures change data; otherwise, it's optional. If `cdc_path` is set, AWS DMS reads CDC files from this path and replicates the data changes to the target endpoint. Supported in AWS DMS versions 3.4.2 and later. * */ - private final @Nullable String cdcPath; + private @Nullable String cdcPath; /** * @return Set to compress target files. Default is `NONE`. Valid values are `GZIP` and `NONE`. * */ - private final @Nullable String compressionType; + private @Nullable String compressionType; /** * @return Delimiter used to separate columns in the source files. Default is `,`. * */ - private final @Nullable String csvDelimiter; + private @Nullable String csvDelimiter; /** * @return String to use for all columns not included in the supplemental log. * */ - private final @Nullable String csvNoSupValue; + private @Nullable String csvNoSupValue; /** * @return String to as null when writing to the target. * */ - private final @Nullable String csvNullValue; + private @Nullable String csvNullValue; /** * @return Delimiter used to separate rows in the source files. Default is `\n`. * */ - private final @Nullable String csvRowDelimiter; + private @Nullable String csvRowDelimiter; /** * @return Output format for the files that AWS DMS uses to create S3 objects. Valid values are `csv` and `parquet`. Default is `csv`. * */ - private final @Nullable String dataFormat; + private @Nullable String dataFormat; /** * @return Size of one data page in bytes. Default is `1048576` (1 MiB). * */ - private final @Nullable Integer dataPageSize; + private @Nullable Integer dataPageSize; /** * @return Date separating delimiter to use during folder partitioning. Valid values are `SLASH`, `UNDERSCORE`, `DASH`, and `NONE`. Default is `SLASH`. * */ - private final @Nullable String datePartitionDelimiter; + private @Nullable String datePartitionDelimiter; /** * @return Partition S3 bucket folders based on transaction commit dates. Default is `false`. * */ - private final @Nullable Boolean datePartitionEnabled; + private @Nullable Boolean datePartitionEnabled; /** * @return Date format to use during folder partitioning. Use this parameter when `date_partition_enabled` is set to true. Valid values are `YYYYMMDD`, `YYYYMMDDHH`, `YYYYMM`, `MMYYYYDD`, and `DDMMYYYY`. Default is `YYYYMMDD`. * */ - private final @Nullable String datePartitionSequence; + private @Nullable String datePartitionSequence; /** * @return Maximum size in bytes of an encoded dictionary page of a column. Default is `1048576` (1 MiB). * */ - private final @Nullable Integer dictPageSizeLimit; + private @Nullable Integer dictPageSizeLimit; /** * @return Whether to enable statistics for Parquet pages and row groups. Default is `true`. * */ - private final @Nullable Boolean enableStatistics; + private @Nullable Boolean enableStatistics; /** * @return Type of encoding to use. Value values are `rle_dictionary`, `plain`, and `plain_dictionary`. Default is `rle_dictionary`. * */ - private final @Nullable String encodingType; + private @Nullable String encodingType; /** * @return Server-side encryption mode that you want to encrypt your .csv or .parquet object files copied to S3. Valid values are `SSE_S3` and `SSE_KMS`. Default is `SSE_S3`. * */ - private final @Nullable String encryptionMode; + private @Nullable String encryptionMode; /** * @return JSON document that describes how AWS DMS should interpret the data. * */ - private final @Nullable String externalTableDefinition; + private @Nullable String externalTableDefinition; /** * @return When this value is set to `1`, DMS ignores the first row header in a .csv file. Default is `0`. * */ - private final @Nullable Integer ignoreHeadersRow; + private @Nullable Integer ignoreHeadersRow; /** * @return Whether to enable a full load to write INSERT operations to the .csv output files only to indicate how the rows were added to the source database. Default is `false`. * */ - private final @Nullable Boolean includeOpForFullLoad; + private @Nullable Boolean includeOpForFullLoad; /** * @return Maximum size (in KB) of any .csv file to be created while migrating to an S3 target during full load. Valid values are from `1` to `1048576`. Default is `1048576` (1 GB). * */ - private final @Nullable Integer maxFileSize; + private @Nullable Integer maxFileSize; /** * @return - Specifies the precision of any TIMESTAMP column values written to an S3 object file in .parquet format. Default is `false`. * */ - private final @Nullable Boolean parquetTimestampInMillisecond; + private @Nullable Boolean parquetTimestampInMillisecond; /** * @return Version of the .parquet file format. Default is `parquet-1-0`. Valid values are `parquet-1-0` and `parquet-2-0`. * */ - private final @Nullable String parquetVersion; + private @Nullable String parquetVersion; /** * @return Whether DMS saves the transaction order for a CDC load on the S3 target specified by `cdc_path`. Default is `false`. * */ - private final @Nullable Boolean preserveTransactions; + private @Nullable Boolean preserveTransactions; /** * @return For an S3 source, whether each leading double quotation mark has to be followed by an ending double quotation mark. Default is `true`. * */ - private final @Nullable Boolean rfc4180; + private @Nullable Boolean rfc4180; /** * @return Number of rows in a row group. Default is `10000`. * */ - private final @Nullable Integer rowGroupLength; + private @Nullable Integer rowGroupLength; /** * @return If you set encryptionMode to `SSE_KMS`, set this parameter to the ARN for the AWS KMS key. * */ - private final @Nullable String serverSideEncryptionKmsKeyId; + private @Nullable String serverSideEncryptionKmsKeyId; /** * @return ARN of the IAM Role with permissions to read from or write to the S3 Bucket. * */ - private final @Nullable String serviceAccessRoleArn; + private @Nullable String serviceAccessRoleArn; /** * @return Column to add with timestamp information to the endpoint data for an Amazon S3 target. * */ - private final @Nullable String timestampColumnName; + private @Nullable String timestampColumnName; /** * @return Whether to use `csv_no_sup_value` for columns not included in the supplemental log. * */ - private final @Nullable Boolean useCsvNoSupValue; - - @CustomType.Constructor - private EndpointS3Settings( - @CustomType.Parameter("addColumnName") @Nullable Boolean addColumnName, - @CustomType.Parameter("bucketFolder") @Nullable String bucketFolder, - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("cannedAclForObjects") @Nullable String cannedAclForObjects, - @CustomType.Parameter("cdcInsertsAndUpdates") @Nullable Boolean cdcInsertsAndUpdates, - @CustomType.Parameter("cdcInsertsOnly") @Nullable Boolean cdcInsertsOnly, - @CustomType.Parameter("cdcMaxBatchInterval") @Nullable Integer cdcMaxBatchInterval, - @CustomType.Parameter("cdcMinFileSize") @Nullable Integer cdcMinFileSize, - @CustomType.Parameter("cdcPath") @Nullable String cdcPath, - @CustomType.Parameter("compressionType") @Nullable String compressionType, - @CustomType.Parameter("csvDelimiter") @Nullable String csvDelimiter, - @CustomType.Parameter("csvNoSupValue") @Nullable String csvNoSupValue, - @CustomType.Parameter("csvNullValue") @Nullable String csvNullValue, - @CustomType.Parameter("csvRowDelimiter") @Nullable String csvRowDelimiter, - @CustomType.Parameter("dataFormat") @Nullable String dataFormat, - @CustomType.Parameter("dataPageSize") @Nullable Integer dataPageSize, - @CustomType.Parameter("datePartitionDelimiter") @Nullable String datePartitionDelimiter, - @CustomType.Parameter("datePartitionEnabled") @Nullable Boolean datePartitionEnabled, - @CustomType.Parameter("datePartitionSequence") @Nullable String datePartitionSequence, - @CustomType.Parameter("dictPageSizeLimit") @Nullable Integer dictPageSizeLimit, - @CustomType.Parameter("enableStatistics") @Nullable Boolean enableStatistics, - @CustomType.Parameter("encodingType") @Nullable String encodingType, - @CustomType.Parameter("encryptionMode") @Nullable String encryptionMode, - @CustomType.Parameter("externalTableDefinition") @Nullable String externalTableDefinition, - @CustomType.Parameter("ignoreHeadersRow") @Nullable Integer ignoreHeadersRow, - @CustomType.Parameter("includeOpForFullLoad") @Nullable Boolean includeOpForFullLoad, - @CustomType.Parameter("maxFileSize") @Nullable Integer maxFileSize, - @CustomType.Parameter("parquetTimestampInMillisecond") @Nullable Boolean parquetTimestampInMillisecond, - @CustomType.Parameter("parquetVersion") @Nullable String parquetVersion, - @CustomType.Parameter("preserveTransactions") @Nullable Boolean preserveTransactions, - @CustomType.Parameter("rfc4180") @Nullable Boolean rfc4180, - @CustomType.Parameter("rowGroupLength") @Nullable Integer rowGroupLength, - @CustomType.Parameter("serverSideEncryptionKmsKeyId") @Nullable String serverSideEncryptionKmsKeyId, - @CustomType.Parameter("serviceAccessRoleArn") @Nullable String serviceAccessRoleArn, - @CustomType.Parameter("timestampColumnName") @Nullable String timestampColumnName, - @CustomType.Parameter("useCsvNoSupValue") @Nullable Boolean useCsvNoSupValue) { - this.addColumnName = addColumnName; - this.bucketFolder = bucketFolder; - this.bucketName = bucketName; - this.cannedAclForObjects = cannedAclForObjects; - this.cdcInsertsAndUpdates = cdcInsertsAndUpdates; - this.cdcInsertsOnly = cdcInsertsOnly; - this.cdcMaxBatchInterval = cdcMaxBatchInterval; - this.cdcMinFileSize = cdcMinFileSize; - this.cdcPath = cdcPath; - this.compressionType = compressionType; - this.csvDelimiter = csvDelimiter; - this.csvNoSupValue = csvNoSupValue; - this.csvNullValue = csvNullValue; - this.csvRowDelimiter = csvRowDelimiter; - this.dataFormat = dataFormat; - this.dataPageSize = dataPageSize; - this.datePartitionDelimiter = datePartitionDelimiter; - this.datePartitionEnabled = datePartitionEnabled; - this.datePartitionSequence = datePartitionSequence; - this.dictPageSizeLimit = dictPageSizeLimit; - this.enableStatistics = enableStatistics; - this.encodingType = encodingType; - this.encryptionMode = encryptionMode; - this.externalTableDefinition = externalTableDefinition; - this.ignoreHeadersRow = ignoreHeadersRow; - this.includeOpForFullLoad = includeOpForFullLoad; - this.maxFileSize = maxFileSize; - this.parquetTimestampInMillisecond = parquetTimestampInMillisecond; - this.parquetVersion = parquetVersion; - this.preserveTransactions = preserveTransactions; - this.rfc4180 = rfc4180; - this.rowGroupLength = rowGroupLength; - this.serverSideEncryptionKmsKeyId = serverSideEncryptionKmsKeyId; - this.serviceAccessRoleArn = serviceAccessRoleArn; - this.timestampColumnName = timestampColumnName; - this.useCsvNoSupValue = useCsvNoSupValue; - } + private @Nullable Boolean useCsvNoSupValue; + private EndpointS3Settings() {} /** * @return Whether to add column name information to the .csv output file. Default is `false`. * @@ -530,7 +455,7 @@ public static Builder builder() { public static Builder builder(EndpointS3Settings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean addColumnName; private @Nullable String bucketFolder; @@ -568,11 +493,7 @@ public static final class Builder { private @Nullable String serviceAccessRoleArn; private @Nullable String timestampColumnName; private @Nullable Boolean useCsvNoSupValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointS3Settings defaults) { Objects.requireNonNull(defaults); this.addColumnName = defaults.addColumnName; @@ -613,151 +534,225 @@ public Builder(EndpointS3Settings defaults) { this.useCsvNoSupValue = defaults.useCsvNoSupValue; } + @CustomType.Setter public Builder addColumnName(@Nullable Boolean addColumnName) { this.addColumnName = addColumnName; return this; } + @CustomType.Setter public Builder bucketFolder(@Nullable String bucketFolder) { this.bucketFolder = bucketFolder; return this; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder cannedAclForObjects(@Nullable String cannedAclForObjects) { this.cannedAclForObjects = cannedAclForObjects; return this; } + @CustomType.Setter public Builder cdcInsertsAndUpdates(@Nullable Boolean cdcInsertsAndUpdates) { this.cdcInsertsAndUpdates = cdcInsertsAndUpdates; return this; } + @CustomType.Setter public Builder cdcInsertsOnly(@Nullable Boolean cdcInsertsOnly) { this.cdcInsertsOnly = cdcInsertsOnly; return this; } + @CustomType.Setter public Builder cdcMaxBatchInterval(@Nullable Integer cdcMaxBatchInterval) { this.cdcMaxBatchInterval = cdcMaxBatchInterval; return this; } + @CustomType.Setter public Builder cdcMinFileSize(@Nullable Integer cdcMinFileSize) { this.cdcMinFileSize = cdcMinFileSize; return this; } + @CustomType.Setter public Builder cdcPath(@Nullable String cdcPath) { this.cdcPath = cdcPath; return this; } + @CustomType.Setter public Builder compressionType(@Nullable String compressionType) { this.compressionType = compressionType; return this; } + @CustomType.Setter public Builder csvDelimiter(@Nullable String csvDelimiter) { this.csvDelimiter = csvDelimiter; return this; } + @CustomType.Setter public Builder csvNoSupValue(@Nullable String csvNoSupValue) { this.csvNoSupValue = csvNoSupValue; return this; } + @CustomType.Setter public Builder csvNullValue(@Nullable String csvNullValue) { this.csvNullValue = csvNullValue; return this; } + @CustomType.Setter public Builder csvRowDelimiter(@Nullable String csvRowDelimiter) { this.csvRowDelimiter = csvRowDelimiter; return this; } + @CustomType.Setter public Builder dataFormat(@Nullable String dataFormat) { this.dataFormat = dataFormat; return this; } + @CustomType.Setter public Builder dataPageSize(@Nullable Integer dataPageSize) { this.dataPageSize = dataPageSize; return this; } + @CustomType.Setter public Builder datePartitionDelimiter(@Nullable String datePartitionDelimiter) { this.datePartitionDelimiter = datePartitionDelimiter; return this; } + @CustomType.Setter public Builder datePartitionEnabled(@Nullable Boolean datePartitionEnabled) { this.datePartitionEnabled = datePartitionEnabled; return this; } + @CustomType.Setter public Builder datePartitionSequence(@Nullable String datePartitionSequence) { this.datePartitionSequence = datePartitionSequence; return this; } + @CustomType.Setter public Builder dictPageSizeLimit(@Nullable Integer dictPageSizeLimit) { this.dictPageSizeLimit = dictPageSizeLimit; return this; } + @CustomType.Setter public Builder enableStatistics(@Nullable Boolean enableStatistics) { this.enableStatistics = enableStatistics; return this; } + @CustomType.Setter public Builder encodingType(@Nullable String encodingType) { this.encodingType = encodingType; return this; } + @CustomType.Setter public Builder encryptionMode(@Nullable String encryptionMode) { this.encryptionMode = encryptionMode; return this; } + @CustomType.Setter public Builder externalTableDefinition(@Nullable String externalTableDefinition) { this.externalTableDefinition = externalTableDefinition; return this; } + @CustomType.Setter public Builder ignoreHeadersRow(@Nullable Integer ignoreHeadersRow) { this.ignoreHeadersRow = ignoreHeadersRow; return this; } + @CustomType.Setter public Builder includeOpForFullLoad(@Nullable Boolean includeOpForFullLoad) { this.includeOpForFullLoad = includeOpForFullLoad; return this; } + @CustomType.Setter public Builder maxFileSize(@Nullable Integer maxFileSize) { this.maxFileSize = maxFileSize; return this; } + @CustomType.Setter public Builder parquetTimestampInMillisecond(@Nullable Boolean parquetTimestampInMillisecond) { this.parquetTimestampInMillisecond = parquetTimestampInMillisecond; return this; } + @CustomType.Setter public Builder parquetVersion(@Nullable String parquetVersion) { this.parquetVersion = parquetVersion; return this; } + @CustomType.Setter public Builder preserveTransactions(@Nullable Boolean preserveTransactions) { this.preserveTransactions = preserveTransactions; return this; } + @CustomType.Setter public Builder rfc4180(@Nullable Boolean rfc4180) { this.rfc4180 = rfc4180; return this; } + @CustomType.Setter public Builder rowGroupLength(@Nullable Integer rowGroupLength) { this.rowGroupLength = rowGroupLength; return this; } + @CustomType.Setter public Builder serverSideEncryptionKmsKeyId(@Nullable String serverSideEncryptionKmsKeyId) { this.serverSideEncryptionKmsKeyId = serverSideEncryptionKmsKeyId; return this; } + @CustomType.Setter public Builder serviceAccessRoleArn(@Nullable String serviceAccessRoleArn) { this.serviceAccessRoleArn = serviceAccessRoleArn; return this; } + @CustomType.Setter public Builder timestampColumnName(@Nullable String timestampColumnName) { this.timestampColumnName = timestampColumnName; return this; } + @CustomType.Setter public Builder useCsvNoSupValue(@Nullable Boolean useCsvNoSupValue) { this.useCsvNoSupValue = useCsvNoSupValue; return this; - } public EndpointS3Settings build() { - return new EndpointS3Settings(addColumnName, bucketFolder, bucketName, cannedAclForObjects, cdcInsertsAndUpdates, cdcInsertsOnly, cdcMaxBatchInterval, cdcMinFileSize, cdcPath, compressionType, csvDelimiter, csvNoSupValue, csvNullValue, csvRowDelimiter, dataFormat, dataPageSize, datePartitionDelimiter, datePartitionEnabled, datePartitionSequence, dictPageSizeLimit, enableStatistics, encodingType, encryptionMode, externalTableDefinition, ignoreHeadersRow, includeOpForFullLoad, maxFileSize, parquetTimestampInMillisecond, parquetVersion, preserveTransactions, rfc4180, rowGroupLength, serverSideEncryptionKmsKeyId, serviceAccessRoleArn, timestampColumnName, useCsvNoSupValue); + } + public EndpointS3Settings build() { + final var o = new EndpointS3Settings(); + o.addColumnName = addColumnName; + o.bucketFolder = bucketFolder; + o.bucketName = bucketName; + o.cannedAclForObjects = cannedAclForObjects; + o.cdcInsertsAndUpdates = cdcInsertsAndUpdates; + o.cdcInsertsOnly = cdcInsertsOnly; + o.cdcMaxBatchInterval = cdcMaxBatchInterval; + o.cdcMinFileSize = cdcMinFileSize; + o.cdcPath = cdcPath; + o.compressionType = compressionType; + o.csvDelimiter = csvDelimiter; + o.csvNoSupValue = csvNoSupValue; + o.csvNullValue = csvNullValue; + o.csvRowDelimiter = csvRowDelimiter; + o.dataFormat = dataFormat; + o.dataPageSize = dataPageSize; + o.datePartitionDelimiter = datePartitionDelimiter; + o.datePartitionEnabled = datePartitionEnabled; + o.datePartitionSequence = datePartitionSequence; + o.dictPageSizeLimit = dictPageSizeLimit; + o.enableStatistics = enableStatistics; + o.encodingType = encodingType; + o.encryptionMode = encryptionMode; + o.externalTableDefinition = externalTableDefinition; + o.ignoreHeadersRow = ignoreHeadersRow; + o.includeOpForFullLoad = includeOpForFullLoad; + o.maxFileSize = maxFileSize; + o.parquetTimestampInMillisecond = parquetTimestampInMillisecond; + o.parquetVersion = parquetVersion; + o.preserveTransactions = preserveTransactions; + o.rfc4180 = rfc4180; + o.rowGroupLength = rowGroupLength; + o.serverSideEncryptionKmsKeyId = serverSideEncryptionKmsKeyId; + o.serviceAccessRoleArn = serviceAccessRoleArn; + o.timestampColumnName = timestampColumnName; + o.useCsvNoSupValue = useCsvNoSupValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/ClusterParameterGroupParameter.java b/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/ClusterParameterGroupParameter.java index cac3d953cb7..83b01dc4611 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/ClusterParameterGroupParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/ClusterParameterGroupParameter.java @@ -15,28 +15,19 @@ public final class ClusterParameterGroupParameter { * @return Valid values are `immediate` and `pending-reboot`. Defaults to `pending-reboot`. * */ - private final @Nullable String applyMethod; + private @Nullable String applyMethod; /** * @return The name of the documentDB parameter. * */ - private final String name; + private String name; /** * @return The value of the documentDB parameter. * */ - private final String value; - - @CustomType.Constructor - private ClusterParameterGroupParameter( - @CustomType.Parameter("applyMethod") @Nullable String applyMethod, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.applyMethod = applyMethod; - this.name = name; - this.value = value; - } + private String value; + private ClusterParameterGroupParameter() {} /** * @return Valid values are `immediate` and `pending-reboot`. Defaults to `pending-reboot`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ClusterParameterGroupParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String applyMethod; private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterParameterGroupParameter defaults) { Objects.requireNonNull(defaults); this.applyMethod = defaults.applyMethod; @@ -83,19 +70,27 @@ public Builder(ClusterParameterGroupParameter defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder applyMethod(@Nullable String applyMethod) { this.applyMethod = applyMethod; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ClusterParameterGroupParameter build() { - return new ClusterParameterGroupParameter(applyMethod, name, value); + } + public ClusterParameterGroupParameter build() { + final var o = new ClusterParameterGroupParameter(); + o.applyMethod = applyMethod; + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/GetEngineVersionResult.java b/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/GetEngineVersionResult.java index 00d13328ecd..da54c285d2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/GetEngineVersionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/GetEngineVersionResult.java @@ -13,65 +13,42 @@ @CustomType public final class GetEngineVersionResult { - private final @Nullable String engine; + private @Nullable String engine; /** * @return The description of the database engine. * */ - private final String engineDescription; + private String engineDescription; /** * @return Set of log types that the database engine has available for export to CloudWatch Logs. * */ - private final List exportableLogTypes; + private List exportableLogTypes; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String parameterGroupFamily; - private final @Nullable List preferredVersions; + private String id; + private String parameterGroupFamily; + private @Nullable List preferredVersions; /** * @return Indicates whether the engine version supports exporting the log types specified by `exportable_log_types` to CloudWatch Logs. * */ - private final Boolean supportsLogExportsToCloudwatch; + private Boolean supportsLogExportsToCloudwatch; /** * @return A set of engine versions that this database engine version can be upgraded to. * */ - private final List validUpgradeTargets; - private final String version; + private List validUpgradeTargets; + private String version; /** * @return The description of the database engine version. * */ - private final String versionDescription; - - @CustomType.Constructor - private GetEngineVersionResult( - @CustomType.Parameter("engine") @Nullable String engine, - @CustomType.Parameter("engineDescription") String engineDescription, - @CustomType.Parameter("exportableLogTypes") List exportableLogTypes, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("parameterGroupFamily") String parameterGroupFamily, - @CustomType.Parameter("preferredVersions") @Nullable List preferredVersions, - @CustomType.Parameter("supportsLogExportsToCloudwatch") Boolean supportsLogExportsToCloudwatch, - @CustomType.Parameter("validUpgradeTargets") List validUpgradeTargets, - @CustomType.Parameter("version") String version, - @CustomType.Parameter("versionDescription") String versionDescription) { - this.engine = engine; - this.engineDescription = engineDescription; - this.exportableLogTypes = exportableLogTypes; - this.id = id; - this.parameterGroupFamily = parameterGroupFamily; - this.preferredVersions = preferredVersions; - this.supportsLogExportsToCloudwatch = supportsLogExportsToCloudwatch; - this.validUpgradeTargets = validUpgradeTargets; - this.version = version; - this.versionDescription = versionDescription; - } + private String versionDescription; + private GetEngineVersionResult() {} public Optional engine() { return Optional.ofNullable(this.engine); } @@ -134,7 +111,7 @@ public static Builder builder() { public static Builder builder(GetEngineVersionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String engine; private String engineDescription; @@ -146,11 +123,7 @@ public static final class Builder { private List validUpgradeTargets; private String version; private String versionDescription; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEngineVersionResult defaults) { Objects.requireNonNull(defaults); this.engine = defaults.engine; @@ -165,14 +138,17 @@ public Builder(GetEngineVersionResult defaults) { this.versionDescription = defaults.versionDescription; } + @CustomType.Setter public Builder engine(@Nullable String engine) { this.engine = engine; return this; } + @CustomType.Setter public Builder engineDescription(String engineDescription) { this.engineDescription = Objects.requireNonNull(engineDescription); return this; } + @CustomType.Setter public Builder exportableLogTypes(List exportableLogTypes) { this.exportableLogTypes = Objects.requireNonNull(exportableLogTypes); return this; @@ -180,14 +156,17 @@ public Builder exportableLogTypes(List exportableLogTypes) { public Builder exportableLogTypes(String... exportableLogTypes) { return exportableLogTypes(List.of(exportableLogTypes)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder parameterGroupFamily(String parameterGroupFamily) { this.parameterGroupFamily = Objects.requireNonNull(parameterGroupFamily); return this; } + @CustomType.Setter public Builder preferredVersions(@Nullable List preferredVersions) { this.preferredVersions = preferredVersions; return this; @@ -195,10 +174,12 @@ public Builder preferredVersions(@Nullable List preferredVersions) { public Builder preferredVersions(String... preferredVersions) { return preferredVersions(List.of(preferredVersions)); } + @CustomType.Setter public Builder supportsLogExportsToCloudwatch(Boolean supportsLogExportsToCloudwatch) { this.supportsLogExportsToCloudwatch = Objects.requireNonNull(supportsLogExportsToCloudwatch); return this; } + @CustomType.Setter public Builder validUpgradeTargets(List validUpgradeTargets) { this.validUpgradeTargets = Objects.requireNonNull(validUpgradeTargets); return this; @@ -206,15 +187,29 @@ public Builder validUpgradeTargets(List validUpgradeTargets) { public Builder validUpgradeTargets(String... validUpgradeTargets) { return validUpgradeTargets(List.of(validUpgradeTargets)); } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; } + @CustomType.Setter public Builder versionDescription(String versionDescription) { this.versionDescription = Objects.requireNonNull(versionDescription); return this; - } public GetEngineVersionResult build() { - return new GetEngineVersionResult(engine, engineDescription, exportableLogTypes, id, parameterGroupFamily, preferredVersions, supportsLogExportsToCloudwatch, validUpgradeTargets, version, versionDescription); + } + public GetEngineVersionResult build() { + final var o = new GetEngineVersionResult(); + o.engine = engine; + o.engineDescription = engineDescription; + o.exportableLogTypes = exportableLogTypes; + o.id = id; + o.parameterGroupFamily = parameterGroupFamily; + o.preferredVersions = preferredVersions; + o.supportsLogExportsToCloudwatch = supportsLogExportsToCloudwatch; + o.validUpgradeTargets = validUpgradeTargets; + o.version = version; + o.versionDescription = versionDescription; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/GetOrderableDbInstanceResult.java b/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/GetOrderableDbInstanceResult.java index 5e8ed068587..11d7f186852 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/GetOrderableDbInstanceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/GetOrderableDbInstanceResult.java @@ -17,39 +17,20 @@ public final class GetOrderableDbInstanceResult { * @return Availability zones where the instance is available. * */ - private final List availabilityZones; - private final @Nullable String engine; - private final String engineVersion; + private List availabilityZones; + private @Nullable String engine; + private String engineVersion; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceClass; - private final @Nullable String licenseModel; - private final @Nullable List preferredInstanceClasses; - private final Boolean vpc; - - @CustomType.Constructor - private GetOrderableDbInstanceResult( - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("engine") @Nullable String engine, - @CustomType.Parameter("engineVersion") String engineVersion, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceClass") String instanceClass, - @CustomType.Parameter("licenseModel") @Nullable String licenseModel, - @CustomType.Parameter("preferredInstanceClasses") @Nullable List preferredInstanceClasses, - @CustomType.Parameter("vpc") Boolean vpc) { - this.availabilityZones = availabilityZones; - this.engine = engine; - this.engineVersion = engineVersion; - this.id = id; - this.instanceClass = instanceClass; - this.licenseModel = licenseModel; - this.preferredInstanceClasses = preferredInstanceClasses; - this.vpc = vpc; - } + private String id; + private String instanceClass; + private @Nullable String licenseModel; + private @Nullable List preferredInstanceClasses; + private Boolean vpc; + private GetOrderableDbInstanceResult() {} /** * @return Availability zones where the instance is available. * @@ -90,7 +71,7 @@ public static Builder builder() { public static Builder builder(GetOrderableDbInstanceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List availabilityZones; private @Nullable String engine; @@ -100,11 +81,7 @@ public static final class Builder { private @Nullable String licenseModel; private @Nullable List preferredInstanceClasses; private Boolean vpc; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOrderableDbInstanceResult defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -117,6 +94,7 @@ public Builder(GetOrderableDbInstanceResult defaults) { this.vpc = defaults.vpc; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -124,26 +102,32 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder engine(@Nullable String engine) { this.engine = engine; return this; } + @CustomType.Setter public Builder engineVersion(String engineVersion) { this.engineVersion = Objects.requireNonNull(engineVersion); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceClass(String instanceClass) { this.instanceClass = Objects.requireNonNull(instanceClass); return this; } + @CustomType.Setter public Builder licenseModel(@Nullable String licenseModel) { this.licenseModel = licenseModel; return this; } + @CustomType.Setter public Builder preferredInstanceClasses(@Nullable List preferredInstanceClasses) { this.preferredInstanceClasses = preferredInstanceClasses; return this; @@ -151,11 +135,22 @@ public Builder preferredInstanceClasses(@Nullable List preferredInstance public Builder preferredInstanceClasses(String... preferredInstanceClasses) { return preferredInstanceClasses(List.of(preferredInstanceClasses)); } + @CustomType.Setter public Builder vpc(Boolean vpc) { this.vpc = Objects.requireNonNull(vpc); return this; - } public GetOrderableDbInstanceResult build() { - return new GetOrderableDbInstanceResult(availabilityZones, engine, engineVersion, id, instanceClass, licenseModel, preferredInstanceClasses, vpc); + } + public GetOrderableDbInstanceResult build() { + final var o = new GetOrderableDbInstanceResult(); + o.availabilityZones = availabilityZones; + o.engine = engine; + o.engineVersion = engineVersion; + o.id = id; + o.instanceClass = instanceClass; + o.licenseModel = licenseModel; + o.preferredInstanceClasses = preferredInstanceClasses; + o.vpc = vpc; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/GlobalClusterGlobalClusterMember.java b/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/GlobalClusterGlobalClusterMember.java index 8e981df22b6..1d39c457a5a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/GlobalClusterGlobalClusterMember.java +++ b/sdk/java/src/main/java/com/pulumi/aws/docdb/outputs/GlobalClusterGlobalClusterMember.java @@ -16,21 +16,14 @@ public final class GlobalClusterGlobalClusterMember { * @return Amazon Resource Name (ARN) of member DB Cluster. * */ - private final @Nullable String dbClusterArn; + private @Nullable String dbClusterArn; /** * @return Whether the member is the primary DB Cluster. * */ - private final @Nullable Boolean isWriter; - - @CustomType.Constructor - private GlobalClusterGlobalClusterMember( - @CustomType.Parameter("dbClusterArn") @Nullable String dbClusterArn, - @CustomType.Parameter("isWriter") @Nullable Boolean isWriter) { - this.dbClusterArn = dbClusterArn; - this.isWriter = isWriter; - } + private @Nullable Boolean isWriter; + private GlobalClusterGlobalClusterMember() {} /** * @return Amazon Resource Name (ARN) of member DB Cluster. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(GlobalClusterGlobalClusterMember defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dbClusterArn; private @Nullable Boolean isWriter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GlobalClusterGlobalClusterMember defaults) { Objects.requireNonNull(defaults); this.dbClusterArn = defaults.dbClusterArn; this.isWriter = defaults.isWriter; } + @CustomType.Setter public Builder dbClusterArn(@Nullable String dbClusterArn) { this.dbClusterArn = dbClusterArn; return this; } + @CustomType.Setter public Builder isWriter(@Nullable Boolean isWriter) { this.isWriter = isWriter; return this; - } public GlobalClusterGlobalClusterMember build() { - return new GlobalClusterGlobalClusterMember(dbClusterArn, isWriter); + } + public GlobalClusterGlobalClusterMember build() { + final var o = new GlobalClusterGlobalClusterMember(); + o.dbClusterArn = dbClusterArn; + o.isWriter = isWriter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableAttribute.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableAttribute.java index 50c6afdbad4..cc3fa6ed988 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableAttribute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableAttribute.java @@ -13,17 +13,10 @@ public final class GetTableAttribute { * @return The name of the DynamoDB table. * */ - private final String name; - private final String type; - - @CustomType.Constructor - private GetTableAttribute( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("type") String type) { - this.name = name; - this.type = type; - } + private String name; + private String type; + private GetTableAttribute() {} /** * @return The name of the DynamoDB table. * @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetTableAttribute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTableAttribute defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.type = defaults.type; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetTableAttribute build() { - return new GetTableAttribute(name, type); + } + public GetTableAttribute build() { + final var o = new GetTableAttribute(); + o.name = name; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableGlobalSecondaryIndex.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableGlobalSecondaryIndex.java index f61dab47975..f2d74571c5f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableGlobalSecondaryIndex.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableGlobalSecondaryIndex.java @@ -11,36 +11,19 @@ @CustomType public final class GetTableGlobalSecondaryIndex { - private final String hashKey; + private String hashKey; /** * @return The name of the DynamoDB table. * */ - private final String name; - private final List nonKeyAttributes; - private final String projectionType; - private final String rangeKey; - private final Integer readCapacity; - private final Integer writeCapacity; - - @CustomType.Constructor - private GetTableGlobalSecondaryIndex( - @CustomType.Parameter("hashKey") String hashKey, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nonKeyAttributes") List nonKeyAttributes, - @CustomType.Parameter("projectionType") String projectionType, - @CustomType.Parameter("rangeKey") String rangeKey, - @CustomType.Parameter("readCapacity") Integer readCapacity, - @CustomType.Parameter("writeCapacity") Integer writeCapacity) { - this.hashKey = hashKey; - this.name = name; - this.nonKeyAttributes = nonKeyAttributes; - this.projectionType = projectionType; - this.rangeKey = rangeKey; - this.readCapacity = readCapacity; - this.writeCapacity = writeCapacity; - } + private String name; + private List nonKeyAttributes; + private String projectionType; + private String rangeKey; + private Integer readCapacity; + private Integer writeCapacity; + private GetTableGlobalSecondaryIndex() {} public String hashKey() { return this.hashKey; } @@ -74,7 +57,7 @@ public static Builder builder() { public static Builder builder(GetTableGlobalSecondaryIndex defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String hashKey; private String name; @@ -83,11 +66,7 @@ public static final class Builder { private String rangeKey; private Integer readCapacity; private Integer writeCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTableGlobalSecondaryIndex defaults) { Objects.requireNonNull(defaults); this.hashKey = defaults.hashKey; @@ -99,14 +78,17 @@ public Builder(GetTableGlobalSecondaryIndex defaults) { this.writeCapacity = defaults.writeCapacity; } + @CustomType.Setter public Builder hashKey(String hashKey) { this.hashKey = Objects.requireNonNull(hashKey); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nonKeyAttributes(List nonKeyAttributes) { this.nonKeyAttributes = Objects.requireNonNull(nonKeyAttributes); return this; @@ -114,23 +96,36 @@ public Builder nonKeyAttributes(List nonKeyAttributes) { public Builder nonKeyAttributes(String... nonKeyAttributes) { return nonKeyAttributes(List.of(nonKeyAttributes)); } + @CustomType.Setter public Builder projectionType(String projectionType) { this.projectionType = Objects.requireNonNull(projectionType); return this; } + @CustomType.Setter public Builder rangeKey(String rangeKey) { this.rangeKey = Objects.requireNonNull(rangeKey); return this; } + @CustomType.Setter public Builder readCapacity(Integer readCapacity) { this.readCapacity = Objects.requireNonNull(readCapacity); return this; } + @CustomType.Setter public Builder writeCapacity(Integer writeCapacity) { this.writeCapacity = Objects.requireNonNull(writeCapacity); return this; - } public GetTableGlobalSecondaryIndex build() { - return new GetTableGlobalSecondaryIndex(hashKey, name, nonKeyAttributes, projectionType, rangeKey, readCapacity, writeCapacity); + } + public GetTableGlobalSecondaryIndex build() { + final var o = new GetTableGlobalSecondaryIndex(); + o.hashKey = hashKey; + o.name = name; + o.nonKeyAttributes = nonKeyAttributes; + o.projectionType = projectionType; + o.rangeKey = rangeKey; + o.readCapacity = readCapacity; + o.writeCapacity = writeCapacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableLocalSecondaryIndex.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableLocalSecondaryIndex.java index a12bdf7204d..292d694066d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableLocalSecondaryIndex.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableLocalSecondaryIndex.java @@ -14,23 +14,12 @@ public final class GetTableLocalSecondaryIndex { * @return The name of the DynamoDB table. * */ - private final String name; - private final List nonKeyAttributes; - private final String projectionType; - private final String rangeKey; - - @CustomType.Constructor - private GetTableLocalSecondaryIndex( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nonKeyAttributes") List nonKeyAttributes, - @CustomType.Parameter("projectionType") String projectionType, - @CustomType.Parameter("rangeKey") String rangeKey) { - this.name = name; - this.nonKeyAttributes = nonKeyAttributes; - this.projectionType = projectionType; - this.rangeKey = rangeKey; - } + private String name; + private List nonKeyAttributes; + private String projectionType; + private String rangeKey; + private GetTableLocalSecondaryIndex() {} /** * @return The name of the DynamoDB table. * @@ -55,17 +44,13 @@ public static Builder builder() { public static Builder builder(GetTableLocalSecondaryIndex defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List nonKeyAttributes; private String projectionType; private String rangeKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTableLocalSecondaryIndex defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -74,10 +59,12 @@ public Builder(GetTableLocalSecondaryIndex defaults) { this.rangeKey = defaults.rangeKey; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nonKeyAttributes(List nonKeyAttributes) { this.nonKeyAttributes = Objects.requireNonNull(nonKeyAttributes); return this; @@ -85,15 +72,23 @@ public Builder nonKeyAttributes(List nonKeyAttributes) { public Builder nonKeyAttributes(String... nonKeyAttributes) { return nonKeyAttributes(List.of(nonKeyAttributes)); } + @CustomType.Setter public Builder projectionType(String projectionType) { this.projectionType = Objects.requireNonNull(projectionType); return this; } + @CustomType.Setter public Builder rangeKey(String rangeKey) { this.rangeKey = Objects.requireNonNull(rangeKey); return this; - } public GetTableLocalSecondaryIndex build() { - return new GetTableLocalSecondaryIndex(name, nonKeyAttributes, projectionType, rangeKey); + } + public GetTableLocalSecondaryIndex build() { + final var o = new GetTableLocalSecondaryIndex(); + o.name = name; + o.nonKeyAttributes = nonKeyAttributes; + o.projectionType = projectionType; + o.rangeKey = rangeKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTablePointInTimeRecovery.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTablePointInTimeRecovery.java index d1fbf5af0ae..fe0bda31cd8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTablePointInTimeRecovery.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTablePointInTimeRecovery.java @@ -9,13 +9,9 @@ @CustomType public final class GetTablePointInTimeRecovery { - private final Boolean enabled; - - @CustomType.Constructor - private GetTablePointInTimeRecovery(@CustomType.Parameter("enabled") Boolean enabled) { - this.enabled = enabled; - } + private Boolean enabled; + private GetTablePointInTimeRecovery() {} public Boolean enabled() { return this.enabled; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetTablePointInTimeRecovery defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTablePointInTimeRecovery defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public GetTablePointInTimeRecovery build() { - return new GetTablePointInTimeRecovery(enabled); + } + public GetTablePointInTimeRecovery build() { + final var o = new GetTablePointInTimeRecovery(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableReplica.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableReplica.java index b9ed2307bfc..4f65fd1b8bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableReplica.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableReplica.java @@ -9,17 +9,10 @@ @CustomType public final class GetTableReplica { - private final String kmsKeyArn; - private final String regionName; - - @CustomType.Constructor - private GetTableReplica( - @CustomType.Parameter("kmsKeyArn") String kmsKeyArn, - @CustomType.Parameter("regionName") String regionName) { - this.kmsKeyArn = kmsKeyArn; - this.regionName = regionName; - } + private String kmsKeyArn; + private String regionName; + private GetTableReplica() {} public String kmsKeyArn() { return this.kmsKeyArn; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetTableReplica defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String kmsKeyArn; private String regionName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTableReplica defaults) { Objects.requireNonNull(defaults); this.kmsKeyArn = defaults.kmsKeyArn; this.regionName = defaults.regionName; } + @CustomType.Setter public Builder kmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = Objects.requireNonNull(kmsKeyArn); return this; } + @CustomType.Setter public Builder regionName(String regionName) { this.regionName = Objects.requireNonNull(regionName); return this; - } public GetTableReplica build() { - return new GetTableReplica(kmsKeyArn, regionName); + } + public GetTableReplica build() { + final var o = new GetTableReplica(); + o.kmsKeyArn = kmsKeyArn; + o.regionName = regionName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableResult.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableResult.java index 8691af02d91..cbcd1325b11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableResult.java @@ -20,78 +20,33 @@ @CustomType public final class GetTableResult { - private final String arn; - private final List attributes; - private final String billingMode; - private final List globalSecondaryIndexes; - private final String hashKey; + private String arn; + private List attributes; + private String billingMode; + private List globalSecondaryIndexes; + private String hashKey; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final List localSecondaryIndexes; - private final String name; - private final GetTablePointInTimeRecovery pointInTimeRecovery; - private final String rangeKey; - private final Integer readCapacity; - private final List replicas; - private final GetTableServerSideEncryption serverSideEncryption; - private final String streamArn; - private final Boolean streamEnabled; - private final String streamLabel; - private final String streamViewType; - private final String tableClass; - private final Map tags; - private final GetTableTtl ttl; - private final Integer writeCapacity; - - @CustomType.Constructor - private GetTableResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("attributes") List attributes, - @CustomType.Parameter("billingMode") String billingMode, - @CustomType.Parameter("globalSecondaryIndexes") List globalSecondaryIndexes, - @CustomType.Parameter("hashKey") String hashKey, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("localSecondaryIndexes") List localSecondaryIndexes, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("pointInTimeRecovery") GetTablePointInTimeRecovery pointInTimeRecovery, - @CustomType.Parameter("rangeKey") String rangeKey, - @CustomType.Parameter("readCapacity") Integer readCapacity, - @CustomType.Parameter("replicas") List replicas, - @CustomType.Parameter("serverSideEncryption") GetTableServerSideEncryption serverSideEncryption, - @CustomType.Parameter("streamArn") String streamArn, - @CustomType.Parameter("streamEnabled") Boolean streamEnabled, - @CustomType.Parameter("streamLabel") String streamLabel, - @CustomType.Parameter("streamViewType") String streamViewType, - @CustomType.Parameter("tableClass") String tableClass, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("ttl") GetTableTtl ttl, - @CustomType.Parameter("writeCapacity") Integer writeCapacity) { - this.arn = arn; - this.attributes = attributes; - this.billingMode = billingMode; - this.globalSecondaryIndexes = globalSecondaryIndexes; - this.hashKey = hashKey; - this.id = id; - this.localSecondaryIndexes = localSecondaryIndexes; - this.name = name; - this.pointInTimeRecovery = pointInTimeRecovery; - this.rangeKey = rangeKey; - this.readCapacity = readCapacity; - this.replicas = replicas; - this.serverSideEncryption = serverSideEncryption; - this.streamArn = streamArn; - this.streamEnabled = streamEnabled; - this.streamLabel = streamLabel; - this.streamViewType = streamViewType; - this.tableClass = tableClass; - this.tags = tags; - this.ttl = ttl; - this.writeCapacity = writeCapacity; - } + private String id; + private List localSecondaryIndexes; + private String name; + private GetTablePointInTimeRecovery pointInTimeRecovery; + private String rangeKey; + private Integer readCapacity; + private List replicas; + private GetTableServerSideEncryption serverSideEncryption; + private String streamArn; + private Boolean streamEnabled; + private String streamLabel; + private String streamViewType; + private String tableClass; + private Map tags; + private GetTableTtl ttl; + private Integer writeCapacity; + private GetTableResult() {} public String arn() { return this.arn; } @@ -167,7 +122,7 @@ public static Builder builder() { public static Builder builder(GetTableResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List attributes; @@ -190,11 +145,7 @@ public static final class Builder { private Map tags; private GetTableTtl ttl; private Integer writeCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTableResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -220,10 +171,12 @@ public Builder(GetTableResult defaults) { this.writeCapacity = defaults.writeCapacity; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder attributes(List attributes) { this.attributes = Objects.requireNonNull(attributes); return this; @@ -231,10 +184,12 @@ public Builder attributes(List attributes) { public Builder attributes(GetTableAttribute... attributes) { return attributes(List.of(attributes)); } + @CustomType.Setter public Builder billingMode(String billingMode) { this.billingMode = Objects.requireNonNull(billingMode); return this; } + @CustomType.Setter public Builder globalSecondaryIndexes(List globalSecondaryIndexes) { this.globalSecondaryIndexes = Objects.requireNonNull(globalSecondaryIndexes); return this; @@ -242,14 +197,17 @@ public Builder globalSecondaryIndexes(List globalS public Builder globalSecondaryIndexes(GetTableGlobalSecondaryIndex... globalSecondaryIndexes) { return globalSecondaryIndexes(List.of(globalSecondaryIndexes)); } + @CustomType.Setter public Builder hashKey(String hashKey) { this.hashKey = Objects.requireNonNull(hashKey); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder localSecondaryIndexes(List localSecondaryIndexes) { this.localSecondaryIndexes = Objects.requireNonNull(localSecondaryIndexes); return this; @@ -257,22 +215,27 @@ public Builder localSecondaryIndexes(List localSeco public Builder localSecondaryIndexes(GetTableLocalSecondaryIndex... localSecondaryIndexes) { return localSecondaryIndexes(List.of(localSecondaryIndexes)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder pointInTimeRecovery(GetTablePointInTimeRecovery pointInTimeRecovery) { this.pointInTimeRecovery = Objects.requireNonNull(pointInTimeRecovery); return this; } + @CustomType.Setter public Builder rangeKey(String rangeKey) { this.rangeKey = Objects.requireNonNull(rangeKey); return this; } + @CustomType.Setter public Builder readCapacity(Integer readCapacity) { this.readCapacity = Objects.requireNonNull(readCapacity); return this; } + @CustomType.Setter public Builder replicas(List replicas) { this.replicas = Objects.requireNonNull(replicas); return this; @@ -280,43 +243,75 @@ public Builder replicas(List replicas) { public Builder replicas(GetTableReplica... replicas) { return replicas(List.of(replicas)); } + @CustomType.Setter public Builder serverSideEncryption(GetTableServerSideEncryption serverSideEncryption) { this.serverSideEncryption = Objects.requireNonNull(serverSideEncryption); return this; } + @CustomType.Setter public Builder streamArn(String streamArn) { this.streamArn = Objects.requireNonNull(streamArn); return this; } + @CustomType.Setter public Builder streamEnabled(Boolean streamEnabled) { this.streamEnabled = Objects.requireNonNull(streamEnabled); return this; } + @CustomType.Setter public Builder streamLabel(String streamLabel) { this.streamLabel = Objects.requireNonNull(streamLabel); return this; } + @CustomType.Setter public Builder streamViewType(String streamViewType) { this.streamViewType = Objects.requireNonNull(streamViewType); return this; } + @CustomType.Setter public Builder tableClass(String tableClass) { this.tableClass = Objects.requireNonNull(tableClass); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder ttl(GetTableTtl ttl) { this.ttl = Objects.requireNonNull(ttl); return this; } + @CustomType.Setter public Builder writeCapacity(Integer writeCapacity) { this.writeCapacity = Objects.requireNonNull(writeCapacity); return this; - } public GetTableResult build() { - return new GetTableResult(arn, attributes, billingMode, globalSecondaryIndexes, hashKey, id, localSecondaryIndexes, name, pointInTimeRecovery, rangeKey, readCapacity, replicas, serverSideEncryption, streamArn, streamEnabled, streamLabel, streamViewType, tableClass, tags, ttl, writeCapacity); + } + public GetTableResult build() { + final var o = new GetTableResult(); + o.arn = arn; + o.attributes = attributes; + o.billingMode = billingMode; + o.globalSecondaryIndexes = globalSecondaryIndexes; + o.hashKey = hashKey; + o.id = id; + o.localSecondaryIndexes = localSecondaryIndexes; + o.name = name; + o.pointInTimeRecovery = pointInTimeRecovery; + o.rangeKey = rangeKey; + o.readCapacity = readCapacity; + o.replicas = replicas; + o.serverSideEncryption = serverSideEncryption; + o.streamArn = streamArn; + o.streamEnabled = streamEnabled; + o.streamLabel = streamLabel; + o.streamViewType = streamViewType; + o.tableClass = tableClass; + o.tags = tags; + o.ttl = ttl; + o.writeCapacity = writeCapacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableServerSideEncryption.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableServerSideEncryption.java index 8fa804efb22..ac847b1b95c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableServerSideEncryption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableServerSideEncryption.java @@ -10,17 +10,10 @@ @CustomType public final class GetTableServerSideEncryption { - private final Boolean enabled; - private final String kmsKeyArn; - - @CustomType.Constructor - private GetTableServerSideEncryption( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("kmsKeyArn") String kmsKeyArn) { - this.enabled = enabled; - this.kmsKeyArn = kmsKeyArn; - } + private Boolean enabled; + private String kmsKeyArn; + private GetTableServerSideEncryption() {} public Boolean enabled() { return this.enabled; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetTableServerSideEncryption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private String kmsKeyArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTableServerSideEncryption defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.kmsKeyArn = defaults.kmsKeyArn; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder kmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = Objects.requireNonNull(kmsKeyArn); return this; - } public GetTableServerSideEncryption build() { - return new GetTableServerSideEncryption(enabled, kmsKeyArn); + } + public GetTableServerSideEncryption build() { + final var o = new GetTableServerSideEncryption(); + o.enabled = enabled; + o.kmsKeyArn = kmsKeyArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableTtl.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableTtl.java index 279339b4d9f..faed6c76aa0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableTtl.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GetTableTtl.java @@ -10,17 +10,10 @@ @CustomType public final class GetTableTtl { - private final String attributeName; - private final Boolean enabled; - - @CustomType.Constructor - private GetTableTtl( - @CustomType.Parameter("attributeName") String attributeName, - @CustomType.Parameter("enabled") Boolean enabled) { - this.attributeName = attributeName; - this.enabled = enabled; - } + private String attributeName; + private Boolean enabled; + private GetTableTtl() {} public String attributeName() { return this.attributeName; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetTableTtl defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String attributeName; private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTableTtl defaults) { Objects.requireNonNull(defaults); this.attributeName = defaults.attributeName; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder attributeName(String attributeName) { this.attributeName = Objects.requireNonNull(attributeName); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public GetTableTtl build() { - return new GetTableTtl(attributeName, enabled); + } + public GetTableTtl build() { + final var o = new GetTableTtl(); + o.attributeName = attributeName; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GlobalTableReplica.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GlobalTableReplica.java index 366abc5fbff..718382f6e12 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GlobalTableReplica.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/GlobalTableReplica.java @@ -13,13 +13,9 @@ public final class GlobalTableReplica { * @return AWS region name of replica DynamoDB TableE.g., `us-east-1` * */ - private final String regionName; - - @CustomType.Constructor - private GlobalTableReplica(@CustomType.Parameter("regionName") String regionName) { - this.regionName = regionName; - } + private String regionName; + private GlobalTableReplica() {} /** * @return AWS region name of replica DynamoDB TableE.g., `us-east-1` * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GlobalTableReplica defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String regionName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GlobalTableReplica defaults) { Objects.requireNonNull(defaults); this.regionName = defaults.regionName; } + @CustomType.Setter public Builder regionName(String regionName) { this.regionName = Objects.requireNonNull(regionName); return this; - } public GlobalTableReplica build() { - return new GlobalTableReplica(regionName); + } + public GlobalTableReplica build() { + final var o = new GlobalTableReplica(); + o.regionName = regionName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableAttribute.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableAttribute.java index 7d8ef05b805..3db9a490d02 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableAttribute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableAttribute.java @@ -13,21 +13,14 @@ public final class TableAttribute { * @return Name of the index * */ - private final String name; + private String name; /** * @return Attribute type. Valid values are `S` (string), `N` (number), `B` (binary). * */ - private final String type; - - @CustomType.Constructor - private TableAttribute( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("type") String type) { - this.name = name; - this.type = type; - } + private String type; + private TableAttribute() {} /** * @return Name of the index * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TableAttribute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableAttribute defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.type = defaults.type; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public TableAttribute build() { - return new TableAttribute(name, type); + } + public TableAttribute build() { + final var o = new TableAttribute(); + o.name = name; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableGlobalSecondaryIndex.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableGlobalSecondaryIndex.java index c47cbfc56af..459c3160285 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableGlobalSecondaryIndex.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableGlobalSecondaryIndex.java @@ -17,56 +17,39 @@ public final class TableGlobalSecondaryIndex { * @return Name of the hash key in the index; must be defined as an attribute in the resource. * */ - private final String hashKey; + private String hashKey; /** * @return Name of the index * */ - private final String name; + private String name; /** * @return Only required with `INCLUDE` as a projection type; a list of attributes to project into the index. These do not need to be defined as attributes on the table. * */ - private final @Nullable List nonKeyAttributes; + private @Nullable List nonKeyAttributes; /** * @return One of `ALL`, `INCLUDE` or `KEYS_ONLY` where `ALL` projects every attribute into the index, `KEYS_ONLY` projects just the hash and range key into the index, and `INCLUDE` projects only the keys specified in the `non_key_attributes` parameter. * */ - private final String projectionType; + private String projectionType; /** * @return Name of the range key. * */ - private final @Nullable String rangeKey; + private @Nullable String rangeKey; /** * @return Number of read units for this index. Must be set if billing_mode is set to PROVISIONED. * */ - private final @Nullable Integer readCapacity; + private @Nullable Integer readCapacity; /** * @return Number of write units for this index. Must be set if billing_mode is set to PROVISIONED. * */ - private final @Nullable Integer writeCapacity; - - @CustomType.Constructor - private TableGlobalSecondaryIndex( - @CustomType.Parameter("hashKey") String hashKey, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nonKeyAttributes") @Nullable List nonKeyAttributes, - @CustomType.Parameter("projectionType") String projectionType, - @CustomType.Parameter("rangeKey") @Nullable String rangeKey, - @CustomType.Parameter("readCapacity") @Nullable Integer readCapacity, - @CustomType.Parameter("writeCapacity") @Nullable Integer writeCapacity) { - this.hashKey = hashKey; - this.name = name; - this.nonKeyAttributes = nonKeyAttributes; - this.projectionType = projectionType; - this.rangeKey = rangeKey; - this.readCapacity = readCapacity; - this.writeCapacity = writeCapacity; - } + private @Nullable Integer writeCapacity; + private TableGlobalSecondaryIndex() {} /** * @return Name of the hash key in the index; must be defined as an attribute in the resource. * @@ -124,7 +107,7 @@ public static Builder builder() { public static Builder builder(TableGlobalSecondaryIndex defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String hashKey; private String name; @@ -133,11 +116,7 @@ public static final class Builder { private @Nullable String rangeKey; private @Nullable Integer readCapacity; private @Nullable Integer writeCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableGlobalSecondaryIndex defaults) { Objects.requireNonNull(defaults); this.hashKey = defaults.hashKey; @@ -149,14 +128,17 @@ public Builder(TableGlobalSecondaryIndex defaults) { this.writeCapacity = defaults.writeCapacity; } + @CustomType.Setter public Builder hashKey(String hashKey) { this.hashKey = Objects.requireNonNull(hashKey); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nonKeyAttributes(@Nullable List nonKeyAttributes) { this.nonKeyAttributes = nonKeyAttributes; return this; @@ -164,23 +146,36 @@ public Builder nonKeyAttributes(@Nullable List nonKeyAttributes) { public Builder nonKeyAttributes(String... nonKeyAttributes) { return nonKeyAttributes(List.of(nonKeyAttributes)); } + @CustomType.Setter public Builder projectionType(String projectionType) { this.projectionType = Objects.requireNonNull(projectionType); return this; } + @CustomType.Setter public Builder rangeKey(@Nullable String rangeKey) { this.rangeKey = rangeKey; return this; } + @CustomType.Setter public Builder readCapacity(@Nullable Integer readCapacity) { this.readCapacity = readCapacity; return this; } + @CustomType.Setter public Builder writeCapacity(@Nullable Integer writeCapacity) { this.writeCapacity = writeCapacity; return this; - } public TableGlobalSecondaryIndex build() { - return new TableGlobalSecondaryIndex(hashKey, name, nonKeyAttributes, projectionType, rangeKey, readCapacity, writeCapacity); + } + public TableGlobalSecondaryIndex build() { + final var o = new TableGlobalSecondaryIndex(); + o.hashKey = hashKey; + o.name = name; + o.nonKeyAttributes = nonKeyAttributes; + o.projectionType = projectionType; + o.rangeKey = rangeKey; + o.readCapacity = readCapacity; + o.writeCapacity = writeCapacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableLocalSecondaryIndex.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableLocalSecondaryIndex.java index 10519619594..87c6d95ceb7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableLocalSecondaryIndex.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableLocalSecondaryIndex.java @@ -15,35 +15,24 @@ public final class TableLocalSecondaryIndex { * @return Name of the index * */ - private final String name; + private String name; /** * @return Only required with `INCLUDE` as a projection type; a list of attributes to project into the index. These do not need to be defined as attributes on the table. * */ - private final @Nullable List nonKeyAttributes; + private @Nullable List nonKeyAttributes; /** * @return One of `ALL`, `INCLUDE` or `KEYS_ONLY` where `ALL` projects every attribute into the index, `KEYS_ONLY` projects just the hash and range key into the index, and `INCLUDE` projects only the keys specified in the `non_key_attributes` parameter. * */ - private final String projectionType; + private String projectionType; /** * @return Name of the range key. * */ - private final String rangeKey; - - @CustomType.Constructor - private TableLocalSecondaryIndex( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nonKeyAttributes") @Nullable List nonKeyAttributes, - @CustomType.Parameter("projectionType") String projectionType, - @CustomType.Parameter("rangeKey") String rangeKey) { - this.name = name; - this.nonKeyAttributes = nonKeyAttributes; - this.projectionType = projectionType; - this.rangeKey = rangeKey; - } + private String rangeKey; + private TableLocalSecondaryIndex() {} /** * @return Name of the index * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(TableLocalSecondaryIndex defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private @Nullable List nonKeyAttributes; private String projectionType; private String rangeKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableLocalSecondaryIndex defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -99,10 +84,12 @@ public Builder(TableLocalSecondaryIndex defaults) { this.rangeKey = defaults.rangeKey; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nonKeyAttributes(@Nullable List nonKeyAttributes) { this.nonKeyAttributes = nonKeyAttributes; return this; @@ -110,15 +97,23 @@ public Builder nonKeyAttributes(@Nullable List nonKeyAttributes) { public Builder nonKeyAttributes(String... nonKeyAttributes) { return nonKeyAttributes(List.of(nonKeyAttributes)); } + @CustomType.Setter public Builder projectionType(String projectionType) { this.projectionType = Objects.requireNonNull(projectionType); return this; } + @CustomType.Setter public Builder rangeKey(String rangeKey) { this.rangeKey = Objects.requireNonNull(rangeKey); return this; - } public TableLocalSecondaryIndex build() { - return new TableLocalSecondaryIndex(name, nonKeyAttributes, projectionType, rangeKey); + } + public TableLocalSecondaryIndex build() { + final var o = new TableLocalSecondaryIndex(); + o.name = name; + o.nonKeyAttributes = nonKeyAttributes; + o.projectionType = projectionType; + o.rangeKey = rangeKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TablePointInTimeRecovery.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TablePointInTimeRecovery.java index 08fb44073f5..7f4a6c97e9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TablePointInTimeRecovery.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TablePointInTimeRecovery.java @@ -13,13 +13,9 @@ public final class TablePointInTimeRecovery { * @return Whether TTL is enabled. * */ - private final Boolean enabled; - - @CustomType.Constructor - private TablePointInTimeRecovery(@CustomType.Parameter("enabled") Boolean enabled) { - this.enabled = enabled; - } + private Boolean enabled; + private TablePointInTimeRecovery() {} /** * @return Whether TTL is enabled. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(TablePointInTimeRecovery defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TablePointInTimeRecovery defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public TablePointInTimeRecovery build() { - return new TablePointInTimeRecovery(enabled); + } + public TablePointInTimeRecovery build() { + final var o = new TablePointInTimeRecovery(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableReplica.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableReplica.java index f409da29e96..bedaee7f9de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableReplica.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableReplica.java @@ -16,35 +16,24 @@ public final class TableReplica { * @return ARN of the CMK that should be used for the AWS KMS encryption. This attribute should only be specified if the key is different from the default DynamoDB CMK, `alias/aws/dynamodb`. * */ - private final @Nullable String kmsKeyArn; + private @Nullable String kmsKeyArn; /** * @return Whether to enable Point In Time Recovery for the replica. Default is `false`. * */ - private final @Nullable Boolean pointInTimeRecovery; + private @Nullable Boolean pointInTimeRecovery; /** * @return Whether to propagate the global table's tags to a replica. Default is `false`. Changes to tags only move in one direction: from global (source) to replica. In other words, tag drift on a replica will not trigger an update. Tag or replica changes on the global table, whether from drift or configuration changes, are propagated to replicas. Changing from `true` to `false` on a subsequent `apply` means replica tags are left as they were, unmanaged, not deleted. * */ - private final @Nullable Boolean propagateTags; + private @Nullable Boolean propagateTags; /** * @return Region name of the replica. * */ - private final String regionName; - - @CustomType.Constructor - private TableReplica( - @CustomType.Parameter("kmsKeyArn") @Nullable String kmsKeyArn, - @CustomType.Parameter("pointInTimeRecovery") @Nullable Boolean pointInTimeRecovery, - @CustomType.Parameter("propagateTags") @Nullable Boolean propagateTags, - @CustomType.Parameter("regionName") String regionName) { - this.kmsKeyArn = kmsKeyArn; - this.pointInTimeRecovery = pointInTimeRecovery; - this.propagateTags = propagateTags; - this.regionName = regionName; - } + private String regionName; + private TableReplica() {} /** * @return ARN of the CMK that should be used for the AWS KMS encryption. This attribute should only be specified if the key is different from the default DynamoDB CMK, `alias/aws/dynamodb`. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(TableReplica defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsKeyArn; private @Nullable Boolean pointInTimeRecovery; private @Nullable Boolean propagateTags; private String regionName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableReplica defaults) { Objects.requireNonNull(defaults); this.kmsKeyArn = defaults.kmsKeyArn; @@ -100,23 +85,33 @@ public Builder(TableReplica defaults) { this.regionName = defaults.regionName; } + @CustomType.Setter public Builder kmsKeyArn(@Nullable String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; return this; } + @CustomType.Setter public Builder pointInTimeRecovery(@Nullable Boolean pointInTimeRecovery) { this.pointInTimeRecovery = pointInTimeRecovery; return this; } + @CustomType.Setter public Builder propagateTags(@Nullable Boolean propagateTags) { this.propagateTags = propagateTags; return this; } + @CustomType.Setter public Builder regionName(String regionName) { this.regionName = Objects.requireNonNull(regionName); return this; - } public TableReplica build() { - return new TableReplica(kmsKeyArn, pointInTimeRecovery, propagateTags, regionName); + } + public TableReplica build() { + final var o = new TableReplica(); + o.kmsKeyArn = kmsKeyArn; + o.pointInTimeRecovery = pointInTimeRecovery; + o.propagateTags = propagateTags; + o.regionName = regionName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableServerSideEncryption.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableServerSideEncryption.java index e25f891fc56..adc70920a27 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableServerSideEncryption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableServerSideEncryption.java @@ -16,21 +16,14 @@ public final class TableServerSideEncryption { * @return Whether TTL is enabled. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return ARN of the CMK that should be used for the AWS KMS encryption. This attribute should only be specified if the key is different from the default DynamoDB CMK, `alias/aws/dynamodb`. * */ - private final @Nullable String kmsKeyArn; - - @CustomType.Constructor - private TableServerSideEncryption( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("kmsKeyArn") @Nullable String kmsKeyArn) { - this.enabled = enabled; - this.kmsKeyArn = kmsKeyArn; - } + private @Nullable String kmsKeyArn; + private TableServerSideEncryption() {} /** * @return Whether TTL is enabled. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(TableServerSideEncryption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private @Nullable String kmsKeyArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableServerSideEncryption defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.kmsKeyArn = defaults.kmsKeyArn; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder kmsKeyArn(@Nullable String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; return this; - } public TableServerSideEncryption build() { - return new TableServerSideEncryption(enabled, kmsKeyArn); + } + public TableServerSideEncryption build() { + final var o = new TableServerSideEncryption(); + o.enabled = enabled; + o.kmsKeyArn = kmsKeyArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableTtl.java b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableTtl.java index ceb5413ed60..ab7a741474a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableTtl.java +++ b/sdk/java/src/main/java/com/pulumi/aws/dynamodb/outputs/TableTtl.java @@ -16,21 +16,14 @@ public final class TableTtl { * @return Name of the table attribute to store the TTL timestamp in. * */ - private final String attributeName; + private String attributeName; /** * @return Whether TTL is enabled. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private TableTtl( - @CustomType.Parameter("attributeName") String attributeName, - @CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.attributeName = attributeName; - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private TableTtl() {} /** * @return Name of the table attribute to store the TTL timestamp in. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(TableTtl defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String attributeName; private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableTtl defaults) { Objects.requireNonNull(defaults); this.attributeName = defaults.attributeName; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder attributeName(String attributeName) { this.attributeName = Objects.requireNonNull(attributeName); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public TableTtl build() { - return new TableTtl(attributeName, enabled); + } + public TableTtl build() { + final var o = new TableTtl(); + o.attributeName = attributeName; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetDefaultKmsKeyResult.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetDefaultKmsKeyResult.java index 9f5c45b0ceb..ee238b4d5d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetDefaultKmsKeyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetDefaultKmsKeyResult.java @@ -13,21 +13,14 @@ public final class GetDefaultKmsKeyResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Amazon Resource Name (ARN) of the default KMS key uses to encrypt an EBS volume in this region when no key is specified in an API call that creates the volume and encryption by default is enabled. * */ - private final String keyArn; - - @CustomType.Constructor - private GetDefaultKmsKeyResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("keyArn") String keyArn) { - this.id = id; - this.keyArn = keyArn; - } + private String keyArn; + private GetDefaultKmsKeyResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetDefaultKmsKeyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String keyArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDefaultKmsKeyResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.keyArn = defaults.keyArn; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder keyArn(String keyArn) { this.keyArn = Objects.requireNonNull(keyArn); return this; - } public GetDefaultKmsKeyResult build() { - return new GetDefaultKmsKeyResult(id, keyArn); + } + public GetDefaultKmsKeyResult build() { + final var o = new GetDefaultKmsKeyResult(); + o.id = id; + o.keyArn = keyArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetEbsVolumesFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetEbsVolumesFilter.java index 3f93cfbd680..788401d8f08 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetEbsVolumesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetEbsVolumesFilter.java @@ -16,22 +16,15 @@ public final class GetEbsVolumesFilter { * For example, if matching against the `size` filter, use: * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * EBS Volume IDs will be selected if any one of the given values match. * */ - private final List values; - - @CustomType.Constructor - private GetEbsVolumesFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetEbsVolumesFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVolumes.html). @@ -57,33 +50,35 @@ public static Builder builder() { public static Builder builder(GetEbsVolumesFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEbsVolumesFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetEbsVolumesFilter build() { - return new GetEbsVolumesFilter(name, values); + } + public GetEbsVolumesFilter build() { + final var o = new GetEbsVolumesFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetEbsVolumesResult.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetEbsVolumesResult.java index 27139c72cbe..c4ec5f85ec6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetEbsVolumesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetEbsVolumesResult.java @@ -13,32 +13,21 @@ @CustomType public final class GetEbsVolumesResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A set of all the EBS Volume IDs found. This data source will fail if * no volumes match the provided criteria. * */ - private final List ids; - private final @Nullable Map tags; - - @CustomType.Constructor - private GetEbsVolumesResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - } + private List ids; + private @Nullable Map tags; + private GetEbsVolumesResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -68,17 +57,13 @@ public static Builder builder() { public static Builder builder(GetEbsVolumesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEbsVolumesResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -87,6 +72,7 @@ public Builder(GetEbsVolumesResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -94,10 +80,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetEbsVolumesFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -105,11 +93,18 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public GetEbsVolumesResult build() { - return new GetEbsVolumesResult(filters, id, ids, tags); + } + public GetEbsVolumesResult build() { + final var o = new GetEbsVolumesResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetEncryptionByDefaultResult.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetEncryptionByDefaultResult.java index ddc6036af72..3afede644a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetEncryptionByDefaultResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetEncryptionByDefaultResult.java @@ -14,21 +14,14 @@ public final class GetEncryptionByDefaultResult { * @return Whether or not default EBS encryption is enabled. Returns as `true` or `false`. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetEncryptionByDefaultResult( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("id") String id) { - this.enabled = enabled; - this.id = id; - } + private String id; + private GetEncryptionByDefaultResult() {} /** * @return Whether or not default EBS encryption is enabled. Returns as `true` or `false`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetEncryptionByDefaultResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEncryptionByDefaultResult defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.id = defaults.id; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetEncryptionByDefaultResult build() { - return new GetEncryptionByDefaultResult(enabled, id); + } + public GetEncryptionByDefaultResult build() { + final var o = new GetEncryptionByDefaultResult(); + o.enabled = enabled; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotFilter.java index 3127e930f4d..619298b2071 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetSnapshotFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetSnapshotFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetSnapshotFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetSnapshotFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSnapshotFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetSnapshotFilter build() { - return new GetSnapshotFilter(name, values); + } + public GetSnapshotFilter build() { + final var o = new GetSnapshotFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotIdsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotIdsFilter.java index 496d65bc047..d9432fc99b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotIdsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotIdsFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetSnapshotIdsFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetSnapshotIdsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetSnapshotIdsFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetSnapshotIdsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSnapshotIdsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetSnapshotIdsFilter build() { - return new GetSnapshotIdsFilter(name, values); + } + public GetSnapshotIdsFilter build() { + final var o = new GetSnapshotIdsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotIdsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotIdsResult.java index 4e581fccf64..f3d4b38b1bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotIdsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotIdsResult.java @@ -12,34 +12,21 @@ @CustomType public final class GetSnapshotIdsResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of EBS snapshot IDs, sorted by creation time in descending order. * */ - private final List ids; - private final @Nullable List owners; - private final @Nullable List restorableByUserIds; - - @CustomType.Constructor - private GetSnapshotIdsResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("owners") @Nullable List owners, - @CustomType.Parameter("restorableByUserIds") @Nullable List restorableByUserIds) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.owners = owners; - this.restorableByUserIds = restorableByUserIds; - } + private List ids; + private @Nullable List owners; + private @Nullable List restorableByUserIds; + private GetSnapshotIdsResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -71,18 +58,14 @@ public static Builder builder() { public static Builder builder(GetSnapshotIdsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private @Nullable List owners; private @Nullable List restorableByUserIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSnapshotIdsResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -92,6 +75,7 @@ public Builder(GetSnapshotIdsResult defaults) { this.restorableByUserIds = defaults.restorableByUserIds; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -99,10 +83,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetSnapshotIdsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -110,6 +96,7 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder owners(@Nullable List owners) { this.owners = owners; return this; @@ -117,14 +104,22 @@ public Builder owners(@Nullable List owners) { public Builder owners(String... owners) { return owners(List.of(owners)); } + @CustomType.Setter public Builder restorableByUserIds(@Nullable List restorableByUserIds) { this.restorableByUserIds = restorableByUserIds; return this; } public Builder restorableByUserIds(String... restorableByUserIds) { return restorableByUserIds(List.of(restorableByUserIds)); - } public GetSnapshotIdsResult build() { - return new GetSnapshotIdsResult(filters, id, ids, owners, restorableByUserIds); + } + public GetSnapshotIdsResult build() { + final var o = new GetSnapshotIdsResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.owners = owners; + o.restorableByUserIds = restorableByUserIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotResult.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotResult.java index e47a6504f4b..d29879d42e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetSnapshotResult.java @@ -20,127 +20,84 @@ public final class GetSnapshotResult { * @return Amazon Resource Name (ARN) of the EBS Snapshot. * */ - private final String arn; + private String arn; /** * @return The data encryption key identifier for the snapshot. * */ - private final String dataEncryptionKeyId; + private String dataEncryptionKeyId; /** * @return A description for the snapshot * */ - private final String description; + private String description; /** * @return Whether the snapshot is encrypted. * */ - private final Boolean encrypted; - private final @Nullable List filters; + private Boolean encrypted; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The ARN for the KMS encryption key. * */ - private final String kmsKeyId; - private final @Nullable Boolean mostRecent; + private String kmsKeyId; + private @Nullable Boolean mostRecent; /** * @return The ARN of the Outpost on which the snapshot is stored. * */ - private final String outpostArn; + private String outpostArn; /** * @return Value from an Amazon-maintained list (`amazon`, `aws-marketplace`, `microsoft`) of snapshot owners. * */ - private final String ownerAlias; + private String ownerAlias; /** * @return The AWS account ID of the EBS snapshot owner. * */ - private final String ownerId; - private final @Nullable List owners; - private final @Nullable List restorableByUserIds; + private String ownerId; + private @Nullable List owners; + private @Nullable List restorableByUserIds; /** * @return The snapshot ID (e.g., snap-59fcb34e). * */ - private final String snapshotId; - private final @Nullable List snapshotIds; + private String snapshotId; + private @Nullable List snapshotIds; /** * @return The snapshot state. * */ - private final String state; + private String state; /** * @return The storage tier in which the snapshot is stored. * */ - private final String storageTier; + private String storageTier; /** * @return A map of tags for the resource. * */ - private final Map tags; + private Map tags; /** * @return The volume ID (e.g., vol-59fcb34e). * */ - private final String volumeId; + private String volumeId; /** * @return The size of the drive in GiBs. * */ - private final Integer volumeSize; - - @CustomType.Constructor - private GetSnapshotResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("dataEncryptionKeyId") String dataEncryptionKeyId, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("mostRecent") @Nullable Boolean mostRecent, - @CustomType.Parameter("outpostArn") String outpostArn, - @CustomType.Parameter("ownerAlias") String ownerAlias, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("owners") @Nullable List owners, - @CustomType.Parameter("restorableByUserIds") @Nullable List restorableByUserIds, - @CustomType.Parameter("snapshotId") String snapshotId, - @CustomType.Parameter("snapshotIds") @Nullable List snapshotIds, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("storageTier") String storageTier, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("volumeId") String volumeId, - @CustomType.Parameter("volumeSize") Integer volumeSize) { - this.arn = arn; - this.dataEncryptionKeyId = dataEncryptionKeyId; - this.description = description; - this.encrypted = encrypted; - this.filters = filters; - this.id = id; - this.kmsKeyId = kmsKeyId; - this.mostRecent = mostRecent; - this.outpostArn = outpostArn; - this.ownerAlias = ownerAlias; - this.ownerId = ownerId; - this.owners = owners; - this.restorableByUserIds = restorableByUserIds; - this.snapshotId = snapshotId; - this.snapshotIds = snapshotIds; - this.state = state; - this.storageTier = storageTier; - this.tags = tags; - this.volumeId = volumeId; - this.volumeSize = volumeSize; - } + private Integer volumeSize; + private GetSnapshotResult() {} /** * @return Amazon Resource Name (ARN) of the EBS Snapshot. * @@ -269,7 +226,7 @@ public static Builder builder() { public static Builder builder(GetSnapshotResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String dataEncryptionKeyId; @@ -291,11 +248,7 @@ public static final class Builder { private Map tags; private String volumeId; private Integer volumeSize; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSnapshotResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -320,22 +273,27 @@ public Builder(GetSnapshotResult defaults) { this.volumeSize = defaults.volumeSize; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder dataEncryptionKeyId(String dataEncryptionKeyId) { this.dataEncryptionKeyId = Objects.requireNonNull(dataEncryptionKeyId); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -343,30 +301,37 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetSnapshotFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { this.mostRecent = mostRecent; return this; } + @CustomType.Setter public Builder outpostArn(String outpostArn) { this.outpostArn = Objects.requireNonNull(outpostArn); return this; } + @CustomType.Setter public Builder ownerAlias(String ownerAlias) { this.ownerAlias = Objects.requireNonNull(ownerAlias); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder owners(@Nullable List owners) { this.owners = owners; return this; @@ -374,6 +339,7 @@ public Builder owners(@Nullable List owners) { public Builder owners(String... owners) { return owners(List.of(owners)); } + @CustomType.Setter public Builder restorableByUserIds(@Nullable List restorableByUserIds) { this.restorableByUserIds = restorableByUserIds; return this; @@ -381,10 +347,12 @@ public Builder restorableByUserIds(@Nullable List restorableByUserIds) { public Builder restorableByUserIds(String... restorableByUserIds) { return restorableByUserIds(List.of(restorableByUserIds)); } + @CustomType.Setter public Builder snapshotId(String snapshotId) { this.snapshotId = Objects.requireNonNull(snapshotId); return this; } + @CustomType.Setter public Builder snapshotIds(@Nullable List snapshotIds) { this.snapshotIds = snapshotIds; return this; @@ -392,27 +360,54 @@ public Builder snapshotIds(@Nullable List snapshotIds) { public Builder snapshotIds(String... snapshotIds) { return snapshotIds(List.of(snapshotIds)); } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder storageTier(String storageTier) { this.storageTier = Objects.requireNonNull(storageTier); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder volumeId(String volumeId) { this.volumeId = Objects.requireNonNull(volumeId); return this; } + @CustomType.Setter public Builder volumeSize(Integer volumeSize) { this.volumeSize = Objects.requireNonNull(volumeSize); return this; - } public GetSnapshotResult build() { - return new GetSnapshotResult(arn, dataEncryptionKeyId, description, encrypted, filters, id, kmsKeyId, mostRecent, outpostArn, ownerAlias, ownerId, owners, restorableByUserIds, snapshotId, snapshotIds, state, storageTier, tags, volumeId, volumeSize); + } + public GetSnapshotResult build() { + final var o = new GetSnapshotResult(); + o.arn = arn; + o.dataEncryptionKeyId = dataEncryptionKeyId; + o.description = description; + o.encrypted = encrypted; + o.filters = filters; + o.id = id; + o.kmsKeyId = kmsKeyId; + o.mostRecent = mostRecent; + o.outpostArn = outpostArn; + o.ownerAlias = ownerAlias; + o.ownerId = ownerId; + o.owners = owners; + o.restorableByUserIds = restorableByUserIds; + o.snapshotId = snapshotId; + o.snapshotIds = snapshotIds; + o.state = state; + o.storageTier = storageTier; + o.tags = tags; + o.volumeId = volumeId; + o.volumeSize = volumeSize; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetVolumeFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetVolumeFilter.java index fff257a337d..739dd84840a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetVolumeFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetVolumeFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetVolumeFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetVolumeFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetVolumeFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetVolumeFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVolumeFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVolumeFilter build() { - return new GetVolumeFilter(name, values); + } + public GetVolumeFilter build() { + final var o = new GetVolumeFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetVolumeResult.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetVolumeResult.java index e9bc99d7d55..de15cf74e7d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetVolumeResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/GetVolumeResult.java @@ -20,111 +20,76 @@ public final class GetVolumeResult { * @return The volume ARN (e.g., arn:aws:ec2:us-east-1:0123456789012:volume/vol-59fcb34e). * */ - private final String arn; + private String arn; /** * @return The AZ where the EBS volume exists. * */ - private final String availabilityZone; + private String availabilityZone; /** * @return Whether the disk is encrypted. * */ - private final Boolean encrypted; - private final @Nullable List filters; + private Boolean encrypted; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The amount of IOPS for the disk. * */ - private final Integer iops; + private Integer iops; /** * @return The ARN for the KMS encryption key. * */ - private final String kmsKeyId; - private final @Nullable Boolean mostRecent; + private String kmsKeyId; + private @Nullable Boolean mostRecent; /** * @return (Optional) Specifies whether Amazon EBS Multi-Attach is enabled. * */ - private final Boolean multiAttachEnabled; + private Boolean multiAttachEnabled; /** * @return The Amazon Resource Name (ARN) of the Outpost. * */ - private final String outpostArn; + private String outpostArn; /** * @return The size of the drive in GiBs. * */ - private final Integer size; + private Integer size; /** * @return The snapshot_id the EBS volume is based off. * */ - private final String snapshotId; + private String snapshotId; /** * @return A map of tags for the resource. * */ - private final Map tags; + private Map tags; /** * @return The throughput that the volume supports, in MiB/s. * */ - private final Integer throughput; + private Integer throughput; /** * @return The volume ID (e.g., vol-59fcb34e). * */ - private final String volumeId; + private String volumeId; /** * @return The type of EBS volume. * */ - private final String volumeType; - - @CustomType.Constructor - private GetVolumeResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("iops") Integer iops, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("mostRecent") @Nullable Boolean mostRecent, - @CustomType.Parameter("multiAttachEnabled") Boolean multiAttachEnabled, - @CustomType.Parameter("outpostArn") String outpostArn, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("snapshotId") String snapshotId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("throughput") Integer throughput, - @CustomType.Parameter("volumeId") String volumeId, - @CustomType.Parameter("volumeType") String volumeType) { - this.arn = arn; - this.availabilityZone = availabilityZone; - this.encrypted = encrypted; - this.filters = filters; - this.id = id; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.mostRecent = mostRecent; - this.multiAttachEnabled = multiAttachEnabled; - this.outpostArn = outpostArn; - this.size = size; - this.snapshotId = snapshotId; - this.tags = tags; - this.throughput = throughput; - this.volumeId = volumeId; - this.volumeType = volumeType; - } + private String volumeType; + private GetVolumeResult() {} /** * @return The volume ARN (e.g., arn:aws:ec2:us-east-1:0123456789012:volume/vol-59fcb34e). * @@ -237,7 +202,7 @@ public static Builder builder() { public static Builder builder(GetVolumeResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String availabilityZone; @@ -255,11 +220,7 @@ public static final class Builder { private Integer throughput; private String volumeId; private String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVolumeResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -280,18 +241,22 @@ public Builder(GetVolumeResult defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -299,55 +264,85 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVolumeFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder iops(Integer iops) { this.iops = Objects.requireNonNull(iops); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { this.mostRecent = mostRecent; return this; } + @CustomType.Setter public Builder multiAttachEnabled(Boolean multiAttachEnabled) { this.multiAttachEnabled = Objects.requireNonNull(multiAttachEnabled); return this; } + @CustomType.Setter public Builder outpostArn(String outpostArn) { this.outpostArn = Objects.requireNonNull(outpostArn); return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder snapshotId(String snapshotId) { this.snapshotId = Objects.requireNonNull(snapshotId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder throughput(Integer throughput) { this.throughput = Objects.requireNonNull(throughput); return this; } + @CustomType.Setter public Builder volumeId(String volumeId) { this.volumeId = Objects.requireNonNull(volumeId); return this; } + @CustomType.Setter public Builder volumeType(String volumeType) { this.volumeType = Objects.requireNonNull(volumeType); return this; - } public GetVolumeResult build() { - return new GetVolumeResult(arn, availabilityZone, encrypted, filters, id, iops, kmsKeyId, mostRecent, multiAttachEnabled, outpostArn, size, snapshotId, tags, throughput, volumeId, volumeType); + } + public GetVolumeResult build() { + final var o = new GetVolumeResult(); + o.arn = arn; + o.availabilityZone = availabilityZone; + o.encrypted = encrypted; + o.filters = filters; + o.id = id; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.mostRecent = mostRecent; + o.multiAttachEnabled = multiAttachEnabled; + o.outpostArn = outpostArn; + o.size = size; + o.snapshotId = snapshotId; + o.tags = tags; + o.throughput = throughput; + o.volumeId = volumeId; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/SnapshotImportClientData.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/SnapshotImportClientData.java index 9d79929899f..f50d8ba7e25 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/SnapshotImportClientData.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/SnapshotImportClientData.java @@ -16,35 +16,24 @@ public final class SnapshotImportClientData { * @return A user-defined comment about the disk upload. * */ - private final @Nullable String comment; + private @Nullable String comment; /** * @return The time that the disk upload ends. * */ - private final @Nullable String uploadEnd; + private @Nullable String uploadEnd; /** * @return The size of the uploaded disk image, in GiB. * */ - private final @Nullable Double uploadSize; + private @Nullable Double uploadSize; /** * @return The time that the disk upload starts. * */ - private final @Nullable String uploadStart; - - @CustomType.Constructor - private SnapshotImportClientData( - @CustomType.Parameter("comment") @Nullable String comment, - @CustomType.Parameter("uploadEnd") @Nullable String uploadEnd, - @CustomType.Parameter("uploadSize") @Nullable Double uploadSize, - @CustomType.Parameter("uploadStart") @Nullable String uploadStart) { - this.comment = comment; - this.uploadEnd = uploadEnd; - this.uploadSize = uploadSize; - this.uploadStart = uploadStart; - } + private @Nullable String uploadStart; + private SnapshotImportClientData() {} /** * @return A user-defined comment about the disk upload. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(SnapshotImportClientData defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String comment; private @Nullable String uploadEnd; private @Nullable Double uploadSize; private @Nullable String uploadStart; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SnapshotImportClientData defaults) { Objects.requireNonNull(defaults); this.comment = defaults.comment; @@ -100,23 +85,33 @@ public Builder(SnapshotImportClientData defaults) { this.uploadStart = defaults.uploadStart; } + @CustomType.Setter public Builder comment(@Nullable String comment) { this.comment = comment; return this; } + @CustomType.Setter public Builder uploadEnd(@Nullable String uploadEnd) { this.uploadEnd = uploadEnd; return this; } + @CustomType.Setter public Builder uploadSize(@Nullable Double uploadSize) { this.uploadSize = uploadSize; return this; } + @CustomType.Setter public Builder uploadStart(@Nullable String uploadStart) { this.uploadStart = uploadStart; return this; - } public SnapshotImportClientData build() { - return new SnapshotImportClientData(comment, uploadEnd, uploadSize, uploadStart); + } + public SnapshotImportClientData build() { + final var o = new SnapshotImportClientData(); + o.comment = comment; + o.uploadEnd = uploadEnd; + o.uploadSize = uploadSize; + o.uploadStart = uploadStart; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/SnapshotImportDiskContainer.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/SnapshotImportDiskContainer.java index f1490d87099..3d9dffa11f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/SnapshotImportDiskContainer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/SnapshotImportDiskContainer.java @@ -16,35 +16,24 @@ public final class SnapshotImportDiskContainer { * @return The description of the disk image being imported. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return The format of the disk image being imported. One of `VHD` or `VMDK`. * */ - private final String format; + private String format; /** * @return The URL to the Amazon S3-based disk image being imported. It can either be a https URL (https://..) or an Amazon S3 URL (s3://..). One of `url` or `user_bucket` must be set. * */ - private final @Nullable String url; + private @Nullable String url; /** * @return The Amazon S3 bucket for the disk image. One of `url` or `user_bucket` must be set. Detailed below. * */ - private final @Nullable SnapshotImportDiskContainerUserBucket userBucket; - - @CustomType.Constructor - private SnapshotImportDiskContainer( - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("format") String format, - @CustomType.Parameter("url") @Nullable String url, - @CustomType.Parameter("userBucket") @Nullable SnapshotImportDiskContainerUserBucket userBucket) { - this.description = description; - this.format = format; - this.url = url; - this.userBucket = userBucket; - } + private @Nullable SnapshotImportDiskContainerUserBucket userBucket; + private SnapshotImportDiskContainer() {} /** * @return The description of the disk image being imported. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(SnapshotImportDiskContainer defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String description; private String format; private @Nullable String url; private @Nullable SnapshotImportDiskContainerUserBucket userBucket; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SnapshotImportDiskContainer defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; @@ -100,23 +85,33 @@ public Builder(SnapshotImportDiskContainer defaults) { this.userBucket = defaults.userBucket; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder format(String format) { this.format = Objects.requireNonNull(format); return this; } + @CustomType.Setter public Builder url(@Nullable String url) { this.url = url; return this; } + @CustomType.Setter public Builder userBucket(@Nullable SnapshotImportDiskContainerUserBucket userBucket) { this.userBucket = userBucket; return this; - } public SnapshotImportDiskContainer build() { - return new SnapshotImportDiskContainer(description, format, url, userBucket); + } + public SnapshotImportDiskContainer build() { + final var o = new SnapshotImportDiskContainer(); + o.description = description; + o.format = format; + o.url = url; + o.userBucket = userBucket; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/SnapshotImportDiskContainerUserBucket.java b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/SnapshotImportDiskContainerUserBucket.java index 7d94f744bf1..95636389806 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/SnapshotImportDiskContainerUserBucket.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ebs/outputs/SnapshotImportDiskContainerUserBucket.java @@ -13,21 +13,14 @@ public final class SnapshotImportDiskContainerUserBucket { * @return The name of the Amazon S3 bucket where the disk image is located. * */ - private final String s3Bucket; + private String s3Bucket; /** * @return The file name of the disk image. * */ - private final String s3Key; - - @CustomType.Constructor - private SnapshotImportDiskContainerUserBucket( - @CustomType.Parameter("s3Bucket") String s3Bucket, - @CustomType.Parameter("s3Key") String s3Key) { - this.s3Bucket = s3Bucket; - this.s3Key = s3Key; - } + private String s3Key; + private SnapshotImportDiskContainerUserBucket() {} /** * @return The name of the Amazon S3 bucket where the disk image is located. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(SnapshotImportDiskContainerUserBucket defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String s3Bucket; private String s3Key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SnapshotImportDiskContainerUserBucket defaults) { Objects.requireNonNull(defaults); this.s3Bucket = defaults.s3Bucket; this.s3Key = defaults.s3Key; } + @CustomType.Setter public Builder s3Bucket(String s3Bucket) { this.s3Bucket = Objects.requireNonNull(s3Bucket); return this; } + @CustomType.Setter public Builder s3Key(String s3Key) { this.s3Key = Objects.requireNonNull(s3Key); return this; - } public SnapshotImportDiskContainerUserBucket build() { - return new SnapshotImportDiskContainerUserBucket(s3Bucket, s3Key); + } + public SnapshotImportDiskContainerUserBucket build() { + final var o = new SnapshotImportDiskContainerUserBucket(); + o.s3Bucket = s3Bucket; + o.s3Key = s3Key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiCopyEbsBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiCopyEbsBlockDevice.java index d5d7352c26b..976a9ae0f99 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiCopyEbsBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiCopyEbsBlockDevice.java @@ -18,75 +18,54 @@ public final class AmiCopyEbsBlockDevice { * support each created instance will be deleted once that instance is terminated. * */ - private final @Nullable Boolean deleteOnTermination; + private @Nullable Boolean deleteOnTermination; /** * @return The path at which the device is exposed to created instances. * */ - private final @Nullable String deviceName; + private @Nullable String deviceName; /** * @return Boolean controlling whether the created EBS volumes will be encrypted. Can't be used with `snapshot_id`. * */ - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return Number of I/O operations per second the * created volumes will support. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The ARN of the Outpost on which the snapshot is stored. * */ - private final @Nullable String outpostArn; + private @Nullable String outpostArn; /** * @return The id of an EBS snapshot that will be used to initialize the created * EBS volumes. If set, the `volume_size` attribute must be at least as large as the referenced * snapshot. * */ - private final @Nullable String snapshotId; + private @Nullable String snapshotId; /** * @return The throughput that the EBS volume supports, in MiB/s. Only valid for `volume_type` of `gp3`. * */ - private final @Nullable Integer throughput; + private @Nullable Integer throughput; /** * @return The size of created volumes in GiB. * If `snapshot_id` is set and `volume_size` is omitted then the volume will have the same size * as the selected snapshot. * */ - private final @Nullable Integer volumeSize; + private @Nullable Integer volumeSize; /** * @return The type of EBS volume to create. Can be `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1` or `st1` (Default: `standard`). * */ - private final @Nullable String volumeType; - - @CustomType.Constructor - private AmiCopyEbsBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") @Nullable String deviceName, - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("outpostArn") @Nullable String outpostArn, - @CustomType.Parameter("snapshotId") @Nullable String snapshotId, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.encrypted = encrypted; - this.iops = iops; - this.outpostArn = outpostArn; - this.snapshotId = snapshotId; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable String volumeType; + private AmiCopyEbsBlockDevice() {} /** * @return Boolean controlling whether the EBS volumes created to * support each created instance will be deleted once that instance is terminated. @@ -164,7 +143,7 @@ public static Builder builder() { public static Builder builder(AmiCopyEbsBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private @Nullable String deviceName; @@ -175,11 +154,7 @@ public static final class Builder { private @Nullable Integer throughput; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AmiCopyEbsBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -193,43 +168,63 @@ public Builder(AmiCopyEbsBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder deviceName(@Nullable String deviceName) { this.deviceName = deviceName; return this; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder outpostArn(@Nullable String outpostArn) { this.outpostArn = outpostArn; return this; } + @CustomType.Setter public Builder snapshotId(@Nullable String snapshotId) { this.snapshotId = snapshotId; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public AmiCopyEbsBlockDevice build() { - return new AmiCopyEbsBlockDevice(deleteOnTermination, deviceName, encrypted, iops, outpostArn, snapshotId, throughput, volumeSize, volumeType); + } + public AmiCopyEbsBlockDevice build() { + final var o = new AmiCopyEbsBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.encrypted = encrypted; + o.iops = iops; + o.outpostArn = outpostArn; + o.snapshotId = snapshotId; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiCopyEphemeralBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiCopyEphemeralBlockDevice.java index 244dc289338..6c886f1c405 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiCopyEphemeralBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiCopyEphemeralBlockDevice.java @@ -15,22 +15,15 @@ public final class AmiCopyEphemeralBlockDevice { * @return The path at which the device is exposed to created instances. * */ - private final @Nullable String deviceName; + private @Nullable String deviceName; /** * @return A name for the ephemeral device, of the form "ephemeralN" where * *N* is a volume number starting from zero. * */ - private final @Nullable String virtualName; - - @CustomType.Constructor - private AmiCopyEphemeralBlockDevice( - @CustomType.Parameter("deviceName") @Nullable String deviceName, - @CustomType.Parameter("virtualName") @Nullable String virtualName) { - this.deviceName = deviceName; - this.virtualName = virtualName; - } + private @Nullable String virtualName; + private AmiCopyEphemeralBlockDevice() {} /** * @return The path at which the device is exposed to created instances. * @@ -54,30 +47,32 @@ public static Builder builder() { public static Builder builder(AmiCopyEphemeralBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deviceName; private @Nullable String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AmiCopyEphemeralBlockDevice defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(@Nullable String deviceName) { this.deviceName = deviceName; return this; } + @CustomType.Setter public Builder virtualName(@Nullable String virtualName) { this.virtualName = virtualName; return this; - } public AmiCopyEphemeralBlockDevice build() { - return new AmiCopyEphemeralBlockDevice(deviceName, virtualName); + } + public AmiCopyEphemeralBlockDevice build() { + final var o = new AmiCopyEphemeralBlockDevice(); + o.deviceName = deviceName; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiEbsBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiEbsBlockDevice.java index 7fa6f8f14c8..426c8dffaa4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiEbsBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiEbsBlockDevice.java @@ -18,75 +18,54 @@ public final class AmiEbsBlockDevice { * support each created instance will be deleted once that instance is terminated. * */ - private final @Nullable Boolean deleteOnTermination; + private @Nullable Boolean deleteOnTermination; /** * @return The path at which the device is exposed to created instances. * */ - private final String deviceName; + private String deviceName; /** * @return Boolean controlling whether the created EBS volumes will be encrypted. Can't be used with `snapshot_id`. * */ - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return Number of I/O operations per second the * created volumes will support. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The ARN of the Outpost on which the snapshot is stored. * */ - private final @Nullable String outpostArn; + private @Nullable String outpostArn; /** * @return The id of an EBS snapshot that will be used to initialize the created * EBS volumes. If set, the `volume_size` attribute must be at least as large as the referenced * snapshot. * */ - private final @Nullable String snapshotId; + private @Nullable String snapshotId; /** * @return The throughput that the EBS volume supports, in MiB/s. Only valid for `volume_type` of `gp3`. * */ - private final @Nullable Integer throughput; + private @Nullable Integer throughput; /** * @return The size of created volumes in GiB. * If `snapshot_id` is set and `volume_size` is omitted then the volume will have the same size * as the selected snapshot. * */ - private final @Nullable Integer volumeSize; + private @Nullable Integer volumeSize; /** * @return The type of EBS volume to create. Can be `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1` or `st1` (Default: `standard`). * */ - private final @Nullable String volumeType; - - @CustomType.Constructor - private AmiEbsBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("outpostArn") @Nullable String outpostArn, - @CustomType.Parameter("snapshotId") @Nullable String snapshotId, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.encrypted = encrypted; - this.iops = iops; - this.outpostArn = outpostArn; - this.snapshotId = snapshotId; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable String volumeType; + private AmiEbsBlockDevice() {} /** * @return Boolean controlling whether the EBS volumes created to * support each created instance will be deleted once that instance is terminated. @@ -164,7 +143,7 @@ public static Builder builder() { public static Builder builder(AmiEbsBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private String deviceName; @@ -175,11 +154,7 @@ public static final class Builder { private @Nullable Integer throughput; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AmiEbsBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -193,43 +168,63 @@ public Builder(AmiEbsBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder outpostArn(@Nullable String outpostArn) { this.outpostArn = outpostArn; return this; } + @CustomType.Setter public Builder snapshotId(@Nullable String snapshotId) { this.snapshotId = snapshotId; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public AmiEbsBlockDevice build() { - return new AmiEbsBlockDevice(deleteOnTermination, deviceName, encrypted, iops, outpostArn, snapshotId, throughput, volumeSize, volumeType); + } + public AmiEbsBlockDevice build() { + final var o = new AmiEbsBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.encrypted = encrypted; + o.iops = iops; + o.outpostArn = outpostArn; + o.snapshotId = snapshotId; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiEphemeralBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiEphemeralBlockDevice.java index 1587c56fc6e..a5fa15a3887 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiEphemeralBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiEphemeralBlockDevice.java @@ -13,22 +13,15 @@ public final class AmiEphemeralBlockDevice { * @return The path at which the device is exposed to created instances. * */ - private final String deviceName; + private String deviceName; /** * @return A name for the ephemeral device, of the form "ephemeralN" where * *N* is a volume number starting from zero. * */ - private final String virtualName; - - @CustomType.Constructor - private AmiEphemeralBlockDevice( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("virtualName") String virtualName) { - this.deviceName = deviceName; - this.virtualName = virtualName; - } + private String virtualName; + private AmiEphemeralBlockDevice() {} /** * @return The path at which the device is exposed to created instances. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(AmiEphemeralBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AmiEphemeralBlockDevice defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder virtualName(String virtualName) { this.virtualName = Objects.requireNonNull(virtualName); return this; - } public AmiEphemeralBlockDevice build() { - return new AmiEphemeralBlockDevice(deviceName, virtualName); + } + public AmiEphemeralBlockDevice build() { + final var o = new AmiEphemeralBlockDevice(); + o.deviceName = deviceName; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiFromInstanceEbsBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiFromInstanceEbsBlockDevice.java index 632057a6149..1c368d134f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiFromInstanceEbsBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiFromInstanceEbsBlockDevice.java @@ -18,75 +18,54 @@ public final class AmiFromInstanceEbsBlockDevice { * support each created instance will be deleted once that instance is terminated. * */ - private final @Nullable Boolean deleteOnTermination; + private @Nullable Boolean deleteOnTermination; /** * @return The path at which the device is exposed to created instances. * */ - private final @Nullable String deviceName; + private @Nullable String deviceName; /** * @return Boolean controlling whether the created EBS volumes will be encrypted. Can't be used with `snapshot_id`. * */ - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return Number of I/O operations per second the * created volumes will support. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The ARN of the Outpost on which the snapshot is stored. * */ - private final @Nullable String outpostArn; + private @Nullable String outpostArn; /** * @return The id of an EBS snapshot that will be used to initialize the created * EBS volumes. If set, the `volume_size` attribute must be at least as large as the referenced * snapshot. * */ - private final @Nullable String snapshotId; + private @Nullable String snapshotId; /** * @return The throughput that the EBS volume supports, in MiB/s. Only valid for `volume_type` of `gp3`. * */ - private final @Nullable Integer throughput; + private @Nullable Integer throughput; /** * @return The size of created volumes in GiB. * If `snapshot_id` is set and `volume_size` is omitted then the volume will have the same size * as the selected snapshot. * */ - private final @Nullable Integer volumeSize; + private @Nullable Integer volumeSize; /** * @return The type of EBS volume to create. Can be `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1` or `st1` (Default: `standard`). * */ - private final @Nullable String volumeType; - - @CustomType.Constructor - private AmiFromInstanceEbsBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") @Nullable String deviceName, - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("outpostArn") @Nullable String outpostArn, - @CustomType.Parameter("snapshotId") @Nullable String snapshotId, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.encrypted = encrypted; - this.iops = iops; - this.outpostArn = outpostArn; - this.snapshotId = snapshotId; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable String volumeType; + private AmiFromInstanceEbsBlockDevice() {} /** * @return Boolean controlling whether the EBS volumes created to * support each created instance will be deleted once that instance is terminated. @@ -164,7 +143,7 @@ public static Builder builder() { public static Builder builder(AmiFromInstanceEbsBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private @Nullable String deviceName; @@ -175,11 +154,7 @@ public static final class Builder { private @Nullable Integer throughput; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AmiFromInstanceEbsBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -193,43 +168,63 @@ public Builder(AmiFromInstanceEbsBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder deviceName(@Nullable String deviceName) { this.deviceName = deviceName; return this; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder outpostArn(@Nullable String outpostArn) { this.outpostArn = outpostArn; return this; } + @CustomType.Setter public Builder snapshotId(@Nullable String snapshotId) { this.snapshotId = snapshotId; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public AmiFromInstanceEbsBlockDevice build() { - return new AmiFromInstanceEbsBlockDevice(deleteOnTermination, deviceName, encrypted, iops, outpostArn, snapshotId, throughput, volumeSize, volumeType); + } + public AmiFromInstanceEbsBlockDevice build() { + final var o = new AmiFromInstanceEbsBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.encrypted = encrypted; + o.iops = iops; + o.outpostArn = outpostArn; + o.snapshotId = snapshotId; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiFromInstanceEphemeralBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiFromInstanceEphemeralBlockDevice.java index 8bbd5dd9057..032db36f2e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiFromInstanceEphemeralBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/AmiFromInstanceEphemeralBlockDevice.java @@ -15,22 +15,15 @@ public final class AmiFromInstanceEphemeralBlockDevice { * @return The path at which the device is exposed to created instances. * */ - private final @Nullable String deviceName; + private @Nullable String deviceName; /** * @return A name for the ephemeral device, of the form "ephemeralN" where * *N* is a volume number starting from zero. * */ - private final @Nullable String virtualName; - - @CustomType.Constructor - private AmiFromInstanceEphemeralBlockDevice( - @CustomType.Parameter("deviceName") @Nullable String deviceName, - @CustomType.Parameter("virtualName") @Nullable String virtualName) { - this.deviceName = deviceName; - this.virtualName = virtualName; - } + private @Nullable String virtualName; + private AmiFromInstanceEphemeralBlockDevice() {} /** * @return The path at which the device is exposed to created instances. * @@ -54,30 +47,32 @@ public static Builder builder() { public static Builder builder(AmiFromInstanceEphemeralBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deviceName; private @Nullable String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AmiFromInstanceEphemeralBlockDevice defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(@Nullable String deviceName) { this.deviceName = deviceName; return this; } + @CustomType.Setter public Builder virtualName(@Nullable String virtualName) { this.virtualName = virtualName; return this; - } public AmiFromInstanceEphemeralBlockDevice build() { - return new AmiFromInstanceEphemeralBlockDevice(deviceName, virtualName); + } + public AmiFromInstanceEphemeralBlockDevice build() { + final var o = new AmiFromInstanceEphemeralBlockDevice(); + o.deviceName = deviceName; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultNetworkAclEgress.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultNetworkAclEgress.java index 207a7a54e96..6ac96e72afd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultNetworkAclEgress.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultNetworkAclEgress.java @@ -16,70 +16,49 @@ public final class DefaultNetworkAclEgress { * @return The action to take. * */ - private final String action; + private String action; /** * @return The CIDR block to match. This must be a valid network mask. * */ - private final @Nullable String cidrBlock; + private @Nullable String cidrBlock; /** * @return The from port to match. * */ - private final Integer fromPort; + private Integer fromPort; /** * @return The ICMP type code to be used. Default 0. * */ - private final @Nullable Integer icmpCode; + private @Nullable Integer icmpCode; /** * @return The ICMP type to be used. Default 0. * */ - private final @Nullable Integer icmpType; + private @Nullable Integer icmpType; /** * @return The IPv6 CIDR block. * */ - private final @Nullable String ipv6CidrBlock; + private @Nullable String ipv6CidrBlock; /** * @return The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0. * */ - private final String protocol; + private String protocol; /** * @return The rule number. Used for ordering. * */ - private final Integer ruleNo; + private Integer ruleNo; /** * @return The to port to match. * */ - private final Integer toPort; - - @CustomType.Constructor - private DefaultNetworkAclEgress( - @CustomType.Parameter("action") String action, - @CustomType.Parameter("cidrBlock") @Nullable String cidrBlock, - @CustomType.Parameter("fromPort") Integer fromPort, - @CustomType.Parameter("icmpCode") @Nullable Integer icmpCode, - @CustomType.Parameter("icmpType") @Nullable Integer icmpType, - @CustomType.Parameter("ipv6CidrBlock") @Nullable String ipv6CidrBlock, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("ruleNo") Integer ruleNo, - @CustomType.Parameter("toPort") Integer toPort) { - this.action = action; - this.cidrBlock = cidrBlock; - this.fromPort = fromPort; - this.icmpCode = icmpCode; - this.icmpType = icmpType; - this.ipv6CidrBlock = ipv6CidrBlock; - this.protocol = protocol; - this.ruleNo = ruleNo; - this.toPort = toPort; - } + private Integer toPort; + private DefaultNetworkAclEgress() {} /** * @return The action to take. * @@ -151,7 +130,7 @@ public static Builder builder() { public static Builder builder(DefaultNetworkAclEgress defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String action; private @Nullable String cidrBlock; @@ -162,11 +141,7 @@ public static final class Builder { private String protocol; private Integer ruleNo; private Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DefaultNetworkAclEgress defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -180,43 +155,63 @@ public Builder(DefaultNetworkAclEgress defaults) { this.toPort = defaults.toPort; } + @CustomType.Setter public Builder action(String action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder cidrBlock(@Nullable String cidrBlock) { this.cidrBlock = cidrBlock; return this; } + @CustomType.Setter public Builder fromPort(Integer fromPort) { this.fromPort = Objects.requireNonNull(fromPort); return this; } + @CustomType.Setter public Builder icmpCode(@Nullable Integer icmpCode) { this.icmpCode = icmpCode; return this; } + @CustomType.Setter public Builder icmpType(@Nullable Integer icmpType) { this.icmpType = icmpType; return this; } + @CustomType.Setter public Builder ipv6CidrBlock(@Nullable String ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder ruleNo(Integer ruleNo) { this.ruleNo = Objects.requireNonNull(ruleNo); return this; } + @CustomType.Setter public Builder toPort(Integer toPort) { this.toPort = Objects.requireNonNull(toPort); return this; - } public DefaultNetworkAclEgress build() { - return new DefaultNetworkAclEgress(action, cidrBlock, fromPort, icmpCode, icmpType, ipv6CidrBlock, protocol, ruleNo, toPort); + } + public DefaultNetworkAclEgress build() { + final var o = new DefaultNetworkAclEgress(); + o.action = action; + o.cidrBlock = cidrBlock; + o.fromPort = fromPort; + o.icmpCode = icmpCode; + o.icmpType = icmpType; + o.ipv6CidrBlock = ipv6CidrBlock; + o.protocol = protocol; + o.ruleNo = ruleNo; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultNetworkAclIngress.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultNetworkAclIngress.java index 1c58a9cfc24..91cf4953bd7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultNetworkAclIngress.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultNetworkAclIngress.java @@ -16,70 +16,49 @@ public final class DefaultNetworkAclIngress { * @return The action to take. * */ - private final String action; + private String action; /** * @return The CIDR block to match. This must be a valid network mask. * */ - private final @Nullable String cidrBlock; + private @Nullable String cidrBlock; /** * @return The from port to match. * */ - private final Integer fromPort; + private Integer fromPort; /** * @return The ICMP type code to be used. Default 0. * */ - private final @Nullable Integer icmpCode; + private @Nullable Integer icmpCode; /** * @return The ICMP type to be used. Default 0. * */ - private final @Nullable Integer icmpType; + private @Nullable Integer icmpType; /** * @return The IPv6 CIDR block. * */ - private final @Nullable String ipv6CidrBlock; + private @Nullable String ipv6CidrBlock; /** * @return The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0. * */ - private final String protocol; + private String protocol; /** * @return The rule number. Used for ordering. * */ - private final Integer ruleNo; + private Integer ruleNo; /** * @return The to port to match. * */ - private final Integer toPort; - - @CustomType.Constructor - private DefaultNetworkAclIngress( - @CustomType.Parameter("action") String action, - @CustomType.Parameter("cidrBlock") @Nullable String cidrBlock, - @CustomType.Parameter("fromPort") Integer fromPort, - @CustomType.Parameter("icmpCode") @Nullable Integer icmpCode, - @CustomType.Parameter("icmpType") @Nullable Integer icmpType, - @CustomType.Parameter("ipv6CidrBlock") @Nullable String ipv6CidrBlock, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("ruleNo") Integer ruleNo, - @CustomType.Parameter("toPort") Integer toPort) { - this.action = action; - this.cidrBlock = cidrBlock; - this.fromPort = fromPort; - this.icmpCode = icmpCode; - this.icmpType = icmpType; - this.ipv6CidrBlock = ipv6CidrBlock; - this.protocol = protocol; - this.ruleNo = ruleNo; - this.toPort = toPort; - } + private Integer toPort; + private DefaultNetworkAclIngress() {} /** * @return The action to take. * @@ -151,7 +130,7 @@ public static Builder builder() { public static Builder builder(DefaultNetworkAclIngress defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String action; private @Nullable String cidrBlock; @@ -162,11 +141,7 @@ public static final class Builder { private String protocol; private Integer ruleNo; private Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DefaultNetworkAclIngress defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -180,43 +155,63 @@ public Builder(DefaultNetworkAclIngress defaults) { this.toPort = defaults.toPort; } + @CustomType.Setter public Builder action(String action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder cidrBlock(@Nullable String cidrBlock) { this.cidrBlock = cidrBlock; return this; } + @CustomType.Setter public Builder fromPort(Integer fromPort) { this.fromPort = Objects.requireNonNull(fromPort); return this; } + @CustomType.Setter public Builder icmpCode(@Nullable Integer icmpCode) { this.icmpCode = icmpCode; return this; } + @CustomType.Setter public Builder icmpType(@Nullable Integer icmpType) { this.icmpType = icmpType; return this; } + @CustomType.Setter public Builder ipv6CidrBlock(@Nullable String ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder ruleNo(Integer ruleNo) { this.ruleNo = Objects.requireNonNull(ruleNo); return this; } + @CustomType.Setter public Builder toPort(Integer toPort) { this.toPort = Objects.requireNonNull(toPort); return this; - } public DefaultNetworkAclIngress build() { - return new DefaultNetworkAclIngress(action, cidrBlock, fromPort, icmpCode, icmpType, ipv6CidrBlock, protocol, ruleNo, toPort); + } + public DefaultNetworkAclIngress build() { + final var o = new DefaultNetworkAclIngress(); + o.action = action; + o.cidrBlock = cidrBlock; + o.fromPort = fromPort; + o.icmpCode = icmpCode; + o.icmpType = icmpType; + o.ipv6CidrBlock = ipv6CidrBlock; + o.protocol = protocol; + o.ruleNo = ruleNo; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultRouteTableRoute.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultRouteTableRoute.java index 44ba4a42251..0abcd763907 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultRouteTableRoute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultRouteTableRoute.java @@ -15,91 +15,64 @@ public final class DefaultRouteTableRoute { * @return The CIDR block of the route. * */ - private final @Nullable String cidrBlock; + private @Nullable String cidrBlock; /** * @return The Amazon Resource Name (ARN) of a core network. * */ - private final @Nullable String coreNetworkArn; + private @Nullable String coreNetworkArn; /** * @return The ID of a managed prefix list destination of the route. * */ - private final @Nullable String destinationPrefixListId; + private @Nullable String destinationPrefixListId; /** * @return Identifier of a VPC Egress Only Internet Gateway. * */ - private final @Nullable String egressOnlyGatewayId; + private @Nullable String egressOnlyGatewayId; /** * @return Identifier of a VPC internet gateway or a virtual private gateway. * */ - private final @Nullable String gatewayId; + private @Nullable String gatewayId; /** * @return Identifier of an EC2 instance. * */ - private final @Nullable String instanceId; + private @Nullable String instanceId; /** * @return The Ipv6 CIDR block of the route * */ - private final @Nullable String ipv6CidrBlock; + private @Nullable String ipv6CidrBlock; /** * @return Identifier of a VPC NAT gateway. * */ - private final @Nullable String natGatewayId; + private @Nullable String natGatewayId; /** * @return Identifier of an EC2 network interface. * */ - private final @Nullable String networkInterfaceId; + private @Nullable String networkInterfaceId; /** * @return Identifier of an EC2 Transit Gateway. * */ - private final @Nullable String transitGatewayId; + private @Nullable String transitGatewayId; /** * @return Identifier of a VPC Endpoint. This route must be removed prior to VPC Endpoint deletion. * */ - private final @Nullable String vpcEndpointId; + private @Nullable String vpcEndpointId; /** * @return Identifier of a VPC peering connection. * */ - private final @Nullable String vpcPeeringConnectionId; - - @CustomType.Constructor - private DefaultRouteTableRoute( - @CustomType.Parameter("cidrBlock") @Nullable String cidrBlock, - @CustomType.Parameter("coreNetworkArn") @Nullable String coreNetworkArn, - @CustomType.Parameter("destinationPrefixListId") @Nullable String destinationPrefixListId, - @CustomType.Parameter("egressOnlyGatewayId") @Nullable String egressOnlyGatewayId, - @CustomType.Parameter("gatewayId") @Nullable String gatewayId, - @CustomType.Parameter("instanceId") @Nullable String instanceId, - @CustomType.Parameter("ipv6CidrBlock") @Nullable String ipv6CidrBlock, - @CustomType.Parameter("natGatewayId") @Nullable String natGatewayId, - @CustomType.Parameter("networkInterfaceId") @Nullable String networkInterfaceId, - @CustomType.Parameter("transitGatewayId") @Nullable String transitGatewayId, - @CustomType.Parameter("vpcEndpointId") @Nullable String vpcEndpointId, - @CustomType.Parameter("vpcPeeringConnectionId") @Nullable String vpcPeeringConnectionId) { - this.cidrBlock = cidrBlock; - this.coreNetworkArn = coreNetworkArn; - this.destinationPrefixListId = destinationPrefixListId; - this.egressOnlyGatewayId = egressOnlyGatewayId; - this.gatewayId = gatewayId; - this.instanceId = instanceId; - this.ipv6CidrBlock = ipv6CidrBlock; - this.natGatewayId = natGatewayId; - this.networkInterfaceId = networkInterfaceId; - this.transitGatewayId = transitGatewayId; - this.vpcEndpointId = vpcEndpointId; - this.vpcPeeringConnectionId = vpcPeeringConnectionId; - } + private @Nullable String vpcPeeringConnectionId; + private DefaultRouteTableRoute() {} /** * @return The CIDR block of the route. * @@ -192,7 +165,7 @@ public static Builder builder() { public static Builder builder(DefaultRouteTableRoute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cidrBlock; private @Nullable String coreNetworkArn; @@ -206,11 +179,7 @@ public static final class Builder { private @Nullable String transitGatewayId; private @Nullable String vpcEndpointId; private @Nullable String vpcPeeringConnectionId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DefaultRouteTableRoute defaults) { Objects.requireNonNull(defaults); this.cidrBlock = defaults.cidrBlock; @@ -227,55 +196,81 @@ public Builder(DefaultRouteTableRoute defaults) { this.vpcPeeringConnectionId = defaults.vpcPeeringConnectionId; } + @CustomType.Setter public Builder cidrBlock(@Nullable String cidrBlock) { this.cidrBlock = cidrBlock; return this; } + @CustomType.Setter public Builder coreNetworkArn(@Nullable String coreNetworkArn) { this.coreNetworkArn = coreNetworkArn; return this; } + @CustomType.Setter public Builder destinationPrefixListId(@Nullable String destinationPrefixListId) { this.destinationPrefixListId = destinationPrefixListId; return this; } + @CustomType.Setter public Builder egressOnlyGatewayId(@Nullable String egressOnlyGatewayId) { this.egressOnlyGatewayId = egressOnlyGatewayId; return this; } + @CustomType.Setter public Builder gatewayId(@Nullable String gatewayId) { this.gatewayId = gatewayId; return this; } + @CustomType.Setter public Builder instanceId(@Nullable String instanceId) { this.instanceId = instanceId; return this; } + @CustomType.Setter public Builder ipv6CidrBlock(@Nullable String ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } + @CustomType.Setter public Builder natGatewayId(@Nullable String natGatewayId) { this.natGatewayId = natGatewayId; return this; } + @CustomType.Setter public Builder networkInterfaceId(@Nullable String networkInterfaceId) { this.networkInterfaceId = networkInterfaceId; return this; } + @CustomType.Setter public Builder transitGatewayId(@Nullable String transitGatewayId) { this.transitGatewayId = transitGatewayId; return this; } + @CustomType.Setter public Builder vpcEndpointId(@Nullable String vpcEndpointId) { this.vpcEndpointId = vpcEndpointId; return this; } + @CustomType.Setter public Builder vpcPeeringConnectionId(@Nullable String vpcPeeringConnectionId) { this.vpcPeeringConnectionId = vpcPeeringConnectionId; return this; - } public DefaultRouteTableRoute build() { - return new DefaultRouteTableRoute(cidrBlock, coreNetworkArn, destinationPrefixListId, egressOnlyGatewayId, gatewayId, instanceId, ipv6CidrBlock, natGatewayId, networkInterfaceId, transitGatewayId, vpcEndpointId, vpcPeeringConnectionId); + } + public DefaultRouteTableRoute build() { + final var o = new DefaultRouteTableRoute(); + o.cidrBlock = cidrBlock; + o.coreNetworkArn = coreNetworkArn; + o.destinationPrefixListId = destinationPrefixListId; + o.egressOnlyGatewayId = egressOnlyGatewayId; + o.gatewayId = gatewayId; + o.instanceId = instanceId; + o.ipv6CidrBlock = ipv6CidrBlock; + o.natGatewayId = natGatewayId; + o.networkInterfaceId = networkInterfaceId; + o.transitGatewayId = transitGatewayId; + o.vpcEndpointId = vpcEndpointId; + o.vpcPeeringConnectionId = vpcPeeringConnectionId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultSecurityGroupEgress.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultSecurityGroupEgress.java index 2bf1a00f5aa..0e8f2be0911 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultSecurityGroupEgress.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultSecurityGroupEgress.java @@ -18,70 +18,49 @@ public final class DefaultSecurityGroupEgress { * @return List of CIDR blocks. * */ - private final @Nullable List cidrBlocks; + private @Nullable List cidrBlocks; /** * @return Description of this rule. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return Start port (or ICMP type number if protocol is `icmp`) * */ - private final Integer fromPort; + private Integer fromPort; /** * @return List of IPv6 CIDR blocks. * */ - private final @Nullable List ipv6CidrBlocks; + private @Nullable List ipv6CidrBlocks; /** * @return List of prefix list IDs (for allowing access to VPC endpoints) * */ - private final @Nullable List prefixListIds; + private @Nullable List prefixListIds; /** * @return Protocol. If you select a protocol of "-1" (semantically equivalent to `all`, which is not a valid value here), you must specify a `from_port` and `to_port` equal to `0`. If not `icmp`, `tcp`, `udp`, or `-1` use the [protocol number](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). * */ - private final String protocol; + private String protocol; /** * @return List of security group Group Names if using EC2-Classic, or Group IDs if using a VPC. * */ - private final @Nullable List securityGroups; + private @Nullable List securityGroups; /** * @return Whether the security group itself will be added as a source to this egress rule. * */ - private final @Nullable Boolean self; + private @Nullable Boolean self; /** * @return End range port (or ICMP code if protocol is `icmp`). * */ - private final Integer toPort; - - @CustomType.Constructor - private DefaultSecurityGroupEgress( - @CustomType.Parameter("cidrBlocks") @Nullable List cidrBlocks, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("fromPort") Integer fromPort, - @CustomType.Parameter("ipv6CidrBlocks") @Nullable List ipv6CidrBlocks, - @CustomType.Parameter("prefixListIds") @Nullable List prefixListIds, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("securityGroups") @Nullable List securityGroups, - @CustomType.Parameter("self") @Nullable Boolean self, - @CustomType.Parameter("toPort") Integer toPort) { - this.cidrBlocks = cidrBlocks; - this.description = description; - this.fromPort = fromPort; - this.ipv6CidrBlocks = ipv6CidrBlocks; - this.prefixListIds = prefixListIds; - this.protocol = protocol; - this.securityGroups = securityGroups; - this.self = self; - this.toPort = toPort; - } + private Integer toPort; + private DefaultSecurityGroupEgress() {} /** * @return List of CIDR blocks. * @@ -153,7 +132,7 @@ public static Builder builder() { public static Builder builder(DefaultSecurityGroupEgress defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List cidrBlocks; private @Nullable String description; @@ -164,11 +143,7 @@ public static final class Builder { private @Nullable List securityGroups; private @Nullable Boolean self; private Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DefaultSecurityGroupEgress defaults) { Objects.requireNonNull(defaults); this.cidrBlocks = defaults.cidrBlocks; @@ -182,6 +157,7 @@ public Builder(DefaultSecurityGroupEgress defaults) { this.toPort = defaults.toPort; } + @CustomType.Setter public Builder cidrBlocks(@Nullable List cidrBlocks) { this.cidrBlocks = cidrBlocks; return this; @@ -189,14 +165,17 @@ public Builder cidrBlocks(@Nullable List cidrBlocks) { public Builder cidrBlocks(String... cidrBlocks) { return cidrBlocks(List.of(cidrBlocks)); } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder fromPort(Integer fromPort) { this.fromPort = Objects.requireNonNull(fromPort); return this; } + @CustomType.Setter public Builder ipv6CidrBlocks(@Nullable List ipv6CidrBlocks) { this.ipv6CidrBlocks = ipv6CidrBlocks; return this; @@ -204,6 +183,7 @@ public Builder ipv6CidrBlocks(@Nullable List ipv6CidrBlocks) { public Builder ipv6CidrBlocks(String... ipv6CidrBlocks) { return ipv6CidrBlocks(List.of(ipv6CidrBlocks)); } + @CustomType.Setter public Builder prefixListIds(@Nullable List prefixListIds) { this.prefixListIds = prefixListIds; return this; @@ -211,10 +191,12 @@ public Builder prefixListIds(@Nullable List prefixListIds) { public Builder prefixListIds(String... prefixListIds) { return prefixListIds(List.of(prefixListIds)); } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { this.securityGroups = securityGroups; return this; @@ -222,15 +204,28 @@ public Builder securityGroups(@Nullable List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder self(@Nullable Boolean self) { this.self = self; return this; } + @CustomType.Setter public Builder toPort(Integer toPort) { this.toPort = Objects.requireNonNull(toPort); return this; - } public DefaultSecurityGroupEgress build() { - return new DefaultSecurityGroupEgress(cidrBlocks, description, fromPort, ipv6CidrBlocks, prefixListIds, protocol, securityGroups, self, toPort); + } + public DefaultSecurityGroupEgress build() { + final var o = new DefaultSecurityGroupEgress(); + o.cidrBlocks = cidrBlocks; + o.description = description; + o.fromPort = fromPort; + o.ipv6CidrBlocks = ipv6CidrBlocks; + o.prefixListIds = prefixListIds; + o.protocol = protocol; + o.securityGroups = securityGroups; + o.self = self; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultSecurityGroupIngress.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultSecurityGroupIngress.java index f7eecdb1150..9ac411cdb06 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultSecurityGroupIngress.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/DefaultSecurityGroupIngress.java @@ -18,70 +18,49 @@ public final class DefaultSecurityGroupIngress { * @return List of CIDR blocks. * */ - private final @Nullable List cidrBlocks; + private @Nullable List cidrBlocks; /** * @return Description of this rule. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return Start port (or ICMP type number if protocol is `icmp`) * */ - private final Integer fromPort; + private Integer fromPort; /** * @return List of IPv6 CIDR blocks. * */ - private final @Nullable List ipv6CidrBlocks; + private @Nullable List ipv6CidrBlocks; /** * @return List of prefix list IDs (for allowing access to VPC endpoints) * */ - private final @Nullable List prefixListIds; + private @Nullable List prefixListIds; /** * @return Protocol. If you select a protocol of "-1" (semantically equivalent to `all`, which is not a valid value here), you must specify a `from_port` and `to_port` equal to `0`. If not `icmp`, `tcp`, `udp`, or `-1` use the [protocol number](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). * */ - private final String protocol; + private String protocol; /** * @return List of security group Group Names if using EC2-Classic, or Group IDs if using a VPC. * */ - private final @Nullable List securityGroups; + private @Nullable List securityGroups; /** * @return Whether the security group itself will be added as a source to this egress rule. * */ - private final @Nullable Boolean self; + private @Nullable Boolean self; /** * @return End range port (or ICMP code if protocol is `icmp`). * */ - private final Integer toPort; - - @CustomType.Constructor - private DefaultSecurityGroupIngress( - @CustomType.Parameter("cidrBlocks") @Nullable List cidrBlocks, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("fromPort") Integer fromPort, - @CustomType.Parameter("ipv6CidrBlocks") @Nullable List ipv6CidrBlocks, - @CustomType.Parameter("prefixListIds") @Nullable List prefixListIds, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("securityGroups") @Nullable List securityGroups, - @CustomType.Parameter("self") @Nullable Boolean self, - @CustomType.Parameter("toPort") Integer toPort) { - this.cidrBlocks = cidrBlocks; - this.description = description; - this.fromPort = fromPort; - this.ipv6CidrBlocks = ipv6CidrBlocks; - this.prefixListIds = prefixListIds; - this.protocol = protocol; - this.securityGroups = securityGroups; - this.self = self; - this.toPort = toPort; - } + private Integer toPort; + private DefaultSecurityGroupIngress() {} /** * @return List of CIDR blocks. * @@ -153,7 +132,7 @@ public static Builder builder() { public static Builder builder(DefaultSecurityGroupIngress defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List cidrBlocks; private @Nullable String description; @@ -164,11 +143,7 @@ public static final class Builder { private @Nullable List securityGroups; private @Nullable Boolean self; private Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DefaultSecurityGroupIngress defaults) { Objects.requireNonNull(defaults); this.cidrBlocks = defaults.cidrBlocks; @@ -182,6 +157,7 @@ public Builder(DefaultSecurityGroupIngress defaults) { this.toPort = defaults.toPort; } + @CustomType.Setter public Builder cidrBlocks(@Nullable List cidrBlocks) { this.cidrBlocks = cidrBlocks; return this; @@ -189,14 +165,17 @@ public Builder cidrBlocks(@Nullable List cidrBlocks) { public Builder cidrBlocks(String... cidrBlocks) { return cidrBlocks(List.of(cidrBlocks)); } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder fromPort(Integer fromPort) { this.fromPort = Objects.requireNonNull(fromPort); return this; } + @CustomType.Setter public Builder ipv6CidrBlocks(@Nullable List ipv6CidrBlocks) { this.ipv6CidrBlocks = ipv6CidrBlocks; return this; @@ -204,6 +183,7 @@ public Builder ipv6CidrBlocks(@Nullable List ipv6CidrBlocks) { public Builder ipv6CidrBlocks(String... ipv6CidrBlocks) { return ipv6CidrBlocks(List.of(ipv6CidrBlocks)); } + @CustomType.Setter public Builder prefixListIds(@Nullable List prefixListIds) { this.prefixListIds = prefixListIds; return this; @@ -211,10 +191,12 @@ public Builder prefixListIds(@Nullable List prefixListIds) { public Builder prefixListIds(String... prefixListIds) { return prefixListIds(List.of(prefixListIds)); } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { this.securityGroups = securityGroups; return this; @@ -222,15 +204,28 @@ public Builder securityGroups(@Nullable List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder self(@Nullable Boolean self) { this.self = self; return this; } + @CustomType.Setter public Builder toPort(Integer toPort) { this.toPort = Objects.requireNonNull(toPort); return this; - } public DefaultSecurityGroupIngress build() { - return new DefaultSecurityGroupIngress(cidrBlocks, description, fromPort, ipv6CidrBlocks, prefixListIds, protocol, securityGroups, self, toPort); + } + public DefaultSecurityGroupIngress build() { + final var o = new DefaultSecurityGroupIngress(); + o.cidrBlocks = cidrBlocks; + o.description = description; + o.fromPort = fromPort; + o.ipv6CidrBlocks = ipv6CidrBlocks; + o.prefixListIds = prefixListIds; + o.protocol = protocol; + o.securityGroups = securityGroups; + o.self = self; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfig.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfig.java index 0e7d67a7226..e74651d0740 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfig.java @@ -16,21 +16,14 @@ public final class FleetLaunchTemplateConfig { * @return Nested argument containing EC2 Launch Template to use. Defined below. * */ - private final FleetLaunchTemplateConfigLaunchTemplateSpecification launchTemplateSpecification; + private FleetLaunchTemplateConfigLaunchTemplateSpecification launchTemplateSpecification; /** * @return Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below. * */ - private final @Nullable List overrides; - - @CustomType.Constructor - private FleetLaunchTemplateConfig( - @CustomType.Parameter("launchTemplateSpecification") FleetLaunchTemplateConfigLaunchTemplateSpecification launchTemplateSpecification, - @CustomType.Parameter("overrides") @Nullable List overrides) { - this.launchTemplateSpecification = launchTemplateSpecification; - this.overrides = overrides; - } + private @Nullable List overrides; + private FleetLaunchTemplateConfig() {} /** * @return Nested argument containing EC2 Launch Template to use. Defined below. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(FleetLaunchTemplateConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private FleetLaunchTemplateConfigLaunchTemplateSpecification launchTemplateSpecification; private @Nullable List overrides; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetLaunchTemplateConfig defaults) { Objects.requireNonNull(defaults); this.launchTemplateSpecification = defaults.launchTemplateSpecification; this.overrides = defaults.overrides; } + @CustomType.Setter public Builder launchTemplateSpecification(FleetLaunchTemplateConfigLaunchTemplateSpecification launchTemplateSpecification) { this.launchTemplateSpecification = Objects.requireNonNull(launchTemplateSpecification); return this; } + @CustomType.Setter public Builder overrides(@Nullable List overrides) { this.overrides = overrides; return this; } public Builder overrides(FleetLaunchTemplateConfigOverride... overrides) { return overrides(List.of(overrides)); - } public FleetLaunchTemplateConfig build() { - return new FleetLaunchTemplateConfig(launchTemplateSpecification, overrides); + } + public FleetLaunchTemplateConfig build() { + final var o = new FleetLaunchTemplateConfig(); + o.launchTemplateSpecification = launchTemplateSpecification; + o.overrides = overrides; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigLaunchTemplateSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigLaunchTemplateSpecification.java index 96d0f36a10b..8552335854f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigLaunchTemplateSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigLaunchTemplateSpecification.java @@ -15,28 +15,19 @@ public final class FleetLaunchTemplateConfigLaunchTemplateSpecification { * @return ID of the launch template. * */ - private final @Nullable String launchTemplateId; + private @Nullable String launchTemplateId; /** * @return Name of the launch template. * */ - private final @Nullable String launchTemplateName; + private @Nullable String launchTemplateName; /** * @return Version number of the launch template. * */ - private final String version; - - @CustomType.Constructor - private FleetLaunchTemplateConfigLaunchTemplateSpecification( - @CustomType.Parameter("launchTemplateId") @Nullable String launchTemplateId, - @CustomType.Parameter("launchTemplateName") @Nullable String launchTemplateName, - @CustomType.Parameter("version") String version) { - this.launchTemplateId = launchTemplateId; - this.launchTemplateName = launchTemplateName; - this.version = version; - } + private String version; + private FleetLaunchTemplateConfigLaunchTemplateSpecification() {} /** * @return ID of the launch template. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(FleetLaunchTemplateConfigLaunchTemplateSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String launchTemplateId; private @Nullable String launchTemplateName; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetLaunchTemplateConfigLaunchTemplateSpecification defaults) { Objects.requireNonNull(defaults); this.launchTemplateId = defaults.launchTemplateId; @@ -83,19 +70,27 @@ public Builder(FleetLaunchTemplateConfigLaunchTemplateSpecification defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder launchTemplateId(@Nullable String launchTemplateId) { this.launchTemplateId = launchTemplateId; return this; } + @CustomType.Setter public Builder launchTemplateName(@Nullable String launchTemplateName) { this.launchTemplateName = launchTemplateName; return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public FleetLaunchTemplateConfigLaunchTemplateSpecification build() { - return new FleetLaunchTemplateConfigLaunchTemplateSpecification(launchTemplateId, launchTemplateName, version); + } + public FleetLaunchTemplateConfigLaunchTemplateSpecification build() { + final var o = new FleetLaunchTemplateConfigLaunchTemplateSpecification(); + o.launchTemplateId = launchTemplateId; + o.launchTemplateName = launchTemplateName; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverride.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverride.java index 9b3e87a90f1..81d4e87a341 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverride.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverride.java @@ -17,56 +17,39 @@ public final class FleetLaunchTemplateConfigOverride { * @return Availability Zone in which to launch the instances. * */ - private final @Nullable String availabilityZone; + private @Nullable String availabilityZone; /** * @return Override the instance type in the Launch Template with instance types that satisfy the requirements. * */ - private final @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirements instanceRequirements; + private @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirements instanceRequirements; /** * @return Instance type. * */ - private final @Nullable String instanceType; + private @Nullable String instanceType; /** * @return Maximum price per unit hour that you are willing to pay for a Spot Instance. * */ - private final @Nullable String maxPrice; + private @Nullable String maxPrice; /** * @return Priority for the launch template override. If `on_demand_options` `allocation_strategy` is set to `prioritized`, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0. * */ - private final @Nullable Double priority; + private @Nullable Double priority; /** * @return ID of the subnet in which to launch the instances. * */ - private final @Nullable String subnetId; + private @Nullable String subnetId; /** * @return Number of units provided by the specified instance type. * */ - private final @Nullable Double weightedCapacity; - - @CustomType.Constructor - private FleetLaunchTemplateConfigOverride( - @CustomType.Parameter("availabilityZone") @Nullable String availabilityZone, - @CustomType.Parameter("instanceRequirements") @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirements instanceRequirements, - @CustomType.Parameter("instanceType") @Nullable String instanceType, - @CustomType.Parameter("maxPrice") @Nullable String maxPrice, - @CustomType.Parameter("priority") @Nullable Double priority, - @CustomType.Parameter("subnetId") @Nullable String subnetId, - @CustomType.Parameter("weightedCapacity") @Nullable Double weightedCapacity) { - this.availabilityZone = availabilityZone; - this.instanceRequirements = instanceRequirements; - this.instanceType = instanceType; - this.maxPrice = maxPrice; - this.priority = priority; - this.subnetId = subnetId; - this.weightedCapacity = weightedCapacity; - } + private @Nullable Double weightedCapacity; + private FleetLaunchTemplateConfigOverride() {} /** * @return Availability Zone in which to launch the instances. * @@ -124,7 +107,7 @@ public static Builder builder() { public static Builder builder(FleetLaunchTemplateConfigOverride defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String availabilityZone; private @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirements instanceRequirements; @@ -133,11 +116,7 @@ public static final class Builder { private @Nullable Double priority; private @Nullable String subnetId; private @Nullable Double weightedCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetLaunchTemplateConfigOverride defaults) { Objects.requireNonNull(defaults); this.availabilityZone = defaults.availabilityZone; @@ -149,35 +128,51 @@ public Builder(FleetLaunchTemplateConfigOverride defaults) { this.weightedCapacity = defaults.weightedCapacity; } + @CustomType.Setter public Builder availabilityZone(@Nullable String availabilityZone) { this.availabilityZone = availabilityZone; return this; } + @CustomType.Setter public Builder instanceRequirements(@Nullable FleetLaunchTemplateConfigOverrideInstanceRequirements instanceRequirements) { this.instanceRequirements = instanceRequirements; return this; } + @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { this.instanceType = instanceType; return this; } + @CustomType.Setter public Builder maxPrice(@Nullable String maxPrice) { this.maxPrice = maxPrice; return this; } + @CustomType.Setter public Builder priority(@Nullable Double priority) { this.priority = priority; return this; } + @CustomType.Setter public Builder subnetId(@Nullable String subnetId) { this.subnetId = subnetId; return this; } + @CustomType.Setter public Builder weightedCapacity(@Nullable Double weightedCapacity) { this.weightedCapacity = weightedCapacity; return this; - } public FleetLaunchTemplateConfigOverride build() { - return new FleetLaunchTemplateConfigOverride(availabilityZone, instanceRequirements, instanceType, maxPrice, priority, subnetId, weightedCapacity); + } + public FleetLaunchTemplateConfigOverride build() { + final var o = new FleetLaunchTemplateConfigOverride(); + o.availabilityZone = availabilityZone; + o.instanceRequirements = instanceRequirements; + o.instanceType = instanceType; + o.maxPrice = maxPrice; + o.priority = priority; + o.subnetId = subnetId; + o.weightedCapacity = weightedCapacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirements.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirements.java index aa6c6e4e176..b7f358e180d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirements.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirements.java @@ -26,154 +26,109 @@ public final class FleetLaunchTemplateConfigOverrideInstanceRequirements { * @return Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. * */ - private final @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount acceleratorCount; + private @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount acceleratorCount; /** * @return List of accelerator manufacturer names. Default is any manufacturer. * */ - private final @Nullable List acceleratorManufacturers; + private @Nullable List acceleratorManufacturers; /** * @return List of accelerator names. Default is any acclerator. * */ - private final @Nullable List acceleratorNames; + private @Nullable List acceleratorNames; /** * @return Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. * */ - private final @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib; + private @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib; /** * @return List of accelerator types. Default is any accelerator type. * */ - private final @Nullable List acceleratorTypes; + private @Nullable List acceleratorTypes; /** * @return Indicate whether bare metal instace types should be `included`, `excluded`, or `required`. Default is `excluded`. * */ - private final @Nullable String bareMetal; + private @Nullable String bareMetal; /** * @return Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. * */ - private final @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps; + private @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps; /** * @return Indicate whether burstable performance instance types should be `included`, `excluded`, or `required`. Default is `excluded`. * */ - private final @Nullable String burstablePerformance; + private @Nullable String burstablePerformance; /** * @return List of CPU manufacturer names. Default is any manufacturer. * */ - private final @Nullable List cpuManufacturers; + private @Nullable List cpuManufacturers; /** * @return List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (\*). The following are examples: `c5*`, `m5a.*`, `r*`, `*3*`. For example, if you specify `c5*`, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*`, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. * */ - private final @Nullable List excludedInstanceTypes; + private @Nullable List excludedInstanceTypes; /** * @return List of instance generation names. Default is any generation. * */ - private final @Nullable List instanceGenerations; + private @Nullable List instanceGenerations; /** * @return Indicate whether instance types with local storage volumes are `included`, `excluded`, or `required`. Default is `included`. * */ - private final @Nullable String localStorage; + private @Nullable String localStorage; /** * @return List of local storage type names. Default any storage type. * */ - private final @Nullable List localStorageTypes; + private @Nullable List localStorageTypes; /** * @return Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. * */ - private final @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu; + private @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu; /** * @return Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. * */ - private final FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib memoryMib; + private FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib memoryMib; /** * @return Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. * */ - private final @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount networkInterfaceCount; + private @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount networkInterfaceCount; /** * @return The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. * */ - private final @Nullable Integer onDemandMaxPricePercentageOverLowestPrice; + private @Nullable Integer onDemandMaxPricePercentageOverLowestPrice; /** * @return Indicate whether instance types must support On-Demand Instance Hibernation, either `true` or `false`. Default is `false`. * */ - private final @Nullable Boolean requireHibernateSupport; + private @Nullable Boolean requireHibernateSupport; /** * @return The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. * */ - private final @Nullable Integer spotMaxPricePercentageOverLowestPrice; + private @Nullable Integer spotMaxPricePercentageOverLowestPrice; /** * @return Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. * */ - private final @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb; + private @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb; /** * @return Block describing the minimum and maximum number of vCPUs. Default is no maximum. * */ - private final FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount vcpuCount; - - @CustomType.Constructor - private FleetLaunchTemplateConfigOverrideInstanceRequirements( - @CustomType.Parameter("acceleratorCount") @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount acceleratorCount, - @CustomType.Parameter("acceleratorManufacturers") @Nullable List acceleratorManufacturers, - @CustomType.Parameter("acceleratorNames") @Nullable List acceleratorNames, - @CustomType.Parameter("acceleratorTotalMemoryMib") @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib, - @CustomType.Parameter("acceleratorTypes") @Nullable List acceleratorTypes, - @CustomType.Parameter("bareMetal") @Nullable String bareMetal, - @CustomType.Parameter("baselineEbsBandwidthMbps") @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps, - @CustomType.Parameter("burstablePerformance") @Nullable String burstablePerformance, - @CustomType.Parameter("cpuManufacturers") @Nullable List cpuManufacturers, - @CustomType.Parameter("excludedInstanceTypes") @Nullable List excludedInstanceTypes, - @CustomType.Parameter("instanceGenerations") @Nullable List instanceGenerations, - @CustomType.Parameter("localStorage") @Nullable String localStorage, - @CustomType.Parameter("localStorageTypes") @Nullable List localStorageTypes, - @CustomType.Parameter("memoryGibPerVcpu") @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu, - @CustomType.Parameter("memoryMib") FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib memoryMib, - @CustomType.Parameter("networkInterfaceCount") @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount networkInterfaceCount, - @CustomType.Parameter("onDemandMaxPricePercentageOverLowestPrice") @Nullable Integer onDemandMaxPricePercentageOverLowestPrice, - @CustomType.Parameter("requireHibernateSupport") @Nullable Boolean requireHibernateSupport, - @CustomType.Parameter("spotMaxPricePercentageOverLowestPrice") @Nullable Integer spotMaxPricePercentageOverLowestPrice, - @CustomType.Parameter("totalLocalStorageGb") @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb, - @CustomType.Parameter("vcpuCount") FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount vcpuCount) { - this.acceleratorCount = acceleratorCount; - this.acceleratorManufacturers = acceleratorManufacturers; - this.acceleratorNames = acceleratorNames; - this.acceleratorTotalMemoryMib = acceleratorTotalMemoryMib; - this.acceleratorTypes = acceleratorTypes; - this.bareMetal = bareMetal; - this.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; - this.burstablePerformance = burstablePerformance; - this.cpuManufacturers = cpuManufacturers; - this.excludedInstanceTypes = excludedInstanceTypes; - this.instanceGenerations = instanceGenerations; - this.localStorage = localStorage; - this.localStorageTypes = localStorageTypes; - this.memoryGibPerVcpu = memoryGibPerVcpu; - this.memoryMib = memoryMib; - this.networkInterfaceCount = networkInterfaceCount; - this.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; - this.requireHibernateSupport = requireHibernateSupport; - this.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; - this.totalLocalStorageGb = totalLocalStorageGb; - this.vcpuCount = vcpuCount; - } + private FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount vcpuCount; + private FleetLaunchTemplateConfigOverrideInstanceRequirements() {} /** * @return Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. * @@ -329,7 +284,7 @@ public static Builder builder() { public static Builder builder(FleetLaunchTemplateConfigOverrideInstanceRequirements defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount acceleratorCount; private @Nullable List acceleratorManufacturers; @@ -352,11 +307,7 @@ public static final class Builder { private @Nullable Integer spotMaxPricePercentageOverLowestPrice; private @Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb; private FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount vcpuCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetLaunchTemplateConfigOverrideInstanceRequirements defaults) { Objects.requireNonNull(defaults); this.acceleratorCount = defaults.acceleratorCount; @@ -382,10 +333,12 @@ public Builder(FleetLaunchTemplateConfigOverrideInstanceRequirements defaults) { this.vcpuCount = defaults.vcpuCount; } + @CustomType.Setter public Builder acceleratorCount(@Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount acceleratorCount) { this.acceleratorCount = acceleratorCount; return this; } + @CustomType.Setter public Builder acceleratorManufacturers(@Nullable List acceleratorManufacturers) { this.acceleratorManufacturers = acceleratorManufacturers; return this; @@ -393,6 +346,7 @@ public Builder acceleratorManufacturers(@Nullable List acceleratorManufa public Builder acceleratorManufacturers(String... acceleratorManufacturers) { return acceleratorManufacturers(List.of(acceleratorManufacturers)); } + @CustomType.Setter public Builder acceleratorNames(@Nullable List acceleratorNames) { this.acceleratorNames = acceleratorNames; return this; @@ -400,10 +354,12 @@ public Builder acceleratorNames(@Nullable List acceleratorNames) { public Builder acceleratorNames(String... acceleratorNames) { return acceleratorNames(List.of(acceleratorNames)); } + @CustomType.Setter public Builder acceleratorTotalMemoryMib(@Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib) { this.acceleratorTotalMemoryMib = acceleratorTotalMemoryMib; return this; } + @CustomType.Setter public Builder acceleratorTypes(@Nullable List acceleratorTypes) { this.acceleratorTypes = acceleratorTypes; return this; @@ -411,18 +367,22 @@ public Builder acceleratorTypes(@Nullable List acceleratorTypes) { public Builder acceleratorTypes(String... acceleratorTypes) { return acceleratorTypes(List.of(acceleratorTypes)); } + @CustomType.Setter public Builder bareMetal(@Nullable String bareMetal) { this.bareMetal = bareMetal; return this; } + @CustomType.Setter public Builder baselineEbsBandwidthMbps(@Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps) { this.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; return this; } + @CustomType.Setter public Builder burstablePerformance(@Nullable String burstablePerformance) { this.burstablePerformance = burstablePerformance; return this; } + @CustomType.Setter public Builder cpuManufacturers(@Nullable List cpuManufacturers) { this.cpuManufacturers = cpuManufacturers; return this; @@ -430,6 +390,7 @@ public Builder cpuManufacturers(@Nullable List cpuManufacturers) { public Builder cpuManufacturers(String... cpuManufacturers) { return cpuManufacturers(List.of(cpuManufacturers)); } + @CustomType.Setter public Builder excludedInstanceTypes(@Nullable List excludedInstanceTypes) { this.excludedInstanceTypes = excludedInstanceTypes; return this; @@ -437,6 +398,7 @@ public Builder excludedInstanceTypes(@Nullable List excludedInstanceType public Builder excludedInstanceTypes(String... excludedInstanceTypes) { return excludedInstanceTypes(List.of(excludedInstanceTypes)); } + @CustomType.Setter public Builder instanceGenerations(@Nullable List instanceGenerations) { this.instanceGenerations = instanceGenerations; return this; @@ -444,10 +406,12 @@ public Builder instanceGenerations(@Nullable List instanceGenerations) { public Builder instanceGenerations(String... instanceGenerations) { return instanceGenerations(List.of(instanceGenerations)); } + @CustomType.Setter public Builder localStorage(@Nullable String localStorage) { this.localStorage = localStorage; return this; } + @CustomType.Setter public Builder localStorageTypes(@Nullable List localStorageTypes) { this.localStorageTypes = localStorageTypes; return this; @@ -455,39 +419,70 @@ public Builder localStorageTypes(@Nullable List localStorageTypes) { public Builder localStorageTypes(String... localStorageTypes) { return localStorageTypes(List.of(localStorageTypes)); } + @CustomType.Setter public Builder memoryGibPerVcpu(@Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu) { this.memoryGibPerVcpu = memoryGibPerVcpu; return this; } + @CustomType.Setter public Builder memoryMib(FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib memoryMib) { this.memoryMib = Objects.requireNonNull(memoryMib); return this; } + @CustomType.Setter public Builder networkInterfaceCount(@Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount networkInterfaceCount) { this.networkInterfaceCount = networkInterfaceCount; return this; } + @CustomType.Setter public Builder onDemandMaxPricePercentageOverLowestPrice(@Nullable Integer onDemandMaxPricePercentageOverLowestPrice) { this.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; return this; } + @CustomType.Setter public Builder requireHibernateSupport(@Nullable Boolean requireHibernateSupport) { this.requireHibernateSupport = requireHibernateSupport; return this; } + @CustomType.Setter public Builder spotMaxPricePercentageOverLowestPrice(@Nullable Integer spotMaxPricePercentageOverLowestPrice) { this.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; return this; } + @CustomType.Setter public Builder totalLocalStorageGb(@Nullable FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb) { this.totalLocalStorageGb = totalLocalStorageGb; return this; } + @CustomType.Setter public Builder vcpuCount(FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount vcpuCount) { this.vcpuCount = Objects.requireNonNull(vcpuCount); return this; - } public FleetLaunchTemplateConfigOverrideInstanceRequirements build() { - return new FleetLaunchTemplateConfigOverrideInstanceRequirements(acceleratorCount, acceleratorManufacturers, acceleratorNames, acceleratorTotalMemoryMib, acceleratorTypes, bareMetal, baselineEbsBandwidthMbps, burstablePerformance, cpuManufacturers, excludedInstanceTypes, instanceGenerations, localStorage, localStorageTypes, memoryGibPerVcpu, memoryMib, networkInterfaceCount, onDemandMaxPricePercentageOverLowestPrice, requireHibernateSupport, spotMaxPricePercentageOverLowestPrice, totalLocalStorageGb, vcpuCount); + } + public FleetLaunchTemplateConfigOverrideInstanceRequirements build() { + final var o = new FleetLaunchTemplateConfigOverrideInstanceRequirements(); + o.acceleratorCount = acceleratorCount; + o.acceleratorManufacturers = acceleratorManufacturers; + o.acceleratorNames = acceleratorNames; + o.acceleratorTotalMemoryMib = acceleratorTotalMemoryMib; + o.acceleratorTypes = acceleratorTypes; + o.bareMetal = bareMetal; + o.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; + o.burstablePerformance = burstablePerformance; + o.cpuManufacturers = cpuManufacturers; + o.excludedInstanceTypes = excludedInstanceTypes; + o.instanceGenerations = instanceGenerations; + o.localStorage = localStorage; + o.localStorageTypes = localStorageTypes; + o.memoryGibPerVcpu = memoryGibPerVcpu; + o.memoryMib = memoryMib; + o.networkInterfaceCount = networkInterfaceCount; + o.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; + o.requireHibernateSupport = requireHibernateSupport; + o.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; + o.totalLocalStorageGb = totalLocalStorageGb; + o.vcpuCount = vcpuCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount.java index a6194241510..c223bad93cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount.java @@ -15,21 +15,14 @@ public final class FleetLaunchTemplateConfigOverrideInstanceRequirementsAccelera * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount build() { - return new FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount(max, min); + } + public FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount build() { + final var o = new FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib.java index bcb5ecb3304..c5021e69879 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib.java @@ -15,21 +15,14 @@ public final class FleetLaunchTemplateConfigOverrideInstanceRequirementsAccelera * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib build() { - return new FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib(max, min); + } + public FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib build() { + final var o = new FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps.java index 0268ebd302d..8da46c594f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps.java @@ -15,21 +15,14 @@ public final class FleetLaunchTemplateConfigOverrideInstanceRequirementsBaseline * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps build() { - return new FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps(max, min); + } + public FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps build() { + final var o = new FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu.java index 192d8ce658f..455707beae2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu.java @@ -15,21 +15,14 @@ public final class FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGi * @return Maximum. * */ - private final @Nullable Double max; + private @Nullable Double max; /** * @return Minimum. * */ - private final @Nullable Double min; - - @CustomType.Constructor - private FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu( - @CustomType.Parameter("max") @Nullable Double max, - @CustomType.Parameter("min") @Nullable Double min) { - this.max = max; - this.min = min; - } + private @Nullable Double min; + private FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Double max; private @Nullable Double min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Double max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Double min) { this.min = min; return this; - } public FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu build() { - return new FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu(max, min); + } + public FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu build() { + final var o = new FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib.java index 2e2c27504c5..68b0bd6e4f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib.java @@ -15,21 +15,14 @@ public final class FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMi * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final Integer min; - - @CustomType.Constructor - private FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") Integer min) { - this.max = max; - this.min = min; - } + private Integer min; + private FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(Integer min) { this.min = Objects.requireNonNull(min); return this; - } public FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib build() { - return new FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib(max, min); + } + public FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib build() { + final var o = new FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount.java index 715d6ac6284..ab21cbaab03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount.java @@ -15,21 +15,14 @@ public final class FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkI * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount build() { - return new FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount(max, min); + } + public FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount build() { + final var o = new FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb.java index fee0ecef8ad..9e5f51cf0ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb.java @@ -15,21 +15,14 @@ public final class FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLoc * @return Maximum. * */ - private final @Nullable Double max; + private @Nullable Double max; /** * @return Minimum. * */ - private final @Nullable Double min; - - @CustomType.Constructor - private FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb( - @CustomType.Parameter("max") @Nullable Double max, - @CustomType.Parameter("min") @Nullable Double min) { - this.max = max; - this.min = min; - } + private @Nullable Double min; + private FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Double max; private @Nullable Double min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Double max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Double min) { this.min = min; return this; - } public FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb build() { - return new FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb(max, min); + } + public FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb build() { + final var o = new FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount.java index b1f9da9deaa..db34f5faf23 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount.java @@ -15,21 +15,14 @@ public final class FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCoun * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final Integer min; - - @CustomType.Constructor - private FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") Integer min) { - this.max = max; - this.min = min; - } + private Integer min; + private FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(Integer min) { this.min = Objects.requireNonNull(min); return this; - } public FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount build() { - return new FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount(max, min); + } + public FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount build() { + final var o = new FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetOnDemandOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetOnDemandOptions.java index cbcd24319ce..d501f009339 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetOnDemandOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetOnDemandOptions.java @@ -15,13 +15,9 @@ public final class FleetOnDemandOptions { * @return How to allocate the target capacity across the Spot pools. Valid values: `diversified`, `lowestPrice`, `capacity-optimized` and `capacity-optimized-prioritized`. Default: `lowestPrice`. * */ - private final @Nullable String allocationStrategy; - - @CustomType.Constructor - private FleetOnDemandOptions(@CustomType.Parameter("allocationStrategy") @Nullable String allocationStrategy) { - this.allocationStrategy = allocationStrategy; - } + private @Nullable String allocationStrategy; + private FleetOnDemandOptions() {} /** * @return How to allocate the target capacity across the Spot pools. Valid values: `diversified`, `lowestPrice`, `capacity-optimized` and `capacity-optimized-prioritized`. Default: `lowestPrice`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FleetOnDemandOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String allocationStrategy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetOnDemandOptions defaults) { Objects.requireNonNull(defaults); this.allocationStrategy = defaults.allocationStrategy; } + @CustomType.Setter public Builder allocationStrategy(@Nullable String allocationStrategy) { this.allocationStrategy = allocationStrategy; return this; - } public FleetOnDemandOptions build() { - return new FleetOnDemandOptions(allocationStrategy); + } + public FleetOnDemandOptions build() { + final var o = new FleetOnDemandOptions(); + o.allocationStrategy = allocationStrategy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetSpotOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetSpotOptions.java index e2c9e43d8f7..4acd1356449 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetSpotOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetSpotOptions.java @@ -17,35 +17,24 @@ public final class FleetSpotOptions { * @return How to allocate the target capacity across the Spot pools. Valid values: `diversified`, `lowestPrice`, `capacity-optimized` and `capacity-optimized-prioritized`. Default: `lowestPrice`. * */ - private final @Nullable String allocationStrategy; + private @Nullable String allocationStrategy; /** * @return Behavior when a Spot Instance is interrupted. Valid values: `hibernate`, `stop`, `terminate`. Default: `terminate`. * */ - private final @Nullable String instanceInterruptionBehavior; + private @Nullable String instanceInterruptionBehavior; /** * @return Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot `allocation_strategy` is set to `lowestPrice`. Default: `1`. * */ - private final @Nullable Integer instancePoolsToUseCount; + private @Nullable Integer instancePoolsToUseCount; /** * @return Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below. * */ - private final @Nullable FleetSpotOptionsMaintenanceStrategies maintenanceStrategies; - - @CustomType.Constructor - private FleetSpotOptions( - @CustomType.Parameter("allocationStrategy") @Nullable String allocationStrategy, - @CustomType.Parameter("instanceInterruptionBehavior") @Nullable String instanceInterruptionBehavior, - @CustomType.Parameter("instancePoolsToUseCount") @Nullable Integer instancePoolsToUseCount, - @CustomType.Parameter("maintenanceStrategies") @Nullable FleetSpotOptionsMaintenanceStrategies maintenanceStrategies) { - this.allocationStrategy = allocationStrategy; - this.instanceInterruptionBehavior = instanceInterruptionBehavior; - this.instancePoolsToUseCount = instancePoolsToUseCount; - this.maintenanceStrategies = maintenanceStrategies; - } + private @Nullable FleetSpotOptionsMaintenanceStrategies maintenanceStrategies; + private FleetSpotOptions() {} /** * @return How to allocate the target capacity across the Spot pools. Valid values: `diversified`, `lowestPrice`, `capacity-optimized` and `capacity-optimized-prioritized`. Default: `lowestPrice`. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(FleetSpotOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String allocationStrategy; private @Nullable String instanceInterruptionBehavior; private @Nullable Integer instancePoolsToUseCount; private @Nullable FleetSpotOptionsMaintenanceStrategies maintenanceStrategies; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetSpotOptions defaults) { Objects.requireNonNull(defaults); this.allocationStrategy = defaults.allocationStrategy; @@ -101,23 +86,33 @@ public Builder(FleetSpotOptions defaults) { this.maintenanceStrategies = defaults.maintenanceStrategies; } + @CustomType.Setter public Builder allocationStrategy(@Nullable String allocationStrategy) { this.allocationStrategy = allocationStrategy; return this; } + @CustomType.Setter public Builder instanceInterruptionBehavior(@Nullable String instanceInterruptionBehavior) { this.instanceInterruptionBehavior = instanceInterruptionBehavior; return this; } + @CustomType.Setter public Builder instancePoolsToUseCount(@Nullable Integer instancePoolsToUseCount) { this.instancePoolsToUseCount = instancePoolsToUseCount; return this; } + @CustomType.Setter public Builder maintenanceStrategies(@Nullable FleetSpotOptionsMaintenanceStrategies maintenanceStrategies) { this.maintenanceStrategies = maintenanceStrategies; return this; - } public FleetSpotOptions build() { - return new FleetSpotOptions(allocationStrategy, instanceInterruptionBehavior, instancePoolsToUseCount, maintenanceStrategies); + } + public FleetSpotOptions build() { + final var o = new FleetSpotOptions(); + o.allocationStrategy = allocationStrategy; + o.instanceInterruptionBehavior = instanceInterruptionBehavior; + o.instancePoolsToUseCount = instancePoolsToUseCount; + o.maintenanceStrategies = maintenanceStrategies; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetSpotOptionsMaintenanceStrategies.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetSpotOptionsMaintenanceStrategies.java index c0f6bc69153..fbc1941f401 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetSpotOptionsMaintenanceStrategies.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetSpotOptionsMaintenanceStrategies.java @@ -15,13 +15,9 @@ public final class FleetSpotOptionsMaintenanceStrategies { * @return Nested argument containing the capacity rebalance for your fleet request. Defined below. * */ - private final @Nullable FleetSpotOptionsMaintenanceStrategiesCapacityRebalance capacityRebalance; - - @CustomType.Constructor - private FleetSpotOptionsMaintenanceStrategies(@CustomType.Parameter("capacityRebalance") @Nullable FleetSpotOptionsMaintenanceStrategiesCapacityRebalance capacityRebalance) { - this.capacityRebalance = capacityRebalance; - } + private @Nullable FleetSpotOptionsMaintenanceStrategiesCapacityRebalance capacityRebalance; + private FleetSpotOptionsMaintenanceStrategies() {} /** * @return Nested argument containing the capacity rebalance for your fleet request. Defined below. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FleetSpotOptionsMaintenanceStrategies defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FleetSpotOptionsMaintenanceStrategiesCapacityRebalance capacityRebalance; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetSpotOptionsMaintenanceStrategies defaults) { Objects.requireNonNull(defaults); this.capacityRebalance = defaults.capacityRebalance; } + @CustomType.Setter public Builder capacityRebalance(@Nullable FleetSpotOptionsMaintenanceStrategiesCapacityRebalance capacityRebalance) { this.capacityRebalance = capacityRebalance; return this; - } public FleetSpotOptionsMaintenanceStrategies build() { - return new FleetSpotOptionsMaintenanceStrategies(capacityRebalance); + } + public FleetSpotOptionsMaintenanceStrategies build() { + final var o = new FleetSpotOptionsMaintenanceStrategies(); + o.capacityRebalance = capacityRebalance; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetSpotOptionsMaintenanceStrategiesCapacityRebalance.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetSpotOptionsMaintenanceStrategiesCapacityRebalance.java index a0089eeec46..2c4b2666604 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetSpotOptionsMaintenanceStrategiesCapacityRebalance.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetSpotOptionsMaintenanceStrategiesCapacityRebalance.java @@ -15,13 +15,9 @@ public final class FleetSpotOptionsMaintenanceStrategiesCapacityRebalance { * @return The replacement strategy to use. Only available for fleets of `type` set to `maintain`. Valid values: `launch`. * */ - private final @Nullable String replacementStrategy; - - @CustomType.Constructor - private FleetSpotOptionsMaintenanceStrategiesCapacityRebalance(@CustomType.Parameter("replacementStrategy") @Nullable String replacementStrategy) { - this.replacementStrategy = replacementStrategy; - } + private @Nullable String replacementStrategy; + private FleetSpotOptionsMaintenanceStrategiesCapacityRebalance() {} /** * @return The replacement strategy to use. Only available for fleets of `type` set to `maintain`. Valid values: `launch`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FleetSpotOptionsMaintenanceStrategiesCapacityRebalance defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String replacementStrategy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetSpotOptionsMaintenanceStrategiesCapacityRebalance defaults) { Objects.requireNonNull(defaults); this.replacementStrategy = defaults.replacementStrategy; } + @CustomType.Setter public Builder replacementStrategy(@Nullable String replacementStrategy) { this.replacementStrategy = replacementStrategy; return this; - } public FleetSpotOptionsMaintenanceStrategiesCapacityRebalance build() { - return new FleetSpotOptionsMaintenanceStrategiesCapacityRebalance(replacementStrategy); + } + public FleetSpotOptionsMaintenanceStrategiesCapacityRebalance build() { + final var o = new FleetSpotOptionsMaintenanceStrategiesCapacityRebalance(); + o.replacementStrategy = replacementStrategy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetTargetCapacitySpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetTargetCapacitySpecification.java index 226838c114f..59a3766caab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetTargetCapacitySpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FleetTargetCapacitySpecification.java @@ -16,35 +16,24 @@ public final class FleetTargetCapacitySpecification { * @return Default target capacity type. Valid values: `on-demand`, `spot`. * */ - private final String defaultTargetCapacityType; + private String defaultTargetCapacityType; /** * @return The number of On-Demand units to request. * */ - private final @Nullable Integer onDemandTargetCapacity; + private @Nullable Integer onDemandTargetCapacity; /** * @return The number of Spot units to request. * */ - private final @Nullable Integer spotTargetCapacity; + private @Nullable Integer spotTargetCapacity; /** * @return The number of units to request, filled using `default_target_capacity_type`. * */ - private final Integer totalTargetCapacity; - - @CustomType.Constructor - private FleetTargetCapacitySpecification( - @CustomType.Parameter("defaultTargetCapacityType") String defaultTargetCapacityType, - @CustomType.Parameter("onDemandTargetCapacity") @Nullable Integer onDemandTargetCapacity, - @CustomType.Parameter("spotTargetCapacity") @Nullable Integer spotTargetCapacity, - @CustomType.Parameter("totalTargetCapacity") Integer totalTargetCapacity) { - this.defaultTargetCapacityType = defaultTargetCapacityType; - this.onDemandTargetCapacity = onDemandTargetCapacity; - this.spotTargetCapacity = spotTargetCapacity; - this.totalTargetCapacity = totalTargetCapacity; - } + private Integer totalTargetCapacity; + private FleetTargetCapacitySpecification() {} /** * @return Default target capacity type. Valid values: `on-demand`, `spot`. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(FleetTargetCapacitySpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String defaultTargetCapacityType; private @Nullable Integer onDemandTargetCapacity; private @Nullable Integer spotTargetCapacity; private Integer totalTargetCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetTargetCapacitySpecification defaults) { Objects.requireNonNull(defaults); this.defaultTargetCapacityType = defaults.defaultTargetCapacityType; @@ -100,23 +85,33 @@ public Builder(FleetTargetCapacitySpecification defaults) { this.totalTargetCapacity = defaults.totalTargetCapacity; } + @CustomType.Setter public Builder defaultTargetCapacityType(String defaultTargetCapacityType) { this.defaultTargetCapacityType = Objects.requireNonNull(defaultTargetCapacityType); return this; } + @CustomType.Setter public Builder onDemandTargetCapacity(@Nullable Integer onDemandTargetCapacity) { this.onDemandTargetCapacity = onDemandTargetCapacity; return this; } + @CustomType.Setter public Builder spotTargetCapacity(@Nullable Integer spotTargetCapacity) { this.spotTargetCapacity = spotTargetCapacity; return this; } + @CustomType.Setter public Builder totalTargetCapacity(Integer totalTargetCapacity) { this.totalTargetCapacity = Objects.requireNonNull(totalTargetCapacity); return this; - } public FleetTargetCapacitySpecification build() { - return new FleetTargetCapacitySpecification(defaultTargetCapacityType, onDemandTargetCapacity, spotTargetCapacity, totalTargetCapacity); + } + public FleetTargetCapacitySpecification build() { + final var o = new FleetTargetCapacitySpecification(); + o.defaultTargetCapacityType = defaultTargetCapacityType; + o.onDemandTargetCapacity = onDemandTargetCapacity; + o.spotTargetCapacity = spotTargetCapacity; + o.totalTargetCapacity = totalTargetCapacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FlowLogDestinationOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FlowLogDestinationOptions.java index 98f12624b0a..fb0ccc9f573 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FlowLogDestinationOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/FlowLogDestinationOptions.java @@ -16,28 +16,19 @@ public final class FlowLogDestinationOptions { * @return The format for the flow log. Default value: `plain-text`. Valid values: `plain-text`, `parquet`. * */ - private final @Nullable String fileFormat; + private @Nullable String fileFormat; /** * @return Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3. Default value: `false`. * */ - private final @Nullable Boolean hiveCompatiblePartitions; + private @Nullable Boolean hiveCompatiblePartitions; /** * @return Indicates whether to partition the flow log per hour. This reduces the cost and response time for queries. Default value: `false`. * */ - private final @Nullable Boolean perHourPartition; - - @CustomType.Constructor - private FlowLogDestinationOptions( - @CustomType.Parameter("fileFormat") @Nullable String fileFormat, - @CustomType.Parameter("hiveCompatiblePartitions") @Nullable Boolean hiveCompatiblePartitions, - @CustomType.Parameter("perHourPartition") @Nullable Boolean perHourPartition) { - this.fileFormat = fileFormat; - this.hiveCompatiblePartitions = hiveCompatiblePartitions; - this.perHourPartition = perHourPartition; - } + private @Nullable Boolean perHourPartition; + private FlowLogDestinationOptions() {} /** * @return The format for the flow log. Default value: `plain-text`. Valid values: `plain-text`, `parquet`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FlowLogDestinationOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String fileFormat; private @Nullable Boolean hiveCompatiblePartitions; private @Nullable Boolean perHourPartition; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowLogDestinationOptions defaults) { Objects.requireNonNull(defaults); this.fileFormat = defaults.fileFormat; @@ -84,19 +71,27 @@ public Builder(FlowLogDestinationOptions defaults) { this.perHourPartition = defaults.perHourPartition; } + @CustomType.Setter public Builder fileFormat(@Nullable String fileFormat) { this.fileFormat = fileFormat; return this; } + @CustomType.Setter public Builder hiveCompatiblePartitions(@Nullable Boolean hiveCompatiblePartitions) { this.hiveCompatiblePartitions = hiveCompatiblePartitions; return this; } + @CustomType.Setter public Builder perHourPartition(@Nullable Boolean perHourPartition) { this.perHourPartition = perHourPartition; return this; - } public FlowLogDestinationOptions build() { - return new FlowLogDestinationOptions(fileFormat, hiveCompatiblePartitions, perHourPartition); + } + public FlowLogDestinationOptions build() { + final var o = new FlowLogDestinationOptions(); + o.fileFormat = fileFormat; + o.hiveCompatiblePartitions = hiveCompatiblePartitions; + o.perHourPartition = perHourPartition; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiBlockDeviceMapping.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiBlockDeviceMapping.java index 033ad66a61f..3a41719c221 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiBlockDeviceMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiBlockDeviceMapping.java @@ -14,35 +14,24 @@ public final class GetAmiBlockDeviceMapping { * @return The physical name of the device. * */ - private final String deviceName; + private String deviceName; /** * @return Map containing EBS information, if the device is EBS based. Unlike most object attributes, these are accessed directly (e.g., `ebs.volume_size` or `ebs["volume_size"]`) rather than accessed through the first element of a list (e.g., `ebs[0].volume_size`). * */ - private final Map ebs; + private Map ebs; /** * @return Suppresses the specified device included in the block device mapping of the AMI. * */ - private final String noDevice; + private String noDevice; /** * @return The virtual device name (for instance stores). * */ - private final String virtualName; - - @CustomType.Constructor - private GetAmiBlockDeviceMapping( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("ebs") Map ebs, - @CustomType.Parameter("noDevice") String noDevice, - @CustomType.Parameter("virtualName") String virtualName) { - this.deviceName = deviceName; - this.ebs = ebs; - this.noDevice = noDevice; - this.virtualName = virtualName; - } + private String virtualName; + private GetAmiBlockDeviceMapping() {} /** * @return The physical name of the device. * @@ -79,17 +68,13 @@ public static Builder builder() { public static Builder builder(GetAmiBlockDeviceMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private Map ebs; private String noDevice; private String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiBlockDeviceMapping defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; @@ -98,23 +83,33 @@ public Builder(GetAmiBlockDeviceMapping defaults) { this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder ebs(Map ebs) { this.ebs = Objects.requireNonNull(ebs); return this; } + @CustomType.Setter public Builder noDevice(String noDevice) { this.noDevice = Objects.requireNonNull(noDevice); return this; } + @CustomType.Setter public Builder virtualName(String virtualName) { this.virtualName = Objects.requireNonNull(virtualName); return this; - } public GetAmiBlockDeviceMapping build() { - return new GetAmiBlockDeviceMapping(deviceName, ebs, noDevice, virtualName); + } + public GetAmiBlockDeviceMapping build() { + final var o = new GetAmiBlockDeviceMapping(); + o.deviceName = deviceName; + o.ebs = ebs; + o.noDevice = noDevice; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiFilter.java index d3452eede0c..1ccbf7bdd9b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiFilter.java @@ -14,17 +14,10 @@ public final class GetAmiFilter { * @return The name of the AMI that was provided during image creation. * */ - private final String name; - private final List values; - - @CustomType.Constructor - private GetAmiFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetAmiFilter() {} /** * @return The name of the AMI that was provided during image creation. * @@ -43,33 +36,35 @@ public static Builder builder() { public static Builder builder(GetAmiFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetAmiFilter build() { - return new GetAmiFilter(name, values); + } + public GetAmiFilter build() { + final var o = new GetAmiFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiIdsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiIdsFilter.java index 89f15e6f1f0..c6193da5e6a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiIdsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiIdsFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetAmiIdsFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetAmiIdsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetAmiIdsFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetAmiIdsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiIdsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetAmiIdsFilter build() { - return new GetAmiIdsFilter(name, values); + } + public GetAmiIdsFilter build() { + final var o = new GetAmiIdsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiIdsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiIdsResult.java index 0a8adeacfd9..b597138b1f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiIdsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiIdsResult.java @@ -14,36 +14,19 @@ @CustomType public final class GetAmiIdsResult { - private final @Nullable List executableUsers; - private final @Nullable List filters; + private @Nullable List executableUsers; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final List ids; - private final @Nullable String nameRegex; - private final List owners; - private final @Nullable Boolean sortAscending; - - @CustomType.Constructor - private GetAmiIdsResult( - @CustomType.Parameter("executableUsers") @Nullable List executableUsers, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("nameRegex") @Nullable String nameRegex, - @CustomType.Parameter("owners") List owners, - @CustomType.Parameter("sortAscending") @Nullable Boolean sortAscending) { - this.executableUsers = executableUsers; - this.filters = filters; - this.id = id; - this.ids = ids; - this.nameRegex = nameRegex; - this.owners = owners; - this.sortAscending = sortAscending; - } + private String id; + private List ids; + private @Nullable String nameRegex; + private List owners; + private @Nullable Boolean sortAscending; + private GetAmiIdsResult() {} public List executableUsers() { return this.executableUsers == null ? List.of() : this.executableUsers; } @@ -77,7 +60,7 @@ public static Builder builder() { public static Builder builder(GetAmiIdsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List executableUsers; private @Nullable List filters; @@ -86,11 +69,7 @@ public static final class Builder { private @Nullable String nameRegex; private List owners; private @Nullable Boolean sortAscending; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiIdsResult defaults) { Objects.requireNonNull(defaults); this.executableUsers = defaults.executableUsers; @@ -102,6 +81,7 @@ public Builder(GetAmiIdsResult defaults) { this.sortAscending = defaults.sortAscending; } + @CustomType.Setter public Builder executableUsers(@Nullable List executableUsers) { this.executableUsers = executableUsers; return this; @@ -109,6 +89,7 @@ public Builder executableUsers(@Nullable List executableUsers) { public Builder executableUsers(String... executableUsers) { return executableUsers(List.of(executableUsers)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -116,10 +97,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetAmiIdsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -127,10 +110,12 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder nameRegex(@Nullable String nameRegex) { this.nameRegex = nameRegex; return this; } + @CustomType.Setter public Builder owners(List owners) { this.owners = Objects.requireNonNull(owners); return this; @@ -138,11 +123,21 @@ public Builder owners(List owners) { public Builder owners(String... owners) { return owners(List.of(owners)); } + @CustomType.Setter public Builder sortAscending(@Nullable Boolean sortAscending) { this.sortAscending = sortAscending; return this; - } public GetAmiIdsResult build() { - return new GetAmiIdsResult(executableUsers, filters, id, ids, nameRegex, owners, sortAscending); + } + public GetAmiIdsResult build() { + final var o = new GetAmiIdsResult(); + o.executableUsers = executableUsers; + o.filters = filters; + o.id = id; + o.ids = ids; + o.nameRegex = nameRegex; + o.owners = owners; + o.sortAscending = sortAscending; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiProductCode.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiProductCode.java index 183d3285692..b839c209fcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiProductCode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiProductCode.java @@ -9,17 +9,10 @@ @CustomType public final class GetAmiProductCode { - private final String productCodeId; - private final String productCodeType; - - @CustomType.Constructor - private GetAmiProductCode( - @CustomType.Parameter("productCodeId") String productCodeId, - @CustomType.Parameter("productCodeType") String productCodeType) { - this.productCodeId = productCodeId; - this.productCodeType = productCodeType; - } + private String productCodeId; + private String productCodeType; + private GetAmiProductCode() {} public String productCodeId() { return this.productCodeId; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetAmiProductCode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String productCodeId; private String productCodeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiProductCode defaults) { Objects.requireNonNull(defaults); this.productCodeId = defaults.productCodeId; this.productCodeType = defaults.productCodeType; } + @CustomType.Setter public Builder productCodeId(String productCodeId) { this.productCodeId = Objects.requireNonNull(productCodeId); return this; } + @CustomType.Setter public Builder productCodeType(String productCodeType) { this.productCodeType = Objects.requireNonNull(productCodeType); return this; - } public GetAmiProductCode build() { - return new GetAmiProductCode(productCodeId, productCodeType); + } + public GetAmiProductCode build() { + final var o = new GetAmiProductCode(); + o.productCodeId = productCodeId; + o.productCodeType = productCodeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiResult.java index f202582f5f0..562d0ea5b4f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetAmiResult.java @@ -21,262 +21,183 @@ public final class GetAmiResult { * @return The OS architecture of the AMI (ie: `i386` or `x86_64`). * */ - private final String architecture; + private String architecture; /** * @return The ARN of the AMI. * */ - private final String arn; + private String arn; /** * @return Set of objects with block device mappings of the AMI. * */ - private final List blockDeviceMappings; + private List blockDeviceMappings; /** * @return The boot mode of the image. * */ - private final String bootMode; + private String bootMode; /** * @return The date and time the image was created. * */ - private final String creationDate; + private String creationDate; /** * @return The date and time when the image will be deprecated. * */ - private final String deprecationTime; + private String deprecationTime; /** * @return The description of the AMI that was provided during image * creation. * */ - private final String description; + private String description; /** * @return Specifies whether enhanced networking with ENA is enabled. * */ - private final Boolean enaSupport; - private final @Nullable List executableUsers; - private final @Nullable List filters; + private Boolean enaSupport; + private @Nullable List executableUsers; + private @Nullable List filters; /** * @return The hypervisor type of the image. * */ - private final String hypervisor; + private String hypervisor; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The ID of the AMI. Should be the same as the resource `id`. * */ - private final String imageId; + private String imageId; /** * @return The location of the AMI. * */ - private final String imageLocation; + private String imageLocation; /** * @return The AWS account alias (for example, `amazon`, `self`) or * the AWS account ID of the AMI owner. * */ - private final String imageOwnerAlias; + private String imageOwnerAlias; /** * @return The type of image. * */ - private final String imageType; - private final @Nullable Boolean includeDeprecated; + private String imageType; + private @Nullable Boolean includeDeprecated; /** * @return The kernel associated with the image, if any. Only applicable * for machine images. * */ - private final String kernelId; - private final @Nullable Boolean mostRecent; + private String kernelId; + private @Nullable Boolean mostRecent; /** * @return The name of the AMI that was provided during image creation. * */ - private final String name; - private final @Nullable String nameRegex; + private String name; + private @Nullable String nameRegex; /** * @return The AWS account ID of the image owner. * */ - private final String ownerId; - private final @Nullable List owners; + private String ownerId; + private @Nullable List owners; /** * @return The value is Windows for `Windows` AMIs; otherwise blank. * */ - private final String platform; + private String platform; /** * @return The platform details associated with the billing code of the AMI. * */ - private final String platformDetails; + private String platformDetails; /** * @return Any product codes associated with the AMI. * * `product_codes.#.product_code_id` - The product code. * * `product_codes.#.product_code_type` - The type of product code. * */ - private final List productCodes; + private List productCodes; /** * @return `true` if the image has public launch permissions. * */ - private final Boolean public_; + private Boolean public_; /** * @return The RAM disk associated with the image, if any. Only applicable * for machine images. * */ - private final String ramdiskId; + private String ramdiskId; /** * @return The device name of the root device. * */ - private final String rootDeviceName; + private String rootDeviceName; /** * @return The type of root device (ie: `ebs` or `instance-store`). * */ - private final String rootDeviceType; + private String rootDeviceType; /** * @return The snapshot id associated with the root device, if any * (only applies to `ebs` root devices). * */ - private final String rootSnapshotId; + private String rootSnapshotId; /** * @return Specifies whether enhanced networking is enabled. * */ - private final String sriovNetSupport; + private String sriovNetSupport; /** * @return The current state of the AMI. If the state is `available`, the image * is successfully registered and can be used to launch an instance. * */ - private final String state; + private String state; /** * @return Describes a state change. Fields are `UNSET` if not available. * * `state_reason.code` - The reason code for the state change. * * `state_reason.message` - The message for the state change. * */ - private final Map stateReason; + private Map stateReason; /** * @return Any tags assigned to the image. * * `tags.#.key` - The key name of the tag. * * `tags.#.value` - The value of the tag. * */ - private final Map tags; + private Map tags; /** * @return If the image is configured for NitroTPM support, the value is `v2.0`. * */ - private final String tpmSupport; + private String tpmSupport; /** * @return The operation of the Amazon EC2 instance and the billing code that is associated with the AMI. * */ - private final String usageOperation; + private String usageOperation; /** * @return The type of virtualization of the AMI (ie: `hvm` or * `paravirtual`). * */ - private final String virtualizationType; - - @CustomType.Constructor - private GetAmiResult( - @CustomType.Parameter("architecture") String architecture, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("blockDeviceMappings") List blockDeviceMappings, - @CustomType.Parameter("bootMode") String bootMode, - @CustomType.Parameter("creationDate") String creationDate, - @CustomType.Parameter("deprecationTime") String deprecationTime, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("enaSupport") Boolean enaSupport, - @CustomType.Parameter("executableUsers") @Nullable List executableUsers, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("hypervisor") String hypervisor, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("imageId") String imageId, - @CustomType.Parameter("imageLocation") String imageLocation, - @CustomType.Parameter("imageOwnerAlias") String imageOwnerAlias, - @CustomType.Parameter("imageType") String imageType, - @CustomType.Parameter("includeDeprecated") @Nullable Boolean includeDeprecated, - @CustomType.Parameter("kernelId") String kernelId, - @CustomType.Parameter("mostRecent") @Nullable Boolean mostRecent, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nameRegex") @Nullable String nameRegex, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("owners") @Nullable List owners, - @CustomType.Parameter("platform") String platform, - @CustomType.Parameter("platformDetails") String platformDetails, - @CustomType.Parameter("productCodes") List productCodes, - @CustomType.Parameter("public") Boolean public_, - @CustomType.Parameter("ramdiskId") String ramdiskId, - @CustomType.Parameter("rootDeviceName") String rootDeviceName, - @CustomType.Parameter("rootDeviceType") String rootDeviceType, - @CustomType.Parameter("rootSnapshotId") String rootSnapshotId, - @CustomType.Parameter("sriovNetSupport") String sriovNetSupport, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("stateReason") Map stateReason, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("tpmSupport") String tpmSupport, - @CustomType.Parameter("usageOperation") String usageOperation, - @CustomType.Parameter("virtualizationType") String virtualizationType) { - this.architecture = architecture; - this.arn = arn; - this.blockDeviceMappings = blockDeviceMappings; - this.bootMode = bootMode; - this.creationDate = creationDate; - this.deprecationTime = deprecationTime; - this.description = description; - this.enaSupport = enaSupport; - this.executableUsers = executableUsers; - this.filters = filters; - this.hypervisor = hypervisor; - this.id = id; - this.imageId = imageId; - this.imageLocation = imageLocation; - this.imageOwnerAlias = imageOwnerAlias; - this.imageType = imageType; - this.includeDeprecated = includeDeprecated; - this.kernelId = kernelId; - this.mostRecent = mostRecent; - this.name = name; - this.nameRegex = nameRegex; - this.ownerId = ownerId; - this.owners = owners; - this.platform = platform; - this.platformDetails = platformDetails; - this.productCodes = productCodes; - this.public_ = public_; - this.ramdiskId = ramdiskId; - this.rootDeviceName = rootDeviceName; - this.rootDeviceType = rootDeviceType; - this.rootSnapshotId = rootSnapshotId; - this.sriovNetSupport = sriovNetSupport; - this.state = state; - this.stateReason = stateReason; - this.tags = tags; - this.tpmSupport = tpmSupport; - this.usageOperation = usageOperation; - this.virtualizationType = virtualizationType; - } + private String virtualizationType; + private GetAmiResult() {} /** * @return The OS architecture of the AMI (ie: `i386` or `x86_64`). * @@ -540,7 +461,7 @@ public static Builder builder() { public static Builder builder(GetAmiResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String architecture; private String arn; @@ -580,11 +501,7 @@ public static final class Builder { private String tpmSupport; private String usageOperation; private String virtualizationType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiResult defaults) { Objects.requireNonNull(defaults); this.architecture = defaults.architecture; @@ -627,14 +544,17 @@ public Builder(GetAmiResult defaults) { this.virtualizationType = defaults.virtualizationType; } + @CustomType.Setter public Builder architecture(String architecture) { this.architecture = Objects.requireNonNull(architecture); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder blockDeviceMappings(List blockDeviceMappings) { this.blockDeviceMappings = Objects.requireNonNull(blockDeviceMappings); return this; @@ -642,26 +562,32 @@ public Builder blockDeviceMappings(List blockDeviceMap public Builder blockDeviceMappings(GetAmiBlockDeviceMapping... blockDeviceMappings) { return blockDeviceMappings(List.of(blockDeviceMappings)); } + @CustomType.Setter public Builder bootMode(String bootMode) { this.bootMode = Objects.requireNonNull(bootMode); return this; } + @CustomType.Setter public Builder creationDate(String creationDate) { this.creationDate = Objects.requireNonNull(creationDate); return this; } + @CustomType.Setter public Builder deprecationTime(String deprecationTime) { this.deprecationTime = Objects.requireNonNull(deprecationTime); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder enaSupport(Boolean enaSupport) { this.enaSupport = Objects.requireNonNull(enaSupport); return this; } + @CustomType.Setter public Builder executableUsers(@Nullable List executableUsers) { this.executableUsers = executableUsers; return this; @@ -669,6 +595,7 @@ public Builder executableUsers(@Nullable List executableUsers) { public Builder executableUsers(String... executableUsers) { return executableUsers(List.of(executableUsers)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -676,54 +603,67 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetAmiFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder hypervisor(String hypervisor) { this.hypervisor = Objects.requireNonNull(hypervisor); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder imageId(String imageId) { this.imageId = Objects.requireNonNull(imageId); return this; } + @CustomType.Setter public Builder imageLocation(String imageLocation) { this.imageLocation = Objects.requireNonNull(imageLocation); return this; } + @CustomType.Setter public Builder imageOwnerAlias(String imageOwnerAlias) { this.imageOwnerAlias = Objects.requireNonNull(imageOwnerAlias); return this; } + @CustomType.Setter public Builder imageType(String imageType) { this.imageType = Objects.requireNonNull(imageType); return this; } + @CustomType.Setter public Builder includeDeprecated(@Nullable Boolean includeDeprecated) { this.includeDeprecated = includeDeprecated; return this; } + @CustomType.Setter public Builder kernelId(String kernelId) { this.kernelId = Objects.requireNonNull(kernelId); return this; } + @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { this.mostRecent = mostRecent; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nameRegex(@Nullable String nameRegex) { this.nameRegex = nameRegex; return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder owners(@Nullable List owners) { this.owners = owners; return this; @@ -731,14 +671,17 @@ public Builder owners(@Nullable List owners) { public Builder owners(String... owners) { return owners(List.of(owners)); } + @CustomType.Setter public Builder platform(String platform) { this.platform = Objects.requireNonNull(platform); return this; } + @CustomType.Setter public Builder platformDetails(String platformDetails) { this.platformDetails = Objects.requireNonNull(platformDetails); return this; } + @CustomType.Setter public Builder productCodes(List productCodes) { this.productCodes = Objects.requireNonNull(productCodes); return this; @@ -746,55 +689,107 @@ public Builder productCodes(List productCodes) { public Builder productCodes(GetAmiProductCode... productCodes) { return productCodes(List.of(productCodes)); } + @CustomType.Setter("public") public Builder public_(Boolean public_) { this.public_ = Objects.requireNonNull(public_); return this; } + @CustomType.Setter public Builder ramdiskId(String ramdiskId) { this.ramdiskId = Objects.requireNonNull(ramdiskId); return this; } + @CustomType.Setter public Builder rootDeviceName(String rootDeviceName) { this.rootDeviceName = Objects.requireNonNull(rootDeviceName); return this; } + @CustomType.Setter public Builder rootDeviceType(String rootDeviceType) { this.rootDeviceType = Objects.requireNonNull(rootDeviceType); return this; } + @CustomType.Setter public Builder rootSnapshotId(String rootSnapshotId) { this.rootSnapshotId = Objects.requireNonNull(rootSnapshotId); return this; } + @CustomType.Setter public Builder sriovNetSupport(String sriovNetSupport) { this.sriovNetSupport = Objects.requireNonNull(sriovNetSupport); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder stateReason(Map stateReason) { this.stateReason = Objects.requireNonNull(stateReason); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder tpmSupport(String tpmSupport) { this.tpmSupport = Objects.requireNonNull(tpmSupport); return this; } + @CustomType.Setter public Builder usageOperation(String usageOperation) { this.usageOperation = Objects.requireNonNull(usageOperation); return this; } + @CustomType.Setter public Builder virtualizationType(String virtualizationType) { this.virtualizationType = Objects.requireNonNull(virtualizationType); return this; - } public GetAmiResult build() { - return new GetAmiResult(architecture, arn, blockDeviceMappings, bootMode, creationDate, deprecationTime, description, enaSupport, executableUsers, filters, hypervisor, id, imageId, imageLocation, imageOwnerAlias, imageType, includeDeprecated, kernelId, mostRecent, name, nameRegex, ownerId, owners, platform, platformDetails, productCodes, public_, ramdiskId, rootDeviceName, rootDeviceType, rootSnapshotId, sriovNetSupport, state, stateReason, tags, tpmSupport, usageOperation, virtualizationType); + } + public GetAmiResult build() { + final var o = new GetAmiResult(); + o.architecture = architecture; + o.arn = arn; + o.blockDeviceMappings = blockDeviceMappings; + o.bootMode = bootMode; + o.creationDate = creationDate; + o.deprecationTime = deprecationTime; + o.description = description; + o.enaSupport = enaSupport; + o.executableUsers = executableUsers; + o.filters = filters; + o.hypervisor = hypervisor; + o.id = id; + o.imageId = imageId; + o.imageLocation = imageLocation; + o.imageOwnerAlias = imageOwnerAlias; + o.imageType = imageType; + o.includeDeprecated = includeDeprecated; + o.kernelId = kernelId; + o.mostRecent = mostRecent; + o.name = name; + o.nameRegex = nameRegex; + o.ownerId = ownerId; + o.owners = owners; + o.platform = platform; + o.platformDetails = platformDetails; + o.productCodes = productCodes; + o.public_ = public_; + o.ramdiskId = ramdiskId; + o.rootDeviceName = rootDeviceName; + o.rootDeviceType = rootDeviceType; + o.rootSnapshotId = rootSnapshotId; + o.sriovNetSupport = sriovNetSupport; + o.state = state; + o.stateReason = stateReason; + o.tags = tags; + o.tpmSupport = tpmSupport; + o.usageOperation = usageOperation; + o.virtualizationType = virtualizationType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolFilter.java index b2b717141ee..1d4f8cf410b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolFilter.java @@ -15,22 +15,15 @@ public final class GetCoipPoolFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeCoipPools.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A COIP Pool will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetCoipPoolFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetCoipPoolFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeCoipPools.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetCoipPoolFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCoipPoolFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCoipPoolFilter build() { - return new GetCoipPoolFilter(name, values); + } + public GetCoipPoolFilter build() { + final var o = new GetCoipPoolFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolResult.java index a20fba0cb9a..f4ed73dcc43 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolResult.java @@ -17,40 +17,23 @@ public final class GetCoipPoolResult { * @return ARN of the COIP pool * */ - private final String arn; - private final @Nullable List filters; + private String arn; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String localGatewayRouteTableId; + private String id; + private String localGatewayRouteTableId; /** * @return Set of CIDR blocks in pool * */ - private final List poolCidrs; - private final String poolId; - private final Map tags; - - @CustomType.Constructor - private GetCoipPoolResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("localGatewayRouteTableId") String localGatewayRouteTableId, - @CustomType.Parameter("poolCidrs") List poolCidrs, - @CustomType.Parameter("poolId") String poolId, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.filters = filters; - this.id = id; - this.localGatewayRouteTableId = localGatewayRouteTableId; - this.poolCidrs = poolCidrs; - this.poolId = poolId; - this.tags = tags; - } + private List poolCidrs; + private String poolId; + private Map tags; + private GetCoipPoolResult() {} /** * @return ARN of the COIP pool * @@ -92,7 +75,7 @@ public static Builder builder() { public static Builder builder(GetCoipPoolResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable List filters; @@ -101,11 +84,7 @@ public static final class Builder { private List poolCidrs; private String poolId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCoipPoolResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -117,10 +96,12 @@ public Builder(GetCoipPoolResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -128,14 +109,17 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetCoipPoolFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder localGatewayRouteTableId(String localGatewayRouteTableId) { this.localGatewayRouteTableId = Objects.requireNonNull(localGatewayRouteTableId); return this; } + @CustomType.Setter public Builder poolCidrs(List poolCidrs) { this.poolCidrs = Objects.requireNonNull(poolCidrs); return this; @@ -143,15 +127,26 @@ public Builder poolCidrs(List poolCidrs) { public Builder poolCidrs(String... poolCidrs) { return poolCidrs(List.of(poolCidrs)); } + @CustomType.Setter public Builder poolId(String poolId) { this.poolId = Objects.requireNonNull(poolId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetCoipPoolResult build() { - return new GetCoipPoolResult(arn, filters, id, localGatewayRouteTableId, poolCidrs, poolId, tags); + } + public GetCoipPoolResult build() { + final var o = new GetCoipPoolResult(); + o.arn = arn; + o.filters = filters; + o.id = id; + o.localGatewayRouteTableId = localGatewayRouteTableId; + o.poolCidrs = poolCidrs; + o.poolId = poolId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolsFilter.java index 264f1cb4e6a..97814ccc768 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolsFilter.java @@ -15,22 +15,15 @@ public final class GetCoipPoolsFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeCoipPools.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A COIP Pool will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetCoipPoolsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetCoipPoolsFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeCoipPools.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetCoipPoolsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCoipPoolsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCoipPoolsFilter build() { - return new GetCoipPoolsFilter(name, values); + } + public GetCoipPoolsFilter build() { + final var o = new GetCoipPoolsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolsResult.java index 73ddcb563ce..538875de2dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCoipPoolsResult.java @@ -13,31 +13,20 @@ @CustomType public final class GetCoipPoolsResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of COIP Pool Identifiers * */ - private final List poolIds; - private final Map tags; - - @CustomType.Constructor - private GetCoipPoolsResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("poolIds") List poolIds, - @CustomType.Parameter("tags") Map tags) { - this.filters = filters; - this.id = id; - this.poolIds = poolIds; - this.tags = tags; - } + private List poolIds; + private Map tags; + private GetCoipPoolsResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -66,17 +55,13 @@ public static Builder builder() { public static Builder builder(GetCoipPoolsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List poolIds; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCoipPoolsResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -85,6 +70,7 @@ public Builder(GetCoipPoolsResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -92,10 +78,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetCoipPoolsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder poolIds(List poolIds) { this.poolIds = Objects.requireNonNull(poolIds); return this; @@ -103,11 +91,18 @@ public Builder poolIds(List poolIds) { public Builder poolIds(String... poolIds) { return poolIds(List.of(poolIds)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetCoipPoolsResult build() { - return new GetCoipPoolsResult(filters, id, poolIds, tags); + } + public GetCoipPoolsResult build() { + final var o = new GetCoipPoolsResult(); + o.filters = filters; + o.id = id; + o.poolIds = poolIds; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCustomerGatewayFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCustomerGatewayFilter.java index b7d393f8097..7e2b6364389 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCustomerGatewayFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCustomerGatewayFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetCustomerGatewayFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetCustomerGatewayFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetCustomerGatewayFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetCustomerGatewayFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCustomerGatewayFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetCustomerGatewayFilter build() { - return new GetCustomerGatewayFilter(name, values); + } + public GetCustomerGatewayFilter build() { + final var o = new GetCustomerGatewayFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCustomerGatewayResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCustomerGatewayResult.java index ebbc031810d..1cae311e3f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCustomerGatewayResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetCustomerGatewayResult.java @@ -18,62 +18,41 @@ public final class GetCustomerGatewayResult { * @return The ARN of the customer gateway. * */ - private final String arn; + private String arn; /** * @return The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN). * */ - private final Integer bgpAsn; + private Integer bgpAsn; /** * @return The Amazon Resource Name (ARN) for the customer gateway certificate. * */ - private final String certificateArn; + private String certificateArn; /** * @return A name for the customer gateway device. * */ - private final String deviceName; - private final @Nullable List filters; - private final String id; + private String deviceName; + private @Nullable List filters; + private String id; /** * @return The IP address of the gateway's Internet-routable external interface. * */ - private final String ipAddress; + private String ipAddress; /** * @return Map of key-value pairs assigned to the gateway. * */ - private final Map tags; + private Map tags; /** * @return The type of customer gateway. The only type AWS supports at this time is "ipsec.1". * */ - private final String type; - - @CustomType.Constructor - private GetCustomerGatewayResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("bgpAsn") Integer bgpAsn, - @CustomType.Parameter("certificateArn") String certificateArn, - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ipAddress") String ipAddress, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("type") String type) { - this.arn = arn; - this.bgpAsn = bgpAsn; - this.certificateArn = certificateArn; - this.deviceName = deviceName; - this.filters = filters; - this.id = id; - this.ipAddress = ipAddress; - this.tags = tags; - this.type = type; - } + private String type; + private GetCustomerGatewayResult() {} /** * @return The ARN of the customer gateway. * @@ -137,7 +116,7 @@ public static Builder builder() { public static Builder builder(GetCustomerGatewayResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Integer bgpAsn; @@ -148,11 +127,7 @@ public static final class Builder { private String ipAddress; private Map tags; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCustomerGatewayResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -166,22 +141,27 @@ public Builder(GetCustomerGatewayResult defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder bgpAsn(Integer bgpAsn) { this.bgpAsn = Objects.requireNonNull(bgpAsn); return this; } + @CustomType.Setter public Builder certificateArn(String certificateArn) { this.certificateArn = Objects.requireNonNull(certificateArn); return this; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -189,23 +169,38 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetCustomerGatewayFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ipAddress(String ipAddress) { this.ipAddress = Objects.requireNonNull(ipAddress); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetCustomerGatewayResult build() { - return new GetCustomerGatewayResult(arn, bgpAsn, certificateArn, deviceName, filters, id, ipAddress, tags, type); + } + public GetCustomerGatewayResult build() { + final var o = new GetCustomerGatewayResult(); + o.arn = arn; + o.bgpAsn = bgpAsn; + o.certificateArn = certificateArn; + o.deviceName = deviceName; + o.filters = filters; + o.id = id; + o.ipAddress = ipAddress; + o.tags = tags; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetDedicatedHostFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetDedicatedHostFilter.java index 1576f8c0995..2259599cd5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetDedicatedHostFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetDedicatedHostFilter.java @@ -14,21 +14,14 @@ public final class GetDedicatedHostFilter { * @return The name of the field to filter by, as defined by [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeHosts.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. A host will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetDedicatedHostFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetDedicatedHostFilter() {} /** * @return The name of the field to filter by, as defined by [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeHosts.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetDedicatedHostFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDedicatedHostFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetDedicatedHostFilter build() { - return new GetDedicatedHostFilter(name, values); + } + public GetDedicatedHostFilter build() { + final var o = new GetDedicatedHostFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetDedicatedHostResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetDedicatedHostResult.java index 9af840b2064..a7efd9b36c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetDedicatedHostResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetDedicatedHostResult.java @@ -18,100 +18,67 @@ public final class GetDedicatedHostResult { * @return The ARN of the Dedicated Host. * */ - private final String arn; + private String arn; /** * @return Whether auto-placement is on or off. * */ - private final String autoPlacement; + private String autoPlacement; /** * @return The Availability Zone of the Dedicated Host. * */ - private final String availabilityZone; + private String availabilityZone; /** * @return The number of cores on the Dedicated Host. * */ - private final Integer cores; - private final @Nullable List filters; - private final String hostId; + private Integer cores; + private @Nullable List filters; + private String hostId; /** * @return Indicates whether host recovery is enabled or disabled for the Dedicated Host. * */ - private final String hostRecovery; + private String hostRecovery; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The instance family supported by the Dedicated Host. For example, "m5". * */ - private final String instanceFamily; + private String instanceFamily; /** * @return The instance type supported by the Dedicated Host. For example, "m5.large". If the host supports multiple instance types, no instanceType is returned. * */ - private final String instanceType; + private String instanceType; /** * @return The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated. * */ - private final String outpostArn; + private String outpostArn; /** * @return The ID of the AWS account that owns the Dedicated Host. * */ - private final String ownerId; + private String ownerId; /** * @return The number of sockets on the Dedicated Host. * */ - private final Integer sockets; - private final Map tags; + private Integer sockets; + private Map tags; /** * @return The total number of vCPUs on the Dedicated Host. * */ - private final Integer totalVcpus; - - @CustomType.Constructor - private GetDedicatedHostResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("autoPlacement") String autoPlacement, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("cores") Integer cores, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("hostId") String hostId, - @CustomType.Parameter("hostRecovery") String hostRecovery, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceFamily") String instanceFamily, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("outpostArn") String outpostArn, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("sockets") Integer sockets, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("totalVcpus") Integer totalVcpus) { - this.arn = arn; - this.autoPlacement = autoPlacement; - this.availabilityZone = availabilityZone; - this.cores = cores; - this.filters = filters; - this.hostId = hostId; - this.hostRecovery = hostRecovery; - this.id = id; - this.instanceFamily = instanceFamily; - this.instanceType = instanceType; - this.outpostArn = outpostArn; - this.ownerId = ownerId; - this.sockets = sockets; - this.tags = tags; - this.totalVcpus = totalVcpus; - } + private Integer totalVcpus; + private GetDedicatedHostResult() {} /** * @return The ARN of the Dedicated Host. * @@ -213,7 +180,7 @@ public static Builder builder() { public static Builder builder(GetDedicatedHostResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String autoPlacement; @@ -230,11 +197,7 @@ public static final class Builder { private Integer sockets; private Map tags; private Integer totalVcpus; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDedicatedHostResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -254,22 +217,27 @@ public Builder(GetDedicatedHostResult defaults) { this.totalVcpus = defaults.totalVcpus; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder autoPlacement(String autoPlacement) { this.autoPlacement = Objects.requireNonNull(autoPlacement); return this; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder cores(Integer cores) { this.cores = Objects.requireNonNull(cores); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -277,47 +245,74 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetDedicatedHostFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder hostId(String hostId) { this.hostId = Objects.requireNonNull(hostId); return this; } + @CustomType.Setter public Builder hostRecovery(String hostRecovery) { this.hostRecovery = Objects.requireNonNull(hostRecovery); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceFamily(String instanceFamily) { this.instanceFamily = Objects.requireNonNull(instanceFamily); return this; } + @CustomType.Setter public Builder instanceType(String instanceType) { this.instanceType = Objects.requireNonNull(instanceType); return this; } + @CustomType.Setter public Builder outpostArn(String outpostArn) { this.outpostArn = Objects.requireNonNull(outpostArn); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder sockets(Integer sockets) { this.sockets = Objects.requireNonNull(sockets); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder totalVcpus(Integer totalVcpus) { this.totalVcpus = Objects.requireNonNull(totalVcpus); return this; - } public GetDedicatedHostResult build() { - return new GetDedicatedHostResult(arn, autoPlacement, availabilityZone, cores, filters, hostId, hostRecovery, id, instanceFamily, instanceType, outpostArn, ownerId, sockets, tags, totalVcpus); + } + public GetDedicatedHostResult build() { + final var o = new GetDedicatedHostResult(); + o.arn = arn; + o.autoPlacement = autoPlacement; + o.availabilityZone = availabilityZone; + o.cores = cores; + o.filters = filters; + o.hostId = hostId; + o.hostRecovery = hostRecovery; + o.id = id; + o.instanceFamily = instanceFamily; + o.instanceType = instanceType; + o.outpostArn = outpostArn; + o.ownerId = ownerId; + o.sockets = sockets; + o.tags = tags; + o.totalVcpus = totalVcpus; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetEipsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetEipsFilter.java index d132561e582..bd6e3c0bd95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetEipsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetEipsFilter.java @@ -15,21 +15,14 @@ public final class GetEipsFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAddresses.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. An Elastic IP will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetEipsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetEipsFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAddresses.html). @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(GetEipsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEipsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetEipsFilter build() { - return new GetEipsFilter(name, values); + } + public GetEipsFilter build() { + final var o = new GetEipsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetEipsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetEipsResult.java index c7056d8482c..7263ffb6f19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetEipsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetEipsResult.java @@ -17,34 +17,21 @@ public final class GetEipsResult { * @return A list of all the allocation IDs for address for use with EC2-VPC. * */ - private final List allocationIds; - private final @Nullable List filters; + private List allocationIds; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A list of all the Elastic IP addresses. * */ - private final List publicIps; - private final Map tags; - - @CustomType.Constructor - private GetEipsResult( - @CustomType.Parameter("allocationIds") List allocationIds, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("publicIps") List publicIps, - @CustomType.Parameter("tags") Map tags) { - this.allocationIds = allocationIds; - this.filters = filters; - this.id = id; - this.publicIps = publicIps; - this.tags = tags; - } + private List publicIps; + private Map tags; + private GetEipsResult() {} /** * @return A list of all the allocation IDs for address for use with EC2-VPC. * @@ -80,18 +67,14 @@ public static Builder builder() { public static Builder builder(GetEipsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List allocationIds; private @Nullable List filters; private String id; private List publicIps; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEipsResult defaults) { Objects.requireNonNull(defaults); this.allocationIds = defaults.allocationIds; @@ -101,6 +84,7 @@ public Builder(GetEipsResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder allocationIds(List allocationIds) { this.allocationIds = Objects.requireNonNull(allocationIds); return this; @@ -108,6 +92,7 @@ public Builder allocationIds(List allocationIds) { public Builder allocationIds(String... allocationIds) { return allocationIds(List.of(allocationIds)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -115,10 +100,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetEipsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder publicIps(List publicIps) { this.publicIps = Objects.requireNonNull(publicIps); return this; @@ -126,11 +113,19 @@ public Builder publicIps(List publicIps) { public Builder publicIps(String... publicIps) { return publicIps(List.of(publicIps)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetEipsResult build() { - return new GetEipsResult(allocationIds, filters, id, publicIps, tags); + } + public GetEipsResult build() { + final var o = new GetEipsResult(); + o.allocationIds = allocationIds; + o.filters = filters; + o.id = id; + o.publicIps = publicIps; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetElasticIpFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetElasticIpFilter.java index 6b1c9989665..73bb65cbfed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetElasticIpFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetElasticIpFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetElasticIpFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetElasticIpFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetElasticIpFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetElasticIpFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetElasticIpFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetElasticIpFilter build() { - return new GetElasticIpFilter(name, values); + } + public GetElasticIpFilter build() { + final var o = new GetElasticIpFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetElasticIpResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetElasticIpResult.java index d1612ba02bb..735b02f9d88 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetElasticIpResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetElasticIpResult.java @@ -17,115 +17,80 @@ public final class GetElasticIpResult { * @return The ID representing the association of the address with an instance in a VPC. * */ - private final String associationId; + private String associationId; /** * @return The carrier IP address. * */ - private final String carrierIp; + private String carrierIp; /** * @return Customer Owned IP. * */ - private final String customerOwnedIp; + private String customerOwnedIp; /** * @return The ID of a Customer Owned IP Pool. For more on customer owned IP addressed check out [Customer-owned IP addresses guide](https://docs.aws.amazon.com/outposts/latest/userguide/outposts-networking-components.html#ip-addressing) * */ - private final String customerOwnedIpv4Pool; + private String customerOwnedIpv4Pool; /** * @return Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc). * */ - private final String domain; - private final @Nullable List filters; + private String domain; + private @Nullable List filters; /** * @return If VPC Elastic IP, the allocation identifier. If EC2-Classic Elastic IP, the public IP address. * */ - private final String id; + private String id; /** * @return The ID of the instance that the address is associated with (if any). * */ - private final String instanceId; + private String instanceId; /** * @return The ID of the network interface. * */ - private final String networkInterfaceId; + private String networkInterfaceId; /** * @return The ID of the AWS account that owns the network interface. * */ - private final String networkInterfaceOwnerId; + private String networkInterfaceOwnerId; /** * @return The Private DNS associated with the Elastic IP address. * */ - private final String privateDns; + private String privateDns; /** * @return The private IP address associated with the Elastic IP address. * */ - private final String privateIp; + private String privateIp; /** * @return Public DNS associated with the Elastic IP address. * */ - private final String publicDns; + private String publicDns; /** * @return Public IP address of Elastic IP. * */ - private final String publicIp; + private String publicIp; /** * @return The ID of an address pool. * */ - private final String publicIpv4Pool; + private String publicIpv4Pool; /** * @return Key-value map of tags associated with Elastic IP. * */ - private final Map tags; - - @CustomType.Constructor - private GetElasticIpResult( - @CustomType.Parameter("associationId") String associationId, - @CustomType.Parameter("carrierIp") String carrierIp, - @CustomType.Parameter("customerOwnedIp") String customerOwnedIp, - @CustomType.Parameter("customerOwnedIpv4Pool") String customerOwnedIpv4Pool, - @CustomType.Parameter("domain") String domain, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("networkInterfaceId") String networkInterfaceId, - @CustomType.Parameter("networkInterfaceOwnerId") String networkInterfaceOwnerId, - @CustomType.Parameter("privateDns") String privateDns, - @CustomType.Parameter("privateIp") String privateIp, - @CustomType.Parameter("publicDns") String publicDns, - @CustomType.Parameter("publicIp") String publicIp, - @CustomType.Parameter("publicIpv4Pool") String publicIpv4Pool, - @CustomType.Parameter("tags") Map tags) { - this.associationId = associationId; - this.carrierIp = carrierIp; - this.customerOwnedIp = customerOwnedIp; - this.customerOwnedIpv4Pool = customerOwnedIpv4Pool; - this.domain = domain; - this.filters = filters; - this.id = id; - this.instanceId = instanceId; - this.networkInterfaceId = networkInterfaceId; - this.networkInterfaceOwnerId = networkInterfaceOwnerId; - this.privateDns = privateDns; - this.privateIp = privateIp; - this.publicDns = publicDns; - this.publicIp = publicIp; - this.publicIpv4Pool = publicIpv4Pool; - this.tags = tags; - } + private Map tags; + private GetElasticIpResult() {} /** * @return The ID representing the association of the address with an instance in a VPC. * @@ -242,7 +207,7 @@ public static Builder builder() { public static Builder builder(GetElasticIpResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String associationId; private String carrierIp; @@ -260,11 +225,7 @@ public static final class Builder { private String publicIp; private String publicIpv4Pool; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetElasticIpResult defaults) { Objects.requireNonNull(defaults); this.associationId = defaults.associationId; @@ -285,26 +246,32 @@ public Builder(GetElasticIpResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder associationId(String associationId) { this.associationId = Objects.requireNonNull(associationId); return this; } + @CustomType.Setter public Builder carrierIp(String carrierIp) { this.carrierIp = Objects.requireNonNull(carrierIp); return this; } + @CustomType.Setter public Builder customerOwnedIp(String customerOwnedIp) { this.customerOwnedIp = Objects.requireNonNull(customerOwnedIp); return this; } + @CustomType.Setter public Builder customerOwnedIpv4Pool(String customerOwnedIpv4Pool) { this.customerOwnedIpv4Pool = Objects.requireNonNull(customerOwnedIpv4Pool); return this; } + @CustomType.Setter public Builder domain(String domain) { this.domain = Objects.requireNonNull(domain); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -312,47 +279,75 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetElasticIpFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = Objects.requireNonNull(networkInterfaceId); return this; } + @CustomType.Setter public Builder networkInterfaceOwnerId(String networkInterfaceOwnerId) { this.networkInterfaceOwnerId = Objects.requireNonNull(networkInterfaceOwnerId); return this; } + @CustomType.Setter public Builder privateDns(String privateDns) { this.privateDns = Objects.requireNonNull(privateDns); return this; } + @CustomType.Setter public Builder privateIp(String privateIp) { this.privateIp = Objects.requireNonNull(privateIp); return this; } + @CustomType.Setter public Builder publicDns(String publicDns) { this.publicDns = Objects.requireNonNull(publicDns); return this; } + @CustomType.Setter public Builder publicIp(String publicIp) { this.publicIp = Objects.requireNonNull(publicIp); return this; } + @CustomType.Setter public Builder publicIpv4Pool(String publicIpv4Pool) { this.publicIpv4Pool = Objects.requireNonNull(publicIpv4Pool); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetElasticIpResult build() { - return new GetElasticIpResult(associationId, carrierIp, customerOwnedIp, customerOwnedIpv4Pool, domain, filters, id, instanceId, networkInterfaceId, networkInterfaceOwnerId, privateDns, privateIp, publicDns, publicIp, publicIpv4Pool, tags); + } + public GetElasticIpResult build() { + final var o = new GetElasticIpResult(); + o.associationId = associationId; + o.carrierIp = carrierIp; + o.customerOwnedIp = customerOwnedIp; + o.customerOwnedIpv4Pool = customerOwnedIpv4Pool; + o.domain = domain; + o.filters = filters; + o.id = id; + o.instanceId = instanceId; + o.networkInterfaceId = networkInterfaceId; + o.networkInterfaceOwnerId = networkInterfaceOwnerId; + o.privateDns = privateDns; + o.privateIp = privateIp; + o.publicDns = publicDns; + o.publicIp = publicIp; + o.publicIpv4Pool = publicIpv4Pool; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceCreditSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceCreditSpecification.java index 9fd38a6f8c5..6291e7aae97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceCreditSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceCreditSpecification.java @@ -9,13 +9,9 @@ @CustomType public final class GetInstanceCreditSpecification { - private final String cpuCredits; - - @CustomType.Constructor - private GetInstanceCreditSpecification(@CustomType.Parameter("cpuCredits") String cpuCredits) { - this.cpuCredits = cpuCredits; - } + private String cpuCredits; + private GetInstanceCreditSpecification() {} public String cpuCredits() { return this.cpuCredits; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetInstanceCreditSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cpuCredits; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceCreditSpecification defaults) { Objects.requireNonNull(defaults); this.cpuCredits = defaults.cpuCredits; } + @CustomType.Setter public Builder cpuCredits(String cpuCredits) { this.cpuCredits = Objects.requireNonNull(cpuCredits); return this; - } public GetInstanceCreditSpecification build() { - return new GetInstanceCreditSpecification(cpuCredits); + } + public GetInstanceCreditSpecification build() { + final var o = new GetInstanceCreditSpecification(); + o.cpuCredits = cpuCredits; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceEbsBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceEbsBlockDevice.java index f0020efb481..45edc69bd42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceEbsBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceEbsBlockDevice.java @@ -16,76 +16,51 @@ public final class GetInstanceEbsBlockDevice { * @return If the root block device will be deleted on termination. * */ - private final Boolean deleteOnTermination; + private Boolean deleteOnTermination; /** * @return The physical name of the device. * */ - private final String deviceName; + private String deviceName; /** * @return If the EBS volume is encrypted. * */ - private final Boolean encrypted; + private Boolean encrypted; /** * @return `0` If the volume is not a provisioned IOPS image, otherwise the supported IOPS count. * */ - private final Integer iops; - private final String kmsKeyId; + private Integer iops; + private String kmsKeyId; /** * @return The ID of the snapshot. * */ - private final String snapshotId; + private String snapshotId; /** * @return A map of tags assigned to the Instance. * */ - private final Map tags; + private Map tags; /** * @return The throughput of the volume, in MiB/s. * */ - private final Integer throughput; - private final String volumeId; + private Integer throughput; + private String volumeId; /** * @return The size of the volume, in GiB. * */ - private final Integer volumeSize; + private Integer volumeSize; /** * @return The type of the volume. * */ - private final String volumeType; - - @CustomType.Constructor - private GetInstanceEbsBlockDevice( - @CustomType.Parameter("deleteOnTermination") Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("iops") Integer iops, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("snapshotId") String snapshotId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("throughput") Integer throughput, - @CustomType.Parameter("volumeId") String volumeId, - @CustomType.Parameter("volumeSize") Integer volumeSize, - @CustomType.Parameter("volumeType") String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.encrypted = encrypted; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.snapshotId = snapshotId; - this.tags = tags; - this.throughput = throughput; - this.volumeId = volumeId; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private String volumeType; + private GetInstanceEbsBlockDevice() {} /** * @return If the root block device will be deleted on termination. * @@ -163,7 +138,7 @@ public static Builder builder() { public static Builder builder(GetInstanceEbsBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean deleteOnTermination; private String deviceName; @@ -176,11 +151,7 @@ public static final class Builder { private String volumeId; private Integer volumeSize; private String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceEbsBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -196,51 +167,75 @@ public Builder(GetInstanceEbsBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(Boolean deleteOnTermination) { this.deleteOnTermination = Objects.requireNonNull(deleteOnTermination); return this; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder iops(Integer iops) { this.iops = Objects.requireNonNull(iops); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder snapshotId(String snapshotId) { this.snapshotId = Objects.requireNonNull(snapshotId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder throughput(Integer throughput) { this.throughput = Objects.requireNonNull(throughput); return this; } + @CustomType.Setter public Builder volumeId(String volumeId) { this.volumeId = Objects.requireNonNull(volumeId); return this; } + @CustomType.Setter public Builder volumeSize(Integer volumeSize) { this.volumeSize = Objects.requireNonNull(volumeSize); return this; } + @CustomType.Setter public Builder volumeType(String volumeType) { this.volumeType = Objects.requireNonNull(volumeType); return this; - } public GetInstanceEbsBlockDevice build() { - return new GetInstanceEbsBlockDevice(deleteOnTermination, deviceName, encrypted, iops, kmsKeyId, snapshotId, tags, throughput, volumeId, volumeSize, volumeType); + } + public GetInstanceEbsBlockDevice build() { + final var o = new GetInstanceEbsBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.encrypted = encrypted; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.snapshotId = snapshotId; + o.tags = tags; + o.throughput = throughput; + o.volumeId = volumeId; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceEnclaveOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceEnclaveOption.java index b6030986280..e6959b5fdf3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceEnclaveOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceEnclaveOption.java @@ -13,13 +13,9 @@ public final class GetInstanceEnclaveOption { * @return Whether Nitro Enclaves are enabled. * */ - private final Boolean enabled; - - @CustomType.Constructor - private GetInstanceEnclaveOption(@CustomType.Parameter("enabled") Boolean enabled) { - this.enabled = enabled; - } + private Boolean enabled; + private GetInstanceEnclaveOption() {} /** * @return Whether Nitro Enclaves are enabled. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetInstanceEnclaveOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceEnclaveOption defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public GetInstanceEnclaveOption build() { - return new GetInstanceEnclaveOption(enabled); + } + public GetInstanceEnclaveOption build() { + final var o = new GetInstanceEnclaveOption(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceEphemeralBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceEphemeralBlockDevice.java index 161107eccaa..c43b9171404 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceEphemeralBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceEphemeralBlockDevice.java @@ -16,28 +16,19 @@ public final class GetInstanceEphemeralBlockDevice { * @return The physical name of the device. * */ - private final String deviceName; + private String deviceName; /** * @return Whether the specified device included in the device mapping was suppressed or not (Boolean). * */ - private final @Nullable Boolean noDevice; + private @Nullable Boolean noDevice; /** * @return The virtual device name. * */ - private final @Nullable String virtualName; - - @CustomType.Constructor - private GetInstanceEphemeralBlockDevice( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("noDevice") @Nullable Boolean noDevice, - @CustomType.Parameter("virtualName") @Nullable String virtualName) { - this.deviceName = deviceName; - this.noDevice = noDevice; - this.virtualName = virtualName; - } + private @Nullable String virtualName; + private GetInstanceEphemeralBlockDevice() {} /** * @return The physical name of the device. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetInstanceEphemeralBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private @Nullable Boolean noDevice; private @Nullable String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceEphemeralBlockDevice defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; @@ -84,19 +71,27 @@ public Builder(GetInstanceEphemeralBlockDevice defaults) { this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder noDevice(@Nullable Boolean noDevice) { this.noDevice = noDevice; return this; } + @CustomType.Setter public Builder virtualName(@Nullable String virtualName) { this.virtualName = virtualName; return this; - } public GetInstanceEphemeralBlockDevice build() { - return new GetInstanceEphemeralBlockDevice(deviceName, noDevice, virtualName); + } + public GetInstanceEphemeralBlockDevice build() { + final var o = new GetInstanceEphemeralBlockDevice(); + o.deviceName = deviceName; + o.noDevice = noDevice; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceFilter.java index fae7af3ed1c..700ca4dcc41 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetInstanceFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetInstanceFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetInstanceFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetInstanceFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetInstanceFilter build() { - return new GetInstanceFilter(name, values); + } + public GetInstanceFilter build() { + final var o = new GetInstanceFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceMaintenanceOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceMaintenanceOption.java index 80ad60877bf..85d4a7ed607 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceMaintenanceOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceMaintenanceOption.java @@ -13,13 +13,9 @@ public final class GetInstanceMaintenanceOption { * @return The automatic recovery behavior of the instance. * */ - private final String autoRecovery; - - @CustomType.Constructor - private GetInstanceMaintenanceOption(@CustomType.Parameter("autoRecovery") String autoRecovery) { - this.autoRecovery = autoRecovery; - } + private String autoRecovery; + private GetInstanceMaintenanceOption() {} /** * @return The automatic recovery behavior of the instance. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetInstanceMaintenanceOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String autoRecovery; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceMaintenanceOption defaults) { Objects.requireNonNull(defaults); this.autoRecovery = defaults.autoRecovery; } + @CustomType.Setter public Builder autoRecovery(String autoRecovery) { this.autoRecovery = Objects.requireNonNull(autoRecovery); return this; - } public GetInstanceMaintenanceOption build() { - return new GetInstanceMaintenanceOption(autoRecovery); + } + public GetInstanceMaintenanceOption build() { + final var o = new GetInstanceMaintenanceOption(); + o.autoRecovery = autoRecovery; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceMetadataOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceMetadataOption.java index 80cf7e4359a..3858d55613c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceMetadataOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceMetadataOption.java @@ -14,35 +14,24 @@ public final class GetInstanceMetadataOption { * @return The state of the metadata service: `enabled`, `disabled`. * */ - private final String httpEndpoint; + private String httpEndpoint; /** * @return The desired HTTP PUT response hop limit for instance metadata requests. * */ - private final Integer httpPutResponseHopLimit; + private Integer httpPutResponseHopLimit; /** * @return If session tokens are required: `optional`, `required`. * */ - private final String httpTokens; + private String httpTokens; /** * @return If access to instance tags is allowed from the metadata service: `enabled`, `disabled`. * */ - private final String instanceMetadataTags; - - @CustomType.Constructor - private GetInstanceMetadataOption( - @CustomType.Parameter("httpEndpoint") String httpEndpoint, - @CustomType.Parameter("httpPutResponseHopLimit") Integer httpPutResponseHopLimit, - @CustomType.Parameter("httpTokens") String httpTokens, - @CustomType.Parameter("instanceMetadataTags") String instanceMetadataTags) { - this.httpEndpoint = httpEndpoint; - this.httpPutResponseHopLimit = httpPutResponseHopLimit; - this.httpTokens = httpTokens; - this.instanceMetadataTags = instanceMetadataTags; - } + private String instanceMetadataTags; + private GetInstanceMetadataOption() {} /** * @return The state of the metadata service: `enabled`, `disabled`. * @@ -79,17 +68,13 @@ public static Builder builder() { public static Builder builder(GetInstanceMetadataOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String httpEndpoint; private Integer httpPutResponseHopLimit; private String httpTokens; private String instanceMetadataTags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceMetadataOption defaults) { Objects.requireNonNull(defaults); this.httpEndpoint = defaults.httpEndpoint; @@ -98,23 +83,33 @@ public Builder(GetInstanceMetadataOption defaults) { this.instanceMetadataTags = defaults.instanceMetadataTags; } + @CustomType.Setter public Builder httpEndpoint(String httpEndpoint) { this.httpEndpoint = Objects.requireNonNull(httpEndpoint); return this; } + @CustomType.Setter public Builder httpPutResponseHopLimit(Integer httpPutResponseHopLimit) { this.httpPutResponseHopLimit = Objects.requireNonNull(httpPutResponseHopLimit); return this; } + @CustomType.Setter public Builder httpTokens(String httpTokens) { this.httpTokens = Objects.requireNonNull(httpTokens); return this; } + @CustomType.Setter public Builder instanceMetadataTags(String instanceMetadataTags) { this.instanceMetadataTags = Objects.requireNonNull(instanceMetadataTags); return this; - } public GetInstanceMetadataOption build() { - return new GetInstanceMetadataOption(httpEndpoint, httpPutResponseHopLimit, httpTokens, instanceMetadataTags); + } + public GetInstanceMetadataOption build() { + final var o = new GetInstanceMetadataOption(); + o.httpEndpoint = httpEndpoint; + o.httpPutResponseHopLimit = httpPutResponseHopLimit; + o.httpTokens = httpTokens; + o.instanceMetadataTags = instanceMetadataTags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstancePrivateDnsNameOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstancePrivateDnsNameOption.java index 1b34e38cefa..f02d477aac6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstancePrivateDnsNameOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstancePrivateDnsNameOption.java @@ -14,28 +14,19 @@ public final class GetInstancePrivateDnsNameOption { * @return Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * */ - private final Boolean enableResourceNameDnsARecord; + private Boolean enableResourceNameDnsARecord; /** * @return Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. * */ - private final Boolean enableResourceNameDnsAaaaRecord; + private Boolean enableResourceNameDnsAaaaRecord; /** * @return The type of hostname for EC2 instances. * */ - private final String hostnameType; - - @CustomType.Constructor - private GetInstancePrivateDnsNameOption( - @CustomType.Parameter("enableResourceNameDnsARecord") Boolean enableResourceNameDnsARecord, - @CustomType.Parameter("enableResourceNameDnsAaaaRecord") Boolean enableResourceNameDnsAaaaRecord, - @CustomType.Parameter("hostnameType") String hostnameType) { - this.enableResourceNameDnsARecord = enableResourceNameDnsARecord; - this.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; - this.hostnameType = hostnameType; - } + private String hostnameType; + private GetInstancePrivateDnsNameOption() {} /** * @return Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetInstancePrivateDnsNameOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enableResourceNameDnsARecord; private Boolean enableResourceNameDnsAaaaRecord; private String hostnameType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstancePrivateDnsNameOption defaults) { Objects.requireNonNull(defaults); this.enableResourceNameDnsARecord = defaults.enableResourceNameDnsARecord; @@ -82,19 +69,27 @@ public Builder(GetInstancePrivateDnsNameOption defaults) { this.hostnameType = defaults.hostnameType; } + @CustomType.Setter public Builder enableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord) { this.enableResourceNameDnsARecord = Objects.requireNonNull(enableResourceNameDnsARecord); return this; } + @CustomType.Setter public Builder enableResourceNameDnsAaaaRecord(Boolean enableResourceNameDnsAaaaRecord) { this.enableResourceNameDnsAaaaRecord = Objects.requireNonNull(enableResourceNameDnsAaaaRecord); return this; } + @CustomType.Setter public Builder hostnameType(String hostnameType) { this.hostnameType = Objects.requireNonNull(hostnameType); return this; - } public GetInstancePrivateDnsNameOption build() { - return new GetInstancePrivateDnsNameOption(enableResourceNameDnsARecord, enableResourceNameDnsAaaaRecord, hostnameType); + } + public GetInstancePrivateDnsNameOption build() { + final var o = new GetInstancePrivateDnsNameOption(); + o.enableResourceNameDnsARecord = enableResourceNameDnsARecord; + o.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; + o.hostnameType = hostnameType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceResult.java index 51650128fa7..9197cc30cd7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceResult.java @@ -28,122 +28,122 @@ public final class GetInstanceResult { * @return The ID of the AMI used to launch the instance. * */ - private final String ami; + private String ami; /** * @return The ARN of the instance. * */ - private final String arn; + private String arn; /** * @return Whether or not the Instance is associated with a public IP address or not (Boolean). * */ - private final Boolean associatePublicIpAddress; + private Boolean associatePublicIpAddress; /** * @return The availability zone of the Instance. * */ - private final String availabilityZone; + private String availabilityZone; /** * @return The credit specification of the Instance. * */ - private final List creditSpecifications; + private List creditSpecifications; /** * @return Whether or not EC2 Instance Stop Protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection) is enabled (Boolean). * */ - private final Boolean disableApiStop; + private Boolean disableApiStop; /** * @return Whether or not [EC2 Instance Termination Protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingDisableAPITermination) is enabled (Boolean). * */ - private final Boolean disableApiTermination; + private Boolean disableApiTermination; /** * @return The EBS block device mappings of the Instance. * */ - private final List ebsBlockDevices; + private List ebsBlockDevices; /** * @return Whether the Instance is EBS optimized or not (Boolean). * */ - private final Boolean ebsOptimized; + private Boolean ebsOptimized; /** * @return The enclave options of the instance. * */ - private final List enclaveOptions; + private List enclaveOptions; /** * @return The ephemeral block device mappings of the Instance. * */ - private final List ephemeralBlockDevices; - private final @Nullable List filters; - private final @Nullable Boolean getPasswordData; - private final @Nullable Boolean getUserData; + private List ephemeralBlockDevices; + private @Nullable List filters; + private @Nullable Boolean getPasswordData; + private @Nullable Boolean getUserData; /** * @return The Id of the dedicated host the instance will be assigned to. * */ - private final String hostId; + private String hostId; /** * @return The name of the instance profile associated with the Instance. * */ - private final String iamInstanceProfile; + private String iamInstanceProfile; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String instanceId; + private String id; + private @Nullable String instanceId; /** * @return The state of the instance. One of: `pending`, `running`, `shutting-down`, `terminated`, `stopping`, `stopped`. See [Instance Lifecycle](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) for more information. * */ - private final String instanceState; - private final Map instanceTags; + private String instanceState; + private Map instanceTags; /** * @return The type of the Instance. * */ - private final String instanceType; + private String instanceType; /** * @return The IPv6 addresses associated to the Instance, if applicable. **NOTE**: Unlike the IPv4 address, this doesn't change if you attach an EIP to the instance. * */ - private final List ipv6Addresses; + private List ipv6Addresses; /** * @return The key name of the Instance. * */ - private final String keyName; + private String keyName; /** * @return The maintenance and recovery options for the instance. * */ - private final List maintenanceOptions; + private List maintenanceOptions; /** * @return The metadata options of the Instance. * */ - private final List metadataOptions; + private List metadataOptions; /** * @return Whether detailed monitoring is enabled or disabled for the Instance (Boolean). * */ - private final Boolean monitoring; + private Boolean monitoring; /** * @return The ID of the network interface that was created with the Instance. * */ - private final String networkInterfaceId; + private String networkInterfaceId; /** * @return The Amazon Resource Name (ARN) of the Outpost. * */ - private final String outpostArn; + private String outpostArn; /** * @return Base-64 encoded encrypted password data for the instance. * Useful for getting the administrator password for instances running Microsoft Windows. @@ -151,192 +151,97 @@ public final class GetInstanceResult { * See [GetPasswordData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetPasswordData.html) for more information. * */ - private final String passwordData; + private String passwordData; /** * @return The placement group of the Instance. * */ - private final String placementGroup; + private String placementGroup; /** * @return The number of the partition the instance is in. * */ - private final Integer placementPartitionNumber; + private Integer placementPartitionNumber; /** * @return The private DNS name assigned to the Instance. Can only be * used inside the Amazon EC2, and only available if you've enabled DNS hostnames * for your VPC. * */ - private final String privateDns; + private String privateDns; /** * @return The options for the instance hostname. * */ - private final List privateDnsNameOptions; + private List privateDnsNameOptions; /** * @return The private IP address assigned to the Instance. * */ - private final String privateIp; + private String privateIp; /** * @return The public DNS name assigned to the Instance. For EC2-VPC, this * is only available if you've enabled DNS hostnames for your VPC. * */ - private final String publicDns; + private String publicDns; /** * @return The public IP address assigned to the Instance, if applicable. **NOTE**: If you are using an `aws.ec2.Eip` with your instance, you should refer to the EIP's address directly and not use `public_ip`, as this field will change after the EIP is attached. * */ - private final String publicIp; + private String publicIp; /** * @return The root block device mappings of the Instance * */ - private final List rootBlockDevices; + private List rootBlockDevices; /** * @return The secondary private IPv4 addresses assigned to the instance's primary network interface (eth0) in a VPC. * */ - private final List secondaryPrivateIps; + private List secondaryPrivateIps; /** * @return The associated security groups. * */ - private final List securityGroups; + private List securityGroups; /** * @return Whether the network interface performs source/destination checking (Boolean). * */ - private final Boolean sourceDestCheck; + private Boolean sourceDestCheck; /** * @return The VPC subnet ID. * */ - private final String subnetId; + private String subnetId; /** * @return A map of tags assigned to the Instance. * */ - private final Map tags; + private Map tags; /** * @return The tenancy of the instance: `dedicated`, `default`, `host`. * */ - private final String tenancy; + private String tenancy; /** * @return SHA-1 hash of User Data supplied to the Instance. * */ - private final String userData; + private String userData; /** * @return Base64 encoded contents of User Data supplied to the Instance. This attribute is only exported if `get_user_data` is true. * */ - private final String userDataBase64; + private String userDataBase64; /** * @return The associated security groups in a non-default VPC. * */ - private final List vpcSecurityGroupIds; - - @CustomType.Constructor - private GetInstanceResult( - @CustomType.Parameter("ami") String ami, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("associatePublicIpAddress") Boolean associatePublicIpAddress, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("creditSpecifications") List creditSpecifications, - @CustomType.Parameter("disableApiStop") Boolean disableApiStop, - @CustomType.Parameter("disableApiTermination") Boolean disableApiTermination, - @CustomType.Parameter("ebsBlockDevices") List ebsBlockDevices, - @CustomType.Parameter("ebsOptimized") Boolean ebsOptimized, - @CustomType.Parameter("enclaveOptions") List enclaveOptions, - @CustomType.Parameter("ephemeralBlockDevices") List ephemeralBlockDevices, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("getPasswordData") @Nullable Boolean getPasswordData, - @CustomType.Parameter("getUserData") @Nullable Boolean getUserData, - @CustomType.Parameter("hostId") String hostId, - @CustomType.Parameter("iamInstanceProfile") String iamInstanceProfile, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") @Nullable String instanceId, - @CustomType.Parameter("instanceState") String instanceState, - @CustomType.Parameter("instanceTags") Map instanceTags, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("ipv6Addresses") List ipv6Addresses, - @CustomType.Parameter("keyName") String keyName, - @CustomType.Parameter("maintenanceOptions") List maintenanceOptions, - @CustomType.Parameter("metadataOptions") List metadataOptions, - @CustomType.Parameter("monitoring") Boolean monitoring, - @CustomType.Parameter("networkInterfaceId") String networkInterfaceId, - @CustomType.Parameter("outpostArn") String outpostArn, - @CustomType.Parameter("passwordData") String passwordData, - @CustomType.Parameter("placementGroup") String placementGroup, - @CustomType.Parameter("placementPartitionNumber") Integer placementPartitionNumber, - @CustomType.Parameter("privateDns") String privateDns, - @CustomType.Parameter("privateDnsNameOptions") List privateDnsNameOptions, - @CustomType.Parameter("privateIp") String privateIp, - @CustomType.Parameter("publicDns") String publicDns, - @CustomType.Parameter("publicIp") String publicIp, - @CustomType.Parameter("rootBlockDevices") List rootBlockDevices, - @CustomType.Parameter("secondaryPrivateIps") List secondaryPrivateIps, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("sourceDestCheck") Boolean sourceDestCheck, - @CustomType.Parameter("subnetId") String subnetId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("tenancy") String tenancy, - @CustomType.Parameter("userData") String userData, - @CustomType.Parameter("userDataBase64") String userDataBase64, - @CustomType.Parameter("vpcSecurityGroupIds") List vpcSecurityGroupIds) { - this.ami = ami; - this.arn = arn; - this.associatePublicIpAddress = associatePublicIpAddress; - this.availabilityZone = availabilityZone; - this.creditSpecifications = creditSpecifications; - this.disableApiStop = disableApiStop; - this.disableApiTermination = disableApiTermination; - this.ebsBlockDevices = ebsBlockDevices; - this.ebsOptimized = ebsOptimized; - this.enclaveOptions = enclaveOptions; - this.ephemeralBlockDevices = ephemeralBlockDevices; - this.filters = filters; - this.getPasswordData = getPasswordData; - this.getUserData = getUserData; - this.hostId = hostId; - this.iamInstanceProfile = iamInstanceProfile; - this.id = id; - this.instanceId = instanceId; - this.instanceState = instanceState; - this.instanceTags = instanceTags; - this.instanceType = instanceType; - this.ipv6Addresses = ipv6Addresses; - this.keyName = keyName; - this.maintenanceOptions = maintenanceOptions; - this.metadataOptions = metadataOptions; - this.monitoring = monitoring; - this.networkInterfaceId = networkInterfaceId; - this.outpostArn = outpostArn; - this.passwordData = passwordData; - this.placementGroup = placementGroup; - this.placementPartitionNumber = placementPartitionNumber; - this.privateDns = privateDns; - this.privateDnsNameOptions = privateDnsNameOptions; - this.privateIp = privateIp; - this.publicDns = publicDns; - this.publicIp = publicIp; - this.rootBlockDevices = rootBlockDevices; - this.secondaryPrivateIps = secondaryPrivateIps; - this.securityGroups = securityGroups; - this.sourceDestCheck = sourceDestCheck; - this.subnetId = subnetId; - this.tags = tags; - this.tenancy = tenancy; - this.userData = userData; - this.userDataBase64 = userDataBase64; - this.vpcSecurityGroupIds = vpcSecurityGroupIds; - } + private List vpcSecurityGroupIds; + private GetInstanceResult() {} /** * @return The ID of the AMI used to launch the instance. * @@ -653,7 +558,7 @@ public static Builder builder() { public static Builder builder(GetInstanceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String ami; private String arn; @@ -701,11 +606,7 @@ public static final class Builder { private String userData; private String userDataBase64; private List vpcSecurityGroupIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceResult defaults) { Objects.requireNonNull(defaults); this.ami = defaults.ami; @@ -756,22 +657,27 @@ public Builder(GetInstanceResult defaults) { this.vpcSecurityGroupIds = defaults.vpcSecurityGroupIds; } + @CustomType.Setter public Builder ami(String ami) { this.ami = Objects.requireNonNull(ami); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder associatePublicIpAddress(Boolean associatePublicIpAddress) { this.associatePublicIpAddress = Objects.requireNonNull(associatePublicIpAddress); return this; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder creditSpecifications(List creditSpecifications) { this.creditSpecifications = Objects.requireNonNull(creditSpecifications); return this; @@ -779,14 +685,17 @@ public Builder creditSpecifications(List creditS public Builder creditSpecifications(GetInstanceCreditSpecification... creditSpecifications) { return creditSpecifications(List.of(creditSpecifications)); } + @CustomType.Setter public Builder disableApiStop(Boolean disableApiStop) { this.disableApiStop = Objects.requireNonNull(disableApiStop); return this; } + @CustomType.Setter public Builder disableApiTermination(Boolean disableApiTermination) { this.disableApiTermination = Objects.requireNonNull(disableApiTermination); return this; } + @CustomType.Setter public Builder ebsBlockDevices(List ebsBlockDevices) { this.ebsBlockDevices = Objects.requireNonNull(ebsBlockDevices); return this; @@ -794,10 +703,12 @@ public Builder ebsBlockDevices(List ebsBlockDevices) public Builder ebsBlockDevices(GetInstanceEbsBlockDevice... ebsBlockDevices) { return ebsBlockDevices(List.of(ebsBlockDevices)); } + @CustomType.Setter public Builder ebsOptimized(Boolean ebsOptimized) { this.ebsOptimized = Objects.requireNonNull(ebsOptimized); return this; } + @CustomType.Setter public Builder enclaveOptions(List enclaveOptions) { this.enclaveOptions = Objects.requireNonNull(enclaveOptions); return this; @@ -805,6 +716,7 @@ public Builder enclaveOptions(List enclaveOptions) { public Builder enclaveOptions(GetInstanceEnclaveOption... enclaveOptions) { return enclaveOptions(List.of(enclaveOptions)); } + @CustomType.Setter public Builder ephemeralBlockDevices(List ephemeralBlockDevices) { this.ephemeralBlockDevices = Objects.requireNonNull(ephemeralBlockDevices); return this; @@ -812,6 +724,7 @@ public Builder ephemeralBlockDevices(List ephem public Builder ephemeralBlockDevices(GetInstanceEphemeralBlockDevice... ephemeralBlockDevices) { return ephemeralBlockDevices(List.of(ephemeralBlockDevices)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -819,42 +732,52 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetInstanceFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder getPasswordData(@Nullable Boolean getPasswordData) { this.getPasswordData = getPasswordData; return this; } + @CustomType.Setter public Builder getUserData(@Nullable Boolean getUserData) { this.getUserData = getUserData; return this; } + @CustomType.Setter public Builder hostId(String hostId) { this.hostId = Objects.requireNonNull(hostId); return this; } + @CustomType.Setter public Builder iamInstanceProfile(String iamInstanceProfile) { this.iamInstanceProfile = Objects.requireNonNull(iamInstanceProfile); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(@Nullable String instanceId) { this.instanceId = instanceId; return this; } + @CustomType.Setter public Builder instanceState(String instanceState) { this.instanceState = Objects.requireNonNull(instanceState); return this; } + @CustomType.Setter public Builder instanceTags(Map instanceTags) { this.instanceTags = Objects.requireNonNull(instanceTags); return this; } + @CustomType.Setter public Builder instanceType(String instanceType) { this.instanceType = Objects.requireNonNull(instanceType); return this; } + @CustomType.Setter public Builder ipv6Addresses(List ipv6Addresses) { this.ipv6Addresses = Objects.requireNonNull(ipv6Addresses); return this; @@ -862,10 +785,12 @@ public Builder ipv6Addresses(List ipv6Addresses) { public Builder ipv6Addresses(String... ipv6Addresses) { return ipv6Addresses(List.of(ipv6Addresses)); } + @CustomType.Setter public Builder keyName(String keyName) { this.keyName = Objects.requireNonNull(keyName); return this; } + @CustomType.Setter public Builder maintenanceOptions(List maintenanceOptions) { this.maintenanceOptions = Objects.requireNonNull(maintenanceOptions); return this; @@ -873,6 +798,7 @@ public Builder maintenanceOptions(List maintenance public Builder maintenanceOptions(GetInstanceMaintenanceOption... maintenanceOptions) { return maintenanceOptions(List.of(maintenanceOptions)); } + @CustomType.Setter public Builder metadataOptions(List metadataOptions) { this.metadataOptions = Objects.requireNonNull(metadataOptions); return this; @@ -880,34 +806,42 @@ public Builder metadataOptions(List metadataOptions) public Builder metadataOptions(GetInstanceMetadataOption... metadataOptions) { return metadataOptions(List.of(metadataOptions)); } + @CustomType.Setter public Builder monitoring(Boolean monitoring) { this.monitoring = Objects.requireNonNull(monitoring); return this; } + @CustomType.Setter public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = Objects.requireNonNull(networkInterfaceId); return this; } + @CustomType.Setter public Builder outpostArn(String outpostArn) { this.outpostArn = Objects.requireNonNull(outpostArn); return this; } + @CustomType.Setter public Builder passwordData(String passwordData) { this.passwordData = Objects.requireNonNull(passwordData); return this; } + @CustomType.Setter public Builder placementGroup(String placementGroup) { this.placementGroup = Objects.requireNonNull(placementGroup); return this; } + @CustomType.Setter public Builder placementPartitionNumber(Integer placementPartitionNumber) { this.placementPartitionNumber = Objects.requireNonNull(placementPartitionNumber); return this; } + @CustomType.Setter public Builder privateDns(String privateDns) { this.privateDns = Objects.requireNonNull(privateDns); return this; } + @CustomType.Setter public Builder privateDnsNameOptions(List privateDnsNameOptions) { this.privateDnsNameOptions = Objects.requireNonNull(privateDnsNameOptions); return this; @@ -915,18 +849,22 @@ public Builder privateDnsNameOptions(List priva public Builder privateDnsNameOptions(GetInstancePrivateDnsNameOption... privateDnsNameOptions) { return privateDnsNameOptions(List.of(privateDnsNameOptions)); } + @CustomType.Setter public Builder privateIp(String privateIp) { this.privateIp = Objects.requireNonNull(privateIp); return this; } + @CustomType.Setter public Builder publicDns(String publicDns) { this.publicDns = Objects.requireNonNull(publicDns); return this; } + @CustomType.Setter public Builder publicIp(String publicIp) { this.publicIp = Objects.requireNonNull(publicIp); return this; } + @CustomType.Setter public Builder rootBlockDevices(List rootBlockDevices) { this.rootBlockDevices = Objects.requireNonNull(rootBlockDevices); return this; @@ -934,6 +872,7 @@ public Builder rootBlockDevices(List rootBlockDevice public Builder rootBlockDevices(GetInstanceRootBlockDevice... rootBlockDevices) { return rootBlockDevices(List.of(rootBlockDevices)); } + @CustomType.Setter public Builder secondaryPrivateIps(List secondaryPrivateIps) { this.secondaryPrivateIps = Objects.requireNonNull(secondaryPrivateIps); return this; @@ -941,6 +880,7 @@ public Builder secondaryPrivateIps(List secondaryPrivateIps) { public Builder secondaryPrivateIps(String... secondaryPrivateIps) { return secondaryPrivateIps(List.of(secondaryPrivateIps)); } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -948,38 +888,93 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder sourceDestCheck(Boolean sourceDestCheck) { this.sourceDestCheck = Objects.requireNonNull(sourceDestCheck); return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder tenancy(String tenancy) { this.tenancy = Objects.requireNonNull(tenancy); return this; } + @CustomType.Setter public Builder userData(String userData) { this.userData = Objects.requireNonNull(userData); return this; } + @CustomType.Setter public Builder userDataBase64(String userDataBase64) { this.userDataBase64 = Objects.requireNonNull(userDataBase64); return this; } + @CustomType.Setter public Builder vpcSecurityGroupIds(List vpcSecurityGroupIds) { this.vpcSecurityGroupIds = Objects.requireNonNull(vpcSecurityGroupIds); return this; } public Builder vpcSecurityGroupIds(String... vpcSecurityGroupIds) { return vpcSecurityGroupIds(List.of(vpcSecurityGroupIds)); - } public GetInstanceResult build() { - return new GetInstanceResult(ami, arn, associatePublicIpAddress, availabilityZone, creditSpecifications, disableApiStop, disableApiTermination, ebsBlockDevices, ebsOptimized, enclaveOptions, ephemeralBlockDevices, filters, getPasswordData, getUserData, hostId, iamInstanceProfile, id, instanceId, instanceState, instanceTags, instanceType, ipv6Addresses, keyName, maintenanceOptions, metadataOptions, monitoring, networkInterfaceId, outpostArn, passwordData, placementGroup, placementPartitionNumber, privateDns, privateDnsNameOptions, privateIp, publicDns, publicIp, rootBlockDevices, secondaryPrivateIps, securityGroups, sourceDestCheck, subnetId, tags, tenancy, userData, userDataBase64, vpcSecurityGroupIds); + } + public GetInstanceResult build() { + final var o = new GetInstanceResult(); + o.ami = ami; + o.arn = arn; + o.associatePublicIpAddress = associatePublicIpAddress; + o.availabilityZone = availabilityZone; + o.creditSpecifications = creditSpecifications; + o.disableApiStop = disableApiStop; + o.disableApiTermination = disableApiTermination; + o.ebsBlockDevices = ebsBlockDevices; + o.ebsOptimized = ebsOptimized; + o.enclaveOptions = enclaveOptions; + o.ephemeralBlockDevices = ephemeralBlockDevices; + o.filters = filters; + o.getPasswordData = getPasswordData; + o.getUserData = getUserData; + o.hostId = hostId; + o.iamInstanceProfile = iamInstanceProfile; + o.id = id; + o.instanceId = instanceId; + o.instanceState = instanceState; + o.instanceTags = instanceTags; + o.instanceType = instanceType; + o.ipv6Addresses = ipv6Addresses; + o.keyName = keyName; + o.maintenanceOptions = maintenanceOptions; + o.metadataOptions = metadataOptions; + o.monitoring = monitoring; + o.networkInterfaceId = networkInterfaceId; + o.outpostArn = outpostArn; + o.passwordData = passwordData; + o.placementGroup = placementGroup; + o.placementPartitionNumber = placementPartitionNumber; + o.privateDns = privateDns; + o.privateDnsNameOptions = privateDnsNameOptions; + o.privateIp = privateIp; + o.publicDns = publicDns; + o.publicIp = publicIp; + o.rootBlockDevices = rootBlockDevices; + o.secondaryPrivateIps = secondaryPrivateIps; + o.securityGroups = securityGroups; + o.sourceDestCheck = sourceDestCheck; + o.subnetId = subnetId; + o.tags = tags; + o.tenancy = tenancy; + o.userData = userData; + o.userDataBase64 = userDataBase64; + o.vpcSecurityGroupIds = vpcSecurityGroupIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceRootBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceRootBlockDevice.java index f0eb1ac5428..dc2a2ea5fb4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceRootBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceRootBlockDevice.java @@ -16,69 +16,46 @@ public final class GetInstanceRootBlockDevice { * @return If the root block device will be deleted on termination. * */ - private final Boolean deleteOnTermination; + private Boolean deleteOnTermination; /** * @return The physical name of the device. * */ - private final String deviceName; + private String deviceName; /** * @return If the EBS volume is encrypted. * */ - private final Boolean encrypted; + private Boolean encrypted; /** * @return `0` If the volume is not a provisioned IOPS image, otherwise the supported IOPS count. * */ - private final Integer iops; - private final String kmsKeyId; + private Integer iops; + private String kmsKeyId; /** * @return A map of tags assigned to the Instance. * */ - private final Map tags; + private Map tags; /** * @return The throughput of the volume, in MiB/s. * */ - private final Integer throughput; - private final String volumeId; + private Integer throughput; + private String volumeId; /** * @return The size of the volume, in GiB. * */ - private final Integer volumeSize; + private Integer volumeSize; /** * @return The type of the volume. * */ - private final String volumeType; - - @CustomType.Constructor - private GetInstanceRootBlockDevice( - @CustomType.Parameter("deleteOnTermination") Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("iops") Integer iops, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("throughput") Integer throughput, - @CustomType.Parameter("volumeId") String volumeId, - @CustomType.Parameter("volumeSize") Integer volumeSize, - @CustomType.Parameter("volumeType") String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.encrypted = encrypted; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.tags = tags; - this.throughput = throughput; - this.volumeId = volumeId; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private String volumeType; + private GetInstanceRootBlockDevice() {} /** * @return If the root block device will be deleted on termination. * @@ -149,7 +126,7 @@ public static Builder builder() { public static Builder builder(GetInstanceRootBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean deleteOnTermination; private String deviceName; @@ -161,11 +138,7 @@ public static final class Builder { private String volumeId; private Integer volumeSize; private String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceRootBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -180,47 +153,69 @@ public Builder(GetInstanceRootBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(Boolean deleteOnTermination) { this.deleteOnTermination = Objects.requireNonNull(deleteOnTermination); return this; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder iops(Integer iops) { this.iops = Objects.requireNonNull(iops); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder throughput(Integer throughput) { this.throughput = Objects.requireNonNull(throughput); return this; } + @CustomType.Setter public Builder volumeId(String volumeId) { this.volumeId = Objects.requireNonNull(volumeId); return this; } + @CustomType.Setter public Builder volumeSize(Integer volumeSize) { this.volumeSize = Objects.requireNonNull(volumeSize); return this; } + @CustomType.Setter public Builder volumeType(String volumeType) { this.volumeType = Objects.requireNonNull(volumeType); return this; - } public GetInstanceRootBlockDevice build() { - return new GetInstanceRootBlockDevice(deleteOnTermination, deviceName, encrypted, iops, kmsKeyId, tags, throughput, volumeId, volumeSize, volumeType); + } + public GetInstanceRootBlockDevice build() { + final var o = new GetInstanceRootBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.encrypted = encrypted; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.tags = tags; + o.throughput = throughput; + o.volumeId = volumeId; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeFpga.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeFpga.java index fdd9b47451d..15a65a615d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeFpga.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeFpga.java @@ -10,27 +10,16 @@ @CustomType public final class GetInstanceTypeFpga { - private final Integer count; - private final String manufacturer; + private Integer count; + private String manufacturer; /** * @return Size of the instance memory, in MiB. * */ - private final Integer memorySize; - private final String name; - - @CustomType.Constructor - private GetInstanceTypeFpga( - @CustomType.Parameter("count") Integer count, - @CustomType.Parameter("manufacturer") String manufacturer, - @CustomType.Parameter("memorySize") Integer memorySize, - @CustomType.Parameter("name") String name) { - this.count = count; - this.manufacturer = manufacturer; - this.memorySize = memorySize; - this.name = name; - } + private Integer memorySize; + private String name; + private GetInstanceTypeFpga() {} public Integer count() { return this.count; } @@ -55,17 +44,13 @@ public static Builder builder() { public static Builder builder(GetInstanceTypeFpga defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer count; private String manufacturer; private Integer memorySize; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypeFpga defaults) { Objects.requireNonNull(defaults); this.count = defaults.count; @@ -74,23 +59,33 @@ public Builder(GetInstanceTypeFpga defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder count(Integer count) { this.count = Objects.requireNonNull(count); return this; } + @CustomType.Setter public Builder manufacturer(String manufacturer) { this.manufacturer = Objects.requireNonNull(manufacturer); return this; } + @CustomType.Setter public Builder memorySize(Integer memorySize) { this.memorySize = Objects.requireNonNull(memorySize); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetInstanceTypeFpga build() { - return new GetInstanceTypeFpga(count, manufacturer, memorySize, name); + } + public GetInstanceTypeFpga build() { + final var o = new GetInstanceTypeFpga(); + o.count = count; + o.manufacturer = manufacturer; + o.memorySize = memorySize; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeGpus.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeGpus.java index ac66315b13c..0494ebd6fb4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeGpus.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeGpus.java @@ -10,27 +10,16 @@ @CustomType public final class GetInstanceTypeGpus { - private final Integer count; - private final String manufacturer; + private Integer count; + private String manufacturer; /** * @return Size of the instance memory, in MiB. * */ - private final Integer memorySize; - private final String name; - - @CustomType.Constructor - private GetInstanceTypeGpus( - @CustomType.Parameter("count") Integer count, - @CustomType.Parameter("manufacturer") String manufacturer, - @CustomType.Parameter("memorySize") Integer memorySize, - @CustomType.Parameter("name") String name) { - this.count = count; - this.manufacturer = manufacturer; - this.memorySize = memorySize; - this.name = name; - } + private Integer memorySize; + private String name; + private GetInstanceTypeGpus() {} public Integer count() { return this.count; } @@ -55,17 +44,13 @@ public static Builder builder() { public static Builder builder(GetInstanceTypeGpus defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer count; private String manufacturer; private Integer memorySize; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypeGpus defaults) { Objects.requireNonNull(defaults); this.count = defaults.count; @@ -74,23 +59,33 @@ public Builder(GetInstanceTypeGpus defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder count(Integer count) { this.count = Objects.requireNonNull(count); return this; } + @CustomType.Setter public Builder manufacturer(String manufacturer) { this.manufacturer = Objects.requireNonNull(manufacturer); return this; } + @CustomType.Setter public Builder memorySize(Integer memorySize) { this.memorySize = Objects.requireNonNull(memorySize); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetInstanceTypeGpus build() { - return new GetInstanceTypeGpus(count, manufacturer, memorySize, name); + } + public GetInstanceTypeGpus build() { + final var o = new GetInstanceTypeGpus(); + o.count = count; + o.manufacturer = manufacturer; + o.memorySize = memorySize; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeInferenceAccelerator.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeInferenceAccelerator.java index 5dee35d90dd..068e7c89778 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeInferenceAccelerator.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeInferenceAccelerator.java @@ -10,20 +10,11 @@ @CustomType public final class GetInstanceTypeInferenceAccelerator { - private final Integer count; - private final String manufacturer; - private final String name; - - @CustomType.Constructor - private GetInstanceTypeInferenceAccelerator( - @CustomType.Parameter("count") Integer count, - @CustomType.Parameter("manufacturer") String manufacturer, - @CustomType.Parameter("name") String name) { - this.count = count; - this.manufacturer = manufacturer; - this.name = name; - } + private Integer count; + private String manufacturer; + private String name; + private GetInstanceTypeInferenceAccelerator() {} public Integer count() { return this.count; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(GetInstanceTypeInferenceAccelerator defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer count; private String manufacturer; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypeInferenceAccelerator defaults) { Objects.requireNonNull(defaults); this.count = defaults.count; @@ -58,19 +45,27 @@ public Builder(GetInstanceTypeInferenceAccelerator defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder count(Integer count) { this.count = Objects.requireNonNull(count); return this; } + @CustomType.Setter public Builder manufacturer(String manufacturer) { this.manufacturer = Objects.requireNonNull(manufacturer); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetInstanceTypeInferenceAccelerator build() { - return new GetInstanceTypeInferenceAccelerator(count, manufacturer, name); + } + public GetInstanceTypeInferenceAccelerator build() { + final var o = new GetInstanceTypeInferenceAccelerator(); + o.count = count; + o.manufacturer = manufacturer; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeInstanceDisk.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeInstanceDisk.java index 881b3350581..04023b0afaa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeInstanceDisk.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeInstanceDisk.java @@ -10,20 +10,11 @@ @CustomType public final class GetInstanceTypeInstanceDisk { - private final Integer count; - private final Integer size; - private final String type; - - @CustomType.Constructor - private GetInstanceTypeInstanceDisk( - @CustomType.Parameter("count") Integer count, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") String type) { - this.count = count; - this.size = size; - this.type = type; - } + private Integer count; + private Integer size; + private String type; + private GetInstanceTypeInstanceDisk() {} public Integer count() { return this.count; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(GetInstanceTypeInstanceDisk defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer count; private Integer size; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypeInstanceDisk defaults) { Objects.requireNonNull(defaults); this.count = defaults.count; @@ -58,19 +45,27 @@ public Builder(GetInstanceTypeInstanceDisk defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder count(Integer count) { this.count = Objects.requireNonNull(count); return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetInstanceTypeInstanceDisk build() { - return new GetInstanceTypeInstanceDisk(count, size, type); + } + public GetInstanceTypeInstanceDisk build() { + final var o = new GetInstanceTypeInstanceDisk(); + o.count = count; + o.size = size; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingFilter.java index 8252bf33218..de42c3390b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingFilter.java @@ -14,21 +14,14 @@ public final class GetInstanceTypeOfferingFilter { * @return Name of the filter. The `location` filter depends on the top-level `location_type` argument and if not specified, defaults to the current region. * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetInstanceTypeOfferingFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetInstanceTypeOfferingFilter() {} /** * @return Name of the filter. The `location` filter depends on the top-level `location_type` argument and if not specified, defaults to the current region. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetInstanceTypeOfferingFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypeOfferingFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetInstanceTypeOfferingFilter build() { - return new GetInstanceTypeOfferingFilter(name, values); + } + public GetInstanceTypeOfferingFilter build() { + final var o = new GetInstanceTypeOfferingFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingResult.java index cd64ba0cb5c..3c2eb550bd0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingResult.java @@ -13,34 +13,21 @@ @CustomType public final class GetInstanceTypeOfferingResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return EC2 Instance Type. * */ - private final String instanceType; - private final @Nullable String locationType; - private final @Nullable List preferredInstanceTypes; - - @CustomType.Constructor - private GetInstanceTypeOfferingResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("locationType") @Nullable String locationType, - @CustomType.Parameter("preferredInstanceTypes") @Nullable List preferredInstanceTypes) { - this.filters = filters; - this.id = id; - this.instanceType = instanceType; - this.locationType = locationType; - this.preferredInstanceTypes = preferredInstanceTypes; - } + private String instanceType; + private @Nullable String locationType; + private @Nullable List preferredInstanceTypes; + private GetInstanceTypeOfferingResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -72,18 +59,14 @@ public static Builder builder() { public static Builder builder(GetInstanceTypeOfferingResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private String instanceType; private @Nullable String locationType; private @Nullable List preferredInstanceTypes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypeOfferingResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -93,6 +76,7 @@ public Builder(GetInstanceTypeOfferingResult defaults) { this.preferredInstanceTypes = defaults.preferredInstanceTypes; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -100,26 +84,37 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetInstanceTypeOfferingFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceType(String instanceType) { this.instanceType = Objects.requireNonNull(instanceType); return this; } + @CustomType.Setter public Builder locationType(@Nullable String locationType) { this.locationType = locationType; return this; } + @CustomType.Setter public Builder preferredInstanceTypes(@Nullable List preferredInstanceTypes) { this.preferredInstanceTypes = preferredInstanceTypes; return this; } public Builder preferredInstanceTypes(String... preferredInstanceTypes) { return preferredInstanceTypes(List.of(preferredInstanceTypes)); - } public GetInstanceTypeOfferingResult build() { - return new GetInstanceTypeOfferingResult(filters, id, instanceType, locationType, preferredInstanceTypes); + } + public GetInstanceTypeOfferingResult build() { + final var o = new GetInstanceTypeOfferingResult(); + o.filters = filters; + o.id = id; + o.instanceType = instanceType; + o.locationType = locationType; + o.preferredInstanceTypes = preferredInstanceTypes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingsFilter.java index 9b6b5c48fde..f2edcaa9763 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingsFilter.java @@ -14,21 +14,14 @@ public final class GetInstanceTypeOfferingsFilter { * @return Name of the filter. The `location` filter depends on the top-level `location_type` argument and if not specified, defaults to the current region. * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetInstanceTypeOfferingsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetInstanceTypeOfferingsFilter() {} /** * @return Name of the filter. The `location` filter depends on the top-level `location_type` argument and if not specified, defaults to the current region. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetInstanceTypeOfferingsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypeOfferingsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetInstanceTypeOfferingsFilter build() { - return new GetInstanceTypeOfferingsFilter(name, values); + } + public GetInstanceTypeOfferingsFilter build() { + final var o = new GetInstanceTypeOfferingsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingsResult.java index 52594f00b3d..359f6d9c456 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeOfferingsResult.java @@ -13,45 +13,30 @@ @CustomType public final class GetInstanceTypeOfferingsResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return List of EC2 Instance Types. * */ - private final List instanceTypes; - private final @Nullable String locationType; + private List instanceTypes; + private @Nullable String locationType; /** * @return List of location types. * */ - private final List locationTypes; + private List locationTypes; /** * @return List of locations. * */ - private final List locations; - - @CustomType.Constructor - private GetInstanceTypeOfferingsResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceTypes") List instanceTypes, - @CustomType.Parameter("locationType") @Nullable String locationType, - @CustomType.Parameter("locationTypes") List locationTypes, - @CustomType.Parameter("locations") List locations) { - this.filters = filters; - this.id = id; - this.instanceTypes = instanceTypes; - this.locationType = locationType; - this.locationTypes = locationTypes; - this.locations = locations; - } + private List locations; + private GetInstanceTypeOfferingsResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -94,7 +79,7 @@ public static Builder builder() { public static Builder builder(GetInstanceTypeOfferingsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; @@ -102,11 +87,7 @@ public static final class Builder { private @Nullable String locationType; private List locationTypes; private List locations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypeOfferingsResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -117,6 +98,7 @@ public Builder(GetInstanceTypeOfferingsResult defaults) { this.locations = defaults.locations; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -124,10 +106,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetInstanceTypeOfferingsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceTypes(List instanceTypes) { this.instanceTypes = Objects.requireNonNull(instanceTypes); return this; @@ -135,10 +119,12 @@ public Builder instanceTypes(List instanceTypes) { public Builder instanceTypes(String... instanceTypes) { return instanceTypes(List.of(instanceTypes)); } + @CustomType.Setter public Builder locationType(@Nullable String locationType) { this.locationType = locationType; return this; } + @CustomType.Setter public Builder locationTypes(List locationTypes) { this.locationTypes = Objects.requireNonNull(locationTypes); return this; @@ -146,14 +132,23 @@ public Builder locationTypes(List locationTypes) { public Builder locationTypes(String... locationTypes) { return locationTypes(List.of(locationTypes)); } + @CustomType.Setter public Builder locations(List locations) { this.locations = Objects.requireNonNull(locations); return this; } public Builder locations(String... locations) { return locations(List.of(locations)); - } public GetInstanceTypeOfferingsResult build() { - return new GetInstanceTypeOfferingsResult(filters, id, instanceTypes, locationType, locationTypes, locations); + } + public GetInstanceTypeOfferingsResult build() { + final var o = new GetInstanceTypeOfferingsResult(); + o.filters = filters; + o.id = id; + o.instanceTypes = instanceTypes; + o.locationType = locationType; + o.locationTypes = locationTypes; + o.locations = locations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeResult.java index 4555bbb7c19..16006147ec2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypeResult.java @@ -21,102 +21,102 @@ public final class GetInstanceTypeResult { * @return `true` if auto recovery is supported. * */ - private final Boolean autoRecoverySupported; + private Boolean autoRecoverySupported; /** * @return `true` if it is a bare metal instance type. * */ - private final Boolean bareMetal; + private Boolean bareMetal; /** * @return `true` if the instance type is a burstable performance instance type. * */ - private final Boolean burstablePerformanceSupported; + private Boolean burstablePerformanceSupported; /** * @return `true` if the instance type is a current generation. * */ - private final Boolean currentGeneration; + private Boolean currentGeneration; /** * @return `true` if Dedicated Hosts are supported on the instance type. * */ - private final Boolean dedicatedHostsSupported; + private Boolean dedicatedHostsSupported; /** * @return The default number of cores for the instance type. * */ - private final Integer defaultCores; + private Integer defaultCores; /** * @return The default number of threads per core for the instance type. * */ - private final Integer defaultThreadsPerCore; + private Integer defaultThreadsPerCore; /** * @return The default number of vCPUs for the instance type. * */ - private final Integer defaultVcpus; + private Integer defaultVcpus; /** * @return Indicates whether Amazon EBS encryption is supported. * */ - private final String ebsEncryptionSupport; + private String ebsEncryptionSupport; /** * @return Indicates whether non-volatile memory express (NVMe) is supported. * */ - private final String ebsNvmeSupport; + private String ebsNvmeSupport; /** * @return Indicates that the instance type is Amazon EBS-optimized. * */ - private final String ebsOptimizedSupport; + private String ebsOptimizedSupport; /** * @return The baseline bandwidth performance for an EBS-optimized instance type, in Mbps. * */ - private final Integer ebsPerformanceBaselineBandwidth; + private Integer ebsPerformanceBaselineBandwidth; /** * @return The baseline input/output storage operations per seconds for an EBS-optimized instance type. * */ - private final Integer ebsPerformanceBaselineIops; + private Integer ebsPerformanceBaselineIops; /** * @return The baseline throughput performance for an EBS-optimized instance type, in MBps. * */ - private final Double ebsPerformanceBaselineThroughput; + private Double ebsPerformanceBaselineThroughput; /** * @return The maximum bandwidth performance for an EBS-optimized instance type, in Mbps. * */ - private final Integer ebsPerformanceMaximumBandwidth; + private Integer ebsPerformanceMaximumBandwidth; /** * @return The maximum input/output storage operations per second for an EBS-optimized instance type. * */ - private final Integer ebsPerformanceMaximumIops; + private Integer ebsPerformanceMaximumIops; /** * @return The maximum throughput performance for an EBS-optimized instance type, in MBps. * */ - private final Double ebsPerformanceMaximumThroughput; + private Double ebsPerformanceMaximumThroughput; /** * @return Indicates whether Elastic Fabric Adapter (EFA) is supported. * */ - private final Boolean efaSupported; + private Boolean efaSupported; /** * @return Indicates whether Elastic Network Adapter (ENA) is supported. * */ - private final String enaSupport; + private String enaSupport; /** * @return Indicates whether encryption in-transit between instances is supported. * */ - private final Boolean encryptionInTransitSupported; + private Boolean encryptionInTransitSupported; /** * @return Describes the FPGA accelerator settings for the instance type. * * `fpgas.#.count` - The count of FPGA accelerators for the instance type. @@ -125,12 +125,12 @@ public final class GetInstanceTypeResult { * * `fpgas.#.name` - The name of the FPGA accelerator. * */ - private final List fpgas; + private List fpgas; /** * @return `true` if the instance type is eligible for the free tier. * */ - private final Boolean freeTierEligible; + private Boolean freeTierEligible; /** * @return Describes the GPU accelerators for the instance type. * * `gpus.#.count` - The number of GPUs for the instance type. @@ -139,12 +139,12 @@ public final class GetInstanceTypeResult { * * `gpus.#.name` - The name of the GPU accelerator. * */ - private final List gpuses; + private List gpuses; /** * @return `true` if On-Demand hibernation is supported. * */ - private final Boolean hibernationSupported; + private Boolean hibernationSupported; /** * @return Indicates the hypervisor used for the instance type. * * `inference_accelerators` Describes the Inference accelerators for the instance type. @@ -153,13 +153,13 @@ public final class GetInstanceTypeResult { * * `inference_accelerators.#.name` - The name of the Inference accelerator. * */ - private final String hypervisor; + private String hypervisor; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final List inferenceAccelerators; + private String id; + private List inferenceAccelerators; /** * @return Describes the disks for the instance type. * * `instance_disks.#.count` - The number of disks with this configuration. @@ -167,197 +167,100 @@ public final class GetInstanceTypeResult { * * `instance_disks.#.type` - The type of disk. * */ - private final List instanceDisks; + private List instanceDisks; /** * @return `true` if instance storage is supported. * */ - private final Boolean instanceStorageSupported; - private final String instanceType; + private Boolean instanceStorageSupported; + private String instanceType; /** * @return `true` if IPv6 is supported. * */ - private final Boolean ipv6Supported; + private Boolean ipv6Supported; /** * @return The maximum number of IPv4 addresses per network interface. * */ - private final Integer maximumIpv4AddressesPerInterface; + private Integer maximumIpv4AddressesPerInterface; /** * @return The maximum number of IPv6 addresses per network interface. * */ - private final Integer maximumIpv6AddressesPerInterface; + private Integer maximumIpv6AddressesPerInterface; /** * @return The maximum number of network interfaces for the instance type. * */ - private final Integer maximumNetworkInterfaces; + private Integer maximumNetworkInterfaces; /** * @return Size of the instance memory, in MiB. * */ - private final Integer memorySize; + private Integer memorySize; /** * @return Describes the network performance. * */ - private final String networkPerformance; + private String networkPerformance; /** * @return A list of architectures supported by the instance type. * */ - private final List supportedArchitectures; + private List supportedArchitectures; /** * @return A list of supported placement groups types. * */ - private final List supportedPlacementStrategies; + private List supportedPlacementStrategies; /** * @return Indicates the supported root device types. * */ - private final List supportedRootDeviceTypes; + private List supportedRootDeviceTypes; /** * @return Indicates whether the instance type is offered for spot or On-Demand. * */ - private final List supportedUsagesClasses; + private List supportedUsagesClasses; /** * @return The supported virtualization types. * */ - private final List supportedVirtualizationTypes; + private List supportedVirtualizationTypes; /** * @return The speed of the processor, in GHz. * */ - private final Double sustainedClockSpeed; + private Double sustainedClockSpeed; /** * @return The total memory of all FPGA accelerators for the instance type (in MiB). * */ - private final Integer totalFpgaMemory; + private Integer totalFpgaMemory; /** * @return The total size of the memory for the GPU accelerators for the instance type (in MiB). * */ - private final Integer totalGpuMemory; + private Integer totalGpuMemory; /** * @return The total size of the instance disks, in GB. * */ - private final Integer totalInstanceStorage; + private Integer totalInstanceStorage; /** * @return List of the valid number of cores that can be configured for the instance type. * */ - private final List validCores; + private List validCores; /** * @return List of the valid number of threads per core that can be configured for the instance type. * */ - private final List validThreadsPerCores; - - @CustomType.Constructor - private GetInstanceTypeResult( - @CustomType.Parameter("autoRecoverySupported") Boolean autoRecoverySupported, - @CustomType.Parameter("bareMetal") Boolean bareMetal, - @CustomType.Parameter("burstablePerformanceSupported") Boolean burstablePerformanceSupported, - @CustomType.Parameter("currentGeneration") Boolean currentGeneration, - @CustomType.Parameter("dedicatedHostsSupported") Boolean dedicatedHostsSupported, - @CustomType.Parameter("defaultCores") Integer defaultCores, - @CustomType.Parameter("defaultThreadsPerCore") Integer defaultThreadsPerCore, - @CustomType.Parameter("defaultVcpus") Integer defaultVcpus, - @CustomType.Parameter("ebsEncryptionSupport") String ebsEncryptionSupport, - @CustomType.Parameter("ebsNvmeSupport") String ebsNvmeSupport, - @CustomType.Parameter("ebsOptimizedSupport") String ebsOptimizedSupport, - @CustomType.Parameter("ebsPerformanceBaselineBandwidth") Integer ebsPerformanceBaselineBandwidth, - @CustomType.Parameter("ebsPerformanceBaselineIops") Integer ebsPerformanceBaselineIops, - @CustomType.Parameter("ebsPerformanceBaselineThroughput") Double ebsPerformanceBaselineThroughput, - @CustomType.Parameter("ebsPerformanceMaximumBandwidth") Integer ebsPerformanceMaximumBandwidth, - @CustomType.Parameter("ebsPerformanceMaximumIops") Integer ebsPerformanceMaximumIops, - @CustomType.Parameter("ebsPerformanceMaximumThroughput") Double ebsPerformanceMaximumThroughput, - @CustomType.Parameter("efaSupported") Boolean efaSupported, - @CustomType.Parameter("enaSupport") String enaSupport, - @CustomType.Parameter("encryptionInTransitSupported") Boolean encryptionInTransitSupported, - @CustomType.Parameter("fpgas") List fpgas, - @CustomType.Parameter("freeTierEligible") Boolean freeTierEligible, - @CustomType.Parameter("gpuses") List gpuses, - @CustomType.Parameter("hibernationSupported") Boolean hibernationSupported, - @CustomType.Parameter("hypervisor") String hypervisor, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("inferenceAccelerators") List inferenceAccelerators, - @CustomType.Parameter("instanceDisks") List instanceDisks, - @CustomType.Parameter("instanceStorageSupported") Boolean instanceStorageSupported, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("ipv6Supported") Boolean ipv6Supported, - @CustomType.Parameter("maximumIpv4AddressesPerInterface") Integer maximumIpv4AddressesPerInterface, - @CustomType.Parameter("maximumIpv6AddressesPerInterface") Integer maximumIpv6AddressesPerInterface, - @CustomType.Parameter("maximumNetworkInterfaces") Integer maximumNetworkInterfaces, - @CustomType.Parameter("memorySize") Integer memorySize, - @CustomType.Parameter("networkPerformance") String networkPerformance, - @CustomType.Parameter("supportedArchitectures") List supportedArchitectures, - @CustomType.Parameter("supportedPlacementStrategies") List supportedPlacementStrategies, - @CustomType.Parameter("supportedRootDeviceTypes") List supportedRootDeviceTypes, - @CustomType.Parameter("supportedUsagesClasses") List supportedUsagesClasses, - @CustomType.Parameter("supportedVirtualizationTypes") List supportedVirtualizationTypes, - @CustomType.Parameter("sustainedClockSpeed") Double sustainedClockSpeed, - @CustomType.Parameter("totalFpgaMemory") Integer totalFpgaMemory, - @CustomType.Parameter("totalGpuMemory") Integer totalGpuMemory, - @CustomType.Parameter("totalInstanceStorage") Integer totalInstanceStorage, - @CustomType.Parameter("validCores") List validCores, - @CustomType.Parameter("validThreadsPerCores") List validThreadsPerCores) { - this.autoRecoverySupported = autoRecoverySupported; - this.bareMetal = bareMetal; - this.burstablePerformanceSupported = burstablePerformanceSupported; - this.currentGeneration = currentGeneration; - this.dedicatedHostsSupported = dedicatedHostsSupported; - this.defaultCores = defaultCores; - this.defaultThreadsPerCore = defaultThreadsPerCore; - this.defaultVcpus = defaultVcpus; - this.ebsEncryptionSupport = ebsEncryptionSupport; - this.ebsNvmeSupport = ebsNvmeSupport; - this.ebsOptimizedSupport = ebsOptimizedSupport; - this.ebsPerformanceBaselineBandwidth = ebsPerformanceBaselineBandwidth; - this.ebsPerformanceBaselineIops = ebsPerformanceBaselineIops; - this.ebsPerformanceBaselineThroughput = ebsPerformanceBaselineThroughput; - this.ebsPerformanceMaximumBandwidth = ebsPerformanceMaximumBandwidth; - this.ebsPerformanceMaximumIops = ebsPerformanceMaximumIops; - this.ebsPerformanceMaximumThroughput = ebsPerformanceMaximumThroughput; - this.efaSupported = efaSupported; - this.enaSupport = enaSupport; - this.encryptionInTransitSupported = encryptionInTransitSupported; - this.fpgas = fpgas; - this.freeTierEligible = freeTierEligible; - this.gpuses = gpuses; - this.hibernationSupported = hibernationSupported; - this.hypervisor = hypervisor; - this.id = id; - this.inferenceAccelerators = inferenceAccelerators; - this.instanceDisks = instanceDisks; - this.instanceStorageSupported = instanceStorageSupported; - this.instanceType = instanceType; - this.ipv6Supported = ipv6Supported; - this.maximumIpv4AddressesPerInterface = maximumIpv4AddressesPerInterface; - this.maximumIpv6AddressesPerInterface = maximumIpv6AddressesPerInterface; - this.maximumNetworkInterfaces = maximumNetworkInterfaces; - this.memorySize = memorySize; - this.networkPerformance = networkPerformance; - this.supportedArchitectures = supportedArchitectures; - this.supportedPlacementStrategies = supportedPlacementStrategies; - this.supportedRootDeviceTypes = supportedRootDeviceTypes; - this.supportedUsagesClasses = supportedUsagesClasses; - this.supportedVirtualizationTypes = supportedVirtualizationTypes; - this.sustainedClockSpeed = sustainedClockSpeed; - this.totalFpgaMemory = totalFpgaMemory; - this.totalGpuMemory = totalGpuMemory; - this.totalInstanceStorage = totalInstanceStorage; - this.validCores = validCores; - this.validThreadsPerCores = validThreadsPerCores; - } + private List validThreadsPerCores; + private GetInstanceTypeResult() {} /** * @return `true` if auto recovery is supported. * @@ -702,7 +605,7 @@ public static Builder builder() { public static Builder builder(GetInstanceTypeResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean autoRecoverySupported; private Boolean bareMetal; @@ -751,11 +654,7 @@ public static final class Builder { private Integer totalInstanceStorage; private List validCores; private List validThreadsPerCores; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypeResult defaults) { Objects.requireNonNull(defaults); this.autoRecoverySupported = defaults.autoRecoverySupported; @@ -807,86 +706,107 @@ public Builder(GetInstanceTypeResult defaults) { this.validThreadsPerCores = defaults.validThreadsPerCores; } + @CustomType.Setter public Builder autoRecoverySupported(Boolean autoRecoverySupported) { this.autoRecoverySupported = Objects.requireNonNull(autoRecoverySupported); return this; } + @CustomType.Setter public Builder bareMetal(Boolean bareMetal) { this.bareMetal = Objects.requireNonNull(bareMetal); return this; } + @CustomType.Setter public Builder burstablePerformanceSupported(Boolean burstablePerformanceSupported) { this.burstablePerformanceSupported = Objects.requireNonNull(burstablePerformanceSupported); return this; } + @CustomType.Setter public Builder currentGeneration(Boolean currentGeneration) { this.currentGeneration = Objects.requireNonNull(currentGeneration); return this; } + @CustomType.Setter public Builder dedicatedHostsSupported(Boolean dedicatedHostsSupported) { this.dedicatedHostsSupported = Objects.requireNonNull(dedicatedHostsSupported); return this; } + @CustomType.Setter public Builder defaultCores(Integer defaultCores) { this.defaultCores = Objects.requireNonNull(defaultCores); return this; } + @CustomType.Setter public Builder defaultThreadsPerCore(Integer defaultThreadsPerCore) { this.defaultThreadsPerCore = Objects.requireNonNull(defaultThreadsPerCore); return this; } + @CustomType.Setter public Builder defaultVcpus(Integer defaultVcpus) { this.defaultVcpus = Objects.requireNonNull(defaultVcpus); return this; } + @CustomType.Setter public Builder ebsEncryptionSupport(String ebsEncryptionSupport) { this.ebsEncryptionSupport = Objects.requireNonNull(ebsEncryptionSupport); return this; } + @CustomType.Setter public Builder ebsNvmeSupport(String ebsNvmeSupport) { this.ebsNvmeSupport = Objects.requireNonNull(ebsNvmeSupport); return this; } + @CustomType.Setter public Builder ebsOptimizedSupport(String ebsOptimizedSupport) { this.ebsOptimizedSupport = Objects.requireNonNull(ebsOptimizedSupport); return this; } + @CustomType.Setter public Builder ebsPerformanceBaselineBandwidth(Integer ebsPerformanceBaselineBandwidth) { this.ebsPerformanceBaselineBandwidth = Objects.requireNonNull(ebsPerformanceBaselineBandwidth); return this; } + @CustomType.Setter public Builder ebsPerformanceBaselineIops(Integer ebsPerformanceBaselineIops) { this.ebsPerformanceBaselineIops = Objects.requireNonNull(ebsPerformanceBaselineIops); return this; } + @CustomType.Setter public Builder ebsPerformanceBaselineThroughput(Double ebsPerformanceBaselineThroughput) { this.ebsPerformanceBaselineThroughput = Objects.requireNonNull(ebsPerformanceBaselineThroughput); return this; } + @CustomType.Setter public Builder ebsPerformanceMaximumBandwidth(Integer ebsPerformanceMaximumBandwidth) { this.ebsPerformanceMaximumBandwidth = Objects.requireNonNull(ebsPerformanceMaximumBandwidth); return this; } + @CustomType.Setter public Builder ebsPerformanceMaximumIops(Integer ebsPerformanceMaximumIops) { this.ebsPerformanceMaximumIops = Objects.requireNonNull(ebsPerformanceMaximumIops); return this; } + @CustomType.Setter public Builder ebsPerformanceMaximumThroughput(Double ebsPerformanceMaximumThroughput) { this.ebsPerformanceMaximumThroughput = Objects.requireNonNull(ebsPerformanceMaximumThroughput); return this; } + @CustomType.Setter public Builder efaSupported(Boolean efaSupported) { this.efaSupported = Objects.requireNonNull(efaSupported); return this; } + @CustomType.Setter public Builder enaSupport(String enaSupport) { this.enaSupport = Objects.requireNonNull(enaSupport); return this; } + @CustomType.Setter public Builder encryptionInTransitSupported(Boolean encryptionInTransitSupported) { this.encryptionInTransitSupported = Objects.requireNonNull(encryptionInTransitSupported); return this; } + @CustomType.Setter public Builder fpgas(List fpgas) { this.fpgas = Objects.requireNonNull(fpgas); return this; @@ -894,10 +814,12 @@ public Builder fpgas(List fpgas) { public Builder fpgas(GetInstanceTypeFpga... fpgas) { return fpgas(List.of(fpgas)); } + @CustomType.Setter public Builder freeTierEligible(Boolean freeTierEligible) { this.freeTierEligible = Objects.requireNonNull(freeTierEligible); return this; } + @CustomType.Setter public Builder gpuses(List gpuses) { this.gpuses = Objects.requireNonNull(gpuses); return this; @@ -905,18 +827,22 @@ public Builder gpuses(List gpuses) { public Builder gpuses(GetInstanceTypeGpus... gpuses) { return gpuses(List.of(gpuses)); } + @CustomType.Setter public Builder hibernationSupported(Boolean hibernationSupported) { this.hibernationSupported = Objects.requireNonNull(hibernationSupported); return this; } + @CustomType.Setter public Builder hypervisor(String hypervisor) { this.hypervisor = Objects.requireNonNull(hypervisor); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder inferenceAccelerators(List inferenceAccelerators) { this.inferenceAccelerators = Objects.requireNonNull(inferenceAccelerators); return this; @@ -924,6 +850,7 @@ public Builder inferenceAccelerators(List i public Builder inferenceAccelerators(GetInstanceTypeInferenceAccelerator... inferenceAccelerators) { return inferenceAccelerators(List.of(inferenceAccelerators)); } + @CustomType.Setter public Builder instanceDisks(List instanceDisks) { this.instanceDisks = Objects.requireNonNull(instanceDisks); return this; @@ -931,38 +858,47 @@ public Builder instanceDisks(List instanceDisks) { public Builder instanceDisks(GetInstanceTypeInstanceDisk... instanceDisks) { return instanceDisks(List.of(instanceDisks)); } + @CustomType.Setter public Builder instanceStorageSupported(Boolean instanceStorageSupported) { this.instanceStorageSupported = Objects.requireNonNull(instanceStorageSupported); return this; } + @CustomType.Setter public Builder instanceType(String instanceType) { this.instanceType = Objects.requireNonNull(instanceType); return this; } + @CustomType.Setter public Builder ipv6Supported(Boolean ipv6Supported) { this.ipv6Supported = Objects.requireNonNull(ipv6Supported); return this; } + @CustomType.Setter public Builder maximumIpv4AddressesPerInterface(Integer maximumIpv4AddressesPerInterface) { this.maximumIpv4AddressesPerInterface = Objects.requireNonNull(maximumIpv4AddressesPerInterface); return this; } + @CustomType.Setter public Builder maximumIpv6AddressesPerInterface(Integer maximumIpv6AddressesPerInterface) { this.maximumIpv6AddressesPerInterface = Objects.requireNonNull(maximumIpv6AddressesPerInterface); return this; } + @CustomType.Setter public Builder maximumNetworkInterfaces(Integer maximumNetworkInterfaces) { this.maximumNetworkInterfaces = Objects.requireNonNull(maximumNetworkInterfaces); return this; } + @CustomType.Setter public Builder memorySize(Integer memorySize) { this.memorySize = Objects.requireNonNull(memorySize); return this; } + @CustomType.Setter public Builder networkPerformance(String networkPerformance) { this.networkPerformance = Objects.requireNonNull(networkPerformance); return this; } + @CustomType.Setter public Builder supportedArchitectures(List supportedArchitectures) { this.supportedArchitectures = Objects.requireNonNull(supportedArchitectures); return this; @@ -970,6 +906,7 @@ public Builder supportedArchitectures(List supportedArchitectures) { public Builder supportedArchitectures(String... supportedArchitectures) { return supportedArchitectures(List.of(supportedArchitectures)); } + @CustomType.Setter public Builder supportedPlacementStrategies(List supportedPlacementStrategies) { this.supportedPlacementStrategies = Objects.requireNonNull(supportedPlacementStrategies); return this; @@ -977,6 +914,7 @@ public Builder supportedPlacementStrategies(List supportedPlacementStrat public Builder supportedPlacementStrategies(String... supportedPlacementStrategies) { return supportedPlacementStrategies(List.of(supportedPlacementStrategies)); } + @CustomType.Setter public Builder supportedRootDeviceTypes(List supportedRootDeviceTypes) { this.supportedRootDeviceTypes = Objects.requireNonNull(supportedRootDeviceTypes); return this; @@ -984,6 +922,7 @@ public Builder supportedRootDeviceTypes(List supportedRootDeviceTypes) { public Builder supportedRootDeviceTypes(String... supportedRootDeviceTypes) { return supportedRootDeviceTypes(List.of(supportedRootDeviceTypes)); } + @CustomType.Setter public Builder supportedUsagesClasses(List supportedUsagesClasses) { this.supportedUsagesClasses = Objects.requireNonNull(supportedUsagesClasses); return this; @@ -991,6 +930,7 @@ public Builder supportedUsagesClasses(List supportedUsagesClasses) { public Builder supportedUsagesClasses(String... supportedUsagesClasses) { return supportedUsagesClasses(List.of(supportedUsagesClasses)); } + @CustomType.Setter public Builder supportedVirtualizationTypes(List supportedVirtualizationTypes) { this.supportedVirtualizationTypes = Objects.requireNonNull(supportedVirtualizationTypes); return this; @@ -998,22 +938,27 @@ public Builder supportedVirtualizationTypes(List supportedVirtualization public Builder supportedVirtualizationTypes(String... supportedVirtualizationTypes) { return supportedVirtualizationTypes(List.of(supportedVirtualizationTypes)); } + @CustomType.Setter public Builder sustainedClockSpeed(Double sustainedClockSpeed) { this.sustainedClockSpeed = Objects.requireNonNull(sustainedClockSpeed); return this; } + @CustomType.Setter public Builder totalFpgaMemory(Integer totalFpgaMemory) { this.totalFpgaMemory = Objects.requireNonNull(totalFpgaMemory); return this; } + @CustomType.Setter public Builder totalGpuMemory(Integer totalGpuMemory) { this.totalGpuMemory = Objects.requireNonNull(totalGpuMemory); return this; } + @CustomType.Setter public Builder totalInstanceStorage(Integer totalInstanceStorage) { this.totalInstanceStorage = Objects.requireNonNull(totalInstanceStorage); return this; } + @CustomType.Setter public Builder validCores(List validCores) { this.validCores = Objects.requireNonNull(validCores); return this; @@ -1021,14 +966,64 @@ public Builder validCores(List validCores) { public Builder validCores(Integer... validCores) { return validCores(List.of(validCores)); } + @CustomType.Setter public Builder validThreadsPerCores(List validThreadsPerCores) { this.validThreadsPerCores = Objects.requireNonNull(validThreadsPerCores); return this; } public Builder validThreadsPerCores(Integer... validThreadsPerCores) { return validThreadsPerCores(List.of(validThreadsPerCores)); - } public GetInstanceTypeResult build() { - return new GetInstanceTypeResult(autoRecoverySupported, bareMetal, burstablePerformanceSupported, currentGeneration, dedicatedHostsSupported, defaultCores, defaultThreadsPerCore, defaultVcpus, ebsEncryptionSupport, ebsNvmeSupport, ebsOptimizedSupport, ebsPerformanceBaselineBandwidth, ebsPerformanceBaselineIops, ebsPerformanceBaselineThroughput, ebsPerformanceMaximumBandwidth, ebsPerformanceMaximumIops, ebsPerformanceMaximumThroughput, efaSupported, enaSupport, encryptionInTransitSupported, fpgas, freeTierEligible, gpuses, hibernationSupported, hypervisor, id, inferenceAccelerators, instanceDisks, instanceStorageSupported, instanceType, ipv6Supported, maximumIpv4AddressesPerInterface, maximumIpv6AddressesPerInterface, maximumNetworkInterfaces, memorySize, networkPerformance, supportedArchitectures, supportedPlacementStrategies, supportedRootDeviceTypes, supportedUsagesClasses, supportedVirtualizationTypes, sustainedClockSpeed, totalFpgaMemory, totalGpuMemory, totalInstanceStorage, validCores, validThreadsPerCores); + } + public GetInstanceTypeResult build() { + final var o = new GetInstanceTypeResult(); + o.autoRecoverySupported = autoRecoverySupported; + o.bareMetal = bareMetal; + o.burstablePerformanceSupported = burstablePerformanceSupported; + o.currentGeneration = currentGeneration; + o.dedicatedHostsSupported = dedicatedHostsSupported; + o.defaultCores = defaultCores; + o.defaultThreadsPerCore = defaultThreadsPerCore; + o.defaultVcpus = defaultVcpus; + o.ebsEncryptionSupport = ebsEncryptionSupport; + o.ebsNvmeSupport = ebsNvmeSupport; + o.ebsOptimizedSupport = ebsOptimizedSupport; + o.ebsPerformanceBaselineBandwidth = ebsPerformanceBaselineBandwidth; + o.ebsPerformanceBaselineIops = ebsPerformanceBaselineIops; + o.ebsPerformanceBaselineThroughput = ebsPerformanceBaselineThroughput; + o.ebsPerformanceMaximumBandwidth = ebsPerformanceMaximumBandwidth; + o.ebsPerformanceMaximumIops = ebsPerformanceMaximumIops; + o.ebsPerformanceMaximumThroughput = ebsPerformanceMaximumThroughput; + o.efaSupported = efaSupported; + o.enaSupport = enaSupport; + o.encryptionInTransitSupported = encryptionInTransitSupported; + o.fpgas = fpgas; + o.freeTierEligible = freeTierEligible; + o.gpuses = gpuses; + o.hibernationSupported = hibernationSupported; + o.hypervisor = hypervisor; + o.id = id; + o.inferenceAccelerators = inferenceAccelerators; + o.instanceDisks = instanceDisks; + o.instanceStorageSupported = instanceStorageSupported; + o.instanceType = instanceType; + o.ipv6Supported = ipv6Supported; + o.maximumIpv4AddressesPerInterface = maximumIpv4AddressesPerInterface; + o.maximumIpv6AddressesPerInterface = maximumIpv6AddressesPerInterface; + o.maximumNetworkInterfaces = maximumNetworkInterfaces; + o.memorySize = memorySize; + o.networkPerformance = networkPerformance; + o.supportedArchitectures = supportedArchitectures; + o.supportedPlacementStrategies = supportedPlacementStrategies; + o.supportedRootDeviceTypes = supportedRootDeviceTypes; + o.supportedUsagesClasses = supportedUsagesClasses; + o.supportedVirtualizationTypes = supportedVirtualizationTypes; + o.sustainedClockSpeed = sustainedClockSpeed; + o.totalFpgaMemory = totalFpgaMemory; + o.totalGpuMemory = totalGpuMemory; + o.totalInstanceStorage = totalInstanceStorage; + o.validCores = validCores; + o.validThreadsPerCores = validThreadsPerCores; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypesFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypesFilter.java index e0bfcc8f33a..9f7170c00ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypesFilter.java @@ -14,21 +14,14 @@ public final class GetInstanceTypesFilter { * @return Name of the filter. * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetInstanceTypesFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetInstanceTypesFilter() {} /** * @return Name of the filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetInstanceTypesFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypesFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetInstanceTypesFilter build() { - return new GetInstanceTypesFilter(name, values); + } + public GetInstanceTypesFilter build() { + final var o = new GetInstanceTypesFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypesResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypesResult.java index 3f1616d10e7..a703812a444 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstanceTypesResult.java @@ -12,28 +12,19 @@ @CustomType public final class GetInstanceTypesResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return List of EC2 Instance Types. * */ - private final List instanceTypes; - - @CustomType.Constructor - private GetInstanceTypesResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceTypes") List instanceTypes) { - this.filters = filters; - this.id = id; - this.instanceTypes = instanceTypes; - } + private List instanceTypes; + private GetInstanceTypesResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(GetInstanceTypesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List instanceTypes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypesResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -76,6 +63,7 @@ public Builder(GetInstanceTypesResult defaults) { this.instanceTypes = defaults.instanceTypes; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -83,18 +71,25 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetInstanceTypesFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceTypes(List instanceTypes) { this.instanceTypes = Objects.requireNonNull(instanceTypes); return this; } public Builder instanceTypes(String... instanceTypes) { return instanceTypes(List.of(instanceTypes)); - } public GetInstanceTypesResult build() { - return new GetInstanceTypesResult(filters, id, instanceTypes); + } + public GetInstanceTypesResult build() { + final var o = new GetInstanceTypesResult(); + o.filters = filters; + o.id = id; + o.instanceTypes = instanceTypes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstancesFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstancesFilter.java index 73f715e6f92..d34d6e8355a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstancesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstancesFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetInstancesFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetInstancesFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetInstancesFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetInstancesFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstancesFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetInstancesFilter build() { - return new GetInstancesFilter(name, values); + } + public GetInstancesFilter build() { + final var o = new GetInstancesFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstancesResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstancesResult.java index 54abb4c4e77..92e314a64db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstancesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInstancesResult.java @@ -13,48 +13,31 @@ @CustomType public final class GetInstancesResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return IDs of instances found through the filter * */ - private final List ids; - private final @Nullable List instanceStateNames; - private final Map instanceTags; + private List ids; + private @Nullable List instanceStateNames; + private Map instanceTags; /** * @return Private IP addresses of instances found through the filter * */ - private final List privateIps; + private List privateIps; /** * @return Public IP addresses of instances found through the filter * */ - private final List publicIps; - - @CustomType.Constructor - private GetInstancesResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("instanceStateNames") @Nullable List instanceStateNames, - @CustomType.Parameter("instanceTags") Map instanceTags, - @CustomType.Parameter("privateIps") List privateIps, - @CustomType.Parameter("publicIps") List publicIps) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.instanceStateNames = instanceStateNames; - this.instanceTags = instanceTags; - this.privateIps = privateIps; - this.publicIps = publicIps; - } + private List publicIps; + private GetInstancesResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -100,7 +83,7 @@ public static Builder builder() { public static Builder builder(GetInstancesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; @@ -109,11 +92,7 @@ public static final class Builder { private Map instanceTags; private List privateIps; private List publicIps; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstancesResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -125,6 +104,7 @@ public Builder(GetInstancesResult defaults) { this.publicIps = defaults.publicIps; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -132,10 +112,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetInstancesFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -143,6 +125,7 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder instanceStateNames(@Nullable List instanceStateNames) { this.instanceStateNames = instanceStateNames; return this; @@ -150,10 +133,12 @@ public Builder instanceStateNames(@Nullable List instanceStateNames) { public Builder instanceStateNames(String... instanceStateNames) { return instanceStateNames(List.of(instanceStateNames)); } + @CustomType.Setter public Builder instanceTags(Map instanceTags) { this.instanceTags = Objects.requireNonNull(instanceTags); return this; } + @CustomType.Setter public Builder privateIps(List privateIps) { this.privateIps = Objects.requireNonNull(privateIps); return this; @@ -161,14 +146,24 @@ public Builder privateIps(List privateIps) { public Builder privateIps(String... privateIps) { return privateIps(List.of(privateIps)); } + @CustomType.Setter public Builder publicIps(List publicIps) { this.publicIps = Objects.requireNonNull(publicIps); return this; } public Builder publicIps(String... publicIps) { return publicIps(List.of(publicIps)); - } public GetInstancesResult build() { - return new GetInstancesResult(filters, id, ids, instanceStateNames, instanceTags, privateIps, publicIps); + } + public GetInstancesResult build() { + final var o = new GetInstancesResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.instanceStateNames = instanceStateNames; + o.instanceTags = instanceTags; + o.privateIps = privateIps; + o.publicIps = publicIps; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInternetGatewayAttachment.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInternetGatewayAttachment.java index b6ed0bd7503..3b353e60c30 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInternetGatewayAttachment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInternetGatewayAttachment.java @@ -13,21 +13,14 @@ public final class GetInternetGatewayAttachment { * @return The current state of the attachment between the gateway and the VPC. Present only if a VPC is attached * */ - private final String state; + private String state; /** * @return The ID of an attached VPC. * */ - private final String vpcId; - - @CustomType.Constructor - private GetInternetGatewayAttachment( - @CustomType.Parameter("state") String state, - @CustomType.Parameter("vpcId") String vpcId) { - this.state = state; - this.vpcId = vpcId; - } + private String vpcId; + private GetInternetGatewayAttachment() {} /** * @return The current state of the attachment between the gateway and the VPC. Present only if a VPC is attached * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetInternetGatewayAttachment defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String state; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInternetGatewayAttachment defaults) { Objects.requireNonNull(defaults); this.state = defaults.state; this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetInternetGatewayAttachment build() { - return new GetInternetGatewayAttachment(state, vpcId); + } + public GetInternetGatewayAttachment build() { + final var o = new GetInternetGatewayAttachment(); + o.state = state; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInternetGatewayFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInternetGatewayFilter.java index e3499183ed6..e310f4bc975 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInternetGatewayFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInternetGatewayFilter.java @@ -15,22 +15,15 @@ public final class GetInternetGatewayFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInternetGateways.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * An Internet Gateway will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetInternetGatewayFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetInternetGatewayFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInternetGateways.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetInternetGatewayFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInternetGatewayFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetInternetGatewayFilter build() { - return new GetInternetGatewayFilter(name, values); + } + public GetInternetGatewayFilter build() { + final var o = new GetInternetGatewayFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInternetGatewayResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInternetGatewayResult.java index 00fe93b4601..90971acabce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInternetGatewayResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetInternetGatewayResult.java @@ -18,40 +18,23 @@ public final class GetInternetGatewayResult { * @return The ARN of the Internet Gateway. * */ - private final String arn; - private final List attachments; - private final @Nullable List filters; + private String arn; + private List attachments; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String internetGatewayId; + private String id; + private String internetGatewayId; /** * @return The ID of the AWS account that owns the internet gateway. * */ - private final String ownerId; - private final Map tags; - - @CustomType.Constructor - private GetInternetGatewayResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("attachments") List attachments, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("internetGatewayId") String internetGatewayId, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.attachments = attachments; - this.filters = filters; - this.id = id; - this.internetGatewayId = internetGatewayId; - this.ownerId = ownerId; - this.tags = tags; - } + private String ownerId; + private Map tags; + private GetInternetGatewayResult() {} /** * @return The ARN of the Internet Gateway. * @@ -93,7 +76,7 @@ public static Builder builder() { public static Builder builder(GetInternetGatewayResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List attachments; @@ -102,11 +85,7 @@ public static final class Builder { private String internetGatewayId; private String ownerId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInternetGatewayResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -118,10 +97,12 @@ public Builder(GetInternetGatewayResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder attachments(List attachments) { this.attachments = Objects.requireNonNull(attachments); return this; @@ -129,6 +110,7 @@ public Builder attachments(List attachments) { public Builder attachments(GetInternetGatewayAttachment... attachments) { return attachments(List.of(attachments)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -136,23 +118,36 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetInternetGatewayFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder internetGatewayId(String internetGatewayId) { this.internetGatewayId = Objects.requireNonNull(internetGatewayId); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetInternetGatewayResult build() { - return new GetInternetGatewayResult(arn, attachments, filters, id, internetGatewayId, ownerId, tags); + } + public GetInternetGatewayResult build() { + final var o = new GetInternetGatewayResult(); + o.arn = arn; + o.attachments = attachments; + o.filters = filters; + o.id = id; + o.internetGatewayId = internetGatewayId; + o.ownerId = ownerId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetIpamPreviewNextCidrResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetIpamPreviewNextCidrResult.java index 3fac22b348a..afd4bfe40cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetIpamPreviewNextCidrResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetIpamPreviewNextCidrResult.java @@ -17,30 +17,17 @@ public final class GetIpamPreviewNextCidrResult { * @return The previewed CIDR from the pool. * */ - private final String cidr; - private final @Nullable List disallowedCidrs; + private String cidr; + private @Nullable List disallowedCidrs; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String ipamPoolId; - private final @Nullable Integer netmaskLength; - - @CustomType.Constructor - private GetIpamPreviewNextCidrResult( - @CustomType.Parameter("cidr") String cidr, - @CustomType.Parameter("disallowedCidrs") @Nullable List disallowedCidrs, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ipamPoolId") String ipamPoolId, - @CustomType.Parameter("netmaskLength") @Nullable Integer netmaskLength) { - this.cidr = cidr; - this.disallowedCidrs = disallowedCidrs; - this.id = id; - this.ipamPoolId = ipamPoolId; - this.netmaskLength = netmaskLength; - } + private String id; + private String ipamPoolId; + private @Nullable Integer netmaskLength; + private GetIpamPreviewNextCidrResult() {} /** * @return The previewed CIDR from the pool. * @@ -72,18 +59,14 @@ public static Builder builder() { public static Builder builder(GetIpamPreviewNextCidrResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cidr; private @Nullable List disallowedCidrs; private String id; private String ipamPoolId; private @Nullable Integer netmaskLength; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIpamPreviewNextCidrResult defaults) { Objects.requireNonNull(defaults); this.cidr = defaults.cidr; @@ -93,10 +76,12 @@ public Builder(GetIpamPreviewNextCidrResult defaults) { this.netmaskLength = defaults.netmaskLength; } + @CustomType.Setter public Builder cidr(String cidr) { this.cidr = Objects.requireNonNull(cidr); return this; } + @CustomType.Setter public Builder disallowedCidrs(@Nullable List disallowedCidrs) { this.disallowedCidrs = disallowedCidrs; return this; @@ -104,19 +89,29 @@ public Builder disallowedCidrs(@Nullable List disallowedCidrs) { public Builder disallowedCidrs(String... disallowedCidrs) { return disallowedCidrs(List.of(disallowedCidrs)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ipamPoolId(String ipamPoolId) { this.ipamPoolId = Objects.requireNonNull(ipamPoolId); return this; } + @CustomType.Setter public Builder netmaskLength(@Nullable Integer netmaskLength) { this.netmaskLength = netmaskLength; return this; - } public GetIpamPreviewNextCidrResult build() { - return new GetIpamPreviewNextCidrResult(cidr, disallowedCidrs, id, ipamPoolId, netmaskLength); + } + public GetIpamPreviewNextCidrResult build() { + final var o = new GetIpamPreviewNextCidrResult(); + o.cidr = cidr; + o.disallowedCidrs = disallowedCidrs; + o.id = id; + o.ipamPoolId = ipamPoolId; + o.netmaskLength = netmaskLength; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetKeyPairFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetKeyPairFilter.java index 30fe5ae34e4..bdef6bd9536 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetKeyPairFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetKeyPairFilter.java @@ -14,21 +14,14 @@ public final class GetKeyPairFilter { * @return The name of the filter field. Valid values can be found in the [EC2 DescribeKeyPairs API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeKeyPairs.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetKeyPairFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetKeyPairFilter() {} /** * @return The name of the filter field. Valid values can be found in the [EC2 DescribeKeyPairs API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeKeyPairs.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetKeyPairFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetKeyPairFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetKeyPairFilter build() { - return new GetKeyPairFilter(name, values); + } + public GetKeyPairFilter build() { + final var o = new GetKeyPairFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetKeyPairResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetKeyPairResult.java index f5dc0fcb9f2..2624e3c40bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetKeyPairResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetKeyPairResult.java @@ -19,68 +19,43 @@ public final class GetKeyPairResult { * @return The ARN of the Key Pair. * */ - private final String arn; + private String arn; /** * @return The timestamp for when the key pair was created in ISO 8601 format. * */ - private final String createTime; - private final @Nullable List filters; + private String createTime; + private @Nullable List filters; /** * @return The SHA-1 digest of the DER encoded private key. * */ - private final String fingerprint; + private String fingerprint; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable Boolean includePublicKey; - private final @Nullable String keyName; - private final @Nullable String keyPairId; + private String id; + private @Nullable Boolean includePublicKey; + private @Nullable String keyName; + private @Nullable String keyPairId; /** * @return The type of key pair. * */ - private final String keyType; + private String keyType; /** * @return The public key material. * */ - private final String publicKey; + private String publicKey; /** * @return Any tags assigned to the Key Pair. * */ - private final Map tags; - - @CustomType.Constructor - private GetKeyPairResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createTime") String createTime, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("fingerprint") String fingerprint, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("includePublicKey") @Nullable Boolean includePublicKey, - @CustomType.Parameter("keyName") @Nullable String keyName, - @CustomType.Parameter("keyPairId") @Nullable String keyPairId, - @CustomType.Parameter("keyType") String keyType, - @CustomType.Parameter("publicKey") String publicKey, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.createTime = createTime; - this.filters = filters; - this.fingerprint = fingerprint; - this.id = id; - this.includePublicKey = includePublicKey; - this.keyName = keyName; - this.keyPairId = keyPairId; - this.keyType = keyType; - this.publicKey = publicKey; - this.tags = tags; - } + private Map tags; + private GetKeyPairResult() {} /** * @return The ARN of the Key Pair. * @@ -150,7 +125,7 @@ public static Builder builder() { public static Builder builder(GetKeyPairResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String createTime; @@ -163,11 +138,7 @@ public static final class Builder { private String keyType; private String publicKey; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetKeyPairResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -183,14 +154,17 @@ public Builder(GetKeyPairResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createTime(String createTime) { this.createTime = Objects.requireNonNull(createTime); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -198,39 +172,60 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetKeyPairFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder fingerprint(String fingerprint) { this.fingerprint = Objects.requireNonNull(fingerprint); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder includePublicKey(@Nullable Boolean includePublicKey) { this.includePublicKey = includePublicKey; return this; } + @CustomType.Setter public Builder keyName(@Nullable String keyName) { this.keyName = keyName; return this; } + @CustomType.Setter public Builder keyPairId(@Nullable String keyPairId) { this.keyPairId = keyPairId; return this; } + @CustomType.Setter public Builder keyType(String keyType) { this.keyType = Objects.requireNonNull(keyType); return this; } + @CustomType.Setter public Builder publicKey(String publicKey) { this.publicKey = Objects.requireNonNull(publicKey); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetKeyPairResult build() { - return new GetKeyPairResult(arn, createTime, filters, fingerprint, id, includePublicKey, keyName, keyPairId, keyType, publicKey, tags); + } + public GetKeyPairResult build() { + final var o = new GetKeyPairResult(); + o.arn = arn; + o.createTime = createTime; + o.filters = filters; + o.fingerprint = fingerprint; + o.id = id; + o.includePublicKey = includePublicKey; + o.keyName = keyName; + o.keyPairId = keyPairId; + o.keyType = keyType; + o.publicKey = publicKey; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationEbsBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationEbsBlockDevice.java index 18a948285a1..b6a669912ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationEbsBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationEbsBlockDevice.java @@ -15,70 +15,49 @@ public final class GetLaunchConfigurationEbsBlockDevice { * @return Whether the EBS Volume will be deleted on instance termination. * */ - private final Boolean deleteOnTermination; + private Boolean deleteOnTermination; /** * @return The Name of the device. * */ - private final String deviceName; + private String deviceName; /** * @return Whether the volume is Encrypted. * */ - private final Boolean encrypted; + private Boolean encrypted; /** * @return The provisioned IOPs of the volume. * */ - private final Integer iops; + private Integer iops; /** * @return Whether the device in the block device mapping of the AMI is suppressed. * */ - private final Boolean noDevice; + private Boolean noDevice; /** * @return The Snapshot ID of the mount. * */ - private final String snapshotId; + private String snapshotId; /** * @return The Throughput of the volume. * */ - private final Integer throughput; + private Integer throughput; /** * @return The Size of the volume. * */ - private final Integer volumeSize; + private Integer volumeSize; /** * @return The Type of the volume. * */ - private final String volumeType; - - @CustomType.Constructor - private GetLaunchConfigurationEbsBlockDevice( - @CustomType.Parameter("deleteOnTermination") Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("iops") Integer iops, - @CustomType.Parameter("noDevice") Boolean noDevice, - @CustomType.Parameter("snapshotId") String snapshotId, - @CustomType.Parameter("throughput") Integer throughput, - @CustomType.Parameter("volumeSize") Integer volumeSize, - @CustomType.Parameter("volumeType") String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.encrypted = encrypted; - this.iops = iops; - this.noDevice = noDevice; - this.snapshotId = snapshotId; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private String volumeType; + private GetLaunchConfigurationEbsBlockDevice() {} /** * @return Whether the EBS Volume will be deleted on instance termination. * @@ -150,7 +129,7 @@ public static Builder builder() { public static Builder builder(GetLaunchConfigurationEbsBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean deleteOnTermination; private String deviceName; @@ -161,11 +140,7 @@ public static final class Builder { private Integer throughput; private Integer volumeSize; private String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchConfigurationEbsBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -179,43 +154,63 @@ public Builder(GetLaunchConfigurationEbsBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(Boolean deleteOnTermination) { this.deleteOnTermination = Objects.requireNonNull(deleteOnTermination); return this; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder iops(Integer iops) { this.iops = Objects.requireNonNull(iops); return this; } + @CustomType.Setter public Builder noDevice(Boolean noDevice) { this.noDevice = Objects.requireNonNull(noDevice); return this; } + @CustomType.Setter public Builder snapshotId(String snapshotId) { this.snapshotId = Objects.requireNonNull(snapshotId); return this; } + @CustomType.Setter public Builder throughput(Integer throughput) { this.throughput = Objects.requireNonNull(throughput); return this; } + @CustomType.Setter public Builder volumeSize(Integer volumeSize) { this.volumeSize = Objects.requireNonNull(volumeSize); return this; } + @CustomType.Setter public Builder volumeType(String volumeType) { this.volumeType = Objects.requireNonNull(volumeType); return this; - } public GetLaunchConfigurationEbsBlockDevice build() { - return new GetLaunchConfigurationEbsBlockDevice(deleteOnTermination, deviceName, encrypted, iops, noDevice, snapshotId, throughput, volumeSize, volumeType); + } + public GetLaunchConfigurationEbsBlockDevice build() { + final var o = new GetLaunchConfigurationEbsBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.encrypted = encrypted; + o.iops = iops; + o.noDevice = noDevice; + o.snapshotId = snapshotId; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationEphemeralBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationEphemeralBlockDevice.java index 01e59218715..671464f7bac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationEphemeralBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationEphemeralBlockDevice.java @@ -13,21 +13,14 @@ public final class GetLaunchConfigurationEphemeralBlockDevice { * @return The Name of the device. * */ - private final String deviceName; + private String deviceName; /** * @return The Virtual Name of the device. * */ - private final String virtualName; - - @CustomType.Constructor - private GetLaunchConfigurationEphemeralBlockDevice( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("virtualName") String virtualName) { - this.deviceName = deviceName; - this.virtualName = virtualName; - } + private String virtualName; + private GetLaunchConfigurationEphemeralBlockDevice() {} /** * @return The Name of the device. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetLaunchConfigurationEphemeralBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchConfigurationEphemeralBlockDevice defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder virtualName(String virtualName) { this.virtualName = Objects.requireNonNull(virtualName); return this; - } public GetLaunchConfigurationEphemeralBlockDevice build() { - return new GetLaunchConfigurationEphemeralBlockDevice(deviceName, virtualName); + } + public GetLaunchConfigurationEphemeralBlockDevice build() { + final var o = new GetLaunchConfigurationEphemeralBlockDevice(); + o.deviceName = deviceName; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationMetadataOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationMetadataOption.java index 808ac459849..3643654819d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationMetadataOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationMetadataOption.java @@ -14,28 +14,19 @@ public final class GetLaunchConfigurationMetadataOption { * @return The state of the metadata service: `enabled`, `disabled`. * */ - private final String httpEndpoint; + private String httpEndpoint; /** * @return The desired HTTP PUT response hop limit for instance metadata requests. * */ - private final Integer httpPutResponseHopLimit; + private Integer httpPutResponseHopLimit; /** * @return If session tokens are required: `optional`, `required`. * */ - private final String httpTokens; - - @CustomType.Constructor - private GetLaunchConfigurationMetadataOption( - @CustomType.Parameter("httpEndpoint") String httpEndpoint, - @CustomType.Parameter("httpPutResponseHopLimit") Integer httpPutResponseHopLimit, - @CustomType.Parameter("httpTokens") String httpTokens) { - this.httpEndpoint = httpEndpoint; - this.httpPutResponseHopLimit = httpPutResponseHopLimit; - this.httpTokens = httpTokens; - } + private String httpTokens; + private GetLaunchConfigurationMetadataOption() {} /** * @return The state of the metadata service: `enabled`, `disabled`. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetLaunchConfigurationMetadataOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String httpEndpoint; private Integer httpPutResponseHopLimit; private String httpTokens; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchConfigurationMetadataOption defaults) { Objects.requireNonNull(defaults); this.httpEndpoint = defaults.httpEndpoint; @@ -82,19 +69,27 @@ public Builder(GetLaunchConfigurationMetadataOption defaults) { this.httpTokens = defaults.httpTokens; } + @CustomType.Setter public Builder httpEndpoint(String httpEndpoint) { this.httpEndpoint = Objects.requireNonNull(httpEndpoint); return this; } + @CustomType.Setter public Builder httpPutResponseHopLimit(Integer httpPutResponseHopLimit) { this.httpPutResponseHopLimit = Objects.requireNonNull(httpPutResponseHopLimit); return this; } + @CustomType.Setter public Builder httpTokens(String httpTokens) { this.httpTokens = Objects.requireNonNull(httpTokens); return this; - } public GetLaunchConfigurationMetadataOption build() { - return new GetLaunchConfigurationMetadataOption(httpEndpoint, httpPutResponseHopLimit, httpTokens); + } + public GetLaunchConfigurationMetadataOption build() { + final var o = new GetLaunchConfigurationMetadataOption(); + o.httpEndpoint = httpEndpoint; + o.httpPutResponseHopLimit = httpPutResponseHopLimit; + o.httpTokens = httpTokens; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationResult.java index b150002e5cc..072dcfdc5f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationResult.java @@ -19,147 +19,104 @@ public final class GetLaunchConfigurationResult { * @return The Amazon Resource Name of the launch configuration. * */ - private final String arn; + private String arn; /** * @return Whether a Public IP address is associated with the instance. * */ - private final Boolean associatePublicIpAddress; + private Boolean associatePublicIpAddress; /** * @return The EBS Block Devices attached to the instance. * */ - private final List ebsBlockDevices; + private List ebsBlockDevices; /** * @return Whether the launched EC2 instance will be EBS-optimized. * */ - private final Boolean ebsOptimized; + private Boolean ebsOptimized; /** * @return Whether Detailed Monitoring is Enabled. * */ - private final Boolean enableMonitoring; + private Boolean enableMonitoring; /** * @return The Ephemeral volumes on the instance. * */ - private final List ephemeralBlockDevices; + private List ephemeralBlockDevices; /** * @return The IAM Instance Profile to associate with launched instances. * */ - private final String iamInstanceProfile; + private String iamInstanceProfile; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The EC2 Image ID of the instance. * */ - private final String imageId; + private String imageId; /** * @return The Instance Type of the instance to launch. * */ - private final String instanceType; + private String instanceType; /** * @return The Key Name that should be used for the instance. * */ - private final String keyName; + private String keyName; /** * @return The metadata options for the instance. * */ - private final List metadataOptions; + private List metadataOptions; /** * @return The Name of the launch configuration. * */ - private final String name; + private String name; /** * @return The Tenancy of the instance. * */ - private final String placementTenancy; + private String placementTenancy; /** * @return The Root Block Device of the instance. * */ - private final List rootBlockDevices; + private List rootBlockDevices; /** * @return A list of associated Security Group IDS. * */ - private final List securityGroups; + private List securityGroups; /** * @return The Price to use for reserving Spot instances. * */ - private final String spotPrice; + private String spotPrice; /** * @return The User Data of the instance. * */ - private final String userData; + private String userData; /** * @return The ID of a ClassicLink-enabled VPC. * */ - private final String vpcClassicLinkId; + private String vpcClassicLinkId; /** * @return The IDs of one or more Security Groups for the specified ClassicLink-enabled VPC. * */ - private final List vpcClassicLinkSecurityGroups; - - @CustomType.Constructor - private GetLaunchConfigurationResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("associatePublicIpAddress") Boolean associatePublicIpAddress, - @CustomType.Parameter("ebsBlockDevices") List ebsBlockDevices, - @CustomType.Parameter("ebsOptimized") Boolean ebsOptimized, - @CustomType.Parameter("enableMonitoring") Boolean enableMonitoring, - @CustomType.Parameter("ephemeralBlockDevices") List ephemeralBlockDevices, - @CustomType.Parameter("iamInstanceProfile") String iamInstanceProfile, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("imageId") String imageId, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("keyName") String keyName, - @CustomType.Parameter("metadataOptions") List metadataOptions, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("placementTenancy") String placementTenancy, - @CustomType.Parameter("rootBlockDevices") List rootBlockDevices, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("spotPrice") String spotPrice, - @CustomType.Parameter("userData") String userData, - @CustomType.Parameter("vpcClassicLinkId") String vpcClassicLinkId, - @CustomType.Parameter("vpcClassicLinkSecurityGroups") List vpcClassicLinkSecurityGroups) { - this.arn = arn; - this.associatePublicIpAddress = associatePublicIpAddress; - this.ebsBlockDevices = ebsBlockDevices; - this.ebsOptimized = ebsOptimized; - this.enableMonitoring = enableMonitoring; - this.ephemeralBlockDevices = ephemeralBlockDevices; - this.iamInstanceProfile = iamInstanceProfile; - this.id = id; - this.imageId = imageId; - this.instanceType = instanceType; - this.keyName = keyName; - this.metadataOptions = metadataOptions; - this.name = name; - this.placementTenancy = placementTenancy; - this.rootBlockDevices = rootBlockDevices; - this.securityGroups = securityGroups; - this.spotPrice = spotPrice; - this.userData = userData; - this.vpcClassicLinkId = vpcClassicLinkId; - this.vpcClassicLinkSecurityGroups = vpcClassicLinkSecurityGroups; - } + private List vpcClassicLinkSecurityGroups; + private GetLaunchConfigurationResult() {} /** * @return The Amazon Resource Name of the launch configuration. * @@ -308,7 +265,7 @@ public static Builder builder() { public static Builder builder(GetLaunchConfigurationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Boolean associatePublicIpAddress; @@ -330,11 +287,7 @@ public static final class Builder { private String userData; private String vpcClassicLinkId; private List vpcClassicLinkSecurityGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchConfigurationResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -359,14 +312,17 @@ public Builder(GetLaunchConfigurationResult defaults) { this.vpcClassicLinkSecurityGroups = defaults.vpcClassicLinkSecurityGroups; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder associatePublicIpAddress(Boolean associatePublicIpAddress) { this.associatePublicIpAddress = Objects.requireNonNull(associatePublicIpAddress); return this; } + @CustomType.Setter public Builder ebsBlockDevices(List ebsBlockDevices) { this.ebsBlockDevices = Objects.requireNonNull(ebsBlockDevices); return this; @@ -374,14 +330,17 @@ public Builder ebsBlockDevices(List ebsBlo public Builder ebsBlockDevices(GetLaunchConfigurationEbsBlockDevice... ebsBlockDevices) { return ebsBlockDevices(List.of(ebsBlockDevices)); } + @CustomType.Setter public Builder ebsOptimized(Boolean ebsOptimized) { this.ebsOptimized = Objects.requireNonNull(ebsOptimized); return this; } + @CustomType.Setter public Builder enableMonitoring(Boolean enableMonitoring) { this.enableMonitoring = Objects.requireNonNull(enableMonitoring); return this; } + @CustomType.Setter public Builder ephemeralBlockDevices(List ephemeralBlockDevices) { this.ephemeralBlockDevices = Objects.requireNonNull(ephemeralBlockDevices); return this; @@ -389,26 +348,32 @@ public Builder ephemeralBlockDevices(List metadataOptions) { this.metadataOptions = Objects.requireNonNull(metadataOptions); return this; @@ -416,14 +381,17 @@ public Builder metadataOptions(List metada public Builder metadataOptions(GetLaunchConfigurationMetadataOption... metadataOptions) { return metadataOptions(List.of(metadataOptions)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder placementTenancy(String placementTenancy) { this.placementTenancy = Objects.requireNonNull(placementTenancy); return this; } + @CustomType.Setter public Builder rootBlockDevices(List rootBlockDevices) { this.rootBlockDevices = Objects.requireNonNull(rootBlockDevices); return this; @@ -431,6 +399,7 @@ public Builder rootBlockDevices(List root public Builder rootBlockDevices(GetLaunchConfigurationRootBlockDevice... rootBlockDevices) { return rootBlockDevices(List.of(rootBlockDevices)); } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -438,26 +407,52 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder spotPrice(String spotPrice) { this.spotPrice = Objects.requireNonNull(spotPrice); return this; } + @CustomType.Setter public Builder userData(String userData) { this.userData = Objects.requireNonNull(userData); return this; } + @CustomType.Setter public Builder vpcClassicLinkId(String vpcClassicLinkId) { this.vpcClassicLinkId = Objects.requireNonNull(vpcClassicLinkId); return this; } + @CustomType.Setter public Builder vpcClassicLinkSecurityGroups(List vpcClassicLinkSecurityGroups) { this.vpcClassicLinkSecurityGroups = Objects.requireNonNull(vpcClassicLinkSecurityGroups); return this; } public Builder vpcClassicLinkSecurityGroups(String... vpcClassicLinkSecurityGroups) { return vpcClassicLinkSecurityGroups(List.of(vpcClassicLinkSecurityGroups)); - } public GetLaunchConfigurationResult build() { - return new GetLaunchConfigurationResult(arn, associatePublicIpAddress, ebsBlockDevices, ebsOptimized, enableMonitoring, ephemeralBlockDevices, iamInstanceProfile, id, imageId, instanceType, keyName, metadataOptions, name, placementTenancy, rootBlockDevices, securityGroups, spotPrice, userData, vpcClassicLinkId, vpcClassicLinkSecurityGroups); + } + public GetLaunchConfigurationResult build() { + final var o = new GetLaunchConfigurationResult(); + o.arn = arn; + o.associatePublicIpAddress = associatePublicIpAddress; + o.ebsBlockDevices = ebsBlockDevices; + o.ebsOptimized = ebsOptimized; + o.enableMonitoring = enableMonitoring; + o.ephemeralBlockDevices = ephemeralBlockDevices; + o.iamInstanceProfile = iamInstanceProfile; + o.id = id; + o.imageId = imageId; + o.instanceType = instanceType; + o.keyName = keyName; + o.metadataOptions = metadataOptions; + o.name = name; + o.placementTenancy = placementTenancy; + o.rootBlockDevices = rootBlockDevices; + o.securityGroups = securityGroups; + o.spotPrice = spotPrice; + o.userData = userData; + o.vpcClassicLinkId = vpcClassicLinkId; + o.vpcClassicLinkSecurityGroups = vpcClassicLinkSecurityGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationRootBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationRootBlockDevice.java index f8a34089a2d..452d80209db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationRootBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchConfigurationRootBlockDevice.java @@ -15,49 +15,34 @@ public final class GetLaunchConfigurationRootBlockDevice { * @return Whether the EBS Volume will be deleted on instance termination. * */ - private final Boolean deleteOnTermination; + private Boolean deleteOnTermination; /** * @return Whether the volume is Encrypted. * */ - private final Boolean encrypted; + private Boolean encrypted; /** * @return The provisioned IOPs of the volume. * */ - private final Integer iops; + private Integer iops; /** * @return The Throughput of the volume. * */ - private final Integer throughput; + private Integer throughput; /** * @return The Size of the volume. * */ - private final Integer volumeSize; + private Integer volumeSize; /** * @return The Type of the volume. * */ - private final String volumeType; - - @CustomType.Constructor - private GetLaunchConfigurationRootBlockDevice( - @CustomType.Parameter("deleteOnTermination") Boolean deleteOnTermination, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("iops") Integer iops, - @CustomType.Parameter("throughput") Integer throughput, - @CustomType.Parameter("volumeSize") Integer volumeSize, - @CustomType.Parameter("volumeType") String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.encrypted = encrypted; - this.iops = iops; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private String volumeType; + private GetLaunchConfigurationRootBlockDevice() {} /** * @return Whether the EBS Volume will be deleted on instance termination. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(GetLaunchConfigurationRootBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean deleteOnTermination; private Boolean encrypted; @@ -116,11 +101,7 @@ public static final class Builder { private Integer throughput; private Integer volumeSize; private String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchConfigurationRootBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -131,31 +112,45 @@ public Builder(GetLaunchConfigurationRootBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(Boolean deleteOnTermination) { this.deleteOnTermination = Objects.requireNonNull(deleteOnTermination); return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder iops(Integer iops) { this.iops = Objects.requireNonNull(iops); return this; } + @CustomType.Setter public Builder throughput(Integer throughput) { this.throughput = Objects.requireNonNull(throughput); return this; } + @CustomType.Setter public Builder volumeSize(Integer volumeSize) { this.volumeSize = Objects.requireNonNull(volumeSize); return this; } + @CustomType.Setter public Builder volumeType(String volumeType) { this.volumeType = Objects.requireNonNull(volumeType); return this; - } public GetLaunchConfigurationRootBlockDevice build() { - return new GetLaunchConfigurationRootBlockDevice(deleteOnTermination, encrypted, iops, throughput, volumeSize, volumeType); + } + public GetLaunchConfigurationRootBlockDevice build() { + final var o = new GetLaunchConfigurationRootBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.encrypted = encrypted; + o.iops = iops; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateBlockDeviceMapping.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateBlockDeviceMapping.java index 8ca4a3d3a32..1363baf12a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateBlockDeviceMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateBlockDeviceMapping.java @@ -11,23 +11,12 @@ @CustomType public final class GetLaunchTemplateBlockDeviceMapping { - private final String deviceName; - private final List ebs; - private final String noDevice; - private final String virtualName; - - @CustomType.Constructor - private GetLaunchTemplateBlockDeviceMapping( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("ebs") List ebs, - @CustomType.Parameter("noDevice") String noDevice, - @CustomType.Parameter("virtualName") String virtualName) { - this.deviceName = deviceName; - this.ebs = ebs; - this.noDevice = noDevice; - this.virtualName = virtualName; - } + private String deviceName; + private List ebs; + private String noDevice; + private String virtualName; + private GetLaunchTemplateBlockDeviceMapping() {} public String deviceName() { return this.deviceName; } @@ -48,17 +37,13 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateBlockDeviceMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private List ebs; private String noDevice; private String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateBlockDeviceMapping defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; @@ -67,10 +52,12 @@ public Builder(GetLaunchTemplateBlockDeviceMapping defaults) { this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder ebs(List ebs) { this.ebs = Objects.requireNonNull(ebs); return this; @@ -78,15 +65,23 @@ public Builder ebs(List ebs) { public Builder ebs(GetLaunchTemplateBlockDeviceMappingEb... ebs) { return ebs(List.of(ebs)); } + @CustomType.Setter public Builder noDevice(String noDevice) { this.noDevice = Objects.requireNonNull(noDevice); return this; } + @CustomType.Setter public Builder virtualName(String virtualName) { this.virtualName = Objects.requireNonNull(virtualName); return this; - } public GetLaunchTemplateBlockDeviceMapping build() { - return new GetLaunchTemplateBlockDeviceMapping(deviceName, ebs, noDevice, virtualName); + } + public GetLaunchTemplateBlockDeviceMapping build() { + final var o = new GetLaunchTemplateBlockDeviceMapping(); + o.deviceName = deviceName; + o.ebs = ebs; + o.noDevice = noDevice; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateBlockDeviceMappingEb.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateBlockDeviceMappingEb.java index 14b85380d66..b8aa6486fe9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateBlockDeviceMappingEb.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateBlockDeviceMappingEb.java @@ -10,35 +10,16 @@ @CustomType public final class GetLaunchTemplateBlockDeviceMappingEb { - private final String deleteOnTermination; - private final String encrypted; - private final Integer iops; - private final String kmsKeyId; - private final String snapshotId; - private final Integer throughput; - private final Integer volumeSize; - private final String volumeType; - - @CustomType.Constructor - private GetLaunchTemplateBlockDeviceMappingEb( - @CustomType.Parameter("deleteOnTermination") String deleteOnTermination, - @CustomType.Parameter("encrypted") String encrypted, - @CustomType.Parameter("iops") Integer iops, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("snapshotId") String snapshotId, - @CustomType.Parameter("throughput") Integer throughput, - @CustomType.Parameter("volumeSize") Integer volumeSize, - @CustomType.Parameter("volumeType") String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.encrypted = encrypted; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.snapshotId = snapshotId; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private String deleteOnTermination; + private String encrypted; + private Integer iops; + private String kmsKeyId; + private String snapshotId; + private Integer throughput; + private Integer volumeSize; + private String volumeType; + private GetLaunchTemplateBlockDeviceMappingEb() {} public String deleteOnTermination() { return this.deleteOnTermination; } @@ -71,7 +52,7 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateBlockDeviceMappingEb defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deleteOnTermination; private String encrypted; @@ -81,11 +62,7 @@ public static final class Builder { private Integer throughput; private Integer volumeSize; private String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateBlockDeviceMappingEb defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -98,39 +75,57 @@ public Builder(GetLaunchTemplateBlockDeviceMappingEb defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(String deleteOnTermination) { this.deleteOnTermination = Objects.requireNonNull(deleteOnTermination); return this; } + @CustomType.Setter public Builder encrypted(String encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder iops(Integer iops) { this.iops = Objects.requireNonNull(iops); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder snapshotId(String snapshotId) { this.snapshotId = Objects.requireNonNull(snapshotId); return this; } + @CustomType.Setter public Builder throughput(Integer throughput) { this.throughput = Objects.requireNonNull(throughput); return this; } + @CustomType.Setter public Builder volumeSize(Integer volumeSize) { this.volumeSize = Objects.requireNonNull(volumeSize); return this; } + @CustomType.Setter public Builder volumeType(String volumeType) { this.volumeType = Objects.requireNonNull(volumeType); return this; - } public GetLaunchTemplateBlockDeviceMappingEb build() { - return new GetLaunchTemplateBlockDeviceMappingEb(deleteOnTermination, encrypted, iops, kmsKeyId, snapshotId, throughput, volumeSize, volumeType); + } + public GetLaunchTemplateBlockDeviceMappingEb build() { + final var o = new GetLaunchTemplateBlockDeviceMappingEb(); + o.deleteOnTermination = deleteOnTermination; + o.encrypted = encrypted; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.snapshotId = snapshotId; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCapacityReservationSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCapacityReservationSpecification.java index 91e855bb1f3..5cc59aeb230 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCapacityReservationSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCapacityReservationSpecification.java @@ -11,17 +11,10 @@ @CustomType public final class GetLaunchTemplateCapacityReservationSpecification { - private final String capacityReservationPreference; - private final List capacityReservationTargets; - - @CustomType.Constructor - private GetLaunchTemplateCapacityReservationSpecification( - @CustomType.Parameter("capacityReservationPreference") String capacityReservationPreference, - @CustomType.Parameter("capacityReservationTargets") List capacityReservationTargets) { - this.capacityReservationPreference = capacityReservationPreference; - this.capacityReservationTargets = capacityReservationTargets; - } + private String capacityReservationPreference; + private List capacityReservationTargets; + private GetLaunchTemplateCapacityReservationSpecification() {} public String capacityReservationPreference() { return this.capacityReservationPreference; } @@ -36,33 +29,35 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateCapacityReservationSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String capacityReservationPreference; private List capacityReservationTargets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateCapacityReservationSpecification defaults) { Objects.requireNonNull(defaults); this.capacityReservationPreference = defaults.capacityReservationPreference; this.capacityReservationTargets = defaults.capacityReservationTargets; } + @CustomType.Setter public Builder capacityReservationPreference(String capacityReservationPreference) { this.capacityReservationPreference = Objects.requireNonNull(capacityReservationPreference); return this; } + @CustomType.Setter public Builder capacityReservationTargets(List capacityReservationTargets) { this.capacityReservationTargets = Objects.requireNonNull(capacityReservationTargets); return this; } public Builder capacityReservationTargets(GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget... capacityReservationTargets) { return capacityReservationTargets(List.of(capacityReservationTargets)); - } public GetLaunchTemplateCapacityReservationSpecification build() { - return new GetLaunchTemplateCapacityReservationSpecification(capacityReservationPreference, capacityReservationTargets); + } + public GetLaunchTemplateCapacityReservationSpecification build() { + final var o = new GetLaunchTemplateCapacityReservationSpecification(); + o.capacityReservationPreference = capacityReservationPreference; + o.capacityReservationTargets = capacityReservationTargets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget.java index f904ec36759..510b1211337 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget.java @@ -9,17 +9,10 @@ @CustomType public final class GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget { - private final String capacityReservationId; - private final String capacityReservationResourceGroupArn; - - @CustomType.Constructor - private GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget( - @CustomType.Parameter("capacityReservationId") String capacityReservationId, - @CustomType.Parameter("capacityReservationResourceGroupArn") String capacityReservationResourceGroupArn) { - this.capacityReservationId = capacityReservationId; - this.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn; - } + private String capacityReservationId; + private String capacityReservationResourceGroupArn; + private GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget() {} public String capacityReservationId() { return this.capacityReservationId; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String capacityReservationId; private String capacityReservationResourceGroupArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget defaults) { Objects.requireNonNull(defaults); this.capacityReservationId = defaults.capacityReservationId; this.capacityReservationResourceGroupArn = defaults.capacityReservationResourceGroupArn; } + @CustomType.Setter public Builder capacityReservationId(String capacityReservationId) { this.capacityReservationId = Objects.requireNonNull(capacityReservationId); return this; } + @CustomType.Setter public Builder capacityReservationResourceGroupArn(String capacityReservationResourceGroupArn) { this.capacityReservationResourceGroupArn = Objects.requireNonNull(capacityReservationResourceGroupArn); return this; - } public GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget build() { - return new GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget(capacityReservationId, capacityReservationResourceGroupArn); + } + public GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget build() { + final var o = new GetLaunchTemplateCapacityReservationSpecificationCapacityReservationTarget(); + o.capacityReservationId = capacityReservationId; + o.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCpuOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCpuOption.java index 658dad09faa..3a77f1b517f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCpuOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCpuOption.java @@ -9,17 +9,10 @@ @CustomType public final class GetLaunchTemplateCpuOption { - private final Integer coreCount; - private final Integer threadsPerCore; - - @CustomType.Constructor - private GetLaunchTemplateCpuOption( - @CustomType.Parameter("coreCount") Integer coreCount, - @CustomType.Parameter("threadsPerCore") Integer threadsPerCore) { - this.coreCount = coreCount; - this.threadsPerCore = threadsPerCore; - } + private Integer coreCount; + private Integer threadsPerCore; + private GetLaunchTemplateCpuOption() {} public Integer coreCount() { return this.coreCount; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateCpuOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer coreCount; private Integer threadsPerCore; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateCpuOption defaults) { Objects.requireNonNull(defaults); this.coreCount = defaults.coreCount; this.threadsPerCore = defaults.threadsPerCore; } + @CustomType.Setter public Builder coreCount(Integer coreCount) { this.coreCount = Objects.requireNonNull(coreCount); return this; } + @CustomType.Setter public Builder threadsPerCore(Integer threadsPerCore) { this.threadsPerCore = Objects.requireNonNull(threadsPerCore); return this; - } public GetLaunchTemplateCpuOption build() { - return new GetLaunchTemplateCpuOption(coreCount, threadsPerCore); + } + public GetLaunchTemplateCpuOption build() { + final var o = new GetLaunchTemplateCpuOption(); + o.coreCount = coreCount; + o.threadsPerCore = threadsPerCore; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCreditSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCreditSpecification.java index 0337796d896..fe3057a6951 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCreditSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateCreditSpecification.java @@ -9,13 +9,9 @@ @CustomType public final class GetLaunchTemplateCreditSpecification { - private final String cpuCredits; - - @CustomType.Constructor - private GetLaunchTemplateCreditSpecification(@CustomType.Parameter("cpuCredits") String cpuCredits) { - this.cpuCredits = cpuCredits; - } + private String cpuCredits; + private GetLaunchTemplateCreditSpecification() {} public String cpuCredits() { return this.cpuCredits; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateCreditSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cpuCredits; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateCreditSpecification defaults) { Objects.requireNonNull(defaults); this.cpuCredits = defaults.cpuCredits; } + @CustomType.Setter public Builder cpuCredits(String cpuCredits) { this.cpuCredits = Objects.requireNonNull(cpuCredits); return this; - } public GetLaunchTemplateCreditSpecification build() { - return new GetLaunchTemplateCreditSpecification(cpuCredits); + } + public GetLaunchTemplateCreditSpecification build() { + final var o = new GetLaunchTemplateCreditSpecification(); + o.cpuCredits = cpuCredits; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateElasticGpuSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateElasticGpuSpecification.java index 035238542bd..7c264aecda3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateElasticGpuSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateElasticGpuSpecification.java @@ -9,13 +9,9 @@ @CustomType public final class GetLaunchTemplateElasticGpuSpecification { - private final String type; - - @CustomType.Constructor - private GetLaunchTemplateElasticGpuSpecification(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private GetLaunchTemplateElasticGpuSpecification() {} public String type() { return this.type; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateElasticGpuSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateElasticGpuSpecification defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetLaunchTemplateElasticGpuSpecification build() { - return new GetLaunchTemplateElasticGpuSpecification(type); + } + public GetLaunchTemplateElasticGpuSpecification build() { + final var o = new GetLaunchTemplateElasticGpuSpecification(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateElasticInferenceAccelerator.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateElasticInferenceAccelerator.java index 2a4867daacc..b9cd5162af2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateElasticInferenceAccelerator.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateElasticInferenceAccelerator.java @@ -9,13 +9,9 @@ @CustomType public final class GetLaunchTemplateElasticInferenceAccelerator { - private final String type; - - @CustomType.Constructor - private GetLaunchTemplateElasticInferenceAccelerator(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private GetLaunchTemplateElasticInferenceAccelerator() {} public String type() { return this.type; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateElasticInferenceAccelerator defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateElasticInferenceAccelerator defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetLaunchTemplateElasticInferenceAccelerator build() { - return new GetLaunchTemplateElasticInferenceAccelerator(type); + } + public GetLaunchTemplateElasticInferenceAccelerator build() { + final var o = new GetLaunchTemplateElasticInferenceAccelerator(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateEnclaveOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateEnclaveOption.java index ea6a9e455bb..497260ecdb4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateEnclaveOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateEnclaveOption.java @@ -9,13 +9,9 @@ @CustomType public final class GetLaunchTemplateEnclaveOption { - private final Boolean enabled; - - @CustomType.Constructor - private GetLaunchTemplateEnclaveOption(@CustomType.Parameter("enabled") Boolean enabled) { - this.enabled = enabled; - } + private Boolean enabled; + private GetLaunchTemplateEnclaveOption() {} public Boolean enabled() { return this.enabled; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateEnclaveOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateEnclaveOption defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public GetLaunchTemplateEnclaveOption build() { - return new GetLaunchTemplateEnclaveOption(enabled); + } + public GetLaunchTemplateEnclaveOption build() { + final var o = new GetLaunchTemplateEnclaveOption(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateFilter.java index 1113d243510..3630e24d395 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateFilter.java @@ -14,21 +14,14 @@ public final class GetLaunchTemplateFilter { * @return The name of the filter field. Valid values can be found in the [EC2 DescribeLaunchTemplates API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplates.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetLaunchTemplateFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetLaunchTemplateFilter() {} /** * @return The name of the filter field. Valid values can be found in the [EC2 DescribeLaunchTemplates API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplates.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetLaunchTemplateFilter build() { - return new GetLaunchTemplateFilter(name, values); + } + public GetLaunchTemplateFilter build() { + final var o = new GetLaunchTemplateFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateHibernationOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateHibernationOption.java index 82c97b3602b..c4af78d6c3d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateHibernationOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateHibernationOption.java @@ -9,13 +9,9 @@ @CustomType public final class GetLaunchTemplateHibernationOption { - private final Boolean configured; - - @CustomType.Constructor - private GetLaunchTemplateHibernationOption(@CustomType.Parameter("configured") Boolean configured) { - this.configured = configured; - } + private Boolean configured; + private GetLaunchTemplateHibernationOption() {} public Boolean configured() { return this.configured; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateHibernationOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean configured; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateHibernationOption defaults) { Objects.requireNonNull(defaults); this.configured = defaults.configured; } + @CustomType.Setter public Builder configured(Boolean configured) { this.configured = Objects.requireNonNull(configured); return this; - } public GetLaunchTemplateHibernationOption build() { - return new GetLaunchTemplateHibernationOption(configured); + } + public GetLaunchTemplateHibernationOption build() { + final var o = new GetLaunchTemplateHibernationOption(); + o.configured = configured; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateIamInstanceProfile.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateIamInstanceProfile.java index 47eb75aeb09..96d3e0fe238 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateIamInstanceProfile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateIamInstanceProfile.java @@ -9,21 +9,14 @@ @CustomType public final class GetLaunchTemplateIamInstanceProfile { - private final String arn; + private String arn; /** * @return The name of the filter field. Valid values can be found in the [EC2 DescribeLaunchTemplates API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplates.html). * */ - private final String name; - - @CustomType.Constructor - private GetLaunchTemplateIamInstanceProfile( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.name = name; - } + private String name; + private GetLaunchTemplateIamInstanceProfile() {} public String arn() { return this.arn; } @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateIamInstanceProfile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateIamInstanceProfile defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetLaunchTemplateIamInstanceProfile build() { - return new GetLaunchTemplateIamInstanceProfile(arn, name); + } + public GetLaunchTemplateIamInstanceProfile build() { + final var o = new GetLaunchTemplateIamInstanceProfile(); + o.arn = arn; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceMarketOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceMarketOption.java index 3f1407db5e9..dce1fadcef3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceMarketOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceMarketOption.java @@ -11,17 +11,10 @@ @CustomType public final class GetLaunchTemplateInstanceMarketOption { - private final String marketType; - private final List spotOptions; - - @CustomType.Constructor - private GetLaunchTemplateInstanceMarketOption( - @CustomType.Parameter("marketType") String marketType, - @CustomType.Parameter("spotOptions") List spotOptions) { - this.marketType = marketType; - this.spotOptions = spotOptions; - } + private String marketType; + private List spotOptions; + private GetLaunchTemplateInstanceMarketOption() {} public String marketType() { return this.marketType; } @@ -36,33 +29,35 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateInstanceMarketOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String marketType; private List spotOptions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateInstanceMarketOption defaults) { Objects.requireNonNull(defaults); this.marketType = defaults.marketType; this.spotOptions = defaults.spotOptions; } + @CustomType.Setter public Builder marketType(String marketType) { this.marketType = Objects.requireNonNull(marketType); return this; } + @CustomType.Setter public Builder spotOptions(List spotOptions) { this.spotOptions = Objects.requireNonNull(spotOptions); return this; } public Builder spotOptions(GetLaunchTemplateInstanceMarketOptionSpotOption... spotOptions) { return spotOptions(List.of(spotOptions)); - } public GetLaunchTemplateInstanceMarketOption build() { - return new GetLaunchTemplateInstanceMarketOption(marketType, spotOptions); + } + public GetLaunchTemplateInstanceMarketOption build() { + final var o = new GetLaunchTemplateInstanceMarketOption(); + o.marketType = marketType; + o.spotOptions = spotOptions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceMarketOptionSpotOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceMarketOptionSpotOption.java index ea2a16cc5b7..9f00913ddff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceMarketOptionSpotOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceMarketOptionSpotOption.java @@ -10,26 +10,13 @@ @CustomType public final class GetLaunchTemplateInstanceMarketOptionSpotOption { - private final Integer blockDurationMinutes; - private final String instanceInterruptionBehavior; - private final String maxPrice; - private final String spotInstanceType; - private final String validUntil; - - @CustomType.Constructor - private GetLaunchTemplateInstanceMarketOptionSpotOption( - @CustomType.Parameter("blockDurationMinutes") Integer blockDurationMinutes, - @CustomType.Parameter("instanceInterruptionBehavior") String instanceInterruptionBehavior, - @CustomType.Parameter("maxPrice") String maxPrice, - @CustomType.Parameter("spotInstanceType") String spotInstanceType, - @CustomType.Parameter("validUntil") String validUntil) { - this.blockDurationMinutes = blockDurationMinutes; - this.instanceInterruptionBehavior = instanceInterruptionBehavior; - this.maxPrice = maxPrice; - this.spotInstanceType = spotInstanceType; - this.validUntil = validUntil; - } + private Integer blockDurationMinutes; + private String instanceInterruptionBehavior; + private String maxPrice; + private String spotInstanceType; + private String validUntil; + private GetLaunchTemplateInstanceMarketOptionSpotOption() {} public Integer blockDurationMinutes() { return this.blockDurationMinutes; } @@ -53,18 +40,14 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateInstanceMarketOptionSpotOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer blockDurationMinutes; private String instanceInterruptionBehavior; private String maxPrice; private String spotInstanceType; private String validUntil; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateInstanceMarketOptionSpotOption defaults) { Objects.requireNonNull(defaults); this.blockDurationMinutes = defaults.blockDurationMinutes; @@ -74,27 +57,39 @@ public Builder(GetLaunchTemplateInstanceMarketOptionSpotOption defaults) { this.validUntil = defaults.validUntil; } + @CustomType.Setter public Builder blockDurationMinutes(Integer blockDurationMinutes) { this.blockDurationMinutes = Objects.requireNonNull(blockDurationMinutes); return this; } + @CustomType.Setter public Builder instanceInterruptionBehavior(String instanceInterruptionBehavior) { this.instanceInterruptionBehavior = Objects.requireNonNull(instanceInterruptionBehavior); return this; } + @CustomType.Setter public Builder maxPrice(String maxPrice) { this.maxPrice = Objects.requireNonNull(maxPrice); return this; } + @CustomType.Setter public Builder spotInstanceType(String spotInstanceType) { this.spotInstanceType = Objects.requireNonNull(spotInstanceType); return this; } + @CustomType.Setter public Builder validUntil(String validUntil) { this.validUntil = Objects.requireNonNull(validUntil); return this; - } public GetLaunchTemplateInstanceMarketOptionSpotOption build() { - return new GetLaunchTemplateInstanceMarketOptionSpotOption(blockDurationMinutes, instanceInterruptionBehavior, maxPrice, spotInstanceType, validUntil); + } + public GetLaunchTemplateInstanceMarketOptionSpotOption build() { + final var o = new GetLaunchTemplateInstanceMarketOptionSpotOption(); + o.blockDurationMinutes = blockDurationMinutes; + o.instanceInterruptionBehavior = instanceInterruptionBehavior; + o.maxPrice = maxPrice; + o.spotInstanceType = spotInstanceType; + o.validUntil = validUntil; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirement.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirement.java index b785cf2c0d4..4455bd6e1f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirement.java @@ -20,74 +20,29 @@ @CustomType public final class GetLaunchTemplateInstanceRequirement { - private final List acceleratorCounts; - private final List acceleratorManufacturers; - private final List acceleratorNames; - private final List acceleratorTotalMemoryMibs; - private final List acceleratorTypes; - private final String bareMetal; - private final List baselineEbsBandwidthMbps; - private final String burstablePerformance; - private final List cpuManufacturers; - private final List excludedInstanceTypes; - private final List instanceGenerations; - private final String localStorage; - private final List localStorageTypes; - private final List memoryGibPerVcpus; - private final List memoryMibs; - private final List networkInterfaceCounts; - private final Integer onDemandMaxPricePercentageOverLowestPrice; - private final Boolean requireHibernateSupport; - private final Integer spotMaxPricePercentageOverLowestPrice; - private final List totalLocalStorageGbs; - private final List vcpuCounts; - - @CustomType.Constructor - private GetLaunchTemplateInstanceRequirement( - @CustomType.Parameter("acceleratorCounts") List acceleratorCounts, - @CustomType.Parameter("acceleratorManufacturers") List acceleratorManufacturers, - @CustomType.Parameter("acceleratorNames") List acceleratorNames, - @CustomType.Parameter("acceleratorTotalMemoryMibs") List acceleratorTotalMemoryMibs, - @CustomType.Parameter("acceleratorTypes") List acceleratorTypes, - @CustomType.Parameter("bareMetal") String bareMetal, - @CustomType.Parameter("baselineEbsBandwidthMbps") List baselineEbsBandwidthMbps, - @CustomType.Parameter("burstablePerformance") String burstablePerformance, - @CustomType.Parameter("cpuManufacturers") List cpuManufacturers, - @CustomType.Parameter("excludedInstanceTypes") List excludedInstanceTypes, - @CustomType.Parameter("instanceGenerations") List instanceGenerations, - @CustomType.Parameter("localStorage") String localStorage, - @CustomType.Parameter("localStorageTypes") List localStorageTypes, - @CustomType.Parameter("memoryGibPerVcpus") List memoryGibPerVcpus, - @CustomType.Parameter("memoryMibs") List memoryMibs, - @CustomType.Parameter("networkInterfaceCounts") List networkInterfaceCounts, - @CustomType.Parameter("onDemandMaxPricePercentageOverLowestPrice") Integer onDemandMaxPricePercentageOverLowestPrice, - @CustomType.Parameter("requireHibernateSupport") Boolean requireHibernateSupport, - @CustomType.Parameter("spotMaxPricePercentageOverLowestPrice") Integer spotMaxPricePercentageOverLowestPrice, - @CustomType.Parameter("totalLocalStorageGbs") List totalLocalStorageGbs, - @CustomType.Parameter("vcpuCounts") List vcpuCounts) { - this.acceleratorCounts = acceleratorCounts; - this.acceleratorManufacturers = acceleratorManufacturers; - this.acceleratorNames = acceleratorNames; - this.acceleratorTotalMemoryMibs = acceleratorTotalMemoryMibs; - this.acceleratorTypes = acceleratorTypes; - this.bareMetal = bareMetal; - this.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; - this.burstablePerformance = burstablePerformance; - this.cpuManufacturers = cpuManufacturers; - this.excludedInstanceTypes = excludedInstanceTypes; - this.instanceGenerations = instanceGenerations; - this.localStorage = localStorage; - this.localStorageTypes = localStorageTypes; - this.memoryGibPerVcpus = memoryGibPerVcpus; - this.memoryMibs = memoryMibs; - this.networkInterfaceCounts = networkInterfaceCounts; - this.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; - this.requireHibernateSupport = requireHibernateSupport; - this.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; - this.totalLocalStorageGbs = totalLocalStorageGbs; - this.vcpuCounts = vcpuCounts; - } + private List acceleratorCounts; + private List acceleratorManufacturers; + private List acceleratorNames; + private List acceleratorTotalMemoryMibs; + private List acceleratorTypes; + private String bareMetal; + private List baselineEbsBandwidthMbps; + private String burstablePerformance; + private List cpuManufacturers; + private List excludedInstanceTypes; + private List instanceGenerations; + private String localStorage; + private List localStorageTypes; + private List memoryGibPerVcpus; + private List memoryMibs; + private List networkInterfaceCounts; + private Integer onDemandMaxPricePercentageOverLowestPrice; + private Boolean requireHibernateSupport; + private Integer spotMaxPricePercentageOverLowestPrice; + private List totalLocalStorageGbs; + private List vcpuCounts; + private GetLaunchTemplateInstanceRequirement() {} public List acceleratorCounts() { return this.acceleratorCounts; } @@ -159,7 +114,7 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateInstanceRequirement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List acceleratorCounts; private List acceleratorManufacturers; @@ -182,11 +137,7 @@ public static final class Builder { private Integer spotMaxPricePercentageOverLowestPrice; private List totalLocalStorageGbs; private List vcpuCounts; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateInstanceRequirement defaults) { Objects.requireNonNull(defaults); this.acceleratorCounts = defaults.acceleratorCounts; @@ -212,6 +163,7 @@ public Builder(GetLaunchTemplateInstanceRequirement defaults) { this.vcpuCounts = defaults.vcpuCounts; } + @CustomType.Setter public Builder acceleratorCounts(List acceleratorCounts) { this.acceleratorCounts = Objects.requireNonNull(acceleratorCounts); return this; @@ -219,6 +171,7 @@ public Builder acceleratorCounts(List acceleratorManufacturers) { this.acceleratorManufacturers = Objects.requireNonNull(acceleratorManufacturers); return this; @@ -226,6 +179,7 @@ public Builder acceleratorManufacturers(List acceleratorManufacturers) { public Builder acceleratorManufacturers(String... acceleratorManufacturers) { return acceleratorManufacturers(List.of(acceleratorManufacturers)); } + @CustomType.Setter public Builder acceleratorNames(List acceleratorNames) { this.acceleratorNames = Objects.requireNonNull(acceleratorNames); return this; @@ -233,6 +187,7 @@ public Builder acceleratorNames(List acceleratorNames) { public Builder acceleratorNames(String... acceleratorNames) { return acceleratorNames(List.of(acceleratorNames)); } + @CustomType.Setter public Builder acceleratorTotalMemoryMibs(List acceleratorTotalMemoryMibs) { this.acceleratorTotalMemoryMibs = Objects.requireNonNull(acceleratorTotalMemoryMibs); return this; @@ -240,6 +195,7 @@ public Builder acceleratorTotalMemoryMibs(List acceleratorTypes) { this.acceleratorTypes = Objects.requireNonNull(acceleratorTypes); return this; @@ -247,10 +203,12 @@ public Builder acceleratorTypes(List acceleratorTypes) { public Builder acceleratorTypes(String... acceleratorTypes) { return acceleratorTypes(List.of(acceleratorTypes)); } + @CustomType.Setter public Builder bareMetal(String bareMetal) { this.bareMetal = Objects.requireNonNull(bareMetal); return this; } + @CustomType.Setter public Builder baselineEbsBandwidthMbps(List baselineEbsBandwidthMbps) { this.baselineEbsBandwidthMbps = Objects.requireNonNull(baselineEbsBandwidthMbps); return this; @@ -258,10 +216,12 @@ public Builder baselineEbsBandwidthMbps(List cpuManufacturers) { this.cpuManufacturers = Objects.requireNonNull(cpuManufacturers); return this; @@ -269,6 +229,7 @@ public Builder cpuManufacturers(List cpuManufacturers) { public Builder cpuManufacturers(String... cpuManufacturers) { return cpuManufacturers(List.of(cpuManufacturers)); } + @CustomType.Setter public Builder excludedInstanceTypes(List excludedInstanceTypes) { this.excludedInstanceTypes = Objects.requireNonNull(excludedInstanceTypes); return this; @@ -276,6 +237,7 @@ public Builder excludedInstanceTypes(List excludedInstanceTypes) { public Builder excludedInstanceTypes(String... excludedInstanceTypes) { return excludedInstanceTypes(List.of(excludedInstanceTypes)); } + @CustomType.Setter public Builder instanceGenerations(List instanceGenerations) { this.instanceGenerations = Objects.requireNonNull(instanceGenerations); return this; @@ -283,10 +245,12 @@ public Builder instanceGenerations(List instanceGenerations) { public Builder instanceGenerations(String... instanceGenerations) { return instanceGenerations(List.of(instanceGenerations)); } + @CustomType.Setter public Builder localStorage(String localStorage) { this.localStorage = Objects.requireNonNull(localStorage); return this; } + @CustomType.Setter public Builder localStorageTypes(List localStorageTypes) { this.localStorageTypes = Objects.requireNonNull(localStorageTypes); return this; @@ -294,6 +258,7 @@ public Builder localStorageTypes(List localStorageTypes) { public Builder localStorageTypes(String... localStorageTypes) { return localStorageTypes(List.of(localStorageTypes)); } + @CustomType.Setter public Builder memoryGibPerVcpus(List memoryGibPerVcpus) { this.memoryGibPerVcpus = Objects.requireNonNull(memoryGibPerVcpus); return this; @@ -301,6 +266,7 @@ public Builder memoryGibPerVcpus(List memoryMibs) { this.memoryMibs = Objects.requireNonNull(memoryMibs); return this; @@ -308,6 +274,7 @@ public Builder memoryMibs(List me public Builder memoryMibs(GetLaunchTemplateInstanceRequirementMemoryMib... memoryMibs) { return memoryMibs(List.of(memoryMibs)); } + @CustomType.Setter public Builder networkInterfaceCounts(List networkInterfaceCounts) { this.networkInterfaceCounts = Objects.requireNonNull(networkInterfaceCounts); return this; @@ -315,18 +282,22 @@ public Builder networkInterfaceCounts(List totalLocalStorageGbs) { this.totalLocalStorageGbs = Objects.requireNonNull(totalLocalStorageGbs); return this; @@ -334,14 +305,38 @@ public Builder totalLocalStorageGbs(List vcpuCounts) { this.vcpuCounts = Objects.requireNonNull(vcpuCounts); return this; } public Builder vcpuCounts(GetLaunchTemplateInstanceRequirementVcpuCount... vcpuCounts) { return vcpuCounts(List.of(vcpuCounts)); - } public GetLaunchTemplateInstanceRequirement build() { - return new GetLaunchTemplateInstanceRequirement(acceleratorCounts, acceleratorManufacturers, acceleratorNames, acceleratorTotalMemoryMibs, acceleratorTypes, bareMetal, baselineEbsBandwidthMbps, burstablePerformance, cpuManufacturers, excludedInstanceTypes, instanceGenerations, localStorage, localStorageTypes, memoryGibPerVcpus, memoryMibs, networkInterfaceCounts, onDemandMaxPricePercentageOverLowestPrice, requireHibernateSupport, spotMaxPricePercentageOverLowestPrice, totalLocalStorageGbs, vcpuCounts); + } + public GetLaunchTemplateInstanceRequirement build() { + final var o = new GetLaunchTemplateInstanceRequirement(); + o.acceleratorCounts = acceleratorCounts; + o.acceleratorManufacturers = acceleratorManufacturers; + o.acceleratorNames = acceleratorNames; + o.acceleratorTotalMemoryMibs = acceleratorTotalMemoryMibs; + o.acceleratorTypes = acceleratorTypes; + o.bareMetal = bareMetal; + o.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; + o.burstablePerformance = burstablePerformance; + o.cpuManufacturers = cpuManufacturers; + o.excludedInstanceTypes = excludedInstanceTypes; + o.instanceGenerations = instanceGenerations; + o.localStorage = localStorage; + o.localStorageTypes = localStorageTypes; + o.memoryGibPerVcpus = memoryGibPerVcpus; + o.memoryMibs = memoryMibs; + o.networkInterfaceCounts = networkInterfaceCounts; + o.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; + o.requireHibernateSupport = requireHibernateSupport; + o.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; + o.totalLocalStorageGbs = totalLocalStorageGbs; + o.vcpuCounts = vcpuCounts; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementAcceleratorCount.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementAcceleratorCount.java index 3b5cb0b2ad6..9af95ae926a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementAcceleratorCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementAcceleratorCount.java @@ -9,17 +9,10 @@ @CustomType public final class GetLaunchTemplateInstanceRequirementAcceleratorCount { - private final Integer max; - private final Integer min; - - @CustomType.Constructor - private GetLaunchTemplateInstanceRequirementAcceleratorCount( - @CustomType.Parameter("max") Integer max, - @CustomType.Parameter("min") Integer min) { - this.max = max; - this.min = min; - } + private Integer max; + private Integer min; + private GetLaunchTemplateInstanceRequirementAcceleratorCount() {} public Integer max() { return this.max; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateInstanceRequirementAcceleratorCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer max; private Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateInstanceRequirementAcceleratorCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(Integer max) { this.max = Objects.requireNonNull(max); return this; } + @CustomType.Setter public Builder min(Integer min) { this.min = Objects.requireNonNull(min); return this; - } public GetLaunchTemplateInstanceRequirementAcceleratorCount build() { - return new GetLaunchTemplateInstanceRequirementAcceleratorCount(max, min); + } + public GetLaunchTemplateInstanceRequirementAcceleratorCount build() { + final var o = new GetLaunchTemplateInstanceRequirementAcceleratorCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib.java index 48bd32e6e5d..10aec4feac6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib.java @@ -9,17 +9,10 @@ @CustomType public final class GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib { - private final Integer max; - private final Integer min; - - @CustomType.Constructor - private GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib( - @CustomType.Parameter("max") Integer max, - @CustomType.Parameter("min") Integer min) { - this.max = max; - this.min = min; - } + private Integer max; + private Integer min; + private GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib() {} public Integer max() { return this.max; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer max; private Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(Integer max) { this.max = Objects.requireNonNull(max); return this; } + @CustomType.Setter public Builder min(Integer min) { this.min = Objects.requireNonNull(min); return this; - } public GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib build() { - return new GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib(max, min); + } + public GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib build() { + final var o = new GetLaunchTemplateInstanceRequirementAcceleratorTotalMemoryMib(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp.java index f2d03d70f1b..6babf3b320a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp.java @@ -9,17 +9,10 @@ @CustomType public final class GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp { - private final Integer max; - private final Integer min; - - @CustomType.Constructor - private GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp( - @CustomType.Parameter("max") Integer max, - @CustomType.Parameter("min") Integer min) { - this.max = max; - this.min = min; - } + private Integer max; + private Integer min; + private GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp() {} public Integer max() { return this.max; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer max; private Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(Integer max) { this.max = Objects.requireNonNull(max); return this; } + @CustomType.Setter public Builder min(Integer min) { this.min = Objects.requireNonNull(min); return this; - } public GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp build() { - return new GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp(max, min); + } + public GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp build() { + final var o = new GetLaunchTemplateInstanceRequirementBaselineEbsBandwidthMbp(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus.java index 6d88b0d8b37..305b9955b69 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus.java @@ -9,17 +9,10 @@ @CustomType public final class GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus { - private final Double max; - private final Double min; - - @CustomType.Constructor - private GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus( - @CustomType.Parameter("max") Double max, - @CustomType.Parameter("min") Double min) { - this.max = max; - this.min = min; - } + private Double max; + private Double min; + private GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus() {} public Double max() { return this.max; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Double max; private Double min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(Double max) { this.max = Objects.requireNonNull(max); return this; } + @CustomType.Setter public Builder min(Double min) { this.min = Objects.requireNonNull(min); return this; - } public GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus build() { - return new GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus(max, min); + } + public GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus build() { + final var o = new GetLaunchTemplateInstanceRequirementMemoryGibPerVcpus(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementMemoryMib.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementMemoryMib.java index ae50964fd45..85fd2c58948 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementMemoryMib.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementMemoryMib.java @@ -9,17 +9,10 @@ @CustomType public final class GetLaunchTemplateInstanceRequirementMemoryMib { - private final Integer max; - private final Integer min; - - @CustomType.Constructor - private GetLaunchTemplateInstanceRequirementMemoryMib( - @CustomType.Parameter("max") Integer max, - @CustomType.Parameter("min") Integer min) { - this.max = max; - this.min = min; - } + private Integer max; + private Integer min; + private GetLaunchTemplateInstanceRequirementMemoryMib() {} public Integer max() { return this.max; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateInstanceRequirementMemoryMib defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer max; private Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateInstanceRequirementMemoryMib defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(Integer max) { this.max = Objects.requireNonNull(max); return this; } + @CustomType.Setter public Builder min(Integer min) { this.min = Objects.requireNonNull(min); return this; - } public GetLaunchTemplateInstanceRequirementMemoryMib build() { - return new GetLaunchTemplateInstanceRequirementMemoryMib(max, min); + } + public GetLaunchTemplateInstanceRequirementMemoryMib build() { + final var o = new GetLaunchTemplateInstanceRequirementMemoryMib(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementNetworkInterfaceCount.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementNetworkInterfaceCount.java index 61a36596d41..20b0d8a83b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementNetworkInterfaceCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementNetworkInterfaceCount.java @@ -9,17 +9,10 @@ @CustomType public final class GetLaunchTemplateInstanceRequirementNetworkInterfaceCount { - private final Integer max; - private final Integer min; - - @CustomType.Constructor - private GetLaunchTemplateInstanceRequirementNetworkInterfaceCount( - @CustomType.Parameter("max") Integer max, - @CustomType.Parameter("min") Integer min) { - this.max = max; - this.min = min; - } + private Integer max; + private Integer min; + private GetLaunchTemplateInstanceRequirementNetworkInterfaceCount() {} public Integer max() { return this.max; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateInstanceRequirementNetworkInterfaceCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer max; private Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateInstanceRequirementNetworkInterfaceCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(Integer max) { this.max = Objects.requireNonNull(max); return this; } + @CustomType.Setter public Builder min(Integer min) { this.min = Objects.requireNonNull(min); return this; - } public GetLaunchTemplateInstanceRequirementNetworkInterfaceCount build() { - return new GetLaunchTemplateInstanceRequirementNetworkInterfaceCount(max, min); + } + public GetLaunchTemplateInstanceRequirementNetworkInterfaceCount build() { + final var o = new GetLaunchTemplateInstanceRequirementNetworkInterfaceCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementTotalLocalStorageGb.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementTotalLocalStorageGb.java index c23f785e8df..42fe4c29dcb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementTotalLocalStorageGb.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementTotalLocalStorageGb.java @@ -9,17 +9,10 @@ @CustomType public final class GetLaunchTemplateInstanceRequirementTotalLocalStorageGb { - private final Double max; - private final Double min; - - @CustomType.Constructor - private GetLaunchTemplateInstanceRequirementTotalLocalStorageGb( - @CustomType.Parameter("max") Double max, - @CustomType.Parameter("min") Double min) { - this.max = max; - this.min = min; - } + private Double max; + private Double min; + private GetLaunchTemplateInstanceRequirementTotalLocalStorageGb() {} public Double max() { return this.max; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateInstanceRequirementTotalLocalStorageGb defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Double max; private Double min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateInstanceRequirementTotalLocalStorageGb defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(Double max) { this.max = Objects.requireNonNull(max); return this; } + @CustomType.Setter public Builder min(Double min) { this.min = Objects.requireNonNull(min); return this; - } public GetLaunchTemplateInstanceRequirementTotalLocalStorageGb build() { - return new GetLaunchTemplateInstanceRequirementTotalLocalStorageGb(max, min); + } + public GetLaunchTemplateInstanceRequirementTotalLocalStorageGb build() { + final var o = new GetLaunchTemplateInstanceRequirementTotalLocalStorageGb(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementVcpuCount.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementVcpuCount.java index 5ce94174bdf..c3e06a07a57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementVcpuCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateInstanceRequirementVcpuCount.java @@ -9,17 +9,10 @@ @CustomType public final class GetLaunchTemplateInstanceRequirementVcpuCount { - private final Integer max; - private final Integer min; - - @CustomType.Constructor - private GetLaunchTemplateInstanceRequirementVcpuCount( - @CustomType.Parameter("max") Integer max, - @CustomType.Parameter("min") Integer min) { - this.max = max; - this.min = min; - } + private Integer max; + private Integer min; + private GetLaunchTemplateInstanceRequirementVcpuCount() {} public Integer max() { return this.max; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateInstanceRequirementVcpuCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer max; private Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateInstanceRequirementVcpuCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(Integer max) { this.max = Objects.requireNonNull(max); return this; } + @CustomType.Setter public Builder min(Integer min) { this.min = Objects.requireNonNull(min); return this; - } public GetLaunchTemplateInstanceRequirementVcpuCount build() { - return new GetLaunchTemplateInstanceRequirementVcpuCount(max, min); + } + public GetLaunchTemplateInstanceRequirementVcpuCount build() { + final var o = new GetLaunchTemplateInstanceRequirementVcpuCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateLicenseSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateLicenseSpecification.java index ae797b33a7a..d9ac5908e24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateLicenseSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateLicenseSpecification.java @@ -9,13 +9,9 @@ @CustomType public final class GetLaunchTemplateLicenseSpecification { - private final String licenseConfigurationArn; - - @CustomType.Constructor - private GetLaunchTemplateLicenseSpecification(@CustomType.Parameter("licenseConfigurationArn") String licenseConfigurationArn) { - this.licenseConfigurationArn = licenseConfigurationArn; - } + private String licenseConfigurationArn; + private GetLaunchTemplateLicenseSpecification() {} public String licenseConfigurationArn() { return this.licenseConfigurationArn; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateLicenseSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String licenseConfigurationArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateLicenseSpecification defaults) { Objects.requireNonNull(defaults); this.licenseConfigurationArn = defaults.licenseConfigurationArn; } + @CustomType.Setter public Builder licenseConfigurationArn(String licenseConfigurationArn) { this.licenseConfigurationArn = Objects.requireNonNull(licenseConfigurationArn); return this; - } public GetLaunchTemplateLicenseSpecification build() { - return new GetLaunchTemplateLicenseSpecification(licenseConfigurationArn); + } + public GetLaunchTemplateLicenseSpecification build() { + final var o = new GetLaunchTemplateLicenseSpecification(); + o.licenseConfigurationArn = licenseConfigurationArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateMaintenanceOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateMaintenanceOption.java index d03f32dfb3c..c4000f93d1a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateMaintenanceOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateMaintenanceOption.java @@ -9,13 +9,9 @@ @CustomType public final class GetLaunchTemplateMaintenanceOption { - private final String autoRecovery; - - @CustomType.Constructor - private GetLaunchTemplateMaintenanceOption(@CustomType.Parameter("autoRecovery") String autoRecovery) { - this.autoRecovery = autoRecovery; - } + private String autoRecovery; + private GetLaunchTemplateMaintenanceOption() {} public String autoRecovery() { return this.autoRecovery; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateMaintenanceOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String autoRecovery; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateMaintenanceOption defaults) { Objects.requireNonNull(defaults); this.autoRecovery = defaults.autoRecovery; } + @CustomType.Setter public Builder autoRecovery(String autoRecovery) { this.autoRecovery = Objects.requireNonNull(autoRecovery); return this; - } public GetLaunchTemplateMaintenanceOption build() { - return new GetLaunchTemplateMaintenanceOption(autoRecovery); + } + public GetLaunchTemplateMaintenanceOption build() { + final var o = new GetLaunchTemplateMaintenanceOption(); + o.autoRecovery = autoRecovery; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateMetadataOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateMetadataOption.java index 6eed8597e83..14f15adab60 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateMetadataOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateMetadataOption.java @@ -10,26 +10,13 @@ @CustomType public final class GetLaunchTemplateMetadataOption { - private final String httpEndpoint; - private final String httpProtocolIpv6; - private final Integer httpPutResponseHopLimit; - private final String httpTokens; - private final String instanceMetadataTags; - - @CustomType.Constructor - private GetLaunchTemplateMetadataOption( - @CustomType.Parameter("httpEndpoint") String httpEndpoint, - @CustomType.Parameter("httpProtocolIpv6") String httpProtocolIpv6, - @CustomType.Parameter("httpPutResponseHopLimit") Integer httpPutResponseHopLimit, - @CustomType.Parameter("httpTokens") String httpTokens, - @CustomType.Parameter("instanceMetadataTags") String instanceMetadataTags) { - this.httpEndpoint = httpEndpoint; - this.httpProtocolIpv6 = httpProtocolIpv6; - this.httpPutResponseHopLimit = httpPutResponseHopLimit; - this.httpTokens = httpTokens; - this.instanceMetadataTags = instanceMetadataTags; - } + private String httpEndpoint; + private String httpProtocolIpv6; + private Integer httpPutResponseHopLimit; + private String httpTokens; + private String instanceMetadataTags; + private GetLaunchTemplateMetadataOption() {} public String httpEndpoint() { return this.httpEndpoint; } @@ -53,18 +40,14 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateMetadataOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String httpEndpoint; private String httpProtocolIpv6; private Integer httpPutResponseHopLimit; private String httpTokens; private String instanceMetadataTags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateMetadataOption defaults) { Objects.requireNonNull(defaults); this.httpEndpoint = defaults.httpEndpoint; @@ -74,27 +57,39 @@ public Builder(GetLaunchTemplateMetadataOption defaults) { this.instanceMetadataTags = defaults.instanceMetadataTags; } + @CustomType.Setter public Builder httpEndpoint(String httpEndpoint) { this.httpEndpoint = Objects.requireNonNull(httpEndpoint); return this; } + @CustomType.Setter public Builder httpProtocolIpv6(String httpProtocolIpv6) { this.httpProtocolIpv6 = Objects.requireNonNull(httpProtocolIpv6); return this; } + @CustomType.Setter public Builder httpPutResponseHopLimit(Integer httpPutResponseHopLimit) { this.httpPutResponseHopLimit = Objects.requireNonNull(httpPutResponseHopLimit); return this; } + @CustomType.Setter public Builder httpTokens(String httpTokens) { this.httpTokens = Objects.requireNonNull(httpTokens); return this; } + @CustomType.Setter public Builder instanceMetadataTags(String instanceMetadataTags) { this.instanceMetadataTags = Objects.requireNonNull(instanceMetadataTags); return this; - } public GetLaunchTemplateMetadataOption build() { - return new GetLaunchTemplateMetadataOption(httpEndpoint, httpProtocolIpv6, httpPutResponseHopLimit, httpTokens, instanceMetadataTags); + } + public GetLaunchTemplateMetadataOption build() { + final var o = new GetLaunchTemplateMetadataOption(); + o.httpEndpoint = httpEndpoint; + o.httpProtocolIpv6 = httpProtocolIpv6; + o.httpPutResponseHopLimit = httpPutResponseHopLimit; + o.httpTokens = httpTokens; + o.instanceMetadataTags = instanceMetadataTags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateMonitoring.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateMonitoring.java index 5cbb014914c..0d4eab10b2d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateMonitoring.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateMonitoring.java @@ -9,13 +9,9 @@ @CustomType public final class GetLaunchTemplateMonitoring { - private final Boolean enabled; - - @CustomType.Constructor - private GetLaunchTemplateMonitoring(@CustomType.Parameter("enabled") Boolean enabled) { - this.enabled = enabled; - } + private Boolean enabled; + private GetLaunchTemplateMonitoring() {} public Boolean enabled() { return this.enabled; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateMonitoring defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateMonitoring defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public GetLaunchTemplateMonitoring build() { - return new GetLaunchTemplateMonitoring(enabled); + } + public GetLaunchTemplateMonitoring build() { + final var o = new GetLaunchTemplateMonitoring(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateNetworkInterface.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateNetworkInterface.java index 02b7644472e..7581775e318 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateNetworkInterface.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateNetworkInterface.java @@ -14,68 +14,27 @@ @CustomType public final class GetLaunchTemplateNetworkInterface { - private final String associateCarrierIpAddress; - private final @Nullable Boolean associatePublicIpAddress; - private final @Nullable Boolean deleteOnTermination; - private final String description; - private final Integer deviceIndex; - private final String interfaceType; - private final Integer ipv4AddressCount; - private final List ipv4Addresses; - private final Integer ipv4PrefixCount; - private final List ipv4Prefixes; - private final Integer ipv6AddressCount; - private final List ipv6Addresses; - private final Integer ipv6PrefixCount; - private final List ipv6Prefixes; - private final Integer networkCardIndex; - private final String networkInterfaceId; - private final String privateIpAddress; - private final List securityGroups; - private final String subnetId; - - @CustomType.Constructor - private GetLaunchTemplateNetworkInterface( - @CustomType.Parameter("associateCarrierIpAddress") String associateCarrierIpAddress, - @CustomType.Parameter("associatePublicIpAddress") @Nullable Boolean associatePublicIpAddress, - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("deviceIndex") Integer deviceIndex, - @CustomType.Parameter("interfaceType") String interfaceType, - @CustomType.Parameter("ipv4AddressCount") Integer ipv4AddressCount, - @CustomType.Parameter("ipv4Addresses") List ipv4Addresses, - @CustomType.Parameter("ipv4PrefixCount") Integer ipv4PrefixCount, - @CustomType.Parameter("ipv4Prefixes") List ipv4Prefixes, - @CustomType.Parameter("ipv6AddressCount") Integer ipv6AddressCount, - @CustomType.Parameter("ipv6Addresses") List ipv6Addresses, - @CustomType.Parameter("ipv6PrefixCount") Integer ipv6PrefixCount, - @CustomType.Parameter("ipv6Prefixes") List ipv6Prefixes, - @CustomType.Parameter("networkCardIndex") Integer networkCardIndex, - @CustomType.Parameter("networkInterfaceId") String networkInterfaceId, - @CustomType.Parameter("privateIpAddress") String privateIpAddress, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("subnetId") String subnetId) { - this.associateCarrierIpAddress = associateCarrierIpAddress; - this.associatePublicIpAddress = associatePublicIpAddress; - this.deleteOnTermination = deleteOnTermination; - this.description = description; - this.deviceIndex = deviceIndex; - this.interfaceType = interfaceType; - this.ipv4AddressCount = ipv4AddressCount; - this.ipv4Addresses = ipv4Addresses; - this.ipv4PrefixCount = ipv4PrefixCount; - this.ipv4Prefixes = ipv4Prefixes; - this.ipv6AddressCount = ipv6AddressCount; - this.ipv6Addresses = ipv6Addresses; - this.ipv6PrefixCount = ipv6PrefixCount; - this.ipv6Prefixes = ipv6Prefixes; - this.networkCardIndex = networkCardIndex; - this.networkInterfaceId = networkInterfaceId; - this.privateIpAddress = privateIpAddress; - this.securityGroups = securityGroups; - this.subnetId = subnetId; - } + private String associateCarrierIpAddress; + private @Nullable Boolean associatePublicIpAddress; + private @Nullable Boolean deleteOnTermination; + private String description; + private Integer deviceIndex; + private String interfaceType; + private Integer ipv4AddressCount; + private List ipv4Addresses; + private Integer ipv4PrefixCount; + private List ipv4Prefixes; + private Integer ipv6AddressCount; + private List ipv6Addresses; + private Integer ipv6PrefixCount; + private List ipv6Prefixes; + private Integer networkCardIndex; + private String networkInterfaceId; + private String privateIpAddress; + private List securityGroups; + private String subnetId; + private GetLaunchTemplateNetworkInterface() {} public String associateCarrierIpAddress() { return this.associateCarrierIpAddress; } @@ -141,7 +100,7 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateNetworkInterface defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String associateCarrierIpAddress; private @Nullable Boolean associatePublicIpAddress; @@ -162,11 +121,7 @@ public static final class Builder { private String privateIpAddress; private List securityGroups; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateNetworkInterface defaults) { Objects.requireNonNull(defaults); this.associateCarrierIpAddress = defaults.associateCarrierIpAddress; @@ -190,34 +145,42 @@ public Builder(GetLaunchTemplateNetworkInterface defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder associateCarrierIpAddress(String associateCarrierIpAddress) { this.associateCarrierIpAddress = Objects.requireNonNull(associateCarrierIpAddress); return this; } + @CustomType.Setter public Builder associatePublicIpAddress(@Nullable Boolean associatePublicIpAddress) { this.associatePublicIpAddress = associatePublicIpAddress; return this; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder deviceIndex(Integer deviceIndex) { this.deviceIndex = Objects.requireNonNull(deviceIndex); return this; } + @CustomType.Setter public Builder interfaceType(String interfaceType) { this.interfaceType = Objects.requireNonNull(interfaceType); return this; } + @CustomType.Setter public Builder ipv4AddressCount(Integer ipv4AddressCount) { this.ipv4AddressCount = Objects.requireNonNull(ipv4AddressCount); return this; } + @CustomType.Setter public Builder ipv4Addresses(List ipv4Addresses) { this.ipv4Addresses = Objects.requireNonNull(ipv4Addresses); return this; @@ -225,10 +188,12 @@ public Builder ipv4Addresses(List ipv4Addresses) { public Builder ipv4Addresses(String... ipv4Addresses) { return ipv4Addresses(List.of(ipv4Addresses)); } + @CustomType.Setter public Builder ipv4PrefixCount(Integer ipv4PrefixCount) { this.ipv4PrefixCount = Objects.requireNonNull(ipv4PrefixCount); return this; } + @CustomType.Setter public Builder ipv4Prefixes(List ipv4Prefixes) { this.ipv4Prefixes = Objects.requireNonNull(ipv4Prefixes); return this; @@ -236,10 +201,12 @@ public Builder ipv4Prefixes(List ipv4Prefixes) { public Builder ipv4Prefixes(String... ipv4Prefixes) { return ipv4Prefixes(List.of(ipv4Prefixes)); } + @CustomType.Setter public Builder ipv6AddressCount(Integer ipv6AddressCount) { this.ipv6AddressCount = Objects.requireNonNull(ipv6AddressCount); return this; } + @CustomType.Setter public Builder ipv6Addresses(List ipv6Addresses) { this.ipv6Addresses = Objects.requireNonNull(ipv6Addresses); return this; @@ -247,10 +214,12 @@ public Builder ipv6Addresses(List ipv6Addresses) { public Builder ipv6Addresses(String... ipv6Addresses) { return ipv6Addresses(List.of(ipv6Addresses)); } + @CustomType.Setter public Builder ipv6PrefixCount(Integer ipv6PrefixCount) { this.ipv6PrefixCount = Objects.requireNonNull(ipv6PrefixCount); return this; } + @CustomType.Setter public Builder ipv6Prefixes(List ipv6Prefixes) { this.ipv6Prefixes = Objects.requireNonNull(ipv6Prefixes); return this; @@ -258,18 +227,22 @@ public Builder ipv6Prefixes(List ipv6Prefixes) { public Builder ipv6Prefixes(String... ipv6Prefixes) { return ipv6Prefixes(List.of(ipv6Prefixes)); } + @CustomType.Setter public Builder networkCardIndex(Integer networkCardIndex) { this.networkCardIndex = Objects.requireNonNull(networkCardIndex); return this; } + @CustomType.Setter public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = Objects.requireNonNull(networkInterfaceId); return this; } + @CustomType.Setter public Builder privateIpAddress(String privateIpAddress) { this.privateIpAddress = Objects.requireNonNull(privateIpAddress); return this; } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -277,11 +250,33 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public GetLaunchTemplateNetworkInterface build() { - return new GetLaunchTemplateNetworkInterface(associateCarrierIpAddress, associatePublicIpAddress, deleteOnTermination, description, deviceIndex, interfaceType, ipv4AddressCount, ipv4Addresses, ipv4PrefixCount, ipv4Prefixes, ipv6AddressCount, ipv6Addresses, ipv6PrefixCount, ipv6Prefixes, networkCardIndex, networkInterfaceId, privateIpAddress, securityGroups, subnetId); + } + public GetLaunchTemplateNetworkInterface build() { + final var o = new GetLaunchTemplateNetworkInterface(); + o.associateCarrierIpAddress = associateCarrierIpAddress; + o.associatePublicIpAddress = associatePublicIpAddress; + o.deleteOnTermination = deleteOnTermination; + o.description = description; + o.deviceIndex = deviceIndex; + o.interfaceType = interfaceType; + o.ipv4AddressCount = ipv4AddressCount; + o.ipv4Addresses = ipv4Addresses; + o.ipv4PrefixCount = ipv4PrefixCount; + o.ipv4Prefixes = ipv4Prefixes; + o.ipv6AddressCount = ipv6AddressCount; + o.ipv6Addresses = ipv6Addresses; + o.ipv6PrefixCount = ipv6PrefixCount; + o.ipv6Prefixes = ipv6Prefixes; + o.networkCardIndex = networkCardIndex; + o.networkInterfaceId = networkInterfaceId; + o.privateIpAddress = privateIpAddress; + o.securityGroups = securityGroups; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplatePlacement.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplatePlacement.java index f45af86ae83..42f81c12469 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplatePlacement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplatePlacement.java @@ -10,35 +10,16 @@ @CustomType public final class GetLaunchTemplatePlacement { - private final String affinity; - private final String availabilityZone; - private final String groupName; - private final String hostId; - private final String hostResourceGroupArn; - private final Integer partitionNumber; - private final String spreadDomain; - private final String tenancy; - - @CustomType.Constructor - private GetLaunchTemplatePlacement( - @CustomType.Parameter("affinity") String affinity, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("groupName") String groupName, - @CustomType.Parameter("hostId") String hostId, - @CustomType.Parameter("hostResourceGroupArn") String hostResourceGroupArn, - @CustomType.Parameter("partitionNumber") Integer partitionNumber, - @CustomType.Parameter("spreadDomain") String spreadDomain, - @CustomType.Parameter("tenancy") String tenancy) { - this.affinity = affinity; - this.availabilityZone = availabilityZone; - this.groupName = groupName; - this.hostId = hostId; - this.hostResourceGroupArn = hostResourceGroupArn; - this.partitionNumber = partitionNumber; - this.spreadDomain = spreadDomain; - this.tenancy = tenancy; - } + private String affinity; + private String availabilityZone; + private String groupName; + private String hostId; + private String hostResourceGroupArn; + private Integer partitionNumber; + private String spreadDomain; + private String tenancy; + private GetLaunchTemplatePlacement() {} public String affinity() { return this.affinity; } @@ -71,7 +52,7 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplatePlacement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String affinity; private String availabilityZone; @@ -81,11 +62,7 @@ public static final class Builder { private Integer partitionNumber; private String spreadDomain; private String tenancy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplatePlacement defaults) { Objects.requireNonNull(defaults); this.affinity = defaults.affinity; @@ -98,39 +75,57 @@ public Builder(GetLaunchTemplatePlacement defaults) { this.tenancy = defaults.tenancy; } + @CustomType.Setter public Builder affinity(String affinity) { this.affinity = Objects.requireNonNull(affinity); return this; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder groupName(String groupName) { this.groupName = Objects.requireNonNull(groupName); return this; } + @CustomType.Setter public Builder hostId(String hostId) { this.hostId = Objects.requireNonNull(hostId); return this; } + @CustomType.Setter public Builder hostResourceGroupArn(String hostResourceGroupArn) { this.hostResourceGroupArn = Objects.requireNonNull(hostResourceGroupArn); return this; } + @CustomType.Setter public Builder partitionNumber(Integer partitionNumber) { this.partitionNumber = Objects.requireNonNull(partitionNumber); return this; } + @CustomType.Setter public Builder spreadDomain(String spreadDomain) { this.spreadDomain = Objects.requireNonNull(spreadDomain); return this; } + @CustomType.Setter public Builder tenancy(String tenancy) { this.tenancy = Objects.requireNonNull(tenancy); return this; - } public GetLaunchTemplatePlacement build() { - return new GetLaunchTemplatePlacement(affinity, availabilityZone, groupName, hostId, hostResourceGroupArn, partitionNumber, spreadDomain, tenancy); + } + public GetLaunchTemplatePlacement build() { + final var o = new GetLaunchTemplatePlacement(); + o.affinity = affinity; + o.availabilityZone = availabilityZone; + o.groupName = groupName; + o.hostId = hostId; + o.hostResourceGroupArn = hostResourceGroupArn; + o.partitionNumber = partitionNumber; + o.spreadDomain = spreadDomain; + o.tenancy = tenancy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplatePrivateDnsNameOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplatePrivateDnsNameOption.java index 5b1cf9d6a4c..17205cdca76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplatePrivateDnsNameOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplatePrivateDnsNameOption.java @@ -10,20 +10,11 @@ @CustomType public final class GetLaunchTemplatePrivateDnsNameOption { - private final Boolean enableResourceNameDnsARecord; - private final Boolean enableResourceNameDnsAaaaRecord; - private final String hostnameType; - - @CustomType.Constructor - private GetLaunchTemplatePrivateDnsNameOption( - @CustomType.Parameter("enableResourceNameDnsARecord") Boolean enableResourceNameDnsARecord, - @CustomType.Parameter("enableResourceNameDnsAaaaRecord") Boolean enableResourceNameDnsAaaaRecord, - @CustomType.Parameter("hostnameType") String hostnameType) { - this.enableResourceNameDnsARecord = enableResourceNameDnsARecord; - this.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; - this.hostnameType = hostnameType; - } + private Boolean enableResourceNameDnsARecord; + private Boolean enableResourceNameDnsAaaaRecord; + private String hostnameType; + private GetLaunchTemplatePrivateDnsNameOption() {} public Boolean enableResourceNameDnsARecord() { return this.enableResourceNameDnsARecord; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplatePrivateDnsNameOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enableResourceNameDnsARecord; private Boolean enableResourceNameDnsAaaaRecord; private String hostnameType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplatePrivateDnsNameOption defaults) { Objects.requireNonNull(defaults); this.enableResourceNameDnsARecord = defaults.enableResourceNameDnsARecord; @@ -58,19 +45,27 @@ public Builder(GetLaunchTemplatePrivateDnsNameOption defaults) { this.hostnameType = defaults.hostnameType; } + @CustomType.Setter public Builder enableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord) { this.enableResourceNameDnsARecord = Objects.requireNonNull(enableResourceNameDnsARecord); return this; } + @CustomType.Setter public Builder enableResourceNameDnsAaaaRecord(Boolean enableResourceNameDnsAaaaRecord) { this.enableResourceNameDnsAaaaRecord = Objects.requireNonNull(enableResourceNameDnsAaaaRecord); return this; } + @CustomType.Setter public Builder hostnameType(String hostnameType) { this.hostnameType = Objects.requireNonNull(hostnameType); return this; - } public GetLaunchTemplatePrivateDnsNameOption build() { - return new GetLaunchTemplatePrivateDnsNameOption(enableResourceNameDnsARecord, enableResourceNameDnsAaaaRecord, hostnameType); + } + public GetLaunchTemplatePrivateDnsNameOption build() { + final var o = new GetLaunchTemplatePrivateDnsNameOption(); + o.enableResourceNameDnsARecord = enableResourceNameDnsARecord; + o.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; + o.hostnameType = hostnameType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateResult.java index 1868b3f9cfc..3faf209ad2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateResult.java @@ -34,132 +34,51 @@ @CustomType public final class GetLaunchTemplateResult { - private final String arn; - private final List blockDeviceMappings; - private final List capacityReservationSpecifications; - private final List cpuOptions; - private final List creditSpecifications; - private final Integer defaultVersion; - private final String description; - private final Boolean disableApiStop; - private final Boolean disableApiTermination; - private final String ebsOptimized; - private final List elasticGpuSpecifications; - private final List elasticInferenceAccelerators; - private final List enclaveOptions; - private final @Nullable List filters; - private final List hibernationOptions; - private final List iamInstanceProfiles; + private String arn; + private List blockDeviceMappings; + private List capacityReservationSpecifications; + private List cpuOptions; + private List creditSpecifications; + private Integer defaultVersion; + private String description; + private Boolean disableApiStop; + private Boolean disableApiTermination; + private String ebsOptimized; + private List elasticGpuSpecifications; + private List elasticInferenceAccelerators; + private List enclaveOptions; + private @Nullable List filters; + private List hibernationOptions; + private List iamInstanceProfiles; /** * @return The ID of the launch template. * */ - private final String id; - private final String imageId; - private final String instanceInitiatedShutdownBehavior; - private final List instanceMarketOptions; - private final List instanceRequirements; - private final String instanceType; - private final String kernelId; - private final String keyName; - private final Integer latestVersion; - private final List licenseSpecifications; - private final List maintenanceOptions; - private final List metadataOptions; - private final List monitorings; - private final String name; - private final List networkInterfaces; - private final List placements; - private final List privateDnsNameOptions; - private final String ramDiskId; - private final List securityGroupNames; - private final List tagSpecifications; - private final Map tags; - private final String userData; - private final List vpcSecurityGroupIds; - - @CustomType.Constructor - private GetLaunchTemplateResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("blockDeviceMappings") List blockDeviceMappings, - @CustomType.Parameter("capacityReservationSpecifications") List capacityReservationSpecifications, - @CustomType.Parameter("cpuOptions") List cpuOptions, - @CustomType.Parameter("creditSpecifications") List creditSpecifications, - @CustomType.Parameter("defaultVersion") Integer defaultVersion, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("disableApiStop") Boolean disableApiStop, - @CustomType.Parameter("disableApiTermination") Boolean disableApiTermination, - @CustomType.Parameter("ebsOptimized") String ebsOptimized, - @CustomType.Parameter("elasticGpuSpecifications") List elasticGpuSpecifications, - @CustomType.Parameter("elasticInferenceAccelerators") List elasticInferenceAccelerators, - @CustomType.Parameter("enclaveOptions") List enclaveOptions, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("hibernationOptions") List hibernationOptions, - @CustomType.Parameter("iamInstanceProfiles") List iamInstanceProfiles, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("imageId") String imageId, - @CustomType.Parameter("instanceInitiatedShutdownBehavior") String instanceInitiatedShutdownBehavior, - @CustomType.Parameter("instanceMarketOptions") List instanceMarketOptions, - @CustomType.Parameter("instanceRequirements") List instanceRequirements, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("kernelId") String kernelId, - @CustomType.Parameter("keyName") String keyName, - @CustomType.Parameter("latestVersion") Integer latestVersion, - @CustomType.Parameter("licenseSpecifications") List licenseSpecifications, - @CustomType.Parameter("maintenanceOptions") List maintenanceOptions, - @CustomType.Parameter("metadataOptions") List metadataOptions, - @CustomType.Parameter("monitorings") List monitorings, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("networkInterfaces") List networkInterfaces, - @CustomType.Parameter("placements") List placements, - @CustomType.Parameter("privateDnsNameOptions") List privateDnsNameOptions, - @CustomType.Parameter("ramDiskId") String ramDiskId, - @CustomType.Parameter("securityGroupNames") List securityGroupNames, - @CustomType.Parameter("tagSpecifications") List tagSpecifications, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("userData") String userData, - @CustomType.Parameter("vpcSecurityGroupIds") List vpcSecurityGroupIds) { - this.arn = arn; - this.blockDeviceMappings = blockDeviceMappings; - this.capacityReservationSpecifications = capacityReservationSpecifications; - this.cpuOptions = cpuOptions; - this.creditSpecifications = creditSpecifications; - this.defaultVersion = defaultVersion; - this.description = description; - this.disableApiStop = disableApiStop; - this.disableApiTermination = disableApiTermination; - this.ebsOptimized = ebsOptimized; - this.elasticGpuSpecifications = elasticGpuSpecifications; - this.elasticInferenceAccelerators = elasticInferenceAccelerators; - this.enclaveOptions = enclaveOptions; - this.filters = filters; - this.hibernationOptions = hibernationOptions; - this.iamInstanceProfiles = iamInstanceProfiles; - this.id = id; - this.imageId = imageId; - this.instanceInitiatedShutdownBehavior = instanceInitiatedShutdownBehavior; - this.instanceMarketOptions = instanceMarketOptions; - this.instanceRequirements = instanceRequirements; - this.instanceType = instanceType; - this.kernelId = kernelId; - this.keyName = keyName; - this.latestVersion = latestVersion; - this.licenseSpecifications = licenseSpecifications; - this.maintenanceOptions = maintenanceOptions; - this.metadataOptions = metadataOptions; - this.monitorings = monitorings; - this.name = name; - this.networkInterfaces = networkInterfaces; - this.placements = placements; - this.privateDnsNameOptions = privateDnsNameOptions; - this.ramDiskId = ramDiskId; - this.securityGroupNames = securityGroupNames; - this.tagSpecifications = tagSpecifications; - this.tags = tags; - this.userData = userData; - this.vpcSecurityGroupIds = vpcSecurityGroupIds; - } + private String id; + private String imageId; + private String instanceInitiatedShutdownBehavior; + private List instanceMarketOptions; + private List instanceRequirements; + private String instanceType; + private String kernelId; + private String keyName; + private Integer latestVersion; + private List licenseSpecifications; + private List maintenanceOptions; + private List metadataOptions; + private List monitorings; + private String name; + private List networkInterfaces; + private List placements; + private List privateDnsNameOptions; + private String ramDiskId; + private List securityGroupNames; + private List tagSpecifications; + private Map tags; + private String userData; + private List vpcSecurityGroupIds; + private GetLaunchTemplateResult() {} public String arn() { return this.arn; } @@ -289,7 +208,7 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List blockDeviceMappings; @@ -330,11 +249,7 @@ public static final class Builder { private Map tags; private String userData; private List vpcSecurityGroupIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -378,10 +293,12 @@ public Builder(GetLaunchTemplateResult defaults) { this.vpcSecurityGroupIds = defaults.vpcSecurityGroupIds; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder blockDeviceMappings(List blockDeviceMappings) { this.blockDeviceMappings = Objects.requireNonNull(blockDeviceMappings); return this; @@ -389,6 +306,7 @@ public Builder blockDeviceMappings(List blo public Builder blockDeviceMappings(GetLaunchTemplateBlockDeviceMapping... blockDeviceMappings) { return blockDeviceMappings(List.of(blockDeviceMappings)); } + @CustomType.Setter public Builder capacityReservationSpecifications(List capacityReservationSpecifications) { this.capacityReservationSpecifications = Objects.requireNonNull(capacityReservationSpecifications); return this; @@ -396,6 +314,7 @@ public Builder capacityReservationSpecifications(List cpuOptions) { this.cpuOptions = Objects.requireNonNull(cpuOptions); return this; @@ -403,6 +322,7 @@ public Builder cpuOptions(List cpuOptions) { public Builder cpuOptions(GetLaunchTemplateCpuOption... cpuOptions) { return cpuOptions(List.of(cpuOptions)); } + @CustomType.Setter public Builder creditSpecifications(List creditSpecifications) { this.creditSpecifications = Objects.requireNonNull(creditSpecifications); return this; @@ -410,26 +330,32 @@ public Builder creditSpecifications(List c public Builder creditSpecifications(GetLaunchTemplateCreditSpecification... creditSpecifications) { return creditSpecifications(List.of(creditSpecifications)); } + @CustomType.Setter public Builder defaultVersion(Integer defaultVersion) { this.defaultVersion = Objects.requireNonNull(defaultVersion); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder disableApiStop(Boolean disableApiStop) { this.disableApiStop = Objects.requireNonNull(disableApiStop); return this; } + @CustomType.Setter public Builder disableApiTermination(Boolean disableApiTermination) { this.disableApiTermination = Objects.requireNonNull(disableApiTermination); return this; } + @CustomType.Setter public Builder ebsOptimized(String ebsOptimized) { this.ebsOptimized = Objects.requireNonNull(ebsOptimized); return this; } + @CustomType.Setter public Builder elasticGpuSpecifications(List elasticGpuSpecifications) { this.elasticGpuSpecifications = Objects.requireNonNull(elasticGpuSpecifications); return this; @@ -437,6 +363,7 @@ public Builder elasticGpuSpecifications(List elasticInferenceAccelerators) { this.elasticInferenceAccelerators = Objects.requireNonNull(elasticInferenceAccelerators); return this; @@ -444,6 +371,7 @@ public Builder elasticInferenceAccelerators(List enclaveOptions) { this.enclaveOptions = Objects.requireNonNull(enclaveOptions); return this; @@ -451,6 +379,7 @@ public Builder enclaveOptions(List enclaveOption public Builder enclaveOptions(GetLaunchTemplateEnclaveOption... enclaveOptions) { return enclaveOptions(List.of(enclaveOptions)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -458,6 +387,7 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetLaunchTemplateFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder hibernationOptions(List hibernationOptions) { this.hibernationOptions = Objects.requireNonNull(hibernationOptions); return this; @@ -465,6 +395,7 @@ public Builder hibernationOptions(List hiber public Builder hibernationOptions(GetLaunchTemplateHibernationOption... hibernationOptions) { return hibernationOptions(List.of(hibernationOptions)); } + @CustomType.Setter public Builder iamInstanceProfiles(List iamInstanceProfiles) { this.iamInstanceProfiles = Objects.requireNonNull(iamInstanceProfiles); return this; @@ -472,18 +403,22 @@ public Builder iamInstanceProfiles(List iam public Builder iamInstanceProfiles(GetLaunchTemplateIamInstanceProfile... iamInstanceProfiles) { return iamInstanceProfiles(List.of(iamInstanceProfiles)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder imageId(String imageId) { this.imageId = Objects.requireNonNull(imageId); return this; } + @CustomType.Setter public Builder instanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior) { this.instanceInitiatedShutdownBehavior = Objects.requireNonNull(instanceInitiatedShutdownBehavior); return this; } + @CustomType.Setter public Builder instanceMarketOptions(List instanceMarketOptions) { this.instanceMarketOptions = Objects.requireNonNull(instanceMarketOptions); return this; @@ -491,6 +426,7 @@ public Builder instanceMarketOptions(List public Builder instanceMarketOptions(GetLaunchTemplateInstanceMarketOption... instanceMarketOptions) { return instanceMarketOptions(List.of(instanceMarketOptions)); } + @CustomType.Setter public Builder instanceRequirements(List instanceRequirements) { this.instanceRequirements = Objects.requireNonNull(instanceRequirements); return this; @@ -498,22 +434,27 @@ public Builder instanceRequirements(List i public Builder instanceRequirements(GetLaunchTemplateInstanceRequirement... instanceRequirements) { return instanceRequirements(List.of(instanceRequirements)); } + @CustomType.Setter public Builder instanceType(String instanceType) { this.instanceType = Objects.requireNonNull(instanceType); return this; } + @CustomType.Setter public Builder kernelId(String kernelId) { this.kernelId = Objects.requireNonNull(kernelId); return this; } + @CustomType.Setter public Builder keyName(String keyName) { this.keyName = Objects.requireNonNull(keyName); return this; } + @CustomType.Setter public Builder latestVersion(Integer latestVersion) { this.latestVersion = Objects.requireNonNull(latestVersion); return this; } + @CustomType.Setter public Builder licenseSpecifications(List licenseSpecifications) { this.licenseSpecifications = Objects.requireNonNull(licenseSpecifications); return this; @@ -521,6 +462,7 @@ public Builder licenseSpecifications(List public Builder licenseSpecifications(GetLaunchTemplateLicenseSpecification... licenseSpecifications) { return licenseSpecifications(List.of(licenseSpecifications)); } + @CustomType.Setter public Builder maintenanceOptions(List maintenanceOptions) { this.maintenanceOptions = Objects.requireNonNull(maintenanceOptions); return this; @@ -528,6 +470,7 @@ public Builder maintenanceOptions(List maint public Builder maintenanceOptions(GetLaunchTemplateMaintenanceOption... maintenanceOptions) { return maintenanceOptions(List.of(maintenanceOptions)); } + @CustomType.Setter public Builder metadataOptions(List metadataOptions) { this.metadataOptions = Objects.requireNonNull(metadataOptions); return this; @@ -535,6 +478,7 @@ public Builder metadataOptions(List metadataOpt public Builder metadataOptions(GetLaunchTemplateMetadataOption... metadataOptions) { return metadataOptions(List.of(metadataOptions)); } + @CustomType.Setter public Builder monitorings(List monitorings) { this.monitorings = Objects.requireNonNull(monitorings); return this; @@ -542,10 +486,12 @@ public Builder monitorings(List monitorings) { public Builder monitorings(GetLaunchTemplateMonitoring... monitorings) { return monitorings(List.of(monitorings)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder networkInterfaces(List networkInterfaces) { this.networkInterfaces = Objects.requireNonNull(networkInterfaces); return this; @@ -553,6 +499,7 @@ public Builder networkInterfaces(List network public Builder networkInterfaces(GetLaunchTemplateNetworkInterface... networkInterfaces) { return networkInterfaces(List.of(networkInterfaces)); } + @CustomType.Setter public Builder placements(List placements) { this.placements = Objects.requireNonNull(placements); return this; @@ -560,6 +507,7 @@ public Builder placements(List placements) { public Builder placements(GetLaunchTemplatePlacement... placements) { return placements(List.of(placements)); } + @CustomType.Setter public Builder privateDnsNameOptions(List privateDnsNameOptions) { this.privateDnsNameOptions = Objects.requireNonNull(privateDnsNameOptions); return this; @@ -567,10 +515,12 @@ public Builder privateDnsNameOptions(List public Builder privateDnsNameOptions(GetLaunchTemplatePrivateDnsNameOption... privateDnsNameOptions) { return privateDnsNameOptions(List.of(privateDnsNameOptions)); } + @CustomType.Setter public Builder ramDiskId(String ramDiskId) { this.ramDiskId = Objects.requireNonNull(ramDiskId); return this; } + @CustomType.Setter public Builder securityGroupNames(List securityGroupNames) { this.securityGroupNames = Objects.requireNonNull(securityGroupNames); return this; @@ -578,6 +528,7 @@ public Builder securityGroupNames(List securityGroupNames) { public Builder securityGroupNames(String... securityGroupNames) { return securityGroupNames(List.of(securityGroupNames)); } + @CustomType.Setter public Builder tagSpecifications(List tagSpecifications) { this.tagSpecifications = Objects.requireNonNull(tagSpecifications); return this; @@ -585,22 +536,66 @@ public Builder tagSpecifications(List tagSpec public Builder tagSpecifications(GetLaunchTemplateTagSpecification... tagSpecifications) { return tagSpecifications(List.of(tagSpecifications)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder userData(String userData) { this.userData = Objects.requireNonNull(userData); return this; } + @CustomType.Setter public Builder vpcSecurityGroupIds(List vpcSecurityGroupIds) { this.vpcSecurityGroupIds = Objects.requireNonNull(vpcSecurityGroupIds); return this; } public Builder vpcSecurityGroupIds(String... vpcSecurityGroupIds) { return vpcSecurityGroupIds(List.of(vpcSecurityGroupIds)); - } public GetLaunchTemplateResult build() { - return new GetLaunchTemplateResult(arn, blockDeviceMappings, capacityReservationSpecifications, cpuOptions, creditSpecifications, defaultVersion, description, disableApiStop, disableApiTermination, ebsOptimized, elasticGpuSpecifications, elasticInferenceAccelerators, enclaveOptions, filters, hibernationOptions, iamInstanceProfiles, id, imageId, instanceInitiatedShutdownBehavior, instanceMarketOptions, instanceRequirements, instanceType, kernelId, keyName, latestVersion, licenseSpecifications, maintenanceOptions, metadataOptions, monitorings, name, networkInterfaces, placements, privateDnsNameOptions, ramDiskId, securityGroupNames, tagSpecifications, tags, userData, vpcSecurityGroupIds); + } + public GetLaunchTemplateResult build() { + final var o = new GetLaunchTemplateResult(); + o.arn = arn; + o.blockDeviceMappings = blockDeviceMappings; + o.capacityReservationSpecifications = capacityReservationSpecifications; + o.cpuOptions = cpuOptions; + o.creditSpecifications = creditSpecifications; + o.defaultVersion = defaultVersion; + o.description = description; + o.disableApiStop = disableApiStop; + o.disableApiTermination = disableApiTermination; + o.ebsOptimized = ebsOptimized; + o.elasticGpuSpecifications = elasticGpuSpecifications; + o.elasticInferenceAccelerators = elasticInferenceAccelerators; + o.enclaveOptions = enclaveOptions; + o.filters = filters; + o.hibernationOptions = hibernationOptions; + o.iamInstanceProfiles = iamInstanceProfiles; + o.id = id; + o.imageId = imageId; + o.instanceInitiatedShutdownBehavior = instanceInitiatedShutdownBehavior; + o.instanceMarketOptions = instanceMarketOptions; + o.instanceRequirements = instanceRequirements; + o.instanceType = instanceType; + o.kernelId = kernelId; + o.keyName = keyName; + o.latestVersion = latestVersion; + o.licenseSpecifications = licenseSpecifications; + o.maintenanceOptions = maintenanceOptions; + o.metadataOptions = metadataOptions; + o.monitorings = monitorings; + o.name = name; + o.networkInterfaces = networkInterfaces; + o.placements = placements; + o.privateDnsNameOptions = privateDnsNameOptions; + o.ramDiskId = ramDiskId; + o.securityGroupNames = securityGroupNames; + o.tagSpecifications = tagSpecifications; + o.tags = tags; + o.userData = userData; + o.vpcSecurityGroupIds = vpcSecurityGroupIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateTagSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateTagSpecification.java index e6e0a075199..52345d96d82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateTagSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLaunchTemplateTagSpecification.java @@ -10,21 +10,14 @@ @CustomType public final class GetLaunchTemplateTagSpecification { - private final String resourceType; + private String resourceType; /** * @return A map of tags, each pair of which must exactly match a pair on the desired Launch Template. * */ - private final Map tags; - - @CustomType.Constructor - private GetLaunchTemplateTagSpecification( - @CustomType.Parameter("resourceType") String resourceType, - @CustomType.Parameter("tags") Map tags) { - this.resourceType = resourceType; - this.tags = tags; - } + private Map tags; + private GetLaunchTemplateTagSpecification() {} public String resourceType() { return this.resourceType; } @@ -43,30 +36,32 @@ public static Builder builder() { public static Builder builder(GetLaunchTemplateTagSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String resourceType; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchTemplateTagSpecification defaults) { Objects.requireNonNull(defaults); this.resourceType = defaults.resourceType; this.tags = defaults.tags; } + @CustomType.Setter public Builder resourceType(String resourceType) { this.resourceType = Objects.requireNonNull(resourceType); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetLaunchTemplateTagSpecification build() { - return new GetLaunchTemplateTagSpecification(resourceType, tags); + } + public GetLaunchTemplateTagSpecification build() { + final var o = new GetLaunchTemplateTagSpecification(); + o.resourceType = resourceType; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayFilter.java index f1fd9a08c42..478cebdd3dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayFilter.java @@ -15,22 +15,15 @@ public final class GetLocalGatewayFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLocalGateways.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A Local Gateway will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetLocalGatewayFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetLocalGatewayFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLocalGateways.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetLocalGatewayFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewayFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetLocalGatewayFilter build() { - return new GetLocalGatewayFilter(name, values); + } + public GetLocalGatewayFilter build() { + final var o = new GetLocalGatewayFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayResult.java index f79f355742f..b4d95957aa6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayResult.java @@ -13,41 +13,26 @@ @CustomType public final class GetLocalGatewayResult { - private final @Nullable List filters; - private final String id; + private @Nullable List filters; + private String id; /** * @return Amazon Resource Name (ARN) of Outpost * */ - private final String outpostArn; + private String outpostArn; /** * @return AWS account identifier that owns the Local Gateway. * */ - private final String ownerId; + private String ownerId; /** * @return State of the local gateway. * */ - private final String state; - private final Map tags; - - @CustomType.Constructor - private GetLocalGatewayResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("outpostArn") String outpostArn, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("tags") Map tags) { - this.filters = filters; - this.id = id; - this.outpostArn = outpostArn; - this.ownerId = ownerId; - this.state = state; - this.tags = tags; - } + private String state; + private Map tags; + private GetLocalGatewayResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -86,7 +71,7 @@ public static Builder builder() { public static Builder builder(GetLocalGatewayResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; @@ -94,11 +79,7 @@ public static final class Builder { private String ownerId; private String state; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewayResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -109,6 +90,7 @@ public Builder(GetLocalGatewayResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -116,27 +98,40 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetLocalGatewayFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder outpostArn(String outpostArn) { this.outpostArn = Objects.requireNonNull(outpostArn); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetLocalGatewayResult build() { - return new GetLocalGatewayResult(filters, id, outpostArn, ownerId, state, tags); + } + public GetLocalGatewayResult build() { + final var o = new GetLocalGatewayResult(); + o.filters = filters; + o.id = id; + o.outpostArn = outpostArn; + o.ownerId = ownerId; + o.state = state; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTableFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTableFilter.java index 73e93a54d67..8c22b79fc01 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTableFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTableFilter.java @@ -15,22 +15,15 @@ public final class GetLocalGatewayRouteTableFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLocalGatewayRouteTables.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A local gateway route table will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetLocalGatewayRouteTableFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetLocalGatewayRouteTableFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLocalGatewayRouteTables.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetLocalGatewayRouteTableFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewayRouteTableFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetLocalGatewayRouteTableFilter build() { - return new GetLocalGatewayRouteTableFilter(name, values); + } + public GetLocalGatewayRouteTableFilter build() { + final var o = new GetLocalGatewayRouteTableFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTableResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTableResult.java index 086e4e08e7f..7d807c6ee47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTableResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTableResult.java @@ -13,36 +13,19 @@ @CustomType public final class GetLocalGatewayRouteTableResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String localGatewayId; - private final String localGatewayRouteTableId; - private final String outpostArn; - private final String state; - private final Map tags; - - @CustomType.Constructor - private GetLocalGatewayRouteTableResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("localGatewayId") String localGatewayId, - @CustomType.Parameter("localGatewayRouteTableId") String localGatewayRouteTableId, - @CustomType.Parameter("outpostArn") String outpostArn, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("tags") Map tags) { - this.filters = filters; - this.id = id; - this.localGatewayId = localGatewayId; - this.localGatewayRouteTableId = localGatewayRouteTableId; - this.outpostArn = outpostArn; - this.state = state; - this.tags = tags; - } + private String id; + private String localGatewayId; + private String localGatewayRouteTableId; + private String outpostArn; + private String state; + private Map tags; + private GetLocalGatewayRouteTableResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -76,7 +59,7 @@ public static Builder builder() { public static Builder builder(GetLocalGatewayRouteTableResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; @@ -85,11 +68,7 @@ public static final class Builder { private String outpostArn; private String state; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewayRouteTableResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -101,6 +80,7 @@ public Builder(GetLocalGatewayRouteTableResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -108,31 +88,46 @@ public Builder filters(@Nullable List filters) public Builder filters(GetLocalGatewayRouteTableFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder localGatewayId(String localGatewayId) { this.localGatewayId = Objects.requireNonNull(localGatewayId); return this; } + @CustomType.Setter public Builder localGatewayRouteTableId(String localGatewayRouteTableId) { this.localGatewayRouteTableId = Objects.requireNonNull(localGatewayRouteTableId); return this; } + @CustomType.Setter public Builder outpostArn(String outpostArn) { this.outpostArn = Objects.requireNonNull(outpostArn); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetLocalGatewayRouteTableResult build() { - return new GetLocalGatewayRouteTableResult(filters, id, localGatewayId, localGatewayRouteTableId, outpostArn, state, tags); + } + public GetLocalGatewayRouteTableResult build() { + final var o = new GetLocalGatewayRouteTableResult(); + o.filters = filters; + o.id = id; + o.localGatewayId = localGatewayId; + o.localGatewayRouteTableId = localGatewayRouteTableId; + o.outpostArn = outpostArn; + o.state = state; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTablesFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTablesFilter.java index b3ac759fa98..808cef14f63 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTablesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTablesFilter.java @@ -15,22 +15,15 @@ public final class GetLocalGatewayRouteTablesFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLocalGatewayRouteTables.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A Local Gateway Route Table will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetLocalGatewayRouteTablesFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetLocalGatewayRouteTablesFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLocalGatewayRouteTables.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetLocalGatewayRouteTablesFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewayRouteTablesFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetLocalGatewayRouteTablesFilter build() { - return new GetLocalGatewayRouteTablesFilter(name, values); + } + public GetLocalGatewayRouteTablesFilter build() { + final var o = new GetLocalGatewayRouteTablesFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTablesResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTablesResult.java index 6264f6cdc1b..c70d8ad2ffd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTablesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayRouteTablesResult.java @@ -13,31 +13,20 @@ @CustomType public final class GetLocalGatewayRouteTablesResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of Local Gateway Route Table identifiers * */ - private final List ids; - private final Map tags; - - @CustomType.Constructor - private GetLocalGatewayRouteTablesResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") Map tags) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - } + private List ids; + private Map tags; + private GetLocalGatewayRouteTablesResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -66,17 +55,13 @@ public static Builder builder() { public static Builder builder(GetLocalGatewayRouteTablesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewayRouteTablesResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -85,6 +70,7 @@ public Builder(GetLocalGatewayRouteTablesResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -92,10 +78,12 @@ public Builder filters(@Nullable List filters) public Builder filters(GetLocalGatewayRouteTablesFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -103,11 +91,18 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetLocalGatewayRouteTablesResult build() { - return new GetLocalGatewayRouteTablesResult(filters, id, ids, tags); + } + public GetLocalGatewayRouteTablesResult build() { + final var o = new GetLocalGatewayRouteTablesResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceFilter.java index 980d0dbc4eb..9007104a993 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceFilter.java @@ -14,21 +14,14 @@ public final class GetLocalGatewayVirtualInterfaceFilter { * @return Name of the filter. * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetLocalGatewayVirtualInterfaceFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetLocalGatewayVirtualInterfaceFilter() {} /** * @return Name of the filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetLocalGatewayVirtualInterfaceFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewayVirtualInterfaceFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetLocalGatewayVirtualInterfaceFilter build() { - return new GetLocalGatewayVirtualInterfaceFilter(name, values); + } + public GetLocalGatewayVirtualInterfaceFilter build() { + final var o = new GetLocalGatewayVirtualInterfaceFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupFilter.java index 68334221964..88eba819efd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupFilter.java @@ -14,21 +14,14 @@ public final class GetLocalGatewayVirtualInterfaceGroupFilter { * @return Name of the filter. * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetLocalGatewayVirtualInterfaceGroupFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetLocalGatewayVirtualInterfaceGroupFilter() {} /** * @return Name of the filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetLocalGatewayVirtualInterfaceGroupFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewayVirtualInterfaceGroupFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetLocalGatewayVirtualInterfaceGroupFilter build() { - return new GetLocalGatewayVirtualInterfaceGroupFilter(name, values); + } + public GetLocalGatewayVirtualInterfaceGroupFilter build() { + final var o = new GetLocalGatewayVirtualInterfaceGroupFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupResult.java index b1dc26cb90b..5343dcbbf7e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupResult.java @@ -13,30 +13,17 @@ @CustomType public final class GetLocalGatewayVirtualInterfaceGroupResult { - private final @Nullable List filters; - private final String id; - private final String localGatewayId; + private @Nullable List filters; + private String id; + private String localGatewayId; /** * @return Set of EC2 Local Gateway Virtual Interface identifiers. * */ - private final List localGatewayVirtualInterfaceIds; - private final Map tags; - - @CustomType.Constructor - private GetLocalGatewayVirtualInterfaceGroupResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("localGatewayId") String localGatewayId, - @CustomType.Parameter("localGatewayVirtualInterfaceIds") List localGatewayVirtualInterfaceIds, - @CustomType.Parameter("tags") Map tags) { - this.filters = filters; - this.id = id; - this.localGatewayId = localGatewayId; - this.localGatewayVirtualInterfaceIds = localGatewayVirtualInterfaceIds; - this.tags = tags; - } + private List localGatewayVirtualInterfaceIds; + private Map tags; + private GetLocalGatewayVirtualInterfaceGroupResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -64,18 +51,14 @@ public static Builder builder() { public static Builder builder(GetLocalGatewayVirtualInterfaceGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private String localGatewayId; private List localGatewayVirtualInterfaceIds; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewayVirtualInterfaceGroupResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -85,6 +68,7 @@ public Builder(GetLocalGatewayVirtualInterfaceGroupResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -92,14 +76,17 @@ public Builder filters(@Nullable List localGatewayVirtualInterfaceIds) { this.localGatewayVirtualInterfaceIds = Objects.requireNonNull(localGatewayVirtualInterfaceIds); return this; @@ -107,11 +94,19 @@ public Builder localGatewayVirtualInterfaceIds(List localGatewayVirtualI public Builder localGatewayVirtualInterfaceIds(String... localGatewayVirtualInterfaceIds) { return localGatewayVirtualInterfaceIds(List.of(localGatewayVirtualInterfaceIds)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetLocalGatewayVirtualInterfaceGroupResult build() { - return new GetLocalGatewayVirtualInterfaceGroupResult(filters, id, localGatewayId, localGatewayVirtualInterfaceIds, tags); + } + public GetLocalGatewayVirtualInterfaceGroupResult build() { + final var o = new GetLocalGatewayVirtualInterfaceGroupResult(); + o.filters = filters; + o.id = id; + o.localGatewayId = localGatewayId; + o.localGatewayVirtualInterfaceIds = localGatewayVirtualInterfaceIds; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupsFilter.java index 45f3f88ea87..ee81f99d8e5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupsFilter.java @@ -14,21 +14,14 @@ public final class GetLocalGatewayVirtualInterfaceGroupsFilter { * @return Name of the filter. * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetLocalGatewayVirtualInterfaceGroupsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetLocalGatewayVirtualInterfaceGroupsFilter() {} /** * @return Name of the filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetLocalGatewayVirtualInterfaceGroupsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewayVirtualInterfaceGroupsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetLocalGatewayVirtualInterfaceGroupsFilter build() { - return new GetLocalGatewayVirtualInterfaceGroupsFilter(name, values); + } + public GetLocalGatewayVirtualInterfaceGroupsFilter build() { + final var o = new GetLocalGatewayVirtualInterfaceGroupsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupsResult.java index ef9056603bc..e40d92f8535 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceGroupsResult.java @@ -13,38 +13,25 @@ @CustomType public final class GetLocalGatewayVirtualInterfaceGroupsResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of EC2 Local Gateway Virtual Interface Group identifiers. * */ - private final List ids; + private List ids; /** * @return Set of EC2 Local Gateway Virtual Interface identifiers. * */ - private final List localGatewayVirtualInterfaceIds; - private final Map tags; - - @CustomType.Constructor - private GetLocalGatewayVirtualInterfaceGroupsResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("localGatewayVirtualInterfaceIds") List localGatewayVirtualInterfaceIds, - @CustomType.Parameter("tags") Map tags) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.localGatewayVirtualInterfaceIds = localGatewayVirtualInterfaceIds; - this.tags = tags; - } + private List localGatewayVirtualInterfaceIds; + private Map tags; + private GetLocalGatewayVirtualInterfaceGroupsResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -80,18 +67,14 @@ public static Builder builder() { public static Builder builder(GetLocalGatewayVirtualInterfaceGroupsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private List localGatewayVirtualInterfaceIds; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewayVirtualInterfaceGroupsResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -101,6 +84,7 @@ public Builder(GetLocalGatewayVirtualInterfaceGroupsResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -108,10 +92,12 @@ public Builder filters(@Nullable List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -119,6 +105,7 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder localGatewayVirtualInterfaceIds(List localGatewayVirtualInterfaceIds) { this.localGatewayVirtualInterfaceIds = Objects.requireNonNull(localGatewayVirtualInterfaceIds); return this; @@ -126,11 +113,19 @@ public Builder localGatewayVirtualInterfaceIds(List localGatewayVirtualI public Builder localGatewayVirtualInterfaceIds(String... localGatewayVirtualInterfaceIds) { return localGatewayVirtualInterfaceIds(List.of(localGatewayVirtualInterfaceIds)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetLocalGatewayVirtualInterfaceGroupsResult build() { - return new GetLocalGatewayVirtualInterfaceGroupsResult(filters, id, ids, localGatewayVirtualInterfaceIds, tags); + } + public GetLocalGatewayVirtualInterfaceGroupsResult build() { + final var o = new GetLocalGatewayVirtualInterfaceGroupsResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.localGatewayVirtualInterfaceIds = localGatewayVirtualInterfaceIds; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceResult.java index 52c495edb9a..13ec3b13063 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewayVirtualInterfaceResult.java @@ -14,65 +14,42 @@ @CustomType public final class GetLocalGatewayVirtualInterfaceResult { - private final @Nullable List filters; - private final String id; + private @Nullable List filters; + private String id; /** * @return Local address. * */ - private final String localAddress; + private String localAddress; /** * @return Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway. * */ - private final Integer localBgpAsn; + private Integer localBgpAsn; /** * @return Identifier of the EC2 Local Gateway. * */ - private final String localGatewayId; - private final List localGatewayVirtualInterfaceIds; + private String localGatewayId; + private List localGatewayVirtualInterfaceIds; /** * @return Peer address. * */ - private final String peerAddress; + private String peerAddress; /** * @return Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer. * */ - private final Integer peerBgpAsn; - private final Map tags; + private Integer peerBgpAsn; + private Map tags; /** * @return Virtual Local Area Network. * */ - private final Integer vlan; - - @CustomType.Constructor - private GetLocalGatewayVirtualInterfaceResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("localAddress") String localAddress, - @CustomType.Parameter("localBgpAsn") Integer localBgpAsn, - @CustomType.Parameter("localGatewayId") String localGatewayId, - @CustomType.Parameter("localGatewayVirtualInterfaceIds") List localGatewayVirtualInterfaceIds, - @CustomType.Parameter("peerAddress") String peerAddress, - @CustomType.Parameter("peerBgpAsn") Integer peerBgpAsn, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vlan") Integer vlan) { - this.filters = filters; - this.id = id; - this.localAddress = localAddress; - this.localBgpAsn = localBgpAsn; - this.localGatewayId = localGatewayId; - this.localGatewayVirtualInterfaceIds = localGatewayVirtualInterfaceIds; - this.peerAddress = peerAddress; - this.peerBgpAsn = peerBgpAsn; - this.tags = tags; - this.vlan = vlan; - } + private Integer vlan; + private GetLocalGatewayVirtualInterfaceResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -135,7 +112,7 @@ public static Builder builder() { public static Builder builder(GetLocalGatewayVirtualInterfaceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; @@ -147,11 +124,7 @@ public static final class Builder { private Integer peerBgpAsn; private Map tags; private Integer vlan; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewayVirtualInterfaceResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -166,6 +139,7 @@ public Builder(GetLocalGatewayVirtualInterfaceResult defaults) { this.vlan = defaults.vlan; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -173,22 +147,27 @@ public Builder filters(@Nullable List fil public Builder filters(GetLocalGatewayVirtualInterfaceFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder localAddress(String localAddress) { this.localAddress = Objects.requireNonNull(localAddress); return this; } + @CustomType.Setter public Builder localBgpAsn(Integer localBgpAsn) { this.localBgpAsn = Objects.requireNonNull(localBgpAsn); return this; } + @CustomType.Setter public Builder localGatewayId(String localGatewayId) { this.localGatewayId = Objects.requireNonNull(localGatewayId); return this; } + @CustomType.Setter public Builder localGatewayVirtualInterfaceIds(List localGatewayVirtualInterfaceIds) { this.localGatewayVirtualInterfaceIds = Objects.requireNonNull(localGatewayVirtualInterfaceIds); return this; @@ -196,23 +175,39 @@ public Builder localGatewayVirtualInterfaceIds(List localGatewayVirtualI public Builder localGatewayVirtualInterfaceIds(String... localGatewayVirtualInterfaceIds) { return localGatewayVirtualInterfaceIds(List.of(localGatewayVirtualInterfaceIds)); } + @CustomType.Setter public Builder peerAddress(String peerAddress) { this.peerAddress = Objects.requireNonNull(peerAddress); return this; } + @CustomType.Setter public Builder peerBgpAsn(Integer peerBgpAsn) { this.peerBgpAsn = Objects.requireNonNull(peerBgpAsn); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vlan(Integer vlan) { this.vlan = Objects.requireNonNull(vlan); return this; - } public GetLocalGatewayVirtualInterfaceResult build() { - return new GetLocalGatewayVirtualInterfaceResult(filters, id, localAddress, localBgpAsn, localGatewayId, localGatewayVirtualInterfaceIds, peerAddress, peerBgpAsn, tags, vlan); + } + public GetLocalGatewayVirtualInterfaceResult build() { + final var o = new GetLocalGatewayVirtualInterfaceResult(); + o.filters = filters; + o.id = id; + o.localAddress = localAddress; + o.localBgpAsn = localBgpAsn; + o.localGatewayId = localGatewayId; + o.localGatewayVirtualInterfaceIds = localGatewayVirtualInterfaceIds; + o.peerAddress = peerAddress; + o.peerBgpAsn = peerBgpAsn; + o.tags = tags; + o.vlan = vlan; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewaysFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewaysFilter.java index 3b92f967d5f..9e1497b6dc9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewaysFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewaysFilter.java @@ -15,22 +15,15 @@ public final class GetLocalGatewaysFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLocalGateways.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A Local Gateway will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetLocalGatewaysFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetLocalGatewaysFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLocalGateways.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetLocalGatewaysFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewaysFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetLocalGatewaysFilter build() { - return new GetLocalGatewaysFilter(name, values); + } + public GetLocalGatewaysFilter build() { + final var o = new GetLocalGatewaysFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewaysResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewaysResult.java index ada2b694185..f4c15cb59ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewaysResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetLocalGatewaysResult.java @@ -13,31 +13,20 @@ @CustomType public final class GetLocalGatewaysResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of all the Local Gateway identifiers * */ - private final List ids; - private final Map tags; - - @CustomType.Constructor - private GetLocalGatewaysResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") Map tags) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - } + private List ids; + private Map tags; + private GetLocalGatewaysResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -66,17 +55,13 @@ public static Builder builder() { public static Builder builder(GetLocalGatewaysResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalGatewaysResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -85,6 +70,7 @@ public Builder(GetLocalGatewaysResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -92,10 +78,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetLocalGatewaysFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -103,11 +91,18 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetLocalGatewaysResult build() { - return new GetLocalGatewaysResult(filters, id, ids, tags); + } + public GetLocalGatewaysResult build() { + final var o = new GetLocalGatewaysResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetManagedPrefixListEntry.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetManagedPrefixListEntry.java index 3febf07ae4a..1d9ca47def5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetManagedPrefixListEntry.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetManagedPrefixListEntry.java @@ -9,17 +9,10 @@ @CustomType public final class GetManagedPrefixListEntry { - private final String cidr; - private final String description; - - @CustomType.Constructor - private GetManagedPrefixListEntry( - @CustomType.Parameter("cidr") String cidr, - @CustomType.Parameter("description") String description) { - this.cidr = cidr; - this.description = description; - } + private String cidr; + private String description; + private GetManagedPrefixListEntry() {} public String cidr() { return this.cidr; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetManagedPrefixListEntry defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cidr; private String description; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetManagedPrefixListEntry defaults) { Objects.requireNonNull(defaults); this.cidr = defaults.cidr; this.description = defaults.description; } + @CustomType.Setter public Builder cidr(String cidr) { this.cidr = Objects.requireNonNull(cidr); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; - } public GetManagedPrefixListEntry build() { - return new GetManagedPrefixListEntry(cidr, description); + } + public GetManagedPrefixListEntry build() { + final var o = new GetManagedPrefixListEntry(); + o.cidr = cidr; + o.description = description; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetManagedPrefixListFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetManagedPrefixListFilter.java index b22bdb03bb1..67f21bc5c5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetManagedPrefixListFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetManagedPrefixListFilter.java @@ -14,21 +14,14 @@ public final class GetManagedPrefixListFilter { * @return The name of the filter field. Valid values can be found in the EC2 [DescribeManagedPrefixLists](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeManagedPrefixLists.html) API Reference. * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetManagedPrefixListFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetManagedPrefixListFilter() {} /** * @return The name of the filter field. Valid values can be found in the EC2 [DescribeManagedPrefixLists](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeManagedPrefixLists.html) API Reference. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetManagedPrefixListFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetManagedPrefixListFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetManagedPrefixListFilter build() { - return new GetManagedPrefixListFilter(name, values); + } + public GetManagedPrefixListFilter build() { + final var o = new GetManagedPrefixListFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetManagedPrefixListResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetManagedPrefixListResult.java index 33fa5d4e554..87a2edcd264 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetManagedPrefixListResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetManagedPrefixListResult.java @@ -19,69 +19,46 @@ public final class GetManagedPrefixListResult { * @return The address family of the prefix list. Valid values are `IPv4` and `IPv6`. * */ - private final String addressFamily; + private String addressFamily; /** * @return The ARN of the selected prefix list. * */ - private final String arn; + private String arn; /** * @return The set of entries in this prefix list. Each entry is an object with `cidr` and `description`. * */ - private final List entries; - private final @Nullable List filters; + private List entries; + private @Nullable List filters; /** * @return The ID of the selected prefix list. * */ - private final String id; + private String id; /** * @return When then prefix list is managed, the maximum number of entries it supports, or null otherwise. * */ - private final Integer maxEntries; + private Integer maxEntries; /** * @return The name of the selected prefix list. * */ - private final String name; + private String name; /** * @return The Account ID of the owner of a customer-managed prefix list, or `AWS` otherwise. * */ - private final String ownerId; + private String ownerId; /** * @return A map of tags assigned to the resource. * */ - private final Map tags; - private final Integer version; - - @CustomType.Constructor - private GetManagedPrefixListResult( - @CustomType.Parameter("addressFamily") String addressFamily, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("entries") List entries, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("maxEntries") Integer maxEntries, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("version") Integer version) { - this.addressFamily = addressFamily; - this.arn = arn; - this.entries = entries; - this.filters = filters; - this.id = id; - this.maxEntries = maxEntries; - this.name = name; - this.ownerId = ownerId; - this.tags = tags; - this.version = version; - } + private Map tags; + private Integer version; + private GetManagedPrefixListResult() {} /** * @return The address family of the prefix list. Valid values are `IPv4` and `IPv6`. * @@ -152,7 +129,7 @@ public static Builder builder() { public static Builder builder(GetManagedPrefixListResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String addressFamily; private String arn; @@ -164,11 +141,7 @@ public static final class Builder { private String ownerId; private Map tags; private Integer version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetManagedPrefixListResult defaults) { Objects.requireNonNull(defaults); this.addressFamily = defaults.addressFamily; @@ -183,14 +156,17 @@ public Builder(GetManagedPrefixListResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder addressFamily(String addressFamily) { this.addressFamily = Objects.requireNonNull(addressFamily); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder entries(List entries) { this.entries = Objects.requireNonNull(entries); return this; @@ -198,6 +174,7 @@ public Builder entries(List entries) { public Builder entries(GetManagedPrefixListEntry... entries) { return entries(List.of(entries)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -205,31 +182,49 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetManagedPrefixListFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder maxEntries(Integer maxEntries) { this.maxEntries = Objects.requireNonNull(maxEntries); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder version(Integer version) { this.version = Objects.requireNonNull(version); return this; - } public GetManagedPrefixListResult build() { - return new GetManagedPrefixListResult(addressFamily, arn, entries, filters, id, maxEntries, name, ownerId, tags, version); + } + public GetManagedPrefixListResult build() { + final var o = new GetManagedPrefixListResult(); + o.addressFamily = addressFamily; + o.arn = arn; + o.entries = entries; + o.filters = filters; + o.id = id; + o.maxEntries = maxEntries; + o.name = name; + o.ownerId = ownerId; + o.tags = tags; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewayFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewayFilter.java index bc734110e47..decb2339123 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewayFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewayFilter.java @@ -15,22 +15,15 @@ public final class GetNatGatewayFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeNatGateways.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * An Nat Gateway will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetNatGatewayFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetNatGatewayFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeNatGateways.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetNatGatewayFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNatGatewayFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetNatGatewayFilter build() { - return new GetNatGatewayFilter(name, values); + } + public GetNatGatewayFilter build() { + final var o = new GetNatGatewayFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewayResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewayResult.java index 4b3a7da41d4..fefd9d0a129 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewayResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewayResult.java @@ -17,60 +17,35 @@ public final class GetNatGatewayResult { * @return The Id of the EIP allocated to the selected Nat Gateway. * */ - private final String allocationId; + private String allocationId; /** * @return The connectivity type of the NAT Gateway. * */ - private final String connectivityType; - private final @Nullable List filters; - private final String id; + private String connectivityType; + private @Nullable List filters; + private String id; /** * @return The Id of the ENI allocated to the selected Nat Gateway. * */ - private final String networkInterfaceId; + private String networkInterfaceId; /** * @return The private Ip address of the selected Nat Gateway. * */ - private final String privateIp; + private String privateIp; /** * @return The public Ip (EIP) address of the selected Nat Gateway. * */ - private final String publicIp; - private final String state; - private final String subnetId; - private final Map tags; - private final String vpcId; - - @CustomType.Constructor - private GetNatGatewayResult( - @CustomType.Parameter("allocationId") String allocationId, - @CustomType.Parameter("connectivityType") String connectivityType, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("networkInterfaceId") String networkInterfaceId, - @CustomType.Parameter("privateIp") String privateIp, - @CustomType.Parameter("publicIp") String publicIp, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("subnetId") String subnetId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId) { - this.allocationId = allocationId; - this.connectivityType = connectivityType; - this.filters = filters; - this.id = id; - this.networkInterfaceId = networkInterfaceId; - this.privateIp = privateIp; - this.publicIp = publicIp; - this.state = state; - this.subnetId = subnetId; - this.tags = tags; - this.vpcId = vpcId; - } + private String publicIp; + private String state; + private String subnetId; + private Map tags; + private String vpcId; + private GetNatGatewayResult() {} /** * @return The Id of the EIP allocated to the selected Nat Gateway. * @@ -132,7 +107,7 @@ public static Builder builder() { public static Builder builder(GetNatGatewayResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String allocationId; private String connectivityType; @@ -145,11 +120,7 @@ public static final class Builder { private String subnetId; private Map tags; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNatGatewayResult defaults) { Objects.requireNonNull(defaults); this.allocationId = defaults.allocationId; @@ -165,14 +136,17 @@ public Builder(GetNatGatewayResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder allocationId(String allocationId) { this.allocationId = Objects.requireNonNull(allocationId); return this; } + @CustomType.Setter public Builder connectivityType(String connectivityType) { this.connectivityType = Objects.requireNonNull(connectivityType); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -180,39 +154,60 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetNatGatewayFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = Objects.requireNonNull(networkInterfaceId); return this; } + @CustomType.Setter public Builder privateIp(String privateIp) { this.privateIp = Objects.requireNonNull(privateIp); return this; } + @CustomType.Setter public Builder publicIp(String publicIp) { this.publicIp = Objects.requireNonNull(publicIp); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetNatGatewayResult build() { - return new GetNatGatewayResult(allocationId, connectivityType, filters, id, networkInterfaceId, privateIp, publicIp, state, subnetId, tags, vpcId); + } + public GetNatGatewayResult build() { + final var o = new GetNatGatewayResult(); + o.allocationId = allocationId; + o.connectivityType = connectivityType; + o.filters = filters; + o.id = id; + o.networkInterfaceId = networkInterfaceId; + o.privateIp = privateIp; + o.publicIp = publicIp; + o.state = state; + o.subnetId = subnetId; + o.tags = tags; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewaysFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewaysFilter.java index 8aee66f9ad4..fa35f8b497f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewaysFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewaysFilter.java @@ -15,22 +15,15 @@ public final class GetNatGatewaysFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeNatGateways.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A Nat Gateway will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetNatGatewaysFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetNatGatewaysFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeNatGateways.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetNatGatewaysFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNatGatewaysFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetNatGatewaysFilter build() { - return new GetNatGatewaysFilter(name, values); + } + public GetNatGatewaysFilter build() { + final var o = new GetNatGatewaysFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewaysResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewaysResult.java index 0f43c880fe8..35ef85c5d42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewaysResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNatGatewaysResult.java @@ -14,34 +14,21 @@ @CustomType public final class GetNatGatewaysResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A list of all the NAT gateway ids found. * */ - private final List ids; - private final Map tags; - private final @Nullable String vpcId; - - @CustomType.Constructor - private GetNatGatewaysResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - this.vpcId = vpcId; - } + private List ids; + private Map tags; + private @Nullable String vpcId; + private GetNatGatewaysResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -73,18 +60,14 @@ public static Builder builder() { public static Builder builder(GetNatGatewaysResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private Map tags; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNatGatewaysResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -94,6 +77,7 @@ public Builder(GetNatGatewaysResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -101,10 +85,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetNatGatewaysFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -112,15 +98,24 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(@Nullable String vpcId) { this.vpcId = vpcId; return this; - } public GetNatGatewaysResult build() { - return new GetNatGatewaysResult(filters, id, ids, tags, vpcId); + } + public GetNatGatewaysResult build() { + final var o = new GetNatGatewaysResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkAclsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkAclsFilter.java index 77ace200d22..8c815a47e3a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkAclsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkAclsFilter.java @@ -15,22 +15,15 @@ public final class GetNetworkAclsFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeNetworkAcls.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A VPC will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetNetworkAclsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetNetworkAclsFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeNetworkAcls.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetNetworkAclsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNetworkAclsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetNetworkAclsFilter build() { - return new GetNetworkAclsFilter(name, values); + } + public GetNetworkAclsFilter build() { + final var o = new GetNetworkAclsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkAclsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkAclsResult.java index 4e8ed14901a..72a920aeaff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkAclsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkAclsResult.java @@ -14,34 +14,21 @@ @CustomType public final class GetNetworkAclsResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A list of all the network ACL ids found. * */ - private final List ids; - private final Map tags; - private final @Nullable String vpcId; - - @CustomType.Constructor - private GetNetworkAclsResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - this.vpcId = vpcId; - } + private List ids; + private Map tags; + private @Nullable String vpcId; + private GetNetworkAclsResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -73,18 +60,14 @@ public static Builder builder() { public static Builder builder(GetNetworkAclsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private Map tags; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNetworkAclsResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -94,6 +77,7 @@ public Builder(GetNetworkAclsResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -101,10 +85,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetNetworkAclsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -112,15 +98,24 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(@Nullable String vpcId) { this.vpcId = vpcId; return this; - } public GetNetworkAclsResult build() { - return new GetNetworkAclsResult(filters, id, ids, tags, vpcId); + } + public GetNetworkAclsResult build() { + final var o = new GetNetworkAclsResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceAssociation.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceAssociation.java index f13dbaa366c..57ae6115d1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceAssociation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceAssociation.java @@ -13,56 +13,39 @@ public final class GetNetworkInterfaceAssociation { * @return The allocation ID. * */ - private final String allocationId; + private String allocationId; /** * @return The association ID. * */ - private final String associationId; + private String associationId; /** * @return The carrier IP address associated with the network interface. This attribute is only set when the network interface is in a subnet which is associated with a Wavelength Zone. * */ - private final String carrierIp; + private String carrierIp; /** * @return The customer-owned IP address. * */ - private final String customerOwnedIp; + private String customerOwnedIp; /** * @return The ID of the Elastic IP address owner. * */ - private final String ipOwnerId; + private String ipOwnerId; /** * @return The public DNS name. * */ - private final String publicDnsName; + private String publicDnsName; /** * @return The address of the Elastic IP address bound to the network interface. * */ - private final String publicIp; - - @CustomType.Constructor - private GetNetworkInterfaceAssociation( - @CustomType.Parameter("allocationId") String allocationId, - @CustomType.Parameter("associationId") String associationId, - @CustomType.Parameter("carrierIp") String carrierIp, - @CustomType.Parameter("customerOwnedIp") String customerOwnedIp, - @CustomType.Parameter("ipOwnerId") String ipOwnerId, - @CustomType.Parameter("publicDnsName") String publicDnsName, - @CustomType.Parameter("publicIp") String publicIp) { - this.allocationId = allocationId; - this.associationId = associationId; - this.carrierIp = carrierIp; - this.customerOwnedIp = customerOwnedIp; - this.ipOwnerId = ipOwnerId; - this.publicDnsName = publicDnsName; - this.publicIp = publicIp; - } + private String publicIp; + private GetNetworkInterfaceAssociation() {} /** * @return The allocation ID. * @@ -120,7 +103,7 @@ public static Builder builder() { public static Builder builder(GetNetworkInterfaceAssociation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String allocationId; private String associationId; @@ -129,11 +112,7 @@ public static final class Builder { private String ipOwnerId; private String publicDnsName; private String publicIp; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNetworkInterfaceAssociation defaults) { Objects.requireNonNull(defaults); this.allocationId = defaults.allocationId; @@ -145,35 +124,51 @@ public Builder(GetNetworkInterfaceAssociation defaults) { this.publicIp = defaults.publicIp; } + @CustomType.Setter public Builder allocationId(String allocationId) { this.allocationId = Objects.requireNonNull(allocationId); return this; } + @CustomType.Setter public Builder associationId(String associationId) { this.associationId = Objects.requireNonNull(associationId); return this; } + @CustomType.Setter public Builder carrierIp(String carrierIp) { this.carrierIp = Objects.requireNonNull(carrierIp); return this; } + @CustomType.Setter public Builder customerOwnedIp(String customerOwnedIp) { this.customerOwnedIp = Objects.requireNonNull(customerOwnedIp); return this; } + @CustomType.Setter public Builder ipOwnerId(String ipOwnerId) { this.ipOwnerId = Objects.requireNonNull(ipOwnerId); return this; } + @CustomType.Setter public Builder publicDnsName(String publicDnsName) { this.publicDnsName = Objects.requireNonNull(publicDnsName); return this; } + @CustomType.Setter public Builder publicIp(String publicIp) { this.publicIp = Objects.requireNonNull(publicIp); return this; - } public GetNetworkInterfaceAssociation build() { - return new GetNetworkInterfaceAssociation(allocationId, associationId, carrierIp, customerOwnedIp, ipOwnerId, publicDnsName, publicIp); + } + public GetNetworkInterfaceAssociation build() { + final var o = new GetNetworkInterfaceAssociation(); + o.allocationId = allocationId; + o.associationId = associationId; + o.carrierIp = carrierIp; + o.customerOwnedIp = customerOwnedIp; + o.ipOwnerId = ipOwnerId; + o.publicDnsName = publicDnsName; + o.publicIp = publicIp; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceAttachment.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceAttachment.java index 8342d9c0b29..bfacd7cca9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceAttachment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceAttachment.java @@ -10,23 +10,12 @@ @CustomType public final class GetNetworkInterfaceAttachment { - private final String attachmentId; - private final Integer deviceIndex; - private final String instanceId; - private final String instanceOwnerId; - - @CustomType.Constructor - private GetNetworkInterfaceAttachment( - @CustomType.Parameter("attachmentId") String attachmentId, - @CustomType.Parameter("deviceIndex") Integer deviceIndex, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("instanceOwnerId") String instanceOwnerId) { - this.attachmentId = attachmentId; - this.deviceIndex = deviceIndex; - this.instanceId = instanceId; - this.instanceOwnerId = instanceOwnerId; - } + private String attachmentId; + private Integer deviceIndex; + private String instanceId; + private String instanceOwnerId; + private GetNetworkInterfaceAttachment() {} public String attachmentId() { return this.attachmentId; } @@ -47,17 +36,13 @@ public static Builder builder() { public static Builder builder(GetNetworkInterfaceAttachment defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String attachmentId; private Integer deviceIndex; private String instanceId; private String instanceOwnerId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNetworkInterfaceAttachment defaults) { Objects.requireNonNull(defaults); this.attachmentId = defaults.attachmentId; @@ -66,23 +51,33 @@ public Builder(GetNetworkInterfaceAttachment defaults) { this.instanceOwnerId = defaults.instanceOwnerId; } + @CustomType.Setter public Builder attachmentId(String attachmentId) { this.attachmentId = Objects.requireNonNull(attachmentId); return this; } + @CustomType.Setter public Builder deviceIndex(Integer deviceIndex) { this.deviceIndex = Objects.requireNonNull(deviceIndex); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder instanceOwnerId(String instanceOwnerId) { this.instanceOwnerId = Objects.requireNonNull(instanceOwnerId); return this; - } public GetNetworkInterfaceAttachment build() { - return new GetNetworkInterfaceAttachment(attachmentId, deviceIndex, instanceId, instanceOwnerId); + } + public GetNetworkInterfaceAttachment build() { + final var o = new GetNetworkInterfaceAttachment(); + o.attachmentId = attachmentId; + o.deviceIndex = deviceIndex; + o.instanceId = instanceId; + o.instanceOwnerId = instanceOwnerId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceFilter.java index 62b0ba241b9..f263a906e1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetNetworkInterfaceFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetNetworkInterfaceFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetNetworkInterfaceFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetNetworkInterfaceFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNetworkInterfaceFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetNetworkInterfaceFilter build() { - return new GetNetworkInterfaceFilter(name, values); + } + public GetNetworkInterfaceFilter build() { + final var o = new GetNetworkInterfaceFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceResult.java index 8dd37dcd55e..1a78cb56d51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfaceResult.java @@ -19,135 +19,92 @@ public final class GetNetworkInterfaceResult { * @return The ARN of the network interface. * */ - private final String arn; + private String arn; /** * @return The association information for an Elastic IP address (IPv4) associated with the network interface. See supported fields below. * */ - private final List associations; - private final List attachments; + private List associations; + private List attachments; /** * @return The Availability Zone. * */ - private final String availabilityZone; + private String availabilityZone; /** * @return Description of the network interface. * */ - private final String description; - private final @Nullable List filters; - private final String id; + private String description; + private @Nullable List filters; + private String id; /** * @return The type of interface. * */ - private final String interfaceType; + private String interfaceType; /** * @return List of IPv6 addresses to assign to the ENI. * */ - private final List ipv6Addresses; + private List ipv6Addresses; /** * @return The MAC address. * */ - private final String macAddress; + private String macAddress; /** * @return The Amazon Resource Name (ARN) of the Outpost. * */ - private final String outpostArn; + private String outpostArn; /** * @return The AWS account ID of the owner of the network interface. * */ - private final String ownerId; + private String ownerId; /** * @return The private DNS name. * */ - private final String privateDnsName; + private String privateDnsName; /** * @return The private IPv4 address of the network interface within the subnet. * */ - private final String privateIp; + private String privateIp; /** * @return The private IPv4 addresses associated with the network interface. * */ - private final List privateIps; + private List privateIps; /** * @return The ID of the entity that launched the instance on your behalf. * */ - private final String requesterId; + private String requesterId; /** * @return The list of security groups for the network interface. * */ - private final List securityGroups; + private List securityGroups; /** * @return The ID of the subnet. * */ - private final String subnetId; + private String subnetId; /** * @return Any tags assigned to the network interface. * */ - private final Map tags; + private Map tags; /** * @return The ID of the VPC. * */ - private final String vpcId; - - @CustomType.Constructor - private GetNetworkInterfaceResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("associations") List associations, - @CustomType.Parameter("attachments") List attachments, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("interfaceType") String interfaceType, - @CustomType.Parameter("ipv6Addresses") List ipv6Addresses, - @CustomType.Parameter("macAddress") String macAddress, - @CustomType.Parameter("outpostArn") String outpostArn, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("privateDnsName") String privateDnsName, - @CustomType.Parameter("privateIp") String privateIp, - @CustomType.Parameter("privateIps") List privateIps, - @CustomType.Parameter("requesterId") String requesterId, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("subnetId") String subnetId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.associations = associations; - this.attachments = attachments; - this.availabilityZone = availabilityZone; - this.description = description; - this.filters = filters; - this.id = id; - this.interfaceType = interfaceType; - this.ipv6Addresses = ipv6Addresses; - this.macAddress = macAddress; - this.outpostArn = outpostArn; - this.ownerId = ownerId; - this.privateDnsName = privateDnsName; - this.privateIp = privateIp; - this.privateIps = privateIps; - this.requesterId = requesterId; - this.securityGroups = securityGroups; - this.subnetId = subnetId; - this.tags = tags; - this.vpcId = vpcId; - } + private String vpcId; + private GetNetworkInterfaceResult() {} /** * @return The ARN of the network interface. * @@ -284,7 +241,7 @@ public static Builder builder() { public static Builder builder(GetNetworkInterfaceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List associations; @@ -306,11 +263,7 @@ public static final class Builder { private String subnetId; private Map tags; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNetworkInterfaceResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -335,10 +288,12 @@ public Builder(GetNetworkInterfaceResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder associations(List associations) { this.associations = Objects.requireNonNull(associations); return this; @@ -346,6 +301,7 @@ public Builder associations(List associations) { public Builder associations(GetNetworkInterfaceAssociation... associations) { return associations(List.of(associations)); } + @CustomType.Setter public Builder attachments(List attachments) { this.attachments = Objects.requireNonNull(attachments); return this; @@ -353,14 +309,17 @@ public Builder attachments(List attachments) { public Builder attachments(GetNetworkInterfaceAttachment... attachments) { return attachments(List.of(attachments)); } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -368,14 +327,17 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetNetworkInterfaceFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder interfaceType(String interfaceType) { this.interfaceType = Objects.requireNonNull(interfaceType); return this; } + @CustomType.Setter public Builder ipv6Addresses(List ipv6Addresses) { this.ipv6Addresses = Objects.requireNonNull(ipv6Addresses); return this; @@ -383,26 +345,32 @@ public Builder ipv6Addresses(List ipv6Addresses) { public Builder ipv6Addresses(String... ipv6Addresses) { return ipv6Addresses(List.of(ipv6Addresses)); } + @CustomType.Setter public Builder macAddress(String macAddress) { this.macAddress = Objects.requireNonNull(macAddress); return this; } + @CustomType.Setter public Builder outpostArn(String outpostArn) { this.outpostArn = Objects.requireNonNull(outpostArn); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder privateDnsName(String privateDnsName) { this.privateDnsName = Objects.requireNonNull(privateDnsName); return this; } + @CustomType.Setter public Builder privateIp(String privateIp) { this.privateIp = Objects.requireNonNull(privateIp); return this; } + @CustomType.Setter public Builder privateIps(List privateIps) { this.privateIps = Objects.requireNonNull(privateIps); return this; @@ -410,10 +378,12 @@ public Builder privateIps(List privateIps) { public Builder privateIps(String... privateIps) { return privateIps(List.of(privateIps)); } + @CustomType.Setter public Builder requesterId(String requesterId) { this.requesterId = Objects.requireNonNull(requesterId); return this; } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -421,19 +391,44 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetNetworkInterfaceResult build() { - return new GetNetworkInterfaceResult(arn, associations, attachments, availabilityZone, description, filters, id, interfaceType, ipv6Addresses, macAddress, outpostArn, ownerId, privateDnsName, privateIp, privateIps, requesterId, securityGroups, subnetId, tags, vpcId); + } + public GetNetworkInterfaceResult build() { + final var o = new GetNetworkInterfaceResult(); + o.arn = arn; + o.associations = associations; + o.attachments = attachments; + o.availabilityZone = availabilityZone; + o.description = description; + o.filters = filters; + o.id = id; + o.interfaceType = interfaceType; + o.ipv6Addresses = ipv6Addresses; + o.macAddress = macAddress; + o.outpostArn = outpostArn; + o.ownerId = ownerId; + o.privateDnsName = privateDnsName; + o.privateIp = privateIp; + o.privateIps = privateIps; + o.requesterId = requesterId; + o.securityGroups = securityGroups; + o.subnetId = subnetId; + o.tags = tags; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfacesFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfacesFilter.java index 4166042458a..32c6a129ee4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfacesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfacesFilter.java @@ -15,21 +15,14 @@ public final class GetNetworkInterfacesFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeNetworkInterfaces.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * */ - private final List values; - - @CustomType.Constructor - private GetNetworkInterfacesFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetNetworkInterfacesFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeNetworkInterfaces.html). @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(GetNetworkInterfacesFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNetworkInterfacesFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetNetworkInterfacesFilter build() { - return new GetNetworkInterfacesFilter(name, values); + } + public GetNetworkInterfacesFilter build() { + final var o = new GetNetworkInterfacesFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfacesResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfacesResult.java index 083c8dea8b9..f84f844d5d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfacesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetNetworkInterfacesResult.java @@ -13,31 +13,20 @@ @CustomType public final class GetNetworkInterfacesResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A list of all the network interface ids found. * */ - private final List ids; - private final Map tags; - - @CustomType.Constructor - private GetNetworkInterfacesResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") Map tags) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - } + private List ids; + private Map tags; + private GetNetworkInterfacesResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -66,17 +55,13 @@ public static Builder builder() { public static Builder builder(GetNetworkInterfacesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNetworkInterfacesResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -85,6 +70,7 @@ public Builder(GetNetworkInterfacesResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -92,10 +78,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetNetworkInterfacesFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -103,11 +91,18 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetNetworkInterfacesResult build() { - return new GetNetworkInterfacesResult(filters, id, ids, tags); + } + public GetNetworkInterfacesResult build() { + final var o = new GetNetworkInterfacesResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetPrefixListFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetPrefixListFilter.java index 6622911cd73..5f9357d5b99 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetPrefixListFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetPrefixListFilter.java @@ -14,21 +14,14 @@ public final class GetPrefixListFilter { * @return The name of the filter field. Valid values can be found in the [EC2 DescribePrefixLists API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribePrefixLists.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetPrefixListFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetPrefixListFilter() {} /** * @return The name of the filter field. Valid values can be found in the [EC2 DescribePrefixLists API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribePrefixLists.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetPrefixListFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPrefixListFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetPrefixListFilter build() { - return new GetPrefixListFilter(name, values); + } + public GetPrefixListFilter build() { + final var o = new GetPrefixListFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetPrefixListResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetPrefixListResult.java index 2cb49bea874..e7e6eaba65c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetPrefixListResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetPrefixListResult.java @@ -17,34 +17,21 @@ public final class GetPrefixListResult { * @return The list of CIDR blocks for the AWS service associated with the prefix list. * */ - private final List cidrBlocks; - private final @Nullable List filters; + private List cidrBlocks; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the selected prefix list. * */ - private final String name; - private final @Nullable String prefixListId; - - @CustomType.Constructor - private GetPrefixListResult( - @CustomType.Parameter("cidrBlocks") List cidrBlocks, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("prefixListId") @Nullable String prefixListId) { - this.cidrBlocks = cidrBlocks; - this.filters = filters; - this.id = id; - this.name = name; - this.prefixListId = prefixListId; - } + private String name; + private @Nullable String prefixListId; + private GetPrefixListResult() {} /** * @return The list of CIDR blocks for the AWS service associated with the prefix list. * @@ -80,18 +67,14 @@ public static Builder builder() { public static Builder builder(GetPrefixListResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List cidrBlocks; private @Nullable List filters; private String id; private String name; private @Nullable String prefixListId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPrefixListResult defaults) { Objects.requireNonNull(defaults); this.cidrBlocks = defaults.cidrBlocks; @@ -101,6 +84,7 @@ public Builder(GetPrefixListResult defaults) { this.prefixListId = defaults.prefixListId; } + @CustomType.Setter public Builder cidrBlocks(List cidrBlocks) { this.cidrBlocks = Objects.requireNonNull(cidrBlocks); return this; @@ -108,6 +92,7 @@ public Builder cidrBlocks(List cidrBlocks) { public Builder cidrBlocks(String... cidrBlocks) { return cidrBlocks(List.of(cidrBlocks)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -115,19 +100,29 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetPrefixListFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder prefixListId(@Nullable String prefixListId) { this.prefixListId = prefixListId; return this; - } public GetPrefixListResult build() { - return new GetPrefixListResult(cidrBlocks, filters, id, name, prefixListId); + } + public GetPrefixListResult build() { + final var o = new GetPrefixListResult(); + o.cidrBlocks = cidrBlocks; + o.filters = filters; + o.id = id; + o.name = name; + o.prefixListId = prefixListId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteResult.java index 34a5f747fab..36981209016 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteResult.java @@ -9,60 +9,27 @@ @CustomType public final class GetRouteResult { - private final String carrierGatewayId; - private final String coreNetworkArn; - private final String destinationCidrBlock; - private final String destinationIpv6CidrBlock; - private final String destinationPrefixListId; - private final String egressOnlyGatewayId; - private final String gatewayId; + private String carrierGatewayId; + private String coreNetworkArn; + private String destinationCidrBlock; + private String destinationIpv6CidrBlock; + private String destinationPrefixListId; + private String egressOnlyGatewayId; + private String gatewayId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceId; - private final String localGatewayId; - private final String natGatewayId; - private final String networkInterfaceId; - private final String routeTableId; - private final String transitGatewayId; - private final String vpcPeeringConnectionId; - - @CustomType.Constructor - private GetRouteResult( - @CustomType.Parameter("carrierGatewayId") String carrierGatewayId, - @CustomType.Parameter("coreNetworkArn") String coreNetworkArn, - @CustomType.Parameter("destinationCidrBlock") String destinationCidrBlock, - @CustomType.Parameter("destinationIpv6CidrBlock") String destinationIpv6CidrBlock, - @CustomType.Parameter("destinationPrefixListId") String destinationPrefixListId, - @CustomType.Parameter("egressOnlyGatewayId") String egressOnlyGatewayId, - @CustomType.Parameter("gatewayId") String gatewayId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("localGatewayId") String localGatewayId, - @CustomType.Parameter("natGatewayId") String natGatewayId, - @CustomType.Parameter("networkInterfaceId") String networkInterfaceId, - @CustomType.Parameter("routeTableId") String routeTableId, - @CustomType.Parameter("transitGatewayId") String transitGatewayId, - @CustomType.Parameter("vpcPeeringConnectionId") String vpcPeeringConnectionId) { - this.carrierGatewayId = carrierGatewayId; - this.coreNetworkArn = coreNetworkArn; - this.destinationCidrBlock = destinationCidrBlock; - this.destinationIpv6CidrBlock = destinationIpv6CidrBlock; - this.destinationPrefixListId = destinationPrefixListId; - this.egressOnlyGatewayId = egressOnlyGatewayId; - this.gatewayId = gatewayId; - this.id = id; - this.instanceId = instanceId; - this.localGatewayId = localGatewayId; - this.natGatewayId = natGatewayId; - this.networkInterfaceId = networkInterfaceId; - this.routeTableId = routeTableId; - this.transitGatewayId = transitGatewayId; - this.vpcPeeringConnectionId = vpcPeeringConnectionId; - } + private String id; + private String instanceId; + private String localGatewayId; + private String natGatewayId; + private String networkInterfaceId; + private String routeTableId; + private String transitGatewayId; + private String vpcPeeringConnectionId; + private GetRouteResult() {} public String carrierGatewayId() { return this.carrierGatewayId; } @@ -120,7 +87,7 @@ public static Builder builder() { public static Builder builder(GetRouteResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String carrierGatewayId; private String coreNetworkArn; @@ -137,11 +104,7 @@ public static final class Builder { private String routeTableId; private String transitGatewayId; private String vpcPeeringConnectionId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRouteResult defaults) { Objects.requireNonNull(defaults); this.carrierGatewayId = defaults.carrierGatewayId; @@ -161,67 +124,99 @@ public Builder(GetRouteResult defaults) { this.vpcPeeringConnectionId = defaults.vpcPeeringConnectionId; } + @CustomType.Setter public Builder carrierGatewayId(String carrierGatewayId) { this.carrierGatewayId = Objects.requireNonNull(carrierGatewayId); return this; } + @CustomType.Setter public Builder coreNetworkArn(String coreNetworkArn) { this.coreNetworkArn = Objects.requireNonNull(coreNetworkArn); return this; } + @CustomType.Setter public Builder destinationCidrBlock(String destinationCidrBlock) { this.destinationCidrBlock = Objects.requireNonNull(destinationCidrBlock); return this; } + @CustomType.Setter public Builder destinationIpv6CidrBlock(String destinationIpv6CidrBlock) { this.destinationIpv6CidrBlock = Objects.requireNonNull(destinationIpv6CidrBlock); return this; } + @CustomType.Setter public Builder destinationPrefixListId(String destinationPrefixListId) { this.destinationPrefixListId = Objects.requireNonNull(destinationPrefixListId); return this; } + @CustomType.Setter public Builder egressOnlyGatewayId(String egressOnlyGatewayId) { this.egressOnlyGatewayId = Objects.requireNonNull(egressOnlyGatewayId); return this; } + @CustomType.Setter public Builder gatewayId(String gatewayId) { this.gatewayId = Objects.requireNonNull(gatewayId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder localGatewayId(String localGatewayId) { this.localGatewayId = Objects.requireNonNull(localGatewayId); return this; } + @CustomType.Setter public Builder natGatewayId(String natGatewayId) { this.natGatewayId = Objects.requireNonNull(natGatewayId); return this; } + @CustomType.Setter public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = Objects.requireNonNull(networkInterfaceId); return this; } + @CustomType.Setter public Builder routeTableId(String routeTableId) { this.routeTableId = Objects.requireNonNull(routeTableId); return this; } + @CustomType.Setter public Builder transitGatewayId(String transitGatewayId) { this.transitGatewayId = Objects.requireNonNull(transitGatewayId); return this; } + @CustomType.Setter public Builder vpcPeeringConnectionId(String vpcPeeringConnectionId) { this.vpcPeeringConnectionId = Objects.requireNonNull(vpcPeeringConnectionId); return this; - } public GetRouteResult build() { - return new GetRouteResult(carrierGatewayId, coreNetworkArn, destinationCidrBlock, destinationIpv6CidrBlock, destinationPrefixListId, egressOnlyGatewayId, gatewayId, id, instanceId, localGatewayId, natGatewayId, networkInterfaceId, routeTableId, transitGatewayId, vpcPeeringConnectionId); + } + public GetRouteResult build() { + final var o = new GetRouteResult(); + o.carrierGatewayId = carrierGatewayId; + o.coreNetworkArn = coreNetworkArn; + o.destinationCidrBlock = destinationCidrBlock; + o.destinationIpv6CidrBlock = destinationIpv6CidrBlock; + o.destinationPrefixListId = destinationPrefixListId; + o.egressOnlyGatewayId = egressOnlyGatewayId; + o.gatewayId = gatewayId; + o.id = id; + o.instanceId = instanceId; + o.localGatewayId = localGatewayId; + o.natGatewayId = natGatewayId; + o.networkInterfaceId = networkInterfaceId; + o.routeTableId = routeTableId; + o.transitGatewayId = transitGatewayId; + o.vpcPeeringConnectionId = vpcPeeringConnectionId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableAssociation.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableAssociation.java index c57eb75fc7f..dafe808c9ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableAssociation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableAssociation.java @@ -14,42 +14,29 @@ public final class GetRouteTableAssociation { * @return ID of an Internet Gateway or Virtual Private Gateway which is connected to the Route Table (not exported if not passed as a parameter). * */ - private final String gatewayId; + private String gatewayId; /** * @return Whether the association is due to the main route table. * */ - private final Boolean main; + private Boolean main; /** * @return Association ID. * */ - private final String routeTableAssociationId; + private String routeTableAssociationId; /** * @return ID of the specific Route Table to retrieve. * */ - private final String routeTableId; + private String routeTableId; /** * @return ID of a Subnet which is connected to the Route Table (not exported if not passed as a parameter). * */ - private final String subnetId; - - @CustomType.Constructor - private GetRouteTableAssociation( - @CustomType.Parameter("gatewayId") String gatewayId, - @CustomType.Parameter("main") Boolean main, - @CustomType.Parameter("routeTableAssociationId") String routeTableAssociationId, - @CustomType.Parameter("routeTableId") String routeTableId, - @CustomType.Parameter("subnetId") String subnetId) { - this.gatewayId = gatewayId; - this.main = main; - this.routeTableAssociationId = routeTableAssociationId; - this.routeTableId = routeTableId; - this.subnetId = subnetId; - } + private String subnetId; + private GetRouteTableAssociation() {} /** * @return ID of an Internet Gateway or Virtual Private Gateway which is connected to the Route Table (not exported if not passed as a parameter). * @@ -93,18 +80,14 @@ public static Builder builder() { public static Builder builder(GetRouteTableAssociation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String gatewayId; private Boolean main; private String routeTableAssociationId; private String routeTableId; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRouteTableAssociation defaults) { Objects.requireNonNull(defaults); this.gatewayId = defaults.gatewayId; @@ -114,27 +97,39 @@ public Builder(GetRouteTableAssociation defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder gatewayId(String gatewayId) { this.gatewayId = Objects.requireNonNull(gatewayId); return this; } + @CustomType.Setter public Builder main(Boolean main) { this.main = Objects.requireNonNull(main); return this; } + @CustomType.Setter public Builder routeTableAssociationId(String routeTableAssociationId) { this.routeTableAssociationId = Objects.requireNonNull(routeTableAssociationId); return this; } + @CustomType.Setter public Builder routeTableId(String routeTableId) { this.routeTableId = Objects.requireNonNull(routeTableId); return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public GetRouteTableAssociation build() { - return new GetRouteTableAssociation(gatewayId, main, routeTableAssociationId, routeTableId, subnetId); + } + public GetRouteTableAssociation build() { + final var o = new GetRouteTableAssociation(); + o.gatewayId = gatewayId; + o.main = main; + o.routeTableAssociationId = routeTableAssociationId; + o.routeTableId = routeTableId; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableFilter.java index 199b5c7fdc5..3e5c82883a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableFilter.java @@ -14,21 +14,14 @@ public final class GetRouteTableFilter { * @return Name of the field to filter by, as defined by [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeRouteTables.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. A Route Table will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetRouteTableFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetRouteTableFilter() {} /** * @return Name of the field to filter by, as defined by [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeRouteTables.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetRouteTableFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRouteTableFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetRouteTableFilter build() { - return new GetRouteTableFilter(name, values); + } + public GetRouteTableFilter build() { + final var o = new GetRouteTableFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableResult.java index 85765aedee1..24d6dd23b60 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableResult.java @@ -19,72 +19,47 @@ public final class GetRouteTableResult { * @return ARN of the route table. * */ - private final String arn; + private String arn; /** * @return List of associations with attributes detailed below. * */ - private final List associations; - private final @Nullable List filters; + private List associations; + private @Nullable List filters; /** * @return Gateway ID. Only set when associated with an Internet Gateway or Virtual Private Gateway. * */ - private final String gatewayId; + private String gatewayId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return ID of the AWS account that owns the route table. * */ - private final String ownerId; + private String ownerId; /** * @return Route Table ID. * */ - private final String routeTableId; + private String routeTableId; /** * @return List of routes with attributes detailed below. * */ - private final List routes; + private List routes; /** * @return Subnet ID. Only set when associated with a subnet. * */ - private final String subnetId; - private final Map tags; - private final String vpcId; - - @CustomType.Constructor - private GetRouteTableResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("associations") List associations, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("gatewayId") String gatewayId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("routeTableId") String routeTableId, - @CustomType.Parameter("routes") List routes, - @CustomType.Parameter("subnetId") String subnetId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.associations = associations; - this.filters = filters; - this.gatewayId = gatewayId; - this.id = id; - this.ownerId = ownerId; - this.routeTableId = routeTableId; - this.routes = routes; - this.subnetId = subnetId; - this.tags = tags; - this.vpcId = vpcId; - } + private String subnetId; + private Map tags; + private String vpcId; + private GetRouteTableResult() {} /** * @return ARN of the route table. * @@ -158,7 +133,7 @@ public static Builder builder() { public static Builder builder(GetRouteTableResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List associations; @@ -171,11 +146,7 @@ public static final class Builder { private String subnetId; private Map tags; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRouteTableResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -191,10 +162,12 @@ public Builder(GetRouteTableResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder associations(List associations) { this.associations = Objects.requireNonNull(associations); return this; @@ -202,6 +175,7 @@ public Builder associations(List associations) { public Builder associations(GetRouteTableAssociation... associations) { return associations(List.of(associations)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -209,22 +183,27 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetRouteTableFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder gatewayId(String gatewayId) { this.gatewayId = Objects.requireNonNull(gatewayId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder routeTableId(String routeTableId) { this.routeTableId = Objects.requireNonNull(routeTableId); return this; } + @CustomType.Setter public Builder routes(List routes) { this.routes = Objects.requireNonNull(routes); return this; @@ -232,19 +211,35 @@ public Builder routes(List routes) { public Builder routes(GetRouteTableRoute... routes) { return routes(List.of(routes)); } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetRouteTableResult build() { - return new GetRouteTableResult(arn, associations, filters, gatewayId, id, ownerId, routeTableId, routes, subnetId, tags, vpcId); + } + public GetRouteTableResult build() { + final var o = new GetRouteTableResult(); + o.arn = arn; + o.associations = associations; + o.filters = filters; + o.gatewayId = gatewayId; + o.id = id; + o.ownerId = ownerId; + o.routeTableId = routeTableId; + o.routes = routes; + o.subnetId = subnetId; + o.tags = tags; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableRoute.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableRoute.java index 36d25fa4d40..dbf5aba16af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableRoute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTableRoute.java @@ -13,105 +13,74 @@ public final class GetRouteTableRoute { * @return ID of the Carrier Gateway. * */ - private final String carrierGatewayId; + private String carrierGatewayId; /** * @return CIDR block of the route. * */ - private final String cidrBlock; + private String cidrBlock; /** * @return ARN of the core network. * */ - private final String coreNetworkArn; + private String coreNetworkArn; /** * @return The ID of a managed prefix list destination of the route. * */ - private final String destinationPrefixListId; + private String destinationPrefixListId; /** * @return ID of the Egress Only Internet Gateway. * */ - private final String egressOnlyGatewayId; + private String egressOnlyGatewayId; /** * @return ID of an Internet Gateway or Virtual Private Gateway which is connected to the Route Table (not exported if not passed as a parameter). * */ - private final String gatewayId; + private String gatewayId; /** * @return EC2 instance ID. * */ - private final String instanceId; + private String instanceId; /** * @return IPv6 CIDR block of the route. * */ - private final String ipv6CidrBlock; + private String ipv6CidrBlock; /** * @return Local Gateway ID. * */ - private final String localGatewayId; + private String localGatewayId; /** * @return NAT Gateway ID. * */ - private final String natGatewayId; + private String natGatewayId; /** * @return ID of the elastic network interface (eni) to use. * */ - private final String networkInterfaceId; + private String networkInterfaceId; /** * @return EC2 Transit Gateway ID. * */ - private final String transitGatewayId; + private String transitGatewayId; /** * @return VPC Endpoint ID. * */ - private final String vpcEndpointId; + private String vpcEndpointId; /** * @return VPC Peering ID. * */ - private final String vpcPeeringConnectionId; - - @CustomType.Constructor - private GetRouteTableRoute( - @CustomType.Parameter("carrierGatewayId") String carrierGatewayId, - @CustomType.Parameter("cidrBlock") String cidrBlock, - @CustomType.Parameter("coreNetworkArn") String coreNetworkArn, - @CustomType.Parameter("destinationPrefixListId") String destinationPrefixListId, - @CustomType.Parameter("egressOnlyGatewayId") String egressOnlyGatewayId, - @CustomType.Parameter("gatewayId") String gatewayId, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("ipv6CidrBlock") String ipv6CidrBlock, - @CustomType.Parameter("localGatewayId") String localGatewayId, - @CustomType.Parameter("natGatewayId") String natGatewayId, - @CustomType.Parameter("networkInterfaceId") String networkInterfaceId, - @CustomType.Parameter("transitGatewayId") String transitGatewayId, - @CustomType.Parameter("vpcEndpointId") String vpcEndpointId, - @CustomType.Parameter("vpcPeeringConnectionId") String vpcPeeringConnectionId) { - this.carrierGatewayId = carrierGatewayId; - this.cidrBlock = cidrBlock; - this.coreNetworkArn = coreNetworkArn; - this.destinationPrefixListId = destinationPrefixListId; - this.egressOnlyGatewayId = egressOnlyGatewayId; - this.gatewayId = gatewayId; - this.instanceId = instanceId; - this.ipv6CidrBlock = ipv6CidrBlock; - this.localGatewayId = localGatewayId; - this.natGatewayId = natGatewayId; - this.networkInterfaceId = networkInterfaceId; - this.transitGatewayId = transitGatewayId; - this.vpcEndpointId = vpcEndpointId; - this.vpcPeeringConnectionId = vpcPeeringConnectionId; - } + private String vpcPeeringConnectionId; + private GetRouteTableRoute() {} /** * @return ID of the Carrier Gateway. * @@ -218,7 +187,7 @@ public static Builder builder() { public static Builder builder(GetRouteTableRoute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String carrierGatewayId; private String cidrBlock; @@ -234,11 +203,7 @@ public static final class Builder { private String transitGatewayId; private String vpcEndpointId; private String vpcPeeringConnectionId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRouteTableRoute defaults) { Objects.requireNonNull(defaults); this.carrierGatewayId = defaults.carrierGatewayId; @@ -257,63 +222,93 @@ public Builder(GetRouteTableRoute defaults) { this.vpcPeeringConnectionId = defaults.vpcPeeringConnectionId; } + @CustomType.Setter public Builder carrierGatewayId(String carrierGatewayId) { this.carrierGatewayId = Objects.requireNonNull(carrierGatewayId); return this; } + @CustomType.Setter public Builder cidrBlock(String cidrBlock) { this.cidrBlock = Objects.requireNonNull(cidrBlock); return this; } + @CustomType.Setter public Builder coreNetworkArn(String coreNetworkArn) { this.coreNetworkArn = Objects.requireNonNull(coreNetworkArn); return this; } + @CustomType.Setter public Builder destinationPrefixListId(String destinationPrefixListId) { this.destinationPrefixListId = Objects.requireNonNull(destinationPrefixListId); return this; } + @CustomType.Setter public Builder egressOnlyGatewayId(String egressOnlyGatewayId) { this.egressOnlyGatewayId = Objects.requireNonNull(egressOnlyGatewayId); return this; } + @CustomType.Setter public Builder gatewayId(String gatewayId) { this.gatewayId = Objects.requireNonNull(gatewayId); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder ipv6CidrBlock(String ipv6CidrBlock) { this.ipv6CidrBlock = Objects.requireNonNull(ipv6CidrBlock); return this; } + @CustomType.Setter public Builder localGatewayId(String localGatewayId) { this.localGatewayId = Objects.requireNonNull(localGatewayId); return this; } + @CustomType.Setter public Builder natGatewayId(String natGatewayId) { this.natGatewayId = Objects.requireNonNull(natGatewayId); return this; } + @CustomType.Setter public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = Objects.requireNonNull(networkInterfaceId); return this; } + @CustomType.Setter public Builder transitGatewayId(String transitGatewayId) { this.transitGatewayId = Objects.requireNonNull(transitGatewayId); return this; } + @CustomType.Setter public Builder vpcEndpointId(String vpcEndpointId) { this.vpcEndpointId = Objects.requireNonNull(vpcEndpointId); return this; } + @CustomType.Setter public Builder vpcPeeringConnectionId(String vpcPeeringConnectionId) { this.vpcPeeringConnectionId = Objects.requireNonNull(vpcPeeringConnectionId); return this; - } public GetRouteTableRoute build() { - return new GetRouteTableRoute(carrierGatewayId, cidrBlock, coreNetworkArn, destinationPrefixListId, egressOnlyGatewayId, gatewayId, instanceId, ipv6CidrBlock, localGatewayId, natGatewayId, networkInterfaceId, transitGatewayId, vpcEndpointId, vpcPeeringConnectionId); + } + public GetRouteTableRoute build() { + final var o = new GetRouteTableRoute(); + o.carrierGatewayId = carrierGatewayId; + o.cidrBlock = cidrBlock; + o.coreNetworkArn = coreNetworkArn; + o.destinationPrefixListId = destinationPrefixListId; + o.egressOnlyGatewayId = egressOnlyGatewayId; + o.gatewayId = gatewayId; + o.instanceId = instanceId; + o.ipv6CidrBlock = ipv6CidrBlock; + o.localGatewayId = localGatewayId; + o.natGatewayId = natGatewayId; + o.networkInterfaceId = networkInterfaceId; + o.transitGatewayId = transitGatewayId; + o.vpcEndpointId = vpcEndpointId; + o.vpcPeeringConnectionId = vpcPeeringConnectionId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTablesFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTablesFilter.java index 29bdadd1387..8cadb771864 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTablesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTablesFilter.java @@ -15,22 +15,15 @@ public final class GetRouteTablesFilter { * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeRouteTables.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A Route Table will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetRouteTablesFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetRouteTablesFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeRouteTables.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetRouteTablesFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRouteTablesFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetRouteTablesFilter build() { - return new GetRouteTablesFilter(name, values); + } + public GetRouteTablesFilter build() { + final var o = new GetRouteTablesFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTablesResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTablesResult.java index d06cc2e4c94..0744292e968 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTablesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetRouteTablesResult.java @@ -14,34 +14,21 @@ @CustomType public final class GetRouteTablesResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A list of all the route table ids found. * */ - private final List ids; - private final Map tags; - private final @Nullable String vpcId; - - @CustomType.Constructor - private GetRouteTablesResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - this.vpcId = vpcId; - } + private List ids; + private Map tags; + private @Nullable String vpcId; + private GetRouteTablesResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -73,18 +60,14 @@ public static Builder builder() { public static Builder builder(GetRouteTablesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private Map tags; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRouteTablesResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -94,6 +77,7 @@ public Builder(GetRouteTablesResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -101,10 +85,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetRouteTablesFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -112,15 +98,24 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(@Nullable String vpcId) { this.vpcId = vpcId; return this; - } public GetRouteTablesResult build() { - return new GetRouteTablesResult(filters, id, ids, tags, vpcId); + } + public GetRouteTablesResult build() { + final var o = new GetRouteTablesResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupFilter.java index 220885f1d87..6d0a7d249ed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupFilter.java @@ -15,22 +15,15 @@ public final class GetSecurityGroupFilter { * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A Security Group will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetSecurityGroupFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetSecurityGroupFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetSecurityGroupFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecurityGroupFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetSecurityGroupFilter build() { - return new GetSecurityGroupFilter(name, values); + } + public GetSecurityGroupFilter build() { + final var o = new GetSecurityGroupFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupResult.java index 187cb3831de..31315c4c22a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupResult.java @@ -17,36 +17,19 @@ public final class GetSecurityGroupResult { * @return The computed ARN of the security group. * */ - private final String arn; + private String arn; /** * @return The description of the security group. * */ - private final String description; - private final @Nullable List filters; - private final String id; - private final String name; - private final Map tags; - private final String vpcId; - - @CustomType.Constructor - private GetSecurityGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.description = description; - this.filters = filters; - this.id = id; - this.name = name; - this.tags = tags; - this.vpcId = vpcId; - } + private String description; + private @Nullable List filters; + private String id; + private String name; + private Map tags; + private String vpcId; + private GetSecurityGroupResult() {} /** * @return The computed ARN of the security group. * @@ -84,7 +67,7 @@ public static Builder builder() { public static Builder builder(GetSecurityGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -93,11 +76,7 @@ public static final class Builder { private String name; private Map tags; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecurityGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -109,14 +88,17 @@ public Builder(GetSecurityGroupResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -124,23 +106,36 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetSecurityGroupFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetSecurityGroupResult build() { - return new GetSecurityGroupResult(arn, description, filters, id, name, tags, vpcId); + } + public GetSecurityGroupResult build() { + final var o = new GetSecurityGroupResult(); + o.arn = arn; + o.description = description; + o.filters = filters; + o.id = id; + o.name = name; + o.tags = tags; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupsFilter.java index 4e65f236a66..aa3892344c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupsFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetSecurityGroupsFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetSecurityGroupsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetSecurityGroupsFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetSecurityGroupsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecurityGroupsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetSecurityGroupsFilter build() { - return new GetSecurityGroupsFilter(name, values); + } + public GetSecurityGroupsFilter build() { + final var o = new GetSecurityGroupsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupsResult.java index 13d51976f50..48b28ee90a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSecurityGroupsResult.java @@ -17,41 +17,26 @@ public final class GetSecurityGroupsResult { * @return ARNs of the matched security groups. * */ - private final List arns; - private final @Nullable List filters; + private List arns; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return IDs of the matches security groups. * */ - private final List ids; - private final Map tags; + private List ids; + private Map tags; /** * @return The VPC IDs of the matched security groups. The data source's tag or filter *will span VPCs* unless the `vpc-id` filter is also used. * */ - private final List vpcIds; - - @CustomType.Constructor - private GetSecurityGroupsResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcIds") List vpcIds) { - this.arns = arns; - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - this.vpcIds = vpcIds; - } + private List vpcIds; + private GetSecurityGroupsResult() {} /** * @return ARNs of the matched security groups. * @@ -94,7 +79,7 @@ public static Builder builder() { public static Builder builder(GetSecurityGroupsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private @Nullable List filters; @@ -102,11 +87,7 @@ public static final class Builder { private List ids; private Map tags; private List vpcIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecurityGroupsResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -117,6 +98,7 @@ public Builder(GetSecurityGroupsResult defaults) { this.vpcIds = defaults.vpcIds; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -124,6 +106,7 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -131,10 +114,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetSecurityGroupsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -142,18 +127,28 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcIds(List vpcIds) { this.vpcIds = Objects.requireNonNull(vpcIds); return this; } public Builder vpcIds(String... vpcIds) { return vpcIds(List.of(vpcIds)); - } public GetSecurityGroupsResult build() { - return new GetSecurityGroupsResult(arns, filters, id, ids, tags, vpcIds); + } + public GetSecurityGroupsResult build() { + final var o = new GetSecurityGroupsResult(); + o.arns = arns; + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + o.vpcIds = vpcIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSerialConsoleAccessResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSerialConsoleAccessResult.java index b9a69fc4dd3..9f4ae29f33d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSerialConsoleAccessResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSerialConsoleAccessResult.java @@ -14,21 +14,14 @@ public final class GetSerialConsoleAccessResult { * @return Whether or not serial console access is enabled. Returns as `true` or `false`. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetSerialConsoleAccessResult( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("id") String id) { - this.enabled = enabled; - this.id = id; - } + private String id; + private GetSerialConsoleAccessResult() {} /** * @return Whether or not serial console access is enabled. Returns as `true` or `false`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetSerialConsoleAccessResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSerialConsoleAccessResult defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.id = defaults.id; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetSerialConsoleAccessResult build() { - return new GetSerialConsoleAccessResult(enabled, id); + } + public GetSerialConsoleAccessResult build() { + final var o = new GetSerialConsoleAccessResult(); + o.enabled = enabled; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSpotPriceFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSpotPriceFilter.java index 3dd5a2b977e..4157fc62624 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSpotPriceFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSpotPriceFilter.java @@ -14,21 +14,14 @@ public final class GetSpotPriceFilter { * @return Name of the filter. * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetSpotPriceFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetSpotPriceFilter() {} /** * @return Name of the filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetSpotPriceFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSpotPriceFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetSpotPriceFilter build() { - return new GetSpotPriceFilter(name, values); + } + public GetSpotPriceFilter build() { + final var o = new GetSpotPriceFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSpotPriceResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSpotPriceResult.java index b31b22563d1..dbe1cfa2148 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSpotPriceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSpotPriceResult.java @@ -13,41 +13,26 @@ @CustomType public final class GetSpotPriceResult { - private final @Nullable String availabilityZone; - private final @Nullable List filters; + private @Nullable String availabilityZone; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String instanceType; + private String id; + private @Nullable String instanceType; /** * @return The most recent Spot Price value for the given instance type and AZ. * */ - private final String spotPrice; + private String spotPrice; /** * @return The timestamp at which the Spot Price value was published. * */ - private final String spotPriceTimestamp; - - @CustomType.Constructor - private GetSpotPriceResult( - @CustomType.Parameter("availabilityZone") @Nullable String availabilityZone, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceType") @Nullable String instanceType, - @CustomType.Parameter("spotPrice") String spotPrice, - @CustomType.Parameter("spotPriceTimestamp") String spotPriceTimestamp) { - this.availabilityZone = availabilityZone; - this.filters = filters; - this.id = id; - this.instanceType = instanceType; - this.spotPrice = spotPrice; - this.spotPriceTimestamp = spotPriceTimestamp; - } + private String spotPriceTimestamp; + private GetSpotPriceResult() {} public Optional availabilityZone() { return Optional.ofNullable(this.availabilityZone); } @@ -86,7 +71,7 @@ public static Builder builder() { public static Builder builder(GetSpotPriceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String availabilityZone; private @Nullable List filters; @@ -94,11 +79,7 @@ public static final class Builder { private @Nullable String instanceType; private String spotPrice; private String spotPriceTimestamp; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSpotPriceResult defaults) { Objects.requireNonNull(defaults); this.availabilityZone = defaults.availabilityZone; @@ -109,10 +90,12 @@ public Builder(GetSpotPriceResult defaults) { this.spotPriceTimestamp = defaults.spotPriceTimestamp; } + @CustomType.Setter public Builder availabilityZone(@Nullable String availabilityZone) { this.availabilityZone = availabilityZone; return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -120,23 +103,35 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetSpotPriceFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { this.instanceType = instanceType; return this; } + @CustomType.Setter public Builder spotPrice(String spotPrice) { this.spotPrice = Objects.requireNonNull(spotPrice); return this; } + @CustomType.Setter public Builder spotPriceTimestamp(String spotPriceTimestamp) { this.spotPriceTimestamp = Objects.requireNonNull(spotPriceTimestamp); return this; - } public GetSpotPriceResult build() { - return new GetSpotPriceResult(availabilityZone, filters, id, instanceType, spotPrice, spotPriceTimestamp); + } + public GetSpotPriceResult build() { + final var o = new GetSpotPriceResult(); + o.availabilityZone = availabilityZone; + o.filters = filters; + o.id = id; + o.instanceType = instanceType; + o.spotPrice = spotPrice; + o.spotPriceTimestamp = spotPriceTimestamp; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetFilter.java index b36a35d172a..502dc73aaac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetFilter.java @@ -14,21 +14,14 @@ public final class GetSubnetFilter { * @return The name of the field to filter by, as defined by [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSubnets.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. A subnet will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetSubnetFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetSubnetFilter() {} /** * @return The name of the field to filter by, as defined by [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSubnets.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetSubnetFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSubnetFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetSubnetFilter build() { - return new GetSubnetFilter(name, values); + } + public GetSubnetFilter build() { + final var o = new GetSubnetFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetIdsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetIdsFilter.java index 8dd67778767..ea1f171c979 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetIdsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetIdsFilter.java @@ -16,22 +16,15 @@ public final class GetSubnetIdsFilter { * For example, if matching against tag `Name`, use: * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * Subnet IDs will be selected if any one of the given values match. * */ - private final List values; - - @CustomType.Constructor - private GetSubnetIdsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetSubnetIdsFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSubnets.html). @@ -57,33 +50,35 @@ public static Builder builder() { public static Builder builder(GetSubnetIdsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSubnetIdsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetSubnetIdsFilter build() { - return new GetSubnetIdsFilter(name, values); + } + public GetSubnetIdsFilter build() { + final var o = new GetSubnetIdsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetIdsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetIdsResult.java index b0c48188b77..ad466e90f7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetIdsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetIdsResult.java @@ -13,34 +13,21 @@ @CustomType public final class GetSubnetIdsResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A set of all the subnet ids found. This data source will fail if none are found. * */ - private final List ids; - private final Map tags; - private final String vpcId; - - @CustomType.Constructor - private GetSubnetIdsResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - this.vpcId = vpcId; - } + private List ids; + private Map tags; + private String vpcId; + private GetSubnetIdsResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -72,18 +59,14 @@ public static Builder builder() { public static Builder builder(GetSubnetIdsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private Map tags; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSubnetIdsResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -93,6 +76,7 @@ public Builder(GetSubnetIdsResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -100,10 +84,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetSubnetIdsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -111,15 +97,24 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetSubnetIdsResult build() { - return new GetSubnetIdsResult(filters, id, ids, tags, vpcId); + } + public GetSubnetIdsResult build() { + final var o = new GetSubnetIdsResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetResult.java index d654181e1cf..5543530b82f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetResult.java @@ -19,135 +19,84 @@ public final class GetSubnetResult { * @return ARN of the subnet. * */ - private final String arn; + private String arn; /** * @return Whether an IPv6 address is assigned on creation. * */ - private final Boolean assignIpv6AddressOnCreation; - private final String availabilityZone; - private final String availabilityZoneId; + private Boolean assignIpv6AddressOnCreation; + private String availabilityZone; + private String availabilityZoneId; /** * @return Available IP addresses of the subnet. * */ - private final Integer availableIpAddressCount; - private final String cidrBlock; + private Integer availableIpAddressCount; + private String cidrBlock; /** * @return Identifier of customer owned IPv4 address pool. * */ - private final String customerOwnedIpv4Pool; - private final Boolean defaultForAz; + private String customerOwnedIpv4Pool; + private Boolean defaultForAz; /** * @return Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet return synthetic IPv6 addresses for IPv4-only destinations. * */ - private final Boolean enableDns64; + private Boolean enableDns64; /** * @return Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * */ - private final Boolean enableResourceNameDnsARecordOnLaunch; + private Boolean enableResourceNameDnsARecordOnLaunch; /** * @return Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. * */ - private final Boolean enableResourceNameDnsAaaaRecordOnLaunch; - private final @Nullable List filters; - private final String id; - private final String ipv6CidrBlock; + private Boolean enableResourceNameDnsAaaaRecordOnLaunch; + private @Nullable List filters; + private String id; + private String ipv6CidrBlock; /** * @return Association ID of the IPv6 CIDR block. * */ - private final String ipv6CidrBlockAssociationId; + private String ipv6CidrBlockAssociationId; /** * @return Indicates whether this is an IPv6-only subnet. * */ - private final Boolean ipv6Native; + private Boolean ipv6Native; /** * @return Whether customer owned IP addresses are assigned on network interface creation. * */ - private final Boolean mapCustomerOwnedIpOnLaunch; + private Boolean mapCustomerOwnedIpOnLaunch; /** * @return Whether public IP addresses are assigned on instance launch. * */ - private final Boolean mapPublicIpOnLaunch; + private Boolean mapPublicIpOnLaunch; /** * @return ARN of the Outpost. * */ - private final String outpostArn; + private String outpostArn; /** * @return ID of the AWS account that owns the subnet. * */ - private final String ownerId; + private String ownerId; /** * @return The type of hostnames assigned to instances in the subnet at launch. * */ - private final String privateDnsHostnameTypeOnLaunch; - private final String state; - private final Map tags; - private final String vpcId; - - @CustomType.Constructor - private GetSubnetResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("assignIpv6AddressOnCreation") Boolean assignIpv6AddressOnCreation, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("availabilityZoneId") String availabilityZoneId, - @CustomType.Parameter("availableIpAddressCount") Integer availableIpAddressCount, - @CustomType.Parameter("cidrBlock") String cidrBlock, - @CustomType.Parameter("customerOwnedIpv4Pool") String customerOwnedIpv4Pool, - @CustomType.Parameter("defaultForAz") Boolean defaultForAz, - @CustomType.Parameter("enableDns64") Boolean enableDns64, - @CustomType.Parameter("enableResourceNameDnsARecordOnLaunch") Boolean enableResourceNameDnsARecordOnLaunch, - @CustomType.Parameter("enableResourceNameDnsAaaaRecordOnLaunch") Boolean enableResourceNameDnsAaaaRecordOnLaunch, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ipv6CidrBlock") String ipv6CidrBlock, - @CustomType.Parameter("ipv6CidrBlockAssociationId") String ipv6CidrBlockAssociationId, - @CustomType.Parameter("ipv6Native") Boolean ipv6Native, - @CustomType.Parameter("mapCustomerOwnedIpOnLaunch") Boolean mapCustomerOwnedIpOnLaunch, - @CustomType.Parameter("mapPublicIpOnLaunch") Boolean mapPublicIpOnLaunch, - @CustomType.Parameter("outpostArn") String outpostArn, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("privateDnsHostnameTypeOnLaunch") String privateDnsHostnameTypeOnLaunch, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.assignIpv6AddressOnCreation = assignIpv6AddressOnCreation; - this.availabilityZone = availabilityZone; - this.availabilityZoneId = availabilityZoneId; - this.availableIpAddressCount = availableIpAddressCount; - this.cidrBlock = cidrBlock; - this.customerOwnedIpv4Pool = customerOwnedIpv4Pool; - this.defaultForAz = defaultForAz; - this.enableDns64 = enableDns64; - this.enableResourceNameDnsARecordOnLaunch = enableResourceNameDnsARecordOnLaunch; - this.enableResourceNameDnsAaaaRecordOnLaunch = enableResourceNameDnsAaaaRecordOnLaunch; - this.filters = filters; - this.id = id; - this.ipv6CidrBlock = ipv6CidrBlock; - this.ipv6CidrBlockAssociationId = ipv6CidrBlockAssociationId; - this.ipv6Native = ipv6Native; - this.mapCustomerOwnedIpOnLaunch = mapCustomerOwnedIpOnLaunch; - this.mapPublicIpOnLaunch = mapPublicIpOnLaunch; - this.outpostArn = outpostArn; - this.ownerId = ownerId; - this.privateDnsHostnameTypeOnLaunch = privateDnsHostnameTypeOnLaunch; - this.state = state; - this.tags = tags; - this.vpcId = vpcId; - } + private String privateDnsHostnameTypeOnLaunch; + private String state; + private Map tags; + private String vpcId; + private GetSubnetResult() {} /** * @return ARN of the subnet. * @@ -284,7 +233,7 @@ public static Builder builder() { public static Builder builder(GetSubnetResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Boolean assignIpv6AddressOnCreation; @@ -310,11 +259,7 @@ public static final class Builder { private String state; private Map tags; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSubnetResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -343,50 +288,62 @@ public Builder(GetSubnetResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder assignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation) { this.assignIpv6AddressOnCreation = Objects.requireNonNull(assignIpv6AddressOnCreation); return this; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder availabilityZoneId(String availabilityZoneId) { this.availabilityZoneId = Objects.requireNonNull(availabilityZoneId); return this; } + @CustomType.Setter public Builder availableIpAddressCount(Integer availableIpAddressCount) { this.availableIpAddressCount = Objects.requireNonNull(availableIpAddressCount); return this; } + @CustomType.Setter public Builder cidrBlock(String cidrBlock) { this.cidrBlock = Objects.requireNonNull(cidrBlock); return this; } + @CustomType.Setter public Builder customerOwnedIpv4Pool(String customerOwnedIpv4Pool) { this.customerOwnedIpv4Pool = Objects.requireNonNull(customerOwnedIpv4Pool); return this; } + @CustomType.Setter public Builder defaultForAz(Boolean defaultForAz) { this.defaultForAz = Objects.requireNonNull(defaultForAz); return this; } + @CustomType.Setter public Builder enableDns64(Boolean enableDns64) { this.enableDns64 = Objects.requireNonNull(enableDns64); return this; } + @CustomType.Setter public Builder enableResourceNameDnsARecordOnLaunch(Boolean enableResourceNameDnsARecordOnLaunch) { this.enableResourceNameDnsARecordOnLaunch = Objects.requireNonNull(enableResourceNameDnsARecordOnLaunch); return this; } + @CustomType.Setter public Builder enableResourceNameDnsAaaaRecordOnLaunch(Boolean enableResourceNameDnsAaaaRecordOnLaunch) { this.enableResourceNameDnsAaaaRecordOnLaunch = Objects.requireNonNull(enableResourceNameDnsAaaaRecordOnLaunch); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -394,55 +351,93 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetSubnetFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ipv6CidrBlock(String ipv6CidrBlock) { this.ipv6CidrBlock = Objects.requireNonNull(ipv6CidrBlock); return this; } + @CustomType.Setter public Builder ipv6CidrBlockAssociationId(String ipv6CidrBlockAssociationId) { this.ipv6CidrBlockAssociationId = Objects.requireNonNull(ipv6CidrBlockAssociationId); return this; } + @CustomType.Setter public Builder ipv6Native(Boolean ipv6Native) { this.ipv6Native = Objects.requireNonNull(ipv6Native); return this; } + @CustomType.Setter public Builder mapCustomerOwnedIpOnLaunch(Boolean mapCustomerOwnedIpOnLaunch) { this.mapCustomerOwnedIpOnLaunch = Objects.requireNonNull(mapCustomerOwnedIpOnLaunch); return this; } + @CustomType.Setter public Builder mapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch) { this.mapPublicIpOnLaunch = Objects.requireNonNull(mapPublicIpOnLaunch); return this; } + @CustomType.Setter public Builder outpostArn(String outpostArn) { this.outpostArn = Objects.requireNonNull(outpostArn); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder privateDnsHostnameTypeOnLaunch(String privateDnsHostnameTypeOnLaunch) { this.privateDnsHostnameTypeOnLaunch = Objects.requireNonNull(privateDnsHostnameTypeOnLaunch); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetSubnetResult build() { - return new GetSubnetResult(arn, assignIpv6AddressOnCreation, availabilityZone, availabilityZoneId, availableIpAddressCount, cidrBlock, customerOwnedIpv4Pool, defaultForAz, enableDns64, enableResourceNameDnsARecordOnLaunch, enableResourceNameDnsAaaaRecordOnLaunch, filters, id, ipv6CidrBlock, ipv6CidrBlockAssociationId, ipv6Native, mapCustomerOwnedIpOnLaunch, mapPublicIpOnLaunch, outpostArn, ownerId, privateDnsHostnameTypeOnLaunch, state, tags, vpcId); + } + public GetSubnetResult build() { + final var o = new GetSubnetResult(); + o.arn = arn; + o.assignIpv6AddressOnCreation = assignIpv6AddressOnCreation; + o.availabilityZone = availabilityZone; + o.availabilityZoneId = availabilityZoneId; + o.availableIpAddressCount = availableIpAddressCount; + o.cidrBlock = cidrBlock; + o.customerOwnedIpv4Pool = customerOwnedIpv4Pool; + o.defaultForAz = defaultForAz; + o.enableDns64 = enableDns64; + o.enableResourceNameDnsARecordOnLaunch = enableResourceNameDnsARecordOnLaunch; + o.enableResourceNameDnsAaaaRecordOnLaunch = enableResourceNameDnsAaaaRecordOnLaunch; + o.filters = filters; + o.id = id; + o.ipv6CidrBlock = ipv6CidrBlock; + o.ipv6CidrBlockAssociationId = ipv6CidrBlockAssociationId; + o.ipv6Native = ipv6Native; + o.mapCustomerOwnedIpOnLaunch = mapCustomerOwnedIpOnLaunch; + o.mapPublicIpOnLaunch = mapPublicIpOnLaunch; + o.outpostArn = outpostArn; + o.ownerId = ownerId; + o.privateDnsHostnameTypeOnLaunch = privateDnsHostnameTypeOnLaunch; + o.state = state; + o.tags = tags; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetsFilter.java index 4cf5aee1227..88da5f6b3fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetsFilter.java @@ -16,22 +16,15 @@ public final class GetSubnetsFilter { * For example, if matching against tag `Name`, use: * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * Subnet IDs will be selected if any one of the given values match. * */ - private final List values; - - @CustomType.Constructor - private GetSubnetsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetSubnetsFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSubnets.html). @@ -57,33 +50,35 @@ public static Builder builder() { public static Builder builder(GetSubnetsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSubnetsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetSubnetsFilter build() { - return new GetSubnetsFilter(name, values); + } + public GetSubnetsFilter build() { + final var o = new GetSubnetsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetsResult.java index 0ed94500b1c..822f9da1331 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetSubnetsResult.java @@ -13,31 +13,20 @@ @CustomType public final class GetSubnetsResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A list of all the subnet ids found. * */ - private final List ids; - private final Map tags; - - @CustomType.Constructor - private GetSubnetsResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") Map tags) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - } + private List ids; + private Map tags; + private GetSubnetsResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -66,17 +55,13 @@ public static Builder builder() { public static Builder builder(GetSubnetsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSubnetsResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -85,6 +70,7 @@ public Builder(GetSubnetsResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -92,10 +78,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetSubnetsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -103,11 +91,18 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetSubnetsResult build() { - return new GetSubnetsResult(filters, id, ids, tags); + } + public GetSubnetsResult build() { + final var o = new GetSubnetsResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetTransitGatewayRouteTablesFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetTransitGatewayRouteTablesFilter.java index af7fc900062..b1f2c7350d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetTransitGatewayRouteTablesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetTransitGatewayRouteTablesFilter.java @@ -15,22 +15,15 @@ public final class GetTransitGatewayRouteTablesFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayRouteTables.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A Transit Gateway Route Table will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetTransitGatewayRouteTablesFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetTransitGatewayRouteTablesFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayRouteTables.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetTransitGatewayRouteTablesFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTransitGatewayRouteTablesFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTransitGatewayRouteTablesFilter build() { - return new GetTransitGatewayRouteTablesFilter(name, values); + } + public GetTransitGatewayRouteTablesFilter build() { + final var o = new GetTransitGatewayRouteTablesFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetTransitGatewayRouteTablesResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetTransitGatewayRouteTablesResult.java index 19688f7d312..39fe314ab83 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetTransitGatewayRouteTablesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetTransitGatewayRouteTablesResult.java @@ -13,31 +13,20 @@ @CustomType public final class GetTransitGatewayRouteTablesResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of Transit Gateway Route Table identifiers. * */ - private final List ids; - private final Map tags; - - @CustomType.Constructor - private GetTransitGatewayRouteTablesResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") Map tags) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - } + private List ids; + private Map tags; + private GetTransitGatewayRouteTablesResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -66,17 +55,13 @@ public static Builder builder() { public static Builder builder(GetTransitGatewayRouteTablesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTransitGatewayRouteTablesResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -85,6 +70,7 @@ public Builder(GetTransitGatewayRouteTablesResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -92,10 +78,12 @@ public Builder filters(@Nullable List filter public Builder filters(GetTransitGatewayRouteTablesFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -103,11 +91,18 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetTransitGatewayRouteTablesResult build() { - return new GetTransitGatewayRouteTablesResult(filters, id, ids, tags); + } + public GetTransitGatewayRouteTablesResult build() { + final var o = new GetTransitGatewayRouteTablesResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcCidrBlockAssociation.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcCidrBlockAssociation.java index 641a84c7d5f..aa0de89e404 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcCidrBlockAssociation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcCidrBlockAssociation.java @@ -13,29 +13,20 @@ public final class GetVpcCidrBlockAssociation { * @return The association ID for the the IPv4 CIDR block. * */ - private final String associationId; + private String associationId; /** * @return The cidr block of the desired VPC. * */ - private final String cidrBlock; + private String cidrBlock; /** * @return The current state of the desired VPC. * Can be either `"pending"` or `"available"`. * */ - private final String state; - - @CustomType.Constructor - private GetVpcCidrBlockAssociation( - @CustomType.Parameter("associationId") String associationId, - @CustomType.Parameter("cidrBlock") String cidrBlock, - @CustomType.Parameter("state") String state) { - this.associationId = associationId; - this.cidrBlock = cidrBlock; - this.state = state; - } + private String state; + private GetVpcCidrBlockAssociation() {} /** * @return The association ID for the the IPv4 CIDR block. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetVpcCidrBlockAssociation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String associationId; private String cidrBlock; private String state; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcCidrBlockAssociation defaults) { Objects.requireNonNull(defaults); this.associationId = defaults.associationId; @@ -83,19 +70,27 @@ public Builder(GetVpcCidrBlockAssociation defaults) { this.state = defaults.state; } + @CustomType.Setter public Builder associationId(String associationId) { this.associationId = Objects.requireNonNull(associationId); return this; } + @CustomType.Setter public Builder cidrBlock(String cidrBlock) { this.cidrBlock = Objects.requireNonNull(cidrBlock); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; - } public GetVpcCidrBlockAssociation build() { - return new GetVpcCidrBlockAssociation(associationId, cidrBlock, state); + } + public GetVpcCidrBlockAssociation build() { + final var o = new GetVpcCidrBlockAssociation(); + o.associationId = associationId; + o.cidrBlock = cidrBlock; + o.state = state; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcDhcpOptionsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcDhcpOptionsFilter.java index 8616e774f27..717b74eceb9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcDhcpOptionsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcDhcpOptionsFilter.java @@ -14,21 +14,14 @@ public final class GetVpcDhcpOptionsFilter { * @return The name of the field to filter. * */ - private final String name; + private String name; /** * @return Set of values for filtering. * */ - private final List values; - - @CustomType.Constructor - private GetVpcDhcpOptionsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetVpcDhcpOptionsFilter() {} /** * @return The name of the field to filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetVpcDhcpOptionsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcDhcpOptionsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVpcDhcpOptionsFilter build() { - return new GetVpcDhcpOptionsFilter(name, values); + } + public GetVpcDhcpOptionsFilter build() { + final var o = new GetVpcDhcpOptionsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcDhcpOptionsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcDhcpOptionsResult.java index 9d6fbc253d3..b24329e54db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcDhcpOptionsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcDhcpOptionsResult.java @@ -17,80 +17,55 @@ public final class GetVpcDhcpOptionsResult { * @return The ARN of the DHCP Options Set. * */ - private final String arn; + private String arn; /** * @return EC2 DHCP Options ID * */ - private final String dhcpOptionsId; + private String dhcpOptionsId; /** * @return The suffix domain name to used when resolving non Fully Qualified Domain NamesE.g., the `search` value in the `/etc/resolv.conf` file. * */ - private final String domainName; + private String domainName; /** * @return List of name servers. * */ - private final List domainNameServers; - private final @Nullable List filters; + private List domainNameServers; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return List of NETBIOS name servers. * */ - private final List netbiosNameServers; + private List netbiosNameServers; /** * @return The NetBIOS node type (1, 2, 4, or 8). For more information about these node types, see [RFC 2132](http://www.ietf.org/rfc/rfc2132.txt). * */ - private final String netbiosNodeType; + private String netbiosNodeType; /** * @return List of NTP servers. * */ - private final List ntpServers; + private List ntpServers; /** * @return The ID of the AWS account that owns the DHCP options set. * */ - private final String ownerId; + private String ownerId; /** * @return A map of tags assigned to the resource. * */ - private final Map tags; - - @CustomType.Constructor - private GetVpcDhcpOptionsResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("dhcpOptionsId") String dhcpOptionsId, - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("domainNameServers") List domainNameServers, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("netbiosNameServers") List netbiosNameServers, - @CustomType.Parameter("netbiosNodeType") String netbiosNodeType, - @CustomType.Parameter("ntpServers") List ntpServers, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.dhcpOptionsId = dhcpOptionsId; - this.domainName = domainName; - this.domainNameServers = domainNameServers; - this.filters = filters; - this.id = id; - this.netbiosNameServers = netbiosNameServers; - this.netbiosNodeType = netbiosNodeType; - this.ntpServers = ntpServers; - this.ownerId = ownerId; - this.tags = tags; - } + private Map tags; + private GetVpcDhcpOptionsResult() {} /** * @return The ARN of the DHCP Options Set. * @@ -172,7 +147,7 @@ public static Builder builder() { public static Builder builder(GetVpcDhcpOptionsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String dhcpOptionsId; @@ -185,11 +160,7 @@ public static final class Builder { private List ntpServers; private String ownerId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcDhcpOptionsResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -205,18 +176,22 @@ public Builder(GetVpcDhcpOptionsResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder dhcpOptionsId(String dhcpOptionsId) { this.dhcpOptionsId = Objects.requireNonNull(dhcpOptionsId); return this; } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder domainNameServers(List domainNameServers) { this.domainNameServers = Objects.requireNonNull(domainNameServers); return this; @@ -224,6 +199,7 @@ public Builder domainNameServers(List domainNameServers) { public Builder domainNameServers(String... domainNameServers) { return domainNameServers(List.of(domainNameServers)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -231,10 +207,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVpcDhcpOptionsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder netbiosNameServers(List netbiosNameServers) { this.netbiosNameServers = Objects.requireNonNull(netbiosNameServers); return this; @@ -242,10 +220,12 @@ public Builder netbiosNameServers(List netbiosNameServers) { public Builder netbiosNameServers(String... netbiosNameServers) { return netbiosNameServers(List.of(netbiosNameServers)); } + @CustomType.Setter public Builder netbiosNodeType(String netbiosNodeType) { this.netbiosNodeType = Objects.requireNonNull(netbiosNodeType); return this; } + @CustomType.Setter public Builder ntpServers(List ntpServers) { this.ntpServers = Objects.requireNonNull(ntpServers); return this; @@ -253,15 +233,30 @@ public Builder ntpServers(List ntpServers) { public Builder ntpServers(String... ntpServers) { return ntpServers(List.of(ntpServers)); } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetVpcDhcpOptionsResult build() { - return new GetVpcDhcpOptionsResult(arn, dhcpOptionsId, domainName, domainNameServers, filters, id, netbiosNameServers, netbiosNodeType, ntpServers, ownerId, tags); + } + public GetVpcDhcpOptionsResult build() { + final var o = new GetVpcDhcpOptionsResult(); + o.arn = arn; + o.dhcpOptionsId = dhcpOptionsId; + o.domainName = domainName; + o.domainNameServers = domainNameServers; + o.filters = filters; + o.id = id; + o.netbiosNameServers = netbiosNameServers; + o.netbiosNodeType = netbiosNodeType; + o.ntpServers = ntpServers; + o.ownerId = ownerId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointDnsEntry.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointDnsEntry.java index f3a2e71a6ec..231ec4db4c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointDnsEntry.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointDnsEntry.java @@ -13,21 +13,14 @@ public final class GetVpcEndpointDnsEntry { * @return The DNS name. * */ - private final String dnsName; + private String dnsName; /** * @return The ID of the private hosted zone. * */ - private final String hostedZoneId; - - @CustomType.Constructor - private GetVpcEndpointDnsEntry( - @CustomType.Parameter("dnsName") String dnsName, - @CustomType.Parameter("hostedZoneId") String hostedZoneId) { - this.dnsName = dnsName; - this.hostedZoneId = hostedZoneId; - } + private String hostedZoneId; + private GetVpcEndpointDnsEntry() {} /** * @return The DNS name. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetVpcEndpointDnsEntry defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dnsName; private String hostedZoneId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcEndpointDnsEntry defaults) { Objects.requireNonNull(defaults); this.dnsName = defaults.dnsName; this.hostedZoneId = defaults.hostedZoneId; } + @CustomType.Setter public Builder dnsName(String dnsName) { this.dnsName = Objects.requireNonNull(dnsName); return this; } + @CustomType.Setter public Builder hostedZoneId(String hostedZoneId) { this.hostedZoneId = Objects.requireNonNull(hostedZoneId); return this; - } public GetVpcEndpointDnsEntry build() { - return new GetVpcEndpointDnsEntry(dnsName, hostedZoneId); + } + public GetVpcEndpointDnsEntry build() { + final var o = new GetVpcEndpointDnsEntry(); + o.dnsName = dnsName; + o.hostedZoneId = hostedZoneId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointDnsOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointDnsOption.java index befee93dc68..04120daf372 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointDnsOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointDnsOption.java @@ -9,13 +9,9 @@ @CustomType public final class GetVpcEndpointDnsOption { - private final String dnsRecordIpType; - - @CustomType.Constructor - private GetVpcEndpointDnsOption(@CustomType.Parameter("dnsRecordIpType") String dnsRecordIpType) { - this.dnsRecordIpType = dnsRecordIpType; - } + private String dnsRecordIpType; + private GetVpcEndpointDnsOption() {} public String dnsRecordIpType() { return this.dnsRecordIpType; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetVpcEndpointDnsOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dnsRecordIpType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcEndpointDnsOption defaults) { Objects.requireNonNull(defaults); this.dnsRecordIpType = defaults.dnsRecordIpType; } + @CustomType.Setter public Builder dnsRecordIpType(String dnsRecordIpType) { this.dnsRecordIpType = Objects.requireNonNull(dnsRecordIpType); return this; - } public GetVpcEndpointDnsOption build() { - return new GetVpcEndpointDnsOption(dnsRecordIpType); + } + public GetVpcEndpointDnsOption build() { + final var o = new GetVpcEndpointDnsOption(); + o.dnsRecordIpType = dnsRecordIpType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointFilter.java index 02459b9a1ff..83e5534d26c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointFilter.java @@ -15,22 +15,15 @@ public final class GetVpcEndpointFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcEndpoints.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A VPC Endpoint will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetVpcEndpointFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetVpcEndpointFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcEndpoints.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetVpcEndpointFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcEndpointFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVpcEndpointFilter build() { - return new GetVpcEndpointFilter(name, values); + } + public GetVpcEndpointFilter build() { + final var o = new GetVpcEndpointFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointResult.java index d8b80b64b62..360f4e8e287 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointResult.java @@ -20,122 +20,77 @@ public final class GetVpcEndpointResult { * @return The Amazon Resource Name (ARN) of the VPC endpoint. * */ - private final String arn; + private String arn; /** * @return The list of CIDR blocks for the exposed AWS service. Applicable for endpoints of type `Gateway`. * */ - private final List cidrBlocks; + private List cidrBlocks; /** * @return The DNS entries for the VPC Endpoint. Applicable for endpoints of type `Interface`. DNS blocks are documented below. * */ - private final List dnsEntries; - private final List dnsOptions; - private final @Nullable List filters; - private final String id; - private final String ipAddressType; + private List dnsEntries; + private List dnsOptions; + private @Nullable List filters; + private String id; + private String ipAddressType; /** * @return One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type `Interface`. * */ - private final List networkInterfaceIds; + private List networkInterfaceIds; /** * @return The ID of the AWS account that owns the VPC endpoint. * */ - private final String ownerId; + private String ownerId; /** * @return The policy document associated with the VPC Endpoint. Applicable for endpoints of type `Gateway`. * */ - private final String policy; + private String policy; /** * @return The prefix list ID of the exposed AWS service. Applicable for endpoints of type `Gateway`. * */ - private final String prefixListId; + private String prefixListId; /** * @return Whether or not the VPC is associated with a private hosted zone - `true` or `false`. Applicable for endpoints of type `Interface`. * */ - private final Boolean privateDnsEnabled; + private Boolean privateDnsEnabled; /** * @return Whether or not the VPC Endpoint is being managed by its service - `true` or `false`. * */ - private final Boolean requesterManaged; + private Boolean requesterManaged; /** * @return One or more route tables associated with the VPC Endpoint. Applicable for endpoints of type `Gateway`. * */ - private final List routeTableIds; + private List routeTableIds; /** * @return One or more security groups associated with the network interfaces. Applicable for endpoints of type `Interface`. * */ - private final List securityGroupIds; - private final String serviceName; - private final String state; + private List securityGroupIds; + private String serviceName; + private String state; /** * @return One or more subnets in which the VPC Endpoint is located. Applicable for endpoints of type `Interface`. * */ - private final List subnetIds; - private final Map tags; + private List subnetIds; + private Map tags; /** * @return The VPC Endpoint type, `Gateway` or `Interface`. * */ - private final String vpcEndpointType; - private final String vpcId; - - @CustomType.Constructor - private GetVpcEndpointResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("cidrBlocks") List cidrBlocks, - @CustomType.Parameter("dnsEntries") List dnsEntries, - @CustomType.Parameter("dnsOptions") List dnsOptions, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ipAddressType") String ipAddressType, - @CustomType.Parameter("networkInterfaceIds") List networkInterfaceIds, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("policy") String policy, - @CustomType.Parameter("prefixListId") String prefixListId, - @CustomType.Parameter("privateDnsEnabled") Boolean privateDnsEnabled, - @CustomType.Parameter("requesterManaged") Boolean requesterManaged, - @CustomType.Parameter("routeTableIds") List routeTableIds, - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("serviceName") String serviceName, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcEndpointType") String vpcEndpointType, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.cidrBlocks = cidrBlocks; - this.dnsEntries = dnsEntries; - this.dnsOptions = dnsOptions; - this.filters = filters; - this.id = id; - this.ipAddressType = ipAddressType; - this.networkInterfaceIds = networkInterfaceIds; - this.ownerId = ownerId; - this.policy = policy; - this.prefixListId = prefixListId; - this.privateDnsEnabled = privateDnsEnabled; - this.requesterManaged = requesterManaged; - this.routeTableIds = routeTableIds; - this.securityGroupIds = securityGroupIds; - this.serviceName = serviceName; - this.state = state; - this.subnetIds = subnetIds; - this.tags = tags; - this.vpcEndpointType = vpcEndpointType; - this.vpcId = vpcId; - } + private String vpcEndpointType; + private String vpcId; + private GetVpcEndpointResult() {} /** * @return The Amazon Resource Name (ARN) of the VPC endpoint. * @@ -259,7 +214,7 @@ public static Builder builder() { public static Builder builder(GetVpcEndpointResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List cidrBlocks; @@ -282,11 +237,7 @@ public static final class Builder { private Map tags; private String vpcEndpointType; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcEndpointResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -312,10 +263,12 @@ public Builder(GetVpcEndpointResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder cidrBlocks(List cidrBlocks) { this.cidrBlocks = Objects.requireNonNull(cidrBlocks); return this; @@ -323,6 +276,7 @@ public Builder cidrBlocks(List cidrBlocks) { public Builder cidrBlocks(String... cidrBlocks) { return cidrBlocks(List.of(cidrBlocks)); } + @CustomType.Setter public Builder dnsEntries(List dnsEntries) { this.dnsEntries = Objects.requireNonNull(dnsEntries); return this; @@ -330,6 +284,7 @@ public Builder dnsEntries(List dnsEntries) { public Builder dnsEntries(GetVpcEndpointDnsEntry... dnsEntries) { return dnsEntries(List.of(dnsEntries)); } + @CustomType.Setter public Builder dnsOptions(List dnsOptions) { this.dnsOptions = Objects.requireNonNull(dnsOptions); return this; @@ -337,6 +292,7 @@ public Builder dnsOptions(List dnsOptions) { public Builder dnsOptions(GetVpcEndpointDnsOption... dnsOptions) { return dnsOptions(List.of(dnsOptions)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -344,14 +300,17 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVpcEndpointFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ipAddressType(String ipAddressType) { this.ipAddressType = Objects.requireNonNull(ipAddressType); return this; } + @CustomType.Setter public Builder networkInterfaceIds(List networkInterfaceIds) { this.networkInterfaceIds = Objects.requireNonNull(networkInterfaceIds); return this; @@ -359,26 +318,32 @@ public Builder networkInterfaceIds(List networkInterfaceIds) { public Builder networkInterfaceIds(String... networkInterfaceIds) { return networkInterfaceIds(List.of(networkInterfaceIds)); } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder policy(String policy) { this.policy = Objects.requireNonNull(policy); return this; } + @CustomType.Setter public Builder prefixListId(String prefixListId) { this.prefixListId = Objects.requireNonNull(prefixListId); return this; } + @CustomType.Setter public Builder privateDnsEnabled(Boolean privateDnsEnabled) { this.privateDnsEnabled = Objects.requireNonNull(privateDnsEnabled); return this; } + @CustomType.Setter public Builder requesterManaged(Boolean requesterManaged) { this.requesterManaged = Objects.requireNonNull(requesterManaged); return this; } + @CustomType.Setter public Builder routeTableIds(List routeTableIds) { this.routeTableIds = Objects.requireNonNull(routeTableIds); return this; @@ -386,6 +351,7 @@ public Builder routeTableIds(List routeTableIds) { public Builder routeTableIds(String... routeTableIds) { return routeTableIds(List.of(routeTableIds)); } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -393,14 +359,17 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder serviceName(String serviceName) { this.serviceName = Objects.requireNonNull(serviceName); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -408,19 +377,45 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcEndpointType(String vpcEndpointType) { this.vpcEndpointType = Objects.requireNonNull(vpcEndpointType); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetVpcEndpointResult build() { - return new GetVpcEndpointResult(arn, cidrBlocks, dnsEntries, dnsOptions, filters, id, ipAddressType, networkInterfaceIds, ownerId, policy, prefixListId, privateDnsEnabled, requesterManaged, routeTableIds, securityGroupIds, serviceName, state, subnetIds, tags, vpcEndpointType, vpcId); + } + public GetVpcEndpointResult build() { + final var o = new GetVpcEndpointResult(); + o.arn = arn; + o.cidrBlocks = cidrBlocks; + o.dnsEntries = dnsEntries; + o.dnsOptions = dnsOptions; + o.filters = filters; + o.id = id; + o.ipAddressType = ipAddressType; + o.networkInterfaceIds = networkInterfaceIds; + o.ownerId = ownerId; + o.policy = policy; + o.prefixListId = prefixListId; + o.privateDnsEnabled = privateDnsEnabled; + o.requesterManaged = requesterManaged; + o.routeTableIds = routeTableIds; + o.securityGroupIds = securityGroupIds; + o.serviceName = serviceName; + o.state = state; + o.subnetIds = subnetIds; + o.tags = tags; + o.vpcEndpointType = vpcEndpointType; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointServiceFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointServiceFilter.java index 4952fde1b3e..7db73524f06 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointServiceFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointServiceFilter.java @@ -14,21 +14,14 @@ public final class GetVpcEndpointServiceFilter { * @return The name of the filter field. Valid values can be found in the [EC2 DescribeVpcEndpointServices API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcEndpointServices.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetVpcEndpointServiceFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetVpcEndpointServiceFilter() {} /** * @return The name of the filter field. Valid values can be found in the [EC2 DescribeVpcEndpointServices API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcEndpointServices.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetVpcEndpointServiceFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcEndpointServiceFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVpcEndpointServiceFilter build() { - return new GetVpcEndpointServiceFilter(name, values); + } + public GetVpcEndpointServiceFilter build() { + final var o = new GetVpcEndpointServiceFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointServiceResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointServiceResult.java index f5a6117cac4..e15d701cd82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointServiceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcEndpointServiceResult.java @@ -19,103 +19,68 @@ public final class GetVpcEndpointServiceResult { * @return Whether or not VPC endpoint connection requests to the service must be accepted by the service owner - `true` or `false`. * */ - private final Boolean acceptanceRequired; + private Boolean acceptanceRequired; /** * @return The Amazon Resource Name (ARN) of the VPC endpoint service. * */ - private final String arn; + private String arn; /** * @return The Availability Zones in which the service is available. * */ - private final List availabilityZones; + private List availabilityZones; /** * @return The DNS names for the service. * */ - private final List baseEndpointDnsNames; - private final @Nullable List filters; + private List baseEndpointDnsNames; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Whether or not the service manages its VPC endpoints - `true` or `false`. * */ - private final Boolean managesVpcEndpoints; + private Boolean managesVpcEndpoints; /** * @return The AWS account ID of the service owner or `amazon`. * */ - private final String owner; + private String owner; /** * @return The private DNS name for the service. * */ - private final String privateDnsName; - private final @Nullable String service; + private String privateDnsName; + private @Nullable String service; /** * @return The ID of the endpoint service. * */ - private final String serviceId; - private final String serviceName; - private final String serviceType; + private String serviceId; + private String serviceName; + private String serviceType; /** * @return The supported IP address types. * */ - private final List supportedIpAddressTypes; + private List supportedIpAddressTypes; /** * @return A map of tags assigned to the resource. * */ - private final Map tags; + private Map tags; /** * @return Whether or not the service supports endpoint policies - `true` or `false`. * */ - private final Boolean vpcEndpointPolicySupported; - - @CustomType.Constructor - private GetVpcEndpointServiceResult( - @CustomType.Parameter("acceptanceRequired") Boolean acceptanceRequired, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("baseEndpointDnsNames") List baseEndpointDnsNames, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("managesVpcEndpoints") Boolean managesVpcEndpoints, - @CustomType.Parameter("owner") String owner, - @CustomType.Parameter("privateDnsName") String privateDnsName, - @CustomType.Parameter("service") @Nullable String service, - @CustomType.Parameter("serviceId") String serviceId, - @CustomType.Parameter("serviceName") String serviceName, - @CustomType.Parameter("serviceType") String serviceType, - @CustomType.Parameter("supportedIpAddressTypes") List supportedIpAddressTypes, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcEndpointPolicySupported") Boolean vpcEndpointPolicySupported) { - this.acceptanceRequired = acceptanceRequired; - this.arn = arn; - this.availabilityZones = availabilityZones; - this.baseEndpointDnsNames = baseEndpointDnsNames; - this.filters = filters; - this.id = id; - this.managesVpcEndpoints = managesVpcEndpoints; - this.owner = owner; - this.privateDnsName = privateDnsName; - this.service = service; - this.serviceId = serviceId; - this.serviceName = serviceName; - this.serviceType = serviceType; - this.supportedIpAddressTypes = supportedIpAddressTypes; - this.tags = tags; - this.vpcEndpointPolicySupported = vpcEndpointPolicySupported; - } + private Boolean vpcEndpointPolicySupported; + private GetVpcEndpointServiceResult() {} /** * @return Whether or not VPC endpoint connection requests to the service must be accepted by the service owner - `true` or `false`. * @@ -220,7 +185,7 @@ public static Builder builder() { public static Builder builder(GetVpcEndpointServiceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean acceptanceRequired; private String arn; @@ -238,11 +203,7 @@ public static final class Builder { private List supportedIpAddressTypes; private Map tags; private Boolean vpcEndpointPolicySupported; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcEndpointServiceResult defaults) { Objects.requireNonNull(defaults); this.acceptanceRequired = defaults.acceptanceRequired; @@ -263,14 +224,17 @@ public Builder(GetVpcEndpointServiceResult defaults) { this.vpcEndpointPolicySupported = defaults.vpcEndpointPolicySupported; } + @CustomType.Setter public Builder acceptanceRequired(Boolean acceptanceRequired) { this.acceptanceRequired = Objects.requireNonNull(acceptanceRequired); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -278,6 +242,7 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder baseEndpointDnsNames(List baseEndpointDnsNames) { this.baseEndpointDnsNames = Objects.requireNonNull(baseEndpointDnsNames); return this; @@ -285,6 +250,7 @@ public Builder baseEndpointDnsNames(List baseEndpointDnsNames) { public Builder baseEndpointDnsNames(String... baseEndpointDnsNames) { return baseEndpointDnsNames(List.of(baseEndpointDnsNames)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -292,38 +258,47 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVpcEndpointServiceFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder managesVpcEndpoints(Boolean managesVpcEndpoints) { this.managesVpcEndpoints = Objects.requireNonNull(managesVpcEndpoints); return this; } + @CustomType.Setter public Builder owner(String owner) { this.owner = Objects.requireNonNull(owner); return this; } + @CustomType.Setter public Builder privateDnsName(String privateDnsName) { this.privateDnsName = Objects.requireNonNull(privateDnsName); return this; } + @CustomType.Setter public Builder service(@Nullable String service) { this.service = service; return this; } + @CustomType.Setter public Builder serviceId(String serviceId) { this.serviceId = Objects.requireNonNull(serviceId); return this; } + @CustomType.Setter public Builder serviceName(String serviceName) { this.serviceName = Objects.requireNonNull(serviceName); return this; } + @CustomType.Setter public Builder serviceType(String serviceType) { this.serviceType = Objects.requireNonNull(serviceType); return this; } + @CustomType.Setter public Builder supportedIpAddressTypes(List supportedIpAddressTypes) { this.supportedIpAddressTypes = Objects.requireNonNull(supportedIpAddressTypes); return this; @@ -331,15 +306,35 @@ public Builder supportedIpAddressTypes(List supportedIpAddressTypes) { public Builder supportedIpAddressTypes(String... supportedIpAddressTypes) { return supportedIpAddressTypes(List.of(supportedIpAddressTypes)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcEndpointPolicySupported(Boolean vpcEndpointPolicySupported) { this.vpcEndpointPolicySupported = Objects.requireNonNull(vpcEndpointPolicySupported); return this; - } public GetVpcEndpointServiceResult build() { - return new GetVpcEndpointServiceResult(acceptanceRequired, arn, availabilityZones, baseEndpointDnsNames, filters, id, managesVpcEndpoints, owner, privateDnsName, service, serviceId, serviceName, serviceType, supportedIpAddressTypes, tags, vpcEndpointPolicySupported); + } + public GetVpcEndpointServiceResult build() { + final var o = new GetVpcEndpointServiceResult(); + o.acceptanceRequired = acceptanceRequired; + o.arn = arn; + o.availabilityZones = availabilityZones; + o.baseEndpointDnsNames = baseEndpointDnsNames; + o.filters = filters; + o.id = id; + o.managesVpcEndpoints = managesVpcEndpoints; + o.owner = owner; + o.privateDnsName = privateDnsName; + o.service = service; + o.serviceId = serviceId; + o.serviceName = serviceName; + o.serviceType = serviceType; + o.supportedIpAddressTypes = supportedIpAddressTypes; + o.tags = tags; + o.vpcEndpointPolicySupported = vpcEndpointPolicySupported; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcFilter.java index ffc6bc46594..efbf7264cf9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcFilter.java @@ -15,22 +15,15 @@ public final class GetVpcFilter { * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A VPC will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetVpcFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetVpcFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetVpcFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVpcFilter build() { - return new GetVpcFilter(name, values); + } + public GetVpcFilter build() { + final var o = new GetVpcFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcIamPoolFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcIamPoolFilter.java index 882dbac2d14..76325a738c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcIamPoolFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcIamPoolFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetVpcIamPoolFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetVpcIamPoolFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetVpcIamPoolFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetVpcIamPoolFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcIamPoolFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVpcIamPoolFilter build() { - return new GetVpcIamPoolFilter(name, values); + } + public GetVpcIamPoolFilter build() { + final var o = new GetVpcIamPoolFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcIamPoolResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcIamPoolResult.java index 8c950acb5aa..8b6fbf29e2e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcIamPoolResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcIamPoolResult.java @@ -20,127 +20,84 @@ public final class GetVpcIamPoolResult { * @return The IP protocol assigned to this pool. * */ - private final String addressFamily; + private String addressFamily; /** * @return A default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16. * */ - private final Integer allocationDefaultNetmaskLength; + private Integer allocationDefaultNetmaskLength; /** * @return The maximum netmask length that will be required for CIDR allocations in this pool. * */ - private final Integer allocationMaxNetmaskLength; + private Integer allocationMaxNetmaskLength; /** * @return The minimum netmask length that will be required for CIDR allocations in this pool. * */ - private final Integer allocationMinNetmaskLength; + private Integer allocationMinNetmaskLength; /** * @return Tags that are required to create resources in using this pool. * */ - private final Map allocationResourceTags; + private Map allocationResourceTags; /** * @return Amazon Resource Name (ARN) of the pool * */ - private final String arn; + private String arn; /** * @return If enabled, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. * */ - private final Boolean autoImport; + private Boolean autoImport; /** * @return Limits which service in AWS that the pool can be used in. "ec2", for example, allows users to use space for Elastic IP addresses and VPCs. * */ - private final String awsService; + private String awsService; /** * @return A description for the IPAM pool. * */ - private final String description; - private final @Nullable List filters; + private String description; + private @Nullable List filters; /** * @return The ID of the IPAM pool. * */ - private final @Nullable String id; - private final @Nullable String ipamPoolId; + private @Nullable String id; + private @Nullable String ipamPoolId; /** * @return The ID of the scope the pool belongs to. * */ - private final String ipamScopeId; - private final String ipamScopeType; + private String ipamScopeId; + private String ipamScopeType; /** * @return Locale is the Region where your pool is available for allocations. You can only create pools with locales that match the operating Regions of the IPAM. You can only create VPCs from a pool whose locale matches the VPC's Region. * */ - private final String locale; - private final Integer poolDepth; + private String locale; + private Integer poolDepth; /** * @return Defines whether or not IPv6 pool space is publicly ∂advertisable over the internet. * */ - private final Boolean publiclyAdvertisable; + private Boolean publiclyAdvertisable; /** * @return The ID of the source IPAM pool. * */ - private final String sourceIpamPoolId; - private final String state; + private String sourceIpamPoolId; + private String state; /** * @return A map of tags to assigned to the resource. * */ - private final Map tags; - - @CustomType.Constructor - private GetVpcIamPoolResult( - @CustomType.Parameter("addressFamily") String addressFamily, - @CustomType.Parameter("allocationDefaultNetmaskLength") Integer allocationDefaultNetmaskLength, - @CustomType.Parameter("allocationMaxNetmaskLength") Integer allocationMaxNetmaskLength, - @CustomType.Parameter("allocationMinNetmaskLength") Integer allocationMinNetmaskLength, - @CustomType.Parameter("allocationResourceTags") Map allocationResourceTags, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("autoImport") Boolean autoImport, - @CustomType.Parameter("awsService") String awsService, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("ipamPoolId") @Nullable String ipamPoolId, - @CustomType.Parameter("ipamScopeId") String ipamScopeId, - @CustomType.Parameter("ipamScopeType") String ipamScopeType, - @CustomType.Parameter("locale") String locale, - @CustomType.Parameter("poolDepth") Integer poolDepth, - @CustomType.Parameter("publiclyAdvertisable") Boolean publiclyAdvertisable, - @CustomType.Parameter("sourceIpamPoolId") String sourceIpamPoolId, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("tags") Map tags) { - this.addressFamily = addressFamily; - this.allocationDefaultNetmaskLength = allocationDefaultNetmaskLength; - this.allocationMaxNetmaskLength = allocationMaxNetmaskLength; - this.allocationMinNetmaskLength = allocationMinNetmaskLength; - this.allocationResourceTags = allocationResourceTags; - this.arn = arn; - this.autoImport = autoImport; - this.awsService = awsService; - this.description = description; - this.filters = filters; - this.id = id; - this.ipamPoolId = ipamPoolId; - this.ipamScopeId = ipamScopeId; - this.ipamScopeType = ipamScopeType; - this.locale = locale; - this.poolDepth = poolDepth; - this.publiclyAdvertisable = publiclyAdvertisable; - this.sourceIpamPoolId = sourceIpamPoolId; - this.state = state; - this.tags = tags; - } + private Map tags; + private GetVpcIamPoolResult() {} /** * @return The IP protocol assigned to this pool. * @@ -269,7 +226,7 @@ public static Builder builder() { public static Builder builder(GetVpcIamPoolResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String addressFamily; private Integer allocationDefaultNetmaskLength; @@ -291,11 +248,7 @@ public static final class Builder { private String sourceIpamPoolId; private String state; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcIamPoolResult defaults) { Objects.requireNonNull(defaults); this.addressFamily = defaults.addressFamily; @@ -320,42 +273,52 @@ public Builder(GetVpcIamPoolResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder addressFamily(String addressFamily) { this.addressFamily = Objects.requireNonNull(addressFamily); return this; } + @CustomType.Setter public Builder allocationDefaultNetmaskLength(Integer allocationDefaultNetmaskLength) { this.allocationDefaultNetmaskLength = Objects.requireNonNull(allocationDefaultNetmaskLength); return this; } + @CustomType.Setter public Builder allocationMaxNetmaskLength(Integer allocationMaxNetmaskLength) { this.allocationMaxNetmaskLength = Objects.requireNonNull(allocationMaxNetmaskLength); return this; } + @CustomType.Setter public Builder allocationMinNetmaskLength(Integer allocationMinNetmaskLength) { this.allocationMinNetmaskLength = Objects.requireNonNull(allocationMinNetmaskLength); return this; } + @CustomType.Setter public Builder allocationResourceTags(Map allocationResourceTags) { this.allocationResourceTags = Objects.requireNonNull(allocationResourceTags); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder autoImport(Boolean autoImport) { this.autoImport = Objects.requireNonNull(autoImport); return this; } + @CustomType.Setter public Builder awsService(String awsService) { this.awsService = Objects.requireNonNull(awsService); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -363,47 +326,79 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVpcIamPoolFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder ipamPoolId(@Nullable String ipamPoolId) { this.ipamPoolId = ipamPoolId; return this; } + @CustomType.Setter public Builder ipamScopeId(String ipamScopeId) { this.ipamScopeId = Objects.requireNonNull(ipamScopeId); return this; } + @CustomType.Setter public Builder ipamScopeType(String ipamScopeType) { this.ipamScopeType = Objects.requireNonNull(ipamScopeType); return this; } + @CustomType.Setter public Builder locale(String locale) { this.locale = Objects.requireNonNull(locale); return this; } + @CustomType.Setter public Builder poolDepth(Integer poolDepth) { this.poolDepth = Objects.requireNonNull(poolDepth); return this; } + @CustomType.Setter public Builder publiclyAdvertisable(Boolean publiclyAdvertisable) { this.publiclyAdvertisable = Objects.requireNonNull(publiclyAdvertisable); return this; } + @CustomType.Setter public Builder sourceIpamPoolId(String sourceIpamPoolId) { this.sourceIpamPoolId = Objects.requireNonNull(sourceIpamPoolId); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetVpcIamPoolResult build() { - return new GetVpcIamPoolResult(addressFamily, allocationDefaultNetmaskLength, allocationMaxNetmaskLength, allocationMinNetmaskLength, allocationResourceTags, arn, autoImport, awsService, description, filters, id, ipamPoolId, ipamScopeId, ipamScopeType, locale, poolDepth, publiclyAdvertisable, sourceIpamPoolId, state, tags); + } + public GetVpcIamPoolResult build() { + final var o = new GetVpcIamPoolResult(); + o.addressFamily = addressFamily; + o.allocationDefaultNetmaskLength = allocationDefaultNetmaskLength; + o.allocationMaxNetmaskLength = allocationMaxNetmaskLength; + o.allocationMinNetmaskLength = allocationMinNetmaskLength; + o.allocationResourceTags = allocationResourceTags; + o.arn = arn; + o.autoImport = autoImport; + o.awsService = awsService; + o.description = description; + o.filters = filters; + o.id = id; + o.ipamPoolId = ipamPoolId; + o.ipamScopeId = ipamScopeId; + o.ipamScopeType = ipamScopeType; + o.locale = locale; + o.poolDepth = poolDepth; + o.publiclyAdvertisable = publiclyAdvertisable; + o.sourceIpamPoolId = sourceIpamPoolId; + o.state = state; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionCidrBlockSet.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionCidrBlockSet.java index caf813f23ef..d7bb9148d38 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionCidrBlockSet.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionCidrBlockSet.java @@ -13,13 +13,9 @@ public final class GetVpcPeeringConnectionCidrBlockSet { * @return The primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve. * */ - private final String cidrBlock; - - @CustomType.Constructor - private GetVpcPeeringConnectionCidrBlockSet(@CustomType.Parameter("cidrBlock") String cidrBlock) { - this.cidrBlock = cidrBlock; - } + private String cidrBlock; + private GetVpcPeeringConnectionCidrBlockSet() {} /** * @return The primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetVpcPeeringConnectionCidrBlockSet defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cidrBlock; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcPeeringConnectionCidrBlockSet defaults) { Objects.requireNonNull(defaults); this.cidrBlock = defaults.cidrBlock; } + @CustomType.Setter public Builder cidrBlock(String cidrBlock) { this.cidrBlock = Objects.requireNonNull(cidrBlock); return this; - } public GetVpcPeeringConnectionCidrBlockSet build() { - return new GetVpcPeeringConnectionCidrBlockSet(cidrBlock); + } + public GetVpcPeeringConnectionCidrBlockSet build() { + final var o = new GetVpcPeeringConnectionCidrBlockSet(); + o.cidrBlock = cidrBlock; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionFilter.java index c1f6f35fffa..a9c46527d7a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionFilter.java @@ -15,22 +15,15 @@ public final class GetVpcPeeringConnectionFilter { * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcPeeringConnections.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A VPC Peering Connection will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetVpcPeeringConnectionFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetVpcPeeringConnectionFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcPeeringConnections.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetVpcPeeringConnectionFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcPeeringConnectionFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVpcPeeringConnectionFilter build() { - return new GetVpcPeeringConnectionFilter(name, values); + } + public GetVpcPeeringConnectionFilter build() { + final var o = new GetVpcPeeringConnectionFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionPeerCidrBlockSet.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionPeerCidrBlockSet.java index 1d5d7735fe2..5f0d81d0ea0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionPeerCidrBlockSet.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionPeerCidrBlockSet.java @@ -13,13 +13,9 @@ public final class GetVpcPeeringConnectionPeerCidrBlockSet { * @return The primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve. * */ - private final String cidrBlock; - - @CustomType.Constructor - private GetVpcPeeringConnectionPeerCidrBlockSet(@CustomType.Parameter("cidrBlock") String cidrBlock) { - this.cidrBlock = cidrBlock; - } + private String cidrBlock; + private GetVpcPeeringConnectionPeerCidrBlockSet() {} /** * @return The primary CIDR block of the requester VPC of the specific VPC Peering Connection to retrieve. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetVpcPeeringConnectionPeerCidrBlockSet defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cidrBlock; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcPeeringConnectionPeerCidrBlockSet defaults) { Objects.requireNonNull(defaults); this.cidrBlock = defaults.cidrBlock; } + @CustomType.Setter public Builder cidrBlock(String cidrBlock) { this.cidrBlock = Objects.requireNonNull(cidrBlock); return this; - } public GetVpcPeeringConnectionPeerCidrBlockSet build() { - return new GetVpcPeeringConnectionPeerCidrBlockSet(cidrBlock); + } + public GetVpcPeeringConnectionPeerCidrBlockSet build() { + final var o = new GetVpcPeeringConnectionPeerCidrBlockSet(); + o.cidrBlock = cidrBlock; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionResult.java index 62b617145f3..81764b26c40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionResult.java @@ -21,76 +21,41 @@ public final class GetVpcPeeringConnectionResult { * (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC. * */ - private final Map accepter; + private Map accepter; /** * @return A CIDR block associated to the VPC of the specific VPC Peering Connection. * */ - private final String cidrBlock; + private String cidrBlock; /** * @return List of objects with CIDR blocks of the requester VPC. * */ - private final List cidrBlockSets; - private final @Nullable List filters; - private final String id; - private final String ownerId; - private final String peerCidrBlock; + private List cidrBlockSets; + private @Nullable List filters; + private String id; + private String ownerId; + private String peerCidrBlock; /** * @return List of objects with CIDR blocks of the accepter VPC. * */ - private final List peerCidrBlockSets; - private final String peerOwnerId; - private final String peerRegion; - private final String peerVpcId; - private final String region; + private List peerCidrBlockSets; + private String peerOwnerId; + private String peerRegion; + private String peerVpcId; + private String region; /** * @return A configuration block that describes [VPC Peering Connection] * (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the requester VPC. * */ - private final Map requester; - private final String status; - private final Map tags; - private final String vpcId; - - @CustomType.Constructor - private GetVpcPeeringConnectionResult( - @CustomType.Parameter("accepter") Map accepter, - @CustomType.Parameter("cidrBlock") String cidrBlock, - @CustomType.Parameter("cidrBlockSets") List cidrBlockSets, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("peerCidrBlock") String peerCidrBlock, - @CustomType.Parameter("peerCidrBlockSets") List peerCidrBlockSets, - @CustomType.Parameter("peerOwnerId") String peerOwnerId, - @CustomType.Parameter("peerRegion") String peerRegion, - @CustomType.Parameter("peerVpcId") String peerVpcId, - @CustomType.Parameter("region") String region, - @CustomType.Parameter("requester") Map requester, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId) { - this.accepter = accepter; - this.cidrBlock = cidrBlock; - this.cidrBlockSets = cidrBlockSets; - this.filters = filters; - this.id = id; - this.ownerId = ownerId; - this.peerCidrBlock = peerCidrBlock; - this.peerCidrBlockSets = peerCidrBlockSets; - this.peerOwnerId = peerOwnerId; - this.peerRegion = peerRegion; - this.peerVpcId = peerVpcId; - this.region = region; - this.requester = requester; - this.status = status; - this.tags = tags; - this.vpcId = vpcId; - } + private Map requester; + private String status; + private Map tags; + private String vpcId; + private GetVpcPeeringConnectionResult() {} /** * @return A configuration block that describes [VPC Peering Connection] * (https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html) options set for the accepter VPC. @@ -169,7 +134,7 @@ public static Builder builder() { public static Builder builder(GetVpcPeeringConnectionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map accepter; private String cidrBlock; @@ -187,11 +152,7 @@ public static final class Builder { private String status; private Map tags; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcPeeringConnectionResult defaults) { Objects.requireNonNull(defaults); this.accepter = defaults.accepter; @@ -212,14 +173,17 @@ public Builder(GetVpcPeeringConnectionResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder accepter(Map accepter) { this.accepter = Objects.requireNonNull(accepter); return this; } + @CustomType.Setter public Builder cidrBlock(String cidrBlock) { this.cidrBlock = Objects.requireNonNull(cidrBlock); return this; } + @CustomType.Setter public Builder cidrBlockSets(List cidrBlockSets) { this.cidrBlockSets = Objects.requireNonNull(cidrBlockSets); return this; @@ -227,6 +191,7 @@ public Builder cidrBlockSets(List cidrBlock public Builder cidrBlockSets(GetVpcPeeringConnectionCidrBlockSet... cidrBlockSets) { return cidrBlockSets(List.of(cidrBlockSets)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -234,18 +199,22 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVpcPeeringConnectionFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder peerCidrBlock(String peerCidrBlock) { this.peerCidrBlock = Objects.requireNonNull(peerCidrBlock); return this; } + @CustomType.Setter public Builder peerCidrBlockSets(List peerCidrBlockSets) { this.peerCidrBlockSets = Objects.requireNonNull(peerCidrBlockSets); return this; @@ -253,39 +222,65 @@ public Builder peerCidrBlockSets(List p public Builder peerCidrBlockSets(GetVpcPeeringConnectionPeerCidrBlockSet... peerCidrBlockSets) { return peerCidrBlockSets(List.of(peerCidrBlockSets)); } + @CustomType.Setter public Builder peerOwnerId(String peerOwnerId) { this.peerOwnerId = Objects.requireNonNull(peerOwnerId); return this; } + @CustomType.Setter public Builder peerRegion(String peerRegion) { this.peerRegion = Objects.requireNonNull(peerRegion); return this; } + @CustomType.Setter public Builder peerVpcId(String peerVpcId) { this.peerVpcId = Objects.requireNonNull(peerVpcId); return this; } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; } + @CustomType.Setter public Builder requester(Map requester) { this.requester = Objects.requireNonNull(requester); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetVpcPeeringConnectionResult build() { - return new GetVpcPeeringConnectionResult(accepter, cidrBlock, cidrBlockSets, filters, id, ownerId, peerCidrBlock, peerCidrBlockSets, peerOwnerId, peerRegion, peerVpcId, region, requester, status, tags, vpcId); + } + public GetVpcPeeringConnectionResult build() { + final var o = new GetVpcPeeringConnectionResult(); + o.accepter = accepter; + o.cidrBlock = cidrBlock; + o.cidrBlockSets = cidrBlockSets; + o.filters = filters; + o.id = id; + o.ownerId = ownerId; + o.peerCidrBlock = peerCidrBlock; + o.peerCidrBlockSets = peerCidrBlockSets; + o.peerOwnerId = peerOwnerId; + o.peerRegion = peerRegion; + o.peerVpcId = peerVpcId; + o.region = region; + o.requester = requester; + o.status = status; + o.tags = tags; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionsFilter.java index 80bacd24274..d3c90e5f20c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionsFilter.java @@ -15,22 +15,15 @@ public final class GetVpcPeeringConnectionsFilter { * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcPeeringConnections.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A VPC Peering Connection will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetVpcPeeringConnectionsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetVpcPeeringConnectionsFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcPeeringConnections.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetVpcPeeringConnectionsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcPeeringConnectionsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVpcPeeringConnectionsFilter build() { - return new GetVpcPeeringConnectionsFilter(name, values); + } + public GetVpcPeeringConnectionsFilter build() { + final var o = new GetVpcPeeringConnectionsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionsResult.java index 54d8893740b..00eb10b5651 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcPeeringConnectionsResult.java @@ -13,31 +13,20 @@ @CustomType public final class GetVpcPeeringConnectionsResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The IDs of the VPC Peering Connections. * */ - private final List ids; - private final Map tags; - - @CustomType.Constructor - private GetVpcPeeringConnectionsResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") Map tags) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - } + private List ids; + private Map tags; + private GetVpcPeeringConnectionsResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -66,17 +55,13 @@ public static Builder builder() { public static Builder builder(GetVpcPeeringConnectionsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcPeeringConnectionsResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -85,6 +70,7 @@ public Builder(GetVpcPeeringConnectionsResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -92,10 +78,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVpcPeeringConnectionsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -103,11 +91,18 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetVpcPeeringConnectionsResult build() { - return new GetVpcPeeringConnectionsResult(filters, id, ids, tags); + } + public GetVpcPeeringConnectionsResult build() { + final var o = new GetVpcPeeringConnectionsResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcResult.java index d383ce87c21..a2e9c463513 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcResult.java @@ -19,96 +19,61 @@ public final class GetVpcResult { * @return Amazon Resource Name (ARN) of VPC * */ - private final String arn; + private String arn; /** * @return The CIDR block for the association. * */ - private final String cidrBlock; - private final List cidrBlockAssociations; - private final Boolean default_; - private final String dhcpOptionsId; + private String cidrBlock; + private List cidrBlockAssociations; + private Boolean default_; + private String dhcpOptionsId; /** * @return Whether or not the VPC has DNS hostname support * */ - private final Boolean enableDnsHostnames; + private Boolean enableDnsHostnames; /** * @return Whether or not the VPC has DNS support * */ - private final Boolean enableDnsSupport; - private final @Nullable List filters; - private final String id; + private Boolean enableDnsSupport; + private @Nullable List filters; + private String id; /** * @return The allowed tenancy of instances launched into the * selected VPC. May be any of `"default"`, `"dedicated"`, or `"host"`. * */ - private final String instanceTenancy; + private String instanceTenancy; /** * @return The association ID for the IPv6 CIDR block. * */ - private final String ipv6AssociationId; + private String ipv6AssociationId; /** * @return The IPv6 CIDR block. * */ - private final String ipv6CidrBlock; + private String ipv6CidrBlock; /** * @return The ID of the main route table associated with this VPC. * */ - private final String mainRouteTableId; + private String mainRouteTableId; /** * @return The ID of the AWS account that owns the VPC. * */ - private final String ownerId; + private String ownerId; /** * @return The State of the association. * */ - private final String state; - private final Map tags; - - @CustomType.Constructor - private GetVpcResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("cidrBlock") String cidrBlock, - @CustomType.Parameter("cidrBlockAssociations") List cidrBlockAssociations, - @CustomType.Parameter("default") Boolean default_, - @CustomType.Parameter("dhcpOptionsId") String dhcpOptionsId, - @CustomType.Parameter("enableDnsHostnames") Boolean enableDnsHostnames, - @CustomType.Parameter("enableDnsSupport") Boolean enableDnsSupport, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceTenancy") String instanceTenancy, - @CustomType.Parameter("ipv6AssociationId") String ipv6AssociationId, - @CustomType.Parameter("ipv6CidrBlock") String ipv6CidrBlock, - @CustomType.Parameter("mainRouteTableId") String mainRouteTableId, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.cidrBlock = cidrBlock; - this.cidrBlockAssociations = cidrBlockAssociations; - this.default_ = default_; - this.dhcpOptionsId = dhcpOptionsId; - this.enableDnsHostnames = enableDnsHostnames; - this.enableDnsSupport = enableDnsSupport; - this.filters = filters; - this.id = id; - this.instanceTenancy = instanceTenancy; - this.ipv6AssociationId = ipv6AssociationId; - this.ipv6CidrBlock = ipv6CidrBlock; - this.mainRouteTableId = mainRouteTableId; - this.ownerId = ownerId; - this.state = state; - this.tags = tags; - } + private String state; + private Map tags; + private GetVpcResult() {} /** * @return Amazon Resource Name (ARN) of VPC * @@ -206,7 +171,7 @@ public static Builder builder() { public static Builder builder(GetVpcResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String cidrBlock; @@ -224,11 +189,7 @@ public static final class Builder { private String ownerId; private String state; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -249,14 +210,17 @@ public Builder(GetVpcResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder cidrBlock(String cidrBlock) { this.cidrBlock = Objects.requireNonNull(cidrBlock); return this; } + @CustomType.Setter public Builder cidrBlockAssociations(List cidrBlockAssociations) { this.cidrBlockAssociations = Objects.requireNonNull(cidrBlockAssociations); return this; @@ -264,22 +228,27 @@ public Builder cidrBlockAssociations(List cidrBlockA public Builder cidrBlockAssociations(GetVpcCidrBlockAssociation... cidrBlockAssociations) { return cidrBlockAssociations(List.of(cidrBlockAssociations)); } + @CustomType.Setter("default") public Builder default_(Boolean default_) { this.default_ = Objects.requireNonNull(default_); return this; } + @CustomType.Setter public Builder dhcpOptionsId(String dhcpOptionsId) { this.dhcpOptionsId = Objects.requireNonNull(dhcpOptionsId); return this; } + @CustomType.Setter public Builder enableDnsHostnames(Boolean enableDnsHostnames) { this.enableDnsHostnames = Objects.requireNonNull(enableDnsHostnames); return this; } + @CustomType.Setter public Builder enableDnsSupport(Boolean enableDnsSupport) { this.enableDnsSupport = Objects.requireNonNull(enableDnsSupport); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -287,39 +256,65 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVpcFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceTenancy(String instanceTenancy) { this.instanceTenancy = Objects.requireNonNull(instanceTenancy); return this; } + @CustomType.Setter public Builder ipv6AssociationId(String ipv6AssociationId) { this.ipv6AssociationId = Objects.requireNonNull(ipv6AssociationId); return this; } + @CustomType.Setter public Builder ipv6CidrBlock(String ipv6CidrBlock) { this.ipv6CidrBlock = Objects.requireNonNull(ipv6CidrBlock); return this; } + @CustomType.Setter public Builder mainRouteTableId(String mainRouteTableId) { this.mainRouteTableId = Objects.requireNonNull(mainRouteTableId); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetVpcResult build() { - return new GetVpcResult(arn, cidrBlock, cidrBlockAssociations, default_, dhcpOptionsId, enableDnsHostnames, enableDnsSupport, filters, id, instanceTenancy, ipv6AssociationId, ipv6CidrBlock, mainRouteTableId, ownerId, state, tags); + } + public GetVpcResult build() { + final var o = new GetVpcResult(); + o.arn = arn; + o.cidrBlock = cidrBlock; + o.cidrBlockAssociations = cidrBlockAssociations; + o.default_ = default_; + o.dhcpOptionsId = dhcpOptionsId; + o.enableDnsHostnames = enableDnsHostnames; + o.enableDnsSupport = enableDnsSupport; + o.filters = filters; + o.id = id; + o.instanceTenancy = instanceTenancy; + o.ipv6AssociationId = ipv6AssociationId; + o.ipv6CidrBlock = ipv6CidrBlock; + o.mainRouteTableId = mainRouteTableId; + o.ownerId = ownerId; + o.state = state; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcsFilter.java index 2edb86a2e94..74c1a05266b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcsFilter.java @@ -15,22 +15,15 @@ public final class GetVpcsFilter { * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A VPC will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetVpcsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetVpcsFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcs.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetVpcsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVpcsFilter build() { - return new GetVpcsFilter(name, values); + } + public GetVpcsFilter build() { + final var o = new GetVpcsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcsResult.java index a13f3c7be80..eaf1578de6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpcsResult.java @@ -13,31 +13,20 @@ @CustomType public final class GetVpcsResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A list of all the VPC Ids found. * */ - private final List ids; - private final Map tags; - - @CustomType.Constructor - private GetVpcsResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") Map tags) { - this.filters = filters; - this.id = id; - this.ids = ids; - this.tags = tags; - } + private List ids; + private Map tags; + private GetVpcsResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -66,17 +55,13 @@ public static Builder builder() { public static Builder builder(GetVpcsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcsResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -85,6 +70,7 @@ public Builder(GetVpcsResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -92,10 +78,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVpcsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -103,11 +91,18 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetVpcsResult build() { - return new GetVpcsResult(filters, id, ids, tags); + } + public GetVpcsResult build() { + final var o = new GetVpcsResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpnGatewayFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpnGatewayFilter.java index db453f14208..543aa97e341 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpnGatewayFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpnGatewayFilter.java @@ -15,22 +15,15 @@ public final class GetVpnGatewayFilter { * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpnGateways.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * A VPN Gateway will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetVpnGatewayFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetVpnGatewayFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpnGateways.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetVpnGatewayFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpnGatewayFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVpnGatewayFilter build() { - return new GetVpnGatewayFilter(name, values); + } + public GetVpnGatewayFilter build() { + final var o = new GetVpnGatewayFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpnGatewayResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpnGatewayResult.java index 19a8c22bf07..dfce27c363b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpnGatewayResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/GetVpnGatewayResult.java @@ -13,35 +13,16 @@ @CustomType public final class GetVpnGatewayResult { - private final String amazonSideAsn; - private final String arn; - private final String attachedVpcId; - private final String availabilityZone; - private final @Nullable List filters; - private final String id; - private final String state; - private final Map tags; - - @CustomType.Constructor - private GetVpnGatewayResult( - @CustomType.Parameter("amazonSideAsn") String amazonSideAsn, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("attachedVpcId") String attachedVpcId, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("tags") Map tags) { - this.amazonSideAsn = amazonSideAsn; - this.arn = arn; - this.attachedVpcId = attachedVpcId; - this.availabilityZone = availabilityZone; - this.filters = filters; - this.id = id; - this.state = state; - this.tags = tags; - } + private String amazonSideAsn; + private String arn; + private String attachedVpcId; + private String availabilityZone; + private @Nullable List filters; + private String id; + private String state; + private Map tags; + private GetVpnGatewayResult() {} public String amazonSideAsn() { return this.amazonSideAsn; } @@ -74,7 +55,7 @@ public static Builder builder() { public static Builder builder(GetVpnGatewayResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String amazonSideAsn; private String arn; @@ -84,11 +65,7 @@ public static final class Builder { private String id; private String state; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpnGatewayResult defaults) { Objects.requireNonNull(defaults); this.amazonSideAsn = defaults.amazonSideAsn; @@ -101,22 +78,27 @@ public Builder(GetVpnGatewayResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder amazonSideAsn(String amazonSideAsn) { this.amazonSideAsn = Objects.requireNonNull(amazonSideAsn); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder attachedVpcId(String attachedVpcId) { this.attachedVpcId = Objects.requireNonNull(attachedVpcId); return this; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -124,19 +106,32 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVpnGatewayFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetVpnGatewayResult build() { - return new GetVpnGatewayResult(amazonSideAsn, arn, attachedVpcId, availabilityZone, filters, id, state, tags); + } + public GetVpnGatewayResult build() { + final var o = new GetVpnGatewayResult(); + o.amazonSideAsn = amazonSideAsn; + o.arn = arn; + o.attachedVpcId = attachedVpcId; + o.availabilityZone = availabilityZone; + o.filters = filters; + o.id = id; + o.state = state; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceCapacityReservationSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceCapacityReservationSpecification.java index 95e2f6ee6e5..2f25dc1fb35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceCapacityReservationSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceCapacityReservationSpecification.java @@ -16,21 +16,14 @@ public final class InstanceCapacityReservationSpecification { * @return Indicates the instance's Capacity Reservation preferences. Can be `"open"` or `"none"`. (Default: `"open"`). * */ - private final @Nullable String capacityReservationPreference; + private @Nullable String capacityReservationPreference; /** * @return Information about the target Capacity Reservation. See Capacity Reservation Target below for more details. * */ - private final @Nullable InstanceCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget; - - @CustomType.Constructor - private InstanceCapacityReservationSpecification( - @CustomType.Parameter("capacityReservationPreference") @Nullable String capacityReservationPreference, - @CustomType.Parameter("capacityReservationTarget") @Nullable InstanceCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget) { - this.capacityReservationPreference = capacityReservationPreference; - this.capacityReservationTarget = capacityReservationTarget; - } + private @Nullable InstanceCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget; + private InstanceCapacityReservationSpecification() {} /** * @return Indicates the instance's Capacity Reservation preferences. Can be `"open"` or `"none"`. (Default: `"open"`). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(InstanceCapacityReservationSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String capacityReservationPreference; private @Nullable InstanceCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceCapacityReservationSpecification defaults) { Objects.requireNonNull(defaults); this.capacityReservationPreference = defaults.capacityReservationPreference; this.capacityReservationTarget = defaults.capacityReservationTarget; } + @CustomType.Setter public Builder capacityReservationPreference(@Nullable String capacityReservationPreference) { this.capacityReservationPreference = capacityReservationPreference; return this; } + @CustomType.Setter public Builder capacityReservationTarget(@Nullable InstanceCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget) { this.capacityReservationTarget = capacityReservationTarget; return this; - } public InstanceCapacityReservationSpecification build() { - return new InstanceCapacityReservationSpecification(capacityReservationPreference, capacityReservationTarget); + } + public InstanceCapacityReservationSpecification build() { + final var o = new InstanceCapacityReservationSpecification(); + o.capacityReservationPreference = capacityReservationPreference; + o.capacityReservationTarget = capacityReservationTarget; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceCapacityReservationSpecificationCapacityReservationTarget.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceCapacityReservationSpecificationCapacityReservationTarget.java index b4e2ccd88cb..2a94c171249 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceCapacityReservationSpecificationCapacityReservationTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceCapacityReservationSpecificationCapacityReservationTarget.java @@ -15,21 +15,14 @@ public final class InstanceCapacityReservationSpecificationCapacityReservationTa * @return The ID of the Capacity Reservation in which to run the instance. * */ - private final @Nullable String capacityReservationId; + private @Nullable String capacityReservationId; /** * @return The ARN of the Capacity Reservation resource group in which to run the instance. * */ - private final @Nullable String capacityReservationResourceGroupArn; - - @CustomType.Constructor - private InstanceCapacityReservationSpecificationCapacityReservationTarget( - @CustomType.Parameter("capacityReservationId") @Nullable String capacityReservationId, - @CustomType.Parameter("capacityReservationResourceGroupArn") @Nullable String capacityReservationResourceGroupArn) { - this.capacityReservationId = capacityReservationId; - this.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn; - } + private @Nullable String capacityReservationResourceGroupArn; + private InstanceCapacityReservationSpecificationCapacityReservationTarget() {} /** * @return The ID of the Capacity Reservation in which to run the instance. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(InstanceCapacityReservationSpecificationCapacityReservationTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String capacityReservationId; private @Nullable String capacityReservationResourceGroupArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceCapacityReservationSpecificationCapacityReservationTarget defaults) { Objects.requireNonNull(defaults); this.capacityReservationId = defaults.capacityReservationId; this.capacityReservationResourceGroupArn = defaults.capacityReservationResourceGroupArn; } + @CustomType.Setter public Builder capacityReservationId(@Nullable String capacityReservationId) { this.capacityReservationId = capacityReservationId; return this; } + @CustomType.Setter public Builder capacityReservationResourceGroupArn(@Nullable String capacityReservationResourceGroupArn) { this.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn; return this; - } public InstanceCapacityReservationSpecificationCapacityReservationTarget build() { - return new InstanceCapacityReservationSpecificationCapacityReservationTarget(capacityReservationId, capacityReservationResourceGroupArn); + } + public InstanceCapacityReservationSpecificationCapacityReservationTarget build() { + final var o = new InstanceCapacityReservationSpecificationCapacityReservationTarget(); + o.capacityReservationId = capacityReservationId; + o.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceCreditSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceCreditSpecification.java index a3d94ede5e5..6e4dda83909 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceCreditSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceCreditSpecification.java @@ -15,13 +15,9 @@ public final class InstanceCreditSpecification { * @return Credit option for CPU usage. Valid values include `standard` or `unlimited`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default. * */ - private final @Nullable String cpuCredits; - - @CustomType.Constructor - private InstanceCreditSpecification(@CustomType.Parameter("cpuCredits") @Nullable String cpuCredits) { - this.cpuCredits = cpuCredits; - } + private @Nullable String cpuCredits; + private InstanceCreditSpecification() {} /** * @return Credit option for CPU usage. Valid values include `standard` or `unlimited`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(InstanceCreditSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cpuCredits; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceCreditSpecification defaults) { Objects.requireNonNull(defaults); this.cpuCredits = defaults.cpuCredits; } + @CustomType.Setter public Builder cpuCredits(@Nullable String cpuCredits) { this.cpuCredits = cpuCredits; return this; - } public InstanceCreditSpecification build() { - return new InstanceCreditSpecification(cpuCredits); + } + public InstanceCreditSpecification build() { + final var o = new InstanceCreditSpecification(); + o.cpuCredits = cpuCredits; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceEbsBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceEbsBlockDevice.java index 79faa68d998..3fa9153d054 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceEbsBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceEbsBlockDevice.java @@ -18,84 +18,59 @@ public final class InstanceEbsBlockDevice { * @return Whether the volume should be destroyed on instance termination. Defaults to `true`. * */ - private final @Nullable Boolean deleteOnTermination; + private @Nullable Boolean deleteOnTermination; /** * @return Name of the device to mount. * */ - private final String deviceName; + private String deviceName; /** * @return Enables [EBS encryption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) on the volume. Defaults to `false`. Cannot be used with `snapshot_id`. Must be configured to perform drift detection. * */ - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return Amount of provisioned [IOPS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-io-characteristics.html). Only valid for volume_type of `io1`, `io2` or `gp3`. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return Amazon Resource Name (ARN) of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return Snapshot ID to mount. * */ - private final @Nullable String snapshotId; + private @Nullable String snapshotId; /** * @return A map of tags to assign to the device. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for `volume_type` of `gp3`. * */ - private final @Nullable Integer throughput; + private @Nullable Integer throughput; /** * @return ID of the volume. For example, the ID can be accessed like this, `aws_instance.web.root_block_device.0.volume_id`. * */ - private final @Nullable String volumeId; + private @Nullable String volumeId; /** * @return Size of the volume in gibibytes (GiB). * */ - private final @Nullable Integer volumeSize; + private @Nullable Integer volumeSize; /** * @return Type of volume. Valid values include `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1`, or `st1`. Defaults to `gp2`. * */ - private final @Nullable String volumeType; - - @CustomType.Constructor - private InstanceEbsBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("snapshotId") @Nullable String snapshotId, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeId") @Nullable String volumeId, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.encrypted = encrypted; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.snapshotId = snapshotId; - this.tags = tags; - this.throughput = throughput; - this.volumeId = volumeId; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable String volumeType; + private InstanceEbsBlockDevice() {} /** * @return Whether the volume should be destroyed on instance termination. Defaults to `true`. * @@ -181,7 +156,7 @@ public static Builder builder() { public static Builder builder(InstanceEbsBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private String deviceName; @@ -194,11 +169,7 @@ public static final class Builder { private @Nullable String volumeId; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceEbsBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -214,51 +185,75 @@ public Builder(InstanceEbsBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder snapshotId(@Nullable String snapshotId) { this.snapshotId = snapshotId; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeId(@Nullable String volumeId) { this.volumeId = volumeId; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public InstanceEbsBlockDevice build() { - return new InstanceEbsBlockDevice(deleteOnTermination, deviceName, encrypted, iops, kmsKeyId, snapshotId, tags, throughput, volumeId, volumeSize, volumeType); + } + public InstanceEbsBlockDevice build() { + final var o = new InstanceEbsBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.encrypted = encrypted; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.snapshotId = snapshotId; + o.tags = tags; + o.throughput = throughput; + o.volumeId = volumeId; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceEnclaveOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceEnclaveOptions.java index 2ef736f51d3..3c0ce429bd7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceEnclaveOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceEnclaveOptions.java @@ -15,13 +15,9 @@ public final class InstanceEnclaveOptions { * @return Whether Nitro Enclaves will be enabled on the instance. Defaults to `false`. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private InstanceEnclaveOptions(@CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private InstanceEnclaveOptions() {} /** * @return Whether Nitro Enclaves will be enabled on the instance. Defaults to `false`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(InstanceEnclaveOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceEnclaveOptions defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public InstanceEnclaveOptions build() { - return new InstanceEnclaveOptions(enabled); + } + public InstanceEnclaveOptions build() { + final var o = new InstanceEnclaveOptions(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceEphemeralBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceEphemeralBlockDevice.java index 1f7a1ae6f8f..3e85a679ef4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceEphemeralBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceEphemeralBlockDevice.java @@ -16,28 +16,19 @@ public final class InstanceEphemeralBlockDevice { * @return The name of the block device to mount on the instance. * */ - private final String deviceName; + private String deviceName; /** * @return Suppresses the specified device included in the AMI's block device mapping. * */ - private final @Nullable Boolean noDevice; + private @Nullable Boolean noDevice; /** * @return [Instance Store Device Name](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames) (e.g., `ephemeral0`). * */ - private final @Nullable String virtualName; - - @CustomType.Constructor - private InstanceEphemeralBlockDevice( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("noDevice") @Nullable Boolean noDevice, - @CustomType.Parameter("virtualName") @Nullable String virtualName) { - this.deviceName = deviceName; - this.noDevice = noDevice; - this.virtualName = virtualName; - } + private @Nullable String virtualName; + private InstanceEphemeralBlockDevice() {} /** * @return The name of the block device to mount on the instance. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InstanceEphemeralBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private @Nullable Boolean noDevice; private @Nullable String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceEphemeralBlockDevice defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; @@ -84,19 +71,27 @@ public Builder(InstanceEphemeralBlockDevice defaults) { this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder noDevice(@Nullable Boolean noDevice) { this.noDevice = noDevice; return this; } + @CustomType.Setter public Builder virtualName(@Nullable String virtualName) { this.virtualName = virtualName; return this; - } public InstanceEphemeralBlockDevice build() { - return new InstanceEphemeralBlockDevice(deviceName, noDevice, virtualName); + } + public InstanceEphemeralBlockDevice build() { + final var o = new InstanceEphemeralBlockDevice(); + o.deviceName = deviceName; + o.noDevice = noDevice; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceLaunchTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceLaunchTemplate.java index 195afbd45b3..0ece7d607bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceLaunchTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceLaunchTemplate.java @@ -15,28 +15,19 @@ public final class InstanceLaunchTemplate { * @return The ID of the launch template. Conflicts with `name`. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the launch template. Conflicts with `id`. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Template version. Can be a specific version number, `$Latest` or `$Default`. The default value is `$Default`. * */ - private final @Nullable String version; - - @CustomType.Constructor - private InstanceLaunchTemplate( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("version") @Nullable String version) { - this.id = id; - this.name = name; - this.version = version; - } + private @Nullable String version; + private InstanceLaunchTemplate() {} /** * @return The ID of the launch template. Conflicts with `name`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(InstanceLaunchTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private @Nullable String name; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceLaunchTemplate defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -83,19 +70,27 @@ public Builder(InstanceLaunchTemplate defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public InstanceLaunchTemplate build() { - return new InstanceLaunchTemplate(id, name, version); + } + public InstanceLaunchTemplate build() { + final var o = new InstanceLaunchTemplate(); + o.id = id; + o.name = name; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceMaintenanceOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceMaintenanceOptions.java index 4e51f175d99..d08ab8c2b93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceMaintenanceOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceMaintenanceOptions.java @@ -15,13 +15,9 @@ public final class InstanceMaintenanceOptions { * @return The automatic recovery behavior of the Instance. Can be `"default"` or `"disabled"`. See [Recover your instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html) for more details. * */ - private final @Nullable String autoRecovery; - - @CustomType.Constructor - private InstanceMaintenanceOptions(@CustomType.Parameter("autoRecovery") @Nullable String autoRecovery) { - this.autoRecovery = autoRecovery; - } + private @Nullable String autoRecovery; + private InstanceMaintenanceOptions() {} /** * @return The automatic recovery behavior of the Instance. Can be `"default"` or `"disabled"`. See [Recover your instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html) for more details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(InstanceMaintenanceOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String autoRecovery; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceMaintenanceOptions defaults) { Objects.requireNonNull(defaults); this.autoRecovery = defaults.autoRecovery; } + @CustomType.Setter public Builder autoRecovery(@Nullable String autoRecovery) { this.autoRecovery = autoRecovery; return this; - } public InstanceMaintenanceOptions build() { - return new InstanceMaintenanceOptions(autoRecovery); + } + public InstanceMaintenanceOptions build() { + final var o = new InstanceMaintenanceOptions(); + o.autoRecovery = autoRecovery; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceMetadataOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceMetadataOptions.java index f1f2b5030e2..ba36e08da48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceMetadataOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceMetadataOptions.java @@ -16,35 +16,24 @@ public final class InstanceMetadataOptions { * @return Whether the metadata service is available. Valid values include `enabled` or `disabled`. Defaults to `enabled`. * */ - private final @Nullable String httpEndpoint; + private @Nullable String httpEndpoint; /** * @return Desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Valid values are integer from `1` to `64`. Defaults to `1`. * */ - private final @Nullable Integer httpPutResponseHopLimit; + private @Nullable Integer httpPutResponseHopLimit; /** * @return Whether or not the metadata service requires session tokens, also referred to as _Instance Metadata Service Version 2 (IMDSv2)_. Valid values include `optional` or `required`. Defaults to `optional`. * */ - private final @Nullable String httpTokens; + private @Nullable String httpTokens; /** * @return Enables or disables access to instance tags from the instance metadata service. Valid values include `enabled` or `disabled`. Defaults to `disabled`. * */ - private final @Nullable String instanceMetadataTags; - - @CustomType.Constructor - private InstanceMetadataOptions( - @CustomType.Parameter("httpEndpoint") @Nullable String httpEndpoint, - @CustomType.Parameter("httpPutResponseHopLimit") @Nullable Integer httpPutResponseHopLimit, - @CustomType.Parameter("httpTokens") @Nullable String httpTokens, - @CustomType.Parameter("instanceMetadataTags") @Nullable String instanceMetadataTags) { - this.httpEndpoint = httpEndpoint; - this.httpPutResponseHopLimit = httpPutResponseHopLimit; - this.httpTokens = httpTokens; - this.instanceMetadataTags = instanceMetadataTags; - } + private @Nullable String instanceMetadataTags; + private InstanceMetadataOptions() {} /** * @return Whether the metadata service is available. Valid values include `enabled` or `disabled`. Defaults to `enabled`. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(InstanceMetadataOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String httpEndpoint; private @Nullable Integer httpPutResponseHopLimit; private @Nullable String httpTokens; private @Nullable String instanceMetadataTags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceMetadataOptions defaults) { Objects.requireNonNull(defaults); this.httpEndpoint = defaults.httpEndpoint; @@ -100,23 +85,33 @@ public Builder(InstanceMetadataOptions defaults) { this.instanceMetadataTags = defaults.instanceMetadataTags; } + @CustomType.Setter public Builder httpEndpoint(@Nullable String httpEndpoint) { this.httpEndpoint = httpEndpoint; return this; } + @CustomType.Setter public Builder httpPutResponseHopLimit(@Nullable Integer httpPutResponseHopLimit) { this.httpPutResponseHopLimit = httpPutResponseHopLimit; return this; } + @CustomType.Setter public Builder httpTokens(@Nullable String httpTokens) { this.httpTokens = httpTokens; return this; } + @CustomType.Setter public Builder instanceMetadataTags(@Nullable String instanceMetadataTags) { this.instanceMetadataTags = instanceMetadataTags; return this; - } public InstanceMetadataOptions build() { - return new InstanceMetadataOptions(httpEndpoint, httpPutResponseHopLimit, httpTokens, instanceMetadataTags); + } + public InstanceMetadataOptions build() { + final var o = new InstanceMetadataOptions(); + o.httpEndpoint = httpEndpoint; + o.httpPutResponseHopLimit = httpPutResponseHopLimit; + o.httpTokens = httpTokens; + o.instanceMetadataTags = instanceMetadataTags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceNetworkInterface.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceNetworkInterface.java index 0d432daed97..ebd705e4e28 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceNetworkInterface.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceNetworkInterface.java @@ -17,35 +17,24 @@ public final class InstanceNetworkInterface { * @return Whether or not to delete the network interface on instance termination. Defaults to `false`. Currently, the only valid value is `false`, as this is only supported when creating new network interfaces when launching an instance. * */ - private final @Nullable Boolean deleteOnTermination; + private @Nullable Boolean deleteOnTermination; /** * @return Integer index of the network interface attachment. Limited by instance type. * */ - private final Integer deviceIndex; + private Integer deviceIndex; /** * @return Integer index of the network card. Limited by instance type. The default index is `0`. * */ - private final @Nullable Integer networkCardIndex; + private @Nullable Integer networkCardIndex; /** * @return ID of the network interface to attach. * */ - private final String networkInterfaceId; - - @CustomType.Constructor - private InstanceNetworkInterface( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("deviceIndex") Integer deviceIndex, - @CustomType.Parameter("networkCardIndex") @Nullable Integer networkCardIndex, - @CustomType.Parameter("networkInterfaceId") String networkInterfaceId) { - this.deleteOnTermination = deleteOnTermination; - this.deviceIndex = deviceIndex; - this.networkCardIndex = networkCardIndex; - this.networkInterfaceId = networkInterfaceId; - } + private String networkInterfaceId; + private InstanceNetworkInterface() {} /** * @return Whether or not to delete the network interface on instance termination. Defaults to `false`. Currently, the only valid value is `false`, as this is only supported when creating new network interfaces when launching an instance. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(InstanceNetworkInterface defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private Integer deviceIndex; private @Nullable Integer networkCardIndex; private String networkInterfaceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceNetworkInterface defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -101,23 +86,33 @@ public Builder(InstanceNetworkInterface defaults) { this.networkInterfaceId = defaults.networkInterfaceId; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder deviceIndex(Integer deviceIndex) { this.deviceIndex = Objects.requireNonNull(deviceIndex); return this; } + @CustomType.Setter public Builder networkCardIndex(@Nullable Integer networkCardIndex) { this.networkCardIndex = networkCardIndex; return this; } + @CustomType.Setter public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = Objects.requireNonNull(networkInterfaceId); return this; - } public InstanceNetworkInterface build() { - return new InstanceNetworkInterface(deleteOnTermination, deviceIndex, networkCardIndex, networkInterfaceId); + } + public InstanceNetworkInterface build() { + final var o = new InstanceNetworkInterface(); + o.deleteOnTermination = deleteOnTermination; + o.deviceIndex = deviceIndex; + o.networkCardIndex = networkCardIndex; + o.networkInterfaceId = networkInterfaceId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstancePrivateDnsNameOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstancePrivateDnsNameOptions.java index 94104dadfd1..24fd63ba30d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstancePrivateDnsNameOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstancePrivateDnsNameOptions.java @@ -16,28 +16,19 @@ public final class InstancePrivateDnsNameOptions { * @return Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * */ - private final @Nullable Boolean enableResourceNameDnsARecord; + private @Nullable Boolean enableResourceNameDnsARecord; /** * @return Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. * */ - private final @Nullable Boolean enableResourceNameDnsAaaaRecord; + private @Nullable Boolean enableResourceNameDnsAaaaRecord; /** * @return The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: `ip-name` and `resource-name`. * */ - private final @Nullable String hostnameType; - - @CustomType.Constructor - private InstancePrivateDnsNameOptions( - @CustomType.Parameter("enableResourceNameDnsARecord") @Nullable Boolean enableResourceNameDnsARecord, - @CustomType.Parameter("enableResourceNameDnsAaaaRecord") @Nullable Boolean enableResourceNameDnsAaaaRecord, - @CustomType.Parameter("hostnameType") @Nullable String hostnameType) { - this.enableResourceNameDnsARecord = enableResourceNameDnsARecord; - this.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; - this.hostnameType = hostnameType; - } + private @Nullable String hostnameType; + private InstancePrivateDnsNameOptions() {} /** * @return Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InstancePrivateDnsNameOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enableResourceNameDnsARecord; private @Nullable Boolean enableResourceNameDnsAaaaRecord; private @Nullable String hostnameType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstancePrivateDnsNameOptions defaults) { Objects.requireNonNull(defaults); this.enableResourceNameDnsARecord = defaults.enableResourceNameDnsARecord; @@ -84,19 +71,27 @@ public Builder(InstancePrivateDnsNameOptions defaults) { this.hostnameType = defaults.hostnameType; } + @CustomType.Setter public Builder enableResourceNameDnsARecord(@Nullable Boolean enableResourceNameDnsARecord) { this.enableResourceNameDnsARecord = enableResourceNameDnsARecord; return this; } + @CustomType.Setter public Builder enableResourceNameDnsAaaaRecord(@Nullable Boolean enableResourceNameDnsAaaaRecord) { this.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; return this; } + @CustomType.Setter public Builder hostnameType(@Nullable String hostnameType) { this.hostnameType = hostnameType; return this; - } public InstancePrivateDnsNameOptions build() { - return new InstancePrivateDnsNameOptions(enableResourceNameDnsARecord, enableResourceNameDnsAaaaRecord, hostnameType); + } + public InstancePrivateDnsNameOptions build() { + final var o = new InstancePrivateDnsNameOptions(); + o.enableResourceNameDnsARecord = enableResourceNameDnsARecord; + o.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; + o.hostnameType = hostnameType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceRootBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceRootBlockDevice.java index 62fcb035f54..338fef7af55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceRootBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/InstanceRootBlockDevice.java @@ -18,77 +18,54 @@ public final class InstanceRootBlockDevice { * @return Whether the volume should be destroyed on instance termination. Defaults to `true`. * */ - private final @Nullable Boolean deleteOnTermination; + private @Nullable Boolean deleteOnTermination; /** * @return Name of the device to mount. * */ - private final @Nullable String deviceName; + private @Nullable String deviceName; /** * @return Whether to enable volume encryption. Defaults to `false`. Must be configured to perform drift detection. * */ - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return Amount of provisioned [IOPS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-io-characteristics.html). Only valid for volume_type of `io1`, `io2` or `gp3`. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return Amazon Resource Name (ARN) of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return A map of tags to assign to the device. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for `volume_type` of `gp3`. * */ - private final @Nullable Integer throughput; + private @Nullable Integer throughput; /** * @return ID of the volume. For example, the ID can be accessed like this, `aws_instance.web.root_block_device.0.volume_id`. * */ - private final @Nullable String volumeId; + private @Nullable String volumeId; /** * @return Size of the volume in gibibytes (GiB). * */ - private final @Nullable Integer volumeSize; + private @Nullable Integer volumeSize; /** * @return Type of volume. Valid values include `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1`, or `st1`. Defaults to `gp2`. * */ - private final @Nullable String volumeType; - - @CustomType.Constructor - private InstanceRootBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") @Nullable String deviceName, - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeId") @Nullable String volumeId, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.encrypted = encrypted; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.tags = tags; - this.throughput = throughput; - this.volumeId = volumeId; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable String volumeType; + private InstanceRootBlockDevice() {} /** * @return Whether the volume should be destroyed on instance termination. Defaults to `true`. * @@ -167,7 +144,7 @@ public static Builder builder() { public static Builder builder(InstanceRootBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private @Nullable String deviceName; @@ -179,11 +156,7 @@ public static final class Builder { private @Nullable String volumeId; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceRootBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -198,47 +171,69 @@ public Builder(InstanceRootBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder deviceName(@Nullable String deviceName) { this.deviceName = deviceName; return this; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeId(@Nullable String volumeId) { this.volumeId = volumeId; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public InstanceRootBlockDevice build() { - return new InstanceRootBlockDevice(deleteOnTermination, deviceName, encrypted, iops, kmsKeyId, tags, throughput, volumeId, volumeSize, volumeType); + } + public InstanceRootBlockDevice build() { + final var o = new InstanceRootBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.encrypted = encrypted; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.tags = tags; + o.throughput = throughput; + o.volumeId = volumeId; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationEbsBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationEbsBlockDevice.java index 7fefdd95467..20c5df710f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationEbsBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationEbsBlockDevice.java @@ -13,38 +13,17 @@ @CustomType public final class LaunchConfigurationEbsBlockDevice { - private final @Nullable Boolean deleteOnTermination; - private final String deviceName; - private final @Nullable Boolean encrypted; - private final @Nullable Integer iops; - private final @Nullable Boolean noDevice; - private final @Nullable String snapshotId; - private final @Nullable Integer throughput; - private final @Nullable Integer volumeSize; - private final @Nullable String volumeType; - - @CustomType.Constructor - private LaunchConfigurationEbsBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("noDevice") @Nullable Boolean noDevice, - @CustomType.Parameter("snapshotId") @Nullable String snapshotId, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.encrypted = encrypted; - this.iops = iops; - this.noDevice = noDevice; - this.snapshotId = snapshotId; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable Boolean deleteOnTermination; + private String deviceName; + private @Nullable Boolean encrypted; + private @Nullable Integer iops; + private @Nullable Boolean noDevice; + private @Nullable String snapshotId; + private @Nullable Integer throughput; + private @Nullable Integer volumeSize; + private @Nullable String volumeType; + private LaunchConfigurationEbsBlockDevice() {} public Optional deleteOnTermination() { return Optional.ofNullable(this.deleteOnTermination); } @@ -80,7 +59,7 @@ public static Builder builder() { public static Builder builder(LaunchConfigurationEbsBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private String deviceName; @@ -91,11 +70,7 @@ public static final class Builder { private @Nullable Integer throughput; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchConfigurationEbsBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -109,43 +84,63 @@ public Builder(LaunchConfigurationEbsBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder noDevice(@Nullable Boolean noDevice) { this.noDevice = noDevice; return this; } + @CustomType.Setter public Builder snapshotId(@Nullable String snapshotId) { this.snapshotId = snapshotId; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public LaunchConfigurationEbsBlockDevice build() { - return new LaunchConfigurationEbsBlockDevice(deleteOnTermination, deviceName, encrypted, iops, noDevice, snapshotId, throughput, volumeSize, volumeType); + } + public LaunchConfigurationEbsBlockDevice build() { + final var o = new LaunchConfigurationEbsBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.encrypted = encrypted; + o.iops = iops; + o.noDevice = noDevice; + o.snapshotId = snapshotId; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationEphemeralBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationEphemeralBlockDevice.java index 9fa600eae3e..5b673b4cfe8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationEphemeralBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationEphemeralBlockDevice.java @@ -12,20 +12,11 @@ @CustomType public final class LaunchConfigurationEphemeralBlockDevice { - private final String deviceName; - private final @Nullable Boolean noDevice; - private final @Nullable String virtualName; - - @CustomType.Constructor - private LaunchConfigurationEphemeralBlockDevice( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("noDevice") @Nullable Boolean noDevice, - @CustomType.Parameter("virtualName") @Nullable String virtualName) { - this.deviceName = deviceName; - this.noDevice = noDevice; - this.virtualName = virtualName; - } + private String deviceName; + private @Nullable Boolean noDevice; + private @Nullable String virtualName; + private LaunchConfigurationEphemeralBlockDevice() {} public String deviceName() { return this.deviceName; } @@ -43,16 +34,12 @@ public static Builder builder() { public static Builder builder(LaunchConfigurationEphemeralBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private @Nullable Boolean noDevice; private @Nullable String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchConfigurationEphemeralBlockDevice defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; @@ -60,19 +47,27 @@ public Builder(LaunchConfigurationEphemeralBlockDevice defaults) { this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder noDevice(@Nullable Boolean noDevice) { this.noDevice = noDevice; return this; } + @CustomType.Setter public Builder virtualName(@Nullable String virtualName) { this.virtualName = virtualName; return this; - } public LaunchConfigurationEphemeralBlockDevice build() { - return new LaunchConfigurationEphemeralBlockDevice(deviceName, noDevice, virtualName); + } + public LaunchConfigurationEphemeralBlockDevice build() { + final var o = new LaunchConfigurationEphemeralBlockDevice(); + o.deviceName = deviceName; + o.noDevice = noDevice; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationMetadataOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationMetadataOptions.java index f8050c1b560..18d7873e4ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationMetadataOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationMetadataOptions.java @@ -16,28 +16,19 @@ public final class LaunchConfigurationMetadataOptions { * @return The state of the metadata service: `enabled`, `disabled`. * */ - private final @Nullable String httpEndpoint; + private @Nullable String httpEndpoint; /** * @return The desired HTTP PUT response hop limit for instance metadata requests. * */ - private final @Nullable Integer httpPutResponseHopLimit; + private @Nullable Integer httpPutResponseHopLimit; /** * @return If session tokens are required: `optional`, `required`. * */ - private final @Nullable String httpTokens; - - @CustomType.Constructor - private LaunchConfigurationMetadataOptions( - @CustomType.Parameter("httpEndpoint") @Nullable String httpEndpoint, - @CustomType.Parameter("httpPutResponseHopLimit") @Nullable Integer httpPutResponseHopLimit, - @CustomType.Parameter("httpTokens") @Nullable String httpTokens) { - this.httpEndpoint = httpEndpoint; - this.httpPutResponseHopLimit = httpPutResponseHopLimit; - this.httpTokens = httpTokens; - } + private @Nullable String httpTokens; + private LaunchConfigurationMetadataOptions() {} /** * @return The state of the metadata service: `enabled`, `disabled`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(LaunchConfigurationMetadataOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String httpEndpoint; private @Nullable Integer httpPutResponseHopLimit; private @Nullable String httpTokens; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchConfigurationMetadataOptions defaults) { Objects.requireNonNull(defaults); this.httpEndpoint = defaults.httpEndpoint; @@ -84,19 +71,27 @@ public Builder(LaunchConfigurationMetadataOptions defaults) { this.httpTokens = defaults.httpTokens; } + @CustomType.Setter public Builder httpEndpoint(@Nullable String httpEndpoint) { this.httpEndpoint = httpEndpoint; return this; } + @CustomType.Setter public Builder httpPutResponseHopLimit(@Nullable Integer httpPutResponseHopLimit) { this.httpPutResponseHopLimit = httpPutResponseHopLimit; return this; } + @CustomType.Setter public Builder httpTokens(@Nullable String httpTokens) { this.httpTokens = httpTokens; return this; - } public LaunchConfigurationMetadataOptions build() { - return new LaunchConfigurationMetadataOptions(httpEndpoint, httpPutResponseHopLimit, httpTokens); + } + public LaunchConfigurationMetadataOptions build() { + final var o = new LaunchConfigurationMetadataOptions(); + o.httpEndpoint = httpEndpoint; + o.httpPutResponseHopLimit = httpPutResponseHopLimit; + o.httpTokens = httpTokens; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationRootBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationRootBlockDevice.java index 23b56fa4aa7..3cc59b82201 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationRootBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchConfigurationRootBlockDevice.java @@ -13,29 +13,14 @@ @CustomType public final class LaunchConfigurationRootBlockDevice { - private final @Nullable Boolean deleteOnTermination; - private final @Nullable Boolean encrypted; - private final @Nullable Integer iops; - private final @Nullable Integer throughput; - private final @Nullable Integer volumeSize; - private final @Nullable String volumeType; - - @CustomType.Constructor - private LaunchConfigurationRootBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.encrypted = encrypted; - this.iops = iops; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable Boolean deleteOnTermination; + private @Nullable Boolean encrypted; + private @Nullable Integer iops; + private @Nullable Integer throughput; + private @Nullable Integer volumeSize; + private @Nullable String volumeType; + private LaunchConfigurationRootBlockDevice() {} public Optional deleteOnTermination() { return Optional.ofNullable(this.deleteOnTermination); } @@ -62,7 +47,7 @@ public static Builder builder() { public static Builder builder(LaunchConfigurationRootBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private @Nullable Boolean encrypted; @@ -70,11 +55,7 @@ public static final class Builder { private @Nullable Integer throughput; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchConfigurationRootBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -85,31 +66,45 @@ public Builder(LaunchConfigurationRootBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public LaunchConfigurationRootBlockDevice build() { - return new LaunchConfigurationRootBlockDevice(deleteOnTermination, encrypted, iops, throughput, volumeSize, volumeType); + } + public LaunchConfigurationRootBlockDevice build() { + final var o = new LaunchConfigurationRootBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.encrypted = encrypted; + o.iops = iops; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateBlockDeviceMapping.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateBlockDeviceMapping.java index f7e4ff3e946..3e684d1d9f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateBlockDeviceMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateBlockDeviceMapping.java @@ -16,37 +16,26 @@ public final class LaunchTemplateBlockDeviceMapping { * @return The name of the device to mount. * */ - private final @Nullable String deviceName; + private @Nullable String deviceName; /** * @return Configure EBS volume properties. * */ - private final @Nullable LaunchTemplateBlockDeviceMappingEbs ebs; + private @Nullable LaunchTemplateBlockDeviceMappingEbs ebs; /** * @return Suppresses the specified device included in the AMI's block device mapping. * */ - private final @Nullable String noDevice; + private @Nullable String noDevice; /** * @return The [Instance Store Device * Name](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames) * (e.g., `"ephemeral0"`). * */ - private final @Nullable String virtualName; - - @CustomType.Constructor - private LaunchTemplateBlockDeviceMapping( - @CustomType.Parameter("deviceName") @Nullable String deviceName, - @CustomType.Parameter("ebs") @Nullable LaunchTemplateBlockDeviceMappingEbs ebs, - @CustomType.Parameter("noDevice") @Nullable String noDevice, - @CustomType.Parameter("virtualName") @Nullable String virtualName) { - this.deviceName = deviceName; - this.ebs = ebs; - this.noDevice = noDevice; - this.virtualName = virtualName; - } + private @Nullable String virtualName; + private LaunchTemplateBlockDeviceMapping() {} /** * @return The name of the device to mount. * @@ -85,17 +74,13 @@ public static Builder builder() { public static Builder builder(LaunchTemplateBlockDeviceMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deviceName; private @Nullable LaunchTemplateBlockDeviceMappingEbs ebs; private @Nullable String noDevice; private @Nullable String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateBlockDeviceMapping defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; @@ -104,23 +89,33 @@ public Builder(LaunchTemplateBlockDeviceMapping defaults) { this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(@Nullable String deviceName) { this.deviceName = deviceName; return this; } + @CustomType.Setter public Builder ebs(@Nullable LaunchTemplateBlockDeviceMappingEbs ebs) { this.ebs = ebs; return this; } + @CustomType.Setter public Builder noDevice(@Nullable String noDevice) { this.noDevice = noDevice; return this; } + @CustomType.Setter public Builder virtualName(@Nullable String virtualName) { this.virtualName = virtualName; return this; - } public LaunchTemplateBlockDeviceMapping build() { - return new LaunchTemplateBlockDeviceMapping(deviceName, ebs, noDevice, virtualName); + } + public LaunchTemplateBlockDeviceMapping build() { + final var o = new LaunchTemplateBlockDeviceMapping(); + o.deviceName = deviceName; + o.ebs = ebs; + o.noDevice = noDevice; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateBlockDeviceMappingEbs.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateBlockDeviceMappingEbs.java index d5ea54558fe..ac3203ddac5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateBlockDeviceMappingEbs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateBlockDeviceMappingEbs.java @@ -16,67 +16,48 @@ public final class LaunchTemplateBlockDeviceMappingEbs { * @return Whether the volume should be destroyed on instance termination. Defaults to `false` if not set. See [Preserving Amazon EBS Volumes on Instance Termination](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#preserving-volumes-on-termination) for more information. * */ - private final @Nullable String deleteOnTermination; + private @Nullable String deleteOnTermination; /** * @return Enables [EBS encryption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) * on the volume (Default: `false`). Cannot be used with `snapshot_id`. * */ - private final @Nullable String encrypted; + private @Nullable String encrypted; /** * @return The amount of provisioned * [IOPS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-io-characteristics.html). * This must be set with a `volume_type` of `"io1/io2"`. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. * `encrypted` must be set to `true` when this is set. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return The Snapshot ID to mount. * */ - private final @Nullable String snapshotId; + private @Nullable String snapshotId; /** * @return The throughput to provision for a `gp3` volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s. * */ - private final @Nullable Integer throughput; + private @Nullable Integer throughput; /** * @return The size of the volume in gigabytes. * */ - private final @Nullable Integer volumeSize; + private @Nullable Integer volumeSize; /** * @return The volume type. Can be `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1` or `st1` (Default: `gp2`). * */ - private final @Nullable String volumeType; - - @CustomType.Constructor - private LaunchTemplateBlockDeviceMappingEbs( - @CustomType.Parameter("deleteOnTermination") @Nullable String deleteOnTermination, - @CustomType.Parameter("encrypted") @Nullable String encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("snapshotId") @Nullable String snapshotId, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.encrypted = encrypted; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.snapshotId = snapshotId; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable String volumeType; + private LaunchTemplateBlockDeviceMappingEbs() {} /** * @return Whether the volume should be destroyed on instance termination. Defaults to `false` if not set. See [Preserving Amazon EBS Volumes on Instance Termination](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#preserving-volumes-on-termination) for more information. * @@ -145,7 +126,7 @@ public static Builder builder() { public static Builder builder(LaunchTemplateBlockDeviceMappingEbs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deleteOnTermination; private @Nullable String encrypted; @@ -155,11 +136,7 @@ public static final class Builder { private @Nullable Integer throughput; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateBlockDeviceMappingEbs defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -172,39 +149,57 @@ public Builder(LaunchTemplateBlockDeviceMappingEbs defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable String deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder encrypted(@Nullable String encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder snapshotId(@Nullable String snapshotId) { this.snapshotId = snapshotId; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public LaunchTemplateBlockDeviceMappingEbs build() { - return new LaunchTemplateBlockDeviceMappingEbs(deleteOnTermination, encrypted, iops, kmsKeyId, snapshotId, throughput, volumeSize, volumeType); + } + public LaunchTemplateBlockDeviceMappingEbs build() { + final var o = new LaunchTemplateBlockDeviceMappingEbs(); + o.deleteOnTermination = deleteOnTermination; + o.encrypted = encrypted; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.snapshotId = snapshotId; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCapacityReservationSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCapacityReservationSpecification.java index 9d226763f7a..a9bb6781c41 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCapacityReservationSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCapacityReservationSpecification.java @@ -16,21 +16,14 @@ public final class LaunchTemplateCapacityReservationSpecification { * @return Indicates the instance's Capacity Reservation preferences. Can be `open` or `none`. (Default `none`). * */ - private final @Nullable String capacityReservationPreference; + private @Nullable String capacityReservationPreference; /** * @return Used to target a specific Capacity Reservation: * */ - private final @Nullable LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget; - - @CustomType.Constructor - private LaunchTemplateCapacityReservationSpecification( - @CustomType.Parameter("capacityReservationPreference") @Nullable String capacityReservationPreference, - @CustomType.Parameter("capacityReservationTarget") @Nullable LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget) { - this.capacityReservationPreference = capacityReservationPreference; - this.capacityReservationTarget = capacityReservationTarget; - } + private @Nullable LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget; + private LaunchTemplateCapacityReservationSpecification() {} /** * @return Indicates the instance's Capacity Reservation preferences. Can be `open` or `none`. (Default `none`). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateCapacityReservationSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String capacityReservationPreference; private @Nullable LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateCapacityReservationSpecification defaults) { Objects.requireNonNull(defaults); this.capacityReservationPreference = defaults.capacityReservationPreference; this.capacityReservationTarget = defaults.capacityReservationTarget; } + @CustomType.Setter public Builder capacityReservationPreference(@Nullable String capacityReservationPreference) { this.capacityReservationPreference = capacityReservationPreference; return this; } + @CustomType.Setter public Builder capacityReservationTarget(@Nullable LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget) { this.capacityReservationTarget = capacityReservationTarget; return this; - } public LaunchTemplateCapacityReservationSpecification build() { - return new LaunchTemplateCapacityReservationSpecification(capacityReservationPreference, capacityReservationTarget); + } + public LaunchTemplateCapacityReservationSpecification build() { + final var o = new LaunchTemplateCapacityReservationSpecification(); + o.capacityReservationPreference = capacityReservationPreference; + o.capacityReservationTarget = capacityReservationTarget; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget.java index 82a3c3ef2ec..e15aa0fa3e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget.java @@ -15,21 +15,14 @@ public final class LaunchTemplateCapacityReservationSpecificationCapacityReserva * @return The ID of the Capacity Reservation in which to run the instance. * */ - private final @Nullable String capacityReservationId; + private @Nullable String capacityReservationId; /** * @return The ARN of the Capacity Reservation resource group in which to run the instance. * */ - private final @Nullable String capacityReservationResourceGroupArn; - - @CustomType.Constructor - private LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget( - @CustomType.Parameter("capacityReservationId") @Nullable String capacityReservationId, - @CustomType.Parameter("capacityReservationResourceGroupArn") @Nullable String capacityReservationResourceGroupArn) { - this.capacityReservationId = capacityReservationId; - this.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn; - } + private @Nullable String capacityReservationResourceGroupArn; + private LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget() {} /** * @return The ID of the Capacity Reservation in which to run the instance. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String capacityReservationId; private @Nullable String capacityReservationResourceGroupArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget defaults) { Objects.requireNonNull(defaults); this.capacityReservationId = defaults.capacityReservationId; this.capacityReservationResourceGroupArn = defaults.capacityReservationResourceGroupArn; } + @CustomType.Setter public Builder capacityReservationId(@Nullable String capacityReservationId) { this.capacityReservationId = capacityReservationId; return this; } + @CustomType.Setter public Builder capacityReservationResourceGroupArn(@Nullable String capacityReservationResourceGroupArn) { this.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn; return this; - } public LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget build() { - return new LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget(capacityReservationId, capacityReservationResourceGroupArn); + } + public LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget build() { + final var o = new LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget(); + o.capacityReservationId = capacityReservationId; + o.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCpuOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCpuOptions.java index 494603be66f..9c2b6fc4dc0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCpuOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCpuOptions.java @@ -15,22 +15,15 @@ public final class LaunchTemplateCpuOptions { * @return The number of CPU cores for the instance. * */ - private final @Nullable Integer coreCount; + private @Nullable Integer coreCount; /** * @return The number of threads per CPU core. To disable Intel Hyper-Threading Technology for the instance, specify a value of 1. * Otherwise, specify the default value of 2. * */ - private final @Nullable Integer threadsPerCore; - - @CustomType.Constructor - private LaunchTemplateCpuOptions( - @CustomType.Parameter("coreCount") @Nullable Integer coreCount, - @CustomType.Parameter("threadsPerCore") @Nullable Integer threadsPerCore) { - this.coreCount = coreCount; - this.threadsPerCore = threadsPerCore; - } + private @Nullable Integer threadsPerCore; + private LaunchTemplateCpuOptions() {} /** * @return The number of CPU cores for the instance. * @@ -54,30 +47,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateCpuOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer coreCount; private @Nullable Integer threadsPerCore; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateCpuOptions defaults) { Objects.requireNonNull(defaults); this.coreCount = defaults.coreCount; this.threadsPerCore = defaults.threadsPerCore; } + @CustomType.Setter public Builder coreCount(@Nullable Integer coreCount) { this.coreCount = coreCount; return this; } + @CustomType.Setter public Builder threadsPerCore(@Nullable Integer threadsPerCore) { this.threadsPerCore = threadsPerCore; return this; - } public LaunchTemplateCpuOptions build() { - return new LaunchTemplateCpuOptions(coreCount, threadsPerCore); + } + public LaunchTemplateCpuOptions build() { + final var o = new LaunchTemplateCpuOptions(); + o.coreCount = coreCount; + o.threadsPerCore = threadsPerCore; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCreditSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCreditSpecification.java index f45ce8eb247..90be5ab2202 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCreditSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateCreditSpecification.java @@ -15,13 +15,9 @@ public final class LaunchTemplateCreditSpecification { * @return The credit option for CPU usage. Can be `"standard"` or `"unlimited"`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default. * */ - private final @Nullable String cpuCredits; - - @CustomType.Constructor - private LaunchTemplateCreditSpecification(@CustomType.Parameter("cpuCredits") @Nullable String cpuCredits) { - this.cpuCredits = cpuCredits; - } + private @Nullable String cpuCredits; + private LaunchTemplateCreditSpecification() {} /** * @return The credit option for CPU usage. Can be `"standard"` or `"unlimited"`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(LaunchTemplateCreditSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cpuCredits; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateCreditSpecification defaults) { Objects.requireNonNull(defaults); this.cpuCredits = defaults.cpuCredits; } + @CustomType.Setter public Builder cpuCredits(@Nullable String cpuCredits) { this.cpuCredits = cpuCredits; return this; - } public LaunchTemplateCreditSpecification build() { - return new LaunchTemplateCreditSpecification(cpuCredits); + } + public LaunchTemplateCreditSpecification build() { + final var o = new LaunchTemplateCreditSpecification(); + o.cpuCredits = cpuCredits; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateElasticGpuSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateElasticGpuSpecification.java index 293adc12bad..52f668245b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateElasticGpuSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateElasticGpuSpecification.java @@ -13,13 +13,9 @@ public final class LaunchTemplateElasticGpuSpecification { * @return The [Elastic GPU Type](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-gpus.html#elastic-gpus-basics) * */ - private final String type; - - @CustomType.Constructor - private LaunchTemplateElasticGpuSpecification(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private LaunchTemplateElasticGpuSpecification() {} /** * @return The [Elastic GPU Type](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-gpus.html#elastic-gpus-basics) * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(LaunchTemplateElasticGpuSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateElasticGpuSpecification defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public LaunchTemplateElasticGpuSpecification build() { - return new LaunchTemplateElasticGpuSpecification(type); + } + public LaunchTemplateElasticGpuSpecification build() { + final var o = new LaunchTemplateElasticGpuSpecification(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateElasticInferenceAccelerator.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateElasticInferenceAccelerator.java index caf7df4ab70..c3c9ad19c52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateElasticInferenceAccelerator.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateElasticInferenceAccelerator.java @@ -13,13 +13,9 @@ public final class LaunchTemplateElasticInferenceAccelerator { * @return Accelerator type. * */ - private final String type; - - @CustomType.Constructor - private LaunchTemplateElasticInferenceAccelerator(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private LaunchTemplateElasticInferenceAccelerator() {} /** * @return Accelerator type. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(LaunchTemplateElasticInferenceAccelerator defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateElasticInferenceAccelerator defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public LaunchTemplateElasticInferenceAccelerator build() { - return new LaunchTemplateElasticInferenceAccelerator(type); + } + public LaunchTemplateElasticInferenceAccelerator build() { + final var o = new LaunchTemplateElasticInferenceAccelerator(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateEnclaveOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateEnclaveOptions.java index b59b6bf474e..cb60f8bd51a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateEnclaveOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateEnclaveOptions.java @@ -15,13 +15,9 @@ public final class LaunchTemplateEnclaveOptions { * @return If set to `true`, Nitro Enclaves will be enabled on the instance. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private LaunchTemplateEnclaveOptions(@CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private LaunchTemplateEnclaveOptions() {} /** * @return If set to `true`, Nitro Enclaves will be enabled on the instance. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(LaunchTemplateEnclaveOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateEnclaveOptions defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public LaunchTemplateEnclaveOptions build() { - return new LaunchTemplateEnclaveOptions(enabled); + } + public LaunchTemplateEnclaveOptions build() { + final var o = new LaunchTemplateEnclaveOptions(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateHibernationOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateHibernationOptions.java index 8ecc5878256..35f56ed7888 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateHibernationOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateHibernationOptions.java @@ -13,13 +13,9 @@ public final class LaunchTemplateHibernationOptions { * @return If set to `true`, the launched EC2 instance will hibernation enabled. * */ - private final Boolean configured; - - @CustomType.Constructor - private LaunchTemplateHibernationOptions(@CustomType.Parameter("configured") Boolean configured) { - this.configured = configured; - } + private Boolean configured; + private LaunchTemplateHibernationOptions() {} /** * @return If set to `true`, the launched EC2 instance will hibernation enabled. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(LaunchTemplateHibernationOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean configured; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateHibernationOptions defaults) { Objects.requireNonNull(defaults); this.configured = defaults.configured; } + @CustomType.Setter public Builder configured(Boolean configured) { this.configured = Objects.requireNonNull(configured); return this; - } public LaunchTemplateHibernationOptions build() { - return new LaunchTemplateHibernationOptions(configured); + } + public LaunchTemplateHibernationOptions build() { + final var o = new LaunchTemplateHibernationOptions(); + o.configured = configured; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateIamInstanceProfile.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateIamInstanceProfile.java index a6074a89080..89c9968d2cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateIamInstanceProfile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateIamInstanceProfile.java @@ -15,21 +15,14 @@ public final class LaunchTemplateIamInstanceProfile { * @return The Amazon Resource Name (ARN) of the instance profile. * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return The name of the instance profile. * */ - private final @Nullable String name; - - @CustomType.Constructor - private LaunchTemplateIamInstanceProfile( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("name") @Nullable String name) { - this.arn = arn; - this.name = name; - } + private @Nullable String name; + private LaunchTemplateIamInstanceProfile() {} /** * @return The Amazon Resource Name (ARN) of the instance profile. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateIamInstanceProfile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateIamInstanceProfile defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.name = defaults.name; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public LaunchTemplateIamInstanceProfile build() { - return new LaunchTemplateIamInstanceProfile(arn, name); + } + public LaunchTemplateIamInstanceProfile build() { + final var o = new LaunchTemplateIamInstanceProfile(); + o.arn = arn; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceMarketOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceMarketOptions.java index 72cd57ec898..d1b4d4f854c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceMarketOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceMarketOptions.java @@ -16,21 +16,14 @@ public final class LaunchTemplateInstanceMarketOptions { * @return The market type. Can be `spot`. * */ - private final @Nullable String marketType; + private @Nullable String marketType; /** * @return The options for [Spot Instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html) * */ - private final @Nullable LaunchTemplateInstanceMarketOptionsSpotOptions spotOptions; - - @CustomType.Constructor - private LaunchTemplateInstanceMarketOptions( - @CustomType.Parameter("marketType") @Nullable String marketType, - @CustomType.Parameter("spotOptions") @Nullable LaunchTemplateInstanceMarketOptionsSpotOptions spotOptions) { - this.marketType = marketType; - this.spotOptions = spotOptions; - } + private @Nullable LaunchTemplateInstanceMarketOptionsSpotOptions spotOptions; + private LaunchTemplateInstanceMarketOptions() {} /** * @return The market type. Can be `spot`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateInstanceMarketOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String marketType; private @Nullable LaunchTemplateInstanceMarketOptionsSpotOptions spotOptions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateInstanceMarketOptions defaults) { Objects.requireNonNull(defaults); this.marketType = defaults.marketType; this.spotOptions = defaults.spotOptions; } + @CustomType.Setter public Builder marketType(@Nullable String marketType) { this.marketType = marketType; return this; } + @CustomType.Setter public Builder spotOptions(@Nullable LaunchTemplateInstanceMarketOptionsSpotOptions spotOptions) { this.spotOptions = spotOptions; return this; - } public LaunchTemplateInstanceMarketOptions build() { - return new LaunchTemplateInstanceMarketOptions(marketType, spotOptions); + } + public LaunchTemplateInstanceMarketOptions build() { + final var o = new LaunchTemplateInstanceMarketOptions(); + o.marketType = marketType; + o.spotOptions = spotOptions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceMarketOptionsSpotOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceMarketOptionsSpotOptions.java index 0f191a1eb5c..e24a603843c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceMarketOptionsSpotOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceMarketOptionsSpotOptions.java @@ -16,43 +16,30 @@ public final class LaunchTemplateInstanceMarketOptionsSpotOptions { * @return The required duration in minutes. This value must be a multiple of 60. * */ - private final @Nullable Integer blockDurationMinutes; + private @Nullable Integer blockDurationMinutes; /** * @return The behavior when a Spot Instance is interrupted. Can be `hibernate`, * `stop`, or `terminate`. (Default: `terminate`). * */ - private final @Nullable String instanceInterruptionBehavior; + private @Nullable String instanceInterruptionBehavior; /** * @return The maximum hourly price you're willing to pay for the Spot Instances. * */ - private final @Nullable String maxPrice; + private @Nullable String maxPrice; /** * @return The Spot Instance request type. Can be `one-time`, or `persistent`. * */ - private final @Nullable String spotInstanceType; + private @Nullable String spotInstanceType; /** * @return The end date of the request. * */ - private final @Nullable String validUntil; - - @CustomType.Constructor - private LaunchTemplateInstanceMarketOptionsSpotOptions( - @CustomType.Parameter("blockDurationMinutes") @Nullable Integer blockDurationMinutes, - @CustomType.Parameter("instanceInterruptionBehavior") @Nullable String instanceInterruptionBehavior, - @CustomType.Parameter("maxPrice") @Nullable String maxPrice, - @CustomType.Parameter("spotInstanceType") @Nullable String spotInstanceType, - @CustomType.Parameter("validUntil") @Nullable String validUntil) { - this.blockDurationMinutes = blockDurationMinutes; - this.instanceInterruptionBehavior = instanceInterruptionBehavior; - this.maxPrice = maxPrice; - this.spotInstanceType = spotInstanceType; - this.validUntil = validUntil; - } + private @Nullable String validUntil; + private LaunchTemplateInstanceMarketOptionsSpotOptions() {} /** * @return The required duration in minutes. This value must be a multiple of 60. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(LaunchTemplateInstanceMarketOptionsSpotOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer blockDurationMinutes; private @Nullable String instanceInterruptionBehavior; private @Nullable String maxPrice; private @Nullable String spotInstanceType; private @Nullable String validUntil; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateInstanceMarketOptionsSpotOptions defaults) { Objects.requireNonNull(defaults); this.blockDurationMinutes = defaults.blockDurationMinutes; @@ -118,27 +101,39 @@ public Builder(LaunchTemplateInstanceMarketOptionsSpotOptions defaults) { this.validUntil = defaults.validUntil; } + @CustomType.Setter public Builder blockDurationMinutes(@Nullable Integer blockDurationMinutes) { this.blockDurationMinutes = blockDurationMinutes; return this; } + @CustomType.Setter public Builder instanceInterruptionBehavior(@Nullable String instanceInterruptionBehavior) { this.instanceInterruptionBehavior = instanceInterruptionBehavior; return this; } + @CustomType.Setter public Builder maxPrice(@Nullable String maxPrice) { this.maxPrice = maxPrice; return this; } + @CustomType.Setter public Builder spotInstanceType(@Nullable String spotInstanceType) { this.spotInstanceType = spotInstanceType; return this; } + @CustomType.Setter public Builder validUntil(@Nullable String validUntil) { this.validUntil = validUntil; return this; - } public LaunchTemplateInstanceMarketOptionsSpotOptions build() { - return new LaunchTemplateInstanceMarketOptionsSpotOptions(blockDurationMinutes, instanceInterruptionBehavior, maxPrice, spotInstanceType, validUntil); + } + public LaunchTemplateInstanceMarketOptionsSpotOptions build() { + final var o = new LaunchTemplateInstanceMarketOptionsSpotOptions(); + o.blockDurationMinutes = blockDurationMinutes; + o.instanceInterruptionBehavior = instanceInterruptionBehavior; + o.maxPrice = maxPrice; + o.spotInstanceType = spotInstanceType; + o.validUntil = validUntil; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirements.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirements.java index d96ab9b546e..03b6fe66832 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirements.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirements.java @@ -26,154 +26,109 @@ public final class LaunchTemplateInstanceRequirements { * @return Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. * */ - private final @Nullable LaunchTemplateInstanceRequirementsAcceleratorCount acceleratorCount; + private @Nullable LaunchTemplateInstanceRequirementsAcceleratorCount acceleratorCount; /** * @return List of accelerator manufacturer names. Default is any manufacturer. * */ - private final @Nullable List acceleratorManufacturers; + private @Nullable List acceleratorManufacturers; /** * @return List of accelerator names. Default is any acclerator. * */ - private final @Nullable List acceleratorNames; + private @Nullable List acceleratorNames; /** * @return Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. * */ - private final @Nullable LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib; + private @Nullable LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib; /** * @return List of accelerator types. Default is any accelerator type. * */ - private final @Nullable List acceleratorTypes; + private @Nullable List acceleratorTypes; /** * @return Indicate whether bare metal instace types should be `included`, `excluded`, or `required`. Default is `excluded`. * */ - private final @Nullable String bareMetal; + private @Nullable String bareMetal; /** * @return Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. * */ - private final @Nullable LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps; + private @Nullable LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps; /** * @return Indicate whether burstable performance instance types should be `included`, `excluded`, or `required`. Default is `excluded`. * */ - private final @Nullable String burstablePerformance; + private @Nullable String burstablePerformance; /** * @return List of CPU manufacturer names. Default is any manufacturer. * */ - private final @Nullable List cpuManufacturers; + private @Nullable List cpuManufacturers; /** * @return List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (\*). The following are examples: `c5*`, `m5a.*`, `r*`, `*3*`. For example, if you specify `c5*`, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*`, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. * */ - private final @Nullable List excludedInstanceTypes; + private @Nullable List excludedInstanceTypes; /** * @return List of instance generation names. Default is any generation. * */ - private final @Nullable List instanceGenerations; + private @Nullable List instanceGenerations; /** * @return Indicate whether instance types with local storage volumes are `included`, `excluded`, or `required`. Default is `included`. * */ - private final @Nullable String localStorage; + private @Nullable String localStorage; /** * @return List of local storage type names. Default any storage type. * */ - private final @Nullable List localStorageTypes; + private @Nullable List localStorageTypes; /** * @return Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. * */ - private final @Nullable LaunchTemplateInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu; + private @Nullable LaunchTemplateInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu; /** * @return Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. * */ - private final LaunchTemplateInstanceRequirementsMemoryMib memoryMib; + private LaunchTemplateInstanceRequirementsMemoryMib memoryMib; /** * @return Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. * */ - private final @Nullable LaunchTemplateInstanceRequirementsNetworkInterfaceCount networkInterfaceCount; + private @Nullable LaunchTemplateInstanceRequirementsNetworkInterfaceCount networkInterfaceCount; /** * @return The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. * */ - private final @Nullable Integer onDemandMaxPricePercentageOverLowestPrice; + private @Nullable Integer onDemandMaxPricePercentageOverLowestPrice; /** * @return Indicate whether instance types must support On-Demand Instance Hibernation, either `true` or `false`. Default is `false`. * */ - private final @Nullable Boolean requireHibernateSupport; + private @Nullable Boolean requireHibernateSupport; /** * @return The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. * */ - private final @Nullable Integer spotMaxPricePercentageOverLowestPrice; + private @Nullable Integer spotMaxPricePercentageOverLowestPrice; /** * @return Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. * */ - private final @Nullable LaunchTemplateInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb; + private @Nullable LaunchTemplateInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb; /** * @return Block describing the minimum and maximum number of vCPUs. Default is no maximum. * */ - private final LaunchTemplateInstanceRequirementsVcpuCount vcpuCount; - - @CustomType.Constructor - private LaunchTemplateInstanceRequirements( - @CustomType.Parameter("acceleratorCount") @Nullable LaunchTemplateInstanceRequirementsAcceleratorCount acceleratorCount, - @CustomType.Parameter("acceleratorManufacturers") @Nullable List acceleratorManufacturers, - @CustomType.Parameter("acceleratorNames") @Nullable List acceleratorNames, - @CustomType.Parameter("acceleratorTotalMemoryMib") @Nullable LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib, - @CustomType.Parameter("acceleratorTypes") @Nullable List acceleratorTypes, - @CustomType.Parameter("bareMetal") @Nullable String bareMetal, - @CustomType.Parameter("baselineEbsBandwidthMbps") @Nullable LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps, - @CustomType.Parameter("burstablePerformance") @Nullable String burstablePerformance, - @CustomType.Parameter("cpuManufacturers") @Nullable List cpuManufacturers, - @CustomType.Parameter("excludedInstanceTypes") @Nullable List excludedInstanceTypes, - @CustomType.Parameter("instanceGenerations") @Nullable List instanceGenerations, - @CustomType.Parameter("localStorage") @Nullable String localStorage, - @CustomType.Parameter("localStorageTypes") @Nullable List localStorageTypes, - @CustomType.Parameter("memoryGibPerVcpu") @Nullable LaunchTemplateInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu, - @CustomType.Parameter("memoryMib") LaunchTemplateInstanceRequirementsMemoryMib memoryMib, - @CustomType.Parameter("networkInterfaceCount") @Nullable LaunchTemplateInstanceRequirementsNetworkInterfaceCount networkInterfaceCount, - @CustomType.Parameter("onDemandMaxPricePercentageOverLowestPrice") @Nullable Integer onDemandMaxPricePercentageOverLowestPrice, - @CustomType.Parameter("requireHibernateSupport") @Nullable Boolean requireHibernateSupport, - @CustomType.Parameter("spotMaxPricePercentageOverLowestPrice") @Nullable Integer spotMaxPricePercentageOverLowestPrice, - @CustomType.Parameter("totalLocalStorageGb") @Nullable LaunchTemplateInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb, - @CustomType.Parameter("vcpuCount") LaunchTemplateInstanceRequirementsVcpuCount vcpuCount) { - this.acceleratorCount = acceleratorCount; - this.acceleratorManufacturers = acceleratorManufacturers; - this.acceleratorNames = acceleratorNames; - this.acceleratorTotalMemoryMib = acceleratorTotalMemoryMib; - this.acceleratorTypes = acceleratorTypes; - this.bareMetal = bareMetal; - this.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; - this.burstablePerformance = burstablePerformance; - this.cpuManufacturers = cpuManufacturers; - this.excludedInstanceTypes = excludedInstanceTypes; - this.instanceGenerations = instanceGenerations; - this.localStorage = localStorage; - this.localStorageTypes = localStorageTypes; - this.memoryGibPerVcpu = memoryGibPerVcpu; - this.memoryMib = memoryMib; - this.networkInterfaceCount = networkInterfaceCount; - this.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; - this.requireHibernateSupport = requireHibernateSupport; - this.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; - this.totalLocalStorageGb = totalLocalStorageGb; - this.vcpuCount = vcpuCount; - } + private LaunchTemplateInstanceRequirementsVcpuCount vcpuCount; + private LaunchTemplateInstanceRequirements() {} /** * @return Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. * @@ -329,7 +284,7 @@ public static Builder builder() { public static Builder builder(LaunchTemplateInstanceRequirements defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable LaunchTemplateInstanceRequirementsAcceleratorCount acceleratorCount; private @Nullable List acceleratorManufacturers; @@ -352,11 +307,7 @@ public static final class Builder { private @Nullable Integer spotMaxPricePercentageOverLowestPrice; private @Nullable LaunchTemplateInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb; private LaunchTemplateInstanceRequirementsVcpuCount vcpuCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateInstanceRequirements defaults) { Objects.requireNonNull(defaults); this.acceleratorCount = defaults.acceleratorCount; @@ -382,10 +333,12 @@ public Builder(LaunchTemplateInstanceRequirements defaults) { this.vcpuCount = defaults.vcpuCount; } + @CustomType.Setter public Builder acceleratorCount(@Nullable LaunchTemplateInstanceRequirementsAcceleratorCount acceleratorCount) { this.acceleratorCount = acceleratorCount; return this; } + @CustomType.Setter public Builder acceleratorManufacturers(@Nullable List acceleratorManufacturers) { this.acceleratorManufacturers = acceleratorManufacturers; return this; @@ -393,6 +346,7 @@ public Builder acceleratorManufacturers(@Nullable List acceleratorManufa public Builder acceleratorManufacturers(String... acceleratorManufacturers) { return acceleratorManufacturers(List.of(acceleratorManufacturers)); } + @CustomType.Setter public Builder acceleratorNames(@Nullable List acceleratorNames) { this.acceleratorNames = acceleratorNames; return this; @@ -400,10 +354,12 @@ public Builder acceleratorNames(@Nullable List acceleratorNames) { public Builder acceleratorNames(String... acceleratorNames) { return acceleratorNames(List.of(acceleratorNames)); } + @CustomType.Setter public Builder acceleratorTotalMemoryMib(@Nullable LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib) { this.acceleratorTotalMemoryMib = acceleratorTotalMemoryMib; return this; } + @CustomType.Setter public Builder acceleratorTypes(@Nullable List acceleratorTypes) { this.acceleratorTypes = acceleratorTypes; return this; @@ -411,18 +367,22 @@ public Builder acceleratorTypes(@Nullable List acceleratorTypes) { public Builder acceleratorTypes(String... acceleratorTypes) { return acceleratorTypes(List.of(acceleratorTypes)); } + @CustomType.Setter public Builder bareMetal(@Nullable String bareMetal) { this.bareMetal = bareMetal; return this; } + @CustomType.Setter public Builder baselineEbsBandwidthMbps(@Nullable LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps) { this.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; return this; } + @CustomType.Setter public Builder burstablePerformance(@Nullable String burstablePerformance) { this.burstablePerformance = burstablePerformance; return this; } + @CustomType.Setter public Builder cpuManufacturers(@Nullable List cpuManufacturers) { this.cpuManufacturers = cpuManufacturers; return this; @@ -430,6 +390,7 @@ public Builder cpuManufacturers(@Nullable List cpuManufacturers) { public Builder cpuManufacturers(String... cpuManufacturers) { return cpuManufacturers(List.of(cpuManufacturers)); } + @CustomType.Setter public Builder excludedInstanceTypes(@Nullable List excludedInstanceTypes) { this.excludedInstanceTypes = excludedInstanceTypes; return this; @@ -437,6 +398,7 @@ public Builder excludedInstanceTypes(@Nullable List excludedInstanceType public Builder excludedInstanceTypes(String... excludedInstanceTypes) { return excludedInstanceTypes(List.of(excludedInstanceTypes)); } + @CustomType.Setter public Builder instanceGenerations(@Nullable List instanceGenerations) { this.instanceGenerations = instanceGenerations; return this; @@ -444,10 +406,12 @@ public Builder instanceGenerations(@Nullable List instanceGenerations) { public Builder instanceGenerations(String... instanceGenerations) { return instanceGenerations(List.of(instanceGenerations)); } + @CustomType.Setter public Builder localStorage(@Nullable String localStorage) { this.localStorage = localStorage; return this; } + @CustomType.Setter public Builder localStorageTypes(@Nullable List localStorageTypes) { this.localStorageTypes = localStorageTypes; return this; @@ -455,39 +419,70 @@ public Builder localStorageTypes(@Nullable List localStorageTypes) { public Builder localStorageTypes(String... localStorageTypes) { return localStorageTypes(List.of(localStorageTypes)); } + @CustomType.Setter public Builder memoryGibPerVcpu(@Nullable LaunchTemplateInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu) { this.memoryGibPerVcpu = memoryGibPerVcpu; return this; } + @CustomType.Setter public Builder memoryMib(LaunchTemplateInstanceRequirementsMemoryMib memoryMib) { this.memoryMib = Objects.requireNonNull(memoryMib); return this; } + @CustomType.Setter public Builder networkInterfaceCount(@Nullable LaunchTemplateInstanceRequirementsNetworkInterfaceCount networkInterfaceCount) { this.networkInterfaceCount = networkInterfaceCount; return this; } + @CustomType.Setter public Builder onDemandMaxPricePercentageOverLowestPrice(@Nullable Integer onDemandMaxPricePercentageOverLowestPrice) { this.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; return this; } + @CustomType.Setter public Builder requireHibernateSupport(@Nullable Boolean requireHibernateSupport) { this.requireHibernateSupport = requireHibernateSupport; return this; } + @CustomType.Setter public Builder spotMaxPricePercentageOverLowestPrice(@Nullable Integer spotMaxPricePercentageOverLowestPrice) { this.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; return this; } + @CustomType.Setter public Builder totalLocalStorageGb(@Nullable LaunchTemplateInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb) { this.totalLocalStorageGb = totalLocalStorageGb; return this; } + @CustomType.Setter public Builder vcpuCount(LaunchTemplateInstanceRequirementsVcpuCount vcpuCount) { this.vcpuCount = Objects.requireNonNull(vcpuCount); return this; - } public LaunchTemplateInstanceRequirements build() { - return new LaunchTemplateInstanceRequirements(acceleratorCount, acceleratorManufacturers, acceleratorNames, acceleratorTotalMemoryMib, acceleratorTypes, bareMetal, baselineEbsBandwidthMbps, burstablePerformance, cpuManufacturers, excludedInstanceTypes, instanceGenerations, localStorage, localStorageTypes, memoryGibPerVcpu, memoryMib, networkInterfaceCount, onDemandMaxPricePercentageOverLowestPrice, requireHibernateSupport, spotMaxPricePercentageOverLowestPrice, totalLocalStorageGb, vcpuCount); + } + public LaunchTemplateInstanceRequirements build() { + final var o = new LaunchTemplateInstanceRequirements(); + o.acceleratorCount = acceleratorCount; + o.acceleratorManufacturers = acceleratorManufacturers; + o.acceleratorNames = acceleratorNames; + o.acceleratorTotalMemoryMib = acceleratorTotalMemoryMib; + o.acceleratorTypes = acceleratorTypes; + o.bareMetal = bareMetal; + o.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; + o.burstablePerformance = burstablePerformance; + o.cpuManufacturers = cpuManufacturers; + o.excludedInstanceTypes = excludedInstanceTypes; + o.instanceGenerations = instanceGenerations; + o.localStorage = localStorage; + o.localStorageTypes = localStorageTypes; + o.memoryGibPerVcpu = memoryGibPerVcpu; + o.memoryMib = memoryMib; + o.networkInterfaceCount = networkInterfaceCount; + o.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; + o.requireHibernateSupport = requireHibernateSupport; + o.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; + o.totalLocalStorageGb = totalLocalStorageGb; + o.vcpuCount = vcpuCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsAcceleratorCount.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsAcceleratorCount.java index 5831c063331..b6f119217ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsAcceleratorCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsAcceleratorCount.java @@ -15,21 +15,14 @@ public final class LaunchTemplateInstanceRequirementsAcceleratorCount { * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private LaunchTemplateInstanceRequirementsAcceleratorCount( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private LaunchTemplateInstanceRequirementsAcceleratorCount() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateInstanceRequirementsAcceleratorCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateInstanceRequirementsAcceleratorCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public LaunchTemplateInstanceRequirementsAcceleratorCount build() { - return new LaunchTemplateInstanceRequirementsAcceleratorCount(max, min); + } + public LaunchTemplateInstanceRequirementsAcceleratorCount build() { + final var o = new LaunchTemplateInstanceRequirementsAcceleratorCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib.java index 59d1b4df479..e253f992256 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib.java @@ -15,21 +15,14 @@ public final class LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib { * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib build() { - return new LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib(max, min); + } + public LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib build() { + final var o = new LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps.java index 6081c038347..5a67e441b8d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps.java @@ -15,21 +15,14 @@ public final class LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps { * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps build() { - return new LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps(max, min); + } + public LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps build() { + final var o = new LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsMemoryGibPerVcpu.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsMemoryGibPerVcpu.java index 19c940258d8..7381972cb3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsMemoryGibPerVcpu.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsMemoryGibPerVcpu.java @@ -15,21 +15,14 @@ public final class LaunchTemplateInstanceRequirementsMemoryGibPerVcpu { * @return Maximum. * */ - private final @Nullable Double max; + private @Nullable Double max; /** * @return Minimum. * */ - private final @Nullable Double min; - - @CustomType.Constructor - private LaunchTemplateInstanceRequirementsMemoryGibPerVcpu( - @CustomType.Parameter("max") @Nullable Double max, - @CustomType.Parameter("min") @Nullable Double min) { - this.max = max; - this.min = min; - } + private @Nullable Double min; + private LaunchTemplateInstanceRequirementsMemoryGibPerVcpu() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateInstanceRequirementsMemoryGibPerVcpu defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Double max; private @Nullable Double min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateInstanceRequirementsMemoryGibPerVcpu defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Double max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Double min) { this.min = min; return this; - } public LaunchTemplateInstanceRequirementsMemoryGibPerVcpu build() { - return new LaunchTemplateInstanceRequirementsMemoryGibPerVcpu(max, min); + } + public LaunchTemplateInstanceRequirementsMemoryGibPerVcpu build() { + final var o = new LaunchTemplateInstanceRequirementsMemoryGibPerVcpu(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsMemoryMib.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsMemoryMib.java index c2059f8de64..1588ad9937c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsMemoryMib.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsMemoryMib.java @@ -15,21 +15,14 @@ public final class LaunchTemplateInstanceRequirementsMemoryMib { * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final Integer min; - - @CustomType.Constructor - private LaunchTemplateInstanceRequirementsMemoryMib( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") Integer min) { - this.max = max; - this.min = min; - } + private Integer min; + private LaunchTemplateInstanceRequirementsMemoryMib() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateInstanceRequirementsMemoryMib defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateInstanceRequirementsMemoryMib defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(Integer min) { this.min = Objects.requireNonNull(min); return this; - } public LaunchTemplateInstanceRequirementsMemoryMib build() { - return new LaunchTemplateInstanceRequirementsMemoryMib(max, min); + } + public LaunchTemplateInstanceRequirementsMemoryMib build() { + final var o = new LaunchTemplateInstanceRequirementsMemoryMib(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsNetworkInterfaceCount.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsNetworkInterfaceCount.java index 1c1aad11917..b09e8b993f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsNetworkInterfaceCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsNetworkInterfaceCount.java @@ -15,21 +15,14 @@ public final class LaunchTemplateInstanceRequirementsNetworkInterfaceCount { * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private LaunchTemplateInstanceRequirementsNetworkInterfaceCount( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private LaunchTemplateInstanceRequirementsNetworkInterfaceCount() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateInstanceRequirementsNetworkInterfaceCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateInstanceRequirementsNetworkInterfaceCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public LaunchTemplateInstanceRequirementsNetworkInterfaceCount build() { - return new LaunchTemplateInstanceRequirementsNetworkInterfaceCount(max, min); + } + public LaunchTemplateInstanceRequirementsNetworkInterfaceCount build() { + final var o = new LaunchTemplateInstanceRequirementsNetworkInterfaceCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsTotalLocalStorageGb.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsTotalLocalStorageGb.java index a560dd39f0d..9fe202b0b89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsTotalLocalStorageGb.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsTotalLocalStorageGb.java @@ -15,21 +15,14 @@ public final class LaunchTemplateInstanceRequirementsTotalLocalStorageGb { * @return Maximum. * */ - private final @Nullable Double max; + private @Nullable Double max; /** * @return Minimum. * */ - private final @Nullable Double min; - - @CustomType.Constructor - private LaunchTemplateInstanceRequirementsTotalLocalStorageGb( - @CustomType.Parameter("max") @Nullable Double max, - @CustomType.Parameter("min") @Nullable Double min) { - this.max = max; - this.min = min; - } + private @Nullable Double min; + private LaunchTemplateInstanceRequirementsTotalLocalStorageGb() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateInstanceRequirementsTotalLocalStorageGb defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Double max; private @Nullable Double min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateInstanceRequirementsTotalLocalStorageGb defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Double max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Double min) { this.min = min; return this; - } public LaunchTemplateInstanceRequirementsTotalLocalStorageGb build() { - return new LaunchTemplateInstanceRequirementsTotalLocalStorageGb(max, min); + } + public LaunchTemplateInstanceRequirementsTotalLocalStorageGb build() { + final var o = new LaunchTemplateInstanceRequirementsTotalLocalStorageGb(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsVcpuCount.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsVcpuCount.java index 0753f6d4520..fb6e588b8c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsVcpuCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateInstanceRequirementsVcpuCount.java @@ -15,21 +15,14 @@ public final class LaunchTemplateInstanceRequirementsVcpuCount { * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final Integer min; - - @CustomType.Constructor - private LaunchTemplateInstanceRequirementsVcpuCount( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") Integer min) { - this.max = max; - this.min = min; - } + private Integer min; + private LaunchTemplateInstanceRequirementsVcpuCount() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateInstanceRequirementsVcpuCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateInstanceRequirementsVcpuCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(Integer min) { this.min = Objects.requireNonNull(min); return this; - } public LaunchTemplateInstanceRequirementsVcpuCount build() { - return new LaunchTemplateInstanceRequirementsVcpuCount(max, min); + } + public LaunchTemplateInstanceRequirementsVcpuCount build() { + final var o = new LaunchTemplateInstanceRequirementsVcpuCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateLicenseSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateLicenseSpecification.java index ddfecbddb5d..e7eade61f16 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateLicenseSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateLicenseSpecification.java @@ -13,13 +13,9 @@ public final class LaunchTemplateLicenseSpecification { * @return ARN of the license configuration. * */ - private final String licenseConfigurationArn; - - @CustomType.Constructor - private LaunchTemplateLicenseSpecification(@CustomType.Parameter("licenseConfigurationArn") String licenseConfigurationArn) { - this.licenseConfigurationArn = licenseConfigurationArn; - } + private String licenseConfigurationArn; + private LaunchTemplateLicenseSpecification() {} /** * @return ARN of the license configuration. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(LaunchTemplateLicenseSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String licenseConfigurationArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateLicenseSpecification defaults) { Objects.requireNonNull(defaults); this.licenseConfigurationArn = defaults.licenseConfigurationArn; } + @CustomType.Setter public Builder licenseConfigurationArn(String licenseConfigurationArn) { this.licenseConfigurationArn = Objects.requireNonNull(licenseConfigurationArn); return this; - } public LaunchTemplateLicenseSpecification build() { - return new LaunchTemplateLicenseSpecification(licenseConfigurationArn); + } + public LaunchTemplateLicenseSpecification build() { + final var o = new LaunchTemplateLicenseSpecification(); + o.licenseConfigurationArn = licenseConfigurationArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateMaintenanceOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateMaintenanceOptions.java index 2a2701def4f..bbae40ff8b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateMaintenanceOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateMaintenanceOptions.java @@ -15,13 +15,9 @@ public final class LaunchTemplateMaintenanceOptions { * @return Disables the automatic recovery behavior of your instance or sets it to default. Can be `"default"` or `"disabled"`. See [Recover your instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html) for more details. * */ - private final @Nullable String autoRecovery; - - @CustomType.Constructor - private LaunchTemplateMaintenanceOptions(@CustomType.Parameter("autoRecovery") @Nullable String autoRecovery) { - this.autoRecovery = autoRecovery; - } + private @Nullable String autoRecovery; + private LaunchTemplateMaintenanceOptions() {} /** * @return Disables the automatic recovery behavior of your instance or sets it to default. Can be `"default"` or `"disabled"`. See [Recover your instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html) for more details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(LaunchTemplateMaintenanceOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String autoRecovery; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateMaintenanceOptions defaults) { Objects.requireNonNull(defaults); this.autoRecovery = defaults.autoRecovery; } + @CustomType.Setter public Builder autoRecovery(@Nullable String autoRecovery) { this.autoRecovery = autoRecovery; return this; - } public LaunchTemplateMaintenanceOptions build() { - return new LaunchTemplateMaintenanceOptions(autoRecovery); + } + public LaunchTemplateMaintenanceOptions build() { + final var o = new LaunchTemplateMaintenanceOptions(); + o.autoRecovery = autoRecovery; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateMetadataOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateMetadataOptions.java index 3cda1d71460..fc2caa5f233 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateMetadataOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateMetadataOptions.java @@ -16,42 +16,29 @@ public final class LaunchTemplateMetadataOptions { * @return Whether the metadata service is available. Can be `"enabled"` or `"disabled"`. (Default: `"enabled"`). * */ - private final @Nullable String httpEndpoint; + private @Nullable String httpEndpoint; /** * @return Enables or disables the IPv6 endpoint for the instance metadata service. (Default: `disabled`). * */ - private final @Nullable String httpProtocolIpv6; + private @Nullable String httpProtocolIpv6; /** * @return The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Can be an integer from `1` to `64`. (Default: `1`). * */ - private final @Nullable Integer httpPutResponseHopLimit; + private @Nullable Integer httpPutResponseHopLimit; /** * @return Whether or not the metadata service requires session tokens, also referred to as _Instance Metadata Service Version 2 (IMDSv2)_. Can be `"optional"` or `"required"`. (Default: `"optional"`). * */ - private final @Nullable String httpTokens; + private @Nullable String httpTokens; /** * @return Enables or disables access to instance tags from the instance metadata service. (Default: `disabled`). * */ - private final @Nullable String instanceMetadataTags; - - @CustomType.Constructor - private LaunchTemplateMetadataOptions( - @CustomType.Parameter("httpEndpoint") @Nullable String httpEndpoint, - @CustomType.Parameter("httpProtocolIpv6") @Nullable String httpProtocolIpv6, - @CustomType.Parameter("httpPutResponseHopLimit") @Nullable Integer httpPutResponseHopLimit, - @CustomType.Parameter("httpTokens") @Nullable String httpTokens, - @CustomType.Parameter("instanceMetadataTags") @Nullable String instanceMetadataTags) { - this.httpEndpoint = httpEndpoint; - this.httpProtocolIpv6 = httpProtocolIpv6; - this.httpPutResponseHopLimit = httpPutResponseHopLimit; - this.httpTokens = httpTokens; - this.instanceMetadataTags = instanceMetadataTags; - } + private @Nullable String instanceMetadataTags; + private LaunchTemplateMetadataOptions() {} /** * @return Whether the metadata service is available. Can be `"enabled"` or `"disabled"`. (Default: `"enabled"`). * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(LaunchTemplateMetadataOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String httpEndpoint; private @Nullable String httpProtocolIpv6; private @Nullable Integer httpPutResponseHopLimit; private @Nullable String httpTokens; private @Nullable String instanceMetadataTags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateMetadataOptions defaults) { Objects.requireNonNull(defaults); this.httpEndpoint = defaults.httpEndpoint; @@ -116,27 +99,39 @@ public Builder(LaunchTemplateMetadataOptions defaults) { this.instanceMetadataTags = defaults.instanceMetadataTags; } + @CustomType.Setter public Builder httpEndpoint(@Nullable String httpEndpoint) { this.httpEndpoint = httpEndpoint; return this; } + @CustomType.Setter public Builder httpProtocolIpv6(@Nullable String httpProtocolIpv6) { this.httpProtocolIpv6 = httpProtocolIpv6; return this; } + @CustomType.Setter public Builder httpPutResponseHopLimit(@Nullable Integer httpPutResponseHopLimit) { this.httpPutResponseHopLimit = httpPutResponseHopLimit; return this; } + @CustomType.Setter public Builder httpTokens(@Nullable String httpTokens) { this.httpTokens = httpTokens; return this; } + @CustomType.Setter public Builder instanceMetadataTags(@Nullable String instanceMetadataTags) { this.instanceMetadataTags = instanceMetadataTags; return this; - } public LaunchTemplateMetadataOptions build() { - return new LaunchTemplateMetadataOptions(httpEndpoint, httpProtocolIpv6, httpPutResponseHopLimit, httpTokens, instanceMetadataTags); + } + public LaunchTemplateMetadataOptions build() { + final var o = new LaunchTemplateMetadataOptions(); + o.httpEndpoint = httpEndpoint; + o.httpProtocolIpv6 = httpProtocolIpv6; + o.httpPutResponseHopLimit = httpPutResponseHopLimit; + o.httpTokens = httpTokens; + o.instanceMetadataTags = instanceMetadataTags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateMonitoring.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateMonitoring.java index 1c1372a303d..3fbf249db55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateMonitoring.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateMonitoring.java @@ -15,13 +15,9 @@ public final class LaunchTemplateMonitoring { * @return If `true`, the launched EC2 instance will have detailed monitoring enabled. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private LaunchTemplateMonitoring(@CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private LaunchTemplateMonitoring() {} /** * @return If `true`, the launched EC2 instance will have detailed monitoring enabled. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(LaunchTemplateMonitoring defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateMonitoring defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public LaunchTemplateMonitoring build() { - return new LaunchTemplateMonitoring(enabled); + } + public LaunchTemplateMonitoring build() { + final var o = new LaunchTemplateMonitoring(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateNetworkInterface.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateNetworkInterface.java index fc6cd13760c..3b04266f11e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateNetworkInterface.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateNetworkInterface.java @@ -17,140 +17,99 @@ public final class LaunchTemplateNetworkInterface { * @return Associate a Carrier IP address with `eth0` for a new network interface. Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. Boolean value. * */ - private final @Nullable String associateCarrierIpAddress; + private @Nullable String associateCarrierIpAddress; /** * @return Associate a public ip address with the network interface. Boolean value. * */ - private final @Nullable String associatePublicIpAddress; + private @Nullable String associatePublicIpAddress; /** * @return Whether the network interface should be destroyed on instance termination. Defaults to `false` if not set. * */ - private final @Nullable String deleteOnTermination; + private @Nullable String deleteOnTermination; /** * @return Description of the network interface. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return The integer index of the network interface attachment. * */ - private final @Nullable Integer deviceIndex; + private @Nullable Integer deviceIndex; /** * @return The type of network interface. To create an Elastic Fabric Adapter (EFA), specify `efa`. * */ - private final @Nullable String interfaceType; + private @Nullable String interfaceType; /** * @return The number of secondary private IPv4 addresses to assign to a network interface. Conflicts with `ipv4_addresses` * */ - private final @Nullable Integer ipv4AddressCount; + private @Nullable Integer ipv4AddressCount; /** * @return One or more private IPv4 addresses to associate. Conflicts with `ipv4_address_count` * */ - private final @Nullable List ipv4Addresses; + private @Nullable List ipv4Addresses; /** * @return The number of IPv4 prefixes to be automatically assigned to the network interface. Conflicts with `ipv4_prefixes` * */ - private final @Nullable Integer ipv4PrefixCount; + private @Nullable Integer ipv4PrefixCount; /** * @return One or more IPv4 prefixes to be assigned to the network interface. Conflicts with `ipv4_prefix_count` * */ - private final @Nullable List ipv4Prefixes; + private @Nullable List ipv4Prefixes; /** * @return The number of IPv6 addresses to assign to a network interface. Conflicts with `ipv6_addresses` * */ - private final @Nullable Integer ipv6AddressCount; + private @Nullable Integer ipv6AddressCount; /** * @return One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Conflicts with `ipv6_address_count` * */ - private final @Nullable List ipv6Addresses; + private @Nullable List ipv6Addresses; /** * @return The number of IPv6 prefixes to be automatically assigned to the network interface. Conflicts with `ipv6_prefixes` * */ - private final @Nullable Integer ipv6PrefixCount; + private @Nullable Integer ipv6PrefixCount; /** * @return One or more IPv6 prefixes to be assigned to the network interface. Conflicts with `ipv6_prefix_count` * */ - private final @Nullable List ipv6Prefixes; + private @Nullable List ipv6Prefixes; /** * @return The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0. * */ - private final @Nullable Integer networkCardIndex; + private @Nullable Integer networkCardIndex; /** * @return The ID of the network interface to attach. * */ - private final @Nullable String networkInterfaceId; + private @Nullable String networkInterfaceId; /** * @return The primary private IPv4 address. * */ - private final @Nullable String privateIpAddress; + private @Nullable String privateIpAddress; /** * @return A list of security group IDs to associate. * */ - private final @Nullable List securityGroups; + private @Nullable List securityGroups; /** * @return The VPC Subnet ID to associate. * */ - private final @Nullable String subnetId; - - @CustomType.Constructor - private LaunchTemplateNetworkInterface( - @CustomType.Parameter("associateCarrierIpAddress") @Nullable String associateCarrierIpAddress, - @CustomType.Parameter("associatePublicIpAddress") @Nullable String associatePublicIpAddress, - @CustomType.Parameter("deleteOnTermination") @Nullable String deleteOnTermination, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("deviceIndex") @Nullable Integer deviceIndex, - @CustomType.Parameter("interfaceType") @Nullable String interfaceType, - @CustomType.Parameter("ipv4AddressCount") @Nullable Integer ipv4AddressCount, - @CustomType.Parameter("ipv4Addresses") @Nullable List ipv4Addresses, - @CustomType.Parameter("ipv4PrefixCount") @Nullable Integer ipv4PrefixCount, - @CustomType.Parameter("ipv4Prefixes") @Nullable List ipv4Prefixes, - @CustomType.Parameter("ipv6AddressCount") @Nullable Integer ipv6AddressCount, - @CustomType.Parameter("ipv6Addresses") @Nullable List ipv6Addresses, - @CustomType.Parameter("ipv6PrefixCount") @Nullable Integer ipv6PrefixCount, - @CustomType.Parameter("ipv6Prefixes") @Nullable List ipv6Prefixes, - @CustomType.Parameter("networkCardIndex") @Nullable Integer networkCardIndex, - @CustomType.Parameter("networkInterfaceId") @Nullable String networkInterfaceId, - @CustomType.Parameter("privateIpAddress") @Nullable String privateIpAddress, - @CustomType.Parameter("securityGroups") @Nullable List securityGroups, - @CustomType.Parameter("subnetId") @Nullable String subnetId) { - this.associateCarrierIpAddress = associateCarrierIpAddress; - this.associatePublicIpAddress = associatePublicIpAddress; - this.deleteOnTermination = deleteOnTermination; - this.description = description; - this.deviceIndex = deviceIndex; - this.interfaceType = interfaceType; - this.ipv4AddressCount = ipv4AddressCount; - this.ipv4Addresses = ipv4Addresses; - this.ipv4PrefixCount = ipv4PrefixCount; - this.ipv4Prefixes = ipv4Prefixes; - this.ipv6AddressCount = ipv6AddressCount; - this.ipv6Addresses = ipv6Addresses; - this.ipv6PrefixCount = ipv6PrefixCount; - this.ipv6Prefixes = ipv6Prefixes; - this.networkCardIndex = networkCardIndex; - this.networkInterfaceId = networkInterfaceId; - this.privateIpAddress = privateIpAddress; - this.securityGroups = securityGroups; - this.subnetId = subnetId; - } + private @Nullable String subnetId; + private LaunchTemplateNetworkInterface() {} /** * @return Associate a Carrier IP address with `eth0` for a new network interface. Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. Boolean value. * @@ -292,7 +251,7 @@ public static Builder builder() { public static Builder builder(LaunchTemplateNetworkInterface defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String associateCarrierIpAddress; private @Nullable String associatePublicIpAddress; @@ -313,11 +272,7 @@ public static final class Builder { private @Nullable String privateIpAddress; private @Nullable List securityGroups; private @Nullable String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateNetworkInterface defaults) { Objects.requireNonNull(defaults); this.associateCarrierIpAddress = defaults.associateCarrierIpAddress; @@ -341,34 +296,42 @@ public Builder(LaunchTemplateNetworkInterface defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder associateCarrierIpAddress(@Nullable String associateCarrierIpAddress) { this.associateCarrierIpAddress = associateCarrierIpAddress; return this; } + @CustomType.Setter public Builder associatePublicIpAddress(@Nullable String associatePublicIpAddress) { this.associatePublicIpAddress = associatePublicIpAddress; return this; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable String deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder deviceIndex(@Nullable Integer deviceIndex) { this.deviceIndex = deviceIndex; return this; } + @CustomType.Setter public Builder interfaceType(@Nullable String interfaceType) { this.interfaceType = interfaceType; return this; } + @CustomType.Setter public Builder ipv4AddressCount(@Nullable Integer ipv4AddressCount) { this.ipv4AddressCount = ipv4AddressCount; return this; } + @CustomType.Setter public Builder ipv4Addresses(@Nullable List ipv4Addresses) { this.ipv4Addresses = ipv4Addresses; return this; @@ -376,10 +339,12 @@ public Builder ipv4Addresses(@Nullable List ipv4Addresses) { public Builder ipv4Addresses(String... ipv4Addresses) { return ipv4Addresses(List.of(ipv4Addresses)); } + @CustomType.Setter public Builder ipv4PrefixCount(@Nullable Integer ipv4PrefixCount) { this.ipv4PrefixCount = ipv4PrefixCount; return this; } + @CustomType.Setter public Builder ipv4Prefixes(@Nullable List ipv4Prefixes) { this.ipv4Prefixes = ipv4Prefixes; return this; @@ -387,10 +352,12 @@ public Builder ipv4Prefixes(@Nullable List ipv4Prefixes) { public Builder ipv4Prefixes(String... ipv4Prefixes) { return ipv4Prefixes(List.of(ipv4Prefixes)); } + @CustomType.Setter public Builder ipv6AddressCount(@Nullable Integer ipv6AddressCount) { this.ipv6AddressCount = ipv6AddressCount; return this; } + @CustomType.Setter public Builder ipv6Addresses(@Nullable List ipv6Addresses) { this.ipv6Addresses = ipv6Addresses; return this; @@ -398,10 +365,12 @@ public Builder ipv6Addresses(@Nullable List ipv6Addresses) { public Builder ipv6Addresses(String... ipv6Addresses) { return ipv6Addresses(List.of(ipv6Addresses)); } + @CustomType.Setter public Builder ipv6PrefixCount(@Nullable Integer ipv6PrefixCount) { this.ipv6PrefixCount = ipv6PrefixCount; return this; } + @CustomType.Setter public Builder ipv6Prefixes(@Nullable List ipv6Prefixes) { this.ipv6Prefixes = ipv6Prefixes; return this; @@ -409,18 +378,22 @@ public Builder ipv6Prefixes(@Nullable List ipv6Prefixes) { public Builder ipv6Prefixes(String... ipv6Prefixes) { return ipv6Prefixes(List.of(ipv6Prefixes)); } + @CustomType.Setter public Builder networkCardIndex(@Nullable Integer networkCardIndex) { this.networkCardIndex = networkCardIndex; return this; } + @CustomType.Setter public Builder networkInterfaceId(@Nullable String networkInterfaceId) { this.networkInterfaceId = networkInterfaceId; return this; } + @CustomType.Setter public Builder privateIpAddress(@Nullable String privateIpAddress) { this.privateIpAddress = privateIpAddress; return this; } + @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { this.securityGroups = securityGroups; return this; @@ -428,11 +401,33 @@ public Builder securityGroups(@Nullable List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnetId(@Nullable String subnetId) { this.subnetId = subnetId; return this; - } public LaunchTemplateNetworkInterface build() { - return new LaunchTemplateNetworkInterface(associateCarrierIpAddress, associatePublicIpAddress, deleteOnTermination, description, deviceIndex, interfaceType, ipv4AddressCount, ipv4Addresses, ipv4PrefixCount, ipv4Prefixes, ipv6AddressCount, ipv6Addresses, ipv6PrefixCount, ipv6Prefixes, networkCardIndex, networkInterfaceId, privateIpAddress, securityGroups, subnetId); + } + public LaunchTemplateNetworkInterface build() { + final var o = new LaunchTemplateNetworkInterface(); + o.associateCarrierIpAddress = associateCarrierIpAddress; + o.associatePublicIpAddress = associatePublicIpAddress; + o.deleteOnTermination = deleteOnTermination; + o.description = description; + o.deviceIndex = deviceIndex; + o.interfaceType = interfaceType; + o.ipv4AddressCount = ipv4AddressCount; + o.ipv4Addresses = ipv4Addresses; + o.ipv4PrefixCount = ipv4PrefixCount; + o.ipv4Prefixes = ipv4Prefixes; + o.ipv6AddressCount = ipv6AddressCount; + o.ipv6Addresses = ipv6Addresses; + o.ipv6PrefixCount = ipv6PrefixCount; + o.ipv6Prefixes = ipv6Prefixes; + o.networkCardIndex = networkCardIndex; + o.networkInterfaceId = networkInterfaceId; + o.privateIpAddress = privateIpAddress; + o.securityGroups = securityGroups; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplatePlacement.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplatePlacement.java index a8a09dcc993..da7f78c8a15 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplatePlacement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplatePlacement.java @@ -16,63 +16,44 @@ public final class LaunchTemplatePlacement { * @return The affinity setting for an instance on a Dedicated Host. * */ - private final @Nullable String affinity; + private @Nullable String affinity; /** * @return The Availability Zone for the instance. * */ - private final @Nullable String availabilityZone; + private @Nullable String availabilityZone; /** * @return The name of the placement group for the instance. * */ - private final @Nullable String groupName; + private @Nullable String groupName; /** * @return The ID of the Dedicated Host for the instance. * */ - private final @Nullable String hostId; + private @Nullable String hostId; /** * @return The ARN of the Host Resource Group in which to launch instances. * */ - private final @Nullable String hostResourceGroupArn; + private @Nullable String hostResourceGroupArn; /** * @return The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition. * */ - private final @Nullable Integer partitionNumber; + private @Nullable Integer partitionNumber; /** * @return Reserved for future use. * */ - private final @Nullable String spreadDomain; + private @Nullable String spreadDomain; /** * @return The tenancy of the instance (if the instance is running in a VPC). Can be `default`, `dedicated`, or `host`. * */ - private final @Nullable String tenancy; - - @CustomType.Constructor - private LaunchTemplatePlacement( - @CustomType.Parameter("affinity") @Nullable String affinity, - @CustomType.Parameter("availabilityZone") @Nullable String availabilityZone, - @CustomType.Parameter("groupName") @Nullable String groupName, - @CustomType.Parameter("hostId") @Nullable String hostId, - @CustomType.Parameter("hostResourceGroupArn") @Nullable String hostResourceGroupArn, - @CustomType.Parameter("partitionNumber") @Nullable Integer partitionNumber, - @CustomType.Parameter("spreadDomain") @Nullable String spreadDomain, - @CustomType.Parameter("tenancy") @Nullable String tenancy) { - this.affinity = affinity; - this.availabilityZone = availabilityZone; - this.groupName = groupName; - this.hostId = hostId; - this.hostResourceGroupArn = hostResourceGroupArn; - this.partitionNumber = partitionNumber; - this.spreadDomain = spreadDomain; - this.tenancy = tenancy; - } + private @Nullable String tenancy; + private LaunchTemplatePlacement() {} /** * @return The affinity setting for an instance on a Dedicated Host. * @@ -137,7 +118,7 @@ public static Builder builder() { public static Builder builder(LaunchTemplatePlacement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String affinity; private @Nullable String availabilityZone; @@ -147,11 +128,7 @@ public static final class Builder { private @Nullable Integer partitionNumber; private @Nullable String spreadDomain; private @Nullable String tenancy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplatePlacement defaults) { Objects.requireNonNull(defaults); this.affinity = defaults.affinity; @@ -164,39 +141,57 @@ public Builder(LaunchTemplatePlacement defaults) { this.tenancy = defaults.tenancy; } + @CustomType.Setter public Builder affinity(@Nullable String affinity) { this.affinity = affinity; return this; } + @CustomType.Setter public Builder availabilityZone(@Nullable String availabilityZone) { this.availabilityZone = availabilityZone; return this; } + @CustomType.Setter public Builder groupName(@Nullable String groupName) { this.groupName = groupName; return this; } + @CustomType.Setter public Builder hostId(@Nullable String hostId) { this.hostId = hostId; return this; } + @CustomType.Setter public Builder hostResourceGroupArn(@Nullable String hostResourceGroupArn) { this.hostResourceGroupArn = hostResourceGroupArn; return this; } + @CustomType.Setter public Builder partitionNumber(@Nullable Integer partitionNumber) { this.partitionNumber = partitionNumber; return this; } + @CustomType.Setter public Builder spreadDomain(@Nullable String spreadDomain) { this.spreadDomain = spreadDomain; return this; } + @CustomType.Setter public Builder tenancy(@Nullable String tenancy) { this.tenancy = tenancy; return this; - } public LaunchTemplatePlacement build() { - return new LaunchTemplatePlacement(affinity, availabilityZone, groupName, hostId, hostResourceGroupArn, partitionNumber, spreadDomain, tenancy); + } + public LaunchTemplatePlacement build() { + final var o = new LaunchTemplatePlacement(); + o.affinity = affinity; + o.availabilityZone = availabilityZone; + o.groupName = groupName; + o.hostId = hostId; + o.hostResourceGroupArn = hostResourceGroupArn; + o.partitionNumber = partitionNumber; + o.spreadDomain = spreadDomain; + o.tenancy = tenancy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplatePrivateDnsNameOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplatePrivateDnsNameOptions.java index 4abc6a78ee9..98b72fdf16a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplatePrivateDnsNameOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplatePrivateDnsNameOptions.java @@ -16,28 +16,19 @@ public final class LaunchTemplatePrivateDnsNameOptions { * @return Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * */ - private final @Nullable Boolean enableResourceNameDnsARecord; + private @Nullable Boolean enableResourceNameDnsARecord; /** * @return Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. * */ - private final @Nullable Boolean enableResourceNameDnsAaaaRecord; + private @Nullable Boolean enableResourceNameDnsAaaaRecord; /** * @return The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: `ip-name` and `resource-name`. * */ - private final @Nullable String hostnameType; - - @CustomType.Constructor - private LaunchTemplatePrivateDnsNameOptions( - @CustomType.Parameter("enableResourceNameDnsARecord") @Nullable Boolean enableResourceNameDnsARecord, - @CustomType.Parameter("enableResourceNameDnsAaaaRecord") @Nullable Boolean enableResourceNameDnsAaaaRecord, - @CustomType.Parameter("hostnameType") @Nullable String hostnameType) { - this.enableResourceNameDnsARecord = enableResourceNameDnsARecord; - this.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; - this.hostnameType = hostnameType; - } + private @Nullable String hostnameType; + private LaunchTemplatePrivateDnsNameOptions() {} /** * @return Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(LaunchTemplatePrivateDnsNameOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enableResourceNameDnsARecord; private @Nullable Boolean enableResourceNameDnsAaaaRecord; private @Nullable String hostnameType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplatePrivateDnsNameOptions defaults) { Objects.requireNonNull(defaults); this.enableResourceNameDnsARecord = defaults.enableResourceNameDnsARecord; @@ -84,19 +71,27 @@ public Builder(LaunchTemplatePrivateDnsNameOptions defaults) { this.hostnameType = defaults.hostnameType; } + @CustomType.Setter public Builder enableResourceNameDnsARecord(@Nullable Boolean enableResourceNameDnsARecord) { this.enableResourceNameDnsARecord = enableResourceNameDnsARecord; return this; } + @CustomType.Setter public Builder enableResourceNameDnsAaaaRecord(@Nullable Boolean enableResourceNameDnsAaaaRecord) { this.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; return this; } + @CustomType.Setter public Builder hostnameType(@Nullable String hostnameType) { this.hostnameType = hostnameType; return this; - } public LaunchTemplatePrivateDnsNameOptions build() { - return new LaunchTemplatePrivateDnsNameOptions(enableResourceNameDnsARecord, enableResourceNameDnsAaaaRecord, hostnameType); + } + public LaunchTemplatePrivateDnsNameOptions build() { + final var o = new LaunchTemplatePrivateDnsNameOptions(); + o.enableResourceNameDnsARecord = enableResourceNameDnsARecord; + o.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; + o.hostnameType = hostnameType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateTagSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateTagSpecification.java index f89711abafc..5d86b5a32c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateTagSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/LaunchTemplateTagSpecification.java @@ -16,21 +16,14 @@ public final class LaunchTemplateTagSpecification { * @return The type of resource to tag. * */ - private final @Nullable String resourceType; + private @Nullable String resourceType; /** * @return A map of tags to assign to the resource. * */ - private final @Nullable Map tags; - - @CustomType.Constructor - private LaunchTemplateTagSpecification( - @CustomType.Parameter("resourceType") @Nullable String resourceType, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.resourceType = resourceType; - this.tags = tags; - } + private @Nullable Map tags; + private LaunchTemplateTagSpecification() {} /** * @return The type of resource to tag. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(LaunchTemplateTagSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String resourceType; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LaunchTemplateTagSpecification defaults) { Objects.requireNonNull(defaults); this.resourceType = defaults.resourceType; this.tags = defaults.tags; } + @CustomType.Setter public Builder resourceType(@Nullable String resourceType) { this.resourceType = resourceType; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public LaunchTemplateTagSpecification build() { - return new LaunchTemplateTagSpecification(resourceType, tags); + } + public LaunchTemplateTagSpecification build() { + final var o = new LaunchTemplateTagSpecification(); + o.resourceType = resourceType; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/ManagedPrefixListEntry.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/ManagedPrefixListEntry.java index 56bbeb2a0d0..023749528aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/ManagedPrefixListEntry.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/ManagedPrefixListEntry.java @@ -15,21 +15,14 @@ public final class ManagedPrefixListEntry { * @return CIDR block of this entry. * */ - private final String cidr; + private String cidr; /** * @return Description of this entry. Due to API limitations, updating only the description of an existing entry requires temporarily removing and re-adding the entry. * */ - private final @Nullable String description; - - @CustomType.Constructor - private ManagedPrefixListEntry( - @CustomType.Parameter("cidr") String cidr, - @CustomType.Parameter("description") @Nullable String description) { - this.cidr = cidr; - this.description = description; - } + private @Nullable String description; + private ManagedPrefixListEntry() {} /** * @return CIDR block of this entry. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ManagedPrefixListEntry defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cidr; private @Nullable String description; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ManagedPrefixListEntry defaults) { Objects.requireNonNull(defaults); this.cidr = defaults.cidr; this.description = defaults.description; } + @CustomType.Setter public Builder cidr(String cidr) { this.cidr = Objects.requireNonNull(cidr); return this; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; - } public ManagedPrefixListEntry build() { - return new ManagedPrefixListEntry(cidr, description); + } + public ManagedPrefixListEntry build() { + final var o = new ManagedPrefixListEntry(); + o.cidr = cidr; + o.description = description; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/NetworkAclEgress.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/NetworkAclEgress.java index ed3b021cce4..c9fc7a595d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/NetworkAclEgress.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/NetworkAclEgress.java @@ -16,72 +16,51 @@ public final class NetworkAclEgress { * @return The action to take. * */ - private final String action; + private String action; /** * @return The CIDR block to match. This must be a * valid network mask. * */ - private final @Nullable String cidrBlock; + private @Nullable String cidrBlock; /** * @return The from port to match. * */ - private final Integer fromPort; + private Integer fromPort; /** * @return The ICMP type code to be used. Default 0. * */ - private final @Nullable Integer icmpCode; + private @Nullable Integer icmpCode; /** * @return The ICMP type to be used. Default 0. * */ - private final @Nullable Integer icmpType; + private @Nullable Integer icmpType; /** * @return The IPv6 CIDR block. * */ - private final @Nullable String ipv6CidrBlock; + private @Nullable String ipv6CidrBlock; /** * @return The protocol to match. If using the -1 'all' * protocol, you must specify a from and to port of 0. * */ - private final String protocol; + private String protocol; /** * @return The rule number. Used for ordering. * */ - private final Integer ruleNo; + private Integer ruleNo; /** * @return The to port to match. * */ - private final Integer toPort; - - @CustomType.Constructor - private NetworkAclEgress( - @CustomType.Parameter("action") String action, - @CustomType.Parameter("cidrBlock") @Nullable String cidrBlock, - @CustomType.Parameter("fromPort") Integer fromPort, - @CustomType.Parameter("icmpCode") @Nullable Integer icmpCode, - @CustomType.Parameter("icmpType") @Nullable Integer icmpType, - @CustomType.Parameter("ipv6CidrBlock") @Nullable String ipv6CidrBlock, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("ruleNo") Integer ruleNo, - @CustomType.Parameter("toPort") Integer toPort) { - this.action = action; - this.cidrBlock = cidrBlock; - this.fromPort = fromPort; - this.icmpCode = icmpCode; - this.icmpType = icmpType; - this.ipv6CidrBlock = ipv6CidrBlock; - this.protocol = protocol; - this.ruleNo = ruleNo; - this.toPort = toPort; - } + private Integer toPort; + private NetworkAclEgress() {} /** * @return The action to take. * @@ -155,7 +134,7 @@ public static Builder builder() { public static Builder builder(NetworkAclEgress defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String action; private @Nullable String cidrBlock; @@ -166,11 +145,7 @@ public static final class Builder { private String protocol; private Integer ruleNo; private Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NetworkAclEgress defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -184,43 +159,63 @@ public Builder(NetworkAclEgress defaults) { this.toPort = defaults.toPort; } + @CustomType.Setter public Builder action(String action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder cidrBlock(@Nullable String cidrBlock) { this.cidrBlock = cidrBlock; return this; } + @CustomType.Setter public Builder fromPort(Integer fromPort) { this.fromPort = Objects.requireNonNull(fromPort); return this; } + @CustomType.Setter public Builder icmpCode(@Nullable Integer icmpCode) { this.icmpCode = icmpCode; return this; } + @CustomType.Setter public Builder icmpType(@Nullable Integer icmpType) { this.icmpType = icmpType; return this; } + @CustomType.Setter public Builder ipv6CidrBlock(@Nullable String ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder ruleNo(Integer ruleNo) { this.ruleNo = Objects.requireNonNull(ruleNo); return this; } + @CustomType.Setter public Builder toPort(Integer toPort) { this.toPort = Objects.requireNonNull(toPort); return this; - } public NetworkAclEgress build() { - return new NetworkAclEgress(action, cidrBlock, fromPort, icmpCode, icmpType, ipv6CidrBlock, protocol, ruleNo, toPort); + } + public NetworkAclEgress build() { + final var o = new NetworkAclEgress(); + o.action = action; + o.cidrBlock = cidrBlock; + o.fromPort = fromPort; + o.icmpCode = icmpCode; + o.icmpType = icmpType; + o.ipv6CidrBlock = ipv6CidrBlock; + o.protocol = protocol; + o.ruleNo = ruleNo; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/NetworkAclIngress.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/NetworkAclIngress.java index 7baa4a317a9..913e01f85ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/NetworkAclIngress.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/NetworkAclIngress.java @@ -16,72 +16,51 @@ public final class NetworkAclIngress { * @return The action to take. * */ - private final String action; + private String action; /** * @return The CIDR block to match. This must be a * valid network mask. * */ - private final @Nullable String cidrBlock; + private @Nullable String cidrBlock; /** * @return The from port to match. * */ - private final Integer fromPort; + private Integer fromPort; /** * @return The ICMP type code to be used. Default 0. * */ - private final @Nullable Integer icmpCode; + private @Nullable Integer icmpCode; /** * @return The ICMP type to be used. Default 0. * */ - private final @Nullable Integer icmpType; + private @Nullable Integer icmpType; /** * @return The IPv6 CIDR block. * */ - private final @Nullable String ipv6CidrBlock; + private @Nullable String ipv6CidrBlock; /** * @return The protocol to match. If using the -1 'all' * protocol, you must specify a from and to port of 0. * */ - private final String protocol; + private String protocol; /** * @return The rule number. Used for ordering. * */ - private final Integer ruleNo; + private Integer ruleNo; /** * @return The to port to match. * */ - private final Integer toPort; - - @CustomType.Constructor - private NetworkAclIngress( - @CustomType.Parameter("action") String action, - @CustomType.Parameter("cidrBlock") @Nullable String cidrBlock, - @CustomType.Parameter("fromPort") Integer fromPort, - @CustomType.Parameter("icmpCode") @Nullable Integer icmpCode, - @CustomType.Parameter("icmpType") @Nullable Integer icmpType, - @CustomType.Parameter("ipv6CidrBlock") @Nullable String ipv6CidrBlock, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("ruleNo") Integer ruleNo, - @CustomType.Parameter("toPort") Integer toPort) { - this.action = action; - this.cidrBlock = cidrBlock; - this.fromPort = fromPort; - this.icmpCode = icmpCode; - this.icmpType = icmpType; - this.ipv6CidrBlock = ipv6CidrBlock; - this.protocol = protocol; - this.ruleNo = ruleNo; - this.toPort = toPort; - } + private Integer toPort; + private NetworkAclIngress() {} /** * @return The action to take. * @@ -155,7 +134,7 @@ public static Builder builder() { public static Builder builder(NetworkAclIngress defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String action; private @Nullable String cidrBlock; @@ -166,11 +145,7 @@ public static final class Builder { private String protocol; private Integer ruleNo; private Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NetworkAclIngress defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -184,43 +159,63 @@ public Builder(NetworkAclIngress defaults) { this.toPort = defaults.toPort; } + @CustomType.Setter public Builder action(String action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder cidrBlock(@Nullable String cidrBlock) { this.cidrBlock = cidrBlock; return this; } + @CustomType.Setter public Builder fromPort(Integer fromPort) { this.fromPort = Objects.requireNonNull(fromPort); return this; } + @CustomType.Setter public Builder icmpCode(@Nullable Integer icmpCode) { this.icmpCode = icmpCode; return this; } + @CustomType.Setter public Builder icmpType(@Nullable Integer icmpType) { this.icmpType = icmpType; return this; } + @CustomType.Setter public Builder ipv6CidrBlock(@Nullable String ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder ruleNo(Integer ruleNo) { this.ruleNo = Objects.requireNonNull(ruleNo); return this; } + @CustomType.Setter public Builder toPort(Integer toPort) { this.toPort = Objects.requireNonNull(toPort); return this; - } public NetworkAclIngress build() { - return new NetworkAclIngress(action, cidrBlock, fromPort, icmpCode, icmpType, ipv6CidrBlock, protocol, ruleNo, toPort); + } + public NetworkAclIngress build() { + final var o = new NetworkAclIngress(); + o.action = action; + o.cidrBlock = cidrBlock; + o.fromPort = fromPort; + o.icmpCode = icmpCode; + o.icmpType = icmpType; + o.ipv6CidrBlock = ipv6CidrBlock; + o.protocol = protocol; + o.ruleNo = ruleNo; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/NetworkInterfaceAttachment.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/NetworkInterfaceAttachment.java index 039502a014d..2cab1b5696f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/NetworkInterfaceAttachment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/NetworkInterfaceAttachment.java @@ -12,28 +12,19 @@ @CustomType public final class NetworkInterfaceAttachment { - private final @Nullable String attachmentId; + private @Nullable String attachmentId; /** * @return Integer to define the devices index. * */ - private final Integer deviceIndex; + private Integer deviceIndex; /** * @return ID of the instance to attach to. * */ - private final String instance; - - @CustomType.Constructor - private NetworkInterfaceAttachment( - @CustomType.Parameter("attachmentId") @Nullable String attachmentId, - @CustomType.Parameter("deviceIndex") Integer deviceIndex, - @CustomType.Parameter("instance") String instance) { - this.attachmentId = attachmentId; - this.deviceIndex = deviceIndex; - this.instance = instance; - } + private String instance; + private NetworkInterfaceAttachment() {} public Optional attachmentId() { return Optional.ofNullable(this.attachmentId); } @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(NetworkInterfaceAttachment defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String attachmentId; private Integer deviceIndex; private String instance; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NetworkInterfaceAttachment defaults) { Objects.requireNonNull(defaults); this.attachmentId = defaults.attachmentId; @@ -76,19 +63,27 @@ public Builder(NetworkInterfaceAttachment defaults) { this.instance = defaults.instance; } + @CustomType.Setter public Builder attachmentId(@Nullable String attachmentId) { this.attachmentId = attachmentId; return this; } + @CustomType.Setter public Builder deviceIndex(Integer deviceIndex) { this.deviceIndex = Objects.requireNonNull(deviceIndex); return this; } + @CustomType.Setter public Builder instance(String instance) { this.instance = Objects.requireNonNull(instance); return this; - } public NetworkInterfaceAttachment build() { - return new NetworkInterfaceAttachment(attachmentId, deviceIndex, instance); + } + public NetworkInterfaceAttachment build() { + final var o = new NetworkInterfaceAttachment(); + o.attachmentId = attachmentId; + o.deviceIndex = deviceIndex; + o.instance = instance; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/PeeringConnectionOptionsAccepter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/PeeringConnectionOptionsAccepter.java index 36e7a932d43..fa9f74cae2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/PeeringConnectionOptionsAccepter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/PeeringConnectionOptionsAccepter.java @@ -17,31 +17,22 @@ public final class PeeringConnectionOptionsAccepter { * to the remote VPC. This option is not supported for inter-region VPC peering. * */ - private final @Nullable Boolean allowClassicLinkToRemoteVpc; + private @Nullable Boolean allowClassicLinkToRemoteVpc; /** * @return Allow a local VPC to resolve public DNS hostnames to * private IP addresses when queried from instances in the peer VPC. * */ - private final @Nullable Boolean allowRemoteVpcDnsResolution; + private @Nullable Boolean allowRemoteVpcDnsResolution; /** * @return Allow a local VPC to communicate with a linked EC2-Classic * instance in a peer VPC. This enables an outbound communication from the local VPC to the remote ClassicLink * connection. This option is not supported for inter-region VPC peering. * */ - private final @Nullable Boolean allowVpcToRemoteClassicLink; - - @CustomType.Constructor - private PeeringConnectionOptionsAccepter( - @CustomType.Parameter("allowClassicLinkToRemoteVpc") @Nullable Boolean allowClassicLinkToRemoteVpc, - @CustomType.Parameter("allowRemoteVpcDnsResolution") @Nullable Boolean allowRemoteVpcDnsResolution, - @CustomType.Parameter("allowVpcToRemoteClassicLink") @Nullable Boolean allowVpcToRemoteClassicLink) { - this.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; - this.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; - this.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; - } + private @Nullable Boolean allowVpcToRemoteClassicLink; + private PeeringConnectionOptionsAccepter() {} /** * @return Allow a local linked EC2-Classic instance to communicate * with instances in a peer VPC. This enables an outbound communication from the local ClassicLink connection @@ -76,16 +67,12 @@ public static Builder builder() { public static Builder builder(PeeringConnectionOptionsAccepter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allowClassicLinkToRemoteVpc; private @Nullable Boolean allowRemoteVpcDnsResolution; private @Nullable Boolean allowVpcToRemoteClassicLink; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PeeringConnectionOptionsAccepter defaults) { Objects.requireNonNull(defaults); this.allowClassicLinkToRemoteVpc = defaults.allowClassicLinkToRemoteVpc; @@ -93,19 +80,27 @@ public Builder(PeeringConnectionOptionsAccepter defaults) { this.allowVpcToRemoteClassicLink = defaults.allowVpcToRemoteClassicLink; } + @CustomType.Setter public Builder allowClassicLinkToRemoteVpc(@Nullable Boolean allowClassicLinkToRemoteVpc) { this.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; return this; } + @CustomType.Setter public Builder allowRemoteVpcDnsResolution(@Nullable Boolean allowRemoteVpcDnsResolution) { this.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; return this; } + @CustomType.Setter public Builder allowVpcToRemoteClassicLink(@Nullable Boolean allowVpcToRemoteClassicLink) { this.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; return this; - } public PeeringConnectionOptionsAccepter build() { - return new PeeringConnectionOptionsAccepter(allowClassicLinkToRemoteVpc, allowRemoteVpcDnsResolution, allowVpcToRemoteClassicLink); + } + public PeeringConnectionOptionsAccepter build() { + final var o = new PeeringConnectionOptionsAccepter(); + o.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; + o.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; + o.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/PeeringConnectionOptionsRequester.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/PeeringConnectionOptionsRequester.java index 7ffca15b983..c309be6dae2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/PeeringConnectionOptionsRequester.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/PeeringConnectionOptionsRequester.java @@ -17,31 +17,22 @@ public final class PeeringConnectionOptionsRequester { * to the remote VPC. This option is not supported for inter-region VPC peering. * */ - private final @Nullable Boolean allowClassicLinkToRemoteVpc; + private @Nullable Boolean allowClassicLinkToRemoteVpc; /** * @return Allow a local VPC to resolve public DNS hostnames to * private IP addresses when queried from instances in the peer VPC. * */ - private final @Nullable Boolean allowRemoteVpcDnsResolution; + private @Nullable Boolean allowRemoteVpcDnsResolution; /** * @return Allow a local VPC to communicate with a linked EC2-Classic * instance in a peer VPC. This enables an outbound communication from the local VPC to the remote ClassicLink * connection. This option is not supported for inter-region VPC peering. * */ - private final @Nullable Boolean allowVpcToRemoteClassicLink; - - @CustomType.Constructor - private PeeringConnectionOptionsRequester( - @CustomType.Parameter("allowClassicLinkToRemoteVpc") @Nullable Boolean allowClassicLinkToRemoteVpc, - @CustomType.Parameter("allowRemoteVpcDnsResolution") @Nullable Boolean allowRemoteVpcDnsResolution, - @CustomType.Parameter("allowVpcToRemoteClassicLink") @Nullable Boolean allowVpcToRemoteClassicLink) { - this.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; - this.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; - this.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; - } + private @Nullable Boolean allowVpcToRemoteClassicLink; + private PeeringConnectionOptionsRequester() {} /** * @return Allow a local linked EC2-Classic instance to communicate * with instances in a peer VPC. This enables an outbound communication from the local ClassicLink connection @@ -76,16 +67,12 @@ public static Builder builder() { public static Builder builder(PeeringConnectionOptionsRequester defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allowClassicLinkToRemoteVpc; private @Nullable Boolean allowRemoteVpcDnsResolution; private @Nullable Boolean allowVpcToRemoteClassicLink; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PeeringConnectionOptionsRequester defaults) { Objects.requireNonNull(defaults); this.allowClassicLinkToRemoteVpc = defaults.allowClassicLinkToRemoteVpc; @@ -93,19 +80,27 @@ public Builder(PeeringConnectionOptionsRequester defaults) { this.allowVpcToRemoteClassicLink = defaults.allowVpcToRemoteClassicLink; } + @CustomType.Setter public Builder allowClassicLinkToRemoteVpc(@Nullable Boolean allowClassicLinkToRemoteVpc) { this.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; return this; } + @CustomType.Setter public Builder allowRemoteVpcDnsResolution(@Nullable Boolean allowRemoteVpcDnsResolution) { this.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; return this; } + @CustomType.Setter public Builder allowVpcToRemoteClassicLink(@Nullable Boolean allowVpcToRemoteClassicLink) { this.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; return this; - } public PeeringConnectionOptionsRequester build() { - return new PeeringConnectionOptionsRequester(allowClassicLinkToRemoteVpc, allowRemoteVpcDnsResolution, allowVpcToRemoteClassicLink); + } + public PeeringConnectionOptionsRequester build() { + final var o = new PeeringConnectionOptionsRequester(); + o.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; + o.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; + o.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/RouteTableRoute.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/RouteTableRoute.java index 40d08dfb241..75428147e18 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/RouteTableRoute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/RouteTableRoute.java @@ -15,32 +15,32 @@ public final class RouteTableRoute { * @return Identifier of a carrier gateway. This attribute can only be used when the VPC contains a subnet which is associated with a Wavelength Zone. * */ - private final @Nullable String carrierGatewayId; + private @Nullable String carrierGatewayId; /** * @return The CIDR block of the route. * */ - private final @Nullable String cidrBlock; + private @Nullable String cidrBlock; /** * @return The Amazon Resource Name (ARN) of a core network. * */ - private final @Nullable String coreNetworkArn; + private @Nullable String coreNetworkArn; /** * @return The ID of a managed prefix list destination of the route. * */ - private final @Nullable String destinationPrefixListId; + private @Nullable String destinationPrefixListId; /** * @return Identifier of a VPC Egress Only Internet Gateway. * */ - private final @Nullable String egressOnlyGatewayId; + private @Nullable String egressOnlyGatewayId; /** * @return Identifier of a VPC internet gateway or a virtual private gateway. * */ - private final @Nullable String gatewayId; + private @Nullable String gatewayId; /** * @return Identifier of an EC2 instance. * @@ -49,75 +49,44 @@ public final class RouteTableRoute { * */ @Deprecated /* Use network_interface_id instead */ - private final @Nullable String instanceId; + private @Nullable String instanceId; /** * @return The Ipv6 CIDR block of the route. * */ - private final @Nullable String ipv6CidrBlock; + private @Nullable String ipv6CidrBlock; /** * @return Identifier of a Outpost local gateway. * */ - private final @Nullable String localGatewayId; + private @Nullable String localGatewayId; /** * @return Identifier of a VPC NAT gateway. * */ - private final @Nullable String natGatewayId; + private @Nullable String natGatewayId; /** * @return Identifier of an EC2 network interface. * */ - private final @Nullable String networkInterfaceId; + private @Nullable String networkInterfaceId; /** * @return Identifier of an EC2 Transit Gateway. * */ - private final @Nullable String transitGatewayId; + private @Nullable String transitGatewayId; /** * @return Identifier of a VPC Endpoint. * */ - private final @Nullable String vpcEndpointId; + private @Nullable String vpcEndpointId; /** * @return Identifier of a VPC peering connection. * */ - private final @Nullable String vpcPeeringConnectionId; - - @CustomType.Constructor - private RouteTableRoute( - @CustomType.Parameter("carrierGatewayId") @Nullable String carrierGatewayId, - @CustomType.Parameter("cidrBlock") @Nullable String cidrBlock, - @CustomType.Parameter("coreNetworkArn") @Nullable String coreNetworkArn, - @CustomType.Parameter("destinationPrefixListId") @Nullable String destinationPrefixListId, - @CustomType.Parameter("egressOnlyGatewayId") @Nullable String egressOnlyGatewayId, - @CustomType.Parameter("gatewayId") @Nullable String gatewayId, - @CustomType.Parameter("instanceId") @Nullable String instanceId, - @CustomType.Parameter("ipv6CidrBlock") @Nullable String ipv6CidrBlock, - @CustomType.Parameter("localGatewayId") @Nullable String localGatewayId, - @CustomType.Parameter("natGatewayId") @Nullable String natGatewayId, - @CustomType.Parameter("networkInterfaceId") @Nullable String networkInterfaceId, - @CustomType.Parameter("transitGatewayId") @Nullable String transitGatewayId, - @CustomType.Parameter("vpcEndpointId") @Nullable String vpcEndpointId, - @CustomType.Parameter("vpcPeeringConnectionId") @Nullable String vpcPeeringConnectionId) { - this.carrierGatewayId = carrierGatewayId; - this.cidrBlock = cidrBlock; - this.coreNetworkArn = coreNetworkArn; - this.destinationPrefixListId = destinationPrefixListId; - this.egressOnlyGatewayId = egressOnlyGatewayId; - this.gatewayId = gatewayId; - this.instanceId = instanceId; - this.ipv6CidrBlock = ipv6CidrBlock; - this.localGatewayId = localGatewayId; - this.natGatewayId = natGatewayId; - this.networkInterfaceId = networkInterfaceId; - this.transitGatewayId = transitGatewayId; - this.vpcEndpointId = vpcEndpointId; - this.vpcPeeringConnectionId = vpcPeeringConnectionId; - } + private @Nullable String vpcPeeringConnectionId; + private RouteTableRoute() {} /** * @return Identifier of a carrier gateway. This attribute can only be used when the VPC contains a subnet which is associated with a Wavelength Zone. * @@ -228,7 +197,7 @@ public static Builder builder() { public static Builder builder(RouteTableRoute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String carrierGatewayId; private @Nullable String cidrBlock; @@ -244,11 +213,7 @@ public static final class Builder { private @Nullable String transitGatewayId; private @Nullable String vpcEndpointId; private @Nullable String vpcPeeringConnectionId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RouteTableRoute defaults) { Objects.requireNonNull(defaults); this.carrierGatewayId = defaults.carrierGatewayId; @@ -267,63 +232,93 @@ public Builder(RouteTableRoute defaults) { this.vpcPeeringConnectionId = defaults.vpcPeeringConnectionId; } + @CustomType.Setter public Builder carrierGatewayId(@Nullable String carrierGatewayId) { this.carrierGatewayId = carrierGatewayId; return this; } + @CustomType.Setter public Builder cidrBlock(@Nullable String cidrBlock) { this.cidrBlock = cidrBlock; return this; } + @CustomType.Setter public Builder coreNetworkArn(@Nullable String coreNetworkArn) { this.coreNetworkArn = coreNetworkArn; return this; } + @CustomType.Setter public Builder destinationPrefixListId(@Nullable String destinationPrefixListId) { this.destinationPrefixListId = destinationPrefixListId; return this; } + @CustomType.Setter public Builder egressOnlyGatewayId(@Nullable String egressOnlyGatewayId) { this.egressOnlyGatewayId = egressOnlyGatewayId; return this; } + @CustomType.Setter public Builder gatewayId(@Nullable String gatewayId) { this.gatewayId = gatewayId; return this; } + @CustomType.Setter public Builder instanceId(@Nullable String instanceId) { this.instanceId = instanceId; return this; } + @CustomType.Setter public Builder ipv6CidrBlock(@Nullable String ipv6CidrBlock) { this.ipv6CidrBlock = ipv6CidrBlock; return this; } + @CustomType.Setter public Builder localGatewayId(@Nullable String localGatewayId) { this.localGatewayId = localGatewayId; return this; } + @CustomType.Setter public Builder natGatewayId(@Nullable String natGatewayId) { this.natGatewayId = natGatewayId; return this; } + @CustomType.Setter public Builder networkInterfaceId(@Nullable String networkInterfaceId) { this.networkInterfaceId = networkInterfaceId; return this; } + @CustomType.Setter public Builder transitGatewayId(@Nullable String transitGatewayId) { this.transitGatewayId = transitGatewayId; return this; } + @CustomType.Setter public Builder vpcEndpointId(@Nullable String vpcEndpointId) { this.vpcEndpointId = vpcEndpointId; return this; } + @CustomType.Setter public Builder vpcPeeringConnectionId(@Nullable String vpcPeeringConnectionId) { this.vpcPeeringConnectionId = vpcPeeringConnectionId; return this; - } public RouteTableRoute build() { - return new RouteTableRoute(carrierGatewayId, cidrBlock, coreNetworkArn, destinationPrefixListId, egressOnlyGatewayId, gatewayId, instanceId, ipv6CidrBlock, localGatewayId, natGatewayId, networkInterfaceId, transitGatewayId, vpcEndpointId, vpcPeeringConnectionId); + } + public RouteTableRoute build() { + final var o = new RouteTableRoute(); + o.carrierGatewayId = carrierGatewayId; + o.cidrBlock = cidrBlock; + o.coreNetworkArn = coreNetworkArn; + o.destinationPrefixListId = destinationPrefixListId; + o.egressOnlyGatewayId = egressOnlyGatewayId; + o.gatewayId = gatewayId; + o.instanceId = instanceId; + o.ipv6CidrBlock = ipv6CidrBlock; + o.localGatewayId = localGatewayId; + o.natGatewayId = natGatewayId; + o.networkInterfaceId = networkInterfaceId; + o.transitGatewayId = transitGatewayId; + o.vpcEndpointId = vpcEndpointId; + o.vpcPeeringConnectionId = vpcPeeringConnectionId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SecurityGroupEgress.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SecurityGroupEgress.java index d44a97a8c09..3141abe2b4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SecurityGroupEgress.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SecurityGroupEgress.java @@ -18,70 +18,49 @@ public final class SecurityGroupEgress { * @return List of CIDR blocks. * */ - private final @Nullable List cidrBlocks; + private @Nullable List cidrBlocks; /** * @return Description of this egress rule. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return Start port (or ICMP type number if protocol is `icmp`) * */ - private final Integer fromPort; + private Integer fromPort; /** * @return List of IPv6 CIDR blocks. * */ - private final @Nullable List ipv6CidrBlocks; + private @Nullable List ipv6CidrBlocks; /** * @return List of Prefix List IDs. * */ - private final @Nullable List prefixListIds; + private @Nullable List prefixListIds; /** * @return Protocol. If you select a protocol of `-1` (semantically equivalent to `all`, which is not a valid value here), you must specify a `from_port` and `to_port` equal to 0. The supported values are defined in the `IpProtocol` argument in the [IpPermission](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_IpPermission.html) API reference. This argument is normalized to a lowercase value. * */ - private final String protocol; + private String protocol; /** * @return List of security group Group Names if using EC2-Classic, or Group IDs if using a VPC. * */ - private final @Nullable List securityGroups; + private @Nullable List securityGroups; /** * @return Whether the security group itself will be added as a source to this egress rule. * */ - private final @Nullable Boolean self; + private @Nullable Boolean self; /** * @return End range port (or ICMP code if protocol is `icmp`). * */ - private final Integer toPort; - - @CustomType.Constructor - private SecurityGroupEgress( - @CustomType.Parameter("cidrBlocks") @Nullable List cidrBlocks, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("fromPort") Integer fromPort, - @CustomType.Parameter("ipv6CidrBlocks") @Nullable List ipv6CidrBlocks, - @CustomType.Parameter("prefixListIds") @Nullable List prefixListIds, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("securityGroups") @Nullable List securityGroups, - @CustomType.Parameter("self") @Nullable Boolean self, - @CustomType.Parameter("toPort") Integer toPort) { - this.cidrBlocks = cidrBlocks; - this.description = description; - this.fromPort = fromPort; - this.ipv6CidrBlocks = ipv6CidrBlocks; - this.prefixListIds = prefixListIds; - this.protocol = protocol; - this.securityGroups = securityGroups; - this.self = self; - this.toPort = toPort; - } + private Integer toPort; + private SecurityGroupEgress() {} /** * @return List of CIDR blocks. * @@ -153,7 +132,7 @@ public static Builder builder() { public static Builder builder(SecurityGroupEgress defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List cidrBlocks; private @Nullable String description; @@ -164,11 +143,7 @@ public static final class Builder { private @Nullable List securityGroups; private @Nullable Boolean self; private Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SecurityGroupEgress defaults) { Objects.requireNonNull(defaults); this.cidrBlocks = defaults.cidrBlocks; @@ -182,6 +157,7 @@ public Builder(SecurityGroupEgress defaults) { this.toPort = defaults.toPort; } + @CustomType.Setter public Builder cidrBlocks(@Nullable List cidrBlocks) { this.cidrBlocks = cidrBlocks; return this; @@ -189,14 +165,17 @@ public Builder cidrBlocks(@Nullable List cidrBlocks) { public Builder cidrBlocks(String... cidrBlocks) { return cidrBlocks(List.of(cidrBlocks)); } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder fromPort(Integer fromPort) { this.fromPort = Objects.requireNonNull(fromPort); return this; } + @CustomType.Setter public Builder ipv6CidrBlocks(@Nullable List ipv6CidrBlocks) { this.ipv6CidrBlocks = ipv6CidrBlocks; return this; @@ -204,6 +183,7 @@ public Builder ipv6CidrBlocks(@Nullable List ipv6CidrBlocks) { public Builder ipv6CidrBlocks(String... ipv6CidrBlocks) { return ipv6CidrBlocks(List.of(ipv6CidrBlocks)); } + @CustomType.Setter public Builder prefixListIds(@Nullable List prefixListIds) { this.prefixListIds = prefixListIds; return this; @@ -211,10 +191,12 @@ public Builder prefixListIds(@Nullable List prefixListIds) { public Builder prefixListIds(String... prefixListIds) { return prefixListIds(List.of(prefixListIds)); } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { this.securityGroups = securityGroups; return this; @@ -222,15 +204,28 @@ public Builder securityGroups(@Nullable List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder self(@Nullable Boolean self) { this.self = self; return this; } + @CustomType.Setter public Builder toPort(Integer toPort) { this.toPort = Objects.requireNonNull(toPort); return this; - } public SecurityGroupEgress build() { - return new SecurityGroupEgress(cidrBlocks, description, fromPort, ipv6CidrBlocks, prefixListIds, protocol, securityGroups, self, toPort); + } + public SecurityGroupEgress build() { + final var o = new SecurityGroupEgress(); + o.cidrBlocks = cidrBlocks; + o.description = description; + o.fromPort = fromPort; + o.ipv6CidrBlocks = ipv6CidrBlocks; + o.prefixListIds = prefixListIds; + o.protocol = protocol; + o.securityGroups = securityGroups; + o.self = self; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SecurityGroupIngress.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SecurityGroupIngress.java index 601504ba5f8..c45b86af96d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SecurityGroupIngress.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SecurityGroupIngress.java @@ -18,70 +18,49 @@ public final class SecurityGroupIngress { * @return List of CIDR blocks. * */ - private final @Nullable List cidrBlocks; + private @Nullable List cidrBlocks; /** * @return Description of this egress rule. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return Start port (or ICMP type number if protocol is `icmp`) * */ - private final Integer fromPort; + private Integer fromPort; /** * @return List of IPv6 CIDR blocks. * */ - private final @Nullable List ipv6CidrBlocks; + private @Nullable List ipv6CidrBlocks; /** * @return List of Prefix List IDs. * */ - private final @Nullable List prefixListIds; + private @Nullable List prefixListIds; /** * @return Protocol. If you select a protocol of `-1` (semantically equivalent to `all`, which is not a valid value here), you must specify a `from_port` and `to_port` equal to 0. The supported values are defined in the `IpProtocol` argument in the [IpPermission](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_IpPermission.html) API reference. This argument is normalized to a lowercase value. * */ - private final String protocol; + private String protocol; /** * @return List of security group Group Names if using EC2-Classic, or Group IDs if using a VPC. * */ - private final @Nullable List securityGroups; + private @Nullable List securityGroups; /** * @return Whether the security group itself will be added as a source to this egress rule. * */ - private final @Nullable Boolean self; + private @Nullable Boolean self; /** * @return End range port (or ICMP code if protocol is `icmp`). * */ - private final Integer toPort; - - @CustomType.Constructor - private SecurityGroupIngress( - @CustomType.Parameter("cidrBlocks") @Nullable List cidrBlocks, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("fromPort") Integer fromPort, - @CustomType.Parameter("ipv6CidrBlocks") @Nullable List ipv6CidrBlocks, - @CustomType.Parameter("prefixListIds") @Nullable List prefixListIds, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("securityGroups") @Nullable List securityGroups, - @CustomType.Parameter("self") @Nullable Boolean self, - @CustomType.Parameter("toPort") Integer toPort) { - this.cidrBlocks = cidrBlocks; - this.description = description; - this.fromPort = fromPort; - this.ipv6CidrBlocks = ipv6CidrBlocks; - this.prefixListIds = prefixListIds; - this.protocol = protocol; - this.securityGroups = securityGroups; - this.self = self; - this.toPort = toPort; - } + private Integer toPort; + private SecurityGroupIngress() {} /** * @return List of CIDR blocks. * @@ -153,7 +132,7 @@ public static Builder builder() { public static Builder builder(SecurityGroupIngress defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List cidrBlocks; private @Nullable String description; @@ -164,11 +143,7 @@ public static final class Builder { private @Nullable List securityGroups; private @Nullable Boolean self; private Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SecurityGroupIngress defaults) { Objects.requireNonNull(defaults); this.cidrBlocks = defaults.cidrBlocks; @@ -182,6 +157,7 @@ public Builder(SecurityGroupIngress defaults) { this.toPort = defaults.toPort; } + @CustomType.Setter public Builder cidrBlocks(@Nullable List cidrBlocks) { this.cidrBlocks = cidrBlocks; return this; @@ -189,14 +165,17 @@ public Builder cidrBlocks(@Nullable List cidrBlocks) { public Builder cidrBlocks(String... cidrBlocks) { return cidrBlocks(List.of(cidrBlocks)); } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder fromPort(Integer fromPort) { this.fromPort = Objects.requireNonNull(fromPort); return this; } + @CustomType.Setter public Builder ipv6CidrBlocks(@Nullable List ipv6CidrBlocks) { this.ipv6CidrBlocks = ipv6CidrBlocks; return this; @@ -204,6 +183,7 @@ public Builder ipv6CidrBlocks(@Nullable List ipv6CidrBlocks) { public Builder ipv6CidrBlocks(String... ipv6CidrBlocks) { return ipv6CidrBlocks(List.of(ipv6CidrBlocks)); } + @CustomType.Setter public Builder prefixListIds(@Nullable List prefixListIds) { this.prefixListIds = prefixListIds; return this; @@ -211,10 +191,12 @@ public Builder prefixListIds(@Nullable List prefixListIds) { public Builder prefixListIds(String... prefixListIds) { return prefixListIds(List.of(prefixListIds)); } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { this.securityGroups = securityGroups; return this; @@ -222,15 +204,28 @@ public Builder securityGroups(@Nullable List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder self(@Nullable Boolean self) { this.self = self; return this; } + @CustomType.Setter public Builder toPort(Integer toPort) { this.toPort = Objects.requireNonNull(toPort); return this; - } public SecurityGroupIngress build() { - return new SecurityGroupIngress(cidrBlocks, description, fromPort, ipv6CidrBlocks, prefixListIds, protocol, securityGroups, self, toPort); + } + public SecurityGroupIngress build() { + final var o = new SecurityGroupIngress(); + o.cidrBlocks = cidrBlocks; + o.description = description; + o.fromPort = fromPort; + o.ipv6CidrBlocks = ipv6CidrBlocks; + o.prefixListIds = prefixListIds; + o.protocol = protocol; + o.securityGroups = securityGroups; + o.self = self; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecification.java index efafcf5bbf2..fdd6bc3584f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecification.java @@ -17,95 +17,52 @@ @CustomType public final class SpotFleetRequestLaunchSpecification { - private final String ami; - private final @Nullable Boolean associatePublicIpAddress; + private String ami; + private @Nullable Boolean associatePublicIpAddress; /** * @return The availability zone in which to place the request. * */ - private final @Nullable String availabilityZone; - private final @Nullable List ebsBlockDevices; - private final @Nullable Boolean ebsOptimized; - private final @Nullable List ephemeralBlockDevices; - private final @Nullable String iamInstanceProfile; - private final @Nullable String iamInstanceProfileArn; + private @Nullable String availabilityZone; + private @Nullable List ebsBlockDevices; + private @Nullable Boolean ebsOptimized; + private @Nullable List ephemeralBlockDevices; + private @Nullable String iamInstanceProfile; + private @Nullable String iamInstanceProfileArn; /** * @return The type of instance to request. * */ - private final String instanceType; - private final @Nullable String keyName; - private final @Nullable Boolean monitoring; - private final @Nullable String placementGroup; - private final @Nullable String placementTenancy; - private final @Nullable List rootBlockDevices; + private String instanceType; + private @Nullable String keyName; + private @Nullable Boolean monitoring; + private @Nullable String placementGroup; + private @Nullable String placementTenancy; + private @Nullable List rootBlockDevices; /** * @return The maximum spot bid for this override request. * */ - private final @Nullable String spotPrice; + private @Nullable String spotPrice; /** * @return The subnet in which to launch the requested instance. * */ - private final @Nullable String subnetId; + private @Nullable String subnetId; /** * @return A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. * */ - private final @Nullable Map tags; - private final @Nullable String userData; - private final @Nullable List vpcSecurityGroupIds; + private @Nullable Map tags; + private @Nullable String userData; + private @Nullable List vpcSecurityGroupIds; /** * @return The capacity added to the fleet by a fulfilled request. * */ - private final @Nullable String weightedCapacity; - - @CustomType.Constructor - private SpotFleetRequestLaunchSpecification( - @CustomType.Parameter("ami") String ami, - @CustomType.Parameter("associatePublicIpAddress") @Nullable Boolean associatePublicIpAddress, - @CustomType.Parameter("availabilityZone") @Nullable String availabilityZone, - @CustomType.Parameter("ebsBlockDevices") @Nullable List ebsBlockDevices, - @CustomType.Parameter("ebsOptimized") @Nullable Boolean ebsOptimized, - @CustomType.Parameter("ephemeralBlockDevices") @Nullable List ephemeralBlockDevices, - @CustomType.Parameter("iamInstanceProfile") @Nullable String iamInstanceProfile, - @CustomType.Parameter("iamInstanceProfileArn") @Nullable String iamInstanceProfileArn, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("keyName") @Nullable String keyName, - @CustomType.Parameter("monitoring") @Nullable Boolean monitoring, - @CustomType.Parameter("placementGroup") @Nullable String placementGroup, - @CustomType.Parameter("placementTenancy") @Nullable String placementTenancy, - @CustomType.Parameter("rootBlockDevices") @Nullable List rootBlockDevices, - @CustomType.Parameter("spotPrice") @Nullable String spotPrice, - @CustomType.Parameter("subnetId") @Nullable String subnetId, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("userData") @Nullable String userData, - @CustomType.Parameter("vpcSecurityGroupIds") @Nullable List vpcSecurityGroupIds, - @CustomType.Parameter("weightedCapacity") @Nullable String weightedCapacity) { - this.ami = ami; - this.associatePublicIpAddress = associatePublicIpAddress; - this.availabilityZone = availabilityZone; - this.ebsBlockDevices = ebsBlockDevices; - this.ebsOptimized = ebsOptimized; - this.ephemeralBlockDevices = ephemeralBlockDevices; - this.iamInstanceProfile = iamInstanceProfile; - this.iamInstanceProfileArn = iamInstanceProfileArn; - this.instanceType = instanceType; - this.keyName = keyName; - this.monitoring = monitoring; - this.placementGroup = placementGroup; - this.placementTenancy = placementTenancy; - this.rootBlockDevices = rootBlockDevices; - this.spotPrice = spotPrice; - this.subnetId = subnetId; - this.tags = tags; - this.userData = userData; - this.vpcSecurityGroupIds = vpcSecurityGroupIds; - this.weightedCapacity = weightedCapacity; - } + private @Nullable String weightedCapacity; + private SpotFleetRequestLaunchSpecification() {} public String ami() { return this.ami; } @@ -198,7 +155,7 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String ami; private @Nullable Boolean associatePublicIpAddress; @@ -220,11 +177,7 @@ public static final class Builder { private @Nullable String userData; private @Nullable List vpcSecurityGroupIds; private @Nullable String weightedCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchSpecification defaults) { Objects.requireNonNull(defaults); this.ami = defaults.ami; @@ -249,18 +202,22 @@ public Builder(SpotFleetRequestLaunchSpecification defaults) { this.weightedCapacity = defaults.weightedCapacity; } + @CustomType.Setter public Builder ami(String ami) { this.ami = Objects.requireNonNull(ami); return this; } + @CustomType.Setter public Builder associatePublicIpAddress(@Nullable Boolean associatePublicIpAddress) { this.associatePublicIpAddress = associatePublicIpAddress; return this; } + @CustomType.Setter public Builder availabilityZone(@Nullable String availabilityZone) { this.availabilityZone = availabilityZone; return this; } + @CustomType.Setter public Builder ebsBlockDevices(@Nullable List ebsBlockDevices) { this.ebsBlockDevices = ebsBlockDevices; return this; @@ -268,10 +225,12 @@ public Builder ebsBlockDevices(@Nullable List ephemeralBlockDevices) { this.ephemeralBlockDevices = ephemeralBlockDevices; return this; @@ -279,34 +238,42 @@ public Builder ephemeralBlockDevices(@Nullable List rootBlockDevices) { this.rootBlockDevices = rootBlockDevices; return this; @@ -314,22 +281,27 @@ public Builder rootBlockDevices(@Nullable List tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder userData(@Nullable String userData) { this.userData = userData; return this; } + @CustomType.Setter public Builder vpcSecurityGroupIds(@Nullable List vpcSecurityGroupIds) { this.vpcSecurityGroupIds = vpcSecurityGroupIds; return this; @@ -337,11 +309,34 @@ public Builder vpcSecurityGroupIds(@Nullable List vpcSecurityGroupIds) { public Builder vpcSecurityGroupIds(String... vpcSecurityGroupIds) { return vpcSecurityGroupIds(List.of(vpcSecurityGroupIds)); } + @CustomType.Setter public Builder weightedCapacity(@Nullable String weightedCapacity) { this.weightedCapacity = weightedCapacity; return this; - } public SpotFleetRequestLaunchSpecification build() { - return new SpotFleetRequestLaunchSpecification(ami, associatePublicIpAddress, availabilityZone, ebsBlockDevices, ebsOptimized, ephemeralBlockDevices, iamInstanceProfile, iamInstanceProfileArn, instanceType, keyName, monitoring, placementGroup, placementTenancy, rootBlockDevices, spotPrice, subnetId, tags, userData, vpcSecurityGroupIds, weightedCapacity); + } + public SpotFleetRequestLaunchSpecification build() { + final var o = new SpotFleetRequestLaunchSpecification(); + o.ami = ami; + o.associatePublicIpAddress = associatePublicIpAddress; + o.availabilityZone = availabilityZone; + o.ebsBlockDevices = ebsBlockDevices; + o.ebsOptimized = ebsOptimized; + o.ephemeralBlockDevices = ephemeralBlockDevices; + o.iamInstanceProfile = iamInstanceProfile; + o.iamInstanceProfileArn = iamInstanceProfileArn; + o.instanceType = instanceType; + o.keyName = keyName; + o.monitoring = monitoring; + o.placementGroup = placementGroup; + o.placementTenancy = placementTenancy; + o.rootBlockDevices = rootBlockDevices; + o.spotPrice = spotPrice; + o.subnetId = subnetId; + o.tags = tags; + o.userData = userData; + o.vpcSecurityGroupIds = vpcSecurityGroupIds; + o.weightedCapacity = weightedCapacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecificationEbsBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecificationEbsBlockDevice.java index c266d3ad404..1bf781703ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecificationEbsBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecificationEbsBlockDevice.java @@ -13,38 +13,17 @@ @CustomType public final class SpotFleetRequestLaunchSpecificationEbsBlockDevice { - private final @Nullable Boolean deleteOnTermination; - private final String deviceName; - private final @Nullable Boolean encrypted; - private final @Nullable Integer iops; - private final @Nullable String kmsKeyId; - private final @Nullable String snapshotId; - private final @Nullable Integer throughput; - private final @Nullable Integer volumeSize; - private final @Nullable String volumeType; - - @CustomType.Constructor - private SpotFleetRequestLaunchSpecificationEbsBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("snapshotId") @Nullable String snapshotId, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.encrypted = encrypted; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.snapshotId = snapshotId; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable Boolean deleteOnTermination; + private String deviceName; + private @Nullable Boolean encrypted; + private @Nullable Integer iops; + private @Nullable String kmsKeyId; + private @Nullable String snapshotId; + private @Nullable Integer throughput; + private @Nullable Integer volumeSize; + private @Nullable String volumeType; + private SpotFleetRequestLaunchSpecificationEbsBlockDevice() {} public Optional deleteOnTermination() { return Optional.ofNullable(this.deleteOnTermination); } @@ -80,7 +59,7 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchSpecificationEbsBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private String deviceName; @@ -91,11 +70,7 @@ public static final class Builder { private @Nullable Integer throughput; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchSpecificationEbsBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -109,43 +84,63 @@ public Builder(SpotFleetRequestLaunchSpecificationEbsBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder snapshotId(@Nullable String snapshotId) { this.snapshotId = snapshotId; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public SpotFleetRequestLaunchSpecificationEbsBlockDevice build() { - return new SpotFleetRequestLaunchSpecificationEbsBlockDevice(deleteOnTermination, deviceName, encrypted, iops, kmsKeyId, snapshotId, throughput, volumeSize, volumeType); + } + public SpotFleetRequestLaunchSpecificationEbsBlockDevice build() { + final var o = new SpotFleetRequestLaunchSpecificationEbsBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.encrypted = encrypted; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.snapshotId = snapshotId; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecificationEphemeralBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecificationEphemeralBlockDevice.java index fefe5e71918..d897e312b4e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecificationEphemeralBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecificationEphemeralBlockDevice.java @@ -9,17 +9,10 @@ @CustomType public final class SpotFleetRequestLaunchSpecificationEphemeralBlockDevice { - private final String deviceName; - private final String virtualName; - - @CustomType.Constructor - private SpotFleetRequestLaunchSpecificationEphemeralBlockDevice( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("virtualName") String virtualName) { - this.deviceName = deviceName; - this.virtualName = virtualName; - } + private String deviceName; + private String virtualName; + private SpotFleetRequestLaunchSpecificationEphemeralBlockDevice() {} public String deviceName() { return this.deviceName; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchSpecificationEphemeralBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchSpecificationEphemeralBlockDevice defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder virtualName(String virtualName) { this.virtualName = Objects.requireNonNull(virtualName); return this; - } public SpotFleetRequestLaunchSpecificationEphemeralBlockDevice build() { - return new SpotFleetRequestLaunchSpecificationEphemeralBlockDevice(deviceName, virtualName); + } + public SpotFleetRequestLaunchSpecificationEphemeralBlockDevice build() { + final var o = new SpotFleetRequestLaunchSpecificationEphemeralBlockDevice(); + o.deviceName = deviceName; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecificationRootBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecificationRootBlockDevice.java index 012abce59d5..9393971d3f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecificationRootBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchSpecificationRootBlockDevice.java @@ -13,32 +13,15 @@ @CustomType public final class SpotFleetRequestLaunchSpecificationRootBlockDevice { - private final @Nullable Boolean deleteOnTermination; - private final @Nullable Boolean encrypted; - private final @Nullable Integer iops; - private final @Nullable String kmsKeyId; - private final @Nullable Integer throughput; - private final @Nullable Integer volumeSize; - private final @Nullable String volumeType; - - @CustomType.Constructor - private SpotFleetRequestLaunchSpecificationRootBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.encrypted = encrypted; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable Boolean deleteOnTermination; + private @Nullable Boolean encrypted; + private @Nullable Integer iops; + private @Nullable String kmsKeyId; + private @Nullable Integer throughput; + private @Nullable Integer volumeSize; + private @Nullable String volumeType; + private SpotFleetRequestLaunchSpecificationRootBlockDevice() {} public Optional deleteOnTermination() { return Optional.ofNullable(this.deleteOnTermination); } @@ -68,7 +51,7 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchSpecificationRootBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private @Nullable Boolean encrypted; @@ -77,11 +60,7 @@ public static final class Builder { private @Nullable Integer throughput; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchSpecificationRootBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -93,35 +72,51 @@ public Builder(SpotFleetRequestLaunchSpecificationRootBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public SpotFleetRequestLaunchSpecificationRootBlockDevice build() { - return new SpotFleetRequestLaunchSpecificationRootBlockDevice(deleteOnTermination, encrypted, iops, kmsKeyId, throughput, volumeSize, volumeType); + } + public SpotFleetRequestLaunchSpecificationRootBlockDevice build() { + final var o = new SpotFleetRequestLaunchSpecificationRootBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.encrypted = encrypted; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfig.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfig.java index d99a407b99f..e03a07c9abc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfig.java @@ -16,21 +16,14 @@ public final class SpotFleetRequestLaunchTemplateConfig { * @return Launch template specification. See Launch Template Specification below for more details. * */ - private final SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification launchTemplateSpecification; + private SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification launchTemplateSpecification; /** * @return One or more override configurations. See Overrides below for more details. * */ - private final @Nullable List overrides; - - @CustomType.Constructor - private SpotFleetRequestLaunchTemplateConfig( - @CustomType.Parameter("launchTemplateSpecification") SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification launchTemplateSpecification, - @CustomType.Parameter("overrides") @Nullable List overrides) { - this.launchTemplateSpecification = launchTemplateSpecification; - this.overrides = overrides; - } + private @Nullable List overrides; + private SpotFleetRequestLaunchTemplateConfig() {} /** * @return Launch template specification. See Launch Template Specification below for more details. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchTemplateConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification launchTemplateSpecification; private @Nullable List overrides; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchTemplateConfig defaults) { Objects.requireNonNull(defaults); this.launchTemplateSpecification = defaults.launchTemplateSpecification; this.overrides = defaults.overrides; } + @CustomType.Setter public Builder launchTemplateSpecification(SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification launchTemplateSpecification) { this.launchTemplateSpecification = Objects.requireNonNull(launchTemplateSpecification); return this; } + @CustomType.Setter public Builder overrides(@Nullable List overrides) { this.overrides = overrides; return this; } public Builder overrides(SpotFleetRequestLaunchTemplateConfigOverride... overrides) { return overrides(List.of(overrides)); - } public SpotFleetRequestLaunchTemplateConfig build() { - return new SpotFleetRequestLaunchTemplateConfig(launchTemplateSpecification, overrides); + } + public SpotFleetRequestLaunchTemplateConfig build() { + final var o = new SpotFleetRequestLaunchTemplateConfig(); + o.launchTemplateSpecification = launchTemplateSpecification; + o.overrides = overrides; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification.java index fee21e5253a..8243a96bf4c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification.java @@ -15,28 +15,19 @@ public final class SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificati * @return The ID of the launch template. Conflicts with `name`. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the launch template. Conflicts with `id`. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Template version. Unlike the autoscaling equivalent, does not support `$Latest` or `$Default`, so use the launch_template resource's attribute, e.g., `"${aws_launch_template.foo.latest_version}"`. It will use the default version if omitted. * */ - private final @Nullable String version; - - @CustomType.Constructor - private SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("version") @Nullable String version) { - this.id = id; - this.name = name; - this.version = version; - } + private @Nullable String version; + private SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification() {} /** * @return The ID of the launch template. Conflicts with `name`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private @Nullable String name; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -83,19 +70,27 @@ public Builder(SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification d this.version = defaults.version; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification build() { - return new SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification(id, name, version); + } + public SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification build() { + final var o = new SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification(); + o.id = id; + o.name = name; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverride.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverride.java index 01a187b8c01..c07f1829295 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverride.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverride.java @@ -17,56 +17,39 @@ public final class SpotFleetRequestLaunchTemplateConfigOverride { * @return The availability zone in which to place the request. * */ - private final @Nullable String availabilityZone; + private @Nullable String availabilityZone; /** * @return The instance requirements. See below. * */ - private final @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements instanceRequirements; + private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements instanceRequirements; /** * @return The type of instance to request. * */ - private final @Nullable String instanceType; + private @Nullable String instanceType; /** * @return The priority for the launch template override. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. * */ - private final @Nullable Double priority; + private @Nullable Double priority; /** * @return The maximum spot bid for this override request. * */ - private final @Nullable String spotPrice; + private @Nullable String spotPrice; /** * @return The subnet in which to launch the requested instance. * */ - private final @Nullable String subnetId; + private @Nullable String subnetId; /** * @return The capacity added to the fleet by a fulfilled request. * */ - private final @Nullable Double weightedCapacity; - - @CustomType.Constructor - private SpotFleetRequestLaunchTemplateConfigOverride( - @CustomType.Parameter("availabilityZone") @Nullable String availabilityZone, - @CustomType.Parameter("instanceRequirements") @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements instanceRequirements, - @CustomType.Parameter("instanceType") @Nullable String instanceType, - @CustomType.Parameter("priority") @Nullable Double priority, - @CustomType.Parameter("spotPrice") @Nullable String spotPrice, - @CustomType.Parameter("subnetId") @Nullable String subnetId, - @CustomType.Parameter("weightedCapacity") @Nullable Double weightedCapacity) { - this.availabilityZone = availabilityZone; - this.instanceRequirements = instanceRequirements; - this.instanceType = instanceType; - this.priority = priority; - this.spotPrice = spotPrice; - this.subnetId = subnetId; - this.weightedCapacity = weightedCapacity; - } + private @Nullable Double weightedCapacity; + private SpotFleetRequestLaunchTemplateConfigOverride() {} /** * @return The availability zone in which to place the request. * @@ -124,7 +107,7 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchTemplateConfigOverride defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String availabilityZone; private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements instanceRequirements; @@ -133,11 +116,7 @@ public static final class Builder { private @Nullable String spotPrice; private @Nullable String subnetId; private @Nullable Double weightedCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchTemplateConfigOverride defaults) { Objects.requireNonNull(defaults); this.availabilityZone = defaults.availabilityZone; @@ -149,35 +128,51 @@ public Builder(SpotFleetRequestLaunchTemplateConfigOverride defaults) { this.weightedCapacity = defaults.weightedCapacity; } + @CustomType.Setter public Builder availabilityZone(@Nullable String availabilityZone) { this.availabilityZone = availabilityZone; return this; } + @CustomType.Setter public Builder instanceRequirements(@Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements instanceRequirements) { this.instanceRequirements = instanceRequirements; return this; } + @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { this.instanceType = instanceType; return this; } + @CustomType.Setter public Builder priority(@Nullable Double priority) { this.priority = priority; return this; } + @CustomType.Setter public Builder spotPrice(@Nullable String spotPrice) { this.spotPrice = spotPrice; return this; } + @CustomType.Setter public Builder subnetId(@Nullable String subnetId) { this.subnetId = subnetId; return this; } + @CustomType.Setter public Builder weightedCapacity(@Nullable Double weightedCapacity) { this.weightedCapacity = weightedCapacity; return this; - } public SpotFleetRequestLaunchTemplateConfigOverride build() { - return new SpotFleetRequestLaunchTemplateConfigOverride(availabilityZone, instanceRequirements, instanceType, priority, spotPrice, subnetId, weightedCapacity); + } + public SpotFleetRequestLaunchTemplateConfigOverride build() { + final var o = new SpotFleetRequestLaunchTemplateConfigOverride(); + o.availabilityZone = availabilityZone; + o.instanceRequirements = instanceRequirements; + o.instanceType = instanceType; + o.priority = priority; + o.spotPrice = spotPrice; + o.subnetId = subnetId; + o.weightedCapacity = weightedCapacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements.java index 718b1b6bd91..9c7b7ea58ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements.java @@ -26,154 +26,109 @@ public final class SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequireme * @return Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. * */ - private final @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount acceleratorCount; + private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount acceleratorCount; /** * @return List of accelerator manufacturer names. Default is any manufacturer. * */ - private final @Nullable List acceleratorManufacturers; + private @Nullable List acceleratorManufacturers; /** * @return List of accelerator names. Default is any acclerator. * */ - private final @Nullable List acceleratorNames; + private @Nullable List acceleratorNames; /** * @return Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum. * */ - private final @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib; + private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib; /** * @return List of accelerator types. Default is any accelerator type. * */ - private final @Nullable List acceleratorTypes; + private @Nullable List acceleratorTypes; /** * @return Indicate whether bare metal instace types should be `included`, `excluded`, or `required`. Default is `excluded`. * */ - private final @Nullable String bareMetal; + private @Nullable String bareMetal; /** * @return Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum. * */ - private final @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps; + private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps; /** * @return Indicate whether burstable performance instance types should be `included`, `excluded`, or `required`. Default is `excluded`. * */ - private final @Nullable String burstablePerformance; + private @Nullable String burstablePerformance; /** * @return List of CPU manufacturer names. Default is any manufacturer. * */ - private final @Nullable List cpuManufacturers; + private @Nullable List cpuManufacturers; /** * @return List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (\*). The following are examples: `c5*`, `m5a.*`, `r*`, `*3*`. For example, if you specify `c5*`, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*`, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types. * */ - private final @Nullable List excludedInstanceTypes; + private @Nullable List excludedInstanceTypes; /** * @return List of instance generation names. Default is any generation. * */ - private final @Nullable List instanceGenerations; + private @Nullable List instanceGenerations; /** * @return Indicate whether instance types with local storage volumes are `included`, `excluded`, or `required`. Default is `included`. * */ - private final @Nullable String localStorage; + private @Nullable String localStorage; /** * @return List of local storage type names. Default any storage type. * */ - private final @Nullable List localStorageTypes; + private @Nullable List localStorageTypes; /** * @return Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum. * */ - private final @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu; + private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu; /** * @return Block describing the minimum and maximum amount of memory (MiB). Default is no maximum. * */ - private final @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib memoryMib; + private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib memoryMib; /** * @return Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum. * */ - private final @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount networkInterfaceCount; + private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount networkInterfaceCount; /** * @return The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20. * */ - private final @Nullable Integer onDemandMaxPricePercentageOverLowestPrice; + private @Nullable Integer onDemandMaxPricePercentageOverLowestPrice; /** * @return Indicate whether instance types must support On-Demand Instance Hibernation, either `true` or `false`. Default is `false`. * */ - private final @Nullable Boolean requireHibernateSupport; + private @Nullable Boolean requireHibernateSupport; /** * @return The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100. * */ - private final @Nullable Integer spotMaxPricePercentageOverLowestPrice; + private @Nullable Integer spotMaxPricePercentageOverLowestPrice; /** * @return Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum. * */ - private final @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb; + private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb; /** * @return Block describing the minimum and maximum number of vCPUs. Default is no maximum. * */ - private final @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount vcpuCount; - - @CustomType.Constructor - private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements( - @CustomType.Parameter("acceleratorCount") @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount acceleratorCount, - @CustomType.Parameter("acceleratorManufacturers") @Nullable List acceleratorManufacturers, - @CustomType.Parameter("acceleratorNames") @Nullable List acceleratorNames, - @CustomType.Parameter("acceleratorTotalMemoryMib") @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib, - @CustomType.Parameter("acceleratorTypes") @Nullable List acceleratorTypes, - @CustomType.Parameter("bareMetal") @Nullable String bareMetal, - @CustomType.Parameter("baselineEbsBandwidthMbps") @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps, - @CustomType.Parameter("burstablePerformance") @Nullable String burstablePerformance, - @CustomType.Parameter("cpuManufacturers") @Nullable List cpuManufacturers, - @CustomType.Parameter("excludedInstanceTypes") @Nullable List excludedInstanceTypes, - @CustomType.Parameter("instanceGenerations") @Nullable List instanceGenerations, - @CustomType.Parameter("localStorage") @Nullable String localStorage, - @CustomType.Parameter("localStorageTypes") @Nullable List localStorageTypes, - @CustomType.Parameter("memoryGibPerVcpu") @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu, - @CustomType.Parameter("memoryMib") @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib memoryMib, - @CustomType.Parameter("networkInterfaceCount") @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount networkInterfaceCount, - @CustomType.Parameter("onDemandMaxPricePercentageOverLowestPrice") @Nullable Integer onDemandMaxPricePercentageOverLowestPrice, - @CustomType.Parameter("requireHibernateSupport") @Nullable Boolean requireHibernateSupport, - @CustomType.Parameter("spotMaxPricePercentageOverLowestPrice") @Nullable Integer spotMaxPricePercentageOverLowestPrice, - @CustomType.Parameter("totalLocalStorageGb") @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb, - @CustomType.Parameter("vcpuCount") @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount vcpuCount) { - this.acceleratorCount = acceleratorCount; - this.acceleratorManufacturers = acceleratorManufacturers; - this.acceleratorNames = acceleratorNames; - this.acceleratorTotalMemoryMib = acceleratorTotalMemoryMib; - this.acceleratorTypes = acceleratorTypes; - this.bareMetal = bareMetal; - this.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; - this.burstablePerformance = burstablePerformance; - this.cpuManufacturers = cpuManufacturers; - this.excludedInstanceTypes = excludedInstanceTypes; - this.instanceGenerations = instanceGenerations; - this.localStorage = localStorage; - this.localStorageTypes = localStorageTypes; - this.memoryGibPerVcpu = memoryGibPerVcpu; - this.memoryMib = memoryMib; - this.networkInterfaceCount = networkInterfaceCount; - this.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; - this.requireHibernateSupport = requireHibernateSupport; - this.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; - this.totalLocalStorageGb = totalLocalStorageGb; - this.vcpuCount = vcpuCount; - } + private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount vcpuCount; + private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements() {} /** * @return Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum. * @@ -329,7 +284,7 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount acceleratorCount; private @Nullable List acceleratorManufacturers; @@ -352,11 +307,7 @@ public static final class Builder { private @Nullable Integer spotMaxPricePercentageOverLowestPrice; private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb; private @Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount vcpuCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements defaults) { Objects.requireNonNull(defaults); this.acceleratorCount = defaults.acceleratorCount; @@ -382,10 +333,12 @@ public Builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements this.vcpuCount = defaults.vcpuCount; } + @CustomType.Setter public Builder acceleratorCount(@Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount acceleratorCount) { this.acceleratorCount = acceleratorCount; return this; } + @CustomType.Setter public Builder acceleratorManufacturers(@Nullable List acceleratorManufacturers) { this.acceleratorManufacturers = acceleratorManufacturers; return this; @@ -393,6 +346,7 @@ public Builder acceleratorManufacturers(@Nullable List acceleratorManufa public Builder acceleratorManufacturers(String... acceleratorManufacturers) { return acceleratorManufacturers(List.of(acceleratorManufacturers)); } + @CustomType.Setter public Builder acceleratorNames(@Nullable List acceleratorNames) { this.acceleratorNames = acceleratorNames; return this; @@ -400,10 +354,12 @@ public Builder acceleratorNames(@Nullable List acceleratorNames) { public Builder acceleratorNames(String... acceleratorNames) { return acceleratorNames(List.of(acceleratorNames)); } + @CustomType.Setter public Builder acceleratorTotalMemoryMib(@Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib acceleratorTotalMemoryMib) { this.acceleratorTotalMemoryMib = acceleratorTotalMemoryMib; return this; } + @CustomType.Setter public Builder acceleratorTypes(@Nullable List acceleratorTypes) { this.acceleratorTypes = acceleratorTypes; return this; @@ -411,18 +367,22 @@ public Builder acceleratorTypes(@Nullable List acceleratorTypes) { public Builder acceleratorTypes(String... acceleratorTypes) { return acceleratorTypes(List.of(acceleratorTypes)); } + @CustomType.Setter public Builder bareMetal(@Nullable String bareMetal) { this.bareMetal = bareMetal; return this; } + @CustomType.Setter public Builder baselineEbsBandwidthMbps(@Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps baselineEbsBandwidthMbps) { this.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; return this; } + @CustomType.Setter public Builder burstablePerformance(@Nullable String burstablePerformance) { this.burstablePerformance = burstablePerformance; return this; } + @CustomType.Setter public Builder cpuManufacturers(@Nullable List cpuManufacturers) { this.cpuManufacturers = cpuManufacturers; return this; @@ -430,6 +390,7 @@ public Builder cpuManufacturers(@Nullable List cpuManufacturers) { public Builder cpuManufacturers(String... cpuManufacturers) { return cpuManufacturers(List.of(cpuManufacturers)); } + @CustomType.Setter public Builder excludedInstanceTypes(@Nullable List excludedInstanceTypes) { this.excludedInstanceTypes = excludedInstanceTypes; return this; @@ -437,6 +398,7 @@ public Builder excludedInstanceTypes(@Nullable List excludedInstanceType public Builder excludedInstanceTypes(String... excludedInstanceTypes) { return excludedInstanceTypes(List.of(excludedInstanceTypes)); } + @CustomType.Setter public Builder instanceGenerations(@Nullable List instanceGenerations) { this.instanceGenerations = instanceGenerations; return this; @@ -444,10 +406,12 @@ public Builder instanceGenerations(@Nullable List instanceGenerations) { public Builder instanceGenerations(String... instanceGenerations) { return instanceGenerations(List.of(instanceGenerations)); } + @CustomType.Setter public Builder localStorage(@Nullable String localStorage) { this.localStorage = localStorage; return this; } + @CustomType.Setter public Builder localStorageTypes(@Nullable List localStorageTypes) { this.localStorageTypes = localStorageTypes; return this; @@ -455,39 +419,70 @@ public Builder localStorageTypes(@Nullable List localStorageTypes) { public Builder localStorageTypes(String... localStorageTypes) { return localStorageTypes(List.of(localStorageTypes)); } + @CustomType.Setter public Builder memoryGibPerVcpu(@Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu memoryGibPerVcpu) { this.memoryGibPerVcpu = memoryGibPerVcpu; return this; } + @CustomType.Setter public Builder memoryMib(@Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib memoryMib) { this.memoryMib = memoryMib; return this; } + @CustomType.Setter public Builder networkInterfaceCount(@Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount networkInterfaceCount) { this.networkInterfaceCount = networkInterfaceCount; return this; } + @CustomType.Setter public Builder onDemandMaxPricePercentageOverLowestPrice(@Nullable Integer onDemandMaxPricePercentageOverLowestPrice) { this.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; return this; } + @CustomType.Setter public Builder requireHibernateSupport(@Nullable Boolean requireHibernateSupport) { this.requireHibernateSupport = requireHibernateSupport; return this; } + @CustomType.Setter public Builder spotMaxPricePercentageOverLowestPrice(@Nullable Integer spotMaxPricePercentageOverLowestPrice) { this.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; return this; } + @CustomType.Setter public Builder totalLocalStorageGb(@Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb totalLocalStorageGb) { this.totalLocalStorageGb = totalLocalStorageGb; return this; } + @CustomType.Setter public Builder vcpuCount(@Nullable SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount vcpuCount) { this.vcpuCount = vcpuCount; return this; - } public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements build() { - return new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements(acceleratorCount, acceleratorManufacturers, acceleratorNames, acceleratorTotalMemoryMib, acceleratorTypes, bareMetal, baselineEbsBandwidthMbps, burstablePerformance, cpuManufacturers, excludedInstanceTypes, instanceGenerations, localStorage, localStorageTypes, memoryGibPerVcpu, memoryMib, networkInterfaceCount, onDemandMaxPricePercentageOverLowestPrice, requireHibernateSupport, spotMaxPricePercentageOverLowestPrice, totalLocalStorageGb, vcpuCount); + } + public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements build() { + final var o = new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirements(); + o.acceleratorCount = acceleratorCount; + o.acceleratorManufacturers = acceleratorManufacturers; + o.acceleratorNames = acceleratorNames; + o.acceleratorTotalMemoryMib = acceleratorTotalMemoryMib; + o.acceleratorTypes = acceleratorTypes; + o.bareMetal = bareMetal; + o.baselineEbsBandwidthMbps = baselineEbsBandwidthMbps; + o.burstablePerformance = burstablePerformance; + o.cpuManufacturers = cpuManufacturers; + o.excludedInstanceTypes = excludedInstanceTypes; + o.instanceGenerations = instanceGenerations; + o.localStorage = localStorage; + o.localStorageTypes = localStorageTypes; + o.memoryGibPerVcpu = memoryGibPerVcpu; + o.memoryMib = memoryMib; + o.networkInterfaceCount = networkInterfaceCount; + o.onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice; + o.requireHibernateSupport = requireHibernateSupport; + o.spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice; + o.totalLocalStorageGb = totalLocalStorageGb; + o.vcpuCount = vcpuCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount.java index 0c6f95654f1..8b687184cf3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount.java @@ -15,21 +15,14 @@ public final class SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequireme * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount build() { - return new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount(max, min); + } + public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount build() { + final var o = new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib.java index bad8afa05f9..d5f0a1d325d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib.java @@ -15,21 +15,14 @@ public final class SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequireme * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib build() { - return new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib(max, min); + } + public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib build() { + final var o = new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps.java index 8e1474ed78b..a0048ec7ebf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps.java @@ -15,21 +15,14 @@ public final class SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequireme * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps build() { - return new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps(max, min); + } + public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps build() { + final var o = new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu.java index cb382e4921c..6e88c4d37c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu.java @@ -15,21 +15,14 @@ public final class SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequireme * @return Maximum. * */ - private final @Nullable Double max; + private @Nullable Double max; /** * @return Minimum. * */ - private final @Nullable Double min; - - @CustomType.Constructor - private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu( - @CustomType.Parameter("max") @Nullable Double max, - @CustomType.Parameter("min") @Nullable Double min) { - this.max = max; - this.min = min; - } + private @Nullable Double min; + private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Double max; private @Nullable Double min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Double max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Double min) { this.min = min; return this; - } public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu build() { - return new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu(max, min); + } + public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu build() { + final var o = new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib.java index 0382f2b3d61..2a6b2f9ecbf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib.java @@ -15,21 +15,14 @@ public final class SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequireme * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib build() { - return new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib(max, min); + } + public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib build() { + final var o = new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount.java index 22fe40bd7f9..8d7d59f93db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount.java @@ -15,21 +15,14 @@ public final class SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequireme * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount build() { - return new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount(max, min); + } + public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount build() { + final var o = new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb.java index 8a62eaedc97..404545ab422 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb.java @@ -15,21 +15,14 @@ public final class SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequireme * @return Maximum. * */ - private final @Nullable Double max; + private @Nullable Double max; /** * @return Minimum. * */ - private final @Nullable Double min; - - @CustomType.Constructor - private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb( - @CustomType.Parameter("max") @Nullable Double max, - @CustomType.Parameter("min") @Nullable Double min) { - this.max = max; - this.min = min; - } + private @Nullable Double min; + private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Double max; private @Nullable Double min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Double max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Double min) { this.min = min; return this; - } public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb build() { - return new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb(max, min); + } + public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb build() { + final var o = new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount.java index 657ecba36de..355fa20f87e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount.java @@ -15,21 +15,14 @@ public final class SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequireme * @return Maximum. * */ - private final @Nullable Integer max; + private @Nullable Integer max; /** * @return Minimum. * */ - private final @Nullable Integer min; - - @CustomType.Constructor - private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount( - @CustomType.Parameter("max") @Nullable Integer max, - @CustomType.Parameter("min") @Nullable Integer min) { - this.max = max; - this.min = min; - } + private @Nullable Integer min; + private SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount() {} /** * @return Maximum. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer max; private @Nullable Integer min; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount defaults) { Objects.requireNonNull(defaults); this.max = defaults.max; this.min = defaults.min; } + @CustomType.Setter public Builder max(@Nullable Integer max) { this.max = max; return this; } + @CustomType.Setter public Builder min(@Nullable Integer min) { this.min = min; return this; - } public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount build() { - return new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount(max, min); + } + public SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount build() { + final var o = new SpotFleetRequestLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount(); + o.max = max; + o.min = min; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestSpotMaintenanceStrategies.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestSpotMaintenanceStrategies.java index 09c0e7164d4..e03ba764a2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestSpotMaintenanceStrategies.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestSpotMaintenanceStrategies.java @@ -15,13 +15,9 @@ public final class SpotFleetRequestSpotMaintenanceStrategies { * @return Nested argument containing the capacity rebalance for your fleet request. Defined below. * */ - private final @Nullable SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance capacityRebalance; - - @CustomType.Constructor - private SpotFleetRequestSpotMaintenanceStrategies(@CustomType.Parameter("capacityRebalance") @Nullable SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance capacityRebalance) { - this.capacityRebalance = capacityRebalance; - } + private @Nullable SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance capacityRebalance; + private SpotFleetRequestSpotMaintenanceStrategies() {} /** * @return Nested argument containing the capacity rebalance for your fleet request. Defined below. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestSpotMaintenanceStrategies defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance capacityRebalance; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestSpotMaintenanceStrategies defaults) { Objects.requireNonNull(defaults); this.capacityRebalance = defaults.capacityRebalance; } + @CustomType.Setter public Builder capacityRebalance(@Nullable SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance capacityRebalance) { this.capacityRebalance = capacityRebalance; return this; - } public SpotFleetRequestSpotMaintenanceStrategies build() { - return new SpotFleetRequestSpotMaintenanceStrategies(capacityRebalance); + } + public SpotFleetRequestSpotMaintenanceStrategies build() { + final var o = new SpotFleetRequestSpotMaintenanceStrategies(); + o.capacityRebalance = capacityRebalance; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance.java index f385889ef67..304f4f5a4ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance.java @@ -15,13 +15,9 @@ public final class SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance { * @return The replacement strategy to use. Only available for spot fleets with `fleet_type` set to `maintain`. Valid values: `launch`. * */ - private final @Nullable String replacementStrategy; - - @CustomType.Constructor - private SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance(@CustomType.Parameter("replacementStrategy") @Nullable String replacementStrategy) { - this.replacementStrategy = replacementStrategy; - } + private @Nullable String replacementStrategy; + private SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance() {} /** * @return The replacement strategy to use. Only available for spot fleets with `fleet_type` set to `maintain`. Valid values: `launch`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String replacementStrategy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance defaults) { Objects.requireNonNull(defaults); this.replacementStrategy = defaults.replacementStrategy; } + @CustomType.Setter public Builder replacementStrategy(@Nullable String replacementStrategy) { this.replacementStrategy = replacementStrategy; return this; - } public SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance build() { - return new SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance(replacementStrategy); + } + public SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance build() { + final var o = new SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalance(); + o.replacementStrategy = replacementStrategy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestCapacityReservationSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestCapacityReservationSpecification.java index f17294198a9..6dda8a116ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestCapacityReservationSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestCapacityReservationSpecification.java @@ -16,21 +16,14 @@ public final class SpotInstanceRequestCapacityReservationSpecification { * @return Indicates the instance's Capacity Reservation preferences. Can be `"open"` or `"none"`. (Default: `"open"`). * */ - private final @Nullable String capacityReservationPreference; + private @Nullable String capacityReservationPreference; /** * @return Information about the target Capacity Reservation. See Capacity Reservation Target below for more details. * */ - private final @Nullable SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget; - - @CustomType.Constructor - private SpotInstanceRequestCapacityReservationSpecification( - @CustomType.Parameter("capacityReservationPreference") @Nullable String capacityReservationPreference, - @CustomType.Parameter("capacityReservationTarget") @Nullable SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget) { - this.capacityReservationPreference = capacityReservationPreference; - this.capacityReservationTarget = capacityReservationTarget; - } + private @Nullable SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget; + private SpotInstanceRequestCapacityReservationSpecification() {} /** * @return Indicates the instance's Capacity Reservation preferences. Can be `"open"` or `"none"`. (Default: `"open"`). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(SpotInstanceRequestCapacityReservationSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String capacityReservationPreference; private @Nullable SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotInstanceRequestCapacityReservationSpecification defaults) { Objects.requireNonNull(defaults); this.capacityReservationPreference = defaults.capacityReservationPreference; this.capacityReservationTarget = defaults.capacityReservationTarget; } + @CustomType.Setter public Builder capacityReservationPreference(@Nullable String capacityReservationPreference) { this.capacityReservationPreference = capacityReservationPreference; return this; } + @CustomType.Setter public Builder capacityReservationTarget(@Nullable SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget) { this.capacityReservationTarget = capacityReservationTarget; return this; - } public SpotInstanceRequestCapacityReservationSpecification build() { - return new SpotInstanceRequestCapacityReservationSpecification(capacityReservationPreference, capacityReservationTarget); + } + public SpotInstanceRequestCapacityReservationSpecification build() { + final var o = new SpotInstanceRequestCapacityReservationSpecification(); + o.capacityReservationPreference = capacityReservationPreference; + o.capacityReservationTarget = capacityReservationTarget; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget.java index 0e84a22a391..113ee17064d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget.java @@ -15,21 +15,14 @@ public final class SpotInstanceRequestCapacityReservationSpecificationCapacityRe * @return The ID of the Capacity Reservation in which to run the instance. * */ - private final @Nullable String capacityReservationId; + private @Nullable String capacityReservationId; /** * @return The ARN of the Capacity Reservation resource group in which to run the instance. * */ - private final @Nullable String capacityReservationResourceGroupArn; - - @CustomType.Constructor - private SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget( - @CustomType.Parameter("capacityReservationId") @Nullable String capacityReservationId, - @CustomType.Parameter("capacityReservationResourceGroupArn") @Nullable String capacityReservationResourceGroupArn) { - this.capacityReservationId = capacityReservationId; - this.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn; - } + private @Nullable String capacityReservationResourceGroupArn; + private SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget() {} /** * @return The ID of the Capacity Reservation in which to run the instance. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String capacityReservationId; private @Nullable String capacityReservationResourceGroupArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget defaults) { Objects.requireNonNull(defaults); this.capacityReservationId = defaults.capacityReservationId; this.capacityReservationResourceGroupArn = defaults.capacityReservationResourceGroupArn; } + @CustomType.Setter public Builder capacityReservationId(@Nullable String capacityReservationId) { this.capacityReservationId = capacityReservationId; return this; } + @CustomType.Setter public Builder capacityReservationResourceGroupArn(@Nullable String capacityReservationResourceGroupArn) { this.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn; return this; - } public SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget build() { - return new SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget(capacityReservationId, capacityReservationResourceGroupArn); + } + public SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget build() { + final var o = new SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget(); + o.capacityReservationId = capacityReservationId; + o.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestCreditSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestCreditSpecification.java index ccf2c38a487..580223e1cac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestCreditSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestCreditSpecification.java @@ -15,13 +15,9 @@ public final class SpotInstanceRequestCreditSpecification { * @return Credit option for CPU usage. Valid values include `standard` or `unlimited`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default. * */ - private final @Nullable String cpuCredits; - - @CustomType.Constructor - private SpotInstanceRequestCreditSpecification(@CustomType.Parameter("cpuCredits") @Nullable String cpuCredits) { - this.cpuCredits = cpuCredits; - } + private @Nullable String cpuCredits; + private SpotInstanceRequestCreditSpecification() {} /** * @return Credit option for CPU usage. Valid values include `standard` or `unlimited`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(SpotInstanceRequestCreditSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cpuCredits; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotInstanceRequestCreditSpecification defaults) { Objects.requireNonNull(defaults); this.cpuCredits = defaults.cpuCredits; } + @CustomType.Setter public Builder cpuCredits(@Nullable String cpuCredits) { this.cpuCredits = cpuCredits; return this; - } public SpotInstanceRequestCreditSpecification build() { - return new SpotInstanceRequestCreditSpecification(cpuCredits); + } + public SpotInstanceRequestCreditSpecification build() { + final var o = new SpotInstanceRequestCreditSpecification(); + o.cpuCredits = cpuCredits; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestEbsBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestEbsBlockDevice.java index 71801cb0bb4..a1977fbf7f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestEbsBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestEbsBlockDevice.java @@ -18,80 +18,55 @@ public final class SpotInstanceRequestEbsBlockDevice { * @return Whether the volume should be destroyed on instance termination. Defaults to `true`. * */ - private final @Nullable Boolean deleteOnTermination; + private @Nullable Boolean deleteOnTermination; /** * @return Name of the device to mount. * */ - private final String deviceName; + private String deviceName; /** * @return Enables [EBS encryption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) on the volume. Defaults to `false`. Cannot be used with `snapshot_id`. Must be configured to perform drift detection. * */ - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return Amount of provisioned [IOPS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-io-characteristics.html). Only valid for volume_type of `io1`, `io2` or `gp3`. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return Amazon Resource Name (ARN) of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return Snapshot ID to mount. * */ - private final @Nullable String snapshotId; + private @Nullable String snapshotId; /** * @return A map of tags to assign to the device. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for `volume_type` of `gp3`. * */ - private final @Nullable Integer throughput; - private final @Nullable String volumeId; + private @Nullable Integer throughput; + private @Nullable String volumeId; /** * @return Size of the volume in gibibytes (GiB). * */ - private final @Nullable Integer volumeSize; + private @Nullable Integer volumeSize; /** * @return Type of volume. Valid values include `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1`, or `st1`. Defaults to `gp2`. * */ - private final @Nullable String volumeType; - - @CustomType.Constructor - private SpotInstanceRequestEbsBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("snapshotId") @Nullable String snapshotId, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeId") @Nullable String volumeId, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.encrypted = encrypted; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.snapshotId = snapshotId; - this.tags = tags; - this.throughput = throughput; - this.volumeId = volumeId; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable String volumeType; + private SpotInstanceRequestEbsBlockDevice() {} /** * @return Whether the volume should be destroyed on instance termination. Defaults to `true`. * @@ -173,7 +148,7 @@ public static Builder builder() { public static Builder builder(SpotInstanceRequestEbsBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private String deviceName; @@ -186,11 +161,7 @@ public static final class Builder { private @Nullable String volumeId; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotInstanceRequestEbsBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -206,51 +177,75 @@ public Builder(SpotInstanceRequestEbsBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder snapshotId(@Nullable String snapshotId) { this.snapshotId = snapshotId; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeId(@Nullable String volumeId) { this.volumeId = volumeId; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public SpotInstanceRequestEbsBlockDevice build() { - return new SpotInstanceRequestEbsBlockDevice(deleteOnTermination, deviceName, encrypted, iops, kmsKeyId, snapshotId, tags, throughput, volumeId, volumeSize, volumeType); + } + public SpotInstanceRequestEbsBlockDevice build() { + final var o = new SpotInstanceRequestEbsBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.encrypted = encrypted; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.snapshotId = snapshotId; + o.tags = tags; + o.throughput = throughput; + o.volumeId = volumeId; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestEnclaveOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestEnclaveOptions.java index dc0e8c6013d..6f2ec02a06c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestEnclaveOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestEnclaveOptions.java @@ -15,13 +15,9 @@ public final class SpotInstanceRequestEnclaveOptions { * @return Whether Nitro Enclaves will be enabled on the instance. Defaults to `false`. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private SpotInstanceRequestEnclaveOptions(@CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private SpotInstanceRequestEnclaveOptions() {} /** * @return Whether Nitro Enclaves will be enabled on the instance. Defaults to `false`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(SpotInstanceRequestEnclaveOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotInstanceRequestEnclaveOptions defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public SpotInstanceRequestEnclaveOptions build() { - return new SpotInstanceRequestEnclaveOptions(enabled); + } + public SpotInstanceRequestEnclaveOptions build() { + final var o = new SpotInstanceRequestEnclaveOptions(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestEphemeralBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestEphemeralBlockDevice.java index 8659769cc44..a24737151f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestEphemeralBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestEphemeralBlockDevice.java @@ -16,28 +16,19 @@ public final class SpotInstanceRequestEphemeralBlockDevice { * @return The name of the block device to mount on the instance. * */ - private final String deviceName; + private String deviceName; /** * @return Suppresses the specified device included in the AMI's block device mapping. * */ - private final @Nullable Boolean noDevice; + private @Nullable Boolean noDevice; /** * @return [Instance Store Device Name](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames) (e.g., `ephemeral0`). * */ - private final @Nullable String virtualName; - - @CustomType.Constructor - private SpotInstanceRequestEphemeralBlockDevice( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("noDevice") @Nullable Boolean noDevice, - @CustomType.Parameter("virtualName") @Nullable String virtualName) { - this.deviceName = deviceName; - this.noDevice = noDevice; - this.virtualName = virtualName; - } + private @Nullable String virtualName; + private SpotInstanceRequestEphemeralBlockDevice() {} /** * @return The name of the block device to mount on the instance. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(SpotInstanceRequestEphemeralBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private @Nullable Boolean noDevice; private @Nullable String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotInstanceRequestEphemeralBlockDevice defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; @@ -84,19 +71,27 @@ public Builder(SpotInstanceRequestEphemeralBlockDevice defaults) { this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder noDevice(@Nullable Boolean noDevice) { this.noDevice = noDevice; return this; } + @CustomType.Setter public Builder virtualName(@Nullable String virtualName) { this.virtualName = virtualName; return this; - } public SpotInstanceRequestEphemeralBlockDevice build() { - return new SpotInstanceRequestEphemeralBlockDevice(deviceName, noDevice, virtualName); + } + public SpotInstanceRequestEphemeralBlockDevice build() { + final var o = new SpotInstanceRequestEphemeralBlockDevice(); + o.deviceName = deviceName; + o.noDevice = noDevice; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestLaunchTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestLaunchTemplate.java index eb4dda78846..4dcee713b89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestLaunchTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestLaunchTemplate.java @@ -15,28 +15,19 @@ public final class SpotInstanceRequestLaunchTemplate { * @return The ID of the launch template. Conflicts with `name`. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the launch template. Conflicts with `id`. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Template version. Can be a specific version number, `$Latest` or `$Default`. The default value is `$Default`. * */ - private final @Nullable String version; - - @CustomType.Constructor - private SpotInstanceRequestLaunchTemplate( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("version") @Nullable String version) { - this.id = id; - this.name = name; - this.version = version; - } + private @Nullable String version; + private SpotInstanceRequestLaunchTemplate() {} /** * @return The ID of the launch template. Conflicts with `name`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(SpotInstanceRequestLaunchTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private @Nullable String name; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotInstanceRequestLaunchTemplate defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -83,19 +70,27 @@ public Builder(SpotInstanceRequestLaunchTemplate defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public SpotInstanceRequestLaunchTemplate build() { - return new SpotInstanceRequestLaunchTemplate(id, name, version); + } + public SpotInstanceRequestLaunchTemplate build() { + final var o = new SpotInstanceRequestLaunchTemplate(); + o.id = id; + o.name = name; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestMaintenanceOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestMaintenanceOptions.java index 423089f2ceb..544f260d250 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestMaintenanceOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestMaintenanceOptions.java @@ -15,13 +15,9 @@ public final class SpotInstanceRequestMaintenanceOptions { * @return The automatic recovery behavior of the Instance. Can be `"default"` or `"disabled"`. See [Recover your instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html) for more details. * */ - private final @Nullable String autoRecovery; - - @CustomType.Constructor - private SpotInstanceRequestMaintenanceOptions(@CustomType.Parameter("autoRecovery") @Nullable String autoRecovery) { - this.autoRecovery = autoRecovery; - } + private @Nullable String autoRecovery; + private SpotInstanceRequestMaintenanceOptions() {} /** * @return The automatic recovery behavior of the Instance. Can be `"default"` or `"disabled"`. See [Recover your instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html) for more details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(SpotInstanceRequestMaintenanceOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String autoRecovery; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotInstanceRequestMaintenanceOptions defaults) { Objects.requireNonNull(defaults); this.autoRecovery = defaults.autoRecovery; } + @CustomType.Setter public Builder autoRecovery(@Nullable String autoRecovery) { this.autoRecovery = autoRecovery; return this; - } public SpotInstanceRequestMaintenanceOptions build() { - return new SpotInstanceRequestMaintenanceOptions(autoRecovery); + } + public SpotInstanceRequestMaintenanceOptions build() { + final var o = new SpotInstanceRequestMaintenanceOptions(); + o.autoRecovery = autoRecovery; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestMetadataOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestMetadataOptions.java index dd6da1a78ad..aa8201e5b65 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestMetadataOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestMetadataOptions.java @@ -16,35 +16,24 @@ public final class SpotInstanceRequestMetadataOptions { * @return Whether the metadata service is available. Valid values include `enabled` or `disabled`. Defaults to `enabled`. * */ - private final @Nullable String httpEndpoint; + private @Nullable String httpEndpoint; /** * @return Desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Valid values are integer from `1` to `64`. Defaults to `1`. * */ - private final @Nullable Integer httpPutResponseHopLimit; + private @Nullable Integer httpPutResponseHopLimit; /** * @return Whether or not the metadata service requires session tokens, also referred to as _Instance Metadata Service Version 2 (IMDSv2)_. Valid values include `optional` or `required`. Defaults to `optional`. * */ - private final @Nullable String httpTokens; + private @Nullable String httpTokens; /** * @return Enables or disables access to instance tags from the instance metadata service. Valid values include `enabled` or `disabled`. Defaults to `disabled`. * */ - private final @Nullable String instanceMetadataTags; - - @CustomType.Constructor - private SpotInstanceRequestMetadataOptions( - @CustomType.Parameter("httpEndpoint") @Nullable String httpEndpoint, - @CustomType.Parameter("httpPutResponseHopLimit") @Nullable Integer httpPutResponseHopLimit, - @CustomType.Parameter("httpTokens") @Nullable String httpTokens, - @CustomType.Parameter("instanceMetadataTags") @Nullable String instanceMetadataTags) { - this.httpEndpoint = httpEndpoint; - this.httpPutResponseHopLimit = httpPutResponseHopLimit; - this.httpTokens = httpTokens; - this.instanceMetadataTags = instanceMetadataTags; - } + private @Nullable String instanceMetadataTags; + private SpotInstanceRequestMetadataOptions() {} /** * @return Whether the metadata service is available. Valid values include `enabled` or `disabled`. Defaults to `enabled`. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(SpotInstanceRequestMetadataOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String httpEndpoint; private @Nullable Integer httpPutResponseHopLimit; private @Nullable String httpTokens; private @Nullable String instanceMetadataTags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotInstanceRequestMetadataOptions defaults) { Objects.requireNonNull(defaults); this.httpEndpoint = defaults.httpEndpoint; @@ -100,23 +85,33 @@ public Builder(SpotInstanceRequestMetadataOptions defaults) { this.instanceMetadataTags = defaults.instanceMetadataTags; } + @CustomType.Setter public Builder httpEndpoint(@Nullable String httpEndpoint) { this.httpEndpoint = httpEndpoint; return this; } + @CustomType.Setter public Builder httpPutResponseHopLimit(@Nullable Integer httpPutResponseHopLimit) { this.httpPutResponseHopLimit = httpPutResponseHopLimit; return this; } + @CustomType.Setter public Builder httpTokens(@Nullable String httpTokens) { this.httpTokens = httpTokens; return this; } + @CustomType.Setter public Builder instanceMetadataTags(@Nullable String instanceMetadataTags) { this.instanceMetadataTags = instanceMetadataTags; return this; - } public SpotInstanceRequestMetadataOptions build() { - return new SpotInstanceRequestMetadataOptions(httpEndpoint, httpPutResponseHopLimit, httpTokens, instanceMetadataTags); + } + public SpotInstanceRequestMetadataOptions build() { + final var o = new SpotInstanceRequestMetadataOptions(); + o.httpEndpoint = httpEndpoint; + o.httpPutResponseHopLimit = httpPutResponseHopLimit; + o.httpTokens = httpTokens; + o.instanceMetadataTags = instanceMetadataTags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestNetworkInterface.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestNetworkInterface.java index 75f02bec9ec..ec5a8e080ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestNetworkInterface.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestNetworkInterface.java @@ -17,35 +17,24 @@ public final class SpotInstanceRequestNetworkInterface { * @return Whether or not to delete the network interface on instance termination. Defaults to `false`. Currently, the only valid value is `false`, as this is only supported when creating new network interfaces when launching an instance. * */ - private final @Nullable Boolean deleteOnTermination; + private @Nullable Boolean deleteOnTermination; /** * @return Integer index of the network interface attachment. Limited by instance type. * */ - private final Integer deviceIndex; + private Integer deviceIndex; /** * @return Integer index of the network card. Limited by instance type. The default index is `0`. * */ - private final @Nullable Integer networkCardIndex; + private @Nullable Integer networkCardIndex; /** * @return ID of the network interface to attach. * */ - private final String networkInterfaceId; - - @CustomType.Constructor - private SpotInstanceRequestNetworkInterface( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("deviceIndex") Integer deviceIndex, - @CustomType.Parameter("networkCardIndex") @Nullable Integer networkCardIndex, - @CustomType.Parameter("networkInterfaceId") String networkInterfaceId) { - this.deleteOnTermination = deleteOnTermination; - this.deviceIndex = deviceIndex; - this.networkCardIndex = networkCardIndex; - this.networkInterfaceId = networkInterfaceId; - } + private String networkInterfaceId; + private SpotInstanceRequestNetworkInterface() {} /** * @return Whether or not to delete the network interface on instance termination. Defaults to `false`. Currently, the only valid value is `false`, as this is only supported when creating new network interfaces when launching an instance. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(SpotInstanceRequestNetworkInterface defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private Integer deviceIndex; private @Nullable Integer networkCardIndex; private String networkInterfaceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotInstanceRequestNetworkInterface defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -101,23 +86,33 @@ public Builder(SpotInstanceRequestNetworkInterface defaults) { this.networkInterfaceId = defaults.networkInterfaceId; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder deviceIndex(Integer deviceIndex) { this.deviceIndex = Objects.requireNonNull(deviceIndex); return this; } + @CustomType.Setter public Builder networkCardIndex(@Nullable Integer networkCardIndex) { this.networkCardIndex = networkCardIndex; return this; } + @CustomType.Setter public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = Objects.requireNonNull(networkInterfaceId); return this; - } public SpotInstanceRequestNetworkInterface build() { - return new SpotInstanceRequestNetworkInterface(deleteOnTermination, deviceIndex, networkCardIndex, networkInterfaceId); + } + public SpotInstanceRequestNetworkInterface build() { + final var o = new SpotInstanceRequestNetworkInterface(); + o.deleteOnTermination = deleteOnTermination; + o.deviceIndex = deviceIndex; + o.networkCardIndex = networkCardIndex; + o.networkInterfaceId = networkInterfaceId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestPrivateDnsNameOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestPrivateDnsNameOptions.java index 97d41692912..0367d004bdc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestPrivateDnsNameOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestPrivateDnsNameOptions.java @@ -16,28 +16,19 @@ public final class SpotInstanceRequestPrivateDnsNameOptions { * @return Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * */ - private final @Nullable Boolean enableResourceNameDnsARecord; + private @Nullable Boolean enableResourceNameDnsARecord; /** * @return Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. * */ - private final @Nullable Boolean enableResourceNameDnsAaaaRecord; + private @Nullable Boolean enableResourceNameDnsAaaaRecord; /** * @return The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: `ip-name` and `resource-name`. * */ - private final @Nullable String hostnameType; - - @CustomType.Constructor - private SpotInstanceRequestPrivateDnsNameOptions( - @CustomType.Parameter("enableResourceNameDnsARecord") @Nullable Boolean enableResourceNameDnsARecord, - @CustomType.Parameter("enableResourceNameDnsAaaaRecord") @Nullable Boolean enableResourceNameDnsAaaaRecord, - @CustomType.Parameter("hostnameType") @Nullable String hostnameType) { - this.enableResourceNameDnsARecord = enableResourceNameDnsARecord; - this.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; - this.hostnameType = hostnameType; - } + private @Nullable String hostnameType; + private SpotInstanceRequestPrivateDnsNameOptions() {} /** * @return Indicates whether to respond to DNS queries for instance hostnames with DNS A records. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(SpotInstanceRequestPrivateDnsNameOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enableResourceNameDnsARecord; private @Nullable Boolean enableResourceNameDnsAaaaRecord; private @Nullable String hostnameType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotInstanceRequestPrivateDnsNameOptions defaults) { Objects.requireNonNull(defaults); this.enableResourceNameDnsARecord = defaults.enableResourceNameDnsARecord; @@ -84,19 +71,27 @@ public Builder(SpotInstanceRequestPrivateDnsNameOptions defaults) { this.hostnameType = defaults.hostnameType; } + @CustomType.Setter public Builder enableResourceNameDnsARecord(@Nullable Boolean enableResourceNameDnsARecord) { this.enableResourceNameDnsARecord = enableResourceNameDnsARecord; return this; } + @CustomType.Setter public Builder enableResourceNameDnsAaaaRecord(@Nullable Boolean enableResourceNameDnsAaaaRecord) { this.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; return this; } + @CustomType.Setter public Builder hostnameType(@Nullable String hostnameType) { this.hostnameType = hostnameType; return this; - } public SpotInstanceRequestPrivateDnsNameOptions build() { - return new SpotInstanceRequestPrivateDnsNameOptions(enableResourceNameDnsARecord, enableResourceNameDnsAaaaRecord, hostnameType); + } + public SpotInstanceRequestPrivateDnsNameOptions build() { + final var o = new SpotInstanceRequestPrivateDnsNameOptions(); + o.enableResourceNameDnsARecord = enableResourceNameDnsARecord; + o.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord; + o.hostnameType = hostnameType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestRootBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestRootBlockDevice.java index 51f9477f5cb..abec334ccca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestRootBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/SpotInstanceRequestRootBlockDevice.java @@ -18,73 +18,50 @@ public final class SpotInstanceRequestRootBlockDevice { * @return Whether the volume should be destroyed on instance termination. Defaults to `true`. * */ - private final @Nullable Boolean deleteOnTermination; + private @Nullable Boolean deleteOnTermination; /** * @return Name of the device to mount. * */ - private final @Nullable String deviceName; + private @Nullable String deviceName; /** * @return Whether to enable volume encryption. Defaults to `false`. Must be configured to perform drift detection. * */ - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return Amount of provisioned [IOPS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-io-characteristics.html). Only valid for volume_type of `io1`, `io2` or `gp3`. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return Amazon Resource Name (ARN) of the KMS Key to use when encrypting the volume. Must be configured to perform drift detection. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return A map of tags to assign to the device. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return Throughput to provision for a volume in mebibytes per second (MiB/s). This is only valid for `volume_type` of `gp3`. * */ - private final @Nullable Integer throughput; - private final @Nullable String volumeId; + private @Nullable Integer throughput; + private @Nullable String volumeId; /** * @return Size of the volume in gibibytes (GiB). * */ - private final @Nullable Integer volumeSize; + private @Nullable Integer volumeSize; /** * @return Type of volume. Valid values include `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1`, or `st1`. Defaults to `gp2`. * */ - private final @Nullable String volumeType; - - @CustomType.Constructor - private SpotInstanceRequestRootBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") @Nullable String deviceName, - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeId") @Nullable String volumeId, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.encrypted = encrypted; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.tags = tags; - this.throughput = throughput; - this.volumeId = volumeId; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable String volumeType; + private SpotInstanceRequestRootBlockDevice() {} /** * @return Whether the volume should be destroyed on instance termination. Defaults to `true`. * @@ -159,7 +136,7 @@ public static Builder builder() { public static Builder builder(SpotInstanceRequestRootBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private @Nullable String deviceName; @@ -171,11 +148,7 @@ public static final class Builder { private @Nullable String volumeId; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SpotInstanceRequestRootBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -190,47 +163,69 @@ public Builder(SpotInstanceRequestRootBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder deviceName(@Nullable String deviceName) { this.deviceName = deviceName; return this; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeId(@Nullable String volumeId) { this.volumeId = volumeId; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public SpotInstanceRequestRootBlockDevice build() { - return new SpotInstanceRequestRootBlockDevice(deleteOnTermination, deviceName, encrypted, iops, kmsKeyId, tags, throughput, volumeId, volumeSize, volumeType); + } + public SpotInstanceRequestRootBlockDevice build() { + final var o = new SpotInstanceRequestRootBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.encrypted = encrypted; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.tags = tags; + o.throughput = throughput; + o.volumeId = volumeId; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/TrafficMirrorFilterRuleDestinationPortRange.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/TrafficMirrorFilterRuleDestinationPortRange.java index 4e2299e82f6..2c5d4d25e69 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/TrafficMirrorFilterRuleDestinationPortRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/TrafficMirrorFilterRuleDestinationPortRange.java @@ -15,21 +15,14 @@ public final class TrafficMirrorFilterRuleDestinationPortRange { * @return Starting port of the range * */ - private final @Nullable Integer fromPort; + private @Nullable Integer fromPort; /** * @return Ending port of the range * */ - private final @Nullable Integer toPort; - - @CustomType.Constructor - private TrafficMirrorFilterRuleDestinationPortRange( - @CustomType.Parameter("fromPort") @Nullable Integer fromPort, - @CustomType.Parameter("toPort") @Nullable Integer toPort) { - this.fromPort = fromPort; - this.toPort = toPort; - } + private @Nullable Integer toPort; + private TrafficMirrorFilterRuleDestinationPortRange() {} /** * @return Starting port of the range * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(TrafficMirrorFilterRuleDestinationPortRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer fromPort; private @Nullable Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TrafficMirrorFilterRuleDestinationPortRange defaults) { Objects.requireNonNull(defaults); this.fromPort = defaults.fromPort; this.toPort = defaults.toPort; } + @CustomType.Setter public Builder fromPort(@Nullable Integer fromPort) { this.fromPort = fromPort; return this; } + @CustomType.Setter public Builder toPort(@Nullable Integer toPort) { this.toPort = toPort; return this; - } public TrafficMirrorFilterRuleDestinationPortRange build() { - return new TrafficMirrorFilterRuleDestinationPortRange(fromPort, toPort); + } + public TrafficMirrorFilterRuleDestinationPortRange build() { + final var o = new TrafficMirrorFilterRuleDestinationPortRange(); + o.fromPort = fromPort; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/TrafficMirrorFilterRuleSourcePortRange.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/TrafficMirrorFilterRuleSourcePortRange.java index c21dd4cfe35..de33e1900f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/TrafficMirrorFilterRuleSourcePortRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/TrafficMirrorFilterRuleSourcePortRange.java @@ -15,21 +15,14 @@ public final class TrafficMirrorFilterRuleSourcePortRange { * @return Starting port of the range * */ - private final @Nullable Integer fromPort; + private @Nullable Integer fromPort; /** * @return Ending port of the range * */ - private final @Nullable Integer toPort; - - @CustomType.Constructor - private TrafficMirrorFilterRuleSourcePortRange( - @CustomType.Parameter("fromPort") @Nullable Integer fromPort, - @CustomType.Parameter("toPort") @Nullable Integer toPort) { - this.fromPort = fromPort; - this.toPort = toPort; - } + private @Nullable Integer toPort; + private TrafficMirrorFilterRuleSourcePortRange() {} /** * @return Starting port of the range * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(TrafficMirrorFilterRuleSourcePortRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer fromPort; private @Nullable Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TrafficMirrorFilterRuleSourcePortRange defaults) { Objects.requireNonNull(defaults); this.fromPort = defaults.fromPort; this.toPort = defaults.toPort; } + @CustomType.Setter public Builder fromPort(@Nullable Integer fromPort) { this.fromPort = fromPort; return this; } + @CustomType.Setter public Builder toPort(@Nullable Integer toPort) { this.toPort = toPort; return this; - } public TrafficMirrorFilterRuleSourcePortRange build() { - return new TrafficMirrorFilterRuleSourcePortRange(fromPort, toPort); + } + public TrafficMirrorFilterRuleSourcePortRange build() { + final var o = new TrafficMirrorFilterRuleSourcePortRange(); + o.fromPort = fromPort; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcEndpointDnsEntry.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcEndpointDnsEntry.java index 7c60ac9c236..7c335479284 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcEndpointDnsEntry.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcEndpointDnsEntry.java @@ -15,21 +15,14 @@ public final class VpcEndpointDnsEntry { * @return The DNS name. * */ - private final @Nullable String dnsName; + private @Nullable String dnsName; /** * @return The ID of the private hosted zone. * */ - private final @Nullable String hostedZoneId; - - @CustomType.Constructor - private VpcEndpointDnsEntry( - @CustomType.Parameter("dnsName") @Nullable String dnsName, - @CustomType.Parameter("hostedZoneId") @Nullable String hostedZoneId) { - this.dnsName = dnsName; - this.hostedZoneId = hostedZoneId; - } + private @Nullable String hostedZoneId; + private VpcEndpointDnsEntry() {} /** * @return The DNS name. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(VpcEndpointDnsEntry defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dnsName; private @Nullable String hostedZoneId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VpcEndpointDnsEntry defaults) { Objects.requireNonNull(defaults); this.dnsName = defaults.dnsName; this.hostedZoneId = defaults.hostedZoneId; } + @CustomType.Setter public Builder dnsName(@Nullable String dnsName) { this.dnsName = dnsName; return this; } + @CustomType.Setter public Builder hostedZoneId(@Nullable String hostedZoneId) { this.hostedZoneId = hostedZoneId; return this; - } public VpcEndpointDnsEntry build() { - return new VpcEndpointDnsEntry(dnsName, hostedZoneId); + } + public VpcEndpointDnsEntry build() { + final var o = new VpcEndpointDnsEntry(); + o.dnsName = dnsName; + o.hostedZoneId = hostedZoneId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcEndpointDnsOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcEndpointDnsOptions.java index c1b148a08c7..ab33889acef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcEndpointDnsOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcEndpointDnsOptions.java @@ -15,13 +15,9 @@ public final class VpcEndpointDnsOptions { * @return The DNS records created for the endpoint. Valid values are `ipv4`, `dualstack`, `service-defined`, and `ipv6`. * */ - private final @Nullable String dnsRecordIpType; - - @CustomType.Constructor - private VpcEndpointDnsOptions(@CustomType.Parameter("dnsRecordIpType") @Nullable String dnsRecordIpType) { - this.dnsRecordIpType = dnsRecordIpType; - } + private @Nullable String dnsRecordIpType; + private VpcEndpointDnsOptions() {} /** * @return The DNS records created for the endpoint. Valid values are `ipv4`, `dualstack`, `service-defined`, and `ipv6`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VpcEndpointDnsOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dnsRecordIpType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VpcEndpointDnsOptions defaults) { Objects.requireNonNull(defaults); this.dnsRecordIpType = defaults.dnsRecordIpType; } + @CustomType.Setter public Builder dnsRecordIpType(@Nullable String dnsRecordIpType) { this.dnsRecordIpType = dnsRecordIpType; return this; - } public VpcEndpointDnsOptions build() { - return new VpcEndpointDnsOptions(dnsRecordIpType); + } + public VpcEndpointDnsOptions build() { + final var o = new VpcEndpointDnsOptions(); + o.dnsRecordIpType = dnsRecordIpType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcEndpointServicePrivateDnsNameConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcEndpointServicePrivateDnsNameConfiguration.java index 1839907e32d..93544273e26 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcEndpointServicePrivateDnsNameConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcEndpointServicePrivateDnsNameConfiguration.java @@ -15,35 +15,24 @@ public final class VpcEndpointServicePrivateDnsNameConfiguration { * @return Name of the record subdomain the service provider needs to create. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Verification state of the VPC endpoint service. Consumers of the endpoint service can use the private name only when the state is `verified`. * */ - private final @Nullable String state; + private @Nullable String state; /** * @return Endpoint service verification type, for example `TXT`. * */ - private final @Nullable String type; + private @Nullable String type; /** * @return Value the service provider adds to the private DNS name domain record before verification. * */ - private final @Nullable String value; - - @CustomType.Constructor - private VpcEndpointServicePrivateDnsNameConfiguration( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("state") @Nullable String state, - @CustomType.Parameter("type") @Nullable String type, - @CustomType.Parameter("value") @Nullable String value) { - this.name = name; - this.state = state; - this.type = type; - this.value = value; - } + private @Nullable String value; + private VpcEndpointServicePrivateDnsNameConfiguration() {} /** * @return Name of the record subdomain the service provider needs to create. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(VpcEndpointServicePrivateDnsNameConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String state; private @Nullable String type; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VpcEndpointServicePrivateDnsNameConfiguration defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -99,23 +84,33 @@ public Builder(VpcEndpointServicePrivateDnsNameConfiguration defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder state(@Nullable String state) { this.state = state; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public VpcEndpointServicePrivateDnsNameConfiguration build() { - return new VpcEndpointServicePrivateDnsNameConfiguration(name, state, type, value); + } + public VpcEndpointServicePrivateDnsNameConfiguration build() { + final var o = new VpcEndpointServicePrivateDnsNameConfiguration(); + o.name = name; + o.state = state; + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcIpamOperatingRegion.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcIpamOperatingRegion.java index 45bfed39585..016ce426268 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcIpamOperatingRegion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcIpamOperatingRegion.java @@ -13,13 +13,9 @@ public final class VpcIpamOperatingRegion { * @return The name of the Region you want to add to the IPAM. * */ - private final String regionName; - - @CustomType.Constructor - private VpcIpamOperatingRegion(@CustomType.Parameter("regionName") String regionName) { - this.regionName = regionName; - } + private String regionName; + private VpcIpamOperatingRegion() {} /** * @return The name of the Region you want to add to the IPAM. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VpcIpamOperatingRegion defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String regionName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VpcIpamOperatingRegion defaults) { Objects.requireNonNull(defaults); this.regionName = defaults.regionName; } + @CustomType.Setter public Builder regionName(String regionName) { this.regionName = Objects.requireNonNull(regionName); return this; - } public VpcIpamOperatingRegion build() { - return new VpcIpamOperatingRegion(regionName); + } + public VpcIpamOperatingRegion build() { + final var o = new VpcIpamOperatingRegion(); + o.regionName = regionName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcIpamPoolCidrCidrAuthorizationContext.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcIpamPoolCidrCidrAuthorizationContext.java index a52cde85dcb..1264c12c004 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcIpamPoolCidrCidrAuthorizationContext.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcIpamPoolCidrCidrAuthorizationContext.java @@ -15,21 +15,14 @@ public final class VpcIpamPoolCidrCidrAuthorizationContext { * @return The plain-text authorization message for the prefix and account. * */ - private final @Nullable String message; + private @Nullable String message; /** * @return The signed authorization message for the prefix and account. * */ - private final @Nullable String signature; - - @CustomType.Constructor - private VpcIpamPoolCidrCidrAuthorizationContext( - @CustomType.Parameter("message") @Nullable String message, - @CustomType.Parameter("signature") @Nullable String signature) { - this.message = message; - this.signature = signature; - } + private @Nullable String signature; + private VpcIpamPoolCidrCidrAuthorizationContext() {} /** * @return The plain-text authorization message for the prefix and account. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(VpcIpamPoolCidrCidrAuthorizationContext defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String message; private @Nullable String signature; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VpcIpamPoolCidrCidrAuthorizationContext defaults) { Objects.requireNonNull(defaults); this.message = defaults.message; this.signature = defaults.signature; } + @CustomType.Setter public Builder message(@Nullable String message) { this.message = message; return this; } + @CustomType.Setter public Builder signature(@Nullable String signature) { this.signature = signature; return this; - } public VpcIpamPoolCidrCidrAuthorizationContext build() { - return new VpcIpamPoolCidrCidrAuthorizationContext(message, signature); + } + public VpcIpamPoolCidrCidrAuthorizationContext build() { + final var o = new VpcIpamPoolCidrCidrAuthorizationContext(); + o.message = message; + o.signature = signature; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionAccepter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionAccepter.java index 89a07e36326..4ff86d2765c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionAccepter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionAccepter.java @@ -17,31 +17,22 @@ public final class VpcPeeringConnectionAccepter { * to the remote VPC. * */ - private final @Nullable Boolean allowClassicLinkToRemoteVpc; + private @Nullable Boolean allowClassicLinkToRemoteVpc; /** * @return Allow a local VPC to resolve public DNS hostnames to * private IP addresses when queried from instances in the peer VPC. * */ - private final @Nullable Boolean allowRemoteVpcDnsResolution; + private @Nullable Boolean allowRemoteVpcDnsResolution; /** * @return Allow a local VPC to communicate with a linked EC2-Classic * instance in a peer VPC. This enables an outbound communication from the local VPC to the remote ClassicLink * connection. * */ - private final @Nullable Boolean allowVpcToRemoteClassicLink; - - @CustomType.Constructor - private VpcPeeringConnectionAccepter( - @CustomType.Parameter("allowClassicLinkToRemoteVpc") @Nullable Boolean allowClassicLinkToRemoteVpc, - @CustomType.Parameter("allowRemoteVpcDnsResolution") @Nullable Boolean allowRemoteVpcDnsResolution, - @CustomType.Parameter("allowVpcToRemoteClassicLink") @Nullable Boolean allowVpcToRemoteClassicLink) { - this.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; - this.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; - this.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; - } + private @Nullable Boolean allowVpcToRemoteClassicLink; + private VpcPeeringConnectionAccepter() {} /** * @return Allow a local linked EC2-Classic instance to communicate * with instances in a peer VPC. This enables an outbound communication from the local ClassicLink connection @@ -76,16 +67,12 @@ public static Builder builder() { public static Builder builder(VpcPeeringConnectionAccepter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allowClassicLinkToRemoteVpc; private @Nullable Boolean allowRemoteVpcDnsResolution; private @Nullable Boolean allowVpcToRemoteClassicLink; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VpcPeeringConnectionAccepter defaults) { Objects.requireNonNull(defaults); this.allowClassicLinkToRemoteVpc = defaults.allowClassicLinkToRemoteVpc; @@ -93,19 +80,27 @@ public Builder(VpcPeeringConnectionAccepter defaults) { this.allowVpcToRemoteClassicLink = defaults.allowVpcToRemoteClassicLink; } + @CustomType.Setter public Builder allowClassicLinkToRemoteVpc(@Nullable Boolean allowClassicLinkToRemoteVpc) { this.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; return this; } + @CustomType.Setter public Builder allowRemoteVpcDnsResolution(@Nullable Boolean allowRemoteVpcDnsResolution) { this.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; return this; } + @CustomType.Setter public Builder allowVpcToRemoteClassicLink(@Nullable Boolean allowVpcToRemoteClassicLink) { this.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; return this; - } public VpcPeeringConnectionAccepter build() { - return new VpcPeeringConnectionAccepter(allowClassicLinkToRemoteVpc, allowRemoteVpcDnsResolution, allowVpcToRemoteClassicLink); + } + public VpcPeeringConnectionAccepter build() { + final var o = new VpcPeeringConnectionAccepter(); + o.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; + o.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; + o.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionAccepterAccepter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionAccepterAccepter.java index dda6feb708f..4210748d8ed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionAccepterAccepter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionAccepterAccepter.java @@ -16,30 +16,21 @@ public final class VpcPeeringConnectionAccepterAccepter { * with the peer VPC over the VPC Peering Connection. * */ - private final @Nullable Boolean allowClassicLinkToRemoteVpc; + private @Nullable Boolean allowClassicLinkToRemoteVpc; /** * @return Indicates whether a local VPC can resolve public DNS hostnames to * private IP addresses when queried from instances in a peer VPC. * */ - private final @Nullable Boolean allowRemoteVpcDnsResolution; + private @Nullable Boolean allowRemoteVpcDnsResolution; /** * @return Indicates whether a local VPC can communicate with a ClassicLink * connection in the peer VPC over the VPC Peering Connection. * */ - private final @Nullable Boolean allowVpcToRemoteClassicLink; - - @CustomType.Constructor - private VpcPeeringConnectionAccepterAccepter( - @CustomType.Parameter("allowClassicLinkToRemoteVpc") @Nullable Boolean allowClassicLinkToRemoteVpc, - @CustomType.Parameter("allowRemoteVpcDnsResolution") @Nullable Boolean allowRemoteVpcDnsResolution, - @CustomType.Parameter("allowVpcToRemoteClassicLink") @Nullable Boolean allowVpcToRemoteClassicLink) { - this.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; - this.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; - this.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; - } + private @Nullable Boolean allowVpcToRemoteClassicLink; + private VpcPeeringConnectionAccepterAccepter() {} /** * @return Indicates whether a local ClassicLink connection can communicate * with the peer VPC over the VPC Peering Connection. @@ -72,16 +63,12 @@ public static Builder builder() { public static Builder builder(VpcPeeringConnectionAccepterAccepter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allowClassicLinkToRemoteVpc; private @Nullable Boolean allowRemoteVpcDnsResolution; private @Nullable Boolean allowVpcToRemoteClassicLink; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VpcPeeringConnectionAccepterAccepter defaults) { Objects.requireNonNull(defaults); this.allowClassicLinkToRemoteVpc = defaults.allowClassicLinkToRemoteVpc; @@ -89,19 +76,27 @@ public Builder(VpcPeeringConnectionAccepterAccepter defaults) { this.allowVpcToRemoteClassicLink = defaults.allowVpcToRemoteClassicLink; } + @CustomType.Setter public Builder allowClassicLinkToRemoteVpc(@Nullable Boolean allowClassicLinkToRemoteVpc) { this.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; return this; } + @CustomType.Setter public Builder allowRemoteVpcDnsResolution(@Nullable Boolean allowRemoteVpcDnsResolution) { this.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; return this; } + @CustomType.Setter public Builder allowVpcToRemoteClassicLink(@Nullable Boolean allowVpcToRemoteClassicLink) { this.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; return this; - } public VpcPeeringConnectionAccepterAccepter build() { - return new VpcPeeringConnectionAccepterAccepter(allowClassicLinkToRemoteVpc, allowRemoteVpcDnsResolution, allowVpcToRemoteClassicLink); + } + public VpcPeeringConnectionAccepterAccepter build() { + final var o = new VpcPeeringConnectionAccepterAccepter(); + o.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; + o.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; + o.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionAccepterRequester.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionAccepterRequester.java index 130feee2f3e..c00ea4af19b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionAccepterRequester.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionAccepterRequester.java @@ -16,30 +16,21 @@ public final class VpcPeeringConnectionAccepterRequester { * with the peer VPC over the VPC Peering Connection. * */ - private final @Nullable Boolean allowClassicLinkToRemoteVpc; + private @Nullable Boolean allowClassicLinkToRemoteVpc; /** * @return Indicates whether a local VPC can resolve public DNS hostnames to * private IP addresses when queried from instances in a peer VPC. * */ - private final @Nullable Boolean allowRemoteVpcDnsResolution; + private @Nullable Boolean allowRemoteVpcDnsResolution; /** * @return Indicates whether a local VPC can communicate with a ClassicLink * connection in the peer VPC over the VPC Peering Connection. * */ - private final @Nullable Boolean allowVpcToRemoteClassicLink; - - @CustomType.Constructor - private VpcPeeringConnectionAccepterRequester( - @CustomType.Parameter("allowClassicLinkToRemoteVpc") @Nullable Boolean allowClassicLinkToRemoteVpc, - @CustomType.Parameter("allowRemoteVpcDnsResolution") @Nullable Boolean allowRemoteVpcDnsResolution, - @CustomType.Parameter("allowVpcToRemoteClassicLink") @Nullable Boolean allowVpcToRemoteClassicLink) { - this.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; - this.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; - this.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; - } + private @Nullable Boolean allowVpcToRemoteClassicLink; + private VpcPeeringConnectionAccepterRequester() {} /** * @return Indicates whether a local ClassicLink connection can communicate * with the peer VPC over the VPC Peering Connection. @@ -72,16 +63,12 @@ public static Builder builder() { public static Builder builder(VpcPeeringConnectionAccepterRequester defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allowClassicLinkToRemoteVpc; private @Nullable Boolean allowRemoteVpcDnsResolution; private @Nullable Boolean allowVpcToRemoteClassicLink; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VpcPeeringConnectionAccepterRequester defaults) { Objects.requireNonNull(defaults); this.allowClassicLinkToRemoteVpc = defaults.allowClassicLinkToRemoteVpc; @@ -89,19 +76,27 @@ public Builder(VpcPeeringConnectionAccepterRequester defaults) { this.allowVpcToRemoteClassicLink = defaults.allowVpcToRemoteClassicLink; } + @CustomType.Setter public Builder allowClassicLinkToRemoteVpc(@Nullable Boolean allowClassicLinkToRemoteVpc) { this.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; return this; } + @CustomType.Setter public Builder allowRemoteVpcDnsResolution(@Nullable Boolean allowRemoteVpcDnsResolution) { this.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; return this; } + @CustomType.Setter public Builder allowVpcToRemoteClassicLink(@Nullable Boolean allowVpcToRemoteClassicLink) { this.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; return this; - } public VpcPeeringConnectionAccepterRequester build() { - return new VpcPeeringConnectionAccepterRequester(allowClassicLinkToRemoteVpc, allowRemoteVpcDnsResolution, allowVpcToRemoteClassicLink); + } + public VpcPeeringConnectionAccepterRequester build() { + final var o = new VpcPeeringConnectionAccepterRequester(); + o.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; + o.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; + o.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionRequester.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionRequester.java index 4920dda06bb..dbe8f5f4dda 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionRequester.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpcPeeringConnectionRequester.java @@ -17,31 +17,22 @@ public final class VpcPeeringConnectionRequester { * to the remote VPC. * */ - private final @Nullable Boolean allowClassicLinkToRemoteVpc; + private @Nullable Boolean allowClassicLinkToRemoteVpc; /** * @return Allow a local VPC to resolve public DNS hostnames to * private IP addresses when queried from instances in the peer VPC. * */ - private final @Nullable Boolean allowRemoteVpcDnsResolution; + private @Nullable Boolean allowRemoteVpcDnsResolution; /** * @return Allow a local VPC to communicate with a linked EC2-Classic * instance in a peer VPC. This enables an outbound communication from the local VPC to the remote ClassicLink * connection. * */ - private final @Nullable Boolean allowVpcToRemoteClassicLink; - - @CustomType.Constructor - private VpcPeeringConnectionRequester( - @CustomType.Parameter("allowClassicLinkToRemoteVpc") @Nullable Boolean allowClassicLinkToRemoteVpc, - @CustomType.Parameter("allowRemoteVpcDnsResolution") @Nullable Boolean allowRemoteVpcDnsResolution, - @CustomType.Parameter("allowVpcToRemoteClassicLink") @Nullable Boolean allowVpcToRemoteClassicLink) { - this.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; - this.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; - this.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; - } + private @Nullable Boolean allowVpcToRemoteClassicLink; + private VpcPeeringConnectionRequester() {} /** * @return Allow a local linked EC2-Classic instance to communicate * with instances in a peer VPC. This enables an outbound communication from the local ClassicLink connection @@ -76,16 +67,12 @@ public static Builder builder() { public static Builder builder(VpcPeeringConnectionRequester defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allowClassicLinkToRemoteVpc; private @Nullable Boolean allowRemoteVpcDnsResolution; private @Nullable Boolean allowVpcToRemoteClassicLink; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VpcPeeringConnectionRequester defaults) { Objects.requireNonNull(defaults); this.allowClassicLinkToRemoteVpc = defaults.allowClassicLinkToRemoteVpc; @@ -93,19 +80,27 @@ public Builder(VpcPeeringConnectionRequester defaults) { this.allowVpcToRemoteClassicLink = defaults.allowVpcToRemoteClassicLink; } + @CustomType.Setter public Builder allowClassicLinkToRemoteVpc(@Nullable Boolean allowClassicLinkToRemoteVpc) { this.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; return this; } + @CustomType.Setter public Builder allowRemoteVpcDnsResolution(@Nullable Boolean allowRemoteVpcDnsResolution) { this.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; return this; } + @CustomType.Setter public Builder allowVpcToRemoteClassicLink(@Nullable Boolean allowVpcToRemoteClassicLink) { this.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; return this; - } public VpcPeeringConnectionRequester build() { - return new VpcPeeringConnectionRequester(allowClassicLinkToRemoteVpc, allowRemoteVpcDnsResolution, allowVpcToRemoteClassicLink); + } + public VpcPeeringConnectionRequester build() { + final var o = new VpcPeeringConnectionRequester(); + o.allowClassicLinkToRemoteVpc = allowClassicLinkToRemoteVpc; + o.allowRemoteVpcDnsResolution = allowRemoteVpcDnsResolution; + o.allowVpcToRemoteClassicLink = allowVpcToRemoteClassicLink; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpnConnectionRoute.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpnConnectionRoute.java index ec94d48e551..e9c60fa4d1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpnConnectionRoute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpnConnectionRoute.java @@ -15,28 +15,19 @@ public final class VpnConnectionRoute { * @return The CIDR block associated with the local subnet of the customer data center. * */ - private final @Nullable String destinationCidrBlock; + private @Nullable String destinationCidrBlock; /** * @return Indicates how the routes were provided. * */ - private final @Nullable String source; + private @Nullable String source; /** * @return The current state of the static route. * */ - private final @Nullable String state; - - @CustomType.Constructor - private VpnConnectionRoute( - @CustomType.Parameter("destinationCidrBlock") @Nullable String destinationCidrBlock, - @CustomType.Parameter("source") @Nullable String source, - @CustomType.Parameter("state") @Nullable String state) { - this.destinationCidrBlock = destinationCidrBlock; - this.source = source; - this.state = state; - } + private @Nullable String state; + private VpnConnectionRoute() {} /** * @return The CIDR block associated with the local subnet of the customer data center. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(VpnConnectionRoute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String destinationCidrBlock; private @Nullable String source; private @Nullable String state; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VpnConnectionRoute defaults) { Objects.requireNonNull(defaults); this.destinationCidrBlock = defaults.destinationCidrBlock; @@ -83,19 +70,27 @@ public Builder(VpnConnectionRoute defaults) { this.state = defaults.state; } + @CustomType.Setter public Builder destinationCidrBlock(@Nullable String destinationCidrBlock) { this.destinationCidrBlock = destinationCidrBlock; return this; } + @CustomType.Setter public Builder source(@Nullable String source) { this.source = source; return this; } + @CustomType.Setter public Builder state(@Nullable String state) { this.state = state; return this; - } public VpnConnectionRoute build() { - return new VpnConnectionRoute(destinationCidrBlock, source, state); + } + public VpnConnectionRoute build() { + final var o = new VpnConnectionRoute(); + o.destinationCidrBlock = destinationCidrBlock; + o.source = source; + o.state = state; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpnConnectionVgwTelemetry.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpnConnectionVgwTelemetry.java index e74d8191dc0..98d5e93c6ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpnConnectionVgwTelemetry.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/outputs/VpnConnectionVgwTelemetry.java @@ -16,49 +16,34 @@ public final class VpnConnectionVgwTelemetry { * @return The number of accepted routes. * */ - private final @Nullable Integer acceptedRouteCount; + private @Nullable Integer acceptedRouteCount; /** * @return The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate. * */ - private final @Nullable String certificateArn; + private @Nullable String certificateArn; /** * @return The date and time of the last change in status. * */ - private final @Nullable String lastStatusChange; + private @Nullable String lastStatusChange; /** * @return The Internet-routable IP address of the virtual private gateway's outside interface. * */ - private final @Nullable String outsideIpAddress; + private @Nullable String outsideIpAddress; /** * @return The status of the VPN tunnel. * */ - private final @Nullable String status; + private @Nullable String status; /** * @return If an error occurs, a description of the error. * */ - private final @Nullable String statusMessage; - - @CustomType.Constructor - private VpnConnectionVgwTelemetry( - @CustomType.Parameter("acceptedRouteCount") @Nullable Integer acceptedRouteCount, - @CustomType.Parameter("certificateArn") @Nullable String certificateArn, - @CustomType.Parameter("lastStatusChange") @Nullable String lastStatusChange, - @CustomType.Parameter("outsideIpAddress") @Nullable String outsideIpAddress, - @CustomType.Parameter("status") @Nullable String status, - @CustomType.Parameter("statusMessage") @Nullable String statusMessage) { - this.acceptedRouteCount = acceptedRouteCount; - this.certificateArn = certificateArn; - this.lastStatusChange = lastStatusChange; - this.outsideIpAddress = outsideIpAddress; - this.status = status; - this.statusMessage = statusMessage; - } + private @Nullable String statusMessage; + private VpnConnectionVgwTelemetry() {} /** * @return The number of accepted routes. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(VpnConnectionVgwTelemetry defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer acceptedRouteCount; private @Nullable String certificateArn; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable String outsideIpAddress; private @Nullable String status; private @Nullable String statusMessage; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VpnConnectionVgwTelemetry defaults) { Objects.requireNonNull(defaults); this.acceptedRouteCount = defaults.acceptedRouteCount; @@ -132,31 +113,45 @@ public Builder(VpnConnectionVgwTelemetry defaults) { this.statusMessage = defaults.statusMessage; } + @CustomType.Setter public Builder acceptedRouteCount(@Nullable Integer acceptedRouteCount) { this.acceptedRouteCount = acceptedRouteCount; return this; } + @CustomType.Setter public Builder certificateArn(@Nullable String certificateArn) { this.certificateArn = certificateArn; return this; } + @CustomType.Setter public Builder lastStatusChange(@Nullable String lastStatusChange) { this.lastStatusChange = lastStatusChange; return this; } + @CustomType.Setter public Builder outsideIpAddress(@Nullable String outsideIpAddress) { this.outsideIpAddress = outsideIpAddress; return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; } + @CustomType.Setter public Builder statusMessage(@Nullable String statusMessage) { this.statusMessage = statusMessage; return this; - } public VpnConnectionVgwTelemetry build() { - return new VpnConnectionVgwTelemetry(acceptedRouteCount, certificateArn, lastStatusChange, outsideIpAddress, status, statusMessage); + } + public VpnConnectionVgwTelemetry build() { + final var o = new VpnConnectionVgwTelemetry(); + o.acceptedRouteCount = acceptedRouteCount; + o.certificateArn = certificateArn; + o.lastStatusChange = lastStatusChange; + o.outsideIpAddress = outsideIpAddress; + o.status = status; + o.statusMessage = statusMessage; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointAuthenticationOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointAuthenticationOption.java index ed03a26f1a7..d90ad8ee4f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointAuthenticationOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointAuthenticationOption.java @@ -15,42 +15,29 @@ public final class EndpointAuthenticationOption { * @return The ID of the Active Directory to be used for authentication if type is `directory-service-authentication`. * */ - private final @Nullable String activeDirectoryId; + private @Nullable String activeDirectoryId; /** * @return The ARN of the client certificate. The certificate must be signed by a certificate authority (CA) and it must be provisioned in AWS Certificate Manager (ACM). Only necessary when type is set to `certificate-authentication`. * */ - private final @Nullable String rootCertificateChainArn; + private @Nullable String rootCertificateChainArn; /** * @return The ARN of the IAM SAML identity provider if type is `federated-authentication`. * */ - private final @Nullable String samlProviderArn; + private @Nullable String samlProviderArn; /** * @return The ARN of the IAM SAML identity provider for the self service portal if type is `federated-authentication`. * */ - private final @Nullable String selfServiceSamlProviderArn; + private @Nullable String selfServiceSamlProviderArn; /** * @return The type of client authentication to be used. Specify `certificate-authentication` to use certificate-based authentication, `directory-service-authentication` to use Active Directory authentication, or `federated-authentication` to use Federated Authentication via SAML 2.0. * */ - private final String type; - - @CustomType.Constructor - private EndpointAuthenticationOption( - @CustomType.Parameter("activeDirectoryId") @Nullable String activeDirectoryId, - @CustomType.Parameter("rootCertificateChainArn") @Nullable String rootCertificateChainArn, - @CustomType.Parameter("samlProviderArn") @Nullable String samlProviderArn, - @CustomType.Parameter("selfServiceSamlProviderArn") @Nullable String selfServiceSamlProviderArn, - @CustomType.Parameter("type") String type) { - this.activeDirectoryId = activeDirectoryId; - this.rootCertificateChainArn = rootCertificateChainArn; - this.samlProviderArn = samlProviderArn; - this.selfServiceSamlProviderArn = selfServiceSamlProviderArn; - this.type = type; - } + private String type; + private EndpointAuthenticationOption() {} /** * @return The ID of the Active Directory to be used for authentication if type is `directory-service-authentication`. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(EndpointAuthenticationOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String activeDirectoryId; private @Nullable String rootCertificateChainArn; private @Nullable String samlProviderArn; private @Nullable String selfServiceSamlProviderArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointAuthenticationOption defaults) { Objects.requireNonNull(defaults); this.activeDirectoryId = defaults.activeDirectoryId; @@ -115,27 +98,39 @@ public Builder(EndpointAuthenticationOption defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder activeDirectoryId(@Nullable String activeDirectoryId) { this.activeDirectoryId = activeDirectoryId; return this; } + @CustomType.Setter public Builder rootCertificateChainArn(@Nullable String rootCertificateChainArn) { this.rootCertificateChainArn = rootCertificateChainArn; return this; } + @CustomType.Setter public Builder samlProviderArn(@Nullable String samlProviderArn) { this.samlProviderArn = samlProviderArn; return this; } + @CustomType.Setter public Builder selfServiceSamlProviderArn(@Nullable String selfServiceSamlProviderArn) { this.selfServiceSamlProviderArn = selfServiceSamlProviderArn; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public EndpointAuthenticationOption build() { - return new EndpointAuthenticationOption(activeDirectoryId, rootCertificateChainArn, samlProviderArn, selfServiceSamlProviderArn, type); + } + public EndpointAuthenticationOption build() { + final var o = new EndpointAuthenticationOption(); + o.activeDirectoryId = activeDirectoryId; + o.rootCertificateChainArn = rootCertificateChainArn; + o.samlProviderArn = samlProviderArn; + o.selfServiceSamlProviderArn = selfServiceSamlProviderArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointClientConnectOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointClientConnectOptions.java index e0af84ffc27..0a9c7e60b58 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointClientConnectOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointClientConnectOptions.java @@ -16,21 +16,14 @@ public final class EndpointClientConnectOptions { * @return Indicates whether connection logging is enabled. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The Amazon Resource Name (ARN) of the Lambda function used for connection authorization. * */ - private final @Nullable String lambdaFunctionArn; - - @CustomType.Constructor - private EndpointClientConnectOptions( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("lambdaFunctionArn") @Nullable String lambdaFunctionArn) { - this.enabled = enabled; - this.lambdaFunctionArn = lambdaFunctionArn; - } + private @Nullable String lambdaFunctionArn; + private EndpointClientConnectOptions() {} /** * @return Indicates whether connection logging is enabled. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(EndpointClientConnectOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable String lambdaFunctionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointClientConnectOptions defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.lambdaFunctionArn = defaults.lambdaFunctionArn; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder lambdaFunctionArn(@Nullable String lambdaFunctionArn) { this.lambdaFunctionArn = lambdaFunctionArn; return this; - } public EndpointClientConnectOptions build() { - return new EndpointClientConnectOptions(enabled, lambdaFunctionArn); + } + public EndpointClientConnectOptions build() { + final var o = new EndpointClientConnectOptions(); + o.enabled = enabled; + o.lambdaFunctionArn = lambdaFunctionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointClientLoginBannerOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointClientLoginBannerOptions.java index c30fc842c51..482a35ce39f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointClientLoginBannerOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointClientLoginBannerOptions.java @@ -16,21 +16,14 @@ public final class EndpointClientLoginBannerOptions { * @return Customizable text that will be displayed in a banner on AWS provided clients when a VPN session is established. UTF-8 encoded characters only. Maximum of 1400 characters. * */ - private final @Nullable String bannerText; + private @Nullable String bannerText; /** * @return Indicates whether connection logging is enabled. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private EndpointClientLoginBannerOptions( - @CustomType.Parameter("bannerText") @Nullable String bannerText, - @CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.bannerText = bannerText; - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private EndpointClientLoginBannerOptions() {} /** * @return Customizable text that will be displayed in a banner on AWS provided clients when a VPN session is established. UTF-8 encoded characters only. Maximum of 1400 characters. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(EndpointClientLoginBannerOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bannerText; private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointClientLoginBannerOptions defaults) { Objects.requireNonNull(defaults); this.bannerText = defaults.bannerText; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder bannerText(@Nullable String bannerText) { this.bannerText = bannerText; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public EndpointClientLoginBannerOptions build() { - return new EndpointClientLoginBannerOptions(bannerText, enabled); + } + public EndpointClientLoginBannerOptions build() { + final var o = new EndpointClientLoginBannerOptions(); + o.bannerText = bannerText; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointConnectionLogOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointConnectionLogOptions.java index cf8b276cea2..0df304f0df9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointConnectionLogOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/EndpointConnectionLogOptions.java @@ -16,28 +16,19 @@ public final class EndpointConnectionLogOptions { * @return The name of the CloudWatch Logs log group. * */ - private final @Nullable String cloudwatchLogGroup; + private @Nullable String cloudwatchLogGroup; /** * @return The name of the CloudWatch Logs log stream to which the connection data is published. * */ - private final @Nullable String cloudwatchLogStream; + private @Nullable String cloudwatchLogStream; /** * @return Indicates whether connection logging is enabled. * */ - private final Boolean enabled; - - @CustomType.Constructor - private EndpointConnectionLogOptions( - @CustomType.Parameter("cloudwatchLogGroup") @Nullable String cloudwatchLogGroup, - @CustomType.Parameter("cloudwatchLogStream") @Nullable String cloudwatchLogStream, - @CustomType.Parameter("enabled") Boolean enabled) { - this.cloudwatchLogGroup = cloudwatchLogGroup; - this.cloudwatchLogStream = cloudwatchLogStream; - this.enabled = enabled; - } + private Boolean enabled; + private EndpointConnectionLogOptions() {} /** * @return The name of the CloudWatch Logs log group. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(EndpointConnectionLogOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cloudwatchLogGroup; private @Nullable String cloudwatchLogStream; private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointConnectionLogOptions defaults) { Objects.requireNonNull(defaults); this.cloudwatchLogGroup = defaults.cloudwatchLogGroup; @@ -84,19 +71,27 @@ public Builder(EndpointConnectionLogOptions defaults) { this.enabled = defaults.enabled; } + @CustomType.Setter public Builder cloudwatchLogGroup(@Nullable String cloudwatchLogGroup) { this.cloudwatchLogGroup = cloudwatchLogGroup; return this; } + @CustomType.Setter public Builder cloudwatchLogStream(@Nullable String cloudwatchLogStream) { this.cloudwatchLogStream = cloudwatchLogStream; return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public EndpointConnectionLogOptions build() { - return new EndpointConnectionLogOptions(cloudwatchLogGroup, cloudwatchLogStream, enabled); + } + public EndpointConnectionLogOptions build() { + final var o = new EndpointConnectionLogOptions(); + o.cloudwatchLogGroup = cloudwatchLogGroup; + o.cloudwatchLogStream = cloudwatchLogStream; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointAuthenticationOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointAuthenticationOption.java index 47bbd78bed9..604e6722abf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointAuthenticationOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointAuthenticationOption.java @@ -9,26 +9,13 @@ @CustomType public final class GetEndpointAuthenticationOption { - private final String activeDirectoryId; - private final String rootCertificateChainArn; - private final String samlProviderArn; - private final String selfServiceSamlProviderArn; - private final String type; - - @CustomType.Constructor - private GetEndpointAuthenticationOption( - @CustomType.Parameter("activeDirectoryId") String activeDirectoryId, - @CustomType.Parameter("rootCertificateChainArn") String rootCertificateChainArn, - @CustomType.Parameter("samlProviderArn") String samlProviderArn, - @CustomType.Parameter("selfServiceSamlProviderArn") String selfServiceSamlProviderArn, - @CustomType.Parameter("type") String type) { - this.activeDirectoryId = activeDirectoryId; - this.rootCertificateChainArn = rootCertificateChainArn; - this.samlProviderArn = samlProviderArn; - this.selfServiceSamlProviderArn = selfServiceSamlProviderArn; - this.type = type; - } + private String activeDirectoryId; + private String rootCertificateChainArn; + private String samlProviderArn; + private String selfServiceSamlProviderArn; + private String type; + private GetEndpointAuthenticationOption() {} public String activeDirectoryId() { return this.activeDirectoryId; } @@ -52,18 +39,14 @@ public static Builder builder() { public static Builder builder(GetEndpointAuthenticationOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String activeDirectoryId; private String rootCertificateChainArn; private String samlProviderArn; private String selfServiceSamlProviderArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEndpointAuthenticationOption defaults) { Objects.requireNonNull(defaults); this.activeDirectoryId = defaults.activeDirectoryId; @@ -73,27 +56,39 @@ public Builder(GetEndpointAuthenticationOption defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder activeDirectoryId(String activeDirectoryId) { this.activeDirectoryId = Objects.requireNonNull(activeDirectoryId); return this; } + @CustomType.Setter public Builder rootCertificateChainArn(String rootCertificateChainArn) { this.rootCertificateChainArn = Objects.requireNonNull(rootCertificateChainArn); return this; } + @CustomType.Setter public Builder samlProviderArn(String samlProviderArn) { this.samlProviderArn = Objects.requireNonNull(samlProviderArn); return this; } + @CustomType.Setter public Builder selfServiceSamlProviderArn(String selfServiceSamlProviderArn) { this.selfServiceSamlProviderArn = Objects.requireNonNull(selfServiceSamlProviderArn); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetEndpointAuthenticationOption build() { - return new GetEndpointAuthenticationOption(activeDirectoryId, rootCertificateChainArn, samlProviderArn, selfServiceSamlProviderArn, type); + } + public GetEndpointAuthenticationOption build() { + final var o = new GetEndpointAuthenticationOption(); + o.activeDirectoryId = activeDirectoryId; + o.rootCertificateChainArn = rootCertificateChainArn; + o.samlProviderArn = samlProviderArn; + o.selfServiceSamlProviderArn = selfServiceSamlProviderArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointClientConnectOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointClientConnectOption.java index 66e7b6456c6..3d1cf8bcca6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointClientConnectOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointClientConnectOption.java @@ -10,17 +10,10 @@ @CustomType public final class GetEndpointClientConnectOption { - private final Boolean enabled; - private final String lambdaFunctionArn; - - @CustomType.Constructor - private GetEndpointClientConnectOption( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("lambdaFunctionArn") String lambdaFunctionArn) { - this.enabled = enabled; - this.lambdaFunctionArn = lambdaFunctionArn; - } + private Boolean enabled; + private String lambdaFunctionArn; + private GetEndpointClientConnectOption() {} public Boolean enabled() { return this.enabled; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetEndpointClientConnectOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private String lambdaFunctionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEndpointClientConnectOption defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.lambdaFunctionArn = defaults.lambdaFunctionArn; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder lambdaFunctionArn(String lambdaFunctionArn) { this.lambdaFunctionArn = Objects.requireNonNull(lambdaFunctionArn); return this; - } public GetEndpointClientConnectOption build() { - return new GetEndpointClientConnectOption(enabled, lambdaFunctionArn); + } + public GetEndpointClientConnectOption build() { + final var o = new GetEndpointClientConnectOption(); + o.enabled = enabled; + o.lambdaFunctionArn = lambdaFunctionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointClientLoginBannerOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointClientLoginBannerOption.java index 0147b67d912..bc492f02ea0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointClientLoginBannerOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointClientLoginBannerOption.java @@ -10,17 +10,10 @@ @CustomType public final class GetEndpointClientLoginBannerOption { - private final String bannerText; - private final Boolean enabled; - - @CustomType.Constructor - private GetEndpointClientLoginBannerOption( - @CustomType.Parameter("bannerText") String bannerText, - @CustomType.Parameter("enabled") Boolean enabled) { - this.bannerText = bannerText; - this.enabled = enabled; - } + private String bannerText; + private Boolean enabled; + private GetEndpointClientLoginBannerOption() {} public String bannerText() { return this.bannerText; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetEndpointClientLoginBannerOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bannerText; private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEndpointClientLoginBannerOption defaults) { Objects.requireNonNull(defaults); this.bannerText = defaults.bannerText; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder bannerText(String bannerText) { this.bannerText = Objects.requireNonNull(bannerText); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public GetEndpointClientLoginBannerOption build() { - return new GetEndpointClientLoginBannerOption(bannerText, enabled); + } + public GetEndpointClientLoginBannerOption build() { + final var o = new GetEndpointClientLoginBannerOption(); + o.bannerText = bannerText; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointConnectionLogOption.java b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointConnectionLogOption.java index d28bb08180a..b4db67679e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointConnectionLogOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointConnectionLogOption.java @@ -10,20 +10,11 @@ @CustomType public final class GetEndpointConnectionLogOption { - private final String cloudwatchLogGroup; - private final String cloudwatchLogStream; - private final Boolean enabled; - - @CustomType.Constructor - private GetEndpointConnectionLogOption( - @CustomType.Parameter("cloudwatchLogGroup") String cloudwatchLogGroup, - @CustomType.Parameter("cloudwatchLogStream") String cloudwatchLogStream, - @CustomType.Parameter("enabled") Boolean enabled) { - this.cloudwatchLogGroup = cloudwatchLogGroup; - this.cloudwatchLogStream = cloudwatchLogStream; - this.enabled = enabled; - } + private String cloudwatchLogGroup; + private String cloudwatchLogStream; + private Boolean enabled; + private GetEndpointConnectionLogOption() {} public String cloudwatchLogGroup() { return this.cloudwatchLogGroup; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(GetEndpointConnectionLogOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cloudwatchLogGroup; private String cloudwatchLogStream; private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEndpointConnectionLogOption defaults) { Objects.requireNonNull(defaults); this.cloudwatchLogGroup = defaults.cloudwatchLogGroup; @@ -58,19 +45,27 @@ public Builder(GetEndpointConnectionLogOption defaults) { this.enabled = defaults.enabled; } + @CustomType.Setter public Builder cloudwatchLogGroup(String cloudwatchLogGroup) { this.cloudwatchLogGroup = Objects.requireNonNull(cloudwatchLogGroup); return this; } + @CustomType.Setter public Builder cloudwatchLogStream(String cloudwatchLogStream) { this.cloudwatchLogStream = Objects.requireNonNull(cloudwatchLogStream); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public GetEndpointConnectionLogOption build() { - return new GetEndpointConnectionLogOption(cloudwatchLogGroup, cloudwatchLogStream, enabled); + } + public GetEndpointConnectionLogOption build() { + final var o = new GetEndpointConnectionLogOption(); + o.cloudwatchLogGroup = cloudwatchLogGroup; + o.cloudwatchLogStream = cloudwatchLogStream; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointFilter.java index cc5c6fcbdd3..4f3af4a028d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointFilter.java @@ -14,21 +14,14 @@ public final class GetEndpointFilter { * @return The name of the field to filter by, as defined by [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeClientVpnEndpoints.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. An endpoint will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetEndpointFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetEndpointFilter() {} /** * @return The name of the field to filter by, as defined by [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeClientVpnEndpoints.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetEndpointFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEndpointFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetEndpointFilter build() { - return new GetEndpointFilter(name, values); + } + public GetEndpointFilter build() { + final var o = new GetEndpointFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointResult.java index 3444a2b6415..f8a2457cd70 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2clientvpn/outputs/GetEndpointResult.java @@ -23,142 +23,97 @@ public final class GetEndpointResult { * @return The ARN of the Client VPN endpoint. * */ - private final String arn; + private String arn; /** * @return Information about the authentication method used by the Client VPN endpoint. * */ - private final List authenticationOptions; + private List authenticationOptions; /** * @return The IPv4 address range, in CIDR notation, from which client IP addresses are assigned. * */ - private final String clientCidrBlock; + private String clientCidrBlock; /** * @return The options for managing connection authorization for new client connections. * */ - private final List clientConnectOptions; + private List clientConnectOptions; /** * @return Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established. * */ - private final List clientLoginBannerOptions; - private final String clientVpnEndpointId; + private List clientLoginBannerOptions; + private String clientVpnEndpointId; /** * @return Information about the client connection logging options for the Client VPN endpoint. * */ - private final List connectionLogOptions; + private List connectionLogOptions; /** * @return A brief description of the endpoint. * */ - private final String description; + private String description; /** * @return The DNS name to be used by clients when connecting to the Client VPN endpoint. * */ - private final String dnsName; + private String dnsName; /** * @return Information about the DNS servers to be used for DNS resolution. * */ - private final List dnsServers; - private final @Nullable List filters; + private List dnsServers; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The IDs of the security groups for the target network associated with the Client VPN endpoint. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return Indicates whether the self-service portal for the Client VPN endpoint is enabled. * */ - private final String selfServicePortal; + private String selfServicePortal; /** * @return The ARN of the server certificate. * */ - private final String serverCertificateArn; + private String serverCertificateArn; /** * @return The maximum VPN session duration time in hours. * */ - private final Integer sessionTimeoutHours; + private Integer sessionTimeoutHours; /** * @return Indicates whether split-tunnel is enabled in the AWS Client VPN endpoint. * */ - private final Boolean splitTunnel; - private final Map tags; + private Boolean splitTunnel; + private Map tags; /** * @return The transport protocol used by the Client VPN endpoint. * */ - private final String transportProtocol; + private String transportProtocol; /** * @return The ID of the VPC associated with the Client VPN endpoint. * */ - private final String vpcId; + private String vpcId; /** * @return The port number for the Client VPN endpoint. * */ - private final Integer vpnPort; - - @CustomType.Constructor - private GetEndpointResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("authenticationOptions") List authenticationOptions, - @CustomType.Parameter("clientCidrBlock") String clientCidrBlock, - @CustomType.Parameter("clientConnectOptions") List clientConnectOptions, - @CustomType.Parameter("clientLoginBannerOptions") List clientLoginBannerOptions, - @CustomType.Parameter("clientVpnEndpointId") String clientVpnEndpointId, - @CustomType.Parameter("connectionLogOptions") List connectionLogOptions, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("dnsName") String dnsName, - @CustomType.Parameter("dnsServers") List dnsServers, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("selfServicePortal") String selfServicePortal, - @CustomType.Parameter("serverCertificateArn") String serverCertificateArn, - @CustomType.Parameter("sessionTimeoutHours") Integer sessionTimeoutHours, - @CustomType.Parameter("splitTunnel") Boolean splitTunnel, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("transportProtocol") String transportProtocol, - @CustomType.Parameter("vpcId") String vpcId, - @CustomType.Parameter("vpnPort") Integer vpnPort) { - this.arn = arn; - this.authenticationOptions = authenticationOptions; - this.clientCidrBlock = clientCidrBlock; - this.clientConnectOptions = clientConnectOptions; - this.clientLoginBannerOptions = clientLoginBannerOptions; - this.clientVpnEndpointId = clientVpnEndpointId; - this.connectionLogOptions = connectionLogOptions; - this.description = description; - this.dnsName = dnsName; - this.dnsServers = dnsServers; - this.filters = filters; - this.id = id; - this.securityGroupIds = securityGroupIds; - this.selfServicePortal = selfServicePortal; - this.serverCertificateArn = serverCertificateArn; - this.sessionTimeoutHours = sessionTimeoutHours; - this.splitTunnel = splitTunnel; - this.tags = tags; - this.transportProtocol = transportProtocol; - this.vpcId = vpcId; - this.vpnPort = vpnPort; - } + private Integer vpnPort; + private GetEndpointResult() {} /** * @return The ARN of the Client VPN endpoint. * @@ -302,7 +257,7 @@ public static Builder builder() { public static Builder builder(GetEndpointResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List authenticationOptions; @@ -325,11 +280,7 @@ public static final class Builder { private String transportProtocol; private String vpcId; private Integer vpnPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEndpointResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -355,10 +306,12 @@ public Builder(GetEndpointResult defaults) { this.vpnPort = defaults.vpnPort; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder authenticationOptions(List authenticationOptions) { this.authenticationOptions = Objects.requireNonNull(authenticationOptions); return this; @@ -366,10 +319,12 @@ public Builder authenticationOptions(List authe public Builder authenticationOptions(GetEndpointAuthenticationOption... authenticationOptions) { return authenticationOptions(List.of(authenticationOptions)); } + @CustomType.Setter public Builder clientCidrBlock(String clientCidrBlock) { this.clientCidrBlock = Objects.requireNonNull(clientCidrBlock); return this; } + @CustomType.Setter public Builder clientConnectOptions(List clientConnectOptions) { this.clientConnectOptions = Objects.requireNonNull(clientConnectOptions); return this; @@ -377,6 +332,7 @@ public Builder clientConnectOptions(List clientC public Builder clientConnectOptions(GetEndpointClientConnectOption... clientConnectOptions) { return clientConnectOptions(List.of(clientConnectOptions)); } + @CustomType.Setter public Builder clientLoginBannerOptions(List clientLoginBannerOptions) { this.clientLoginBannerOptions = Objects.requireNonNull(clientLoginBannerOptions); return this; @@ -384,10 +340,12 @@ public Builder clientLoginBannerOptions(List public Builder clientLoginBannerOptions(GetEndpointClientLoginBannerOption... clientLoginBannerOptions) { return clientLoginBannerOptions(List.of(clientLoginBannerOptions)); } + @CustomType.Setter public Builder clientVpnEndpointId(String clientVpnEndpointId) { this.clientVpnEndpointId = Objects.requireNonNull(clientVpnEndpointId); return this; } + @CustomType.Setter public Builder connectionLogOptions(List connectionLogOptions) { this.connectionLogOptions = Objects.requireNonNull(connectionLogOptions); return this; @@ -395,14 +353,17 @@ public Builder connectionLogOptions(List connect public Builder connectionLogOptions(GetEndpointConnectionLogOption... connectionLogOptions) { return connectionLogOptions(List.of(connectionLogOptions)); } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder dnsName(String dnsName) { this.dnsName = Objects.requireNonNull(dnsName); return this; } + @CustomType.Setter public Builder dnsServers(List dnsServers) { this.dnsServers = Objects.requireNonNull(dnsServers); return this; @@ -410,6 +371,7 @@ public Builder dnsServers(List dnsServers) { public Builder dnsServers(String... dnsServers) { return dnsServers(List.of(dnsServers)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -417,10 +379,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetEndpointFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -428,39 +392,70 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder selfServicePortal(String selfServicePortal) { this.selfServicePortal = Objects.requireNonNull(selfServicePortal); return this; } + @CustomType.Setter public Builder serverCertificateArn(String serverCertificateArn) { this.serverCertificateArn = Objects.requireNonNull(serverCertificateArn); return this; } + @CustomType.Setter public Builder sessionTimeoutHours(Integer sessionTimeoutHours) { this.sessionTimeoutHours = Objects.requireNonNull(sessionTimeoutHours); return this; } + @CustomType.Setter public Builder splitTunnel(Boolean splitTunnel) { this.splitTunnel = Objects.requireNonNull(splitTunnel); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder transportProtocol(String transportProtocol) { this.transportProtocol = Objects.requireNonNull(transportProtocol); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; } + @CustomType.Setter public Builder vpnPort(Integer vpnPort) { this.vpnPort = Objects.requireNonNull(vpnPort); return this; - } public GetEndpointResult build() { - return new GetEndpointResult(arn, authenticationOptions, clientCidrBlock, clientConnectOptions, clientLoginBannerOptions, clientVpnEndpointId, connectionLogOptions, description, dnsName, dnsServers, filters, id, securityGroupIds, selfServicePortal, serverCertificateArn, sessionTimeoutHours, splitTunnel, tags, transportProtocol, vpcId, vpnPort); + } + public GetEndpointResult build() { + final var o = new GetEndpointResult(); + o.arn = arn; + o.authenticationOptions = authenticationOptions; + o.clientCidrBlock = clientCidrBlock; + o.clientConnectOptions = clientConnectOptions; + o.clientLoginBannerOptions = clientLoginBannerOptions; + o.clientVpnEndpointId = clientVpnEndpointId; + o.connectionLogOptions = connectionLogOptions; + o.description = description; + o.dnsName = dnsName; + o.dnsServers = dnsServers; + o.filters = filters; + o.id = id; + o.securityGroupIds = securityGroupIds; + o.selfServicePortal = selfServicePortal; + o.serverCertificateArn = serverCertificateArn; + o.sessionTimeoutHours = sessionTimeoutHours; + o.splitTunnel = splitTunnel; + o.tags = tags; + o.transportProtocol = transportProtocol; + o.vpcId = vpcId; + o.vpnPort = vpnPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectFilter.java index f61046583ca..c4c8b4d300f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectFilter.java @@ -14,21 +14,14 @@ public final class GetConnectFilter { * @return Name of the filter. * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetConnectFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetConnectFilter() {} /** * @return Name of the filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetConnectFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConnectFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetConnectFilter build() { - return new GetConnectFilter(name, values); + } + public GetConnectFilter build() { + final var o = new GetConnectFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectPeerFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectPeerFilter.java index 4ba8503b6d4..8846df0ea59 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectPeerFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectPeerFilter.java @@ -14,21 +14,14 @@ public final class GetConnectPeerFilter { * @return Name of the filter. * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetConnectPeerFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetConnectPeerFilter() {} /** * @return Name of the filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetConnectPeerFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConnectPeerFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetConnectPeerFilter build() { - return new GetConnectPeerFilter(name, values); + } + public GetConnectPeerFilter build() { + final var o = new GetConnectPeerFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectPeerResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectPeerResult.java index 93e31c558ce..bb7b7a2ea80 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectPeerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectPeerResult.java @@ -17,69 +17,46 @@ public final class GetConnectPeerResult { * @return EC2 Transit Gateway Connect Peer ARN * */ - private final String arn; + private String arn; /** * @return The BGP ASN number assigned customer device * */ - private final String bgpAsn; - private final @Nullable List filters; + private String bgpAsn; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The CIDR blocks that will be used for addressing within the tunnel. * */ - private final List insideCidrBlocks; + private List insideCidrBlocks; /** * @return The IP addressed assigned to customer device, which is used as tunnel endpoint * */ - private final String peerAddress; + private String peerAddress; /** * @return Key-value tags for the EC2 Transit Gateway Connect Peer * */ - private final Map tags; + private Map tags; /** * @return The IP address assigned to Transit Gateway, which is used as tunnel endpoint. * */ - private final String transitGatewayAddress; + private String transitGatewayAddress; /** * @return The Transit Gateway Connect * */ - private final String transitGatewayAttachmentId; - private final String transitGatewayConnectPeerId; - - @CustomType.Constructor - private GetConnectPeerResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("bgpAsn") String bgpAsn, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("insideCidrBlocks") List insideCidrBlocks, - @CustomType.Parameter("peerAddress") String peerAddress, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("transitGatewayAddress") String transitGatewayAddress, - @CustomType.Parameter("transitGatewayAttachmentId") String transitGatewayAttachmentId, - @CustomType.Parameter("transitGatewayConnectPeerId") String transitGatewayConnectPeerId) { - this.arn = arn; - this.bgpAsn = bgpAsn; - this.filters = filters; - this.id = id; - this.insideCidrBlocks = insideCidrBlocks; - this.peerAddress = peerAddress; - this.tags = tags; - this.transitGatewayAddress = transitGatewayAddress; - this.transitGatewayAttachmentId = transitGatewayAttachmentId; - this.transitGatewayConnectPeerId = transitGatewayConnectPeerId; - } + private String transitGatewayAttachmentId; + private String transitGatewayConnectPeerId; + private GetConnectPeerResult() {} /** * @return EC2 Transit Gateway Connect Peer ARN * @@ -150,7 +127,7 @@ public static Builder builder() { public static Builder builder(GetConnectPeerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String bgpAsn; @@ -162,11 +139,7 @@ public static final class Builder { private String transitGatewayAddress; private String transitGatewayAttachmentId; private String transitGatewayConnectPeerId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConnectPeerResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -181,14 +154,17 @@ public Builder(GetConnectPeerResult defaults) { this.transitGatewayConnectPeerId = defaults.transitGatewayConnectPeerId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder bgpAsn(String bgpAsn) { this.bgpAsn = Objects.requireNonNull(bgpAsn); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -196,10 +172,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetConnectPeerFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder insideCidrBlocks(List insideCidrBlocks) { this.insideCidrBlocks = Objects.requireNonNull(insideCidrBlocks); return this; @@ -207,27 +185,44 @@ public Builder insideCidrBlocks(List insideCidrBlocks) { public Builder insideCidrBlocks(String... insideCidrBlocks) { return insideCidrBlocks(List.of(insideCidrBlocks)); } + @CustomType.Setter public Builder peerAddress(String peerAddress) { this.peerAddress = Objects.requireNonNull(peerAddress); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder transitGatewayAddress(String transitGatewayAddress) { this.transitGatewayAddress = Objects.requireNonNull(transitGatewayAddress); return this; } + @CustomType.Setter public Builder transitGatewayAttachmentId(String transitGatewayAttachmentId) { this.transitGatewayAttachmentId = Objects.requireNonNull(transitGatewayAttachmentId); return this; } + @CustomType.Setter public Builder transitGatewayConnectPeerId(String transitGatewayConnectPeerId) { this.transitGatewayConnectPeerId = Objects.requireNonNull(transitGatewayConnectPeerId); return this; - } public GetConnectPeerResult build() { - return new GetConnectPeerResult(arn, bgpAsn, filters, id, insideCidrBlocks, peerAddress, tags, transitGatewayAddress, transitGatewayAttachmentId, transitGatewayConnectPeerId); + } + public GetConnectPeerResult build() { + final var o = new GetConnectPeerResult(); + o.arn = arn; + o.bgpAsn = bgpAsn; + o.filters = filters; + o.id = id; + o.insideCidrBlocks = insideCidrBlocks; + o.peerAddress = peerAddress; + o.tags = tags; + o.transitGatewayAddress = transitGatewayAddress; + o.transitGatewayAttachmentId = transitGatewayAttachmentId; + o.transitGatewayConnectPeerId = transitGatewayConnectPeerId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectResult.java index 7b64af7d31b..fad235a10d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetConnectResult.java @@ -13,52 +13,35 @@ @CustomType public final class GetConnectResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The tunnel protocol * */ - private final String protocol; + private String protocol; /** * @return Key-value tags for the EC2 Transit Gateway Connect * */ - private final Map tags; - private final String transitGatewayConnectId; + private Map tags; + private String transitGatewayConnectId; /** * @return EC2 Transit Gateway identifier * */ - private final String transitGatewayId; + private String transitGatewayId; /** * @return The underlaying VPC attachment * */ - private final String transportAttachmentId; - - @CustomType.Constructor - private GetConnectResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("transitGatewayConnectId") String transitGatewayConnectId, - @CustomType.Parameter("transitGatewayId") String transitGatewayId, - @CustomType.Parameter("transportAttachmentId") String transportAttachmentId) { - this.filters = filters; - this.id = id; - this.protocol = protocol; - this.tags = tags; - this.transitGatewayConnectId = transitGatewayConnectId; - this.transitGatewayId = transitGatewayId; - this.transportAttachmentId = transportAttachmentId; - } + private String transportAttachmentId; + private GetConnectResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -108,7 +91,7 @@ public static Builder builder() { public static Builder builder(GetConnectResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; @@ -117,11 +100,7 @@ public static final class Builder { private String transitGatewayConnectId; private String transitGatewayId; private String transportAttachmentId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConnectResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -133,6 +112,7 @@ public Builder(GetConnectResult defaults) { this.transportAttachmentId = defaults.transportAttachmentId; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -140,31 +120,46 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetConnectFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder transitGatewayConnectId(String transitGatewayConnectId) { this.transitGatewayConnectId = Objects.requireNonNull(transitGatewayConnectId); return this; } + @CustomType.Setter public Builder transitGatewayId(String transitGatewayId) { this.transitGatewayId = Objects.requireNonNull(transitGatewayId); return this; } + @CustomType.Setter public Builder transportAttachmentId(String transportAttachmentId) { this.transportAttachmentId = Objects.requireNonNull(transportAttachmentId); return this; - } public GetConnectResult build() { - return new GetConnectResult(filters, id, protocol, tags, transitGatewayConnectId, transitGatewayId, transportAttachmentId); + } + public GetConnectResult build() { + final var o = new GetConnectResult(); + o.filters = filters; + o.id = id; + o.protocol = protocol; + o.tags = tags; + o.transitGatewayConnectId = transitGatewayConnectId; + o.transitGatewayId = transitGatewayId; + o.transportAttachmentId = transportAttachmentId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetDirectConnectGatewayAttachmentFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetDirectConnectGatewayAttachmentFilter.java index ae289fe3165..1bbeb6bc296 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetDirectConnectGatewayAttachmentFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetDirectConnectGatewayAttachmentFilter.java @@ -14,21 +14,14 @@ public final class GetDirectConnectGatewayAttachmentFilter { * @return The name of the filter field. Valid values can be found in the [EC2 DescribeTransitGatewayAttachments API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayAttachments.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetDirectConnectGatewayAttachmentFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetDirectConnectGatewayAttachmentFilter() {} /** * @return The name of the filter field. Valid values can be found in the [EC2 DescribeTransitGatewayAttachments API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayAttachments.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetDirectConnectGatewayAttachmentFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDirectConnectGatewayAttachmentFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetDirectConnectGatewayAttachmentFilter build() { - return new GetDirectConnectGatewayAttachmentFilter(name, values); + } + public GetDirectConnectGatewayAttachmentFilter build() { + final var o = new GetDirectConnectGatewayAttachmentFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetDirectConnectGatewayAttachmentResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetDirectConnectGatewayAttachmentResult.java index f9a320dcdc2..4e644dc3f08 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetDirectConnectGatewayAttachmentResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetDirectConnectGatewayAttachmentResult.java @@ -14,34 +14,21 @@ @CustomType public final class GetDirectConnectGatewayAttachmentResult { - private final @Nullable String dxGatewayId; - private final @Nullable List filters; + private @Nullable String dxGatewayId; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Key-value tags for the EC2 Transit Gateway Attachment * */ - private final Map tags; - private final @Nullable String transitGatewayId; - - @CustomType.Constructor - private GetDirectConnectGatewayAttachmentResult( - @CustomType.Parameter("dxGatewayId") @Nullable String dxGatewayId, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("transitGatewayId") @Nullable String transitGatewayId) { - this.dxGatewayId = dxGatewayId; - this.filters = filters; - this.id = id; - this.tags = tags; - this.transitGatewayId = transitGatewayId; - } + private Map tags; + private @Nullable String transitGatewayId; + private GetDirectConnectGatewayAttachmentResult() {} public Optional dxGatewayId() { return Optional.ofNullable(this.dxGatewayId); } @@ -73,18 +60,14 @@ public static Builder builder() { public static Builder builder(GetDirectConnectGatewayAttachmentResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dxGatewayId; private @Nullable List filters; private String id; private Map tags; private @Nullable String transitGatewayId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDirectConnectGatewayAttachmentResult defaults) { Objects.requireNonNull(defaults); this.dxGatewayId = defaults.dxGatewayId; @@ -94,10 +77,12 @@ public Builder(GetDirectConnectGatewayAttachmentResult defaults) { this.transitGatewayId = defaults.transitGatewayId; } + @CustomType.Setter public Builder dxGatewayId(@Nullable String dxGatewayId) { this.dxGatewayId = dxGatewayId; return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -105,19 +90,29 @@ public Builder filters(@Nullable List f public Builder filters(GetDirectConnectGatewayAttachmentFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder transitGatewayId(@Nullable String transitGatewayId) { this.transitGatewayId = transitGatewayId; return this; - } public GetDirectConnectGatewayAttachmentResult build() { - return new GetDirectConnectGatewayAttachmentResult(dxGatewayId, filters, id, tags, transitGatewayId); + } + public GetDirectConnectGatewayAttachmentResult build() { + final var o = new GetDirectConnectGatewayAttachmentResult(); + o.dxGatewayId = dxGatewayId; + o.filters = filters; + o.id = id; + o.tags = tags; + o.transitGatewayId = transitGatewayId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainAssociation.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainAssociation.java index 45d0f0ea5c4..9bf5a26b337 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainAssociation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainAssociation.java @@ -13,21 +13,14 @@ public final class GetMulticastDomainAssociation { * @return The ID of the subnet associated with the transit gateway multicast domain. * */ - private final String subnetId; + private String subnetId; /** * @return The ID of the transit gateway attachment. * */ - private final String transitGatewayAttachmentId; - - @CustomType.Constructor - private GetMulticastDomainAssociation( - @CustomType.Parameter("subnetId") String subnetId, - @CustomType.Parameter("transitGatewayAttachmentId") String transitGatewayAttachmentId) { - this.subnetId = subnetId; - this.transitGatewayAttachmentId = transitGatewayAttachmentId; - } + private String transitGatewayAttachmentId; + private GetMulticastDomainAssociation() {} /** * @return The ID of the subnet associated with the transit gateway multicast domain. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetMulticastDomainAssociation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String subnetId; private String transitGatewayAttachmentId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMulticastDomainAssociation defaults) { Objects.requireNonNull(defaults); this.subnetId = defaults.subnetId; this.transitGatewayAttachmentId = defaults.transitGatewayAttachmentId; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; } + @CustomType.Setter public Builder transitGatewayAttachmentId(String transitGatewayAttachmentId) { this.transitGatewayAttachmentId = Objects.requireNonNull(transitGatewayAttachmentId); return this; - } public GetMulticastDomainAssociation build() { - return new GetMulticastDomainAssociation(subnetId, transitGatewayAttachmentId); + } + public GetMulticastDomainAssociation build() { + final var o = new GetMulticastDomainAssociation(); + o.subnetId = subnetId; + o.transitGatewayAttachmentId = transitGatewayAttachmentId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainFilter.java index d18850953ef..b20de06adff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainFilter.java @@ -14,21 +14,14 @@ public final class GetMulticastDomainFilter { * @return The name of the field to filter by, as defined by [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayMulticastDomains.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. A multicast domain will be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetMulticastDomainFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetMulticastDomainFilter() {} /** * @return The name of the field to filter by, as defined by [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayMulticastDomains.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetMulticastDomainFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMulticastDomainFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetMulticastDomainFilter build() { - return new GetMulticastDomainFilter(name, values); + } + public GetMulticastDomainFilter build() { + final var o = new GetMulticastDomainFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainMember.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainMember.java index ed7c08265c6..cfa38349f39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainMember.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainMember.java @@ -13,21 +13,14 @@ public final class GetMulticastDomainMember { * @return The IP address assigned to the transit gateway multicast group. * */ - private final String groupIpAddress; + private String groupIpAddress; /** * @return The group members' network interface ID. * */ - private final String networkInterfaceId; - - @CustomType.Constructor - private GetMulticastDomainMember( - @CustomType.Parameter("groupIpAddress") String groupIpAddress, - @CustomType.Parameter("networkInterfaceId") String networkInterfaceId) { - this.groupIpAddress = groupIpAddress; - this.networkInterfaceId = networkInterfaceId; - } + private String networkInterfaceId; + private GetMulticastDomainMember() {} /** * @return The IP address assigned to the transit gateway multicast group. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetMulticastDomainMember defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String groupIpAddress; private String networkInterfaceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMulticastDomainMember defaults) { Objects.requireNonNull(defaults); this.groupIpAddress = defaults.groupIpAddress; this.networkInterfaceId = defaults.networkInterfaceId; } + @CustomType.Setter public Builder groupIpAddress(String groupIpAddress) { this.groupIpAddress = Objects.requireNonNull(groupIpAddress); return this; } + @CustomType.Setter public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = Objects.requireNonNull(networkInterfaceId); return this; - } public GetMulticastDomainMember build() { - return new GetMulticastDomainMember(groupIpAddress, networkInterfaceId); + } + public GetMulticastDomainMember build() { + final var o = new GetMulticastDomainMember(); + o.groupIpAddress = groupIpAddress; + o.networkInterfaceId = networkInterfaceId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainResult.java index 0528585d4e2..723853cd2be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainResult.java @@ -20,100 +20,67 @@ public final class GetMulticastDomainResult { * @return EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN). * */ - private final String arn; + private String arn; /** * @return EC2 Transit Gateway Multicast Domain Associations * */ - private final List associations; + private List associations; /** * @return Whether to automatically accept cross-account subnet associations that are associated with the EC2 Transit Gateway Multicast Domain. * */ - private final String autoAcceptSharedAssociations; - private final @Nullable List filters; + private String autoAcceptSharedAssociations; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Whether to enable Internet Group Management Protocol (IGMP) version 2 for the EC2 Transit Gateway Multicast Domain. * */ - private final String igmpv2Support; + private String igmpv2Support; /** * @return EC2 Multicast Domain Group Members * */ - private final List members; + private List members; /** * @return Identifier of the AWS account that owns the EC2 Transit Gateway Multicast Domain. * */ - private final String ownerId; + private String ownerId; /** * @return EC2 Multicast Domain Group Sources * */ - private final List sources; - private final String state; + private List sources; + private String state; /** * @return Whether to enable support for statically configuring multicast group sources for the EC2 Transit Gateway Multicast Domain. * */ - private final String staticSourcesSupport; + private String staticSourcesSupport; /** * @return Key-value tags for the EC2 Transit Gateway Multicast Domain. * */ - private final Map tags; + private Map tags; /** * @return The ID of the transit gateway attachment. * */ - private final String transitGatewayAttachmentId; + private String transitGatewayAttachmentId; /** * @return EC2 Transit Gateway identifier. * */ - private final String transitGatewayId; - private final String transitGatewayMulticastDomainId; - - @CustomType.Constructor - private GetMulticastDomainResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("associations") List associations, - @CustomType.Parameter("autoAcceptSharedAssociations") String autoAcceptSharedAssociations, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("igmpv2Support") String igmpv2Support, - @CustomType.Parameter("members") List members, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("sources") List sources, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("staticSourcesSupport") String staticSourcesSupport, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("transitGatewayAttachmentId") String transitGatewayAttachmentId, - @CustomType.Parameter("transitGatewayId") String transitGatewayId, - @CustomType.Parameter("transitGatewayMulticastDomainId") String transitGatewayMulticastDomainId) { - this.arn = arn; - this.associations = associations; - this.autoAcceptSharedAssociations = autoAcceptSharedAssociations; - this.filters = filters; - this.id = id; - this.igmpv2Support = igmpv2Support; - this.members = members; - this.ownerId = ownerId; - this.sources = sources; - this.state = state; - this.staticSourcesSupport = staticSourcesSupport; - this.tags = tags; - this.transitGatewayAttachmentId = transitGatewayAttachmentId; - this.transitGatewayId = transitGatewayId; - this.transitGatewayMulticastDomainId = transitGatewayMulticastDomainId; - } + private String transitGatewayId; + private String transitGatewayMulticastDomainId; + private GetMulticastDomainResult() {} /** * @return EC2 Transit Gateway Multicast Domain Amazon Resource Name (ARN). * @@ -215,7 +182,7 @@ public static Builder builder() { public static Builder builder(GetMulticastDomainResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List associations; @@ -232,11 +199,7 @@ public static final class Builder { private String transitGatewayAttachmentId; private String transitGatewayId; private String transitGatewayMulticastDomainId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMulticastDomainResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -256,10 +219,12 @@ public Builder(GetMulticastDomainResult defaults) { this.transitGatewayMulticastDomainId = defaults.transitGatewayMulticastDomainId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder associations(List associations) { this.associations = Objects.requireNonNull(associations); return this; @@ -267,10 +232,12 @@ public Builder associations(List associations) { public Builder associations(GetMulticastDomainAssociation... associations) { return associations(List.of(associations)); } + @CustomType.Setter public Builder autoAcceptSharedAssociations(String autoAcceptSharedAssociations) { this.autoAcceptSharedAssociations = Objects.requireNonNull(autoAcceptSharedAssociations); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -278,14 +245,17 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetMulticastDomainFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder igmpv2Support(String igmpv2Support) { this.igmpv2Support = Objects.requireNonNull(igmpv2Support); return this; } + @CustomType.Setter public Builder members(List members) { this.members = Objects.requireNonNull(members); return this; @@ -293,10 +263,12 @@ public Builder members(List members) { public Builder members(GetMulticastDomainMember... members) { return members(List.of(members)); } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder sources(List sources) { this.sources = Objects.requireNonNull(sources); return this; @@ -304,31 +276,54 @@ public Builder sources(List sources) { public Builder sources(GetMulticastDomainSource... sources) { return sources(List.of(sources)); } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder staticSourcesSupport(String staticSourcesSupport) { this.staticSourcesSupport = Objects.requireNonNull(staticSourcesSupport); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder transitGatewayAttachmentId(String transitGatewayAttachmentId) { this.transitGatewayAttachmentId = Objects.requireNonNull(transitGatewayAttachmentId); return this; } + @CustomType.Setter public Builder transitGatewayId(String transitGatewayId) { this.transitGatewayId = Objects.requireNonNull(transitGatewayId); return this; } + @CustomType.Setter public Builder transitGatewayMulticastDomainId(String transitGatewayMulticastDomainId) { this.transitGatewayMulticastDomainId = Objects.requireNonNull(transitGatewayMulticastDomainId); return this; - } public GetMulticastDomainResult build() { - return new GetMulticastDomainResult(arn, associations, autoAcceptSharedAssociations, filters, id, igmpv2Support, members, ownerId, sources, state, staticSourcesSupport, tags, transitGatewayAttachmentId, transitGatewayId, transitGatewayMulticastDomainId); + } + public GetMulticastDomainResult build() { + final var o = new GetMulticastDomainResult(); + o.arn = arn; + o.associations = associations; + o.autoAcceptSharedAssociations = autoAcceptSharedAssociations; + o.filters = filters; + o.id = id; + o.igmpv2Support = igmpv2Support; + o.members = members; + o.ownerId = ownerId; + o.sources = sources; + o.state = state; + o.staticSourcesSupport = staticSourcesSupport; + o.tags = tags; + o.transitGatewayAttachmentId = transitGatewayAttachmentId; + o.transitGatewayId = transitGatewayId; + o.transitGatewayMulticastDomainId = transitGatewayMulticastDomainId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainSource.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainSource.java index aa6d7554e69..0a233e7fe35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetMulticastDomainSource.java @@ -13,21 +13,14 @@ public final class GetMulticastDomainSource { * @return The IP address assigned to the transit gateway multicast group. * */ - private final String groupIpAddress; + private String groupIpAddress; /** * @return The group members' network interface ID. * */ - private final String networkInterfaceId; - - @CustomType.Constructor - private GetMulticastDomainSource( - @CustomType.Parameter("groupIpAddress") String groupIpAddress, - @CustomType.Parameter("networkInterfaceId") String networkInterfaceId) { - this.groupIpAddress = groupIpAddress; - this.networkInterfaceId = networkInterfaceId; - } + private String networkInterfaceId; + private GetMulticastDomainSource() {} /** * @return The IP address assigned to the transit gateway multicast group. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetMulticastDomainSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String groupIpAddress; private String networkInterfaceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMulticastDomainSource defaults) { Objects.requireNonNull(defaults); this.groupIpAddress = defaults.groupIpAddress; this.networkInterfaceId = defaults.networkInterfaceId; } + @CustomType.Setter public Builder groupIpAddress(String groupIpAddress) { this.groupIpAddress = Objects.requireNonNull(groupIpAddress); return this; } + @CustomType.Setter public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = Objects.requireNonNull(networkInterfaceId); return this; - } public GetMulticastDomainSource build() { - return new GetMulticastDomainSource(groupIpAddress, networkInterfaceId); + } + public GetMulticastDomainSource build() { + final var o = new GetMulticastDomainSource(); + o.groupIpAddress = groupIpAddress; + o.networkInterfaceId = networkInterfaceId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetPeeringAttachmentFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetPeeringAttachmentFilter.java index e4b5790fc6e..906e72c26a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetPeeringAttachmentFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetPeeringAttachmentFilter.java @@ -15,22 +15,15 @@ public final class GetPeeringAttachmentFilter { * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayPeeringAttachments.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given field. * An EC2 Transit Gateway Peering Attachment be selected if any one of the given values matches. * */ - private final List values; - - @CustomType.Constructor - private GetPeeringAttachmentFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetPeeringAttachmentFilter() {} /** * @return The name of the field to filter by, as defined by * [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayPeeringAttachments.html). @@ -55,33 +48,35 @@ public static Builder builder() { public static Builder builder(GetPeeringAttachmentFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPeeringAttachmentFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetPeeringAttachmentFilter build() { - return new GetPeeringAttachmentFilter(name, values); + } + public GetPeeringAttachmentFilter build() { + final var o = new GetPeeringAttachmentFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetPeeringAttachmentResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetPeeringAttachmentResult.java index 6666cda706e..f248604d253 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetPeeringAttachmentResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetPeeringAttachmentResult.java @@ -13,48 +13,31 @@ @CustomType public final class GetPeeringAttachmentResult { - private final @Nullable List filters; - private final String id; + private @Nullable List filters; + private String id; /** * @return Identifier of the peer AWS account * */ - private final String peerAccountId; + private String peerAccountId; /** * @return Identifier of the peer AWS region * */ - private final String peerRegion; + private String peerRegion; /** * @return Identifier of the peer EC2 Transit Gateway * */ - private final String peerTransitGatewayId; - private final Map tags; + private String peerTransitGatewayId; + private Map tags; /** * @return Identifier of the local EC2 Transit Gateway * */ - private final String transitGatewayId; - - @CustomType.Constructor - private GetPeeringAttachmentResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("peerAccountId") String peerAccountId, - @CustomType.Parameter("peerRegion") String peerRegion, - @CustomType.Parameter("peerTransitGatewayId") String peerTransitGatewayId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("transitGatewayId") String transitGatewayId) { - this.filters = filters; - this.id = id; - this.peerAccountId = peerAccountId; - this.peerRegion = peerRegion; - this.peerTransitGatewayId = peerTransitGatewayId; - this.tags = tags; - this.transitGatewayId = transitGatewayId; - } + private String transitGatewayId; + private GetPeeringAttachmentResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -100,7 +83,7 @@ public static Builder builder() { public static Builder builder(GetPeeringAttachmentResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; @@ -109,11 +92,7 @@ public static final class Builder { private String peerTransitGatewayId; private Map tags; private String transitGatewayId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPeeringAttachmentResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -125,6 +104,7 @@ public Builder(GetPeeringAttachmentResult defaults) { this.transitGatewayId = defaults.transitGatewayId; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -132,31 +112,46 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetPeeringAttachmentFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder peerAccountId(String peerAccountId) { this.peerAccountId = Objects.requireNonNull(peerAccountId); return this; } + @CustomType.Setter public Builder peerRegion(String peerRegion) { this.peerRegion = Objects.requireNonNull(peerRegion); return this; } + @CustomType.Setter public Builder peerTransitGatewayId(String peerTransitGatewayId) { this.peerTransitGatewayId = Objects.requireNonNull(peerTransitGatewayId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder transitGatewayId(String transitGatewayId) { this.transitGatewayId = Objects.requireNonNull(transitGatewayId); return this; - } public GetPeeringAttachmentResult build() { - return new GetPeeringAttachmentResult(filters, id, peerAccountId, peerRegion, peerTransitGatewayId, tags, transitGatewayId); + } + public GetPeeringAttachmentResult build() { + final var o = new GetPeeringAttachmentResult(); + o.filters = filters; + o.id = id; + o.peerAccountId = peerAccountId; + o.peerRegion = peerRegion; + o.peerTransitGatewayId = peerTransitGatewayId; + o.tags = tags; + o.transitGatewayId = transitGatewayId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetRouteTableFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetRouteTableFilter.java index 55d8fc3bc8c..7e4c28fb11f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetRouteTableFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetRouteTableFilter.java @@ -14,21 +14,14 @@ public final class GetRouteTableFilter { * @return Name of the filter. * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetRouteTableFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetRouteTableFilter() {} /** * @return Name of the filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetRouteTableFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRouteTableFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetRouteTableFilter build() { - return new GetRouteTableFilter(name, values); + } + public GetRouteTableFilter build() { + final var o = new GetRouteTableFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetRouteTableResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetRouteTableResult.java index e9d78076fe3..d0165162cb9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetRouteTableResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetRouteTableResult.java @@ -18,52 +18,35 @@ public final class GetRouteTableResult { * @return EC2 Transit Gateway Route Table Amazon Resource Name (ARN). * */ - private final String arn; + private String arn; /** * @return Boolean whether this is the default association route table for the EC2 Transit Gateway * */ - private final Boolean defaultAssociationRouteTable; + private Boolean defaultAssociationRouteTable; /** * @return Boolean whether this is the default propagation route table for the EC2 Transit Gateway * */ - private final Boolean defaultPropagationRouteTable; - private final @Nullable List filters; + private Boolean defaultPropagationRouteTable; + private @Nullable List filters; /** * @return EC2 Transit Gateway Route Table identifier * */ - private final String id; + private String id; /** * @return Key-value tags for the EC2 Transit Gateway Route Table * */ - private final Map tags; + private Map tags; /** * @return EC2 Transit Gateway identifier * */ - private final String transitGatewayId; - - @CustomType.Constructor - private GetRouteTableResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("defaultAssociationRouteTable") Boolean defaultAssociationRouteTable, - @CustomType.Parameter("defaultPropagationRouteTable") Boolean defaultPropagationRouteTable, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("transitGatewayId") String transitGatewayId) { - this.arn = arn; - this.defaultAssociationRouteTable = defaultAssociationRouteTable; - this.defaultPropagationRouteTable = defaultPropagationRouteTable; - this.filters = filters; - this.id = id; - this.tags = tags; - this.transitGatewayId = transitGatewayId; - } + private String transitGatewayId; + private GetRouteTableResult() {} /** * @return EC2 Transit Gateway Route Table Amazon Resource Name (ARN). * @@ -117,7 +100,7 @@ public static Builder builder() { public static Builder builder(GetRouteTableResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Boolean defaultAssociationRouteTable; @@ -126,11 +109,7 @@ public static final class Builder { private String id; private Map tags; private String transitGatewayId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRouteTableResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -142,18 +121,22 @@ public Builder(GetRouteTableResult defaults) { this.transitGatewayId = defaults.transitGatewayId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder defaultAssociationRouteTable(Boolean defaultAssociationRouteTable) { this.defaultAssociationRouteTable = Objects.requireNonNull(defaultAssociationRouteTable); return this; } + @CustomType.Setter public Builder defaultPropagationRouteTable(Boolean defaultPropagationRouteTable) { this.defaultPropagationRouteTable = Objects.requireNonNull(defaultPropagationRouteTable); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -161,19 +144,31 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetRouteTableFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder transitGatewayId(String transitGatewayId) { this.transitGatewayId = Objects.requireNonNull(transitGatewayId); return this; - } public GetRouteTableResult build() { - return new GetRouteTableResult(arn, defaultAssociationRouteTable, defaultPropagationRouteTable, filters, id, tags, transitGatewayId); + } + public GetRouteTableResult build() { + final var o = new GetRouteTableResult(); + o.arn = arn; + o.defaultAssociationRouteTable = defaultAssociationRouteTable; + o.defaultPropagationRouteTable = defaultPropagationRouteTable; + o.filters = filters; + o.id = id; + o.tags = tags; + o.transitGatewayId = transitGatewayId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetTransitGatewayFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetTransitGatewayFilter.java index 1ed1d9d1bcc..ba41ac6e16e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetTransitGatewayFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetTransitGatewayFilter.java @@ -14,21 +14,14 @@ public final class GetTransitGatewayFilter { * @return The name of the field to filter by, as defined by the [underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGateways.html). * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetTransitGatewayFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetTransitGatewayFilter() {} /** * @return The name of the field to filter by, as defined by the [underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGateways.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetTransitGatewayFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTransitGatewayFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetTransitGatewayFilter build() { - return new GetTransitGatewayFilter(name, values); + } + public GetTransitGatewayFilter build() { + final var o = new GetTransitGatewayFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetTransitGatewayResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetTransitGatewayResult.java index f69bec39da6..fe88be10969 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetTransitGatewayResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetTransitGatewayResult.java @@ -18,115 +18,80 @@ public final class GetTransitGatewayResult { * @return Private Autonomous System Number (ASN) for the Amazon side of a BGP session * */ - private final Integer amazonSideAsn; + private Integer amazonSideAsn; /** * @return EC2 Transit Gateway Amazon Resource Name (ARN) * */ - private final String arn; + private String arn; /** * @return Identifier of the default association route table * */ - private final String associationDefaultRouteTableId; + private String associationDefaultRouteTableId; /** * @return Whether resource attachment requests are automatically accepted * */ - private final String autoAcceptSharedAttachments; + private String autoAcceptSharedAttachments; /** * @return Whether resource attachments are automatically associated with the default association route table * */ - private final String defaultRouteTableAssociation; + private String defaultRouteTableAssociation; /** * @return Whether resource attachments automatically propagate routes to the default propagation route table * */ - private final String defaultRouteTablePropagation; + private String defaultRouteTablePropagation; /** * @return Description of the EC2 Transit Gateway * */ - private final String description; + private String description; /** * @return Whether DNS support is enabled * */ - private final String dnsSupport; - private final @Nullable List filters; + private String dnsSupport; + private @Nullable List filters; /** * @return EC2 Transit Gateway identifier * */ - private final String id; + private String id; /** * @return Whether Multicast support is enabled * */ - private final String multicastSupport; + private String multicastSupport; /** * @return Identifier of the AWS account that owns the EC2 Transit Gateway * */ - private final String ownerId; + private String ownerId; /** * @return Identifier of the default propagation route table * */ - private final String propagationDefaultRouteTableId; + private String propagationDefaultRouteTableId; /** * @return Key-value tags for the EC2 Transit Gateway * */ - private final Map tags; + private Map tags; /** * @return The list of associated CIDR blocks * */ - private final List transitGatewayCidrBlocks; + private List transitGatewayCidrBlocks; /** * @return Whether VPN Equal Cost Multipath Protocol support is enabled * */ - private final String vpnEcmpSupport; - - @CustomType.Constructor - private GetTransitGatewayResult( - @CustomType.Parameter("amazonSideAsn") Integer amazonSideAsn, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("associationDefaultRouteTableId") String associationDefaultRouteTableId, - @CustomType.Parameter("autoAcceptSharedAttachments") String autoAcceptSharedAttachments, - @CustomType.Parameter("defaultRouteTableAssociation") String defaultRouteTableAssociation, - @CustomType.Parameter("defaultRouteTablePropagation") String defaultRouteTablePropagation, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("dnsSupport") String dnsSupport, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("multicastSupport") String multicastSupport, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("propagationDefaultRouteTableId") String propagationDefaultRouteTableId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("transitGatewayCidrBlocks") List transitGatewayCidrBlocks, - @CustomType.Parameter("vpnEcmpSupport") String vpnEcmpSupport) { - this.amazonSideAsn = amazonSideAsn; - this.arn = arn; - this.associationDefaultRouteTableId = associationDefaultRouteTableId; - this.autoAcceptSharedAttachments = autoAcceptSharedAttachments; - this.defaultRouteTableAssociation = defaultRouteTableAssociation; - this.defaultRouteTablePropagation = defaultRouteTablePropagation; - this.description = description; - this.dnsSupport = dnsSupport; - this.filters = filters; - this.id = id; - this.multicastSupport = multicastSupport; - this.ownerId = ownerId; - this.propagationDefaultRouteTableId = propagationDefaultRouteTableId; - this.tags = tags; - this.transitGatewayCidrBlocks = transitGatewayCidrBlocks; - this.vpnEcmpSupport = vpnEcmpSupport; - } + private String vpnEcmpSupport; + private GetTransitGatewayResult() {} /** * @return Private Autonomous System Number (ASN) for the Amazon side of a BGP session * @@ -243,7 +208,7 @@ public static Builder builder() { public static Builder builder(GetTransitGatewayResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer amazonSideAsn; private String arn; @@ -261,11 +226,7 @@ public static final class Builder { private Map tags; private List transitGatewayCidrBlocks; private String vpnEcmpSupport; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTransitGatewayResult defaults) { Objects.requireNonNull(defaults); this.amazonSideAsn = defaults.amazonSideAsn; @@ -286,38 +247,47 @@ public Builder(GetTransitGatewayResult defaults) { this.vpnEcmpSupport = defaults.vpnEcmpSupport; } + @CustomType.Setter public Builder amazonSideAsn(Integer amazonSideAsn) { this.amazonSideAsn = Objects.requireNonNull(amazonSideAsn); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder associationDefaultRouteTableId(String associationDefaultRouteTableId) { this.associationDefaultRouteTableId = Objects.requireNonNull(associationDefaultRouteTableId); return this; } + @CustomType.Setter public Builder autoAcceptSharedAttachments(String autoAcceptSharedAttachments) { this.autoAcceptSharedAttachments = Objects.requireNonNull(autoAcceptSharedAttachments); return this; } + @CustomType.Setter public Builder defaultRouteTableAssociation(String defaultRouteTableAssociation) { this.defaultRouteTableAssociation = Objects.requireNonNull(defaultRouteTableAssociation); return this; } + @CustomType.Setter public Builder defaultRouteTablePropagation(String defaultRouteTablePropagation) { this.defaultRouteTablePropagation = Objects.requireNonNull(defaultRouteTablePropagation); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder dnsSupport(String dnsSupport) { this.dnsSupport = Objects.requireNonNull(dnsSupport); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -325,26 +295,32 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetTransitGatewayFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder multicastSupport(String multicastSupport) { this.multicastSupport = Objects.requireNonNull(multicastSupport); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder propagationDefaultRouteTableId(String propagationDefaultRouteTableId) { this.propagationDefaultRouteTableId = Objects.requireNonNull(propagationDefaultRouteTableId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder transitGatewayCidrBlocks(List transitGatewayCidrBlocks) { this.transitGatewayCidrBlocks = Objects.requireNonNull(transitGatewayCidrBlocks); return this; @@ -352,11 +328,30 @@ public Builder transitGatewayCidrBlocks(List transitGatewayCidrBlocks) { public Builder transitGatewayCidrBlocks(String... transitGatewayCidrBlocks) { return transitGatewayCidrBlocks(List.of(transitGatewayCidrBlocks)); } + @CustomType.Setter public Builder vpnEcmpSupport(String vpnEcmpSupport) { this.vpnEcmpSupport = Objects.requireNonNull(vpnEcmpSupport); return this; - } public GetTransitGatewayResult build() { - return new GetTransitGatewayResult(amazonSideAsn, arn, associationDefaultRouteTableId, autoAcceptSharedAttachments, defaultRouteTableAssociation, defaultRouteTablePropagation, description, dnsSupport, filters, id, multicastSupport, ownerId, propagationDefaultRouteTableId, tags, transitGatewayCidrBlocks, vpnEcmpSupport); + } + public GetTransitGatewayResult build() { + final var o = new GetTransitGatewayResult(); + o.amazonSideAsn = amazonSideAsn; + o.arn = arn; + o.associationDefaultRouteTableId = associationDefaultRouteTableId; + o.autoAcceptSharedAttachments = autoAcceptSharedAttachments; + o.defaultRouteTableAssociation = defaultRouteTableAssociation; + o.defaultRouteTablePropagation = defaultRouteTablePropagation; + o.description = description; + o.dnsSupport = dnsSupport; + o.filters = filters; + o.id = id; + o.multicastSupport = multicastSupport; + o.ownerId = ownerId; + o.propagationDefaultRouteTableId = propagationDefaultRouteTableId; + o.tags = tags; + o.transitGatewayCidrBlocks = transitGatewayCidrBlocks; + o.vpnEcmpSupport = vpnEcmpSupport; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentFilter.java index e0483ddc402..297e5b1b6b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentFilter.java @@ -14,21 +14,14 @@ public final class GetVpcAttachmentFilter { * @return Name of the filter. * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetVpcAttachmentFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetVpcAttachmentFilter() {} /** * @return Name of the filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetVpcAttachmentFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcAttachmentFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVpcAttachmentFilter build() { - return new GetVpcAttachmentFilter(name, values); + } + public GetVpcAttachmentFilter build() { + final var o = new GetVpcAttachmentFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentResult.java index eafb08cd2c2..4c026de1b17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentResult.java @@ -17,73 +17,50 @@ public final class GetVpcAttachmentResult { * @return Whether Appliance Mode support is enabled. * */ - private final String applianceModeSupport; + private String applianceModeSupport; /** * @return Whether DNS support is enabled. * */ - private final String dnsSupport; - private final @Nullable List filters; + private String dnsSupport; + private @Nullable List filters; /** * @return EC2 Transit Gateway VPC Attachment identifier * */ - private final String id; + private String id; /** * @return Whether IPv6 support is enabled. * */ - private final String ipv6Support; + private String ipv6Support; /** * @return Identifiers of EC2 Subnets. * */ - private final List subnetIds; + private List subnetIds; /** * @return Key-value tags for the EC2 Transit Gateway VPC Attachment * */ - private final Map tags; + private Map tags; /** * @return EC2 Transit Gateway identifier * */ - private final String transitGatewayId; + private String transitGatewayId; /** * @return Identifier of EC2 VPC. * */ - private final String vpcId; + private String vpcId; /** * @return Identifier of the AWS account that owns the EC2 VPC. * */ - private final String vpcOwnerId; - - @CustomType.Constructor - private GetVpcAttachmentResult( - @CustomType.Parameter("applianceModeSupport") String applianceModeSupport, - @CustomType.Parameter("dnsSupport") String dnsSupport, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ipv6Support") String ipv6Support, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("transitGatewayId") String transitGatewayId, - @CustomType.Parameter("vpcId") String vpcId, - @CustomType.Parameter("vpcOwnerId") String vpcOwnerId) { - this.applianceModeSupport = applianceModeSupport; - this.dnsSupport = dnsSupport; - this.filters = filters; - this.id = id; - this.ipv6Support = ipv6Support; - this.subnetIds = subnetIds; - this.tags = tags; - this.transitGatewayId = transitGatewayId; - this.vpcId = vpcId; - this.vpcOwnerId = vpcOwnerId; - } + private String vpcOwnerId; + private GetVpcAttachmentResult() {} /** * @return Whether Appliance Mode support is enabled. * @@ -158,7 +135,7 @@ public static Builder builder() { public static Builder builder(GetVpcAttachmentResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String applianceModeSupport; private String dnsSupport; @@ -170,11 +147,7 @@ public static final class Builder { private String transitGatewayId; private String vpcId; private String vpcOwnerId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcAttachmentResult defaults) { Objects.requireNonNull(defaults); this.applianceModeSupport = defaults.applianceModeSupport; @@ -189,14 +162,17 @@ public Builder(GetVpcAttachmentResult defaults) { this.vpcOwnerId = defaults.vpcOwnerId; } + @CustomType.Setter public Builder applianceModeSupport(String applianceModeSupport) { this.applianceModeSupport = Objects.requireNonNull(applianceModeSupport); return this; } + @CustomType.Setter public Builder dnsSupport(String dnsSupport) { this.dnsSupport = Objects.requireNonNull(dnsSupport); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -204,14 +180,17 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVpcAttachmentFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ipv6Support(String ipv6Support) { this.ipv6Support = Objects.requireNonNull(ipv6Support); return this; } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -219,23 +198,39 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder transitGatewayId(String transitGatewayId) { this.transitGatewayId = Objects.requireNonNull(transitGatewayId); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; } + @CustomType.Setter public Builder vpcOwnerId(String vpcOwnerId) { this.vpcOwnerId = Objects.requireNonNull(vpcOwnerId); return this; - } public GetVpcAttachmentResult build() { - return new GetVpcAttachmentResult(applianceModeSupport, dnsSupport, filters, id, ipv6Support, subnetIds, tags, transitGatewayId, vpcId, vpcOwnerId); + } + public GetVpcAttachmentResult build() { + final var o = new GetVpcAttachmentResult(); + o.applianceModeSupport = applianceModeSupport; + o.dnsSupport = dnsSupport; + o.filters = filters; + o.id = id; + o.ipv6Support = ipv6Support; + o.subnetIds = subnetIds; + o.tags = tags; + o.transitGatewayId = transitGatewayId; + o.vpcId = vpcId; + o.vpcOwnerId = vpcOwnerId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentsFilter.java index b9fab124692..d4c7cdc050e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentsFilter.java @@ -14,21 +14,14 @@ public final class GetVpcAttachmentsFilter { * @return Name of the filter check available value on [official documentation](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayVpcAttachments.html) * */ - private final String name; + private String name; /** * @return List of one or more values for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetVpcAttachmentsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetVpcAttachmentsFilter() {} /** * @return Name of the filter check available value on [official documentation](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayVpcAttachments.html) * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetVpcAttachmentsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcAttachmentsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVpcAttachmentsFilter build() { - return new GetVpcAttachmentsFilter(name, values); + } + public GetVpcAttachmentsFilter build() { + final var o = new GetVpcAttachmentsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentsResult.java index fa95101832f..59c89817adf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpcAttachmentsResult.java @@ -12,24 +12,15 @@ @CustomType public final class GetVpcAttachmentsResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final List ids; - - @CustomType.Constructor - private GetVpcAttachmentsResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids) { - this.filters = filters; - this.id = id; - this.ids = ids; - } + private String id; + private List ids; + private GetVpcAttachmentsResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -51,16 +42,12 @@ public static Builder builder() { public static Builder builder(GetVpcAttachmentsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpcAttachmentsResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -68,6 +55,7 @@ public Builder(GetVpcAttachmentsResult defaults) { this.ids = defaults.ids; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -75,18 +63,25 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVpcAttachmentsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; } public Builder ids(String... ids) { return ids(List.of(ids)); - } public GetVpcAttachmentsResult build() { - return new GetVpcAttachmentsResult(filters, id, ids); + } + public GetVpcAttachmentsResult build() { + final var o = new GetVpcAttachmentsResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpnAttachmentFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpnAttachmentFilter.java index 766d9a3dd1f..f86ff0b8921 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpnAttachmentFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpnAttachmentFilter.java @@ -14,21 +14,14 @@ public final class GetVpnAttachmentFilter { * @return The name of the filter field. Valid values can be found in the [EC2 DescribeTransitGatewayAttachments API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayAttachments.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetVpnAttachmentFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetVpnAttachmentFilter() {} /** * @return The name of the filter field. Valid values can be found in the [EC2 DescribeTransitGatewayAttachments API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayAttachments.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetVpnAttachmentFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpnAttachmentFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetVpnAttachmentFilter build() { - return new GetVpnAttachmentFilter(name, values); + } + public GetVpnAttachmentFilter build() { + final var o = new GetVpnAttachmentFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpnAttachmentResult.java b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpnAttachmentResult.java index 15c8a128d8e..dac5bf0b9dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpnAttachmentResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2transitgateway/outputs/GetVpnAttachmentResult.java @@ -14,34 +14,21 @@ @CustomType public final class GetVpnAttachmentResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Key-value tags for the EC2 Transit Gateway VPN Attachment * */ - private final Map tags; - private final @Nullable String transitGatewayId; - private final @Nullable String vpnConnectionId; - - @CustomType.Constructor - private GetVpnAttachmentResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("transitGatewayId") @Nullable String transitGatewayId, - @CustomType.Parameter("vpnConnectionId") @Nullable String vpnConnectionId) { - this.filters = filters; - this.id = id; - this.tags = tags; - this.transitGatewayId = transitGatewayId; - this.vpnConnectionId = vpnConnectionId; - } + private Map tags; + private @Nullable String transitGatewayId; + private @Nullable String vpnConnectionId; + private GetVpnAttachmentResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -73,18 +60,14 @@ public static Builder builder() { public static Builder builder(GetVpnAttachmentResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private Map tags; private @Nullable String transitGatewayId; private @Nullable String vpnConnectionId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVpnAttachmentResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -94,6 +77,7 @@ public Builder(GetVpnAttachmentResult defaults) { this.vpnConnectionId = defaults.vpnConnectionId; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -101,23 +85,34 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetVpnAttachmentFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder transitGatewayId(@Nullable String transitGatewayId) { this.transitGatewayId = transitGatewayId; return this; } + @CustomType.Setter public Builder vpnConnectionId(@Nullable String vpnConnectionId) { this.vpnConnectionId = vpnConnectionId; return this; - } public GetVpnAttachmentResult build() { - return new GetVpnAttachmentResult(filters, id, tags, transitGatewayId, vpnConnectionId); + } + public GetVpnAttachmentResult build() { + final var o = new GetVpnAttachmentResult(); + o.filters = filters; + o.id = id; + o.tags = tags; + o.transitGatewayId = transitGatewayId; + o.vpnConnectionId = vpnConnectionId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetAuthorizationTokenResult.java b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetAuthorizationTokenResult.java index 23c3d9e5340..a500086b671 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetAuthorizationTokenResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetAuthorizationTokenResult.java @@ -15,52 +15,35 @@ public final class GetAuthorizationTokenResult { * @return Temporary IAM authentication credentials to access the ECR repository encoded in base64 in the form of `user_name:password`. * */ - private final String authorizationToken; + private String authorizationToken; /** * @return The time in UTC RFC3339 format when the authorization token expires. * */ - private final String expiresAt; + private String expiresAt; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Password decoded from the authorization token. * */ - private final String password; + private String password; /** * @return The registry URL to use in the docker login command. * */ - private final String proxyEndpoint; - private final @Nullable String registryId; + private String proxyEndpoint; + private @Nullable String registryId; /** * @return User name decoded from the authorization token. * */ - private final String userName; - - @CustomType.Constructor - private GetAuthorizationTokenResult( - @CustomType.Parameter("authorizationToken") String authorizationToken, - @CustomType.Parameter("expiresAt") String expiresAt, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("password") String password, - @CustomType.Parameter("proxyEndpoint") String proxyEndpoint, - @CustomType.Parameter("registryId") @Nullable String registryId, - @CustomType.Parameter("userName") String userName) { - this.authorizationToken = authorizationToken; - this.expiresAt = expiresAt; - this.id = id; - this.password = password; - this.proxyEndpoint = proxyEndpoint; - this.registryId = registryId; - this.userName = userName; - } + private String userName; + private GetAuthorizationTokenResult() {} /** * @return Temporary IAM authentication credentials to access the ECR repository encoded in base64 in the form of `user_name:password`. * @@ -114,7 +97,7 @@ public static Builder builder() { public static Builder builder(GetAuthorizationTokenResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String authorizationToken; private String expiresAt; @@ -123,11 +106,7 @@ public static final class Builder { private String proxyEndpoint; private @Nullable String registryId; private String userName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAuthorizationTokenResult defaults) { Objects.requireNonNull(defaults); this.authorizationToken = defaults.authorizationToken; @@ -139,35 +118,51 @@ public Builder(GetAuthorizationTokenResult defaults) { this.userName = defaults.userName; } + @CustomType.Setter public Builder authorizationToken(String authorizationToken) { this.authorizationToken = Objects.requireNonNull(authorizationToken); return this; } + @CustomType.Setter public Builder expiresAt(String expiresAt) { this.expiresAt = Objects.requireNonNull(expiresAt); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder proxyEndpoint(String proxyEndpoint) { this.proxyEndpoint = Objects.requireNonNull(proxyEndpoint); return this; } + @CustomType.Setter public Builder registryId(@Nullable String registryId) { this.registryId = registryId; return this; } + @CustomType.Setter public Builder userName(String userName) { this.userName = Objects.requireNonNull(userName); return this; - } public GetAuthorizationTokenResult build() { - return new GetAuthorizationTokenResult(authorizationToken, expiresAt, id, password, proxyEndpoint, registryId, userName); + } + public GetAuthorizationTokenResult build() { + final var o = new GetAuthorizationTokenResult(); + o.authorizationToken = authorizationToken; + o.expiresAt = expiresAt; + o.id = id; + o.password = password; + o.proxyEndpoint = proxyEndpoint; + o.registryId = registryId; + o.userName = userName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetCredentialsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetCredentialsResult.java index 524f72594ae..f374ce77f98 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetCredentialsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetCredentialsResult.java @@ -9,30 +9,17 @@ @CustomType public final class GetCredentialsResult { - private final String authorizationToken; - private final String expiresAt; + private String authorizationToken; + private String expiresAt; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String proxyEndpoint; - private final String registryId; - - @CustomType.Constructor - private GetCredentialsResult( - @CustomType.Parameter("authorizationToken") String authorizationToken, - @CustomType.Parameter("expiresAt") String expiresAt, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("proxyEndpoint") String proxyEndpoint, - @CustomType.Parameter("registryId") String registryId) { - this.authorizationToken = authorizationToken; - this.expiresAt = expiresAt; - this.id = id; - this.proxyEndpoint = proxyEndpoint; - this.registryId = registryId; - } + private String id; + private String proxyEndpoint; + private String registryId; + private GetCredentialsResult() {} public String authorizationToken() { return this.authorizationToken; } @@ -60,18 +47,14 @@ public static Builder builder() { public static Builder builder(GetCredentialsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String authorizationToken; private String expiresAt; private String id; private String proxyEndpoint; private String registryId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCredentialsResult defaults) { Objects.requireNonNull(defaults); this.authorizationToken = defaults.authorizationToken; @@ -81,27 +64,39 @@ public Builder(GetCredentialsResult defaults) { this.registryId = defaults.registryId; } + @CustomType.Setter public Builder authorizationToken(String authorizationToken) { this.authorizationToken = Objects.requireNonNull(authorizationToken); return this; } + @CustomType.Setter public Builder expiresAt(String expiresAt) { this.expiresAt = Objects.requireNonNull(expiresAt); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder proxyEndpoint(String proxyEndpoint) { this.proxyEndpoint = Objects.requireNonNull(proxyEndpoint); return this; } + @CustomType.Setter public Builder registryId(String registryId) { this.registryId = Objects.requireNonNull(registryId); return this; - } public GetCredentialsResult build() { - return new GetCredentialsResult(authorizationToken, expiresAt, id, proxyEndpoint, registryId); + } + public GetCredentialsResult build() { + final var o = new GetCredentialsResult(); + o.authorizationToken = authorizationToken; + o.expiresAt = expiresAt; + o.id = id; + o.proxyEndpoint = proxyEndpoint; + o.registryId = registryId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetImageResult.java b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetImageResult.java index a723836d9ed..3160d7a8879 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetImageResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetImageResult.java @@ -17,47 +17,28 @@ public final class GetImageResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String imageDigest; + private String id; + private String imageDigest; /** * @return The date and time, expressed as a unix timestamp, at which the current image was pushed to the repository. * */ - private final Integer imagePushedAt; + private Integer imagePushedAt; /** * @return The size, in bytes, of the image in the repository. * */ - private final Integer imageSizeInBytes; - private final @Nullable String imageTag; + private Integer imageSizeInBytes; + private @Nullable String imageTag; /** * @return The list of tags associated with this image. * */ - private final List imageTags; - private final String registryId; - private final String repositoryName; - - @CustomType.Constructor - private GetImageResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("imageDigest") String imageDigest, - @CustomType.Parameter("imagePushedAt") Integer imagePushedAt, - @CustomType.Parameter("imageSizeInBytes") Integer imageSizeInBytes, - @CustomType.Parameter("imageTag") @Nullable String imageTag, - @CustomType.Parameter("imageTags") List imageTags, - @CustomType.Parameter("registryId") String registryId, - @CustomType.Parameter("repositoryName") String repositoryName) { - this.id = id; - this.imageDigest = imageDigest; - this.imagePushedAt = imagePushedAt; - this.imageSizeInBytes = imageSizeInBytes; - this.imageTag = imageTag; - this.imageTags = imageTags; - this.registryId = registryId; - this.repositoryName = repositoryName; - } + private List imageTags; + private String registryId; + private String repositoryName; + private GetImageResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -106,7 +87,7 @@ public static Builder builder() { public static Builder builder(GetImageResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String imageDigest; @@ -116,11 +97,7 @@ public static final class Builder { private List imageTags; private String registryId; private String repositoryName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImageResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -133,26 +110,32 @@ public Builder(GetImageResult defaults) { this.repositoryName = defaults.repositoryName; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder imageDigest(String imageDigest) { this.imageDigest = Objects.requireNonNull(imageDigest); return this; } + @CustomType.Setter public Builder imagePushedAt(Integer imagePushedAt) { this.imagePushedAt = Objects.requireNonNull(imagePushedAt); return this; } + @CustomType.Setter public Builder imageSizeInBytes(Integer imageSizeInBytes) { this.imageSizeInBytes = Objects.requireNonNull(imageSizeInBytes); return this; } + @CustomType.Setter public Builder imageTag(@Nullable String imageTag) { this.imageTag = imageTag; return this; } + @CustomType.Setter public Builder imageTags(List imageTags) { this.imageTags = Objects.requireNonNull(imageTags); return this; @@ -160,15 +143,27 @@ public Builder imageTags(List imageTags) { public Builder imageTags(String... imageTags) { return imageTags(List.of(imageTags)); } + @CustomType.Setter public Builder registryId(String registryId) { this.registryId = Objects.requireNonNull(registryId); return this; } + @CustomType.Setter public Builder repositoryName(String repositoryName) { this.repositoryName = Objects.requireNonNull(repositoryName); return this; - } public GetImageResult build() { - return new GetImageResult(id, imageDigest, imagePushedAt, imageSizeInBytes, imageTag, imageTags, registryId, repositoryName); + } + public GetImageResult build() { + final var o = new GetImageResult(); + o.id = id; + o.imageDigest = imageDigest; + o.imagePushedAt = imagePushedAt; + o.imageSizeInBytes = imageSizeInBytes; + o.imageTag = imageTag; + o.imageTags = imageTags; + o.registryId = registryId; + o.repositoryName = repositoryName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetRepositoryEncryptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetRepositoryEncryptionConfiguration.java index d1c0e05a9b9..86b2b5823d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetRepositoryEncryptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetRepositoryEncryptionConfiguration.java @@ -13,21 +13,14 @@ public final class GetRepositoryEncryptionConfiguration { * @return The encryption type to use for the repository, either `AES256` or `KMS`. * */ - private final String encryptionType; + private String encryptionType; /** * @return If `encryption_type` is `KMS`, the ARN of the KMS key used. * */ - private final String kmsKey; - - @CustomType.Constructor - private GetRepositoryEncryptionConfiguration( - @CustomType.Parameter("encryptionType") String encryptionType, - @CustomType.Parameter("kmsKey") String kmsKey) { - this.encryptionType = encryptionType; - this.kmsKey = kmsKey; - } + private String kmsKey; + private GetRepositoryEncryptionConfiguration() {} /** * @return The encryption type to use for the repository, either `AES256` or `KMS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetRepositoryEncryptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String encryptionType; private String kmsKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRepositoryEncryptionConfiguration defaults) { Objects.requireNonNull(defaults); this.encryptionType = defaults.encryptionType; this.kmsKey = defaults.kmsKey; } + @CustomType.Setter public Builder encryptionType(String encryptionType) { this.encryptionType = Objects.requireNonNull(encryptionType); return this; } + @CustomType.Setter public Builder kmsKey(String kmsKey) { this.kmsKey = Objects.requireNonNull(kmsKey); return this; - } public GetRepositoryEncryptionConfiguration build() { - return new GetRepositoryEncryptionConfiguration(encryptionType, kmsKey); + } + public GetRepositoryEncryptionConfiguration build() { + final var o = new GetRepositoryEncryptionConfiguration(); + o.encryptionType = encryptionType; + o.kmsKey = kmsKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetRepositoryImageScanningConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetRepositoryImageScanningConfiguration.java index 774407a7389..847717084f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetRepositoryImageScanningConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetRepositoryImageScanningConfiguration.java @@ -13,13 +13,9 @@ public final class GetRepositoryImageScanningConfiguration { * @return Indicates whether images are scanned after being pushed to the repository. * */ - private final Boolean scanOnPush; - - @CustomType.Constructor - private GetRepositoryImageScanningConfiguration(@CustomType.Parameter("scanOnPush") Boolean scanOnPush) { - this.scanOnPush = scanOnPush; - } + private Boolean scanOnPush; + private GetRepositoryImageScanningConfiguration() {} /** * @return Indicates whether images are scanned after being pushed to the repository. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetRepositoryImageScanningConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean scanOnPush; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRepositoryImageScanningConfiguration defaults) { Objects.requireNonNull(defaults); this.scanOnPush = defaults.scanOnPush; } + @CustomType.Setter public Builder scanOnPush(Boolean scanOnPush) { this.scanOnPush = Objects.requireNonNull(scanOnPush); return this; - } public GetRepositoryImageScanningConfiguration build() { - return new GetRepositoryImageScanningConfiguration(scanOnPush); + } + public GetRepositoryImageScanningConfiguration build() { + final var o = new GetRepositoryImageScanningConfiguration(); + o.scanOnPush = scanOnPush; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetRepositoryResult.java b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetRepositoryResult.java index 8b30e2d8541..85398d61814 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetRepositoryResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/GetRepositoryResult.java @@ -17,62 +17,41 @@ public final class GetRepositoryResult { * @return Full ARN of the repository. * */ - private final String arn; + private String arn; /** * @return Encryption configuration for the repository. See Encryption Configuration below. * */ - private final List encryptionConfigurations; + private List encryptionConfigurations; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Configuration block that defines image scanning configuration for the repository. See Image Scanning Configuration below. * */ - private final List imageScanningConfigurations; + private List imageScanningConfigurations; /** * @return The tag mutability setting for the repository. * */ - private final String imageTagMutability; - private final String name; - private final String registryId; + private String imageTagMutability; + private String name; + private String registryId; /** * @return The URL of the repository (in the form `aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName`). * */ - private final String repositoryUrl; + private String repositoryUrl; /** * @return A map of tags assigned to the resource. * */ - private final Map tags; - - @CustomType.Constructor - private GetRepositoryResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("encryptionConfigurations") List encryptionConfigurations, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("imageScanningConfigurations") List imageScanningConfigurations, - @CustomType.Parameter("imageTagMutability") String imageTagMutability, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("registryId") String registryId, - @CustomType.Parameter("repositoryUrl") String repositoryUrl, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.encryptionConfigurations = encryptionConfigurations; - this.id = id; - this.imageScanningConfigurations = imageScanningConfigurations; - this.imageTagMutability = imageTagMutability; - this.name = name; - this.registryId = registryId; - this.repositoryUrl = repositoryUrl; - this.tags = tags; - } + private Map tags; + private GetRepositoryResult() {} /** * @return Full ARN of the repository. * @@ -136,7 +115,7 @@ public static Builder builder() { public static Builder builder(GetRepositoryResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List encryptionConfigurations; @@ -147,11 +126,7 @@ public static final class Builder { private String registryId; private String repositoryUrl; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRepositoryResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -165,10 +140,12 @@ public Builder(GetRepositoryResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder encryptionConfigurations(List encryptionConfigurations) { this.encryptionConfigurations = Objects.requireNonNull(encryptionConfigurations); return this; @@ -176,10 +153,12 @@ public Builder encryptionConfigurations(List imageScanningConfigurations) { this.imageScanningConfigurations = Objects.requireNonNull(imageScanningConfigurations); return this; @@ -187,27 +166,43 @@ public Builder imageScanningConfigurations(List tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetRepositoryResult build() { - return new GetRepositoryResult(arn, encryptionConfigurations, id, imageScanningConfigurations, imageTagMutability, name, registryId, repositoryUrl, tags); + } + public GetRepositoryResult build() { + final var o = new GetRepositoryResult(); + o.arn = arn; + o.encryptionConfigurations = encryptionConfigurations; + o.id = id; + o.imageScanningConfigurations = imageScanningConfigurations; + o.imageTagMutability = imageTagMutability; + o.name = name; + o.registryId = registryId; + o.repositoryUrl = repositoryUrl; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/RegistryScanningConfigurationRule.java b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/RegistryScanningConfigurationRule.java index 219d27adf67..19df4dfe235 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/RegistryScanningConfigurationRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/RegistryScanningConfigurationRule.java @@ -15,21 +15,14 @@ public final class RegistryScanningConfigurationRule { * @return One or more repository filter blocks, containing a `filter` (required string filtering repositories, see pattern regex [here](https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_ScanningRepositoryFilter.html)) and a `filter_type` (required string, currently only `WILDCARD` is supported). * */ - private final List repositoryFilters; + private List repositoryFilters; /** * @return The frequency that scans are performed at for a private registry. Can be `SCAN_ON_PUSH`, `CONTINUOUS_SCAN`, or `MANUAL`. * */ - private final String scanFrequency; - - @CustomType.Constructor - private RegistryScanningConfigurationRule( - @CustomType.Parameter("repositoryFilters") List repositoryFilters, - @CustomType.Parameter("scanFrequency") String scanFrequency) { - this.repositoryFilters = repositoryFilters; - this.scanFrequency = scanFrequency; - } + private String scanFrequency; + private RegistryScanningConfigurationRule() {} /** * @return One or more repository filter blocks, containing a `filter` (required string filtering repositories, see pattern regex [here](https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_ScanningRepositoryFilter.html)) and a `filter_type` (required string, currently only `WILDCARD` is supported). * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(RegistryScanningConfigurationRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List repositoryFilters; private String scanFrequency; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RegistryScanningConfigurationRule defaults) { Objects.requireNonNull(defaults); this.repositoryFilters = defaults.repositoryFilters; this.scanFrequency = defaults.scanFrequency; } + @CustomType.Setter public Builder repositoryFilters(List repositoryFilters) { this.repositoryFilters = Objects.requireNonNull(repositoryFilters); return this; @@ -74,11 +64,16 @@ public Builder repositoryFilters(List rules; - - @CustomType.Constructor - private ReplicationConfigurationReplicationConfiguration(@CustomType.Parameter("rules") List rules) { - this.rules = rules; - } + private List rules; + private ReplicationConfigurationReplicationConfiguration() {} /** * @return The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ReplicationConfigurationReplicationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List rules; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReplicationConfigurationReplicationConfiguration defaults) { Objects.requireNonNull(defaults); this.rules = defaults.rules; } + @CustomType.Setter public Builder rules(List rules) { this.rules = Objects.requireNonNull(rules); return this; } public Builder rules(ReplicationConfigurationReplicationConfigurationRule... rules) { return rules(List.of(rules)); - } public ReplicationConfigurationReplicationConfiguration build() { - return new ReplicationConfigurationReplicationConfiguration(rules); + } + public ReplicationConfigurationReplicationConfiguration build() { + final var o = new ReplicationConfigurationReplicationConfiguration(); + o.rules = rules; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/ReplicationConfigurationReplicationConfigurationRule.java b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/ReplicationConfigurationReplicationConfigurationRule.java index b2a7f6f34df..d17aeb56819 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/ReplicationConfigurationReplicationConfigurationRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/ReplicationConfigurationReplicationConfigurationRule.java @@ -16,21 +16,14 @@ public final class ReplicationConfigurationReplicationConfigurationRule { * @return the details of a replication destination. A maximum of 25 are allowed per `rule`. See Destination. * */ - private final List destinations; + private List destinations; /** * @return filters for a replication rule. See Repository Filter. * */ - private final @Nullable List repositoryFilters; - - @CustomType.Constructor - private ReplicationConfigurationReplicationConfigurationRule( - @CustomType.Parameter("destinations") List destinations, - @CustomType.Parameter("repositoryFilters") @Nullable List repositoryFilters) { - this.destinations = destinations; - this.repositoryFilters = repositoryFilters; - } + private @Nullable List repositoryFilters; + private ReplicationConfigurationReplicationConfigurationRule() {} /** * @return the details of a replication destination. A maximum of 25 are allowed per `rule`. See Destination. * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(ReplicationConfigurationReplicationConfigurationRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List destinations; private @Nullable List repositoryFilters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReplicationConfigurationReplicationConfigurationRule defaults) { Objects.requireNonNull(defaults); this.destinations = defaults.destinations; this.repositoryFilters = defaults.repositoryFilters; } + @CustomType.Setter public Builder destinations(List destinations) { this.destinations = Objects.requireNonNull(destinations); return this; @@ -75,14 +65,19 @@ public Builder destinations(List repositoryFilters) { this.repositoryFilters = repositoryFilters; return this; } public Builder repositoryFilters(ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter... repositoryFilters) { return repositoryFilters(List.of(repositoryFilters)); - } public ReplicationConfigurationReplicationConfigurationRule build() { - return new ReplicationConfigurationReplicationConfigurationRule(destinations, repositoryFilters); + } + public ReplicationConfigurationReplicationConfigurationRule build() { + final var o = new ReplicationConfigurationReplicationConfigurationRule(); + o.destinations = destinations; + o.repositoryFilters = repositoryFilters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/ReplicationConfigurationReplicationConfigurationRuleDestination.java b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/ReplicationConfigurationReplicationConfigurationRuleDestination.java index e261f0c1470..d96443d1024 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/ReplicationConfigurationReplicationConfigurationRuleDestination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/ReplicationConfigurationReplicationConfigurationRuleDestination.java @@ -13,21 +13,14 @@ public final class ReplicationConfigurationReplicationConfigurationRuleDestinati * @return A Region to replicate to. * */ - private final String region; + private String region; /** * @return The account ID of the destination registry to replicate to. * */ - private final String registryId; - - @CustomType.Constructor - private ReplicationConfigurationReplicationConfigurationRuleDestination( - @CustomType.Parameter("region") String region, - @CustomType.Parameter("registryId") String registryId) { - this.region = region; - this.registryId = registryId; - } + private String registryId; + private ReplicationConfigurationReplicationConfigurationRuleDestination() {} /** * @return A Region to replicate to. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ReplicationConfigurationReplicationConfigurationRuleDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String region; private String registryId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReplicationConfigurationReplicationConfigurationRuleDestination defaults) { Objects.requireNonNull(defaults); this.region = defaults.region; this.registryId = defaults.registryId; } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; } + @CustomType.Setter public Builder registryId(String registryId) { this.registryId = Objects.requireNonNull(registryId); return this; - } public ReplicationConfigurationReplicationConfigurationRuleDestination build() { - return new ReplicationConfigurationReplicationConfigurationRuleDestination(region, registryId); + } + public ReplicationConfigurationReplicationConfigurationRuleDestination build() { + final var o = new ReplicationConfigurationReplicationConfigurationRuleDestination(); + o.region = region; + o.registryId = registryId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter.java index f920bbfcf08..3ba532455a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter.java @@ -13,21 +13,14 @@ public final class ReplicationConfigurationReplicationConfigurationRuleRepositor * @return The repository filter details. * */ - private final String filter; + private String filter; /** * @return The repository filter type. The only supported value is `PREFIX_MATCH`, which is a repository name prefix specified with the filter parameter. * */ - private final String filterType; - - @CustomType.Constructor - private ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter( - @CustomType.Parameter("filter") String filter, - @CustomType.Parameter("filterType") String filterType) { - this.filter = filter; - this.filterType = filterType; - } + private String filterType; + private ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter() {} /** * @return The repository filter details. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String filter; private String filterType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter defaults) { Objects.requireNonNull(defaults); this.filter = defaults.filter; this.filterType = defaults.filterType; } + @CustomType.Setter public Builder filter(String filter) { this.filter = Objects.requireNonNull(filter); return this; } + @CustomType.Setter public Builder filterType(String filterType) { this.filterType = Objects.requireNonNull(filterType); return this; - } public ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter build() { - return new ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter(filter, filterType); + } + public ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter build() { + final var o = new ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter(); + o.filter = filter; + o.filterType = filterType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/RepositoryEncryptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/RepositoryEncryptionConfiguration.java index f3308aa93d3..7ba8a28cc6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/RepositoryEncryptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/RepositoryEncryptionConfiguration.java @@ -15,21 +15,14 @@ public final class RepositoryEncryptionConfiguration { * @return The encryption type to use for the repository. Valid values are `AES256` or `KMS`. Defaults to `AES256`. * */ - private final @Nullable String encryptionType; + private @Nullable String encryptionType; /** * @return The ARN of the KMS key to use when `encryption_type` is `KMS`. If not specified, uses the default AWS managed key for ECR. * */ - private final @Nullable String kmsKey; - - @CustomType.Constructor - private RepositoryEncryptionConfiguration( - @CustomType.Parameter("encryptionType") @Nullable String encryptionType, - @CustomType.Parameter("kmsKey") @Nullable String kmsKey) { - this.encryptionType = encryptionType; - this.kmsKey = kmsKey; - } + private @Nullable String kmsKey; + private RepositoryEncryptionConfiguration() {} /** * @return The encryption type to use for the repository. Valid values are `AES256` or `KMS`. Defaults to `AES256`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(RepositoryEncryptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String encryptionType; private @Nullable String kmsKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RepositoryEncryptionConfiguration defaults) { Objects.requireNonNull(defaults); this.encryptionType = defaults.encryptionType; this.kmsKey = defaults.kmsKey; } + @CustomType.Setter public Builder encryptionType(@Nullable String encryptionType) { this.encryptionType = encryptionType; return this; } + @CustomType.Setter public Builder kmsKey(@Nullable String kmsKey) { this.kmsKey = kmsKey; return this; - } public RepositoryEncryptionConfiguration build() { - return new RepositoryEncryptionConfiguration(encryptionType, kmsKey); + } + public RepositoryEncryptionConfiguration build() { + final var o = new RepositoryEncryptionConfiguration(); + o.encryptionType = encryptionType; + o.kmsKey = kmsKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/RepositoryImageScanningConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/RepositoryImageScanningConfiguration.java index cc14982ee82..aac563a0e6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/RepositoryImageScanningConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecr/outputs/RepositoryImageScanningConfiguration.java @@ -13,13 +13,9 @@ public final class RepositoryImageScanningConfiguration { * @return Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false). * */ - private final Boolean scanOnPush; - - @CustomType.Constructor - private RepositoryImageScanningConfiguration(@CustomType.Parameter("scanOnPush") Boolean scanOnPush) { - this.scanOnPush = scanOnPush; - } + private Boolean scanOnPush; + private RepositoryImageScanningConfiguration() {} /** * @return Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false). * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RepositoryImageScanningConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean scanOnPush; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RepositoryImageScanningConfiguration defaults) { Objects.requireNonNull(defaults); this.scanOnPush = defaults.scanOnPush; } + @CustomType.Setter public Builder scanOnPush(Boolean scanOnPush) { this.scanOnPush = Objects.requireNonNull(scanOnPush); return this; - } public RepositoryImageScanningConfiguration build() { - return new RepositoryImageScanningConfiguration(scanOnPush); + } + public RepositoryImageScanningConfiguration build() { + final var o = new RepositoryImageScanningConfiguration(); + o.scanOnPush = scanOnPush; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecrpublic/outputs/GetAuthorizationTokenResult.java b/sdk/java/src/main/java/com/pulumi/aws/ecrpublic/outputs/GetAuthorizationTokenResult.java index ea3862ef93b..4c1dd19a430 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecrpublic/outputs/GetAuthorizationTokenResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecrpublic/outputs/GetAuthorizationTokenResult.java @@ -13,42 +13,29 @@ public final class GetAuthorizationTokenResult { * @return Temporary IAM authentication credentials to access the ECR repository encoded in base64 in the form of `user_name:password`. * */ - private final String authorizationToken; + private String authorizationToken; /** * @return The time in UTC RFC3339 format when the authorization token expires. * */ - private final String expiresAt; + private String expiresAt; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Password decoded from the authorization token. * */ - private final String password; + private String password; /** * @return User name decoded from the authorization token. * */ - private final String userName; - - @CustomType.Constructor - private GetAuthorizationTokenResult( - @CustomType.Parameter("authorizationToken") String authorizationToken, - @CustomType.Parameter("expiresAt") String expiresAt, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("password") String password, - @CustomType.Parameter("userName") String userName) { - this.authorizationToken = authorizationToken; - this.expiresAt = expiresAt; - this.id = id; - this.password = password; - this.userName = userName; - } + private String userName; + private GetAuthorizationTokenResult() {} /** * @return Temporary IAM authentication credentials to access the ECR repository encoded in base64 in the form of `user_name:password`. * @@ -92,18 +79,14 @@ public static Builder builder() { public static Builder builder(GetAuthorizationTokenResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String authorizationToken; private String expiresAt; private String id; private String password; private String userName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAuthorizationTokenResult defaults) { Objects.requireNonNull(defaults); this.authorizationToken = defaults.authorizationToken; @@ -113,27 +96,39 @@ public Builder(GetAuthorizationTokenResult defaults) { this.userName = defaults.userName; } + @CustomType.Setter public Builder authorizationToken(String authorizationToken) { this.authorizationToken = Objects.requireNonNull(authorizationToken); return this; } + @CustomType.Setter public Builder expiresAt(String expiresAt) { this.expiresAt = Objects.requireNonNull(expiresAt); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder userName(String userName) { this.userName = Objects.requireNonNull(userName); return this; - } public GetAuthorizationTokenResult build() { - return new GetAuthorizationTokenResult(authorizationToken, expiresAt, id, password, userName); + } + public GetAuthorizationTokenResult build() { + final var o = new GetAuthorizationTokenResult(); + o.authorizationToken = authorizationToken; + o.expiresAt = expiresAt; + o.id = id; + o.password = password; + o.userName = userName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecrpublic/outputs/RepositoryCatalogData.java b/sdk/java/src/main/java/com/pulumi/aws/ecrpublic/outputs/RepositoryCatalogData.java index 9667439fe1a..0451de54ed3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecrpublic/outputs/RepositoryCatalogData.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecrpublic/outputs/RepositoryCatalogData.java @@ -16,49 +16,34 @@ public final class RepositoryCatalogData { * @return A detailed description of the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format. * */ - private final @Nullable String aboutText; + private @Nullable String aboutText; /** * @return The system architecture that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported architectures will appear as badges on the repository and are used as search filters: `ARM`, `ARM 64`, `x86`, `x86-64` * */ - private final @Nullable List architectures; + private @Nullable List architectures; /** * @return A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return The base64-encoded repository logo payload. (Only visible for verified accounts) Note that drift detection is disabled for this attribute. * */ - private final @Nullable String logoImageBlob; + private @Nullable String logoImageBlob; /** * @return The operating systems that the images in the repository are compatible with. On the Amazon ECR Public Gallery, the following supported operating systems will appear as badges on the repository and are used as search filters: `Linux`, `Windows` * */ - private final @Nullable List operatingSystems; + private @Nullable List operatingSystems; /** * @return Detailed information on how to use the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format. * */ - private final @Nullable String usageText; - - @CustomType.Constructor - private RepositoryCatalogData( - @CustomType.Parameter("aboutText") @Nullable String aboutText, - @CustomType.Parameter("architectures") @Nullable List architectures, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("logoImageBlob") @Nullable String logoImageBlob, - @CustomType.Parameter("operatingSystems") @Nullable List operatingSystems, - @CustomType.Parameter("usageText") @Nullable String usageText) { - this.aboutText = aboutText; - this.architectures = architectures; - this.description = description; - this.logoImageBlob = logoImageBlob; - this.operatingSystems = operatingSystems; - this.usageText = usageText; - } + private @Nullable String usageText; + private RepositoryCatalogData() {} /** * @return A detailed description of the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(RepositoryCatalogData defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String aboutText; private @Nullable List architectures; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable String logoImageBlob; private @Nullable List operatingSystems; private @Nullable String usageText; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RepositoryCatalogData defaults) { Objects.requireNonNull(defaults); this.aboutText = defaults.aboutText; @@ -132,10 +113,12 @@ public Builder(RepositoryCatalogData defaults) { this.usageText = defaults.usageText; } + @CustomType.Setter public Builder aboutText(@Nullable String aboutText) { this.aboutText = aboutText; return this; } + @CustomType.Setter public Builder architectures(@Nullable List architectures) { this.architectures = architectures; return this; @@ -143,14 +126,17 @@ public Builder architectures(@Nullable List architectures) { public Builder architectures(String... architectures) { return architectures(List.of(architectures)); } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder logoImageBlob(@Nullable String logoImageBlob) { this.logoImageBlob = logoImageBlob; return this; } + @CustomType.Setter public Builder operatingSystems(@Nullable List operatingSystems) { this.operatingSystems = operatingSystems; return this; @@ -158,11 +144,20 @@ public Builder operatingSystems(@Nullable List operatingSystems) { public Builder operatingSystems(String... operatingSystems) { return operatingSystems(List.of(operatingSystems)); } + @CustomType.Setter public Builder usageText(@Nullable String usageText) { this.usageText = usageText; return this; - } public RepositoryCatalogData build() { - return new RepositoryCatalogData(aboutText, architectures, description, logoImageBlob, operatingSystems, usageText); + } + public RepositoryCatalogData build() { + final var o = new RepositoryCatalogData(); + o.aboutText = aboutText; + o.architectures = architectures; + o.description = description; + o.logoImageBlob = logoImageBlob; + o.operatingSystems = operatingSystems; + o.usageText = usageText; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/CapacityProviderAutoScalingGroupProvider.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/CapacityProviderAutoScalingGroupProvider.java index 5a6a3301323..3db1a789a9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/CapacityProviderAutoScalingGroupProvider.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/CapacityProviderAutoScalingGroupProvider.java @@ -16,28 +16,19 @@ public final class CapacityProviderAutoScalingGroupProvider { * @return - ARN of the associated auto scaling group. * */ - private final String autoScalingGroupArn; + private String autoScalingGroupArn; /** * @return - Configuration block defining the parameters of the auto scaling. Detailed below. * */ - private final @Nullable CapacityProviderAutoScalingGroupProviderManagedScaling managedScaling; + private @Nullable CapacityProviderAutoScalingGroupProviderManagedScaling managedScaling; /** * @return - Enables or disables container-aware termination of instances in the auto scaling group when scale-in happens. Valid values are `ENABLED` and `DISABLED`. * */ - private final @Nullable String managedTerminationProtection; - - @CustomType.Constructor - private CapacityProviderAutoScalingGroupProvider( - @CustomType.Parameter("autoScalingGroupArn") String autoScalingGroupArn, - @CustomType.Parameter("managedScaling") @Nullable CapacityProviderAutoScalingGroupProviderManagedScaling managedScaling, - @CustomType.Parameter("managedTerminationProtection") @Nullable String managedTerminationProtection) { - this.autoScalingGroupArn = autoScalingGroupArn; - this.managedScaling = managedScaling; - this.managedTerminationProtection = managedTerminationProtection; - } + private @Nullable String managedTerminationProtection; + private CapacityProviderAutoScalingGroupProvider() {} /** * @return - ARN of the associated auto scaling group. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CapacityProviderAutoScalingGroupProvider defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String autoScalingGroupArn; private @Nullable CapacityProviderAutoScalingGroupProviderManagedScaling managedScaling; private @Nullable String managedTerminationProtection; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CapacityProviderAutoScalingGroupProvider defaults) { Objects.requireNonNull(defaults); this.autoScalingGroupArn = defaults.autoScalingGroupArn; @@ -84,19 +71,27 @@ public Builder(CapacityProviderAutoScalingGroupProvider defaults) { this.managedTerminationProtection = defaults.managedTerminationProtection; } + @CustomType.Setter public Builder autoScalingGroupArn(String autoScalingGroupArn) { this.autoScalingGroupArn = Objects.requireNonNull(autoScalingGroupArn); return this; } + @CustomType.Setter public Builder managedScaling(@Nullable CapacityProviderAutoScalingGroupProviderManagedScaling managedScaling) { this.managedScaling = managedScaling; return this; } + @CustomType.Setter public Builder managedTerminationProtection(@Nullable String managedTerminationProtection) { this.managedTerminationProtection = managedTerminationProtection; return this; - } public CapacityProviderAutoScalingGroupProvider build() { - return new CapacityProviderAutoScalingGroupProvider(autoScalingGroupArn, managedScaling, managedTerminationProtection); + } + public CapacityProviderAutoScalingGroupProvider build() { + final var o = new CapacityProviderAutoScalingGroupProvider(); + o.autoScalingGroupArn = autoScalingGroupArn; + o.managedScaling = managedScaling; + o.managedTerminationProtection = managedTerminationProtection; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/CapacityProviderAutoScalingGroupProviderManagedScaling.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/CapacityProviderAutoScalingGroupProviderManagedScaling.java index d4e6f87dbc9..d20eb2f7784 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/CapacityProviderAutoScalingGroupProviderManagedScaling.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/CapacityProviderAutoScalingGroupProviderManagedScaling.java @@ -16,42 +16,29 @@ public final class CapacityProviderAutoScalingGroupProviderManagedScaling { * @return Period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics for Auto Scaling group. If this parameter is omitted, the default value of 300 seconds is used. * */ - private final @Nullable Integer instanceWarmupPeriod; + private @Nullable Integer instanceWarmupPeriod; /** * @return Maximum step adjustment size. A number between 1 and 10,000. * */ - private final @Nullable Integer maximumScalingStepSize; + private @Nullable Integer maximumScalingStepSize; /** * @return Minimum step adjustment size. A number between 1 and 10,000. * */ - private final @Nullable Integer minimumScalingStepSize; + private @Nullable Integer minimumScalingStepSize; /** * @return Whether auto scaling is managed by ECS. Valid values are `ENABLED` and `DISABLED`. * */ - private final @Nullable String status; + private @Nullable String status; /** * @return Target utilization for the capacity provider. A number between 1 and 100. * */ - private final @Nullable Integer targetCapacity; - - @CustomType.Constructor - private CapacityProviderAutoScalingGroupProviderManagedScaling( - @CustomType.Parameter("instanceWarmupPeriod") @Nullable Integer instanceWarmupPeriod, - @CustomType.Parameter("maximumScalingStepSize") @Nullable Integer maximumScalingStepSize, - @CustomType.Parameter("minimumScalingStepSize") @Nullable Integer minimumScalingStepSize, - @CustomType.Parameter("status") @Nullable String status, - @CustomType.Parameter("targetCapacity") @Nullable Integer targetCapacity) { - this.instanceWarmupPeriod = instanceWarmupPeriod; - this.maximumScalingStepSize = maximumScalingStepSize; - this.minimumScalingStepSize = minimumScalingStepSize; - this.status = status; - this.targetCapacity = targetCapacity; - } + private @Nullable Integer targetCapacity; + private CapacityProviderAutoScalingGroupProviderManagedScaling() {} /** * @return Period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics for Auto Scaling group. If this parameter is omitted, the default value of 300 seconds is used. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(CapacityProviderAutoScalingGroupProviderManagedScaling defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer instanceWarmupPeriod; private @Nullable Integer maximumScalingStepSize; private @Nullable Integer minimumScalingStepSize; private @Nullable String status; private @Nullable Integer targetCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CapacityProviderAutoScalingGroupProviderManagedScaling defaults) { Objects.requireNonNull(defaults); this.instanceWarmupPeriod = defaults.instanceWarmupPeriod; @@ -116,27 +99,39 @@ public Builder(CapacityProviderAutoScalingGroupProviderManagedScaling defaults) this.targetCapacity = defaults.targetCapacity; } + @CustomType.Setter public Builder instanceWarmupPeriod(@Nullable Integer instanceWarmupPeriod) { this.instanceWarmupPeriod = instanceWarmupPeriod; return this; } + @CustomType.Setter public Builder maximumScalingStepSize(@Nullable Integer maximumScalingStepSize) { this.maximumScalingStepSize = maximumScalingStepSize; return this; } + @CustomType.Setter public Builder minimumScalingStepSize(@Nullable Integer minimumScalingStepSize) { this.minimumScalingStepSize = minimumScalingStepSize; return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; } + @CustomType.Setter public Builder targetCapacity(@Nullable Integer targetCapacity) { this.targetCapacity = targetCapacity; return this; - } public CapacityProviderAutoScalingGroupProviderManagedScaling build() { - return new CapacityProviderAutoScalingGroupProviderManagedScaling(instanceWarmupPeriod, maximumScalingStepSize, minimumScalingStepSize, status, targetCapacity); + } + public CapacityProviderAutoScalingGroupProviderManagedScaling build() { + final var o = new CapacityProviderAutoScalingGroupProviderManagedScaling(); + o.instanceWarmupPeriod = instanceWarmupPeriod; + o.maximumScalingStepSize = maximumScalingStepSize; + o.minimumScalingStepSize = minimumScalingStepSize; + o.status = status; + o.targetCapacity = targetCapacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterCapacityProvidersDefaultCapacityProviderStrategy.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterCapacityProvidersDefaultCapacityProviderStrategy.java index 4b8b5b9ad52..6b4982e62f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterCapacityProvidersDefaultCapacityProviderStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterCapacityProvidersDefaultCapacityProviderStrategy.java @@ -16,28 +16,19 @@ public final class ClusterCapacityProvidersDefaultCapacityProviderStrategy { * @return The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. Defaults to `0`. * */ - private final @Nullable Integer base; + private @Nullable Integer base; /** * @return Name of the capacity provider. * */ - private final String capacityProvider; + private String capacityProvider; /** * @return The relative percentage of the total number of launched tasks that should use the specified capacity provider. The `weight` value is taken into consideration after the `base` count of tasks has been satisfied. Defaults to `0`. * */ - private final @Nullable Integer weight; - - @CustomType.Constructor - private ClusterCapacityProvidersDefaultCapacityProviderStrategy( - @CustomType.Parameter("base") @Nullable Integer base, - @CustomType.Parameter("capacityProvider") String capacityProvider, - @CustomType.Parameter("weight") @Nullable Integer weight) { - this.base = base; - this.capacityProvider = capacityProvider; - this.weight = weight; - } + private @Nullable Integer weight; + private ClusterCapacityProvidersDefaultCapacityProviderStrategy() {} /** * @return The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. Defaults to `0`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ClusterCapacityProvidersDefaultCapacityProviderStrategy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer base; private String capacityProvider; private @Nullable Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterCapacityProvidersDefaultCapacityProviderStrategy defaults) { Objects.requireNonNull(defaults); this.base = defaults.base; @@ -84,19 +71,27 @@ public Builder(ClusterCapacityProvidersDefaultCapacityProviderStrategy defaults) this.weight = defaults.weight; } + @CustomType.Setter public Builder base(@Nullable Integer base) { this.base = base; return this; } + @CustomType.Setter public Builder capacityProvider(String capacityProvider) { this.capacityProvider = Objects.requireNonNull(capacityProvider); return this; } + @CustomType.Setter public Builder weight(@Nullable Integer weight) { this.weight = weight; return this; - } public ClusterCapacityProvidersDefaultCapacityProviderStrategy build() { - return new ClusterCapacityProvidersDefaultCapacityProviderStrategy(base, capacityProvider, weight); + } + public ClusterCapacityProvidersDefaultCapacityProviderStrategy build() { + final var o = new ClusterCapacityProvidersDefaultCapacityProviderStrategy(); + o.base = base; + o.capacityProvider = capacityProvider; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterConfiguration.java index f5d20acb6e9..bfc644e863c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterConfiguration.java @@ -15,13 +15,9 @@ public final class ClusterConfiguration { * @return The details of the execute command configuration. Detailed below. * */ - private final @Nullable ClusterConfigurationExecuteCommandConfiguration executeCommandConfiguration; - - @CustomType.Constructor - private ClusterConfiguration(@CustomType.Parameter("executeCommandConfiguration") @Nullable ClusterConfigurationExecuteCommandConfiguration executeCommandConfiguration) { - this.executeCommandConfiguration = executeCommandConfiguration; - } + private @Nullable ClusterConfigurationExecuteCommandConfiguration executeCommandConfiguration; + private ClusterConfiguration() {} /** * @return The details of the execute command configuration. Detailed below. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ClusterConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClusterConfigurationExecuteCommandConfiguration executeCommandConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterConfiguration defaults) { Objects.requireNonNull(defaults); this.executeCommandConfiguration = defaults.executeCommandConfiguration; } + @CustomType.Setter public Builder executeCommandConfiguration(@Nullable ClusterConfigurationExecuteCommandConfiguration executeCommandConfiguration) { this.executeCommandConfiguration = executeCommandConfiguration; return this; - } public ClusterConfiguration build() { - return new ClusterConfiguration(executeCommandConfiguration); + } + public ClusterConfiguration build() { + final var o = new ClusterConfiguration(); + o.executeCommandConfiguration = executeCommandConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterConfigurationExecuteCommandConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterConfigurationExecuteCommandConfiguration.java index f67dcc17d5d..29f6fca31fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterConfigurationExecuteCommandConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterConfigurationExecuteCommandConfiguration.java @@ -16,28 +16,19 @@ public final class ClusterConfigurationExecuteCommandConfiguration { * @return The AWS Key Management Service key ID to encrypt the data between the local client and the container. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return The log configuration for the results of the execute command actions Required when `logging` is `OVERRIDE`. Detailed below. * */ - private final @Nullable ClusterConfigurationExecuteCommandConfigurationLogConfiguration logConfiguration; + private @Nullable ClusterConfigurationExecuteCommandConfigurationLogConfiguration logConfiguration; /** * @return The log setting to use for redirecting logs for your execute command results. Valid values are `NONE`, `DEFAULT`, and `OVERRIDE`. * */ - private final @Nullable String logging; - - @CustomType.Constructor - private ClusterConfigurationExecuteCommandConfiguration( - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("logConfiguration") @Nullable ClusterConfigurationExecuteCommandConfigurationLogConfiguration logConfiguration, - @CustomType.Parameter("logging") @Nullable String logging) { - this.kmsKeyId = kmsKeyId; - this.logConfiguration = logConfiguration; - this.logging = logging; - } + private @Nullable String logging; + private ClusterConfigurationExecuteCommandConfiguration() {} /** * @return The AWS Key Management Service key ID to encrypt the data between the local client and the container. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ClusterConfigurationExecuteCommandConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsKeyId; private @Nullable ClusterConfigurationExecuteCommandConfigurationLogConfiguration logConfiguration; private @Nullable String logging; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterConfigurationExecuteCommandConfiguration defaults) { Objects.requireNonNull(defaults); this.kmsKeyId = defaults.kmsKeyId; @@ -84,19 +71,27 @@ public Builder(ClusterConfigurationExecuteCommandConfiguration defaults) { this.logging = defaults.logging; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder logConfiguration(@Nullable ClusterConfigurationExecuteCommandConfigurationLogConfiguration logConfiguration) { this.logConfiguration = logConfiguration; return this; } + @CustomType.Setter public Builder logging(@Nullable String logging) { this.logging = logging; return this; - } public ClusterConfigurationExecuteCommandConfiguration build() { - return new ClusterConfigurationExecuteCommandConfiguration(kmsKeyId, logConfiguration, logging); + } + public ClusterConfigurationExecuteCommandConfiguration build() { + final var o = new ClusterConfigurationExecuteCommandConfiguration(); + o.kmsKeyId = kmsKeyId; + o.logConfiguration = logConfiguration; + o.logging = logging; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterConfigurationExecuteCommandConfigurationLogConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterConfigurationExecuteCommandConfigurationLogConfiguration.java index a7c5ca1ffb0..1286b13d0fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterConfigurationExecuteCommandConfigurationLogConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterConfigurationExecuteCommandConfigurationLogConfiguration.java @@ -16,42 +16,29 @@ public final class ClusterConfigurationExecuteCommandConfigurationLogConfigurati * @return Whether or not to enable encryption on the CloudWatch logs. If not specified, encryption will be disabled. * */ - private final @Nullable Boolean cloudWatchEncryptionEnabled; + private @Nullable Boolean cloudWatchEncryptionEnabled; /** * @return The name of the CloudWatch log group to send logs to. * */ - private final @Nullable String cloudWatchLogGroupName; + private @Nullable String cloudWatchLogGroupName; /** * @return Whether or not to enable encryption on the logs sent to S3. If not specified, encryption will be disabled. * */ - private final @Nullable Boolean s3BucketEncryptionEnabled; + private @Nullable Boolean s3BucketEncryptionEnabled; /** * @return The name of the S3 bucket to send logs to. * */ - private final @Nullable String s3BucketName; + private @Nullable String s3BucketName; /** * @return An optional folder in the S3 bucket to place logs in. * */ - private final @Nullable String s3KeyPrefix; - - @CustomType.Constructor - private ClusterConfigurationExecuteCommandConfigurationLogConfiguration( - @CustomType.Parameter("cloudWatchEncryptionEnabled") @Nullable Boolean cloudWatchEncryptionEnabled, - @CustomType.Parameter("cloudWatchLogGroupName") @Nullable String cloudWatchLogGroupName, - @CustomType.Parameter("s3BucketEncryptionEnabled") @Nullable Boolean s3BucketEncryptionEnabled, - @CustomType.Parameter("s3BucketName") @Nullable String s3BucketName, - @CustomType.Parameter("s3KeyPrefix") @Nullable String s3KeyPrefix) { - this.cloudWatchEncryptionEnabled = cloudWatchEncryptionEnabled; - this.cloudWatchLogGroupName = cloudWatchLogGroupName; - this.s3BucketEncryptionEnabled = s3BucketEncryptionEnabled; - this.s3BucketName = s3BucketName; - this.s3KeyPrefix = s3KeyPrefix; - } + private @Nullable String s3KeyPrefix; + private ClusterConfigurationExecuteCommandConfigurationLogConfiguration() {} /** * @return Whether or not to enable encryption on the CloudWatch logs. If not specified, encryption will be disabled. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ClusterConfigurationExecuteCommandConfigurationLogConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean cloudWatchEncryptionEnabled; private @Nullable String cloudWatchLogGroupName; private @Nullable Boolean s3BucketEncryptionEnabled; private @Nullable String s3BucketName; private @Nullable String s3KeyPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterConfigurationExecuteCommandConfigurationLogConfiguration defaults) { Objects.requireNonNull(defaults); this.cloudWatchEncryptionEnabled = defaults.cloudWatchEncryptionEnabled; @@ -116,27 +99,39 @@ public Builder(ClusterConfigurationExecuteCommandConfigurationLogConfiguration d this.s3KeyPrefix = defaults.s3KeyPrefix; } + @CustomType.Setter public Builder cloudWatchEncryptionEnabled(@Nullable Boolean cloudWatchEncryptionEnabled) { this.cloudWatchEncryptionEnabled = cloudWatchEncryptionEnabled; return this; } + @CustomType.Setter public Builder cloudWatchLogGroupName(@Nullable String cloudWatchLogGroupName) { this.cloudWatchLogGroupName = cloudWatchLogGroupName; return this; } + @CustomType.Setter public Builder s3BucketEncryptionEnabled(@Nullable Boolean s3BucketEncryptionEnabled) { this.s3BucketEncryptionEnabled = s3BucketEncryptionEnabled; return this; } + @CustomType.Setter public Builder s3BucketName(@Nullable String s3BucketName) { this.s3BucketName = s3BucketName; return this; } + @CustomType.Setter public Builder s3KeyPrefix(@Nullable String s3KeyPrefix) { this.s3KeyPrefix = s3KeyPrefix; return this; - } public ClusterConfigurationExecuteCommandConfigurationLogConfiguration build() { - return new ClusterConfigurationExecuteCommandConfigurationLogConfiguration(cloudWatchEncryptionEnabled, cloudWatchLogGroupName, s3BucketEncryptionEnabled, s3BucketName, s3KeyPrefix); + } + public ClusterConfigurationExecuteCommandConfigurationLogConfiguration build() { + final var o = new ClusterConfigurationExecuteCommandConfigurationLogConfiguration(); + o.cloudWatchEncryptionEnabled = cloudWatchEncryptionEnabled; + o.cloudWatchLogGroupName = cloudWatchLogGroupName; + o.s3BucketEncryptionEnabled = s3BucketEncryptionEnabled; + o.s3BucketName = s3BucketName; + o.s3KeyPrefix = s3KeyPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterDefaultCapacityProviderStrategy.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterDefaultCapacityProviderStrategy.java index f596f6f9b00..a55703f6b7e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterDefaultCapacityProviderStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterDefaultCapacityProviderStrategy.java @@ -16,28 +16,19 @@ public final class ClusterDefaultCapacityProviderStrategy { * @return The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. * */ - private final @Nullable Integer base; + private @Nullable Integer base; /** * @return The short name of the capacity provider. * */ - private final String capacityProvider; + private String capacityProvider; /** * @return The relative percentage of the total number of launched tasks that should use the specified capacity provider. * */ - private final @Nullable Integer weight; - - @CustomType.Constructor - private ClusterDefaultCapacityProviderStrategy( - @CustomType.Parameter("base") @Nullable Integer base, - @CustomType.Parameter("capacityProvider") String capacityProvider, - @CustomType.Parameter("weight") @Nullable Integer weight) { - this.base = base; - this.capacityProvider = capacityProvider; - this.weight = weight; - } + private @Nullable Integer weight; + private ClusterDefaultCapacityProviderStrategy() {} /** * @return The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ClusterDefaultCapacityProviderStrategy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer base; private String capacityProvider; private @Nullable Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterDefaultCapacityProviderStrategy defaults) { Objects.requireNonNull(defaults); this.base = defaults.base; @@ -84,19 +71,27 @@ public Builder(ClusterDefaultCapacityProviderStrategy defaults) { this.weight = defaults.weight; } + @CustomType.Setter public Builder base(@Nullable Integer base) { this.base = base; return this; } + @CustomType.Setter public Builder capacityProvider(String capacityProvider) { this.capacityProvider = Objects.requireNonNull(capacityProvider); return this; } + @CustomType.Setter public Builder weight(@Nullable Integer weight) { this.weight = weight; return this; - } public ClusterDefaultCapacityProviderStrategy build() { - return new ClusterDefaultCapacityProviderStrategy(base, capacityProvider, weight); + } + public ClusterDefaultCapacityProviderStrategy build() { + final var o = new ClusterDefaultCapacityProviderStrategy(); + o.base = base; + o.capacityProvider = capacityProvider; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterSetting.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterSetting.java index 276def4c227..d7501b00d26 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ClusterSetting.java @@ -13,21 +13,14 @@ public final class ClusterSetting { * @return Name of the setting to manage. Valid values: `containerInsights`. * */ - private final String name; + private String name; /** * @return The value to assign to the setting. Valid values are `enabled` and `disabled`. * */ - private final String value; - - @CustomType.Constructor - private ClusterSetting( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private ClusterSetting() {} /** * @return Name of the setting to manage. Valid values: `containerInsights`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ClusterSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterSetting defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ClusterSetting build() { - return new ClusterSetting(name, value); + } + public ClusterSetting build() { + final var o = new ClusterSetting(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetClusterResult.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetClusterResult.java index 6af24d28e3d..8fd826e77e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetClusterResult.java @@ -16,59 +16,40 @@ public final class GetClusterResult { * @return The ARN of the ECS Cluster * */ - private final String arn; - private final String clusterName; + private String arn; + private String clusterName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The number of pending tasks for the ECS Cluster * */ - private final Integer pendingTasksCount; + private Integer pendingTasksCount; /** * @return The number of registered container instances for the ECS Cluster * */ - private final Integer registeredContainerInstancesCount; + private Integer registeredContainerInstancesCount; /** * @return The number of running tasks for the ECS Cluster * */ - private final Integer runningTasksCount; + private Integer runningTasksCount; /** * @return The settings associated with the ECS Cluster. * */ - private final List settings; + private List settings; /** * @return The status of the ECS Cluster * */ - private final String status; - - @CustomType.Constructor - private GetClusterResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("clusterName") String clusterName, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("pendingTasksCount") Integer pendingTasksCount, - @CustomType.Parameter("registeredContainerInstancesCount") Integer registeredContainerInstancesCount, - @CustomType.Parameter("runningTasksCount") Integer runningTasksCount, - @CustomType.Parameter("settings") List settings, - @CustomType.Parameter("status") String status) { - this.arn = arn; - this.clusterName = clusterName; - this.id = id; - this.pendingTasksCount = pendingTasksCount; - this.registeredContainerInstancesCount = registeredContainerInstancesCount; - this.runningTasksCount = runningTasksCount; - this.settings = settings; - this.status = status; - } + private String status; + private GetClusterResult() {} /** * @return The ARN of the ECS Cluster * @@ -129,7 +110,7 @@ public static Builder builder() { public static Builder builder(GetClusterResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String clusterName; @@ -139,11 +120,7 @@ public static final class Builder { private Integer runningTasksCount; private List settings; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -156,30 +133,37 @@ public Builder(GetClusterResult defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder clusterName(String clusterName) { this.clusterName = Objects.requireNonNull(clusterName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder pendingTasksCount(Integer pendingTasksCount) { this.pendingTasksCount = Objects.requireNonNull(pendingTasksCount); return this; } + @CustomType.Setter public Builder registeredContainerInstancesCount(Integer registeredContainerInstancesCount) { this.registeredContainerInstancesCount = Objects.requireNonNull(registeredContainerInstancesCount); return this; } + @CustomType.Setter public Builder runningTasksCount(Integer runningTasksCount) { this.runningTasksCount = Objects.requireNonNull(runningTasksCount); return this; } + @CustomType.Setter public Builder settings(List settings) { this.settings = Objects.requireNonNull(settings); return this; @@ -187,11 +171,22 @@ public Builder settings(List settings) { public Builder settings(GetClusterSetting... settings) { return settings(List.of(settings)); } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public GetClusterResult build() { - return new GetClusterResult(arn, clusterName, id, pendingTasksCount, registeredContainerInstancesCount, runningTasksCount, settings, status); + } + public GetClusterResult build() { + final var o = new GetClusterResult(); + o.arn = arn; + o.clusterName = clusterName; + o.id = id; + o.pendingTasksCount = pendingTasksCount; + o.registeredContainerInstancesCount = registeredContainerInstancesCount; + o.runningTasksCount = runningTasksCount; + o.settings = settings; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetClusterSetting.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetClusterSetting.java index b9a7b43bc7d..69e3bd344bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetClusterSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetClusterSetting.java @@ -9,17 +9,10 @@ @CustomType public final class GetClusterSetting { - private final String name; - private final String value; - - @CustomType.Constructor - private GetClusterSetting( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String name; + private String value; + private GetClusterSetting() {} public String name() { return this.name; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetClusterSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterSetting defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetClusterSetting build() { - return new GetClusterSetting(name, value); + } + public GetClusterSetting build() { + final var o = new GetClusterSetting(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetContainerDefinitionResult.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetContainerDefinitionResult.java index 673fdfa1f5a..756bf4d3383 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetContainerDefinitionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetContainerDefinitionResult.java @@ -12,80 +12,55 @@ @CustomType public final class GetContainerDefinitionResult { - private final String containerName; + private String containerName; /** * @return The CPU limit for this container definition * */ - private final Integer cpu; + private Integer cpu; /** * @return Indicator if networking is disabled * */ - private final Boolean disableNetworking; + private Boolean disableNetworking; /** * @return Set docker labels * */ - private final Map dockerLabels; + private Map dockerLabels; /** * @return The environment in use * */ - private final Map environment; + private Map environment; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The docker image in use, including the digest * */ - private final String image; + private String image; /** * @return The digest of the docker image in use * */ - private final String imageDigest; + private String imageDigest; /** * @return The memory limit for this container definition * */ - private final Integer memory; + private Integer memory; /** * @return The soft limit (in MiB) of memory to reserve for the container. When system memory is under contention, Docker attempts to keep the container memory to this soft limit * */ - private final Integer memoryReservation; - private final String taskDefinition; - - @CustomType.Constructor - private GetContainerDefinitionResult( - @CustomType.Parameter("containerName") String containerName, - @CustomType.Parameter("cpu") Integer cpu, - @CustomType.Parameter("disableNetworking") Boolean disableNetworking, - @CustomType.Parameter("dockerLabels") Map dockerLabels, - @CustomType.Parameter("environment") Map environment, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("image") String image, - @CustomType.Parameter("imageDigest") String imageDigest, - @CustomType.Parameter("memory") Integer memory, - @CustomType.Parameter("memoryReservation") Integer memoryReservation, - @CustomType.Parameter("taskDefinition") String taskDefinition) { - this.containerName = containerName; - this.cpu = cpu; - this.disableNetworking = disableNetworking; - this.dockerLabels = dockerLabels; - this.environment = environment; - this.id = id; - this.image = image; - this.imageDigest = imageDigest; - this.memory = memory; - this.memoryReservation = memoryReservation; - this.taskDefinition = taskDefinition; - } + private Integer memoryReservation; + private String taskDefinition; + private GetContainerDefinitionResult() {} public String containerName() { return this.containerName; } @@ -163,7 +138,7 @@ public static Builder builder() { public static Builder builder(GetContainerDefinitionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String containerName; private Integer cpu; @@ -176,11 +151,7 @@ public static final class Builder { private Integer memory; private Integer memoryReservation; private String taskDefinition; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetContainerDefinitionResult defaults) { Objects.requireNonNull(defaults); this.containerName = defaults.containerName; @@ -196,51 +167,75 @@ public Builder(GetContainerDefinitionResult defaults) { this.taskDefinition = defaults.taskDefinition; } + @CustomType.Setter public Builder containerName(String containerName) { this.containerName = Objects.requireNonNull(containerName); return this; } + @CustomType.Setter public Builder cpu(Integer cpu) { this.cpu = Objects.requireNonNull(cpu); return this; } + @CustomType.Setter public Builder disableNetworking(Boolean disableNetworking) { this.disableNetworking = Objects.requireNonNull(disableNetworking); return this; } + @CustomType.Setter public Builder dockerLabels(Map dockerLabels) { this.dockerLabels = Objects.requireNonNull(dockerLabels); return this; } + @CustomType.Setter public Builder environment(Map environment) { this.environment = Objects.requireNonNull(environment); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder image(String image) { this.image = Objects.requireNonNull(image); return this; } + @CustomType.Setter public Builder imageDigest(String imageDigest) { this.imageDigest = Objects.requireNonNull(imageDigest); return this; } + @CustomType.Setter public Builder memory(Integer memory) { this.memory = Objects.requireNonNull(memory); return this; } + @CustomType.Setter public Builder memoryReservation(Integer memoryReservation) { this.memoryReservation = Objects.requireNonNull(memoryReservation); return this; } + @CustomType.Setter public Builder taskDefinition(String taskDefinition) { this.taskDefinition = Objects.requireNonNull(taskDefinition); return this; - } public GetContainerDefinitionResult build() { - return new GetContainerDefinitionResult(containerName, cpu, disableNetworking, dockerLabels, environment, id, image, imageDigest, memory, memoryReservation, taskDefinition); + } + public GetContainerDefinitionResult build() { + final var o = new GetContainerDefinitionResult(); + o.containerName = containerName; + o.cpu = cpu; + o.disableNetworking = disableNetworking; + o.dockerLabels = dockerLabels; + o.environment = environment; + o.id = id; + o.image = image; + o.imageDigest = imageDigest; + o.memory = memory; + o.memoryReservation = memoryReservation; + o.taskDefinition = taskDefinition; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetServiceResult.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetServiceResult.java index cf33750fe4a..c124906368b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetServiceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetServiceResult.java @@ -15,62 +15,41 @@ public final class GetServiceResult { * @return The ARN of the ECS Service * */ - private final String arn; - private final String clusterArn; + private String arn; + private String clusterArn; /** * @return The number of tasks for the ECS Service * */ - private final Integer desiredCount; + private Integer desiredCount; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The launch type for the ECS Service * */ - private final String launchType; + private String launchType; /** * @return The scheduling strategy for the ECS Service * */ - private final String schedulingStrategy; - private final String serviceName; + private String schedulingStrategy; + private String serviceName; /** * @return Resource tags. * */ - private final Map tags; + private Map tags; /** * @return The family for the latest ACTIVE revision * */ - private final String taskDefinition; - - @CustomType.Constructor - private GetServiceResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("clusterArn") String clusterArn, - @CustomType.Parameter("desiredCount") Integer desiredCount, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("launchType") String launchType, - @CustomType.Parameter("schedulingStrategy") String schedulingStrategy, - @CustomType.Parameter("serviceName") String serviceName, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("taskDefinition") String taskDefinition) { - this.arn = arn; - this.clusterArn = clusterArn; - this.desiredCount = desiredCount; - this.id = id; - this.launchType = launchType; - this.schedulingStrategy = schedulingStrategy; - this.serviceName = serviceName; - this.tags = tags; - this.taskDefinition = taskDefinition; - } + private String taskDefinition; + private GetServiceResult() {} /** * @return The ARN of the ECS Service * @@ -134,7 +113,7 @@ public static Builder builder() { public static Builder builder(GetServiceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String clusterArn; @@ -145,11 +124,7 @@ public static final class Builder { private String serviceName; private Map tags; private String taskDefinition; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -163,43 +138,63 @@ public Builder(GetServiceResult defaults) { this.taskDefinition = defaults.taskDefinition; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder clusterArn(String clusterArn) { this.clusterArn = Objects.requireNonNull(clusterArn); return this; } + @CustomType.Setter public Builder desiredCount(Integer desiredCount) { this.desiredCount = Objects.requireNonNull(desiredCount); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder launchType(String launchType) { this.launchType = Objects.requireNonNull(launchType); return this; } + @CustomType.Setter public Builder schedulingStrategy(String schedulingStrategy) { this.schedulingStrategy = Objects.requireNonNull(schedulingStrategy); return this; } + @CustomType.Setter public Builder serviceName(String serviceName) { this.serviceName = Objects.requireNonNull(serviceName); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder taskDefinition(String taskDefinition) { this.taskDefinition = Objects.requireNonNull(taskDefinition); return this; - } public GetServiceResult build() { - return new GetServiceResult(arn, clusterArn, desiredCount, id, launchType, schedulingStrategy, serviceName, tags, taskDefinition); + } + public GetServiceResult build() { + final var o = new GetServiceResult(); + o.arn = arn; + o.clusterArn = clusterArn; + o.desiredCount = desiredCount; + o.id = id; + o.launchType = launchType; + o.schedulingStrategy = schedulingStrategy; + o.serviceName = serviceName; + o.tags = tags; + o.taskDefinition = taskDefinition; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetTaskDefinitionResult.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetTaskDefinitionResult.java index 9f291b79f49..9e0885dc654 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetTaskDefinitionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/GetTaskDefinitionResult.java @@ -14,59 +14,40 @@ public final class GetTaskDefinitionResult { * @return The ARN of the task definition * */ - private final String arn; + private String arn; /** * @return The family of this task definition * */ - private final String family; + private String family; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The Docker networking mode to use for the containers in this task. * */ - private final String networkMode; + private String networkMode; /** * @return The revision of this task definition * */ - private final Integer revision; + private Integer revision; /** * @return The status of this task definition * */ - private final String status; - private final String taskDefinition; + private String status; + private String taskDefinition; /** * @return The ARN of the IAM role that containers in this task can assume * */ - private final String taskRoleArn; - - @CustomType.Constructor - private GetTaskDefinitionResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("family") String family, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("networkMode") String networkMode, - @CustomType.Parameter("revision") Integer revision, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("taskDefinition") String taskDefinition, - @CustomType.Parameter("taskRoleArn") String taskRoleArn) { - this.arn = arn; - this.family = family; - this.id = id; - this.networkMode = networkMode; - this.revision = revision; - this.status = status; - this.taskDefinition = taskDefinition; - this.taskRoleArn = taskRoleArn; - } + private String taskRoleArn; + private GetTaskDefinitionResult() {} /** * @return The ARN of the task definition * @@ -127,7 +108,7 @@ public static Builder builder() { public static Builder builder(GetTaskDefinitionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String family; @@ -137,11 +118,7 @@ public static final class Builder { private String status; private String taskDefinition; private String taskRoleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTaskDefinitionResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -154,39 +131,57 @@ public Builder(GetTaskDefinitionResult defaults) { this.taskRoleArn = defaults.taskRoleArn; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder family(String family) { this.family = Objects.requireNonNull(family); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder networkMode(String networkMode) { this.networkMode = Objects.requireNonNull(networkMode); return this; } + @CustomType.Setter public Builder revision(Integer revision) { this.revision = Objects.requireNonNull(revision); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder taskDefinition(String taskDefinition) { this.taskDefinition = Objects.requireNonNull(taskDefinition); return this; } + @CustomType.Setter public Builder taskRoleArn(String taskRoleArn) { this.taskRoleArn = Objects.requireNonNull(taskRoleArn); return this; - } public GetTaskDefinitionResult build() { - return new GetTaskDefinitionResult(arn, family, id, networkMode, revision, status, taskDefinition, taskRoleArn); + } + public GetTaskDefinitionResult build() { + final var o = new GetTaskDefinitionResult(); + o.arn = arn; + o.family = family; + o.id = id; + o.networkMode = networkMode; + o.revision = revision; + o.status = status; + o.taskDefinition = taskDefinition; + o.taskRoleArn = taskRoleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceCapacityProviderStrategy.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceCapacityProviderStrategy.java index 4c9612d6fdf..4ee9c22082f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceCapacityProviderStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceCapacityProviderStrategy.java @@ -16,28 +16,19 @@ public final class ServiceCapacityProviderStrategy { * @return Number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. * */ - private final @Nullable Integer base; + private @Nullable Integer base; /** * @return Short name of the capacity provider. * */ - private final String capacityProvider; + private String capacityProvider; /** * @return Relative percentage of the total number of launched tasks that should use the specified capacity provider. * */ - private final @Nullable Integer weight; - - @CustomType.Constructor - private ServiceCapacityProviderStrategy( - @CustomType.Parameter("base") @Nullable Integer base, - @CustomType.Parameter("capacityProvider") String capacityProvider, - @CustomType.Parameter("weight") @Nullable Integer weight) { - this.base = base; - this.capacityProvider = capacityProvider; - this.weight = weight; - } + private @Nullable Integer weight; + private ServiceCapacityProviderStrategy() {} /** * @return Number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ServiceCapacityProviderStrategy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer base; private String capacityProvider; private @Nullable Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceCapacityProviderStrategy defaults) { Objects.requireNonNull(defaults); this.base = defaults.base; @@ -84,19 +71,27 @@ public Builder(ServiceCapacityProviderStrategy defaults) { this.weight = defaults.weight; } + @CustomType.Setter public Builder base(@Nullable Integer base) { this.base = base; return this; } + @CustomType.Setter public Builder capacityProvider(String capacityProvider) { this.capacityProvider = Objects.requireNonNull(capacityProvider); return this; } + @CustomType.Setter public Builder weight(@Nullable Integer weight) { this.weight = weight; return this; - } public ServiceCapacityProviderStrategy build() { - return new ServiceCapacityProviderStrategy(base, capacityProvider, weight); + } + public ServiceCapacityProviderStrategy build() { + final var o = new ServiceCapacityProviderStrategy(); + o.base = base; + o.capacityProvider = capacityProvider; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceDeploymentCircuitBreaker.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceDeploymentCircuitBreaker.java index c7ed58eb72c..3d745113cc8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceDeploymentCircuitBreaker.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceDeploymentCircuitBreaker.java @@ -13,21 +13,14 @@ public final class ServiceDeploymentCircuitBreaker { * @return Whether to enable the deployment circuit breaker logic for the service. * */ - private final Boolean enable; + private Boolean enable; /** * @return Whether to enable Amazon ECS to roll back the service if a service deployment fails. If rollback is enabled, when a service deployment fails, the service is rolled back to the last deployment that completed successfully. * */ - private final Boolean rollback; - - @CustomType.Constructor - private ServiceDeploymentCircuitBreaker( - @CustomType.Parameter("enable") Boolean enable, - @CustomType.Parameter("rollback") Boolean rollback) { - this.enable = enable; - this.rollback = rollback; - } + private Boolean rollback; + private ServiceDeploymentCircuitBreaker() {} /** * @return Whether to enable the deployment circuit breaker logic for the service. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ServiceDeploymentCircuitBreaker defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enable; private Boolean rollback; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceDeploymentCircuitBreaker defaults) { Objects.requireNonNull(defaults); this.enable = defaults.enable; this.rollback = defaults.rollback; } + @CustomType.Setter public Builder enable(Boolean enable) { this.enable = Objects.requireNonNull(enable); return this; } + @CustomType.Setter public Builder rollback(Boolean rollback) { this.rollback = Objects.requireNonNull(rollback); return this; - } public ServiceDeploymentCircuitBreaker build() { - return new ServiceDeploymentCircuitBreaker(enable, rollback); + } + public ServiceDeploymentCircuitBreaker build() { + final var o = new ServiceDeploymentCircuitBreaker(); + o.enable = enable; + o.rollback = rollback; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceDeploymentController.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceDeploymentController.java index 327b2bd9a62..bb00c7e6e31 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceDeploymentController.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceDeploymentController.java @@ -15,13 +15,9 @@ public final class ServiceDeploymentController { * @return Type of deployment controller. Valid values: `CODE_DEPLOY`, `ECS`, `EXTERNAL`. Default: `ECS`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private ServiceDeploymentController(@CustomType.Parameter("type") @Nullable String type) { - this.type = type; - } + private @Nullable String type; + private ServiceDeploymentController() {} /** * @return Type of deployment controller. Valid values: `CODE_DEPLOY`, `ECS`, `EXTERNAL`. Default: `ECS`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ServiceDeploymentController defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceDeploymentController defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public ServiceDeploymentController build() { - return new ServiceDeploymentController(type); + } + public ServiceDeploymentController build() { + final var o = new ServiceDeploymentController(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceLoadBalancer.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceLoadBalancer.java index 088b80574b3..17811f63ce7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceLoadBalancer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceLoadBalancer.java @@ -16,35 +16,24 @@ public final class ServiceLoadBalancer { * @return Name of the container to associate with the load balancer (as it appears in a container definition). * */ - private final String containerName; + private String containerName; /** * @return Port on the container to associate with the load balancer. * */ - private final Integer containerPort; + private Integer containerPort; /** * @return Name of the ELB (Classic) to associate with the service. * */ - private final @Nullable String elbName; + private @Nullable String elbName; /** * @return ARN of the Load Balancer target group to associate with the service. * */ - private final @Nullable String targetGroupArn; - - @CustomType.Constructor - private ServiceLoadBalancer( - @CustomType.Parameter("containerName") String containerName, - @CustomType.Parameter("containerPort") Integer containerPort, - @CustomType.Parameter("elbName") @Nullable String elbName, - @CustomType.Parameter("targetGroupArn") @Nullable String targetGroupArn) { - this.containerName = containerName; - this.containerPort = containerPort; - this.elbName = elbName; - this.targetGroupArn = targetGroupArn; - } + private @Nullable String targetGroupArn; + private ServiceLoadBalancer() {} /** * @return Name of the container to associate with the load balancer (as it appears in a container definition). * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ServiceLoadBalancer defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String containerName; private Integer containerPort; private @Nullable String elbName; private @Nullable String targetGroupArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceLoadBalancer defaults) { Objects.requireNonNull(defaults); this.containerName = defaults.containerName; @@ -100,23 +85,33 @@ public Builder(ServiceLoadBalancer defaults) { this.targetGroupArn = defaults.targetGroupArn; } + @CustomType.Setter public Builder containerName(String containerName) { this.containerName = Objects.requireNonNull(containerName); return this; } + @CustomType.Setter public Builder containerPort(Integer containerPort) { this.containerPort = Objects.requireNonNull(containerPort); return this; } + @CustomType.Setter public Builder elbName(@Nullable String elbName) { this.elbName = elbName; return this; } + @CustomType.Setter public Builder targetGroupArn(@Nullable String targetGroupArn) { this.targetGroupArn = targetGroupArn; return this; - } public ServiceLoadBalancer build() { - return new ServiceLoadBalancer(containerName, containerPort, elbName, targetGroupArn); + } + public ServiceLoadBalancer build() { + final var o = new ServiceLoadBalancer(); + o.containerName = containerName; + o.containerPort = containerPort; + o.elbName = elbName; + o.targetGroupArn = targetGroupArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceNetworkConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceNetworkConfiguration.java index 48c116d116b..157267057e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceNetworkConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceNetworkConfiguration.java @@ -17,28 +17,19 @@ public final class ServiceNetworkConfiguration { * @return Assign a public IP address to the ENI (Fargate launch type only). Valid values are `true` or `false`. Default `false`. * */ - private final @Nullable Boolean assignPublicIp; + private @Nullable Boolean assignPublicIp; /** * @return Security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. * */ - private final @Nullable List securityGroups; + private @Nullable List securityGroups; /** * @return Subnets associated with the task or service. * */ - private final List subnets; - - @CustomType.Constructor - private ServiceNetworkConfiguration( - @CustomType.Parameter("assignPublicIp") @Nullable Boolean assignPublicIp, - @CustomType.Parameter("securityGroups") @Nullable List securityGroups, - @CustomType.Parameter("subnets") List subnets) { - this.assignPublicIp = assignPublicIp; - this.securityGroups = securityGroups; - this.subnets = subnets; - } + private List subnets; + private ServiceNetworkConfiguration() {} /** * @return Assign a public IP address to the ENI (Fargate launch type only). Valid values are `true` or `false`. Default `false`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(ServiceNetworkConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean assignPublicIp; private @Nullable List securityGroups; private List subnets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceNetworkConfiguration defaults) { Objects.requireNonNull(defaults); this.assignPublicIp = defaults.assignPublicIp; @@ -85,10 +72,12 @@ public Builder(ServiceNetworkConfiguration defaults) { this.subnets = defaults.subnets; } + @CustomType.Setter public Builder assignPublicIp(@Nullable Boolean assignPublicIp) { this.assignPublicIp = assignPublicIp; return this; } + @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { this.securityGroups = securityGroups; return this; @@ -96,14 +85,20 @@ public Builder securityGroups(@Nullable List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; } public Builder subnets(String... subnets) { return subnets(List.of(subnets)); - } public ServiceNetworkConfiguration build() { - return new ServiceNetworkConfiguration(assignPublicIp, securityGroups, subnets); + } + public ServiceNetworkConfiguration build() { + final var o = new ServiceNetworkConfiguration(); + o.assignPublicIp = assignPublicIp; + o.securityGroups = securityGroups; + o.subnets = subnets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceOrderedPlacementStrategy.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceOrderedPlacementStrategy.java index d8c35b83619..eec0f69d4f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceOrderedPlacementStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceOrderedPlacementStrategy.java @@ -18,21 +18,14 @@ public final class ServiceOrderedPlacementStrategy { * needed. For more information, see [Placement Strategy](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PlacementStrategy.html). * */ - private final @Nullable String field; + private @Nullable String field; /** * @return Type of placement strategy. Must be one of: `binpack`, `random`, or `spread` * */ - private final String type; - - @CustomType.Constructor - private ServiceOrderedPlacementStrategy( - @CustomType.Parameter("field") @Nullable String field, - @CustomType.Parameter("type") String type) { - this.field = field; - this.type = type; - } + private String type; + private ServiceOrderedPlacementStrategy() {} /** * @return For the `spread` placement strategy, valid values are `instanceId` (or `host`, * which has the same effect), or any platform or custom attribute that is applied to a container instance. @@ -58,30 +51,32 @@ public static Builder builder() { public static Builder builder(ServiceOrderedPlacementStrategy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String field; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceOrderedPlacementStrategy defaults) { Objects.requireNonNull(defaults); this.field = defaults.field; this.type = defaults.type; } + @CustomType.Setter public Builder field(@Nullable String field) { this.field = field; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ServiceOrderedPlacementStrategy build() { - return new ServiceOrderedPlacementStrategy(field, type); + } + public ServiceOrderedPlacementStrategy build() { + final var o = new ServiceOrderedPlacementStrategy(); + o.field = field; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServicePlacementConstraint.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServicePlacementConstraint.java index 9a5d3666b6c..6033576b7fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServicePlacementConstraint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServicePlacementConstraint.java @@ -15,21 +15,14 @@ public final class ServicePlacementConstraint { * @return Cluster Query Language expression to apply to the constraint. Does not need to be specified for the `distinctInstance` type. For more information, see [Cluster Query Language in the Amazon EC2 Container Service Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html). * */ - private final @Nullable String expression; + private @Nullable String expression; /** * @return Type of constraint. The only valid values at this time are `memberOf` and `distinctInstance`. * */ - private final String type; - - @CustomType.Constructor - private ServicePlacementConstraint( - @CustomType.Parameter("expression") @Nullable String expression, - @CustomType.Parameter("type") String type) { - this.expression = expression; - this.type = type; - } + private String type; + private ServicePlacementConstraint() {} /** * @return Cluster Query Language expression to apply to the constraint. Does not need to be specified for the `distinctInstance` type. For more information, see [Cluster Query Language in the Amazon EC2 Container Service Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html). * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ServicePlacementConstraint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String expression; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServicePlacementConstraint defaults) { Objects.requireNonNull(defaults); this.expression = defaults.expression; this.type = defaults.type; } + @CustomType.Setter public Builder expression(@Nullable String expression) { this.expression = expression; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ServicePlacementConstraint build() { - return new ServicePlacementConstraint(expression, type); + } + public ServicePlacementConstraint build() { + final var o = new ServicePlacementConstraint(); + o.expression = expression; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceServiceRegistries.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceServiceRegistries.java index 4cc2b69592c..4c1a22d6f33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceServiceRegistries.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/ServiceServiceRegistries.java @@ -16,35 +16,24 @@ public final class ServiceServiceRegistries { * @return Container name value, already specified in the task definition, to be used for your service discovery service. * */ - private final @Nullable String containerName; + private @Nullable String containerName; /** * @return Port value, already specified in the task definition, to be used for your service discovery service. * */ - private final @Nullable Integer containerPort; + private @Nullable Integer containerPort; /** * @return Port value used if your Service Discovery service specified an SRV record. * */ - private final @Nullable Integer port; + private @Nullable Integer port; /** * @return ARN of the Service Registry. The currently supported service registry is Amazon Route 53 Auto Naming Service(`aws.servicediscovery.Service`). For more information, see [Service](https://docs.aws.amazon.com/Route53/latest/APIReference/API_autonaming_Service.html) * */ - private final String registryArn; - - @CustomType.Constructor - private ServiceServiceRegistries( - @CustomType.Parameter("containerName") @Nullable String containerName, - @CustomType.Parameter("containerPort") @Nullable Integer containerPort, - @CustomType.Parameter("port") @Nullable Integer port, - @CustomType.Parameter("registryArn") String registryArn) { - this.containerName = containerName; - this.containerPort = containerPort; - this.port = port; - this.registryArn = registryArn; - } + private String registryArn; + private ServiceServiceRegistries() {} /** * @return Container name value, already specified in the task definition, to be used for your service discovery service. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ServiceServiceRegistries defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String containerName; private @Nullable Integer containerPort; private @Nullable Integer port; private String registryArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceServiceRegistries defaults) { Objects.requireNonNull(defaults); this.containerName = defaults.containerName; @@ -100,23 +85,33 @@ public Builder(ServiceServiceRegistries defaults) { this.registryArn = defaults.registryArn; } + @CustomType.Setter public Builder containerName(@Nullable String containerName) { this.containerName = containerName; return this; } + @CustomType.Setter public Builder containerPort(@Nullable Integer containerPort) { this.containerPort = containerPort; return this; } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; } + @CustomType.Setter public Builder registryArn(String registryArn) { this.registryArn = Objects.requireNonNull(registryArn); return this; - } public ServiceServiceRegistries build() { - return new ServiceServiceRegistries(containerName, containerPort, port, registryArn); + } + public ServiceServiceRegistries build() { + final var o = new ServiceServiceRegistries(); + o.containerName = containerName; + o.containerPort = containerPort; + o.port = port; + o.registryArn = registryArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionEphemeralStorage.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionEphemeralStorage.java index 312e9aac585..4fe8f0217ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionEphemeralStorage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionEphemeralStorage.java @@ -13,13 +13,9 @@ public final class TaskDefinitionEphemeralStorage { * @return The total amount, in GiB, of ephemeral storage to set for the task. The minimum supported value is `21` GiB and the maximum supported value is `200` GiB. * */ - private final Integer sizeInGib; - - @CustomType.Constructor - private TaskDefinitionEphemeralStorage(@CustomType.Parameter("sizeInGib") Integer sizeInGib) { - this.sizeInGib = sizeInGib; - } + private Integer sizeInGib; + private TaskDefinitionEphemeralStorage() {} /** * @return The total amount, in GiB, of ephemeral storage to set for the task. The minimum supported value is `21` GiB and the maximum supported value is `200` GiB. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(TaskDefinitionEphemeralStorage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer sizeInGib; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskDefinitionEphemeralStorage defaults) { Objects.requireNonNull(defaults); this.sizeInGib = defaults.sizeInGib; } + @CustomType.Setter public Builder sizeInGib(Integer sizeInGib) { this.sizeInGib = Objects.requireNonNull(sizeInGib); return this; - } public TaskDefinitionEphemeralStorage build() { - return new TaskDefinitionEphemeralStorage(sizeInGib); + } + public TaskDefinitionEphemeralStorage build() { + final var o = new TaskDefinitionEphemeralStorage(); + o.sizeInGib = sizeInGib; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionInferenceAccelerator.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionInferenceAccelerator.java index 10f077234d6..ae86314fae1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionInferenceAccelerator.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionInferenceAccelerator.java @@ -13,21 +13,14 @@ public final class TaskDefinitionInferenceAccelerator { * @return Elastic Inference accelerator device name. The deviceName must also be referenced in a container definition as a ResourceRequirement. * */ - private final String deviceName; + private String deviceName; /** * @return Elastic Inference accelerator type to use. * */ - private final String deviceType; - - @CustomType.Constructor - private TaskDefinitionInferenceAccelerator( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("deviceType") String deviceType) { - this.deviceName = deviceName; - this.deviceType = deviceType; - } + private String deviceType; + private TaskDefinitionInferenceAccelerator() {} /** * @return Elastic Inference accelerator device name. The deviceName must also be referenced in a container definition as a ResourceRequirement. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TaskDefinitionInferenceAccelerator defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private String deviceType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskDefinitionInferenceAccelerator defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; this.deviceType = defaults.deviceType; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder deviceType(String deviceType) { this.deviceType = Objects.requireNonNull(deviceType); return this; - } public TaskDefinitionInferenceAccelerator build() { - return new TaskDefinitionInferenceAccelerator(deviceName, deviceType); + } + public TaskDefinitionInferenceAccelerator build() { + final var o = new TaskDefinitionInferenceAccelerator(); + o.deviceName = deviceName; + o.deviceType = deviceType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionPlacementConstraint.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionPlacementConstraint.java index a065c97cc31..14f2edf922c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionPlacementConstraint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionPlacementConstraint.java @@ -15,21 +15,14 @@ public final class TaskDefinitionPlacementConstraint { * @return Cluster Query Language expression to apply to the constraint. For more information, see [Cluster Query Language in the Amazon EC2 Container Service Developer Guide](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html). * */ - private final @Nullable String expression; + private @Nullable String expression; /** * @return Proxy type. The default value is `APPMESH`. The only supported value is `APPMESH`. * */ - private final String type; - - @CustomType.Constructor - private TaskDefinitionPlacementConstraint( - @CustomType.Parameter("expression") @Nullable String expression, - @CustomType.Parameter("type") String type) { - this.expression = expression; - this.type = type; - } + private String type; + private TaskDefinitionPlacementConstraint() {} /** * @return Cluster Query Language expression to apply to the constraint. For more information, see [Cluster Query Language in the Amazon EC2 Container Service Developer Guide](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html). * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(TaskDefinitionPlacementConstraint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String expression; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskDefinitionPlacementConstraint defaults) { Objects.requireNonNull(defaults); this.expression = defaults.expression; this.type = defaults.type; } + @CustomType.Setter public Builder expression(@Nullable String expression) { this.expression = expression; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public TaskDefinitionPlacementConstraint build() { - return new TaskDefinitionPlacementConstraint(expression, type); + } + public TaskDefinitionPlacementConstraint build() { + final var o = new TaskDefinitionPlacementConstraint(); + o.expression = expression; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionProxyConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionProxyConfiguration.java index 7dc8b9db89f..25402b98365 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionProxyConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionProxyConfiguration.java @@ -16,28 +16,19 @@ public final class TaskDefinitionProxyConfiguration { * @return Name of the container that will serve as the App Mesh proxy. * */ - private final String containerName; + private String containerName; /** * @return Set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified a key-value mapping. * */ - private final @Nullable Map properties; + private @Nullable Map properties; /** * @return Proxy type. The default value is `APPMESH`. The only supported value is `APPMESH`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private TaskDefinitionProxyConfiguration( - @CustomType.Parameter("containerName") String containerName, - @CustomType.Parameter("properties") @Nullable Map properties, - @CustomType.Parameter("type") @Nullable String type) { - this.containerName = containerName; - this.properties = properties; - this.type = type; - } + private @Nullable String type; + private TaskDefinitionProxyConfiguration() {} /** * @return Name of the container that will serve as the App Mesh proxy. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(TaskDefinitionProxyConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String containerName; private @Nullable Map properties; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskDefinitionProxyConfiguration defaults) { Objects.requireNonNull(defaults); this.containerName = defaults.containerName; @@ -84,19 +71,27 @@ public Builder(TaskDefinitionProxyConfiguration defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder containerName(String containerName) { this.containerName = Objects.requireNonNull(containerName); return this; } + @CustomType.Setter public Builder properties(@Nullable Map properties) { this.properties = properties; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public TaskDefinitionProxyConfiguration build() { - return new TaskDefinitionProxyConfiguration(containerName, properties, type); + } + public TaskDefinitionProxyConfiguration build() { + final var o = new TaskDefinitionProxyConfiguration(); + o.containerName = containerName; + o.properties = properties; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionRuntimePlatform.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionRuntimePlatform.java index f9248fb4a2f..a81d3c1724c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionRuntimePlatform.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionRuntimePlatform.java @@ -15,21 +15,14 @@ public final class TaskDefinitionRuntimePlatform { * @return Must be set to either `X86_64` or `ARM64`; see [cpu architecture](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#runtime-platform) * */ - private final @Nullable String cpuArchitecture; + private @Nullable String cpuArchitecture; /** * @return If the `requires_compatibilities` is `FARGATE` this field is required; must be set to a valid option from the [operating system family in the runtime platform](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#runtime-platform) setting * */ - private final @Nullable String operatingSystemFamily; - - @CustomType.Constructor - private TaskDefinitionRuntimePlatform( - @CustomType.Parameter("cpuArchitecture") @Nullable String cpuArchitecture, - @CustomType.Parameter("operatingSystemFamily") @Nullable String operatingSystemFamily) { - this.cpuArchitecture = cpuArchitecture; - this.operatingSystemFamily = operatingSystemFamily; - } + private @Nullable String operatingSystemFamily; + private TaskDefinitionRuntimePlatform() {} /** * @return Must be set to either `X86_64` or `ARM64`; see [cpu architecture](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#runtime-platform) * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(TaskDefinitionRuntimePlatform defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cpuArchitecture; private @Nullable String operatingSystemFamily; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskDefinitionRuntimePlatform defaults) { Objects.requireNonNull(defaults); this.cpuArchitecture = defaults.cpuArchitecture; this.operatingSystemFamily = defaults.operatingSystemFamily; } + @CustomType.Setter public Builder cpuArchitecture(@Nullable String cpuArchitecture) { this.cpuArchitecture = cpuArchitecture; return this; } + @CustomType.Setter public Builder operatingSystemFamily(@Nullable String operatingSystemFamily) { this.operatingSystemFamily = operatingSystemFamily; return this; - } public TaskDefinitionRuntimePlatform build() { - return new TaskDefinitionRuntimePlatform(cpuArchitecture, operatingSystemFamily); + } + public TaskDefinitionRuntimePlatform build() { + final var o = new TaskDefinitionRuntimePlatform(); + o.cpuArchitecture = cpuArchitecture; + o.operatingSystemFamily = operatingSystemFamily; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolume.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolume.java index c41c8324d0d..7d93a47a999 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolume.java @@ -18,43 +18,30 @@ public final class TaskDefinitionVolume { * @return Configuration block to configure a docker volume. Detailed below. * */ - private final @Nullable TaskDefinitionVolumeDockerVolumeConfiguration dockerVolumeConfiguration; + private @Nullable TaskDefinitionVolumeDockerVolumeConfiguration dockerVolumeConfiguration; /** * @return Configuration block for an EFS volume. Detailed below. * */ - private final @Nullable TaskDefinitionVolumeEfsVolumeConfiguration efsVolumeConfiguration; + private @Nullable TaskDefinitionVolumeEfsVolumeConfiguration efsVolumeConfiguration; /** * @return Configuration block for an FSX Windows File Server volume. Detailed below. * */ - private final @Nullable TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration fsxWindowsFileServerVolumeConfiguration; + private @Nullable TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration fsxWindowsFileServerVolumeConfiguration; /** * @return Path on the host container instance that is presented to the container. If not set, ECS will create a nonpersistent data volume that starts empty and is deleted after the task has finished. * */ - private final @Nullable String hostPath; + private @Nullable String hostPath; /** * @return Name of the volume. This name is referenced in the `sourceVolume` * parameter of container definition in the `mountPoints` section. * */ - private final String name; - - @CustomType.Constructor - private TaskDefinitionVolume( - @CustomType.Parameter("dockerVolumeConfiguration") @Nullable TaskDefinitionVolumeDockerVolumeConfiguration dockerVolumeConfiguration, - @CustomType.Parameter("efsVolumeConfiguration") @Nullable TaskDefinitionVolumeEfsVolumeConfiguration efsVolumeConfiguration, - @CustomType.Parameter("fsxWindowsFileServerVolumeConfiguration") @Nullable TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration fsxWindowsFileServerVolumeConfiguration, - @CustomType.Parameter("hostPath") @Nullable String hostPath, - @CustomType.Parameter("name") String name) { - this.dockerVolumeConfiguration = dockerVolumeConfiguration; - this.efsVolumeConfiguration = efsVolumeConfiguration; - this.fsxWindowsFileServerVolumeConfiguration = fsxWindowsFileServerVolumeConfiguration; - this.hostPath = hostPath; - this.name = name; - } + private String name; + private TaskDefinitionVolume() {} /** * @return Configuration block to configure a docker volume. Detailed below. * @@ -99,18 +86,14 @@ public static Builder builder() { public static Builder builder(TaskDefinitionVolume defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable TaskDefinitionVolumeDockerVolumeConfiguration dockerVolumeConfiguration; private @Nullable TaskDefinitionVolumeEfsVolumeConfiguration efsVolumeConfiguration; private @Nullable TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration fsxWindowsFileServerVolumeConfiguration; private @Nullable String hostPath; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskDefinitionVolume defaults) { Objects.requireNonNull(defaults); this.dockerVolumeConfiguration = defaults.dockerVolumeConfiguration; @@ -120,27 +103,39 @@ public Builder(TaskDefinitionVolume defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder dockerVolumeConfiguration(@Nullable TaskDefinitionVolumeDockerVolumeConfiguration dockerVolumeConfiguration) { this.dockerVolumeConfiguration = dockerVolumeConfiguration; return this; } + @CustomType.Setter public Builder efsVolumeConfiguration(@Nullable TaskDefinitionVolumeEfsVolumeConfiguration efsVolumeConfiguration) { this.efsVolumeConfiguration = efsVolumeConfiguration; return this; } + @CustomType.Setter public Builder fsxWindowsFileServerVolumeConfiguration(@Nullable TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration fsxWindowsFileServerVolumeConfiguration) { this.fsxWindowsFileServerVolumeConfiguration = fsxWindowsFileServerVolumeConfiguration; return this; } + @CustomType.Setter public Builder hostPath(@Nullable String hostPath) { this.hostPath = hostPath; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public TaskDefinitionVolume build() { - return new TaskDefinitionVolume(dockerVolumeConfiguration, efsVolumeConfiguration, fsxWindowsFileServerVolumeConfiguration, hostPath, name); + } + public TaskDefinitionVolume build() { + final var o = new TaskDefinitionVolume(); + o.dockerVolumeConfiguration = dockerVolumeConfiguration; + o.efsVolumeConfiguration = efsVolumeConfiguration; + o.fsxWindowsFileServerVolumeConfiguration = fsxWindowsFileServerVolumeConfiguration; + o.hostPath = hostPath; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeDockerVolumeConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeDockerVolumeConfiguration.java index 12f914fb943..d34f41438c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeDockerVolumeConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeDockerVolumeConfiguration.java @@ -17,42 +17,29 @@ public final class TaskDefinitionVolumeDockerVolumeConfiguration { * @return If this value is `true`, the Docker volume is created if it does not already exist. *Note*: This field is only used if the scope is `shared`. * */ - private final @Nullable Boolean autoprovision; + private @Nullable Boolean autoprovision; /** * @return Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. * */ - private final @Nullable String driver; + private @Nullable String driver; /** * @return Map of Docker driver specific options. * */ - private final @Nullable Map driverOpts; + private @Nullable Map driverOpts; /** * @return Map of custom metadata to add to your Docker volume. * */ - private final @Nullable Map labels; + private @Nullable Map labels; /** * @return Scope for the Docker volume, which determines its lifecycle, either `task` or `shared`. Docker volumes that are scoped to a `task` are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are scoped as `shared` persist after the task stops. * */ - private final @Nullable String scope; - - @CustomType.Constructor - private TaskDefinitionVolumeDockerVolumeConfiguration( - @CustomType.Parameter("autoprovision") @Nullable Boolean autoprovision, - @CustomType.Parameter("driver") @Nullable String driver, - @CustomType.Parameter("driverOpts") @Nullable Map driverOpts, - @CustomType.Parameter("labels") @Nullable Map labels, - @CustomType.Parameter("scope") @Nullable String scope) { - this.autoprovision = autoprovision; - this.driver = driver; - this.driverOpts = driverOpts; - this.labels = labels; - this.scope = scope; - } + private @Nullable String scope; + private TaskDefinitionVolumeDockerVolumeConfiguration() {} /** * @return If this value is `true`, the Docker volume is created if it does not already exist. *Note*: This field is only used if the scope is `shared`. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(TaskDefinitionVolumeDockerVolumeConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean autoprovision; private @Nullable String driver; private @Nullable Map driverOpts; private @Nullable Map labels; private @Nullable String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskDefinitionVolumeDockerVolumeConfiguration defaults) { Objects.requireNonNull(defaults); this.autoprovision = defaults.autoprovision; @@ -117,27 +100,39 @@ public Builder(TaskDefinitionVolumeDockerVolumeConfiguration defaults) { this.scope = defaults.scope; } + @CustomType.Setter public Builder autoprovision(@Nullable Boolean autoprovision) { this.autoprovision = autoprovision; return this; } + @CustomType.Setter public Builder driver(@Nullable String driver) { this.driver = driver; return this; } + @CustomType.Setter public Builder driverOpts(@Nullable Map driverOpts) { this.driverOpts = driverOpts; return this; } + @CustomType.Setter public Builder labels(@Nullable Map labels) { this.labels = labels; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; - } public TaskDefinitionVolumeDockerVolumeConfiguration build() { - return new TaskDefinitionVolumeDockerVolumeConfiguration(autoprovision, driver, driverOpts, labels, scope); + } + public TaskDefinitionVolumeDockerVolumeConfiguration build() { + final var o = new TaskDefinitionVolumeDockerVolumeConfiguration(); + o.autoprovision = autoprovision; + o.driver = driver; + o.driverOpts = driverOpts; + o.labels = labels; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeEfsVolumeConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeEfsVolumeConfiguration.java index 5d2b920bf96..448bafac3ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeEfsVolumeConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeEfsVolumeConfiguration.java @@ -17,42 +17,29 @@ public final class TaskDefinitionVolumeEfsVolumeConfiguration { * @return Configuration block for authorization for the Amazon FSx for Windows File Server file system detailed below. * */ - private final @Nullable TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig authorizationConfig; + private @Nullable TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig authorizationConfig; /** * @return The Amazon FSx for Windows File Server file system ID to use. * */ - private final String fileSystemId; + private String fileSystemId; /** * @return The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host. * */ - private final @Nullable String rootDirectory; + private @Nullable String rootDirectory; /** * @return Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. Valid values: `ENABLED`, `DISABLED`. If this parameter is omitted, the default value of `DISABLED` is used. * */ - private final @Nullable String transitEncryption; + private @Nullable String transitEncryption; /** * @return Port to use for transit encryption. If you do not specify a transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses. * */ - private final @Nullable Integer transitEncryptionPort; - - @CustomType.Constructor - private TaskDefinitionVolumeEfsVolumeConfiguration( - @CustomType.Parameter("authorizationConfig") @Nullable TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig authorizationConfig, - @CustomType.Parameter("fileSystemId") String fileSystemId, - @CustomType.Parameter("rootDirectory") @Nullable String rootDirectory, - @CustomType.Parameter("transitEncryption") @Nullable String transitEncryption, - @CustomType.Parameter("transitEncryptionPort") @Nullable Integer transitEncryptionPort) { - this.authorizationConfig = authorizationConfig; - this.fileSystemId = fileSystemId; - this.rootDirectory = rootDirectory; - this.transitEncryption = transitEncryption; - this.transitEncryptionPort = transitEncryptionPort; - } + private @Nullable Integer transitEncryptionPort; + private TaskDefinitionVolumeEfsVolumeConfiguration() {} /** * @return Configuration block for authorization for the Amazon FSx for Windows File Server file system detailed below. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(TaskDefinitionVolumeEfsVolumeConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig authorizationConfig; private String fileSystemId; private @Nullable String rootDirectory; private @Nullable String transitEncryption; private @Nullable Integer transitEncryptionPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskDefinitionVolumeEfsVolumeConfiguration defaults) { Objects.requireNonNull(defaults); this.authorizationConfig = defaults.authorizationConfig; @@ -117,27 +100,39 @@ public Builder(TaskDefinitionVolumeEfsVolumeConfiguration defaults) { this.transitEncryptionPort = defaults.transitEncryptionPort; } + @CustomType.Setter public Builder authorizationConfig(@Nullable TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig authorizationConfig) { this.authorizationConfig = authorizationConfig; return this; } + @CustomType.Setter public Builder fileSystemId(String fileSystemId) { this.fileSystemId = Objects.requireNonNull(fileSystemId); return this; } + @CustomType.Setter public Builder rootDirectory(@Nullable String rootDirectory) { this.rootDirectory = rootDirectory; return this; } + @CustomType.Setter public Builder transitEncryption(@Nullable String transitEncryption) { this.transitEncryption = transitEncryption; return this; } + @CustomType.Setter public Builder transitEncryptionPort(@Nullable Integer transitEncryptionPort) { this.transitEncryptionPort = transitEncryptionPort; return this; - } public TaskDefinitionVolumeEfsVolumeConfiguration build() { - return new TaskDefinitionVolumeEfsVolumeConfiguration(authorizationConfig, fileSystemId, rootDirectory, transitEncryption, transitEncryptionPort); + } + public TaskDefinitionVolumeEfsVolumeConfiguration build() { + final var o = new TaskDefinitionVolumeEfsVolumeConfiguration(); + o.authorizationConfig = authorizationConfig; + o.fileSystemId = fileSystemId; + o.rootDirectory = rootDirectory; + o.transitEncryption = transitEncryption; + o.transitEncryptionPort = transitEncryptionPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig.java index 4ae60ba4437..df5380b5f52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig.java @@ -15,21 +15,14 @@ public final class TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig * @return Access point ID to use. If an access point is specified, the root directory value will be relative to the directory set for the access point. If specified, transit encryption must be enabled in the EFSVolumeConfiguration. * */ - private final @Nullable String accessPointId; + private @Nullable String accessPointId; /** * @return Whether or not to use the Amazon ECS task IAM role defined in a task definition when mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. Valid values: `ENABLED`, `DISABLED`. If this parameter is omitted, the default value of `DISABLED` is used. * */ - private final @Nullable String iam; - - @CustomType.Constructor - private TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig( - @CustomType.Parameter("accessPointId") @Nullable String accessPointId, - @CustomType.Parameter("iam") @Nullable String iam) { - this.accessPointId = accessPointId; - this.iam = iam; - } + private @Nullable String iam; + private TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig() {} /** * @return Access point ID to use. If an access point is specified, the root directory value will be relative to the directory set for the access point. If specified, transit encryption must be enabled in the EFSVolumeConfiguration. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessPointId; private @Nullable String iam; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig defaults) { Objects.requireNonNull(defaults); this.accessPointId = defaults.accessPointId; this.iam = defaults.iam; } + @CustomType.Setter public Builder accessPointId(@Nullable String accessPointId) { this.accessPointId = accessPointId; return this; } + @CustomType.Setter public Builder iam(@Nullable String iam) { this.iam = iam; return this; - } public TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig build() { - return new TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig(accessPointId, iam); + } + public TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig build() { + final var o = new TaskDefinitionVolumeEfsVolumeConfigurationAuthorizationConfig(); + o.accessPointId = accessPointId; + o.iam = iam; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration.java index 06e74faf280..24681f73668 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration.java @@ -14,28 +14,19 @@ public final class TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration { * @return Configuration block for authorization for the Amazon FSx for Windows File Server file system detailed below. * */ - private final TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig authorizationConfig; + private TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig authorizationConfig; /** * @return The Amazon FSx for Windows File Server file system ID to use. * */ - private final String fileSystemId; + private String fileSystemId; /** * @return The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host. * */ - private final String rootDirectory; - - @CustomType.Constructor - private TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration( - @CustomType.Parameter("authorizationConfig") TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig authorizationConfig, - @CustomType.Parameter("fileSystemId") String fileSystemId, - @CustomType.Parameter("rootDirectory") String rootDirectory) { - this.authorizationConfig = authorizationConfig; - this.fileSystemId = fileSystemId; - this.rootDirectory = rootDirectory; - } + private String rootDirectory; + private TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration() {} /** * @return Configuration block for authorization for the Amazon FSx for Windows File Server file system detailed below. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig authorizationConfig; private String fileSystemId; private String rootDirectory; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration defaults) { Objects.requireNonNull(defaults); this.authorizationConfig = defaults.authorizationConfig; @@ -82,19 +69,27 @@ public Builder(TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration defau this.rootDirectory = defaults.rootDirectory; } + @CustomType.Setter public Builder authorizationConfig(TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig authorizationConfig) { this.authorizationConfig = Objects.requireNonNull(authorizationConfig); return this; } + @CustomType.Setter public Builder fileSystemId(String fileSystemId) { this.fileSystemId = Objects.requireNonNull(fileSystemId); return this; } + @CustomType.Setter public Builder rootDirectory(String rootDirectory) { this.rootDirectory = Objects.requireNonNull(rootDirectory); return this; - } public TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration build() { - return new TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration(authorizationConfig, fileSystemId, rootDirectory); + } + public TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration build() { + final var o = new TaskDefinitionVolumeFsxWindowsFileServerVolumeConfiguration(); + o.authorizationConfig = authorizationConfig; + o.fileSystemId = fileSystemId; + o.rootDirectory = rootDirectory; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig.java index 5f2bb604fb4..4f584b1e188 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig.java @@ -13,21 +13,14 @@ public final class TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAu * @return The authorization credential option to use. The authorization credential options can be provided using either the Amazon Resource Name (ARN) of an AWS Secrets Manager secret or AWS Systems Manager Parameter Store parameter. The ARNs refer to the stored credentials. * */ - private final String credentialsParameter; + private String credentialsParameter; /** * @return A fully qualified domain name hosted by an AWS Directory Service Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. * */ - private final String domain; - - @CustomType.Constructor - private TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig( - @CustomType.Parameter("credentialsParameter") String credentialsParameter, - @CustomType.Parameter("domain") String domain) { - this.credentialsParameter = credentialsParameter; - this.domain = domain; - } + private String domain; + private TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig() {} /** * @return The authorization credential option to use. The authorization credential options can be provided using either the Amazon Resource Name (ARN) of an AWS Secrets Manager secret or AWS Systems Manager Parameter Store parameter. The ARNs refer to the stored credentials. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String credentialsParameter; private String domain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig defaults) { Objects.requireNonNull(defaults); this.credentialsParameter = defaults.credentialsParameter; this.domain = defaults.domain; } + @CustomType.Setter public Builder credentialsParameter(String credentialsParameter) { this.credentialsParameter = Objects.requireNonNull(credentialsParameter); return this; } + @CustomType.Setter public Builder domain(String domain) { this.domain = Objects.requireNonNull(domain); return this; - } public TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig build() { - return new TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig(credentialsParameter, domain); + } + public TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig build() { + final var o = new TaskDefinitionVolumeFsxWindowsFileServerVolumeConfigurationAuthorizationConfig(); + o.credentialsParameter = credentialsParameter; + o.domain = domain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetCapacityProviderStrategy.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetCapacityProviderStrategy.java index 3a7f29b3836..fc77be5b792 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetCapacityProviderStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetCapacityProviderStrategy.java @@ -16,28 +16,19 @@ public final class TaskSetCapacityProviderStrategy { * @return The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. * */ - private final @Nullable Integer base; + private @Nullable Integer base; /** * @return The short name or full Amazon Resource Name (ARN) of the capacity provider. * */ - private final String capacityProvider; + private String capacityProvider; /** * @return The relative percentage of the total number of launched tasks that should use the specified capacity provider. * */ - private final Integer weight; - - @CustomType.Constructor - private TaskSetCapacityProviderStrategy( - @CustomType.Parameter("base") @Nullable Integer base, - @CustomType.Parameter("capacityProvider") String capacityProvider, - @CustomType.Parameter("weight") Integer weight) { - this.base = base; - this.capacityProvider = capacityProvider; - this.weight = weight; - } + private Integer weight; + private TaskSetCapacityProviderStrategy() {} /** * @return The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(TaskSetCapacityProviderStrategy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer base; private String capacityProvider; private Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskSetCapacityProviderStrategy defaults) { Objects.requireNonNull(defaults); this.base = defaults.base; @@ -84,19 +71,27 @@ public Builder(TaskSetCapacityProviderStrategy defaults) { this.weight = defaults.weight; } + @CustomType.Setter public Builder base(@Nullable Integer base) { this.base = base; return this; } + @CustomType.Setter public Builder capacityProvider(String capacityProvider) { this.capacityProvider = Objects.requireNonNull(capacityProvider); return this; } + @CustomType.Setter public Builder weight(Integer weight) { this.weight = Objects.requireNonNull(weight); return this; - } public TaskSetCapacityProviderStrategy build() { - return new TaskSetCapacityProviderStrategy(base, capacityProvider, weight); + } + public TaskSetCapacityProviderStrategy build() { + final var o = new TaskSetCapacityProviderStrategy(); + o.base = base; + o.capacityProvider = capacityProvider; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetLoadBalancer.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetLoadBalancer.java index 22796f17b4a..4cda5e3c2b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetLoadBalancer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetLoadBalancer.java @@ -16,35 +16,24 @@ public final class TaskSetLoadBalancer { * @return The name of the container to associate with the load balancer (as it appears in a container definition). * */ - private final String containerName; + private String containerName; /** * @return The port on the container to associate with the load balancer. Defaults to `0` if not specified. * */ - private final @Nullable Integer containerPort; + private @Nullable Integer containerPort; /** * @return The name of the ELB (Classic) to associate with the service. * */ - private final @Nullable String loadBalancerName; + private @Nullable String loadBalancerName; /** * @return The ARN of the Load Balancer target group to associate with the service. * */ - private final @Nullable String targetGroupArn; - - @CustomType.Constructor - private TaskSetLoadBalancer( - @CustomType.Parameter("containerName") String containerName, - @CustomType.Parameter("containerPort") @Nullable Integer containerPort, - @CustomType.Parameter("loadBalancerName") @Nullable String loadBalancerName, - @CustomType.Parameter("targetGroupArn") @Nullable String targetGroupArn) { - this.containerName = containerName; - this.containerPort = containerPort; - this.loadBalancerName = loadBalancerName; - this.targetGroupArn = targetGroupArn; - } + private @Nullable String targetGroupArn; + private TaskSetLoadBalancer() {} /** * @return The name of the container to associate with the load balancer (as it appears in a container definition). * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(TaskSetLoadBalancer defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String containerName; private @Nullable Integer containerPort; private @Nullable String loadBalancerName; private @Nullable String targetGroupArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskSetLoadBalancer defaults) { Objects.requireNonNull(defaults); this.containerName = defaults.containerName; @@ -100,23 +85,33 @@ public Builder(TaskSetLoadBalancer defaults) { this.targetGroupArn = defaults.targetGroupArn; } + @CustomType.Setter public Builder containerName(String containerName) { this.containerName = Objects.requireNonNull(containerName); return this; } + @CustomType.Setter public Builder containerPort(@Nullable Integer containerPort) { this.containerPort = containerPort; return this; } + @CustomType.Setter public Builder loadBalancerName(@Nullable String loadBalancerName) { this.loadBalancerName = loadBalancerName; return this; } + @CustomType.Setter public Builder targetGroupArn(@Nullable String targetGroupArn) { this.targetGroupArn = targetGroupArn; return this; - } public TaskSetLoadBalancer build() { - return new TaskSetLoadBalancer(containerName, containerPort, loadBalancerName, targetGroupArn); + } + public TaskSetLoadBalancer build() { + final var o = new TaskSetLoadBalancer(); + o.containerName = containerName; + o.containerPort = containerPort; + o.loadBalancerName = loadBalancerName; + o.targetGroupArn = targetGroupArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetNetworkConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetNetworkConfiguration.java index 0e3a074ac26..fc802daa31f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetNetworkConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetNetworkConfiguration.java @@ -17,28 +17,19 @@ public final class TaskSetNetworkConfiguration { * @return Whether to assign a public IP address to the ENI (`FARGATE` launch type only). Valid values are `true` or `false`. Default `false`. * */ - private final @Nullable Boolean assignPublicIp; + private @Nullable Boolean assignPublicIp; /** * @return The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. Maximum of 5. * */ - private final @Nullable List securityGroups; + private @Nullable List securityGroups; /** * @return The subnets associated with the task or service. Maximum of 16. * */ - private final List subnets; - - @CustomType.Constructor - private TaskSetNetworkConfiguration( - @CustomType.Parameter("assignPublicIp") @Nullable Boolean assignPublicIp, - @CustomType.Parameter("securityGroups") @Nullable List securityGroups, - @CustomType.Parameter("subnets") List subnets) { - this.assignPublicIp = assignPublicIp; - this.securityGroups = securityGroups; - this.subnets = subnets; - } + private List subnets; + private TaskSetNetworkConfiguration() {} /** * @return Whether to assign a public IP address to the ENI (`FARGATE` launch type only). Valid values are `true` or `false`. Default `false`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(TaskSetNetworkConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean assignPublicIp; private @Nullable List securityGroups; private List subnets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskSetNetworkConfiguration defaults) { Objects.requireNonNull(defaults); this.assignPublicIp = defaults.assignPublicIp; @@ -85,10 +72,12 @@ public Builder(TaskSetNetworkConfiguration defaults) { this.subnets = defaults.subnets; } + @CustomType.Setter public Builder assignPublicIp(@Nullable Boolean assignPublicIp) { this.assignPublicIp = assignPublicIp; return this; } + @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { this.securityGroups = securityGroups; return this; @@ -96,14 +85,20 @@ public Builder securityGroups(@Nullable List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; } public Builder subnets(String... subnets) { return subnets(List.of(subnets)); - } public TaskSetNetworkConfiguration build() { - return new TaskSetNetworkConfiguration(assignPublicIp, securityGroups, subnets); + } + public TaskSetNetworkConfiguration build() { + final var o = new TaskSetNetworkConfiguration(); + o.assignPublicIp = assignPublicIp; + o.securityGroups = securityGroups; + o.subnets = subnets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetScale.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetScale.java index 379d3869040..887382363f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetScale.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetScale.java @@ -16,21 +16,14 @@ public final class TaskSetScale { * @return The unit of measure for the scale value. Default: `PERCENT`. * */ - private final @Nullable String unit; + private @Nullable String unit; /** * @return The value, specified as a percent total of a service's `desiredCount`, to scale the task set. Defaults to `0` if not specified. Accepted values are numbers between 0.0 and 100.0. * */ - private final @Nullable Double value; - - @CustomType.Constructor - private TaskSetScale( - @CustomType.Parameter("unit") @Nullable String unit, - @CustomType.Parameter("value") @Nullable Double value) { - this.unit = unit; - this.value = value; - } + private @Nullable Double value; + private TaskSetScale() {} /** * @return The unit of measure for the scale value. Default: `PERCENT`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(TaskSetScale defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String unit; private @Nullable Double value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskSetScale defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(@Nullable String unit) { this.unit = unit; return this; } + @CustomType.Setter public Builder value(@Nullable Double value) { this.value = value; return this; - } public TaskSetScale build() { - return new TaskSetScale(unit, value); + } + public TaskSetScale build() { + final var o = new TaskSetScale(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetServiceRegistries.java b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetServiceRegistries.java index 5927e914364..4006050da74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetServiceRegistries.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ecs/outputs/TaskSetServiceRegistries.java @@ -16,35 +16,24 @@ public final class TaskSetServiceRegistries { * @return The container name value, already specified in the task definition, to be used for your service discovery service. * */ - private final @Nullable String containerName; + private @Nullable String containerName; /** * @return The port value, already specified in the task definition, to be used for your service discovery service. * */ - private final @Nullable Integer containerPort; + private @Nullable Integer containerPort; /** * @return The port value used if your Service Discovery service specified an SRV record. * */ - private final @Nullable Integer port; + private @Nullable Integer port; /** * @return The ARN of the Service Registry. The currently supported service registry is Amazon Route 53 Auto Naming Service(`aws.servicediscovery.Service` resource). For more information, see [Service](https://docs.aws.amazon.com/Route53/latest/APIReference/API_autonaming_Service.html). * */ - private final String registryArn; - - @CustomType.Constructor - private TaskSetServiceRegistries( - @CustomType.Parameter("containerName") @Nullable String containerName, - @CustomType.Parameter("containerPort") @Nullable Integer containerPort, - @CustomType.Parameter("port") @Nullable Integer port, - @CustomType.Parameter("registryArn") String registryArn) { - this.containerName = containerName; - this.containerPort = containerPort; - this.port = port; - this.registryArn = registryArn; - } + private String registryArn; + private TaskSetServiceRegistries() {} /** * @return The container name value, already specified in the task definition, to be used for your service discovery service. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(TaskSetServiceRegistries defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String containerName; private @Nullable Integer containerPort; private @Nullable Integer port; private String registryArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TaskSetServiceRegistries defaults) { Objects.requireNonNull(defaults); this.containerName = defaults.containerName; @@ -100,23 +85,33 @@ public Builder(TaskSetServiceRegistries defaults) { this.registryArn = defaults.registryArn; } + @CustomType.Setter public Builder containerName(@Nullable String containerName) { this.containerName = containerName; return this; } + @CustomType.Setter public Builder containerPort(@Nullable Integer containerPort) { this.containerPort = containerPort; return this; } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; } + @CustomType.Setter public Builder registryArn(String registryArn) { this.registryArn = Objects.requireNonNull(registryArn); return this; - } public TaskSetServiceRegistries build() { - return new TaskSetServiceRegistries(containerName, containerPort, port, registryArn); + } + public TaskSetServiceRegistries build() { + final var o = new TaskSetServiceRegistries(); + o.containerName = containerName; + o.containerPort = containerPort; + o.port = port; + o.registryArn = registryArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/AccessPointPosixUser.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/AccessPointPosixUser.java index 27145e2f1a7..0f6741045e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/AccessPointPosixUser.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/AccessPointPosixUser.java @@ -15,28 +15,19 @@ public final class AccessPointPosixUser { * @return POSIX group ID used for all file system operations using this access point. * */ - private final Integer gid; + private Integer gid; /** * @return Secondary POSIX group IDs used for all file system operations using this access point. * */ - private final @Nullable List secondaryGids; + private @Nullable List secondaryGids; /** * @return POSIX user ID used for all file system operations using this access point. * */ - private final Integer uid; - - @CustomType.Constructor - private AccessPointPosixUser( - @CustomType.Parameter("gid") Integer gid, - @CustomType.Parameter("secondaryGids") @Nullable List secondaryGids, - @CustomType.Parameter("uid") Integer uid) { - this.gid = gid; - this.secondaryGids = secondaryGids; - this.uid = uid; - } + private Integer uid; + private AccessPointPosixUser() {} /** * @return POSIX group ID used for all file system operations using this access point. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(AccessPointPosixUser defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer gid; private @Nullable List secondaryGids; private Integer uid; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AccessPointPosixUser defaults) { Objects.requireNonNull(defaults); this.gid = defaults.gid; @@ -83,10 +70,12 @@ public Builder(AccessPointPosixUser defaults) { this.uid = defaults.uid; } + @CustomType.Setter public Builder gid(Integer gid) { this.gid = Objects.requireNonNull(gid); return this; } + @CustomType.Setter public Builder secondaryGids(@Nullable List secondaryGids) { this.secondaryGids = secondaryGids; return this; @@ -94,11 +83,17 @@ public Builder secondaryGids(@Nullable List secondaryGids) { public Builder secondaryGids(Integer... secondaryGids) { return secondaryGids(List.of(secondaryGids)); } + @CustomType.Setter public Builder uid(Integer uid) { this.uid = Objects.requireNonNull(uid); return this; - } public AccessPointPosixUser build() { - return new AccessPointPosixUser(gid, secondaryGids, uid); + } + public AccessPointPosixUser build() { + final var o = new AccessPointPosixUser(); + o.gid = gid; + o.secondaryGids = secondaryGids; + o.uid = uid; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/AccessPointRootDirectory.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/AccessPointRootDirectory.java index 14497b78ed8..d8c53a9581b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/AccessPointRootDirectory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/AccessPointRootDirectory.java @@ -16,21 +16,14 @@ public final class AccessPointRootDirectory { * @return POSIX IDs and permissions to apply to the access point's Root Directory. See Creation Info below. * */ - private final @Nullable AccessPointRootDirectoryCreationInfo creationInfo; + private @Nullable AccessPointRootDirectoryCreationInfo creationInfo; /** * @return Path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide `creation_info`. * */ - private final @Nullable String path; - - @CustomType.Constructor - private AccessPointRootDirectory( - @CustomType.Parameter("creationInfo") @Nullable AccessPointRootDirectoryCreationInfo creationInfo, - @CustomType.Parameter("path") @Nullable String path) { - this.creationInfo = creationInfo; - this.path = path; - } + private @Nullable String path; + private AccessPointRootDirectory() {} /** * @return POSIX IDs and permissions to apply to the access point's Root Directory. See Creation Info below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(AccessPointRootDirectory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable AccessPointRootDirectoryCreationInfo creationInfo; private @Nullable String path; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AccessPointRootDirectory defaults) { Objects.requireNonNull(defaults); this.creationInfo = defaults.creationInfo; this.path = defaults.path; } + @CustomType.Setter public Builder creationInfo(@Nullable AccessPointRootDirectoryCreationInfo creationInfo) { this.creationInfo = creationInfo; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; - } public AccessPointRootDirectory build() { - return new AccessPointRootDirectory(creationInfo, path); + } + public AccessPointRootDirectory build() { + final var o = new AccessPointRootDirectory(); + o.creationInfo = creationInfo; + o.path = path; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/AccessPointRootDirectoryCreationInfo.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/AccessPointRootDirectoryCreationInfo.java index 8bb9b359e31..0605c0760cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/AccessPointRootDirectoryCreationInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/AccessPointRootDirectoryCreationInfo.java @@ -14,28 +14,19 @@ public final class AccessPointRootDirectoryCreationInfo { * @return POSIX group ID to apply to the `root_directory`. * */ - private final Integer ownerGid; + private Integer ownerGid; /** * @return POSIX user ID to apply to the `root_directory`. * */ - private final Integer ownerUid; + private Integer ownerUid; /** * @return POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits. * */ - private final String permissions; - - @CustomType.Constructor - private AccessPointRootDirectoryCreationInfo( - @CustomType.Parameter("ownerGid") Integer ownerGid, - @CustomType.Parameter("ownerUid") Integer ownerUid, - @CustomType.Parameter("permissions") String permissions) { - this.ownerGid = ownerGid; - this.ownerUid = ownerUid; - this.permissions = permissions; - } + private String permissions; + private AccessPointRootDirectoryCreationInfo() {} /** * @return POSIX group ID to apply to the `root_directory`. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(AccessPointRootDirectoryCreationInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer ownerGid; private Integer ownerUid; private String permissions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AccessPointRootDirectoryCreationInfo defaults) { Objects.requireNonNull(defaults); this.ownerGid = defaults.ownerGid; @@ -82,19 +69,27 @@ public Builder(AccessPointRootDirectoryCreationInfo defaults) { this.permissions = defaults.permissions; } + @CustomType.Setter public Builder ownerGid(Integer ownerGid) { this.ownerGid = Objects.requireNonNull(ownerGid); return this; } + @CustomType.Setter public Builder ownerUid(Integer ownerUid) { this.ownerUid = Objects.requireNonNull(ownerUid); return this; } + @CustomType.Setter public Builder permissions(String permissions) { this.permissions = Objects.requireNonNull(permissions); return this; - } public AccessPointRootDirectoryCreationInfo build() { - return new AccessPointRootDirectoryCreationInfo(ownerGid, ownerUid, permissions); + } + public AccessPointRootDirectoryCreationInfo build() { + final var o = new AccessPointRootDirectoryCreationInfo(); + o.ownerGid = ownerGid; + o.ownerUid = ownerUid; + o.permissions = permissions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/BackupPolicyBackupPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/BackupPolicyBackupPolicy.java index 453a1cbf71a..952436fab70 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/BackupPolicyBackupPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/BackupPolicyBackupPolicy.java @@ -13,13 +13,9 @@ public final class BackupPolicyBackupPolicy { * @return A status of the backup policy. Valid values: `ENABLED`, `DISABLED`. * */ - private final String status; - - @CustomType.Constructor - private BackupPolicyBackupPolicy(@CustomType.Parameter("status") String status) { - this.status = status; - } + private String status; + private BackupPolicyBackupPolicy() {} /** * @return A status of the backup policy. Valid values: `ENABLED`, `DISABLED`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BackupPolicyBackupPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BackupPolicyBackupPolicy defaults) { Objects.requireNonNull(defaults); this.status = defaults.status; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public BackupPolicyBackupPolicy build() { - return new BackupPolicyBackupPolicy(status); + } + public BackupPolicyBackupPolicy build() { + final var o = new BackupPolicyBackupPolicy(); + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/FileSystemLifecyclePolicy.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/FileSystemLifecyclePolicy.java index d6b53d40981..72150abecd3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/FileSystemLifecyclePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/FileSystemLifecyclePolicy.java @@ -15,21 +15,14 @@ public final class FileSystemLifecyclePolicy { * @return Indicates how long it takes to transition files to the IA storage class. Valid values: `AFTER_7_DAYS`, `AFTER_14_DAYS`, `AFTER_30_DAYS`, `AFTER_60_DAYS`, or `AFTER_90_DAYS`. * */ - private final @Nullable String transitionToIa; + private @Nullable String transitionToIa; /** * @return Describes the policy used to transition a file from infequent access storage to primary storage. Valid values: `AFTER_1_ACCESS`. * */ - private final @Nullable String transitionToPrimaryStorageClass; - - @CustomType.Constructor - private FileSystemLifecyclePolicy( - @CustomType.Parameter("transitionToIa") @Nullable String transitionToIa, - @CustomType.Parameter("transitionToPrimaryStorageClass") @Nullable String transitionToPrimaryStorageClass) { - this.transitionToIa = transitionToIa; - this.transitionToPrimaryStorageClass = transitionToPrimaryStorageClass; - } + private @Nullable String transitionToPrimaryStorageClass; + private FileSystemLifecyclePolicy() {} /** * @return Indicates how long it takes to transition files to the IA storage class. Valid values: `AFTER_7_DAYS`, `AFTER_14_DAYS`, `AFTER_30_DAYS`, `AFTER_60_DAYS`, or `AFTER_90_DAYS`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FileSystemLifecyclePolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String transitionToIa; private @Nullable String transitionToPrimaryStorageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FileSystemLifecyclePolicy defaults) { Objects.requireNonNull(defaults); this.transitionToIa = defaults.transitionToIa; this.transitionToPrimaryStorageClass = defaults.transitionToPrimaryStorageClass; } + @CustomType.Setter public Builder transitionToIa(@Nullable String transitionToIa) { this.transitionToIa = transitionToIa; return this; } + @CustomType.Setter public Builder transitionToPrimaryStorageClass(@Nullable String transitionToPrimaryStorageClass) { this.transitionToPrimaryStorageClass = transitionToPrimaryStorageClass; return this; - } public FileSystemLifecyclePolicy build() { - return new FileSystemLifecyclePolicy(transitionToIa, transitionToPrimaryStorageClass); + } + public FileSystemLifecyclePolicy build() { + final var o = new FileSystemLifecyclePolicy(); + o.transitionToIa = transitionToIa; + o.transitionToPrimaryStorageClass = transitionToPrimaryStorageClass; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/FileSystemSizeInByte.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/FileSystemSizeInByte.java index cb5026ae9d9..425f1d85d2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/FileSystemSizeInByte.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/FileSystemSizeInByte.java @@ -15,28 +15,19 @@ public final class FileSystemSizeInByte { * @return The latest known metered size (in bytes) of data stored in the file system. * */ - private final @Nullable Integer value; + private @Nullable Integer value; /** * @return The latest known metered size (in bytes) of data stored in the Infrequent Access storage class. * */ - private final @Nullable Integer valueInIa; + private @Nullable Integer valueInIa; /** * @return The latest known metered size (in bytes) of data stored in the Standard storage class. * */ - private final @Nullable Integer valueInStandard; - - @CustomType.Constructor - private FileSystemSizeInByte( - @CustomType.Parameter("value") @Nullable Integer value, - @CustomType.Parameter("valueInIa") @Nullable Integer valueInIa, - @CustomType.Parameter("valueInStandard") @Nullable Integer valueInStandard) { - this.value = value; - this.valueInIa = valueInIa; - this.valueInStandard = valueInStandard; - } + private @Nullable Integer valueInStandard; + private FileSystemSizeInByte() {} /** * @return The latest known metered size (in bytes) of data stored in the file system. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(FileSystemSizeInByte defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer value; private @Nullable Integer valueInIa; private @Nullable Integer valueInStandard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FileSystemSizeInByte defaults) { Objects.requireNonNull(defaults); this.value = defaults.value; @@ -83,19 +70,27 @@ public Builder(FileSystemSizeInByte defaults) { this.valueInStandard = defaults.valueInStandard; } + @CustomType.Setter public Builder value(@Nullable Integer value) { this.value = value; return this; } + @CustomType.Setter public Builder valueInIa(@Nullable Integer valueInIa) { this.valueInIa = valueInIa; return this; } + @CustomType.Setter public Builder valueInStandard(@Nullable Integer valueInStandard) { this.valueInStandard = valueInStandard; return this; - } public FileSystemSizeInByte build() { - return new FileSystemSizeInByte(value, valueInIa, valueInStandard); + } + public FileSystemSizeInByte build() { + final var o = new FileSystemSizeInByte(); + o.value = value; + o.valueInIa = valueInIa; + o.valueInStandard = valueInStandard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointPosixUser.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointPosixUser.java index 958eab9d16b..5289b9467cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointPosixUser.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointPosixUser.java @@ -14,29 +14,20 @@ public final class GetAccessPointPosixUser { * @return Group ID * */ - private final Integer gid; + private Integer gid; /** * @return Secondary group IDs * */ - private final List secondaryGids; + private List secondaryGids; /** * @return User Id * * `root_directory`- Single element list containing information on the directory on the Amazon EFS file system that the access point provides access to. * */ - private final Integer uid; - - @CustomType.Constructor - private GetAccessPointPosixUser( - @CustomType.Parameter("gid") Integer gid, - @CustomType.Parameter("secondaryGids") List secondaryGids, - @CustomType.Parameter("uid") Integer uid) { - this.gid = gid; - this.secondaryGids = secondaryGids; - this.uid = uid; - } + private Integer uid; + private GetAccessPointPosixUser() {} /** * @return Group ID * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetAccessPointPosixUser defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer gid; private List secondaryGids; private Integer uid; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAccessPointPosixUser defaults) { Objects.requireNonNull(defaults); this.gid = defaults.gid; @@ -84,10 +71,12 @@ public Builder(GetAccessPointPosixUser defaults) { this.uid = defaults.uid; } + @CustomType.Setter public Builder gid(Integer gid) { this.gid = Objects.requireNonNull(gid); return this; } + @CustomType.Setter public Builder secondaryGids(List secondaryGids) { this.secondaryGids = Objects.requireNonNull(secondaryGids); return this; @@ -95,11 +84,17 @@ public Builder secondaryGids(List secondaryGids) { public Builder secondaryGids(Integer... secondaryGids) { return secondaryGids(List.of(secondaryGids)); } + @CustomType.Setter public Builder uid(Integer uid) { this.uid = Objects.requireNonNull(uid); return this; - } public GetAccessPointPosixUser build() { - return new GetAccessPointPosixUser(gid, secondaryGids, uid); + } + public GetAccessPointPosixUser build() { + final var o = new GetAccessPointPosixUser(); + o.gid = gid; + o.secondaryGids = secondaryGids; + o.uid = uid; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointResult.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointResult.java index 5899ba22e8b..121a76ca72a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointResult.java @@ -14,62 +14,41 @@ @CustomType public final class GetAccessPointResult { - private final String accessPointId; + private String accessPointId; /** * @return Amazon Resource Name of the file system. * */ - private final String arn; + private String arn; /** * @return Amazon Resource Name of the file system. * */ - private final String fileSystemArn; + private String fileSystemArn; /** * @return The ID of the file system for which the access point is intended. * */ - private final String fileSystemId; + private String fileSystemId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String ownerId; + private String id; + private String ownerId; /** * @return Single element list containing operating system user and group applied to all file system requests made using the access point. * */ - private final List posixUsers; - private final List rootDirectories; + private List posixUsers; + private List rootDirectories; /** * @return Key-value mapping of resource tags. * */ - private final @Nullable Map tags; - - @CustomType.Constructor - private GetAccessPointResult( - @CustomType.Parameter("accessPointId") String accessPointId, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fileSystemArn") String fileSystemArn, - @CustomType.Parameter("fileSystemId") String fileSystemId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("posixUsers") List posixUsers, - @CustomType.Parameter("rootDirectories") List rootDirectories, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.accessPointId = accessPointId; - this.arn = arn; - this.fileSystemArn = fileSystemArn; - this.fileSystemId = fileSystemId; - this.id = id; - this.ownerId = ownerId; - this.posixUsers = posixUsers; - this.rootDirectories = rootDirectories; - this.tags = tags; - } + private @Nullable Map tags; + private GetAccessPointResult() {} public String accessPointId() { return this.accessPointId; } @@ -129,7 +108,7 @@ public static Builder builder() { public static Builder builder(GetAccessPointResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accessPointId; private String arn; @@ -140,11 +119,7 @@ public static final class Builder { private List posixUsers; private List rootDirectories; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAccessPointResult defaults) { Objects.requireNonNull(defaults); this.accessPointId = defaults.accessPointId; @@ -158,30 +133,37 @@ public Builder(GetAccessPointResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder accessPointId(String accessPointId) { this.accessPointId = Objects.requireNonNull(accessPointId); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fileSystemArn(String fileSystemArn) { this.fileSystemArn = Objects.requireNonNull(fileSystemArn); return this; } + @CustomType.Setter public Builder fileSystemId(String fileSystemId) { this.fileSystemId = Objects.requireNonNull(fileSystemId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder posixUsers(List posixUsers) { this.posixUsers = Objects.requireNonNull(posixUsers); return this; @@ -189,6 +171,7 @@ public Builder posixUsers(List posixUsers) { public Builder posixUsers(GetAccessPointPosixUser... posixUsers) { return posixUsers(List.of(posixUsers)); } + @CustomType.Setter public Builder rootDirectories(List rootDirectories) { this.rootDirectories = Objects.requireNonNull(rootDirectories); return this; @@ -196,11 +179,23 @@ public Builder rootDirectories(List rootDirectories public Builder rootDirectories(GetAccessPointRootDirectory... rootDirectories) { return rootDirectories(List.of(rootDirectories)); } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public GetAccessPointResult build() { - return new GetAccessPointResult(accessPointId, arn, fileSystemArn, fileSystemId, id, ownerId, posixUsers, rootDirectories, tags); + } + public GetAccessPointResult build() { + final var o = new GetAccessPointResult(); + o.accessPointId = accessPointId; + o.arn = arn; + o.fileSystemArn = fileSystemArn; + o.fileSystemId = fileSystemId; + o.id = id; + o.ownerId = ownerId; + o.posixUsers = posixUsers; + o.rootDirectories = rootDirectories; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointRootDirectory.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointRootDirectory.java index 288b287fd45..90046c58e1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointRootDirectory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointRootDirectory.java @@ -15,21 +15,14 @@ public final class GetAccessPointRootDirectory { * @return Single element list containing information on the creation permissions of the directory * */ - private final List creationInfos; + private List creationInfos; /** * @return Path exposed as the root directory * */ - private final String path; - - @CustomType.Constructor - private GetAccessPointRootDirectory( - @CustomType.Parameter("creationInfos") List creationInfos, - @CustomType.Parameter("path") String path) { - this.creationInfos = creationInfos; - this.path = path; - } + private String path; + private GetAccessPointRootDirectory() {} /** * @return Single element list containing information on the creation permissions of the directory * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(GetAccessPointRootDirectory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List creationInfos; private String path; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAccessPointRootDirectory defaults) { Objects.requireNonNull(defaults); this.creationInfos = defaults.creationInfos; this.path = defaults.path; } + @CustomType.Setter public Builder creationInfos(List creationInfos) { this.creationInfos = Objects.requireNonNull(creationInfos); return this; @@ -74,11 +64,16 @@ public Builder creationInfos(List creat public Builder creationInfos(GetAccessPointRootDirectoryCreationInfo... creationInfos) { return creationInfos(List.of(creationInfos)); } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; - } public GetAccessPointRootDirectory build() { - return new GetAccessPointRootDirectory(creationInfos, path); + } + public GetAccessPointRootDirectory build() { + final var o = new GetAccessPointRootDirectory(); + o.creationInfos = creationInfos; + o.path = path; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointRootDirectoryCreationInfo.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointRootDirectoryCreationInfo.java index 7db4a292213..b5ba38739f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointRootDirectoryCreationInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointRootDirectoryCreationInfo.java @@ -14,28 +14,19 @@ public final class GetAccessPointRootDirectoryCreationInfo { * @return POSIX owner group ID * */ - private final Integer ownerGid; + private Integer ownerGid; /** * @return POSIX owner user ID * */ - private final Integer ownerUid; + private Integer ownerUid; /** * @return POSIX permissions mode * */ - private final String permissions; - - @CustomType.Constructor - private GetAccessPointRootDirectoryCreationInfo( - @CustomType.Parameter("ownerGid") Integer ownerGid, - @CustomType.Parameter("ownerUid") Integer ownerUid, - @CustomType.Parameter("permissions") String permissions) { - this.ownerGid = ownerGid; - this.ownerUid = ownerUid; - this.permissions = permissions; - } + private String permissions; + private GetAccessPointRootDirectoryCreationInfo() {} /** * @return POSIX owner group ID * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetAccessPointRootDirectoryCreationInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer ownerGid; private Integer ownerUid; private String permissions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAccessPointRootDirectoryCreationInfo defaults) { Objects.requireNonNull(defaults); this.ownerGid = defaults.ownerGid; @@ -82,19 +69,27 @@ public Builder(GetAccessPointRootDirectoryCreationInfo defaults) { this.permissions = defaults.permissions; } + @CustomType.Setter public Builder ownerGid(Integer ownerGid) { this.ownerGid = Objects.requireNonNull(ownerGid); return this; } + @CustomType.Setter public Builder ownerUid(Integer ownerUid) { this.ownerUid = Objects.requireNonNull(ownerUid); return this; } + @CustomType.Setter public Builder permissions(String permissions) { this.permissions = Objects.requireNonNull(permissions); return this; - } public GetAccessPointRootDirectoryCreationInfo build() { - return new GetAccessPointRootDirectoryCreationInfo(ownerGid, ownerUid, permissions); + } + public GetAccessPointRootDirectoryCreationInfo build() { + final var o = new GetAccessPointRootDirectoryCreationInfo(); + o.ownerGid = ownerGid; + o.ownerUid = ownerUid; + o.permissions = permissions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointsResult.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointsResult.java index af577b54e46..20a63ec3f3d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetAccessPointsResult.java @@ -14,31 +14,20 @@ public final class GetAccessPointsResult { * @return Set of Amazon Resource Names (ARNs). * */ - private final List arns; - private final String fileSystemId; + private List arns; + private String fileSystemId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of identifiers. * */ - private final List ids; - - @CustomType.Constructor - private GetAccessPointsResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("fileSystemId") String fileSystemId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids) { - this.arns = arns; - this.fileSystemId = fileSystemId; - this.id = id; - this.ids = ids; - } + private List ids; + private GetAccessPointsResult() {} /** * @return Set of Amazon Resource Names (ARNs). * @@ -71,17 +60,13 @@ public static Builder builder() { public static Builder builder(GetAccessPointsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private String fileSystemId; private String id; private List ids; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAccessPointsResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -90,6 +75,7 @@ public Builder(GetAccessPointsResult defaults) { this.ids = defaults.ids; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -97,22 +83,31 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder fileSystemId(String fileSystemId) { this.fileSystemId = Objects.requireNonNull(fileSystemId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; } public Builder ids(String... ids) { return ids(List.of(ids)); - } public GetAccessPointsResult build() { - return new GetAccessPointsResult(arns, fileSystemId, id, ids); + } + public GetAccessPointsResult build() { + final var o = new GetAccessPointsResult(); + o.arns = arns; + o.fileSystemId = fileSystemId; + o.id = id; + o.ids = ids; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetFileSystemLifecyclePolicy.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetFileSystemLifecyclePolicy.java index 03264124dee..582ea84315d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetFileSystemLifecyclePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetFileSystemLifecyclePolicy.java @@ -9,17 +9,10 @@ @CustomType public final class GetFileSystemLifecyclePolicy { - private final String transitionToIa; - private final String transitionToPrimaryStorageClass; - - @CustomType.Constructor - private GetFileSystemLifecyclePolicy( - @CustomType.Parameter("transitionToIa") String transitionToIa, - @CustomType.Parameter("transitionToPrimaryStorageClass") String transitionToPrimaryStorageClass) { - this.transitionToIa = transitionToIa; - this.transitionToPrimaryStorageClass = transitionToPrimaryStorageClass; - } + private String transitionToIa; + private String transitionToPrimaryStorageClass; + private GetFileSystemLifecyclePolicy() {} public String transitionToIa() { return this.transitionToIa; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetFileSystemLifecyclePolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String transitionToIa; private String transitionToPrimaryStorageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFileSystemLifecyclePolicy defaults) { Objects.requireNonNull(defaults); this.transitionToIa = defaults.transitionToIa; this.transitionToPrimaryStorageClass = defaults.transitionToPrimaryStorageClass; } + @CustomType.Setter public Builder transitionToIa(String transitionToIa) { this.transitionToIa = Objects.requireNonNull(transitionToIa); return this; } + @CustomType.Setter public Builder transitionToPrimaryStorageClass(String transitionToPrimaryStorageClass) { this.transitionToPrimaryStorageClass = Objects.requireNonNull(transitionToPrimaryStorageClass); return this; - } public GetFileSystemLifecyclePolicy build() { - return new GetFileSystemLifecyclePolicy(transitionToIa, transitionToPrimaryStorageClass); + } + public GetFileSystemLifecyclePolicy build() { + final var o = new GetFileSystemLifecyclePolicy(); + o.transitionToIa = transitionToIa; + o.transitionToPrimaryStorageClass = transitionToPrimaryStorageClass; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetFileSystemResult.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetFileSystemResult.java index d701debeade..9aa0ee15703 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetFileSystemResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetFileSystemResult.java @@ -18,101 +18,68 @@ public final class GetFileSystemResult { * @return Amazon Resource Name of the file system. * */ - private final String arn; + private String arn; /** * @return The identifier of the Availability Zone in which the file system's One Zone storage classes exist. * */ - private final String availabilityZoneId; + private String availabilityZoneId; /** * @return The Availability Zone name in which the file system's One Zone storage classes exist. * */ - private final String availabilityZoneName; - private final String creationToken; + private String availabilityZoneName; + private String creationToken; /** * @return The DNS name for the filesystem per [documented convention](http://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-cmd-dns-name.html). * */ - private final String dnsName; + private String dnsName; /** * @return Whether EFS is encrypted. * */ - private final Boolean encrypted; - private final String fileSystemId; + private Boolean encrypted; + private String fileSystemId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The ARN for the KMS encryption key. * */ - private final String kmsKeyId; + private String kmsKeyId; /** * @return A file system [lifecycle policy](https://docs.aws.amazon.com/efs/latest/ug/API_LifecyclePolicy.html) object. * */ - private final GetFileSystemLifecyclePolicy lifecyclePolicy; + private GetFileSystemLifecyclePolicy lifecyclePolicy; /** * @return The file system performance mode. * */ - private final String performanceMode; + private String performanceMode; /** * @return The throughput, measured in MiB/s, that you want to provision for the file system. * * `tags` -A map of tags to assign to the file system. * */ - private final Double provisionedThroughputInMibps; + private Double provisionedThroughputInMibps; /** * @return The current byte count used by the file system. * */ - private final Integer sizeInBytes; - private final Map tags; + private Integer sizeInBytes; + private Map tags; /** * @return Throughput mode for the file system. * */ - private final String throughputMode; - - @CustomType.Constructor - private GetFileSystemResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("availabilityZoneId") String availabilityZoneId, - @CustomType.Parameter("availabilityZoneName") String availabilityZoneName, - @CustomType.Parameter("creationToken") String creationToken, - @CustomType.Parameter("dnsName") String dnsName, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("fileSystemId") String fileSystemId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("lifecyclePolicy") GetFileSystemLifecyclePolicy lifecyclePolicy, - @CustomType.Parameter("performanceMode") String performanceMode, - @CustomType.Parameter("provisionedThroughputInMibps") Double provisionedThroughputInMibps, - @CustomType.Parameter("sizeInBytes") Integer sizeInBytes, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("throughputMode") String throughputMode) { - this.arn = arn; - this.availabilityZoneId = availabilityZoneId; - this.availabilityZoneName = availabilityZoneName; - this.creationToken = creationToken; - this.dnsName = dnsName; - this.encrypted = encrypted; - this.fileSystemId = fileSystemId; - this.id = id; - this.kmsKeyId = kmsKeyId; - this.lifecyclePolicy = lifecyclePolicy; - this.performanceMode = performanceMode; - this.provisionedThroughputInMibps = provisionedThroughputInMibps; - this.sizeInBytes = sizeInBytes; - this.tags = tags; - this.throughputMode = throughputMode; - } + private String throughputMode; + private GetFileSystemResult() {} /** * @return Amazon Resource Name of the file system. * @@ -215,7 +182,7 @@ public static Builder builder() { public static Builder builder(GetFileSystemResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String availabilityZoneId; @@ -232,11 +199,7 @@ public static final class Builder { private Integer sizeInBytes; private Map tags; private String throughputMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFileSystemResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -256,67 +219,99 @@ public Builder(GetFileSystemResult defaults) { this.throughputMode = defaults.throughputMode; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder availabilityZoneId(String availabilityZoneId) { this.availabilityZoneId = Objects.requireNonNull(availabilityZoneId); return this; } + @CustomType.Setter public Builder availabilityZoneName(String availabilityZoneName) { this.availabilityZoneName = Objects.requireNonNull(availabilityZoneName); return this; } + @CustomType.Setter public Builder creationToken(String creationToken) { this.creationToken = Objects.requireNonNull(creationToken); return this; } + @CustomType.Setter public Builder dnsName(String dnsName) { this.dnsName = Objects.requireNonNull(dnsName); return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder fileSystemId(String fileSystemId) { this.fileSystemId = Objects.requireNonNull(fileSystemId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder lifecyclePolicy(GetFileSystemLifecyclePolicy lifecyclePolicy) { this.lifecyclePolicy = Objects.requireNonNull(lifecyclePolicy); return this; } + @CustomType.Setter public Builder performanceMode(String performanceMode) { this.performanceMode = Objects.requireNonNull(performanceMode); return this; } + @CustomType.Setter public Builder provisionedThroughputInMibps(Double provisionedThroughputInMibps) { this.provisionedThroughputInMibps = Objects.requireNonNull(provisionedThroughputInMibps); return this; } + @CustomType.Setter public Builder sizeInBytes(Integer sizeInBytes) { this.sizeInBytes = Objects.requireNonNull(sizeInBytes); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder throughputMode(String throughputMode) { this.throughputMode = Objects.requireNonNull(throughputMode); return this; - } public GetFileSystemResult build() { - return new GetFileSystemResult(arn, availabilityZoneId, availabilityZoneName, creationToken, dnsName, encrypted, fileSystemId, id, kmsKeyId, lifecyclePolicy, performanceMode, provisionedThroughputInMibps, sizeInBytes, tags, throughputMode); + } + public GetFileSystemResult build() { + final var o = new GetFileSystemResult(); + o.arn = arn; + o.availabilityZoneId = availabilityZoneId; + o.availabilityZoneName = availabilityZoneName; + o.creationToken = creationToken; + o.dnsName = dnsName; + o.encrypted = encrypted; + o.fileSystemId = fileSystemId; + o.id = id; + o.kmsKeyId = kmsKeyId; + o.lifecyclePolicy = lifecyclePolicy; + o.performanceMode = performanceMode; + o.provisionedThroughputInMibps = provisionedThroughputInMibps; + o.sizeInBytes = sizeInBytes; + o.tags = tags; + o.throughputMode = throughputMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetMountTargetResult.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetMountTargetResult.java index 7e347c6b610..dda7b883141 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetMountTargetResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/GetMountTargetResult.java @@ -12,97 +12,66 @@ @CustomType public final class GetMountTargetResult { - private final @Nullable String accessPointId; + private @Nullable String accessPointId; /** * @return The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in. * */ - private final String availabilityZoneId; + private String availabilityZoneId; /** * @return The name of the Availability Zone (AZ) that the mount target resides in. * */ - private final String availabilityZoneName; + private String availabilityZoneName; /** * @return The DNS name for the EFS file system. * */ - private final String dnsName; + private String dnsName; /** * @return Amazon Resource Name of the file system for which the mount target is intended. * */ - private final String fileSystemArn; - private final String fileSystemId; + private String fileSystemArn; + private String fileSystemId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Address at which the file system may be mounted via the mount target. * */ - private final String ipAddress; + private String ipAddress; /** * @return The DNS name for the given subnet/AZ per [documented convention](http://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-cmd-dns-name.html). * */ - private final String mountTargetDnsName; - private final String mountTargetId; + private String mountTargetDnsName; + private String mountTargetId; /** * @return The ID of the network interface that Amazon EFS created when it created the mount target. * */ - private final String networkInterfaceId; + private String networkInterfaceId; /** * @return AWS account ID that owns the resource. * */ - private final String ownerId; + private String ownerId; /** * @return List of VPC security group IDs attached to the mount target. * */ - private final List securityGroups; + private List securityGroups; /** * @return ID of the mount target's subnet. * */ - private final String subnetId; - - @CustomType.Constructor - private GetMountTargetResult( - @CustomType.Parameter("accessPointId") @Nullable String accessPointId, - @CustomType.Parameter("availabilityZoneId") String availabilityZoneId, - @CustomType.Parameter("availabilityZoneName") String availabilityZoneName, - @CustomType.Parameter("dnsName") String dnsName, - @CustomType.Parameter("fileSystemArn") String fileSystemArn, - @CustomType.Parameter("fileSystemId") String fileSystemId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ipAddress") String ipAddress, - @CustomType.Parameter("mountTargetDnsName") String mountTargetDnsName, - @CustomType.Parameter("mountTargetId") String mountTargetId, - @CustomType.Parameter("networkInterfaceId") String networkInterfaceId, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("subnetId") String subnetId) { - this.accessPointId = accessPointId; - this.availabilityZoneId = availabilityZoneId; - this.availabilityZoneName = availabilityZoneName; - this.dnsName = dnsName; - this.fileSystemArn = fileSystemArn; - this.fileSystemId = fileSystemId; - this.id = id; - this.ipAddress = ipAddress; - this.mountTargetDnsName = mountTargetDnsName; - this.mountTargetId = mountTargetId; - this.networkInterfaceId = networkInterfaceId; - this.ownerId = ownerId; - this.securityGroups = securityGroups; - this.subnetId = subnetId; - } + private String subnetId; + private GetMountTargetResult() {} public Optional accessPointId() { return Optional.ofNullable(this.accessPointId); } @@ -197,7 +166,7 @@ public static Builder builder() { public static Builder builder(GetMountTargetResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessPointId; private String availabilityZoneId; @@ -213,11 +182,7 @@ public static final class Builder { private String ownerId; private List securityGroups; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMountTargetResult defaults) { Objects.requireNonNull(defaults); this.accessPointId = defaults.accessPointId; @@ -236,54 +201,67 @@ public Builder(GetMountTargetResult defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder accessPointId(@Nullable String accessPointId) { this.accessPointId = accessPointId; return this; } + @CustomType.Setter public Builder availabilityZoneId(String availabilityZoneId) { this.availabilityZoneId = Objects.requireNonNull(availabilityZoneId); return this; } + @CustomType.Setter public Builder availabilityZoneName(String availabilityZoneName) { this.availabilityZoneName = Objects.requireNonNull(availabilityZoneName); return this; } + @CustomType.Setter public Builder dnsName(String dnsName) { this.dnsName = Objects.requireNonNull(dnsName); return this; } + @CustomType.Setter public Builder fileSystemArn(String fileSystemArn) { this.fileSystemArn = Objects.requireNonNull(fileSystemArn); return this; } + @CustomType.Setter public Builder fileSystemId(String fileSystemId) { this.fileSystemId = Objects.requireNonNull(fileSystemId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ipAddress(String ipAddress) { this.ipAddress = Objects.requireNonNull(ipAddress); return this; } + @CustomType.Setter public Builder mountTargetDnsName(String mountTargetDnsName) { this.mountTargetDnsName = Objects.requireNonNull(mountTargetDnsName); return this; } + @CustomType.Setter public Builder mountTargetId(String mountTargetId) { this.mountTargetId = Objects.requireNonNull(mountTargetId); return this; } + @CustomType.Setter public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = Objects.requireNonNull(networkInterfaceId); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -291,11 +269,28 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public GetMountTargetResult build() { - return new GetMountTargetResult(accessPointId, availabilityZoneId, availabilityZoneName, dnsName, fileSystemArn, fileSystemId, id, ipAddress, mountTargetDnsName, mountTargetId, networkInterfaceId, ownerId, securityGroups, subnetId); + } + public GetMountTargetResult build() { + final var o = new GetMountTargetResult(); + o.accessPointId = accessPointId; + o.availabilityZoneId = availabilityZoneId; + o.availabilityZoneName = availabilityZoneName; + o.dnsName = dnsName; + o.fileSystemArn = fileSystemArn; + o.fileSystemId = fileSystemId; + o.id = id; + o.ipAddress = ipAddress; + o.mountTargetDnsName = mountTargetDnsName; + o.mountTargetId = mountTargetId; + o.networkInterfaceId = networkInterfaceId; + o.ownerId = ownerId; + o.securityGroups = securityGroups; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/ReplicationConfigurationDestination.java b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/ReplicationConfigurationDestination.java index 6184f3a580c..074a91c5d5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/ReplicationConfigurationDestination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/efs/outputs/ReplicationConfigurationDestination.java @@ -15,34 +15,21 @@ public final class ReplicationConfigurationDestination { * @return The availability zone in which the replica should be created. If specified, the replica will be created with One Zone storage. If omitted, regional storage will be used. * */ - private final @Nullable String availabilityZoneName; - private final @Nullable String fileSystemId; + private @Nullable String availabilityZoneName; + private @Nullable String fileSystemId; /** * @return The Key ID, ARN, alias, or alias ARN of the KMS key that should be used to encrypt the replica file system. If omitted, the default KMS key for EFS `/aws/elasticfilesystem` will be used. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return The region in which the replica should be created. * */ - private final @Nullable String region; - private final @Nullable String status; - - @CustomType.Constructor - private ReplicationConfigurationDestination( - @CustomType.Parameter("availabilityZoneName") @Nullable String availabilityZoneName, - @CustomType.Parameter("fileSystemId") @Nullable String fileSystemId, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("region") @Nullable String region, - @CustomType.Parameter("status") @Nullable String status) { - this.availabilityZoneName = availabilityZoneName; - this.fileSystemId = fileSystemId; - this.kmsKeyId = kmsKeyId; - this.region = region; - this.status = status; - } + private @Nullable String region; + private @Nullable String status; + private ReplicationConfigurationDestination() {} /** * @return The availability zone in which the replica should be created. If specified, the replica will be created with One Zone storage. If omitted, regional storage will be used. * @@ -78,18 +65,14 @@ public static Builder builder() { public static Builder builder(ReplicationConfigurationDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String availabilityZoneName; private @Nullable String fileSystemId; private @Nullable String kmsKeyId; private @Nullable String region; private @Nullable String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReplicationConfigurationDestination defaults) { Objects.requireNonNull(defaults); this.availabilityZoneName = defaults.availabilityZoneName; @@ -99,27 +82,39 @@ public Builder(ReplicationConfigurationDestination defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder availabilityZoneName(@Nullable String availabilityZoneName) { this.availabilityZoneName = availabilityZoneName; return this; } + @CustomType.Setter public Builder fileSystemId(@Nullable String fileSystemId) { this.fileSystemId = fileSystemId; return this; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; - } public ReplicationConfigurationDestination build() { - return new ReplicationConfigurationDestination(availabilityZoneName, fileSystemId, kmsKeyId, region, status); + } + public ReplicationConfigurationDestination build() { + final var o = new ReplicationConfigurationDestination(); + o.availabilityZoneName = availabilityZoneName; + o.fileSystemId = fileSystemId; + o.kmsKeyId = kmsKeyId; + o.region = region; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterCertificateAuthority.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterCertificateAuthority.java index 3e9a9a2c891..e48e695b476 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterCertificateAuthority.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterCertificateAuthority.java @@ -15,13 +15,9 @@ public final class ClusterCertificateAuthority { * @return Base64 encoded certificate data required to communicate with your cluster. Add this to the `certificate-authority-data` section of the `kubeconfig` file for your cluster. * */ - private final @Nullable String data; - - @CustomType.Constructor - private ClusterCertificateAuthority(@CustomType.Parameter("data") @Nullable String data) { - this.data = data; - } + private @Nullable String data; + private ClusterCertificateAuthority() {} /** * @return Base64 encoded certificate data required to communicate with your cluster. Add this to the `certificate-authority-data` section of the `kubeconfig` file for your cluster. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ClusterCertificateAuthority defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterCertificateAuthority defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; - } public ClusterCertificateAuthority build() { - return new ClusterCertificateAuthority(data); + } + public ClusterCertificateAuthority build() { + final var o = new ClusterCertificateAuthority(); + o.data = data; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterEncryptionConfig.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterEncryptionConfig.java index fd49b308444..c790edb3838 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterEncryptionConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterEncryptionConfig.java @@ -15,21 +15,14 @@ public final class ClusterEncryptionConfig { * @return Configuration block with provider for encryption. Detailed below. * */ - private final ClusterEncryptionConfigProvider provider; + private ClusterEncryptionConfigProvider provider; /** * @return List of strings with resources to be encrypted. Valid values: `secrets`. * */ - private final List resources; - - @CustomType.Constructor - private ClusterEncryptionConfig( - @CustomType.Parameter("provider") ClusterEncryptionConfigProvider provider, - @CustomType.Parameter("resources") List resources) { - this.provider = provider; - this.resources = resources; - } + private List resources; + private ClusterEncryptionConfig() {} /** * @return Configuration block with provider for encryption. Detailed below. * @@ -52,33 +45,35 @@ public static Builder builder() { public static Builder builder(ClusterEncryptionConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private ClusterEncryptionConfigProvider provider; private List resources; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterEncryptionConfig defaults) { Objects.requireNonNull(defaults); this.provider = defaults.provider; this.resources = defaults.resources; } + @CustomType.Setter public Builder provider(ClusterEncryptionConfigProvider provider) { this.provider = Objects.requireNonNull(provider); return this; } + @CustomType.Setter public Builder resources(List resources) { this.resources = Objects.requireNonNull(resources); return this; } public Builder resources(String... resources) { return resources(List.of(resources)); - } public ClusterEncryptionConfig build() { - return new ClusterEncryptionConfig(provider, resources); + } + public ClusterEncryptionConfig build() { + final var o = new ClusterEncryptionConfig(); + o.provider = provider; + o.resources = resources; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterEncryptionConfigProvider.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterEncryptionConfigProvider.java index d60dc8c3361..24b20bafd5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterEncryptionConfigProvider.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterEncryptionConfigProvider.java @@ -13,13 +13,9 @@ public final class ClusterEncryptionConfigProvider { * @return ARN of the Key Management Service (KMS) customer master key (CMK). The CMK must be symmetric, created in the same region as the cluster, and if the CMK was created in a different account, the user must have access to the CMK. For more information, see [Allowing Users in Other Accounts to Use a CMK in the AWS Key Management Service Developer Guide](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html). * */ - private final String keyArn; - - @CustomType.Constructor - private ClusterEncryptionConfigProvider(@CustomType.Parameter("keyArn") String keyArn) { - this.keyArn = keyArn; - } + private String keyArn; + private ClusterEncryptionConfigProvider() {} /** * @return ARN of the Key Management Service (KMS) customer master key (CMK). The CMK must be symmetric, created in the same region as the cluster, and if the CMK was created in a different account, the user must have access to the CMK. For more information, see [Allowing Users in Other Accounts to Use a CMK in the AWS Key Management Service Developer Guide](https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html). * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ClusterEncryptionConfigProvider defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String keyArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterEncryptionConfigProvider defaults) { Objects.requireNonNull(defaults); this.keyArn = defaults.keyArn; } + @CustomType.Setter public Builder keyArn(String keyArn) { this.keyArn = Objects.requireNonNull(keyArn); return this; - } public ClusterEncryptionConfigProvider build() { - return new ClusterEncryptionConfigProvider(keyArn); + } + public ClusterEncryptionConfigProvider build() { + final var o = new ClusterEncryptionConfigProvider(); + o.keyArn = keyArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterIdentity.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterIdentity.java index 86398d76cee..8a2f3d28c40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterIdentity.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterIdentity.java @@ -15,13 +15,9 @@ public final class ClusterIdentity { * @return Nested block containing [OpenID Connect](https://openid.net/connect/) identity provider information for the cluster. Detailed below. * */ - private final @Nullable List oidcs; - - @CustomType.Constructor - private ClusterIdentity(@CustomType.Parameter("oidcs") @Nullable List oidcs) { - this.oidcs = oidcs; - } + private @Nullable List oidcs; + private ClusterIdentity() {} /** * @return Nested block containing [OpenID Connect](https://openid.net/connect/) identity provider information for the cluster. Detailed below. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(ClusterIdentity defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List oidcs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterIdentity defaults) { Objects.requireNonNull(defaults); this.oidcs = defaults.oidcs; } + @CustomType.Setter public Builder oidcs(@Nullable List oidcs) { this.oidcs = oidcs; return this; } public Builder oidcs(ClusterIdentityOidc... oidcs) { return oidcs(List.of(oidcs)); - } public ClusterIdentity build() { - return new ClusterIdentity(oidcs); + } + public ClusterIdentity build() { + final var o = new ClusterIdentity(); + o.oidcs = oidcs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterIdentityOidc.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterIdentityOidc.java index 20bac5b1da0..1070ac12604 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterIdentityOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterIdentityOidc.java @@ -15,13 +15,9 @@ public final class ClusterIdentityOidc { * @return Issuer URL for the OpenID Connect identity provider. * */ - private final @Nullable String issuer; - - @CustomType.Constructor - private ClusterIdentityOidc(@CustomType.Parameter("issuer") @Nullable String issuer) { - this.issuer = issuer; - } + private @Nullable String issuer; + private ClusterIdentityOidc() {} /** * @return Issuer URL for the OpenID Connect identity provider. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ClusterIdentityOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String issuer; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterIdentityOidc defaults) { Objects.requireNonNull(defaults); this.issuer = defaults.issuer; } + @CustomType.Setter public Builder issuer(@Nullable String issuer) { this.issuer = issuer; return this; - } public ClusterIdentityOidc build() { - return new ClusterIdentityOidc(issuer); + } + public ClusterIdentityOidc build() { + final var o = new ClusterIdentityOidc(); + o.issuer = issuer; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterKubernetesNetworkConfig.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterKubernetesNetworkConfig.java index 78f40b9fe87..11b074f2962 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterKubernetesNetworkConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterKubernetesNetworkConfig.java @@ -15,21 +15,14 @@ public final class ClusterKubernetesNetworkConfig { * @return The IP family used to assign Kubernetes pod and service addresses. Valid values are `ipv4` (default) and `ipv6`. You can only specify an IP family when you create a cluster, changing this value will force a new cluster to be created. * */ - private final @Nullable String ipFamily; + private @Nullable String ipFamily; /** * @return The CIDR block to assign Kubernetes service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. You can only specify a custom CIDR block when you create a cluster, changing this value will force a new cluster to be created. The block must meet the following requirements: * */ - private final @Nullable String serviceIpv4Cidr; - - @CustomType.Constructor - private ClusterKubernetesNetworkConfig( - @CustomType.Parameter("ipFamily") @Nullable String ipFamily, - @CustomType.Parameter("serviceIpv4Cidr") @Nullable String serviceIpv4Cidr) { - this.ipFamily = ipFamily; - this.serviceIpv4Cidr = serviceIpv4Cidr; - } + private @Nullable String serviceIpv4Cidr; + private ClusterKubernetesNetworkConfig() {} /** * @return The IP family used to assign Kubernetes pod and service addresses. Valid values are `ipv4` (default) and `ipv6`. You can only specify an IP family when you create a cluster, changing this value will force a new cluster to be created. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ClusterKubernetesNetworkConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String ipFamily; private @Nullable String serviceIpv4Cidr; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterKubernetesNetworkConfig defaults) { Objects.requireNonNull(defaults); this.ipFamily = defaults.ipFamily; this.serviceIpv4Cidr = defaults.serviceIpv4Cidr; } + @CustomType.Setter public Builder ipFamily(@Nullable String ipFamily) { this.ipFamily = ipFamily; return this; } + @CustomType.Setter public Builder serviceIpv4Cidr(@Nullable String serviceIpv4Cidr) { this.serviceIpv4Cidr = serviceIpv4Cidr; return this; - } public ClusterKubernetesNetworkConfig build() { - return new ClusterKubernetesNetworkConfig(ipFamily, serviceIpv4Cidr); + } + public ClusterKubernetesNetworkConfig build() { + final var o = new ClusterKubernetesNetworkConfig(); + o.ipFamily = ipFamily; + o.serviceIpv4Cidr = serviceIpv4Cidr; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterVpcConfig.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterVpcConfig.java index 64a6b64675d..1526f822175 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterVpcConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/ClusterVpcConfig.java @@ -17,56 +17,39 @@ public final class ClusterVpcConfig { * @return Cluster security group that was created by Amazon EKS for the cluster. Managed node groups use this security group for control-plane-to-data-plane communication. * */ - private final @Nullable String clusterSecurityGroupId; + private @Nullable String clusterSecurityGroupId; /** * @return Whether the Amazon EKS private API server endpoint is enabled. Default is `false`. * */ - private final @Nullable Boolean endpointPrivateAccess; + private @Nullable Boolean endpointPrivateAccess; /** * @return Whether the Amazon EKS public API server endpoint is enabled. Default is `true`. * */ - private final @Nullable Boolean endpointPublicAccess; + private @Nullable Boolean endpointPublicAccess; /** * @return List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint when enabled. EKS defaults this to a list with `0.0.0.0/0`. This provider will only perform drift detection of its value when present in a configuration. * */ - private final @Nullable List publicAccessCidrs; + private @Nullable List publicAccessCidrs; /** * @return List of security group IDs for the cross-account elastic network interfaces that Amazon EKS creates to use to allow communication between your worker nodes and the Kubernetes control plane. * */ - private final @Nullable List securityGroupIds; + private @Nullable List securityGroupIds; /** * @return List of subnet IDs. Must be in at least two different availability zones. Amazon EKS creates cross-account elastic network interfaces in these subnets to allow communication between your worker nodes and the Kubernetes control plane. * */ - private final List subnetIds; + private List subnetIds; /** * @return ID of the VPC associated with your cluster. * */ - private final @Nullable String vpcId; - - @CustomType.Constructor - private ClusterVpcConfig( - @CustomType.Parameter("clusterSecurityGroupId") @Nullable String clusterSecurityGroupId, - @CustomType.Parameter("endpointPrivateAccess") @Nullable Boolean endpointPrivateAccess, - @CustomType.Parameter("endpointPublicAccess") @Nullable Boolean endpointPublicAccess, - @CustomType.Parameter("publicAccessCidrs") @Nullable List publicAccessCidrs, - @CustomType.Parameter("securityGroupIds") @Nullable List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.clusterSecurityGroupId = clusterSecurityGroupId; - this.endpointPrivateAccess = endpointPrivateAccess; - this.endpointPublicAccess = endpointPublicAccess; - this.publicAccessCidrs = publicAccessCidrs; - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private @Nullable String vpcId; + private ClusterVpcConfig() {} /** * @return Cluster security group that was created by Amazon EKS for the cluster. Managed node groups use this security group for control-plane-to-data-plane communication. * @@ -124,7 +107,7 @@ public static Builder builder() { public static Builder builder(ClusterVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String clusterSecurityGroupId; private @Nullable Boolean endpointPrivateAccess; @@ -133,11 +116,7 @@ public static final class Builder { private @Nullable List securityGroupIds; private List subnetIds; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterVpcConfig defaults) { Objects.requireNonNull(defaults); this.clusterSecurityGroupId = defaults.clusterSecurityGroupId; @@ -149,18 +128,22 @@ public Builder(ClusterVpcConfig defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder clusterSecurityGroupId(@Nullable String clusterSecurityGroupId) { this.clusterSecurityGroupId = clusterSecurityGroupId; return this; } + @CustomType.Setter public Builder endpointPrivateAccess(@Nullable Boolean endpointPrivateAccess) { this.endpointPrivateAccess = endpointPrivateAccess; return this; } + @CustomType.Setter public Builder endpointPublicAccess(@Nullable Boolean endpointPublicAccess) { this.endpointPublicAccess = endpointPublicAccess; return this; } + @CustomType.Setter public Builder publicAccessCidrs(@Nullable List publicAccessCidrs) { this.publicAccessCidrs = publicAccessCidrs; return this; @@ -168,6 +151,7 @@ public Builder publicAccessCidrs(@Nullable List publicAccessCidrs) { public Builder publicAccessCidrs(String... publicAccessCidrs) { return publicAccessCidrs(List.of(publicAccessCidrs)); } + @CustomType.Setter public Builder securityGroupIds(@Nullable List securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; @@ -175,6 +159,7 @@ public Builder securityGroupIds(@Nullable List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -182,11 +167,21 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(@Nullable String vpcId) { this.vpcId = vpcId; return this; - } public ClusterVpcConfig build() { - return new ClusterVpcConfig(clusterSecurityGroupId, endpointPrivateAccess, endpointPublicAccess, publicAccessCidrs, securityGroupIds, subnetIds, vpcId); + } + public ClusterVpcConfig build() { + final var o = new ClusterVpcConfig(); + o.clusterSecurityGroupId = clusterSecurityGroupId; + o.endpointPrivateAccess = endpointPrivateAccess; + o.endpointPublicAccess = endpointPublicAccess; + o.publicAccessCidrs = publicAccessCidrs; + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/FargateProfileSelector.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/FargateProfileSelector.java index 48b69e4baa9..59a54ba0143 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/FargateProfileSelector.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/FargateProfileSelector.java @@ -15,21 +15,14 @@ public final class FargateProfileSelector { * @return Key-value map of Kubernetes labels for selection. * */ - private final @Nullable Map labels; + private @Nullable Map labels; /** * @return Kubernetes namespace for selection. * */ - private final String namespace; - - @CustomType.Constructor - private FargateProfileSelector( - @CustomType.Parameter("labels") @Nullable Map labels, - @CustomType.Parameter("namespace") String namespace) { - this.labels = labels; - this.namespace = namespace; - } + private String namespace; + private FargateProfileSelector() {} /** * @return Key-value map of Kubernetes labels for selection. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FargateProfileSelector defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map labels; private String namespace; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FargateProfileSelector defaults) { Objects.requireNonNull(defaults); this.labels = defaults.labels; this.namespace = defaults.namespace; } + @CustomType.Setter public Builder labels(@Nullable Map labels) { this.labels = labels; return this; } + @CustomType.Setter public Builder namespace(String namespace) { this.namespace = Objects.requireNonNull(namespace); return this; - } public FargateProfileSelector build() { - return new FargateProfileSelector(labels, namespace); + } + public FargateProfileSelector build() { + final var o = new FargateProfileSelector(); + o.labels = labels; + o.namespace = namespace; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetAddonResult.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetAddonResult.java index c1e16f6430d..224da87c06c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetAddonResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetAddonResult.java @@ -10,63 +10,42 @@ @CustomType public final class GetAddonResult { - private final String addonName; + private String addonName; /** * @return The version of EKS add-on. * */ - private final String addonVersion; + private String addonVersion; /** * @return Amazon Resource Name (ARN) of the EKS add-on. * */ - private final String arn; - private final String clusterName; + private String arn; + private String clusterName; /** * @return Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the EKS add-on was created. * */ - private final String createdAt; + private String createdAt; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the EKS add-on was updated. * */ - private final String modifiedAt; + private String modifiedAt; /** * @return ARN of IAM role used for EKS add-on. If value is empty - * then add-on uses the IAM role assigned to the EKS Cluster node. * */ - private final String serviceAccountRoleArn; - private final Map tags; - - @CustomType.Constructor - private GetAddonResult( - @CustomType.Parameter("addonName") String addonName, - @CustomType.Parameter("addonVersion") String addonVersion, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("clusterName") String clusterName, - @CustomType.Parameter("createdAt") String createdAt, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("modifiedAt") String modifiedAt, - @CustomType.Parameter("serviceAccountRoleArn") String serviceAccountRoleArn, - @CustomType.Parameter("tags") Map tags) { - this.addonName = addonName; - this.addonVersion = addonVersion; - this.arn = arn; - this.clusterName = clusterName; - this.createdAt = createdAt; - this.id = id; - this.modifiedAt = modifiedAt; - this.serviceAccountRoleArn = serviceAccountRoleArn; - this.tags = tags; - } + private String serviceAccountRoleArn; + private Map tags; + private GetAddonResult() {} public String addonName() { return this.addonName; } @@ -127,7 +106,7 @@ public static Builder builder() { public static Builder builder(GetAddonResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String addonName; private String addonVersion; @@ -138,11 +117,7 @@ public static final class Builder { private String modifiedAt; private String serviceAccountRoleArn; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAddonResult defaults) { Objects.requireNonNull(defaults); this.addonName = defaults.addonName; @@ -156,43 +131,63 @@ public Builder(GetAddonResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder addonName(String addonName) { this.addonName = Objects.requireNonNull(addonName); return this; } + @CustomType.Setter public Builder addonVersion(String addonVersion) { this.addonVersion = Objects.requireNonNull(addonVersion); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder clusterName(String clusterName) { this.clusterName = Objects.requireNonNull(clusterName); return this; } + @CustomType.Setter public Builder createdAt(String createdAt) { this.createdAt = Objects.requireNonNull(createdAt); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder modifiedAt(String modifiedAt) { this.modifiedAt = Objects.requireNonNull(modifiedAt); return this; } + @CustomType.Setter public Builder serviceAccountRoleArn(String serviceAccountRoleArn) { this.serviceAccountRoleArn = Objects.requireNonNull(serviceAccountRoleArn); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetAddonResult build() { - return new GetAddonResult(addonName, addonVersion, arn, clusterName, createdAt, id, modifiedAt, serviceAccountRoleArn, tags); + } + public GetAddonResult build() { + final var o = new GetAddonResult(); + o.addonName = addonName; + o.addonVersion = addonVersion; + o.arn = arn; + o.clusterName = clusterName; + o.createdAt = createdAt; + o.id = id; + o.modifiedAt = modifiedAt; + o.serviceAccountRoleArn = serviceAccountRoleArn; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetAddonVersionResult.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetAddonVersionResult.java index 687e41f84ba..2aff525a2ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetAddonVersionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetAddonVersionResult.java @@ -12,34 +12,21 @@ @CustomType public final class GetAddonVersionResult { - private final String addonName; + private String addonName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String kubernetesVersion; - private final @Nullable Boolean mostRecent; + private String id; + private String kubernetesVersion; + private @Nullable Boolean mostRecent; /** * @return The version of the EKS add-on. * */ - private final String version; - - @CustomType.Constructor - private GetAddonVersionResult( - @CustomType.Parameter("addonName") String addonName, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kubernetesVersion") String kubernetesVersion, - @CustomType.Parameter("mostRecent") @Nullable Boolean mostRecent, - @CustomType.Parameter("version") String version) { - this.addonName = addonName; - this.id = id; - this.kubernetesVersion = kubernetesVersion; - this.mostRecent = mostRecent; - this.version = version; - } + private String version; + private GetAddonVersionResult() {} public String addonName() { return this.addonName; } @@ -71,18 +58,14 @@ public static Builder builder() { public static Builder builder(GetAddonVersionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String addonName; private String id; private String kubernetesVersion; private @Nullable Boolean mostRecent; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAddonVersionResult defaults) { Objects.requireNonNull(defaults); this.addonName = defaults.addonName; @@ -92,27 +75,39 @@ public Builder(GetAddonVersionResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder addonName(String addonName) { this.addonName = Objects.requireNonNull(addonName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kubernetesVersion(String kubernetesVersion) { this.kubernetesVersion = Objects.requireNonNull(kubernetesVersion); return this; } + @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { this.mostRecent = mostRecent; return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public GetAddonVersionResult build() { - return new GetAddonVersionResult(addonName, id, kubernetesVersion, mostRecent, version); + } + public GetAddonVersionResult build() { + final var o = new GetAddonVersionResult(); + o.addonName = addonName; + o.id = id; + o.kubernetesVersion = kubernetesVersion; + o.mostRecent = mostRecent; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterAuthResult.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterAuthResult.java index 83268268214..e6320429637 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterAuthResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterAuthResult.java @@ -13,24 +13,15 @@ public final class GetClusterAuthResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return The token to use to authenticate with the cluster. * */ - private final String token; - - @CustomType.Constructor - private GetClusterAuthResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("token") String token) { - this.id = id; - this.name = name; - this.token = token; - } + private String token; + private GetClusterAuthResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -56,16 +47,12 @@ public static Builder builder() { public static Builder builder(GetClusterAuthResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String name; private String token; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterAuthResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -73,19 +60,27 @@ public Builder(GetClusterAuthResult defaults) { this.token = defaults.token; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder token(String token) { this.token = Objects.requireNonNull(token); return this; - } public GetClusterAuthResult build() { - return new GetClusterAuthResult(id, name, token); + } + public GetClusterAuthResult build() { + final var o = new GetClusterAuthResult(); + o.id = id; + o.name = name; + o.token = token; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterCertificateAuthority.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterCertificateAuthority.java index ad8bf171002..e163361de55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterCertificateAuthority.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterCertificateAuthority.java @@ -13,13 +13,9 @@ public final class GetClusterCertificateAuthority { * @return The base64 encoded certificate data required to communicate with your cluster. Add this to the `certificate-authority-data` section of the `kubeconfig` file for your cluster. * */ - private final String data; - - @CustomType.Constructor - private GetClusterCertificateAuthority(@CustomType.Parameter("data") String data) { - this.data = data; - } + private String data; + private GetClusterCertificateAuthority() {} /** * @return The base64 encoded certificate data required to communicate with your cluster. Add this to the `certificate-authority-data` section of the `kubeconfig` file for your cluster. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetClusterCertificateAuthority defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String data; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterCertificateAuthority defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; } + @CustomType.Setter public Builder data(String data) { this.data = Objects.requireNonNull(data); return this; - } public GetClusterCertificateAuthority build() { - return new GetClusterCertificateAuthority(data); + } + public GetClusterCertificateAuthority build() { + final var o = new GetClusterCertificateAuthority(); + o.data = data; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterIdentity.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterIdentity.java index 5b28fe50ceb..3ffd838046a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterIdentity.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterIdentity.java @@ -14,13 +14,9 @@ public final class GetClusterIdentity { * @return Nested attribute containing [OpenID Connect](https://openid.net/connect/) identity provider information for the cluster. * */ - private final List oidcs; - - @CustomType.Constructor - private GetClusterIdentity(@CustomType.Parameter("oidcs") List oidcs) { - this.oidcs = oidcs; - } + private List oidcs; + private GetClusterIdentity() {} /** * @return Nested attribute containing [OpenID Connect](https://openid.net/connect/) identity provider information for the cluster. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(GetClusterIdentity defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List oidcs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterIdentity defaults) { Objects.requireNonNull(defaults); this.oidcs = defaults.oidcs; } + @CustomType.Setter public Builder oidcs(List oidcs) { this.oidcs = Objects.requireNonNull(oidcs); return this; } public Builder oidcs(GetClusterIdentityOidc... oidcs) { return oidcs(List.of(oidcs)); - } public GetClusterIdentity build() { - return new GetClusterIdentity(oidcs); + } + public GetClusterIdentity build() { + final var o = new GetClusterIdentity(); + o.oidcs = oidcs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterIdentityOidc.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterIdentityOidc.java index 1515144464c..c458c2ee192 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterIdentityOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterIdentityOidc.java @@ -13,13 +13,9 @@ public final class GetClusterIdentityOidc { * @return Issuer URL for the OpenID Connect identity provider. * */ - private final String issuer; - - @CustomType.Constructor - private GetClusterIdentityOidc(@CustomType.Parameter("issuer") String issuer) { - this.issuer = issuer; - } + private String issuer; + private GetClusterIdentityOidc() {} /** * @return Issuer URL for the OpenID Connect identity provider. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetClusterIdentityOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String issuer; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterIdentityOidc defaults) { Objects.requireNonNull(defaults); this.issuer = defaults.issuer; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; - } public GetClusterIdentityOidc build() { - return new GetClusterIdentityOidc(issuer); + } + public GetClusterIdentityOidc build() { + final var o = new GetClusterIdentityOidc(); + o.issuer = issuer; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterKubernetesNetworkConfig.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterKubernetesNetworkConfig.java index da0d9d6c02b..44898523575 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterKubernetesNetworkConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterKubernetesNetworkConfig.java @@ -9,21 +9,14 @@ @CustomType public final class GetClusterKubernetesNetworkConfig { - private final String ipFamily; + private String ipFamily; /** * @return The CIDR block to assign Kubernetes service IP addresses from. * */ - private final String serviceIpv4Cidr; - - @CustomType.Constructor - private GetClusterKubernetesNetworkConfig( - @CustomType.Parameter("ipFamily") String ipFamily, - @CustomType.Parameter("serviceIpv4Cidr") String serviceIpv4Cidr) { - this.ipFamily = ipFamily; - this.serviceIpv4Cidr = serviceIpv4Cidr; - } + private String serviceIpv4Cidr; + private GetClusterKubernetesNetworkConfig() {} public String ipFamily() { return this.ipFamily; } @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetClusterKubernetesNetworkConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String ipFamily; private String serviceIpv4Cidr; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterKubernetesNetworkConfig defaults) { Objects.requireNonNull(defaults); this.ipFamily = defaults.ipFamily; this.serviceIpv4Cidr = defaults.serviceIpv4Cidr; } + @CustomType.Setter public Builder ipFamily(String ipFamily) { this.ipFamily = Objects.requireNonNull(ipFamily); return this; } + @CustomType.Setter public Builder serviceIpv4Cidr(String serviceIpv4Cidr) { this.serviceIpv4Cidr = Objects.requireNonNull(serviceIpv4Cidr); return this; - } public GetClusterKubernetesNetworkConfig build() { - return new GetClusterKubernetesNetworkConfig(ipFamily, serviceIpv4Cidr); + } + public GetClusterKubernetesNetworkConfig build() { + final var o = new GetClusterKubernetesNetworkConfig(); + o.ipFamily = ipFamily; + o.serviceIpv4Cidr = serviceIpv4Cidr; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterResult.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterResult.java index 8bfef0d3939..b70f1ff88bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterResult.java @@ -19,108 +19,75 @@ public final class GetClusterResult { * @return The Amazon Resource Name (ARN) of the cluster. * */ - private final String arn; + private String arn; /** * @return Nested attribute containing `certificate-authority-data` for your cluster. * */ - private final List certificateAuthorities; + private List certificateAuthorities; /** * @return The Unix epoch time stamp in seconds for when the cluster was created. * */ - private final String createdAt; + private String createdAt; /** * @return The enabled control plane logs. * */ - private final List enabledClusterLogTypes; + private List enabledClusterLogTypes; /** * @return The endpoint for your Kubernetes API server. * */ - private final String endpoint; + private String endpoint; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Nested attribute containing identity provider information for your cluster. Only available on Kubernetes version 1.13 and 1.14 clusters created or upgraded on or after September 3, 2019. For an example using this information to enable IAM Roles for Service Accounts, see the `aws.eks.Cluster` resource documentation. * */ - private final List identities; + private List identities; /** * @return Nested list containing Kubernetes Network Configuration. * */ - private final List kubernetesNetworkConfigs; - private final String name; + private List kubernetesNetworkConfigs; + private String name; /** * @return The platform version for the cluster. * */ - private final String platformVersion; + private String platformVersion; /** * @return The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf. * */ - private final String roleArn; + private String roleArn; /** * @return The status of the EKS cluster. One of `CREATING`, `ACTIVE`, `DELETING`, `FAILED`. * */ - private final String status; + private String status; /** * @return Key-value map of resource tags. * */ - private final Map tags; + private Map tags; /** * @return The Kubernetes server version for the cluster. * */ - private final String version; + private String version; /** * @return Nested list containing VPC configuration for the cluster. * */ - private final GetClusterVpcConfig vpcConfig; - - @CustomType.Constructor - private GetClusterResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("certificateAuthorities") List certificateAuthorities, - @CustomType.Parameter("createdAt") String createdAt, - @CustomType.Parameter("enabledClusterLogTypes") List enabledClusterLogTypes, - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("identities") List identities, - @CustomType.Parameter("kubernetesNetworkConfigs") List kubernetesNetworkConfigs, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("platformVersion") String platformVersion, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("version") String version, - @CustomType.Parameter("vpcConfig") GetClusterVpcConfig vpcConfig) { - this.arn = arn; - this.certificateAuthorities = certificateAuthorities; - this.createdAt = createdAt; - this.enabledClusterLogTypes = enabledClusterLogTypes; - this.endpoint = endpoint; - this.id = id; - this.identities = identities; - this.kubernetesNetworkConfigs = kubernetesNetworkConfigs; - this.name = name; - this.platformVersion = platformVersion; - this.roleArn = roleArn; - this.status = status; - this.tags = tags; - this.version = version; - this.vpcConfig = vpcConfig; - } + private GetClusterVpcConfig vpcConfig; + private GetClusterResult() {} /** * @return The Amazon Resource Name (ARN) of the cluster. * @@ -230,7 +197,7 @@ public static Builder builder() { public static Builder builder(GetClusterResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List certificateAuthorities; @@ -247,11 +214,7 @@ public static final class Builder { private Map tags; private String version; private GetClusterVpcConfig vpcConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -271,10 +234,12 @@ public Builder(GetClusterResult defaults) { this.vpcConfig = defaults.vpcConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder certificateAuthorities(List certificateAuthorities) { this.certificateAuthorities = Objects.requireNonNull(certificateAuthorities); return this; @@ -282,10 +247,12 @@ public Builder certificateAuthorities(List certi public Builder certificateAuthorities(GetClusterCertificateAuthority... certificateAuthorities) { return certificateAuthorities(List.of(certificateAuthorities)); } + @CustomType.Setter public Builder createdAt(String createdAt) { this.createdAt = Objects.requireNonNull(createdAt); return this; } + @CustomType.Setter public Builder enabledClusterLogTypes(List enabledClusterLogTypes) { this.enabledClusterLogTypes = Objects.requireNonNull(enabledClusterLogTypes); return this; @@ -293,14 +260,17 @@ public Builder enabledClusterLogTypes(List enabledClusterLogTypes) { public Builder enabledClusterLogTypes(String... enabledClusterLogTypes) { return enabledClusterLogTypes(List.of(enabledClusterLogTypes)); } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder identities(List identities) { this.identities = Objects.requireNonNull(identities); return this; @@ -308,6 +278,7 @@ public Builder identities(List identities) { public Builder identities(GetClusterIdentity... identities) { return identities(List.of(identities)); } + @CustomType.Setter public Builder kubernetesNetworkConfigs(List kubernetesNetworkConfigs) { this.kubernetesNetworkConfigs = Objects.requireNonNull(kubernetesNetworkConfigs); return this; @@ -315,35 +286,59 @@ public Builder kubernetesNetworkConfigs(List public Builder kubernetesNetworkConfigs(GetClusterKubernetesNetworkConfig... kubernetesNetworkConfigs) { return kubernetesNetworkConfigs(List.of(kubernetesNetworkConfigs)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder platformVersion(String platformVersion) { this.platformVersion = Objects.requireNonNull(platformVersion); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; } + @CustomType.Setter public Builder vpcConfig(GetClusterVpcConfig vpcConfig) { this.vpcConfig = Objects.requireNonNull(vpcConfig); return this; - } public GetClusterResult build() { - return new GetClusterResult(arn, certificateAuthorities, createdAt, enabledClusterLogTypes, endpoint, id, identities, kubernetesNetworkConfigs, name, platformVersion, roleArn, status, tags, version, vpcConfig); + } + public GetClusterResult build() { + final var o = new GetClusterResult(); + o.arn = arn; + o.certificateAuthorities = certificateAuthorities; + o.createdAt = createdAt; + o.enabledClusterLogTypes = enabledClusterLogTypes; + o.endpoint = endpoint; + o.id = id; + o.identities = identities; + o.kubernetesNetworkConfigs = kubernetesNetworkConfigs; + o.name = name; + o.platformVersion = platformVersion; + o.roleArn = roleArn; + o.status = status; + o.tags = tags; + o.version = version; + o.vpcConfig = vpcConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterVpcConfig.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterVpcConfig.java index 9ba1438d047..fd8d4666aa6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterVpcConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClusterVpcConfig.java @@ -15,56 +15,39 @@ public final class GetClusterVpcConfig { * @return The cluster security group that was created by Amazon EKS for the cluster. * */ - private final String clusterSecurityGroupId; + private String clusterSecurityGroupId; /** * @return Indicates whether or not the Amazon EKS private API server endpoint is enabled. * */ - private final Boolean endpointPrivateAccess; + private Boolean endpointPrivateAccess; /** * @return Indicates whether or not the Amazon EKS public API server endpoint is enabled. * */ - private final Boolean endpointPublicAccess; + private Boolean endpointPublicAccess; /** * @return List of CIDR blocks. Indicates which CIDR blocks can access the Amazon EKS public API server endpoint. * */ - private final List publicAccessCidrs; + private List publicAccessCidrs; /** * @return List of security group IDs * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return List of subnet IDs * */ - private final List subnetIds; + private List subnetIds; /** * @return The VPC associated with your cluster. * */ - private final String vpcId; - - @CustomType.Constructor - private GetClusterVpcConfig( - @CustomType.Parameter("clusterSecurityGroupId") String clusterSecurityGroupId, - @CustomType.Parameter("endpointPrivateAccess") Boolean endpointPrivateAccess, - @CustomType.Parameter("endpointPublicAccess") Boolean endpointPublicAccess, - @CustomType.Parameter("publicAccessCidrs") List publicAccessCidrs, - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.clusterSecurityGroupId = clusterSecurityGroupId; - this.endpointPrivateAccess = endpointPrivateAccess; - this.endpointPublicAccess = endpointPublicAccess; - this.publicAccessCidrs = publicAccessCidrs; - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private GetClusterVpcConfig() {} /** * @return The cluster security group that was created by Amazon EKS for the cluster. * @@ -122,7 +105,7 @@ public static Builder builder() { public static Builder builder(GetClusterVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String clusterSecurityGroupId; private Boolean endpointPrivateAccess; @@ -131,11 +114,7 @@ public static final class Builder { private List securityGroupIds; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterVpcConfig defaults) { Objects.requireNonNull(defaults); this.clusterSecurityGroupId = defaults.clusterSecurityGroupId; @@ -147,18 +126,22 @@ public Builder(GetClusterVpcConfig defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder clusterSecurityGroupId(String clusterSecurityGroupId) { this.clusterSecurityGroupId = Objects.requireNonNull(clusterSecurityGroupId); return this; } + @CustomType.Setter public Builder endpointPrivateAccess(Boolean endpointPrivateAccess) { this.endpointPrivateAccess = Objects.requireNonNull(endpointPrivateAccess); return this; } + @CustomType.Setter public Builder endpointPublicAccess(Boolean endpointPublicAccess) { this.endpointPublicAccess = Objects.requireNonNull(endpointPublicAccess); return this; } + @CustomType.Setter public Builder publicAccessCidrs(List publicAccessCidrs) { this.publicAccessCidrs = Objects.requireNonNull(publicAccessCidrs); return this; @@ -166,6 +149,7 @@ public Builder publicAccessCidrs(List publicAccessCidrs) { public Builder publicAccessCidrs(String... publicAccessCidrs) { return publicAccessCidrs(List.of(publicAccessCidrs)); } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -173,6 +157,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -180,11 +165,21 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetClusterVpcConfig build() { - return new GetClusterVpcConfig(clusterSecurityGroupId, endpointPrivateAccess, endpointPublicAccess, publicAccessCidrs, securityGroupIds, subnetIds, vpcId); + } + public GetClusterVpcConfig build() { + final var o = new GetClusterVpcConfig(); + o.clusterSecurityGroupId = clusterSecurityGroupId; + o.endpointPrivateAccess = endpointPrivateAccess; + o.endpointPublicAccess = endpointPublicAccess; + o.publicAccessCidrs = publicAccessCidrs; + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClustersResult.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClustersResult.java index 7d616b08d78..f4351c7b702 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClustersResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetClustersResult.java @@ -14,21 +14,14 @@ public final class GetClustersResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of EKS clusters names * */ - private final List names; - - @CustomType.Constructor - private GetClustersResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names) { - this.id = id; - this.names = names; - } + private List names; + private GetClustersResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetClustersResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private List names; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClustersResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.names = defaults.names; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; } public Builder names(String... names) { return names(List.of(names)); - } public GetClustersResult build() { - return new GetClustersResult(id, names); + } + public GetClustersResult build() { + final var o = new GetClustersResult(); + o.id = id; + o.names = names; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupRemoteAccess.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupRemoteAccess.java index f3dbef397aa..abe64f77269 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupRemoteAccess.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupRemoteAccess.java @@ -14,21 +14,14 @@ public final class GetNodeGroupRemoteAccess { * @return EC2 Key Pair name that provides access for SSH communication with the worker nodes in the EKS Node Group. * */ - private final String ec2SshKey; + private String ec2SshKey; /** * @return Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. * */ - private final List sourceSecurityGroupIds; - - @CustomType.Constructor - private GetNodeGroupRemoteAccess( - @CustomType.Parameter("ec2SshKey") String ec2SshKey, - @CustomType.Parameter("sourceSecurityGroupIds") List sourceSecurityGroupIds) { - this.ec2SshKey = ec2SshKey; - this.sourceSecurityGroupIds = sourceSecurityGroupIds; - } + private List sourceSecurityGroupIds; + private GetNodeGroupRemoteAccess() {} /** * @return EC2 Key Pair name that provides access for SSH communication with the worker nodes in the EKS Node Group. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetNodeGroupRemoteAccess defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String ec2SshKey; private List sourceSecurityGroupIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNodeGroupRemoteAccess defaults) { Objects.requireNonNull(defaults); this.ec2SshKey = defaults.ec2SshKey; this.sourceSecurityGroupIds = defaults.sourceSecurityGroupIds; } + @CustomType.Setter public Builder ec2SshKey(String ec2SshKey) { this.ec2SshKey = Objects.requireNonNull(ec2SshKey); return this; } + @CustomType.Setter public Builder sourceSecurityGroupIds(List sourceSecurityGroupIds) { this.sourceSecurityGroupIds = Objects.requireNonNull(sourceSecurityGroupIds); return this; } public Builder sourceSecurityGroupIds(String... sourceSecurityGroupIds) { return sourceSecurityGroupIds(List.of(sourceSecurityGroupIds)); - } public GetNodeGroupRemoteAccess build() { - return new GetNodeGroupRemoteAccess(ec2SshKey, sourceSecurityGroupIds); + } + public GetNodeGroupRemoteAccess build() { + final var o = new GetNodeGroupRemoteAccess(); + o.ec2SshKey = ec2SshKey; + o.sourceSecurityGroupIds = sourceSecurityGroupIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupResource.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupResource.java index 3c7bd698af5..483328a5541 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupResource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupResource.java @@ -15,21 +15,14 @@ public final class GetNodeGroupResource { * @return List of objects containing information about AutoScaling Groups. * */ - private final List autoscalingGroups; + private List autoscalingGroups; /** * @return Identifier of the remote access EC2 Security Group. * */ - private final String remoteAccessSecurityGroupId; - - @CustomType.Constructor - private GetNodeGroupResource( - @CustomType.Parameter("autoscalingGroups") List autoscalingGroups, - @CustomType.Parameter("remoteAccessSecurityGroupId") String remoteAccessSecurityGroupId) { - this.autoscalingGroups = autoscalingGroups; - this.remoteAccessSecurityGroupId = remoteAccessSecurityGroupId; - } + private String remoteAccessSecurityGroupId; + private GetNodeGroupResource() {} /** * @return List of objects containing information about AutoScaling Groups. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(GetNodeGroupResource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List autoscalingGroups; private String remoteAccessSecurityGroupId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNodeGroupResource defaults) { Objects.requireNonNull(defaults); this.autoscalingGroups = defaults.autoscalingGroups; this.remoteAccessSecurityGroupId = defaults.remoteAccessSecurityGroupId; } + @CustomType.Setter public Builder autoscalingGroups(List autoscalingGroups) { this.autoscalingGroups = Objects.requireNonNull(autoscalingGroups); return this; @@ -74,11 +64,16 @@ public Builder autoscalingGroups(List auto public Builder autoscalingGroups(GetNodeGroupResourceAutoscalingGroup... autoscalingGroups) { return autoscalingGroups(List.of(autoscalingGroups)); } + @CustomType.Setter public Builder remoteAccessSecurityGroupId(String remoteAccessSecurityGroupId) { this.remoteAccessSecurityGroupId = Objects.requireNonNull(remoteAccessSecurityGroupId); return this; - } public GetNodeGroupResource build() { - return new GetNodeGroupResource(autoscalingGroups, remoteAccessSecurityGroupId); + } + public GetNodeGroupResource build() { + final var o = new GetNodeGroupResource(); + o.autoscalingGroups = autoscalingGroups; + o.remoteAccessSecurityGroupId = remoteAccessSecurityGroupId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupResourceAutoscalingGroup.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupResourceAutoscalingGroup.java index 7a8e3a3dd6f..37a40a1bbe5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupResourceAutoscalingGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupResourceAutoscalingGroup.java @@ -13,13 +13,9 @@ public final class GetNodeGroupResourceAutoscalingGroup { * @return Name of the AutoScaling Group. * */ - private final String name; - - @CustomType.Constructor - private GetNodeGroupResourceAutoscalingGroup(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private GetNodeGroupResourceAutoscalingGroup() {} /** * @return Name of the AutoScaling Group. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetNodeGroupResourceAutoscalingGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNodeGroupResourceAutoscalingGroup defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetNodeGroupResourceAutoscalingGroup build() { - return new GetNodeGroupResourceAutoscalingGroup(name); + } + public GetNodeGroupResourceAutoscalingGroup build() { + final var o = new GetNodeGroupResourceAutoscalingGroup(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupResult.java index 33980600426..deb5e18d5f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupResult.java @@ -20,125 +20,86 @@ public final class GetNodeGroupResult { * @return Type of Amazon Machine Image (AMI) associated with the EKS Node Group. * */ - private final String amiType; + private String amiType; /** * @return Amazon Resource Name (ARN) of the EKS Node Group. * */ - private final String arn; - private final String clusterName; + private String arn; + private String clusterName; /** * @return Disk size in GiB for worker nodes. * */ - private final Integer diskSize; + private Integer diskSize; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of instance types associated with the EKS Node Group. * */ - private final List instanceTypes; + private List instanceTypes; /** * @return Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed. * */ - private final Map labels; - private final String nodeGroupName; + private Map labels; + private String nodeGroupName; /** * @return Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group. * */ - private final String nodeRoleArn; + private String nodeRoleArn; /** * @return AMI version of the EKS Node Group. * */ - private final String releaseVersion; + private String releaseVersion; /** * @return Configuration block with remote access settings. * */ - private final List remoteAccesses; + private List remoteAccesses; /** * @return List of objects containing information about underlying resources. * */ - private final List resources; + private List resources; /** * @return Configuration block with scaling settings. * */ - private final List scalingConfigs; + private List scalingConfigs; /** * @return Status of the EKS Node Group. * */ - private final String status; + private String status; /** * @return Identifiers of EC2 Subnets to associate with the EKS Node Group. * */ - private final List subnetIds; + private List subnetIds; /** * @return Key-value map of resource tags. * */ - private final Map tags; + private Map tags; /** * @return List of objects containing information about taints applied to the nodes in the EKS Node Group. * */ - private final List taints; + private List taints; /** * @return Kubernetes version. * */ - private final String version; - - @CustomType.Constructor - private GetNodeGroupResult( - @CustomType.Parameter("amiType") String amiType, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("clusterName") String clusterName, - @CustomType.Parameter("diskSize") Integer diskSize, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceTypes") List instanceTypes, - @CustomType.Parameter("labels") Map labels, - @CustomType.Parameter("nodeGroupName") String nodeGroupName, - @CustomType.Parameter("nodeRoleArn") String nodeRoleArn, - @CustomType.Parameter("releaseVersion") String releaseVersion, - @CustomType.Parameter("remoteAccesses") List remoteAccesses, - @CustomType.Parameter("resources") List resources, - @CustomType.Parameter("scalingConfigs") List scalingConfigs, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("taints") List taints, - @CustomType.Parameter("version") String version) { - this.amiType = amiType; - this.arn = arn; - this.clusterName = clusterName; - this.diskSize = diskSize; - this.id = id; - this.instanceTypes = instanceTypes; - this.labels = labels; - this.nodeGroupName = nodeGroupName; - this.nodeRoleArn = nodeRoleArn; - this.releaseVersion = releaseVersion; - this.remoteAccesses = remoteAccesses; - this.resources = resources; - this.scalingConfigs = scalingConfigs; - this.status = status; - this.subnetIds = subnetIds; - this.tags = tags; - this.taints = taints; - this.version = version; - } + private String version; + private GetNodeGroupResult() {} /** * @return Type of Amazon Machine Image (AMI) associated with the EKS Node Group. * @@ -265,7 +226,7 @@ public static Builder builder() { public static Builder builder(GetNodeGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String amiType; private String arn; @@ -285,11 +246,7 @@ public static final class Builder { private Map tags; private List taints; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNodeGroupResult defaults) { Objects.requireNonNull(defaults); this.amiType = defaults.amiType; @@ -312,26 +269,32 @@ public Builder(GetNodeGroupResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder amiType(String amiType) { this.amiType = Objects.requireNonNull(amiType); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder clusterName(String clusterName) { this.clusterName = Objects.requireNonNull(clusterName); return this; } + @CustomType.Setter public Builder diskSize(Integer diskSize) { this.diskSize = Objects.requireNonNull(diskSize); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceTypes(List instanceTypes) { this.instanceTypes = Objects.requireNonNull(instanceTypes); return this; @@ -339,22 +302,27 @@ public Builder instanceTypes(List instanceTypes) { public Builder instanceTypes(String... instanceTypes) { return instanceTypes(List.of(instanceTypes)); } + @CustomType.Setter public Builder labels(Map labels) { this.labels = Objects.requireNonNull(labels); return this; } + @CustomType.Setter public Builder nodeGroupName(String nodeGroupName) { this.nodeGroupName = Objects.requireNonNull(nodeGroupName); return this; } + @CustomType.Setter public Builder nodeRoleArn(String nodeRoleArn) { this.nodeRoleArn = Objects.requireNonNull(nodeRoleArn); return this; } + @CustomType.Setter public Builder releaseVersion(String releaseVersion) { this.releaseVersion = Objects.requireNonNull(releaseVersion); return this; } + @CustomType.Setter public Builder remoteAccesses(List remoteAccesses) { this.remoteAccesses = Objects.requireNonNull(remoteAccesses); return this; @@ -362,6 +330,7 @@ public Builder remoteAccesses(List remoteAccesses) { public Builder remoteAccesses(GetNodeGroupRemoteAccess... remoteAccesses) { return remoteAccesses(List.of(remoteAccesses)); } + @CustomType.Setter public Builder resources(List resources) { this.resources = Objects.requireNonNull(resources); return this; @@ -369,6 +338,7 @@ public Builder resources(List resources) { public Builder resources(GetNodeGroupResource... resources) { return resources(List.of(resources)); } + @CustomType.Setter public Builder scalingConfigs(List scalingConfigs) { this.scalingConfigs = Objects.requireNonNull(scalingConfigs); return this; @@ -376,10 +346,12 @@ public Builder scalingConfigs(List scalingConfigs) { public Builder scalingConfigs(GetNodeGroupScalingConfig... scalingConfigs) { return scalingConfigs(List.of(scalingConfigs)); } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -387,10 +359,12 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder taints(List taints) { this.taints = Objects.requireNonNull(taints); return this; @@ -398,11 +372,32 @@ public Builder taints(List taints) { public Builder taints(GetNodeGroupTaint... taints) { return taints(List.of(taints)); } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public GetNodeGroupResult build() { - return new GetNodeGroupResult(amiType, arn, clusterName, diskSize, id, instanceTypes, labels, nodeGroupName, nodeRoleArn, releaseVersion, remoteAccesses, resources, scalingConfigs, status, subnetIds, tags, taints, version); + } + public GetNodeGroupResult build() { + final var o = new GetNodeGroupResult(); + o.amiType = amiType; + o.arn = arn; + o.clusterName = clusterName; + o.diskSize = diskSize; + o.id = id; + o.instanceTypes = instanceTypes; + o.labels = labels; + o.nodeGroupName = nodeGroupName; + o.nodeRoleArn = nodeRoleArn; + o.releaseVersion = releaseVersion; + o.remoteAccesses = remoteAccesses; + o.resources = resources; + o.scalingConfigs = scalingConfigs; + o.status = status; + o.subnetIds = subnetIds; + o.tags = tags; + o.taints = taints; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupScalingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupScalingConfig.java index cb1a52b3c98..5f0af8e5e27 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupScalingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupScalingConfig.java @@ -13,28 +13,19 @@ public final class GetNodeGroupScalingConfig { * @return Desired number of worker nodes. * */ - private final Integer desiredSize; + private Integer desiredSize; /** * @return Maximum number of worker nodes. * */ - private final Integer maxSize; + private Integer maxSize; /** * @return Minimum number of worker nodes. * */ - private final Integer minSize; - - @CustomType.Constructor - private GetNodeGroupScalingConfig( - @CustomType.Parameter("desiredSize") Integer desiredSize, - @CustomType.Parameter("maxSize") Integer maxSize, - @CustomType.Parameter("minSize") Integer minSize) { - this.desiredSize = desiredSize; - this.maxSize = maxSize; - this.minSize = minSize; - } + private Integer minSize; + private GetNodeGroupScalingConfig() {} /** * @return Desired number of worker nodes. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetNodeGroupScalingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer desiredSize; private Integer maxSize; private Integer minSize; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNodeGroupScalingConfig defaults) { Objects.requireNonNull(defaults); this.desiredSize = defaults.desiredSize; @@ -81,19 +68,27 @@ public Builder(GetNodeGroupScalingConfig defaults) { this.minSize = defaults.minSize; } + @CustomType.Setter public Builder desiredSize(Integer desiredSize) { this.desiredSize = Objects.requireNonNull(desiredSize); return this; } + @CustomType.Setter public Builder maxSize(Integer maxSize) { this.maxSize = Objects.requireNonNull(maxSize); return this; } + @CustomType.Setter public Builder minSize(Integer minSize) { this.minSize = Objects.requireNonNull(minSize); return this; - } public GetNodeGroupScalingConfig build() { - return new GetNodeGroupScalingConfig(desiredSize, maxSize, minSize); + } + public GetNodeGroupScalingConfig build() { + final var o = new GetNodeGroupScalingConfig(); + o.desiredSize = desiredSize; + o.maxSize = maxSize; + o.minSize = minSize; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupTaint.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupTaint.java index 017a759f4da..134827dccd9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupTaint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupTaint.java @@ -13,28 +13,19 @@ public final class GetNodeGroupTaint { * @return The effect of the taint. * */ - private final String effect; + private String effect; /** * @return The key of the taint. * */ - private final String key; + private String key; /** * @return The value of the taint. * */ - private final String value; - - @CustomType.Constructor - private GetNodeGroupTaint( - @CustomType.Parameter("effect") String effect, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.effect = effect; - this.key = key; - this.value = value; - } + private String value; + private GetNodeGroupTaint() {} /** * @return The effect of the taint. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetNodeGroupTaint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String effect; private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNodeGroupTaint defaults) { Objects.requireNonNull(defaults); this.effect = defaults.effect; @@ -81,19 +68,27 @@ public Builder(GetNodeGroupTaint defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder effect(String effect) { this.effect = Objects.requireNonNull(effect); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetNodeGroupTaint build() { - return new GetNodeGroupTaint(effect, key, value); + } + public GetNodeGroupTaint build() { + final var o = new GetNodeGroupTaint(); + o.effect = effect; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupsResult.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupsResult.java index eb162abdb51..8a268858952 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/GetNodeGroupsResult.java @@ -10,28 +10,19 @@ @CustomType public final class GetNodeGroupsResult { - private final String clusterName; + private String clusterName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A set of all node group names in an EKS Cluster. * */ - private final List names; - - @CustomType.Constructor - private GetNodeGroupsResult( - @CustomType.Parameter("clusterName") String clusterName, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names) { - this.clusterName = clusterName; - this.id = id; - this.names = names; - } + private List names; + private GetNodeGroupsResult() {} public String clusterName() { return this.clusterName; } @@ -57,16 +48,12 @@ public static Builder builder() { public static Builder builder(GetNodeGroupsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String clusterName; private String id; private List names; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetNodeGroupsResult defaults) { Objects.requireNonNull(defaults); this.clusterName = defaults.clusterName; @@ -74,22 +61,30 @@ public Builder(GetNodeGroupsResult defaults) { this.names = defaults.names; } + @CustomType.Setter public Builder clusterName(String clusterName) { this.clusterName = Objects.requireNonNull(clusterName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; } public Builder names(String... names) { return names(List.of(names)); - } public GetNodeGroupsResult build() { - return new GetNodeGroupsResult(clusterName, id, names); + } + public GetNodeGroupsResult build() { + final var o = new GetNodeGroupsResult(); + o.clusterName = clusterName; + o.id = id; + o.names = names; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/IdentityProviderConfigOidc.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/IdentityProviderConfigOidc.java index 11b81296f26..106ef1d9612 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/IdentityProviderConfigOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/IdentityProviderConfigOidc.java @@ -16,63 +16,44 @@ public final class IdentityProviderConfigOidc { * @return Client ID for the OpenID Connect identity provider. * */ - private final String clientId; + private String clientId; /** * @return The JWT claim that the provider will use to return groups. * */ - private final @Nullable String groupsClaim; + private @Nullable String groupsClaim; /** * @return A prefix that is prepended to group claims e.g., `oidc:`. * */ - private final @Nullable String groupsPrefix; + private @Nullable String groupsPrefix; /** * @return The name of the identity provider config. * */ - private final String identityProviderConfigName; + private String identityProviderConfigName; /** * @return Issuer URL for the OpenID Connect identity provider. * */ - private final String issuerUrl; + private String issuerUrl; /** * @return The key value pairs that describe required claims in the identity token. * */ - private final @Nullable Map requiredClaims; + private @Nullable Map requiredClaims; /** * @return The JWT claim that the provider will use as the username. * */ - private final @Nullable String usernameClaim; + private @Nullable String usernameClaim; /** * @return A prefix that is prepended to username claims. * */ - private final @Nullable String usernamePrefix; - - @CustomType.Constructor - private IdentityProviderConfigOidc( - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("groupsClaim") @Nullable String groupsClaim, - @CustomType.Parameter("groupsPrefix") @Nullable String groupsPrefix, - @CustomType.Parameter("identityProviderConfigName") String identityProviderConfigName, - @CustomType.Parameter("issuerUrl") String issuerUrl, - @CustomType.Parameter("requiredClaims") @Nullable Map requiredClaims, - @CustomType.Parameter("usernameClaim") @Nullable String usernameClaim, - @CustomType.Parameter("usernamePrefix") @Nullable String usernamePrefix) { - this.clientId = clientId; - this.groupsClaim = groupsClaim; - this.groupsPrefix = groupsPrefix; - this.identityProviderConfigName = identityProviderConfigName; - this.issuerUrl = issuerUrl; - this.requiredClaims = requiredClaims; - this.usernameClaim = usernameClaim; - this.usernamePrefix = usernamePrefix; - } + private @Nullable String usernamePrefix; + private IdentityProviderConfigOidc() {} /** * @return Client ID for the OpenID Connect identity provider. * @@ -137,7 +118,7 @@ public static Builder builder() { public static Builder builder(IdentityProviderConfigOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String clientId; private @Nullable String groupsClaim; @@ -147,11 +128,7 @@ public static final class Builder { private @Nullable Map requiredClaims; private @Nullable String usernameClaim; private @Nullable String usernamePrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IdentityProviderConfigOidc defaults) { Objects.requireNonNull(defaults); this.clientId = defaults.clientId; @@ -164,39 +141,57 @@ public Builder(IdentityProviderConfigOidc defaults) { this.usernamePrefix = defaults.usernamePrefix; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder groupsClaim(@Nullable String groupsClaim) { this.groupsClaim = groupsClaim; return this; } + @CustomType.Setter public Builder groupsPrefix(@Nullable String groupsPrefix) { this.groupsPrefix = groupsPrefix; return this; } + @CustomType.Setter public Builder identityProviderConfigName(String identityProviderConfigName) { this.identityProviderConfigName = Objects.requireNonNull(identityProviderConfigName); return this; } + @CustomType.Setter public Builder issuerUrl(String issuerUrl) { this.issuerUrl = Objects.requireNonNull(issuerUrl); return this; } + @CustomType.Setter public Builder requiredClaims(@Nullable Map requiredClaims) { this.requiredClaims = requiredClaims; return this; } + @CustomType.Setter public Builder usernameClaim(@Nullable String usernameClaim) { this.usernameClaim = usernameClaim; return this; } + @CustomType.Setter public Builder usernamePrefix(@Nullable String usernamePrefix) { this.usernamePrefix = usernamePrefix; return this; - } public IdentityProviderConfigOidc build() { - return new IdentityProviderConfigOidc(clientId, groupsClaim, groupsPrefix, identityProviderConfigName, issuerUrl, requiredClaims, usernameClaim, usernamePrefix); + } + public IdentityProviderConfigOidc build() { + final var o = new IdentityProviderConfigOidc(); + o.clientId = clientId; + o.groupsClaim = groupsClaim; + o.groupsPrefix = groupsPrefix; + o.identityProviderConfigName = identityProviderConfigName; + o.issuerUrl = issuerUrl; + o.requiredClaims = requiredClaims; + o.usernameClaim = usernameClaim; + o.usernamePrefix = usernamePrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/NodeGroupLaunchTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/NodeGroupLaunchTemplate.java index bd97f29c47a..821642e9b79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/NodeGroupLaunchTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/NodeGroupLaunchTemplate.java @@ -15,28 +15,19 @@ public final class NodeGroupLaunchTemplate { * @return Identifier of the EC2 Launch Template. Conflicts with `name`. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Name of the EC2 Launch Template. Conflicts with `id`. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return EC2 Launch Template version number. While the API accepts values like `$Default` and `$Latest`, the API will convert the value to the associated version number (e.g. `1`) on read and This provider will show a difference on next plan. Using the `default_version` or `latest_version` attribute of the `aws.ec2.LaunchTemplate` resource or data source is recommended for this argument. * */ - private final String version; - - @CustomType.Constructor - private NodeGroupLaunchTemplate( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("version") String version) { - this.id = id; - this.name = name; - this.version = version; - } + private String version; + private NodeGroupLaunchTemplate() {} /** * @return Identifier of the EC2 Launch Template. Conflicts with `name`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(NodeGroupLaunchTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private @Nullable String name; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NodeGroupLaunchTemplate defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -83,19 +70,27 @@ public Builder(NodeGroupLaunchTemplate defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public NodeGroupLaunchTemplate build() { - return new NodeGroupLaunchTemplate(id, name, version); + } + public NodeGroupLaunchTemplate build() { + final var o = new NodeGroupLaunchTemplate(); + o.id = id; + o.name = name; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/NodeGroupRemoteAccess.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/NodeGroupRemoteAccess.java index 6fd3c4a972e..1402049339a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/NodeGroupRemoteAccess.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/NodeGroupRemoteAccess.java @@ -16,21 +16,14 @@ public final class NodeGroupRemoteAccess { * @return EC2 Key Pair name that provides access for SSH communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify `source_security_group_ids` when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0). * */ - private final @Nullable String ec2SshKey; + private @Nullable String ec2SshKey; /** * @return Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify `ec2_ssh_key`, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0). * */ - private final @Nullable List sourceSecurityGroupIds; - - @CustomType.Constructor - private NodeGroupRemoteAccess( - @CustomType.Parameter("ec2SshKey") @Nullable String ec2SshKey, - @CustomType.Parameter("sourceSecurityGroupIds") @Nullable List sourceSecurityGroupIds) { - this.ec2SshKey = ec2SshKey; - this.sourceSecurityGroupIds = sourceSecurityGroupIds; - } + private @Nullable List sourceSecurityGroupIds; + private NodeGroupRemoteAccess() {} /** * @return EC2 Key Pair name that provides access for SSH communication with the worker nodes in the EKS Node Group. If you specify this configuration, but do not specify `source_security_group_ids` when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0). * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(NodeGroupRemoteAccess defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String ec2SshKey; private @Nullable List sourceSecurityGroupIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NodeGroupRemoteAccess defaults) { Objects.requireNonNull(defaults); this.ec2SshKey = defaults.ec2SshKey; this.sourceSecurityGroupIds = defaults.sourceSecurityGroupIds; } + @CustomType.Setter public Builder ec2SshKey(@Nullable String ec2SshKey) { this.ec2SshKey = ec2SshKey; return this; } + @CustomType.Setter public Builder sourceSecurityGroupIds(@Nullable List sourceSecurityGroupIds) { this.sourceSecurityGroupIds = sourceSecurityGroupIds; return this; } public Builder sourceSecurityGroupIds(String... sourceSecurityGroupIds) { return sourceSecurityGroupIds(List.of(sourceSecurityGroupIds)); - } public NodeGroupRemoteAccess build() { - return new NodeGroupRemoteAccess(ec2SshKey, sourceSecurityGroupIds); + } + public NodeGroupRemoteAccess build() { + final var o = new NodeGroupRemoteAccess(); + o.ec2SshKey = ec2SshKey; + o.sourceSecurityGroupIds = sourceSecurityGroupIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/NodeGroupResource.java b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/NodeGroupResource.java index 8e2dfa2f908..f0895f27aba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/NodeGroupResource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/eks/outputs/NodeGroupResource.java @@ -17,21 +17,14 @@ public final class NodeGroupResource { * @return List of objects containing information about AutoScaling Groups. * */ - private final @Nullable List autoscalingGroups; + private @Nullable List autoscalingGroups; /** * @return Identifier of the remote access EC2 Security Group. * */ - private final @Nullable String remoteAccessSecurityGroupId; - - @CustomType.Constructor - private NodeGroupResource( - @CustomType.Parameter("autoscalingGroups") @Nullable List autoscalingGroups, - @CustomType.Parameter("remoteAccessSecurityGroupId") @Nullable String remoteAccessSecurityGroupId) { - this.autoscalingGroups = autoscalingGroups; - this.remoteAccessSecurityGroupId = remoteAccessSecurityGroupId; - } + private @Nullable String remoteAccessSecurityGroupId; + private NodeGroupResource() {} /** * @return List of objects containing information about AutoScaling Groups. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(NodeGroupResource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List autoscalingGroups; private @Nullable String remoteAccessSecurityGroupId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NodeGroupResource defaults) { Objects.requireNonNull(defaults); this.autoscalingGroups = defaults.autoscalingGroups; this.remoteAccessSecurityGroupId = defaults.remoteAccessSecurityGroupId; } + @CustomType.Setter public Builder autoscalingGroups(@Nullable List autoscalingGroups) { this.autoscalingGroups = autoscalingGroups; return this; @@ -76,11 +66,16 @@ public Builder autoscalingGroups(@Nullable List address() { return Optional.ofNullable(this.address); } @@ -65,17 +54,13 @@ public static Builder builder() { public static Builder builder(ClusterCacheNode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String address; private @Nullable String availabilityZone; private @Nullable String id; private @Nullable Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterCacheNode defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; @@ -84,23 +69,33 @@ public Builder(ClusterCacheNode defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder address(@Nullable String address) { this.address = address; return this; } + @CustomType.Setter public Builder availabilityZone(@Nullable String availabilityZone) { this.availabilityZone = availabilityZone; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; - } public ClusterCacheNode build() { - return new ClusterCacheNode(address, availabilityZone, id, port); + } + public ClusterCacheNode build() { + final var o = new ClusterCacheNode(); + o.address = address; + o.availabilityZone = availabilityZone; + o.id = id; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ClusterLogDeliveryConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ClusterLogDeliveryConfiguration.java index 34224be6c0d..fbae95c3611 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ClusterLogDeliveryConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ClusterLogDeliveryConfiguration.java @@ -13,35 +13,24 @@ public final class ClusterLogDeliveryConfiguration { * @return Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource. * */ - private final String destination; + private String destination; /** * @return For CloudWatch Logs use `cloudwatch-logs` or for Kinesis Data Firehose use `kinesis-firehose`. * */ - private final String destinationType; + private String destinationType; /** * @return Valid values are `json` or `text` * */ - private final String logFormat; + private String logFormat; /** * @return Valid values are `slow-log` or `engine-log`. Max 1 of each. * */ - private final String logType; - - @CustomType.Constructor - private ClusterLogDeliveryConfiguration( - @CustomType.Parameter("destination") String destination, - @CustomType.Parameter("destinationType") String destinationType, - @CustomType.Parameter("logFormat") String logFormat, - @CustomType.Parameter("logType") String logType) { - this.destination = destination; - this.destinationType = destinationType; - this.logFormat = logFormat; - this.logType = logType; - } + private String logType; + private ClusterLogDeliveryConfiguration() {} /** * @return Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource. * @@ -78,17 +67,13 @@ public static Builder builder() { public static Builder builder(ClusterLogDeliveryConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destination; private String destinationType; private String logFormat; private String logType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterLogDeliveryConfiguration defaults) { Objects.requireNonNull(defaults); this.destination = defaults.destination; @@ -97,23 +82,33 @@ public Builder(ClusterLogDeliveryConfiguration defaults) { this.logType = defaults.logType; } + @CustomType.Setter public Builder destination(String destination) { this.destination = Objects.requireNonNull(destination); return this; } + @CustomType.Setter public Builder destinationType(String destinationType) { this.destinationType = Objects.requireNonNull(destinationType); return this; } + @CustomType.Setter public Builder logFormat(String logFormat) { this.logFormat = Objects.requireNonNull(logFormat); return this; } + @CustomType.Setter public Builder logType(String logType) { this.logType = Objects.requireNonNull(logType); return this; - } public ClusterLogDeliveryConfiguration build() { - return new ClusterLogDeliveryConfiguration(destination, destinationType, logFormat, logType); + } + public ClusterLogDeliveryConfiguration build() { + final var o = new ClusterLogDeliveryConfiguration(); + o.destination = destination; + o.destinationType = destinationType; + o.logFormat = logFormat; + o.logType = logType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetClusterCacheNode.java b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetClusterCacheNode.java index 110bb0ce7cc..4e767c8ae94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetClusterCacheNode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetClusterCacheNode.java @@ -10,32 +10,21 @@ @CustomType public final class GetClusterCacheNode { - private final String address; + private String address; /** * @return The Availability Zone for the cache cluster. * */ - private final String availabilityZone; - private final String id; + private String availabilityZone; + private String id; /** * @return The port number on which each of the cache nodes will * accept connections. * */ - private final Integer port; - - @CustomType.Constructor - private GetClusterCacheNode( - @CustomType.Parameter("address") String address, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("port") Integer port) { - this.address = address; - this.availabilityZone = availabilityZone; - this.id = id; - this.port = port; - } + private Integer port; + private GetClusterCacheNode() {} public String address() { return this.address; } @@ -65,17 +54,13 @@ public static Builder builder() { public static Builder builder(GetClusterCacheNode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String address; private String availabilityZone; private String id; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterCacheNode defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; @@ -84,23 +69,33 @@ public Builder(GetClusterCacheNode defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder address(String address) { this.address = Objects.requireNonNull(address); return this; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public GetClusterCacheNode build() { - return new GetClusterCacheNode(address, availabilityZone, id, port); + } + public GetClusterCacheNode build() { + final var o = new GetClusterCacheNode(); + o.address = address; + o.availabilityZone = availabilityZone; + o.id = id; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetClusterLogDeliveryConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetClusterLogDeliveryConfiguration.java index af2254a6799..67bdc54fe11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetClusterLogDeliveryConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetClusterLogDeliveryConfiguration.java @@ -9,23 +9,12 @@ @CustomType public final class GetClusterLogDeliveryConfiguration { - private final String destination; - private final String destinationType; - private final String logFormat; - private final String logType; - - @CustomType.Constructor - private GetClusterLogDeliveryConfiguration( - @CustomType.Parameter("destination") String destination, - @CustomType.Parameter("destinationType") String destinationType, - @CustomType.Parameter("logFormat") String logFormat, - @CustomType.Parameter("logType") String logType) { - this.destination = destination; - this.destinationType = destinationType; - this.logFormat = logFormat; - this.logType = logType; - } + private String destination; + private String destinationType; + private String logFormat; + private String logType; + private GetClusterLogDeliveryConfiguration() {} public String destination() { return this.destination; } @@ -46,17 +35,13 @@ public static Builder builder() { public static Builder builder(GetClusterLogDeliveryConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destination; private String destinationType; private String logFormat; private String logType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterLogDeliveryConfiguration defaults) { Objects.requireNonNull(defaults); this.destination = defaults.destination; @@ -65,23 +50,33 @@ public Builder(GetClusterLogDeliveryConfiguration defaults) { this.logType = defaults.logType; } + @CustomType.Setter public Builder destination(String destination) { this.destination = Objects.requireNonNull(destination); return this; } + @CustomType.Setter public Builder destinationType(String destinationType) { this.destinationType = Objects.requireNonNull(destinationType); return this; } + @CustomType.Setter public Builder logFormat(String logFormat) { this.logFormat = Objects.requireNonNull(logFormat); return this; } + @CustomType.Setter public Builder logType(String logType) { this.logType = Objects.requireNonNull(logType); return this; - } public GetClusterLogDeliveryConfiguration build() { - return new GetClusterLogDeliveryConfiguration(destination, destinationType, logFormat, logType); + } + public GetClusterLogDeliveryConfiguration build() { + final var o = new GetClusterLogDeliveryConfiguration(); + o.destination = destination; + o.destinationType = destinationType; + o.logFormat = logFormat; + o.logType = logType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetClusterResult.java b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetClusterResult.java index 7b392fe5752..36cca1b0ad9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetClusterResult.java @@ -14,170 +14,121 @@ @CustomType public final class GetClusterResult { - private final String arn; + private String arn; /** * @return The Availability Zone for the cache cluster. * */ - private final String availabilityZone; + private String availabilityZone; /** * @return List of node objects including `id`, `address`, `port` and `availability_zone`. * Referenceable e.g., as `${data.aws_elasticache_cluster.bar.cache_nodes.0.address}` * */ - private final List cacheNodes; + private List cacheNodes; /** * @return (Memcached only) The DNS name of the cache cluster without the port appended. * */ - private final String clusterAddress; - private final String clusterId; + private String clusterAddress; + private String clusterId; /** * @return (Memcached only) The configuration endpoint to allow host discovery. * */ - private final String configurationEndpoint; + private String configurationEndpoint; /** * @return Name of the cache engine. * */ - private final String engine; + private String engine; /** * @return Version number of the cache engine. * */ - private final String engineVersion; + private String engineVersion; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Redis [SLOWLOG](https://redis.io/commands/slowlog) or Redis [Engine Log](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Log_Delivery.html#Log_contents-engine-log) delivery settings. * */ - private final List logDeliveryConfigurations; + private List logDeliveryConfigurations; /** * @return Specifies the weekly time range for when maintenance * on the cache cluster is performed. * */ - private final String maintenanceWindow; + private String maintenanceWindow; /** * @return The cluster node type. * */ - private final String nodeType; + private String nodeType; /** * @return An Amazon Resource Name (ARN) of an * SNS topic that ElastiCache notifications get sent to. * */ - private final String notificationTopicArn; + private String notificationTopicArn; /** * @return The number of cache nodes that the cache cluster has. * */ - private final Integer numCacheNodes; + private Integer numCacheNodes; /** * @return Name of the parameter group associated with this cache cluster. * */ - private final String parameterGroupName; + private String parameterGroupName; /** * @return The port number on which each of the cache nodes will * accept connections. * */ - private final Integer port; + private Integer port; /** * @return The replication group to which this cache cluster belongs. * */ - private final String replicationGroupId; + private String replicationGroupId; /** * @return List VPC security groups associated with the cache cluster. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return List of security group names associated with this cache cluster. * */ - private final List securityGroupNames; + private List securityGroupNames; /** * @return The number of days for which ElastiCache will * retain automatic cache cluster snapshots before deleting them. * */ - private final Integer snapshotRetentionLimit; + private Integer snapshotRetentionLimit; /** * @return The daily time range (in UTC) during which ElastiCache will * begin taking a daily snapshot of the cache cluster. * */ - private final String snapshotWindow; + private String snapshotWindow; /** * @return Name of the subnet group associated to the cache cluster. * */ - private final String subnetGroupName; + private String subnetGroupName; /** * @return The tags assigned to the resource * */ - private final Map tags; - - @CustomType.Constructor - private GetClusterResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("cacheNodes") List cacheNodes, - @CustomType.Parameter("clusterAddress") String clusterAddress, - @CustomType.Parameter("clusterId") String clusterId, - @CustomType.Parameter("configurationEndpoint") String configurationEndpoint, - @CustomType.Parameter("engine") String engine, - @CustomType.Parameter("engineVersion") String engineVersion, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("logDeliveryConfigurations") List logDeliveryConfigurations, - @CustomType.Parameter("maintenanceWindow") String maintenanceWindow, - @CustomType.Parameter("nodeType") String nodeType, - @CustomType.Parameter("notificationTopicArn") String notificationTopicArn, - @CustomType.Parameter("numCacheNodes") Integer numCacheNodes, - @CustomType.Parameter("parameterGroupName") String parameterGroupName, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("replicationGroupId") String replicationGroupId, - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("securityGroupNames") List securityGroupNames, - @CustomType.Parameter("snapshotRetentionLimit") Integer snapshotRetentionLimit, - @CustomType.Parameter("snapshotWindow") String snapshotWindow, - @CustomType.Parameter("subnetGroupName") String subnetGroupName, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.availabilityZone = availabilityZone; - this.cacheNodes = cacheNodes; - this.clusterAddress = clusterAddress; - this.clusterId = clusterId; - this.configurationEndpoint = configurationEndpoint; - this.engine = engine; - this.engineVersion = engineVersion; - this.id = id; - this.logDeliveryConfigurations = logDeliveryConfigurations; - this.maintenanceWindow = maintenanceWindow; - this.nodeType = nodeType; - this.notificationTopicArn = notificationTopicArn; - this.numCacheNodes = numCacheNodes; - this.parameterGroupName = parameterGroupName; - this.port = port; - this.replicationGroupId = replicationGroupId; - this.securityGroupIds = securityGroupIds; - this.securityGroupNames = securityGroupNames; - this.snapshotRetentionLimit = snapshotRetentionLimit; - this.snapshotWindow = snapshotWindow; - this.subnetGroupName = subnetGroupName; - this.tags = tags; - } + private Map tags; + private GetClusterResult() {} public String arn() { return this.arn; } @@ -345,7 +296,7 @@ public static Builder builder() { public static Builder builder(GetClusterResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String availabilityZone; @@ -370,11 +321,7 @@ public static final class Builder { private String snapshotWindow; private String subnetGroupName; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -402,14 +349,17 @@ public Builder(GetClusterResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder cacheNodes(List cacheNodes) { this.cacheNodes = Objects.requireNonNull(cacheNodes); return this; @@ -417,30 +367,37 @@ public Builder cacheNodes(List cacheNodes) { public Builder cacheNodes(GetClusterCacheNode... cacheNodes) { return cacheNodes(List.of(cacheNodes)); } + @CustomType.Setter public Builder clusterAddress(String clusterAddress) { this.clusterAddress = Objects.requireNonNull(clusterAddress); return this; } + @CustomType.Setter public Builder clusterId(String clusterId) { this.clusterId = Objects.requireNonNull(clusterId); return this; } + @CustomType.Setter public Builder configurationEndpoint(String configurationEndpoint) { this.configurationEndpoint = Objects.requireNonNull(configurationEndpoint); return this; } + @CustomType.Setter public Builder engine(String engine) { this.engine = Objects.requireNonNull(engine); return this; } + @CustomType.Setter public Builder engineVersion(String engineVersion) { this.engineVersion = Objects.requireNonNull(engineVersion); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder logDeliveryConfigurations(List logDeliveryConfigurations) { this.logDeliveryConfigurations = Objects.requireNonNull(logDeliveryConfigurations); return this; @@ -448,34 +405,42 @@ public Builder logDeliveryConfigurations(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -483,6 +448,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder securityGroupNames(List securityGroupNames) { this.securityGroupNames = Objects.requireNonNull(securityGroupNames); return this; @@ -490,23 +456,52 @@ public Builder securityGroupNames(List securityGroupNames) { public Builder securityGroupNames(String... securityGroupNames) { return securityGroupNames(List.of(securityGroupNames)); } + @CustomType.Setter public Builder snapshotRetentionLimit(Integer snapshotRetentionLimit) { this.snapshotRetentionLimit = Objects.requireNonNull(snapshotRetentionLimit); return this; } + @CustomType.Setter public Builder snapshotWindow(String snapshotWindow) { this.snapshotWindow = Objects.requireNonNull(snapshotWindow); return this; } + @CustomType.Setter public Builder subnetGroupName(String subnetGroupName) { this.subnetGroupName = Objects.requireNonNull(subnetGroupName); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetClusterResult build() { - return new GetClusterResult(arn, availabilityZone, cacheNodes, clusterAddress, clusterId, configurationEndpoint, engine, engineVersion, id, logDeliveryConfigurations, maintenanceWindow, nodeType, notificationTopicArn, numCacheNodes, parameterGroupName, port, replicationGroupId, securityGroupIds, securityGroupNames, snapshotRetentionLimit, snapshotWindow, subnetGroupName, tags); + } + public GetClusterResult build() { + final var o = new GetClusterResult(); + o.arn = arn; + o.availabilityZone = availabilityZone; + o.cacheNodes = cacheNodes; + o.clusterAddress = clusterAddress; + o.clusterId = clusterId; + o.configurationEndpoint = configurationEndpoint; + o.engine = engine; + o.engineVersion = engineVersion; + o.id = id; + o.logDeliveryConfigurations = logDeliveryConfigurations; + o.maintenanceWindow = maintenanceWindow; + o.nodeType = nodeType; + o.notificationTopicArn = notificationTopicArn; + o.numCacheNodes = numCacheNodes; + o.parameterGroupName = parameterGroupName; + o.port = port; + o.replicationGroupId = replicationGroupId; + o.securityGroupIds = securityGroupIds; + o.securityGroupNames = securityGroupNames; + o.snapshotRetentionLimit = snapshotRetentionLimit; + o.snapshotWindow = snapshotWindow; + o.subnetGroupName = subnetGroupName; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetReplicationGroupLogDeliveryConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetReplicationGroupLogDeliveryConfiguration.java index 6ad9d7db369..aff899fd4ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetReplicationGroupLogDeliveryConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetReplicationGroupLogDeliveryConfiguration.java @@ -9,23 +9,12 @@ @CustomType public final class GetReplicationGroupLogDeliveryConfiguration { - private final String destination; - private final String destinationType; - private final String logFormat; - private final String logType; - - @CustomType.Constructor - private GetReplicationGroupLogDeliveryConfiguration( - @CustomType.Parameter("destination") String destination, - @CustomType.Parameter("destinationType") String destinationType, - @CustomType.Parameter("logFormat") String logFormat, - @CustomType.Parameter("logType") String logType) { - this.destination = destination; - this.destinationType = destinationType; - this.logFormat = logFormat; - this.logType = logType; - } + private String destination; + private String destinationType; + private String logFormat; + private String logType; + private GetReplicationGroupLogDeliveryConfiguration() {} public String destination() { return this.destination; } @@ -46,17 +35,13 @@ public static Builder builder() { public static Builder builder(GetReplicationGroupLogDeliveryConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destination; private String destinationType; private String logFormat; private String logType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetReplicationGroupLogDeliveryConfiguration defaults) { Objects.requireNonNull(defaults); this.destination = defaults.destination; @@ -65,23 +50,33 @@ public Builder(GetReplicationGroupLogDeliveryConfiguration defaults) { this.logType = defaults.logType; } + @CustomType.Setter public Builder destination(String destination) { this.destination = Objects.requireNonNull(destination); return this; } + @CustomType.Setter public Builder destinationType(String destinationType) { this.destinationType = Objects.requireNonNull(destinationType); return this; } + @CustomType.Setter public Builder logFormat(String logFormat) { this.logFormat = Objects.requireNonNull(logFormat); return this; } + @CustomType.Setter public Builder logType(String logType) { this.logType = Objects.requireNonNull(logType); return this; - } public GetReplicationGroupLogDeliveryConfiguration build() { - return new GetReplicationGroupLogDeliveryConfiguration(destination, destinationType, logFormat, logType); + } + public GetReplicationGroupLogDeliveryConfiguration build() { + final var o = new GetReplicationGroupLogDeliveryConfiguration(); + o.destination = destination; + o.destinationType = destinationType; + o.logFormat = logFormat; + o.logType = logType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetReplicationGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetReplicationGroupResult.java index 4f76e413c9a..2de95b7f185 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetReplicationGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetReplicationGroupResult.java @@ -17,62 +17,62 @@ public final class GetReplicationGroupResult { * @return The Amazon Resource Name (ARN) of the created ElastiCache Replication Group. * */ - private final String arn; + private String arn; /** * @return Specifies whether an AuthToken (password) is enabled. * */ - private final Boolean authTokenEnabled; + private Boolean authTokenEnabled; /** * @return A flag whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. * */ - private final Boolean automaticFailoverEnabled; + private Boolean automaticFailoverEnabled; /** * @return The configuration endpoint address to allow host discovery. * */ - private final String configurationEndpointAddress; + private String configurationEndpointAddress; /** * @return The description of the replication group. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Redis [SLOWLOG](https://redis.io/commands/slowlog) or Redis [Engine Log](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Log_Delivery.html#Log_contents-engine-log) delivery settings. * */ - private final List logDeliveryConfigurations; + private List logDeliveryConfigurations; /** * @return The identifiers of all the nodes that are part of this replication group. * */ - private final List memberClusters; + private List memberClusters; /** * @return Specifies whether Multi-AZ Support is enabled for the replication group. * */ - private final Boolean multiAzEnabled; + private Boolean multiAzEnabled; /** * @return The cluster node type. * */ - private final String nodeType; + private String nodeType; /** * @return The number of cache clusters that the replication group has. * */ - private final Integer numCacheClusters; + private Integer numCacheClusters; /** * @return Number of node groups (shards) for the replication group. * */ - private final Integer numNodeGroups; + private Integer numNodeGroups; /** * @return (**Deprecated** use `num_cache_clusters` instead) The number of cache clusters that the replication group has. * @@ -81,27 +81,27 @@ public final class GetReplicationGroupResult { * */ @Deprecated /* Use num_cache_clusters instead */ - private final Integer numberCacheClusters; + private Integer numberCacheClusters; /** * @return The port number on which the configuration endpoint will accept connections. * */ - private final Integer port; + private Integer port; /** * @return The endpoint of the primary node in this node group (shard). * */ - private final String primaryEndpointAddress; + private String primaryEndpointAddress; /** * @return The endpoint of the reader node in this node group (shard). * */ - private final String readerEndpointAddress; + private String readerEndpointAddress; /** * @return Number of replica nodes in each node group. * */ - private final Integer replicasPerNodeGroup; + private Integer replicasPerNodeGroup; /** * @return (**Deprecated** use `description` instead) The description of the replication group. * @@ -110,65 +110,20 @@ public final class GetReplicationGroupResult { * */ @Deprecated /* Use description instead */ - private final String replicationGroupDescription; - private final String replicationGroupId; + private String replicationGroupDescription; + private String replicationGroupId; /** * @return The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them. * */ - private final Integer snapshotRetentionLimit; + private Integer snapshotRetentionLimit; /** * @return The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard). * */ - private final String snapshotWindow; - - @CustomType.Constructor - private GetReplicationGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("authTokenEnabled") Boolean authTokenEnabled, - @CustomType.Parameter("automaticFailoverEnabled") Boolean automaticFailoverEnabled, - @CustomType.Parameter("configurationEndpointAddress") String configurationEndpointAddress, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("logDeliveryConfigurations") List logDeliveryConfigurations, - @CustomType.Parameter("memberClusters") List memberClusters, - @CustomType.Parameter("multiAzEnabled") Boolean multiAzEnabled, - @CustomType.Parameter("nodeType") String nodeType, - @CustomType.Parameter("numCacheClusters") Integer numCacheClusters, - @CustomType.Parameter("numNodeGroups") Integer numNodeGroups, - @CustomType.Parameter("numberCacheClusters") Integer numberCacheClusters, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("primaryEndpointAddress") String primaryEndpointAddress, - @CustomType.Parameter("readerEndpointAddress") String readerEndpointAddress, - @CustomType.Parameter("replicasPerNodeGroup") Integer replicasPerNodeGroup, - @CustomType.Parameter("replicationGroupDescription") String replicationGroupDescription, - @CustomType.Parameter("replicationGroupId") String replicationGroupId, - @CustomType.Parameter("snapshotRetentionLimit") Integer snapshotRetentionLimit, - @CustomType.Parameter("snapshotWindow") String snapshotWindow) { - this.arn = arn; - this.authTokenEnabled = authTokenEnabled; - this.automaticFailoverEnabled = automaticFailoverEnabled; - this.configurationEndpointAddress = configurationEndpointAddress; - this.description = description; - this.id = id; - this.logDeliveryConfigurations = logDeliveryConfigurations; - this.memberClusters = memberClusters; - this.multiAzEnabled = multiAzEnabled; - this.nodeType = nodeType; - this.numCacheClusters = numCacheClusters; - this.numNodeGroups = numNodeGroups; - this.numberCacheClusters = numberCacheClusters; - this.port = port; - this.primaryEndpointAddress = primaryEndpointAddress; - this.readerEndpointAddress = readerEndpointAddress; - this.replicasPerNodeGroup = replicasPerNodeGroup; - this.replicationGroupDescription = replicationGroupDescription; - this.replicationGroupId = replicationGroupId; - this.snapshotRetentionLimit = snapshotRetentionLimit; - this.snapshotWindow = snapshotWindow; - } + private String snapshotWindow; + private GetReplicationGroupResult() {} /** * @return The Amazon Resource Name (ARN) of the created ElastiCache Replication Group. * @@ -328,7 +283,7 @@ public static Builder builder() { public static Builder builder(GetReplicationGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Boolean authTokenEnabled; @@ -351,11 +306,7 @@ public static final class Builder { private String replicationGroupId; private Integer snapshotRetentionLimit; private String snapshotWindow; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetReplicationGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -381,30 +332,37 @@ public Builder(GetReplicationGroupResult defaults) { this.snapshotWindow = defaults.snapshotWindow; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder authTokenEnabled(Boolean authTokenEnabled) { this.authTokenEnabled = Objects.requireNonNull(authTokenEnabled); return this; } + @CustomType.Setter public Builder automaticFailoverEnabled(Boolean automaticFailoverEnabled) { this.automaticFailoverEnabled = Objects.requireNonNull(automaticFailoverEnabled); return this; } + @CustomType.Setter public Builder configurationEndpointAddress(String configurationEndpointAddress) { this.configurationEndpointAddress = Objects.requireNonNull(configurationEndpointAddress); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder logDeliveryConfigurations(List logDeliveryConfigurations) { this.logDeliveryConfigurations = Objects.requireNonNull(logDeliveryConfigurations); return this; @@ -412,6 +370,7 @@ public Builder logDeliveryConfigurations(List memberClusters) { this.memberClusters = Objects.requireNonNull(memberClusters); return this; @@ -419,59 +378,95 @@ public Builder memberClusters(List memberClusters) { public Builder memberClusters(String... memberClusters) { return memberClusters(List.of(memberClusters)); } + @CustomType.Setter public Builder multiAzEnabled(Boolean multiAzEnabled) { this.multiAzEnabled = Objects.requireNonNull(multiAzEnabled); return this; } + @CustomType.Setter public Builder nodeType(String nodeType) { this.nodeType = Objects.requireNonNull(nodeType); return this; } + @CustomType.Setter public Builder numCacheClusters(Integer numCacheClusters) { this.numCacheClusters = Objects.requireNonNull(numCacheClusters); return this; } + @CustomType.Setter public Builder numNodeGroups(Integer numNodeGroups) { this.numNodeGroups = Objects.requireNonNull(numNodeGroups); return this; } + @CustomType.Setter public Builder numberCacheClusters(Integer numberCacheClusters) { this.numberCacheClusters = Objects.requireNonNull(numberCacheClusters); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder primaryEndpointAddress(String primaryEndpointAddress) { this.primaryEndpointAddress = Objects.requireNonNull(primaryEndpointAddress); return this; } + @CustomType.Setter public Builder readerEndpointAddress(String readerEndpointAddress) { this.readerEndpointAddress = Objects.requireNonNull(readerEndpointAddress); return this; } + @CustomType.Setter public Builder replicasPerNodeGroup(Integer replicasPerNodeGroup) { this.replicasPerNodeGroup = Objects.requireNonNull(replicasPerNodeGroup); return this; } + @CustomType.Setter public Builder replicationGroupDescription(String replicationGroupDescription) { this.replicationGroupDescription = Objects.requireNonNull(replicationGroupDescription); return this; } + @CustomType.Setter public Builder replicationGroupId(String replicationGroupId) { this.replicationGroupId = Objects.requireNonNull(replicationGroupId); return this; } + @CustomType.Setter public Builder snapshotRetentionLimit(Integer snapshotRetentionLimit) { this.snapshotRetentionLimit = Objects.requireNonNull(snapshotRetentionLimit); return this; } + @CustomType.Setter public Builder snapshotWindow(String snapshotWindow) { this.snapshotWindow = Objects.requireNonNull(snapshotWindow); return this; - } public GetReplicationGroupResult build() { - return new GetReplicationGroupResult(arn, authTokenEnabled, automaticFailoverEnabled, configurationEndpointAddress, description, id, logDeliveryConfigurations, memberClusters, multiAzEnabled, nodeType, numCacheClusters, numNodeGroups, numberCacheClusters, port, primaryEndpointAddress, readerEndpointAddress, replicasPerNodeGroup, replicationGroupDescription, replicationGroupId, snapshotRetentionLimit, snapshotWindow); + } + public GetReplicationGroupResult build() { + final var o = new GetReplicationGroupResult(); + o.arn = arn; + o.authTokenEnabled = authTokenEnabled; + o.automaticFailoverEnabled = automaticFailoverEnabled; + o.configurationEndpointAddress = configurationEndpointAddress; + o.description = description; + o.id = id; + o.logDeliveryConfigurations = logDeliveryConfigurations; + o.memberClusters = memberClusters; + o.multiAzEnabled = multiAzEnabled; + o.nodeType = nodeType; + o.numCacheClusters = numCacheClusters; + o.numNodeGroups = numNodeGroups; + o.numberCacheClusters = numberCacheClusters; + o.port = port; + o.primaryEndpointAddress = primaryEndpointAddress; + o.readerEndpointAddress = readerEndpointAddress; + o.replicasPerNodeGroup = replicasPerNodeGroup; + o.replicationGroupDescription = replicationGroupDescription; + o.replicationGroupId = replicationGroupId; + o.snapshotRetentionLimit = snapshotRetentionLimit; + o.snapshotWindow = snapshotWindow; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetUserResult.java b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetUserResult.java index b61e4134676..4ad3cea2215 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetUserResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/GetUserResult.java @@ -17,44 +17,27 @@ public final class GetUserResult { * @return A string for what access a user possesses within the associated ElastiCache replication groups or clusters. * */ - private final @Nullable String accessString; - private final @Nullable String engine; + private @Nullable String accessString; + private @Nullable String engine; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable Boolean noPasswordRequired; - private final @Nullable List passwords; + private String id; + private @Nullable Boolean noPasswordRequired; + private @Nullable List passwords; /** * @return The identifier for the user. * */ - private final String userId; + private String userId; /** * @return The user name of the user. * */ - private final @Nullable String userName; - - @CustomType.Constructor - private GetUserResult( - @CustomType.Parameter("accessString") @Nullable String accessString, - @CustomType.Parameter("engine") @Nullable String engine, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("noPasswordRequired") @Nullable Boolean noPasswordRequired, - @CustomType.Parameter("passwords") @Nullable List passwords, - @CustomType.Parameter("userId") String userId, - @CustomType.Parameter("userName") @Nullable String userName) { - this.accessString = accessString; - this.engine = engine; - this.id = id; - this.noPasswordRequired = noPasswordRequired; - this.passwords = passwords; - this.userId = userId; - this.userName = userName; - } + private @Nullable String userName; + private GetUserResult() {} /** * @return A string for what access a user possesses within the associated ElastiCache replication groups or clusters. * @@ -100,7 +83,7 @@ public static Builder builder() { public static Builder builder(GetUserResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accessString; private @Nullable String engine; @@ -109,11 +92,7 @@ public static final class Builder { private @Nullable List passwords; private String userId; private @Nullable String userName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserResult defaults) { Objects.requireNonNull(defaults); this.accessString = defaults.accessString; @@ -125,22 +104,27 @@ public Builder(GetUserResult defaults) { this.userName = defaults.userName; } + @CustomType.Setter public Builder accessString(@Nullable String accessString) { this.accessString = accessString; return this; } + @CustomType.Setter public Builder engine(@Nullable String engine) { this.engine = engine; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder noPasswordRequired(@Nullable Boolean noPasswordRequired) { this.noPasswordRequired = noPasswordRequired; return this; } + @CustomType.Setter public Builder passwords(@Nullable List passwords) { this.passwords = passwords; return this; @@ -148,15 +132,26 @@ public Builder passwords(@Nullable List passwords) { public Builder passwords(String... passwords) { return passwords(List.of(passwords)); } + @CustomType.Setter public Builder userId(String userId) { this.userId = Objects.requireNonNull(userId); return this; } + @CustomType.Setter public Builder userName(@Nullable String userName) { this.userName = userName; return this; - } public GetUserResult build() { - return new GetUserResult(accessString, engine, id, noPasswordRequired, passwords, userId, userName); + } + public GetUserResult build() { + final var o = new GetUserResult(); + o.accessString = accessString; + o.engine = engine; + o.id = id; + o.noPasswordRequired = noPasswordRequired; + o.passwords = passwords; + o.userId = userId; + o.userName = userName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ParameterGroupParameter.java b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ParameterGroupParameter.java index da23e3eac48..e1059993af7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ParameterGroupParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ParameterGroupParameter.java @@ -13,21 +13,14 @@ public final class ParameterGroupParameter { * @return The name of the ElastiCache parameter. * */ - private final String name; + private String name; /** * @return The value of the ElastiCache parameter. * */ - private final String value; - - @CustomType.Constructor - private ParameterGroupParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private ParameterGroupParameter() {} /** * @return The name of the ElastiCache parameter. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ParameterGroupParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ParameterGroupParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ParameterGroupParameter build() { - return new ParameterGroupParameter(name, value); + } + public ParameterGroupParameter build() { + final var o = new ParameterGroupParameter(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ReplicationGroupClusterMode.java b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ReplicationGroupClusterMode.java index 5c455c2c75a..f2dd1febc24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ReplicationGroupClusterMode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ReplicationGroupClusterMode.java @@ -19,7 +19,7 @@ public final class ReplicationGroupClusterMode { * */ @Deprecated /* Use root-level num_node_groups instead */ - private final @Nullable Integer numNodeGroups; + private @Nullable Integer numNodeGroups; /** * @return Number of replica nodes in each node group. Valid values are 0 to 5. Changing this number will trigger an online resizing operation before other settings modifications. * @@ -28,16 +28,9 @@ public final class ReplicationGroupClusterMode { * */ @Deprecated /* Use root-level replicas_per_node_group instead */ - private final @Nullable Integer replicasPerNodeGroup; - - @CustomType.Constructor - private ReplicationGroupClusterMode( - @CustomType.Parameter("numNodeGroups") @Nullable Integer numNodeGroups, - @CustomType.Parameter("replicasPerNodeGroup") @Nullable Integer replicasPerNodeGroup) { - this.numNodeGroups = numNodeGroups; - this.replicasPerNodeGroup = replicasPerNodeGroup; - } + private @Nullable Integer replicasPerNodeGroup; + private ReplicationGroupClusterMode() {} /** * @return Number of node groups (shards) for this Redis replication group. Changing this number will trigger an online resizing operation before other settings modifications. Required unless `global_replication_group_id` is set. * @@ -68,30 +61,32 @@ public static Builder builder() { public static Builder builder(ReplicationGroupClusterMode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer numNodeGroups; private @Nullable Integer replicasPerNodeGroup; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReplicationGroupClusterMode defaults) { Objects.requireNonNull(defaults); this.numNodeGroups = defaults.numNodeGroups; this.replicasPerNodeGroup = defaults.replicasPerNodeGroup; } + @CustomType.Setter public Builder numNodeGroups(@Nullable Integer numNodeGroups) { this.numNodeGroups = numNodeGroups; return this; } + @CustomType.Setter public Builder replicasPerNodeGroup(@Nullable Integer replicasPerNodeGroup) { this.replicasPerNodeGroup = replicasPerNodeGroup; return this; - } public ReplicationGroupClusterMode build() { - return new ReplicationGroupClusterMode(numNodeGroups, replicasPerNodeGroup); + } + public ReplicationGroupClusterMode build() { + final var o = new ReplicationGroupClusterMode(); + o.numNodeGroups = numNodeGroups; + o.replicasPerNodeGroup = replicasPerNodeGroup; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ReplicationGroupLogDeliveryConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ReplicationGroupLogDeliveryConfiguration.java index 2b3b9d51c7b..5ecedbe785f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ReplicationGroupLogDeliveryConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticache/outputs/ReplicationGroupLogDeliveryConfiguration.java @@ -13,35 +13,24 @@ public final class ReplicationGroupLogDeliveryConfiguration { * @return Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource. * */ - private final String destination; + private String destination; /** * @return For CloudWatch Logs use `cloudwatch-logs` or for Kinesis Data Firehose use `kinesis-firehose`. * */ - private final String destinationType; + private String destinationType; /** * @return Valid values are `json` or `text` * */ - private final String logFormat; + private String logFormat; /** * @return Valid values are `slow-log` or `engine-log`. Max 1 of each. * */ - private final String logType; - - @CustomType.Constructor - private ReplicationGroupLogDeliveryConfiguration( - @CustomType.Parameter("destination") String destination, - @CustomType.Parameter("destinationType") String destinationType, - @CustomType.Parameter("logFormat") String logFormat, - @CustomType.Parameter("logType") String logType) { - this.destination = destination; - this.destinationType = destinationType; - this.logFormat = logFormat; - this.logType = logType; - } + private String logType; + private ReplicationGroupLogDeliveryConfiguration() {} /** * @return Name of either the CloudWatch Logs LogGroup or Kinesis Data Firehose resource. * @@ -78,17 +67,13 @@ public static Builder builder() { public static Builder builder(ReplicationGroupLogDeliveryConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destination; private String destinationType; private String logFormat; private String logType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReplicationGroupLogDeliveryConfiguration defaults) { Objects.requireNonNull(defaults); this.destination = defaults.destination; @@ -97,23 +82,33 @@ public Builder(ReplicationGroupLogDeliveryConfiguration defaults) { this.logType = defaults.logType; } + @CustomType.Setter public Builder destination(String destination) { this.destination = Objects.requireNonNull(destination); return this; } + @CustomType.Setter public Builder destinationType(String destinationType) { this.destinationType = Objects.requireNonNull(destinationType); return this; } + @CustomType.Setter public Builder logFormat(String logFormat) { this.logFormat = Objects.requireNonNull(logFormat); return this; } + @CustomType.Setter public Builder logType(String logType) { this.logType = Objects.requireNonNull(logType); return this; - } public ReplicationGroupLogDeliveryConfiguration build() { - return new ReplicationGroupLogDeliveryConfiguration(destination, destinationType, logFormat, logType); + } + public ReplicationGroupLogDeliveryConfiguration build() { + final var o = new ReplicationGroupLogDeliveryConfiguration(); + o.destination = destination; + o.destinationType = destinationType; + o.logFormat = logFormat; + o.logType = logType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/ApplicationAppversionLifecycle.java b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/ApplicationAppversionLifecycle.java index fec1144e1a7..3979e0dbf43 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/ApplicationAppversionLifecycle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/ApplicationAppversionLifecycle.java @@ -17,35 +17,24 @@ public final class ApplicationAppversionLifecycle { * @return Set to `true` to delete a version's source bundle from S3 when the application version is deleted. * */ - private final @Nullable Boolean deleteSourceFromS3; + private @Nullable Boolean deleteSourceFromS3; /** * @return The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.). * */ - private final @Nullable Integer maxAgeInDays; + private @Nullable Integer maxAgeInDays; /** * @return The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.). * */ - private final @Nullable Integer maxCount; + private @Nullable Integer maxCount; /** * @return The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role. * */ - private final String serviceRole; - - @CustomType.Constructor - private ApplicationAppversionLifecycle( - @CustomType.Parameter("deleteSourceFromS3") @Nullable Boolean deleteSourceFromS3, - @CustomType.Parameter("maxAgeInDays") @Nullable Integer maxAgeInDays, - @CustomType.Parameter("maxCount") @Nullable Integer maxCount, - @CustomType.Parameter("serviceRole") String serviceRole) { - this.deleteSourceFromS3 = deleteSourceFromS3; - this.maxAgeInDays = maxAgeInDays; - this.maxCount = maxCount; - this.serviceRole = serviceRole; - } + private String serviceRole; + private ApplicationAppversionLifecycle() {} /** * @return Set to `true` to delete a version's source bundle from S3 when the application version is deleted. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(ApplicationAppversionLifecycle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteSourceFromS3; private @Nullable Integer maxAgeInDays; private @Nullable Integer maxCount; private String serviceRole; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationAppversionLifecycle defaults) { Objects.requireNonNull(defaults); this.deleteSourceFromS3 = defaults.deleteSourceFromS3; @@ -101,23 +86,33 @@ public Builder(ApplicationAppversionLifecycle defaults) { this.serviceRole = defaults.serviceRole; } + @CustomType.Setter public Builder deleteSourceFromS3(@Nullable Boolean deleteSourceFromS3) { this.deleteSourceFromS3 = deleteSourceFromS3; return this; } + @CustomType.Setter public Builder maxAgeInDays(@Nullable Integer maxAgeInDays) { this.maxAgeInDays = maxAgeInDays; return this; } + @CustomType.Setter public Builder maxCount(@Nullable Integer maxCount) { this.maxCount = maxCount; return this; } + @CustomType.Setter public Builder serviceRole(String serviceRole) { this.serviceRole = Objects.requireNonNull(serviceRole); return this; - } public ApplicationAppversionLifecycle build() { - return new ApplicationAppversionLifecycle(deleteSourceFromS3, maxAgeInDays, maxCount, serviceRole); + } + public ApplicationAppversionLifecycle build() { + final var o = new ApplicationAppversionLifecycle(); + o.deleteSourceFromS3 = deleteSourceFromS3; + o.maxAgeInDays = maxAgeInDays; + o.maxCount = maxCount; + o.serviceRole = serviceRole; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/ConfigurationTemplateSetting.java b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/ConfigurationTemplateSetting.java index 8f167f5d2a1..435f87bb0ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/ConfigurationTemplateSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/ConfigurationTemplateSetting.java @@ -15,23 +15,12 @@ public final class ConfigurationTemplateSetting { * @return A unique name for this Template. * */ - private final String name; - private final String namespace; - private final @Nullable String resource; - private final String value; - - @CustomType.Constructor - private ConfigurationTemplateSetting( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("namespace") String namespace, - @CustomType.Parameter("resource") @Nullable String resource, - @CustomType.Parameter("value") String value) { - this.name = name; - this.namespace = namespace; - this.resource = resource; - this.value = value; - } + private String name; + private String namespace; + private @Nullable String resource; + private String value; + private ConfigurationTemplateSetting() {} /** * @return A unique name for this Template. * @@ -56,17 +45,13 @@ public static Builder builder() { public static Builder builder(ConfigurationTemplateSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String namespace; private @Nullable String resource; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConfigurationTemplateSetting defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -75,23 +60,33 @@ public Builder(ConfigurationTemplateSetting defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder namespace(String namespace) { this.namespace = Objects.requireNonNull(namespace); return this; } + @CustomType.Setter public Builder resource(@Nullable String resource) { this.resource = resource; return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ConfigurationTemplateSetting build() { - return new ConfigurationTemplateSetting(name, namespace, resource, value); + } + public ConfigurationTemplateSetting build() { + final var o = new ConfigurationTemplateSetting(); + o.name = name; + o.namespace = namespace; + o.resource = resource; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/EnvironmentAllSetting.java b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/EnvironmentAllSetting.java index 699b53b56a3..c3074f0f373 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/EnvironmentAllSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/EnvironmentAllSetting.java @@ -16,23 +16,12 @@ public final class EnvironmentAllSetting { * in the application URL * */ - private final String name; - private final String namespace; - private final @Nullable String resource; - private final String value; - - @CustomType.Constructor - private EnvironmentAllSetting( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("namespace") String namespace, - @CustomType.Parameter("resource") @Nullable String resource, - @CustomType.Parameter("value") String value) { - this.name = name; - this.namespace = namespace; - this.resource = resource; - this.value = value; - } + private String name; + private String namespace; + private @Nullable String resource; + private String value; + private EnvironmentAllSetting() {} /** * @return A unique name for this Environment. This name is used * in the application URL @@ -58,17 +47,13 @@ public static Builder builder() { public static Builder builder(EnvironmentAllSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String namespace; private @Nullable String resource; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EnvironmentAllSetting defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -77,23 +62,33 @@ public Builder(EnvironmentAllSetting defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder namespace(String namespace) { this.namespace = Objects.requireNonNull(namespace); return this; } + @CustomType.Setter public Builder resource(@Nullable String resource) { this.resource = resource; return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public EnvironmentAllSetting build() { - return new EnvironmentAllSetting(name, namespace, resource, value); + } + public EnvironmentAllSetting build() { + final var o = new EnvironmentAllSetting(); + o.name = name; + o.namespace = namespace; + o.resource = resource; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/EnvironmentSetting.java b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/EnvironmentSetting.java index f8ae8e1960d..6bb4b1565bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/EnvironmentSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/EnvironmentSetting.java @@ -16,23 +16,12 @@ public final class EnvironmentSetting { * in the application URL * */ - private final String name; - private final String namespace; - private final @Nullable String resource; - private final String value; - - @CustomType.Constructor - private EnvironmentSetting( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("namespace") String namespace, - @CustomType.Parameter("resource") @Nullable String resource, - @CustomType.Parameter("value") String value) { - this.name = name; - this.namespace = namespace; - this.resource = resource; - this.value = value; - } + private String name; + private String namespace; + private @Nullable String resource; + private String value; + private EnvironmentSetting() {} /** * @return A unique name for this Environment. This name is used * in the application URL @@ -58,17 +47,13 @@ public static Builder builder() { public static Builder builder(EnvironmentSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String namespace; private @Nullable String resource; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EnvironmentSetting defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -77,23 +62,33 @@ public Builder(EnvironmentSetting defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder namespace(String namespace) { this.namespace = Objects.requireNonNull(namespace); return this; } + @CustomType.Setter public Builder resource(@Nullable String resource) { this.resource = resource; return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public EnvironmentSetting build() { - return new EnvironmentSetting(name, namespace, resource, value); + } + public EnvironmentSetting build() { + final var o = new EnvironmentSetting(); + o.name = name; + o.namespace = namespace; + o.resource = resource; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetApplicationAppversionLifecycle.java b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetApplicationAppversionLifecycle.java index b6dc87f6da5..608797eeddc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetApplicationAppversionLifecycle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetApplicationAppversionLifecycle.java @@ -15,35 +15,24 @@ public final class GetApplicationAppversionLifecycle { * @return Specifies whether delete a version's source bundle from S3 when the application version is deleted. * */ - private final Boolean deleteSourceFromS3; + private Boolean deleteSourceFromS3; /** * @return The number of days to retain an application version. * */ - private final Integer maxAgeInDays; + private Integer maxAgeInDays; /** * @return The maximum number of application versions to retain. * */ - private final Integer maxCount; + private Integer maxCount; /** * @return The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role. * */ - private final String serviceRole; - - @CustomType.Constructor - private GetApplicationAppversionLifecycle( - @CustomType.Parameter("deleteSourceFromS3") Boolean deleteSourceFromS3, - @CustomType.Parameter("maxAgeInDays") Integer maxAgeInDays, - @CustomType.Parameter("maxCount") Integer maxCount, - @CustomType.Parameter("serviceRole") String serviceRole) { - this.deleteSourceFromS3 = deleteSourceFromS3; - this.maxAgeInDays = maxAgeInDays; - this.maxCount = maxCount; - this.serviceRole = serviceRole; - } + private String serviceRole; + private GetApplicationAppversionLifecycle() {} /** * @return Specifies whether delete a version's source bundle from S3 when the application version is deleted. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(GetApplicationAppversionLifecycle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean deleteSourceFromS3; private Integer maxAgeInDays; private Integer maxCount; private String serviceRole; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetApplicationAppversionLifecycle defaults) { Objects.requireNonNull(defaults); this.deleteSourceFromS3 = defaults.deleteSourceFromS3; @@ -99,23 +84,33 @@ public Builder(GetApplicationAppversionLifecycle defaults) { this.serviceRole = defaults.serviceRole; } + @CustomType.Setter public Builder deleteSourceFromS3(Boolean deleteSourceFromS3) { this.deleteSourceFromS3 = Objects.requireNonNull(deleteSourceFromS3); return this; } + @CustomType.Setter public Builder maxAgeInDays(Integer maxAgeInDays) { this.maxAgeInDays = Objects.requireNonNull(maxAgeInDays); return this; } + @CustomType.Setter public Builder maxCount(Integer maxCount) { this.maxCount = Objects.requireNonNull(maxCount); return this; } + @CustomType.Setter public Builder serviceRole(String serviceRole) { this.serviceRole = Objects.requireNonNull(serviceRole); return this; - } public GetApplicationAppversionLifecycle build() { - return new GetApplicationAppversionLifecycle(deleteSourceFromS3, maxAgeInDays, maxCount, serviceRole); + } + public GetApplicationAppversionLifecycle build() { + final var o = new GetApplicationAppversionLifecycle(); + o.deleteSourceFromS3 = deleteSourceFromS3; + o.maxAgeInDays = maxAgeInDays; + o.maxCount = maxCount; + o.serviceRole = serviceRole; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetApplicationResult.java b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetApplicationResult.java index 3fef4883770..9872fdc1567 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetApplicationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetApplicationResult.java @@ -10,38 +10,25 @@ @CustomType public final class GetApplicationResult { - private final GetApplicationAppversionLifecycle appversionLifecycle; + private GetApplicationAppversionLifecycle appversionLifecycle; /** * @return The Amazon Resource Name (ARN) of the application. * */ - private final String arn; + private String arn; /** * @return Short description of the application * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetApplicationResult( - @CustomType.Parameter("appversionLifecycle") GetApplicationAppversionLifecycle appversionLifecycle, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.appversionLifecycle = appversionLifecycle; - this.arn = arn; - this.description = description; - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetApplicationResult() {} public GetApplicationAppversionLifecycle appversionLifecycle() { return this.appversionLifecycle; } @@ -77,18 +64,14 @@ public static Builder builder() { public static Builder builder(GetApplicationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GetApplicationAppversionLifecycle appversionLifecycle; private String arn; private String description; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetApplicationResult defaults) { Objects.requireNonNull(defaults); this.appversionLifecycle = defaults.appversionLifecycle; @@ -98,27 +81,39 @@ public Builder(GetApplicationResult defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder appversionLifecycle(GetApplicationAppversionLifecycle appversionLifecycle) { this.appversionLifecycle = Objects.requireNonNull(appversionLifecycle); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetApplicationResult build() { - return new GetApplicationResult(appversionLifecycle, arn, description, id, name); + } + public GetApplicationResult build() { + final var o = new GetApplicationResult(); + o.appversionLifecycle = appversionLifecycle; + o.arn = arn; + o.description = description; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetHostedZoneResult.java b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetHostedZoneResult.java index 34383514533..c70947979f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetHostedZoneResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetHostedZoneResult.java @@ -15,21 +15,14 @@ public final class GetHostedZoneResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The region of the hosted zone. * */ - private final @Nullable String region; - - @CustomType.Constructor - private GetHostedZoneResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("region") @Nullable String region) { - this.id = id; - this.region = region; - } + private @Nullable String region; + private GetHostedZoneResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GetHostedZoneResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private @Nullable String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetHostedZoneResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.region = defaults.region; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; - } public GetHostedZoneResult build() { - return new GetHostedZoneResult(id, region); + } + public GetHostedZoneResult build() { + final var o = new GetHostedZoneResult(); + o.id = id; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetSolutionStackResult.java b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetSolutionStackResult.java index 2c0b4eeb3f2..6e0aea1b01c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetSolutionStackResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticbeanstalk/outputs/GetSolutionStackResult.java @@ -16,27 +16,16 @@ public final class GetSolutionStackResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable Boolean mostRecent; + private String id; + private @Nullable Boolean mostRecent; /** * @return The name of the solution stack. * */ - private final String name; - private final String nameRegex; - - @CustomType.Constructor - private GetSolutionStackResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("mostRecent") @Nullable Boolean mostRecent, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nameRegex") String nameRegex) { - this.id = id; - this.mostRecent = mostRecent; - this.name = name; - this.nameRegex = nameRegex; - } + private String name; + private String nameRegex; + private GetSolutionStackResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -65,17 +54,13 @@ public static Builder builder() { public static Builder builder(GetSolutionStackResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private @Nullable Boolean mostRecent; private String name; private String nameRegex; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSolutionStackResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -84,23 +69,33 @@ public Builder(GetSolutionStackResult defaults) { this.nameRegex = defaults.nameRegex; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { this.mostRecent = mostRecent; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nameRegex(String nameRegex) { this.nameRegex = Objects.requireNonNull(nameRegex); return this; - } public GetSolutionStackResult build() { - return new GetSolutionStackResult(id, mostRecent, name, nameRegex); + } + public GetSolutionStackResult build() { + final var o = new GetSolutionStackResult(); + o.id = id; + o.mostRecent = mostRecent; + o.name = name; + o.nameRegex = nameRegex; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetHostedZoneIdResult.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetHostedZoneIdResult.java index ac0ec551b52..31a2bad3df1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetHostedZoneIdResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetHostedZoneIdResult.java @@ -15,17 +15,10 @@ public final class GetHostedZoneIdResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String region; - - @CustomType.Constructor - private GetHostedZoneIdResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("region") @Nullable String region) { - this.id = id; - this.region = region; - } + private String id; + private @Nullable String region; + private GetHostedZoneIdResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -44,30 +37,32 @@ public static Builder builder() { public static Builder builder(GetHostedZoneIdResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private @Nullable String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetHostedZoneIdResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.region = defaults.region; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; - } public GetHostedZoneIdResult build() { - return new GetHostedZoneIdResult(id, region); + } + public GetHostedZoneIdResult build() { + final var o = new GetHostedZoneIdResult(); + o.id = id; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerAccessLogs.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerAccessLogs.java index 9a666255a45..18349037b57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerAccessLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerAccessLogs.java @@ -11,23 +11,12 @@ @CustomType public final class GetLoadBalancerAccessLogs { - private final String bucket; - private final String bucketPrefix; - private final Boolean enabled; - private final Integer interval; - - @CustomType.Constructor - private GetLoadBalancerAccessLogs( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("bucketPrefix") String bucketPrefix, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("interval") Integer interval) { - this.bucket = bucket; - this.bucketPrefix = bucketPrefix; - this.enabled = enabled; - this.interval = interval; - } + private String bucket; + private String bucketPrefix; + private Boolean enabled; + private Integer interval; + private GetLoadBalancerAccessLogs() {} public String bucket() { return this.bucket; } @@ -48,17 +37,13 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerAccessLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String bucketPrefix; private Boolean enabled; private Integer interval; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerAccessLogs defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -67,23 +52,33 @@ public Builder(GetLoadBalancerAccessLogs defaults) { this.interval = defaults.interval; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder bucketPrefix(String bucketPrefix) { this.bucketPrefix = Objects.requireNonNull(bucketPrefix); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder interval(Integer interval) { this.interval = Objects.requireNonNull(interval); return this; - } public GetLoadBalancerAccessLogs build() { - return new GetLoadBalancerAccessLogs(bucket, bucketPrefix, enabled, interval); + } + public GetLoadBalancerAccessLogs build() { + final var o = new GetLoadBalancerAccessLogs(); + o.bucket = bucket; + o.bucketPrefix = bucketPrefix; + o.enabled = enabled; + o.interval = interval; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerHealthCheck.java index 099fff37bcc..1a92dd5ada3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerHealthCheck.java @@ -10,26 +10,13 @@ @CustomType public final class GetLoadBalancerHealthCheck { - private final Integer healthyThreshold; - private final Integer interval; - private final String target; - private final Integer timeout; - private final Integer unhealthyThreshold; - - @CustomType.Constructor - private GetLoadBalancerHealthCheck( - @CustomType.Parameter("healthyThreshold") Integer healthyThreshold, - @CustomType.Parameter("interval") Integer interval, - @CustomType.Parameter("target") String target, - @CustomType.Parameter("timeout") Integer timeout, - @CustomType.Parameter("unhealthyThreshold") Integer unhealthyThreshold) { - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.target = target; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private Integer healthyThreshold; + private Integer interval; + private String target; + private Integer timeout; + private Integer unhealthyThreshold; + private GetLoadBalancerHealthCheck() {} public Integer healthyThreshold() { return this.healthyThreshold; } @@ -53,18 +40,14 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer healthyThreshold; private Integer interval; private String target; private Integer timeout; private Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerHealthCheck defaults) { Objects.requireNonNull(defaults); this.healthyThreshold = defaults.healthyThreshold; @@ -74,27 +57,39 @@ public Builder(GetLoadBalancerHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder healthyThreshold(Integer healthyThreshold) { this.healthyThreshold = Objects.requireNonNull(healthyThreshold); return this; } + @CustomType.Setter public Builder interval(Integer interval) { this.interval = Objects.requireNonNull(interval); return this; } + @CustomType.Setter public Builder target(String target) { this.target = Objects.requireNonNull(target); return this; } + @CustomType.Setter public Builder timeout(Integer timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } + @CustomType.Setter public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.unhealthyThreshold = Objects.requireNonNull(unhealthyThreshold); return this; - } public GetLoadBalancerHealthCheck build() { - return new GetLoadBalancerHealthCheck(healthyThreshold, interval, target, timeout, unhealthyThreshold); + } + public GetLoadBalancerHealthCheck build() { + final var o = new GetLoadBalancerHealthCheck(); + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.target = target; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerListener.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerListener.java index f960b2c7075..63683c70fab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerListener.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerListener.java @@ -10,26 +10,13 @@ @CustomType public final class GetLoadBalancerListener { - private final Integer instancePort; - private final String instanceProtocol; - private final Integer lbPort; - private final String lbProtocol; - private final String sslCertificateId; - - @CustomType.Constructor - private GetLoadBalancerListener( - @CustomType.Parameter("instancePort") Integer instancePort, - @CustomType.Parameter("instanceProtocol") String instanceProtocol, - @CustomType.Parameter("lbPort") Integer lbPort, - @CustomType.Parameter("lbProtocol") String lbProtocol, - @CustomType.Parameter("sslCertificateId") String sslCertificateId) { - this.instancePort = instancePort; - this.instanceProtocol = instanceProtocol; - this.lbPort = lbPort; - this.lbProtocol = lbProtocol; - this.sslCertificateId = sslCertificateId; - } + private Integer instancePort; + private String instanceProtocol; + private Integer lbPort; + private String lbProtocol; + private String sslCertificateId; + private GetLoadBalancerListener() {} public Integer instancePort() { return this.instancePort; } @@ -53,18 +40,14 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerListener defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer instancePort; private String instanceProtocol; private Integer lbPort; private String lbProtocol; private String sslCertificateId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerListener defaults) { Objects.requireNonNull(defaults); this.instancePort = defaults.instancePort; @@ -74,27 +57,39 @@ public Builder(GetLoadBalancerListener defaults) { this.sslCertificateId = defaults.sslCertificateId; } + @CustomType.Setter public Builder instancePort(Integer instancePort) { this.instancePort = Objects.requireNonNull(instancePort); return this; } + @CustomType.Setter public Builder instanceProtocol(String instanceProtocol) { this.instanceProtocol = Objects.requireNonNull(instanceProtocol); return this; } + @CustomType.Setter public Builder lbPort(Integer lbPort) { this.lbPort = Objects.requireNonNull(lbPort); return this; } + @CustomType.Setter public Builder lbProtocol(String lbProtocol) { this.lbProtocol = Objects.requireNonNull(lbProtocol); return this; } + @CustomType.Setter public Builder sslCertificateId(String sslCertificateId) { this.sslCertificateId = Objects.requireNonNull(sslCertificateId); return this; - } public GetLoadBalancerListener build() { - return new GetLoadBalancerListener(instancePort, instanceProtocol, lbPort, lbProtocol, sslCertificateId); + } + public GetLoadBalancerListener build() { + final var o = new GetLoadBalancerListener(); + o.instancePort = instancePort; + o.instanceProtocol = instanceProtocol; + o.lbPort = lbPort; + o.lbProtocol = lbProtocol; + o.sslCertificateId = sslCertificateId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerResult.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerResult.java index 1a734b62455..4c2215cce78 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetLoadBalancerResult.java @@ -16,78 +16,33 @@ @CustomType public final class GetLoadBalancerResult { - private final GetLoadBalancerAccessLogs accessLogs; - private final String arn; - private final List availabilityZones; - private final Boolean connectionDraining; - private final Integer connectionDrainingTimeout; - private final Boolean crossZoneLoadBalancing; - private final String desyncMitigationMode; - private final String dnsName; - private final GetLoadBalancerHealthCheck healthCheck; + private GetLoadBalancerAccessLogs accessLogs; + private String arn; + private List availabilityZones; + private Boolean connectionDraining; + private Integer connectionDrainingTimeout; + private Boolean crossZoneLoadBalancing; + private String desyncMitigationMode; + private String dnsName; + private GetLoadBalancerHealthCheck healthCheck; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final Integer idleTimeout; - private final List instances; - private final Boolean internal; - private final List listeners; - private final String name; - private final List securityGroups; - private final String sourceSecurityGroup; - private final String sourceSecurityGroupId; - private final List subnets; - private final Map tags; - private final String zoneId; - - @CustomType.Constructor - private GetLoadBalancerResult( - @CustomType.Parameter("accessLogs") GetLoadBalancerAccessLogs accessLogs, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("connectionDraining") Boolean connectionDraining, - @CustomType.Parameter("connectionDrainingTimeout") Integer connectionDrainingTimeout, - @CustomType.Parameter("crossZoneLoadBalancing") Boolean crossZoneLoadBalancing, - @CustomType.Parameter("desyncMitigationMode") String desyncMitigationMode, - @CustomType.Parameter("dnsName") String dnsName, - @CustomType.Parameter("healthCheck") GetLoadBalancerHealthCheck healthCheck, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("idleTimeout") Integer idleTimeout, - @CustomType.Parameter("instances") List instances, - @CustomType.Parameter("internal") Boolean internal, - @CustomType.Parameter("listeners") List listeners, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("sourceSecurityGroup") String sourceSecurityGroup, - @CustomType.Parameter("sourceSecurityGroupId") String sourceSecurityGroupId, - @CustomType.Parameter("subnets") List subnets, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("zoneId") String zoneId) { - this.accessLogs = accessLogs; - this.arn = arn; - this.availabilityZones = availabilityZones; - this.connectionDraining = connectionDraining; - this.connectionDrainingTimeout = connectionDrainingTimeout; - this.crossZoneLoadBalancing = crossZoneLoadBalancing; - this.desyncMitigationMode = desyncMitigationMode; - this.dnsName = dnsName; - this.healthCheck = healthCheck; - this.id = id; - this.idleTimeout = idleTimeout; - this.instances = instances; - this.internal = internal; - this.listeners = listeners; - this.name = name; - this.securityGroups = securityGroups; - this.sourceSecurityGroup = sourceSecurityGroup; - this.sourceSecurityGroupId = sourceSecurityGroupId; - this.subnets = subnets; - this.tags = tags; - this.zoneId = zoneId; - } + private String id; + private Integer idleTimeout; + private List instances; + private Boolean internal; + private List listeners; + private String name; + private List securityGroups; + private String sourceSecurityGroup; + private String sourceSecurityGroupId; + private List subnets; + private Map tags; + private String zoneId; + private GetLoadBalancerResult() {} public GetLoadBalancerAccessLogs accessLogs() { return this.accessLogs; } @@ -163,7 +118,7 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GetLoadBalancerAccessLogs accessLogs; private String arn; @@ -186,11 +141,7 @@ public static final class Builder { private List subnets; private Map tags; private String zoneId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerResult defaults) { Objects.requireNonNull(defaults); this.accessLogs = defaults.accessLogs; @@ -216,14 +167,17 @@ public Builder(GetLoadBalancerResult defaults) { this.zoneId = defaults.zoneId; } + @CustomType.Setter public Builder accessLogs(GetLoadBalancerAccessLogs accessLogs) { this.accessLogs = Objects.requireNonNull(accessLogs); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -231,38 +185,47 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder connectionDraining(Boolean connectionDraining) { this.connectionDraining = Objects.requireNonNull(connectionDraining); return this; } + @CustomType.Setter public Builder connectionDrainingTimeout(Integer connectionDrainingTimeout) { this.connectionDrainingTimeout = Objects.requireNonNull(connectionDrainingTimeout); return this; } + @CustomType.Setter public Builder crossZoneLoadBalancing(Boolean crossZoneLoadBalancing) { this.crossZoneLoadBalancing = Objects.requireNonNull(crossZoneLoadBalancing); return this; } + @CustomType.Setter public Builder desyncMitigationMode(String desyncMitigationMode) { this.desyncMitigationMode = Objects.requireNonNull(desyncMitigationMode); return this; } + @CustomType.Setter public Builder dnsName(String dnsName) { this.dnsName = Objects.requireNonNull(dnsName); return this; } + @CustomType.Setter public Builder healthCheck(GetLoadBalancerHealthCheck healthCheck) { this.healthCheck = Objects.requireNonNull(healthCheck); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder idleTimeout(Integer idleTimeout) { this.idleTimeout = Objects.requireNonNull(idleTimeout); return this; } + @CustomType.Setter public Builder instances(List instances) { this.instances = Objects.requireNonNull(instances); return this; @@ -270,10 +233,12 @@ public Builder instances(List instances) { public Builder instances(String... instances) { return instances(List.of(instances)); } + @CustomType.Setter public Builder internal(Boolean internal) { this.internal = Objects.requireNonNull(internal); return this; } + @CustomType.Setter public Builder listeners(List listeners) { this.listeners = Objects.requireNonNull(listeners); return this; @@ -281,10 +246,12 @@ public Builder listeners(List listeners) { public Builder listeners(GetLoadBalancerListener... listeners) { return listeners(List.of(listeners)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -292,14 +259,17 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder sourceSecurityGroup(String sourceSecurityGroup) { this.sourceSecurityGroup = Objects.requireNonNull(sourceSecurityGroup); return this; } + @CustomType.Setter public Builder sourceSecurityGroupId(String sourceSecurityGroupId) { this.sourceSecurityGroupId = Objects.requireNonNull(sourceSecurityGroupId); return this; } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; @@ -307,15 +277,40 @@ public Builder subnets(List subnets) { public Builder subnets(String... subnets) { return subnets(List.of(subnets)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder zoneId(String zoneId) { this.zoneId = Objects.requireNonNull(zoneId); return this; - } public GetLoadBalancerResult build() { - return new GetLoadBalancerResult(accessLogs, arn, availabilityZones, connectionDraining, connectionDrainingTimeout, crossZoneLoadBalancing, desyncMitigationMode, dnsName, healthCheck, id, idleTimeout, instances, internal, listeners, name, securityGroups, sourceSecurityGroup, sourceSecurityGroupId, subnets, tags, zoneId); + } + public GetLoadBalancerResult build() { + final var o = new GetLoadBalancerResult(); + o.accessLogs = accessLogs; + o.arn = arn; + o.availabilityZones = availabilityZones; + o.connectionDraining = connectionDraining; + o.connectionDrainingTimeout = connectionDrainingTimeout; + o.crossZoneLoadBalancing = crossZoneLoadBalancing; + o.desyncMitigationMode = desyncMitigationMode; + o.dnsName = dnsName; + o.healthCheck = healthCheck; + o.id = id; + o.idleTimeout = idleTimeout; + o.instances = instances; + o.internal = internal; + o.listeners = listeners; + o.name = name; + o.securityGroups = securityGroups; + o.sourceSecurityGroup = sourceSecurityGroup; + o.sourceSecurityGroupId = sourceSecurityGroupId; + o.subnets = subnets; + o.tags = tags; + o.zoneId = zoneId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetServiceAccountResult.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetServiceAccountResult.java index 7496a73fe44..e603fc67ecd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetServiceAccountResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/GetServiceAccountResult.java @@ -15,24 +15,15 @@ public final class GetServiceAccountResult { * @return The ARN of the AWS ELB service account in the selected region. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String region; - - @CustomType.Constructor - private GetServiceAccountResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("region") @Nullable String region) { - this.arn = arn; - this.id = id; - this.region = region; - } + private String id; + private @Nullable String region; + private GetServiceAccountResult() {} /** * @return The ARN of the AWS ELB service account in the selected region. * @@ -58,16 +49,12 @@ public static Builder builder() { public static Builder builder(GetServiceAccountResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private @Nullable String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceAccountResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -75,19 +62,27 @@ public Builder(GetServiceAccountResult defaults) { this.region = defaults.region; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; - } public GetServiceAccountResult build() { - return new GetServiceAccountResult(arn, id, region); + } + public GetServiceAccountResult build() { + final var o = new GetServiceAccountResult(); + o.arn = arn; + o.id = id; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerAccessLogs.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerAccessLogs.java index 9ba18a4858a..c5ff640f672 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerAccessLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerAccessLogs.java @@ -17,35 +17,24 @@ public final class LoadBalancerAccessLogs { * @return The S3 bucket name to store the logs in. * */ - private final String bucket; + private String bucket; /** * @return The S3 bucket prefix. Logs are stored in the root if not configured. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Boolean to enable / disable `access_logs`. Default is `true` * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The publishing interval in minutes. Default: 60 minutes. * */ - private final @Nullable Integer interval; - - @CustomType.Constructor - private LoadBalancerAccessLogs( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("interval") @Nullable Integer interval) { - this.bucket = bucket; - this.bucketPrefix = bucketPrefix; - this.enabled = enabled; - this.interval = interval; - } + private @Nullable Integer interval; + private LoadBalancerAccessLogs() {} /** * @return The S3 bucket name to store the logs in. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(LoadBalancerAccessLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private @Nullable String bucketPrefix; private @Nullable Boolean enabled; private @Nullable Integer interval; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerAccessLogs defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -101,23 +86,33 @@ public Builder(LoadBalancerAccessLogs defaults) { this.interval = defaults.interval; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; - } public LoadBalancerAccessLogs build() { - return new LoadBalancerAccessLogs(bucket, bucketPrefix, enabled, interval); + } + public LoadBalancerAccessLogs build() { + final var o = new LoadBalancerAccessLogs(); + o.bucket = bucket; + o.bucketPrefix = bucketPrefix; + o.enabled = enabled; + o.interval = interval; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerHealthCheck.java index 7f3bf9b5786..122453ce526 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerHealthCheck.java @@ -14,12 +14,12 @@ public final class LoadBalancerHealthCheck { * @return The number of checks before the instance is declared healthy. * */ - private final Integer healthyThreshold; + private Integer healthyThreshold; /** * @return The interval between checks. * */ - private final Integer interval; + private Integer interval; /** * @return The target of the check. Valid pattern is "${PROTOCOL}:${PORT}${PATH}", where PROTOCOL * values are: @@ -27,32 +27,19 @@ public final class LoadBalancerHealthCheck { * * `TCP`, `SSL` - PORT is required, PATH is not supported * */ - private final String target; + private String target; /** * @return The length of time before the check times out. * */ - private final Integer timeout; + private Integer timeout; /** * @return The number of checks before the instance is declared unhealthy. * */ - private final Integer unhealthyThreshold; - - @CustomType.Constructor - private LoadBalancerHealthCheck( - @CustomType.Parameter("healthyThreshold") Integer healthyThreshold, - @CustomType.Parameter("interval") Integer interval, - @CustomType.Parameter("target") String target, - @CustomType.Parameter("timeout") Integer timeout, - @CustomType.Parameter("unhealthyThreshold") Integer unhealthyThreshold) { - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.target = target; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private Integer unhealthyThreshold; + private LoadBalancerHealthCheck() {} /** * @return The number of checks before the instance is declared healthy. * @@ -99,18 +86,14 @@ public static Builder builder() { public static Builder builder(LoadBalancerHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer healthyThreshold; private Integer interval; private String target; private Integer timeout; private Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerHealthCheck defaults) { Objects.requireNonNull(defaults); this.healthyThreshold = defaults.healthyThreshold; @@ -120,27 +103,39 @@ public Builder(LoadBalancerHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder healthyThreshold(Integer healthyThreshold) { this.healthyThreshold = Objects.requireNonNull(healthyThreshold); return this; } + @CustomType.Setter public Builder interval(Integer interval) { this.interval = Objects.requireNonNull(interval); return this; } + @CustomType.Setter public Builder target(String target) { this.target = Objects.requireNonNull(target); return this; } + @CustomType.Setter public Builder timeout(Integer timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } + @CustomType.Setter public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.unhealthyThreshold = Objects.requireNonNull(unhealthyThreshold); return this; - } public LoadBalancerHealthCheck build() { - return new LoadBalancerHealthCheck(healthyThreshold, interval, target, timeout, unhealthyThreshold); + } + public LoadBalancerHealthCheck build() { + final var o = new LoadBalancerHealthCheck(); + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.target = target; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerListener.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerListener.java index 4350ae4e8b5..a2fdccf0625 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerListener.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerListener.java @@ -16,45 +16,32 @@ public final class LoadBalancerListener { * @return The port on the instance to route to * */ - private final Integer instancePort; + private Integer instancePort; /** * @return The protocol to use to the instance. Valid * values are `HTTP`, `HTTPS`, `TCP`, or `SSL` * */ - private final String instanceProtocol; + private String instanceProtocol; /** * @return The port to listen on for the load balancer * */ - private final Integer lbPort; + private Integer lbPort; /** * @return The protocol to listen on. Valid values are `HTTP`, * `HTTPS`, `TCP`, or `SSL` * */ - private final String lbProtocol; + private String lbProtocol; /** * @return The ARN of an SSL certificate you have * uploaded to AWS IAM. **Note ECDSA-specific restrictions below. Only valid when `lb_protocol` is either HTTPS or SSL** * */ - private final @Nullable String sslCertificateId; - - @CustomType.Constructor - private LoadBalancerListener( - @CustomType.Parameter("instancePort") Integer instancePort, - @CustomType.Parameter("instanceProtocol") String instanceProtocol, - @CustomType.Parameter("lbPort") Integer lbPort, - @CustomType.Parameter("lbProtocol") String lbProtocol, - @CustomType.Parameter("sslCertificateId") @Nullable String sslCertificateId) { - this.instancePort = instancePort; - this.instanceProtocol = instanceProtocol; - this.lbPort = lbPort; - this.lbProtocol = lbProtocol; - this.sslCertificateId = sslCertificateId; - } + private @Nullable String sslCertificateId; + private LoadBalancerListener() {} /** * @return The port on the instance to route to * @@ -101,18 +88,14 @@ public static Builder builder() { public static Builder builder(LoadBalancerListener defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer instancePort; private String instanceProtocol; private Integer lbPort; private String lbProtocol; private @Nullable String sslCertificateId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerListener defaults) { Objects.requireNonNull(defaults); this.instancePort = defaults.instancePort; @@ -122,27 +105,39 @@ public Builder(LoadBalancerListener defaults) { this.sslCertificateId = defaults.sslCertificateId; } + @CustomType.Setter public Builder instancePort(Integer instancePort) { this.instancePort = Objects.requireNonNull(instancePort); return this; } + @CustomType.Setter public Builder instanceProtocol(String instanceProtocol) { this.instanceProtocol = Objects.requireNonNull(instanceProtocol); return this; } + @CustomType.Setter public Builder lbPort(Integer lbPort) { this.lbPort = Objects.requireNonNull(lbPort); return this; } + @CustomType.Setter public Builder lbProtocol(String lbProtocol) { this.lbProtocol = Objects.requireNonNull(lbProtocol); return this; } + @CustomType.Setter public Builder sslCertificateId(@Nullable String sslCertificateId) { this.sslCertificateId = sslCertificateId; return this; - } public LoadBalancerListener build() { - return new LoadBalancerListener(instancePort, instanceProtocol, lbPort, lbProtocol, sslCertificateId); + } + public LoadBalancerListener build() { + final var o = new LoadBalancerListener(); + o.instancePort = instancePort; + o.instanceProtocol = instanceProtocol; + o.lbPort = lbPort; + o.lbProtocol = lbProtocol; + o.sslCertificateId = sslCertificateId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerPolicyPolicyAttribute.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerPolicyPolicyAttribute.java index 000d64ca990..7def7013b63 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerPolicyPolicyAttribute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/LoadBalancerPolicyPolicyAttribute.java @@ -11,17 +11,10 @@ @CustomType public final class LoadBalancerPolicyPolicyAttribute { - private final @Nullable String name; - private final @Nullable String value; - - @CustomType.Constructor - private LoadBalancerPolicyPolicyAttribute( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("value") @Nullable String value) { - this.name = name; - this.value = value; - } + private @Nullable String name; + private @Nullable String value; + private LoadBalancerPolicyPolicyAttribute() {} public Optional name() { return Optional.ofNullable(this.name); } @@ -36,30 +29,32 @@ public static Builder builder() { public static Builder builder(LoadBalancerPolicyPolicyAttribute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerPolicyPolicyAttribute defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public LoadBalancerPolicyPolicyAttribute build() { - return new LoadBalancerPolicyPolicyAttribute(name, value); + } + public LoadBalancerPolicyPolicyAttribute build() { + final var o = new LoadBalancerPolicyPolicyAttribute(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/SslNegotiationPolicyAttribute.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/SslNegotiationPolicyAttribute.java index b9b256dbfaf..87452225c58 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/SslNegotiationPolicyAttribute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancing/outputs/SslNegotiationPolicyAttribute.java @@ -13,21 +13,14 @@ public final class SslNegotiationPolicyAttribute { * @return The name of the attribute * */ - private final String name; + private String name; /** * @return The value of the attribute * */ - private final String value; - - @CustomType.Constructor - private SslNegotiationPolicyAttribute( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private SslNegotiationPolicyAttribute() {} /** * @return The name of the attribute * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(SslNegotiationPolicyAttribute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SslNegotiationPolicyAttribute defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public SslNegotiationPolicyAttribute build() { - return new SslNegotiationPolicyAttribute(name, value); + } + public SslNegotiationPolicyAttribute build() { + final var o = new SslNegotiationPolicyAttribute(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultAction.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultAction.java index d99af0805da..95d9b9d6285 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultAction.java @@ -16,35 +16,16 @@ @CustomType public final class GetListenerDefaultAction { - private final List authenticateCognitos; - private final List authenticateOidcs; - private final List fixedResponses; - private final List forwards; - private final Integer order; - private final List redirects; - private final String targetGroupArn; - private final String type; - - @CustomType.Constructor - private GetListenerDefaultAction( - @CustomType.Parameter("authenticateCognitos") List authenticateCognitos, - @CustomType.Parameter("authenticateOidcs") List authenticateOidcs, - @CustomType.Parameter("fixedResponses") List fixedResponses, - @CustomType.Parameter("forwards") List forwards, - @CustomType.Parameter("order") Integer order, - @CustomType.Parameter("redirects") List redirects, - @CustomType.Parameter("targetGroupArn") String targetGroupArn, - @CustomType.Parameter("type") String type) { - this.authenticateCognitos = authenticateCognitos; - this.authenticateOidcs = authenticateOidcs; - this.fixedResponses = fixedResponses; - this.forwards = forwards; - this.order = order; - this.redirects = redirects; - this.targetGroupArn = targetGroupArn; - this.type = type; - } + private List authenticateCognitos; + private List authenticateOidcs; + private List fixedResponses; + private List forwards; + private Integer order; + private List redirects; + private String targetGroupArn; + private String type; + private GetListenerDefaultAction() {} public List authenticateCognitos() { return this.authenticateCognitos; } @@ -77,7 +58,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List authenticateCognitos; private List authenticateOidcs; @@ -87,11 +68,7 @@ public static final class Builder { private List redirects; private String targetGroupArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultAction defaults) { Objects.requireNonNull(defaults); this.authenticateCognitos = defaults.authenticateCognitos; @@ -104,6 +81,7 @@ public Builder(GetListenerDefaultAction defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder authenticateCognitos(List authenticateCognitos) { this.authenticateCognitos = Objects.requireNonNull(authenticateCognitos); return this; @@ -111,6 +89,7 @@ public Builder authenticateCognitos(List authenticateOidcs) { this.authenticateOidcs = Objects.requireNonNull(authenticateOidcs); return this; @@ -118,6 +97,7 @@ public Builder authenticateOidcs(List public Builder authenticateOidcs(GetListenerDefaultActionAuthenticateOidc... authenticateOidcs) { return authenticateOidcs(List.of(authenticateOidcs)); } + @CustomType.Setter public Builder fixedResponses(List fixedResponses) { this.fixedResponses = Objects.requireNonNull(fixedResponses); return this; @@ -125,6 +105,7 @@ public Builder fixedResponses(List fixedR public Builder fixedResponses(GetListenerDefaultActionFixedResponse... fixedResponses) { return fixedResponses(List.of(fixedResponses)); } + @CustomType.Setter public Builder forwards(List forwards) { this.forwards = Objects.requireNonNull(forwards); return this; @@ -132,10 +113,12 @@ public Builder forwards(List forwards) { public Builder forwards(GetListenerDefaultActionForward... forwards) { return forwards(List.of(forwards)); } + @CustomType.Setter public Builder order(Integer order) { this.order = Objects.requireNonNull(order); return this; } + @CustomType.Setter public Builder redirects(List redirects) { this.redirects = Objects.requireNonNull(redirects); return this; @@ -143,15 +126,27 @@ public Builder redirects(List redirects) { public Builder redirects(GetListenerDefaultActionRedirect... redirects) { return redirects(List.of(redirects)); } + @CustomType.Setter public Builder targetGroupArn(String targetGroupArn) { this.targetGroupArn = Objects.requireNonNull(targetGroupArn); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetListenerDefaultAction build() { - return new GetListenerDefaultAction(authenticateCognitos, authenticateOidcs, fixedResponses, forwards, order, redirects, targetGroupArn, type); + } + public GetListenerDefaultAction build() { + final var o = new GetListenerDefaultAction(); + o.authenticateCognitos = authenticateCognitos; + o.authenticateOidcs = authenticateOidcs; + o.fixedResponses = fixedResponses; + o.forwards = forwards; + o.order = order; + o.redirects = redirects; + o.targetGroupArn = targetGroupArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionAuthenticateCognito.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionAuthenticateCognito.java index 33712dd3a89..611047ce9b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionAuthenticateCognito.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionAuthenticateCognito.java @@ -11,35 +11,16 @@ @CustomType public final class GetListenerDefaultActionAuthenticateCognito { - private final Map authenticationRequestExtraParams; - private final String onUnauthenticatedRequest; - private final String scope; - private final String sessionCookieName; - private final Integer sessionTimeout; - private final String userPoolArn; - private final String userPoolClientId; - private final String userPoolDomain; - - @CustomType.Constructor - private GetListenerDefaultActionAuthenticateCognito( - @CustomType.Parameter("authenticationRequestExtraParams") Map authenticationRequestExtraParams, - @CustomType.Parameter("onUnauthenticatedRequest") String onUnauthenticatedRequest, - @CustomType.Parameter("scope") String scope, - @CustomType.Parameter("sessionCookieName") String sessionCookieName, - @CustomType.Parameter("sessionTimeout") Integer sessionTimeout, - @CustomType.Parameter("userPoolArn") String userPoolArn, - @CustomType.Parameter("userPoolClientId") String userPoolClientId, - @CustomType.Parameter("userPoolDomain") String userPoolDomain) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.userPoolArn = userPoolArn; - this.userPoolClientId = userPoolClientId; - this.userPoolDomain = userPoolDomain; - } + private Map authenticationRequestExtraParams; + private String onUnauthenticatedRequest; + private String scope; + private String sessionCookieName; + private Integer sessionTimeout; + private String userPoolArn; + private String userPoolClientId; + private String userPoolDomain; + private GetListenerDefaultActionAuthenticateCognito() {} public Map authenticationRequestExtraParams() { return this.authenticationRequestExtraParams; } @@ -72,7 +53,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionAuthenticateCognito defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map authenticationRequestExtraParams; private String onUnauthenticatedRequest; @@ -82,11 +63,7 @@ public static final class Builder { private String userPoolArn; private String userPoolClientId; private String userPoolDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionAuthenticateCognito defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -99,39 +76,57 @@ public Builder(GetListenerDefaultActionAuthenticateCognito defaults) { this.userPoolDomain = defaults.userPoolDomain; } + @CustomType.Setter public Builder authenticationRequestExtraParams(Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = Objects.requireNonNull(authenticationRequestExtraParams); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = Objects.requireNonNull(onUnauthenticatedRequest); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; } + @CustomType.Setter public Builder sessionCookieName(String sessionCookieName) { this.sessionCookieName = Objects.requireNonNull(sessionCookieName); return this; } + @CustomType.Setter public Builder sessionTimeout(Integer sessionTimeout) { this.sessionTimeout = Objects.requireNonNull(sessionTimeout); return this; } + @CustomType.Setter public Builder userPoolArn(String userPoolArn) { this.userPoolArn = Objects.requireNonNull(userPoolArn); return this; } + @CustomType.Setter public Builder userPoolClientId(String userPoolClientId) { this.userPoolClientId = Objects.requireNonNull(userPoolClientId); return this; } + @CustomType.Setter public Builder userPoolDomain(String userPoolDomain) { this.userPoolDomain = Objects.requireNonNull(userPoolDomain); return this; - } public GetListenerDefaultActionAuthenticateCognito build() { - return new GetListenerDefaultActionAuthenticateCognito(authenticationRequestExtraParams, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, userPoolArn, userPoolClientId, userPoolDomain); + } + public GetListenerDefaultActionAuthenticateCognito build() { + final var o = new GetListenerDefaultActionAuthenticateCognito(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.userPoolArn = userPoolArn; + o.userPoolClientId = userPoolClientId; + o.userPoolDomain = userPoolDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionAuthenticateOidc.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionAuthenticateOidc.java index cf1d61d6054..54e4f2fc048 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionAuthenticateOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionAuthenticateOidc.java @@ -11,44 +11,19 @@ @CustomType public final class GetListenerDefaultActionAuthenticateOidc { - private final Map authenticationRequestExtraParams; - private final String authorizationEndpoint; - private final String clientId; - private final String clientSecret; - private final String issuer; - private final String onUnauthenticatedRequest; - private final String scope; - private final String sessionCookieName; - private final Integer sessionTimeout; - private final String tokenEndpoint; - private final String userInfoEndpoint; - - @CustomType.Constructor - private GetListenerDefaultActionAuthenticateOidc( - @CustomType.Parameter("authenticationRequestExtraParams") Map authenticationRequestExtraParams, - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("onUnauthenticatedRequest") String onUnauthenticatedRequest, - @CustomType.Parameter("scope") String scope, - @CustomType.Parameter("sessionCookieName") String sessionCookieName, - @CustomType.Parameter("sessionTimeout") Integer sessionTimeout, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private Map authenticationRequestExtraParams; + private String authorizationEndpoint; + private String clientId; + private String clientSecret; + private String issuer; + private String onUnauthenticatedRequest; + private String scope; + private String sessionCookieName; + private Integer sessionTimeout; + private String tokenEndpoint; + private String userInfoEndpoint; + private GetListenerDefaultActionAuthenticateOidc() {} public Map authenticationRequestExtraParams() { return this.authenticationRequestExtraParams; } @@ -90,7 +65,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionAuthenticateOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map authenticationRequestExtraParams; private String authorizationEndpoint; @@ -103,11 +78,7 @@ public static final class Builder { private Integer sessionTimeout; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionAuthenticateOidc defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -123,51 +94,75 @@ public Builder(GetListenerDefaultActionAuthenticateOidc defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authenticationRequestExtraParams(Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = Objects.requireNonNull(authenticationRequestExtraParams); return this; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = Objects.requireNonNull(onUnauthenticatedRequest); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; } + @CustomType.Setter public Builder sessionCookieName(String sessionCookieName) { this.sessionCookieName = Objects.requireNonNull(sessionCookieName); return this; } + @CustomType.Setter public Builder sessionTimeout(Integer sessionTimeout) { this.sessionTimeout = Objects.requireNonNull(sessionTimeout); return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public GetListenerDefaultActionAuthenticateOidc build() { - return new GetListenerDefaultActionAuthenticateOidc(authenticationRequestExtraParams, authorizationEndpoint, clientId, clientSecret, issuer, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, tokenEndpoint, userInfoEndpoint); + } + public GetListenerDefaultActionAuthenticateOidc build() { + final var o = new GetListenerDefaultActionAuthenticateOidc(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionFixedResponse.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionFixedResponse.java index ae7a9661b4f..567f7c3ed57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionFixedResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionFixedResponse.java @@ -9,20 +9,11 @@ @CustomType public final class GetListenerDefaultActionFixedResponse { - private final String contentType; - private final String messageBody; - private final String statusCode; - - @CustomType.Constructor - private GetListenerDefaultActionFixedResponse( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("messageBody") String messageBody, - @CustomType.Parameter("statusCode") String statusCode) { - this.contentType = contentType; - this.messageBody = messageBody; - this.statusCode = statusCode; - } + private String contentType; + private String messageBody; + private String statusCode; + private GetListenerDefaultActionFixedResponse() {} public String contentType() { return this.contentType; } @@ -40,16 +31,12 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionFixedResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private String messageBody; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionFixedResponse defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -57,19 +44,27 @@ public Builder(GetListenerDefaultActionFixedResponse defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder messageBody(String messageBody) { this.messageBody = Objects.requireNonNull(messageBody); return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public GetListenerDefaultActionFixedResponse build() { - return new GetListenerDefaultActionFixedResponse(contentType, messageBody, statusCode); + } + public GetListenerDefaultActionFixedResponse build() { + final var o = new GetListenerDefaultActionFixedResponse(); + o.contentType = contentType; + o.messageBody = messageBody; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionForward.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionForward.java index 43465e98f2f..e8ca8046782 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionForward.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionForward.java @@ -11,17 +11,10 @@ @CustomType public final class GetListenerDefaultActionForward { - private final List stickinesses; - private final List targetGroups; - - @CustomType.Constructor - private GetListenerDefaultActionForward( - @CustomType.Parameter("stickinesses") List stickinesses, - @CustomType.Parameter("targetGroups") List targetGroups) { - this.stickinesses = stickinesses; - this.targetGroups = targetGroups; - } + private List stickinesses; + private List targetGroups; + private GetListenerDefaultActionForward() {} public List stickinesses() { return this.stickinesses; } @@ -36,21 +29,18 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionForward defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List stickinesses; private List targetGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionForward defaults) { Objects.requireNonNull(defaults); this.stickinesses = defaults.stickinesses; this.targetGroups = defaults.targetGroups; } + @CustomType.Setter public Builder stickinesses(List stickinesses) { this.stickinesses = Objects.requireNonNull(stickinesses); return this; @@ -58,14 +48,19 @@ public Builder stickinesses(List stic public Builder stickinesses(GetListenerDefaultActionForwardStickiness... stickinesses) { return stickinesses(List.of(stickinesses)); } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; } public Builder targetGroups(GetListenerDefaultActionForwardTargetGroup... targetGroups) { return targetGroups(List.of(targetGroups)); - } public GetListenerDefaultActionForward build() { - return new GetListenerDefaultActionForward(stickinesses, targetGroups); + } + public GetListenerDefaultActionForward build() { + final var o = new GetListenerDefaultActionForward(); + o.stickinesses = stickinesses; + o.targetGroups = targetGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionForwardStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionForwardStickiness.java index f09813affe9..30339121279 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionForwardStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionForwardStickiness.java @@ -10,17 +10,10 @@ @CustomType public final class GetListenerDefaultActionForwardStickiness { - private final Integer duration; - private final Boolean enabled; - - @CustomType.Constructor - private GetListenerDefaultActionForwardStickiness( - @CustomType.Parameter("duration") Integer duration, - @CustomType.Parameter("enabled") Boolean enabled) { - this.duration = duration; - this.enabled = enabled; - } + private Integer duration; + private Boolean enabled; + private GetListenerDefaultActionForwardStickiness() {} public Integer duration() { return this.duration; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionForwardStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer duration; private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionForwardStickiness defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder duration(Integer duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public GetListenerDefaultActionForwardStickiness build() { - return new GetListenerDefaultActionForwardStickiness(duration, enabled); + } + public GetListenerDefaultActionForwardStickiness build() { + final var o = new GetListenerDefaultActionForwardStickiness(); + o.duration = duration; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionForwardTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionForwardTargetGroup.java index 0e3a3efc0e1..209bbe34d5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionForwardTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionForwardTargetGroup.java @@ -14,17 +14,10 @@ public final class GetListenerDefaultActionForwardTargetGroup { * @return ARN of the listener. Required if `load_balancer_arn` and `port` is not set. * */ - private final String arn; - private final Integer weight; - - @CustomType.Constructor - private GetListenerDefaultActionForwardTargetGroup( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("weight") Integer weight) { - this.arn = arn; - this.weight = weight; - } + private String arn; + private Integer weight; + private GetListenerDefaultActionForwardTargetGroup() {} /** * @return ARN of the listener. Required if `load_balancer_arn` and `port` is not set. * @@ -43,30 +36,32 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionForwardTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionForwardTargetGroup defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.weight = defaults.weight; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder weight(Integer weight) { this.weight = Objects.requireNonNull(weight); return this; - } public GetListenerDefaultActionForwardTargetGroup build() { - return new GetListenerDefaultActionForwardTargetGroup(arn, weight); + } + public GetListenerDefaultActionForwardTargetGroup build() { + final var o = new GetListenerDefaultActionForwardTargetGroup(); + o.arn = arn; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionRedirect.java index 24422e015f6..2a24352ebe8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerDefaultActionRedirect.java @@ -9,33 +9,18 @@ @CustomType public final class GetListenerDefaultActionRedirect { - private final String host; - private final String path; + private String host; + private String path; /** * @return Port of the listener. Required if `arn` is not set. * */ - private final String port; - private final String protocol; - private final String query; - private final String statusCode; - - @CustomType.Constructor - private GetListenerDefaultActionRedirect( - @CustomType.Parameter("host") String host, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("port") String port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("query") String query, - @CustomType.Parameter("statusCode") String statusCode) { - this.host = host; - this.path = path; - this.port = port; - this.protocol = protocol; - this.query = query; - this.statusCode = statusCode; - } + private String port; + private String protocol; + private String query; + private String statusCode; + private GetListenerDefaultActionRedirect() {} public String host() { return this.host; } @@ -66,7 +51,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String host; private String path; @@ -74,11 +59,7 @@ public static final class Builder { private String protocol; private String query; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionRedirect defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -89,31 +70,45 @@ public Builder(GetListenerDefaultActionRedirect defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder port(String port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder query(String query) { this.query = Objects.requireNonNull(query); return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public GetListenerDefaultActionRedirect build() { - return new GetListenerDefaultActionRedirect(host, path, port, protocol, query, statusCode); + } + public GetListenerDefaultActionRedirect build() { + final var o = new GetListenerDefaultActionRedirect(); + o.host = host; + o.path = path; + o.port = port; + o.protocol = protocol; + o.query = query; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerResult.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerResult.java index 4816446a218..5bb503b31a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetListenerResult.java @@ -13,45 +13,22 @@ @CustomType public final class GetListenerResult { - private final String alpnPolicy; - private final String arn; - private final String certificateArn; - private final List defaultActions; + private String alpnPolicy; + private String arn; + private String certificateArn; + private List defaultActions; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String loadBalancerArn; - private final Integer port; - private final String protocol; - private final String sslPolicy; - private final Map tags; - - @CustomType.Constructor - private GetListenerResult( - @CustomType.Parameter("alpnPolicy") String alpnPolicy, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("certificateArn") String certificateArn, - @CustomType.Parameter("defaultActions") List defaultActions, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("loadBalancerArn") String loadBalancerArn, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("sslPolicy") String sslPolicy, - @CustomType.Parameter("tags") Map tags) { - this.alpnPolicy = alpnPolicy; - this.arn = arn; - this.certificateArn = certificateArn; - this.defaultActions = defaultActions; - this.id = id; - this.loadBalancerArn = loadBalancerArn; - this.port = port; - this.protocol = protocol; - this.sslPolicy = sslPolicy; - this.tags = tags; - } + private String id; + private String loadBalancerArn; + private Integer port; + private String protocol; + private String sslPolicy; + private Map tags; + private GetListenerResult() {} public String alpnPolicy() { return this.alpnPolicy; } @@ -94,7 +71,7 @@ public static Builder builder() { public static Builder builder(GetListenerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String alpnPolicy; private String arn; @@ -106,11 +83,7 @@ public static final class Builder { private String protocol; private String sslPolicy; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerResult defaults) { Objects.requireNonNull(defaults); this.alpnPolicy = defaults.alpnPolicy; @@ -125,18 +98,22 @@ public Builder(GetListenerResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder alpnPolicy(String alpnPolicy) { this.alpnPolicy = Objects.requireNonNull(alpnPolicy); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder certificateArn(String certificateArn) { this.certificateArn = Objects.requireNonNull(certificateArn); return this; } + @CustomType.Setter public Builder defaultActions(List defaultActions) { this.defaultActions = Objects.requireNonNull(defaultActions); return this; @@ -144,31 +121,49 @@ public Builder defaultActions(List defaultActions) { public Builder defaultActions(GetListenerDefaultAction... defaultActions) { return defaultActions(List.of(defaultActions)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder loadBalancerArn(String loadBalancerArn) { this.loadBalancerArn = Objects.requireNonNull(loadBalancerArn); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder sslPolicy(String sslPolicy) { this.sslPolicy = Objects.requireNonNull(sslPolicy); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetListenerResult build() { - return new GetListenerResult(alpnPolicy, arn, certificateArn, defaultActions, id, loadBalancerArn, port, protocol, sslPolicy, tags); + } + public GetListenerResult build() { + final var o = new GetListenerResult(); + o.alpnPolicy = alpnPolicy; + o.arn = arn; + o.certificateArn = certificateArn; + o.defaultActions = defaultActions; + o.id = id; + o.loadBalancerArn = loadBalancerArn; + o.port = port; + o.protocol = protocol; + o.sslPolicy = sslPolicy; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetLoadBalancerAccessLogs.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetLoadBalancerAccessLogs.java index 8aec286eab3..64873cc618c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetLoadBalancerAccessLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetLoadBalancerAccessLogs.java @@ -10,20 +10,11 @@ @CustomType public final class GetLoadBalancerAccessLogs { - private final String bucket; - private final Boolean enabled; - private final String prefix; - - @CustomType.Constructor - private GetLoadBalancerAccessLogs( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("prefix") String prefix) { - this.bucket = bucket; - this.enabled = enabled; - this.prefix = prefix; - } + private String bucket; + private Boolean enabled; + private String prefix; + private GetLoadBalancerAccessLogs() {} public String bucket() { return this.bucket; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerAccessLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private Boolean enabled; private String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerAccessLogs defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -58,19 +45,27 @@ public Builder(GetLoadBalancerAccessLogs defaults) { this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder prefix(String prefix) { this.prefix = Objects.requireNonNull(prefix); return this; - } public GetLoadBalancerAccessLogs build() { - return new GetLoadBalancerAccessLogs(bucket, enabled, prefix); + } + public GetLoadBalancerAccessLogs build() { + final var o = new GetLoadBalancerAccessLogs(); + o.bucket = bucket; + o.enabled = enabled; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetLoadBalancerResult.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetLoadBalancerResult.java index f6808da1dc5..1e7f863e3c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetLoadBalancerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetLoadBalancerResult.java @@ -15,84 +15,35 @@ @CustomType public final class GetLoadBalancerResult { - private final GetLoadBalancerAccessLogs accessLogs; - private final String arn; - private final String arnSuffix; - private final String customerOwnedIpv4Pool; - private final String desyncMitigationMode; - private final String dnsName; - private final Boolean dropInvalidHeaderFields; - private final Boolean enableDeletionProtection; - private final Boolean enableHttp2; - private final Boolean enableWafFailOpen; + private GetLoadBalancerAccessLogs accessLogs; + private String arn; + private String arnSuffix; + private String customerOwnedIpv4Pool; + private String desyncMitigationMode; + private String dnsName; + private Boolean dropInvalidHeaderFields; + private Boolean enableDeletionProtection; + private Boolean enableHttp2; + private Boolean enableWafFailOpen; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final Integer idleTimeout; - private final Boolean internal; - private final String ipAddressType; - private final String loadBalancerType; - private final String name; - private final Boolean preserveHostHeader; - private final List securityGroups; - private final List subnetMappings; - private final List subnets; - private final Map tags; - private final String vpcId; - private final String zoneId; - - @CustomType.Constructor - private GetLoadBalancerResult( - @CustomType.Parameter("accessLogs") GetLoadBalancerAccessLogs accessLogs, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("arnSuffix") String arnSuffix, - @CustomType.Parameter("customerOwnedIpv4Pool") String customerOwnedIpv4Pool, - @CustomType.Parameter("desyncMitigationMode") String desyncMitigationMode, - @CustomType.Parameter("dnsName") String dnsName, - @CustomType.Parameter("dropInvalidHeaderFields") Boolean dropInvalidHeaderFields, - @CustomType.Parameter("enableDeletionProtection") Boolean enableDeletionProtection, - @CustomType.Parameter("enableHttp2") Boolean enableHttp2, - @CustomType.Parameter("enableWafFailOpen") Boolean enableWafFailOpen, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("idleTimeout") Integer idleTimeout, - @CustomType.Parameter("internal") Boolean internal, - @CustomType.Parameter("ipAddressType") String ipAddressType, - @CustomType.Parameter("loadBalancerType") String loadBalancerType, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("preserveHostHeader") Boolean preserveHostHeader, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("subnetMappings") List subnetMappings, - @CustomType.Parameter("subnets") List subnets, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId, - @CustomType.Parameter("zoneId") String zoneId) { - this.accessLogs = accessLogs; - this.arn = arn; - this.arnSuffix = arnSuffix; - this.customerOwnedIpv4Pool = customerOwnedIpv4Pool; - this.desyncMitigationMode = desyncMitigationMode; - this.dnsName = dnsName; - this.dropInvalidHeaderFields = dropInvalidHeaderFields; - this.enableDeletionProtection = enableDeletionProtection; - this.enableHttp2 = enableHttp2; - this.enableWafFailOpen = enableWafFailOpen; - this.id = id; - this.idleTimeout = idleTimeout; - this.internal = internal; - this.ipAddressType = ipAddressType; - this.loadBalancerType = loadBalancerType; - this.name = name; - this.preserveHostHeader = preserveHostHeader; - this.securityGroups = securityGroups; - this.subnetMappings = subnetMappings; - this.subnets = subnets; - this.tags = tags; - this.vpcId = vpcId; - this.zoneId = zoneId; - } + private String id; + private Integer idleTimeout; + private Boolean internal; + private String ipAddressType; + private String loadBalancerType; + private String name; + private Boolean preserveHostHeader; + private List securityGroups; + private List subnetMappings; + private List subnets; + private Map tags; + private String vpcId; + private String zoneId; + private GetLoadBalancerResult() {} public GetLoadBalancerAccessLogs accessLogs() { return this.accessLogs; } @@ -174,7 +125,7 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GetLoadBalancerAccessLogs accessLogs; private String arn; @@ -199,11 +150,7 @@ public static final class Builder { private Map tags; private String vpcId; private String zoneId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerResult defaults) { Objects.requireNonNull(defaults); this.accessLogs = defaults.accessLogs; @@ -231,74 +178,92 @@ public Builder(GetLoadBalancerResult defaults) { this.zoneId = defaults.zoneId; } + @CustomType.Setter public Builder accessLogs(GetLoadBalancerAccessLogs accessLogs) { this.accessLogs = Objects.requireNonNull(accessLogs); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder arnSuffix(String arnSuffix) { this.arnSuffix = Objects.requireNonNull(arnSuffix); return this; } + @CustomType.Setter public Builder customerOwnedIpv4Pool(String customerOwnedIpv4Pool) { this.customerOwnedIpv4Pool = Objects.requireNonNull(customerOwnedIpv4Pool); return this; } + @CustomType.Setter public Builder desyncMitigationMode(String desyncMitigationMode) { this.desyncMitigationMode = Objects.requireNonNull(desyncMitigationMode); return this; } + @CustomType.Setter public Builder dnsName(String dnsName) { this.dnsName = Objects.requireNonNull(dnsName); return this; } + @CustomType.Setter public Builder dropInvalidHeaderFields(Boolean dropInvalidHeaderFields) { this.dropInvalidHeaderFields = Objects.requireNonNull(dropInvalidHeaderFields); return this; } + @CustomType.Setter public Builder enableDeletionProtection(Boolean enableDeletionProtection) { this.enableDeletionProtection = Objects.requireNonNull(enableDeletionProtection); return this; } + @CustomType.Setter public Builder enableHttp2(Boolean enableHttp2) { this.enableHttp2 = Objects.requireNonNull(enableHttp2); return this; } + @CustomType.Setter public Builder enableWafFailOpen(Boolean enableWafFailOpen) { this.enableWafFailOpen = Objects.requireNonNull(enableWafFailOpen); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder idleTimeout(Integer idleTimeout) { this.idleTimeout = Objects.requireNonNull(idleTimeout); return this; } + @CustomType.Setter public Builder internal(Boolean internal) { this.internal = Objects.requireNonNull(internal); return this; } + @CustomType.Setter public Builder ipAddressType(String ipAddressType) { this.ipAddressType = Objects.requireNonNull(ipAddressType); return this; } + @CustomType.Setter public Builder loadBalancerType(String loadBalancerType) { this.loadBalancerType = Objects.requireNonNull(loadBalancerType); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder preserveHostHeader(Boolean preserveHostHeader) { this.preserveHostHeader = Objects.requireNonNull(preserveHostHeader); return this; } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -306,6 +271,7 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnetMappings(List subnetMappings) { this.subnetMappings = Objects.requireNonNull(subnetMappings); return this; @@ -313,6 +279,7 @@ public Builder subnetMappings(List subnetMappings) public Builder subnetMappings(GetLoadBalancerSubnetMapping... subnetMappings) { return subnetMappings(List.of(subnetMappings)); } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; @@ -320,19 +287,47 @@ public Builder subnets(List subnets) { public Builder subnets(String... subnets) { return subnets(List.of(subnets)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; } + @CustomType.Setter public Builder zoneId(String zoneId) { this.zoneId = Objects.requireNonNull(zoneId); return this; - } public GetLoadBalancerResult build() { - return new GetLoadBalancerResult(accessLogs, arn, arnSuffix, customerOwnedIpv4Pool, desyncMitigationMode, dnsName, dropInvalidHeaderFields, enableDeletionProtection, enableHttp2, enableWafFailOpen, id, idleTimeout, internal, ipAddressType, loadBalancerType, name, preserveHostHeader, securityGroups, subnetMappings, subnets, tags, vpcId, zoneId); + } + public GetLoadBalancerResult build() { + final var o = new GetLoadBalancerResult(); + o.accessLogs = accessLogs; + o.arn = arn; + o.arnSuffix = arnSuffix; + o.customerOwnedIpv4Pool = customerOwnedIpv4Pool; + o.desyncMitigationMode = desyncMitigationMode; + o.dnsName = dnsName; + o.dropInvalidHeaderFields = dropInvalidHeaderFields; + o.enableDeletionProtection = enableDeletionProtection; + o.enableHttp2 = enableHttp2; + o.enableWafFailOpen = enableWafFailOpen; + o.id = id; + o.idleTimeout = idleTimeout; + o.internal = internal; + o.ipAddressType = ipAddressType; + o.loadBalancerType = loadBalancerType; + o.name = name; + o.preserveHostHeader = preserveHostHeader; + o.securityGroups = securityGroups; + o.subnetMappings = subnetMappings; + o.subnets = subnets; + o.tags = tags; + o.vpcId = vpcId; + o.zoneId = zoneId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetLoadBalancerSubnetMapping.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetLoadBalancerSubnetMapping.java index 3e254eda018..17875503364 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetLoadBalancerSubnetMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetLoadBalancerSubnetMapping.java @@ -9,26 +9,13 @@ @CustomType public final class GetLoadBalancerSubnetMapping { - private final String allocationId; - private final String ipv6Address; - private final String outpostId; - private final String privateIpv4Address; - private final String subnetId; - - @CustomType.Constructor - private GetLoadBalancerSubnetMapping( - @CustomType.Parameter("allocationId") String allocationId, - @CustomType.Parameter("ipv6Address") String ipv6Address, - @CustomType.Parameter("outpostId") String outpostId, - @CustomType.Parameter("privateIpv4Address") String privateIpv4Address, - @CustomType.Parameter("subnetId") String subnetId) { - this.allocationId = allocationId; - this.ipv6Address = ipv6Address; - this.outpostId = outpostId; - this.privateIpv4Address = privateIpv4Address; - this.subnetId = subnetId; - } + private String allocationId; + private String ipv6Address; + private String outpostId; + private String privateIpv4Address; + private String subnetId; + private GetLoadBalancerSubnetMapping() {} public String allocationId() { return this.allocationId; } @@ -52,18 +39,14 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerSubnetMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String allocationId; private String ipv6Address; private String outpostId; private String privateIpv4Address; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerSubnetMapping defaults) { Objects.requireNonNull(defaults); this.allocationId = defaults.allocationId; @@ -73,27 +56,39 @@ public Builder(GetLoadBalancerSubnetMapping defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder allocationId(String allocationId) { this.allocationId = Objects.requireNonNull(allocationId); return this; } + @CustomType.Setter public Builder ipv6Address(String ipv6Address) { this.ipv6Address = Objects.requireNonNull(ipv6Address); return this; } + @CustomType.Setter public Builder outpostId(String outpostId) { this.outpostId = Objects.requireNonNull(outpostId); return this; } + @CustomType.Setter public Builder privateIpv4Address(String privateIpv4Address) { this.privateIpv4Address = Objects.requireNonNull(privateIpv4Address); return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public GetLoadBalancerSubnetMapping build() { - return new GetLoadBalancerSubnetMapping(allocationId, ipv6Address, outpostId, privateIpv4Address, subnetId); + } + public GetLoadBalancerSubnetMapping build() { + final var o = new GetLoadBalancerSubnetMapping(); + o.allocationId = allocationId; + o.ipv6Address = ipv6Address; + o.outpostId = outpostId; + o.privateIpv4Address = privateIpv4Address; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetTargetGroupHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetTargetGroupHealthCheck.java index c3a7008e46d..4a865810cc5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetTargetGroupHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetTargetGroupHealthCheck.java @@ -11,38 +11,17 @@ @CustomType public final class GetTargetGroupHealthCheck { - private final Boolean enabled; - private final Integer healthyThreshold; - private final Integer interval; - private final String matcher; - private final String path; - private final String port; - private final String protocol; - private final Integer timeout; - private final Integer unhealthyThreshold; - - @CustomType.Constructor - private GetTargetGroupHealthCheck( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("healthyThreshold") Integer healthyThreshold, - @CustomType.Parameter("interval") Integer interval, - @CustomType.Parameter("matcher") String matcher, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("port") String port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("timeout") Integer timeout, - @CustomType.Parameter("unhealthyThreshold") Integer unhealthyThreshold) { - this.enabled = enabled; - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.matcher = matcher; - this.path = path; - this.port = port; - this.protocol = protocol; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private Boolean enabled; + private Integer healthyThreshold; + private Integer interval; + private String matcher; + private String path; + private String port; + private String protocol; + private Integer timeout; + private Integer unhealthyThreshold; + private GetTargetGroupHealthCheck() {} public Boolean enabled() { return this.enabled; } @@ -78,7 +57,7 @@ public static Builder builder() { public static Builder builder(GetTargetGroupHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private Integer healthyThreshold; @@ -89,11 +68,7 @@ public static final class Builder { private String protocol; private Integer timeout; private Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTargetGroupHealthCheck defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; @@ -107,43 +82,63 @@ public Builder(GetTargetGroupHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder healthyThreshold(Integer healthyThreshold) { this.healthyThreshold = Objects.requireNonNull(healthyThreshold); return this; } + @CustomType.Setter public Builder interval(Integer interval) { this.interval = Objects.requireNonNull(interval); return this; } + @CustomType.Setter public Builder matcher(String matcher) { this.matcher = Objects.requireNonNull(matcher); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder port(String port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder timeout(Integer timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } + @CustomType.Setter public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.unhealthyThreshold = Objects.requireNonNull(unhealthyThreshold); return this; - } public GetTargetGroupHealthCheck build() { - return new GetTargetGroupHealthCheck(enabled, healthyThreshold, interval, matcher, path, port, protocol, timeout, unhealthyThreshold); + } + public GetTargetGroupHealthCheck build() { + final var o = new GetTargetGroupHealthCheck(); + o.enabled = enabled; + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.matcher = matcher; + o.path = path; + o.port = port; + o.protocol = protocol; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetTargetGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetTargetGroupResult.java index 6c812ab945c..4acd52a482d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetTargetGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetTargetGroupResult.java @@ -14,72 +14,31 @@ @CustomType public final class GetTargetGroupResult { - private final String arn; - private final String arnSuffix; - private final Boolean connectionTermination; - private final Integer deregistrationDelay; - private final GetTargetGroupHealthCheck healthCheck; + private String arn; + private String arnSuffix; + private Boolean connectionTermination; + private Integer deregistrationDelay; + private GetTargetGroupHealthCheck healthCheck; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final Boolean lambdaMultiValueHeadersEnabled; - private final String loadBalancingAlgorithmType; - private final String name; - private final Integer port; - private final String preserveClientIp; - private final String protocol; - private final String protocolVersion; - private final Boolean proxyProtocolV2; - private final Integer slowStart; - private final GetTargetGroupStickiness stickiness; - private final Map tags; - private final String targetType; - private final String vpcId; - - @CustomType.Constructor - private GetTargetGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("arnSuffix") String arnSuffix, - @CustomType.Parameter("connectionTermination") Boolean connectionTermination, - @CustomType.Parameter("deregistrationDelay") Integer deregistrationDelay, - @CustomType.Parameter("healthCheck") GetTargetGroupHealthCheck healthCheck, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lambdaMultiValueHeadersEnabled") Boolean lambdaMultiValueHeadersEnabled, - @CustomType.Parameter("loadBalancingAlgorithmType") String loadBalancingAlgorithmType, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("preserveClientIp") String preserveClientIp, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("protocolVersion") String protocolVersion, - @CustomType.Parameter("proxyProtocolV2") Boolean proxyProtocolV2, - @CustomType.Parameter("slowStart") Integer slowStart, - @CustomType.Parameter("stickiness") GetTargetGroupStickiness stickiness, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("targetType") String targetType, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.arnSuffix = arnSuffix; - this.connectionTermination = connectionTermination; - this.deregistrationDelay = deregistrationDelay; - this.healthCheck = healthCheck; - this.id = id; - this.lambdaMultiValueHeadersEnabled = lambdaMultiValueHeadersEnabled; - this.loadBalancingAlgorithmType = loadBalancingAlgorithmType; - this.name = name; - this.port = port; - this.preserveClientIp = preserveClientIp; - this.protocol = protocol; - this.protocolVersion = protocolVersion; - this.proxyProtocolV2 = proxyProtocolV2; - this.slowStart = slowStart; - this.stickiness = stickiness; - this.tags = tags; - this.targetType = targetType; - this.vpcId = vpcId; - } + private String id; + private Boolean lambdaMultiValueHeadersEnabled; + private String loadBalancingAlgorithmType; + private String name; + private Integer port; + private String preserveClientIp; + private String protocol; + private String protocolVersion; + private Boolean proxyProtocolV2; + private Integer slowStart; + private GetTargetGroupStickiness stickiness; + private Map tags; + private String targetType; + private String vpcId; + private GetTargetGroupResult() {} public String arn() { return this.arn; } @@ -149,7 +108,7 @@ public static Builder builder() { public static Builder builder(GetTargetGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String arnSuffix; @@ -170,11 +129,7 @@ public static final class Builder { private Map tags; private String targetType; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTargetGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -198,83 +153,123 @@ public Builder(GetTargetGroupResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder arnSuffix(String arnSuffix) { this.arnSuffix = Objects.requireNonNull(arnSuffix); return this; } + @CustomType.Setter public Builder connectionTermination(Boolean connectionTermination) { this.connectionTermination = Objects.requireNonNull(connectionTermination); return this; } + @CustomType.Setter public Builder deregistrationDelay(Integer deregistrationDelay) { this.deregistrationDelay = Objects.requireNonNull(deregistrationDelay); return this; } + @CustomType.Setter public Builder healthCheck(GetTargetGroupHealthCheck healthCheck) { this.healthCheck = Objects.requireNonNull(healthCheck); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lambdaMultiValueHeadersEnabled(Boolean lambdaMultiValueHeadersEnabled) { this.lambdaMultiValueHeadersEnabled = Objects.requireNonNull(lambdaMultiValueHeadersEnabled); return this; } + @CustomType.Setter public Builder loadBalancingAlgorithmType(String loadBalancingAlgorithmType) { this.loadBalancingAlgorithmType = Objects.requireNonNull(loadBalancingAlgorithmType); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder preserveClientIp(String preserveClientIp) { this.preserveClientIp = Objects.requireNonNull(preserveClientIp); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder protocolVersion(String protocolVersion) { this.protocolVersion = Objects.requireNonNull(protocolVersion); return this; } + @CustomType.Setter public Builder proxyProtocolV2(Boolean proxyProtocolV2) { this.proxyProtocolV2 = Objects.requireNonNull(proxyProtocolV2); return this; } + @CustomType.Setter public Builder slowStart(Integer slowStart) { this.slowStart = Objects.requireNonNull(slowStart); return this; } + @CustomType.Setter public Builder stickiness(GetTargetGroupStickiness stickiness) { this.stickiness = Objects.requireNonNull(stickiness); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder targetType(String targetType) { this.targetType = Objects.requireNonNull(targetType); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetTargetGroupResult build() { - return new GetTargetGroupResult(arn, arnSuffix, connectionTermination, deregistrationDelay, healthCheck, id, lambdaMultiValueHeadersEnabled, loadBalancingAlgorithmType, name, port, preserveClientIp, protocol, protocolVersion, proxyProtocolV2, slowStart, stickiness, tags, targetType, vpcId); + } + public GetTargetGroupResult build() { + final var o = new GetTargetGroupResult(); + o.arn = arn; + o.arnSuffix = arnSuffix; + o.connectionTermination = connectionTermination; + o.deregistrationDelay = deregistrationDelay; + o.healthCheck = healthCheck; + o.id = id; + o.lambdaMultiValueHeadersEnabled = lambdaMultiValueHeadersEnabled; + o.loadBalancingAlgorithmType = loadBalancingAlgorithmType; + o.name = name; + o.port = port; + o.preserveClientIp = preserveClientIp; + o.protocol = protocol; + o.protocolVersion = protocolVersion; + o.proxyProtocolV2 = proxyProtocolV2; + o.slowStart = slowStart; + o.stickiness = stickiness; + o.tags = tags; + o.targetType = targetType; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetTargetGroupStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetTargetGroupStickiness.java index 677fad68170..30e8da26a4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetTargetGroupStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/GetTargetGroupStickiness.java @@ -11,23 +11,12 @@ @CustomType public final class GetTargetGroupStickiness { - private final Integer cookieDuration; - private final String cookieName; - private final Boolean enabled; - private final String type; - - @CustomType.Constructor - private GetTargetGroupStickiness( - @CustomType.Parameter("cookieDuration") Integer cookieDuration, - @CustomType.Parameter("cookieName") String cookieName, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("type") String type) { - this.cookieDuration = cookieDuration; - this.cookieName = cookieName; - this.enabled = enabled; - this.type = type; - } + private Integer cookieDuration; + private String cookieName; + private Boolean enabled; + private String type; + private GetTargetGroupStickiness() {} public Integer cookieDuration() { return this.cookieDuration; } @@ -48,17 +37,13 @@ public static Builder builder() { public static Builder builder(GetTargetGroupStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer cookieDuration; private String cookieName; private Boolean enabled; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTargetGroupStickiness defaults) { Objects.requireNonNull(defaults); this.cookieDuration = defaults.cookieDuration; @@ -67,23 +52,33 @@ public Builder(GetTargetGroupStickiness defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder cookieDuration(Integer cookieDuration) { this.cookieDuration = Objects.requireNonNull(cookieDuration); return this; } + @CustomType.Setter public Builder cookieName(String cookieName) { this.cookieName = Objects.requireNonNull(cookieName); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetTargetGroupStickiness build() { - return new GetTargetGroupStickiness(cookieDuration, cookieName, enabled, type); + } + public GetTargetGroupStickiness build() { + final var o = new GetTargetGroupStickiness(); + o.cookieDuration = cookieDuration; + o.cookieName = cookieName; + o.enabled = enabled; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultAction.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultAction.java index c2230a5efcc..795d038d49a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultAction.java @@ -21,63 +21,44 @@ public final class ListenerDefaultAction { * @return Configuration block for using Amazon Cognito to authenticate users. Specify only when `type` is `authenticate-cognito`. Detailed below. * */ - private final @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito; + private @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito; /** * @return Configuration block for an identity provider that is compliant with OpenID Connect (OIDC). Specify only when `type` is `authenticate-oidc`. Detailed below. * */ - private final @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc; + private @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc; /** * @return Information for creating an action that returns a custom HTTP response. Required if `type` is `fixed-response`. * */ - private final @Nullable ListenerDefaultActionFixedResponse fixedResponse; + private @Nullable ListenerDefaultActionFixedResponse fixedResponse; /** * @return Configuration block for creating an action that distributes requests among one or more target groups. Specify only if `type` is `forward`. If you specify both `forward` block and `target_group_arn` attribute, you can specify only one target group using `forward` and it must be the same target group specified in `target_group_arn`. Detailed below. * */ - private final @Nullable ListenerDefaultActionForward forward; + private @Nullable ListenerDefaultActionForward forward; /** * @return Order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first. Valid values are between `1` and `50000`. * */ - private final @Nullable Integer order; + private @Nullable Integer order; /** * @return Configuration block for creating a redirect action. Required if `type` is `redirect`. Detailed below. * */ - private final @Nullable ListenerDefaultActionRedirect redirect; + private @Nullable ListenerDefaultActionRedirect redirect; /** * @return ARN of the Target Group to which to route traffic. Specify only if `type` is `forward` and you want to route to a single target group. To route to one or more target groups, use a `forward` block instead. * */ - private final @Nullable String targetGroupArn; + private @Nullable String targetGroupArn; /** * @return Type of routing action. Valid values are `forward`, `redirect`, `fixed-response`, `authenticate-cognito` and `authenticate-oidc`. * */ - private final String type; - - @CustomType.Constructor - private ListenerDefaultAction( - @CustomType.Parameter("authenticateCognito") @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito, - @CustomType.Parameter("authenticateOidc") @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc, - @CustomType.Parameter("fixedResponse") @Nullable ListenerDefaultActionFixedResponse fixedResponse, - @CustomType.Parameter("forward") @Nullable ListenerDefaultActionForward forward, - @CustomType.Parameter("order") @Nullable Integer order, - @CustomType.Parameter("redirect") @Nullable ListenerDefaultActionRedirect redirect, - @CustomType.Parameter("targetGroupArn") @Nullable String targetGroupArn, - @CustomType.Parameter("type") String type) { - this.authenticateCognito = authenticateCognito; - this.authenticateOidc = authenticateOidc; - this.fixedResponse = fixedResponse; - this.forward = forward; - this.order = order; - this.redirect = redirect; - this.targetGroupArn = targetGroupArn; - this.type = type; - } + private String type; + private ListenerDefaultAction() {} /** * @return Configuration block for using Amazon Cognito to authenticate users. Specify only when `type` is `authenticate-cognito`. Detailed below. * @@ -142,7 +123,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito; private @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc; @@ -152,11 +133,7 @@ public static final class Builder { private @Nullable ListenerDefaultActionRedirect redirect; private @Nullable String targetGroupArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultAction defaults) { Objects.requireNonNull(defaults); this.authenticateCognito = defaults.authenticateCognito; @@ -169,39 +146,57 @@ public Builder(ListenerDefaultAction defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder authenticateCognito(@Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito) { this.authenticateCognito = authenticateCognito; return this; } + @CustomType.Setter public Builder authenticateOidc(@Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc) { this.authenticateOidc = authenticateOidc; return this; } + @CustomType.Setter public Builder fixedResponse(@Nullable ListenerDefaultActionFixedResponse fixedResponse) { this.fixedResponse = fixedResponse; return this; } + @CustomType.Setter public Builder forward(@Nullable ListenerDefaultActionForward forward) { this.forward = forward; return this; } + @CustomType.Setter public Builder order(@Nullable Integer order) { this.order = order; return this; } + @CustomType.Setter public Builder redirect(@Nullable ListenerDefaultActionRedirect redirect) { this.redirect = redirect; return this; } + @CustomType.Setter public Builder targetGroupArn(@Nullable String targetGroupArn) { this.targetGroupArn = targetGroupArn; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ListenerDefaultAction build() { - return new ListenerDefaultAction(authenticateCognito, authenticateOidc, fixedResponse, forward, order, redirect, targetGroupArn, type); + } + public ListenerDefaultAction build() { + final var o = new ListenerDefaultAction(); + o.authenticateCognito = authenticateCognito; + o.authenticateOidc = authenticateOidc; + o.fixedResponse = fixedResponse; + o.forward = forward; + o.order = order; + o.redirect = redirect; + o.targetGroupArn = targetGroupArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionAuthenticateCognito.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionAuthenticateCognito.java index 2a209e54a9f..641094cc597 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionAuthenticateCognito.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionAuthenticateCognito.java @@ -17,63 +17,44 @@ public final class ListenerDefaultActionAuthenticateCognito { * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return Behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return Set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return Name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return Maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return ARN of the Cognito user pool. * */ - private final String userPoolArn; + private String userPoolArn; /** * @return ID of the Cognito user pool client. * */ - private final String userPoolClientId; + private String userPoolClientId; /** * @return Domain prefix or fully-qualified domain name of the Cognito user pool. * */ - private final String userPoolDomain; - - @CustomType.Constructor - private ListenerDefaultActionAuthenticateCognito( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("userPoolArn") String userPoolArn, - @CustomType.Parameter("userPoolClientId") String userPoolClientId, - @CustomType.Parameter("userPoolDomain") String userPoolDomain) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.userPoolArn = userPoolArn; - this.userPoolClientId = userPoolClientId; - this.userPoolDomain = userPoolDomain; - } + private String userPoolDomain; + private ListenerDefaultActionAuthenticateCognito() {} /** * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -138,7 +119,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionAuthenticateCognito defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private @Nullable String onUnauthenticatedRequest; @@ -148,11 +129,7 @@ public static final class Builder { private String userPoolArn; private String userPoolClientId; private String userPoolDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionAuthenticateCognito defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -165,39 +142,57 @@ public Builder(ListenerDefaultActionAuthenticateCognito defaults) { this.userPoolDomain = defaults.userPoolDomain; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder userPoolArn(String userPoolArn) { this.userPoolArn = Objects.requireNonNull(userPoolArn); return this; } + @CustomType.Setter public Builder userPoolClientId(String userPoolClientId) { this.userPoolClientId = Objects.requireNonNull(userPoolClientId); return this; } + @CustomType.Setter public Builder userPoolDomain(String userPoolDomain) { this.userPoolDomain = Objects.requireNonNull(userPoolDomain); return this; - } public ListenerDefaultActionAuthenticateCognito build() { - return new ListenerDefaultActionAuthenticateCognito(authenticationRequestExtraParams, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, userPoolArn, userPoolClientId, userPoolDomain); + } + public ListenerDefaultActionAuthenticateCognito build() { + final var o = new ListenerDefaultActionAuthenticateCognito(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.userPoolArn = userPoolArn; + o.userPoolClientId = userPoolClientId; + o.userPoolDomain = userPoolDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionAuthenticateOidc.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionAuthenticateOidc.java index 430cac48468..83627cfae9a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionAuthenticateOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionAuthenticateOidc.java @@ -17,84 +17,59 @@ public final class ListenerDefaultActionAuthenticateOidc { * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return Authorization endpoint of the IdP. * */ - private final String authorizationEndpoint; + private String authorizationEndpoint; /** * @return OAuth 2.0 client identifier. * */ - private final String clientId; + private String clientId; /** * @return OAuth 2.0 client secret. * */ - private final String clientSecret; + private String clientSecret; /** * @return OIDC issuer identifier of the IdP. * */ - private final String issuer; + private String issuer; /** * @return Behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return Set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return Name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return Maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return Token endpoint of the IdP. * */ - private final String tokenEndpoint; + private String tokenEndpoint; /** * @return User info endpoint of the IdP. * */ - private final String userInfoEndpoint; - - @CustomType.Constructor - private ListenerDefaultActionAuthenticateOidc( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private String userInfoEndpoint; + private ListenerDefaultActionAuthenticateOidc() {} /** * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -180,7 +155,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionAuthenticateOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private String authorizationEndpoint; @@ -193,11 +168,7 @@ public static final class Builder { private @Nullable Integer sessionTimeout; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionAuthenticateOidc defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -213,51 +184,75 @@ public Builder(ListenerDefaultActionAuthenticateOidc defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public ListenerDefaultActionAuthenticateOidc build() { - return new ListenerDefaultActionAuthenticateOidc(authenticationRequestExtraParams, authorizationEndpoint, clientId, clientSecret, issuer, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, tokenEndpoint, userInfoEndpoint); + } + public ListenerDefaultActionAuthenticateOidc build() { + final var o = new ListenerDefaultActionAuthenticateOidc(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionFixedResponse.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionFixedResponse.java index 406616b5bda..04d5a572009 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionFixedResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionFixedResponse.java @@ -15,28 +15,19 @@ public final class ListenerDefaultActionFixedResponse { * @return Content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * */ - private final String contentType; + private String contentType; /** * @return Message body. * */ - private final @Nullable String messageBody; + private @Nullable String messageBody; /** * @return HTTP redirect code. The redirect is either permanent (`HTTP_301`) or temporary (`HTTP_302`). * */ - private final @Nullable String statusCode; - - @CustomType.Constructor - private ListenerDefaultActionFixedResponse( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("messageBody") @Nullable String messageBody, - @CustomType.Parameter("statusCode") @Nullable String statusCode) { - this.contentType = contentType; - this.messageBody = messageBody; - this.statusCode = statusCode; - } + private @Nullable String statusCode; + private ListenerDefaultActionFixedResponse() {} /** * @return Content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionFixedResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private @Nullable String messageBody; private @Nullable String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionFixedResponse defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -83,19 +70,27 @@ public Builder(ListenerDefaultActionFixedResponse defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder messageBody(@Nullable String messageBody) { this.messageBody = messageBody; return this; } + @CustomType.Setter public Builder statusCode(@Nullable String statusCode) { this.statusCode = statusCode; return this; - } public ListenerDefaultActionFixedResponse build() { - return new ListenerDefaultActionFixedResponse(contentType, messageBody, statusCode); + } + public ListenerDefaultActionFixedResponse build() { + final var o = new ListenerDefaultActionFixedResponse(); + o.contentType = contentType; + o.messageBody = messageBody; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionForward.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionForward.java index c7023531406..8e07e49b8f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionForward.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionForward.java @@ -17,21 +17,14 @@ public final class ListenerDefaultActionForward { * @return Configuration block for target group stickiness for the rule. Detailed below. * */ - private final @Nullable ListenerDefaultActionForwardStickiness stickiness; + private @Nullable ListenerDefaultActionForwardStickiness stickiness; /** * @return Set of 1-5 target group blocks. Detailed below. * */ - private final List targetGroups; - - @CustomType.Constructor - private ListenerDefaultActionForward( - @CustomType.Parameter("stickiness") @Nullable ListenerDefaultActionForwardStickiness stickiness, - @CustomType.Parameter("targetGroups") List targetGroups) { - this.stickiness = stickiness; - this.targetGroups = targetGroups; - } + private List targetGroups; + private ListenerDefaultActionForward() {} /** * @return Configuration block for target group stickiness for the rule. Detailed below. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionForward defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerDefaultActionForwardStickiness stickiness; private List targetGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionForward defaults) { Objects.requireNonNull(defaults); this.stickiness = defaults.stickiness; this.targetGroups = defaults.targetGroups; } + @CustomType.Setter public Builder stickiness(@Nullable ListenerDefaultActionForwardStickiness stickiness) { this.stickiness = stickiness; return this; } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; } public Builder targetGroups(ListenerDefaultActionForwardTargetGroup... targetGroups) { return targetGroups(List.of(targetGroups)); - } public ListenerDefaultActionForward build() { - return new ListenerDefaultActionForward(stickiness, targetGroups); + } + public ListenerDefaultActionForward build() { + final var o = new ListenerDefaultActionForward(); + o.stickiness = stickiness; + o.targetGroups = targetGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionForwardStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionForwardStickiness.java index e10f466d17b..6159834c0fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionForwardStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionForwardStickiness.java @@ -16,21 +16,14 @@ public final class ListenerDefaultActionForwardStickiness { * @return Time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * */ - private final Integer duration; + private Integer duration; /** * @return Whether target group stickiness is enabled. Default is `false`. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private ListenerDefaultActionForwardStickiness( - @CustomType.Parameter("duration") Integer duration, - @CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.duration = duration; - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private ListenerDefaultActionForwardStickiness() {} /** * @return Time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionForwardStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer duration; private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionForwardStickiness defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder duration(Integer duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public ListenerDefaultActionForwardStickiness build() { - return new ListenerDefaultActionForwardStickiness(duration, enabled); + } + public ListenerDefaultActionForwardStickiness build() { + final var o = new ListenerDefaultActionForwardStickiness(); + o.duration = duration; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionForwardTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionForwardTargetGroup.java index 6169efdb65a..09cba088e7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionForwardTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionForwardTargetGroup.java @@ -16,21 +16,14 @@ public final class ListenerDefaultActionForwardTargetGroup { * @return ARN of the target group. * */ - private final String arn; + private String arn; /** * @return Weight. The range is 0 to 999. * */ - private final @Nullable Integer weight; - - @CustomType.Constructor - private ListenerDefaultActionForwardTargetGroup( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("weight") @Nullable Integer weight) { - this.arn = arn; - this.weight = weight; - } + private @Nullable Integer weight; + private ListenerDefaultActionForwardTargetGroup() {} /** * @return ARN of the target group. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionForwardTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionForwardTargetGroup defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.weight = defaults.weight; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder weight(@Nullable Integer weight) { this.weight = weight; return this; - } public ListenerDefaultActionForwardTargetGroup build() { - return new ListenerDefaultActionForwardTargetGroup(arn, weight); + } + public ListenerDefaultActionForwardTargetGroup build() { + final var o = new ListenerDefaultActionForwardTargetGroup(); + o.arn = arn; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionRedirect.java index 141d0737035..68de5f2fa20 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerDefaultActionRedirect.java @@ -15,49 +15,34 @@ public final class ListenerDefaultActionRedirect { * @return Hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * */ - private final @Nullable String host; + private @Nullable String host; /** * @return Absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to `/#{path}`. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return Port. Specify a value from `1` to `65535` or `#{port}`. Defaults to `#{port}`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return Protocol. Valid values are `HTTP`, `HTTPS`, or `#{protocol}`. Defaults to `#{protocol}`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return Query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to `#{query}`. * */ - private final @Nullable String query; + private @Nullable String query; /** * @return HTTP redirect code. The redirect is either permanent (`HTTP_301`) or temporary (`HTTP_302`). * */ - private final String statusCode; - - @CustomType.Constructor - private ListenerDefaultActionRedirect( - @CustomType.Parameter("host") @Nullable String host, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("query") @Nullable String query, - @CustomType.Parameter("statusCode") String statusCode) { - this.host = host; - this.path = path; - this.port = port; - this.protocol = protocol; - this.query = query; - this.statusCode = statusCode; - } + private String statusCode; + private ListenerDefaultActionRedirect() {} /** * @return Hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String host; private @Nullable String path; @@ -116,11 +101,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable String query; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionRedirect defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -131,31 +112,45 @@ public Builder(ListenerDefaultActionRedirect defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder host(@Nullable String host) { this.host = host; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder query(@Nullable String query) { this.query = query; return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public ListenerDefaultActionRedirect build() { - return new ListenerDefaultActionRedirect(host, path, port, protocol, query, statusCode); + } + public ListenerDefaultActionRedirect build() { + final var o = new ListenerDefaultActionRedirect(); + o.host = host; + o.path = path; + o.port = port; + o.protocol = protocol; + o.query = query; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleAction.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleAction.java index 6d457cf1509..6811c18cef4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleAction.java @@ -21,59 +21,40 @@ public final class ListenerRuleAction { * @return Information for creating an authenticate action using Cognito. Required if `type` is `authenticate-cognito`. * */ - private final @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito; + private @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito; /** * @return Information for creating an authenticate action using OIDC. Required if `type` is `authenticate-oidc`. * */ - private final @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc; + private @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc; /** * @return Information for creating an action that returns a custom HTTP response. Required if `type` is `fixed-response`. * */ - private final @Nullable ListenerRuleActionFixedResponse fixedResponse; + private @Nullable ListenerRuleActionFixedResponse fixedResponse; /** * @return Information for creating an action that distributes requests among one or more target groups. Specify only if `type` is `forward`. If you specify both `forward` block and `target_group_arn` attribute, you can specify only one target group using `forward` and it must be the same target group specified in `target_group_arn`. * */ - private final @Nullable ListenerRuleActionForward forward; - private final @Nullable Integer order; + private @Nullable ListenerRuleActionForward forward; + private @Nullable Integer order; /** * @return Information for creating a redirect action. Required if `type` is `redirect`. * */ - private final @Nullable ListenerRuleActionRedirect redirect; + private @Nullable ListenerRuleActionRedirect redirect; /** * @return The ARN of the Target Group to which to route traffic. Specify only if `type` is `forward` and you want to route to a single target group. To route to one or more target groups, use a `forward` block instead. * */ - private final @Nullable String targetGroupArn; + private @Nullable String targetGroupArn; /** * @return The type of routing action. Valid values are `forward`, `redirect`, `fixed-response`, `authenticate-cognito` and `authenticate-oidc`. * */ - private final String type; - - @CustomType.Constructor - private ListenerRuleAction( - @CustomType.Parameter("authenticateCognito") @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito, - @CustomType.Parameter("authenticateOidc") @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc, - @CustomType.Parameter("fixedResponse") @Nullable ListenerRuleActionFixedResponse fixedResponse, - @CustomType.Parameter("forward") @Nullable ListenerRuleActionForward forward, - @CustomType.Parameter("order") @Nullable Integer order, - @CustomType.Parameter("redirect") @Nullable ListenerRuleActionRedirect redirect, - @CustomType.Parameter("targetGroupArn") @Nullable String targetGroupArn, - @CustomType.Parameter("type") String type) { - this.authenticateCognito = authenticateCognito; - this.authenticateOidc = authenticateOidc; - this.fixedResponse = fixedResponse; - this.forward = forward; - this.order = order; - this.redirect = redirect; - this.targetGroupArn = targetGroupArn; - this.type = type; - } + private String type; + private ListenerRuleAction() {} /** * @return Information for creating an authenticate action using Cognito. Required if `type` is `authenticate-cognito`. * @@ -134,7 +115,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito; private @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc; @@ -144,11 +125,7 @@ public static final class Builder { private @Nullable ListenerRuleActionRedirect redirect; private @Nullable String targetGroupArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleAction defaults) { Objects.requireNonNull(defaults); this.authenticateCognito = defaults.authenticateCognito; @@ -161,39 +138,57 @@ public Builder(ListenerRuleAction defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder authenticateCognito(@Nullable ListenerRuleActionAuthenticateCognito authenticateCognito) { this.authenticateCognito = authenticateCognito; return this; } + @CustomType.Setter public Builder authenticateOidc(@Nullable ListenerRuleActionAuthenticateOidc authenticateOidc) { this.authenticateOidc = authenticateOidc; return this; } + @CustomType.Setter public Builder fixedResponse(@Nullable ListenerRuleActionFixedResponse fixedResponse) { this.fixedResponse = fixedResponse; return this; } + @CustomType.Setter public Builder forward(@Nullable ListenerRuleActionForward forward) { this.forward = forward; return this; } + @CustomType.Setter public Builder order(@Nullable Integer order) { this.order = order; return this; } + @CustomType.Setter public Builder redirect(@Nullable ListenerRuleActionRedirect redirect) { this.redirect = redirect; return this; } + @CustomType.Setter public Builder targetGroupArn(@Nullable String targetGroupArn) { this.targetGroupArn = targetGroupArn; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ListenerRuleAction build() { - return new ListenerRuleAction(authenticateCognito, authenticateOidc, fixedResponse, forward, order, redirect, targetGroupArn, type); + } + public ListenerRuleAction build() { + final var o = new ListenerRuleAction(); + o.authenticateCognito = authenticateCognito; + o.authenticateOidc = authenticateOidc; + o.fixedResponse = fixedResponse; + o.forward = forward; + o.order = order; + o.redirect = redirect; + o.targetGroupArn = targetGroupArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionAuthenticateCognito.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionAuthenticateCognito.java index e73a648e04b..0192b39e667 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionAuthenticateCognito.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionAuthenticateCognito.java @@ -17,63 +17,44 @@ public final class ListenerRuleActionAuthenticateCognito { * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return The behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return The set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return The name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return The maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return The ARN of the Cognito user pool. * */ - private final String userPoolArn; + private String userPoolArn; /** * @return The ID of the Cognito user pool client. * */ - private final String userPoolClientId; + private String userPoolClientId; /** * @return The domain prefix or fully-qualified domain name of the Cognito user pool. * */ - private final String userPoolDomain; - - @CustomType.Constructor - private ListenerRuleActionAuthenticateCognito( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("userPoolArn") String userPoolArn, - @CustomType.Parameter("userPoolClientId") String userPoolClientId, - @CustomType.Parameter("userPoolDomain") String userPoolDomain) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.userPoolArn = userPoolArn; - this.userPoolClientId = userPoolClientId; - this.userPoolDomain = userPoolDomain; - } + private String userPoolDomain; + private ListenerRuleActionAuthenticateCognito() {} /** * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -138,7 +119,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionAuthenticateCognito defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private @Nullable String onUnauthenticatedRequest; @@ -148,11 +129,7 @@ public static final class Builder { private String userPoolArn; private String userPoolClientId; private String userPoolDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionAuthenticateCognito defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -165,39 +142,57 @@ public Builder(ListenerRuleActionAuthenticateCognito defaults) { this.userPoolDomain = defaults.userPoolDomain; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder userPoolArn(String userPoolArn) { this.userPoolArn = Objects.requireNonNull(userPoolArn); return this; } + @CustomType.Setter public Builder userPoolClientId(String userPoolClientId) { this.userPoolClientId = Objects.requireNonNull(userPoolClientId); return this; } + @CustomType.Setter public Builder userPoolDomain(String userPoolDomain) { this.userPoolDomain = Objects.requireNonNull(userPoolDomain); return this; - } public ListenerRuleActionAuthenticateCognito build() { - return new ListenerRuleActionAuthenticateCognito(authenticationRequestExtraParams, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, userPoolArn, userPoolClientId, userPoolDomain); + } + public ListenerRuleActionAuthenticateCognito build() { + final var o = new ListenerRuleActionAuthenticateCognito(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.userPoolArn = userPoolArn; + o.userPoolClientId = userPoolClientId; + o.userPoolDomain = userPoolDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionAuthenticateOidc.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionAuthenticateOidc.java index 65890481d21..3191f7e087b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionAuthenticateOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionAuthenticateOidc.java @@ -17,84 +17,59 @@ public final class ListenerRuleActionAuthenticateOidc { * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return The authorization endpoint of the IdP. * */ - private final String authorizationEndpoint; + private String authorizationEndpoint; /** * @return The OAuth 2.0 client identifier. * */ - private final String clientId; + private String clientId; /** * @return The OAuth 2.0 client secret. * */ - private final String clientSecret; + private String clientSecret; /** * @return The OIDC issuer identifier of the IdP. * */ - private final String issuer; + private String issuer; /** * @return The behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return The set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return The name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return The maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return The token endpoint of the IdP. * */ - private final String tokenEndpoint; + private String tokenEndpoint; /** * @return The user info endpoint of the IdP. * */ - private final String userInfoEndpoint; - - @CustomType.Constructor - private ListenerRuleActionAuthenticateOidc( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private String userInfoEndpoint; + private ListenerRuleActionAuthenticateOidc() {} /** * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -180,7 +155,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionAuthenticateOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private String authorizationEndpoint; @@ -193,11 +168,7 @@ public static final class Builder { private @Nullable Integer sessionTimeout; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionAuthenticateOidc defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -213,51 +184,75 @@ public Builder(ListenerRuleActionAuthenticateOidc defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public ListenerRuleActionAuthenticateOidc build() { - return new ListenerRuleActionAuthenticateOidc(authenticationRequestExtraParams, authorizationEndpoint, clientId, clientSecret, issuer, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, tokenEndpoint, userInfoEndpoint); + } + public ListenerRuleActionAuthenticateOidc build() { + final var o = new ListenerRuleActionAuthenticateOidc(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionFixedResponse.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionFixedResponse.java index f972554879e..0a5811489e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionFixedResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionFixedResponse.java @@ -15,28 +15,19 @@ public final class ListenerRuleActionFixedResponse { * @return The content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * */ - private final String contentType; + private String contentType; /** * @return The message body. * */ - private final @Nullable String messageBody; + private @Nullable String messageBody; /** * @return The HTTP response code. Valid values are `2XX`, `4XX`, or `5XX`. * */ - private final @Nullable String statusCode; - - @CustomType.Constructor - private ListenerRuleActionFixedResponse( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("messageBody") @Nullable String messageBody, - @CustomType.Parameter("statusCode") @Nullable String statusCode) { - this.contentType = contentType; - this.messageBody = messageBody; - this.statusCode = statusCode; - } + private @Nullable String statusCode; + private ListenerRuleActionFixedResponse() {} /** * @return The content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionFixedResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private @Nullable String messageBody; private @Nullable String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionFixedResponse defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -83,19 +70,27 @@ public Builder(ListenerRuleActionFixedResponse defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder messageBody(@Nullable String messageBody) { this.messageBody = messageBody; return this; } + @CustomType.Setter public Builder statusCode(@Nullable String statusCode) { this.statusCode = statusCode; return this; - } public ListenerRuleActionFixedResponse build() { - return new ListenerRuleActionFixedResponse(contentType, messageBody, statusCode); + } + public ListenerRuleActionFixedResponse build() { + final var o = new ListenerRuleActionFixedResponse(); + o.contentType = contentType; + o.messageBody = messageBody; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionForward.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionForward.java index ef99ce2b2e3..2d182d514b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionForward.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionForward.java @@ -17,21 +17,14 @@ public final class ListenerRuleActionForward { * @return The target group stickiness for the rule. * */ - private final @Nullable ListenerRuleActionForwardStickiness stickiness; + private @Nullable ListenerRuleActionForwardStickiness stickiness; /** * @return One or more target groups block. * */ - private final List targetGroups; - - @CustomType.Constructor - private ListenerRuleActionForward( - @CustomType.Parameter("stickiness") @Nullable ListenerRuleActionForwardStickiness stickiness, - @CustomType.Parameter("targetGroups") List targetGroups) { - this.stickiness = stickiness; - this.targetGroups = targetGroups; - } + private List targetGroups; + private ListenerRuleActionForward() {} /** * @return The target group stickiness for the rule. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionForward defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerRuleActionForwardStickiness stickiness; private List targetGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionForward defaults) { Objects.requireNonNull(defaults); this.stickiness = defaults.stickiness; this.targetGroups = defaults.targetGroups; } + @CustomType.Setter public Builder stickiness(@Nullable ListenerRuleActionForwardStickiness stickiness) { this.stickiness = stickiness; return this; } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; } public Builder targetGroups(ListenerRuleActionForwardTargetGroup... targetGroups) { return targetGroups(List.of(targetGroups)); - } public ListenerRuleActionForward build() { - return new ListenerRuleActionForward(stickiness, targetGroups); + } + public ListenerRuleActionForward build() { + final var o = new ListenerRuleActionForward(); + o.stickiness = stickiness; + o.targetGroups = targetGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionForwardStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionForwardStickiness.java index 29e081a6a10..bfbd79c1796 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionForwardStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionForwardStickiness.java @@ -16,21 +16,14 @@ public final class ListenerRuleActionForwardStickiness { * @return The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * */ - private final Integer duration; + private Integer duration; /** * @return Indicates whether target group stickiness is enabled. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private ListenerRuleActionForwardStickiness( - @CustomType.Parameter("duration") Integer duration, - @CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.duration = duration; - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private ListenerRuleActionForwardStickiness() {} /** * @return The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionForwardStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer duration; private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionForwardStickiness defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder duration(Integer duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public ListenerRuleActionForwardStickiness build() { - return new ListenerRuleActionForwardStickiness(duration, enabled); + } + public ListenerRuleActionForwardStickiness build() { + final var o = new ListenerRuleActionForwardStickiness(); + o.duration = duration; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionForwardTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionForwardTargetGroup.java index 0bcd818069f..e41b20c6ade 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionForwardTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionForwardTargetGroup.java @@ -16,21 +16,14 @@ public final class ListenerRuleActionForwardTargetGroup { * @return The Amazon Resource Name (ARN) of the target group. * */ - private final String arn; + private String arn; /** * @return The weight. The range is 0 to 999. * */ - private final @Nullable Integer weight; - - @CustomType.Constructor - private ListenerRuleActionForwardTargetGroup( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("weight") @Nullable Integer weight) { - this.arn = arn; - this.weight = weight; - } + private @Nullable Integer weight; + private ListenerRuleActionForwardTargetGroup() {} /** * @return The Amazon Resource Name (ARN) of the target group. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionForwardTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionForwardTargetGroup defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.weight = defaults.weight; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder weight(@Nullable Integer weight) { this.weight = weight; return this; - } public ListenerRuleActionForwardTargetGroup build() { - return new ListenerRuleActionForwardTargetGroup(arn, weight); + } + public ListenerRuleActionForwardTargetGroup build() { + final var o = new ListenerRuleActionForwardTargetGroup(); + o.arn = arn; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionRedirect.java index 2b528deff83..003d48a0541 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleActionRedirect.java @@ -15,49 +15,34 @@ public final class ListenerRuleActionRedirect { * @return The hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * */ - private final @Nullable String host; + private @Nullable String host; /** * @return The absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to `/#{path}`. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return The port. Specify a value from `1` to `65535` or `#{port}`. Defaults to `#{port}`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return The protocol. Valid values are `HTTP`, `HTTPS`, or `#{protocol}`. Defaults to `#{protocol}`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to `#{query}`. * */ - private final @Nullable String query; + private @Nullable String query; /** * @return The HTTP redirect code. The redirect is either permanent (`HTTP_301`) or temporary (`HTTP_302`). * */ - private final String statusCode; - - @CustomType.Constructor - private ListenerRuleActionRedirect( - @CustomType.Parameter("host") @Nullable String host, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("query") @Nullable String query, - @CustomType.Parameter("statusCode") String statusCode) { - this.host = host; - this.path = path; - this.port = port; - this.protocol = protocol; - this.query = query; - this.statusCode = statusCode; - } + private String statusCode; + private ListenerRuleActionRedirect() {} /** * @return The hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String host; private @Nullable String path; @@ -116,11 +101,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable String query; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionRedirect defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -131,31 +112,45 @@ public Builder(ListenerRuleActionRedirect defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder host(@Nullable String host) { this.host = host; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder query(@Nullable String query) { this.query = query; return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public ListenerRuleActionRedirect build() { - return new ListenerRuleActionRedirect(host, path, port, protocol, query, statusCode); + } + public ListenerRuleActionRedirect build() { + final var o = new ListenerRuleActionRedirect(); + o.host = host; + o.path = path; + o.port = port; + o.protocol = protocol; + o.query = query; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleCondition.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleCondition.java index 56abdc28fb8..a68a33b9643 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleCondition.java @@ -21,49 +21,34 @@ public final class ListenerRuleCondition { * @return Contains a single `values` item which is a list of host header patterns to match. The maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. * */ - private final @Nullable ListenerRuleConditionHostHeader hostHeader; + private @Nullable ListenerRuleConditionHostHeader hostHeader; /** * @return HTTP headers to match. HTTP Header block fields documented below. * */ - private final @Nullable ListenerRuleConditionHttpHeader httpHeader; + private @Nullable ListenerRuleConditionHttpHeader httpHeader; /** * @return Contains a single `values` item which is a list of HTTP request methods or verbs to match. Maximum size is 40 characters. Only allowed characters are A-Z, hyphen (-) and underscore (\_). Comparison is case sensitive. Wildcards are not supported. Only one needs to match for the condition to be satisfied. AWS recommends that GET and HEAD requests are routed in the same way because the response to a HEAD request may be cached. * */ - private final @Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod; + private @Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod; /** * @return Contains a single `values` item which is a list of path patterns to match against the request URL. Maximum size of each pattern is 128 characters. Comparison is case sensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. Path pattern is compared only to the path of the URL, not to its query string. To compare against the query string, use a `query_string` condition. * */ - private final @Nullable ListenerRuleConditionPathPattern pathPattern; + private @Nullable ListenerRuleConditionPathPattern pathPattern; /** * @return Query strings to match. Query String block fields documented below. * */ - private final @Nullable List queryStrings; + private @Nullable List queryStrings; /** * @return Contains a single `values` item which is a list of source IP CIDR notations to match. You can use both IPv4 and IPv6 addresses. Wildcards are not supported. Condition is satisfied if the source IP address of the request matches one of the CIDR blocks. Condition is not satisfied by the addresses in the `X-Forwarded-For` header, use `http_header` condition instead. * */ - private final @Nullable ListenerRuleConditionSourceIp sourceIp; - - @CustomType.Constructor - private ListenerRuleCondition( - @CustomType.Parameter("hostHeader") @Nullable ListenerRuleConditionHostHeader hostHeader, - @CustomType.Parameter("httpHeader") @Nullable ListenerRuleConditionHttpHeader httpHeader, - @CustomType.Parameter("httpRequestMethod") @Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod, - @CustomType.Parameter("pathPattern") @Nullable ListenerRuleConditionPathPattern pathPattern, - @CustomType.Parameter("queryStrings") @Nullable List queryStrings, - @CustomType.Parameter("sourceIp") @Nullable ListenerRuleConditionSourceIp sourceIp) { - this.hostHeader = hostHeader; - this.httpHeader = httpHeader; - this.httpRequestMethod = httpRequestMethod; - this.pathPattern = pathPattern; - this.queryStrings = queryStrings; - this.sourceIp = sourceIp; - } + private @Nullable ListenerRuleConditionSourceIp sourceIp; + private ListenerRuleCondition() {} /** * @return Contains a single `values` item which is a list of host header patterns to match. The maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. * @@ -114,7 +99,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerRuleConditionHostHeader hostHeader; private @Nullable ListenerRuleConditionHttpHeader httpHeader; @@ -122,11 +107,7 @@ public static final class Builder { private @Nullable ListenerRuleConditionPathPattern pathPattern; private @Nullable List queryStrings; private @Nullable ListenerRuleConditionSourceIp sourceIp; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleCondition defaults) { Objects.requireNonNull(defaults); this.hostHeader = defaults.hostHeader; @@ -137,22 +118,27 @@ public Builder(ListenerRuleCondition defaults) { this.sourceIp = defaults.sourceIp; } + @CustomType.Setter public Builder hostHeader(@Nullable ListenerRuleConditionHostHeader hostHeader) { this.hostHeader = hostHeader; return this; } + @CustomType.Setter public Builder httpHeader(@Nullable ListenerRuleConditionHttpHeader httpHeader) { this.httpHeader = httpHeader; return this; } + @CustomType.Setter public Builder httpRequestMethod(@Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod) { this.httpRequestMethod = httpRequestMethod; return this; } + @CustomType.Setter public Builder pathPattern(@Nullable ListenerRuleConditionPathPattern pathPattern) { this.pathPattern = pathPattern; return this; } + @CustomType.Setter public Builder queryStrings(@Nullable List queryStrings) { this.queryStrings = queryStrings; return this; @@ -160,11 +146,20 @@ public Builder queryStrings(@Nullable List que public Builder queryStrings(ListenerRuleConditionQueryString... queryStrings) { return queryStrings(List.of(queryStrings)); } + @CustomType.Setter public Builder sourceIp(@Nullable ListenerRuleConditionSourceIp sourceIp) { this.sourceIp = sourceIp; return this; - } public ListenerRuleCondition build() { - return new ListenerRuleCondition(hostHeader, httpHeader, httpRequestMethod, pathPattern, queryStrings, sourceIp); + } + public ListenerRuleCondition build() { + final var o = new ListenerRuleCondition(); + o.hostHeader = hostHeader; + o.httpHeader = httpHeader; + o.httpRequestMethod = httpRequestMethod; + o.pathPattern = pathPattern; + o.queryStrings = queryStrings; + o.sourceIp = sourceIp; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionHostHeader.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionHostHeader.java index e92e386794c..292bd38d1c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionHostHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionHostHeader.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionHostHeader { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionHostHeader(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionHostHeader() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionHostHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionHostHeader defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionHostHeader build() { - return new ListenerRuleConditionHostHeader(values); + } + public ListenerRuleConditionHostHeader build() { + final var o = new ListenerRuleConditionHostHeader(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionHttpHeader.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionHttpHeader.java index 7827bb8b418..934da8ed482 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionHttpHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionHttpHeader.java @@ -14,21 +14,14 @@ public final class ListenerRuleConditionHttpHeader { * @return Name of HTTP header to search. The maximum size is 40 characters. Comparison is case insensitive. Only RFC7240 characters are supported. Wildcards are not supported. You cannot use HTTP header condition to specify the host header, use a `host-header` condition instead. * */ - private final String httpHeaderName; + private String httpHeaderName; /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionHttpHeader( - @CustomType.Parameter("httpHeaderName") String httpHeaderName, - @CustomType.Parameter("values") List values) { - this.httpHeaderName = httpHeaderName; - this.values = values; - } + private List values; + private ListenerRuleConditionHttpHeader() {} /** * @return Name of HTTP header to search. The maximum size is 40 characters. Comparison is case insensitive. Only RFC7240 characters are supported. Wildcards are not supported. You cannot use HTTP header condition to specify the host header, use a `host-header` condition instead. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionHttpHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String httpHeaderName; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionHttpHeader defaults) { Objects.requireNonNull(defaults); this.httpHeaderName = defaults.httpHeaderName; this.values = defaults.values; } + @CustomType.Setter public Builder httpHeaderName(String httpHeaderName) { this.httpHeaderName = Objects.requireNonNull(httpHeaderName); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionHttpHeader build() { - return new ListenerRuleConditionHttpHeader(httpHeaderName, values); + } + public ListenerRuleConditionHttpHeader build() { + final var o = new ListenerRuleConditionHttpHeader(); + o.httpHeaderName = httpHeaderName; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionHttpRequestMethod.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionHttpRequestMethod.java index ae7403964f5..914591056f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionHttpRequestMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionHttpRequestMethod.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionHttpRequestMethod { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionHttpRequestMethod(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionHttpRequestMethod() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionHttpRequestMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionHttpRequestMethod defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionHttpRequestMethod build() { - return new ListenerRuleConditionHttpRequestMethod(values); + } + public ListenerRuleConditionHttpRequestMethod build() { + final var o = new ListenerRuleConditionHttpRequestMethod(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionPathPattern.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionPathPattern.java index 969d373d8f2..629ef3531a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionPathPattern.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionPathPattern.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionPathPattern { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionPathPattern(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionPathPattern() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionPathPattern defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionPathPattern defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionPathPattern build() { - return new ListenerRuleConditionPathPattern(values); + } + public ListenerRuleConditionPathPattern build() { + final var o = new ListenerRuleConditionPathPattern(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionQueryString.java index fc30519b496..2e908968065 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionQueryString.java @@ -15,21 +15,14 @@ public final class ListenerRuleConditionQueryString { * @return Query string key pattern to match. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Query string value pattern to match. * */ - private final String value; - - @CustomType.Constructor - private ListenerRuleConditionQueryString( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private ListenerRuleConditionQueryString() {} /** * @return Query string key pattern to match. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionQueryString defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ListenerRuleConditionQueryString build() { - return new ListenerRuleConditionQueryString(key, value); + } + public ListenerRuleConditionQueryString build() { + final var o = new ListenerRuleConditionQueryString(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionSourceIp.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionSourceIp.java index f0e8e9ba6ce..27f7f20e5d3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionSourceIp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/ListenerRuleConditionSourceIp.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionSourceIp { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionSourceIp(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionSourceIp() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionSourceIp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionSourceIp defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionSourceIp build() { - return new ListenerRuleConditionSourceIp(values); + } + public ListenerRuleConditionSourceIp build() { + final var o = new ListenerRuleConditionSourceIp(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/LoadBalancerAccessLogs.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/LoadBalancerAccessLogs.java index 3a4e0c67b95..9573bcd39b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/LoadBalancerAccessLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/LoadBalancerAccessLogs.java @@ -16,28 +16,19 @@ public final class LoadBalancerAccessLogs { * @return The S3 bucket name to store the logs in. * */ - private final String bucket; + private String bucket; /** * @return Boolean to enable / disable `access_logs`. Defaults to `false`, even when `bucket` is specified. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The S3 bucket prefix. Logs are stored in the root if not configured. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private LoadBalancerAccessLogs( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.bucket = bucket; - this.enabled = enabled; - this.prefix = prefix; - } + private @Nullable String prefix; + private LoadBalancerAccessLogs() {} /** * @return The S3 bucket name to store the logs in. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(LoadBalancerAccessLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private @Nullable Boolean enabled; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerAccessLogs defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -84,19 +71,27 @@ public Builder(LoadBalancerAccessLogs defaults) { this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public LoadBalancerAccessLogs build() { - return new LoadBalancerAccessLogs(bucket, enabled, prefix); + } + public LoadBalancerAccessLogs build() { + final var o = new LoadBalancerAccessLogs(); + o.bucket = bucket; + o.enabled = enabled; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/LoadBalancerSubnetMapping.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/LoadBalancerSubnetMapping.java index 67170400da2..e6d3dbae753 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/LoadBalancerSubnetMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/LoadBalancerSubnetMapping.java @@ -15,38 +15,25 @@ public final class LoadBalancerSubnetMapping { * @return The allocation ID of the Elastic IP address. * */ - private final @Nullable String allocationId; + private @Nullable String allocationId; /** * @return An ipv6 address within the subnet to assign to the internet-facing load balancer. * */ - private final @Nullable String ipv6Address; - private final @Nullable String outpostId; + private @Nullable String ipv6Address; + private @Nullable String outpostId; /** * @return A private ipv4 address within the subnet to assign to the internal-facing load balancer. * */ - private final @Nullable String privateIpv4Address; + private @Nullable String privateIpv4Address; /** * @return The id of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone. * */ - private final String subnetId; - - @CustomType.Constructor - private LoadBalancerSubnetMapping( - @CustomType.Parameter("allocationId") @Nullable String allocationId, - @CustomType.Parameter("ipv6Address") @Nullable String ipv6Address, - @CustomType.Parameter("outpostId") @Nullable String outpostId, - @CustomType.Parameter("privateIpv4Address") @Nullable String privateIpv4Address, - @CustomType.Parameter("subnetId") String subnetId) { - this.allocationId = allocationId; - this.ipv6Address = ipv6Address; - this.outpostId = outpostId; - this.privateIpv4Address = privateIpv4Address; - this.subnetId = subnetId; - } + private String subnetId; + private LoadBalancerSubnetMapping() {} /** * @return The allocation ID of the Elastic IP address. * @@ -86,18 +73,14 @@ public static Builder builder() { public static Builder builder(LoadBalancerSubnetMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String allocationId; private @Nullable String ipv6Address; private @Nullable String outpostId; private @Nullable String privateIpv4Address; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerSubnetMapping defaults) { Objects.requireNonNull(defaults); this.allocationId = defaults.allocationId; @@ -107,27 +90,39 @@ public Builder(LoadBalancerSubnetMapping defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder allocationId(@Nullable String allocationId) { this.allocationId = allocationId; return this; } + @CustomType.Setter public Builder ipv6Address(@Nullable String ipv6Address) { this.ipv6Address = ipv6Address; return this; } + @CustomType.Setter public Builder outpostId(@Nullable String outpostId) { this.outpostId = outpostId; return this; } + @CustomType.Setter public Builder privateIpv4Address(@Nullable String privateIpv4Address) { this.privateIpv4Address = privateIpv4Address; return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public LoadBalancerSubnetMapping build() { - return new LoadBalancerSubnetMapping(allocationId, ipv6Address, outpostId, privateIpv4Address, subnetId); + } + public LoadBalancerSubnetMapping build() { + final var o = new LoadBalancerSubnetMapping(); + o.allocationId = allocationId; + o.ipv6Address = ipv6Address; + o.outpostId = outpostId; + o.privateIpv4Address = privateIpv4Address; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/TargetGroupHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/TargetGroupHealthCheck.java index 906652a3552..c46c21b1a8f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/TargetGroupHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/TargetGroupHealthCheck.java @@ -17,70 +17,49 @@ public final class TargetGroupHealthCheck { * @return Boolean to enable / disable `stickiness`. Default is `true`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Number of consecutive health checks successes required before considering an unhealthy target healthy. Defaults to 3. * */ - private final @Nullable Integer healthyThreshold; + private @Nullable Integer healthyThreshold; /** * @return Approximate amount of time, in seconds, between health checks of an individual target. Minimum value 5 seconds, Maximum value 300 seconds. For `lambda` target groups, it needs to be greater as the `timeout` of the underlying `lambda`. Default 30 seconds. * */ - private final @Nullable Integer interval; + private @Nullable Integer interval; /** * @return Response codes to use when checking for a healthy responses from a target. You can specify multiple values (for example, "200,202" for HTTP(s) or "0,12" for GRPC) or a range of values (for example, "200-299" or "0-99"). Required for HTTP/HTTPS/GRPC ALB. Only applies to Application Load Balancers (i.e., HTTP/HTTPS/GRPC) not Network Load Balancers (i.e., TCP). * */ - private final @Nullable String matcher; + private @Nullable String matcher; /** * @return Destination for the health check request. Required for HTTP/HTTPS ALB and HTTP NLB. Only applies to HTTP/HTTPS. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return Port to use to connect with the target. Valid values are either ports 1-65535, or `traffic-port`. Defaults to `traffic-port`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return Protocol to use to connect with the target. Defaults to `HTTP`. Not applicable when `target_type` is `lambda`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return Amount of time, in seconds, during which no response means a failed health check. For Application Load Balancers, the range is 2 to 120 seconds, and the default is 5 seconds for the `instance` target type and 30 seconds for the `lambda` target type. For Network Load Balancers, you cannot set a custom value, and the default is 10 seconds for TCP and HTTPS health checks and 5 seconds for HTTP health checks. * */ - private final @Nullable Integer timeout; + private @Nullable Integer timeout; /** * @return Number of consecutive health check failures required before considering the target unhealthy. For Network Load Balancers, this value must be the same as the `healthy_threshold`. Defaults to 3. * */ - private final @Nullable Integer unhealthyThreshold; - - @CustomType.Constructor - private TargetGroupHealthCheck( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("healthyThreshold") @Nullable Integer healthyThreshold, - @CustomType.Parameter("interval") @Nullable Integer interval, - @CustomType.Parameter("matcher") @Nullable String matcher, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("timeout") @Nullable Integer timeout, - @CustomType.Parameter("unhealthyThreshold") @Nullable Integer unhealthyThreshold) { - this.enabled = enabled; - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.matcher = matcher; - this.path = path; - this.port = port; - this.protocol = protocol; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private @Nullable Integer unhealthyThreshold; + private TargetGroupHealthCheck() {} /** * @return Boolean to enable / disable `stickiness`. Default is `true`. * @@ -152,7 +131,7 @@ public static Builder builder() { public static Builder builder(TargetGroupHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable Integer healthyThreshold; @@ -163,11 +142,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable Integer timeout; private @Nullable Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TargetGroupHealthCheck defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; @@ -181,43 +156,63 @@ public Builder(TargetGroupHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder healthyThreshold(@Nullable Integer healthyThreshold) { this.healthyThreshold = healthyThreshold; return this; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; } + @CustomType.Setter public Builder matcher(@Nullable String matcher) { this.matcher = matcher; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { this.timeout = timeout; return this; } + @CustomType.Setter public Builder unhealthyThreshold(@Nullable Integer unhealthyThreshold) { this.unhealthyThreshold = unhealthyThreshold; return this; - } public TargetGroupHealthCheck build() { - return new TargetGroupHealthCheck(enabled, healthyThreshold, interval, matcher, path, port, protocol, timeout, unhealthyThreshold); + } + public TargetGroupHealthCheck build() { + final var o = new TargetGroupHealthCheck(); + o.enabled = enabled; + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.matcher = matcher; + o.path = path; + o.port = port; + o.protocol = protocol; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/TargetGroupStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/TargetGroupStickiness.java index 55322e54892..ab0e42ff535 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/TargetGroupStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticloadbalancingv2/outputs/TargetGroupStickiness.java @@ -17,35 +17,24 @@ public final class TargetGroupStickiness { * @return Only used when the type is `lb_cookie`. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). * */ - private final @Nullable Integer cookieDuration; + private @Nullable Integer cookieDuration; /** * @return Name of the application based cookie. AWSALB, AWSALBAPP, and AWSALBTG prefixes are reserved and cannot be used. Only needed when type is `app_cookie`. * */ - private final @Nullable String cookieName; + private @Nullable String cookieName; /** * @return Boolean to enable / disable `stickiness`. Default is `true`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The type of sticky sessions. The only current possible values are `lb_cookie`, `app_cookie` for ALBs, and `source_ip` for NLBs. * */ - private final String type; - - @CustomType.Constructor - private TargetGroupStickiness( - @CustomType.Parameter("cookieDuration") @Nullable Integer cookieDuration, - @CustomType.Parameter("cookieName") @Nullable String cookieName, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("type") String type) { - this.cookieDuration = cookieDuration; - this.cookieName = cookieName; - this.enabled = enabled; - this.type = type; - } + private String type; + private TargetGroupStickiness() {} /** * @return Only used when the type is `lb_cookie`. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(TargetGroupStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer cookieDuration; private @Nullable String cookieName; private @Nullable Boolean enabled; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TargetGroupStickiness defaults) { Objects.requireNonNull(defaults); this.cookieDuration = defaults.cookieDuration; @@ -101,23 +86,33 @@ public Builder(TargetGroupStickiness defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder cookieDuration(@Nullable Integer cookieDuration) { this.cookieDuration = cookieDuration; return this; } + @CustomType.Setter public Builder cookieName(@Nullable String cookieName) { this.cookieName = cookieName; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public TargetGroupStickiness build() { - return new TargetGroupStickiness(cookieDuration, cookieName, enabled, type); + } + public TargetGroupStickiness build() { + final var o = new TargetGroupStickiness(); + o.cookieDuration = cookieDuration; + o.cookieName = cookieName; + o.enabled = enabled; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/DomainAdvancedSecurityOptions.java b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/DomainAdvancedSecurityOptions.java index b84c807d770..c128b747733 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/DomainAdvancedSecurityOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/DomainAdvancedSecurityOptions.java @@ -16,28 +16,19 @@ public final class DomainAdvancedSecurityOptions { * @return Whether to enable node-to-node encryption. If the `node_to_node_encryption` block is not provided then this defaults to `false`. Enabling node-to-node encryption of a new domain requires an `elasticsearch_version` of `6.0` or greater. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return Whether the internal user database is enabled. If not set, defaults to `false` by the AWS API. * */ - private final @Nullable Boolean internalUserDatabaseEnabled; + private @Nullable Boolean internalUserDatabaseEnabled; /** * @return Configuration block for the main user. Detailed below. * */ - private final @Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions; - - @CustomType.Constructor - private DomainAdvancedSecurityOptions( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("internalUserDatabaseEnabled") @Nullable Boolean internalUserDatabaseEnabled, - @CustomType.Parameter("masterUserOptions") @Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions) { - this.enabled = enabled; - this.internalUserDatabaseEnabled = internalUserDatabaseEnabled; - this.masterUserOptions = masterUserOptions; - } + private @Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions; + private DomainAdvancedSecurityOptions() {} /** * @return Whether to enable node-to-node encryption. If the `node_to_node_encryption` block is not provided then this defaults to `false`. Enabling node-to-node encryption of a new domain requires an `elasticsearch_version` of `6.0` or greater. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(DomainAdvancedSecurityOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private @Nullable Boolean internalUserDatabaseEnabled; private @Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainAdvancedSecurityOptions defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; @@ -84,19 +71,27 @@ public Builder(DomainAdvancedSecurityOptions defaults) { this.masterUserOptions = defaults.masterUserOptions; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder internalUserDatabaseEnabled(@Nullable Boolean internalUserDatabaseEnabled) { this.internalUserDatabaseEnabled = internalUserDatabaseEnabled; return this; } + @CustomType.Setter public Builder masterUserOptions(@Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions) { this.masterUserOptions = masterUserOptions; return this; - } public DomainAdvancedSecurityOptions build() { - return new DomainAdvancedSecurityOptions(enabled, internalUserDatabaseEnabled, masterUserOptions); + } + public DomainAdvancedSecurityOptions build() { + final var o = new DomainAdvancedSecurityOptions(); + o.enabled = enabled; + o.internalUserDatabaseEnabled = internalUserDatabaseEnabled; + o.masterUserOptions = masterUserOptions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/DomainAdvancedSecurityOptionsMasterUserOptions.java b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/DomainAdvancedSecurityOptionsMasterUserOptions.java index 0675ba20a1c..2e06fa54be1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/DomainAdvancedSecurityOptionsMasterUserOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/DomainAdvancedSecurityOptionsMasterUserOptions.java @@ -15,28 +15,19 @@ public final class DomainAdvancedSecurityOptionsMasterUserOptions { * @return ARN for the main user. Only specify if `internal_user_database_enabled` is not set or set to `false`. * */ - private final @Nullable String masterUserArn; + private @Nullable String masterUserArn; /** * @return Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internal_user_database_enabled` is set to `true`. * */ - private final @Nullable String masterUserName; + private @Nullable String masterUserName; /** * @return Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internal_user_database_enabled` is set to `true`. * */ - private final @Nullable String masterUserPassword; - - @CustomType.Constructor - private DomainAdvancedSecurityOptionsMasterUserOptions( - @CustomType.Parameter("masterUserArn") @Nullable String masterUserArn, - @CustomType.Parameter("masterUserName") @Nullable String masterUserName, - @CustomType.Parameter("masterUserPassword") @Nullable String masterUserPassword) { - this.masterUserArn = masterUserArn; - this.masterUserName = masterUserName; - this.masterUserPassword = masterUserPassword; - } + private @Nullable String masterUserPassword; + private DomainAdvancedSecurityOptionsMasterUserOptions() {} /** * @return ARN for the main user. Only specify if `internal_user_database_enabled` is not set or set to `false`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(DomainAdvancedSecurityOptionsMasterUserOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String masterUserArn; private @Nullable String masterUserName; private @Nullable String masterUserPassword; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainAdvancedSecurityOptionsMasterUserOptions defaults) { Objects.requireNonNull(defaults); this.masterUserArn = defaults.masterUserArn; @@ -83,19 +70,27 @@ public Builder(DomainAdvancedSecurityOptionsMasterUserOptions defaults) { this.masterUserPassword = defaults.masterUserPassword; } + @CustomType.Setter public Builder masterUserArn(@Nullable String masterUserArn) { this.masterUserArn = masterUserArn; return this; } + @CustomType.Setter public Builder masterUserName(@Nullable String masterUserName) { this.masterUserName = masterUserName; return this; } + @CustomType.Setter public Builder masterUserPassword(@Nullable String masterUserPassword) { this.masterUserPassword = masterUserPassword; return this; - } public DomainAdvancedSecurityOptionsMasterUserOptions build() { - return new DomainAdvancedSecurityOptionsMasterUserOptions(masterUserArn, masterUserName, masterUserPassword); + } + public DomainAdvancedSecurityOptionsMasterUserOptions build() { + final var o = new DomainAdvancedSecurityOptionsMasterUserOptions(); + o.masterUserArn = masterUserArn; + o.masterUserName = masterUserName; + o.masterUserPassword = masterUserPassword; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/DomainAutoTuneOptions.java b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/DomainAutoTuneOptions.java index 84fffcea387..41b6034823f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/DomainAutoTuneOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/DomainAutoTuneOptions.java @@ -17,28 +17,19 @@ public final class DomainAutoTuneOptions { * @return The Auto-Tune desired state for the domain. Valid values: `ENABLED` or `DISABLED`. * */ - private final String desiredState; + private String desiredState; /** * @return Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below. * */ - private final @Nullable List maintenanceSchedules; + private @Nullable List maintenanceSchedules; /** * @return Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: `DEFAULT_ROLLBACK` or `NO_ROLLBACK`. * */ - private final @Nullable String rollbackOnDisable; - - @CustomType.Constructor - private DomainAutoTuneOptions( - @CustomType.Parameter("desiredState") String desiredState, - @CustomType.Parameter("maintenanceSchedules") @Nullable List maintenanceSchedules, - @CustomType.Parameter("rollbackOnDisable") @Nullable String rollbackOnDisable) { - this.desiredState = desiredState; - this.maintenanceSchedules = maintenanceSchedules; - this.rollbackOnDisable = rollbackOnDisable; - } + private @Nullable String rollbackOnDisable; + private DomainAutoTuneOptions() {} /** * @return The Auto-Tune desired state for the domain. Valid values: `ENABLED` or `DISABLED`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(DomainAutoTuneOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String desiredState; private @Nullable List maintenanceSchedules; private @Nullable String rollbackOnDisable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainAutoTuneOptions defaults) { Objects.requireNonNull(defaults); this.desiredState = defaults.desiredState; @@ -85,10 +72,12 @@ public Builder(DomainAutoTuneOptions defaults) { this.rollbackOnDisable = defaults.rollbackOnDisable; } + @CustomType.Setter public Builder desiredState(String desiredState) { this.desiredState = Objects.requireNonNull(desiredState); return this; } + @CustomType.Setter public Builder maintenanceSchedules(@Nullable List maintenanceSchedules) { this.maintenanceSchedules = maintenanceSchedules; return this; @@ -96,11 +85,17 @@ public Builder maintenanceSchedules(@Nullable List availabilityZones; + private @Nullable List availabilityZones; /** * @return List of VPC Security Group IDs to be applied to the Elasticsearch domain endpoints. If omitted, the default Security Group for the VPC will be used. * */ - private final @Nullable List securityGroupIds; + private @Nullable List securityGroupIds; /** * @return List of VPC Subnet IDs for the Elasticsearch domain endpoints to be created in. * */ - private final @Nullable List subnetIds; - private final @Nullable String vpcId; - - @CustomType.Constructor - private DomainVpcOptions( - @CustomType.Parameter("availabilityZones") @Nullable List availabilityZones, - @CustomType.Parameter("securityGroupIds") @Nullable List securityGroupIds, - @CustomType.Parameter("subnetIds") @Nullable List subnetIds, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.availabilityZones = availabilityZones; - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private @Nullable List subnetIds; + private @Nullable String vpcId; + private DomainVpcOptions() {} public List availabilityZones() { return this.availabilityZones == null ? List.of() : this.availabilityZones; } @@ -65,17 +54,13 @@ public static Builder builder() { public static Builder builder(DomainVpcOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List availabilityZones; private @Nullable List securityGroupIds; private @Nullable List subnetIds; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainVpcOptions defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -84,6 +69,7 @@ public Builder(DomainVpcOptions defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder availabilityZones(@Nullable List availabilityZones) { this.availabilityZones = availabilityZones; return this; @@ -91,6 +77,7 @@ public Builder availabilityZones(@Nullable List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder securityGroupIds(@Nullable List securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; @@ -98,6 +85,7 @@ public Builder securityGroupIds(@Nullable List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(@Nullable List subnetIds) { this.subnetIds = subnetIds; return this; @@ -105,11 +93,18 @@ public Builder subnetIds(@Nullable List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(@Nullable String vpcId) { this.vpcId = vpcId; return this; - } public DomainVpcOptions build() { - return new DomainVpcOptions(availabilityZones, securityGroupIds, subnetIds, vpcId); + } + public DomainVpcOptions build() { + final var o = new DomainVpcOptions(); + o.availabilityZones = availabilityZones; + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainAdvancedSecurityOption.java b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainAdvancedSecurityOption.java index 4e1ae7dd77f..853404f4db1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainAdvancedSecurityOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainAdvancedSecurityOption.java @@ -13,21 +13,14 @@ public final class GetDomainAdvancedSecurityOption { * @return Whether node to node encryption is enabled. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return Whether the internal user database is enabled. * */ - private final Boolean internalUserDatabaseEnabled; - - @CustomType.Constructor - private GetDomainAdvancedSecurityOption( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("internalUserDatabaseEnabled") Boolean internalUserDatabaseEnabled) { - this.enabled = enabled; - this.internalUserDatabaseEnabled = internalUserDatabaseEnabled; - } + private Boolean internalUserDatabaseEnabled; + private GetDomainAdvancedSecurityOption() {} /** * @return Whether node to node encryption is enabled. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetDomainAdvancedSecurityOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private Boolean internalUserDatabaseEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainAdvancedSecurityOption defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.internalUserDatabaseEnabled = defaults.internalUserDatabaseEnabled; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder internalUserDatabaseEnabled(Boolean internalUserDatabaseEnabled) { this.internalUserDatabaseEnabled = Objects.requireNonNull(internalUserDatabaseEnabled); return this; - } public GetDomainAdvancedSecurityOption build() { - return new GetDomainAdvancedSecurityOption(enabled, internalUserDatabaseEnabled); + } + public GetDomainAdvancedSecurityOption build() { + final var o = new GetDomainAdvancedSecurityOption(); + o.enabled = enabled; + o.internalUserDatabaseEnabled = internalUserDatabaseEnabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainAutoTuneOption.java b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainAutoTuneOption.java index 9d172682658..787a9539ed4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainAutoTuneOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainAutoTuneOption.java @@ -15,28 +15,19 @@ public final class GetDomainAutoTuneOption { * @return The Auto-Tune desired state for the domain. * */ - private final String desiredState; + private String desiredState; /** * @return A list of the nested configurations for the Auto-Tune maintenance windows of the domain. * */ - private final List maintenanceSchedules; + private List maintenanceSchedules; /** * @return Whether the domain is set to roll back to default Auto-Tune settings when disabling Auto-Tune. * */ - private final String rollbackOnDisable; - - @CustomType.Constructor - private GetDomainAutoTuneOption( - @CustomType.Parameter("desiredState") String desiredState, - @CustomType.Parameter("maintenanceSchedules") List maintenanceSchedules, - @CustomType.Parameter("rollbackOnDisable") String rollbackOnDisable) { - this.desiredState = desiredState; - this.maintenanceSchedules = maintenanceSchedules; - this.rollbackOnDisable = rollbackOnDisable; - } + private String rollbackOnDisable; + private GetDomainAutoTuneOption() {} /** * @return The Auto-Tune desired state for the domain. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetDomainAutoTuneOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String desiredState; private List maintenanceSchedules; private String rollbackOnDisable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainAutoTuneOption defaults) { Objects.requireNonNull(defaults); this.desiredState = defaults.desiredState; @@ -83,10 +70,12 @@ public Builder(GetDomainAutoTuneOption defaults) { this.rollbackOnDisable = defaults.rollbackOnDisable; } + @CustomType.Setter public Builder desiredState(String desiredState) { this.desiredState = Objects.requireNonNull(desiredState); return this; } + @CustomType.Setter public Builder maintenanceSchedules(List maintenanceSchedules) { this.maintenanceSchedules = Objects.requireNonNull(maintenanceSchedules); return this; @@ -94,11 +83,17 @@ public Builder maintenanceSchedules(List durations; + private List durations; /** * @return Date and time at which the Auto-Tune maintenance schedule starts in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8). * */ - private final String startAt; - - @CustomType.Constructor - private GetDomainAutoTuneOptionMaintenanceSchedule( - @CustomType.Parameter("cronExpressionForRecurrence") String cronExpressionForRecurrence, - @CustomType.Parameter("durations") List durations, - @CustomType.Parameter("startAt") String startAt) { - this.cronExpressionForRecurrence = cronExpressionForRecurrence; - this.durations = durations; - this.startAt = startAt; - } + private String startAt; + private GetDomainAutoTuneOptionMaintenanceSchedule() {} /** * @return A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetDomainAutoTuneOptionMaintenanceSchedule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cronExpressionForRecurrence; private List durations; private String startAt; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainAutoTuneOptionMaintenanceSchedule defaults) { Objects.requireNonNull(defaults); this.cronExpressionForRecurrence = defaults.cronExpressionForRecurrence; @@ -83,10 +70,12 @@ public Builder(GetDomainAutoTuneOptionMaintenanceSchedule defaults) { this.startAt = defaults.startAt; } + @CustomType.Setter public Builder cronExpressionForRecurrence(String cronExpressionForRecurrence) { this.cronExpressionForRecurrence = Objects.requireNonNull(cronExpressionForRecurrence); return this; } + @CustomType.Setter public Builder durations(List durations) { this.durations = Objects.requireNonNull(durations); return this; @@ -94,11 +83,17 @@ public Builder durations(List coldStorageOptions; + private List coldStorageOptions; /** * @return Number of dedicated master nodes in the cluster. * */ - private final Integer dedicatedMasterCount; + private Integer dedicatedMasterCount; /** * @return Indicates whether dedicated master nodes are enabled for the cluster. * */ - private final Boolean dedicatedMasterEnabled; + private Boolean dedicatedMasterEnabled; /** * @return Instance type of the dedicated master nodes in the cluster. * */ - private final String dedicatedMasterType; + private String dedicatedMasterType; /** * @return Number of instances in the cluster. * */ - private final Integer instanceCount; + private Integer instanceCount; /** * @return Instance type of data nodes in the cluster. * */ - private final String instanceType; + private String instanceType; /** * @return The number of warm nodes in the cluster. * */ - private final Integer warmCount; + private Integer warmCount; /** * @return Indicates warm storage is enabled. * */ - private final Boolean warmEnabled; + private Boolean warmEnabled; /** * @return The instance type for the Elasticsearch cluster's warm nodes. * */ - private final String warmType; + private String warmType; /** * @return Configuration block containing zone awareness settings. * */ - private final List zoneAwarenessConfigs; + private List zoneAwarenessConfigs; /** * @return Indicates whether zone awareness is enabled. * */ - private final Boolean zoneAwarenessEnabled; - - @CustomType.Constructor - private GetDomainClusterConfig( - @CustomType.Parameter("coldStorageOptions") List coldStorageOptions, - @CustomType.Parameter("dedicatedMasterCount") Integer dedicatedMasterCount, - @CustomType.Parameter("dedicatedMasterEnabled") Boolean dedicatedMasterEnabled, - @CustomType.Parameter("dedicatedMasterType") String dedicatedMasterType, - @CustomType.Parameter("instanceCount") Integer instanceCount, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("warmCount") Integer warmCount, - @CustomType.Parameter("warmEnabled") Boolean warmEnabled, - @CustomType.Parameter("warmType") String warmType, - @CustomType.Parameter("zoneAwarenessConfigs") List zoneAwarenessConfigs, - @CustomType.Parameter("zoneAwarenessEnabled") Boolean zoneAwarenessEnabled) { - this.coldStorageOptions = coldStorageOptions; - this.dedicatedMasterCount = dedicatedMasterCount; - this.dedicatedMasterEnabled = dedicatedMasterEnabled; - this.dedicatedMasterType = dedicatedMasterType; - this.instanceCount = instanceCount; - this.instanceType = instanceType; - this.warmCount = warmCount; - this.warmEnabled = warmEnabled; - this.warmType = warmType; - this.zoneAwarenessConfigs = zoneAwarenessConfigs; - this.zoneAwarenessEnabled = zoneAwarenessEnabled; - } + private Boolean zoneAwarenessEnabled; + private GetDomainClusterConfig() {} /** * @return Configuration block containing cold storage configuration. * @@ -181,7 +156,7 @@ public static Builder builder() { public static Builder builder(GetDomainClusterConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List coldStorageOptions; private Integer dedicatedMasterCount; @@ -194,11 +169,7 @@ public static final class Builder { private String warmType; private List zoneAwarenessConfigs; private Boolean zoneAwarenessEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainClusterConfig defaults) { Objects.requireNonNull(defaults); this.coldStorageOptions = defaults.coldStorageOptions; @@ -214,6 +185,7 @@ public Builder(GetDomainClusterConfig defaults) { this.zoneAwarenessEnabled = defaults.zoneAwarenessEnabled; } + @CustomType.Setter public Builder coldStorageOptions(List coldStorageOptions) { this.coldStorageOptions = Objects.requireNonNull(coldStorageOptions); return this; @@ -221,38 +193,47 @@ public Builder coldStorageOptions(List public Builder coldStorageOptions(GetDomainClusterConfigColdStorageOption... coldStorageOptions) { return coldStorageOptions(List.of(coldStorageOptions)); } + @CustomType.Setter public Builder dedicatedMasterCount(Integer dedicatedMasterCount) { this.dedicatedMasterCount = Objects.requireNonNull(dedicatedMasterCount); return this; } + @CustomType.Setter public Builder dedicatedMasterEnabled(Boolean dedicatedMasterEnabled) { this.dedicatedMasterEnabled = Objects.requireNonNull(dedicatedMasterEnabled); return this; } + @CustomType.Setter public Builder dedicatedMasterType(String dedicatedMasterType) { this.dedicatedMasterType = Objects.requireNonNull(dedicatedMasterType); return this; } + @CustomType.Setter public Builder instanceCount(Integer instanceCount) { this.instanceCount = Objects.requireNonNull(instanceCount); return this; } + @CustomType.Setter public Builder instanceType(String instanceType) { this.instanceType = Objects.requireNonNull(instanceType); return this; } + @CustomType.Setter public Builder warmCount(Integer warmCount) { this.warmCount = Objects.requireNonNull(warmCount); return this; } + @CustomType.Setter public Builder warmEnabled(Boolean warmEnabled) { this.warmEnabled = Objects.requireNonNull(warmEnabled); return this; } + @CustomType.Setter public Builder warmType(String warmType) { this.warmType = Objects.requireNonNull(warmType); return this; } + @CustomType.Setter public Builder zoneAwarenessConfigs(List zoneAwarenessConfigs) { this.zoneAwarenessConfigs = Objects.requireNonNull(zoneAwarenessConfigs); return this; @@ -260,11 +241,25 @@ public Builder zoneAwarenessConfigs(List advancedOptions; + private Map advancedOptions; /** * @return Status of the Elasticsearch domain's advanced security options. The block consists of the following attributes: * */ - private final List advancedSecurityOptions; + private List advancedSecurityOptions; /** * @return The Amazon Resource Name (ARN) of the domain. * */ - private final String arn; + private String arn; /** * @return Configuration of the Auto-Tune options of the domain. * */ - private final List autoTuneOptions; + private List autoTuneOptions; /** * @return Cluster configuration of the domain. * */ - private final List clusterConfigs; + private List clusterConfigs; /** * @return Domain Amazon Cognito Authentication options for Kibana. * */ - private final List cognitoOptions; + private List cognitoOptions; /** * @return Status of the creation of the domain. * */ - private final Boolean created; + private Boolean created; /** * @return Status of the deletion of the domain. * */ - private final Boolean deleted; + private Boolean deleted; /** * @return Unique identifier for the domain. * */ - private final String domainId; - private final String domainName; + private String domainId; + private String domainName; /** * @return EBS Options for the instances in the domain. * */ - private final List ebsOptions; + private List ebsOptions; /** * @return Elasticsearch version for the domain. * */ - private final String elasticsearchVersion; + private String elasticsearchVersion; /** * @return Domain encryption at rest related options. * */ - private final List encryptionAtRests; + private List encryptionAtRests; /** * @return Domain-specific endpoint used to submit index, search, and data upload requests. * */ - private final String endpoint; + private String endpoint; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Domain-specific endpoint used to access the Kibana application. * */ - private final String kibanaEndpoint; + private String kibanaEndpoint; /** * @return Domain log publishing related options. * */ - private final List logPublishingOptions; + private List logPublishingOptions; /** * @return Domain in transit encryption related options. * */ - private final List nodeToNodeEncryptions; + private List nodeToNodeEncryptions; /** * @return Status of a configuration change in the domain. * * `snapshot_options` – Domain snapshot related options. * */ - private final Boolean processing; - private final List snapshotOptions; + private Boolean processing; + private List snapshotOptions; /** * @return The tags assigned to the domain. * */ - private final Map tags; + private Map tags; /** * @return VPC Options for private Elasticsearch domains. * */ - private final List vpcOptions; - - @CustomType.Constructor - private GetDomainResult( - @CustomType.Parameter("accessPolicies") String accessPolicies, - @CustomType.Parameter("advancedOptions") Map advancedOptions, - @CustomType.Parameter("advancedSecurityOptions") List advancedSecurityOptions, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("autoTuneOptions") List autoTuneOptions, - @CustomType.Parameter("clusterConfigs") List clusterConfigs, - @CustomType.Parameter("cognitoOptions") List cognitoOptions, - @CustomType.Parameter("created") Boolean created, - @CustomType.Parameter("deleted") Boolean deleted, - @CustomType.Parameter("domainId") String domainId, - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("ebsOptions") List ebsOptions, - @CustomType.Parameter("elasticsearchVersion") String elasticsearchVersion, - @CustomType.Parameter("encryptionAtRests") List encryptionAtRests, - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kibanaEndpoint") String kibanaEndpoint, - @CustomType.Parameter("logPublishingOptions") List logPublishingOptions, - @CustomType.Parameter("nodeToNodeEncryptions") List nodeToNodeEncryptions, - @CustomType.Parameter("processing") Boolean processing, - @CustomType.Parameter("snapshotOptions") List snapshotOptions, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcOptions") List vpcOptions) { - this.accessPolicies = accessPolicies; - this.advancedOptions = advancedOptions; - this.advancedSecurityOptions = advancedSecurityOptions; - this.arn = arn; - this.autoTuneOptions = autoTuneOptions; - this.clusterConfigs = clusterConfigs; - this.cognitoOptions = cognitoOptions; - this.created = created; - this.deleted = deleted; - this.domainId = domainId; - this.domainName = domainName; - this.ebsOptions = ebsOptions; - this.elasticsearchVersion = elasticsearchVersion; - this.encryptionAtRests = encryptionAtRests; - this.endpoint = endpoint; - this.id = id; - this.kibanaEndpoint = kibanaEndpoint; - this.logPublishingOptions = logPublishingOptions; - this.nodeToNodeEncryptions = nodeToNodeEncryptions; - this.processing = processing; - this.snapshotOptions = snapshotOptions; - this.tags = tags; - this.vpcOptions = vpcOptions; - } + private List vpcOptions; + private GetDomainResult() {} /** * @return The policy document attached to the domain. * @@ -343,7 +294,7 @@ public static Builder builder() { public static Builder builder(GetDomainResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accessPolicies; private Map advancedOptions; @@ -368,11 +319,7 @@ public static final class Builder { private List snapshotOptions; private Map tags; private List vpcOptions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainResult defaults) { Objects.requireNonNull(defaults); this.accessPolicies = defaults.accessPolicies; @@ -400,14 +347,17 @@ public Builder(GetDomainResult defaults) { this.vpcOptions = defaults.vpcOptions; } + @CustomType.Setter public Builder accessPolicies(String accessPolicies) { this.accessPolicies = Objects.requireNonNull(accessPolicies); return this; } + @CustomType.Setter public Builder advancedOptions(Map advancedOptions) { this.advancedOptions = Objects.requireNonNull(advancedOptions); return this; } + @CustomType.Setter public Builder advancedSecurityOptions(List advancedSecurityOptions) { this.advancedSecurityOptions = Objects.requireNonNull(advancedSecurityOptions); return this; @@ -415,10 +365,12 @@ public Builder advancedSecurityOptions(List adv public Builder advancedSecurityOptions(GetDomainAdvancedSecurityOption... advancedSecurityOptions) { return advancedSecurityOptions(List.of(advancedSecurityOptions)); } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder autoTuneOptions(List autoTuneOptions) { this.autoTuneOptions = Objects.requireNonNull(autoTuneOptions); return this; @@ -426,6 +378,7 @@ public Builder autoTuneOptions(List autoTuneOptions) { public Builder autoTuneOptions(GetDomainAutoTuneOption... autoTuneOptions) { return autoTuneOptions(List.of(autoTuneOptions)); } + @CustomType.Setter public Builder clusterConfigs(List clusterConfigs) { this.clusterConfigs = Objects.requireNonNull(clusterConfigs); return this; @@ -433,6 +386,7 @@ public Builder clusterConfigs(List clusterConfigs) { public Builder clusterConfigs(GetDomainClusterConfig... clusterConfigs) { return clusterConfigs(List.of(clusterConfigs)); } + @CustomType.Setter public Builder cognitoOptions(List cognitoOptions) { this.cognitoOptions = Objects.requireNonNull(cognitoOptions); return this; @@ -440,22 +394,27 @@ public Builder cognitoOptions(List cognitoOptions) { public Builder cognitoOptions(GetDomainCognitoOption... cognitoOptions) { return cognitoOptions(List.of(cognitoOptions)); } + @CustomType.Setter public Builder created(Boolean created) { this.created = Objects.requireNonNull(created); return this; } + @CustomType.Setter public Builder deleted(Boolean deleted) { this.deleted = Objects.requireNonNull(deleted); return this; } + @CustomType.Setter public Builder domainId(String domainId) { this.domainId = Objects.requireNonNull(domainId); return this; } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder ebsOptions(List ebsOptions) { this.ebsOptions = Objects.requireNonNull(ebsOptions); return this; @@ -463,10 +422,12 @@ public Builder ebsOptions(List ebsOptions) { public Builder ebsOptions(GetDomainEbsOption... ebsOptions) { return ebsOptions(List.of(ebsOptions)); } + @CustomType.Setter public Builder elasticsearchVersion(String elasticsearchVersion) { this.elasticsearchVersion = Objects.requireNonNull(elasticsearchVersion); return this; } + @CustomType.Setter public Builder encryptionAtRests(List encryptionAtRests) { this.encryptionAtRests = Objects.requireNonNull(encryptionAtRests); return this; @@ -474,18 +435,22 @@ public Builder encryptionAtRests(List encryptionAtRes public Builder encryptionAtRests(GetDomainEncryptionAtRest... encryptionAtRests) { return encryptionAtRests(List.of(encryptionAtRests)); } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kibanaEndpoint(String kibanaEndpoint) { this.kibanaEndpoint = Objects.requireNonNull(kibanaEndpoint); return this; } + @CustomType.Setter public Builder logPublishingOptions(List logPublishingOptions) { this.logPublishingOptions = Objects.requireNonNull(logPublishingOptions); return this; @@ -493,6 +458,7 @@ public Builder logPublishingOptions(List logPublis public Builder logPublishingOptions(GetDomainLogPublishingOption... logPublishingOptions) { return logPublishingOptions(List.of(logPublishingOptions)); } + @CustomType.Setter public Builder nodeToNodeEncryptions(List nodeToNodeEncryptions) { this.nodeToNodeEncryptions = Objects.requireNonNull(nodeToNodeEncryptions); return this; @@ -500,10 +466,12 @@ public Builder nodeToNodeEncryptions(List nodeToN public Builder nodeToNodeEncryptions(GetDomainNodeToNodeEncryption... nodeToNodeEncryptions) { return nodeToNodeEncryptions(List.of(nodeToNodeEncryptions)); } + @CustomType.Setter public Builder processing(Boolean processing) { this.processing = Objects.requireNonNull(processing); return this; } + @CustomType.Setter public Builder snapshotOptions(List snapshotOptions) { this.snapshotOptions = Objects.requireNonNull(snapshotOptions); return this; @@ -511,18 +479,45 @@ public Builder snapshotOptions(List snapshotOptions) { public Builder snapshotOptions(GetDomainSnapshotOption... snapshotOptions) { return snapshotOptions(List.of(snapshotOptions)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcOptions(List vpcOptions) { this.vpcOptions = Objects.requireNonNull(vpcOptions); return this; } public Builder vpcOptions(GetDomainVpcOption... vpcOptions) { return vpcOptions(List.of(vpcOptions)); - } public GetDomainResult build() { - return new GetDomainResult(accessPolicies, advancedOptions, advancedSecurityOptions, arn, autoTuneOptions, clusterConfigs, cognitoOptions, created, deleted, domainId, domainName, ebsOptions, elasticsearchVersion, encryptionAtRests, endpoint, id, kibanaEndpoint, logPublishingOptions, nodeToNodeEncryptions, processing, snapshotOptions, tags, vpcOptions); + } + public GetDomainResult build() { + final var o = new GetDomainResult(); + o.accessPolicies = accessPolicies; + o.advancedOptions = advancedOptions; + o.advancedSecurityOptions = advancedSecurityOptions; + o.arn = arn; + o.autoTuneOptions = autoTuneOptions; + o.clusterConfigs = clusterConfigs; + o.cognitoOptions = cognitoOptions; + o.created = created; + o.deleted = deleted; + o.domainId = domainId; + o.domainName = domainName; + o.ebsOptions = ebsOptions; + o.elasticsearchVersion = elasticsearchVersion; + o.encryptionAtRests = encryptionAtRests; + o.endpoint = endpoint; + o.id = id; + o.kibanaEndpoint = kibanaEndpoint; + o.logPublishingOptions = logPublishingOptions; + o.nodeToNodeEncryptions = nodeToNodeEncryptions; + o.processing = processing; + o.snapshotOptions = snapshotOptions; + o.tags = tags; + o.vpcOptions = vpcOptions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainSnapshotOption.java b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainSnapshotOption.java index 10c2e940d63..f052e9524f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainSnapshotOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainSnapshotOption.java @@ -13,13 +13,9 @@ public final class GetDomainSnapshotOption { * @return Hour during which the service takes an automated daily snapshot of the indices in the domain. * */ - private final Integer automatedSnapshotStartHour; - - @CustomType.Constructor - private GetDomainSnapshotOption(@CustomType.Parameter("automatedSnapshotStartHour") Integer automatedSnapshotStartHour) { - this.automatedSnapshotStartHour = automatedSnapshotStartHour; - } + private Integer automatedSnapshotStartHour; + private GetDomainSnapshotOption() {} /** * @return Hour during which the service takes an automated daily snapshot of the indices in the domain. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetDomainSnapshotOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer automatedSnapshotStartHour; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainSnapshotOption defaults) { Objects.requireNonNull(defaults); this.automatedSnapshotStartHour = defaults.automatedSnapshotStartHour; } + @CustomType.Setter public Builder automatedSnapshotStartHour(Integer automatedSnapshotStartHour) { this.automatedSnapshotStartHour = Objects.requireNonNull(automatedSnapshotStartHour); return this; - } public GetDomainSnapshotOption build() { - return new GetDomainSnapshotOption(automatedSnapshotStartHour); + } + public GetDomainSnapshotOption build() { + final var o = new GetDomainSnapshotOption(); + o.automatedSnapshotStartHour = automatedSnapshotStartHour; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainVpcOption.java b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainVpcOption.java index 408bb4f5ce7..dd39c255700 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainVpcOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/outputs/GetDomainVpcOption.java @@ -14,35 +14,24 @@ public final class GetDomainVpcOption { * @return The availability zones used by the domain. * */ - private final List availabilityZones; + private List availabilityZones; /** * @return The security groups used by the domain. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return The subnets used by the domain. * */ - private final List subnetIds; + private List subnetIds; /** * @return The VPC used by the domain. * */ - private final String vpcId; - - @CustomType.Constructor - private GetDomainVpcOption( - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.availabilityZones = availabilityZones; - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private GetDomainVpcOption() {} /** * @return The availability zones used by the domain. * @@ -79,17 +68,13 @@ public static Builder builder() { public static Builder builder(GetDomainVpcOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List availabilityZones; private List securityGroupIds; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainVpcOption defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -98,6 +83,7 @@ public Builder(GetDomainVpcOption defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -105,6 +91,7 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -112,6 +99,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -119,11 +107,18 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetDomainVpcOption build() { - return new GetDomainVpcOption(availabilityZones, securityGroupIds, subnetIds, vpcId); + } + public GetDomainVpcOption build() { + final var o = new GetDomainVpcOption(); + o.availabilityZones = availabilityZones; + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineContentConfig.java b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineContentConfig.java index 71b31e29087..0afa3566d8b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineContentConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineContentConfig.java @@ -15,21 +15,14 @@ public final class PipelineContentConfig { * @return The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. * */ - private final @Nullable String bucket; + private @Nullable String bucket; /** * @return The Amazon S3 storage class, `Standard` or `ReducedRedundancy`, that you want Elastic Transcoder to assign to the files and playlists that it stores in your Amazon S3 bucket. * */ - private final @Nullable String storageClass; - - @CustomType.Constructor - private PipelineContentConfig( - @CustomType.Parameter("bucket") @Nullable String bucket, - @CustomType.Parameter("storageClass") @Nullable String storageClass) { - this.bucket = bucket; - this.storageClass = storageClass; - } + private @Nullable String storageClass; + private PipelineContentConfig() {} /** * @return The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(PipelineContentConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucket; private @Nullable String storageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PipelineContentConfig defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.storageClass = defaults.storageClass; } + @CustomType.Setter public Builder bucket(@Nullable String bucket) { this.bucket = bucket; return this; } + @CustomType.Setter public Builder storageClass(@Nullable String storageClass) { this.storageClass = storageClass; return this; - } public PipelineContentConfig build() { - return new PipelineContentConfig(bucket, storageClass); + } + public PipelineContentConfig build() { + final var o = new PipelineContentConfig(); + o.bucket = bucket; + o.storageClass = storageClass; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineContentConfigPermission.java b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineContentConfigPermission.java index c0cd6175d70..0656b33c64d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineContentConfigPermission.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineContentConfigPermission.java @@ -16,28 +16,19 @@ public final class PipelineContentConfigPermission { * @return The permission that you want to give to the AWS user that you specified in `content_config_permissions.grantee`. Valid values are `Read`, `ReadAcp`, `WriteAcp` or `FullControl`. * */ - private final @Nullable List accesses; + private @Nullable List accesses; /** * @return The AWS user or group that you want to have access to transcoded files and playlists. * */ - private final @Nullable String grantee; + private @Nullable String grantee; /** * @return Specify the type of value that appears in the `content_config_permissions.grantee` object. Valid values are `Canonical`, `Email` or `Group`. * */ - private final @Nullable String granteeType; - - @CustomType.Constructor - private PipelineContentConfigPermission( - @CustomType.Parameter("accesses") @Nullable List accesses, - @CustomType.Parameter("grantee") @Nullable String grantee, - @CustomType.Parameter("granteeType") @Nullable String granteeType) { - this.accesses = accesses; - this.grantee = grantee; - this.granteeType = granteeType; - } + private @Nullable String granteeType; + private PipelineContentConfigPermission() {} /** * @return The permission that you want to give to the AWS user that you specified in `content_config_permissions.grantee`. Valid values are `Read`, `ReadAcp`, `WriteAcp` or `FullControl`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PipelineContentConfigPermission defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List accesses; private @Nullable String grantee; private @Nullable String granteeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PipelineContentConfigPermission defaults) { Objects.requireNonNull(defaults); this.accesses = defaults.accesses; @@ -84,6 +71,7 @@ public Builder(PipelineContentConfigPermission defaults) { this.granteeType = defaults.granteeType; } + @CustomType.Setter public Builder accesses(@Nullable List accesses) { this.accesses = accesses; return this; @@ -91,15 +79,22 @@ public Builder accesses(@Nullable List accesses) { public Builder accesses(String... accesses) { return accesses(List.of(accesses)); } + @CustomType.Setter public Builder grantee(@Nullable String grantee) { this.grantee = grantee; return this; } + @CustomType.Setter public Builder granteeType(@Nullable String granteeType) { this.granteeType = granteeType; return this; - } public PipelineContentConfigPermission build() { - return new PipelineContentConfigPermission(accesses, grantee, granteeType); + } + public PipelineContentConfigPermission build() { + final var o = new PipelineContentConfigPermission(); + o.accesses = accesses; + o.grantee = grantee; + o.granteeType = granteeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineNotifications.java b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineNotifications.java index 12a0284e685..1d40fdd7f73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineNotifications.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineNotifications.java @@ -15,35 +15,24 @@ public final class PipelineNotifications { * @return The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline. * */ - private final @Nullable String completed; + private @Nullable String completed; /** * @return The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline. * */ - private final @Nullable String error; + private @Nullable String error; /** * @return The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline. * */ - private final @Nullable String progressing; + private @Nullable String progressing; /** * @return The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline. * */ - private final @Nullable String warning; - - @CustomType.Constructor - private PipelineNotifications( - @CustomType.Parameter("completed") @Nullable String completed, - @CustomType.Parameter("error") @Nullable String error, - @CustomType.Parameter("progressing") @Nullable String progressing, - @CustomType.Parameter("warning") @Nullable String warning) { - this.completed = completed; - this.error = error; - this.progressing = progressing; - this.warning = warning; - } + private @Nullable String warning; + private PipelineNotifications() {} /** * @return The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(PipelineNotifications defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String completed; private @Nullable String error; private @Nullable String progressing; private @Nullable String warning; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PipelineNotifications defaults) { Objects.requireNonNull(defaults); this.completed = defaults.completed; @@ -99,23 +84,33 @@ public Builder(PipelineNotifications defaults) { this.warning = defaults.warning; } + @CustomType.Setter public Builder completed(@Nullable String completed) { this.completed = completed; return this; } + @CustomType.Setter public Builder error(@Nullable String error) { this.error = error; return this; } + @CustomType.Setter public Builder progressing(@Nullable String progressing) { this.progressing = progressing; return this; } + @CustomType.Setter public Builder warning(@Nullable String warning) { this.warning = warning; return this; - } public PipelineNotifications build() { - return new PipelineNotifications(completed, error, progressing, warning); + } + public PipelineNotifications build() { + final var o = new PipelineNotifications(); + o.completed = completed; + o.error = error; + o.progressing = progressing; + o.warning = warning; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineThumbnailConfig.java b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineThumbnailConfig.java index ba8c95cb8b6..0829c9c200a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineThumbnailConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineThumbnailConfig.java @@ -15,21 +15,14 @@ public final class PipelineThumbnailConfig { * @return The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. * */ - private final @Nullable String bucket; + private @Nullable String bucket; /** * @return The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket. * */ - private final @Nullable String storageClass; - - @CustomType.Constructor - private PipelineThumbnailConfig( - @CustomType.Parameter("bucket") @Nullable String bucket, - @CustomType.Parameter("storageClass") @Nullable String storageClass) { - this.bucket = bucket; - this.storageClass = storageClass; - } + private @Nullable String storageClass; + private PipelineThumbnailConfig() {} /** * @return The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(PipelineThumbnailConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucket; private @Nullable String storageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PipelineThumbnailConfig defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.storageClass = defaults.storageClass; } + @CustomType.Setter public Builder bucket(@Nullable String bucket) { this.bucket = bucket; return this; } + @CustomType.Setter public Builder storageClass(@Nullable String storageClass) { this.storageClass = storageClass; return this; - } public PipelineThumbnailConfig build() { - return new PipelineThumbnailConfig(bucket, storageClass); + } + public PipelineThumbnailConfig build() { + final var o = new PipelineThumbnailConfig(); + o.bucket = bucket; + o.storageClass = storageClass; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineThumbnailConfigPermission.java b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineThumbnailConfigPermission.java index 237d24ab803..ffdf7c84655 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineThumbnailConfigPermission.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PipelineThumbnailConfigPermission.java @@ -16,28 +16,19 @@ public final class PipelineThumbnailConfigPermission { * @return The permission that you want to give to the AWS user that you specified in `thumbnail_config_permissions.grantee`. Valid values are `Read`, `ReadAcp`, `WriteAcp` or `FullControl`. * */ - private final @Nullable List accesses; + private @Nullable List accesses; /** * @return The AWS user or group that you want to have access to thumbnail files. * */ - private final @Nullable String grantee; + private @Nullable String grantee; /** * @return Specify the type of value that appears in the `thumbnail_config_permissions.grantee` object. Valid values are `Canonical`, `Email` or `Group`. * */ - private final @Nullable String granteeType; - - @CustomType.Constructor - private PipelineThumbnailConfigPermission( - @CustomType.Parameter("accesses") @Nullable List accesses, - @CustomType.Parameter("grantee") @Nullable String grantee, - @CustomType.Parameter("granteeType") @Nullable String granteeType) { - this.accesses = accesses; - this.grantee = grantee; - this.granteeType = granteeType; - } + private @Nullable String granteeType; + private PipelineThumbnailConfigPermission() {} /** * @return The permission that you want to give to the AWS user that you specified in `thumbnail_config_permissions.grantee`. Valid values are `Read`, `ReadAcp`, `WriteAcp` or `FullControl`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PipelineThumbnailConfigPermission defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List accesses; private @Nullable String grantee; private @Nullable String granteeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PipelineThumbnailConfigPermission defaults) { Objects.requireNonNull(defaults); this.accesses = defaults.accesses; @@ -84,6 +71,7 @@ public Builder(PipelineThumbnailConfigPermission defaults) { this.granteeType = defaults.granteeType; } + @CustomType.Setter public Builder accesses(@Nullable List accesses) { this.accesses = accesses; return this; @@ -91,15 +79,22 @@ public Builder accesses(@Nullable List accesses) { public Builder accesses(String... accesses) { return accesses(List.of(accesses)); } + @CustomType.Setter public Builder grantee(@Nullable String grantee) { this.grantee = grantee; return this; } + @CustomType.Setter public Builder granteeType(@Nullable String granteeType) { this.granteeType = granteeType; return this; - } public PipelineThumbnailConfigPermission build() { - return new PipelineThumbnailConfigPermission(accesses, grantee, granteeType); + } + public PipelineThumbnailConfigPermission build() { + final var o = new PipelineThumbnailConfigPermission(); + o.accesses = accesses; + o.grantee = grantee; + o.granteeType = granteeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetAudio.java b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetAudio.java index 5a04c4c6fc8..6f0837262e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetAudio.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetAudio.java @@ -15,42 +15,29 @@ public final class PresetAudio { * @return The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack. * */ - private final @Nullable String audioPackingMode; + private @Nullable String audioPackingMode; /** * @return The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive. * */ - private final @Nullable String bitRate; + private @Nullable String bitRate; /** * @return The number of audio channels in the output file * */ - private final @Nullable String channels; + private @Nullable String channels; /** * @return The audio codec for the output file. Valid values are `AAC`, `flac`, `mp2`, `mp3`, `pcm`, and `vorbis`. * */ - private final @Nullable String codec; + private @Nullable String codec; /** * @return The sample rate of the audio stream in the output file, in hertz. Valid values are: `auto`, `22050`, `32000`, `44100`, `48000`, `96000` * */ - private final @Nullable String sampleRate; - - @CustomType.Constructor - private PresetAudio( - @CustomType.Parameter("audioPackingMode") @Nullable String audioPackingMode, - @CustomType.Parameter("bitRate") @Nullable String bitRate, - @CustomType.Parameter("channels") @Nullable String channels, - @CustomType.Parameter("codec") @Nullable String codec, - @CustomType.Parameter("sampleRate") @Nullable String sampleRate) { - this.audioPackingMode = audioPackingMode; - this.bitRate = bitRate; - this.channels = channels; - this.codec = codec; - this.sampleRate = sampleRate; - } + private @Nullable String sampleRate; + private PresetAudio() {} /** * @return The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(PresetAudio defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String audioPackingMode; private @Nullable String bitRate; private @Nullable String channels; private @Nullable String codec; private @Nullable String sampleRate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PresetAudio defaults) { Objects.requireNonNull(defaults); this.audioPackingMode = defaults.audioPackingMode; @@ -115,27 +98,39 @@ public Builder(PresetAudio defaults) { this.sampleRate = defaults.sampleRate; } + @CustomType.Setter public Builder audioPackingMode(@Nullable String audioPackingMode) { this.audioPackingMode = audioPackingMode; return this; } + @CustomType.Setter public Builder bitRate(@Nullable String bitRate) { this.bitRate = bitRate; return this; } + @CustomType.Setter public Builder channels(@Nullable String channels) { this.channels = channels; return this; } + @CustomType.Setter public Builder codec(@Nullable String codec) { this.codec = codec; return this; } + @CustomType.Setter public Builder sampleRate(@Nullable String sampleRate) { this.sampleRate = sampleRate; return this; - } public PresetAudio build() { - return new PresetAudio(audioPackingMode, bitRate, channels, codec, sampleRate); + } + public PresetAudio build() { + final var o = new PresetAudio(); + o.audioPackingMode = audioPackingMode; + o.bitRate = bitRate; + o.channels = channels; + o.codec = codec; + o.sampleRate = sampleRate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetAudioCodecOptions.java b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetAudioCodecOptions.java index 2953fc80005..d4061a5ee93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetAudioCodecOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetAudioCodecOptions.java @@ -15,35 +15,24 @@ public final class PresetAudioCodecOptions { * @return The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are `16` and `24`. (FLAC/PCM Only) * */ - private final @Nullable String bitDepth; + private @Nullable String bitDepth; /** * @return The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only) * */ - private final @Nullable String bitOrder; + private @Nullable String bitOrder; /** * @return If you specified AAC for Audio:Codec, choose the AAC profile for the output file. * */ - private final @Nullable String profile; + private @Nullable String profile; /** * @return Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only) * */ - private final @Nullable String signed; - - @CustomType.Constructor - private PresetAudioCodecOptions( - @CustomType.Parameter("bitDepth") @Nullable String bitDepth, - @CustomType.Parameter("bitOrder") @Nullable String bitOrder, - @CustomType.Parameter("profile") @Nullable String profile, - @CustomType.Parameter("signed") @Nullable String signed) { - this.bitDepth = bitDepth; - this.bitOrder = bitOrder; - this.profile = profile; - this.signed = signed; - } + private @Nullable String signed; + private PresetAudioCodecOptions() {} /** * @return The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are `16` and `24`. (FLAC/PCM Only) * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(PresetAudioCodecOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bitDepth; private @Nullable String bitOrder; private @Nullable String profile; private @Nullable String signed; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PresetAudioCodecOptions defaults) { Objects.requireNonNull(defaults); this.bitDepth = defaults.bitDepth; @@ -99,23 +84,33 @@ public Builder(PresetAudioCodecOptions defaults) { this.signed = defaults.signed; } + @CustomType.Setter public Builder bitDepth(@Nullable String bitDepth) { this.bitDepth = bitDepth; return this; } + @CustomType.Setter public Builder bitOrder(@Nullable String bitOrder) { this.bitOrder = bitOrder; return this; } + @CustomType.Setter public Builder profile(@Nullable String profile) { this.profile = profile; return this; } + @CustomType.Setter public Builder signed(@Nullable String signed) { this.signed = signed; return this; - } public PresetAudioCodecOptions build() { - return new PresetAudioCodecOptions(bitDepth, bitOrder, profile, signed); + } + public PresetAudioCodecOptions build() { + final var o = new PresetAudioCodecOptions(); + o.bitDepth = bitDepth; + o.bitOrder = bitOrder; + o.profile = profile; + o.signed = signed; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetThumbnails.java b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetThumbnails.java index 35e628a0fc8..e9840f9a2eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetThumbnails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetThumbnails.java @@ -15,63 +15,44 @@ public final class PresetThumbnails { * @return The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9 * */ - private final @Nullable String aspectRatio; + private @Nullable String aspectRatio; /** * @return The format of thumbnails, if any. Valid formats are jpg and png. * */ - private final @Nullable String format; + private @Nullable String format; /** * @return The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next. * */ - private final @Nullable String interval; + private @Nullable String interval; /** * @return The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive. * */ - private final @Nullable String maxHeight; + private @Nullable String maxHeight; /** * @return The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive. * */ - private final @Nullable String maxWidth; + private @Nullable String maxWidth; /** * @return When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings. * */ - private final @Nullable String paddingPolicy; + private @Nullable String paddingPolicy; /** * @return The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values `max_width`, `max_height`, `sizing_policy`, and `padding_policy` instead of `resolution` and `aspect_ratio`. The two groups of settings are mutually exclusive. Do not use them together) * */ - private final @Nullable String resolution; + private @Nullable String resolution; /** * @return A value that controls scaling of thumbnails. Valid values are: `Fit`, `Fill`, `Stretch`, `Keep`, `ShrinkToFit`, and `ShrinkToFill`. * */ - private final @Nullable String sizingPolicy; - - @CustomType.Constructor - private PresetThumbnails( - @CustomType.Parameter("aspectRatio") @Nullable String aspectRatio, - @CustomType.Parameter("format") @Nullable String format, - @CustomType.Parameter("interval") @Nullable String interval, - @CustomType.Parameter("maxHeight") @Nullable String maxHeight, - @CustomType.Parameter("maxWidth") @Nullable String maxWidth, - @CustomType.Parameter("paddingPolicy") @Nullable String paddingPolicy, - @CustomType.Parameter("resolution") @Nullable String resolution, - @CustomType.Parameter("sizingPolicy") @Nullable String sizingPolicy) { - this.aspectRatio = aspectRatio; - this.format = format; - this.interval = interval; - this.maxHeight = maxHeight; - this.maxWidth = maxWidth; - this.paddingPolicy = paddingPolicy; - this.resolution = resolution; - this.sizingPolicy = sizingPolicy; - } + private @Nullable String sizingPolicy; + private PresetThumbnails() {} /** * @return The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9 * @@ -136,7 +117,7 @@ public static Builder builder() { public static Builder builder(PresetThumbnails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String aspectRatio; private @Nullable String format; @@ -146,11 +127,7 @@ public static final class Builder { private @Nullable String paddingPolicy; private @Nullable String resolution; private @Nullable String sizingPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PresetThumbnails defaults) { Objects.requireNonNull(defaults); this.aspectRatio = defaults.aspectRatio; @@ -163,39 +140,57 @@ public Builder(PresetThumbnails defaults) { this.sizingPolicy = defaults.sizingPolicy; } + @CustomType.Setter public Builder aspectRatio(@Nullable String aspectRatio) { this.aspectRatio = aspectRatio; return this; } + @CustomType.Setter public Builder format(@Nullable String format) { this.format = format; return this; } + @CustomType.Setter public Builder interval(@Nullable String interval) { this.interval = interval; return this; } + @CustomType.Setter public Builder maxHeight(@Nullable String maxHeight) { this.maxHeight = maxHeight; return this; } + @CustomType.Setter public Builder maxWidth(@Nullable String maxWidth) { this.maxWidth = maxWidth; return this; } + @CustomType.Setter public Builder paddingPolicy(@Nullable String paddingPolicy) { this.paddingPolicy = paddingPolicy; return this; } + @CustomType.Setter public Builder resolution(@Nullable String resolution) { this.resolution = resolution; return this; } + @CustomType.Setter public Builder sizingPolicy(@Nullable String sizingPolicy) { this.sizingPolicy = sizingPolicy; return this; - } public PresetThumbnails build() { - return new PresetThumbnails(aspectRatio, format, interval, maxHeight, maxWidth, paddingPolicy, resolution, sizingPolicy); + } + public PresetThumbnails build() { + final var o = new PresetThumbnails(); + o.aspectRatio = aspectRatio; + o.format = format; + o.interval = interval; + o.maxHeight = maxHeight; + o.maxWidth = maxWidth; + o.paddingPolicy = paddingPolicy; + o.resolution = resolution; + o.sizingPolicy = sizingPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetVideo.java b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetVideo.java index ef4991cb232..cc5db8c7268 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetVideo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetVideo.java @@ -15,98 +15,69 @@ public final class PresetVideo { * @return The display aspect ratio of the video in the output file. Valid values are: `auto`, `1:1`, `4:3`, `3:2`, `16:9`. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the values `max_width`, `max_height`, `sizing_policy`, `padding_policy`, and `display_aspect_ratio` instead of `resolution` and `aspect_ratio`.) * */ - private final @Nullable String aspectRatio; + private @Nullable String aspectRatio; /** * @return The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding. * */ - private final @Nullable String bitRate; + private @Nullable String bitRate; /** * @return The video codec for the output file. Valid values are `gif`, `H.264`, `mpeg2`, `vp8`, and `vp9`. * */ - private final @Nullable String codec; + private @Nullable String codec; /** * @return The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file. * */ - private final @Nullable String displayAspectRatio; + private @Nullable String displayAspectRatio; /** * @return Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes. * */ - private final @Nullable String fixedGop; + private @Nullable String fixedGop; /** * @return The frames per second for the video stream in the output file. The following values are valid: `auto`, `10`, `15`, `23.97`, `24`, `25`, `29.97`, `30`, `50`, `60`. * */ - private final @Nullable String frameRate; + private @Nullable String frameRate; /** * @return The maximum number of frames between key frames. Not applicable for containers of type gif. * */ - private final @Nullable String keyframesMaxDist; + private @Nullable String keyframesMaxDist; /** * @return If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30. * */ - private final @Nullable String maxFrameRate; + private @Nullable String maxFrameRate; /** * @return The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive. * */ - private final @Nullable String maxHeight; + private @Nullable String maxHeight; /** * @return The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive. * */ - private final @Nullable String maxWidth; + private @Nullable String maxWidth; /** * @return When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified for `max_width` and `max_height`. * */ - private final @Nullable String paddingPolicy; + private @Nullable String paddingPolicy; /** * @return The width and height of the video in the output file, in pixels. Valid values are `auto` and `widthxheight`. (see note for `aspect_ratio`) * */ - private final @Nullable String resolution; + private @Nullable String resolution; /** * @return A value that controls scaling of the output video. Valid values are: `Fit`, `Fill`, `Stretch`, `Keep`, `ShrinkToFit`, `ShrinkToFill`. * */ - private final @Nullable String sizingPolicy; - - @CustomType.Constructor - private PresetVideo( - @CustomType.Parameter("aspectRatio") @Nullable String aspectRatio, - @CustomType.Parameter("bitRate") @Nullable String bitRate, - @CustomType.Parameter("codec") @Nullable String codec, - @CustomType.Parameter("displayAspectRatio") @Nullable String displayAspectRatio, - @CustomType.Parameter("fixedGop") @Nullable String fixedGop, - @CustomType.Parameter("frameRate") @Nullable String frameRate, - @CustomType.Parameter("keyframesMaxDist") @Nullable String keyframesMaxDist, - @CustomType.Parameter("maxFrameRate") @Nullable String maxFrameRate, - @CustomType.Parameter("maxHeight") @Nullable String maxHeight, - @CustomType.Parameter("maxWidth") @Nullable String maxWidth, - @CustomType.Parameter("paddingPolicy") @Nullable String paddingPolicy, - @CustomType.Parameter("resolution") @Nullable String resolution, - @CustomType.Parameter("sizingPolicy") @Nullable String sizingPolicy) { - this.aspectRatio = aspectRatio; - this.bitRate = bitRate; - this.codec = codec; - this.displayAspectRatio = displayAspectRatio; - this.fixedGop = fixedGop; - this.frameRate = frameRate; - this.keyframesMaxDist = keyframesMaxDist; - this.maxFrameRate = maxFrameRate; - this.maxHeight = maxHeight; - this.maxWidth = maxWidth; - this.paddingPolicy = paddingPolicy; - this.resolution = resolution; - this.sizingPolicy = sizingPolicy; - } + private @Nullable String sizingPolicy; + private PresetVideo() {} /** * @return The display aspect ratio of the video in the output file. Valid values are: `auto`, `1:1`, `4:3`, `3:2`, `16:9`. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the values `max_width`, `max_height`, `sizing_policy`, `padding_policy`, and `display_aspect_ratio` instead of `resolution` and `aspect_ratio`.) * @@ -206,7 +177,7 @@ public static Builder builder() { public static Builder builder(PresetVideo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String aspectRatio; private @Nullable String bitRate; @@ -221,11 +192,7 @@ public static final class Builder { private @Nullable String paddingPolicy; private @Nullable String resolution; private @Nullable String sizingPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PresetVideo defaults) { Objects.requireNonNull(defaults); this.aspectRatio = defaults.aspectRatio; @@ -243,59 +210,87 @@ public Builder(PresetVideo defaults) { this.sizingPolicy = defaults.sizingPolicy; } + @CustomType.Setter public Builder aspectRatio(@Nullable String aspectRatio) { this.aspectRatio = aspectRatio; return this; } + @CustomType.Setter public Builder bitRate(@Nullable String bitRate) { this.bitRate = bitRate; return this; } + @CustomType.Setter public Builder codec(@Nullable String codec) { this.codec = codec; return this; } + @CustomType.Setter public Builder displayAspectRatio(@Nullable String displayAspectRatio) { this.displayAspectRatio = displayAspectRatio; return this; } + @CustomType.Setter public Builder fixedGop(@Nullable String fixedGop) { this.fixedGop = fixedGop; return this; } + @CustomType.Setter public Builder frameRate(@Nullable String frameRate) { this.frameRate = frameRate; return this; } + @CustomType.Setter public Builder keyframesMaxDist(@Nullable String keyframesMaxDist) { this.keyframesMaxDist = keyframesMaxDist; return this; } + @CustomType.Setter public Builder maxFrameRate(@Nullable String maxFrameRate) { this.maxFrameRate = maxFrameRate; return this; } + @CustomType.Setter public Builder maxHeight(@Nullable String maxHeight) { this.maxHeight = maxHeight; return this; } + @CustomType.Setter public Builder maxWidth(@Nullable String maxWidth) { this.maxWidth = maxWidth; return this; } + @CustomType.Setter public Builder paddingPolicy(@Nullable String paddingPolicy) { this.paddingPolicy = paddingPolicy; return this; } + @CustomType.Setter public Builder resolution(@Nullable String resolution) { this.resolution = resolution; return this; } + @CustomType.Setter public Builder sizingPolicy(@Nullable String sizingPolicy) { this.sizingPolicy = sizingPolicy; return this; - } public PresetVideo build() { - return new PresetVideo(aspectRatio, bitRate, codec, displayAspectRatio, fixedGop, frameRate, keyframesMaxDist, maxFrameRate, maxHeight, maxWidth, paddingPolicy, resolution, sizingPolicy); + } + public PresetVideo build() { + final var o = new PresetVideo(); + o.aspectRatio = aspectRatio; + o.bitRate = bitRate; + o.codec = codec; + o.displayAspectRatio = displayAspectRatio; + o.fixedGop = fixedGop; + o.frameRate = frameRate; + o.keyframesMaxDist = keyframesMaxDist; + o.maxFrameRate = maxFrameRate; + o.maxHeight = maxHeight; + o.maxWidth = maxWidth; + o.paddingPolicy = paddingPolicy; + o.resolution = resolution; + o.sizingPolicy = sizingPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetVideoWatermark.java b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetVideoWatermark.java index a1148d809c0..7a151c72369 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetVideoWatermark.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elastictranscoder/outputs/PresetVideoWatermark.java @@ -15,77 +15,54 @@ public final class PresetVideoWatermark { * @return The horizontal position of the watermark unless you specify a nonzero value for `horzontal_offset`. * */ - private final @Nullable String horizontalAlign; + private @Nullable String horizontalAlign; /** * @return The amount by which you want the horizontal position of the watermark to be offset from the position specified by `horizontal_align`. * */ - private final @Nullable String horizontalOffset; + private @Nullable String horizontalOffset; /** * @return A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The maximum height of the watermark. * */ - private final @Nullable String maxHeight; + private @Nullable String maxHeight; /** * @return The maximum width of the watermark. * */ - private final @Nullable String maxWidth; + private @Nullable String maxWidth; /** * @return A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. * */ - private final @Nullable String opacity; + private @Nullable String opacity; /** * @return A value that controls scaling of the watermark. Valid values are: `Fit`, `Stretch`, `ShrinkToFit` * */ - private final @Nullable String sizingPolicy; + private @Nullable String sizingPolicy; /** * @return A value that determines how Elastic Transcoder interprets values that you specified for `video_watermarks.horizontal_offset`, `video_watermarks.vertical_offset`, `video_watermarks.max_width`, and `video_watermarks.max_height`. Valid values are `Content` and `Frame`. * */ - private final @Nullable String target; + private @Nullable String target; /** * @return The vertical position of the watermark unless you specify a nonzero value for `vertical_align`. Valid values are `Top`, `Bottom`, `Center`. * */ - private final @Nullable String verticalAlign; + private @Nullable String verticalAlign; /** * @return The amount by which you want the vertical position of the watermark to be offset from the position specified by `vertical_align` * */ - private final @Nullable String verticalOffset; - - @CustomType.Constructor - private PresetVideoWatermark( - @CustomType.Parameter("horizontalAlign") @Nullable String horizontalAlign, - @CustomType.Parameter("horizontalOffset") @Nullable String horizontalOffset, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("maxHeight") @Nullable String maxHeight, - @CustomType.Parameter("maxWidth") @Nullable String maxWidth, - @CustomType.Parameter("opacity") @Nullable String opacity, - @CustomType.Parameter("sizingPolicy") @Nullable String sizingPolicy, - @CustomType.Parameter("target") @Nullable String target, - @CustomType.Parameter("verticalAlign") @Nullable String verticalAlign, - @CustomType.Parameter("verticalOffset") @Nullable String verticalOffset) { - this.horizontalAlign = horizontalAlign; - this.horizontalOffset = horizontalOffset; - this.id = id; - this.maxHeight = maxHeight; - this.maxWidth = maxWidth; - this.opacity = opacity; - this.sizingPolicy = sizingPolicy; - this.target = target; - this.verticalAlign = verticalAlign; - this.verticalOffset = verticalOffset; - } + private @Nullable String verticalOffset; + private PresetVideoWatermark() {} /** * @return The horizontal position of the watermark unless you specify a nonzero value for `horzontal_offset`. * @@ -164,7 +141,7 @@ public static Builder builder() { public static Builder builder(PresetVideoWatermark defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String horizontalAlign; private @Nullable String horizontalOffset; @@ -176,11 +153,7 @@ public static final class Builder { private @Nullable String target; private @Nullable String verticalAlign; private @Nullable String verticalOffset; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PresetVideoWatermark defaults) { Objects.requireNonNull(defaults); this.horizontalAlign = defaults.horizontalAlign; @@ -195,47 +168,69 @@ public Builder(PresetVideoWatermark defaults) { this.verticalOffset = defaults.verticalOffset; } + @CustomType.Setter public Builder horizontalAlign(@Nullable String horizontalAlign) { this.horizontalAlign = horizontalAlign; return this; } + @CustomType.Setter public Builder horizontalOffset(@Nullable String horizontalOffset) { this.horizontalOffset = horizontalOffset; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder maxHeight(@Nullable String maxHeight) { this.maxHeight = maxHeight; return this; } + @CustomType.Setter public Builder maxWidth(@Nullable String maxWidth) { this.maxWidth = maxWidth; return this; } + @CustomType.Setter public Builder opacity(@Nullable String opacity) { this.opacity = opacity; return this; } + @CustomType.Setter public Builder sizingPolicy(@Nullable String sizingPolicy) { this.sizingPolicy = sizingPolicy; return this; } + @CustomType.Setter public Builder target(@Nullable String target) { this.target = target; return this; } + @CustomType.Setter public Builder verticalAlign(@Nullable String verticalAlign) { this.verticalAlign = verticalAlign; return this; } + @CustomType.Setter public Builder verticalOffset(@Nullable String verticalOffset) { this.verticalOffset = verticalOffset; return this; - } public PresetVideoWatermark build() { - return new PresetVideoWatermark(horizontalAlign, horizontalOffset, id, maxHeight, maxWidth, opacity, sizingPolicy, target, verticalAlign, verticalOffset); + } + public PresetVideoWatermark build() { + final var o = new PresetVideoWatermark(); + o.horizontalAlign = horizontalAlign; + o.horizontalOffset = horizontalOffset; + o.id = id; + o.maxHeight = maxHeight; + o.maxWidth = maxWidth; + o.opacity = opacity; + o.sizingPolicy = sizingPolicy; + o.target = target; + o.verticalAlign = verticalAlign; + o.verticalOffset = verticalOffset; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetHostedZoneIdResult.java b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetHostedZoneIdResult.java index 0f7b33b21aa..55a493f58df 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetHostedZoneIdResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetHostedZoneIdResult.java @@ -15,17 +15,10 @@ public final class GetHostedZoneIdResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String region; - - @CustomType.Constructor - private GetHostedZoneIdResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("region") @Nullable String region) { - this.id = id; - this.region = region; - } + private String id; + private @Nullable String region; + private GetHostedZoneIdResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -44,30 +37,32 @@ public static Builder builder() { public static Builder builder(GetHostedZoneIdResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private @Nullable String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetHostedZoneIdResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.region = defaults.region; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; - } public GetHostedZoneIdResult build() { - return new GetHostedZoneIdResult(id, region); + } + public GetHostedZoneIdResult build() { + final var o = new GetHostedZoneIdResult(); + o.id = id; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerAccessLogs.java b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerAccessLogs.java index defa5ea5862..e7f0df837d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerAccessLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerAccessLogs.java @@ -11,23 +11,12 @@ @CustomType public final class GetLoadBalancerAccessLogs { - private final String bucket; - private final String bucketPrefix; - private final Boolean enabled; - private final Integer interval; - - @CustomType.Constructor - private GetLoadBalancerAccessLogs( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("bucketPrefix") String bucketPrefix, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("interval") Integer interval) { - this.bucket = bucket; - this.bucketPrefix = bucketPrefix; - this.enabled = enabled; - this.interval = interval; - } + private String bucket; + private String bucketPrefix; + private Boolean enabled; + private Integer interval; + private GetLoadBalancerAccessLogs() {} public String bucket() { return this.bucket; } @@ -48,17 +37,13 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerAccessLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String bucketPrefix; private Boolean enabled; private Integer interval; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerAccessLogs defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -67,23 +52,33 @@ public Builder(GetLoadBalancerAccessLogs defaults) { this.interval = defaults.interval; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder bucketPrefix(String bucketPrefix) { this.bucketPrefix = Objects.requireNonNull(bucketPrefix); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder interval(Integer interval) { this.interval = Objects.requireNonNull(interval); return this; - } public GetLoadBalancerAccessLogs build() { - return new GetLoadBalancerAccessLogs(bucket, bucketPrefix, enabled, interval); + } + public GetLoadBalancerAccessLogs build() { + final var o = new GetLoadBalancerAccessLogs(); + o.bucket = bucket; + o.bucketPrefix = bucketPrefix; + o.enabled = enabled; + o.interval = interval; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerHealthCheck.java index d9910481c2e..fff457000cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerHealthCheck.java @@ -10,26 +10,13 @@ @CustomType public final class GetLoadBalancerHealthCheck { - private final Integer healthyThreshold; - private final Integer interval; - private final String target; - private final Integer timeout; - private final Integer unhealthyThreshold; - - @CustomType.Constructor - private GetLoadBalancerHealthCheck( - @CustomType.Parameter("healthyThreshold") Integer healthyThreshold, - @CustomType.Parameter("interval") Integer interval, - @CustomType.Parameter("target") String target, - @CustomType.Parameter("timeout") Integer timeout, - @CustomType.Parameter("unhealthyThreshold") Integer unhealthyThreshold) { - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.target = target; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private Integer healthyThreshold; + private Integer interval; + private String target; + private Integer timeout; + private Integer unhealthyThreshold; + private GetLoadBalancerHealthCheck() {} public Integer healthyThreshold() { return this.healthyThreshold; } @@ -53,18 +40,14 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer healthyThreshold; private Integer interval; private String target; private Integer timeout; private Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerHealthCheck defaults) { Objects.requireNonNull(defaults); this.healthyThreshold = defaults.healthyThreshold; @@ -74,27 +57,39 @@ public Builder(GetLoadBalancerHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder healthyThreshold(Integer healthyThreshold) { this.healthyThreshold = Objects.requireNonNull(healthyThreshold); return this; } + @CustomType.Setter public Builder interval(Integer interval) { this.interval = Objects.requireNonNull(interval); return this; } + @CustomType.Setter public Builder target(String target) { this.target = Objects.requireNonNull(target); return this; } + @CustomType.Setter public Builder timeout(Integer timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } + @CustomType.Setter public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.unhealthyThreshold = Objects.requireNonNull(unhealthyThreshold); return this; - } public GetLoadBalancerHealthCheck build() { - return new GetLoadBalancerHealthCheck(healthyThreshold, interval, target, timeout, unhealthyThreshold); + } + public GetLoadBalancerHealthCheck build() { + final var o = new GetLoadBalancerHealthCheck(); + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.target = target; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerListener.java b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerListener.java index 0af4eb26444..ac980715ae3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerListener.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerListener.java @@ -10,26 +10,13 @@ @CustomType public final class GetLoadBalancerListener { - private final Integer instancePort; - private final String instanceProtocol; - private final Integer lbPort; - private final String lbProtocol; - private final String sslCertificateId; - - @CustomType.Constructor - private GetLoadBalancerListener( - @CustomType.Parameter("instancePort") Integer instancePort, - @CustomType.Parameter("instanceProtocol") String instanceProtocol, - @CustomType.Parameter("lbPort") Integer lbPort, - @CustomType.Parameter("lbProtocol") String lbProtocol, - @CustomType.Parameter("sslCertificateId") String sslCertificateId) { - this.instancePort = instancePort; - this.instanceProtocol = instanceProtocol; - this.lbPort = lbPort; - this.lbProtocol = lbProtocol; - this.sslCertificateId = sslCertificateId; - } + private Integer instancePort; + private String instanceProtocol; + private Integer lbPort; + private String lbProtocol; + private String sslCertificateId; + private GetLoadBalancerListener() {} public Integer instancePort() { return this.instancePort; } @@ -53,18 +40,14 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerListener defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer instancePort; private String instanceProtocol; private Integer lbPort; private String lbProtocol; private String sslCertificateId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerListener defaults) { Objects.requireNonNull(defaults); this.instancePort = defaults.instancePort; @@ -74,27 +57,39 @@ public Builder(GetLoadBalancerListener defaults) { this.sslCertificateId = defaults.sslCertificateId; } + @CustomType.Setter public Builder instancePort(Integer instancePort) { this.instancePort = Objects.requireNonNull(instancePort); return this; } + @CustomType.Setter public Builder instanceProtocol(String instanceProtocol) { this.instanceProtocol = Objects.requireNonNull(instanceProtocol); return this; } + @CustomType.Setter public Builder lbPort(Integer lbPort) { this.lbPort = Objects.requireNonNull(lbPort); return this; } + @CustomType.Setter public Builder lbProtocol(String lbProtocol) { this.lbProtocol = Objects.requireNonNull(lbProtocol); return this; } + @CustomType.Setter public Builder sslCertificateId(String sslCertificateId) { this.sslCertificateId = Objects.requireNonNull(sslCertificateId); return this; - } public GetLoadBalancerListener build() { - return new GetLoadBalancerListener(instancePort, instanceProtocol, lbPort, lbProtocol, sslCertificateId); + } + public GetLoadBalancerListener build() { + final var o = new GetLoadBalancerListener(); + o.instancePort = instancePort; + o.instanceProtocol = instanceProtocol; + o.lbPort = lbPort; + o.lbProtocol = lbProtocol; + o.sslCertificateId = sslCertificateId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerResult.java b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerResult.java index 668579aa820..d5680815362 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetLoadBalancerResult.java @@ -16,78 +16,33 @@ @CustomType public final class GetLoadBalancerResult { - private final GetLoadBalancerAccessLogs accessLogs; - private final String arn; - private final List availabilityZones; - private final Boolean connectionDraining; - private final Integer connectionDrainingTimeout; - private final Boolean crossZoneLoadBalancing; - private final String desyncMitigationMode; - private final String dnsName; - private final GetLoadBalancerHealthCheck healthCheck; + private GetLoadBalancerAccessLogs accessLogs; + private String arn; + private List availabilityZones; + private Boolean connectionDraining; + private Integer connectionDrainingTimeout; + private Boolean crossZoneLoadBalancing; + private String desyncMitigationMode; + private String dnsName; + private GetLoadBalancerHealthCheck healthCheck; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final Integer idleTimeout; - private final List instances; - private final Boolean internal; - private final List listeners; - private final String name; - private final List securityGroups; - private final String sourceSecurityGroup; - private final String sourceSecurityGroupId; - private final List subnets; - private final Map tags; - private final String zoneId; - - @CustomType.Constructor - private GetLoadBalancerResult( - @CustomType.Parameter("accessLogs") GetLoadBalancerAccessLogs accessLogs, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("connectionDraining") Boolean connectionDraining, - @CustomType.Parameter("connectionDrainingTimeout") Integer connectionDrainingTimeout, - @CustomType.Parameter("crossZoneLoadBalancing") Boolean crossZoneLoadBalancing, - @CustomType.Parameter("desyncMitigationMode") String desyncMitigationMode, - @CustomType.Parameter("dnsName") String dnsName, - @CustomType.Parameter("healthCheck") GetLoadBalancerHealthCheck healthCheck, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("idleTimeout") Integer idleTimeout, - @CustomType.Parameter("instances") List instances, - @CustomType.Parameter("internal") Boolean internal, - @CustomType.Parameter("listeners") List listeners, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("sourceSecurityGroup") String sourceSecurityGroup, - @CustomType.Parameter("sourceSecurityGroupId") String sourceSecurityGroupId, - @CustomType.Parameter("subnets") List subnets, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("zoneId") String zoneId) { - this.accessLogs = accessLogs; - this.arn = arn; - this.availabilityZones = availabilityZones; - this.connectionDraining = connectionDraining; - this.connectionDrainingTimeout = connectionDrainingTimeout; - this.crossZoneLoadBalancing = crossZoneLoadBalancing; - this.desyncMitigationMode = desyncMitigationMode; - this.dnsName = dnsName; - this.healthCheck = healthCheck; - this.id = id; - this.idleTimeout = idleTimeout; - this.instances = instances; - this.internal = internal; - this.listeners = listeners; - this.name = name; - this.securityGroups = securityGroups; - this.sourceSecurityGroup = sourceSecurityGroup; - this.sourceSecurityGroupId = sourceSecurityGroupId; - this.subnets = subnets; - this.tags = tags; - this.zoneId = zoneId; - } + private String id; + private Integer idleTimeout; + private List instances; + private Boolean internal; + private List listeners; + private String name; + private List securityGroups; + private String sourceSecurityGroup; + private String sourceSecurityGroupId; + private List subnets; + private Map tags; + private String zoneId; + private GetLoadBalancerResult() {} public GetLoadBalancerAccessLogs accessLogs() { return this.accessLogs; } @@ -163,7 +118,7 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GetLoadBalancerAccessLogs accessLogs; private String arn; @@ -186,11 +141,7 @@ public static final class Builder { private List subnets; private Map tags; private String zoneId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerResult defaults) { Objects.requireNonNull(defaults); this.accessLogs = defaults.accessLogs; @@ -216,14 +167,17 @@ public Builder(GetLoadBalancerResult defaults) { this.zoneId = defaults.zoneId; } + @CustomType.Setter public Builder accessLogs(GetLoadBalancerAccessLogs accessLogs) { this.accessLogs = Objects.requireNonNull(accessLogs); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -231,38 +185,47 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder connectionDraining(Boolean connectionDraining) { this.connectionDraining = Objects.requireNonNull(connectionDraining); return this; } + @CustomType.Setter public Builder connectionDrainingTimeout(Integer connectionDrainingTimeout) { this.connectionDrainingTimeout = Objects.requireNonNull(connectionDrainingTimeout); return this; } + @CustomType.Setter public Builder crossZoneLoadBalancing(Boolean crossZoneLoadBalancing) { this.crossZoneLoadBalancing = Objects.requireNonNull(crossZoneLoadBalancing); return this; } + @CustomType.Setter public Builder desyncMitigationMode(String desyncMitigationMode) { this.desyncMitigationMode = Objects.requireNonNull(desyncMitigationMode); return this; } + @CustomType.Setter public Builder dnsName(String dnsName) { this.dnsName = Objects.requireNonNull(dnsName); return this; } + @CustomType.Setter public Builder healthCheck(GetLoadBalancerHealthCheck healthCheck) { this.healthCheck = Objects.requireNonNull(healthCheck); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder idleTimeout(Integer idleTimeout) { this.idleTimeout = Objects.requireNonNull(idleTimeout); return this; } + @CustomType.Setter public Builder instances(List instances) { this.instances = Objects.requireNonNull(instances); return this; @@ -270,10 +233,12 @@ public Builder instances(List instances) { public Builder instances(String... instances) { return instances(List.of(instances)); } + @CustomType.Setter public Builder internal(Boolean internal) { this.internal = Objects.requireNonNull(internal); return this; } + @CustomType.Setter public Builder listeners(List listeners) { this.listeners = Objects.requireNonNull(listeners); return this; @@ -281,10 +246,12 @@ public Builder listeners(List listeners) { public Builder listeners(GetLoadBalancerListener... listeners) { return listeners(List.of(listeners)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -292,14 +259,17 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder sourceSecurityGroup(String sourceSecurityGroup) { this.sourceSecurityGroup = Objects.requireNonNull(sourceSecurityGroup); return this; } + @CustomType.Setter public Builder sourceSecurityGroupId(String sourceSecurityGroupId) { this.sourceSecurityGroupId = Objects.requireNonNull(sourceSecurityGroupId); return this; } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; @@ -307,15 +277,40 @@ public Builder subnets(List subnets) { public Builder subnets(String... subnets) { return subnets(List.of(subnets)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder zoneId(String zoneId) { this.zoneId = Objects.requireNonNull(zoneId); return this; - } public GetLoadBalancerResult build() { - return new GetLoadBalancerResult(accessLogs, arn, availabilityZones, connectionDraining, connectionDrainingTimeout, crossZoneLoadBalancing, desyncMitigationMode, dnsName, healthCheck, id, idleTimeout, instances, internal, listeners, name, securityGroups, sourceSecurityGroup, sourceSecurityGroupId, subnets, tags, zoneId); + } + public GetLoadBalancerResult build() { + final var o = new GetLoadBalancerResult(); + o.accessLogs = accessLogs; + o.arn = arn; + o.availabilityZones = availabilityZones; + o.connectionDraining = connectionDraining; + o.connectionDrainingTimeout = connectionDrainingTimeout; + o.crossZoneLoadBalancing = crossZoneLoadBalancing; + o.desyncMitigationMode = desyncMitigationMode; + o.dnsName = dnsName; + o.healthCheck = healthCheck; + o.id = id; + o.idleTimeout = idleTimeout; + o.instances = instances; + o.internal = internal; + o.listeners = listeners; + o.name = name; + o.securityGroups = securityGroups; + o.sourceSecurityGroup = sourceSecurityGroup; + o.sourceSecurityGroupId = sourceSecurityGroupId; + o.subnets = subnets; + o.tags = tags; + o.zoneId = zoneId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetServiceAccountResult.java b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetServiceAccountResult.java index abf051b0e0b..7b1e73af1e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetServiceAccountResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/GetServiceAccountResult.java @@ -15,24 +15,15 @@ public final class GetServiceAccountResult { * @return The ARN of the AWS ELB service account in the selected region. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String region; - - @CustomType.Constructor - private GetServiceAccountResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("region") @Nullable String region) { - this.arn = arn; - this.id = id; - this.region = region; - } + private String id; + private @Nullable String region; + private GetServiceAccountResult() {} /** * @return The ARN of the AWS ELB service account in the selected region. * @@ -58,16 +49,12 @@ public static Builder builder() { public static Builder builder(GetServiceAccountResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private @Nullable String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceAccountResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -75,19 +62,27 @@ public Builder(GetServiceAccountResult defaults) { this.region = defaults.region; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; - } public GetServiceAccountResult build() { - return new GetServiceAccountResult(arn, id, region); + } + public GetServiceAccountResult build() { + final var o = new GetServiceAccountResult(); + o.arn = arn; + o.id = id; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerAccessLogs.java b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerAccessLogs.java index f21fd77fe50..4c5475e7de2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerAccessLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerAccessLogs.java @@ -17,35 +17,24 @@ public final class LoadBalancerAccessLogs { * @return The S3 bucket name to store the logs in. * */ - private final String bucket; + private String bucket; /** * @return The S3 bucket prefix. Logs are stored in the root if not configured. * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Boolean to enable / disable `access_logs`. Default is `true` * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The publishing interval in minutes. Default: 60 minutes. * */ - private final @Nullable Integer interval; - - @CustomType.Constructor - private LoadBalancerAccessLogs( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("interval") @Nullable Integer interval) { - this.bucket = bucket; - this.bucketPrefix = bucketPrefix; - this.enabled = enabled; - this.interval = interval; - } + private @Nullable Integer interval; + private LoadBalancerAccessLogs() {} /** * @return The S3 bucket name to store the logs in. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(LoadBalancerAccessLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private @Nullable String bucketPrefix; private @Nullable Boolean enabled; private @Nullable Integer interval; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerAccessLogs defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -101,23 +86,33 @@ public Builder(LoadBalancerAccessLogs defaults) { this.interval = defaults.interval; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; - } public LoadBalancerAccessLogs build() { - return new LoadBalancerAccessLogs(bucket, bucketPrefix, enabled, interval); + } + public LoadBalancerAccessLogs build() { + final var o = new LoadBalancerAccessLogs(); + o.bucket = bucket; + o.bucketPrefix = bucketPrefix; + o.enabled = enabled; + o.interval = interval; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerHealthCheck.java index 4423dc138ce..8046a18b2d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerHealthCheck.java @@ -14,12 +14,12 @@ public final class LoadBalancerHealthCheck { * @return The number of checks before the instance is declared healthy. * */ - private final Integer healthyThreshold; + private Integer healthyThreshold; /** * @return The interval between checks. * */ - private final Integer interval; + private Integer interval; /** * @return The target of the check. Valid pattern is "${PROTOCOL}:${PORT}${PATH}", where PROTOCOL * values are: @@ -27,32 +27,19 @@ public final class LoadBalancerHealthCheck { * * `TCP`, `SSL` - PORT is required, PATH is not supported * */ - private final String target; + private String target; /** * @return The length of time before the check times out. * */ - private final Integer timeout; + private Integer timeout; /** * @return The number of checks before the instance is declared unhealthy. * */ - private final Integer unhealthyThreshold; - - @CustomType.Constructor - private LoadBalancerHealthCheck( - @CustomType.Parameter("healthyThreshold") Integer healthyThreshold, - @CustomType.Parameter("interval") Integer interval, - @CustomType.Parameter("target") String target, - @CustomType.Parameter("timeout") Integer timeout, - @CustomType.Parameter("unhealthyThreshold") Integer unhealthyThreshold) { - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.target = target; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private Integer unhealthyThreshold; + private LoadBalancerHealthCheck() {} /** * @return The number of checks before the instance is declared healthy. * @@ -99,18 +86,14 @@ public static Builder builder() { public static Builder builder(LoadBalancerHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer healthyThreshold; private Integer interval; private String target; private Integer timeout; private Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerHealthCheck defaults) { Objects.requireNonNull(defaults); this.healthyThreshold = defaults.healthyThreshold; @@ -120,27 +103,39 @@ public Builder(LoadBalancerHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder healthyThreshold(Integer healthyThreshold) { this.healthyThreshold = Objects.requireNonNull(healthyThreshold); return this; } + @CustomType.Setter public Builder interval(Integer interval) { this.interval = Objects.requireNonNull(interval); return this; } + @CustomType.Setter public Builder target(String target) { this.target = Objects.requireNonNull(target); return this; } + @CustomType.Setter public Builder timeout(Integer timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } + @CustomType.Setter public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.unhealthyThreshold = Objects.requireNonNull(unhealthyThreshold); return this; - } public LoadBalancerHealthCheck build() { - return new LoadBalancerHealthCheck(healthyThreshold, interval, target, timeout, unhealthyThreshold); + } + public LoadBalancerHealthCheck build() { + final var o = new LoadBalancerHealthCheck(); + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.target = target; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerListener.java b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerListener.java index 4bf2b5013c8..3f14c68b4cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerListener.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerListener.java @@ -16,45 +16,32 @@ public final class LoadBalancerListener { * @return The port on the instance to route to * */ - private final Integer instancePort; + private Integer instancePort; /** * @return The protocol to use to the instance. Valid * values are `HTTP`, `HTTPS`, `TCP`, or `SSL` * */ - private final String instanceProtocol; + private String instanceProtocol; /** * @return The port to listen on for the load balancer * */ - private final Integer lbPort; + private Integer lbPort; /** * @return The protocol to listen on. Valid values are `HTTP`, * `HTTPS`, `TCP`, or `SSL` * */ - private final String lbProtocol; + private String lbProtocol; /** * @return The ARN of an SSL certificate you have * uploaded to AWS IAM. **Note ECDSA-specific restrictions below. Only valid when `lb_protocol` is either HTTPS or SSL** * */ - private final @Nullable String sslCertificateId; - - @CustomType.Constructor - private LoadBalancerListener( - @CustomType.Parameter("instancePort") Integer instancePort, - @CustomType.Parameter("instanceProtocol") String instanceProtocol, - @CustomType.Parameter("lbPort") Integer lbPort, - @CustomType.Parameter("lbProtocol") String lbProtocol, - @CustomType.Parameter("sslCertificateId") @Nullable String sslCertificateId) { - this.instancePort = instancePort; - this.instanceProtocol = instanceProtocol; - this.lbPort = lbPort; - this.lbProtocol = lbProtocol; - this.sslCertificateId = sslCertificateId; - } + private @Nullable String sslCertificateId; + private LoadBalancerListener() {} /** * @return The port on the instance to route to * @@ -101,18 +88,14 @@ public static Builder builder() { public static Builder builder(LoadBalancerListener defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer instancePort; private String instanceProtocol; private Integer lbPort; private String lbProtocol; private @Nullable String sslCertificateId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerListener defaults) { Objects.requireNonNull(defaults); this.instancePort = defaults.instancePort; @@ -122,27 +105,39 @@ public Builder(LoadBalancerListener defaults) { this.sslCertificateId = defaults.sslCertificateId; } + @CustomType.Setter public Builder instancePort(Integer instancePort) { this.instancePort = Objects.requireNonNull(instancePort); return this; } + @CustomType.Setter public Builder instanceProtocol(String instanceProtocol) { this.instanceProtocol = Objects.requireNonNull(instanceProtocol); return this; } + @CustomType.Setter public Builder lbPort(Integer lbPort) { this.lbPort = Objects.requireNonNull(lbPort); return this; } + @CustomType.Setter public Builder lbProtocol(String lbProtocol) { this.lbProtocol = Objects.requireNonNull(lbProtocol); return this; } + @CustomType.Setter public Builder sslCertificateId(@Nullable String sslCertificateId) { this.sslCertificateId = sslCertificateId; return this; - } public LoadBalancerListener build() { - return new LoadBalancerListener(instancePort, instanceProtocol, lbPort, lbProtocol, sslCertificateId); + } + public LoadBalancerListener build() { + final var o = new LoadBalancerListener(); + o.instancePort = instancePort; + o.instanceProtocol = instanceProtocol; + o.lbPort = lbPort; + o.lbProtocol = lbProtocol; + o.sslCertificateId = sslCertificateId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerPolicyPolicyAttribute.java b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerPolicyPolicyAttribute.java index 531b2cce3fa..a7eaa4b253c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerPolicyPolicyAttribute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/LoadBalancerPolicyPolicyAttribute.java @@ -11,17 +11,10 @@ @CustomType public final class LoadBalancerPolicyPolicyAttribute { - private final @Nullable String name; - private final @Nullable String value; - - @CustomType.Constructor - private LoadBalancerPolicyPolicyAttribute( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("value") @Nullable String value) { - this.name = name; - this.value = value; - } + private @Nullable String name; + private @Nullable String value; + private LoadBalancerPolicyPolicyAttribute() {} public Optional name() { return Optional.ofNullable(this.name); } @@ -36,30 +29,32 @@ public static Builder builder() { public static Builder builder(LoadBalancerPolicyPolicyAttribute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerPolicyPolicyAttribute defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public LoadBalancerPolicyPolicyAttribute build() { - return new LoadBalancerPolicyPolicyAttribute(name, value); + } + public LoadBalancerPolicyPolicyAttribute build() { + final var o = new LoadBalancerPolicyPolicyAttribute(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/SslNegotiationPolicyAttribute.java b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/SslNegotiationPolicyAttribute.java index b65e37d1f7c..e4021a50351 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/SslNegotiationPolicyAttribute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/elb/outputs/SslNegotiationPolicyAttribute.java @@ -13,21 +13,14 @@ public final class SslNegotiationPolicyAttribute { * @return The name of the attribute * */ - private final String name; + private String name; /** * @return The value of the attribute * */ - private final String value; - - @CustomType.Constructor - private SslNegotiationPolicyAttribute( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private SslNegotiationPolicyAttribute() {} /** * @return The name of the attribute * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(SslNegotiationPolicyAttribute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SslNegotiationPolicyAttribute defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public SslNegotiationPolicyAttribute build() { - return new SslNegotiationPolicyAttribute(name, value); + } + public SslNegotiationPolicyAttribute build() { + final var o = new SslNegotiationPolicyAttribute(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterAutoTerminationPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterAutoTerminationPolicy.java index f6c4d61ccdf..68a746c56ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterAutoTerminationPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterAutoTerminationPolicy.java @@ -15,13 +15,9 @@ public final class ClusterAutoTerminationPolicy { * @return Specifies the amount of idle time in seconds after which the cluster automatically terminates. You can specify a minimum of `60` seconds and a maximum of `604800` seconds (seven days). * */ - private final @Nullable Integer idleTimeout; - - @CustomType.Constructor - private ClusterAutoTerminationPolicy(@CustomType.Parameter("idleTimeout") @Nullable Integer idleTimeout) { - this.idleTimeout = idleTimeout; - } + private @Nullable Integer idleTimeout; + private ClusterAutoTerminationPolicy() {} /** * @return Specifies the amount of idle time in seconds after which the cluster automatically terminates. You can specify a minimum of `60` seconds and a maximum of `604800` seconds (seven days). * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ClusterAutoTerminationPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer idleTimeout; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterAutoTerminationPolicy defaults) { Objects.requireNonNull(defaults); this.idleTimeout = defaults.idleTimeout; } + @CustomType.Setter public Builder idleTimeout(@Nullable Integer idleTimeout) { this.idleTimeout = idleTimeout; return this; - } public ClusterAutoTerminationPolicy build() { - return new ClusterAutoTerminationPolicy(idleTimeout); + } + public ClusterAutoTerminationPolicy build() { + final var o = new ClusterAutoTerminationPolicy(); + o.idleTimeout = idleTimeout; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterBootstrapAction.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterBootstrapAction.java index df88b61a309..22d7baeba7a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterBootstrapAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterBootstrapAction.java @@ -15,28 +15,19 @@ public final class ClusterBootstrapAction { * @return List of command line arguments passed to the JAR file's main function when executed. * */ - private final @Nullable List args; + private @Nullable List args; /** * @return Name of the step. * */ - private final String name; + private String name; /** * @return Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system. * */ - private final String path; - - @CustomType.Constructor - private ClusterBootstrapAction( - @CustomType.Parameter("args") @Nullable List args, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("path") String path) { - this.args = args; - this.name = name; - this.path = path; - } + private String path; + private ClusterBootstrapAction() {} /** * @return List of command line arguments passed to the JAR file's main function when executed. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ClusterBootstrapAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List args; private String name; private String path; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterBootstrapAction defaults) { Objects.requireNonNull(defaults); this.args = defaults.args; @@ -83,6 +70,7 @@ public Builder(ClusterBootstrapAction defaults) { this.path = defaults.path; } + @CustomType.Setter public Builder args(@Nullable List args) { this.args = args; return this; @@ -90,15 +78,22 @@ public Builder args(@Nullable List args) { public Builder args(String... args) { return args(List.of(args)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; - } public ClusterBootstrapAction build() { - return new ClusterBootstrapAction(args, name, path); + } + public ClusterBootstrapAction build() { + final var o = new ClusterBootstrapAction(); + o.args = args; + o.name = name; + o.path = path; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleet.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleet.java index 6a7c9a1fb83..49a59b98cfb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleet.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleet.java @@ -19,55 +19,36 @@ public final class ClusterCoreInstanceFleet { * @return ID of the cluster. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Configuration block for instance fleet. * */ - private final @Nullable List instanceTypeConfigs; + private @Nullable List instanceTypeConfigs; /** * @return Configuration block for launch specification. * */ - private final @Nullable ClusterCoreInstanceFleetLaunchSpecifications launchSpecifications; + private @Nullable ClusterCoreInstanceFleetLaunchSpecifications launchSpecifications; /** * @return Name of the step. * */ - private final @Nullable String name; - private final @Nullable Integer provisionedOnDemandCapacity; - private final @Nullable Integer provisionedSpotCapacity; + private @Nullable String name; + private @Nullable Integer provisionedOnDemandCapacity; + private @Nullable Integer provisionedSpotCapacity; /** * @return Target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision. * */ - private final @Nullable Integer targetOnDemandCapacity; + private @Nullable Integer targetOnDemandCapacity; /** * @return Target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. * */ - private final @Nullable Integer targetSpotCapacity; - - @CustomType.Constructor - private ClusterCoreInstanceFleet( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("instanceTypeConfigs") @Nullable List instanceTypeConfigs, - @CustomType.Parameter("launchSpecifications") @Nullable ClusterCoreInstanceFleetLaunchSpecifications launchSpecifications, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("provisionedOnDemandCapacity") @Nullable Integer provisionedOnDemandCapacity, - @CustomType.Parameter("provisionedSpotCapacity") @Nullable Integer provisionedSpotCapacity, - @CustomType.Parameter("targetOnDemandCapacity") @Nullable Integer targetOnDemandCapacity, - @CustomType.Parameter("targetSpotCapacity") @Nullable Integer targetSpotCapacity) { - this.id = id; - this.instanceTypeConfigs = instanceTypeConfigs; - this.launchSpecifications = launchSpecifications; - this.name = name; - this.provisionedOnDemandCapacity = provisionedOnDemandCapacity; - this.provisionedSpotCapacity = provisionedSpotCapacity; - this.targetOnDemandCapacity = targetOnDemandCapacity; - this.targetSpotCapacity = targetSpotCapacity; - } + private @Nullable Integer targetSpotCapacity; + private ClusterCoreInstanceFleet() {} /** * @return ID of the cluster. * @@ -124,7 +105,7 @@ public static Builder builder() { public static Builder builder(ClusterCoreInstanceFleet defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private @Nullable List instanceTypeConfigs; @@ -134,11 +115,7 @@ public static final class Builder { private @Nullable Integer provisionedSpotCapacity; private @Nullable Integer targetOnDemandCapacity; private @Nullable Integer targetSpotCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterCoreInstanceFleet defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -151,10 +128,12 @@ public Builder(ClusterCoreInstanceFleet defaults) { this.targetSpotCapacity = defaults.targetSpotCapacity; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder instanceTypeConfigs(@Nullable List instanceTypeConfigs) { this.instanceTypeConfigs = instanceTypeConfigs; return this; @@ -162,31 +141,47 @@ public Builder instanceTypeConfigs(@Nullable List configurations; + private @Nullable List configurations; /** * @return Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below. * */ - private final @Nullable List ebsConfigs; + private @Nullable List ebsConfigs; /** * @return EC2 instance type for all instances in the instance group. * */ - private final String instanceType; + private String instanceType; /** * @return Number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in `aws.emr.InstanceFleet`. * */ - private final @Nullable Integer weightedCapacity; - - @CustomType.Constructor - private ClusterCoreInstanceFleetInstanceTypeConfig( - @CustomType.Parameter("bidPrice") @Nullable String bidPrice, - @CustomType.Parameter("bidPriceAsPercentageOfOnDemandPrice") @Nullable Double bidPriceAsPercentageOfOnDemandPrice, - @CustomType.Parameter("configurations") @Nullable List configurations, - @CustomType.Parameter("ebsConfigs") @Nullable List ebsConfigs, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("weightedCapacity") @Nullable Integer weightedCapacity) { - this.bidPrice = bidPrice; - this.bidPriceAsPercentageOfOnDemandPrice = bidPriceAsPercentageOfOnDemandPrice; - this.configurations = configurations; - this.ebsConfigs = ebsConfigs; - this.instanceType = instanceType; - this.weightedCapacity = weightedCapacity; - } + private @Nullable Integer weightedCapacity; + private ClusterCoreInstanceFleetInstanceTypeConfig() {} /** * @return Bid price for each EC2 instance in the instance group, expressed in USD. By setting this attribute, the instance group is being declared as a Spot Instance, and will implicitly create a Spot request. Leave this blank to use On-Demand Instances. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(ClusterCoreInstanceFleetInstanceTypeConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bidPrice; private @Nullable Double bidPriceAsPercentageOfOnDemandPrice; @@ -121,11 +106,7 @@ public static final class Builder { private @Nullable List ebsConfigs; private String instanceType; private @Nullable Integer weightedCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterCoreInstanceFleetInstanceTypeConfig defaults) { Objects.requireNonNull(defaults); this.bidPrice = defaults.bidPrice; @@ -136,14 +117,17 @@ public Builder(ClusterCoreInstanceFleetInstanceTypeConfig defaults) { this.weightedCapacity = defaults.weightedCapacity; } + @CustomType.Setter public Builder bidPrice(@Nullable String bidPrice) { this.bidPrice = bidPrice; return this; } + @CustomType.Setter public Builder bidPriceAsPercentageOfOnDemandPrice(@Nullable Double bidPriceAsPercentageOfOnDemandPrice) { this.bidPriceAsPercentageOfOnDemandPrice = bidPriceAsPercentageOfOnDemandPrice; return this; } + @CustomType.Setter public Builder configurations(@Nullable List configurations) { this.configurations = configurations; return this; @@ -151,6 +135,7 @@ public Builder configurations(@Nullable List ebsConfigs) { this.ebsConfigs = ebsConfigs; return this; @@ -158,15 +143,25 @@ public Builder ebsConfigs(@Nullable List properties; - - @CustomType.Constructor - private ClusterCoreInstanceFleetInstanceTypeConfigConfiguration( - @CustomType.Parameter("classification") @Nullable String classification, - @CustomType.Parameter("properties") @Nullable Map properties) { - this.classification = classification; - this.properties = properties; - } + private @Nullable Map properties; + private ClusterCoreInstanceFleetInstanceTypeConfigConfiguration() {} /** * @return Classification within a configuration. * @@ -54,30 +47,32 @@ public static Builder builder() { public static Builder builder(ClusterCoreInstanceFleetInstanceTypeConfigConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String classification; private @Nullable Map properties; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterCoreInstanceFleetInstanceTypeConfigConfiguration defaults) { Objects.requireNonNull(defaults); this.classification = defaults.classification; this.properties = defaults.properties; } + @CustomType.Setter public Builder classification(@Nullable String classification) { this.classification = classification; return this; } + @CustomType.Setter public Builder properties(@Nullable Map properties) { this.properties = properties; return this; - } public ClusterCoreInstanceFleetInstanceTypeConfigConfiguration build() { - return new ClusterCoreInstanceFleetInstanceTypeConfigConfiguration(classification, properties); + } + public ClusterCoreInstanceFleetInstanceTypeConfigConfiguration build() { + final var o = new ClusterCoreInstanceFleetInstanceTypeConfigConfiguration(); + o.classification = classification; + o.properties = properties; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig.java index 106eaff6927..5514c0c7ab8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig.java @@ -16,35 +16,24 @@ public final class ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig { * @return Number of I/O operations per second (IOPS) that the volume supports. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return Volume size, in gibibytes (GiB). * */ - private final Integer size; + private Integer size; /** * @return Volume type. Valid options are `gp3`, `gp2`, `io1`, `standard`, `st1` and `sc1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html). * */ - private final String type; + private String type; /** * @return Number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1). * */ - private final @Nullable Integer volumesPerInstance; - - @CustomType.Constructor - private ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig( - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("volumesPerInstance") @Nullable Integer volumesPerInstance) { - this.iops = iops; - this.size = size; - this.type = type; - this.volumesPerInstance = volumesPerInstance; - } + private @Nullable Integer volumesPerInstance; + private ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig() {} /** * @return Number of I/O operations per second (IOPS) that the volume supports. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer iops; private Integer size; private String type; private @Nullable Integer volumesPerInstance; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig defaults) { Objects.requireNonNull(defaults); this.iops = defaults.iops; @@ -100,23 +85,33 @@ public Builder(ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig defaults) { this.volumesPerInstance = defaults.volumesPerInstance; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder volumesPerInstance(@Nullable Integer volumesPerInstance) { this.volumesPerInstance = volumesPerInstance; return this; - } public ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig build() { - return new ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig(iops, size, type, volumesPerInstance); + } + public ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig build() { + final var o = new ClusterCoreInstanceFleetInstanceTypeConfigEbsConfig(); + o.iops = iops; + o.size = size; + o.type = type; + o.volumesPerInstance = volumesPerInstance; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetLaunchSpecifications.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetLaunchSpecifications.java index 2dc6ccef970..5eed9fc486f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetLaunchSpecifications.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetLaunchSpecifications.java @@ -16,21 +16,14 @@ public final class ClusterCoreInstanceFleetLaunchSpecifications { * @return Configuration block for on demand instances launch specifications. * */ - private final @Nullable List onDemandSpecifications; + private @Nullable List onDemandSpecifications; /** * @return Configuration block for spot instances launch specifications. * */ - private final @Nullable List spotSpecifications; - - @CustomType.Constructor - private ClusterCoreInstanceFleetLaunchSpecifications( - @CustomType.Parameter("onDemandSpecifications") @Nullable List onDemandSpecifications, - @CustomType.Parameter("spotSpecifications") @Nullable List spotSpecifications) { - this.onDemandSpecifications = onDemandSpecifications; - this.spotSpecifications = spotSpecifications; - } + private @Nullable List spotSpecifications; + private ClusterCoreInstanceFleetLaunchSpecifications() {} /** * @return Configuration block for on demand instances launch specifications. * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(ClusterCoreInstanceFleetLaunchSpecifications defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List onDemandSpecifications; private @Nullable List spotSpecifications; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterCoreInstanceFleetLaunchSpecifications defaults) { Objects.requireNonNull(defaults); this.onDemandSpecifications = defaults.onDemandSpecifications; this.spotSpecifications = defaults.spotSpecifications; } + @CustomType.Setter public Builder onDemandSpecifications(@Nullable List onDemandSpecifications) { this.onDemandSpecifications = onDemandSpecifications; return this; @@ -75,14 +65,19 @@ public Builder onDemandSpecifications(@Nullable List spotSpecifications) { this.spotSpecifications = spotSpecifications; return this; } public Builder spotSpecifications(ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification... spotSpecifications) { return spotSpecifications(List.of(spotSpecifications)); - } public ClusterCoreInstanceFleetLaunchSpecifications build() { - return new ClusterCoreInstanceFleetLaunchSpecifications(onDemandSpecifications, spotSpecifications); + } + public ClusterCoreInstanceFleetLaunchSpecifications build() { + final var o = new ClusterCoreInstanceFleetLaunchSpecifications(); + o.onDemandSpecifications = onDemandSpecifications; + o.spotSpecifications = spotSpecifications; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification.java index 79763f872e7..4fa50dd562e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification.java @@ -13,13 +13,9 @@ public final class ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecifica * @return Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching. * */ - private final String allocationStrategy; - - @CustomType.Constructor - private ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification(@CustomType.Parameter("allocationStrategy") String allocationStrategy) { - this.allocationStrategy = allocationStrategy; - } + private String allocationStrategy; + private ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification() {} /** * @return Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String allocationStrategy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification defaults) { Objects.requireNonNull(defaults); this.allocationStrategy = defaults.allocationStrategy; } + @CustomType.Setter public Builder allocationStrategy(String allocationStrategy) { this.allocationStrategy = Objects.requireNonNull(allocationStrategy); return this; - } public ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification build() { - return new ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification(allocationStrategy); + } + public ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification build() { + final var o = new ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecification(); + o.allocationStrategy = allocationStrategy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification.java index 378ce0aefd2..32850f92009 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification.java @@ -16,35 +16,24 @@ public final class ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification * @return Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching. * */ - private final String allocationStrategy; + private String allocationStrategy; /** * @return Defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates. * */ - private final @Nullable Integer blockDurationMinutes; + private @Nullable Integer blockDurationMinutes; /** * @return Action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are `TERMINATE_CLUSTER` and `SWITCH_TO_ON_DEMAND`. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity. * */ - private final String timeoutAction; + private String timeoutAction; /** * @return Spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created. * */ - private final Integer timeoutDurationMinutes; - - @CustomType.Constructor - private ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification( - @CustomType.Parameter("allocationStrategy") String allocationStrategy, - @CustomType.Parameter("blockDurationMinutes") @Nullable Integer blockDurationMinutes, - @CustomType.Parameter("timeoutAction") String timeoutAction, - @CustomType.Parameter("timeoutDurationMinutes") Integer timeoutDurationMinutes) { - this.allocationStrategy = allocationStrategy; - this.blockDurationMinutes = blockDurationMinutes; - this.timeoutAction = timeoutAction; - this.timeoutDurationMinutes = timeoutDurationMinutes; - } + private Integer timeoutDurationMinutes; + private ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification() {} /** * @return Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String allocationStrategy; private @Nullable Integer blockDurationMinutes; private String timeoutAction; private Integer timeoutDurationMinutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification defaults) { Objects.requireNonNull(defaults); this.allocationStrategy = defaults.allocationStrategy; @@ -100,23 +85,33 @@ public Builder(ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification def this.timeoutDurationMinutes = defaults.timeoutDurationMinutes; } + @CustomType.Setter public Builder allocationStrategy(String allocationStrategy) { this.allocationStrategy = Objects.requireNonNull(allocationStrategy); return this; } + @CustomType.Setter public Builder blockDurationMinutes(@Nullable Integer blockDurationMinutes) { this.blockDurationMinutes = blockDurationMinutes; return this; } + @CustomType.Setter public Builder timeoutAction(String timeoutAction) { this.timeoutAction = Objects.requireNonNull(timeoutAction); return this; } + @CustomType.Setter public Builder timeoutDurationMinutes(Integer timeoutDurationMinutes) { this.timeoutDurationMinutes = Objects.requireNonNull(timeoutDurationMinutes); return this; - } public ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification build() { - return new ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification(allocationStrategy, blockDurationMinutes, timeoutAction, timeoutDurationMinutes); + } + public ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification build() { + final var o = new ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecification(); + o.allocationStrategy = allocationStrategy; + o.blockDurationMinutes = blockDurationMinutes; + o.timeoutAction = timeoutAction; + o.timeoutDurationMinutes = timeoutDurationMinutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceGroup.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceGroup.java index 9edc3bd63ab..0b0782cb33b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceGroup.java @@ -18,56 +18,39 @@ public final class ClusterCoreInstanceGroup { * @return String containing the [EMR Auto Scaling Policy](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-automatic-scaling.html) JSON. * */ - private final @Nullable String autoscalingPolicy; + private @Nullable String autoscalingPolicy; /** * @return Bid price for each EC2 instance in the instance group, expressed in USD. By setting this attribute, the instance group is being declared as a Spot Instance, and will implicitly create a Spot request. Leave this blank to use On-Demand Instances. * */ - private final @Nullable String bidPrice; + private @Nullable String bidPrice; /** * @return Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below. * */ - private final @Nullable List ebsConfigs; + private @Nullable List ebsConfigs; /** * @return ID of the cluster. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Target number of instances for the instance group. Must be 1 or 3. Defaults to 1. Launching with multiple master nodes is only supported in EMR version 5.23.0+, and requires this resource's `core_instance_group` to be configured. Public (Internet accessible) instances must be created in VPC subnets that have map public IP on launch enabled. Termination protection is automatically enabled when launched with multiple master nodes and this provider must have the `termination_protection = false` configuration applied before destroying this resource. * */ - private final @Nullable Integer instanceCount; + private @Nullable Integer instanceCount; /** * @return EC2 instance type for all instances in the instance group. * */ - private final String instanceType; + private String instanceType; /** * @return Name of the step. * */ - private final @Nullable String name; - - @CustomType.Constructor - private ClusterCoreInstanceGroup( - @CustomType.Parameter("autoscalingPolicy") @Nullable String autoscalingPolicy, - @CustomType.Parameter("bidPrice") @Nullable String bidPrice, - @CustomType.Parameter("ebsConfigs") @Nullable List ebsConfigs, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("instanceCount") @Nullable Integer instanceCount, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("name") @Nullable String name) { - this.autoscalingPolicy = autoscalingPolicy; - this.bidPrice = bidPrice; - this.ebsConfigs = ebsConfigs; - this.id = id; - this.instanceCount = instanceCount; - this.instanceType = instanceType; - this.name = name; - } + private @Nullable String name; + private ClusterCoreInstanceGroup() {} /** * @return String containing the [EMR Auto Scaling Policy](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-automatic-scaling.html) JSON. * @@ -125,7 +108,7 @@ public static Builder builder() { public static Builder builder(ClusterCoreInstanceGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String autoscalingPolicy; private @Nullable String bidPrice; @@ -134,11 +117,7 @@ public static final class Builder { private @Nullable Integer instanceCount; private String instanceType; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterCoreInstanceGroup defaults) { Objects.requireNonNull(defaults); this.autoscalingPolicy = defaults.autoscalingPolicy; @@ -150,14 +129,17 @@ public Builder(ClusterCoreInstanceGroup defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder autoscalingPolicy(@Nullable String autoscalingPolicy) { this.autoscalingPolicy = autoscalingPolicy; return this; } + @CustomType.Setter public Builder bidPrice(@Nullable String bidPrice) { this.bidPrice = bidPrice; return this; } + @CustomType.Setter public Builder ebsConfigs(@Nullable List ebsConfigs) { this.ebsConfigs = ebsConfigs; return this; @@ -165,23 +147,36 @@ public Builder ebsConfigs(@Nullable List ebsC public Builder ebsConfigs(ClusterCoreInstanceGroupEbsConfig... ebsConfigs) { return ebsConfigs(List.of(ebsConfigs)); } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder instanceCount(@Nullable Integer instanceCount) { this.instanceCount = instanceCount; return this; } + @CustomType.Setter public Builder instanceType(String instanceType) { this.instanceType = Objects.requireNonNull(instanceType); return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public ClusterCoreInstanceGroup build() { - return new ClusterCoreInstanceGroup(autoscalingPolicy, bidPrice, ebsConfigs, id, instanceCount, instanceType, name); + } + public ClusterCoreInstanceGroup build() { + final var o = new ClusterCoreInstanceGroup(); + o.autoscalingPolicy = autoscalingPolicy; + o.bidPrice = bidPrice; + o.ebsConfigs = ebsConfigs; + o.id = id; + o.instanceCount = instanceCount; + o.instanceType = instanceType; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceGroupEbsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceGroupEbsConfig.java index 447020c5a39..bd37f2cd8cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceGroupEbsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterCoreInstanceGroupEbsConfig.java @@ -16,42 +16,29 @@ public final class ClusterCoreInstanceGroupEbsConfig { * @return Number of I/O operations per second (IOPS) that the volume supports. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return Volume size, in gibibytes (GiB). * */ - private final Integer size; + private Integer size; /** * @return The throughput, in mebibyte per second (MiB/s). * */ - private final @Nullable Integer throughput; + private @Nullable Integer throughput; /** * @return Volume type. Valid options are `gp3`, `gp2`, `io1`, `standard`, `st1` and `sc1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html). * */ - private final String type; + private String type; /** * @return Number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1). * */ - private final @Nullable Integer volumesPerInstance; - - @CustomType.Constructor - private ClusterCoreInstanceGroupEbsConfig( - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("volumesPerInstance") @Nullable Integer volumesPerInstance) { - this.iops = iops; - this.size = size; - this.throughput = throughput; - this.type = type; - this.volumesPerInstance = volumesPerInstance; - } + private @Nullable Integer volumesPerInstance; + private ClusterCoreInstanceGroupEbsConfig() {} /** * @return Number of I/O operations per second (IOPS) that the volume supports. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ClusterCoreInstanceGroupEbsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer iops; private Integer size; private @Nullable Integer throughput; private String type; private @Nullable Integer volumesPerInstance; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterCoreInstanceGroupEbsConfig defaults) { Objects.requireNonNull(defaults); this.iops = defaults.iops; @@ -116,27 +99,39 @@ public Builder(ClusterCoreInstanceGroupEbsConfig defaults) { this.volumesPerInstance = defaults.volumesPerInstance; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder volumesPerInstance(@Nullable Integer volumesPerInstance) { this.volumesPerInstance = volumesPerInstance; return this; - } public ClusterCoreInstanceGroupEbsConfig build() { - return new ClusterCoreInstanceGroupEbsConfig(iops, size, throughput, type, volumesPerInstance); + } + public ClusterCoreInstanceGroupEbsConfig build() { + final var o = new ClusterCoreInstanceGroupEbsConfig(); + o.iops = iops; + o.size = size; + o.throughput = throughput; + o.type = type; + o.volumesPerInstance = volumesPerInstance; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterEc2Attributes.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterEc2Attributes.java index 0571abb5f04..23213c844e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterEc2Attributes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterEc2Attributes.java @@ -16,70 +16,49 @@ public final class ClusterEc2Attributes { * @return String containing a comma separated list of additional Amazon EC2 security group IDs for the master node. * */ - private final @Nullable String additionalMasterSecurityGroups; + private @Nullable String additionalMasterSecurityGroups; /** * @return String containing a comma separated list of additional Amazon EC2 security group IDs for the slave nodes as a comma separated string. * */ - private final @Nullable String additionalSlaveSecurityGroups; + private @Nullable String additionalSlaveSecurityGroups; /** * @return Identifier of the Amazon EC2 EMR-Managed security group for the master node. * */ - private final @Nullable String emrManagedMasterSecurityGroup; + private @Nullable String emrManagedMasterSecurityGroup; /** * @return Identifier of the Amazon EC2 EMR-Managed security group for the slave nodes. * */ - private final @Nullable String emrManagedSlaveSecurityGroup; + private @Nullable String emrManagedSlaveSecurityGroup; /** * @return Instance Profile for EC2 instances of the cluster assume this role. * */ - private final String instanceProfile; + private String instanceProfile; /** * @return Amazon EC2 key pair that can be used to ssh to the master node as the user called `hadoop`. * */ - private final @Nullable String keyName; + private @Nullable String keyName; /** * @return Identifier of the Amazon EC2 service-access security group - required when the cluster runs on a private subnet. * */ - private final @Nullable String serviceAccessSecurityGroup; + private @Nullable String serviceAccessSecurityGroup; /** * @return VPC subnet id where you want the job flow to launch. Cannot specify the `cc1.4xlarge` instance type for nodes of a job flow launched in an Amazon VPC. * */ - private final @Nullable String subnetId; + private @Nullable String subnetId; /** * @return List of VPC subnet id-s where you want the job flow to launch. Amazon EMR identifies the best Availability Zone to launch instances according to your fleet specifications. * */ - private final @Nullable List subnetIds; - - @CustomType.Constructor - private ClusterEc2Attributes( - @CustomType.Parameter("additionalMasterSecurityGroups") @Nullable String additionalMasterSecurityGroups, - @CustomType.Parameter("additionalSlaveSecurityGroups") @Nullable String additionalSlaveSecurityGroups, - @CustomType.Parameter("emrManagedMasterSecurityGroup") @Nullable String emrManagedMasterSecurityGroup, - @CustomType.Parameter("emrManagedSlaveSecurityGroup") @Nullable String emrManagedSlaveSecurityGroup, - @CustomType.Parameter("instanceProfile") String instanceProfile, - @CustomType.Parameter("keyName") @Nullable String keyName, - @CustomType.Parameter("serviceAccessSecurityGroup") @Nullable String serviceAccessSecurityGroup, - @CustomType.Parameter("subnetId") @Nullable String subnetId, - @CustomType.Parameter("subnetIds") @Nullable List subnetIds) { - this.additionalMasterSecurityGroups = additionalMasterSecurityGroups; - this.additionalSlaveSecurityGroups = additionalSlaveSecurityGroups; - this.emrManagedMasterSecurityGroup = emrManagedMasterSecurityGroup; - this.emrManagedSlaveSecurityGroup = emrManagedSlaveSecurityGroup; - this.instanceProfile = instanceProfile; - this.keyName = keyName; - this.serviceAccessSecurityGroup = serviceAccessSecurityGroup; - this.subnetId = subnetId; - this.subnetIds = subnetIds; - } + private @Nullable List subnetIds; + private ClusterEc2Attributes() {} /** * @return String containing a comma separated list of additional Amazon EC2 security group IDs for the master node. * @@ -151,7 +130,7 @@ public static Builder builder() { public static Builder builder(ClusterEc2Attributes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String additionalMasterSecurityGroups; private @Nullable String additionalSlaveSecurityGroups; @@ -162,11 +141,7 @@ public static final class Builder { private @Nullable String serviceAccessSecurityGroup; private @Nullable String subnetId; private @Nullable List subnetIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterEc2Attributes defaults) { Objects.requireNonNull(defaults); this.additionalMasterSecurityGroups = defaults.additionalMasterSecurityGroups; @@ -180,46 +155,66 @@ public Builder(ClusterEc2Attributes defaults) { this.subnetIds = defaults.subnetIds; } + @CustomType.Setter public Builder additionalMasterSecurityGroups(@Nullable String additionalMasterSecurityGroups) { this.additionalMasterSecurityGroups = additionalMasterSecurityGroups; return this; } + @CustomType.Setter public Builder additionalSlaveSecurityGroups(@Nullable String additionalSlaveSecurityGroups) { this.additionalSlaveSecurityGroups = additionalSlaveSecurityGroups; return this; } + @CustomType.Setter public Builder emrManagedMasterSecurityGroup(@Nullable String emrManagedMasterSecurityGroup) { this.emrManagedMasterSecurityGroup = emrManagedMasterSecurityGroup; return this; } + @CustomType.Setter public Builder emrManagedSlaveSecurityGroup(@Nullable String emrManagedSlaveSecurityGroup) { this.emrManagedSlaveSecurityGroup = emrManagedSlaveSecurityGroup; return this; } + @CustomType.Setter public Builder instanceProfile(String instanceProfile) { this.instanceProfile = Objects.requireNonNull(instanceProfile); return this; } + @CustomType.Setter public Builder keyName(@Nullable String keyName) { this.keyName = keyName; return this; } + @CustomType.Setter public Builder serviceAccessSecurityGroup(@Nullable String serviceAccessSecurityGroup) { this.serviceAccessSecurityGroup = serviceAccessSecurityGroup; return this; } + @CustomType.Setter public Builder subnetId(@Nullable String subnetId) { this.subnetId = subnetId; return this; } + @CustomType.Setter public Builder subnetIds(@Nullable List subnetIds) { this.subnetIds = subnetIds; return this; } public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); - } public ClusterEc2Attributes build() { - return new ClusterEc2Attributes(additionalMasterSecurityGroups, additionalSlaveSecurityGroups, emrManagedMasterSecurityGroup, emrManagedSlaveSecurityGroup, instanceProfile, keyName, serviceAccessSecurityGroup, subnetId, subnetIds); + } + public ClusterEc2Attributes build() { + final var o = new ClusterEc2Attributes(); + o.additionalMasterSecurityGroups = additionalMasterSecurityGroups; + o.additionalSlaveSecurityGroups = additionalSlaveSecurityGroups; + o.emrManagedMasterSecurityGroup = emrManagedMasterSecurityGroup; + o.emrManagedSlaveSecurityGroup = emrManagedSlaveSecurityGroup; + o.instanceProfile = instanceProfile; + o.keyName = keyName; + o.serviceAccessSecurityGroup = serviceAccessSecurityGroup; + o.subnetId = subnetId; + o.subnetIds = subnetIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterKerberosAttributes.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterKerberosAttributes.java index c8708371f7a..49a3fa63ced 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterKerberosAttributes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterKerberosAttributes.java @@ -15,42 +15,29 @@ public final class ClusterKerberosAttributes { * @return Active Directory password for `ad_domain_join_user`. This provider cannot perform drift detection of this configuration. * */ - private final @Nullable String adDomainJoinPassword; + private @Nullable String adDomainJoinPassword; /** * @return Required only when establishing a cross-realm trust with an Active Directory domain. A user with sufficient privileges to join resources to the domain. This provider cannot perform drift detection of this configuration. * */ - private final @Nullable String adDomainJoinUser; + private @Nullable String adDomainJoinUser; /** * @return Required only when establishing a cross-realm trust with a KDC in a different realm. The cross-realm principal password, which must be identical across realms. This provider cannot perform drift detection of this configuration. * */ - private final @Nullable String crossRealmTrustPrincipalPassword; + private @Nullable String crossRealmTrustPrincipalPassword; /** * @return Password used within the cluster for the kadmin service on the cluster-dedicated KDC, which maintains Kerberos principals, password policies, and keytabs for the cluster. This provider cannot perform drift detection of this configuration. * */ - private final String kdcAdminPassword; + private String kdcAdminPassword; /** * @return Name of the Kerberos realm to which all nodes in a cluster belong. For example, `EC2.INTERNAL` * */ - private final String realm; - - @CustomType.Constructor - private ClusterKerberosAttributes( - @CustomType.Parameter("adDomainJoinPassword") @Nullable String adDomainJoinPassword, - @CustomType.Parameter("adDomainJoinUser") @Nullable String adDomainJoinUser, - @CustomType.Parameter("crossRealmTrustPrincipalPassword") @Nullable String crossRealmTrustPrincipalPassword, - @CustomType.Parameter("kdcAdminPassword") String kdcAdminPassword, - @CustomType.Parameter("realm") String realm) { - this.adDomainJoinPassword = adDomainJoinPassword; - this.adDomainJoinUser = adDomainJoinUser; - this.crossRealmTrustPrincipalPassword = crossRealmTrustPrincipalPassword; - this.kdcAdminPassword = kdcAdminPassword; - this.realm = realm; - } + private String realm; + private ClusterKerberosAttributes() {} /** * @return Active Directory password for `ad_domain_join_user`. This provider cannot perform drift detection of this configuration. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(ClusterKerberosAttributes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String adDomainJoinPassword; private @Nullable String adDomainJoinUser; private @Nullable String crossRealmTrustPrincipalPassword; private String kdcAdminPassword; private String realm; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterKerberosAttributes defaults) { Objects.requireNonNull(defaults); this.adDomainJoinPassword = defaults.adDomainJoinPassword; @@ -115,27 +98,39 @@ public Builder(ClusterKerberosAttributes defaults) { this.realm = defaults.realm; } + @CustomType.Setter public Builder adDomainJoinPassword(@Nullable String adDomainJoinPassword) { this.adDomainJoinPassword = adDomainJoinPassword; return this; } + @CustomType.Setter public Builder adDomainJoinUser(@Nullable String adDomainJoinUser) { this.adDomainJoinUser = adDomainJoinUser; return this; } + @CustomType.Setter public Builder crossRealmTrustPrincipalPassword(@Nullable String crossRealmTrustPrincipalPassword) { this.crossRealmTrustPrincipalPassword = crossRealmTrustPrincipalPassword; return this; } + @CustomType.Setter public Builder kdcAdminPassword(String kdcAdminPassword) { this.kdcAdminPassword = Objects.requireNonNull(kdcAdminPassword); return this; } + @CustomType.Setter public Builder realm(String realm) { this.realm = Objects.requireNonNull(realm); return this; - } public ClusterKerberosAttributes build() { - return new ClusterKerberosAttributes(adDomainJoinPassword, adDomainJoinUser, crossRealmTrustPrincipalPassword, kdcAdminPassword, realm); + } + public ClusterKerberosAttributes build() { + final var o = new ClusterKerberosAttributes(); + o.adDomainJoinPassword = adDomainJoinPassword; + o.adDomainJoinUser = adDomainJoinUser; + o.crossRealmTrustPrincipalPassword = crossRealmTrustPrincipalPassword; + o.kdcAdminPassword = kdcAdminPassword; + o.realm = realm; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleet.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleet.java index ae4dc90cd18..726db979a22 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleet.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleet.java @@ -19,55 +19,36 @@ public final class ClusterMasterInstanceFleet { * @return ID of the cluster. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Configuration block for instance fleet. * */ - private final @Nullable List instanceTypeConfigs; + private @Nullable List instanceTypeConfigs; /** * @return Configuration block for launch specification. * */ - private final @Nullable ClusterMasterInstanceFleetLaunchSpecifications launchSpecifications; + private @Nullable ClusterMasterInstanceFleetLaunchSpecifications launchSpecifications; /** * @return Name of the step. * */ - private final @Nullable String name; - private final @Nullable Integer provisionedOnDemandCapacity; - private final @Nullable Integer provisionedSpotCapacity; + private @Nullable String name; + private @Nullable Integer provisionedOnDemandCapacity; + private @Nullable Integer provisionedSpotCapacity; /** * @return Target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision. * */ - private final @Nullable Integer targetOnDemandCapacity; + private @Nullable Integer targetOnDemandCapacity; /** * @return Target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. * */ - private final @Nullable Integer targetSpotCapacity; - - @CustomType.Constructor - private ClusterMasterInstanceFleet( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("instanceTypeConfigs") @Nullable List instanceTypeConfigs, - @CustomType.Parameter("launchSpecifications") @Nullable ClusterMasterInstanceFleetLaunchSpecifications launchSpecifications, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("provisionedOnDemandCapacity") @Nullable Integer provisionedOnDemandCapacity, - @CustomType.Parameter("provisionedSpotCapacity") @Nullable Integer provisionedSpotCapacity, - @CustomType.Parameter("targetOnDemandCapacity") @Nullable Integer targetOnDemandCapacity, - @CustomType.Parameter("targetSpotCapacity") @Nullable Integer targetSpotCapacity) { - this.id = id; - this.instanceTypeConfigs = instanceTypeConfigs; - this.launchSpecifications = launchSpecifications; - this.name = name; - this.provisionedOnDemandCapacity = provisionedOnDemandCapacity; - this.provisionedSpotCapacity = provisionedSpotCapacity; - this.targetOnDemandCapacity = targetOnDemandCapacity; - this.targetSpotCapacity = targetSpotCapacity; - } + private @Nullable Integer targetSpotCapacity; + private ClusterMasterInstanceFleet() {} /** * @return ID of the cluster. * @@ -124,7 +105,7 @@ public static Builder builder() { public static Builder builder(ClusterMasterInstanceFleet defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private @Nullable List instanceTypeConfigs; @@ -134,11 +115,7 @@ public static final class Builder { private @Nullable Integer provisionedSpotCapacity; private @Nullable Integer targetOnDemandCapacity; private @Nullable Integer targetSpotCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterMasterInstanceFleet defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -151,10 +128,12 @@ public Builder(ClusterMasterInstanceFleet defaults) { this.targetSpotCapacity = defaults.targetSpotCapacity; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder instanceTypeConfigs(@Nullable List instanceTypeConfigs) { this.instanceTypeConfigs = instanceTypeConfigs; return this; @@ -162,31 +141,47 @@ public Builder instanceTypeConfigs(@Nullable List configurations; + private @Nullable List configurations; /** * @return Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below. * */ - private final @Nullable List ebsConfigs; + private @Nullable List ebsConfigs; /** * @return EC2 instance type for all instances in the instance group. * */ - private final String instanceType; + private String instanceType; /** * @return Number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in `aws.emr.InstanceFleet`. * */ - private final @Nullable Integer weightedCapacity; - - @CustomType.Constructor - private ClusterMasterInstanceFleetInstanceTypeConfig( - @CustomType.Parameter("bidPrice") @Nullable String bidPrice, - @CustomType.Parameter("bidPriceAsPercentageOfOnDemandPrice") @Nullable Double bidPriceAsPercentageOfOnDemandPrice, - @CustomType.Parameter("configurations") @Nullable List configurations, - @CustomType.Parameter("ebsConfigs") @Nullable List ebsConfigs, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("weightedCapacity") @Nullable Integer weightedCapacity) { - this.bidPrice = bidPrice; - this.bidPriceAsPercentageOfOnDemandPrice = bidPriceAsPercentageOfOnDemandPrice; - this.configurations = configurations; - this.ebsConfigs = ebsConfigs; - this.instanceType = instanceType; - this.weightedCapacity = weightedCapacity; - } + private @Nullable Integer weightedCapacity; + private ClusterMasterInstanceFleetInstanceTypeConfig() {} /** * @return Bid price for each EC2 instance in the instance group, expressed in USD. By setting this attribute, the instance group is being declared as a Spot Instance, and will implicitly create a Spot request. Leave this blank to use On-Demand Instances. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(ClusterMasterInstanceFleetInstanceTypeConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bidPrice; private @Nullable Double bidPriceAsPercentageOfOnDemandPrice; @@ -121,11 +106,7 @@ public static final class Builder { private @Nullable List ebsConfigs; private String instanceType; private @Nullable Integer weightedCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterMasterInstanceFleetInstanceTypeConfig defaults) { Objects.requireNonNull(defaults); this.bidPrice = defaults.bidPrice; @@ -136,14 +117,17 @@ public Builder(ClusterMasterInstanceFleetInstanceTypeConfig defaults) { this.weightedCapacity = defaults.weightedCapacity; } + @CustomType.Setter public Builder bidPrice(@Nullable String bidPrice) { this.bidPrice = bidPrice; return this; } + @CustomType.Setter public Builder bidPriceAsPercentageOfOnDemandPrice(@Nullable Double bidPriceAsPercentageOfOnDemandPrice) { this.bidPriceAsPercentageOfOnDemandPrice = bidPriceAsPercentageOfOnDemandPrice; return this; } + @CustomType.Setter public Builder configurations(@Nullable List configurations) { this.configurations = configurations; return this; @@ -151,6 +135,7 @@ public Builder configurations(@Nullable List ebsConfigs) { this.ebsConfigs = ebsConfigs; return this; @@ -158,15 +143,25 @@ public Builder ebsConfigs(@Nullable List properties; - - @CustomType.Constructor - private ClusterMasterInstanceFleetInstanceTypeConfigConfiguration( - @CustomType.Parameter("classification") @Nullable String classification, - @CustomType.Parameter("properties") @Nullable Map properties) { - this.classification = classification; - this.properties = properties; - } + private @Nullable Map properties; + private ClusterMasterInstanceFleetInstanceTypeConfigConfiguration() {} /** * @return Classification within a configuration. * @@ -54,30 +47,32 @@ public static Builder builder() { public static Builder builder(ClusterMasterInstanceFleetInstanceTypeConfigConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String classification; private @Nullable Map properties; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterMasterInstanceFleetInstanceTypeConfigConfiguration defaults) { Objects.requireNonNull(defaults); this.classification = defaults.classification; this.properties = defaults.properties; } + @CustomType.Setter public Builder classification(@Nullable String classification) { this.classification = classification; return this; } + @CustomType.Setter public Builder properties(@Nullable Map properties) { this.properties = properties; return this; - } public ClusterMasterInstanceFleetInstanceTypeConfigConfiguration build() { - return new ClusterMasterInstanceFleetInstanceTypeConfigConfiguration(classification, properties); + } + public ClusterMasterInstanceFleetInstanceTypeConfigConfiguration build() { + final var o = new ClusterMasterInstanceFleetInstanceTypeConfigConfiguration(); + o.classification = classification; + o.properties = properties; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig.java index 326d47dbd3b..351d2d97d07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig.java @@ -16,35 +16,24 @@ public final class ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig { * @return Number of I/O operations per second (IOPS) that the volume supports. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return Volume size, in gibibytes (GiB). * */ - private final Integer size; + private Integer size; /** * @return Volume type. Valid options are `gp3`, `gp2`, `io1`, `standard`, `st1` and `sc1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html). * */ - private final String type; + private String type; /** * @return Number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1). * */ - private final @Nullable Integer volumesPerInstance; - - @CustomType.Constructor - private ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig( - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("volumesPerInstance") @Nullable Integer volumesPerInstance) { - this.iops = iops; - this.size = size; - this.type = type; - this.volumesPerInstance = volumesPerInstance; - } + private @Nullable Integer volumesPerInstance; + private ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig() {} /** * @return Number of I/O operations per second (IOPS) that the volume supports. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer iops; private Integer size; private String type; private @Nullable Integer volumesPerInstance; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig defaults) { Objects.requireNonNull(defaults); this.iops = defaults.iops; @@ -100,23 +85,33 @@ public Builder(ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig defaults) { this.volumesPerInstance = defaults.volumesPerInstance; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder volumesPerInstance(@Nullable Integer volumesPerInstance) { this.volumesPerInstance = volumesPerInstance; return this; - } public ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig build() { - return new ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig(iops, size, type, volumesPerInstance); + } + public ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig build() { + final var o = new ClusterMasterInstanceFleetInstanceTypeConfigEbsConfig(); + o.iops = iops; + o.size = size; + o.type = type; + o.volumesPerInstance = volumesPerInstance; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetLaunchSpecifications.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetLaunchSpecifications.java index aa387b45fee..55499bf9182 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetLaunchSpecifications.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetLaunchSpecifications.java @@ -16,21 +16,14 @@ public final class ClusterMasterInstanceFleetLaunchSpecifications { * @return Configuration block for on demand instances launch specifications. * */ - private final @Nullable List onDemandSpecifications; + private @Nullable List onDemandSpecifications; /** * @return Configuration block for spot instances launch specifications. * */ - private final @Nullable List spotSpecifications; - - @CustomType.Constructor - private ClusterMasterInstanceFleetLaunchSpecifications( - @CustomType.Parameter("onDemandSpecifications") @Nullable List onDemandSpecifications, - @CustomType.Parameter("spotSpecifications") @Nullable List spotSpecifications) { - this.onDemandSpecifications = onDemandSpecifications; - this.spotSpecifications = spotSpecifications; - } + private @Nullable List spotSpecifications; + private ClusterMasterInstanceFleetLaunchSpecifications() {} /** * @return Configuration block for on demand instances launch specifications. * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(ClusterMasterInstanceFleetLaunchSpecifications defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List onDemandSpecifications; private @Nullable List spotSpecifications; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterMasterInstanceFleetLaunchSpecifications defaults) { Objects.requireNonNull(defaults); this.onDemandSpecifications = defaults.onDemandSpecifications; this.spotSpecifications = defaults.spotSpecifications; } + @CustomType.Setter public Builder onDemandSpecifications(@Nullable List onDemandSpecifications) { this.onDemandSpecifications = onDemandSpecifications; return this; @@ -75,14 +65,19 @@ public Builder onDemandSpecifications(@Nullable List spotSpecifications) { this.spotSpecifications = spotSpecifications; return this; } public Builder spotSpecifications(ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification... spotSpecifications) { return spotSpecifications(List.of(spotSpecifications)); - } public ClusterMasterInstanceFleetLaunchSpecifications build() { - return new ClusterMasterInstanceFleetLaunchSpecifications(onDemandSpecifications, spotSpecifications); + } + public ClusterMasterInstanceFleetLaunchSpecifications build() { + final var o = new ClusterMasterInstanceFleetLaunchSpecifications(); + o.onDemandSpecifications = onDemandSpecifications; + o.spotSpecifications = spotSpecifications; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification.java index 33476acbe7f..7963110b634 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification.java @@ -13,13 +13,9 @@ public final class ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecifi * @return Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching. * */ - private final String allocationStrategy; - - @CustomType.Constructor - private ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification(@CustomType.Parameter("allocationStrategy") String allocationStrategy) { - this.allocationStrategy = allocationStrategy; - } + private String allocationStrategy; + private ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification() {} /** * @return Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String allocationStrategy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification defaults) { Objects.requireNonNull(defaults); this.allocationStrategy = defaults.allocationStrategy; } + @CustomType.Setter public Builder allocationStrategy(String allocationStrategy) { this.allocationStrategy = Objects.requireNonNull(allocationStrategy); return this; - } public ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification build() { - return new ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification(allocationStrategy); + } + public ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification build() { + final var o = new ClusterMasterInstanceFleetLaunchSpecificationsOnDemandSpecification(); + o.allocationStrategy = allocationStrategy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification.java index 570b0cdf46c..ef409d15c8d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification.java @@ -16,35 +16,24 @@ public final class ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecificati * @return Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching. * */ - private final String allocationStrategy; + private String allocationStrategy; /** * @return Defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates. * */ - private final @Nullable Integer blockDurationMinutes; + private @Nullable Integer blockDurationMinutes; /** * @return Action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are `TERMINATE_CLUSTER` and `SWITCH_TO_ON_DEMAND`. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity. * */ - private final String timeoutAction; + private String timeoutAction; /** * @return Spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created. * */ - private final Integer timeoutDurationMinutes; - - @CustomType.Constructor - private ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification( - @CustomType.Parameter("allocationStrategy") String allocationStrategy, - @CustomType.Parameter("blockDurationMinutes") @Nullable Integer blockDurationMinutes, - @CustomType.Parameter("timeoutAction") String timeoutAction, - @CustomType.Parameter("timeoutDurationMinutes") Integer timeoutDurationMinutes) { - this.allocationStrategy = allocationStrategy; - this.blockDurationMinutes = blockDurationMinutes; - this.timeoutAction = timeoutAction; - this.timeoutDurationMinutes = timeoutDurationMinutes; - } + private Integer timeoutDurationMinutes; + private ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification() {} /** * @return Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String allocationStrategy; private @Nullable Integer blockDurationMinutes; private String timeoutAction; private Integer timeoutDurationMinutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification defaults) { Objects.requireNonNull(defaults); this.allocationStrategy = defaults.allocationStrategy; @@ -100,23 +85,33 @@ public Builder(ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification d this.timeoutDurationMinutes = defaults.timeoutDurationMinutes; } + @CustomType.Setter public Builder allocationStrategy(String allocationStrategy) { this.allocationStrategy = Objects.requireNonNull(allocationStrategy); return this; } + @CustomType.Setter public Builder blockDurationMinutes(@Nullable Integer blockDurationMinutes) { this.blockDurationMinutes = blockDurationMinutes; return this; } + @CustomType.Setter public Builder timeoutAction(String timeoutAction) { this.timeoutAction = Objects.requireNonNull(timeoutAction); return this; } + @CustomType.Setter public Builder timeoutDurationMinutes(Integer timeoutDurationMinutes) { this.timeoutDurationMinutes = Objects.requireNonNull(timeoutDurationMinutes); return this; - } public ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification build() { - return new ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification(allocationStrategy, blockDurationMinutes, timeoutAction, timeoutDurationMinutes); + } + public ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification build() { + final var o = new ClusterMasterInstanceFleetLaunchSpecificationsSpotSpecification(); + o.allocationStrategy = allocationStrategy; + o.blockDurationMinutes = blockDurationMinutes; + o.timeoutAction = timeoutAction; + o.timeoutDurationMinutes = timeoutDurationMinutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceGroup.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceGroup.java index deb1d07b5ab..ba95fdc13a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceGroup.java @@ -18,49 +18,34 @@ public final class ClusterMasterInstanceGroup { * @return Bid price for each EC2 instance in the instance group, expressed in USD. By setting this attribute, the instance group is being declared as a Spot Instance, and will implicitly create a Spot request. Leave this blank to use On-Demand Instances. * */ - private final @Nullable String bidPrice; + private @Nullable String bidPrice; /** * @return Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below. * */ - private final @Nullable List ebsConfigs; + private @Nullable List ebsConfigs; /** * @return ID of the cluster. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Target number of instances for the instance group. Must be 1 or 3. Defaults to 1. Launching with multiple master nodes is only supported in EMR version 5.23.0+, and requires this resource's `core_instance_group` to be configured. Public (Internet accessible) instances must be created in VPC subnets that have map public IP on launch enabled. Termination protection is automatically enabled when launched with multiple master nodes and this provider must have the `termination_protection = false` configuration applied before destroying this resource. * */ - private final @Nullable Integer instanceCount; + private @Nullable Integer instanceCount; /** * @return EC2 instance type for all instances in the instance group. * */ - private final String instanceType; + private String instanceType; /** * @return Name of the step. * */ - private final @Nullable String name; - - @CustomType.Constructor - private ClusterMasterInstanceGroup( - @CustomType.Parameter("bidPrice") @Nullable String bidPrice, - @CustomType.Parameter("ebsConfigs") @Nullable List ebsConfigs, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("instanceCount") @Nullable Integer instanceCount, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("name") @Nullable String name) { - this.bidPrice = bidPrice; - this.ebsConfigs = ebsConfigs; - this.id = id; - this.instanceCount = instanceCount; - this.instanceType = instanceType; - this.name = name; - } + private @Nullable String name; + private ClusterMasterInstanceGroup() {} /** * @return Bid price for each EC2 instance in the instance group, expressed in USD. By setting this attribute, the instance group is being declared as a Spot Instance, and will implicitly create a Spot request. Leave this blank to use On-Demand Instances. * @@ -111,7 +96,7 @@ public static Builder builder() { public static Builder builder(ClusterMasterInstanceGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bidPrice; private @Nullable List ebsConfigs; @@ -119,11 +104,7 @@ public static final class Builder { private @Nullable Integer instanceCount; private String instanceType; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterMasterInstanceGroup defaults) { Objects.requireNonNull(defaults); this.bidPrice = defaults.bidPrice; @@ -134,10 +115,12 @@ public Builder(ClusterMasterInstanceGroup defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder bidPrice(@Nullable String bidPrice) { this.bidPrice = bidPrice; return this; } + @CustomType.Setter public Builder ebsConfigs(@Nullable List ebsConfigs) { this.ebsConfigs = ebsConfigs; return this; @@ -145,23 +128,35 @@ public Builder ebsConfigs(@Nullable List eb public Builder ebsConfigs(ClusterMasterInstanceGroupEbsConfig... ebsConfigs) { return ebsConfigs(List.of(ebsConfigs)); } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder instanceCount(@Nullable Integer instanceCount) { this.instanceCount = instanceCount; return this; } + @CustomType.Setter public Builder instanceType(String instanceType) { this.instanceType = Objects.requireNonNull(instanceType); return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public ClusterMasterInstanceGroup build() { - return new ClusterMasterInstanceGroup(bidPrice, ebsConfigs, id, instanceCount, instanceType, name); + } + public ClusterMasterInstanceGroup build() { + final var o = new ClusterMasterInstanceGroup(); + o.bidPrice = bidPrice; + o.ebsConfigs = ebsConfigs; + o.id = id; + o.instanceCount = instanceCount; + o.instanceType = instanceType; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceGroupEbsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceGroupEbsConfig.java index 332aa8c0660..9c3318e0d33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceGroupEbsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterMasterInstanceGroupEbsConfig.java @@ -16,42 +16,29 @@ public final class ClusterMasterInstanceGroupEbsConfig { * @return Number of I/O operations per second (IOPS) that the volume supports. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return Volume size, in gibibytes (GiB). * */ - private final Integer size; + private Integer size; /** * @return The throughput, in mebibyte per second (MiB/s). * */ - private final @Nullable Integer throughput; + private @Nullable Integer throughput; /** * @return Volume type. Valid options are `gp3`, `gp2`, `io1`, `standard`, `st1` and `sc1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html). * */ - private final String type; + private String type; /** * @return Number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1). * */ - private final @Nullable Integer volumesPerInstance; - - @CustomType.Constructor - private ClusterMasterInstanceGroupEbsConfig( - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("volumesPerInstance") @Nullable Integer volumesPerInstance) { - this.iops = iops; - this.size = size; - this.throughput = throughput; - this.type = type; - this.volumesPerInstance = volumesPerInstance; - } + private @Nullable Integer volumesPerInstance; + private ClusterMasterInstanceGroupEbsConfig() {} /** * @return Number of I/O operations per second (IOPS) that the volume supports. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ClusterMasterInstanceGroupEbsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer iops; private Integer size; private @Nullable Integer throughput; private String type; private @Nullable Integer volumesPerInstance; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterMasterInstanceGroupEbsConfig defaults) { Objects.requireNonNull(defaults); this.iops = defaults.iops; @@ -116,27 +99,39 @@ public Builder(ClusterMasterInstanceGroupEbsConfig defaults) { this.volumesPerInstance = defaults.volumesPerInstance; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder volumesPerInstance(@Nullable Integer volumesPerInstance) { this.volumesPerInstance = volumesPerInstance; return this; - } public ClusterMasterInstanceGroupEbsConfig build() { - return new ClusterMasterInstanceGroupEbsConfig(iops, size, throughput, type, volumesPerInstance); + } + public ClusterMasterInstanceGroupEbsConfig build() { + final var o = new ClusterMasterInstanceGroupEbsConfig(); + o.iops = iops; + o.size = size; + o.throughput = throughput; + o.type = type; + o.volumesPerInstance = volumesPerInstance; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterStep.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterStep.java index 49bafa779de..447306b3711 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterStep.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterStep.java @@ -14,28 +14,19 @@ public final class ClusterStep { * @return Action to take if the step fails. Valid values: `TERMINATE_JOB_FLOW`, `TERMINATE_CLUSTER`, `CANCEL_AND_WAIT`, and `CONTINUE` * */ - private final String actionOnFailure; + private String actionOnFailure; /** * @return JAR file used for the step. See below. * */ - private final ClusterStepHadoopJarStep hadoopJarStep; + private ClusterStepHadoopJarStep hadoopJarStep; /** * @return Name of the step. * */ - private final String name; - - @CustomType.Constructor - private ClusterStep( - @CustomType.Parameter("actionOnFailure") String actionOnFailure, - @CustomType.Parameter("hadoopJarStep") ClusterStepHadoopJarStep hadoopJarStep, - @CustomType.Parameter("name") String name) { - this.actionOnFailure = actionOnFailure; - this.hadoopJarStep = hadoopJarStep; - this.name = name; - } + private String name; + private ClusterStep() {} /** * @return Action to take if the step fails. Valid values: `TERMINATE_JOB_FLOW`, `TERMINATE_CLUSTER`, `CANCEL_AND_WAIT`, and `CONTINUE` * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(ClusterStep defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String actionOnFailure; private ClusterStepHadoopJarStep hadoopJarStep; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterStep defaults) { Objects.requireNonNull(defaults); this.actionOnFailure = defaults.actionOnFailure; @@ -82,19 +69,27 @@ public Builder(ClusterStep defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder actionOnFailure(String actionOnFailure) { this.actionOnFailure = Objects.requireNonNull(actionOnFailure); return this; } + @CustomType.Setter public Builder hadoopJarStep(ClusterStepHadoopJarStep hadoopJarStep) { this.hadoopJarStep = Objects.requireNonNull(hadoopJarStep); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public ClusterStep build() { - return new ClusterStep(actionOnFailure, hadoopJarStep, name); + } + public ClusterStep build() { + final var o = new ClusterStep(); + o.actionOnFailure = actionOnFailure; + o.hadoopJarStep = hadoopJarStep; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterStepHadoopJarStep.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterStepHadoopJarStep.java index dfd80393de0..73f0ba165e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterStepHadoopJarStep.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ClusterStepHadoopJarStep.java @@ -17,35 +17,24 @@ public final class ClusterStepHadoopJarStep { * @return List of command line arguments passed to the JAR file's main function when executed. * */ - private final @Nullable List args; + private @Nullable List args; /** * @return Path to a JAR file run during the step. * */ - private final String jar; + private String jar; /** * @return Name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file. * */ - private final @Nullable String mainClass; + private @Nullable String mainClass; /** * @return Key-Value map of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function. * */ - private final @Nullable Map properties; - - @CustomType.Constructor - private ClusterStepHadoopJarStep( - @CustomType.Parameter("args") @Nullable List args, - @CustomType.Parameter("jar") String jar, - @CustomType.Parameter("mainClass") @Nullable String mainClass, - @CustomType.Parameter("properties") @Nullable Map properties) { - this.args = args; - this.jar = jar; - this.mainClass = mainClass; - this.properties = properties; - } + private @Nullable Map properties; + private ClusterStepHadoopJarStep() {} /** * @return List of command line arguments passed to the JAR file's main function when executed. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(ClusterStepHadoopJarStep defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List args; private String jar; private @Nullable String mainClass; private @Nullable Map properties; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterStepHadoopJarStep defaults) { Objects.requireNonNull(defaults); this.args = defaults.args; @@ -101,6 +86,7 @@ public Builder(ClusterStepHadoopJarStep defaults) { this.properties = defaults.properties; } + @CustomType.Setter public Builder args(@Nullable List args) { this.args = args; return this; @@ -108,19 +94,28 @@ public Builder args(@Nullable List args) { public Builder args(String... args) { return args(List.of(args)); } + @CustomType.Setter public Builder jar(String jar) { this.jar = Objects.requireNonNull(jar); return this; } + @CustomType.Setter public Builder mainClass(@Nullable String mainClass) { this.mainClass = mainClass; return this; } + @CustomType.Setter public Builder properties(@Nullable Map properties) { this.properties = properties; return this; - } public ClusterStepHadoopJarStep build() { - return new ClusterStepHadoopJarStep(args, jar, mainClass, properties); + } + public ClusterStepHadoopJarStep build() { + final var o = new ClusterStepHadoopJarStep(); + o.args = args; + o.jar = jar; + o.mainClass = mainClass; + o.properties = properties; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/GetReleaseLabelsFilters.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/GetReleaseLabelsFilters.java index d98e8964e8d..da9345b17bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/GetReleaseLabelsFilters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/GetReleaseLabelsFilters.java @@ -15,21 +15,14 @@ public final class GetReleaseLabelsFilters { * @return Optional release label application filter. For example, `Spark@2.1.0` or `Spark`. * */ - private final @Nullable String application; + private @Nullable String application; /** * @return Optional release label version prefix filter. For example, `emr-5`. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private GetReleaseLabelsFilters( - @CustomType.Parameter("application") @Nullable String application, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.application = application; - this.prefix = prefix; - } + private @Nullable String prefix; + private GetReleaseLabelsFilters() {} /** * @return Optional release label application filter. For example, `Spark@2.1.0` or `Spark`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GetReleaseLabelsFilters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String application; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetReleaseLabelsFilters defaults) { Objects.requireNonNull(defaults); this.application = defaults.application; this.prefix = defaults.prefix; } + @CustomType.Setter public Builder application(@Nullable String application) { this.application = application; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public GetReleaseLabelsFilters build() { - return new GetReleaseLabelsFilters(application, prefix); + } + public GetReleaseLabelsFilters build() { + final var o = new GetReleaseLabelsFilters(); + o.application = application; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/GetReleaseLabelsResult.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/GetReleaseLabelsResult.java index 2f04b271c4a..ea522587d46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/GetReleaseLabelsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/GetReleaseLabelsResult.java @@ -13,28 +13,19 @@ @CustomType public final class GetReleaseLabelsResult { - private final @Nullable GetReleaseLabelsFilters filters; + private @Nullable GetReleaseLabelsFilters filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The returned release labels. * */ - private final List releaseLabels; - - @CustomType.Constructor - private GetReleaseLabelsResult( - @CustomType.Parameter("filters") @Nullable GetReleaseLabelsFilters filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("releaseLabels") List releaseLabels) { - this.filters = filters; - this.id = id; - this.releaseLabels = releaseLabels; - } + private List releaseLabels; + private GetReleaseLabelsResult() {} public Optional filters() { return Optional.ofNullable(this.filters); } @@ -60,16 +51,12 @@ public static Builder builder() { public static Builder builder(GetReleaseLabelsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable GetReleaseLabelsFilters filters; private String id; private List releaseLabels; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetReleaseLabelsResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -77,22 +64,30 @@ public Builder(GetReleaseLabelsResult defaults) { this.releaseLabels = defaults.releaseLabels; } + @CustomType.Setter public Builder filters(@Nullable GetReleaseLabelsFilters filters) { this.filters = filters; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder releaseLabels(List releaseLabels) { this.releaseLabels = Objects.requireNonNull(releaseLabels); return this; } public Builder releaseLabels(String... releaseLabels) { return releaseLabels(List.of(releaseLabels)); - } public GetReleaseLabelsResult build() { - return new GetReleaseLabelsResult(filters, id, releaseLabels); + } + public GetReleaseLabelsResult build() { + final var o = new GetReleaseLabelsResult(); + o.filters = filters; + o.id = id; + o.releaseLabels = releaseLabels; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetInstanceTypeConfig.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetInstanceTypeConfig.java index 978724edb3c..de0d5dac292 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetInstanceTypeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetInstanceTypeConfig.java @@ -20,49 +20,34 @@ public final class InstanceFleetInstanceTypeConfig { * @return The bid price for each EC2 Spot instance type as defined by `instance_type`. Expressed in USD. If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%. * */ - private final @Nullable String bidPrice; + private @Nullable String bidPrice; /** * @return The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by `instance_type`. Expressed as a number (for example, 20 specifies 20%). If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%. * */ - private final @Nullable Double bidPriceAsPercentageOfOnDemandPrice; + private @Nullable Double bidPriceAsPercentageOfOnDemandPrice; /** * @return A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of `configuration` blocks. * */ - private final @Nullable List configurations; + private @Nullable List configurations; /** * @return Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below. * */ - private final @Nullable List ebsConfigs; + private @Nullable List ebsConfigs; /** * @return An EC2 instance type, such as m4.xlarge. * */ - private final String instanceType; + private String instanceType; /** * @return The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in `aws.emr.InstanceFleet`. * */ - private final @Nullable Integer weightedCapacity; - - @CustomType.Constructor - private InstanceFleetInstanceTypeConfig( - @CustomType.Parameter("bidPrice") @Nullable String bidPrice, - @CustomType.Parameter("bidPriceAsPercentageOfOnDemandPrice") @Nullable Double bidPriceAsPercentageOfOnDemandPrice, - @CustomType.Parameter("configurations") @Nullable List configurations, - @CustomType.Parameter("ebsConfigs") @Nullable List ebsConfigs, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("weightedCapacity") @Nullable Integer weightedCapacity) { - this.bidPrice = bidPrice; - this.bidPriceAsPercentageOfOnDemandPrice = bidPriceAsPercentageOfOnDemandPrice; - this.configurations = configurations; - this.ebsConfigs = ebsConfigs; - this.instanceType = instanceType; - this.weightedCapacity = weightedCapacity; - } + private @Nullable Integer weightedCapacity; + private InstanceFleetInstanceTypeConfig() {} /** * @return The bid price for each EC2 Spot instance type as defined by `instance_type`. Expressed in USD. If neither `bid_price` nor `bid_price_as_percentage_of_on_demand_price` is provided, `bid_price_as_percentage_of_on_demand_price` defaults to 100%. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(InstanceFleetInstanceTypeConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bidPrice; private @Nullable Double bidPriceAsPercentageOfOnDemandPrice; @@ -121,11 +106,7 @@ public static final class Builder { private @Nullable List ebsConfigs; private String instanceType; private @Nullable Integer weightedCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceFleetInstanceTypeConfig defaults) { Objects.requireNonNull(defaults); this.bidPrice = defaults.bidPrice; @@ -136,14 +117,17 @@ public Builder(InstanceFleetInstanceTypeConfig defaults) { this.weightedCapacity = defaults.weightedCapacity; } + @CustomType.Setter public Builder bidPrice(@Nullable String bidPrice) { this.bidPrice = bidPrice; return this; } + @CustomType.Setter public Builder bidPriceAsPercentageOfOnDemandPrice(@Nullable Double bidPriceAsPercentageOfOnDemandPrice) { this.bidPriceAsPercentageOfOnDemandPrice = bidPriceAsPercentageOfOnDemandPrice; return this; } + @CustomType.Setter public Builder configurations(@Nullable List configurations) { this.configurations = configurations; return this; @@ -151,6 +135,7 @@ public Builder configurations(@Nullable List ebsConfigs) { this.ebsConfigs = ebsConfigs; return this; @@ -158,15 +143,25 @@ public Builder ebsConfigs(@Nullable List properties; - - @CustomType.Constructor - private InstanceFleetInstanceTypeConfigConfiguration( - @CustomType.Parameter("classification") @Nullable String classification, - @CustomType.Parameter("properties") @Nullable Map properties) { - this.classification = classification; - this.properties = properties; - } + private @Nullable Map properties; + private InstanceFleetInstanceTypeConfigConfiguration() {} /** * @return The classification within a configuration. * @@ -54,30 +47,32 @@ public static Builder builder() { public static Builder builder(InstanceFleetInstanceTypeConfigConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String classification; private @Nullable Map properties; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceFleetInstanceTypeConfigConfiguration defaults) { Objects.requireNonNull(defaults); this.classification = defaults.classification; this.properties = defaults.properties; } + @CustomType.Setter public Builder classification(@Nullable String classification) { this.classification = classification; return this; } + @CustomType.Setter public Builder properties(@Nullable Map properties) { this.properties = properties; return this; - } public InstanceFleetInstanceTypeConfigConfiguration build() { - return new InstanceFleetInstanceTypeConfigConfiguration(classification, properties); + } + public InstanceFleetInstanceTypeConfigConfiguration build() { + final var o = new InstanceFleetInstanceTypeConfigConfiguration(); + o.classification = classification; + o.properties = properties; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetInstanceTypeConfigEbsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetInstanceTypeConfigEbsConfig.java index d915ab84827..0bd33fd8a9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetInstanceTypeConfigEbsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetInstanceTypeConfigEbsConfig.java @@ -16,35 +16,24 @@ public final class InstanceFleetInstanceTypeConfigEbsConfig { * @return The number of I/O operations per second (IOPS) that the volume supports * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The volume size, in gibibytes (GiB). * */ - private final Integer size; + private Integer size; /** * @return The volume type. Valid options are `gp2`, `io1`, `standard` and `st1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html). * */ - private final String type; + private String type; /** * @return The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1) * */ - private final @Nullable Integer volumesPerInstance; - - @CustomType.Constructor - private InstanceFleetInstanceTypeConfigEbsConfig( - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("volumesPerInstance") @Nullable Integer volumesPerInstance) { - this.iops = iops; - this.size = size; - this.type = type; - this.volumesPerInstance = volumesPerInstance; - } + private @Nullable Integer volumesPerInstance; + private InstanceFleetInstanceTypeConfigEbsConfig() {} /** * @return The number of I/O operations per second (IOPS) that the volume supports * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(InstanceFleetInstanceTypeConfigEbsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer iops; private Integer size; private String type; private @Nullable Integer volumesPerInstance; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceFleetInstanceTypeConfigEbsConfig defaults) { Objects.requireNonNull(defaults); this.iops = defaults.iops; @@ -100,23 +85,33 @@ public Builder(InstanceFleetInstanceTypeConfigEbsConfig defaults) { this.volumesPerInstance = defaults.volumesPerInstance; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder volumesPerInstance(@Nullable Integer volumesPerInstance) { this.volumesPerInstance = volumesPerInstance; return this; - } public InstanceFleetInstanceTypeConfigEbsConfig build() { - return new InstanceFleetInstanceTypeConfigEbsConfig(iops, size, type, volumesPerInstance); + } + public InstanceFleetInstanceTypeConfigEbsConfig build() { + final var o = new InstanceFleetInstanceTypeConfigEbsConfig(); + o.iops = iops; + o.size = size; + o.type = type; + o.volumesPerInstance = volumesPerInstance; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetLaunchSpecifications.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetLaunchSpecifications.java index a035d2221b9..dfbc8195268 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetLaunchSpecifications.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetLaunchSpecifications.java @@ -16,21 +16,14 @@ public final class InstanceFleetLaunchSpecifications { * @return Configuration block for on demand instances launch specifications * */ - private final @Nullable List onDemandSpecifications; + private @Nullable List onDemandSpecifications; /** * @return Configuration block for spot instances launch specifications * */ - private final @Nullable List spotSpecifications; - - @CustomType.Constructor - private InstanceFleetLaunchSpecifications( - @CustomType.Parameter("onDemandSpecifications") @Nullable List onDemandSpecifications, - @CustomType.Parameter("spotSpecifications") @Nullable List spotSpecifications) { - this.onDemandSpecifications = onDemandSpecifications; - this.spotSpecifications = spotSpecifications; - } + private @Nullable List spotSpecifications; + private InstanceFleetLaunchSpecifications() {} /** * @return Configuration block for on demand instances launch specifications * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(InstanceFleetLaunchSpecifications defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List onDemandSpecifications; private @Nullable List spotSpecifications; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceFleetLaunchSpecifications defaults) { Objects.requireNonNull(defaults); this.onDemandSpecifications = defaults.onDemandSpecifications; this.spotSpecifications = defaults.spotSpecifications; } + @CustomType.Setter public Builder onDemandSpecifications(@Nullable List onDemandSpecifications) { this.onDemandSpecifications = onDemandSpecifications; return this; @@ -75,14 +65,19 @@ public Builder onDemandSpecifications(@Nullable List spotSpecifications) { this.spotSpecifications = spotSpecifications; return this; } public Builder spotSpecifications(InstanceFleetLaunchSpecificationsSpotSpecification... spotSpecifications) { return spotSpecifications(List.of(spotSpecifications)); - } public InstanceFleetLaunchSpecifications build() { - return new InstanceFleetLaunchSpecifications(onDemandSpecifications, spotSpecifications); + } + public InstanceFleetLaunchSpecifications build() { + final var o = new InstanceFleetLaunchSpecifications(); + o.onDemandSpecifications = onDemandSpecifications; + o.spotSpecifications = spotSpecifications; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetLaunchSpecificationsOnDemandSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetLaunchSpecificationsOnDemandSpecification.java index 7ff87a5bacd..1e61c3df8fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetLaunchSpecificationsOnDemandSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetLaunchSpecificationsOnDemandSpecification.java @@ -13,13 +13,9 @@ public final class InstanceFleetLaunchSpecificationsOnDemandSpecification { * @return Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching. * */ - private final String allocationStrategy; - - @CustomType.Constructor - private InstanceFleetLaunchSpecificationsOnDemandSpecification(@CustomType.Parameter("allocationStrategy") String allocationStrategy) { - this.allocationStrategy = allocationStrategy; - } + private String allocationStrategy; + private InstanceFleetLaunchSpecificationsOnDemandSpecification() {} /** * @return Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(InstanceFleetLaunchSpecificationsOnDemandSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String allocationStrategy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceFleetLaunchSpecificationsOnDemandSpecification defaults) { Objects.requireNonNull(defaults); this.allocationStrategy = defaults.allocationStrategy; } + @CustomType.Setter public Builder allocationStrategy(String allocationStrategy) { this.allocationStrategy = Objects.requireNonNull(allocationStrategy); return this; - } public InstanceFleetLaunchSpecificationsOnDemandSpecification build() { - return new InstanceFleetLaunchSpecificationsOnDemandSpecification(allocationStrategy); + } + public InstanceFleetLaunchSpecificationsOnDemandSpecification build() { + final var o = new InstanceFleetLaunchSpecificationsOnDemandSpecification(); + o.allocationStrategy = allocationStrategy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetLaunchSpecificationsSpotSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetLaunchSpecificationsSpotSpecification.java index 7ac0c4e1e5e..30749fa7020 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetLaunchSpecificationsSpotSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceFleetLaunchSpecificationsSpotSpecification.java @@ -16,35 +16,24 @@ public final class InstanceFleetLaunchSpecificationsSpotSpecification { * @return Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching. * */ - private final String allocationStrategy; + private String allocationStrategy; /** * @return The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates. * */ - private final @Nullable Integer blockDurationMinutes; + private @Nullable Integer blockDurationMinutes; /** * @return The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are `TERMINATE_CLUSTER` and `SWITCH_TO_ON_DEMAND`. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity. * */ - private final String timeoutAction; + private String timeoutAction; /** * @return The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created. * */ - private final Integer timeoutDurationMinutes; - - @CustomType.Constructor - private InstanceFleetLaunchSpecificationsSpotSpecification( - @CustomType.Parameter("allocationStrategy") String allocationStrategy, - @CustomType.Parameter("blockDurationMinutes") @Nullable Integer blockDurationMinutes, - @CustomType.Parameter("timeoutAction") String timeoutAction, - @CustomType.Parameter("timeoutDurationMinutes") Integer timeoutDurationMinutes) { - this.allocationStrategy = allocationStrategy; - this.blockDurationMinutes = blockDurationMinutes; - this.timeoutAction = timeoutAction; - this.timeoutDurationMinutes = timeoutDurationMinutes; - } + private Integer timeoutDurationMinutes; + private InstanceFleetLaunchSpecificationsSpotSpecification() {} /** * @return Specifies the strategy to use in launching Spot instance fleets. Currently, the only option is `capacity-optimized` (the default), which launches instances from Spot instance pools with optimal capacity for the number of instances that are launching. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(InstanceFleetLaunchSpecificationsSpotSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String allocationStrategy; private @Nullable Integer blockDurationMinutes; private String timeoutAction; private Integer timeoutDurationMinutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceFleetLaunchSpecificationsSpotSpecification defaults) { Objects.requireNonNull(defaults); this.allocationStrategy = defaults.allocationStrategy; @@ -100,23 +85,33 @@ public Builder(InstanceFleetLaunchSpecificationsSpotSpecification defaults) { this.timeoutDurationMinutes = defaults.timeoutDurationMinutes; } + @CustomType.Setter public Builder allocationStrategy(String allocationStrategy) { this.allocationStrategy = Objects.requireNonNull(allocationStrategy); return this; } + @CustomType.Setter public Builder blockDurationMinutes(@Nullable Integer blockDurationMinutes) { this.blockDurationMinutes = blockDurationMinutes; return this; } + @CustomType.Setter public Builder timeoutAction(String timeoutAction) { this.timeoutAction = Objects.requireNonNull(timeoutAction); return this; } + @CustomType.Setter public Builder timeoutDurationMinutes(Integer timeoutDurationMinutes) { this.timeoutDurationMinutes = Objects.requireNonNull(timeoutDurationMinutes); return this; - } public InstanceFleetLaunchSpecificationsSpotSpecification build() { - return new InstanceFleetLaunchSpecificationsSpotSpecification(allocationStrategy, blockDurationMinutes, timeoutAction, timeoutDurationMinutes); + } + public InstanceFleetLaunchSpecificationsSpotSpecification build() { + final var o = new InstanceFleetLaunchSpecificationsSpotSpecification(); + o.allocationStrategy = allocationStrategy; + o.blockDurationMinutes = blockDurationMinutes; + o.timeoutAction = timeoutAction; + o.timeoutDurationMinutes = timeoutDurationMinutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceGroupEbsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceGroupEbsConfig.java index 78b78a86a9f..49251291ad8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceGroupEbsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/InstanceGroupEbsConfig.java @@ -16,35 +16,24 @@ public final class InstanceGroupEbsConfig { * @return The number of I/O operations per second (IOPS) that the volume supports. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10. * */ - private final Integer size; + private Integer size; /** * @return The volume type. Valid options are 'gp2', 'io1' and 'standard'. * */ - private final String type; + private String type; /** * @return The number of EBS Volumes to attach per instance. * */ - private final @Nullable Integer volumesPerInstance; - - @CustomType.Constructor - private InstanceGroupEbsConfig( - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("volumesPerInstance") @Nullable Integer volumesPerInstance) { - this.iops = iops; - this.size = size; - this.type = type; - this.volumesPerInstance = volumesPerInstance; - } + private @Nullable Integer volumesPerInstance; + private InstanceGroupEbsConfig() {} /** * @return The number of I/O operations per second (IOPS) that the volume supports. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(InstanceGroupEbsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer iops; private Integer size; private String type; private @Nullable Integer volumesPerInstance; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceGroupEbsConfig defaults) { Objects.requireNonNull(defaults); this.iops = defaults.iops; @@ -100,23 +85,33 @@ public Builder(InstanceGroupEbsConfig defaults) { this.volumesPerInstance = defaults.volumesPerInstance; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder volumesPerInstance(@Nullable Integer volumesPerInstance) { this.volumesPerInstance = volumesPerInstance; return this; - } public InstanceGroupEbsConfig build() { - return new InstanceGroupEbsConfig(iops, size, type, volumesPerInstance); + } + public InstanceGroupEbsConfig build() { + final var o = new InstanceGroupEbsConfig(); + o.iops = iops; + o.size = size; + o.type = type; + o.volumesPerInstance = volumesPerInstance; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ManagedScalingPolicyComputeLimit.java b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ManagedScalingPolicyComputeLimit.java index 103c0288338..c90f4d3e2d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ManagedScalingPolicyComputeLimit.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emr/outputs/ManagedScalingPolicyComputeLimit.java @@ -16,42 +16,29 @@ public final class ManagedScalingPolicyComputeLimit { * @return The upper boundary of EC2 units. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration. * */ - private final Integer maximumCapacityUnits; + private Integer maximumCapacityUnits; /** * @return The upper boundary of EC2 units for core node type in a cluster. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. The core units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between core and task nodes. * */ - private final @Nullable Integer maximumCoreCapacityUnits; + private @Nullable Integer maximumCoreCapacityUnits; /** * @return The upper boundary of On-Demand EC2 units. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. The On-Demand units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between On-Demand and Spot instances. * */ - private final @Nullable Integer maximumOndemandCapacityUnits; + private @Nullable Integer maximumOndemandCapacityUnits; /** * @return The lower boundary of EC2 units. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration. * */ - private final Integer minimumCapacityUnits; + private Integer minimumCapacityUnits; /** * @return The unit type used for specifying a managed scaling policy. Valid Values: `InstanceFleetUnits` | `Instances` | `VCPU` * */ - private final String unitType; - - @CustomType.Constructor - private ManagedScalingPolicyComputeLimit( - @CustomType.Parameter("maximumCapacityUnits") Integer maximumCapacityUnits, - @CustomType.Parameter("maximumCoreCapacityUnits") @Nullable Integer maximumCoreCapacityUnits, - @CustomType.Parameter("maximumOndemandCapacityUnits") @Nullable Integer maximumOndemandCapacityUnits, - @CustomType.Parameter("minimumCapacityUnits") Integer minimumCapacityUnits, - @CustomType.Parameter("unitType") String unitType) { - this.maximumCapacityUnits = maximumCapacityUnits; - this.maximumCoreCapacityUnits = maximumCoreCapacityUnits; - this.maximumOndemandCapacityUnits = maximumOndemandCapacityUnits; - this.minimumCapacityUnits = minimumCapacityUnits; - this.unitType = unitType; - } + private String unitType; + private ManagedScalingPolicyComputeLimit() {} /** * @return The upper boundary of EC2 units. It is measured through VCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ManagedScalingPolicyComputeLimit defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maximumCapacityUnits; private @Nullable Integer maximumCoreCapacityUnits; private @Nullable Integer maximumOndemandCapacityUnits; private Integer minimumCapacityUnits; private String unitType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ManagedScalingPolicyComputeLimit defaults) { Objects.requireNonNull(defaults); this.maximumCapacityUnits = defaults.maximumCapacityUnits; @@ -116,27 +99,39 @@ public Builder(ManagedScalingPolicyComputeLimit defaults) { this.unitType = defaults.unitType; } + @CustomType.Setter public Builder maximumCapacityUnits(Integer maximumCapacityUnits) { this.maximumCapacityUnits = Objects.requireNonNull(maximumCapacityUnits); return this; } + @CustomType.Setter public Builder maximumCoreCapacityUnits(@Nullable Integer maximumCoreCapacityUnits) { this.maximumCoreCapacityUnits = maximumCoreCapacityUnits; return this; } + @CustomType.Setter public Builder maximumOndemandCapacityUnits(@Nullable Integer maximumOndemandCapacityUnits) { this.maximumOndemandCapacityUnits = maximumOndemandCapacityUnits; return this; } + @CustomType.Setter public Builder minimumCapacityUnits(Integer minimumCapacityUnits) { this.minimumCapacityUnits = Objects.requireNonNull(minimumCapacityUnits); return this; } + @CustomType.Setter public Builder unitType(String unitType) { this.unitType = Objects.requireNonNull(unitType); return this; - } public ManagedScalingPolicyComputeLimit build() { - return new ManagedScalingPolicyComputeLimit(maximumCapacityUnits, maximumCoreCapacityUnits, maximumOndemandCapacityUnits, minimumCapacityUnits, unitType); + } + public ManagedScalingPolicyComputeLimit build() { + final var o = new ManagedScalingPolicyComputeLimit(); + o.maximumCapacityUnits = maximumCapacityUnits; + o.maximumCoreCapacityUnits = maximumCoreCapacityUnits; + o.maximumOndemandCapacityUnits = maximumOndemandCapacityUnits; + o.minimumCapacityUnits = minimumCapacityUnits; + o.unitType = unitType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterContainerProvider.java b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterContainerProvider.java index 20f59dce1f5..b2ecdff468f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterContainerProvider.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterContainerProvider.java @@ -15,28 +15,19 @@ public final class GetVirtualClusterContainerProvider { * @return The name of the container provider that is running your EMR Containers cluster * */ - private final String id; + private String id; /** * @return Nested list containing information about the configuration of the container provider * */ - private final List infos; + private List infos; /** * @return The type of the container provider * */ - private final String type; - - @CustomType.Constructor - private GetVirtualClusterContainerProvider( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("infos") List infos, - @CustomType.Parameter("type") String type) { - this.id = id; - this.infos = infos; - this.type = type; - } + private String type; + private GetVirtualClusterContainerProvider() {} /** * @return The name of the container provider that is running your EMR Containers cluster * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetVirtualClusterContainerProvider defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private List infos; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVirtualClusterContainerProvider defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -83,10 +70,12 @@ public Builder(GetVirtualClusterContainerProvider defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder infos(List infos) { this.infos = Objects.requireNonNull(infos); return this; @@ -94,11 +83,17 @@ public Builder infos(List infos) { public Builder infos(GetVirtualClusterContainerProviderInfo... infos) { return infos(List.of(infos)); } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetVirtualClusterContainerProvider build() { - return new GetVirtualClusterContainerProvider(id, infos, type); + } + public GetVirtualClusterContainerProvider build() { + final var o = new GetVirtualClusterContainerProvider(); + o.id = id; + o.infos = infos; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterContainerProviderInfo.java b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterContainerProviderInfo.java index b4f782aa938..85626858455 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterContainerProviderInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterContainerProviderInfo.java @@ -14,13 +14,9 @@ public final class GetVirtualClusterContainerProviderInfo { * @return Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running * */ - private final List eksInfos; - - @CustomType.Constructor - private GetVirtualClusterContainerProviderInfo(@CustomType.Parameter("eksInfos") List eksInfos) { - this.eksInfos = eksInfos; - } + private List eksInfos; + private GetVirtualClusterContainerProviderInfo() {} /** * @return Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(GetVirtualClusterContainerProviderInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List eksInfos; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVirtualClusterContainerProviderInfo defaults) { Objects.requireNonNull(defaults); this.eksInfos = defaults.eksInfos; } + @CustomType.Setter public Builder eksInfos(List eksInfos) { this.eksInfos = Objects.requireNonNull(eksInfos); return this; } public Builder eksInfos(GetVirtualClusterContainerProviderInfoEksInfo... eksInfos) { return eksInfos(List.of(eksInfos)); - } public GetVirtualClusterContainerProviderInfo build() { - return new GetVirtualClusterContainerProviderInfo(eksInfos); + } + public GetVirtualClusterContainerProviderInfo build() { + final var o = new GetVirtualClusterContainerProviderInfo(); + o.eksInfos = eksInfos; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterContainerProviderInfoEksInfo.java b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterContainerProviderInfoEksInfo.java index 1129ab1a0af..b6911c87b24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterContainerProviderInfoEksInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterContainerProviderInfoEksInfo.java @@ -13,13 +13,9 @@ public final class GetVirtualClusterContainerProviderInfoEksInfo { * @return The namespace where the EMR Containers cluster is running * */ - private final String namespace; - - @CustomType.Constructor - private GetVirtualClusterContainerProviderInfoEksInfo(@CustomType.Parameter("namespace") String namespace) { - this.namespace = namespace; - } + private String namespace; + private GetVirtualClusterContainerProviderInfoEksInfo() {} /** * @return The namespace where the EMR Containers cluster is running * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetVirtualClusterContainerProviderInfoEksInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String namespace; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVirtualClusterContainerProviderInfoEksInfo defaults) { Objects.requireNonNull(defaults); this.namespace = defaults.namespace; } + @CustomType.Setter public Builder namespace(String namespace) { this.namespace = Objects.requireNonNull(namespace); return this; - } public GetVirtualClusterContainerProviderInfoEksInfo build() { - return new GetVirtualClusterContainerProviderInfoEksInfo(namespace); + } + public GetVirtualClusterContainerProviderInfoEksInfo build() { + final var o = new GetVirtualClusterContainerProviderInfoEksInfo(); + o.namespace = namespace; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterResult.java b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterResult.java index 1e88a3a1934..34c5d97ce53 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/GetVirtualClusterResult.java @@ -16,59 +16,40 @@ public final class GetVirtualClusterResult { * @return The Amazon Resource Name (ARN) of the cluster. * */ - private final String arn; + private String arn; /** * @return Nested attribute containing information about the underlying container provider (EKS cluster) for your EMR Containers cluster. * */ - private final List containerProviders; + private List containerProviders; /** * @return The Unix epoch time stamp in seconds for when the cluster was created. * */ - private final String createdAt; + private String createdAt; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the cluster. * */ - private final String name; + private String name; /** * @return The status of the EKS cluster. One of `RUNNING`, `TERMINATING`, `TERMINATED`, `ARRESTED`. * */ - private final String state; + private String state; /** * @return Key-value mapping of resource tags. * */ - private final Map tags; - private final String virtualClusterId; - - @CustomType.Constructor - private GetVirtualClusterResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("containerProviders") List containerProviders, - @CustomType.Parameter("createdAt") String createdAt, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("virtualClusterId") String virtualClusterId) { - this.arn = arn; - this.containerProviders = containerProviders; - this.createdAt = createdAt; - this.id = id; - this.name = name; - this.state = state; - this.tags = tags; - this.virtualClusterId = virtualClusterId; - } + private Map tags; + private String virtualClusterId; + private GetVirtualClusterResult() {} /** * @return The Amazon Resource Name (ARN) of the cluster. * @@ -129,7 +110,7 @@ public static Builder builder() { public static Builder builder(GetVirtualClusterResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List containerProviders; @@ -139,11 +120,7 @@ public static final class Builder { private String state; private Map tags; private String virtualClusterId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetVirtualClusterResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -156,10 +133,12 @@ public Builder(GetVirtualClusterResult defaults) { this.virtualClusterId = defaults.virtualClusterId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder containerProviders(List containerProviders) { this.containerProviders = Objects.requireNonNull(containerProviders); return this; @@ -167,31 +146,47 @@ public Builder containerProviders(List conta public Builder containerProviders(GetVirtualClusterContainerProvider... containerProviders) { return containerProviders(List.of(containerProviders)); } + @CustomType.Setter public Builder createdAt(String createdAt) { this.createdAt = Objects.requireNonNull(createdAt); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder virtualClusterId(String virtualClusterId) { this.virtualClusterId = Objects.requireNonNull(virtualClusterId); return this; - } public GetVirtualClusterResult build() { - return new GetVirtualClusterResult(arn, containerProviders, createdAt, id, name, state, tags, virtualClusterId); + } + public GetVirtualClusterResult build() { + final var o = new GetVirtualClusterResult(); + o.arn = arn; + o.containerProviders = containerProviders; + o.createdAt = createdAt; + o.id = id; + o.name = name; + o.state = state; + o.tags = tags; + o.virtualClusterId = virtualClusterId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/VirtualClusterContainerProvider.java b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/VirtualClusterContainerProvider.java index 614a34d29a1..0526cc0a07e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/VirtualClusterContainerProvider.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/VirtualClusterContainerProvider.java @@ -14,28 +14,19 @@ public final class VirtualClusterContainerProvider { * @return The name of the container provider that is running your EMR Containers cluster * */ - private final String id; + private String id; /** * @return Nested list containing information about the configuration of the container provider * */ - private final VirtualClusterContainerProviderInfo info; + private VirtualClusterContainerProviderInfo info; /** * @return The type of the container provider * */ - private final String type; - - @CustomType.Constructor - private VirtualClusterContainerProvider( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("info") VirtualClusterContainerProviderInfo info, - @CustomType.Parameter("type") String type) { - this.id = id; - this.info = info; - this.type = type; - } + private String type; + private VirtualClusterContainerProvider() {} /** * @return The name of the container provider that is running your EMR Containers cluster * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(VirtualClusterContainerProvider defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private VirtualClusterContainerProviderInfo info; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualClusterContainerProvider defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -82,19 +69,27 @@ public Builder(VirtualClusterContainerProvider defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder info(VirtualClusterContainerProviderInfo info) { this.info = Objects.requireNonNull(info); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public VirtualClusterContainerProvider build() { - return new VirtualClusterContainerProvider(id, info, type); + } + public VirtualClusterContainerProvider build() { + final var o = new VirtualClusterContainerProvider(); + o.id = id; + o.info = info; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/VirtualClusterContainerProviderInfo.java b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/VirtualClusterContainerProviderInfo.java index e554e2a03dd..4e2d78e1335 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/VirtualClusterContainerProviderInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/VirtualClusterContainerProviderInfo.java @@ -13,13 +13,9 @@ public final class VirtualClusterContainerProviderInfo { * @return Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running * */ - private final VirtualClusterContainerProviderInfoEksInfo eksInfo; - - @CustomType.Constructor - private VirtualClusterContainerProviderInfo(@CustomType.Parameter("eksInfo") VirtualClusterContainerProviderInfoEksInfo eksInfo) { - this.eksInfo = eksInfo; - } + private VirtualClusterContainerProviderInfoEksInfo eksInfo; + private VirtualClusterContainerProviderInfo() {} /** * @return Nested list containing EKS-specific information about the cluster where the EMR Containers cluster is running * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VirtualClusterContainerProviderInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private VirtualClusterContainerProviderInfoEksInfo eksInfo; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualClusterContainerProviderInfo defaults) { Objects.requireNonNull(defaults); this.eksInfo = defaults.eksInfo; } + @CustomType.Setter public Builder eksInfo(VirtualClusterContainerProviderInfoEksInfo eksInfo) { this.eksInfo = Objects.requireNonNull(eksInfo); return this; - } public VirtualClusterContainerProviderInfo build() { - return new VirtualClusterContainerProviderInfo(eksInfo); + } + public VirtualClusterContainerProviderInfo build() { + final var o = new VirtualClusterContainerProviderInfo(); + o.eksInfo = eksInfo; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/VirtualClusterContainerProviderInfoEksInfo.java b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/VirtualClusterContainerProviderInfoEksInfo.java index be46af27987..c830e9b70a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/VirtualClusterContainerProviderInfoEksInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrcontainers/outputs/VirtualClusterContainerProviderInfoEksInfo.java @@ -15,13 +15,9 @@ public final class VirtualClusterContainerProviderInfoEksInfo { * @return The namespace where the EMR Containers cluster is running * */ - private final @Nullable String namespace; - - @CustomType.Constructor - private VirtualClusterContainerProviderInfoEksInfo(@CustomType.Parameter("namespace") @Nullable String namespace) { - this.namespace = namespace; - } + private @Nullable String namespace; + private VirtualClusterContainerProviderInfoEksInfo() {} /** * @return The namespace where the EMR Containers cluster is running * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(VirtualClusterContainerProviderInfoEksInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String namespace; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VirtualClusterContainerProviderInfoEksInfo defaults) { Objects.requireNonNull(defaults); this.namespace = defaults.namespace; } + @CustomType.Setter public Builder namespace(@Nullable String namespace) { this.namespace = namespace; return this; - } public VirtualClusterContainerProviderInfoEksInfo build() { - return new VirtualClusterContainerProviderInfoEksInfo(namespace); + } + public VirtualClusterContainerProviderInfoEksInfo build() { + final var o = new VirtualClusterContainerProviderInfoEksInfo(); + o.namespace = namespace; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationAutoStartConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationAutoStartConfiguration.java index a72efa958a7..a3254753013 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationAutoStartConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationAutoStartConfiguration.java @@ -15,13 +15,9 @@ public final class ApplicationAutoStartConfiguration { * @return Enables the application to automatically stop after a certain amount of time being idle. Defaults to `true`. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private ApplicationAutoStartConfiguration(@CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private ApplicationAutoStartConfiguration() {} /** * @return Enables the application to automatically stop after a certain amount of time being idle. Defaults to `true`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ApplicationAutoStartConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationAutoStartConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public ApplicationAutoStartConfiguration build() { - return new ApplicationAutoStartConfiguration(enabled); + } + public ApplicationAutoStartConfiguration build() { + final var o = new ApplicationAutoStartConfiguration(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationAutoStopConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationAutoStopConfiguration.java index 3d412303d7f..6d27bd2dac1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationAutoStopConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationAutoStopConfiguration.java @@ -16,21 +16,14 @@ public final class ApplicationAutoStopConfiguration { * @return Enables the application to automatically stop after a certain amount of time being idle. Defaults to `true`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The amount of idle time in minutes after which your application will automatically stop. Defaults to `15` minutes. * */ - private final @Nullable Integer idleTimeoutMinutes; - - @CustomType.Constructor - private ApplicationAutoStopConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("idleTimeoutMinutes") @Nullable Integer idleTimeoutMinutes) { - this.enabled = enabled; - this.idleTimeoutMinutes = idleTimeoutMinutes; - } + private @Nullable Integer idleTimeoutMinutes; + private ApplicationAutoStopConfiguration() {} /** * @return Enables the application to automatically stop after a certain amount of time being idle. Defaults to `true`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ApplicationAutoStopConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable Integer idleTimeoutMinutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationAutoStopConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.idleTimeoutMinutes = defaults.idleTimeoutMinutes; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder idleTimeoutMinutes(@Nullable Integer idleTimeoutMinutes) { this.idleTimeoutMinutes = idleTimeoutMinutes; return this; - } public ApplicationAutoStopConfiguration build() { - return new ApplicationAutoStopConfiguration(enabled, idleTimeoutMinutes); + } + public ApplicationAutoStopConfiguration build() { + final var o = new ApplicationAutoStopConfiguration(); + o.enabled = enabled; + o.idleTimeoutMinutes = idleTimeoutMinutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationInitialCapacity.java b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationInitialCapacity.java index 17bc30c7d88..b6cab89e8ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationInitialCapacity.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationInitialCapacity.java @@ -16,21 +16,14 @@ public final class ApplicationInitialCapacity { * @return The initial capacity configuration per worker. * */ - private final @Nullable ApplicationInitialCapacityInitialCapacityConfig initialCapacityConfig; + private @Nullable ApplicationInitialCapacityInitialCapacityConfig initialCapacityConfig; /** * @return The worker type for an analytics framework. For Spark applications, the key can either be set to `Driver` or `Executor`. For Hive applications, it can be set to `HiveDriver` or `TezTask`. * */ - private final String initialCapacityType; - - @CustomType.Constructor - private ApplicationInitialCapacity( - @CustomType.Parameter("initialCapacityConfig") @Nullable ApplicationInitialCapacityInitialCapacityConfig initialCapacityConfig, - @CustomType.Parameter("initialCapacityType") String initialCapacityType) { - this.initialCapacityConfig = initialCapacityConfig; - this.initialCapacityType = initialCapacityType; - } + private String initialCapacityType; + private ApplicationInitialCapacity() {} /** * @return The initial capacity configuration per worker. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ApplicationInitialCapacity defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ApplicationInitialCapacityInitialCapacityConfig initialCapacityConfig; private String initialCapacityType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationInitialCapacity defaults) { Objects.requireNonNull(defaults); this.initialCapacityConfig = defaults.initialCapacityConfig; this.initialCapacityType = defaults.initialCapacityType; } + @CustomType.Setter public Builder initialCapacityConfig(@Nullable ApplicationInitialCapacityInitialCapacityConfig initialCapacityConfig) { this.initialCapacityConfig = initialCapacityConfig; return this; } + @CustomType.Setter public Builder initialCapacityType(String initialCapacityType) { this.initialCapacityType = Objects.requireNonNull(initialCapacityType); return this; - } public ApplicationInitialCapacity build() { - return new ApplicationInitialCapacity(initialCapacityConfig, initialCapacityType); + } + public ApplicationInitialCapacity build() { + final var o = new ApplicationInitialCapacity(); + o.initialCapacityConfig = initialCapacityConfig; + o.initialCapacityType = initialCapacityType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationInitialCapacityInitialCapacityConfig.java b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationInitialCapacityInitialCapacityConfig.java index 26ddee05135..09921c90bba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationInitialCapacityInitialCapacityConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationInitialCapacityInitialCapacityConfig.java @@ -16,21 +16,14 @@ public final class ApplicationInitialCapacityInitialCapacityConfig { * @return The resource configuration of the initial capacity configuration. * */ - private final @Nullable ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration workerConfiguration; + private @Nullable ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration workerConfiguration; /** * @return The number of workers in the initial capacity configuration. * */ - private final Integer workerCount; - - @CustomType.Constructor - private ApplicationInitialCapacityInitialCapacityConfig( - @CustomType.Parameter("workerConfiguration") @Nullable ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration workerConfiguration, - @CustomType.Parameter("workerCount") Integer workerCount) { - this.workerConfiguration = workerConfiguration; - this.workerCount = workerCount; - } + private Integer workerCount; + private ApplicationInitialCapacityInitialCapacityConfig() {} /** * @return The resource configuration of the initial capacity configuration. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ApplicationInitialCapacityInitialCapacityConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration workerConfiguration; private Integer workerCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationInitialCapacityInitialCapacityConfig defaults) { Objects.requireNonNull(defaults); this.workerConfiguration = defaults.workerConfiguration; this.workerCount = defaults.workerCount; } + @CustomType.Setter public Builder workerConfiguration(@Nullable ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration workerConfiguration) { this.workerConfiguration = workerConfiguration; return this; } + @CustomType.Setter public Builder workerCount(Integer workerCount) { this.workerCount = Objects.requireNonNull(workerCount); return this; - } public ApplicationInitialCapacityInitialCapacityConfig build() { - return new ApplicationInitialCapacityInitialCapacityConfig(workerConfiguration, workerCount); + } + public ApplicationInitialCapacityInitialCapacityConfig build() { + final var o = new ApplicationInitialCapacityInitialCapacityConfig(); + o.workerConfiguration = workerConfiguration; + o.workerCount = workerCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration.java index 928c8e75ea4..9e58c863f49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration.java @@ -15,28 +15,19 @@ public final class ApplicationInitialCapacityInitialCapacityConfigWorkerConfigur * @return The CPU requirements for every worker instance of the worker type. * */ - private final String cpu; + private String cpu; /** * @return The disk requirements for every worker instance of the worker type. * */ - private final @Nullable String disk; + private @Nullable String disk; /** * @return The memory requirements for every worker instance of the worker type. * */ - private final String memory; - - @CustomType.Constructor - private ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration( - @CustomType.Parameter("cpu") String cpu, - @CustomType.Parameter("disk") @Nullable String disk, - @CustomType.Parameter("memory") String memory) { - this.cpu = cpu; - this.disk = disk; - this.memory = memory; - } + private String memory; + private ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration() {} /** * @return The CPU requirements for every worker instance of the worker type. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cpu; private @Nullable String disk; private String memory; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration defaults) { Objects.requireNonNull(defaults); this.cpu = defaults.cpu; @@ -83,19 +70,27 @@ public Builder(ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguratio this.memory = defaults.memory; } + @CustomType.Setter public Builder cpu(String cpu) { this.cpu = Objects.requireNonNull(cpu); return this; } + @CustomType.Setter public Builder disk(@Nullable String disk) { this.disk = disk; return this; } + @CustomType.Setter public Builder memory(String memory) { this.memory = Objects.requireNonNull(memory); return this; - } public ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration build() { - return new ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration(cpu, disk, memory); + } + public ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration build() { + final var o = new ApplicationInitialCapacityInitialCapacityConfigWorkerConfiguration(); + o.cpu = cpu; + o.disk = disk; + o.memory = memory; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationMaximumCapacity.java b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationMaximumCapacity.java index 72e7dbbdb1b..aa66c9c7304 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationMaximumCapacity.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationMaximumCapacity.java @@ -15,28 +15,19 @@ public final class ApplicationMaximumCapacity { * @return The CPU requirements for every worker instance of the worker type. * */ - private final String cpu; + private String cpu; /** * @return The disk requirements for every worker instance of the worker type. * */ - private final @Nullable String disk; + private @Nullable String disk; /** * @return The memory requirements for every worker instance of the worker type. * */ - private final String memory; - - @CustomType.Constructor - private ApplicationMaximumCapacity( - @CustomType.Parameter("cpu") String cpu, - @CustomType.Parameter("disk") @Nullable String disk, - @CustomType.Parameter("memory") String memory) { - this.cpu = cpu; - this.disk = disk; - this.memory = memory; - } + private String memory; + private ApplicationMaximumCapacity() {} /** * @return The CPU requirements for every worker instance of the worker type. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ApplicationMaximumCapacity defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cpu; private @Nullable String disk; private String memory; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationMaximumCapacity defaults) { Objects.requireNonNull(defaults); this.cpu = defaults.cpu; @@ -83,19 +70,27 @@ public Builder(ApplicationMaximumCapacity defaults) { this.memory = defaults.memory; } + @CustomType.Setter public Builder cpu(String cpu) { this.cpu = Objects.requireNonNull(cpu); return this; } + @CustomType.Setter public Builder disk(@Nullable String disk) { this.disk = disk; return this; } + @CustomType.Setter public Builder memory(String memory) { this.memory = Objects.requireNonNull(memory); return this; - } public ApplicationMaximumCapacity build() { - return new ApplicationMaximumCapacity(cpu, disk, memory); + } + public ApplicationMaximumCapacity build() { + final var o = new ApplicationMaximumCapacity(); + o.cpu = cpu; + o.disk = disk; + o.memory = memory; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationNetworkConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationNetworkConfiguration.java index c9e105ce481..7f814ce1160 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationNetworkConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/emrserverless/outputs/ApplicationNetworkConfiguration.java @@ -15,21 +15,14 @@ public final class ApplicationNetworkConfiguration { * @return The array of security group Ids for customer VPC connectivity. * */ - private final @Nullable List securityGroupIds; + private @Nullable List securityGroupIds; /** * @return The array of subnet Ids for customer VPC connectivity. * */ - private final @Nullable List subnetIds; - - @CustomType.Constructor - private ApplicationNetworkConfiguration( - @CustomType.Parameter("securityGroupIds") @Nullable List securityGroupIds, - @CustomType.Parameter("subnetIds") @Nullable List subnetIds) { - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - } + private @Nullable List subnetIds; + private ApplicationNetworkConfiguration() {} /** * @return The array of security group Ids for customer VPC connectivity. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(ApplicationNetworkConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List securityGroupIds; private @Nullable List subnetIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationNetworkConfiguration defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; this.subnetIds = defaults.subnetIds; } + @CustomType.Setter public Builder securityGroupIds(@Nullable List securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; @@ -74,14 +64,19 @@ public Builder securityGroupIds(@Nullable List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(@Nullable List subnetIds) { this.subnetIds = subnetIds; return this; } public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); - } public ApplicationNetworkConfiguration build() { - return new ApplicationNetworkConfiguration(securityGroupIds, subnetIds); + } + public ApplicationNetworkConfiguration build() { + final var o = new ApplicationNetworkConfiguration(); + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateAction.java b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateAction.java index a841cab571f..c9193194e8a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateAction.java @@ -18,49 +18,34 @@ public final class ExperimentTemplateAction { * @return ID of the action. To find out what actions are supported see [AWS FIS actions reference](https://docs.aws.amazon.com/fis/latest/userguide/fis-actions-reference.html). * */ - private final String actionId; + private String actionId; /** * @return Description of the action. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return Friendly name given to the target. * */ - private final String name; + private String name; /** * @return Parameter(s) for the action, if applicable. See below. * */ - private final @Nullable List parameters; + private @Nullable List parameters; /** * @return Set of action names that must complete before this action can be executed. * */ - private final @Nullable List startAfters; + private @Nullable List startAfters; /** * @return Action's target, if applicable. See below. * */ - private final @Nullable ExperimentTemplateActionTarget target; - - @CustomType.Constructor - private ExperimentTemplateAction( - @CustomType.Parameter("actionId") String actionId, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("parameters") @Nullable List parameters, - @CustomType.Parameter("startAfters") @Nullable List startAfters, - @CustomType.Parameter("target") @Nullable ExperimentTemplateActionTarget target) { - this.actionId = actionId; - this.description = description; - this.name = name; - this.parameters = parameters; - this.startAfters = startAfters; - this.target = target; - } + private @Nullable ExperimentTemplateActionTarget target; + private ExperimentTemplateAction() {} /** * @return ID of the action. To find out what actions are supported see [AWS FIS actions reference](https://docs.aws.amazon.com/fis/latest/userguide/fis-actions-reference.html). * @@ -111,7 +96,7 @@ public static Builder builder() { public static Builder builder(ExperimentTemplateAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String actionId; private @Nullable String description; @@ -119,11 +104,7 @@ public static final class Builder { private @Nullable List parameters; private @Nullable List startAfters; private @Nullable ExperimentTemplateActionTarget target; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ExperimentTemplateAction defaults) { Objects.requireNonNull(defaults); this.actionId = defaults.actionId; @@ -134,18 +115,22 @@ public Builder(ExperimentTemplateAction defaults) { this.target = defaults.target; } + @CustomType.Setter public Builder actionId(String actionId) { this.actionId = Objects.requireNonNull(actionId); return this; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder parameters(@Nullable List parameters) { this.parameters = parameters; return this; @@ -153,6 +138,7 @@ public Builder parameters(@Nullable List para public Builder parameters(ExperimentTemplateActionParameter... parameters) { return parameters(List.of(parameters)); } + @CustomType.Setter public Builder startAfters(@Nullable List startAfters) { this.startAfters = startAfters; return this; @@ -160,11 +146,20 @@ public Builder startAfters(@Nullable List startAfters) { public Builder startAfters(String... startAfters) { return startAfters(List.of(startAfters)); } + @CustomType.Setter public Builder target(@Nullable ExperimentTemplateActionTarget target) { this.target = target; return this; - } public ExperimentTemplateAction build() { - return new ExperimentTemplateAction(actionId, description, name, parameters, startAfters, target); + } + public ExperimentTemplateAction build() { + final var o = new ExperimentTemplateAction(); + o.actionId = actionId; + o.description = description; + o.name = name; + o.parameters = parameters; + o.startAfters = startAfters; + o.target = target; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateActionParameter.java b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateActionParameter.java index f4c2f55236d..1b848639bb9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateActionParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateActionParameter.java @@ -13,21 +13,14 @@ public final class ExperimentTemplateActionParameter { * @return Tag key. * */ - private final String key; + private String key; /** * @return Tag value. * */ - private final String value; - - @CustomType.Constructor - private ExperimentTemplateActionParameter( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private ExperimentTemplateActionParameter() {} /** * @return Tag key. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ExperimentTemplateActionParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ExperimentTemplateActionParameter defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ExperimentTemplateActionParameter build() { - return new ExperimentTemplateActionParameter(key, value); + } + public ExperimentTemplateActionParameter build() { + final var o = new ExperimentTemplateActionParameter(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateActionTarget.java b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateActionTarget.java index e2a1f1ca770..0cc114aaa4d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateActionTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateActionTarget.java @@ -13,21 +13,14 @@ public final class ExperimentTemplateActionTarget { * @return Tag key. * */ - private final String key; + private String key; /** * @return Tag value. * */ - private final String value; - - @CustomType.Constructor - private ExperimentTemplateActionTarget( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private ExperimentTemplateActionTarget() {} /** * @return Tag key. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ExperimentTemplateActionTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ExperimentTemplateActionTarget defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ExperimentTemplateActionTarget build() { - return new ExperimentTemplateActionTarget(key, value); + } + public ExperimentTemplateActionTarget build() { + final var o = new ExperimentTemplateActionTarget(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateStopCondition.java b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateStopCondition.java index a03fdc4c61f..faca3bf9b29 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateStopCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateStopCondition.java @@ -15,21 +15,14 @@ public final class ExperimentTemplateStopCondition { * @return Source of the condition. One of `none`, `aws:cloudwatch:alarm`. * */ - private final String source; + private String source; /** * @return Tag value. * */ - private final @Nullable String value; - - @CustomType.Constructor - private ExperimentTemplateStopCondition( - @CustomType.Parameter("source") String source, - @CustomType.Parameter("value") @Nullable String value) { - this.source = source; - this.value = value; - } + private @Nullable String value; + private ExperimentTemplateStopCondition() {} /** * @return Source of the condition. One of `none`, `aws:cloudwatch:alarm`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ExperimentTemplateStopCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String source; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ExperimentTemplateStopCondition defaults) { Objects.requireNonNull(defaults); this.source = defaults.source; this.value = defaults.value; } + @CustomType.Setter public Builder source(String source) { this.source = Objects.requireNonNull(source); return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public ExperimentTemplateStopCondition build() { - return new ExperimentTemplateStopCondition(source, value); + } + public ExperimentTemplateStopCondition build() { + final var o = new ExperimentTemplateStopCondition(); + o.source = source; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateTarget.java b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateTarget.java index eb423b55057..d0d0d69d581 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateTarget.java @@ -17,49 +17,34 @@ public final class ExperimentTemplateTarget { * @return Filter(s) for the target. Filters can be used to select resources based on specific attributes returned by the respective describe action of the resource type. For more information, see [Targets for AWS FIS](https://docs.aws.amazon.com/fis/latest/userguide/targets.html#target-filters). See below. * */ - private final @Nullable List filters; + private @Nullable List filters; /** * @return Friendly name given to the target. * */ - private final String name; + private String name; /** * @return Set of ARNs of the resources to target with an action. Conflicts with `resource_tag`. * */ - private final @Nullable List resourceArns; + private @Nullable List resourceArns; /** * @return Tag(s) the resources need to have to be considered a valid target for an action. Conflicts with `resource_arns`. See below. * */ - private final @Nullable List resourceTags; + private @Nullable List resourceTags; /** * @return AWS resource type. The resource type must be supported for the specified action. To find out what resource types are supported, see [Targets for AWS FIS](https://docs.aws.amazon.com/fis/latest/userguide/targets.html#resource-types). * */ - private final String resourceType; + private String resourceType; /** * @return Scopes the identified resources. Valid values are `ALL` (all identified resources), `COUNT(n)` (randomly select `n` of the identified resources), `PERCENT(n)` (randomly select `n` percent of the identified resources). * */ - private final String selectionMode; - - @CustomType.Constructor - private ExperimentTemplateTarget( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("resourceArns") @Nullable List resourceArns, - @CustomType.Parameter("resourceTags") @Nullable List resourceTags, - @CustomType.Parameter("resourceType") String resourceType, - @CustomType.Parameter("selectionMode") String selectionMode) { - this.filters = filters; - this.name = name; - this.resourceArns = resourceArns; - this.resourceTags = resourceTags; - this.resourceType = resourceType; - this.selectionMode = selectionMode; - } + private String selectionMode; + private ExperimentTemplateTarget() {} /** * @return Filter(s) for the target. Filters can be used to select resources based on specific attributes returned by the respective describe action of the resource type. For more information, see [Targets for AWS FIS](https://docs.aws.amazon.com/fis/latest/userguide/targets.html#target-filters). See below. * @@ -110,7 +95,7 @@ public static Builder builder() { public static Builder builder(ExperimentTemplateTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String name; @@ -118,11 +103,7 @@ public static final class Builder { private @Nullable List resourceTags; private String resourceType; private String selectionMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ExperimentTemplateTarget defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -133,6 +114,7 @@ public Builder(ExperimentTemplateTarget defaults) { this.selectionMode = defaults.selectionMode; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -140,10 +122,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(ExperimentTemplateTargetFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder resourceArns(@Nullable List resourceArns) { this.resourceArns = resourceArns; return this; @@ -151,6 +135,7 @@ public Builder resourceArns(@Nullable List resourceArns) { public Builder resourceArns(String... resourceArns) { return resourceArns(List.of(resourceArns)); } + @CustomType.Setter public Builder resourceTags(@Nullable List resourceTags) { this.resourceTags = resourceTags; return this; @@ -158,15 +143,25 @@ public Builder resourceTags(@Nullable List public Builder resourceTags(ExperimentTemplateTargetResourceTag... resourceTags) { return resourceTags(List.of(resourceTags)); } + @CustomType.Setter public Builder resourceType(String resourceType) { this.resourceType = Objects.requireNonNull(resourceType); return this; } + @CustomType.Setter public Builder selectionMode(String selectionMode) { this.selectionMode = Objects.requireNonNull(selectionMode); return this; - } public ExperimentTemplateTarget build() { - return new ExperimentTemplateTarget(filters, name, resourceArns, resourceTags, resourceType, selectionMode); + } + public ExperimentTemplateTarget build() { + final var o = new ExperimentTemplateTarget(); + o.filters = filters; + o.name = name; + o.resourceArns = resourceArns; + o.resourceTags = resourceTags; + o.resourceType = resourceType; + o.selectionMode = selectionMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateTargetFilter.java b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateTargetFilter.java index ff406bcba5b..1f3c22b3ede 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateTargetFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateTargetFilter.java @@ -14,21 +14,14 @@ public final class ExperimentTemplateTargetFilter { * @return Attribute path for the filter. * */ - private final String path; + private String path; /** * @return Set of attribute values for the filter. * */ - private final List values; - - @CustomType.Constructor - private ExperimentTemplateTargetFilter( - @CustomType.Parameter("path") String path, - @CustomType.Parameter("values") List values) { - this.path = path; - this.values = values; - } + private List values; + private ExperimentTemplateTargetFilter() {} /** * @return Attribute path for the filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(ExperimentTemplateTargetFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String path; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ExperimentTemplateTargetFilter defaults) { Objects.requireNonNull(defaults); this.path = defaults.path; this.values = defaults.values; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ExperimentTemplateTargetFilter build() { - return new ExperimentTemplateTargetFilter(path, values); + } + public ExperimentTemplateTargetFilter build() { + final var o = new ExperimentTemplateTargetFilter(); + o.path = path; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateTargetResourceTag.java b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateTargetResourceTag.java index b570ce9eea9..2c8d2a059ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateTargetResourceTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fis/outputs/ExperimentTemplateTargetResourceTag.java @@ -13,21 +13,14 @@ public final class ExperimentTemplateTargetResourceTag { * @return Tag key. * */ - private final String key; + private String key; /** * @return Tag value. * */ - private final String value; - - @CustomType.Constructor - private ExperimentTemplateTargetResourceTag( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private ExperimentTemplateTargetResourceTag() {} /** * @return Tag key. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ExperimentTemplateTargetResourceTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ExperimentTemplateTargetResourceTag defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ExperimentTemplateTargetResourceTag build() { - return new ExperimentTemplateTargetResourceTag(key, value); + } + public ExperimentTemplateTargetResourceTag build() { + final var o = new ExperimentTemplateTargetResourceTag(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fms/outputs/PolicyExcludeMap.java b/sdk/java/src/main/java/com/pulumi/aws/fms/outputs/PolicyExcludeMap.java index 993e80cd76b..f7e25bf42ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fms/outputs/PolicyExcludeMap.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fms/outputs/PolicyExcludeMap.java @@ -15,21 +15,14 @@ public final class PolicyExcludeMap { * @return A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy. * */ - private final @Nullable List accounts; + private @Nullable List accounts; /** * @return A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time. * */ - private final @Nullable List orgunits; - - @CustomType.Constructor - private PolicyExcludeMap( - @CustomType.Parameter("accounts") @Nullable List accounts, - @CustomType.Parameter("orgunits") @Nullable List orgunits) { - this.accounts = accounts; - this.orgunits = orgunits; - } + private @Nullable List orgunits; + private PolicyExcludeMap() {} /** * @return A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(PolicyExcludeMap defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List accounts; private @Nullable List orgunits; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyExcludeMap defaults) { Objects.requireNonNull(defaults); this.accounts = defaults.accounts; this.orgunits = defaults.orgunits; } + @CustomType.Setter public Builder accounts(@Nullable List accounts) { this.accounts = accounts; return this; @@ -74,14 +64,19 @@ public Builder accounts(@Nullable List accounts) { public Builder accounts(String... accounts) { return accounts(List.of(accounts)); } + @CustomType.Setter public Builder orgunits(@Nullable List orgunits) { this.orgunits = orgunits; return this; } public Builder orgunits(String... orgunits) { return orgunits(List.of(orgunits)); - } public PolicyExcludeMap build() { - return new PolicyExcludeMap(accounts, orgunits); + } + public PolicyExcludeMap build() { + final var o = new PolicyExcludeMap(); + o.accounts = accounts; + o.orgunits = orgunits; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fms/outputs/PolicyIncludeMap.java b/sdk/java/src/main/java/com/pulumi/aws/fms/outputs/PolicyIncludeMap.java index 7ce601402e8..3605eb55a45 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fms/outputs/PolicyIncludeMap.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fms/outputs/PolicyIncludeMap.java @@ -15,21 +15,14 @@ public final class PolicyIncludeMap { * @return A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy. * */ - private final @Nullable List accounts; + private @Nullable List accounts; /** * @return A list of AWS Organizational Units that you want to include for this AWS FMS Policy. Specifying an OU is the equivalent of specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time. * */ - private final @Nullable List orgunits; - - @CustomType.Constructor - private PolicyIncludeMap( - @CustomType.Parameter("accounts") @Nullable List accounts, - @CustomType.Parameter("orgunits") @Nullable List orgunits) { - this.accounts = accounts; - this.orgunits = orgunits; - } + private @Nullable List orgunits; + private PolicyIncludeMap() {} /** * @return A list of AWS Organization member Accounts that you want to include for this AWS FMS Policy. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(PolicyIncludeMap defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List accounts; private @Nullable List orgunits; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicyIncludeMap defaults) { Objects.requireNonNull(defaults); this.accounts = defaults.accounts; this.orgunits = defaults.orgunits; } + @CustomType.Setter public Builder accounts(@Nullable List accounts) { this.accounts = accounts; return this; @@ -74,14 +64,19 @@ public Builder accounts(@Nullable List accounts) { public Builder accounts(String... accounts) { return accounts(List.of(accounts)); } + @CustomType.Setter public Builder orgunits(@Nullable List orgunits) { this.orgunits = orgunits; return this; } public Builder orgunits(String... orgunits) { return orgunits(List.of(orgunits)); - } public PolicyIncludeMap build() { - return new PolicyIncludeMap(accounts, orgunits); + } + public PolicyIncludeMap build() { + final var o = new PolicyIncludeMap(); + o.accounts = accounts; + o.orgunits = orgunits; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fms/outputs/PolicySecurityServicePolicyData.java b/sdk/java/src/main/java/com/pulumi/aws/fms/outputs/PolicySecurityServicePolicyData.java index 11fed85dab1..a848277746a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fms/outputs/PolicySecurityServicePolicyData.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fms/outputs/PolicySecurityServicePolicyData.java @@ -15,21 +15,14 @@ public final class PolicySecurityServicePolicyData { * @return Details about the service that are specific to the service type, in JSON format. For service type `SHIELD_ADVANCED`, this is an empty string. Examples depending on `type` can be found in the [AWS Firewall Manager SecurityServicePolicyData API Reference](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_SecurityServicePolicyData.html). * */ - private final @Nullable String managedServiceData; + private @Nullable String managedServiceData; /** * @return The service that the policy is using to protect the resources. For the current list of supported types, please refer to the [AWS Firewall Manager SecurityServicePolicyData API Type Reference](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_SecurityServicePolicyData.html#fms-Type-SecurityServicePolicyData-Type). * */ - private final String type; - - @CustomType.Constructor - private PolicySecurityServicePolicyData( - @CustomType.Parameter("managedServiceData") @Nullable String managedServiceData, - @CustomType.Parameter("type") String type) { - this.managedServiceData = managedServiceData; - this.type = type; - } + private String type; + private PolicySecurityServicePolicyData() {} /** * @return Details about the service that are specific to the service type, in JSON format. For service type `SHIELD_ADVANCED`, this is an empty string. Examples depending on `type` can be found in the [AWS Firewall Manager SecurityServicePolicyData API Reference](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_SecurityServicePolicyData.html). * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(PolicySecurityServicePolicyData defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String managedServiceData; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PolicySecurityServicePolicyData defaults) { Objects.requireNonNull(defaults); this.managedServiceData = defaults.managedServiceData; this.type = defaults.type; } + @CustomType.Setter public Builder managedServiceData(@Nullable String managedServiceData) { this.managedServiceData = managedServiceData; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public PolicySecurityServicePolicyData build() { - return new PolicySecurityServicePolicyData(managedServiceData, type); + } + public PolicySecurityServicePolicyData build() { + final var o = new PolicySecurityServicePolicyData(); + o.managedServiceData = managedServiceData; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/DataRepositoryAssociationS3.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/DataRepositoryAssociationS3.java index 8890d4af729..fa9a7c68353 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/DataRepositoryAssociationS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/DataRepositoryAssociationS3.java @@ -16,21 +16,14 @@ public final class DataRepositoryAssociationS3 { * @return Specifies the type of updated objects that will be automatically exported from your file system to the linked S3 bucket. See the `events` configuration block. * */ - private final @Nullable DataRepositoryAssociationS3AutoExportPolicy autoExportPolicy; + private @Nullable DataRepositoryAssociationS3AutoExportPolicy autoExportPolicy; /** * @return Specifies the type of updated objects that will be automatically imported from the linked S3 bucket to your file system. See the `events` configuration block. * */ - private final @Nullable DataRepositoryAssociationS3AutoImportPolicy autoImportPolicy; - - @CustomType.Constructor - private DataRepositoryAssociationS3( - @CustomType.Parameter("autoExportPolicy") @Nullable DataRepositoryAssociationS3AutoExportPolicy autoExportPolicy, - @CustomType.Parameter("autoImportPolicy") @Nullable DataRepositoryAssociationS3AutoImportPolicy autoImportPolicy) { - this.autoExportPolicy = autoExportPolicy; - this.autoImportPolicy = autoImportPolicy; - } + private @Nullable DataRepositoryAssociationS3AutoImportPolicy autoImportPolicy; + private DataRepositoryAssociationS3() {} /** * @return Specifies the type of updated objects that will be automatically exported from your file system to the linked S3 bucket. See the `events` configuration block. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(DataRepositoryAssociationS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DataRepositoryAssociationS3AutoExportPolicy autoExportPolicy; private @Nullable DataRepositoryAssociationS3AutoImportPolicy autoImportPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataRepositoryAssociationS3 defaults) { Objects.requireNonNull(defaults); this.autoExportPolicy = defaults.autoExportPolicy; this.autoImportPolicy = defaults.autoImportPolicy; } + @CustomType.Setter public Builder autoExportPolicy(@Nullable DataRepositoryAssociationS3AutoExportPolicy autoExportPolicy) { this.autoExportPolicy = autoExportPolicy; return this; } + @CustomType.Setter public Builder autoImportPolicy(@Nullable DataRepositoryAssociationS3AutoImportPolicy autoImportPolicy) { this.autoImportPolicy = autoImportPolicy; return this; - } public DataRepositoryAssociationS3 build() { - return new DataRepositoryAssociationS3(autoExportPolicy, autoImportPolicy); + } + public DataRepositoryAssociationS3 build() { + final var o = new DataRepositoryAssociationS3(); + o.autoExportPolicy = autoExportPolicy; + o.autoImportPolicy = autoImportPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/DataRepositoryAssociationS3AutoExportPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/DataRepositoryAssociationS3AutoExportPolicy.java index 69176989006..6ea30227028 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/DataRepositoryAssociationS3AutoExportPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/DataRepositoryAssociationS3AutoExportPolicy.java @@ -15,13 +15,9 @@ public final class DataRepositoryAssociationS3AutoExportPolicy { * @return A list of file event types to automatically export to your linked S3 bucket or import from the linked S3 bucket. Valid values are `NEW`, `CHANGED`, `DELETED`. Max of 3. * */ - private final @Nullable List events; - - @CustomType.Constructor - private DataRepositoryAssociationS3AutoExportPolicy(@CustomType.Parameter("events") @Nullable List events) { - this.events = events; - } + private @Nullable List events; + private DataRepositoryAssociationS3AutoExportPolicy() {} /** * @return A list of file event types to automatically export to your linked S3 bucket or import from the linked S3 bucket. Valid values are `NEW`, `CHANGED`, `DELETED`. Max of 3. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(DataRepositoryAssociationS3AutoExportPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List events; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataRepositoryAssociationS3AutoExportPolicy defaults) { Objects.requireNonNull(defaults); this.events = defaults.events; } + @CustomType.Setter public Builder events(@Nullable List events) { this.events = events; return this; } public Builder events(String... events) { return events(List.of(events)); - } public DataRepositoryAssociationS3AutoExportPolicy build() { - return new DataRepositoryAssociationS3AutoExportPolicy(events); + } + public DataRepositoryAssociationS3AutoExportPolicy build() { + final var o = new DataRepositoryAssociationS3AutoExportPolicy(); + o.events = events; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/DataRepositoryAssociationS3AutoImportPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/DataRepositoryAssociationS3AutoImportPolicy.java index e15c964261c..6272d0cc063 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/DataRepositoryAssociationS3AutoImportPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/DataRepositoryAssociationS3AutoImportPolicy.java @@ -15,13 +15,9 @@ public final class DataRepositoryAssociationS3AutoImportPolicy { * @return A list of file event types to automatically export to your linked S3 bucket or import from the linked S3 bucket. Valid values are `NEW`, `CHANGED`, `DELETED`. Max of 3. * */ - private final @Nullable List events; - - @CustomType.Constructor - private DataRepositoryAssociationS3AutoImportPolicy(@CustomType.Parameter("events") @Nullable List events) { - this.events = events; - } + private @Nullable List events; + private DataRepositoryAssociationS3AutoImportPolicy() {} /** * @return A list of file event types to automatically export to your linked S3 bucket or import from the linked S3 bucket. Valid values are `NEW`, `CHANGED`, `DELETED`. Max of 3. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(DataRepositoryAssociationS3AutoImportPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List events; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataRepositoryAssociationS3AutoImportPolicy defaults) { Objects.requireNonNull(defaults); this.events = defaults.events; } + @CustomType.Setter public Builder events(@Nullable List events) { this.events = events; return this; } public Builder events(String... events) { return events(List.of(events)); - } public DataRepositoryAssociationS3AutoImportPolicy build() { - return new DataRepositoryAssociationS3AutoImportPolicy(events); + } + public DataRepositoryAssociationS3AutoImportPolicy build() { + final var o = new DataRepositoryAssociationS3AutoImportPolicy(); + o.events = events; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/GetOpenZfsSnapshotFilter.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/GetOpenZfsSnapshotFilter.java index 78a8db89cf7..823b5771f50 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/GetOpenZfsSnapshotFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/GetOpenZfsSnapshotFilter.java @@ -14,17 +14,10 @@ public final class GetOpenZfsSnapshotFilter { * @return The name of the snapshot. * */ - private final String name; - private final List values; - - @CustomType.Constructor - private GetOpenZfsSnapshotFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetOpenZfsSnapshotFilter() {} /** * @return The name of the snapshot. * @@ -43,33 +36,35 @@ public static Builder builder() { public static Builder builder(GetOpenZfsSnapshotFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOpenZfsSnapshotFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetOpenZfsSnapshotFilter build() { - return new GetOpenZfsSnapshotFilter(name, values); + } + public GetOpenZfsSnapshotFilter build() { + final var o = new GetOpenZfsSnapshotFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/GetOpenZfsSnapshotResult.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/GetOpenZfsSnapshotResult.java index 340b6312a29..e6c28773719 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/GetOpenZfsSnapshotResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/GetOpenZfsSnapshotResult.java @@ -19,65 +19,42 @@ public final class GetOpenZfsSnapshotResult { * @return Amazon Resource Name of the snapshot. * */ - private final String arn; + private String arn; /** * @return The time that the resource was created. * */ - private final String creationTime; - private final @Nullable List filters; + private String creationTime; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable Boolean mostRecent; + private String id; + private @Nullable Boolean mostRecent; /** * @return The name of the snapshot. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return The ID of the snapshot. * */ - private final String snapshotId; - private final @Nullable List snapshotIds; + private String snapshotId; + private @Nullable List snapshotIds; /** * @return A list of Tag values, with a maximum of 50 elements. * */ - private final Map tags; + private Map tags; /** * @return The ID of the volume that the snapshot is of. * */ - private final String volumeId; - - @CustomType.Constructor - private GetOpenZfsSnapshotResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("creationTime") String creationTime, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("mostRecent") @Nullable Boolean mostRecent, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("snapshotId") String snapshotId, - @CustomType.Parameter("snapshotIds") @Nullable List snapshotIds, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("volumeId") String volumeId) { - this.arn = arn; - this.creationTime = creationTime; - this.filters = filters; - this.id = id; - this.mostRecent = mostRecent; - this.name = name; - this.snapshotId = snapshotId; - this.snapshotIds = snapshotIds; - this.tags = tags; - this.volumeId = volumeId; - } + private String volumeId; + private GetOpenZfsSnapshotResult() {} /** * @return Amazon Resource Name of the snapshot. * @@ -144,7 +121,7 @@ public static Builder builder() { public static Builder builder(GetOpenZfsSnapshotResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String creationTime; @@ -156,11 +133,7 @@ public static final class Builder { private @Nullable List snapshotIds; private Map tags; private String volumeId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOpenZfsSnapshotResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -175,14 +148,17 @@ public Builder(GetOpenZfsSnapshotResult defaults) { this.volumeId = defaults.volumeId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder creationTime(String creationTime) { this.creationTime = Objects.requireNonNull(creationTime); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -190,22 +166,27 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetOpenZfsSnapshotFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { this.mostRecent = mostRecent; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder snapshotId(String snapshotId) { this.snapshotId = Objects.requireNonNull(snapshotId); return this; } + @CustomType.Setter public Builder snapshotIds(@Nullable List snapshotIds) { this.snapshotIds = snapshotIds; return this; @@ -213,15 +194,29 @@ public Builder snapshotIds(@Nullable List snapshotIds) { public Builder snapshotIds(String... snapshotIds) { return snapshotIds(List.of(snapshotIds)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder volumeId(String volumeId) { this.volumeId = Objects.requireNonNull(volumeId); return this; - } public GetOpenZfsSnapshotResult build() { - return new GetOpenZfsSnapshotResult(arn, creationTime, filters, id, mostRecent, name, snapshotId, snapshotIds, tags, volumeId); + } + public GetOpenZfsSnapshotResult build() { + final var o = new GetOpenZfsSnapshotResult(); + o.arn = arn; + o.creationTime = creationTime; + o.filters = filters; + o.id = id; + o.mostRecent = mostRecent; + o.name = name; + o.snapshotId = snapshotId; + o.snapshotIds = snapshotIds; + o.tags = tags; + o.volumeId = volumeId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/LustreFileSystemLogConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/LustreFileSystemLogConfiguration.java index 472eb72590d..5f2672eb19e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/LustreFileSystemLogConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/LustreFileSystemLogConfiguration.java @@ -15,21 +15,14 @@ public final class LustreFileSystemLogConfiguration { * @return The Amazon Resource Name (ARN) that specifies the destination of the logs. The name of the Amazon CloudWatch Logs log group must begin with the `/aws/fsx` prefix. If you do not provide a destination, Amazon FSx will create and use a log stream in the CloudWatch Logs `/aws/fsx/lustre` log group. * */ - private final @Nullable String destination; + private @Nullable String destination; /** * @return Sets which data repository events are logged by Amazon FSx. Valid values are `WARN_ONLY`, `FAILURE_ONLY`, `ERROR_ONLY`, `WARN_ERROR` and `DISABLED`. Default value is `DISABLED`. * */ - private final @Nullable String level; - - @CustomType.Constructor - private LustreFileSystemLogConfiguration( - @CustomType.Parameter("destination") @Nullable String destination, - @CustomType.Parameter("level") @Nullable String level) { - this.destination = destination; - this.level = level; - } + private @Nullable String level; + private LustreFileSystemLogConfiguration() {} /** * @return The Amazon Resource Name (ARN) that specifies the destination of the logs. The name of the Amazon CloudWatch Logs log group must begin with the `/aws/fsx` prefix. If you do not provide a destination, Amazon FSx will create and use a log stream in the CloudWatch Logs `/aws/fsx/lustre` log group. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LustreFileSystemLogConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String destination; private @Nullable String level; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LustreFileSystemLogConfiguration defaults) { Objects.requireNonNull(defaults); this.destination = defaults.destination; this.level = defaults.level; } + @CustomType.Setter public Builder destination(@Nullable String destination) { this.destination = destination; return this; } + @CustomType.Setter public Builder level(@Nullable String level) { this.level = level; return this; - } public LustreFileSystemLogConfiguration build() { - return new LustreFileSystemLogConfiguration(destination, level); + } + public LustreFileSystemLogConfiguration build() { + final var o = new LustreFileSystemLogConfiguration(); + o.destination = destination; + o.level = level; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemDiskIopsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemDiskIopsConfiguration.java index e760b5dfc1a..8a80242e8ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemDiskIopsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemDiskIopsConfiguration.java @@ -16,21 +16,14 @@ public final class OntapFileSystemDiskIopsConfiguration { * @return - The total number of SSD IOPS provisioned for the file system. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return - Specifies whether the number of IOPS for the file system is using the system. Valid values are `AUTOMATIC` and `USER_PROVISIONED`. Default value is `AUTOMATIC`. * */ - private final @Nullable String mode; - - @CustomType.Constructor - private OntapFileSystemDiskIopsConfiguration( - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mode") @Nullable String mode) { - this.iops = iops; - this.mode = mode; - } + private @Nullable String mode; + private OntapFileSystemDiskIopsConfiguration() {} /** * @return - The total number of SSD IOPS provisioned for the file system. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(OntapFileSystemDiskIopsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer iops; private @Nullable String mode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OntapFileSystemDiskIopsConfiguration defaults) { Objects.requireNonNull(defaults); this.iops = defaults.iops; this.mode = defaults.mode; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mode(@Nullable String mode) { this.mode = mode; return this; - } public OntapFileSystemDiskIopsConfiguration build() { - return new OntapFileSystemDiskIopsConfiguration(iops, mode); + } + public OntapFileSystemDiskIopsConfiguration build() { + final var o = new OntapFileSystemDiskIopsConfiguration(); + o.iops = iops; + o.mode = mode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemEndpoint.java index 198bdd4acf5..85c02266504 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemEndpoint.java @@ -16,21 +16,14 @@ public final class OntapFileSystemEndpoint { * @return An endpoint for managing your file system by setting up NetApp SnapMirror with other ONTAP systems. See Endpoint. * */ - private final @Nullable List interclusters; + private @Nullable List interclusters; /** * @return An endpoint for managing your file system using the NetApp ONTAP CLI and NetApp ONTAP API. See Endpoint. * */ - private final @Nullable List managements; - - @CustomType.Constructor - private OntapFileSystemEndpoint( - @CustomType.Parameter("interclusters") @Nullable List interclusters, - @CustomType.Parameter("managements") @Nullable List managements) { - this.interclusters = interclusters; - this.managements = managements; - } + private @Nullable List managements; + private OntapFileSystemEndpoint() {} /** * @return An endpoint for managing your file system by setting up NetApp SnapMirror with other ONTAP systems. See Endpoint. * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(OntapFileSystemEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List interclusters; private @Nullable List managements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OntapFileSystemEndpoint defaults) { Objects.requireNonNull(defaults); this.interclusters = defaults.interclusters; this.managements = defaults.managements; } + @CustomType.Setter public Builder interclusters(@Nullable List interclusters) { this.interclusters = interclusters; return this; @@ -75,14 +65,19 @@ public Builder interclusters(@Nullable List public Builder interclusters(OntapFileSystemEndpointIntercluster... interclusters) { return interclusters(List.of(interclusters)); } + @CustomType.Setter public Builder managements(@Nullable List managements) { this.managements = managements; return this; } public Builder managements(OntapFileSystemEndpointManagement... managements) { return managements(List.of(managements)); - } public OntapFileSystemEndpoint build() { - return new OntapFileSystemEndpoint(interclusters, managements); + } + public OntapFileSystemEndpoint build() { + final var o = new OntapFileSystemEndpoint(); + o.interclusters = interclusters; + o.managements = managements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemEndpointIntercluster.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemEndpointIntercluster.java index c505d3ade3c..89a08cd9f97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemEndpointIntercluster.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemEndpointIntercluster.java @@ -16,21 +16,14 @@ public final class OntapFileSystemEndpointIntercluster { * @return The Domain Name Service (DNS) name for the file system. You can mount your file system using its DNS name. * */ - private final @Nullable String dnsName; + private @Nullable String dnsName; /** * @return IP addresses of the file system endpoint. * */ - private final @Nullable List ipAddresses; - - @CustomType.Constructor - private OntapFileSystemEndpointIntercluster( - @CustomType.Parameter("dnsName") @Nullable String dnsName, - @CustomType.Parameter("ipAddresses") @Nullable List ipAddresses) { - this.dnsName = dnsName; - this.ipAddresses = ipAddresses; - } + private @Nullable List ipAddresses; + private OntapFileSystemEndpointIntercluster() {} /** * @return The Domain Name Service (DNS) name for the file system. You can mount your file system using its DNS name. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(OntapFileSystemEndpointIntercluster defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dnsName; private @Nullable List ipAddresses; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OntapFileSystemEndpointIntercluster defaults) { Objects.requireNonNull(defaults); this.dnsName = defaults.dnsName; this.ipAddresses = defaults.ipAddresses; } + @CustomType.Setter public Builder dnsName(@Nullable String dnsName) { this.dnsName = dnsName; return this; } + @CustomType.Setter public Builder ipAddresses(@Nullable List ipAddresses) { this.ipAddresses = ipAddresses; return this; } public Builder ipAddresses(String... ipAddresses) { return ipAddresses(List.of(ipAddresses)); - } public OntapFileSystemEndpointIntercluster build() { - return new OntapFileSystemEndpointIntercluster(dnsName, ipAddresses); + } + public OntapFileSystemEndpointIntercluster build() { + final var o = new OntapFileSystemEndpointIntercluster(); + o.dnsName = dnsName; + o.ipAddresses = ipAddresses; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemEndpointManagement.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemEndpointManagement.java index 38308e4d52f..3574d153a09 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemEndpointManagement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapFileSystemEndpointManagement.java @@ -16,21 +16,14 @@ public final class OntapFileSystemEndpointManagement { * @return The Domain Name Service (DNS) name for the file system. You can mount your file system using its DNS name. * */ - private final @Nullable String dnsName; + private @Nullable String dnsName; /** * @return IP addresses of the file system endpoint. * */ - private final @Nullable List ipAddresses; - - @CustomType.Constructor - private OntapFileSystemEndpointManagement( - @CustomType.Parameter("dnsName") @Nullable String dnsName, - @CustomType.Parameter("ipAddresses") @Nullable List ipAddresses) { - this.dnsName = dnsName; - this.ipAddresses = ipAddresses; - } + private @Nullable List ipAddresses; + private OntapFileSystemEndpointManagement() {} /** * @return The Domain Name Service (DNS) name for the file system. You can mount your file system using its DNS name. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(OntapFileSystemEndpointManagement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dnsName; private @Nullable List ipAddresses; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OntapFileSystemEndpointManagement defaults) { Objects.requireNonNull(defaults); this.dnsName = defaults.dnsName; this.ipAddresses = defaults.ipAddresses; } + @CustomType.Setter public Builder dnsName(@Nullable String dnsName) { this.dnsName = dnsName; return this; } + @CustomType.Setter public Builder ipAddresses(@Nullable List ipAddresses) { this.ipAddresses = ipAddresses; return this; } public Builder ipAddresses(String... ipAddresses) { return ipAddresses(List.of(ipAddresses)); - } public OntapFileSystemEndpointManagement build() { - return new OntapFileSystemEndpointManagement(dnsName, ipAddresses); + } + public OntapFileSystemEndpointManagement build() { + final var o = new OntapFileSystemEndpointManagement(); + o.dnsName = dnsName; + o.ipAddresses = ipAddresses; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineActiveDirectoryConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineActiveDirectoryConfiguration.java index 01da5bb4f58..9ea2471df26 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineActiveDirectoryConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineActiveDirectoryConfiguration.java @@ -16,17 +16,10 @@ public final class OntapStorageVirtualMachineActiveDirectoryConfiguration { * @return The NetBIOS name of the Active Directory computer object that will be created for your SVM. This is often the same as the SVM name but can be different. AWS limits to 15 characters because of standard NetBIOS naming limits. * */ - private final @Nullable String netbiosName; - private final @Nullable OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration selfManagedActiveDirectoryConfiguration; - - @CustomType.Constructor - private OntapStorageVirtualMachineActiveDirectoryConfiguration( - @CustomType.Parameter("netbiosName") @Nullable String netbiosName, - @CustomType.Parameter("selfManagedActiveDirectoryConfiguration") @Nullable OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration selfManagedActiveDirectoryConfiguration) { - this.netbiosName = netbiosName; - this.selfManagedActiveDirectoryConfiguration = selfManagedActiveDirectoryConfiguration; - } + private @Nullable String netbiosName; + private @Nullable OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration selfManagedActiveDirectoryConfiguration; + private OntapStorageVirtualMachineActiveDirectoryConfiguration() {} /** * @return The NetBIOS name of the Active Directory computer object that will be created for your SVM. This is often the same as the SVM name but can be different. AWS limits to 15 characters because of standard NetBIOS naming limits. * @@ -45,30 +38,32 @@ public static Builder builder() { public static Builder builder(OntapStorageVirtualMachineActiveDirectoryConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String netbiosName; private @Nullable OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration selfManagedActiveDirectoryConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OntapStorageVirtualMachineActiveDirectoryConfiguration defaults) { Objects.requireNonNull(defaults); this.netbiosName = defaults.netbiosName; this.selfManagedActiveDirectoryConfiguration = defaults.selfManagedActiveDirectoryConfiguration; } + @CustomType.Setter public Builder netbiosName(@Nullable String netbiosName) { this.netbiosName = netbiosName; return this; } + @CustomType.Setter public Builder selfManagedActiveDirectoryConfiguration(@Nullable OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration selfManagedActiveDirectoryConfiguration) { this.selfManagedActiveDirectoryConfiguration = selfManagedActiveDirectoryConfiguration; return this; - } public OntapStorageVirtualMachineActiveDirectoryConfiguration build() { - return new OntapStorageVirtualMachineActiveDirectoryConfiguration(netbiosName, selfManagedActiveDirectoryConfiguration); + } + public OntapStorageVirtualMachineActiveDirectoryConfiguration build() { + final var o = new OntapStorageVirtualMachineActiveDirectoryConfiguration(); + o.netbiosName = netbiosName; + o.selfManagedActiveDirectoryConfiguration = selfManagedActiveDirectoryConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration.java index 93775797803..ee7182b7fba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration.java @@ -16,49 +16,34 @@ public final class OntapStorageVirtualMachineActiveDirectoryConfigurationSelfMan * @return A list of up to three IP addresses of DNS servers or domain controllers in the self-managed AD directory. * */ - private final List dnsIps; + private List dnsIps; /** * @return The fully qualified domain name of the self-managed AD directory. For example, `corp.example.com`. * */ - private final String domainName; + private String domainName; /** * @return The name of the domain group whose members are granted administrative privileges for the SVM. The group that you specify must already exist in your domain. Defaults to `Domain Admins`. * */ - private final @Nullable String fileSystemAdministratorsGroup; + private @Nullable String fileSystemAdministratorsGroup; /** * @return The fully qualified distinguished name of the organizational unit within your self-managed AD directory that the Windows File Server instance will join. For example, `OU=FSx,DC=yourdomain,DC=corp,DC=com`. Only accepts OU as the direct parent of the SVM. If none is provided, the SVM is created in the default location of your self-managed AD directory. To learn more, see [RFC 2253](https://tools.ietf.org/html/rfc2253). * */ - private final @Nullable String organizationalUnitDistinguishedName; + private @Nullable String organizationalUnitDistinguishedName; /** * @return The password for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. * */ - private final String password; + private String password; /** * @return The user name for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. * */ - private final String username; - - @CustomType.Constructor - private OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration( - @CustomType.Parameter("dnsIps") List dnsIps, - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("fileSystemAdministratorsGroup") @Nullable String fileSystemAdministratorsGroup, - @CustomType.Parameter("organizationalUnitDistinguishedName") @Nullable String organizationalUnitDistinguishedName, - @CustomType.Parameter("password") String password, - @CustomType.Parameter("username") String username) { - this.dnsIps = dnsIps; - this.domainName = domainName; - this.fileSystemAdministratorsGroup = fileSystemAdministratorsGroup; - this.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; - this.password = password; - this.username = username; - } + private String username; + private OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration() {} /** * @return A list of up to three IP addresses of DNS servers or domain controllers in the self-managed AD directory. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List dnsIps; private String domainName; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable String organizationalUnitDistinguishedName; private String password; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration defaults) { Objects.requireNonNull(defaults); this.dnsIps = defaults.dnsIps; @@ -132,6 +113,7 @@ public Builder(OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManaged this.username = defaults.username; } + @CustomType.Setter public Builder dnsIps(List dnsIps) { this.dnsIps = Objects.requireNonNull(dnsIps); return this; @@ -139,27 +121,40 @@ public Builder dnsIps(List dnsIps) { public Builder dnsIps(String... dnsIps) { return dnsIps(List.of(dnsIps)); } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder fileSystemAdministratorsGroup(@Nullable String fileSystemAdministratorsGroup) { this.fileSystemAdministratorsGroup = fileSystemAdministratorsGroup; return this; } + @CustomType.Setter public Builder organizationalUnitDistinguishedName(@Nullable String organizationalUnitDistinguishedName) { this.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; return this; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration build() { - return new OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration(dnsIps, domainName, fileSystemAdministratorsGroup, organizationalUnitDistinguishedName, password, username); + } + public OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration build() { + final var o = new OntapStorageVirtualMachineActiveDirectoryConfigurationSelfManagedActiveDirectoryConfiguration(); + o.dnsIps = dnsIps; + o.domainName = domainName; + o.fileSystemAdministratorsGroup = fileSystemAdministratorsGroup; + o.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; + o.password = password; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpoint.java index aca6acd4733..31f637997cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpoint.java @@ -18,35 +18,24 @@ public final class OntapStorageVirtualMachineEndpoint { * @return An endpoint for accessing data on your storage virtual machine via iSCSI protocol. See Endpoint. * */ - private final @Nullable List iscses; + private @Nullable List iscses; /** * @return An endpoint for managing your file system using the NetApp ONTAP CLI and NetApp ONTAP API. See Endpoint. * */ - private final @Nullable List managements; + private @Nullable List managements; /** * @return An endpoint for accessing data on your storage virtual machine via NFS protocol. See Endpoint. * */ - private final @Nullable List nfs; + private @Nullable List nfs; /** * @return An endpoint for accessing data on your storage virtual machine via SMB protocol. This is only set if an active_directory_configuration has been set. See Endpoint. * */ - private final @Nullable List smbs; - - @CustomType.Constructor - private OntapStorageVirtualMachineEndpoint( - @CustomType.Parameter("iscses") @Nullable List iscses, - @CustomType.Parameter("managements") @Nullable List managements, - @CustomType.Parameter("nfs") @Nullable List nfs, - @CustomType.Parameter("smbs") @Nullable List smbs) { - this.iscses = iscses; - this.managements = managements; - this.nfs = nfs; - this.smbs = smbs; - } + private @Nullable List smbs; + private OntapStorageVirtualMachineEndpoint() {} /** * @return An endpoint for accessing data on your storage virtual machine via iSCSI protocol. See Endpoint. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(OntapStorageVirtualMachineEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List iscses; private @Nullable List managements; private @Nullable List nfs; private @Nullable List smbs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OntapStorageVirtualMachineEndpoint defaults) { Objects.requireNonNull(defaults); this.iscses = defaults.iscses; @@ -102,6 +87,7 @@ public Builder(OntapStorageVirtualMachineEndpoint defaults) { this.smbs = defaults.smbs; } + @CustomType.Setter public Builder iscses(@Nullable List iscses) { this.iscses = iscses; return this; @@ -109,6 +95,7 @@ public Builder iscses(@Nullable List is public Builder iscses(OntapStorageVirtualMachineEndpointIscse... iscses) { return iscses(List.of(iscses)); } + @CustomType.Setter public Builder managements(@Nullable List managements) { this.managements = managements; return this; @@ -116,6 +103,7 @@ public Builder managements(@Nullable List nfs) { this.nfs = nfs; return this; @@ -123,14 +111,21 @@ public Builder nfs(@Nullable List nfs) { public Builder nfs(OntapStorageVirtualMachineEndpointNf... nfs) { return nfs(List.of(nfs)); } + @CustomType.Setter public Builder smbs(@Nullable List smbs) { this.smbs = smbs; return this; } public Builder smbs(OntapStorageVirtualMachineEndpointSmb... smbs) { return smbs(List.of(smbs)); - } public OntapStorageVirtualMachineEndpoint build() { - return new OntapStorageVirtualMachineEndpoint(iscses, managements, nfs, smbs); + } + public OntapStorageVirtualMachineEndpoint build() { + final var o = new OntapStorageVirtualMachineEndpoint(); + o.iscses = iscses; + o.managements = managements; + o.nfs = nfs; + o.smbs = smbs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointIscse.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointIscse.java index 3e673371593..ebf0b041e92 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointIscse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointIscse.java @@ -16,21 +16,14 @@ public final class OntapStorageVirtualMachineEndpointIscse { * @return The Domain Name Service (DNS) name for the storage virtual machine. You can mount your storage virtual machine using its DNS name. * */ - private final @Nullable String dnsName; + private @Nullable String dnsName; /** * @return IP addresses of the storage virtual machine endpoint. * */ - private final @Nullable List ipAddresses; - - @CustomType.Constructor - private OntapStorageVirtualMachineEndpointIscse( - @CustomType.Parameter("dnsName") @Nullable String dnsName, - @CustomType.Parameter("ipAddresses") @Nullable List ipAddresses) { - this.dnsName = dnsName; - this.ipAddresses = ipAddresses; - } + private @Nullable List ipAddresses; + private OntapStorageVirtualMachineEndpointIscse() {} /** * @return The Domain Name Service (DNS) name for the storage virtual machine. You can mount your storage virtual machine using its DNS name. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(OntapStorageVirtualMachineEndpointIscse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dnsName; private @Nullable List ipAddresses; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OntapStorageVirtualMachineEndpointIscse defaults) { Objects.requireNonNull(defaults); this.dnsName = defaults.dnsName; this.ipAddresses = defaults.ipAddresses; } + @CustomType.Setter public Builder dnsName(@Nullable String dnsName) { this.dnsName = dnsName; return this; } + @CustomType.Setter public Builder ipAddresses(@Nullable List ipAddresses) { this.ipAddresses = ipAddresses; return this; } public Builder ipAddresses(String... ipAddresses) { return ipAddresses(List.of(ipAddresses)); - } public OntapStorageVirtualMachineEndpointIscse build() { - return new OntapStorageVirtualMachineEndpointIscse(dnsName, ipAddresses); + } + public OntapStorageVirtualMachineEndpointIscse build() { + final var o = new OntapStorageVirtualMachineEndpointIscse(); + o.dnsName = dnsName; + o.ipAddresses = ipAddresses; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointManagement.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointManagement.java index cefbe1e450b..d60cba0b133 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointManagement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointManagement.java @@ -16,21 +16,14 @@ public final class OntapStorageVirtualMachineEndpointManagement { * @return The Domain Name Service (DNS) name for the storage virtual machine. You can mount your storage virtual machine using its DNS name. * */ - private final @Nullable String dnsName; + private @Nullable String dnsName; /** * @return IP addresses of the storage virtual machine endpoint. * */ - private final @Nullable List ipAddresses; - - @CustomType.Constructor - private OntapStorageVirtualMachineEndpointManagement( - @CustomType.Parameter("dnsName") @Nullable String dnsName, - @CustomType.Parameter("ipAddresses") @Nullable List ipAddresses) { - this.dnsName = dnsName; - this.ipAddresses = ipAddresses; - } + private @Nullable List ipAddresses; + private OntapStorageVirtualMachineEndpointManagement() {} /** * @return The Domain Name Service (DNS) name for the storage virtual machine. You can mount your storage virtual machine using its DNS name. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(OntapStorageVirtualMachineEndpointManagement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dnsName; private @Nullable List ipAddresses; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OntapStorageVirtualMachineEndpointManagement defaults) { Objects.requireNonNull(defaults); this.dnsName = defaults.dnsName; this.ipAddresses = defaults.ipAddresses; } + @CustomType.Setter public Builder dnsName(@Nullable String dnsName) { this.dnsName = dnsName; return this; } + @CustomType.Setter public Builder ipAddresses(@Nullable List ipAddresses) { this.ipAddresses = ipAddresses; return this; } public Builder ipAddresses(String... ipAddresses) { return ipAddresses(List.of(ipAddresses)); - } public OntapStorageVirtualMachineEndpointManagement build() { - return new OntapStorageVirtualMachineEndpointManagement(dnsName, ipAddresses); + } + public OntapStorageVirtualMachineEndpointManagement build() { + final var o = new OntapStorageVirtualMachineEndpointManagement(); + o.dnsName = dnsName; + o.ipAddresses = ipAddresses; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointNf.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointNf.java index 1436cefd594..a1ef492111f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointNf.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointNf.java @@ -16,21 +16,14 @@ public final class OntapStorageVirtualMachineEndpointNf { * @return The Domain Name Service (DNS) name for the storage virtual machine. You can mount your storage virtual machine using its DNS name. * */ - private final @Nullable String dnsName; + private @Nullable String dnsName; /** * @return IP addresses of the storage virtual machine endpoint. * */ - private final @Nullable List ipAddresses; - - @CustomType.Constructor - private OntapStorageVirtualMachineEndpointNf( - @CustomType.Parameter("dnsName") @Nullable String dnsName, - @CustomType.Parameter("ipAddresses") @Nullable List ipAddresses) { - this.dnsName = dnsName; - this.ipAddresses = ipAddresses; - } + private @Nullable List ipAddresses; + private OntapStorageVirtualMachineEndpointNf() {} /** * @return The Domain Name Service (DNS) name for the storage virtual machine. You can mount your storage virtual machine using its DNS name. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(OntapStorageVirtualMachineEndpointNf defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dnsName; private @Nullable List ipAddresses; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OntapStorageVirtualMachineEndpointNf defaults) { Objects.requireNonNull(defaults); this.dnsName = defaults.dnsName; this.ipAddresses = defaults.ipAddresses; } + @CustomType.Setter public Builder dnsName(@Nullable String dnsName) { this.dnsName = dnsName; return this; } + @CustomType.Setter public Builder ipAddresses(@Nullable List ipAddresses) { this.ipAddresses = ipAddresses; return this; } public Builder ipAddresses(String... ipAddresses) { return ipAddresses(List.of(ipAddresses)); - } public OntapStorageVirtualMachineEndpointNf build() { - return new OntapStorageVirtualMachineEndpointNf(dnsName, ipAddresses); + } + public OntapStorageVirtualMachineEndpointNf build() { + final var o = new OntapStorageVirtualMachineEndpointNf(); + o.dnsName = dnsName; + o.ipAddresses = ipAddresses; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointSmb.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointSmb.java index d0436317892..c82744d5d38 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointSmb.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapStorageVirtualMachineEndpointSmb.java @@ -16,21 +16,14 @@ public final class OntapStorageVirtualMachineEndpointSmb { * @return The Domain Name Service (DNS) name for the storage virtual machine. You can mount your storage virtual machine using its DNS name. * */ - private final @Nullable String dnsName; + private @Nullable String dnsName; /** * @return IP addresses of the storage virtual machine endpoint. * */ - private final @Nullable List ipAddresses; - - @CustomType.Constructor - private OntapStorageVirtualMachineEndpointSmb( - @CustomType.Parameter("dnsName") @Nullable String dnsName, - @CustomType.Parameter("ipAddresses") @Nullable List ipAddresses) { - this.dnsName = dnsName; - this.ipAddresses = ipAddresses; - } + private @Nullable List ipAddresses; + private OntapStorageVirtualMachineEndpointSmb() {} /** * @return The Domain Name Service (DNS) name for the storage virtual machine. You can mount your storage virtual machine using its DNS name. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(OntapStorageVirtualMachineEndpointSmb defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dnsName; private @Nullable List ipAddresses; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OntapStorageVirtualMachineEndpointSmb defaults) { Objects.requireNonNull(defaults); this.dnsName = defaults.dnsName; this.ipAddresses = defaults.ipAddresses; } + @CustomType.Setter public Builder dnsName(@Nullable String dnsName) { this.dnsName = dnsName; return this; } + @CustomType.Setter public Builder ipAddresses(@Nullable List ipAddresses) { this.ipAddresses = ipAddresses; return this; } public Builder ipAddresses(String... ipAddresses) { return ipAddresses(List.of(ipAddresses)); - } public OntapStorageVirtualMachineEndpointSmb build() { - return new OntapStorageVirtualMachineEndpointSmb(dnsName, ipAddresses); + } + public OntapStorageVirtualMachineEndpointSmb build() { + final var o = new OntapStorageVirtualMachineEndpointSmb(); + o.dnsName = dnsName; + o.ipAddresses = ipAddresses; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeTieringPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeTieringPolicy.java index 4afcc2a378f..a44ff525299 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeTieringPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OntapVolumeTieringPolicy.java @@ -12,21 +12,14 @@ @CustomType public final class OntapVolumeTieringPolicy { - private final @Nullable Integer coolingPeriod; + private @Nullable Integer coolingPeriod; /** * @return Specifies the tiering policy for the ONTAP volume for moving data to the capacity pool storage. Valid values are `SNAPSHOT_ONLY`, `AUTO`, `ALL`, `NONE`. Default value is `SNAPSHOT_ONLY`. * */ - private final @Nullable String name; - - @CustomType.Constructor - private OntapVolumeTieringPolicy( - @CustomType.Parameter("coolingPeriod") @Nullable Integer coolingPeriod, - @CustomType.Parameter("name") @Nullable String name) { - this.coolingPeriod = coolingPeriod; - this.name = name; - } + private @Nullable String name; + private OntapVolumeTieringPolicy() {} public Optional coolingPeriod() { return Optional.ofNullable(this.coolingPeriod); } @@ -45,30 +38,32 @@ public static Builder builder() { public static Builder builder(OntapVolumeTieringPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer coolingPeriod; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OntapVolumeTieringPolicy defaults) { Objects.requireNonNull(defaults); this.coolingPeriod = defaults.coolingPeriod; this.name = defaults.name; } + @CustomType.Setter public Builder coolingPeriod(@Nullable Integer coolingPeriod) { this.coolingPeriod = coolingPeriod; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public OntapVolumeTieringPolicy build() { - return new OntapVolumeTieringPolicy(coolingPeriod, name); + } + public OntapVolumeTieringPolicy build() { + final var o = new OntapVolumeTieringPolicy(); + o.coolingPeriod = coolingPeriod; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemDiskIopsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemDiskIopsConfiguration.java index 16e419a6944..1867b1fe674 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemDiskIopsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemDiskIopsConfiguration.java @@ -16,21 +16,14 @@ public final class OpenZfsFileSystemDiskIopsConfiguration { * @return - The total number of SSD IOPS provisioned for the file system. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return - Specifies whether the number of IOPS for the file system is using the system. Valid values are `AUTOMATIC` and `USER_PROVISIONED`. Default value is `AUTOMATIC`. * */ - private final @Nullable String mode; - - @CustomType.Constructor - private OpenZfsFileSystemDiskIopsConfiguration( - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mode") @Nullable String mode) { - this.iops = iops; - this.mode = mode; - } + private @Nullable String mode; + private OpenZfsFileSystemDiskIopsConfiguration() {} /** * @return - The total number of SSD IOPS provisioned for the file system. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(OpenZfsFileSystemDiskIopsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer iops; private @Nullable String mode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OpenZfsFileSystemDiskIopsConfiguration defaults) { Objects.requireNonNull(defaults); this.iops = defaults.iops; this.mode = defaults.mode; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mode(@Nullable String mode) { this.mode = mode; return this; - } public OpenZfsFileSystemDiskIopsConfiguration build() { - return new OpenZfsFileSystemDiskIopsConfiguration(iops, mode); + } + public OpenZfsFileSystemDiskIopsConfiguration build() { + final var o = new OpenZfsFileSystemDiskIopsConfiguration(); + o.iops = iops; + o.mode = mode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfiguration.java index 6454a505a6f..99e44975a7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfiguration.java @@ -20,49 +20,34 @@ public final class OpenZfsFileSystemRootVolumeConfiguration { * @return - A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false. * */ - private final @Nullable Boolean copyTagsToSnapshots; + private @Nullable Boolean copyTagsToSnapshots; /** * @return - Method used to compress the data on the volume. Valid values are `LZ4`, `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume. * */ - private final @Nullable String dataCompressionType; + private @Nullable String dataCompressionType; /** * @return - NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below. * */ - private final @Nullable OpenZfsFileSystemRootVolumeConfigurationNfsExports nfsExports; + private @Nullable OpenZfsFileSystemRootVolumeConfigurationNfsExports nfsExports; /** * @return - specifies whether the volume is read-only. Default is false. * */ - private final @Nullable Boolean readOnly; + private @Nullable Boolean readOnly; /** * @return - Specifies the record size of an OpenZFS root volume, in kibibytes (KiB). Valid values are `4`, `8`, `16`, `32`, `64`, `128`, `256`, `512`, or `1024` KiB. The default is `128` KiB. * */ - private final @Nullable Integer recordSizeKib; + private @Nullable Integer recordSizeKib; /** * @return - Specify how much storage users or groups can use on the volume. Maximum of 100 items. See User and Group Quotas Below. * */ - private final @Nullable List userAndGroupQuotas; - - @CustomType.Constructor - private OpenZfsFileSystemRootVolumeConfiguration( - @CustomType.Parameter("copyTagsToSnapshots") @Nullable Boolean copyTagsToSnapshots, - @CustomType.Parameter("dataCompressionType") @Nullable String dataCompressionType, - @CustomType.Parameter("nfsExports") @Nullable OpenZfsFileSystemRootVolumeConfigurationNfsExports nfsExports, - @CustomType.Parameter("readOnly") @Nullable Boolean readOnly, - @CustomType.Parameter("recordSizeKib") @Nullable Integer recordSizeKib, - @CustomType.Parameter("userAndGroupQuotas") @Nullable List userAndGroupQuotas) { - this.copyTagsToSnapshots = copyTagsToSnapshots; - this.dataCompressionType = dataCompressionType; - this.nfsExports = nfsExports; - this.readOnly = readOnly; - this.recordSizeKib = recordSizeKib; - this.userAndGroupQuotas = userAndGroupQuotas; - } + private @Nullable List userAndGroupQuotas; + private OpenZfsFileSystemRootVolumeConfiguration() {} /** * @return - A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(OpenZfsFileSystemRootVolumeConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean copyTagsToSnapshots; private @Nullable String dataCompressionType; @@ -121,11 +106,7 @@ public static final class Builder { private @Nullable Boolean readOnly; private @Nullable Integer recordSizeKib; private @Nullable List userAndGroupQuotas; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OpenZfsFileSystemRootVolumeConfiguration defaults) { Objects.requireNonNull(defaults); this.copyTagsToSnapshots = defaults.copyTagsToSnapshots; @@ -136,34 +117,48 @@ public Builder(OpenZfsFileSystemRootVolumeConfiguration defaults) { this.userAndGroupQuotas = defaults.userAndGroupQuotas; } + @CustomType.Setter public Builder copyTagsToSnapshots(@Nullable Boolean copyTagsToSnapshots) { this.copyTagsToSnapshots = copyTagsToSnapshots; return this; } + @CustomType.Setter public Builder dataCompressionType(@Nullable String dataCompressionType) { this.dataCompressionType = dataCompressionType; return this; } + @CustomType.Setter public Builder nfsExports(@Nullable OpenZfsFileSystemRootVolumeConfigurationNfsExports nfsExports) { this.nfsExports = nfsExports; return this; } + @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { this.readOnly = readOnly; return this; } + @CustomType.Setter public Builder recordSizeKib(@Nullable Integer recordSizeKib) { this.recordSizeKib = recordSizeKib; return this; } + @CustomType.Setter public Builder userAndGroupQuotas(@Nullable List userAndGroupQuotas) { this.userAndGroupQuotas = userAndGroupQuotas; return this; } public Builder userAndGroupQuotas(OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota... userAndGroupQuotas) { return userAndGroupQuotas(List.of(userAndGroupQuotas)); - } public OpenZfsFileSystemRootVolumeConfiguration build() { - return new OpenZfsFileSystemRootVolumeConfiguration(copyTagsToSnapshots, dataCompressionType, nfsExports, readOnly, recordSizeKib, userAndGroupQuotas); + } + public OpenZfsFileSystemRootVolumeConfiguration build() { + final var o = new OpenZfsFileSystemRootVolumeConfiguration(); + o.copyTagsToSnapshots = copyTagsToSnapshots; + o.dataCompressionType = dataCompressionType; + o.nfsExports = nfsExports; + o.readOnly = readOnly; + o.recordSizeKib = recordSizeKib; + o.userAndGroupQuotas = userAndGroupQuotas; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfigurationNfsExports.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfigurationNfsExports.java index 25ed51fbf4d..7e43095b350 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfigurationNfsExports.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfigurationNfsExports.java @@ -14,13 +14,9 @@ public final class OpenZfsFileSystemRootVolumeConfigurationNfsExports { * @return - A list of configuration objects that contain the client and options for mounting the OpenZFS file system. Maximum of 25 items. See Client Configurations Below. * */ - private final List clientConfigurations; - - @CustomType.Constructor - private OpenZfsFileSystemRootVolumeConfigurationNfsExports(@CustomType.Parameter("clientConfigurations") List clientConfigurations) { - this.clientConfigurations = clientConfigurations; - } + private List clientConfigurations; + private OpenZfsFileSystemRootVolumeConfigurationNfsExports() {} /** * @return - A list of configuration objects that contain the client and options for mounting the OpenZFS file system. Maximum of 25 items. See Client Configurations Below. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(OpenZfsFileSystemRootVolumeConfigurationNfsExports defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List clientConfigurations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OpenZfsFileSystemRootVolumeConfigurationNfsExports defaults) { Objects.requireNonNull(defaults); this.clientConfigurations = defaults.clientConfigurations; } + @CustomType.Setter public Builder clientConfigurations(List clientConfigurations) { this.clientConfigurations = Objects.requireNonNull(clientConfigurations); return this; } public Builder clientConfigurations(OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration... clientConfigurations) { return clientConfigurations(List.of(clientConfigurations)); - } public OpenZfsFileSystemRootVolumeConfigurationNfsExports build() { - return new OpenZfsFileSystemRootVolumeConfigurationNfsExports(clientConfigurations); + } + public OpenZfsFileSystemRootVolumeConfigurationNfsExports build() { + final var o = new OpenZfsFileSystemRootVolumeConfigurationNfsExports(); + o.clientConfigurations = clientConfigurations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration.java index 4df3b5e6373..75435d9610a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration.java @@ -14,21 +14,14 @@ public final class OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfi * @return - A value that specifies who can mount the file system. You can provide a wildcard character (*), an IP address (0.0.0.0), or a CIDR address (192.0.2.0/24. By default, Amazon FSx uses the wildcard character when specifying the client. * */ - private final String clients; + private String clients; /** * @return - The options to use when mounting the file system. Maximum of 20 items. See the [Linix NFS exports man page](https://linux.die.net/man/5/exports) for more information. `crossmount` and `sync` are used by default. * */ - private final List options; - - @CustomType.Constructor - private OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration( - @CustomType.Parameter("clients") String clients, - @CustomType.Parameter("options") List options) { - this.clients = clients; - this.options = options; - } + private List options; + private OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration() {} /** * @return - A value that specifies who can mount the file system. You can provide a wildcard character (*), an IP address (0.0.0.0), or a CIDR address (192.0.2.0/24. By default, Amazon FSx uses the wildcard character when specifying the client. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String clients; private List options; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration defaults) { Objects.requireNonNull(defaults); this.clients = defaults.clients; this.options = defaults.options; } + @CustomType.Setter public Builder clients(String clients) { this.clients = Objects.requireNonNull(clients); return this; } + @CustomType.Setter public Builder options(List options) { this.options = Objects.requireNonNull(options); return this; } public Builder options(String... options) { return options(List.of(options)); - } public OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration build() { - return new OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration(clients, options); + } + public OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration build() { + final var o = new OpenZfsFileSystemRootVolumeConfigurationNfsExportsClientConfiguration(); + o.clients = clients; + o.options = options; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota.java index d4904ced902..4c365935ec5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota.java @@ -14,28 +14,19 @@ public final class OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota { * @return - The ID of the user or group. Valid values between `0` and `2147483647` * */ - private final Integer id; + private Integer id; /** * @return - The amount of storage that the user or group can use in gibibytes (GiB). Valid values between `0` and `2147483647` * */ - private final Integer storageCapacityQuotaGib; + private Integer storageCapacityQuotaGib; /** * @return - A value that specifies whether the quota applies to a user or group. Valid values are `USER` or `GROUP`. * */ - private final String type; - - @CustomType.Constructor - private OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota( - @CustomType.Parameter("id") Integer id, - @CustomType.Parameter("storageCapacityQuotaGib") Integer storageCapacityQuotaGib, - @CustomType.Parameter("type") String type) { - this.id = id; - this.storageCapacityQuotaGib = storageCapacityQuotaGib; - this.type = type; - } + private String type; + private OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota() {} /** * @return - The ID of the user or group. Valid values between `0` and `2147483647` * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer id; private Integer storageCapacityQuotaGib; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -82,19 +69,27 @@ public Builder(OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota default this.type = defaults.type; } + @CustomType.Setter public Builder id(Integer id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder storageCapacityQuotaGib(Integer storageCapacityQuotaGib) { this.storageCapacityQuotaGib = Objects.requireNonNull(storageCapacityQuotaGib); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota build() { - return new OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota(id, storageCapacityQuotaGib, type); + } + public OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota build() { + final var o = new OpenZfsFileSystemRootVolumeConfigurationUserAndGroupQuota(); + o.id = id; + o.storageCapacityQuotaGib = storageCapacityQuotaGib; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeNfsExports.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeNfsExports.java index e56db235e08..5d080758f49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeNfsExports.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeNfsExports.java @@ -14,13 +14,9 @@ public final class OpenZfsVolumeNfsExports { * @return - A list of configuration objects that contain the client and options for mounting the OpenZFS file system. Maximum of 25 items. See Client Configurations Below. * */ - private final List clientConfigurations; - - @CustomType.Constructor - private OpenZfsVolumeNfsExports(@CustomType.Parameter("clientConfigurations") List clientConfigurations) { - this.clientConfigurations = clientConfigurations; - } + private List clientConfigurations; + private OpenZfsVolumeNfsExports() {} /** * @return - A list of configuration objects that contain the client and options for mounting the OpenZFS file system. Maximum of 25 items. See Client Configurations Below. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(OpenZfsVolumeNfsExports defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List clientConfigurations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OpenZfsVolumeNfsExports defaults) { Objects.requireNonNull(defaults); this.clientConfigurations = defaults.clientConfigurations; } + @CustomType.Setter public Builder clientConfigurations(List clientConfigurations) { this.clientConfigurations = Objects.requireNonNull(clientConfigurations); return this; } public Builder clientConfigurations(OpenZfsVolumeNfsExportsClientConfiguration... clientConfigurations) { return clientConfigurations(List.of(clientConfigurations)); - } public OpenZfsVolumeNfsExports build() { - return new OpenZfsVolumeNfsExports(clientConfigurations); + } + public OpenZfsVolumeNfsExports build() { + final var o = new OpenZfsVolumeNfsExports(); + o.clientConfigurations = clientConfigurations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeNfsExportsClientConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeNfsExportsClientConfiguration.java index 34492b509bf..e3fd8645fe6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeNfsExportsClientConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeNfsExportsClientConfiguration.java @@ -14,21 +14,14 @@ public final class OpenZfsVolumeNfsExportsClientConfiguration { * @return - A value that specifies who can mount the file system. You can provide a wildcard character (*), an IP address (0.0.0.0), or a CIDR address (192.0.2.0/24. By default, Amazon FSx uses the wildcard character when specifying the client. * */ - private final String clients; + private String clients; /** * @return - The options to use when mounting the file system. Maximum of 20 items. See the [Linix NFS exports man page](https://linux.die.net/man/5/exports) for more information. `crossmount` and `sync` are used by default. * */ - private final List options; - - @CustomType.Constructor - private OpenZfsVolumeNfsExportsClientConfiguration( - @CustomType.Parameter("clients") String clients, - @CustomType.Parameter("options") List options) { - this.clients = clients; - this.options = options; - } + private List options; + private OpenZfsVolumeNfsExportsClientConfiguration() {} /** * @return - A value that specifies who can mount the file system. You can provide a wildcard character (*), an IP address (0.0.0.0), or a CIDR address (192.0.2.0/24. By default, Amazon FSx uses the wildcard character when specifying the client. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(OpenZfsVolumeNfsExportsClientConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String clients; private List options; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OpenZfsVolumeNfsExportsClientConfiguration defaults) { Objects.requireNonNull(defaults); this.clients = defaults.clients; this.options = defaults.options; } + @CustomType.Setter public Builder clients(String clients) { this.clients = Objects.requireNonNull(clients); return this; } + @CustomType.Setter public Builder options(List options) { this.options = Objects.requireNonNull(options); return this; } public Builder options(String... options) { return options(List.of(options)); - } public OpenZfsVolumeNfsExportsClientConfiguration build() { - return new OpenZfsVolumeNfsExportsClientConfiguration(clients, options); + } + public OpenZfsVolumeNfsExportsClientConfiguration build() { + final var o = new OpenZfsVolumeNfsExportsClientConfiguration(); + o.clients = clients; + o.options = options; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeOriginSnapshot.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeOriginSnapshot.java index c8f6f5121b5..1481b676fca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeOriginSnapshot.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeOriginSnapshot.java @@ -9,17 +9,10 @@ @CustomType public final class OpenZfsVolumeOriginSnapshot { - private final String copyStrategy; - private final String snapshotArn; - - @CustomType.Constructor - private OpenZfsVolumeOriginSnapshot( - @CustomType.Parameter("copyStrategy") String copyStrategy, - @CustomType.Parameter("snapshotArn") String snapshotArn) { - this.copyStrategy = copyStrategy; - this.snapshotArn = snapshotArn; - } + private String copyStrategy; + private String snapshotArn; + private OpenZfsVolumeOriginSnapshot() {} public String copyStrategy() { return this.copyStrategy; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(OpenZfsVolumeOriginSnapshot defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String copyStrategy; private String snapshotArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OpenZfsVolumeOriginSnapshot defaults) { Objects.requireNonNull(defaults); this.copyStrategy = defaults.copyStrategy; this.snapshotArn = defaults.snapshotArn; } + @CustomType.Setter public Builder copyStrategy(String copyStrategy) { this.copyStrategy = Objects.requireNonNull(copyStrategy); return this; } + @CustomType.Setter public Builder snapshotArn(String snapshotArn) { this.snapshotArn = Objects.requireNonNull(snapshotArn); return this; - } public OpenZfsVolumeOriginSnapshot build() { - return new OpenZfsVolumeOriginSnapshot(copyStrategy, snapshotArn); + } + public OpenZfsVolumeOriginSnapshot build() { + final var o = new OpenZfsVolumeOriginSnapshot(); + o.copyStrategy = copyStrategy; + o.snapshotArn = snapshotArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeUserAndGroupQuota.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeUserAndGroupQuota.java index a28e402ec74..770337ae0b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeUserAndGroupQuota.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/OpenZfsVolumeUserAndGroupQuota.java @@ -14,24 +14,15 @@ public final class OpenZfsVolumeUserAndGroupQuota { * @return - The ID of the user or group. Valid values between `0` and `2147483647` * */ - private final Integer id; + private Integer id; /** * @return - The amount of storage that the user or group can use in gibibytes (GiB). Valid values between `0` and `2147483647` * */ - private final Integer storageCapacityQuotaGib; - private final String type; - - @CustomType.Constructor - private OpenZfsVolumeUserAndGroupQuota( - @CustomType.Parameter("id") Integer id, - @CustomType.Parameter("storageCapacityQuotaGib") Integer storageCapacityQuotaGib, - @CustomType.Parameter("type") String type) { - this.id = id; - this.storageCapacityQuotaGib = storageCapacityQuotaGib; - this.type = type; - } + private Integer storageCapacityQuotaGib; + private String type; + private OpenZfsVolumeUserAndGroupQuota() {} /** * @return - The ID of the user or group. Valid values between `0` and `2147483647` * @@ -57,16 +48,12 @@ public static Builder builder() { public static Builder builder(OpenZfsVolumeUserAndGroupQuota defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer id; private Integer storageCapacityQuotaGib; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OpenZfsVolumeUserAndGroupQuota defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -74,19 +61,27 @@ public Builder(OpenZfsVolumeUserAndGroupQuota defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder id(Integer id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder storageCapacityQuotaGib(Integer storageCapacityQuotaGib) { this.storageCapacityQuotaGib = Objects.requireNonNull(storageCapacityQuotaGib); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public OpenZfsVolumeUserAndGroupQuota build() { - return new OpenZfsVolumeUserAndGroupQuota(id, storageCapacityQuotaGib, type); + } + public OpenZfsVolumeUserAndGroupQuota build() { + final var o = new OpenZfsVolumeUserAndGroupQuota(); + o.id = id; + o.storageCapacityQuotaGib = storageCapacityQuotaGib; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/WindowsFileSystemAuditLogConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/WindowsFileSystemAuditLogConfiguration.java index 08c84545c46..7d032b810a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/WindowsFileSystemAuditLogConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/WindowsFileSystemAuditLogConfiguration.java @@ -15,28 +15,19 @@ public final class WindowsFileSystemAuditLogConfiguration { * @return The Amazon Resource Name (ARN) for the destination of the audit logs. The destination can be any Amazon CloudWatch Logs log group ARN or Amazon Kinesis Data Firehose delivery stream ARN. Can be specified when `file_access_audit_log_level` and `file_share_access_audit_log_level` are not set to `DISABLED`. The name of the Amazon CloudWatch Logs log group must begin with the `/aws/fsx` prefix. The name of the Amazon Kinesis Data Firehouse delivery stream must begin with the `aws-fsx` prefix. If you do not provide a destination in `audit_log_destionation`, Amazon FSx will create and use a log stream in the CloudWatch Logs /aws/fsx/windows log group. * */ - private final @Nullable String auditLogDestination; + private @Nullable String auditLogDestination; /** * @return Sets which attempt type is logged by Amazon FSx for file and folder accesses. Valid values are `SUCCESS_ONLY`, `FAILURE_ONLY`, `SUCCESS_AND_FAILURE`, and `DISABLED`. Default value is `DISABLED`. * */ - private final @Nullable String fileAccessAuditLogLevel; + private @Nullable String fileAccessAuditLogLevel; /** * @return Sets which attempt type is logged by Amazon FSx for file share accesses. Valid values are `SUCCESS_ONLY`, `FAILURE_ONLY`, `SUCCESS_AND_FAILURE`, and `DISABLED`. Default value is `DISABLED`. * */ - private final @Nullable String fileShareAccessAuditLogLevel; - - @CustomType.Constructor - private WindowsFileSystemAuditLogConfiguration( - @CustomType.Parameter("auditLogDestination") @Nullable String auditLogDestination, - @CustomType.Parameter("fileAccessAuditLogLevel") @Nullable String fileAccessAuditLogLevel, - @CustomType.Parameter("fileShareAccessAuditLogLevel") @Nullable String fileShareAccessAuditLogLevel) { - this.auditLogDestination = auditLogDestination; - this.fileAccessAuditLogLevel = fileAccessAuditLogLevel; - this.fileShareAccessAuditLogLevel = fileShareAccessAuditLogLevel; - } + private @Nullable String fileShareAccessAuditLogLevel; + private WindowsFileSystemAuditLogConfiguration() {} /** * @return The Amazon Resource Name (ARN) for the destination of the audit logs. The destination can be any Amazon CloudWatch Logs log group ARN or Amazon Kinesis Data Firehose delivery stream ARN. Can be specified when `file_access_audit_log_level` and `file_share_access_audit_log_level` are not set to `DISABLED`. The name of the Amazon CloudWatch Logs log group must begin with the `/aws/fsx` prefix. The name of the Amazon Kinesis Data Firehouse delivery stream must begin with the `aws-fsx` prefix. If you do not provide a destination in `audit_log_destionation`, Amazon FSx will create and use a log stream in the CloudWatch Logs /aws/fsx/windows log group. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(WindowsFileSystemAuditLogConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String auditLogDestination; private @Nullable String fileAccessAuditLogLevel; private @Nullable String fileShareAccessAuditLogLevel; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WindowsFileSystemAuditLogConfiguration defaults) { Objects.requireNonNull(defaults); this.auditLogDestination = defaults.auditLogDestination; @@ -83,19 +70,27 @@ public Builder(WindowsFileSystemAuditLogConfiguration defaults) { this.fileShareAccessAuditLogLevel = defaults.fileShareAccessAuditLogLevel; } + @CustomType.Setter public Builder auditLogDestination(@Nullable String auditLogDestination) { this.auditLogDestination = auditLogDestination; return this; } + @CustomType.Setter public Builder fileAccessAuditLogLevel(@Nullable String fileAccessAuditLogLevel) { this.fileAccessAuditLogLevel = fileAccessAuditLogLevel; return this; } + @CustomType.Setter public Builder fileShareAccessAuditLogLevel(@Nullable String fileShareAccessAuditLogLevel) { this.fileShareAccessAuditLogLevel = fileShareAccessAuditLogLevel; return this; - } public WindowsFileSystemAuditLogConfiguration build() { - return new WindowsFileSystemAuditLogConfiguration(auditLogDestination, fileAccessAuditLogLevel, fileShareAccessAuditLogLevel); + } + public WindowsFileSystemAuditLogConfiguration build() { + final var o = new WindowsFileSystemAuditLogConfiguration(); + o.auditLogDestination = auditLogDestination; + o.fileAccessAuditLogLevel = fileAccessAuditLogLevel; + o.fileShareAccessAuditLogLevel = fileShareAccessAuditLogLevel; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/WindowsFileSystemSelfManagedActiveDirectory.java b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/WindowsFileSystemSelfManagedActiveDirectory.java index 3f99446cb42..78ead388838 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/WindowsFileSystemSelfManagedActiveDirectory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/fsx/outputs/WindowsFileSystemSelfManagedActiveDirectory.java @@ -16,49 +16,34 @@ public final class WindowsFileSystemSelfManagedActiveDirectory { * @return A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory. The IP addresses need to be either in the same VPC CIDR range as the file system or in the private IP version 4 (IPv4) address ranges as specified in [RFC 1918](https://tools.ietf.org/html/rfc1918). * */ - private final List dnsIps; + private List dnsIps; /** * @return The fully qualified domain name of the self-managed AD directory. For example, `corp.example.com`. * */ - private final String domainName; + private String domainName; /** * @return The name of the domain group whose members are granted administrative privileges for the file system. Administrative privileges include taking ownership of files and folders, and setting audit controls (audit ACLs) on files and folders. The group that you specify must already exist in your domain. Defaults to `Domain Admins`. * */ - private final @Nullable String fileSystemAdministratorsGroup; + private @Nullable String fileSystemAdministratorsGroup; /** * @return The fully qualified distinguished name of the organizational unit within your self-managed AD directory that the Windows File Server instance will join. For example, `OU=FSx,DC=yourdomain,DC=corp,DC=com`. Only accepts OU as the direct parent of the file system. If none is provided, the FSx file system is created in the default location of your self-managed AD directory. To learn more, see [RFC 2253](https://tools.ietf.org/html/rfc2253). * */ - private final @Nullable String organizationalUnitDistinguishedName; + private @Nullable String organizationalUnitDistinguishedName; /** * @return The password for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. * */ - private final String password; + private String password; /** * @return The user name for the service account on your self-managed AD domain that Amazon FSx will use to join to your AD domain. * */ - private final String username; - - @CustomType.Constructor - private WindowsFileSystemSelfManagedActiveDirectory( - @CustomType.Parameter("dnsIps") List dnsIps, - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("fileSystemAdministratorsGroup") @Nullable String fileSystemAdministratorsGroup, - @CustomType.Parameter("organizationalUnitDistinguishedName") @Nullable String organizationalUnitDistinguishedName, - @CustomType.Parameter("password") String password, - @CustomType.Parameter("username") String username) { - this.dnsIps = dnsIps; - this.domainName = domainName; - this.fileSystemAdministratorsGroup = fileSystemAdministratorsGroup; - this.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; - this.password = password; - this.username = username; - } + private String username; + private WindowsFileSystemSelfManagedActiveDirectory() {} /** * @return A list of up to two IP addresses of DNS servers or domain controllers in the self-managed AD directory. The IP addresses need to be either in the same VPC CIDR range as the file system or in the private IP version 4 (IPv4) address ranges as specified in [RFC 1918](https://tools.ietf.org/html/rfc1918). * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(WindowsFileSystemSelfManagedActiveDirectory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List dnsIps; private String domainName; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable String organizationalUnitDistinguishedName; private String password; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WindowsFileSystemSelfManagedActiveDirectory defaults) { Objects.requireNonNull(defaults); this.dnsIps = defaults.dnsIps; @@ -132,6 +113,7 @@ public Builder(WindowsFileSystemSelfManagedActiveDirectory defaults) { this.username = defaults.username; } + @CustomType.Setter public Builder dnsIps(List dnsIps) { this.dnsIps = Objects.requireNonNull(dnsIps); return this; @@ -139,27 +121,40 @@ public Builder dnsIps(List dnsIps) { public Builder dnsIps(String... dnsIps) { return dnsIps(List.of(dnsIps)); } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder fileSystemAdministratorsGroup(@Nullable String fileSystemAdministratorsGroup) { this.fileSystemAdministratorsGroup = fileSystemAdministratorsGroup; return this; } + @CustomType.Setter public Builder organizationalUnitDistinguishedName(@Nullable String organizationalUnitDistinguishedName) { this.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; return this; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public WindowsFileSystemSelfManagedActiveDirectory build() { - return new WindowsFileSystemSelfManagedActiveDirectory(dnsIps, domainName, fileSystemAdministratorsGroup, organizationalUnitDistinguishedName, password, username); + } + public WindowsFileSystemSelfManagedActiveDirectory build() { + final var o = new WindowsFileSystemSelfManagedActiveDirectory(); + o.dnsIps = dnsIps; + o.domainName = domainName; + o.fileSystemAdministratorsGroup = fileSystemAdministratorsGroup; + o.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName; + o.password = password; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/AliasRoutingStrategy.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/AliasRoutingStrategy.java index 0ecd44850d4..4a7d9b19aaa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/AliasRoutingStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/AliasRoutingStrategy.java @@ -15,28 +15,19 @@ public final class AliasRoutingStrategy { * @return ID of the GameLift Fleet to point the alias to. * */ - private final @Nullable String fleetId; + private @Nullable String fleetId; /** * @return Message text to be used with the `TERMINAL` routing strategy. * */ - private final @Nullable String message; + private @Nullable String message; /** * @return Type of routing strategyE.g., `SIMPLE` or `TERMINAL` * */ - private final String type; - - @CustomType.Constructor - private AliasRoutingStrategy( - @CustomType.Parameter("fleetId") @Nullable String fleetId, - @CustomType.Parameter("message") @Nullable String message, - @CustomType.Parameter("type") String type) { - this.fleetId = fleetId; - this.message = message; - this.type = type; - } + private String type; + private AliasRoutingStrategy() {} /** * @return ID of the GameLift Fleet to point the alias to. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(AliasRoutingStrategy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String fleetId; private @Nullable String message; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AliasRoutingStrategy defaults) { Objects.requireNonNull(defaults); this.fleetId = defaults.fleetId; @@ -83,19 +70,27 @@ public Builder(AliasRoutingStrategy defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder fleetId(@Nullable String fleetId) { this.fleetId = fleetId; return this; } + @CustomType.Setter public Builder message(@Nullable String message) { this.message = message; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public AliasRoutingStrategy build() { - return new AliasRoutingStrategy(fleetId, message, type); + } + public AliasRoutingStrategy build() { + final var o = new AliasRoutingStrategy(); + o.fleetId = fleetId; + o.message = message; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/BuildStorageLocation.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/BuildStorageLocation.java index 6598fe74d85..41ea04e2dc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/BuildStorageLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/BuildStorageLocation.java @@ -15,35 +15,24 @@ public final class BuildStorageLocation { * @return Name of your S3 bucket. * */ - private final String bucket; + private String bucket; /** * @return Name of the zip file containing your build files. * */ - private final String key; + private String key; /** * @return A specific version of the file. If not set, the latest version of the file is retrieved. * */ - private final @Nullable String objectVersion; + private @Nullable String objectVersion; /** * @return ARN of the access role that allows Amazon GameLift to access your S3 bucket. * */ - private final String roleArn; - - @CustomType.Constructor - private BuildStorageLocation( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("objectVersion") @Nullable String objectVersion, - @CustomType.Parameter("roleArn") String roleArn) { - this.bucket = bucket; - this.key = key; - this.objectVersion = objectVersion; - this.roleArn = roleArn; - } + private String roleArn; + private BuildStorageLocation() {} /** * @return Name of your S3 bucket. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(BuildStorageLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String key; private @Nullable String objectVersion; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BuildStorageLocation defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -99,23 +84,33 @@ public Builder(BuildStorageLocation defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder objectVersion(@Nullable String objectVersion) { this.objectVersion = objectVersion; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public BuildStorageLocation build() { - return new BuildStorageLocation(bucket, key, objectVersion, roleArn); + } + public BuildStorageLocation build() { + final var o = new BuildStorageLocation(); + o.bucket = bucket; + o.key = key; + o.objectVersion = objectVersion; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetCertificateConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetCertificateConfiguration.java index ae8b40fceb7..d1dc422be2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetCertificateConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetCertificateConfiguration.java @@ -15,13 +15,9 @@ public final class FleetCertificateConfiguration { * @return Indicates whether a TLS/SSL certificate is generated for a fleet. Valid values are `DISABLED` and `GENERATED`. Default value is `DISABLED`. * */ - private final @Nullable String certificateType; - - @CustomType.Constructor - private FleetCertificateConfiguration(@CustomType.Parameter("certificateType") @Nullable String certificateType) { - this.certificateType = certificateType; - } + private @Nullable String certificateType; + private FleetCertificateConfiguration() {} /** * @return Indicates whether a TLS/SSL certificate is generated for a fleet. Valid values are `DISABLED` and `GENERATED`. Default value is `DISABLED`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FleetCertificateConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String certificateType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetCertificateConfiguration defaults) { Objects.requireNonNull(defaults); this.certificateType = defaults.certificateType; } + @CustomType.Setter public Builder certificateType(@Nullable String certificateType) { this.certificateType = certificateType; return this; - } public FleetCertificateConfiguration build() { - return new FleetCertificateConfiguration(certificateType); + } + public FleetCertificateConfiguration build() { + final var o = new FleetCertificateConfiguration(); + o.certificateType = certificateType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetEc2InboundPermission.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetEc2InboundPermission.java index 438e3f97a3d..434491ca9f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetEc2InboundPermission.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetEc2InboundPermission.java @@ -14,35 +14,24 @@ public final class FleetEc2InboundPermission { * @return Starting value for a range of allowed port numbers. * */ - private final Integer fromPort; + private Integer fromPort; /** * @return Range of allowed IP addresses expressed in CIDR notationE.g., `000.000.000.000/[subnet mask]` or `0.0.0.0/[subnet mask]`. * */ - private final String ipRange; + private String ipRange; /** * @return Network communication protocol used by the fleetE.g., `TCP` or `UDP` * */ - private final String protocol; + private String protocol; /** * @return Ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than `from_port`. * */ - private final Integer toPort; - - @CustomType.Constructor - private FleetEc2InboundPermission( - @CustomType.Parameter("fromPort") Integer fromPort, - @CustomType.Parameter("ipRange") String ipRange, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("toPort") Integer toPort) { - this.fromPort = fromPort; - this.ipRange = ipRange; - this.protocol = protocol; - this.toPort = toPort; - } + private Integer toPort; + private FleetEc2InboundPermission() {} /** * @return Starting value for a range of allowed port numbers. * @@ -79,17 +68,13 @@ public static Builder builder() { public static Builder builder(FleetEc2InboundPermission defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer fromPort; private String ipRange; private String protocol; private Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetEc2InboundPermission defaults) { Objects.requireNonNull(defaults); this.fromPort = defaults.fromPort; @@ -98,23 +83,33 @@ public Builder(FleetEc2InboundPermission defaults) { this.toPort = defaults.toPort; } + @CustomType.Setter public Builder fromPort(Integer fromPort) { this.fromPort = Objects.requireNonNull(fromPort); return this; } + @CustomType.Setter public Builder ipRange(String ipRange) { this.ipRange = Objects.requireNonNull(ipRange); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder toPort(Integer toPort) { this.toPort = Objects.requireNonNull(toPort); return this; - } public FleetEc2InboundPermission build() { - return new FleetEc2InboundPermission(fromPort, ipRange, protocol, toPort); + } + public FleetEc2InboundPermission build() { + final var o = new FleetEc2InboundPermission(); + o.fromPort = fromPort; + o.ipRange = ipRange; + o.protocol = protocol; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetResourceCreationLimitPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetResourceCreationLimitPolicy.java index d80454b610d..551bf642ccb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetResourceCreationLimitPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetResourceCreationLimitPolicy.java @@ -15,21 +15,14 @@ public final class FleetResourceCreationLimitPolicy { * @return Maximum number of game sessions that an individual can create during the policy period. * */ - private final @Nullable Integer newGameSessionsPerCreator; + private @Nullable Integer newGameSessionsPerCreator; /** * @return Time span used in evaluating the resource creation limit policy. * */ - private final @Nullable Integer policyPeriodInMinutes; - - @CustomType.Constructor - private FleetResourceCreationLimitPolicy( - @CustomType.Parameter("newGameSessionsPerCreator") @Nullable Integer newGameSessionsPerCreator, - @CustomType.Parameter("policyPeriodInMinutes") @Nullable Integer policyPeriodInMinutes) { - this.newGameSessionsPerCreator = newGameSessionsPerCreator; - this.policyPeriodInMinutes = policyPeriodInMinutes; - } + private @Nullable Integer policyPeriodInMinutes; + private FleetResourceCreationLimitPolicy() {} /** * @return Maximum number of game sessions that an individual can create during the policy period. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FleetResourceCreationLimitPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer newGameSessionsPerCreator; private @Nullable Integer policyPeriodInMinutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetResourceCreationLimitPolicy defaults) { Objects.requireNonNull(defaults); this.newGameSessionsPerCreator = defaults.newGameSessionsPerCreator; this.policyPeriodInMinutes = defaults.policyPeriodInMinutes; } + @CustomType.Setter public Builder newGameSessionsPerCreator(@Nullable Integer newGameSessionsPerCreator) { this.newGameSessionsPerCreator = newGameSessionsPerCreator; return this; } + @CustomType.Setter public Builder policyPeriodInMinutes(@Nullable Integer policyPeriodInMinutes) { this.policyPeriodInMinutes = policyPeriodInMinutes; return this; - } public FleetResourceCreationLimitPolicy build() { - return new FleetResourceCreationLimitPolicy(newGameSessionsPerCreator, policyPeriodInMinutes); + } + public FleetResourceCreationLimitPolicy build() { + final var o = new FleetResourceCreationLimitPolicy(); + o.newGameSessionsPerCreator = newGameSessionsPerCreator; + o.policyPeriodInMinutes = policyPeriodInMinutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetRuntimeConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetRuntimeConfiguration.java index f0f398de60a..e34ecc05bfd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetRuntimeConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetRuntimeConfiguration.java @@ -17,28 +17,19 @@ public final class FleetRuntimeConfiguration { * @return Maximum amount of time (in seconds) that a game session can remain in status `ACTIVATING`. * */ - private final @Nullable Integer gameSessionActivationTimeoutSeconds; + private @Nullable Integer gameSessionActivationTimeoutSeconds; /** * @return Maximum number of game sessions with status `ACTIVATING` to allow on an instance simultaneously. * */ - private final @Nullable Integer maxConcurrentGameSessionActivations; + private @Nullable Integer maxConcurrentGameSessionActivations; /** * @return Collection of server process configurations that describe which server processes to run on each instance in a fleet. See below. * */ - private final @Nullable List serverProcesses; - - @CustomType.Constructor - private FleetRuntimeConfiguration( - @CustomType.Parameter("gameSessionActivationTimeoutSeconds") @Nullable Integer gameSessionActivationTimeoutSeconds, - @CustomType.Parameter("maxConcurrentGameSessionActivations") @Nullable Integer maxConcurrentGameSessionActivations, - @CustomType.Parameter("serverProcesses") @Nullable List serverProcesses) { - this.gameSessionActivationTimeoutSeconds = gameSessionActivationTimeoutSeconds; - this.maxConcurrentGameSessionActivations = maxConcurrentGameSessionActivations; - this.serverProcesses = serverProcesses; - } + private @Nullable List serverProcesses; + private FleetRuntimeConfiguration() {} /** * @return Maximum amount of time (in seconds) that a game session can remain in status `ACTIVATING`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(FleetRuntimeConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer gameSessionActivationTimeoutSeconds; private @Nullable Integer maxConcurrentGameSessionActivations; private @Nullable List serverProcesses; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetRuntimeConfiguration defaults) { Objects.requireNonNull(defaults); this.gameSessionActivationTimeoutSeconds = defaults.gameSessionActivationTimeoutSeconds; @@ -85,22 +72,30 @@ public Builder(FleetRuntimeConfiguration defaults) { this.serverProcesses = defaults.serverProcesses; } + @CustomType.Setter public Builder gameSessionActivationTimeoutSeconds(@Nullable Integer gameSessionActivationTimeoutSeconds) { this.gameSessionActivationTimeoutSeconds = gameSessionActivationTimeoutSeconds; return this; } + @CustomType.Setter public Builder maxConcurrentGameSessionActivations(@Nullable Integer maxConcurrentGameSessionActivations) { this.maxConcurrentGameSessionActivations = maxConcurrentGameSessionActivations; return this; } + @CustomType.Setter public Builder serverProcesses(@Nullable List serverProcesses) { this.serverProcesses = serverProcesses; return this; } public Builder serverProcesses(FleetRuntimeConfigurationServerProcess... serverProcesses) { return serverProcesses(List.of(serverProcesses)); - } public FleetRuntimeConfiguration build() { - return new FleetRuntimeConfiguration(gameSessionActivationTimeoutSeconds, maxConcurrentGameSessionActivations, serverProcesses); + } + public FleetRuntimeConfiguration build() { + final var o = new FleetRuntimeConfiguration(); + o.gameSessionActivationTimeoutSeconds = gameSessionActivationTimeoutSeconds; + o.maxConcurrentGameSessionActivations = maxConcurrentGameSessionActivations; + o.serverProcesses = serverProcesses; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetRuntimeConfigurationServerProcess.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetRuntimeConfigurationServerProcess.java index 816178b0efe..7e1b1dc9f48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetRuntimeConfigurationServerProcess.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/FleetRuntimeConfigurationServerProcess.java @@ -16,28 +16,19 @@ public final class FleetRuntimeConfigurationServerProcess { * @return Number of server processes using this configuration to run concurrently on an instance. * */ - private final Integer concurrentExecutions; + private Integer concurrentExecutions; /** * @return Location of the server executable in a game build. All game builds are installed on instances at the root : for Windows instances `C:\game`, and for Linux instances `/local/game`. * */ - private final String launchPath; + private String launchPath; /** * @return Optional list of parameters to pass to the server executable on launch. * */ - private final @Nullable String parameters; - - @CustomType.Constructor - private FleetRuntimeConfigurationServerProcess( - @CustomType.Parameter("concurrentExecutions") Integer concurrentExecutions, - @CustomType.Parameter("launchPath") String launchPath, - @CustomType.Parameter("parameters") @Nullable String parameters) { - this.concurrentExecutions = concurrentExecutions; - this.launchPath = launchPath; - this.parameters = parameters; - } + private @Nullable String parameters; + private FleetRuntimeConfigurationServerProcess() {} /** * @return Number of server processes using this configuration to run concurrently on an instance. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FleetRuntimeConfigurationServerProcess defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer concurrentExecutions; private String launchPath; private @Nullable String parameters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetRuntimeConfigurationServerProcess defaults) { Objects.requireNonNull(defaults); this.concurrentExecutions = defaults.concurrentExecutions; @@ -84,19 +71,27 @@ public Builder(FleetRuntimeConfigurationServerProcess defaults) { this.parameters = defaults.parameters; } + @CustomType.Setter public Builder concurrentExecutions(Integer concurrentExecutions) { this.concurrentExecutions = Objects.requireNonNull(concurrentExecutions); return this; } + @CustomType.Setter public Builder launchPath(String launchPath) { this.launchPath = Objects.requireNonNull(launchPath); return this; } + @CustomType.Setter public Builder parameters(@Nullable String parameters) { this.parameters = parameters; return this; - } public FleetRuntimeConfigurationServerProcess build() { - return new FleetRuntimeConfigurationServerProcess(concurrentExecutions, launchPath, parameters); + } + public FleetRuntimeConfigurationServerProcess build() { + final var o = new FleetRuntimeConfigurationServerProcess(); + o.concurrentExecutions = concurrentExecutions; + o.launchPath = launchPath; + o.parameters = parameters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupAutoScalingPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupAutoScalingPolicy.java index 1137f0f1752..2c6333d0f33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupAutoScalingPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupAutoScalingPolicy.java @@ -19,17 +19,10 @@ public final class GameServerGroupAutoScalingPolicy { * because it avoids prematurely starting new instances. Defaults to `60`. * */ - private final @Nullable Integer estimatedInstanceWarmup; - private final GameServerGroupAutoScalingPolicyTargetTrackingConfiguration targetTrackingConfiguration; - - @CustomType.Constructor - private GameServerGroupAutoScalingPolicy( - @CustomType.Parameter("estimatedInstanceWarmup") @Nullable Integer estimatedInstanceWarmup, - @CustomType.Parameter("targetTrackingConfiguration") GameServerGroupAutoScalingPolicyTargetTrackingConfiguration targetTrackingConfiguration) { - this.estimatedInstanceWarmup = estimatedInstanceWarmup; - this.targetTrackingConfiguration = targetTrackingConfiguration; - } + private @Nullable Integer estimatedInstanceWarmup; + private GameServerGroupAutoScalingPolicyTargetTrackingConfiguration targetTrackingConfiguration; + private GameServerGroupAutoScalingPolicy() {} /** * @return Length of time, in seconds, it takes for a new instance to start * new game server processes and register with GameLift FleetIQ. @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GameServerGroupAutoScalingPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer estimatedInstanceWarmup; private GameServerGroupAutoScalingPolicyTargetTrackingConfiguration targetTrackingConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GameServerGroupAutoScalingPolicy defaults) { Objects.requireNonNull(defaults); this.estimatedInstanceWarmup = defaults.estimatedInstanceWarmup; this.targetTrackingConfiguration = defaults.targetTrackingConfiguration; } + @CustomType.Setter public Builder estimatedInstanceWarmup(@Nullable Integer estimatedInstanceWarmup) { this.estimatedInstanceWarmup = estimatedInstanceWarmup; return this; } + @CustomType.Setter public Builder targetTrackingConfiguration(GameServerGroupAutoScalingPolicyTargetTrackingConfiguration targetTrackingConfiguration) { this.targetTrackingConfiguration = Objects.requireNonNull(targetTrackingConfiguration); return this; - } public GameServerGroupAutoScalingPolicy build() { - return new GameServerGroupAutoScalingPolicy(estimatedInstanceWarmup, targetTrackingConfiguration); + } + public GameServerGroupAutoScalingPolicy build() { + final var o = new GameServerGroupAutoScalingPolicy(); + o.estimatedInstanceWarmup = estimatedInstanceWarmup; + o.targetTrackingConfiguration = targetTrackingConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupAutoScalingPolicyTargetTrackingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupAutoScalingPolicyTargetTrackingConfiguration.java index 70087203ea0..49765bf5af6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupAutoScalingPolicyTargetTrackingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupAutoScalingPolicyTargetTrackingConfiguration.java @@ -13,13 +13,9 @@ public final class GameServerGroupAutoScalingPolicyTargetTrackingConfiguration { * @return Desired value to use with a game server group target-based scaling policy. * */ - private final Double targetValue; - - @CustomType.Constructor - private GameServerGroupAutoScalingPolicyTargetTrackingConfiguration(@CustomType.Parameter("targetValue") Double targetValue) { - this.targetValue = targetValue; - } + private Double targetValue; + private GameServerGroupAutoScalingPolicyTargetTrackingConfiguration() {} /** * @return Desired value to use with a game server group target-based scaling policy. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GameServerGroupAutoScalingPolicyTargetTrackingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Double targetValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GameServerGroupAutoScalingPolicyTargetTrackingConfiguration defaults) { Objects.requireNonNull(defaults); this.targetValue = defaults.targetValue; } + @CustomType.Setter public Builder targetValue(Double targetValue) { this.targetValue = Objects.requireNonNull(targetValue); return this; - } public GameServerGroupAutoScalingPolicyTargetTrackingConfiguration build() { - return new GameServerGroupAutoScalingPolicyTargetTrackingConfiguration(targetValue); + } + public GameServerGroupAutoScalingPolicyTargetTrackingConfiguration build() { + final var o = new GameServerGroupAutoScalingPolicyTargetTrackingConfiguration(); + o.targetValue = targetValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupInstanceDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupInstanceDefinition.java index ec80dad5c04..df9b0100059 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupInstanceDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupInstanceDefinition.java @@ -15,7 +15,7 @@ public final class GameServerGroupInstanceDefinition { * @return An EC2 instance type. * */ - private final String instanceType; + private String instanceType; /** * @return Instance weighting that indicates how much this instance type contributes * to the total capacity of a game server group. @@ -23,16 +23,9 @@ public final class GameServerGroupInstanceDefinition { * the most cost-effective options. * */ - private final @Nullable String weightedCapacity; - - @CustomType.Constructor - private GameServerGroupInstanceDefinition( - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("weightedCapacity") @Nullable String weightedCapacity) { - this.instanceType = instanceType; - this.weightedCapacity = weightedCapacity; - } + private @Nullable String weightedCapacity; + private GameServerGroupInstanceDefinition() {} /** * @return An EC2 instance type. * @@ -58,30 +51,32 @@ public static Builder builder() { public static Builder builder(GameServerGroupInstanceDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String instanceType; private @Nullable String weightedCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GameServerGroupInstanceDefinition defaults) { Objects.requireNonNull(defaults); this.instanceType = defaults.instanceType; this.weightedCapacity = defaults.weightedCapacity; } + @CustomType.Setter public Builder instanceType(String instanceType) { this.instanceType = Objects.requireNonNull(instanceType); return this; } + @CustomType.Setter public Builder weightedCapacity(@Nullable String weightedCapacity) { this.weightedCapacity = weightedCapacity; return this; - } public GameServerGroupInstanceDefinition build() { - return new GameServerGroupInstanceDefinition(instanceType, weightedCapacity); + } + public GameServerGroupInstanceDefinition build() { + final var o = new GameServerGroupInstanceDefinition(); + o.instanceType = instanceType; + o.weightedCapacity = weightedCapacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupLaunchTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupLaunchTemplate.java index 966fb5a1295..3891db3a1f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupLaunchTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameServerGroupLaunchTemplate.java @@ -15,28 +15,19 @@ public final class GameServerGroupLaunchTemplate { * @return A unique identifier for an existing EC2 launch template. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return A readable identifier for an existing EC2 launch template. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return The version of the EC2 launch template to use. If none is set, the default is the first version created. * */ - private final @Nullable String version; - - @CustomType.Constructor - private GameServerGroupLaunchTemplate( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("version") @Nullable String version) { - this.id = id; - this.name = name; - this.version = version; - } + private @Nullable String version; + private GameServerGroupLaunchTemplate() {} /** * @return A unique identifier for an existing EC2 launch template. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GameServerGroupLaunchTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private @Nullable String name; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GameServerGroupLaunchTemplate defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -83,19 +70,27 @@ public Builder(GameServerGroupLaunchTemplate defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public GameServerGroupLaunchTemplate build() { - return new GameServerGroupLaunchTemplate(id, name, version); + } + public GameServerGroupLaunchTemplate build() { + final var o = new GameServerGroupLaunchTemplate(); + o.id = id; + o.name = name; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameSessionQueuePlayerLatencyPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameSessionQueuePlayerLatencyPolicy.java index da70ef9d3ed..6e984e4e8ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameSessionQueuePlayerLatencyPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/GameSessionQueuePlayerLatencyPolicy.java @@ -15,21 +15,14 @@ public final class GameSessionQueuePlayerLatencyPolicy { * @return Maximum latency value that is allowed for any player. * */ - private final Integer maximumIndividualPlayerLatencyMilliseconds; + private Integer maximumIndividualPlayerLatencyMilliseconds; /** * @return Length of time that the policy is enforced while placing a new game session. Absence of value for this attribute means that the policy is enforced until the queue times out. * */ - private final @Nullable Integer policyDurationSeconds; - - @CustomType.Constructor - private GameSessionQueuePlayerLatencyPolicy( - @CustomType.Parameter("maximumIndividualPlayerLatencyMilliseconds") Integer maximumIndividualPlayerLatencyMilliseconds, - @CustomType.Parameter("policyDurationSeconds") @Nullable Integer policyDurationSeconds) { - this.maximumIndividualPlayerLatencyMilliseconds = maximumIndividualPlayerLatencyMilliseconds; - this.policyDurationSeconds = policyDurationSeconds; - } + private @Nullable Integer policyDurationSeconds; + private GameSessionQueuePlayerLatencyPolicy() {} /** * @return Maximum latency value that is allowed for any player. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GameSessionQueuePlayerLatencyPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maximumIndividualPlayerLatencyMilliseconds; private @Nullable Integer policyDurationSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GameSessionQueuePlayerLatencyPolicy defaults) { Objects.requireNonNull(defaults); this.maximumIndividualPlayerLatencyMilliseconds = defaults.maximumIndividualPlayerLatencyMilliseconds; this.policyDurationSeconds = defaults.policyDurationSeconds; } + @CustomType.Setter public Builder maximumIndividualPlayerLatencyMilliseconds(Integer maximumIndividualPlayerLatencyMilliseconds) { this.maximumIndividualPlayerLatencyMilliseconds = Objects.requireNonNull(maximumIndividualPlayerLatencyMilliseconds); return this; } + @CustomType.Setter public Builder policyDurationSeconds(@Nullable Integer policyDurationSeconds) { this.policyDurationSeconds = policyDurationSeconds; return this; - } public GameSessionQueuePlayerLatencyPolicy build() { - return new GameSessionQueuePlayerLatencyPolicy(maximumIndividualPlayerLatencyMilliseconds, policyDurationSeconds); + } + public GameSessionQueuePlayerLatencyPolicy build() { + final var o = new GameSessionQueuePlayerLatencyPolicy(); + o.maximumIndividualPlayerLatencyMilliseconds = maximumIndividualPlayerLatencyMilliseconds; + o.policyDurationSeconds = policyDurationSeconds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/ScriptStorageLocation.java b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/ScriptStorageLocation.java index 26275830379..3291fa6f624 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/ScriptStorageLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/gamelift/outputs/ScriptStorageLocation.java @@ -15,35 +15,24 @@ public final class ScriptStorageLocation { * @return Name of your S3 bucket. * */ - private final String bucket; + private String bucket; /** * @return Name of the zip file containing your script files. * */ - private final String key; + private String key; /** * @return A specific version of the file. If not set, the latest version of the file is retrieved. * */ - private final @Nullable String objectVersion; + private @Nullable String objectVersion; /** * @return ARN of the access role that allows Amazon GameLift to access your S3 bucket. * */ - private final String roleArn; - - @CustomType.Constructor - private ScriptStorageLocation( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("objectVersion") @Nullable String objectVersion, - @CustomType.Parameter("roleArn") String roleArn) { - this.bucket = bucket; - this.key = key; - this.objectVersion = objectVersion; - this.roleArn = roleArn; - } + private String roleArn; + private ScriptStorageLocation() {} /** * @return Name of your S3 bucket. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(ScriptStorageLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String key; private @Nullable String objectVersion; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScriptStorageLocation defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -99,23 +84,33 @@ public Builder(ScriptStorageLocation defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder objectVersion(@Nullable String objectVersion) { this.objectVersion = objectVersion; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public ScriptStorageLocation build() { - return new ScriptStorageLocation(bucket, key, objectVersion, roleArn); + } + public ScriptStorageLocation build() { + final var o = new ScriptStorageLocation(); + o.bucket = bucket; + o.key = key; + o.objectVersion = objectVersion; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glacier/outputs/VaultNotification.java b/sdk/java/src/main/java/com/pulumi/aws/glacier/outputs/VaultNotification.java index a59311ff8ff..59b5a8bec51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glacier/outputs/VaultNotification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glacier/outputs/VaultNotification.java @@ -14,21 +14,14 @@ public final class VaultNotification { * @return You can configure a vault to publish a notification for `ArchiveRetrievalCompleted` and `InventoryRetrievalCompleted` events. * */ - private final List events; + private List events; /** * @return The SNS Topic ARN. * */ - private final String snsTopic; - - @CustomType.Constructor - private VaultNotification( - @CustomType.Parameter("events") List events, - @CustomType.Parameter("snsTopic") String snsTopic) { - this.events = events; - this.snsTopic = snsTopic; - } + private String snsTopic; + private VaultNotification() {} /** * @return You can configure a vault to publish a notification for `ArchiveRetrievalCompleted` and `InventoryRetrievalCompleted` events. * @@ -51,21 +44,18 @@ public static Builder builder() { public static Builder builder(VaultNotification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List events; private String snsTopic; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VaultNotification defaults) { Objects.requireNonNull(defaults); this.events = defaults.events; this.snsTopic = defaults.snsTopic; } + @CustomType.Setter public Builder events(List events) { this.events = Objects.requireNonNull(events); return this; @@ -73,11 +63,16 @@ public Builder events(List events) { public Builder events(String... events) { return events(List.of(events)); } + @CustomType.Setter public Builder snsTopic(String snsTopic) { this.snsTopic = Objects.requireNonNull(snsTopic); return this; - } public VaultNotification build() { - return new VaultNotification(events, snsTopic); + } + public VaultNotification build() { + final var o = new VaultNotification(); + o.events = events; + o.snsTopic = snsTopic; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/AcceleratorAttributes.java b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/AcceleratorAttributes.java index 172667e1a01..be9b48cfb44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/AcceleratorAttributes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/AcceleratorAttributes.java @@ -16,28 +16,19 @@ public final class AcceleratorAttributes { * @return Indicates whether flow logs are enabled. Defaults to `false`. Valid values: `true`, `false`. * */ - private final @Nullable Boolean flowLogsEnabled; + private @Nullable Boolean flowLogsEnabled; /** * @return The name of the Amazon S3 bucket for the flow logs. Required if `flow_logs_enabled` is `true`. * */ - private final @Nullable String flowLogsS3Bucket; + private @Nullable String flowLogsS3Bucket; /** * @return The prefix for the location in the Amazon S3 bucket for the flow logs. Required if `flow_logs_enabled` is `true`. * */ - private final @Nullable String flowLogsS3Prefix; - - @CustomType.Constructor - private AcceleratorAttributes( - @CustomType.Parameter("flowLogsEnabled") @Nullable Boolean flowLogsEnabled, - @CustomType.Parameter("flowLogsS3Bucket") @Nullable String flowLogsS3Bucket, - @CustomType.Parameter("flowLogsS3Prefix") @Nullable String flowLogsS3Prefix) { - this.flowLogsEnabled = flowLogsEnabled; - this.flowLogsS3Bucket = flowLogsS3Bucket; - this.flowLogsS3Prefix = flowLogsS3Prefix; - } + private @Nullable String flowLogsS3Prefix; + private AcceleratorAttributes() {} /** * @return Indicates whether flow logs are enabled. Defaults to `false`. Valid values: `true`, `false`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(AcceleratorAttributes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean flowLogsEnabled; private @Nullable String flowLogsS3Bucket; private @Nullable String flowLogsS3Prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AcceleratorAttributes defaults) { Objects.requireNonNull(defaults); this.flowLogsEnabled = defaults.flowLogsEnabled; @@ -84,19 +71,27 @@ public Builder(AcceleratorAttributes defaults) { this.flowLogsS3Prefix = defaults.flowLogsS3Prefix; } + @CustomType.Setter public Builder flowLogsEnabled(@Nullable Boolean flowLogsEnabled) { this.flowLogsEnabled = flowLogsEnabled; return this; } + @CustomType.Setter public Builder flowLogsS3Bucket(@Nullable String flowLogsS3Bucket) { this.flowLogsS3Bucket = flowLogsS3Bucket; return this; } + @CustomType.Setter public Builder flowLogsS3Prefix(@Nullable String flowLogsS3Prefix) { this.flowLogsS3Prefix = flowLogsS3Prefix; return this; - } public AcceleratorAttributes build() { - return new AcceleratorAttributes(flowLogsEnabled, flowLogsS3Bucket, flowLogsS3Prefix); + } + public AcceleratorAttributes build() { + final var o = new AcceleratorAttributes(); + o.flowLogsEnabled = flowLogsEnabled; + o.flowLogsS3Bucket = flowLogsS3Bucket; + o.flowLogsS3Prefix = flowLogsS3Prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/AcceleratorIpSet.java b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/AcceleratorIpSet.java index 78596601925..2a61dc1382e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/AcceleratorIpSet.java +++ b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/AcceleratorIpSet.java @@ -16,21 +16,14 @@ public final class AcceleratorIpSet { * @return A list of IP addresses in the IP address set. * */ - private final @Nullable List ipAddresses; + private @Nullable List ipAddresses; /** * @return The type of IP addresses included in this IP set. * */ - private final @Nullable String ipFamily; - - @CustomType.Constructor - private AcceleratorIpSet( - @CustomType.Parameter("ipAddresses") @Nullable List ipAddresses, - @CustomType.Parameter("ipFamily") @Nullable String ipFamily) { - this.ipAddresses = ipAddresses; - this.ipFamily = ipFamily; - } + private @Nullable String ipFamily; + private AcceleratorIpSet() {} /** * @return A list of IP addresses in the IP address set. * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(AcceleratorIpSet defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List ipAddresses; private @Nullable String ipFamily; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AcceleratorIpSet defaults) { Objects.requireNonNull(defaults); this.ipAddresses = defaults.ipAddresses; this.ipFamily = defaults.ipFamily; } + @CustomType.Setter public Builder ipAddresses(@Nullable List ipAddresses) { this.ipAddresses = ipAddresses; return this; @@ -75,11 +65,16 @@ public Builder ipAddresses(@Nullable List ipAddresses) { public Builder ipAddresses(String... ipAddresses) { return ipAddresses(List.of(ipAddresses)); } + @CustomType.Setter public Builder ipFamily(@Nullable String ipFamily) { this.ipFamily = ipFamily; return this; - } public AcceleratorIpSet build() { - return new AcceleratorIpSet(ipAddresses, ipFamily); + } + public AcceleratorIpSet build() { + final var o = new AcceleratorIpSet(); + o.ipAddresses = ipAddresses; + o.ipFamily = ipFamily; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/EndpointGroupEndpointConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/EndpointGroupEndpointConfiguration.java index 019c1b92311..8826b725699 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/EndpointGroupEndpointConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/EndpointGroupEndpointConfiguration.java @@ -18,28 +18,19 @@ public final class EndpointGroupEndpointConfiguration { * **Note:** When client IP address preservation is enabled, the Global Accelerator service creates an EC2 Security Group in the VPC named `GlobalAccelerator` that must be deleted (potentially outside of the provider) before the VPC will successfully delete. If this EC2 Security Group is not deleted, the provider will retry the VPC deletion for a few minutes before reporting a `DependencyViolation` error. This cannot be resolved by re-running the provider. * */ - private final @Nullable Boolean clientIpPreservationEnabled; + private @Nullable Boolean clientIpPreservationEnabled; /** * @return An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. * */ - private final @Nullable String endpointId; + private @Nullable String endpointId; /** * @return The weight associated with the endpoint. When you add weights to endpoints, you configure AWS Global Accelerator to route traffic based on proportions that you specify. * */ - private final @Nullable Integer weight; - - @CustomType.Constructor - private EndpointGroupEndpointConfiguration( - @CustomType.Parameter("clientIpPreservationEnabled") @Nullable Boolean clientIpPreservationEnabled, - @CustomType.Parameter("endpointId") @Nullable String endpointId, - @CustomType.Parameter("weight") @Nullable Integer weight) { - this.clientIpPreservationEnabled = clientIpPreservationEnabled; - this.endpointId = endpointId; - this.weight = weight; - } + private @Nullable Integer weight; + private EndpointGroupEndpointConfiguration() {} /** * @return Indicates whether client IP address preservation is enabled for an Application Load Balancer endpoint. See the [AWS documentation](https://docs.aws.amazon.com/global-accelerator/latest/dg/preserve-client-ip-address.html) for more details. The default value is `false`. * **Note:** When client IP address preservation is enabled, the Global Accelerator service creates an EC2 Security Group in the VPC named `GlobalAccelerator` that must be deleted (potentially outside of the provider) before the VPC will successfully delete. If this EC2 Security Group is not deleted, the provider will retry the VPC deletion for a few minutes before reporting a `DependencyViolation` error. This cannot be resolved by re-running the provider. @@ -70,16 +61,12 @@ public static Builder builder() { public static Builder builder(EndpointGroupEndpointConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean clientIpPreservationEnabled; private @Nullable String endpointId; private @Nullable Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointGroupEndpointConfiguration defaults) { Objects.requireNonNull(defaults); this.clientIpPreservationEnabled = defaults.clientIpPreservationEnabled; @@ -87,19 +74,27 @@ public Builder(EndpointGroupEndpointConfiguration defaults) { this.weight = defaults.weight; } + @CustomType.Setter public Builder clientIpPreservationEnabled(@Nullable Boolean clientIpPreservationEnabled) { this.clientIpPreservationEnabled = clientIpPreservationEnabled; return this; } + @CustomType.Setter public Builder endpointId(@Nullable String endpointId) { this.endpointId = endpointId; return this; } + @CustomType.Setter public Builder weight(@Nullable Integer weight) { this.weight = weight; return this; - } public EndpointGroupEndpointConfiguration build() { - return new EndpointGroupEndpointConfiguration(clientIpPreservationEnabled, endpointId, weight); + } + public EndpointGroupEndpointConfiguration build() { + final var o = new EndpointGroupEndpointConfiguration(); + o.clientIpPreservationEnabled = clientIpPreservationEnabled; + o.endpointId = endpointId; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/EndpointGroupPortOverride.java b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/EndpointGroupPortOverride.java index 6e9601aef7a..e028eea7fe7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/EndpointGroupPortOverride.java +++ b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/EndpointGroupPortOverride.java @@ -13,21 +13,14 @@ public final class EndpointGroupPortOverride { * @return The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance. * */ - private final Integer endpointPort; + private Integer endpointPort; /** * @return The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on. * */ - private final Integer listenerPort; - - @CustomType.Constructor - private EndpointGroupPortOverride( - @CustomType.Parameter("endpointPort") Integer endpointPort, - @CustomType.Parameter("listenerPort") Integer listenerPort) { - this.endpointPort = endpointPort; - this.listenerPort = listenerPort; - } + private Integer listenerPort; + private EndpointGroupPortOverride() {} /** * @return The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(EndpointGroupPortOverride defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer endpointPort; private Integer listenerPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointGroupPortOverride defaults) { Objects.requireNonNull(defaults); this.endpointPort = defaults.endpointPort; this.listenerPort = defaults.listenerPort; } + @CustomType.Setter public Builder endpointPort(Integer endpointPort) { this.endpointPort = Objects.requireNonNull(endpointPort); return this; } + @CustomType.Setter public Builder listenerPort(Integer listenerPort) { this.listenerPort = Objects.requireNonNull(listenerPort); return this; - } public EndpointGroupPortOverride build() { - return new EndpointGroupPortOverride(endpointPort, listenerPort); + } + public EndpointGroupPortOverride build() { + final var o = new EndpointGroupPortOverride(); + o.endpointPort = endpointPort; + o.listenerPort = listenerPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/GetAcceleratorAttribute.java b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/GetAcceleratorAttribute.java index d910d666fdc..5b5ff1d6edd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/GetAcceleratorAttribute.java +++ b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/GetAcceleratorAttribute.java @@ -10,20 +10,11 @@ @CustomType public final class GetAcceleratorAttribute { - private final Boolean flowLogsEnabled; - private final String flowLogsS3Bucket; - private final String flowLogsS3Prefix; - - @CustomType.Constructor - private GetAcceleratorAttribute( - @CustomType.Parameter("flowLogsEnabled") Boolean flowLogsEnabled, - @CustomType.Parameter("flowLogsS3Bucket") String flowLogsS3Bucket, - @CustomType.Parameter("flowLogsS3Prefix") String flowLogsS3Prefix) { - this.flowLogsEnabled = flowLogsEnabled; - this.flowLogsS3Bucket = flowLogsS3Bucket; - this.flowLogsS3Prefix = flowLogsS3Prefix; - } + private Boolean flowLogsEnabled; + private String flowLogsS3Bucket; + private String flowLogsS3Prefix; + private GetAcceleratorAttribute() {} public Boolean flowLogsEnabled() { return this.flowLogsEnabled; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(GetAcceleratorAttribute defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean flowLogsEnabled; private String flowLogsS3Bucket; private String flowLogsS3Prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAcceleratorAttribute defaults) { Objects.requireNonNull(defaults); this.flowLogsEnabled = defaults.flowLogsEnabled; @@ -58,19 +45,27 @@ public Builder(GetAcceleratorAttribute defaults) { this.flowLogsS3Prefix = defaults.flowLogsS3Prefix; } + @CustomType.Setter public Builder flowLogsEnabled(Boolean flowLogsEnabled) { this.flowLogsEnabled = Objects.requireNonNull(flowLogsEnabled); return this; } + @CustomType.Setter public Builder flowLogsS3Bucket(String flowLogsS3Bucket) { this.flowLogsS3Bucket = Objects.requireNonNull(flowLogsS3Bucket); return this; } + @CustomType.Setter public Builder flowLogsS3Prefix(String flowLogsS3Prefix) { this.flowLogsS3Prefix = Objects.requireNonNull(flowLogsS3Prefix); return this; - } public GetAcceleratorAttribute build() { - return new GetAcceleratorAttribute(flowLogsEnabled, flowLogsS3Bucket, flowLogsS3Prefix); + } + public GetAcceleratorAttribute build() { + final var o = new GetAcceleratorAttribute(); + o.flowLogsEnabled = flowLogsEnabled; + o.flowLogsS3Bucket = flowLogsS3Bucket; + o.flowLogsS3Prefix = flowLogsS3Prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/GetAcceleratorIpSet.java b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/GetAcceleratorIpSet.java index 8d095a5f310..1dbd2ed0e16 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/GetAcceleratorIpSet.java +++ b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/GetAcceleratorIpSet.java @@ -10,17 +10,10 @@ @CustomType public final class GetAcceleratorIpSet { - private final List ipAddresses; - private final String ipFamily; - - @CustomType.Constructor - private GetAcceleratorIpSet( - @CustomType.Parameter("ipAddresses") List ipAddresses, - @CustomType.Parameter("ipFamily") String ipFamily) { - this.ipAddresses = ipAddresses; - this.ipFamily = ipFamily; - } + private List ipAddresses; + private String ipFamily; + private GetAcceleratorIpSet() {} public List ipAddresses() { return this.ipAddresses; } @@ -35,21 +28,18 @@ public static Builder builder() { public static Builder builder(GetAcceleratorIpSet defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List ipAddresses; private String ipFamily; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAcceleratorIpSet defaults) { Objects.requireNonNull(defaults); this.ipAddresses = defaults.ipAddresses; this.ipFamily = defaults.ipFamily; } + @CustomType.Setter public Builder ipAddresses(List ipAddresses) { this.ipAddresses = Objects.requireNonNull(ipAddresses); return this; @@ -57,11 +47,16 @@ public Builder ipAddresses(List ipAddresses) { public Builder ipAddresses(String... ipAddresses) { return ipAddresses(List.of(ipAddresses)); } + @CustomType.Setter public Builder ipFamily(String ipFamily) { this.ipFamily = Objects.requireNonNull(ipFamily); return this; - } public GetAcceleratorIpSet build() { - return new GetAcceleratorIpSet(ipAddresses, ipFamily); + } + public GetAcceleratorIpSet build() { + final var o = new GetAcceleratorIpSet(); + o.ipAddresses = ipAddresses; + o.ipFamily = ipFamily; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/GetAcceleratorResult.java b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/GetAcceleratorResult.java index 1fa766bffde..9600e082e44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/GetAcceleratorResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/GetAcceleratorResult.java @@ -14,45 +14,22 @@ @CustomType public final class GetAcceleratorResult { - private final String arn; - private final List attributes; - private final String dnsName; - private final Boolean enabled; - private final String hostedZoneId; + private String arn; + private List attributes; + private String dnsName; + private Boolean enabled; + private String hostedZoneId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String ipAddressType; - private final List ipSets; - private final String name; - private final Map tags; - - @CustomType.Constructor - private GetAcceleratorResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("attributes") List attributes, - @CustomType.Parameter("dnsName") String dnsName, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("hostedZoneId") String hostedZoneId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ipAddressType") String ipAddressType, - @CustomType.Parameter("ipSets") List ipSets, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.attributes = attributes; - this.dnsName = dnsName; - this.enabled = enabled; - this.hostedZoneId = hostedZoneId; - this.id = id; - this.ipAddressType = ipAddressType; - this.ipSets = ipSets; - this.name = name; - this.tags = tags; - } + private String id; + private String ipAddressType; + private List ipSets; + private String name; + private Map tags; + private GetAcceleratorResult() {} public String arn() { return this.arn; } @@ -95,7 +72,7 @@ public static Builder builder() { public static Builder builder(GetAcceleratorResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List attributes; @@ -107,11 +84,7 @@ public static final class Builder { private List ipSets; private String name; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAcceleratorResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -126,10 +99,12 @@ public Builder(GetAcceleratorResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder attributes(List attributes) { this.attributes = Objects.requireNonNull(attributes); return this; @@ -137,26 +112,32 @@ public Builder attributes(List attributes) { public Builder attributes(GetAcceleratorAttribute... attributes) { return attributes(List.of(attributes)); } + @CustomType.Setter public Builder dnsName(String dnsName) { this.dnsName = Objects.requireNonNull(dnsName); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder hostedZoneId(String hostedZoneId) { this.hostedZoneId = Objects.requireNonNull(hostedZoneId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ipAddressType(String ipAddressType) { this.ipAddressType = Objects.requireNonNull(ipAddressType); return this; } + @CustomType.Setter public Builder ipSets(List ipSets) { this.ipSets = Objects.requireNonNull(ipSets); return this; @@ -164,15 +145,29 @@ public Builder ipSets(List ipSets) { public Builder ipSets(GetAcceleratorIpSet... ipSets) { return ipSets(List.of(ipSets)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetAcceleratorResult build() { - return new GetAcceleratorResult(arn, attributes, dnsName, enabled, hostedZoneId, id, ipAddressType, ipSets, name, tags); + } + public GetAcceleratorResult build() { + final var o = new GetAcceleratorResult(); + o.arn = arn; + o.attributes = attributes; + o.dnsName = dnsName; + o.enabled = enabled; + o.hostedZoneId = hostedZoneId; + o.id = id; + o.ipAddressType = ipAddressType; + o.ipSets = ipSets; + o.name = name; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/ListenerPortRange.java b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/ListenerPortRange.java index fec8e0e1ba8..8616eccd805 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/ListenerPortRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/globalaccelerator/outputs/ListenerPortRange.java @@ -15,21 +15,14 @@ public final class ListenerPortRange { * @return The first port in the range of ports, inclusive. * */ - private final @Nullable Integer fromPort; + private @Nullable Integer fromPort; /** * @return The last port in the range of ports, inclusive. * */ - private final @Nullable Integer toPort; - - @CustomType.Constructor - private ListenerPortRange( - @CustomType.Parameter("fromPort") @Nullable Integer fromPort, - @CustomType.Parameter("toPort") @Nullable Integer toPort) { - this.fromPort = fromPort; - this.toPort = toPort; - } + private @Nullable Integer toPort; + private ListenerPortRange() {} /** * @return The first port in the range of ports, inclusive. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ListenerPortRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer fromPort; private @Nullable Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerPortRange defaults) { Objects.requireNonNull(defaults); this.fromPort = defaults.fromPort; this.toPort = defaults.toPort; } + @CustomType.Setter public Builder fromPort(@Nullable Integer fromPort) { this.fromPort = fromPort; return this; } + @CustomType.Setter public Builder toPort(@Nullable Integer toPort) { this.toPort = toPort; return this; - } public ListenerPortRange build() { - return new ListenerPortRange(fromPort, toPort); + } + public ListenerPortRange build() { + final var o = new ListenerPortRange(); + o.fromPort = fromPort; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogDatabaseCreateTableDefaultPermission.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogDatabaseCreateTableDefaultPermission.java index 05af51accc4..a31149e0cda 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogDatabaseCreateTableDefaultPermission.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogDatabaseCreateTableDefaultPermission.java @@ -17,21 +17,14 @@ public final class CatalogDatabaseCreateTableDefaultPermission { * @return The permissions that are granted to the principal. * */ - private final @Nullable List permissions; + private @Nullable List permissions; /** * @return The principal who is granted permissions.. See `principal` below. * */ - private final @Nullable CatalogDatabaseCreateTableDefaultPermissionPrincipal principal; - - @CustomType.Constructor - private CatalogDatabaseCreateTableDefaultPermission( - @CustomType.Parameter("permissions") @Nullable List permissions, - @CustomType.Parameter("principal") @Nullable CatalogDatabaseCreateTableDefaultPermissionPrincipal principal) { - this.permissions = permissions; - this.principal = principal; - } + private @Nullable CatalogDatabaseCreateTableDefaultPermissionPrincipal principal; + private CatalogDatabaseCreateTableDefaultPermission() {} /** * @return The permissions that are granted to the principal. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(CatalogDatabaseCreateTableDefaultPermission defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List permissions; private @Nullable CatalogDatabaseCreateTableDefaultPermissionPrincipal principal; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogDatabaseCreateTableDefaultPermission defaults) { Objects.requireNonNull(defaults); this.permissions = defaults.permissions; this.principal = defaults.principal; } + @CustomType.Setter public Builder permissions(@Nullable List permissions) { this.permissions = permissions; return this; @@ -76,11 +66,16 @@ public Builder permissions(@Nullable List permissions) { public Builder permissions(String... permissions) { return permissions(List.of(permissions)); } + @CustomType.Setter public Builder principal(@Nullable CatalogDatabaseCreateTableDefaultPermissionPrincipal principal) { this.principal = principal; return this; - } public CatalogDatabaseCreateTableDefaultPermission build() { - return new CatalogDatabaseCreateTableDefaultPermission(permissions, principal); + } + public CatalogDatabaseCreateTableDefaultPermission build() { + final var o = new CatalogDatabaseCreateTableDefaultPermission(); + o.permissions = permissions; + o.principal = principal; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogDatabaseCreateTableDefaultPermissionPrincipal.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogDatabaseCreateTableDefaultPermissionPrincipal.java index d1969833a6f..b2668404eab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogDatabaseCreateTableDefaultPermissionPrincipal.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogDatabaseCreateTableDefaultPermissionPrincipal.java @@ -15,13 +15,9 @@ public final class CatalogDatabaseCreateTableDefaultPermissionPrincipal { * @return An identifier for the Lake Formation principal. * */ - private final @Nullable String dataLakePrincipalIdentifier; - - @CustomType.Constructor - private CatalogDatabaseCreateTableDefaultPermissionPrincipal(@CustomType.Parameter("dataLakePrincipalIdentifier") @Nullable String dataLakePrincipalIdentifier) { - this.dataLakePrincipalIdentifier = dataLakePrincipalIdentifier; - } + private @Nullable String dataLakePrincipalIdentifier; + private CatalogDatabaseCreateTableDefaultPermissionPrincipal() {} /** * @return An identifier for the Lake Formation principal. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(CatalogDatabaseCreateTableDefaultPermissionPrincipal defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dataLakePrincipalIdentifier; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogDatabaseCreateTableDefaultPermissionPrincipal defaults) { Objects.requireNonNull(defaults); this.dataLakePrincipalIdentifier = defaults.dataLakePrincipalIdentifier; } + @CustomType.Setter public Builder dataLakePrincipalIdentifier(@Nullable String dataLakePrincipalIdentifier) { this.dataLakePrincipalIdentifier = dataLakePrincipalIdentifier; return this; - } public CatalogDatabaseCreateTableDefaultPermissionPrincipal build() { - return new CatalogDatabaseCreateTableDefaultPermissionPrincipal(dataLakePrincipalIdentifier); + } + public CatalogDatabaseCreateTableDefaultPermissionPrincipal build() { + final var o = new CatalogDatabaseCreateTableDefaultPermissionPrincipal(); + o.dataLakePrincipalIdentifier = dataLakePrincipalIdentifier; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogDatabaseTargetDatabase.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogDatabaseTargetDatabase.java index b9071aa3366..41fafd5bc37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogDatabaseTargetDatabase.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogDatabaseTargetDatabase.java @@ -13,21 +13,14 @@ public final class CatalogDatabaseTargetDatabase { * @return ID of the Data Catalog in which the database resides. * */ - private final String catalogId; + private String catalogId; /** * @return Name of the catalog database. * */ - private final String databaseName; - - @CustomType.Constructor - private CatalogDatabaseTargetDatabase( - @CustomType.Parameter("catalogId") String catalogId, - @CustomType.Parameter("databaseName") String databaseName) { - this.catalogId = catalogId; - this.databaseName = databaseName; - } + private String databaseName; + private CatalogDatabaseTargetDatabase() {} /** * @return ID of the Data Catalog in which the database resides. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(CatalogDatabaseTargetDatabase defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String catalogId; private String databaseName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogDatabaseTargetDatabase defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; this.databaseName = defaults.databaseName; } + @CustomType.Setter public Builder catalogId(String catalogId) { this.catalogId = Objects.requireNonNull(catalogId); return this; } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; - } public CatalogDatabaseTargetDatabase build() { - return new CatalogDatabaseTargetDatabase(catalogId, databaseName); + } + public CatalogDatabaseTargetDatabase build() { + final var o = new CatalogDatabaseTargetDatabase(); + o.catalogId = catalogId; + o.databaseName = databaseName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTablePartitionIndex.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTablePartitionIndex.java index f6cfe1c687e..b1a16b039c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTablePartitionIndex.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTablePartitionIndex.java @@ -16,24 +16,15 @@ public final class CatalogTablePartitionIndex { * @return Name of the partition index. * */ - private final String indexName; - private final @Nullable String indexStatus; + private String indexName; + private @Nullable String indexStatus; /** * @return Keys for the partition index. * */ - private final List keys; - - @CustomType.Constructor - private CatalogTablePartitionIndex( - @CustomType.Parameter("indexName") String indexName, - @CustomType.Parameter("indexStatus") @Nullable String indexStatus, - @CustomType.Parameter("keys") List keys) { - this.indexName = indexName; - this.indexStatus = indexStatus; - this.keys = keys; - } + private List keys; + private CatalogTablePartitionIndex() {} /** * @return Name of the partition index. * @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(CatalogTablePartitionIndex defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String indexName; private @Nullable String indexStatus; private List keys; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogTablePartitionIndex defaults) { Objects.requireNonNull(defaults); this.indexName = defaults.indexName; @@ -76,22 +63,30 @@ public Builder(CatalogTablePartitionIndex defaults) { this.keys = defaults.keys; } + @CustomType.Setter public Builder indexName(String indexName) { this.indexName = Objects.requireNonNull(indexName); return this; } + @CustomType.Setter public Builder indexStatus(@Nullable String indexStatus) { this.indexStatus = indexStatus; return this; } + @CustomType.Setter public Builder keys(List keys) { this.keys = Objects.requireNonNull(keys); return this; } public Builder keys(String... keys) { return keys(List.of(keys)); - } public CatalogTablePartitionIndex build() { - return new CatalogTablePartitionIndex(indexName, indexStatus, keys); + } + public CatalogTablePartitionIndex build() { + final var o = new CatalogTablePartitionIndex(); + o.indexName = indexName; + o.indexStatus = indexStatus; + o.keys = keys; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTablePartitionKey.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTablePartitionKey.java index 1565db9c65c..bc9fa70a79e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTablePartitionKey.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTablePartitionKey.java @@ -15,28 +15,19 @@ public final class CatalogTablePartitionKey { * @return Free-form text comment. * */ - private final @Nullable String comment; + private @Nullable String comment; /** * @return Name of the target table. * */ - private final String name; + private String name; /** * @return Datatype of data in the Column. * */ - private final @Nullable String type; - - @CustomType.Constructor - private CatalogTablePartitionKey( - @CustomType.Parameter("comment") @Nullable String comment, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("type") @Nullable String type) { - this.comment = comment; - this.name = name; - this.type = type; - } + private @Nullable String type; + private CatalogTablePartitionKey() {} /** * @return Free-form text comment. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(CatalogTablePartitionKey defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String comment; private String name; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogTablePartitionKey defaults) { Objects.requireNonNull(defaults); this.comment = defaults.comment; @@ -83,19 +70,27 @@ public Builder(CatalogTablePartitionKey defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder comment(@Nullable String comment) { this.comment = comment; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public CatalogTablePartitionKey build() { - return new CatalogTablePartitionKey(comment, name, type); + } + public CatalogTablePartitionKey build() { + final var o = new CatalogTablePartitionKey(); + o.comment = comment; + o.name = name; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptor.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptor.java index 38f8d316305..0df7d5024a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptor.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptor.java @@ -24,98 +24,69 @@ public final class CatalogTableStorageDescriptor { * @return List of reducer grouping columns, clustering columns, and bucketing columns in the table. * */ - private final @Nullable List bucketColumns; + private @Nullable List bucketColumns; /** * @return Configuration block for columns in the table. See `columns` below. * */ - private final @Nullable List columns; + private @Nullable List columns; /** * @return Whether the data in the table is compressed. * */ - private final @Nullable Boolean compressed; + private @Nullable Boolean compressed; /** * @return Input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format. * */ - private final @Nullable String inputFormat; + private @Nullable String inputFormat; /** * @return Physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name. * */ - private final @Nullable String location; + private @Nullable String location; /** * @return Must be specified if the table contains any dimension columns. * */ - private final @Nullable Integer numberOfBuckets; + private @Nullable Integer numberOfBuckets; /** * @return Output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format. * */ - private final @Nullable String outputFormat; + private @Nullable String outputFormat; /** * @return Map of initialization parameters for the SerDe, in key-value form. * */ - private final @Nullable Map parameters; + private @Nullable Map parameters; /** * @return Object that references a schema stored in the AWS Glue Schema Registry. When creating a table, you can pass an empty list of columns for the schema, and instead use a schema reference. See Schema Reference below. * */ - private final @Nullable CatalogTableStorageDescriptorSchemaReference schemaReference; + private @Nullable CatalogTableStorageDescriptorSchemaReference schemaReference; /** * @return Configuration block for serialization and deserialization ("SerDe") information. See `ser_de_info` below. * */ - private final @Nullable CatalogTableStorageDescriptorSerDeInfo serDeInfo; + private @Nullable CatalogTableStorageDescriptorSerDeInfo serDeInfo; /** * @return Configuration block with information about values that appear very frequently in a column (skewed values). See `skewed_info` below. * */ - private final @Nullable CatalogTableStorageDescriptorSkewedInfo skewedInfo; + private @Nullable CatalogTableStorageDescriptorSkewedInfo skewedInfo; /** * @return Configuration block for the sort order of each bucket in the table. See `sort_columns` below. * */ - private final @Nullable List sortColumns; + private @Nullable List sortColumns; /** * @return Whether the table data is stored in subdirectories. * */ - private final @Nullable Boolean storedAsSubDirectories; - - @CustomType.Constructor - private CatalogTableStorageDescriptor( - @CustomType.Parameter("bucketColumns") @Nullable List bucketColumns, - @CustomType.Parameter("columns") @Nullable List columns, - @CustomType.Parameter("compressed") @Nullable Boolean compressed, - @CustomType.Parameter("inputFormat") @Nullable String inputFormat, - @CustomType.Parameter("location") @Nullable String location, - @CustomType.Parameter("numberOfBuckets") @Nullable Integer numberOfBuckets, - @CustomType.Parameter("outputFormat") @Nullable String outputFormat, - @CustomType.Parameter("parameters") @Nullable Map parameters, - @CustomType.Parameter("schemaReference") @Nullable CatalogTableStorageDescriptorSchemaReference schemaReference, - @CustomType.Parameter("serDeInfo") @Nullable CatalogTableStorageDescriptorSerDeInfo serDeInfo, - @CustomType.Parameter("skewedInfo") @Nullable CatalogTableStorageDescriptorSkewedInfo skewedInfo, - @CustomType.Parameter("sortColumns") @Nullable List sortColumns, - @CustomType.Parameter("storedAsSubDirectories") @Nullable Boolean storedAsSubDirectories) { - this.bucketColumns = bucketColumns; - this.columns = columns; - this.compressed = compressed; - this.inputFormat = inputFormat; - this.location = location; - this.numberOfBuckets = numberOfBuckets; - this.outputFormat = outputFormat; - this.parameters = parameters; - this.schemaReference = schemaReference; - this.serDeInfo = serDeInfo; - this.skewedInfo = skewedInfo; - this.sortColumns = sortColumns; - this.storedAsSubDirectories = storedAsSubDirectories; - } + private @Nullable Boolean storedAsSubDirectories; + private CatalogTableStorageDescriptor() {} /** * @return List of reducer grouping columns, clustering columns, and bucketing columns in the table. * @@ -215,7 +186,7 @@ public static Builder builder() { public static Builder builder(CatalogTableStorageDescriptor defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List bucketColumns; private @Nullable List columns; @@ -230,11 +201,7 @@ public static final class Builder { private @Nullable CatalogTableStorageDescriptorSkewedInfo skewedInfo; private @Nullable List sortColumns; private @Nullable Boolean storedAsSubDirectories; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogTableStorageDescriptor defaults) { Objects.requireNonNull(defaults); this.bucketColumns = defaults.bucketColumns; @@ -252,6 +219,7 @@ public Builder(CatalogTableStorageDescriptor defaults) { this.storedAsSubDirectories = defaults.storedAsSubDirectories; } + @CustomType.Setter public Builder bucketColumns(@Nullable List bucketColumns) { this.bucketColumns = bucketColumns; return this; @@ -259,6 +227,7 @@ public Builder bucketColumns(@Nullable List bucketColumns) { public Builder bucketColumns(String... bucketColumns) { return bucketColumns(List.of(bucketColumns)); } + @CustomType.Setter public Builder columns(@Nullable List columns) { this.columns = columns; return this; @@ -266,42 +235,52 @@ public Builder columns(@Nullable List colum public Builder columns(CatalogTableStorageDescriptorColumn... columns) { return columns(List.of(columns)); } + @CustomType.Setter public Builder compressed(@Nullable Boolean compressed) { this.compressed = compressed; return this; } + @CustomType.Setter public Builder inputFormat(@Nullable String inputFormat) { this.inputFormat = inputFormat; return this; } + @CustomType.Setter public Builder location(@Nullable String location) { this.location = location; return this; } + @CustomType.Setter public Builder numberOfBuckets(@Nullable Integer numberOfBuckets) { this.numberOfBuckets = numberOfBuckets; return this; } + @CustomType.Setter public Builder outputFormat(@Nullable String outputFormat) { this.outputFormat = outputFormat; return this; } + @CustomType.Setter public Builder parameters(@Nullable Map parameters) { this.parameters = parameters; return this; } + @CustomType.Setter public Builder schemaReference(@Nullable CatalogTableStorageDescriptorSchemaReference schemaReference) { this.schemaReference = schemaReference; return this; } + @CustomType.Setter public Builder serDeInfo(@Nullable CatalogTableStorageDescriptorSerDeInfo serDeInfo) { this.serDeInfo = serDeInfo; return this; } + @CustomType.Setter public Builder skewedInfo(@Nullable CatalogTableStorageDescriptorSkewedInfo skewedInfo) { this.skewedInfo = skewedInfo; return this; } + @CustomType.Setter public Builder sortColumns(@Nullable List sortColumns) { this.sortColumns = sortColumns; return this; @@ -309,11 +288,27 @@ public Builder sortColumns(@Nullable List parameters; + private @Nullable Map parameters; /** * @return Datatype of data in the Column. * */ - private final @Nullable String type; - - @CustomType.Constructor - private CatalogTableStorageDescriptorColumn( - @CustomType.Parameter("comment") @Nullable String comment, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("parameters") @Nullable Map parameters, - @CustomType.Parameter("type") @Nullable String type) { - this.comment = comment; - this.name = name; - this.parameters = parameters; - this.type = type; - } + private @Nullable String type; + private CatalogTableStorageDescriptorColumn() {} /** * @return Free-form text comment. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(CatalogTableStorageDescriptorColumn defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String comment; private String name; private @Nullable Map parameters; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogTableStorageDescriptorColumn defaults) { Objects.requireNonNull(defaults); this.comment = defaults.comment; @@ -100,23 +85,33 @@ public Builder(CatalogTableStorageDescriptorColumn defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder comment(@Nullable String comment) { this.comment = comment; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder parameters(@Nullable Map parameters) { this.parameters = parameters; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public CatalogTableStorageDescriptorColumn build() { - return new CatalogTableStorageDescriptorColumn(comment, name, parameters, type); + } + public CatalogTableStorageDescriptorColumn build() { + final var o = new CatalogTableStorageDescriptorColumn(); + o.comment = comment; + o.name = name; + o.parameters = parameters; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSchemaReference.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSchemaReference.java index 5e31b23c9f9..6a1600ef2c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSchemaReference.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSchemaReference.java @@ -17,28 +17,19 @@ public final class CatalogTableStorageDescriptorSchemaReference { * @return Configuration block that contains schema identity fields. Either this or the `schema_version_id` has to be provided. See `schema_id` below. * */ - private final @Nullable CatalogTableStorageDescriptorSchemaReferenceSchemaId schemaId; + private @Nullable CatalogTableStorageDescriptorSchemaReferenceSchemaId schemaId; /** * @return Unique ID assigned to a version of the schema. Either this or the `schema_id` has to be provided. * */ - private final @Nullable String schemaVersionId; + private @Nullable String schemaVersionId; /** * @return Version number of the schema. * */ - private final Integer schemaVersionNumber; - - @CustomType.Constructor - private CatalogTableStorageDescriptorSchemaReference( - @CustomType.Parameter("schemaId") @Nullable CatalogTableStorageDescriptorSchemaReferenceSchemaId schemaId, - @CustomType.Parameter("schemaVersionId") @Nullable String schemaVersionId, - @CustomType.Parameter("schemaVersionNumber") Integer schemaVersionNumber) { - this.schemaId = schemaId; - this.schemaVersionId = schemaVersionId; - this.schemaVersionNumber = schemaVersionNumber; - } + private Integer schemaVersionNumber; + private CatalogTableStorageDescriptorSchemaReference() {} /** * @return Configuration block that contains schema identity fields. Either this or the `schema_version_id` has to be provided. See `schema_id` below. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(CatalogTableStorageDescriptorSchemaReference defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable CatalogTableStorageDescriptorSchemaReferenceSchemaId schemaId; private @Nullable String schemaVersionId; private Integer schemaVersionNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogTableStorageDescriptorSchemaReference defaults) { Objects.requireNonNull(defaults); this.schemaId = defaults.schemaId; @@ -85,19 +72,27 @@ public Builder(CatalogTableStorageDescriptorSchemaReference defaults) { this.schemaVersionNumber = defaults.schemaVersionNumber; } + @CustomType.Setter public Builder schemaId(@Nullable CatalogTableStorageDescriptorSchemaReferenceSchemaId schemaId) { this.schemaId = schemaId; return this; } + @CustomType.Setter public Builder schemaVersionId(@Nullable String schemaVersionId) { this.schemaVersionId = schemaVersionId; return this; } + @CustomType.Setter public Builder schemaVersionNumber(Integer schemaVersionNumber) { this.schemaVersionNumber = Objects.requireNonNull(schemaVersionNumber); return this; - } public CatalogTableStorageDescriptorSchemaReference build() { - return new CatalogTableStorageDescriptorSchemaReference(schemaId, schemaVersionId, schemaVersionNumber); + } + public CatalogTableStorageDescriptorSchemaReference build() { + final var o = new CatalogTableStorageDescriptorSchemaReference(); + o.schemaId = schemaId; + o.schemaVersionId = schemaVersionId; + o.schemaVersionNumber = schemaVersionNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSchemaReferenceSchemaId.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSchemaReferenceSchemaId.java index 1dc100f4465..2af45626833 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSchemaReferenceSchemaId.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSchemaReferenceSchemaId.java @@ -15,28 +15,19 @@ public final class CatalogTableStorageDescriptorSchemaReferenceSchemaId { * @return Name of the schema registry that contains the schema. Must be provided when `schema_name` is specified and conflicts with `schema_arn`. * */ - private final @Nullable String registryName; + private @Nullable String registryName; /** * @return ARN of the schema. One of `schema_arn` or `schema_name` has to be provided. * */ - private final @Nullable String schemaArn; + private @Nullable String schemaArn; /** * @return Name of the schema. One of `schema_arn` or `schema_name` has to be provided. * */ - private final @Nullable String schemaName; - - @CustomType.Constructor - private CatalogTableStorageDescriptorSchemaReferenceSchemaId( - @CustomType.Parameter("registryName") @Nullable String registryName, - @CustomType.Parameter("schemaArn") @Nullable String schemaArn, - @CustomType.Parameter("schemaName") @Nullable String schemaName) { - this.registryName = registryName; - this.schemaArn = schemaArn; - this.schemaName = schemaName; - } + private @Nullable String schemaName; + private CatalogTableStorageDescriptorSchemaReferenceSchemaId() {} /** * @return Name of the schema registry that contains the schema. Must be provided when `schema_name` is specified and conflicts with `schema_arn`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(CatalogTableStorageDescriptorSchemaReferenceSchemaId defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String registryName; private @Nullable String schemaArn; private @Nullable String schemaName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogTableStorageDescriptorSchemaReferenceSchemaId defaults) { Objects.requireNonNull(defaults); this.registryName = defaults.registryName; @@ -83,19 +70,27 @@ public Builder(CatalogTableStorageDescriptorSchemaReferenceSchemaId defaults) { this.schemaName = defaults.schemaName; } + @CustomType.Setter public Builder registryName(@Nullable String registryName) { this.registryName = registryName; return this; } + @CustomType.Setter public Builder schemaArn(@Nullable String schemaArn) { this.schemaArn = schemaArn; return this; } + @CustomType.Setter public Builder schemaName(@Nullable String schemaName) { this.schemaName = schemaName; return this; - } public CatalogTableStorageDescriptorSchemaReferenceSchemaId build() { - return new CatalogTableStorageDescriptorSchemaReferenceSchemaId(registryName, schemaArn, schemaName); + } + public CatalogTableStorageDescriptorSchemaReferenceSchemaId build() { + final var o = new CatalogTableStorageDescriptorSchemaReferenceSchemaId(); + o.registryName = registryName; + o.schemaArn = schemaArn; + o.schemaName = schemaName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSerDeInfo.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSerDeInfo.java index ace768bbcab..14f22f2f3d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSerDeInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSerDeInfo.java @@ -16,28 +16,19 @@ public final class CatalogTableStorageDescriptorSerDeInfo { * @return Name of the target table. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Map of initialization parameters for the SerDe, in key-value form. * */ - private final @Nullable Map parameters; + private @Nullable Map parameters; /** * @return Usually the class that implements the SerDe. An example is `org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe`. * */ - private final @Nullable String serializationLibrary; - - @CustomType.Constructor - private CatalogTableStorageDescriptorSerDeInfo( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("parameters") @Nullable Map parameters, - @CustomType.Parameter("serializationLibrary") @Nullable String serializationLibrary) { - this.name = name; - this.parameters = parameters; - this.serializationLibrary = serializationLibrary; - } + private @Nullable String serializationLibrary; + private CatalogTableStorageDescriptorSerDeInfo() {} /** * @return Name of the target table. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CatalogTableStorageDescriptorSerDeInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable Map parameters; private @Nullable String serializationLibrary; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogTableStorageDescriptorSerDeInfo defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -84,19 +71,27 @@ public Builder(CatalogTableStorageDescriptorSerDeInfo defaults) { this.serializationLibrary = defaults.serializationLibrary; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder parameters(@Nullable Map parameters) { this.parameters = parameters; return this; } + @CustomType.Setter public Builder serializationLibrary(@Nullable String serializationLibrary) { this.serializationLibrary = serializationLibrary; return this; - } public CatalogTableStorageDescriptorSerDeInfo build() { - return new CatalogTableStorageDescriptorSerDeInfo(name, parameters, serializationLibrary); + } + public CatalogTableStorageDescriptorSerDeInfo build() { + final var o = new CatalogTableStorageDescriptorSerDeInfo(); + o.name = name; + o.parameters = parameters; + o.serializationLibrary = serializationLibrary; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSkewedInfo.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSkewedInfo.java index 7675c42f2cc..1744e92adab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSkewedInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSkewedInfo.java @@ -16,28 +16,19 @@ public final class CatalogTableStorageDescriptorSkewedInfo { * @return List of names of columns that contain skewed values. * */ - private final @Nullable List skewedColumnNames; + private @Nullable List skewedColumnNames; /** * @return List of values that appear so frequently as to be considered skewed. * */ - private final @Nullable Map skewedColumnValueLocationMaps; + private @Nullable Map skewedColumnValueLocationMaps; /** * @return Map of skewed values to the columns that contain them. * */ - private final @Nullable List skewedColumnValues; - - @CustomType.Constructor - private CatalogTableStorageDescriptorSkewedInfo( - @CustomType.Parameter("skewedColumnNames") @Nullable List skewedColumnNames, - @CustomType.Parameter("skewedColumnValueLocationMaps") @Nullable Map skewedColumnValueLocationMaps, - @CustomType.Parameter("skewedColumnValues") @Nullable List skewedColumnValues) { - this.skewedColumnNames = skewedColumnNames; - this.skewedColumnValueLocationMaps = skewedColumnValueLocationMaps; - this.skewedColumnValues = skewedColumnValues; - } + private @Nullable List skewedColumnValues; + private CatalogTableStorageDescriptorSkewedInfo() {} /** * @return List of names of columns that contain skewed values. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CatalogTableStorageDescriptorSkewedInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List skewedColumnNames; private @Nullable Map skewedColumnValueLocationMaps; private @Nullable List skewedColumnValues; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogTableStorageDescriptorSkewedInfo defaults) { Objects.requireNonNull(defaults); this.skewedColumnNames = defaults.skewedColumnNames; @@ -84,6 +71,7 @@ public Builder(CatalogTableStorageDescriptorSkewedInfo defaults) { this.skewedColumnValues = defaults.skewedColumnValues; } + @CustomType.Setter public Builder skewedColumnNames(@Nullable List skewedColumnNames) { this.skewedColumnNames = skewedColumnNames; return this; @@ -91,18 +79,25 @@ public Builder skewedColumnNames(@Nullable List skewedColumnNames) { public Builder skewedColumnNames(String... skewedColumnNames) { return skewedColumnNames(List.of(skewedColumnNames)); } + @CustomType.Setter public Builder skewedColumnValueLocationMaps(@Nullable Map skewedColumnValueLocationMaps) { this.skewedColumnValueLocationMaps = skewedColumnValueLocationMaps; return this; } + @CustomType.Setter public Builder skewedColumnValues(@Nullable List skewedColumnValues) { this.skewedColumnValues = skewedColumnValues; return this; } public Builder skewedColumnValues(String... skewedColumnValues) { return skewedColumnValues(List.of(skewedColumnValues)); - } public CatalogTableStorageDescriptorSkewedInfo build() { - return new CatalogTableStorageDescriptorSkewedInfo(skewedColumnNames, skewedColumnValueLocationMaps, skewedColumnValues); + } + public CatalogTableStorageDescriptorSkewedInfo build() { + final var o = new CatalogTableStorageDescriptorSkewedInfo(); + o.skewedColumnNames = skewedColumnNames; + o.skewedColumnValueLocationMaps = skewedColumnValueLocationMaps; + o.skewedColumnValues = skewedColumnValues; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSortColumn.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSortColumn.java index b537f26acd7..ff057ea33b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSortColumn.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableStorageDescriptorSortColumn.java @@ -14,21 +14,14 @@ public final class CatalogTableStorageDescriptorSortColumn { * @return Name of the column. * */ - private final String column; + private String column; /** * @return Whether the column is sorted in ascending (`1`) or descending order (`0`). * */ - private final Integer sortOrder; - - @CustomType.Constructor - private CatalogTableStorageDescriptorSortColumn( - @CustomType.Parameter("column") String column, - @CustomType.Parameter("sortOrder") Integer sortOrder) { - this.column = column; - this.sortOrder = sortOrder; - } + private Integer sortOrder; + private CatalogTableStorageDescriptorSortColumn() {} /** * @return Name of the column. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(CatalogTableStorageDescriptorSortColumn defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String column; private Integer sortOrder; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogTableStorageDescriptorSortColumn defaults) { Objects.requireNonNull(defaults); this.column = defaults.column; this.sortOrder = defaults.sortOrder; } + @CustomType.Setter public Builder column(String column) { this.column = Objects.requireNonNull(column); return this; } + @CustomType.Setter public Builder sortOrder(Integer sortOrder) { this.sortOrder = Objects.requireNonNull(sortOrder); return this; - } public CatalogTableStorageDescriptorSortColumn build() { - return new CatalogTableStorageDescriptorSortColumn(column, sortOrder); + } + public CatalogTableStorageDescriptorSortColumn build() { + final var o = new CatalogTableStorageDescriptorSortColumn(); + o.column = column; + o.sortOrder = sortOrder; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableTargetTable.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableTargetTable.java index fcea07190f6..a0d8cff9e77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableTargetTable.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CatalogTableTargetTable.java @@ -13,28 +13,19 @@ public final class CatalogTableTargetTable { * @return ID of the Data Catalog in which the table resides. * */ - private final String catalogId; + private String catalogId; /** * @return Name of the catalog database that contains the target table. * */ - private final String databaseName; + private String databaseName; /** * @return Name of the target table. * */ - private final String name; - - @CustomType.Constructor - private CatalogTableTargetTable( - @CustomType.Parameter("catalogId") String catalogId, - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("name") String name) { - this.catalogId = catalogId; - this.databaseName = databaseName; - this.name = name; - } + private String name; + private CatalogTableTargetTable() {} /** * @return ID of the Data Catalog in which the table resides. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(CatalogTableTargetTable defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String catalogId; private String databaseName; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CatalogTableTargetTable defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -81,19 +68,27 @@ public Builder(CatalogTableTargetTable defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder catalogId(String catalogId) { this.catalogId = Objects.requireNonNull(catalogId); return this; } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public CatalogTableTargetTable build() { - return new CatalogTableTargetTable(catalogId, databaseName, name); + } + public CatalogTableTargetTable build() { + final var o = new CatalogTableTargetTable(); + o.catalogId = catalogId; + o.databaseName = databaseName; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierCsvClassifier.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierCsvClassifier.java index a97e08f2be2..bd584fdb3ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierCsvClassifier.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierCsvClassifier.java @@ -17,49 +17,34 @@ public final class ClassifierCsvClassifier { * @return Enables the processing of files that contain only one column. * */ - private final @Nullable Boolean allowSingleColumn; + private @Nullable Boolean allowSingleColumn; /** * @return Indicates whether the CSV file contains a header. This can be one of "ABSENT", "PRESENT", or "UNKNOWN". * */ - private final @Nullable String containsHeader; + private @Nullable String containsHeader; /** * @return The delimiter used in the Csv to separate columns. * */ - private final @Nullable String delimiter; + private @Nullable String delimiter; /** * @return Specifies whether to trim column values. * */ - private final @Nullable Boolean disableValueTrimming; + private @Nullable Boolean disableValueTrimming; /** * @return A list of strings representing column names. * */ - private final @Nullable List headers; + private @Nullable List headers; /** * @return A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter. * */ - private final @Nullable String quoteSymbol; - - @CustomType.Constructor - private ClassifierCsvClassifier( - @CustomType.Parameter("allowSingleColumn") @Nullable Boolean allowSingleColumn, - @CustomType.Parameter("containsHeader") @Nullable String containsHeader, - @CustomType.Parameter("delimiter") @Nullable String delimiter, - @CustomType.Parameter("disableValueTrimming") @Nullable Boolean disableValueTrimming, - @CustomType.Parameter("headers") @Nullable List headers, - @CustomType.Parameter("quoteSymbol") @Nullable String quoteSymbol) { - this.allowSingleColumn = allowSingleColumn; - this.containsHeader = containsHeader; - this.delimiter = delimiter; - this.disableValueTrimming = disableValueTrimming; - this.headers = headers; - this.quoteSymbol = quoteSymbol; - } + private @Nullable String quoteSymbol; + private ClassifierCsvClassifier() {} /** * @return Enables the processing of files that contain only one column. * @@ -110,7 +95,7 @@ public static Builder builder() { public static Builder builder(ClassifierCsvClassifier defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allowSingleColumn; private @Nullable String containsHeader; @@ -118,11 +103,7 @@ public static final class Builder { private @Nullable Boolean disableValueTrimming; private @Nullable List headers; private @Nullable String quoteSymbol; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassifierCsvClassifier defaults) { Objects.requireNonNull(defaults); this.allowSingleColumn = defaults.allowSingleColumn; @@ -133,22 +114,27 @@ public Builder(ClassifierCsvClassifier defaults) { this.quoteSymbol = defaults.quoteSymbol; } + @CustomType.Setter public Builder allowSingleColumn(@Nullable Boolean allowSingleColumn) { this.allowSingleColumn = allowSingleColumn; return this; } + @CustomType.Setter public Builder containsHeader(@Nullable String containsHeader) { this.containsHeader = containsHeader; return this; } + @CustomType.Setter public Builder delimiter(@Nullable String delimiter) { this.delimiter = delimiter; return this; } + @CustomType.Setter public Builder disableValueTrimming(@Nullable Boolean disableValueTrimming) { this.disableValueTrimming = disableValueTrimming; return this; } + @CustomType.Setter public Builder headers(@Nullable List headers) { this.headers = headers; return this; @@ -156,11 +142,20 @@ public Builder headers(@Nullable List headers) { public Builder headers(String... headers) { return headers(List.of(headers)); } + @CustomType.Setter public Builder quoteSymbol(@Nullable String quoteSymbol) { this.quoteSymbol = quoteSymbol; return this; - } public ClassifierCsvClassifier build() { - return new ClassifierCsvClassifier(allowSingleColumn, containsHeader, delimiter, disableValueTrimming, headers, quoteSymbol); + } + public ClassifierCsvClassifier build() { + final var o = new ClassifierCsvClassifier(); + o.allowSingleColumn = allowSingleColumn; + o.containsHeader = containsHeader; + o.delimiter = delimiter; + o.disableValueTrimming = disableValueTrimming; + o.headers = headers; + o.quoteSymbol = quoteSymbol; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierGrokClassifier.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierGrokClassifier.java index c607e2a3a21..de8538474cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierGrokClassifier.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierGrokClassifier.java @@ -15,28 +15,19 @@ public final class ClassifierGrokClassifier { * @return An identifier of the data format that the classifier matches. * */ - private final String classification; + private String classification; /** * @return Custom grok patterns used by this classifier. * */ - private final @Nullable String customPatterns; + private @Nullable String customPatterns; /** * @return The grok pattern used by this classifier. * */ - private final String grokPattern; - - @CustomType.Constructor - private ClassifierGrokClassifier( - @CustomType.Parameter("classification") String classification, - @CustomType.Parameter("customPatterns") @Nullable String customPatterns, - @CustomType.Parameter("grokPattern") String grokPattern) { - this.classification = classification; - this.customPatterns = customPatterns; - this.grokPattern = grokPattern; - } + private String grokPattern; + private ClassifierGrokClassifier() {} /** * @return An identifier of the data format that the classifier matches. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ClassifierGrokClassifier defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String classification; private @Nullable String customPatterns; private String grokPattern; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassifierGrokClassifier defaults) { Objects.requireNonNull(defaults); this.classification = defaults.classification; @@ -83,19 +70,27 @@ public Builder(ClassifierGrokClassifier defaults) { this.grokPattern = defaults.grokPattern; } + @CustomType.Setter public Builder classification(String classification) { this.classification = Objects.requireNonNull(classification); return this; } + @CustomType.Setter public Builder customPatterns(@Nullable String customPatterns) { this.customPatterns = customPatterns; return this; } + @CustomType.Setter public Builder grokPattern(String grokPattern) { this.grokPattern = Objects.requireNonNull(grokPattern); return this; - } public ClassifierGrokClassifier build() { - return new ClassifierGrokClassifier(classification, customPatterns, grokPattern); + } + public ClassifierGrokClassifier build() { + final var o = new ClassifierGrokClassifier(); + o.classification = classification; + o.customPatterns = customPatterns; + o.grokPattern = grokPattern; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierJsonClassifier.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierJsonClassifier.java index 44689a9f30f..28ac0270286 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierJsonClassifier.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierJsonClassifier.java @@ -13,13 +13,9 @@ public final class ClassifierJsonClassifier { * @return A `JsonPath` string defining the JSON data for the classifier to classify. AWS Glue supports a subset of `JsonPath`, as described in [Writing JsonPath Custom Classifiers](https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json). * */ - private final String jsonPath; - - @CustomType.Constructor - private ClassifierJsonClassifier(@CustomType.Parameter("jsonPath") String jsonPath) { - this.jsonPath = jsonPath; - } + private String jsonPath; + private ClassifierJsonClassifier() {} /** * @return A `JsonPath` string defining the JSON data for the classifier to classify. AWS Glue supports a subset of `JsonPath`, as described in [Writing JsonPath Custom Classifiers](https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json). * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ClassifierJsonClassifier defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String jsonPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassifierJsonClassifier defaults) { Objects.requireNonNull(defaults); this.jsonPath = defaults.jsonPath; } + @CustomType.Setter public Builder jsonPath(String jsonPath) { this.jsonPath = Objects.requireNonNull(jsonPath); return this; - } public ClassifierJsonClassifier build() { - return new ClassifierJsonClassifier(jsonPath); + } + public ClassifierJsonClassifier build() { + final var o = new ClassifierJsonClassifier(); + o.jsonPath = jsonPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierXmlClassifier.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierXmlClassifier.java index 1c29ed51801..6fb2f061239 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierXmlClassifier.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ClassifierXmlClassifier.java @@ -13,21 +13,14 @@ public final class ClassifierXmlClassifier { * @return An identifier of the data format that the classifier matches. * */ - private final String classification; + private String classification; /** * @return The XML tag designating the element that contains each record in an XML document being parsed. Note that this cannot identify a self-closing element (closed by `/>`). An empty row element that contains only attributes can be parsed as long as it ends with a closing tag (for example, `<row item_a="A" item_b="B"></row>` is okay, but `<row item_a="A" item_b="B" />` is not). * */ - private final String rowTag; - - @CustomType.Constructor - private ClassifierXmlClassifier( - @CustomType.Parameter("classification") String classification, - @CustomType.Parameter("rowTag") String rowTag) { - this.classification = classification; - this.rowTag = rowTag; - } + private String rowTag; + private ClassifierXmlClassifier() {} /** * @return An identifier of the data format that the classifier matches. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ClassifierXmlClassifier defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String classification; private String rowTag; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassifierXmlClassifier defaults) { Objects.requireNonNull(defaults); this.classification = defaults.classification; this.rowTag = defaults.rowTag; } + @CustomType.Setter public Builder classification(String classification) { this.classification = Objects.requireNonNull(classification); return this; } + @CustomType.Setter public Builder rowTag(String rowTag) { this.rowTag = Objects.requireNonNull(rowTag); return this; - } public ClassifierXmlClassifier build() { - return new ClassifierXmlClassifier(classification, rowTag); + } + public ClassifierXmlClassifier build() { + final var o = new ClassifierXmlClassifier(); + o.classification = classification; + o.rowTag = rowTag; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ConnectionPhysicalConnectionRequirements.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ConnectionPhysicalConnectionRequirements.java index c17b4a8f068..d503e40f3c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ConnectionPhysicalConnectionRequirements.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/ConnectionPhysicalConnectionRequirements.java @@ -16,28 +16,19 @@ public final class ConnectionPhysicalConnectionRequirements { * @return The availability zone of the connection. This field is redundant and implied by `subnet_id`, but is currently an api requirement. * */ - private final @Nullable String availabilityZone; + private @Nullable String availabilityZone; /** * @return The security group ID list used by the connection. * */ - private final @Nullable List securityGroupIdLists; + private @Nullable List securityGroupIdLists; /** * @return The subnet ID used by the connection. * */ - private final @Nullable String subnetId; - - @CustomType.Constructor - private ConnectionPhysicalConnectionRequirements( - @CustomType.Parameter("availabilityZone") @Nullable String availabilityZone, - @CustomType.Parameter("securityGroupIdLists") @Nullable List securityGroupIdLists, - @CustomType.Parameter("subnetId") @Nullable String subnetId) { - this.availabilityZone = availabilityZone; - this.securityGroupIdLists = securityGroupIdLists; - this.subnetId = subnetId; - } + private @Nullable String subnetId; + private ConnectionPhysicalConnectionRequirements() {} /** * @return The availability zone of the connection. This field is redundant and implied by `subnet_id`, but is currently an api requirement. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ConnectionPhysicalConnectionRequirements defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String availabilityZone; private @Nullable List securityGroupIdLists; private @Nullable String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectionPhysicalConnectionRequirements defaults) { Objects.requireNonNull(defaults); this.availabilityZone = defaults.availabilityZone; @@ -84,10 +71,12 @@ public Builder(ConnectionPhysicalConnectionRequirements defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder availabilityZone(@Nullable String availabilityZone) { this.availabilityZone = availabilityZone; return this; } + @CustomType.Setter public Builder securityGroupIdLists(@Nullable List securityGroupIdLists) { this.securityGroupIdLists = securityGroupIdLists; return this; @@ -95,11 +84,17 @@ public Builder securityGroupIdLists(@Nullable List securityGroupIdLists) public Builder securityGroupIdLists(String... securityGroupIdLists) { return securityGroupIdLists(List.of(securityGroupIdLists)); } + @CustomType.Setter public Builder subnetId(@Nullable String subnetId) { this.subnetId = subnetId; return this; - } public ConnectionPhysicalConnectionRequirements build() { - return new ConnectionPhysicalConnectionRequirements(availabilityZone, securityGroupIdLists, subnetId); + } + public ConnectionPhysicalConnectionRequirements build() { + final var o = new ConnectionPhysicalConnectionRequirements(); + o.availabilityZone = availabilityZone; + o.securityGroupIdLists = securityGroupIdLists; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerCatalogTarget.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerCatalogTarget.java index 8e77828f2fe..29f0dfd1f54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerCatalogTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerCatalogTarget.java @@ -14,21 +14,14 @@ public final class CrawlerCatalogTarget { * @return The name of the Glue database to be synchronized. * */ - private final String databaseName; + private String databaseName; /** * @return A list of catalog tables to be synchronized. * */ - private final List tables; - - @CustomType.Constructor - private CrawlerCatalogTarget( - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("tables") List tables) { - this.databaseName = databaseName; - this.tables = tables; - } + private List tables; + private CrawlerCatalogTarget() {} /** * @return The name of the Glue database to be synchronized. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(CrawlerCatalogTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String databaseName; private List tables; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CrawlerCatalogTarget defaults) { Objects.requireNonNull(defaults); this.databaseName = defaults.databaseName; this.tables = defaults.tables; } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder tables(List tables) { this.tables = Objects.requireNonNull(tables); return this; } public Builder tables(String... tables) { return tables(List.of(tables)); - } public CrawlerCatalogTarget build() { - return new CrawlerCatalogTarget(databaseName, tables); + } + public CrawlerCatalogTarget build() { + final var o = new CrawlerCatalogTarget(); + o.databaseName = databaseName; + o.tables = tables; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerDeltaTarget.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerDeltaTarget.java index 93af79a7f3c..933f7e24e48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerDeltaTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerDeltaTarget.java @@ -15,28 +15,19 @@ public final class CrawlerDeltaTarget { * @return The name of the connection to use to connect to the Delta table target. * */ - private final String connectionName; + private String connectionName; /** * @return A list of the Amazon S3 paths to the Delta tables. * */ - private final List deltaTables; + private List deltaTables; /** * @return Specifies whether to write the manifest files to the Delta table path. * */ - private final Boolean writeManifest; - - @CustomType.Constructor - private CrawlerDeltaTarget( - @CustomType.Parameter("connectionName") String connectionName, - @CustomType.Parameter("deltaTables") List deltaTables, - @CustomType.Parameter("writeManifest") Boolean writeManifest) { - this.connectionName = connectionName; - this.deltaTables = deltaTables; - this.writeManifest = writeManifest; - } + private Boolean writeManifest; + private CrawlerDeltaTarget() {} /** * @return The name of the connection to use to connect to the Delta table target. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(CrawlerDeltaTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String connectionName; private List deltaTables; private Boolean writeManifest; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CrawlerDeltaTarget defaults) { Objects.requireNonNull(defaults); this.connectionName = defaults.connectionName; @@ -83,10 +70,12 @@ public Builder(CrawlerDeltaTarget defaults) { this.writeManifest = defaults.writeManifest; } + @CustomType.Setter public Builder connectionName(String connectionName) { this.connectionName = Objects.requireNonNull(connectionName); return this; } + @CustomType.Setter public Builder deltaTables(List deltaTables) { this.deltaTables = Objects.requireNonNull(deltaTables); return this; @@ -94,11 +83,17 @@ public Builder deltaTables(List deltaTables) { public Builder deltaTables(String... deltaTables) { return deltaTables(List.of(deltaTables)); } + @CustomType.Setter public Builder writeManifest(Boolean writeManifest) { this.writeManifest = Objects.requireNonNull(writeManifest); return this; - } public CrawlerDeltaTarget build() { - return new CrawlerDeltaTarget(connectionName, deltaTables, writeManifest); + } + public CrawlerDeltaTarget build() { + final var o = new CrawlerDeltaTarget(); + o.connectionName = connectionName; + o.deltaTables = deltaTables; + o.writeManifest = writeManifest; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerDynamodbTarget.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerDynamodbTarget.java index 489d910cbe5..94914d674ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerDynamodbTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerDynamodbTarget.java @@ -17,28 +17,19 @@ public final class CrawlerDynamodbTarget { * @return The path of the Amazon DocumentDB or MongoDB target (database/collection). * */ - private final String path; + private String path; /** * @return Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table. Default value is `true`. * */ - private final @Nullable Boolean scanAll; + private @Nullable Boolean scanAll; /** * @return The percentage of the configured read capacity units to use by the AWS Glue crawler. The valid values are null or a value between 0.1 to 1.5. * */ - private final @Nullable Double scanRate; - - @CustomType.Constructor - private CrawlerDynamodbTarget( - @CustomType.Parameter("path") String path, - @CustomType.Parameter("scanAll") @Nullable Boolean scanAll, - @CustomType.Parameter("scanRate") @Nullable Double scanRate) { - this.path = path; - this.scanAll = scanAll; - this.scanRate = scanRate; - } + private @Nullable Double scanRate; + private CrawlerDynamodbTarget() {} /** * @return The path of the Amazon DocumentDB or MongoDB target (database/collection). * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(CrawlerDynamodbTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String path; private @Nullable Boolean scanAll; private @Nullable Double scanRate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CrawlerDynamodbTarget defaults) { Objects.requireNonNull(defaults); this.path = defaults.path; @@ -85,19 +72,27 @@ public Builder(CrawlerDynamodbTarget defaults) { this.scanRate = defaults.scanRate; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder scanAll(@Nullable Boolean scanAll) { this.scanAll = scanAll; return this; } + @CustomType.Setter public Builder scanRate(@Nullable Double scanRate) { this.scanRate = scanRate; return this; - } public CrawlerDynamodbTarget build() { - return new CrawlerDynamodbTarget(path, scanAll, scanRate); + } + public CrawlerDynamodbTarget build() { + final var o = new CrawlerDynamodbTarget(); + o.path = path; + o.scanAll = scanAll; + o.scanRate = scanRate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerJdbcTarget.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerJdbcTarget.java index 807a90d703a..828c3b6024e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerJdbcTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerJdbcTarget.java @@ -15,28 +15,19 @@ public final class CrawlerJdbcTarget { * @return The name of the connection to use to connect to the Delta table target. * */ - private final String connectionName; + private String connectionName; /** * @return A list of glob patterns used to exclude from the crawl. * */ - private final @Nullable List exclusions; + private @Nullable List exclusions; /** * @return The path of the Amazon DocumentDB or MongoDB target (database/collection). * */ - private final String path; - - @CustomType.Constructor - private CrawlerJdbcTarget( - @CustomType.Parameter("connectionName") String connectionName, - @CustomType.Parameter("exclusions") @Nullable List exclusions, - @CustomType.Parameter("path") String path) { - this.connectionName = connectionName; - this.exclusions = exclusions; - this.path = path; - } + private String path; + private CrawlerJdbcTarget() {} /** * @return The name of the connection to use to connect to the Delta table target. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(CrawlerJdbcTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String connectionName; private @Nullable List exclusions; private String path; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CrawlerJdbcTarget defaults) { Objects.requireNonNull(defaults); this.connectionName = defaults.connectionName; @@ -83,10 +70,12 @@ public Builder(CrawlerJdbcTarget defaults) { this.path = defaults.path; } + @CustomType.Setter public Builder connectionName(String connectionName) { this.connectionName = Objects.requireNonNull(connectionName); return this; } + @CustomType.Setter public Builder exclusions(@Nullable List exclusions) { this.exclusions = exclusions; return this; @@ -94,11 +83,17 @@ public Builder exclusions(@Nullable List exclusions) { public Builder exclusions(String... exclusions) { return exclusions(List.of(exclusions)); } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; - } public CrawlerJdbcTarget build() { - return new CrawlerJdbcTarget(connectionName, exclusions, path); + } + public CrawlerJdbcTarget build() { + final var o = new CrawlerJdbcTarget(); + o.connectionName = connectionName; + o.exclusions = exclusions; + o.path = path; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerLineageConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerLineageConfiguration.java index 97e1376a990..5bec8e1a776 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerLineageConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerLineageConfiguration.java @@ -15,13 +15,9 @@ public final class CrawlerLineageConfiguration { * @return Specifies whether data lineage is enabled for the crawler. Valid values are: `ENABLE` and `DISABLE`. Default value is `Disable`. * */ - private final @Nullable String crawlerLineageSettings; - - @CustomType.Constructor - private CrawlerLineageConfiguration(@CustomType.Parameter("crawlerLineageSettings") @Nullable String crawlerLineageSettings) { - this.crawlerLineageSettings = crawlerLineageSettings; - } + private @Nullable String crawlerLineageSettings; + private CrawlerLineageConfiguration() {} /** * @return Specifies whether data lineage is enabled for the crawler. Valid values are: `ENABLE` and `DISABLE`. Default value is `Disable`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(CrawlerLineageConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String crawlerLineageSettings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CrawlerLineageConfiguration defaults) { Objects.requireNonNull(defaults); this.crawlerLineageSettings = defaults.crawlerLineageSettings; } + @CustomType.Setter public Builder crawlerLineageSettings(@Nullable String crawlerLineageSettings) { this.crawlerLineageSettings = crawlerLineageSettings; return this; - } public CrawlerLineageConfiguration build() { - return new CrawlerLineageConfiguration(crawlerLineageSettings); + } + public CrawlerLineageConfiguration build() { + final var o = new CrawlerLineageConfiguration(); + o.crawlerLineageSettings = crawlerLineageSettings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerMongodbTarget.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerMongodbTarget.java index c2d10636eda..f1ea5258f28 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerMongodbTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerMongodbTarget.java @@ -16,28 +16,19 @@ public final class CrawlerMongodbTarget { * @return The name of the connection to use to connect to the Delta table target. * */ - private final String connectionName; + private String connectionName; /** * @return The path of the Amazon DocumentDB or MongoDB target (database/collection). * */ - private final String path; + private String path; /** * @return Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table. Default value is `true`. * */ - private final @Nullable Boolean scanAll; - - @CustomType.Constructor - private CrawlerMongodbTarget( - @CustomType.Parameter("connectionName") String connectionName, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("scanAll") @Nullable Boolean scanAll) { - this.connectionName = connectionName; - this.path = path; - this.scanAll = scanAll; - } + private @Nullable Boolean scanAll; + private CrawlerMongodbTarget() {} /** * @return The name of the connection to use to connect to the Delta table target. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CrawlerMongodbTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String connectionName; private String path; private @Nullable Boolean scanAll; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CrawlerMongodbTarget defaults) { Objects.requireNonNull(defaults); this.connectionName = defaults.connectionName; @@ -84,19 +71,27 @@ public Builder(CrawlerMongodbTarget defaults) { this.scanAll = defaults.scanAll; } + @CustomType.Setter public Builder connectionName(String connectionName) { this.connectionName = Objects.requireNonNull(connectionName); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder scanAll(@Nullable Boolean scanAll) { this.scanAll = scanAll; return this; - } public CrawlerMongodbTarget build() { - return new CrawlerMongodbTarget(connectionName, path, scanAll); + } + public CrawlerMongodbTarget build() { + final var o = new CrawlerMongodbTarget(); + o.connectionName = connectionName; + o.path = path; + o.scanAll = scanAll; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerRecrawlPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerRecrawlPolicy.java index eef694d6d90..39098f27dd0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerRecrawlPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerRecrawlPolicy.java @@ -15,13 +15,9 @@ public final class CrawlerRecrawlPolicy { * @return Specifies whether to crawl the entire dataset again, crawl only folders that were added since the last crawler run, or crawl what S3 notifies the crawler of via SQS. Valid Values are: `CRAWL_EVENT_MODE`, `CRAWL_EVERYTHING` and `CRAWL_NEW_FOLDERS_ONLY`. Default value is `CRAWL_EVERYTHING`. * */ - private final @Nullable String recrawlBehavior; - - @CustomType.Constructor - private CrawlerRecrawlPolicy(@CustomType.Parameter("recrawlBehavior") @Nullable String recrawlBehavior) { - this.recrawlBehavior = recrawlBehavior; - } + private @Nullable String recrawlBehavior; + private CrawlerRecrawlPolicy() {} /** * @return Specifies whether to crawl the entire dataset again, crawl only folders that were added since the last crawler run, or crawl what S3 notifies the crawler of via SQS. Valid Values are: `CRAWL_EVENT_MODE`, `CRAWL_EVERYTHING` and `CRAWL_NEW_FOLDERS_ONLY`. Default value is `CRAWL_EVERYTHING`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(CrawlerRecrawlPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String recrawlBehavior; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CrawlerRecrawlPolicy defaults) { Objects.requireNonNull(defaults); this.recrawlBehavior = defaults.recrawlBehavior; } + @CustomType.Setter public Builder recrawlBehavior(@Nullable String recrawlBehavior) { this.recrawlBehavior = recrawlBehavior; return this; - } public CrawlerRecrawlPolicy build() { - return new CrawlerRecrawlPolicy(recrawlBehavior); + } + public CrawlerRecrawlPolicy build() { + final var o = new CrawlerRecrawlPolicy(); + o.recrawlBehavior = recrawlBehavior; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerS3Target.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerS3Target.java index aebe33b547e..28900c99fb6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerS3Target.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerS3Target.java @@ -17,49 +17,34 @@ public final class CrawlerS3Target { * @return The name of the connection to use to connect to the Delta table target. * */ - private final @Nullable String connectionName; + private @Nullable String connectionName; /** * @return The ARN of the dead-letter SQS queue. * */ - private final @Nullable String dlqEventQueueArn; + private @Nullable String dlqEventQueueArn; /** * @return The ARN of the SQS queue to receive S3 notifications from. * */ - private final @Nullable String eventQueueArn; + private @Nullable String eventQueueArn; /** * @return A list of glob patterns used to exclude from the crawl. * */ - private final @Nullable List exclusions; + private @Nullable List exclusions; /** * @return The path of the Amazon DocumentDB or MongoDB target (database/collection). * */ - private final String path; + private String path; /** * @return Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249. * */ - private final @Nullable Integer sampleSize; - - @CustomType.Constructor - private CrawlerS3Target( - @CustomType.Parameter("connectionName") @Nullable String connectionName, - @CustomType.Parameter("dlqEventQueueArn") @Nullable String dlqEventQueueArn, - @CustomType.Parameter("eventQueueArn") @Nullable String eventQueueArn, - @CustomType.Parameter("exclusions") @Nullable List exclusions, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("sampleSize") @Nullable Integer sampleSize) { - this.connectionName = connectionName; - this.dlqEventQueueArn = dlqEventQueueArn; - this.eventQueueArn = eventQueueArn; - this.exclusions = exclusions; - this.path = path; - this.sampleSize = sampleSize; - } + private @Nullable Integer sampleSize; + private CrawlerS3Target() {} /** * @return The name of the connection to use to connect to the Delta table target. * @@ -110,7 +95,7 @@ public static Builder builder() { public static Builder builder(CrawlerS3Target defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String connectionName; private @Nullable String dlqEventQueueArn; @@ -118,11 +103,7 @@ public static final class Builder { private @Nullable List exclusions; private String path; private @Nullable Integer sampleSize; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CrawlerS3Target defaults) { Objects.requireNonNull(defaults); this.connectionName = defaults.connectionName; @@ -133,18 +114,22 @@ public Builder(CrawlerS3Target defaults) { this.sampleSize = defaults.sampleSize; } + @CustomType.Setter public Builder connectionName(@Nullable String connectionName) { this.connectionName = connectionName; return this; } + @CustomType.Setter public Builder dlqEventQueueArn(@Nullable String dlqEventQueueArn) { this.dlqEventQueueArn = dlqEventQueueArn; return this; } + @CustomType.Setter public Builder eventQueueArn(@Nullable String eventQueueArn) { this.eventQueueArn = eventQueueArn; return this; } + @CustomType.Setter public Builder exclusions(@Nullable List exclusions) { this.exclusions = exclusions; return this; @@ -152,15 +137,25 @@ public Builder exclusions(@Nullable List exclusions) { public Builder exclusions(String... exclusions) { return exclusions(List.of(exclusions)); } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder sampleSize(@Nullable Integer sampleSize) { this.sampleSize = sampleSize; return this; - } public CrawlerS3Target build() { - return new CrawlerS3Target(connectionName, dlqEventQueueArn, eventQueueArn, exclusions, path, sampleSize); + } + public CrawlerS3Target build() { + final var o = new CrawlerS3Target(); + o.connectionName = connectionName; + o.dlqEventQueueArn = dlqEventQueueArn; + o.eventQueueArn = eventQueueArn; + o.exclusions = exclusions; + o.path = path; + o.sampleSize = sampleSize; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerSchemaChangePolicy.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerSchemaChangePolicy.java index c412652d133..3b4811cf1b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerSchemaChangePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/CrawlerSchemaChangePolicy.java @@ -15,21 +15,14 @@ public final class CrawlerSchemaChangePolicy { * @return The deletion behavior when the crawler finds a deleted object. Valid values: `LOG`, `DELETE_FROM_DATABASE`, or `DEPRECATE_IN_DATABASE`. Defaults to `DEPRECATE_IN_DATABASE`. * */ - private final @Nullable String deleteBehavior; + private @Nullable String deleteBehavior; /** * @return The update behavior when the crawler finds a changed schema. Valid values: `LOG` or `UPDATE_IN_DATABASE`. Defaults to `UPDATE_IN_DATABASE`. * */ - private final @Nullable String updateBehavior; - - @CustomType.Constructor - private CrawlerSchemaChangePolicy( - @CustomType.Parameter("deleteBehavior") @Nullable String deleteBehavior, - @CustomType.Parameter("updateBehavior") @Nullable String updateBehavior) { - this.deleteBehavior = deleteBehavior; - this.updateBehavior = updateBehavior; - } + private @Nullable String updateBehavior; + private CrawlerSchemaChangePolicy() {} /** * @return The deletion behavior when the crawler finds a deleted object. Valid values: `LOG`, `DELETE_FROM_DATABASE`, or `DEPRECATE_IN_DATABASE`. Defaults to `DEPRECATE_IN_DATABASE`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(CrawlerSchemaChangePolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deleteBehavior; private @Nullable String updateBehavior; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CrawlerSchemaChangePolicy defaults) { Objects.requireNonNull(defaults); this.deleteBehavior = defaults.deleteBehavior; this.updateBehavior = defaults.updateBehavior; } + @CustomType.Setter public Builder deleteBehavior(@Nullable String deleteBehavior) { this.deleteBehavior = deleteBehavior; return this; } + @CustomType.Setter public Builder updateBehavior(@Nullable String updateBehavior) { this.updateBehavior = updateBehavior; return this; - } public CrawlerSchemaChangePolicy build() { - return new CrawlerSchemaChangePolicy(deleteBehavior, updateBehavior); + } + public CrawlerSchemaChangePolicy build() { + final var o = new CrawlerSchemaChangePolicy(); + o.deleteBehavior = deleteBehavior; + o.updateBehavior = updateBehavior; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/DataCatalogEncryptionSettingsDataCatalogEncryptionSettings.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/DataCatalogEncryptionSettingsDataCatalogEncryptionSettings.java index 8245789fe11..018ac089f4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/DataCatalogEncryptionSettingsDataCatalogEncryptionSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/DataCatalogEncryptionSettingsDataCatalogEncryptionSettings.java @@ -14,21 +14,14 @@ public final class DataCatalogEncryptionSettingsDataCatalogEncryptionSettings { * @return When connection password protection is enabled, the Data Catalog uses a customer-provided key to encrypt the password as part of CreateConnection or UpdateConnection and store it in the ENCRYPTED_PASSWORD field in the connection properties. You can enable catalog encryption or only password encryption. see Connection Password Encryption. * */ - private final DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption connectionPasswordEncryption; + private DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption connectionPasswordEncryption; /** * @return Specifies the encryption-at-rest configuration for the Data Catalog. see Encryption At Rest. * */ - private final DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest encryptionAtRest; - - @CustomType.Constructor - private DataCatalogEncryptionSettingsDataCatalogEncryptionSettings( - @CustomType.Parameter("connectionPasswordEncryption") DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption connectionPasswordEncryption, - @CustomType.Parameter("encryptionAtRest") DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest encryptionAtRest) { - this.connectionPasswordEncryption = connectionPasswordEncryption; - this.encryptionAtRest = encryptionAtRest; - } + private DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest encryptionAtRest; + private DataCatalogEncryptionSettingsDataCatalogEncryptionSettings() {} /** * @return When connection password protection is enabled, the Data Catalog uses a customer-provided key to encrypt the password as part of CreateConnection or UpdateConnection and store it in the ENCRYPTED_PASSWORD field in the connection properties. You can enable catalog encryption or only password encryption. see Connection Password Encryption. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(DataCatalogEncryptionSettingsDataCatalogEncryptionSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption connectionPasswordEncryption; private DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest encryptionAtRest; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataCatalogEncryptionSettingsDataCatalogEncryptionSettings defaults) { Objects.requireNonNull(defaults); this.connectionPasswordEncryption = defaults.connectionPasswordEncryption; this.encryptionAtRest = defaults.encryptionAtRest; } + @CustomType.Setter public Builder connectionPasswordEncryption(DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption connectionPasswordEncryption) { this.connectionPasswordEncryption = Objects.requireNonNull(connectionPasswordEncryption); return this; } + @CustomType.Setter public Builder encryptionAtRest(DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest encryptionAtRest) { this.encryptionAtRest = Objects.requireNonNull(encryptionAtRest); return this; - } public DataCatalogEncryptionSettingsDataCatalogEncryptionSettings build() { - return new DataCatalogEncryptionSettingsDataCatalogEncryptionSettings(connectionPasswordEncryption, encryptionAtRest); + } + public DataCatalogEncryptionSettingsDataCatalogEncryptionSettings build() { + final var o = new DataCatalogEncryptionSettingsDataCatalogEncryptionSettings(); + o.connectionPasswordEncryption = connectionPasswordEncryption; + o.encryptionAtRest = encryptionAtRest; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption.java index 0e51f523d4f..dbc38946976 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption.java @@ -16,21 +16,14 @@ public final class DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsCon * @return A KMS key ARN that is used to encrypt the connection password. If connection password protection is enabled, the caller of CreateConnection and UpdateConnection needs at least `kms:Encrypt` permission on the specified AWS KMS key, to encrypt passwords before storing them in the Data Catalog. * */ - private final @Nullable String awsKmsKeyId; + private @Nullable String awsKmsKeyId; /** * @return When set to `true`, passwords remain encrypted in the responses of GetConnection and GetConnections. This encryption takes effect independently of the catalog encryption. * */ - private final Boolean returnConnectionPasswordEncrypted; - - @CustomType.Constructor - private DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption( - @CustomType.Parameter("awsKmsKeyId") @Nullable String awsKmsKeyId, - @CustomType.Parameter("returnConnectionPasswordEncrypted") Boolean returnConnectionPasswordEncrypted) { - this.awsKmsKeyId = awsKmsKeyId; - this.returnConnectionPasswordEncrypted = returnConnectionPasswordEncrypted; - } + private Boolean returnConnectionPasswordEncrypted; + private DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption() {} /** * @return A KMS key ARN that is used to encrypt the connection password. If connection password protection is enabled, the caller of CreateConnection and UpdateConnection needs at least `kms:Encrypt` permission on the specified AWS KMS key, to encrypt passwords before storing them in the Data Catalog. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String awsKmsKeyId; private Boolean returnConnectionPasswordEncrypted; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption defaults) { Objects.requireNonNull(defaults); this.awsKmsKeyId = defaults.awsKmsKeyId; this.returnConnectionPasswordEncrypted = defaults.returnConnectionPasswordEncrypted; } + @CustomType.Setter public Builder awsKmsKeyId(@Nullable String awsKmsKeyId) { this.awsKmsKeyId = awsKmsKeyId; return this; } + @CustomType.Setter public Builder returnConnectionPasswordEncrypted(Boolean returnConnectionPasswordEncrypted) { this.returnConnectionPasswordEncrypted = Objects.requireNonNull(returnConnectionPasswordEncrypted); return this; - } public DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption build() { - return new DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption(awsKmsKeyId, returnConnectionPasswordEncrypted); + } + public DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption build() { + final var o = new DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsConnectionPasswordEncryption(); + o.awsKmsKeyId = awsKmsKeyId; + o.returnConnectionPasswordEncrypted = returnConnectionPasswordEncrypted; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest.java index 9637770b4cf..d83b3ef4197 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest.java @@ -15,21 +15,14 @@ public final class DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEnc * @return The encryption-at-rest mode for encrypting Data Catalog data. Valid values are `DISABLED` and `SSE-KMS`. * */ - private final String catalogEncryptionMode; + private String catalogEncryptionMode; /** * @return The ARN of the AWS KMS key to use for encryption at rest. * */ - private final @Nullable String sseAwsKmsKeyId; - - @CustomType.Constructor - private DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest( - @CustomType.Parameter("catalogEncryptionMode") String catalogEncryptionMode, - @CustomType.Parameter("sseAwsKmsKeyId") @Nullable String sseAwsKmsKeyId) { - this.catalogEncryptionMode = catalogEncryptionMode; - this.sseAwsKmsKeyId = sseAwsKmsKeyId; - } + private @Nullable String sseAwsKmsKeyId; + private DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest() {} /** * @return The encryption-at-rest mode for encrypting Data Catalog data. Valid values are `DISABLED` and `SSE-KMS`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String catalogEncryptionMode; private @Nullable String sseAwsKmsKeyId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest defaults) { Objects.requireNonNull(defaults); this.catalogEncryptionMode = defaults.catalogEncryptionMode; this.sseAwsKmsKeyId = defaults.sseAwsKmsKeyId; } + @CustomType.Setter public Builder catalogEncryptionMode(String catalogEncryptionMode) { this.catalogEncryptionMode = Objects.requireNonNull(catalogEncryptionMode); return this; } + @CustomType.Setter public Builder sseAwsKmsKeyId(@Nullable String sseAwsKmsKeyId) { this.sseAwsKmsKeyId = sseAwsKmsKeyId; return this; - } public DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest build() { - return new DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest(catalogEncryptionMode, sseAwsKmsKeyId); + } + public DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest build() { + final var o = new DataCatalogEncryptionSettingsDataCatalogEncryptionSettingsEncryptionAtRest(); + o.catalogEncryptionMode = catalogEncryptionMode; + o.sseAwsKmsKeyId = sseAwsKmsKeyId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetConnectionPhysicalConnectionRequirement.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetConnectionPhysicalConnectionRequirement.java index 69d4b95d2e3..06e2e53b55c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetConnectionPhysicalConnectionRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetConnectionPhysicalConnectionRequirement.java @@ -10,20 +10,11 @@ @CustomType public final class GetConnectionPhysicalConnectionRequirement { - private final String availabilityZone; - private final List securityGroupIdLists; - private final String subnetId; - - @CustomType.Constructor - private GetConnectionPhysicalConnectionRequirement( - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("securityGroupIdLists") List securityGroupIdLists, - @CustomType.Parameter("subnetId") String subnetId) { - this.availabilityZone = availabilityZone; - this.securityGroupIdLists = securityGroupIdLists; - this.subnetId = subnetId; - } + private String availabilityZone; + private List securityGroupIdLists; + private String subnetId; + private GetConnectionPhysicalConnectionRequirement() {} public String availabilityZone() { return this.availabilityZone; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(GetConnectionPhysicalConnectionRequirement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String availabilityZone; private List securityGroupIdLists; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConnectionPhysicalConnectionRequirement defaults) { Objects.requireNonNull(defaults); this.availabilityZone = defaults.availabilityZone; @@ -58,10 +45,12 @@ public Builder(GetConnectionPhysicalConnectionRequirement defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder securityGroupIdLists(List securityGroupIdLists) { this.securityGroupIdLists = Objects.requireNonNull(securityGroupIdLists); return this; @@ -69,11 +58,17 @@ public Builder securityGroupIdLists(List securityGroupIdLists) { public Builder securityGroupIdLists(String... securityGroupIdLists) { return securityGroupIdLists(List.of(securityGroupIdLists)); } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public GetConnectionPhysicalConnectionRequirement build() { - return new GetConnectionPhysicalConnectionRequirement(availabilityZone, securityGroupIdLists, subnetId); + } + public GetConnectionPhysicalConnectionRequirement build() { + final var o = new GetConnectionPhysicalConnectionRequirement(); + o.availabilityZone = availabilityZone; + o.securityGroupIdLists = securityGroupIdLists; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetConnectionResult.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetConnectionResult.java index 80329a10f4c..e4e99572c7e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetConnectionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetConnectionResult.java @@ -16,69 +16,46 @@ public final class GetConnectionResult { * @return The ARN of the Glue Connection. * */ - private final String arn; + private String arn; /** * @return The catalog ID of the Glue Connection. * */ - private final String catalogId; - private final Map connectionProperties; + private String catalogId; + private Map connectionProperties; /** * @return The type of Glue Connection. * */ - private final String connectionType; + private String connectionType; /** * @return Description of the connection. * */ - private final String description; - private final String id; + private String description; + private String id; /** * @return A list of criteria that can be used in selecting this connection. * */ - private final List matchCriterias; + private List matchCriterias; /** * @return The name of the Glue Connection. * */ - private final String name; + private String name; /** * @return A map of physical connection requirements, such as VPC and SecurityGroup. * */ - private final List physicalConnectionRequirements; + private List physicalConnectionRequirements; /** * @return The tags assigned to the resource * */ - private final Map tags; - - @CustomType.Constructor - private GetConnectionResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("catalogId") String catalogId, - @CustomType.Parameter("connectionProperties") Map connectionProperties, - @CustomType.Parameter("connectionType") String connectionType, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("matchCriterias") List matchCriterias, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("physicalConnectionRequirements") List physicalConnectionRequirements, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.catalogId = catalogId; - this.connectionProperties = connectionProperties; - this.connectionType = connectionType; - this.description = description; - this.id = id; - this.matchCriterias = matchCriterias; - this.name = name; - this.physicalConnectionRequirements = physicalConnectionRequirements; - this.tags = tags; - } + private Map tags; + private GetConnectionResult() {} /** * @return The ARN of the Glue Connection. * @@ -149,7 +126,7 @@ public static Builder builder() { public static Builder builder(GetConnectionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String catalogId; @@ -161,11 +138,7 @@ public static final class Builder { private String name; private List physicalConnectionRequirements; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConnectionResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -180,30 +153,37 @@ public Builder(GetConnectionResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder catalogId(String catalogId) { this.catalogId = Objects.requireNonNull(catalogId); return this; } + @CustomType.Setter public Builder connectionProperties(Map connectionProperties) { this.connectionProperties = Objects.requireNonNull(connectionProperties); return this; } + @CustomType.Setter public Builder connectionType(String connectionType) { this.connectionType = Objects.requireNonNull(connectionType); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder matchCriterias(List matchCriterias) { this.matchCriterias = Objects.requireNonNull(matchCriterias); return this; @@ -211,10 +191,12 @@ public Builder matchCriterias(List matchCriterias) { public Builder matchCriterias(String... matchCriterias) { return matchCriterias(List.of(matchCriterias)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder physicalConnectionRequirements(List physicalConnectionRequirements) { this.physicalConnectionRequirements = Objects.requireNonNull(physicalConnectionRequirements); return this; @@ -222,11 +204,24 @@ public Builder physicalConnectionRequirements(List tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetConnectionResult build() { - return new GetConnectionResult(arn, catalogId, connectionProperties, connectionType, description, id, matchCriterias, name, physicalConnectionRequirements, tags); + } + public GetConnectionResult build() { + final var o = new GetConnectionResult(); + o.arn = arn; + o.catalogId = catalogId; + o.connectionProperties = connectionProperties; + o.connectionType = connectionType; + o.description = description; + o.id = id; + o.matchCriterias = matchCriterias; + o.name = name; + o.physicalConnectionRequirements = physicalConnectionRequirements; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting.java index 4c18607f7c7..56b4305e363 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting.java @@ -15,21 +15,14 @@ public final class GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting * @return When connection password protection is enabled, the Data Catalog uses a customer-provided key to encrypt the password as part of CreateConnection or UpdateConnection and store it in the ENCRYPTED_PASSWORD field in the connection properties. You can enable catalog encryption or only password encryption. see Connection Password Encryption. * */ - private final List connectionPasswordEncryptions; + private List connectionPasswordEncryptions; /** * @return Specifies the encryption-at-rest configuration for the Data Catalog. see Encryption At Rest. * */ - private final List encryptionAtRests; - - @CustomType.Constructor - private GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting( - @CustomType.Parameter("connectionPasswordEncryptions") List connectionPasswordEncryptions, - @CustomType.Parameter("encryptionAtRests") List encryptionAtRests) { - this.connectionPasswordEncryptions = connectionPasswordEncryptions; - this.encryptionAtRests = encryptionAtRests; - } + private List encryptionAtRests; + private GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting() {} /** * @return When connection password protection is enabled, the Data Catalog uses a customer-provided key to encrypt the password as part of CreateConnection or UpdateConnection and store it in the ENCRYPTED_PASSWORD field in the connection properties. You can enable catalog encryption or only password encryption. see Connection Password Encryption. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List connectionPasswordEncryptions; private List encryptionAtRests; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting defaults) { Objects.requireNonNull(defaults); this.connectionPasswordEncryptions = defaults.connectionPasswordEncryptions; this.encryptionAtRests = defaults.encryptionAtRests; } + @CustomType.Setter public Builder connectionPasswordEncryptions(List connectionPasswordEncryptions) { this.connectionPasswordEncryptions = Objects.requireNonNull(connectionPasswordEncryptions); return this; @@ -74,14 +64,19 @@ public Builder connectionPasswordEncryptions(List encryptionAtRests) { this.encryptionAtRests = Objects.requireNonNull(encryptionAtRests); return this; } public Builder encryptionAtRests(GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest... encryptionAtRests) { return encryptionAtRests(List.of(encryptionAtRests)); - } public GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting build() { - return new GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting(connectionPasswordEncryptions, encryptionAtRests); + } + public GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting build() { + final var o = new GetDataCatalogEncryptionSettingsDataCatalogEncryptionSetting(); + o.connectionPasswordEncryptions = connectionPasswordEncryptions; + o.encryptionAtRests = encryptionAtRests; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingConnectionPasswordEncryption.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingConnectionPasswordEncryption.java index d4d340e4910..f07acc46190 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingConnectionPasswordEncryption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingConnectionPasswordEncryption.java @@ -14,21 +14,14 @@ public final class GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingC * @return A KMS key ARN that is used to encrypt the connection password. * */ - private final String awsKmsKeyId; + private String awsKmsKeyId; /** * @return When set to `true`, passwords remain encrypted in the responses of GetConnection and GetConnections. This encryption takes effect independently of the catalog encryption. * */ - private final Boolean returnConnectionPasswordEncrypted; - - @CustomType.Constructor - private GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingConnectionPasswordEncryption( - @CustomType.Parameter("awsKmsKeyId") String awsKmsKeyId, - @CustomType.Parameter("returnConnectionPasswordEncrypted") Boolean returnConnectionPasswordEncrypted) { - this.awsKmsKeyId = awsKmsKeyId; - this.returnConnectionPasswordEncrypted = returnConnectionPasswordEncrypted; - } + private Boolean returnConnectionPasswordEncrypted; + private GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingConnectionPasswordEncryption() {} /** * @return A KMS key ARN that is used to encrypt the connection password. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingConnectionPasswordEncryption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String awsKmsKeyId; private Boolean returnConnectionPasswordEncrypted; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingConnectionPasswordEncryption defaults) { Objects.requireNonNull(defaults); this.awsKmsKeyId = defaults.awsKmsKeyId; this.returnConnectionPasswordEncrypted = defaults.returnConnectionPasswordEncrypted; } + @CustomType.Setter public Builder awsKmsKeyId(String awsKmsKeyId) { this.awsKmsKeyId = Objects.requireNonNull(awsKmsKeyId); return this; } + @CustomType.Setter public Builder returnConnectionPasswordEncrypted(Boolean returnConnectionPasswordEncrypted) { this.returnConnectionPasswordEncrypted = Objects.requireNonNull(returnConnectionPasswordEncrypted); return this; - } public GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingConnectionPasswordEncryption build() { - return new GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingConnectionPasswordEncryption(awsKmsKeyId, returnConnectionPasswordEncrypted); + } + public GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingConnectionPasswordEncryption build() { + final var o = new GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingConnectionPasswordEncryption(); + o.awsKmsKeyId = awsKmsKeyId; + o.returnConnectionPasswordEncrypted = returnConnectionPasswordEncrypted; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest.java index 7403df97417..ae64caec935 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest.java @@ -13,21 +13,14 @@ public final class GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingE * @return The encryption-at-rest mode for encrypting Data Catalog data. * */ - private final String catalogEncryptionMode; + private String catalogEncryptionMode; /** * @return The ARN of the AWS KMS key to use for encryption at rest. * */ - private final String sseAwsKmsKeyId; - - @CustomType.Constructor - private GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest( - @CustomType.Parameter("catalogEncryptionMode") String catalogEncryptionMode, - @CustomType.Parameter("sseAwsKmsKeyId") String sseAwsKmsKeyId) { - this.catalogEncryptionMode = catalogEncryptionMode; - this.sseAwsKmsKeyId = sseAwsKmsKeyId; - } + private String sseAwsKmsKeyId; + private GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest() {} /** * @return The encryption-at-rest mode for encrypting Data Catalog data. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String catalogEncryptionMode; private String sseAwsKmsKeyId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest defaults) { Objects.requireNonNull(defaults); this.catalogEncryptionMode = defaults.catalogEncryptionMode; this.sseAwsKmsKeyId = defaults.sseAwsKmsKeyId; } + @CustomType.Setter public Builder catalogEncryptionMode(String catalogEncryptionMode) { this.catalogEncryptionMode = Objects.requireNonNull(catalogEncryptionMode); return this; } + @CustomType.Setter public Builder sseAwsKmsKeyId(String sseAwsKmsKeyId) { this.sseAwsKmsKeyId = Objects.requireNonNull(sseAwsKmsKeyId); return this; - } public GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest build() { - return new GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest(catalogEncryptionMode, sseAwsKmsKeyId); + } + public GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest build() { + final var o = new GetDataCatalogEncryptionSettingsDataCatalogEncryptionSettingEncryptionAtRest(); + o.catalogEncryptionMode = catalogEncryptionMode; + o.sseAwsKmsKeyId = sseAwsKmsKeyId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsResult.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsResult.java index 79cfebca70f..a956abd708b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetDataCatalogEncryptionSettingsResult.java @@ -11,28 +11,19 @@ @CustomType public final class GetDataCatalogEncryptionSettingsResult { - private final String catalogId; + private String catalogId; /** * @return The security configuration to set. see Data Catalog Encryption Settings. * */ - private final List dataCatalogEncryptionSettings; + private List dataCatalogEncryptionSettings; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetDataCatalogEncryptionSettingsResult( - @CustomType.Parameter("catalogId") String catalogId, - @CustomType.Parameter("dataCatalogEncryptionSettings") List dataCatalogEncryptionSettings, - @CustomType.Parameter("id") String id) { - this.catalogId = catalogId; - this.dataCatalogEncryptionSettings = dataCatalogEncryptionSettings; - this.id = id; - } + private String id; + private GetDataCatalogEncryptionSettingsResult() {} public String catalogId() { return this.catalogId; } @@ -58,16 +49,12 @@ public static Builder builder() { public static Builder builder(GetDataCatalogEncryptionSettingsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String catalogId; private List dataCatalogEncryptionSettings; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDataCatalogEncryptionSettingsResult defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -75,10 +62,12 @@ public Builder(GetDataCatalogEncryptionSettingsResult defaults) { this.id = defaults.id; } + @CustomType.Setter public Builder catalogId(String catalogId) { this.catalogId = Objects.requireNonNull(catalogId); return this; } + @CustomType.Setter public Builder dataCatalogEncryptionSettings(List dataCatalogEncryptionSettings) { this.dataCatalogEncryptionSettings = Objects.requireNonNull(dataCatalogEncryptionSettings); return this; @@ -86,11 +75,17 @@ public Builder dataCatalogEncryptionSettings(List args; + private List args; /** * @return A node identifier that is unique within the node's graph. * */ - private final String id; + private String id; /** * @return The line number of the node. * */ - private final @Nullable Integer lineNumber; + private @Nullable Integer lineNumber; /** * @return The type of node this is. * */ - private final String nodeType; - - @CustomType.Constructor - private GetScriptDagNode( - @CustomType.Parameter("args") List args, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lineNumber") @Nullable Integer lineNumber, - @CustomType.Parameter("nodeType") String nodeType) { - this.args = args; - this.id = id; - this.lineNumber = lineNumber; - this.nodeType = nodeType; - } + private String nodeType; + private GetScriptDagNode() {} /** * @return Nested configuration an argument or property of a node. Defined below. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(GetScriptDagNode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List args; private String id; private @Nullable Integer lineNumber; private String nodeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetScriptDagNode defaults) { Objects.requireNonNull(defaults); this.args = defaults.args; @@ -102,6 +87,7 @@ public Builder(GetScriptDagNode defaults) { this.nodeType = defaults.nodeType; } + @CustomType.Setter public Builder args(List args) { this.args = Objects.requireNonNull(args); return this; @@ -109,19 +95,28 @@ public Builder args(List args) { public Builder args(GetScriptDagNodeArg... args) { return args(List.of(args)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lineNumber(@Nullable Integer lineNumber) { this.lineNumber = lineNumber; return this; } + @CustomType.Setter public Builder nodeType(String nodeType) { this.nodeType = Objects.requireNonNull(nodeType); return this; - } public GetScriptDagNode build() { - return new GetScriptDagNode(args, id, lineNumber, nodeType); + } + public GetScriptDagNode build() { + final var o = new GetScriptDagNode(); + o.args = args; + o.id = id; + o.lineNumber = lineNumber; + o.nodeType = nodeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetScriptDagNodeArg.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetScriptDagNodeArg.java index e362adc9090..b5cdfe20989 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetScriptDagNodeArg.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetScriptDagNodeArg.java @@ -16,28 +16,19 @@ public final class GetScriptDagNodeArg { * @return The name of the argument or property. * */ - private final String name; + private String name; /** * @return Boolean if the value is used as a parameter. Defaults to `false`. * */ - private final @Nullable Boolean param; + private @Nullable Boolean param; /** * @return The value of the argument or property. * */ - private final String value; - - @CustomType.Constructor - private GetScriptDagNodeArg( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("param") @Nullable Boolean param, - @CustomType.Parameter("value") String value) { - this.name = name; - this.param = param; - this.value = value; - } + private String value; + private GetScriptDagNodeArg() {} /** * @return The name of the argument or property. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetScriptDagNodeArg defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private @Nullable Boolean param; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetScriptDagNodeArg defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -84,19 +71,27 @@ public Builder(GetScriptDagNodeArg defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder param(@Nullable Boolean param) { this.param = param; return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetScriptDagNodeArg build() { - return new GetScriptDagNodeArg(name, param, value); + } + public GetScriptDagNodeArg build() { + final var o = new GetScriptDagNodeArg(); + o.name = name; + o.param = param; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetScriptResult.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetScriptResult.java index 82e9b15ea04..a81498b6d40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetScriptResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/GetScriptResult.java @@ -14,41 +14,26 @@ @CustomType public final class GetScriptResult { - private final List dagEdges; - private final List dagNodes; + private List dagEdges; + private List dagNodes; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String language; + private String id; + private @Nullable String language; /** * @return The Python script generated from the DAG when the `language` argument is set to `PYTHON`. * */ - private final String pythonScript; + private String pythonScript; /** * @return The Scala code generated from the DAG when the `language` argument is set to `SCALA`. * */ - private final String scalaCode; - - @CustomType.Constructor - private GetScriptResult( - @CustomType.Parameter("dagEdges") List dagEdges, - @CustomType.Parameter("dagNodes") List dagNodes, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("language") @Nullable String language, - @CustomType.Parameter("pythonScript") String pythonScript, - @CustomType.Parameter("scalaCode") String scalaCode) { - this.dagEdges = dagEdges; - this.dagNodes = dagNodes; - this.id = id; - this.language = language; - this.pythonScript = pythonScript; - this.scalaCode = scalaCode; - } + private String scalaCode; + private GetScriptResult() {} public List dagEdges() { return this.dagEdges; } @@ -87,7 +72,7 @@ public static Builder builder() { public static Builder builder(GetScriptResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List dagEdges; private List dagNodes; @@ -95,11 +80,7 @@ public static final class Builder { private @Nullable String language; private String pythonScript; private String scalaCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetScriptResult defaults) { Objects.requireNonNull(defaults); this.dagEdges = defaults.dagEdges; @@ -110,6 +91,7 @@ public Builder(GetScriptResult defaults) { this.scalaCode = defaults.scalaCode; } + @CustomType.Setter public Builder dagEdges(List dagEdges) { this.dagEdges = Objects.requireNonNull(dagEdges); return this; @@ -117,6 +99,7 @@ public Builder dagEdges(List dagEdges) { public Builder dagEdges(GetScriptDagEdge... dagEdges) { return dagEdges(List.of(dagEdges)); } + @CustomType.Setter public Builder dagNodes(List dagNodes) { this.dagNodes = Objects.requireNonNull(dagNodes); return this; @@ -124,23 +107,35 @@ public Builder dagNodes(List dagNodes) { public Builder dagNodes(GetScriptDagNode... dagNodes) { return dagNodes(List.of(dagNodes)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder language(@Nullable String language) { this.language = language; return this; } + @CustomType.Setter public Builder pythonScript(String pythonScript) { this.pythonScript = Objects.requireNonNull(pythonScript); return this; } + @CustomType.Setter public Builder scalaCode(String scalaCode) { this.scalaCode = Objects.requireNonNull(scalaCode); return this; - } public GetScriptResult build() { - return new GetScriptResult(dagEdges, dagNodes, id, language, pythonScript, scalaCode); + } + public GetScriptResult build() { + final var o = new GetScriptResult(); + o.dagEdges = dagEdges; + o.dagNodes = dagNodes; + o.id = id; + o.language = language; + o.pythonScript = pythonScript; + o.scalaCode = scalaCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/JobCommand.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/JobCommand.java index a74fb7f46dd..09353ae72de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/JobCommand.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/JobCommand.java @@ -15,28 +15,19 @@ public final class JobCommand { * @return The name of the job command. Defaults to `glueetl`. Use `pythonshell` for Python Shell Job Type, or `gluestreaming` for Streaming Job Type. `max_capacity` needs to be set if `pythonshell` is chosen. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return The Python version being used to execute a Python shell job. Allowed values are 2 or 3. * */ - private final @Nullable String pythonVersion; + private @Nullable String pythonVersion; /** * @return Specifies the S3 path to a script that executes a job. * */ - private final String scriptLocation; - - @CustomType.Constructor - private JobCommand( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("pythonVersion") @Nullable String pythonVersion, - @CustomType.Parameter("scriptLocation") String scriptLocation) { - this.name = name; - this.pythonVersion = pythonVersion; - this.scriptLocation = scriptLocation; - } + private String scriptLocation; + private JobCommand() {} /** * @return The name of the job command. Defaults to `glueetl`. Use `pythonshell` for Python Shell Job Type, or `gluestreaming` for Streaming Job Type. `max_capacity` needs to be set if `pythonshell` is chosen. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(JobCommand defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String pythonVersion; private String scriptLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(JobCommand defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -83,19 +70,27 @@ public Builder(JobCommand defaults) { this.scriptLocation = defaults.scriptLocation; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder pythonVersion(@Nullable String pythonVersion) { this.pythonVersion = pythonVersion; return this; } + @CustomType.Setter public Builder scriptLocation(String scriptLocation) { this.scriptLocation = Objects.requireNonNull(scriptLocation); return this; - } public JobCommand build() { - return new JobCommand(name, pythonVersion, scriptLocation); + } + public JobCommand build() { + final var o = new JobCommand(); + o.name = name; + o.pythonVersion = pythonVersion; + o.scriptLocation = scriptLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/JobExecutionProperty.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/JobExecutionProperty.java index 383022938a7..0609e6bea6d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/JobExecutionProperty.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/JobExecutionProperty.java @@ -15,13 +15,9 @@ public final class JobExecutionProperty { * @return The maximum number of concurrent runs allowed for a job. The default is 1. * */ - private final @Nullable Integer maxConcurrentRuns; - - @CustomType.Constructor - private JobExecutionProperty(@CustomType.Parameter("maxConcurrentRuns") @Nullable Integer maxConcurrentRuns) { - this.maxConcurrentRuns = maxConcurrentRuns; - } + private @Nullable Integer maxConcurrentRuns; + private JobExecutionProperty() {} /** * @return The maximum number of concurrent runs allowed for a job. The default is 1. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(JobExecutionProperty defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer maxConcurrentRuns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(JobExecutionProperty defaults) { Objects.requireNonNull(defaults); this.maxConcurrentRuns = defaults.maxConcurrentRuns; } + @CustomType.Setter public Builder maxConcurrentRuns(@Nullable Integer maxConcurrentRuns) { this.maxConcurrentRuns = maxConcurrentRuns; return this; - } public JobExecutionProperty build() { - return new JobExecutionProperty(maxConcurrentRuns); + } + public JobExecutionProperty build() { + final var o = new JobExecutionProperty(); + o.maxConcurrentRuns = maxConcurrentRuns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/JobNotificationProperty.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/JobNotificationProperty.java index 585be976b5b..bac2917326f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/JobNotificationProperty.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/JobNotificationProperty.java @@ -15,13 +15,9 @@ public final class JobNotificationProperty { * @return After a job run starts, the number of minutes to wait before sending a job run delay notification. * */ - private final @Nullable Integer notifyDelayAfter; - - @CustomType.Constructor - private JobNotificationProperty(@CustomType.Parameter("notifyDelayAfter") @Nullable Integer notifyDelayAfter) { - this.notifyDelayAfter = notifyDelayAfter; - } + private @Nullable Integer notifyDelayAfter; + private JobNotificationProperty() {} /** * @return After a job run starts, the number of minutes to wait before sending a job run delay notification. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(JobNotificationProperty defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer notifyDelayAfter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(JobNotificationProperty defaults) { Objects.requireNonNull(defaults); this.notifyDelayAfter = defaults.notifyDelayAfter; } + @CustomType.Setter public Builder notifyDelayAfter(@Nullable Integer notifyDelayAfter) { this.notifyDelayAfter = notifyDelayAfter; return this; - } public JobNotificationProperty build() { - return new JobNotificationProperty(notifyDelayAfter); + } + public JobNotificationProperty build() { + final var o = new JobNotificationProperty(); + o.notifyDelayAfter = notifyDelayAfter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformInputRecordTable.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformInputRecordTable.java index df50eb55748..6b0ccf7b7c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformInputRecordTable.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformInputRecordTable.java @@ -15,35 +15,24 @@ public final class MLTransformInputRecordTable { * @return A unique identifier for the AWS Glue Data Catalog. * */ - private final @Nullable String catalogId; + private @Nullable String catalogId; /** * @return The name of the connection to the AWS Glue Data Catalog. * */ - private final @Nullable String connectionName; + private @Nullable String connectionName; /** * @return A database name in the AWS Glue Data Catalog. * */ - private final String databaseName; + private String databaseName; /** * @return A table name in the AWS Glue Data Catalog. * */ - private final String tableName; - - @CustomType.Constructor - private MLTransformInputRecordTable( - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("connectionName") @Nullable String connectionName, - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("tableName") String tableName) { - this.catalogId = catalogId; - this.connectionName = connectionName; - this.databaseName = databaseName; - this.tableName = tableName; - } + private String tableName; + private MLTransformInputRecordTable() {} /** * @return A unique identifier for the AWS Glue Data Catalog. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(MLTransformInputRecordTable defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalogId; private @Nullable String connectionName; private String databaseName; private String tableName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MLTransformInputRecordTable defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -99,23 +84,33 @@ public Builder(MLTransformInputRecordTable defaults) { this.tableName = defaults.tableName; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder connectionName(@Nullable String connectionName) { this.connectionName = connectionName; return this; } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder tableName(String tableName) { this.tableName = Objects.requireNonNull(tableName); return this; - } public MLTransformInputRecordTable build() { - return new MLTransformInputRecordTable(catalogId, connectionName, databaseName, tableName); + } + public MLTransformInputRecordTable build() { + final var o = new MLTransformInputRecordTable(); + o.catalogId = catalogId; + o.connectionName = connectionName; + o.databaseName = databaseName; + o.tableName = tableName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformParameters.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformParameters.java index e878251f318..96010b83501 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformParameters.java @@ -14,21 +14,14 @@ public final class MLTransformParameters { * @return The parameters for the find matches algorithm. see Find Matches Parameters. * */ - private final MLTransformParametersFindMatchesParameters findMatchesParameters; + private MLTransformParametersFindMatchesParameters findMatchesParameters; /** * @return The type of machine learning transform. For information about the types of machine learning transforms, see [Creating Machine Learning Transforms](http://docs.aws.amazon.com/glue/latest/dg/add-job-machine-learning-transform.html). * */ - private final String transformType; - - @CustomType.Constructor - private MLTransformParameters( - @CustomType.Parameter("findMatchesParameters") MLTransformParametersFindMatchesParameters findMatchesParameters, - @CustomType.Parameter("transformType") String transformType) { - this.findMatchesParameters = findMatchesParameters; - this.transformType = transformType; - } + private String transformType; + private MLTransformParameters() {} /** * @return The parameters for the find matches algorithm. see Find Matches Parameters. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(MLTransformParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private MLTransformParametersFindMatchesParameters findMatchesParameters; private String transformType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MLTransformParameters defaults) { Objects.requireNonNull(defaults); this.findMatchesParameters = defaults.findMatchesParameters; this.transformType = defaults.transformType; } + @CustomType.Setter public Builder findMatchesParameters(MLTransformParametersFindMatchesParameters findMatchesParameters) { this.findMatchesParameters = Objects.requireNonNull(findMatchesParameters); return this; } + @CustomType.Setter public Builder transformType(String transformType) { this.transformType = Objects.requireNonNull(transformType); return this; - } public MLTransformParameters build() { - return new MLTransformParameters(findMatchesParameters, transformType); + } + public MLTransformParameters build() { + final var o = new MLTransformParameters(); + o.findMatchesParameters = findMatchesParameters; + o.transformType = transformType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformParametersFindMatchesParameters.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformParametersFindMatchesParameters.java index d05daf0b2a6..73a9072f971 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformParametersFindMatchesParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformParametersFindMatchesParameters.java @@ -17,35 +17,24 @@ public final class MLTransformParametersFindMatchesParameters { * @return The value that is selected when tuning your transform for a balance between accuracy and cost. * */ - private final @Nullable Double accuracyCostTradeOff; + private @Nullable Double accuracyCostTradeOff; /** * @return The value to switch on or off to force the output to match the provided labels from users. * */ - private final @Nullable Boolean enforceProvidedLabels; + private @Nullable Boolean enforceProvidedLabels; /** * @return The value selected when tuning your transform for a balance between precision and recall. * */ - private final @Nullable Double precisionRecallTradeOff; + private @Nullable Double precisionRecallTradeOff; /** * @return The name of a column that uniquely identifies rows in the source table. * */ - private final @Nullable String primaryKeyColumnName; - - @CustomType.Constructor - private MLTransformParametersFindMatchesParameters( - @CustomType.Parameter("accuracyCostTradeOff") @Nullable Double accuracyCostTradeOff, - @CustomType.Parameter("enforceProvidedLabels") @Nullable Boolean enforceProvidedLabels, - @CustomType.Parameter("precisionRecallTradeOff") @Nullable Double precisionRecallTradeOff, - @CustomType.Parameter("primaryKeyColumnName") @Nullable String primaryKeyColumnName) { - this.accuracyCostTradeOff = accuracyCostTradeOff; - this.enforceProvidedLabels = enforceProvidedLabels; - this.precisionRecallTradeOff = precisionRecallTradeOff; - this.primaryKeyColumnName = primaryKeyColumnName; - } + private @Nullable String primaryKeyColumnName; + private MLTransformParametersFindMatchesParameters() {} /** * @return The value that is selected when tuning your transform for a balance between accuracy and cost. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(MLTransformParametersFindMatchesParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Double accuracyCostTradeOff; private @Nullable Boolean enforceProvidedLabels; private @Nullable Double precisionRecallTradeOff; private @Nullable String primaryKeyColumnName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MLTransformParametersFindMatchesParameters defaults) { Objects.requireNonNull(defaults); this.accuracyCostTradeOff = defaults.accuracyCostTradeOff; @@ -101,23 +86,33 @@ public Builder(MLTransformParametersFindMatchesParameters defaults) { this.primaryKeyColumnName = defaults.primaryKeyColumnName; } + @CustomType.Setter public Builder accuracyCostTradeOff(@Nullable Double accuracyCostTradeOff) { this.accuracyCostTradeOff = accuracyCostTradeOff; return this; } + @CustomType.Setter public Builder enforceProvidedLabels(@Nullable Boolean enforceProvidedLabels) { this.enforceProvidedLabels = enforceProvidedLabels; return this; } + @CustomType.Setter public Builder precisionRecallTradeOff(@Nullable Double precisionRecallTradeOff) { this.precisionRecallTradeOff = precisionRecallTradeOff; return this; } + @CustomType.Setter public Builder primaryKeyColumnName(@Nullable String primaryKeyColumnName) { this.primaryKeyColumnName = primaryKeyColumnName; return this; - } public MLTransformParametersFindMatchesParameters build() { - return new MLTransformParametersFindMatchesParameters(accuracyCostTradeOff, enforceProvidedLabels, precisionRecallTradeOff, primaryKeyColumnName); + } + public MLTransformParametersFindMatchesParameters build() { + final var o = new MLTransformParametersFindMatchesParameters(); + o.accuracyCostTradeOff = accuracyCostTradeOff; + o.enforceProvidedLabels = enforceProvidedLabels; + o.precisionRecallTradeOff = precisionRecallTradeOff; + o.primaryKeyColumnName = primaryKeyColumnName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformSchema.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformSchema.java index 98567cc9a57..2aae956690a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformSchema.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/MLTransformSchema.java @@ -15,21 +15,14 @@ public final class MLTransformSchema { * @return The type of data in the column. * */ - private final @Nullable String dataType; + private @Nullable String dataType; /** * @return The name you assign to this ML Transform. It must be unique in your account. * */ - private final @Nullable String name; - - @CustomType.Constructor - private MLTransformSchema( - @CustomType.Parameter("dataType") @Nullable String dataType, - @CustomType.Parameter("name") @Nullable String name) { - this.dataType = dataType; - this.name = name; - } + private @Nullable String name; + private MLTransformSchema() {} /** * @return The type of data in the column. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(MLTransformSchema defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dataType; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MLTransformSchema defaults) { Objects.requireNonNull(defaults); this.dataType = defaults.dataType; this.name = defaults.name; } + @CustomType.Setter public Builder dataType(@Nullable String dataType) { this.dataType = dataType; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public MLTransformSchema build() { - return new MLTransformSchema(dataType, name); + } + public MLTransformSchema build() { + final var o = new MLTransformSchema(); + o.dataType = dataType; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionIndexPartitionIndex.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionIndexPartitionIndex.java index 2cc335cd8cb..926c4ded288 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionIndexPartitionIndex.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionIndexPartitionIndex.java @@ -16,24 +16,15 @@ public final class PartitionIndexPartitionIndex { * @return Name of the partition index. * */ - private final @Nullable String indexName; - private final @Nullable String indexStatus; + private @Nullable String indexName; + private @Nullable String indexStatus; /** * @return Keys for the partition index. * */ - private final @Nullable List keys; - - @CustomType.Constructor - private PartitionIndexPartitionIndex( - @CustomType.Parameter("indexName") @Nullable String indexName, - @CustomType.Parameter("indexStatus") @Nullable String indexStatus, - @CustomType.Parameter("keys") @Nullable List keys) { - this.indexName = indexName; - this.indexStatus = indexStatus; - this.keys = keys; - } + private @Nullable List keys; + private PartitionIndexPartitionIndex() {} /** * @return Name of the partition index. * @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(PartitionIndexPartitionIndex defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String indexName; private @Nullable String indexStatus; private @Nullable List keys; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PartitionIndexPartitionIndex defaults) { Objects.requireNonNull(defaults); this.indexName = defaults.indexName; @@ -76,22 +63,30 @@ public Builder(PartitionIndexPartitionIndex defaults) { this.keys = defaults.keys; } + @CustomType.Setter public Builder indexName(@Nullable String indexName) { this.indexName = indexName; return this; } + @CustomType.Setter public Builder indexStatus(@Nullable String indexStatus) { this.indexStatus = indexStatus; return this; } + @CustomType.Setter public Builder keys(@Nullable List keys) { this.keys = keys; return this; } public Builder keys(String... keys) { return keys(List.of(keys)); - } public PartitionIndexPartitionIndex build() { - return new PartitionIndexPartitionIndex(indexName, indexStatus, keys); + } + public PartitionIndexPartitionIndex build() { + final var o = new PartitionIndexPartitionIndex(); + o.indexName = indexName; + o.indexStatus = indexStatus; + o.keys = keys; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptor.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptor.java index b35f2009b51..898f85fe274 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptor.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptor.java @@ -23,91 +23,64 @@ public final class PartitionStorageDescriptor { * @return A list of reducer grouping columns, clustering columns, and bucketing columns in the table. * */ - private final @Nullable List bucketColumns; + private @Nullable List bucketColumns; /** * @return A list of the Columns in the table. * */ - private final @Nullable List columns; + private @Nullable List columns; /** * @return True if the data in the table is compressed, or False if not. * */ - private final @Nullable Boolean compressed; + private @Nullable Boolean compressed; /** * @return The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format. * */ - private final @Nullable String inputFormat; + private @Nullable String inputFormat; /** * @return The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name. * */ - private final @Nullable String location; + private @Nullable String location; /** * @return Must be specified if the table contains any dimension columns. * */ - private final @Nullable Integer numberOfBuckets; + private @Nullable Integer numberOfBuckets; /** * @return The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format. * */ - private final @Nullable String outputFormat; + private @Nullable String outputFormat; /** * @return A map of initialization parameters for the SerDe, in key-value form. * */ - private final @Nullable Map parameters; + private @Nullable Map parameters; /** * @return Serialization/deserialization (SerDe) information. * */ - private final @Nullable PartitionStorageDescriptorSerDeInfo serDeInfo; + private @Nullable PartitionStorageDescriptorSerDeInfo serDeInfo; /** * @return Information about values that appear very frequently in a column (skewed values). * */ - private final @Nullable PartitionStorageDescriptorSkewedInfo skewedInfo; + private @Nullable PartitionStorageDescriptorSkewedInfo skewedInfo; /** * @return A list of Order objects specifying the sort order of each bucket in the table. * */ - private final @Nullable List sortColumns; + private @Nullable List sortColumns; /** * @return True if the table data is stored in subdirectories, or False if not. * */ - private final @Nullable Boolean storedAsSubDirectories; - - @CustomType.Constructor - private PartitionStorageDescriptor( - @CustomType.Parameter("bucketColumns") @Nullable List bucketColumns, - @CustomType.Parameter("columns") @Nullable List columns, - @CustomType.Parameter("compressed") @Nullable Boolean compressed, - @CustomType.Parameter("inputFormat") @Nullable String inputFormat, - @CustomType.Parameter("location") @Nullable String location, - @CustomType.Parameter("numberOfBuckets") @Nullable Integer numberOfBuckets, - @CustomType.Parameter("outputFormat") @Nullable String outputFormat, - @CustomType.Parameter("parameters") @Nullable Map parameters, - @CustomType.Parameter("serDeInfo") @Nullable PartitionStorageDescriptorSerDeInfo serDeInfo, - @CustomType.Parameter("skewedInfo") @Nullable PartitionStorageDescriptorSkewedInfo skewedInfo, - @CustomType.Parameter("sortColumns") @Nullable List sortColumns, - @CustomType.Parameter("storedAsSubDirectories") @Nullable Boolean storedAsSubDirectories) { - this.bucketColumns = bucketColumns; - this.columns = columns; - this.compressed = compressed; - this.inputFormat = inputFormat; - this.location = location; - this.numberOfBuckets = numberOfBuckets; - this.outputFormat = outputFormat; - this.parameters = parameters; - this.serDeInfo = serDeInfo; - this.skewedInfo = skewedInfo; - this.sortColumns = sortColumns; - this.storedAsSubDirectories = storedAsSubDirectories; - } + private @Nullable Boolean storedAsSubDirectories; + private PartitionStorageDescriptor() {} /** * @return A list of reducer grouping columns, clustering columns, and bucketing columns in the table. * @@ -200,7 +173,7 @@ public static Builder builder() { public static Builder builder(PartitionStorageDescriptor defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List bucketColumns; private @Nullable List columns; @@ -214,11 +187,7 @@ public static final class Builder { private @Nullable PartitionStorageDescriptorSkewedInfo skewedInfo; private @Nullable List sortColumns; private @Nullable Boolean storedAsSubDirectories; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PartitionStorageDescriptor defaults) { Objects.requireNonNull(defaults); this.bucketColumns = defaults.bucketColumns; @@ -235,6 +204,7 @@ public Builder(PartitionStorageDescriptor defaults) { this.storedAsSubDirectories = defaults.storedAsSubDirectories; } + @CustomType.Setter public Builder bucketColumns(@Nullable List bucketColumns) { this.bucketColumns = bucketColumns; return this; @@ -242,6 +212,7 @@ public Builder bucketColumns(@Nullable List bucketColumns) { public Builder bucketColumns(String... bucketColumns) { return bucketColumns(List.of(bucketColumns)); } + @CustomType.Setter public Builder columns(@Nullable List columns) { this.columns = columns; return this; @@ -249,38 +220,47 @@ public Builder columns(@Nullable List columns) public Builder columns(PartitionStorageDescriptorColumn... columns) { return columns(List.of(columns)); } + @CustomType.Setter public Builder compressed(@Nullable Boolean compressed) { this.compressed = compressed; return this; } + @CustomType.Setter public Builder inputFormat(@Nullable String inputFormat) { this.inputFormat = inputFormat; return this; } + @CustomType.Setter public Builder location(@Nullable String location) { this.location = location; return this; } + @CustomType.Setter public Builder numberOfBuckets(@Nullable Integer numberOfBuckets) { this.numberOfBuckets = numberOfBuckets; return this; } + @CustomType.Setter public Builder outputFormat(@Nullable String outputFormat) { this.outputFormat = outputFormat; return this; } + @CustomType.Setter public Builder parameters(@Nullable Map parameters) { this.parameters = parameters; return this; } + @CustomType.Setter public Builder serDeInfo(@Nullable PartitionStorageDescriptorSerDeInfo serDeInfo) { this.serDeInfo = serDeInfo; return this; } + @CustomType.Setter public Builder skewedInfo(@Nullable PartitionStorageDescriptorSkewedInfo skewedInfo) { this.skewedInfo = skewedInfo; return this; } + @CustomType.Setter public Builder sortColumns(@Nullable List sortColumns) { this.sortColumns = sortColumns; return this; @@ -288,11 +268,26 @@ public Builder sortColumns(@Nullable List public Builder sortColumns(PartitionStorageDescriptorSortColumn... sortColumns) { return sortColumns(List.of(sortColumns)); } + @CustomType.Setter public Builder storedAsSubDirectories(@Nullable Boolean storedAsSubDirectories) { this.storedAsSubDirectories = storedAsSubDirectories; return this; - } public PartitionStorageDescriptor build() { - return new PartitionStorageDescriptor(bucketColumns, columns, compressed, inputFormat, location, numberOfBuckets, outputFormat, parameters, serDeInfo, skewedInfo, sortColumns, storedAsSubDirectories); + } + public PartitionStorageDescriptor build() { + final var o = new PartitionStorageDescriptor(); + o.bucketColumns = bucketColumns; + o.columns = columns; + o.compressed = compressed; + o.inputFormat = inputFormat; + o.location = location; + o.numberOfBuckets = numberOfBuckets; + o.outputFormat = outputFormat; + o.parameters = parameters; + o.serDeInfo = serDeInfo; + o.skewedInfo = skewedInfo; + o.sortColumns = sortColumns; + o.storedAsSubDirectories = storedAsSubDirectories; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorColumn.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorColumn.java index 0f0e0c26abc..ae1a7f91226 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorColumn.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorColumn.java @@ -15,28 +15,19 @@ public final class PartitionStorageDescriptorColumn { * @return Free-form text comment. * */ - private final @Nullable String comment; + private @Nullable String comment; /** * @return Name of the SerDe. * */ - private final String name; + private String name; /** * @return The datatype of data in the Column. * */ - private final @Nullable String type; - - @CustomType.Constructor - private PartitionStorageDescriptorColumn( - @CustomType.Parameter("comment") @Nullable String comment, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("type") @Nullable String type) { - this.comment = comment; - this.name = name; - this.type = type; - } + private @Nullable String type; + private PartitionStorageDescriptorColumn() {} /** * @return Free-form text comment. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(PartitionStorageDescriptorColumn defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String comment; private String name; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PartitionStorageDescriptorColumn defaults) { Objects.requireNonNull(defaults); this.comment = defaults.comment; @@ -83,19 +70,27 @@ public Builder(PartitionStorageDescriptorColumn defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder comment(@Nullable String comment) { this.comment = comment; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public PartitionStorageDescriptorColumn build() { - return new PartitionStorageDescriptorColumn(comment, name, type); + } + public PartitionStorageDescriptorColumn build() { + final var o = new PartitionStorageDescriptorColumn(); + o.comment = comment; + o.name = name; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorSerDeInfo.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorSerDeInfo.java index b38a86ce5c8..da46f6ed38d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorSerDeInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorSerDeInfo.java @@ -16,28 +16,19 @@ public final class PartitionStorageDescriptorSerDeInfo { * @return Name of the SerDe. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return A map of initialization parameters for the SerDe, in key-value form. * */ - private final @Nullable Map parameters; + private @Nullable Map parameters; /** * @return Usually the class that implements the SerDe. An example is: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe. * */ - private final @Nullable String serializationLibrary; - - @CustomType.Constructor - private PartitionStorageDescriptorSerDeInfo( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("parameters") @Nullable Map parameters, - @CustomType.Parameter("serializationLibrary") @Nullable String serializationLibrary) { - this.name = name; - this.parameters = parameters; - this.serializationLibrary = serializationLibrary; - } + private @Nullable String serializationLibrary; + private PartitionStorageDescriptorSerDeInfo() {} /** * @return Name of the SerDe. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PartitionStorageDescriptorSerDeInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable Map parameters; private @Nullable String serializationLibrary; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PartitionStorageDescriptorSerDeInfo defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -84,19 +71,27 @@ public Builder(PartitionStorageDescriptorSerDeInfo defaults) { this.serializationLibrary = defaults.serializationLibrary; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder parameters(@Nullable Map parameters) { this.parameters = parameters; return this; } + @CustomType.Setter public Builder serializationLibrary(@Nullable String serializationLibrary) { this.serializationLibrary = serializationLibrary; return this; - } public PartitionStorageDescriptorSerDeInfo build() { - return new PartitionStorageDescriptorSerDeInfo(name, parameters, serializationLibrary); + } + public PartitionStorageDescriptorSerDeInfo build() { + final var o = new PartitionStorageDescriptorSerDeInfo(); + o.name = name; + o.parameters = parameters; + o.serializationLibrary = serializationLibrary; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorSkewedInfo.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorSkewedInfo.java index 9c22bfbf0e9..cf21a74c399 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorSkewedInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorSkewedInfo.java @@ -16,28 +16,19 @@ public final class PartitionStorageDescriptorSkewedInfo { * @return A list of names of columns that contain skewed values. * */ - private final @Nullable List skewedColumnNames; + private @Nullable List skewedColumnNames; /** * @return A list of values that appear so frequently as to be considered skewed. * */ - private final @Nullable Map skewedColumnValueLocationMaps; + private @Nullable Map skewedColumnValueLocationMaps; /** * @return A map of skewed values to the columns that contain them. * */ - private final @Nullable List skewedColumnValues; - - @CustomType.Constructor - private PartitionStorageDescriptorSkewedInfo( - @CustomType.Parameter("skewedColumnNames") @Nullable List skewedColumnNames, - @CustomType.Parameter("skewedColumnValueLocationMaps") @Nullable Map skewedColumnValueLocationMaps, - @CustomType.Parameter("skewedColumnValues") @Nullable List skewedColumnValues) { - this.skewedColumnNames = skewedColumnNames; - this.skewedColumnValueLocationMaps = skewedColumnValueLocationMaps; - this.skewedColumnValues = skewedColumnValues; - } + private @Nullable List skewedColumnValues; + private PartitionStorageDescriptorSkewedInfo() {} /** * @return A list of names of columns that contain skewed values. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PartitionStorageDescriptorSkewedInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List skewedColumnNames; private @Nullable Map skewedColumnValueLocationMaps; private @Nullable List skewedColumnValues; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PartitionStorageDescriptorSkewedInfo defaults) { Objects.requireNonNull(defaults); this.skewedColumnNames = defaults.skewedColumnNames; @@ -84,6 +71,7 @@ public Builder(PartitionStorageDescriptorSkewedInfo defaults) { this.skewedColumnValues = defaults.skewedColumnValues; } + @CustomType.Setter public Builder skewedColumnNames(@Nullable List skewedColumnNames) { this.skewedColumnNames = skewedColumnNames; return this; @@ -91,18 +79,25 @@ public Builder skewedColumnNames(@Nullable List skewedColumnNames) { public Builder skewedColumnNames(String... skewedColumnNames) { return skewedColumnNames(List.of(skewedColumnNames)); } + @CustomType.Setter public Builder skewedColumnValueLocationMaps(@Nullable Map skewedColumnValueLocationMaps) { this.skewedColumnValueLocationMaps = skewedColumnValueLocationMaps; return this; } + @CustomType.Setter public Builder skewedColumnValues(@Nullable List skewedColumnValues) { this.skewedColumnValues = skewedColumnValues; return this; } public Builder skewedColumnValues(String... skewedColumnValues) { return skewedColumnValues(List.of(skewedColumnValues)); - } public PartitionStorageDescriptorSkewedInfo build() { - return new PartitionStorageDescriptorSkewedInfo(skewedColumnNames, skewedColumnValueLocationMaps, skewedColumnValues); + } + public PartitionStorageDescriptorSkewedInfo build() { + final var o = new PartitionStorageDescriptorSkewedInfo(); + o.skewedColumnNames = skewedColumnNames; + o.skewedColumnValueLocationMaps = skewedColumnValueLocationMaps; + o.skewedColumnValues = skewedColumnValues; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorSortColumn.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorSortColumn.java index 827bd709755..7332412ec40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorSortColumn.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/PartitionStorageDescriptorSortColumn.java @@ -14,21 +14,14 @@ public final class PartitionStorageDescriptorSortColumn { * @return The name of the column. * */ - private final String column; + private String column; /** * @return Indicates that the column is sorted in ascending order (== 1), or in descending order (==0). * */ - private final Integer sortOrder; - - @CustomType.Constructor - private PartitionStorageDescriptorSortColumn( - @CustomType.Parameter("column") String column, - @CustomType.Parameter("sortOrder") Integer sortOrder) { - this.column = column; - this.sortOrder = sortOrder; - } + private Integer sortOrder; + private PartitionStorageDescriptorSortColumn() {} /** * @return The name of the column. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(PartitionStorageDescriptorSortColumn defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String column; private Integer sortOrder; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PartitionStorageDescriptorSortColumn defaults) { Objects.requireNonNull(defaults); this.column = defaults.column; this.sortOrder = defaults.sortOrder; } + @CustomType.Setter public Builder column(String column) { this.column = Objects.requireNonNull(column); return this; } + @CustomType.Setter public Builder sortOrder(Integer sortOrder) { this.sortOrder = Objects.requireNonNull(sortOrder); return this; - } public PartitionStorageDescriptorSortColumn build() { - return new PartitionStorageDescriptorSortColumn(column, sortOrder); + } + public PartitionStorageDescriptorSortColumn build() { + final var o = new PartitionStorageDescriptorSortColumn(); + o.column = column; + o.sortOrder = sortOrder; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfiguration.java index 312479265bb..4c1e1782834 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfiguration.java @@ -11,24 +11,15 @@ @CustomType public final class SecurityConfigurationEncryptionConfiguration { - private final SecurityConfigurationEncryptionConfigurationCloudwatchEncryption cloudwatchEncryption; - private final SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption jobBookmarksEncryption; + private SecurityConfigurationEncryptionConfigurationCloudwatchEncryption cloudwatchEncryption; + private SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption jobBookmarksEncryption; /** * @return A ` s3_encryption ` block as described below, which contains encryption configuration for S3 data. * */ - private final SecurityConfigurationEncryptionConfigurationS3Encryption s3Encryption; - - @CustomType.Constructor - private SecurityConfigurationEncryptionConfiguration( - @CustomType.Parameter("cloudwatchEncryption") SecurityConfigurationEncryptionConfigurationCloudwatchEncryption cloudwatchEncryption, - @CustomType.Parameter("jobBookmarksEncryption") SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption jobBookmarksEncryption, - @CustomType.Parameter("s3Encryption") SecurityConfigurationEncryptionConfigurationS3Encryption s3Encryption) { - this.cloudwatchEncryption = cloudwatchEncryption; - this.jobBookmarksEncryption = jobBookmarksEncryption; - this.s3Encryption = s3Encryption; - } + private SecurityConfigurationEncryptionConfigurationS3Encryption s3Encryption; + private SecurityConfigurationEncryptionConfiguration() {} public SecurityConfigurationEncryptionConfigurationCloudwatchEncryption cloudwatchEncryption() { return this.cloudwatchEncryption; } @@ -50,16 +41,12 @@ public static Builder builder() { public static Builder builder(SecurityConfigurationEncryptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private SecurityConfigurationEncryptionConfigurationCloudwatchEncryption cloudwatchEncryption; private SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption jobBookmarksEncryption; private SecurityConfigurationEncryptionConfigurationS3Encryption s3Encryption; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SecurityConfigurationEncryptionConfiguration defaults) { Objects.requireNonNull(defaults); this.cloudwatchEncryption = defaults.cloudwatchEncryption; @@ -67,19 +54,27 @@ public Builder(SecurityConfigurationEncryptionConfiguration defaults) { this.s3Encryption = defaults.s3Encryption; } + @CustomType.Setter public Builder cloudwatchEncryption(SecurityConfigurationEncryptionConfigurationCloudwatchEncryption cloudwatchEncryption) { this.cloudwatchEncryption = Objects.requireNonNull(cloudwatchEncryption); return this; } + @CustomType.Setter public Builder jobBookmarksEncryption(SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption jobBookmarksEncryption) { this.jobBookmarksEncryption = Objects.requireNonNull(jobBookmarksEncryption); return this; } + @CustomType.Setter public Builder s3Encryption(SecurityConfigurationEncryptionConfigurationS3Encryption s3Encryption) { this.s3Encryption = Objects.requireNonNull(s3Encryption); return this; - } public SecurityConfigurationEncryptionConfiguration build() { - return new SecurityConfigurationEncryptionConfiguration(cloudwatchEncryption, jobBookmarksEncryption, s3Encryption); + } + public SecurityConfigurationEncryptionConfiguration build() { + final var o = new SecurityConfigurationEncryptionConfiguration(); + o.cloudwatchEncryption = cloudwatchEncryption; + o.jobBookmarksEncryption = jobBookmarksEncryption; + o.s3Encryption = s3Encryption; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfigurationCloudwatchEncryption.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfigurationCloudwatchEncryption.java index ae4bea8e5a6..90c7e458b2e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfigurationCloudwatchEncryption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfigurationCloudwatchEncryption.java @@ -15,21 +15,14 @@ public final class SecurityConfigurationEncryptionConfigurationCloudwatchEncrypt * @return Encryption mode to use for CloudWatch data. Valid values: `DISABLED`, `SSE-KMS`. Default value: `DISABLED`. * */ - private final @Nullable String cloudwatchEncryptionMode; + private @Nullable String cloudwatchEncryptionMode; /** * @return Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. * */ - private final @Nullable String kmsKeyArn; - - @CustomType.Constructor - private SecurityConfigurationEncryptionConfigurationCloudwatchEncryption( - @CustomType.Parameter("cloudwatchEncryptionMode") @Nullable String cloudwatchEncryptionMode, - @CustomType.Parameter("kmsKeyArn") @Nullable String kmsKeyArn) { - this.cloudwatchEncryptionMode = cloudwatchEncryptionMode; - this.kmsKeyArn = kmsKeyArn; - } + private @Nullable String kmsKeyArn; + private SecurityConfigurationEncryptionConfigurationCloudwatchEncryption() {} /** * @return Encryption mode to use for CloudWatch data. Valid values: `DISABLED`, `SSE-KMS`. Default value: `DISABLED`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SecurityConfigurationEncryptionConfigurationCloudwatchEncryption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cloudwatchEncryptionMode; private @Nullable String kmsKeyArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SecurityConfigurationEncryptionConfigurationCloudwatchEncryption defaults) { Objects.requireNonNull(defaults); this.cloudwatchEncryptionMode = defaults.cloudwatchEncryptionMode; this.kmsKeyArn = defaults.kmsKeyArn; } + @CustomType.Setter public Builder cloudwatchEncryptionMode(@Nullable String cloudwatchEncryptionMode) { this.cloudwatchEncryptionMode = cloudwatchEncryptionMode; return this; } + @CustomType.Setter public Builder kmsKeyArn(@Nullable String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; return this; - } public SecurityConfigurationEncryptionConfigurationCloudwatchEncryption build() { - return new SecurityConfigurationEncryptionConfigurationCloudwatchEncryption(cloudwatchEncryptionMode, kmsKeyArn); + } + public SecurityConfigurationEncryptionConfigurationCloudwatchEncryption build() { + final var o = new SecurityConfigurationEncryptionConfigurationCloudwatchEncryption(); + o.cloudwatchEncryptionMode = cloudwatchEncryptionMode; + o.kmsKeyArn = kmsKeyArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption.java index 0c177c6001e..41fdcfab31e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption.java @@ -15,21 +15,14 @@ public final class SecurityConfigurationEncryptionConfigurationJobBookmarksEncry * @return Encryption mode to use for job bookmarks data. Valid values: `CSE-KMS`, `DISABLED`. Default value: `DISABLED`. * */ - private final @Nullable String jobBookmarksEncryptionMode; + private @Nullable String jobBookmarksEncryptionMode; /** * @return Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. * */ - private final @Nullable String kmsKeyArn; - - @CustomType.Constructor - private SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption( - @CustomType.Parameter("jobBookmarksEncryptionMode") @Nullable String jobBookmarksEncryptionMode, - @CustomType.Parameter("kmsKeyArn") @Nullable String kmsKeyArn) { - this.jobBookmarksEncryptionMode = jobBookmarksEncryptionMode; - this.kmsKeyArn = kmsKeyArn; - } + private @Nullable String kmsKeyArn; + private SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption() {} /** * @return Encryption mode to use for job bookmarks data. Valid values: `CSE-KMS`, `DISABLED`. Default value: `DISABLED`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String jobBookmarksEncryptionMode; private @Nullable String kmsKeyArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption defaults) { Objects.requireNonNull(defaults); this.jobBookmarksEncryptionMode = defaults.jobBookmarksEncryptionMode; this.kmsKeyArn = defaults.kmsKeyArn; } + @CustomType.Setter public Builder jobBookmarksEncryptionMode(@Nullable String jobBookmarksEncryptionMode) { this.jobBookmarksEncryptionMode = jobBookmarksEncryptionMode; return this; } + @CustomType.Setter public Builder kmsKeyArn(@Nullable String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; return this; - } public SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption build() { - return new SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption(jobBookmarksEncryptionMode, kmsKeyArn); + } + public SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption build() { + final var o = new SecurityConfigurationEncryptionConfigurationJobBookmarksEncryption(); + o.jobBookmarksEncryptionMode = jobBookmarksEncryptionMode; + o.kmsKeyArn = kmsKeyArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfigurationS3Encryption.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfigurationS3Encryption.java index f8b1d85b018..1779f09e113 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfigurationS3Encryption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/SecurityConfigurationEncryptionConfigurationS3Encryption.java @@ -15,21 +15,14 @@ public final class SecurityConfigurationEncryptionConfigurationS3Encryption { * @return Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. * */ - private final @Nullable String kmsKeyArn; + private @Nullable String kmsKeyArn; /** * @return Encryption mode to use for S3 data. Valid values: `DISABLED`, `SSE-KMS`, `SSE-S3`. Default value: `DISABLED`. * */ - private final @Nullable String s3EncryptionMode; - - @CustomType.Constructor - private SecurityConfigurationEncryptionConfigurationS3Encryption( - @CustomType.Parameter("kmsKeyArn") @Nullable String kmsKeyArn, - @CustomType.Parameter("s3EncryptionMode") @Nullable String s3EncryptionMode) { - this.kmsKeyArn = kmsKeyArn; - this.s3EncryptionMode = s3EncryptionMode; - } + private @Nullable String s3EncryptionMode; + private SecurityConfigurationEncryptionConfigurationS3Encryption() {} /** * @return Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SecurityConfigurationEncryptionConfigurationS3Encryption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsKeyArn; private @Nullable String s3EncryptionMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SecurityConfigurationEncryptionConfigurationS3Encryption defaults) { Objects.requireNonNull(defaults); this.kmsKeyArn = defaults.kmsKeyArn; this.s3EncryptionMode = defaults.s3EncryptionMode; } + @CustomType.Setter public Builder kmsKeyArn(@Nullable String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; return this; } + @CustomType.Setter public Builder s3EncryptionMode(@Nullable String s3EncryptionMode) { this.s3EncryptionMode = s3EncryptionMode; return this; - } public SecurityConfigurationEncryptionConfigurationS3Encryption build() { - return new SecurityConfigurationEncryptionConfigurationS3Encryption(kmsKeyArn, s3EncryptionMode); + } + public SecurityConfigurationEncryptionConfigurationS3Encryption build() { + final var o = new SecurityConfigurationEncryptionConfigurationS3Encryption(); + o.kmsKeyArn = kmsKeyArn; + o.s3EncryptionMode = s3EncryptionMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerAction.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerAction.java index 21c5cc98205..a3711f85bea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerAction.java @@ -18,49 +18,34 @@ public final class TriggerAction { * @return Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes. * */ - private final @Nullable Map arguments; + private @Nullable Map arguments; /** * @return The name of the crawler to watch. If this is specified, `crawl_state` must also be specified. Conflicts with `job_name`. * */ - private final @Nullable String crawlerName; + private @Nullable String crawlerName; /** * @return The name of the job to watch. If this is specified, `state` must also be specified. Conflicts with `crawler_name`. * */ - private final @Nullable String jobName; + private @Nullable String jobName; /** * @return Specifies configuration properties of a job run notification. See Notification Property details below. * */ - private final @Nullable TriggerActionNotificationProperty notificationProperty; + private @Nullable TriggerActionNotificationProperty notificationProperty; /** * @return The name of the Security Configuration structure to be used with this action. * */ - private final @Nullable String securityConfiguration; + private @Nullable String securityConfiguration; /** * @return The job run timeout in minutes. It overrides the timeout value of the job. * */ - private final @Nullable Integer timeout; - - @CustomType.Constructor - private TriggerAction( - @CustomType.Parameter("arguments") @Nullable Map arguments, - @CustomType.Parameter("crawlerName") @Nullable String crawlerName, - @CustomType.Parameter("jobName") @Nullable String jobName, - @CustomType.Parameter("notificationProperty") @Nullable TriggerActionNotificationProperty notificationProperty, - @CustomType.Parameter("securityConfiguration") @Nullable String securityConfiguration, - @CustomType.Parameter("timeout") @Nullable Integer timeout) { - this.arguments = arguments; - this.crawlerName = crawlerName; - this.jobName = jobName; - this.notificationProperty = notificationProperty; - this.securityConfiguration = securityConfiguration; - this.timeout = timeout; - } + private @Nullable Integer timeout; + private TriggerAction() {} /** * @return Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes. * @@ -111,7 +96,7 @@ public static Builder builder() { public static Builder builder(TriggerAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map arguments; private @Nullable String crawlerName; @@ -119,11 +104,7 @@ public static final class Builder { private @Nullable TriggerActionNotificationProperty notificationProperty; private @Nullable String securityConfiguration; private @Nullable Integer timeout; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TriggerAction defaults) { Objects.requireNonNull(defaults); this.arguments = defaults.arguments; @@ -134,31 +115,45 @@ public Builder(TriggerAction defaults) { this.timeout = defaults.timeout; } + @CustomType.Setter public Builder arguments(@Nullable Map arguments) { this.arguments = arguments; return this; } + @CustomType.Setter public Builder crawlerName(@Nullable String crawlerName) { this.crawlerName = crawlerName; return this; } + @CustomType.Setter public Builder jobName(@Nullable String jobName) { this.jobName = jobName; return this; } + @CustomType.Setter public Builder notificationProperty(@Nullable TriggerActionNotificationProperty notificationProperty) { this.notificationProperty = notificationProperty; return this; } + @CustomType.Setter public Builder securityConfiguration(@Nullable String securityConfiguration) { this.securityConfiguration = securityConfiguration; return this; } + @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { this.timeout = timeout; return this; - } public TriggerAction build() { - return new TriggerAction(arguments, crawlerName, jobName, notificationProperty, securityConfiguration, timeout); + } + public TriggerAction build() { + final var o = new TriggerAction(); + o.arguments = arguments; + o.crawlerName = crawlerName; + o.jobName = jobName; + o.notificationProperty = notificationProperty; + o.securityConfiguration = securityConfiguration; + o.timeout = timeout; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerActionNotificationProperty.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerActionNotificationProperty.java index f1a4b8ccdca..1733be8cefe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerActionNotificationProperty.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerActionNotificationProperty.java @@ -15,13 +15,9 @@ public final class TriggerActionNotificationProperty { * @return After a job run starts, the number of minutes to wait before sending a job run delay notification. * */ - private final @Nullable Integer notifyDelayAfter; - - @CustomType.Constructor - private TriggerActionNotificationProperty(@CustomType.Parameter("notifyDelayAfter") @Nullable Integer notifyDelayAfter) { - this.notifyDelayAfter = notifyDelayAfter; - } + private @Nullable Integer notifyDelayAfter; + private TriggerActionNotificationProperty() {} /** * @return After a job run starts, the number of minutes to wait before sending a job run delay notification. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(TriggerActionNotificationProperty defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer notifyDelayAfter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TriggerActionNotificationProperty defaults) { Objects.requireNonNull(defaults); this.notifyDelayAfter = defaults.notifyDelayAfter; } + @CustomType.Setter public Builder notifyDelayAfter(@Nullable Integer notifyDelayAfter) { this.notifyDelayAfter = notifyDelayAfter; return this; - } public TriggerActionNotificationProperty build() { - return new TriggerActionNotificationProperty(notifyDelayAfter); + } + public TriggerActionNotificationProperty build() { + final var o = new TriggerActionNotificationProperty(); + o.notifyDelayAfter = notifyDelayAfter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerEventBatchingCondition.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerEventBatchingCondition.java index dd24ca30237..5d0a00b81c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerEventBatchingCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerEventBatchingCondition.java @@ -15,21 +15,14 @@ public final class TriggerEventBatchingCondition { * @return Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires. * */ - private final Integer batchSize; + private Integer batchSize; /** * @return Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received. Default value is `900`. * */ - private final @Nullable Integer batchWindow; - - @CustomType.Constructor - private TriggerEventBatchingCondition( - @CustomType.Parameter("batchSize") Integer batchSize, - @CustomType.Parameter("batchWindow") @Nullable Integer batchWindow) { - this.batchSize = batchSize; - this.batchWindow = batchWindow; - } + private @Nullable Integer batchWindow; + private TriggerEventBatchingCondition() {} /** * @return Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(TriggerEventBatchingCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer batchSize; private @Nullable Integer batchWindow; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TriggerEventBatchingCondition defaults) { Objects.requireNonNull(defaults); this.batchSize = defaults.batchSize; this.batchWindow = defaults.batchWindow; } + @CustomType.Setter public Builder batchSize(Integer batchSize) { this.batchSize = Objects.requireNonNull(batchSize); return this; } + @CustomType.Setter public Builder batchWindow(@Nullable Integer batchWindow) { this.batchWindow = batchWindow; return this; - } public TriggerEventBatchingCondition build() { - return new TriggerEventBatchingCondition(batchSize, batchWindow); + } + public TriggerEventBatchingCondition build() { + final var o = new TriggerEventBatchingCondition(); + o.batchSize = batchSize; + o.batchWindow = batchWindow; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerPredicate.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerPredicate.java index 5992e99155a..c8404739d0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerPredicate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerPredicate.java @@ -17,21 +17,14 @@ public final class TriggerPredicate { * @return A list of the conditions that determine when the trigger will fire. See Conditions. * */ - private final List conditions; + private List conditions; /** * @return How to handle multiple conditions. Defaults to `AND`. Valid values are `AND` or `ANY`. * */ - private final @Nullable String logical; - - @CustomType.Constructor - private TriggerPredicate( - @CustomType.Parameter("conditions") List conditions, - @CustomType.Parameter("logical") @Nullable String logical) { - this.conditions = conditions; - this.logical = logical; - } + private @Nullable String logical; + private TriggerPredicate() {} /** * @return A list of the conditions that determine when the trigger will fire. See Conditions. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(TriggerPredicate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List conditions; private @Nullable String logical; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TriggerPredicate defaults) { Objects.requireNonNull(defaults); this.conditions = defaults.conditions; this.logical = defaults.logical; } + @CustomType.Setter public Builder conditions(List conditions) { this.conditions = Objects.requireNonNull(conditions); return this; @@ -76,11 +66,16 @@ public Builder conditions(List conditions) { public Builder conditions(TriggerPredicateCondition... conditions) { return conditions(List.of(conditions)); } + @CustomType.Setter public Builder logical(@Nullable String logical) { this.logical = logical; return this; - } public TriggerPredicate build() { - return new TriggerPredicate(conditions, logical); + } + public TriggerPredicate build() { + final var o = new TriggerPredicate(); + o.conditions = conditions; + o.logical = logical; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerPredicateCondition.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerPredicateCondition.java index d4e432ffaa3..a0387d23dcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerPredicateCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/TriggerPredicateCondition.java @@ -15,42 +15,29 @@ public final class TriggerPredicateCondition { * @return The condition crawl state. Currently, the values supported are `RUNNING`, `SUCCEEDED`, `CANCELLED`, and `FAILED`. If this is specified, `crawler_name` must also be specified. Conflicts with `state`. * */ - private final @Nullable String crawlState; + private @Nullable String crawlState; /** * @return The name of the crawler to watch. If this is specified, `crawl_state` must also be specified. Conflicts with `job_name`. * */ - private final @Nullable String crawlerName; + private @Nullable String crawlerName; /** * @return The name of the job to watch. If this is specified, `state` must also be specified. Conflicts with `crawler_name`. * */ - private final @Nullable String jobName; + private @Nullable String jobName; /** * @return A logical operator. Defaults to `EQUALS`. * */ - private final @Nullable String logicalOperator; + private @Nullable String logicalOperator; /** * @return The condition job state. Currently, the values supported are `SUCCEEDED`, `STOPPED`, `TIMEOUT` and `FAILED`. If this is specified, `job_name` must also be specified. Conflicts with `crawler_state`. * */ - private final @Nullable String state; - - @CustomType.Constructor - private TriggerPredicateCondition( - @CustomType.Parameter("crawlState") @Nullable String crawlState, - @CustomType.Parameter("crawlerName") @Nullable String crawlerName, - @CustomType.Parameter("jobName") @Nullable String jobName, - @CustomType.Parameter("logicalOperator") @Nullable String logicalOperator, - @CustomType.Parameter("state") @Nullable String state) { - this.crawlState = crawlState; - this.crawlerName = crawlerName; - this.jobName = jobName; - this.logicalOperator = logicalOperator; - this.state = state; - } + private @Nullable String state; + private TriggerPredicateCondition() {} /** * @return The condition crawl state. Currently, the values supported are `RUNNING`, `SUCCEEDED`, `CANCELLED`, and `FAILED`. If this is specified, `crawler_name` must also be specified. Conflicts with `state`. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(TriggerPredicateCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String crawlState; private @Nullable String crawlerName; private @Nullable String jobName; private @Nullable String logicalOperator; private @Nullable String state; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TriggerPredicateCondition defaults) { Objects.requireNonNull(defaults); this.crawlState = defaults.crawlState; @@ -115,27 +98,39 @@ public Builder(TriggerPredicateCondition defaults) { this.state = defaults.state; } + @CustomType.Setter public Builder crawlState(@Nullable String crawlState) { this.crawlState = crawlState; return this; } + @CustomType.Setter public Builder crawlerName(@Nullable String crawlerName) { this.crawlerName = crawlerName; return this; } + @CustomType.Setter public Builder jobName(@Nullable String jobName) { this.jobName = jobName; return this; } + @CustomType.Setter public Builder logicalOperator(@Nullable String logicalOperator) { this.logicalOperator = logicalOperator; return this; } + @CustomType.Setter public Builder state(@Nullable String state) { this.state = state; return this; - } public TriggerPredicateCondition build() { - return new TriggerPredicateCondition(crawlState, crawlerName, jobName, logicalOperator, state); + } + public TriggerPredicateCondition build() { + final var o = new TriggerPredicateCondition(); + o.crawlState = crawlState; + o.crawlerName = crawlerName; + o.jobName = jobName; + o.logicalOperator = logicalOperator; + o.state = state; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/UserDefinedFunctionResourceUri.java b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/UserDefinedFunctionResourceUri.java index 0c8e77c4703..47ce5f55e3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/UserDefinedFunctionResourceUri.java +++ b/sdk/java/src/main/java/com/pulumi/aws/glue/outputs/UserDefinedFunctionResourceUri.java @@ -13,21 +13,14 @@ public final class UserDefinedFunctionResourceUri { * @return The type of the resource. can be one of `JAR`, `FILE`, and `ARCHIVE`. * */ - private final String resourceType; + private String resourceType; /** * @return The URI for accessing the resource. * */ - private final String uri; - - @CustomType.Constructor - private UserDefinedFunctionResourceUri( - @CustomType.Parameter("resourceType") String resourceType, - @CustomType.Parameter("uri") String uri) { - this.resourceType = resourceType; - this.uri = uri; - } + private String uri; + private UserDefinedFunctionResourceUri() {} /** * @return The type of the resource. can be one of `JAR`, `FILE`, and `ARCHIVE`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(UserDefinedFunctionResourceUri defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String resourceType; private String uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserDefinedFunctionResourceUri defaults) { Objects.requireNonNull(defaults); this.resourceType = defaults.resourceType; this.uri = defaults.uri; } + @CustomType.Setter public Builder resourceType(String resourceType) { this.resourceType = Objects.requireNonNull(resourceType); return this; } + @CustomType.Setter public Builder uri(String uri) { this.uri = Objects.requireNonNull(uri); return this; - } public UserDefinedFunctionResourceUri build() { - return new UserDefinedFunctionResourceUri(resourceType, uri); + } + public UserDefinedFunctionResourceUri build() { + final var o = new UserDefinedFunctionResourceUri(); + o.resourceType = resourceType; + o.uri = uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/grafana/outputs/GetWorkspaceResult.java b/sdk/java/src/main/java/com/pulumi/aws/grafana/outputs/GetWorkspaceResult.java index fbf9f950013..167c2fa76ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/grafana/outputs/GetWorkspaceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/grafana/outputs/GetWorkspaceResult.java @@ -15,146 +15,101 @@ public final class GetWorkspaceResult { * @return (Required) The type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`. If `ORGANIZATION` is specified, then `organizational_units` must also be present. * */ - private final String accountAccessType; + private String accountAccessType; /** * @return The Amazon Resource Name (ARN) of the Grafana workspace. * */ - private final String arn; + private String arn; /** * @return (Required) The authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both. * */ - private final List authenticationProviders; + private List authenticationProviders; /** * @return The creation date of the Grafana workspace. * */ - private final String createdDate; + private String createdDate; /** * @return The data sources for the workspace. * */ - private final List dataSources; + private List dataSources; /** * @return The workspace description. * */ - private final String description; + private String description; /** * @return The endpoint of the Grafana workspace. * */ - private final String endpoint; + private String endpoint; /** * @return The version of Grafana running on the workspace. * */ - private final String grafanaVersion; + private String grafanaVersion; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The last updated date of the Grafana workspace. * */ - private final String lastUpdatedDate; + private String lastUpdatedDate; /** * @return The Grafana workspace name. * */ - private final String name; + private String name; /** * @return The notification destinations. * */ - private final List notificationDestinations; + private List notificationDestinations; /** * @return The role name that the workspace uses to access resources through Amazon Organizations. * */ - private final String organizationRoleName; + private String organizationRoleName; /** * @return The Amazon Organizations organizational units that the workspace is authorized to use data sources from. * */ - private final List organizationalUnits; + private List organizationalUnits; /** * @return The permission type of the workspace. * */ - private final String permissionType; + private String permissionType; /** * @return The IAM role ARN that the workspace assumes. * */ - private final String roleArn; - private final String samlConfigurationStatus; + private String roleArn; + private String samlConfigurationStatus; /** * @return The AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace. * */ - private final String stackSetName; + private String stackSetName; /** * @return The status of the Grafana workspace. * */ - private final String status; + private String status; /** * @return The tags assigned to the resource * */ - private final Map tags; - private final String workspaceId; - - @CustomType.Constructor - private GetWorkspaceResult( - @CustomType.Parameter("accountAccessType") String accountAccessType, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("authenticationProviders") List authenticationProviders, - @CustomType.Parameter("createdDate") String createdDate, - @CustomType.Parameter("dataSources") List dataSources, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("grafanaVersion") String grafanaVersion, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastUpdatedDate") String lastUpdatedDate, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("notificationDestinations") List notificationDestinations, - @CustomType.Parameter("organizationRoleName") String organizationRoleName, - @CustomType.Parameter("organizationalUnits") List organizationalUnits, - @CustomType.Parameter("permissionType") String permissionType, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("samlConfigurationStatus") String samlConfigurationStatus, - @CustomType.Parameter("stackSetName") String stackSetName, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("workspaceId") String workspaceId) { - this.accountAccessType = accountAccessType; - this.arn = arn; - this.authenticationProviders = authenticationProviders; - this.createdDate = createdDate; - this.dataSources = dataSources; - this.description = description; - this.endpoint = endpoint; - this.grafanaVersion = grafanaVersion; - this.id = id; - this.lastUpdatedDate = lastUpdatedDate; - this.name = name; - this.notificationDestinations = notificationDestinations; - this.organizationRoleName = organizationRoleName; - this.organizationalUnits = organizationalUnits; - this.permissionType = permissionType; - this.roleArn = roleArn; - this.samlConfigurationStatus = samlConfigurationStatus; - this.stackSetName = stackSetName; - this.status = status; - this.tags = tags; - this.workspaceId = workspaceId; - } + private Map tags; + private String workspaceId; + private GetWorkspaceResult() {} /** * @return (Required) The type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`. If `ORGANIZATION` is specified, then `organizational_units` must also be present. * @@ -302,7 +257,7 @@ public static Builder builder() { public static Builder builder(GetWorkspaceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accountAccessType; private String arn; @@ -325,11 +280,7 @@ public static final class Builder { private String status; private Map tags; private String workspaceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetWorkspaceResult defaults) { Objects.requireNonNull(defaults); this.accountAccessType = defaults.accountAccessType; @@ -355,14 +306,17 @@ public Builder(GetWorkspaceResult defaults) { this.workspaceId = defaults.workspaceId; } + @CustomType.Setter public Builder accountAccessType(String accountAccessType) { this.accountAccessType = Objects.requireNonNull(accountAccessType); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder authenticationProviders(List authenticationProviders) { this.authenticationProviders = Objects.requireNonNull(authenticationProviders); return this; @@ -370,10 +324,12 @@ public Builder authenticationProviders(List authenticationProviders) { public Builder authenticationProviders(String... authenticationProviders) { return authenticationProviders(List.of(authenticationProviders)); } + @CustomType.Setter public Builder createdDate(String createdDate) { this.createdDate = Objects.requireNonNull(createdDate); return this; } + @CustomType.Setter public Builder dataSources(List dataSources) { this.dataSources = Objects.requireNonNull(dataSources); return this; @@ -381,30 +337,37 @@ public Builder dataSources(List dataSources) { public Builder dataSources(String... dataSources) { return dataSources(List.of(dataSources)); } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder grafanaVersion(String grafanaVersion) { this.grafanaVersion = Objects.requireNonNull(grafanaVersion); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder notificationDestinations(List notificationDestinations) { this.notificationDestinations = Objects.requireNonNull(notificationDestinations); return this; @@ -412,10 +375,12 @@ public Builder notificationDestinations(List notificationDestinations) { public Builder notificationDestinations(String... notificationDestinations) { return notificationDestinations(List.of(notificationDestinations)); } + @CustomType.Setter public Builder organizationRoleName(String organizationRoleName) { this.organizationRoleName = Objects.requireNonNull(organizationRoleName); return this; } + @CustomType.Setter public Builder organizationalUnits(List organizationalUnits) { this.organizationalUnits = Objects.requireNonNull(organizationalUnits); return this; @@ -423,35 +388,65 @@ public Builder organizationalUnits(List organizationalUnits) { public Builder organizationalUnits(String... organizationalUnits) { return organizationalUnits(List.of(organizationalUnits)); } + @CustomType.Setter public Builder permissionType(String permissionType) { this.permissionType = Objects.requireNonNull(permissionType); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder samlConfigurationStatus(String samlConfigurationStatus) { this.samlConfigurationStatus = Objects.requireNonNull(samlConfigurationStatus); return this; } + @CustomType.Setter public Builder stackSetName(String stackSetName) { this.stackSetName = Objects.requireNonNull(stackSetName); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder workspaceId(String workspaceId) { this.workspaceId = Objects.requireNonNull(workspaceId); return this; - } public GetWorkspaceResult build() { - return new GetWorkspaceResult(accountAccessType, arn, authenticationProviders, createdDate, dataSources, description, endpoint, grafanaVersion, id, lastUpdatedDate, name, notificationDestinations, organizationRoleName, organizationalUnits, permissionType, roleArn, samlConfigurationStatus, stackSetName, status, tags, workspaceId); + } + public GetWorkspaceResult build() { + final var o = new GetWorkspaceResult(); + o.accountAccessType = accountAccessType; + o.arn = arn; + o.authenticationProviders = authenticationProviders; + o.createdDate = createdDate; + o.dataSources = dataSources; + o.description = description; + o.endpoint = endpoint; + o.grafanaVersion = grafanaVersion; + o.id = id; + o.lastUpdatedDate = lastUpdatedDate; + o.name = name; + o.notificationDestinations = notificationDestinations; + o.organizationRoleName = organizationRoleName; + o.organizationalUnits = organizationalUnits; + o.permissionType = permissionType; + o.roleArn = roleArn; + o.samlConfigurationStatus = samlConfigurationStatus; + o.stackSetName = stackSetName; + o.status = status; + o.tags = tags; + o.workspaceId = workspaceId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasources.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasources.java index 7fc64ee242a..5b324abdd53 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasources.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasources.java @@ -18,30 +18,21 @@ public final class DetectorDatasources { * See Kubernetes and Kubernetes Audit Logs below for more details. * */ - private final @Nullable DetectorDatasourcesKubernetes kubernetes; + private @Nullable DetectorDatasourcesKubernetes kubernetes; /** * @return Configures [Malware Protection](https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection.html). * See Malware Protection, Scan EC2 instance with findings and EBS volumes below for more details. * */ - private final @Nullable DetectorDatasourcesMalwareProtection malwareProtection; + private @Nullable DetectorDatasourcesMalwareProtection malwareProtection; /** * @return Configures [S3 protection](https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html). * See S3 Logs below for more details. * */ - private final @Nullable DetectorDatasourcesS3Logs s3Logs; - - @CustomType.Constructor - private DetectorDatasources( - @CustomType.Parameter("kubernetes") @Nullable DetectorDatasourcesKubernetes kubernetes, - @CustomType.Parameter("malwareProtection") @Nullable DetectorDatasourcesMalwareProtection malwareProtection, - @CustomType.Parameter("s3Logs") @Nullable DetectorDatasourcesS3Logs s3Logs) { - this.kubernetes = kubernetes; - this.malwareProtection = malwareProtection; - this.s3Logs = s3Logs; - } + private @Nullable DetectorDatasourcesS3Logs s3Logs; + private DetectorDatasources() {} /** * @return Configures [Kubernetes protection](https://docs.aws.amazon.com/guardduty/latest/ug/kubernetes-protection.html). * See Kubernetes and Kubernetes Audit Logs below for more details. @@ -74,16 +65,12 @@ public static Builder builder() { public static Builder builder(DetectorDatasources defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DetectorDatasourcesKubernetes kubernetes; private @Nullable DetectorDatasourcesMalwareProtection malwareProtection; private @Nullable DetectorDatasourcesS3Logs s3Logs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DetectorDatasources defaults) { Objects.requireNonNull(defaults); this.kubernetes = defaults.kubernetes; @@ -91,19 +78,27 @@ public Builder(DetectorDatasources defaults) { this.s3Logs = defaults.s3Logs; } + @CustomType.Setter public Builder kubernetes(@Nullable DetectorDatasourcesKubernetes kubernetes) { this.kubernetes = kubernetes; return this; } + @CustomType.Setter public Builder malwareProtection(@Nullable DetectorDatasourcesMalwareProtection malwareProtection) { this.malwareProtection = malwareProtection; return this; } + @CustomType.Setter public Builder s3Logs(@Nullable DetectorDatasourcesS3Logs s3Logs) { this.s3Logs = s3Logs; return this; - } public DetectorDatasources build() { - return new DetectorDatasources(kubernetes, malwareProtection, s3Logs); + } + public DetectorDatasources build() { + final var o = new DetectorDatasources(); + o.kubernetes = kubernetes; + o.malwareProtection = malwareProtection; + o.s3Logs = s3Logs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesKubernetes.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesKubernetes.java index 7afaba4a7dc..b6acfbf5afd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesKubernetes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesKubernetes.java @@ -14,13 +14,9 @@ public final class DetectorDatasourcesKubernetes { * See Kubernetes Audit Logs below for more details. * */ - private final DetectorDatasourcesKubernetesAuditLogs auditLogs; - - @CustomType.Constructor - private DetectorDatasourcesKubernetes(@CustomType.Parameter("auditLogs") DetectorDatasourcesKubernetesAuditLogs auditLogs) { - this.auditLogs = auditLogs; - } + private DetectorDatasourcesKubernetesAuditLogs auditLogs; + private DetectorDatasourcesKubernetes() {} /** * @return Configures Kubernetes audit logs as a data source for [Kubernetes protection](https://docs.aws.amazon.com/guardduty/latest/ug/kubernetes-protection.html). * See Kubernetes Audit Logs below for more details. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DetectorDatasourcesKubernetes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private DetectorDatasourcesKubernetesAuditLogs auditLogs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DetectorDatasourcesKubernetes defaults) { Objects.requireNonNull(defaults); this.auditLogs = defaults.auditLogs; } + @CustomType.Setter public Builder auditLogs(DetectorDatasourcesKubernetesAuditLogs auditLogs) { this.auditLogs = Objects.requireNonNull(auditLogs); return this; - } public DetectorDatasourcesKubernetes build() { - return new DetectorDatasourcesKubernetes(auditLogs); + } + public DetectorDatasourcesKubernetes build() { + final var o = new DetectorDatasourcesKubernetes(); + o.auditLogs = auditLogs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesKubernetesAuditLogs.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesKubernetesAuditLogs.java index 41b24051f40..de436522f1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesKubernetesAuditLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesKubernetesAuditLogs.java @@ -14,13 +14,9 @@ public final class DetectorDatasourcesKubernetesAuditLogs { * Defaults to `true`. * */ - private final Boolean enable; - - @CustomType.Constructor - private DetectorDatasourcesKubernetesAuditLogs(@CustomType.Parameter("enable") Boolean enable) { - this.enable = enable; - } + private Boolean enable; + private DetectorDatasourcesKubernetesAuditLogs() {} /** * @return If true, enables Kubernetes audit logs as a data source for [Kubernetes protection](https://docs.aws.amazon.com/guardduty/latest/ug/kubernetes-protection.html). * Defaults to `true`. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DetectorDatasourcesKubernetesAuditLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DetectorDatasourcesKubernetesAuditLogs defaults) { Objects.requireNonNull(defaults); this.enable = defaults.enable; } + @CustomType.Setter public Builder enable(Boolean enable) { this.enable = Objects.requireNonNull(enable); return this; - } public DetectorDatasourcesKubernetesAuditLogs build() { - return new DetectorDatasourcesKubernetesAuditLogs(enable); + } + public DetectorDatasourcesKubernetesAuditLogs build() { + final var o = new DetectorDatasourcesKubernetesAuditLogs(); + o.enable = enable; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesMalwareProtection.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesMalwareProtection.java index 1172b4bd9ee..106f1428207 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesMalwareProtection.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesMalwareProtection.java @@ -14,13 +14,9 @@ public final class DetectorDatasourcesMalwareProtection { * See Scan EC2 instance with findings below for more details. * */ - private final DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings; - - @CustomType.Constructor - private DetectorDatasourcesMalwareProtection(@CustomType.Parameter("scanEc2InstanceWithFindings") DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings) { - this.scanEc2InstanceWithFindings = scanEc2InstanceWithFindings; - } + private DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings; + private DetectorDatasourcesMalwareProtection() {} /** * @return Configure whether [Malware Protection](https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection.html) is enabled as data source for EC2 instances with findings for the detector. * See Scan EC2 instance with findings below for more details. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DetectorDatasourcesMalwareProtection defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DetectorDatasourcesMalwareProtection defaults) { Objects.requireNonNull(defaults); this.scanEc2InstanceWithFindings = defaults.scanEc2InstanceWithFindings; } + @CustomType.Setter public Builder scanEc2InstanceWithFindings(DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings) { this.scanEc2InstanceWithFindings = Objects.requireNonNull(scanEc2InstanceWithFindings); return this; - } public DetectorDatasourcesMalwareProtection build() { - return new DetectorDatasourcesMalwareProtection(scanEc2InstanceWithFindings); + } + public DetectorDatasourcesMalwareProtection build() { + final var o = new DetectorDatasourcesMalwareProtection(); + o.scanEc2InstanceWithFindings = scanEc2InstanceWithFindings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings.java index 1d91a9301f9..5cbfe2d0c82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings.java @@ -14,13 +14,9 @@ public final class DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindin * See EBS volumes below for more details. * */ - private final DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes ebsVolumes; - - @CustomType.Constructor - private DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings(@CustomType.Parameter("ebsVolumes") DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes ebsVolumes) { - this.ebsVolumes = ebsVolumes; - } + private DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes ebsVolumes; + private DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings() {} /** * @return Configure whether scanning EBS volumes is enabled as data source for the detector for instances with findings. * See EBS volumes below for more details. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes ebsVolumes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings defaults) { Objects.requireNonNull(defaults); this.ebsVolumes = defaults.ebsVolumes; } + @CustomType.Setter public Builder ebsVolumes(DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes ebsVolumes) { this.ebsVolumes = Objects.requireNonNull(ebsVolumes); return this; - } public DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings build() { - return new DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings(ebsVolumes); + } + public DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings build() { + final var o = new DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindings(); + o.ebsVolumes = ebsVolumes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes.java index 8be3d02be48..e557cdd38df 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes.java @@ -14,13 +14,9 @@ public final class DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindin * Defaults to `true`. * */ - private final Boolean enable; - - @CustomType.Constructor - private DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes(@CustomType.Parameter("enable") Boolean enable) { - this.enable = enable; - } + private Boolean enable; + private DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes() {} /** * @return If true, enables [Malware Protection](https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection.html) as data source for the detector. * Defaults to `true`. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes defaults) { Objects.requireNonNull(defaults); this.enable = defaults.enable; } + @CustomType.Setter public Builder enable(Boolean enable) { this.enable = Objects.requireNonNull(enable); return this; - } public DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes build() { - return new DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes(enable); + } + public DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes build() { + final var o = new DetectorDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes(); + o.enable = enable; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesS3Logs.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesS3Logs.java index 52aba4508e2..2e1af96a732 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesS3Logs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/DetectorDatasourcesS3Logs.java @@ -14,13 +14,9 @@ public final class DetectorDatasourcesS3Logs { * Defaults to `true`. * */ - private final Boolean enable; - - @CustomType.Constructor - private DetectorDatasourcesS3Logs(@CustomType.Parameter("enable") Boolean enable) { - this.enable = enable; - } + private Boolean enable; + private DetectorDatasourcesS3Logs() {} /** * @return If true, enables [S3 protection](https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html). * Defaults to `true`. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DetectorDatasourcesS3Logs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DetectorDatasourcesS3Logs defaults) { Objects.requireNonNull(defaults); this.enable = defaults.enable; } + @CustomType.Setter public Builder enable(Boolean enable) { this.enable = Objects.requireNonNull(enable); return this; - } public DetectorDatasourcesS3Logs build() { - return new DetectorDatasourcesS3Logs(enable); + } + public DetectorDatasourcesS3Logs build() { + final var o = new DetectorDatasourcesS3Logs(); + o.enable = enable; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/FilterFindingCriteria.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/FilterFindingCriteria.java index 772f2feecdf..c648b1d1b55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/FilterFindingCriteria.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/FilterFindingCriteria.java @@ -10,13 +10,9 @@ @CustomType public final class FilterFindingCriteria { - private final List criterions; - - @CustomType.Constructor - private FilterFindingCriteria(@CustomType.Parameter("criterions") List criterions) { - this.criterions = criterions; - } + private List criterions; + private FilterFindingCriteria() {} public List criterions() { return this.criterions; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(FilterFindingCriteria defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List criterions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FilterFindingCriteria defaults) { Objects.requireNonNull(defaults); this.criterions = defaults.criterions; } + @CustomType.Setter public Builder criterions(List criterions) { this.criterions = Objects.requireNonNull(criterions); return this; } public Builder criterions(FilterFindingCriteriaCriterion... criterions) { return criterions(List.of(criterions)); - } public FilterFindingCriteria build() { - return new FilterFindingCriteria(criterions); + } + public FilterFindingCriteria build() { + final var o = new FilterFindingCriteria(); + o.criterions = criterions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/FilterFindingCriteriaCriterion.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/FilterFindingCriteriaCriterion.java index 102919ecceb..6a890bc6796 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/FilterFindingCriteriaCriterion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/FilterFindingCriteriaCriterion.java @@ -16,56 +16,39 @@ public final class FilterFindingCriteriaCriterion { * @return List of string values to be evaluated. * */ - private final @Nullable List equals; + private @Nullable List equals; /** * @return The name of the field to be evaluated. The full list of field names can be found in [AWS documentation](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_filter-findings.html#filter_criteria). * */ - private final String field; + private String field; /** * @return A value to be evaluated. Accepts either an integer or a date in [RFC 3339 format](https://tools.ietf.org/html/rfc3339#section-5.8). * */ - private final @Nullable String greaterThan; + private @Nullable String greaterThan; /** * @return A value to be evaluated. Accepts either an integer or a date in [RFC 3339 format](https://tools.ietf.org/html/rfc3339#section-5.8). * */ - private final @Nullable String greaterThanOrEqual; + private @Nullable String greaterThanOrEqual; /** * @return A value to be evaluated. Accepts either an integer or a date in [RFC 3339 format](https://tools.ietf.org/html/rfc3339#section-5.8). * */ - private final @Nullable String lessThan; + private @Nullable String lessThan; /** * @return A value to be evaluated. Accepts either an integer or a date in [RFC 3339 format](https://tools.ietf.org/html/rfc3339#section-5.8). * */ - private final @Nullable String lessThanOrEqual; + private @Nullable String lessThanOrEqual; /** * @return List of string values to be evaluated. * */ - private final @Nullable List notEquals; - - @CustomType.Constructor - private FilterFindingCriteriaCriterion( - @CustomType.Parameter("equals") @Nullable List equals, - @CustomType.Parameter("field") String field, - @CustomType.Parameter("greaterThan") @Nullable String greaterThan, - @CustomType.Parameter("greaterThanOrEqual") @Nullable String greaterThanOrEqual, - @CustomType.Parameter("lessThan") @Nullable String lessThan, - @CustomType.Parameter("lessThanOrEqual") @Nullable String lessThanOrEqual, - @CustomType.Parameter("notEquals") @Nullable List notEquals) { - this.equals = equals; - this.field = field; - this.greaterThan = greaterThan; - this.greaterThanOrEqual = greaterThanOrEqual; - this.lessThan = lessThan; - this.lessThanOrEqual = lessThanOrEqual; - this.notEquals = notEquals; - } + private @Nullable List notEquals; + private FilterFindingCriteriaCriterion() {} /** * @return List of string values to be evaluated. * @@ -123,7 +106,7 @@ public static Builder builder() { public static Builder builder(FilterFindingCriteriaCriterion defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List equals; private String field; @@ -132,11 +115,7 @@ public static final class Builder { private @Nullable String lessThan; private @Nullable String lessThanOrEqual; private @Nullable List notEquals; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FilterFindingCriteriaCriterion defaults) { Objects.requireNonNull(defaults); this.equals = defaults.equals; @@ -148,6 +127,7 @@ public Builder(FilterFindingCriteriaCriterion defaults) { this.notEquals = defaults.notEquals; } + @CustomType.Setter("equals") public Builder equals_(@Nullable List equals) { this.equals = equals; return this; @@ -155,34 +135,49 @@ public Builder equals_(@Nullable List equals) { public Builder equals_(String... equals) { return equals_(List.of(equals)); } + @CustomType.Setter public Builder field(String field) { this.field = Objects.requireNonNull(field); return this; } + @CustomType.Setter public Builder greaterThan(@Nullable String greaterThan) { this.greaterThan = greaterThan; return this; } + @CustomType.Setter public Builder greaterThanOrEqual(@Nullable String greaterThanOrEqual) { this.greaterThanOrEqual = greaterThanOrEqual; return this; } + @CustomType.Setter public Builder lessThan(@Nullable String lessThan) { this.lessThan = lessThan; return this; } + @CustomType.Setter public Builder lessThanOrEqual(@Nullable String lessThanOrEqual) { this.lessThanOrEqual = lessThanOrEqual; return this; } + @CustomType.Setter public Builder notEquals(@Nullable List notEquals) { this.notEquals = notEquals; return this; } public Builder notEquals(String... notEquals) { return notEquals(List.of(notEquals)); - } public FilterFindingCriteriaCriterion build() { - return new FilterFindingCriteriaCriterion(equals, field, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual, notEquals); + } + public FilterFindingCriteriaCriterion build() { + final var o = new FilterFindingCriteriaCriterion(); + o.equals = equals; + o.field = field; + o.greaterThan = greaterThan; + o.greaterThanOrEqual = greaterThanOrEqual; + o.lessThan = lessThan; + o.lessThanOrEqual = lessThanOrEqual; + o.notEquals = notEquals; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/GetDetectorResult.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/GetDetectorResult.java index dbc63d80b29..3c3105c86c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/GetDetectorResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/GetDetectorResult.java @@ -13,31 +13,20 @@ public final class GetDetectorResult { * @return The frequency of notifications sent about subsequent finding occurrences. * */ - private final String findingPublishingFrequency; - private final String id; + private String findingPublishingFrequency; + private String id; /** * @return The service-linked role that grants GuardDuty access to the resources in the AWS account. * */ - private final String serviceRoleArn; + private String serviceRoleArn; /** * @return The current status of the detector. * */ - private final String status; - - @CustomType.Constructor - private GetDetectorResult( - @CustomType.Parameter("findingPublishingFrequency") String findingPublishingFrequency, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("serviceRoleArn") String serviceRoleArn, - @CustomType.Parameter("status") String status) { - this.findingPublishingFrequency = findingPublishingFrequency; - this.id = id; - this.serviceRoleArn = serviceRoleArn; - this.status = status; - } + private String status; + private GetDetectorResult() {} /** * @return The frequency of notifications sent about subsequent finding occurrences. * @@ -70,17 +59,13 @@ public static Builder builder() { public static Builder builder(GetDetectorResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String findingPublishingFrequency; private String id; private String serviceRoleArn; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDetectorResult defaults) { Objects.requireNonNull(defaults); this.findingPublishingFrequency = defaults.findingPublishingFrequency; @@ -89,23 +74,33 @@ public Builder(GetDetectorResult defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder findingPublishingFrequency(String findingPublishingFrequency) { this.findingPublishingFrequency = Objects.requireNonNull(findingPublishingFrequency); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder serviceRoleArn(String serviceRoleArn) { this.serviceRoleArn = Objects.requireNonNull(serviceRoleArn); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public GetDetectorResult build() { - return new GetDetectorResult(findingPublishingFrequency, id, serviceRoleArn, status); + } + public GetDetectorResult build() { + final var o = new GetDetectorResult(); + o.findingPublishingFrequency = findingPublishingFrequency; + o.id = id; + o.serviceRoleArn = serviceRoleArn; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasources.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasources.java index efd421a187c..29fba293dc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasources.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasources.java @@ -17,28 +17,19 @@ public final class OrganizationConfigurationDatasources { * @return Enable Kubernetes Audit Logs Monitoring automatically for new member accounts. * */ - private final @Nullable OrganizationConfigurationDatasourcesKubernetes kubernetes; + private @Nullable OrganizationConfigurationDatasourcesKubernetes kubernetes; /** * @return Enable Malware Protection automatically for new member accounts. * */ - private final @Nullable OrganizationConfigurationDatasourcesMalwareProtection malwareProtection; + private @Nullable OrganizationConfigurationDatasourcesMalwareProtection malwareProtection; /** * @return Enable S3 Protection automatically for new member accounts. * */ - private final @Nullable OrganizationConfigurationDatasourcesS3Logs s3Logs; - - @CustomType.Constructor - private OrganizationConfigurationDatasources( - @CustomType.Parameter("kubernetes") @Nullable OrganizationConfigurationDatasourcesKubernetes kubernetes, - @CustomType.Parameter("malwareProtection") @Nullable OrganizationConfigurationDatasourcesMalwareProtection malwareProtection, - @CustomType.Parameter("s3Logs") @Nullable OrganizationConfigurationDatasourcesS3Logs s3Logs) { - this.kubernetes = kubernetes; - this.malwareProtection = malwareProtection; - this.s3Logs = s3Logs; - } + private @Nullable OrganizationConfigurationDatasourcesS3Logs s3Logs; + private OrganizationConfigurationDatasources() {} /** * @return Enable Kubernetes Audit Logs Monitoring automatically for new member accounts. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(OrganizationConfigurationDatasources defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable OrganizationConfigurationDatasourcesKubernetes kubernetes; private @Nullable OrganizationConfigurationDatasourcesMalwareProtection malwareProtection; private @Nullable OrganizationConfigurationDatasourcesS3Logs s3Logs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationConfigurationDatasources defaults) { Objects.requireNonNull(defaults); this.kubernetes = defaults.kubernetes; @@ -85,19 +72,27 @@ public Builder(OrganizationConfigurationDatasources defaults) { this.s3Logs = defaults.s3Logs; } + @CustomType.Setter public Builder kubernetes(@Nullable OrganizationConfigurationDatasourcesKubernetes kubernetes) { this.kubernetes = kubernetes; return this; } + @CustomType.Setter public Builder malwareProtection(@Nullable OrganizationConfigurationDatasourcesMalwareProtection malwareProtection) { this.malwareProtection = malwareProtection; return this; } + @CustomType.Setter public Builder s3Logs(@Nullable OrganizationConfigurationDatasourcesS3Logs s3Logs) { this.s3Logs = s3Logs; return this; - } public OrganizationConfigurationDatasources build() { - return new OrganizationConfigurationDatasources(kubernetes, malwareProtection, s3Logs); + } + public OrganizationConfigurationDatasources build() { + final var o = new OrganizationConfigurationDatasources(); + o.kubernetes = kubernetes; + o.malwareProtection = malwareProtection; + o.s3Logs = s3Logs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesKubernetes.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesKubernetes.java index 6811685da62..60c1a872fa2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesKubernetes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesKubernetes.java @@ -14,13 +14,9 @@ public final class OrganizationConfigurationDatasourcesKubernetes { * See Kubernetes Audit Logs below for more details. * */ - private final OrganizationConfigurationDatasourcesKubernetesAuditLogs auditLogs; - - @CustomType.Constructor - private OrganizationConfigurationDatasourcesKubernetes(@CustomType.Parameter("auditLogs") OrganizationConfigurationDatasourcesKubernetesAuditLogs auditLogs) { - this.auditLogs = auditLogs; - } + private OrganizationConfigurationDatasourcesKubernetesAuditLogs auditLogs; + private OrganizationConfigurationDatasourcesKubernetes() {} /** * @return Enable Kubernetes Audit Logs Monitoring automatically for new member accounts. [Kubernetes protection](https://docs.aws.amazon.com/guardduty/latest/ug/kubernetes-protection.html). * See Kubernetes Audit Logs below for more details. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(OrganizationConfigurationDatasourcesKubernetes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private OrganizationConfigurationDatasourcesKubernetesAuditLogs auditLogs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationConfigurationDatasourcesKubernetes defaults) { Objects.requireNonNull(defaults); this.auditLogs = defaults.auditLogs; } + @CustomType.Setter public Builder auditLogs(OrganizationConfigurationDatasourcesKubernetesAuditLogs auditLogs) { this.auditLogs = Objects.requireNonNull(auditLogs); return this; - } public OrganizationConfigurationDatasourcesKubernetes build() { - return new OrganizationConfigurationDatasourcesKubernetes(auditLogs); + } + public OrganizationConfigurationDatasourcesKubernetes build() { + final var o = new OrganizationConfigurationDatasourcesKubernetes(); + o.auditLogs = auditLogs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesKubernetesAuditLogs.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesKubernetesAuditLogs.java index 4b8994cab55..68ac4cfec42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesKubernetesAuditLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesKubernetesAuditLogs.java @@ -14,13 +14,9 @@ public final class OrganizationConfigurationDatasourcesKubernetesAuditLogs { * Defaults to `true`. * */ - private final Boolean enable; - - @CustomType.Constructor - private OrganizationConfigurationDatasourcesKubernetesAuditLogs(@CustomType.Parameter("enable") Boolean enable) { - this.enable = enable; - } + private Boolean enable; + private OrganizationConfigurationDatasourcesKubernetesAuditLogs() {} /** * @return If true, enables Kubernetes audit logs as a data source for [Kubernetes protection](https://docs.aws.amazon.com/guardduty/latest/ug/kubernetes-protection.html). * Defaults to `true`. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(OrganizationConfigurationDatasourcesKubernetesAuditLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationConfigurationDatasourcesKubernetesAuditLogs defaults) { Objects.requireNonNull(defaults); this.enable = defaults.enable; } + @CustomType.Setter public Builder enable(Boolean enable) { this.enable = Objects.requireNonNull(enable); return this; - } public OrganizationConfigurationDatasourcesKubernetesAuditLogs build() { - return new OrganizationConfigurationDatasourcesKubernetesAuditLogs(enable); + } + public OrganizationConfigurationDatasourcesKubernetesAuditLogs build() { + final var o = new OrganizationConfigurationDatasourcesKubernetesAuditLogs(); + o.enable = enable; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesMalwareProtection.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesMalwareProtection.java index 8af4889949d..323789fe26e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesMalwareProtection.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesMalwareProtection.java @@ -14,13 +14,9 @@ public final class OrganizationConfigurationDatasourcesMalwareProtection { * See Scan EC2 instance with findings below for more details. * */ - private final OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings; - - @CustomType.Constructor - private OrganizationConfigurationDatasourcesMalwareProtection(@CustomType.Parameter("scanEc2InstanceWithFindings") OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings) { - this.scanEc2InstanceWithFindings = scanEc2InstanceWithFindings; - } + private OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings; + private OrganizationConfigurationDatasourcesMalwareProtection() {} /** * @return Configure whether [Malware Protection](https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection.html) for EC2 instances with findings should be auto-enabled for new members joining the organization. * See Scan EC2 instance with findings below for more details. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(OrganizationConfigurationDatasourcesMalwareProtection defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationConfigurationDatasourcesMalwareProtection defaults) { Objects.requireNonNull(defaults); this.scanEc2InstanceWithFindings = defaults.scanEc2InstanceWithFindings; } + @CustomType.Setter public Builder scanEc2InstanceWithFindings(OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings scanEc2InstanceWithFindings) { this.scanEc2InstanceWithFindings = Objects.requireNonNull(scanEc2InstanceWithFindings); return this; - } public OrganizationConfigurationDatasourcesMalwareProtection build() { - return new OrganizationConfigurationDatasourcesMalwareProtection(scanEc2InstanceWithFindings); + } + public OrganizationConfigurationDatasourcesMalwareProtection build() { + final var o = new OrganizationConfigurationDatasourcesMalwareProtection(); + o.scanEc2InstanceWithFindings = scanEc2InstanceWithFindings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings.java index 35a854f6afa..0297ab8b063 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings.java @@ -14,13 +14,9 @@ public final class OrganizationConfigurationDatasourcesMalwareProtectionScanEc2I * See EBS volumes below for more details. * */ - private final OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes ebsVolumes; - - @CustomType.Constructor - private OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings(@CustomType.Parameter("ebsVolumes") OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes ebsVolumes) { - this.ebsVolumes = ebsVolumes; - } + private OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes ebsVolumes; + private OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings() {} /** * @return Configure whether scanning EBS volumes should be auto-enabled for new members joining the organization * See EBS volumes below for more details. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes ebsVolumes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings defaults) { Objects.requireNonNull(defaults); this.ebsVolumes = defaults.ebsVolumes; } + @CustomType.Setter public Builder ebsVolumes(OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes ebsVolumes) { this.ebsVolumes = Objects.requireNonNull(ebsVolumes); return this; - } public OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings build() { - return new OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings(ebsVolumes); + } + public OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings build() { + final var o = new OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindings(); + o.ebsVolumes = ebsVolumes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes.java index 806b9bc4afa..b52d913bae5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes.java @@ -14,13 +14,9 @@ public final class OrganizationConfigurationDatasourcesMalwareProtectionScanEc2I * Defaults to `true`. * */ - private final Boolean autoEnable; - - @CustomType.Constructor - private OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes(@CustomType.Parameter("autoEnable") Boolean autoEnable) { - this.autoEnable = autoEnable; - } + private Boolean autoEnable; + private OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes() {} /** * @return If true, enables [Malware Protection](https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection.html) for all new accounts joining the organization. * Defaults to `true`. @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean autoEnable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes defaults) { Objects.requireNonNull(defaults); this.autoEnable = defaults.autoEnable; } + @CustomType.Setter public Builder autoEnable(Boolean autoEnable) { this.autoEnable = Objects.requireNonNull(autoEnable); return this; - } public OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes build() { - return new OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes(autoEnable); + } + public OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes build() { + final var o = new OrganizationConfigurationDatasourcesMalwareProtectionScanEc2InstanceWithFindingsEbsVolumes(); + o.autoEnable = autoEnable; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesS3Logs.java b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesS3Logs.java index 35be10093d6..2a5f45e054b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesS3Logs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/guardduty/outputs/OrganizationConfigurationDatasourcesS3Logs.java @@ -13,13 +13,9 @@ public final class OrganizationConfigurationDatasourcesS3Logs { * @return Set to `true` if you want S3 data event logs to be automatically enabled for new members of the organization. Default: `false` * */ - private final Boolean autoEnable; - - @CustomType.Constructor - private OrganizationConfigurationDatasourcesS3Logs(@CustomType.Parameter("autoEnable") Boolean autoEnable) { - this.autoEnable = autoEnable; - } + private Boolean autoEnable; + private OrganizationConfigurationDatasourcesS3Logs() {} /** * @return Set to `true` if you want S3 data event logs to be automatically enabled for new members of the organization. Default: `false` * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(OrganizationConfigurationDatasourcesS3Logs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean autoEnable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationConfigurationDatasourcesS3Logs defaults) { Objects.requireNonNull(defaults); this.autoEnable = defaults.autoEnable; } + @CustomType.Setter public Builder autoEnable(Boolean autoEnable) { this.autoEnable = Objects.requireNonNull(autoEnable); return this; - } public OrganizationConfigurationDatasourcesS3Logs build() { - return new OrganizationConfigurationDatasourcesS3Logs(autoEnable); + } + public OrganizationConfigurationDatasourcesS3Logs build() { + final var o = new OrganizationConfigurationDatasourcesS3Logs(); + o.autoEnable = autoEnable; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetAccountAliasResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetAccountAliasResult.java index 5014c6214aa..25c1fcd653c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetAccountAliasResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetAccountAliasResult.java @@ -13,21 +13,14 @@ public final class GetAccountAliasResult { * @return The alias associated with the AWS account. * */ - private final String accountAlias; + private String accountAlias; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetAccountAliasResult( - @CustomType.Parameter("accountAlias") String accountAlias, - @CustomType.Parameter("id") String id) { - this.accountAlias = accountAlias; - this.id = id; - } + private String id; + private GetAccountAliasResult() {} /** * @return The alias associated with the AWS account. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetAccountAliasResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accountAlias; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAccountAliasResult defaults) { Objects.requireNonNull(defaults); this.accountAlias = defaults.accountAlias; this.id = defaults.id; } + @CustomType.Setter public Builder accountAlias(String accountAlias) { this.accountAlias = Objects.requireNonNull(accountAlias); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetAccountAliasResult build() { - return new GetAccountAliasResult(accountAlias, id); + } + public GetAccountAliasResult build() { + final var o = new GetAccountAliasResult(); + o.accountAlias = accountAlias; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetGroupResult.java index 060fdf30da9..385a551422d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetGroupResult.java @@ -15,45 +15,30 @@ public final class GetGroupResult { * @return The Amazon Resource Name (ARN) specifying the iam user. * */ - private final String arn; + private String arn; /** * @return The stable and unique string identifying the group. * */ - private final String groupId; - private final String groupName; + private String groupId; + private String groupName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The path to the iam user. * */ - private final String path; + private String path; /** * @return List of objects containing group member information. See supported fields below. * */ - private final List users; - - @CustomType.Constructor - private GetGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("groupId") String groupId, - @CustomType.Parameter("groupName") String groupName, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("users") List users) { - this.arn = arn; - this.groupId = groupId; - this.groupName = groupName; - this.id = id; - this.path = path; - this.users = users; - } + private List users; + private GetGroupResult() {} /** * @return The Amazon Resource Name (ARN) specifying the iam user. * @@ -100,7 +85,7 @@ public static Builder builder() { public static Builder builder(GetGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String groupId; @@ -108,11 +93,7 @@ public static final class Builder { private String id; private String path; private List users; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -123,34 +104,48 @@ public Builder(GetGroupResult defaults) { this.users = defaults.users; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder groupId(String groupId) { this.groupId = Objects.requireNonNull(groupId); return this; } + @CustomType.Setter public Builder groupName(String groupName) { this.groupName = Objects.requireNonNull(groupName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder users(List users) { this.users = Objects.requireNonNull(users); return this; } public Builder users(GetGroupUser... users) { return users(List.of(users)); - } public GetGroupResult build() { - return new GetGroupResult(arn, groupId, groupName, id, path, users); + } + public GetGroupResult build() { + final var o = new GetGroupResult(); + o.arn = arn; + o.groupId = groupId; + o.groupName = groupName; + o.id = id; + o.path = path; + o.users = users; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetGroupUser.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetGroupUser.java index 305c0ff8c52..4cf0ec9d4e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetGroupUser.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetGroupUser.java @@ -13,35 +13,24 @@ public final class GetGroupUser { * @return The Amazon Resource Name (ARN) specifying the iam user. * */ - private final String arn; + private String arn; /** * @return The path to the iam user. * */ - private final String path; + private String path; /** * @return The stable and unique string identifying the iam user. * */ - private final String userId; + private String userId; /** * @return The name of the iam user. * */ - private final String userName; - - @CustomType.Constructor - private GetGroupUser( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("userId") String userId, - @CustomType.Parameter("userName") String userName) { - this.arn = arn; - this.path = path; - this.userId = userId; - this.userName = userName; - } + private String userName; + private GetGroupUser() {} /** * @return The Amazon Resource Name (ARN) specifying the iam user. * @@ -78,17 +67,13 @@ public static Builder builder() { public static Builder builder(GetGroupUser defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String path; private String userId; private String userName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetGroupUser defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -97,23 +82,33 @@ public Builder(GetGroupUser defaults) { this.userName = defaults.userName; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder userId(String userId) { this.userId = Objects.requireNonNull(userId); return this; } + @CustomType.Setter public Builder userName(String userName) { this.userName = Objects.requireNonNull(userName); return this; - } public GetGroupUser build() { - return new GetGroupUser(arn, path, userId, userName); + } + public GetGroupUser build() { + final var o = new GetGroupUser(); + o.arn = arn; + o.path = path; + o.userId = userId; + o.userName = userName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetInstanceProfileResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetInstanceProfileResult.java index 221d3bfb84f..f0297d204b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetInstanceProfileResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetInstanceProfileResult.java @@ -13,60 +13,41 @@ public final class GetInstanceProfileResult { * @return The Amazon Resource Name (ARN) specifying the instance profile. * */ - private final String arn; + private String arn; /** * @return The string representation of the date the instance profile * was created. * */ - private final String createDate; + private String createDate; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return The path to the instance profile. * */ - private final String path; + private String path; /** * @return The role arn associated with this instance profile. * */ - private final String roleArn; + private String roleArn; /** * @return The role id associated with this instance profile. * */ - private final String roleId; + private String roleId; /** * @return The role name associated with this instance profile. * */ - private final String roleName; - - @CustomType.Constructor - private GetInstanceProfileResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createDate") String createDate, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("roleId") String roleId, - @CustomType.Parameter("roleName") String roleName) { - this.arn = arn; - this.createDate = createDate; - this.id = id; - this.name = name; - this.path = path; - this.roleArn = roleArn; - this.roleId = roleId; - this.roleName = roleName; - } + private String roleName; + private GetInstanceProfileResult() {} /** * @return The Amazon Resource Name (ARN) specifying the instance profile. * @@ -128,7 +109,7 @@ public static Builder builder() { public static Builder builder(GetInstanceProfileResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String createDate; @@ -138,11 +119,7 @@ public static final class Builder { private String roleArn; private String roleId; private String roleName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceProfileResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -155,39 +132,57 @@ public Builder(GetInstanceProfileResult defaults) { this.roleName = defaults.roleName; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createDate(String createDate) { this.createDate = Objects.requireNonNull(createDate); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder roleId(String roleId) { this.roleId = Objects.requireNonNull(roleId); return this; } + @CustomType.Setter public Builder roleName(String roleName) { this.roleName = Objects.requireNonNull(roleName); return this; - } public GetInstanceProfileResult build() { - return new GetInstanceProfileResult(arn, createDate, id, name, path, roleArn, roleId, roleName); + } + public GetInstanceProfileResult build() { + final var o = new GetInstanceProfileResult(); + o.arn = arn; + o.createDate = createDate; + o.id = id; + o.name = name; + o.path = path; + o.roleArn = roleArn; + o.roleId = roleId; + o.roleName = roleName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetInstanceProfilesResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetInstanceProfilesResult.java index 0e7f800504b..3b0d170a7bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetInstanceProfilesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetInstanceProfilesResult.java @@ -14,38 +14,25 @@ public final class GetInstanceProfilesResult { * @return Set of Amazon Resource Name (ARN) specifying the instance profile. * */ - private final List arns; + private List arns; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of IAM instance profile names. * */ - private final List names; + private List names; /** * @return Set of IAM instance profile paths. * */ - private final List paths; - private final String roleName; - - @CustomType.Constructor - private GetInstanceProfilesResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names, - @CustomType.Parameter("paths") List paths, - @CustomType.Parameter("roleName") String roleName) { - this.arns = arns; - this.id = id; - this.names = names; - this.paths = paths; - this.roleName = roleName; - } + private List paths; + private String roleName; + private GetInstanceProfilesResult() {} /** * @return Set of Amazon Resource Name (ARN) specifying the instance profile. * @@ -85,18 +72,14 @@ public static Builder builder() { public static Builder builder(GetInstanceProfilesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private String id; private List names; private List paths; private String roleName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceProfilesResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -106,6 +89,7 @@ public Builder(GetInstanceProfilesResult defaults) { this.roleName = defaults.roleName; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -113,10 +97,12 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; @@ -124,6 +110,7 @@ public Builder names(List names) { public Builder names(String... names) { return names(List.of(names)); } + @CustomType.Setter public Builder paths(List paths) { this.paths = Objects.requireNonNull(paths); return this; @@ -131,11 +118,19 @@ public Builder paths(List paths) { public Builder paths(String... paths) { return paths(List.of(paths)); } + @CustomType.Setter public Builder roleName(String roleName) { this.roleName = Objects.requireNonNull(roleName); return this; - } public GetInstanceProfilesResult build() { - return new GetInstanceProfilesResult(arns, id, names, paths, roleName); + } + public GetInstanceProfilesResult build() { + final var o = new GetInstanceProfilesResult(); + o.arns = arns; + o.id = id; + o.names = names; + o.paths = paths; + o.roleName = roleName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetOpenidConnectProviderResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetOpenidConnectProviderResult.java index 5245a6eaff3..f5da3886369 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetOpenidConnectProviderResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetOpenidConnectProviderResult.java @@ -11,45 +11,30 @@ @CustomType public final class GetOpenidConnectProviderResult { - private final String arn; + private String arn; /** * @return A list of client IDs (also known as audiences). When a mobile or web app registers with an OpenID Connect provider, they establish a value that identifies the application. (This is the value that's sent as the client_id parameter on OAuth requests.) * */ - private final List clientIdLists; + private List clientIdLists; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Map of resource tags for the IAM OIDC provider. * */ - private final Map tags; + private Map tags; /** * @return A list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s). * */ - private final List thumbprintLists; - private final String url; - - @CustomType.Constructor - private GetOpenidConnectProviderResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("clientIdLists") List clientIdLists, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("thumbprintLists") List thumbprintLists, - @CustomType.Parameter("url") String url) { - this.arn = arn; - this.clientIdLists = clientIdLists; - this.id = id; - this.tags = tags; - this.thumbprintLists = thumbprintLists; - this.url = url; - } + private List thumbprintLists; + private String url; + private GetOpenidConnectProviderResult() {} public String arn() { return this.arn; } @@ -92,7 +77,7 @@ public static Builder builder() { public static Builder builder(GetOpenidConnectProviderResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List clientIdLists; @@ -100,11 +85,7 @@ public static final class Builder { private Map tags; private List thumbprintLists; private String url; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOpenidConnectProviderResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -115,10 +96,12 @@ public Builder(GetOpenidConnectProviderResult defaults) { this.url = defaults.url; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder clientIdLists(List clientIdLists) { this.clientIdLists = Objects.requireNonNull(clientIdLists); return this; @@ -126,14 +109,17 @@ public Builder clientIdLists(List clientIdLists) { public Builder clientIdLists(String... clientIdLists) { return clientIdLists(List.of(clientIdLists)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder thumbprintLists(List thumbprintLists) { this.thumbprintLists = Objects.requireNonNull(thumbprintLists); return this; @@ -141,11 +127,20 @@ public Builder thumbprintLists(List thumbprintLists) { public Builder thumbprintLists(String... thumbprintLists) { return thumbprintLists(List.of(thumbprintLists)); } + @CustomType.Setter public Builder url(String url) { this.url = Objects.requireNonNull(url); return this; - } public GetOpenidConnectProviderResult build() { - return new GetOpenidConnectProviderResult(arn, clientIdLists, id, tags, thumbprintLists, url); + } + public GetOpenidConnectProviderResult build() { + final var o = new GetOpenidConnectProviderResult(); + o.arn = arn; + o.clientIdLists = clientIdLists; + o.id = id; + o.tags = tags; + o.thumbprintLists = thumbprintLists; + o.url = url; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentResult.java index 511c163b8d1..82e6734f256 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentResult.java @@ -17,54 +17,33 @@ public final class GetPolicyDocumentResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Standard JSON policy document rendered based on the arguments above. * */ - private final String json; + private String json; /** * @deprecated * Use the attribute "override_policy_documents" instead. * */ @Deprecated /* Use the attribute ""override_policy_documents"" instead. */ - private final @Nullable String overrideJson; - private final @Nullable List overridePolicyDocuments; - private final @Nullable String policyId; + private @Nullable String overrideJson; + private @Nullable List overridePolicyDocuments; + private @Nullable String policyId; /** * @deprecated * Use the attribute "source_policy_documents" instead. * */ @Deprecated /* Use the attribute ""source_policy_documents"" instead. */ - private final @Nullable String sourceJson; - private final @Nullable List sourcePolicyDocuments; - private final @Nullable List statements; - private final @Nullable String version; - - @CustomType.Constructor - private GetPolicyDocumentResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("json") String json, - @CustomType.Parameter("overrideJson") @Nullable String overrideJson, - @CustomType.Parameter("overridePolicyDocuments") @Nullable List overridePolicyDocuments, - @CustomType.Parameter("policyId") @Nullable String policyId, - @CustomType.Parameter("sourceJson") @Nullable String sourceJson, - @CustomType.Parameter("sourcePolicyDocuments") @Nullable List sourcePolicyDocuments, - @CustomType.Parameter("statements") @Nullable List statements, - @CustomType.Parameter("version") @Nullable String version) { - this.id = id; - this.json = json; - this.overrideJson = overrideJson; - this.overridePolicyDocuments = overridePolicyDocuments; - this.policyId = policyId; - this.sourceJson = sourceJson; - this.sourcePolicyDocuments = sourcePolicyDocuments; - this.statements = statements; - this.version = version; - } + private @Nullable String sourceJson; + private @Nullable List sourcePolicyDocuments; + private @Nullable List statements; + private @Nullable String version; + private GetPolicyDocumentResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -120,7 +99,7 @@ public static Builder builder() { public static Builder builder(GetPolicyDocumentResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String json; @@ -131,11 +110,7 @@ public static final class Builder { private @Nullable List sourcePolicyDocuments; private @Nullable List statements; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPolicyDocumentResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -149,18 +124,22 @@ public Builder(GetPolicyDocumentResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder json(String json) { this.json = Objects.requireNonNull(json); return this; } + @CustomType.Setter public Builder overrideJson(@Nullable String overrideJson) { this.overrideJson = overrideJson; return this; } + @CustomType.Setter public Builder overridePolicyDocuments(@Nullable List overridePolicyDocuments) { this.overridePolicyDocuments = overridePolicyDocuments; return this; @@ -168,14 +147,17 @@ public Builder overridePolicyDocuments(@Nullable List overridePolicyDocu public Builder overridePolicyDocuments(String... overridePolicyDocuments) { return overridePolicyDocuments(List.of(overridePolicyDocuments)); } + @CustomType.Setter public Builder policyId(@Nullable String policyId) { this.policyId = policyId; return this; } + @CustomType.Setter public Builder sourceJson(@Nullable String sourceJson) { this.sourceJson = sourceJson; return this; } + @CustomType.Setter public Builder sourcePolicyDocuments(@Nullable List sourcePolicyDocuments) { this.sourcePolicyDocuments = sourcePolicyDocuments; return this; @@ -183,6 +165,7 @@ public Builder sourcePolicyDocuments(@Nullable List sourcePolicyDocument public Builder sourcePolicyDocuments(String... sourcePolicyDocuments) { return sourcePolicyDocuments(List.of(sourcePolicyDocuments)); } + @CustomType.Setter public Builder statements(@Nullable List statements) { this.statements = statements; return this; @@ -190,11 +173,23 @@ public Builder statements(@Nullable List statements) public Builder statements(GetPolicyDocumentStatement... statements) { return statements(List.of(statements)); } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public GetPolicyDocumentResult build() { - return new GetPolicyDocumentResult(id, json, overrideJson, overridePolicyDocuments, policyId, sourceJson, sourcePolicyDocuments, statements, version); + } + public GetPolicyDocumentResult build() { + final var o = new GetPolicyDocumentResult(); + o.id = id; + o.json = json; + o.overrideJson = overrideJson; + o.overridePolicyDocuments = overridePolicyDocuments; + o.policyId = policyId; + o.sourceJson = sourceJson; + o.sourcePolicyDocuments = sourcePolicyDocuments; + o.statements = statements; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatement.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatement.java index 282d822c3e7..5da1fe7d80f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatement.java @@ -19,70 +19,49 @@ public final class GetPolicyDocumentStatement { * @return List of actions that this statement either allows or denies. For example, `["ec2:RunInstances", "s3:*"]`. * */ - private final @Nullable List actions; + private @Nullable List actions; /** * @return Configuration block for a condition. Detailed below. * */ - private final @Nullable List conditions; + private @Nullable List conditions; /** * @return Whether this statement allows or denies the given actions. Valid values are `Allow` and `Deny`. Defaults to `Allow`. * */ - private final @Nullable String effect; + private @Nullable String effect; /** * @return List of actions that this statement does *not* apply to. Use to apply a policy statement to all actions *except* those listed. * */ - private final @Nullable List notActions; + private @Nullable List notActions; /** * @return Like `principals` except these are principals that the statement does *not* apply to. * */ - private final @Nullable List notPrincipals; + private @Nullable List notPrincipals; /** * @return List of resource ARNs that this statement does *not* apply to. Use to apply a policy statement to all resources *except* those listed. Conflicts with `resources`. * */ - private final @Nullable List notResources; + private @Nullable List notResources; /** * @return Configuration block for principals. Detailed below. * */ - private final @Nullable List principals; + private @Nullable List principals; /** * @return List of resource ARNs that this statement applies to. This is required by AWS if used for an IAM policy. Conflicts with `not_resources`. * */ - private final @Nullable List resources; + private @Nullable List resources; /** * @return Sid (statement ID) is an identifier for a policy statement. * */ - private final @Nullable String sid; - - @CustomType.Constructor - private GetPolicyDocumentStatement( - @CustomType.Parameter("actions") @Nullable List actions, - @CustomType.Parameter("conditions") @Nullable List conditions, - @CustomType.Parameter("effect") @Nullable String effect, - @CustomType.Parameter("notActions") @Nullable List notActions, - @CustomType.Parameter("notPrincipals") @Nullable List notPrincipals, - @CustomType.Parameter("notResources") @Nullable List notResources, - @CustomType.Parameter("principals") @Nullable List principals, - @CustomType.Parameter("resources") @Nullable List resources, - @CustomType.Parameter("sid") @Nullable String sid) { - this.actions = actions; - this.conditions = conditions; - this.effect = effect; - this.notActions = notActions; - this.notPrincipals = notPrincipals; - this.notResources = notResources; - this.principals = principals; - this.resources = resources; - this.sid = sid; - } + private @Nullable String sid; + private GetPolicyDocumentStatement() {} /** * @return List of actions that this statement either allows or denies. For example, `["ec2:RunInstances", "s3:*"]`. * @@ -154,7 +133,7 @@ public static Builder builder() { public static Builder builder(GetPolicyDocumentStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List actions; private @Nullable List conditions; @@ -165,11 +144,7 @@ public static final class Builder { private @Nullable List principals; private @Nullable List resources; private @Nullable String sid; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPolicyDocumentStatement defaults) { Objects.requireNonNull(defaults); this.actions = defaults.actions; @@ -183,6 +158,7 @@ public Builder(GetPolicyDocumentStatement defaults) { this.sid = defaults.sid; } + @CustomType.Setter public Builder actions(@Nullable List actions) { this.actions = actions; return this; @@ -190,6 +166,7 @@ public Builder actions(@Nullable List actions) { public Builder actions(String... actions) { return actions(List.of(actions)); } + @CustomType.Setter public Builder conditions(@Nullable List conditions) { this.conditions = conditions; return this; @@ -197,10 +174,12 @@ public Builder conditions(@Nullable List co public Builder conditions(GetPolicyDocumentStatementCondition... conditions) { return conditions(List.of(conditions)); } + @CustomType.Setter public Builder effect(@Nullable String effect) { this.effect = effect; return this; } + @CustomType.Setter public Builder notActions(@Nullable List notActions) { this.notActions = notActions; return this; @@ -208,6 +187,7 @@ public Builder notActions(@Nullable List notActions) { public Builder notActions(String... notActions) { return notActions(List.of(notActions)); } + @CustomType.Setter public Builder notPrincipals(@Nullable List notPrincipals) { this.notPrincipals = notPrincipals; return this; @@ -215,6 +195,7 @@ public Builder notPrincipals(@Nullable List notResources) { this.notResources = notResources; return this; @@ -222,6 +203,7 @@ public Builder notResources(@Nullable List notResources) { public Builder notResources(String... notResources) { return notResources(List.of(notResources)); } + @CustomType.Setter public Builder principals(@Nullable List principals) { this.principals = principals; return this; @@ -229,6 +211,7 @@ public Builder principals(@Nullable List pr public Builder principals(GetPolicyDocumentStatementPrincipal... principals) { return principals(List.of(principals)); } + @CustomType.Setter public Builder resources(@Nullable List resources) { this.resources = resources; return this; @@ -236,11 +219,23 @@ public Builder resources(@Nullable List resources) { public Builder resources(String... resources) { return resources(List.of(resources)); } + @CustomType.Setter public Builder sid(@Nullable String sid) { this.sid = sid; return this; - } public GetPolicyDocumentStatement build() { - return new GetPolicyDocumentStatement(actions, conditions, effect, notActions, notPrincipals, notResources, principals, resources, sid); + } + public GetPolicyDocumentStatement build() { + final var o = new GetPolicyDocumentStatement(); + o.actions = actions; + o.conditions = conditions; + o.effect = effect; + o.notActions = notActions; + o.notPrincipals = notPrincipals; + o.notResources = notResources; + o.principals = principals; + o.resources = resources; + o.sid = sid; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatementCondition.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatementCondition.java index b2a50a8b28f..125be85ca7d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatementCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatementCondition.java @@ -14,28 +14,19 @@ public final class GetPolicyDocumentStatementCondition { * @return Name of the [IAM condition operator](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html) to evaluate. * */ - private final String test; + private String test; /** * @return Values to evaluate the condition against. If multiple values are provided, the condition matches if at least one of them applies. That is, AWS evaluates multiple values as though using an "OR" boolean operation. * */ - private final List values; + private List values; /** * @return Name of a [Context Variable](http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html#AvailableKeys) to apply the condition to. Context variables may either be standard AWS variables starting with `aws:` or service-specific variables prefixed with the service name. * */ - private final String variable; - - @CustomType.Constructor - private GetPolicyDocumentStatementCondition( - @CustomType.Parameter("test") String test, - @CustomType.Parameter("values") List values, - @CustomType.Parameter("variable") String variable) { - this.test = test; - this.values = values; - this.variable = variable; - } + private String variable; + private GetPolicyDocumentStatementCondition() {} /** * @return Name of the [IAM condition operator](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html) to evaluate. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetPolicyDocumentStatementCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String test; private List values; private String variable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPolicyDocumentStatementCondition defaults) { Objects.requireNonNull(defaults); this.test = defaults.test; @@ -82,10 +69,12 @@ public Builder(GetPolicyDocumentStatementCondition defaults) { this.variable = defaults.variable; } + @CustomType.Setter public Builder test(String test) { this.test = Objects.requireNonNull(test); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; @@ -93,11 +82,17 @@ public Builder values(List values) { public Builder values(String... values) { return values(List.of(values)); } + @CustomType.Setter public Builder variable(String variable) { this.variable = Objects.requireNonNull(variable); return this; - } public GetPolicyDocumentStatementCondition build() { - return new GetPolicyDocumentStatementCondition(test, values, variable); + } + public GetPolicyDocumentStatementCondition build() { + final var o = new GetPolicyDocumentStatementCondition(); + o.test = test; + o.values = values; + o.variable = variable; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatementNotPrincipal.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatementNotPrincipal.java index 6cf270add1d..b1c638af571 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatementNotPrincipal.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatementNotPrincipal.java @@ -14,21 +14,14 @@ public final class GetPolicyDocumentStatementNotPrincipal { * @return List of identifiers for principals. When `type` is `AWS`, these are IAM principal ARNs, e.g., `arn:aws:iam::12345678901:role/yak-role`. When `type` is `Service`, these are AWS Service roles, e.g., `lambda.amazonaws.com`. When `type` is `Federated`, these are web identity users or SAML provider ARNs, e.g., `accounts.google.com` or `arn:aws:iam::12345678901:saml-provider/yak-saml-provider`. When `type` is `CanonicalUser`, these are [canonical user IDs](https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId), e.g., `79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be`. * */ - private final List identifiers; + private List identifiers; /** * @return Type of principal. Valid values include `AWS`, `Service`, `Federated`, `CanonicalUser` and `*`. * */ - private final String type; - - @CustomType.Constructor - private GetPolicyDocumentStatementNotPrincipal( - @CustomType.Parameter("identifiers") List identifiers, - @CustomType.Parameter("type") String type) { - this.identifiers = identifiers; - this.type = type; - } + private String type; + private GetPolicyDocumentStatementNotPrincipal() {} /** * @return List of identifiers for principals. When `type` is `AWS`, these are IAM principal ARNs, e.g., `arn:aws:iam::12345678901:role/yak-role`. When `type` is `Service`, these are AWS Service roles, e.g., `lambda.amazonaws.com`. When `type` is `Federated`, these are web identity users or SAML provider ARNs, e.g., `accounts.google.com` or `arn:aws:iam::12345678901:saml-provider/yak-saml-provider`. When `type` is `CanonicalUser`, these are [canonical user IDs](https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId), e.g., `79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be`. * @@ -51,21 +44,18 @@ public static Builder builder() { public static Builder builder(GetPolicyDocumentStatementNotPrincipal defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List identifiers; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPolicyDocumentStatementNotPrincipal defaults) { Objects.requireNonNull(defaults); this.identifiers = defaults.identifiers; this.type = defaults.type; } + @CustomType.Setter public Builder identifiers(List identifiers) { this.identifiers = Objects.requireNonNull(identifiers); return this; @@ -73,11 +63,16 @@ public Builder identifiers(List identifiers) { public Builder identifiers(String... identifiers) { return identifiers(List.of(identifiers)); } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetPolicyDocumentStatementNotPrincipal build() { - return new GetPolicyDocumentStatementNotPrincipal(identifiers, type); + } + public GetPolicyDocumentStatementNotPrincipal build() { + final var o = new GetPolicyDocumentStatementNotPrincipal(); + o.identifiers = identifiers; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatementPrincipal.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatementPrincipal.java index 33538435ceb..cadf1cc32e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatementPrincipal.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyDocumentStatementPrincipal.java @@ -14,21 +14,14 @@ public final class GetPolicyDocumentStatementPrincipal { * @return List of identifiers for principals. When `type` is `AWS`, these are IAM principal ARNs, e.g., `arn:aws:iam::12345678901:role/yak-role`. When `type` is `Service`, these are AWS Service roles, e.g., `lambda.amazonaws.com`. When `type` is `Federated`, these are web identity users or SAML provider ARNs, e.g., `accounts.google.com` or `arn:aws:iam::12345678901:saml-provider/yak-saml-provider`. When `type` is `CanonicalUser`, these are [canonical user IDs](https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId), e.g., `79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be`. * */ - private final List identifiers; + private List identifiers; /** * @return Type of principal. Valid values include `AWS`, `Service`, `Federated`, `CanonicalUser` and `*`. * */ - private final String type; - - @CustomType.Constructor - private GetPolicyDocumentStatementPrincipal( - @CustomType.Parameter("identifiers") List identifiers, - @CustomType.Parameter("type") String type) { - this.identifiers = identifiers; - this.type = type; - } + private String type; + private GetPolicyDocumentStatementPrincipal() {} /** * @return List of identifiers for principals. When `type` is `AWS`, these are IAM principal ARNs, e.g., `arn:aws:iam::12345678901:role/yak-role`. When `type` is `Service`, these are AWS Service roles, e.g., `lambda.amazonaws.com`. When `type` is `Federated`, these are web identity users or SAML provider ARNs, e.g., `accounts.google.com` or `arn:aws:iam::12345678901:saml-provider/yak-saml-provider`. When `type` is `CanonicalUser`, these are [canonical user IDs](https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId), e.g., `79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be`. * @@ -51,21 +44,18 @@ public static Builder builder() { public static Builder builder(GetPolicyDocumentStatementPrincipal defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List identifiers; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPolicyDocumentStatementPrincipal defaults) { Objects.requireNonNull(defaults); this.identifiers = defaults.identifiers; this.type = defaults.type; } + @CustomType.Setter public Builder identifiers(List identifiers) { this.identifiers = Objects.requireNonNull(identifiers); return this; @@ -73,11 +63,16 @@ public Builder identifiers(List identifiers) { public Builder identifiers(String... identifiers) { return identifiers(List.of(identifiers)); } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetPolicyDocumentStatementPrincipal build() { - return new GetPolicyDocumentStatementPrincipal(identifiers, type); + } + public GetPolicyDocumentStatementPrincipal build() { + final var o = new GetPolicyDocumentStatementPrincipal(); + o.identifiers = identifiers; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyResult.java index c64fc02528b..3cf71894936 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetPolicyResult.java @@ -16,62 +16,41 @@ public final class GetPolicyResult { * @return The ARN of the policy. * */ - private final String arn; + private String arn; /** * @return The description of the policy. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return The path to the policy. * */ - private final String path; - private final @Nullable String pathPrefix; + private String path; + private @Nullable String pathPrefix; /** * @return The policy document of the policy. * */ - private final String policy; + private String policy; /** * @return The policy's ID. * */ - private final String policyId; + private String policyId; /** * @return Key-value mapping of tags for the IAM Policy. * */ - private final Map tags; - - @CustomType.Constructor - private GetPolicyResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("pathPrefix") @Nullable String pathPrefix, - @CustomType.Parameter("policy") String policy, - @CustomType.Parameter("policyId") String policyId, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.description = description; - this.id = id; - this.name = name; - this.path = path; - this.pathPrefix = pathPrefix; - this.policy = policy; - this.policyId = policyId; - this.tags = tags; - } + private Map tags; + private GetPolicyResult() {} /** * @return The ARN of the policy. * @@ -135,7 +114,7 @@ public static Builder builder() { public static Builder builder(GetPolicyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -146,11 +125,7 @@ public static final class Builder { private String policy; private String policyId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPolicyResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -164,43 +139,63 @@ public Builder(GetPolicyResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder pathPrefix(@Nullable String pathPrefix) { this.pathPrefix = pathPrefix; return this; } + @CustomType.Setter public Builder policy(String policy) { this.policy = Objects.requireNonNull(policy); return this; } + @CustomType.Setter public Builder policyId(String policyId) { this.policyId = Objects.requireNonNull(policyId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetPolicyResult build() { - return new GetPolicyResult(arn, description, id, name, path, pathPrefix, policy, policyId, tags); + } + public GetPolicyResult build() { + final var o = new GetPolicyResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.name = name; + o.path = path; + o.pathPrefix = pathPrefix; + o.policy = policy; + o.policyId = policyId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetRoleResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetRoleResult.java index 71bdcf2a243..2297c747ae2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetRoleResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetRoleResult.java @@ -15,80 +15,55 @@ public final class GetRoleResult { * @return The Amazon Resource Name (ARN) specifying the role. * */ - private final String arn; + private String arn; /** * @return The policy document associated with the role. * */ - private final String assumeRolePolicy; + private String assumeRolePolicy; /** * @return Creation date of the role in RFC 3339 format. * */ - private final String createDate; + private String createDate; /** * @return Description for the role. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Maximum session duration. * */ - private final Integer maxSessionDuration; - private final String name; + private Integer maxSessionDuration; + private String name; /** * @return The path to the role. * */ - private final String path; + private String path; /** * @return The ARN of the policy that is used to set the permissions boundary for the role. * */ - private final String permissionsBoundary; + private String permissionsBoundary; /** * @return The tags attached to the role. * */ - private final Map tags; + private Map tags; /** * @return The stable and unique string identifying the role. * */ - private final String uniqueId; - - @CustomType.Constructor - private GetRoleResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("assumeRolePolicy") String assumeRolePolicy, - @CustomType.Parameter("createDate") String createDate, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("maxSessionDuration") Integer maxSessionDuration, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("permissionsBoundary") String permissionsBoundary, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("uniqueId") String uniqueId) { - this.arn = arn; - this.assumeRolePolicy = assumeRolePolicy; - this.createDate = createDate; - this.description = description; - this.id = id; - this.maxSessionDuration = maxSessionDuration; - this.name = name; - this.path = path; - this.permissionsBoundary = permissionsBoundary; - this.tags = tags; - this.uniqueId = uniqueId; - } + private String uniqueId; + private GetRoleResult() {} /** * @return The Amazon Resource Name (ARN) specifying the role. * @@ -170,7 +145,7 @@ public static Builder builder() { public static Builder builder(GetRoleResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String assumeRolePolicy; @@ -183,11 +158,7 @@ public static final class Builder { private String permissionsBoundary; private Map tags; private String uniqueId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRoleResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -203,51 +174,75 @@ public Builder(GetRoleResult defaults) { this.uniqueId = defaults.uniqueId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder assumeRolePolicy(String assumeRolePolicy) { this.assumeRolePolicy = Objects.requireNonNull(assumeRolePolicy); return this; } + @CustomType.Setter public Builder createDate(String createDate) { this.createDate = Objects.requireNonNull(createDate); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder maxSessionDuration(Integer maxSessionDuration) { this.maxSessionDuration = Objects.requireNonNull(maxSessionDuration); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder permissionsBoundary(String permissionsBoundary) { this.permissionsBoundary = Objects.requireNonNull(permissionsBoundary); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder uniqueId(String uniqueId) { this.uniqueId = Objects.requireNonNull(uniqueId); return this; - } public GetRoleResult build() { - return new GetRoleResult(arn, assumeRolePolicy, createDate, description, id, maxSessionDuration, name, path, permissionsBoundary, tags, uniqueId); + } + public GetRoleResult build() { + final var o = new GetRoleResult(); + o.arn = arn; + o.assumeRolePolicy = assumeRolePolicy; + o.createDate = createDate; + o.description = description; + o.id = id; + o.maxSessionDuration = maxSessionDuration; + o.name = name; + o.path = path; + o.permissionsBoundary = permissionsBoundary; + o.tags = tags; + o.uniqueId = uniqueId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetRolesResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetRolesResult.java index 1f188bcc6a0..ba1857e62c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetRolesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetRolesResult.java @@ -16,34 +16,21 @@ public final class GetRolesResult { * @return Set of ARNs of the matched IAM roles. * */ - private final List arns; + private List arns; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String nameRegex; + private String id; + private @Nullable String nameRegex; /** * @return Set of Names of the matched IAM roles. * */ - private final List names; - private final @Nullable String pathPrefix; - - @CustomType.Constructor - private GetRolesResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("nameRegex") @Nullable String nameRegex, - @CustomType.Parameter("names") List names, - @CustomType.Parameter("pathPrefix") @Nullable String pathPrefix) { - this.arns = arns; - this.id = id; - this.nameRegex = nameRegex; - this.names = names; - this.pathPrefix = pathPrefix; - } + private List names; + private @Nullable String pathPrefix; + private GetRolesResult() {} /** * @return Set of ARNs of the matched IAM roles. * @@ -79,18 +66,14 @@ public static Builder builder() { public static Builder builder(GetRolesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private String id; private @Nullable String nameRegex; private List names; private @Nullable String pathPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRolesResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -100,6 +83,7 @@ public Builder(GetRolesResult defaults) { this.pathPrefix = defaults.pathPrefix; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -107,14 +91,17 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder nameRegex(@Nullable String nameRegex) { this.nameRegex = nameRegex; return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; @@ -122,11 +109,19 @@ public Builder names(List names) { public Builder names(String... names) { return names(List.of(names)); } + @CustomType.Setter public Builder pathPrefix(@Nullable String pathPrefix) { this.pathPrefix = pathPrefix; return this; - } public GetRolesResult build() { - return new GetRolesResult(arns, id, nameRegex, names, pathPrefix); + } + public GetRolesResult build() { + final var o = new GetRolesResult(); + o.arns = arns; + o.id = id; + o.nameRegex = nameRegex; + o.names = names; + o.pathPrefix = pathPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetSamlProviderResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetSamlProviderResult.java index 13dc23e70f8..f8560c06a40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetSamlProviderResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetSamlProviderResult.java @@ -10,56 +10,39 @@ @CustomType public final class GetSamlProviderResult { - private final String arn; + private String arn; /** * @return Creation date of the SAML provider in RFC1123 format, e.g. `Mon, 02 Jan 2006 15:04:05 MST`. * */ - private final String createDate; + private String createDate; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the provider. * */ - private final String name; + private String name; /** * @return The XML document generated by an identity provider that supports SAML 2.0. * */ - private final String samlMetadataDocument; + private String samlMetadataDocument; /** * @return The tags attached to the SAML provider. * */ - private final Map tags; + private Map tags; /** * @return The expiration date and time for the SAML provider in RFC1123 format, e.g. `Mon, 02 Jan 2007 15:04:05 MST`. * */ - private final String validUntil; - - @CustomType.Constructor - private GetSamlProviderResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createDate") String createDate, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("samlMetadataDocument") String samlMetadataDocument, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("validUntil") String validUntil) { - this.arn = arn; - this.createDate = createDate; - this.id = id; - this.name = name; - this.samlMetadataDocument = samlMetadataDocument; - this.tags = tags; - this.validUntil = validUntil; - } + private String validUntil; + private GetSamlProviderResult() {} public String arn() { return this.arn; } @@ -113,7 +96,7 @@ public static Builder builder() { public static Builder builder(GetSamlProviderResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String createDate; @@ -122,11 +105,7 @@ public static final class Builder { private String samlMetadataDocument; private Map tags; private String validUntil; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSamlProviderResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -138,35 +117,51 @@ public Builder(GetSamlProviderResult defaults) { this.validUntil = defaults.validUntil; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createDate(String createDate) { this.createDate = Objects.requireNonNull(createDate); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder samlMetadataDocument(String samlMetadataDocument) { this.samlMetadataDocument = Objects.requireNonNull(samlMetadataDocument); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder validUntil(String validUntil) { this.validUntil = Objects.requireNonNull(validUntil); return this; - } public GetSamlProviderResult build() { - return new GetSamlProviderResult(arn, createDate, id, name, samlMetadataDocument, tags, validUntil); + } + public GetSamlProviderResult build() { + final var o = new GetSamlProviderResult(); + o.arn = arn; + o.createDate = createDate; + o.id = id; + o.name = name; + o.samlMetadataDocument = samlMetadataDocument; + o.tags = tags; + o.validUntil = validUntil; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetServerCertificateResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetServerCertificateResult.java index 4f4bbb59510..df06e9734fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetServerCertificateResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetServerCertificateResult.java @@ -12,48 +12,23 @@ @CustomType public final class GetServerCertificateResult { - private final String arn; - private final String certificateBody; - private final String certificateChain; - private final String expirationDate; + private String arn; + private String certificateBody; + private String certificateChain; + private String expirationDate; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable Boolean latest; - private final String name; - private final @Nullable String namePrefix; - private final String path; - private final @Nullable String pathPrefix; - private final String uploadDate; - - @CustomType.Constructor - private GetServerCertificateResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("certificateBody") String certificateBody, - @CustomType.Parameter("certificateChain") String certificateChain, - @CustomType.Parameter("expirationDate") String expirationDate, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("latest") @Nullable Boolean latest, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("namePrefix") @Nullable String namePrefix, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("pathPrefix") @Nullable String pathPrefix, - @CustomType.Parameter("uploadDate") String uploadDate) { - this.arn = arn; - this.certificateBody = certificateBody; - this.certificateChain = certificateChain; - this.expirationDate = expirationDate; - this.id = id; - this.latest = latest; - this.name = name; - this.namePrefix = namePrefix; - this.path = path; - this.pathPrefix = pathPrefix; - this.uploadDate = uploadDate; - } + private String id; + private @Nullable Boolean latest; + private String name; + private @Nullable String namePrefix; + private String path; + private @Nullable String pathPrefix; + private String uploadDate; + private GetServerCertificateResult() {} public String arn() { return this.arn; } @@ -99,7 +74,7 @@ public static Builder builder() { public static Builder builder(GetServerCertificateResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String certificateBody; @@ -112,11 +87,7 @@ public static final class Builder { private String path; private @Nullable String pathPrefix; private String uploadDate; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServerCertificateResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -132,51 +103,75 @@ public Builder(GetServerCertificateResult defaults) { this.uploadDate = defaults.uploadDate; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder certificateBody(String certificateBody) { this.certificateBody = Objects.requireNonNull(certificateBody); return this; } + @CustomType.Setter public Builder certificateChain(String certificateChain) { this.certificateChain = Objects.requireNonNull(certificateChain); return this; } + @CustomType.Setter public Builder expirationDate(String expirationDate) { this.expirationDate = Objects.requireNonNull(expirationDate); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder latest(@Nullable Boolean latest) { this.latest = latest; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder namePrefix(@Nullable String namePrefix) { this.namePrefix = namePrefix; return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder pathPrefix(@Nullable String pathPrefix) { this.pathPrefix = pathPrefix; return this; } + @CustomType.Setter public Builder uploadDate(String uploadDate) { this.uploadDate = Objects.requireNonNull(uploadDate); return this; - } public GetServerCertificateResult build() { - return new GetServerCertificateResult(arn, certificateBody, certificateChain, expirationDate, id, latest, name, namePrefix, path, pathPrefix, uploadDate); + } + public GetServerCertificateResult build() { + final var o = new GetServerCertificateResult(); + o.arn = arn; + o.certificateBody = certificateBody; + o.certificateChain = certificateChain; + o.expirationDate = expirationDate; + o.id = id; + o.latest = latest; + o.name = name; + o.namePrefix = namePrefix; + o.path = path; + o.pathPrefix = pathPrefix; + o.uploadDate = uploadDate; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetSessionContextResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetSessionContextResult.java index b5e5e902e86..ae2d8395368 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetSessionContextResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetSessionContextResult.java @@ -9,49 +9,34 @@ @CustomType public final class GetSessionContextResult { - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return IAM source role ARN if `arn` corresponds to an STS assumed role. Otherwise, `issuer_arn` is equal to `arn`. * */ - private final String issuerArn; + private String issuerArn; /** * @return Unique identifier of the IAM role that issues the STS assumed role. * */ - private final String issuerId; + private String issuerId; /** * @return Name of the source role. Only available if `arn` corresponds to an STS assumed role. * */ - private final String issuerName; + private String issuerName; /** * @return Name of the STS session. Only available if `arn` corresponds to an STS assumed role. * */ - private final String sessionName; - - @CustomType.Constructor - private GetSessionContextResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("issuerArn") String issuerArn, - @CustomType.Parameter("issuerId") String issuerId, - @CustomType.Parameter("issuerName") String issuerName, - @CustomType.Parameter("sessionName") String sessionName) { - this.arn = arn; - this.id = id; - this.issuerArn = issuerArn; - this.issuerId = issuerId; - this.issuerName = issuerName; - this.sessionName = sessionName; - } + private String sessionName; + private GetSessionContextResult() {} public String arn() { return this.arn; } @@ -98,7 +83,7 @@ public static Builder builder() { public static Builder builder(GetSessionContextResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; @@ -106,11 +91,7 @@ public static final class Builder { private String issuerId; private String issuerName; private String sessionName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSessionContextResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -121,31 +102,45 @@ public Builder(GetSessionContextResult defaults) { this.sessionName = defaults.sessionName; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder issuerArn(String issuerArn) { this.issuerArn = Objects.requireNonNull(issuerArn); return this; } + @CustomType.Setter public Builder issuerId(String issuerId) { this.issuerId = Objects.requireNonNull(issuerId); return this; } + @CustomType.Setter public Builder issuerName(String issuerName) { this.issuerName = Objects.requireNonNull(issuerName); return this; } + @CustomType.Setter public Builder sessionName(String sessionName) { this.sessionName = Objects.requireNonNull(sessionName); return this; - } public GetSessionContextResult build() { - return new GetSessionContextResult(arn, id, issuerArn, issuerId, issuerName, sessionName); + } + public GetSessionContextResult build() { + final var o = new GetSessionContextResult(); + o.arn = arn; + o.id = id; + o.issuerArn = issuerArn; + o.issuerId = issuerId; + o.issuerName = issuerName; + o.sessionName = sessionName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetUserResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetUserResult.java index 423c3b0b67e..0e84abaa90b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetUserResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetUserResult.java @@ -14,56 +14,39 @@ public final class GetUserResult { * @return The Amazon Resource Name (ARN) assigned by AWS for this user. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Path in which this user was created. * */ - private final String path; + private String path; /** * @return The ARN of the policy that is used to set the permissions boundary for the user. * */ - private final String permissionsBoundary; + private String permissionsBoundary; /** * @return Map of key-value pairs associated with the user. * */ - private final Map tags; + private Map tags; /** * @return The unique ID assigned by AWS for this user. * */ - private final String userId; + private String userId; /** * @return The name associated to this User * */ - private final String userName; - - @CustomType.Constructor - private GetUserResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("permissionsBoundary") String permissionsBoundary, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("userId") String userId, - @CustomType.Parameter("userName") String userName) { - this.arn = arn; - this.id = id; - this.path = path; - this.permissionsBoundary = permissionsBoundary; - this.tags = tags; - this.userId = userId; - this.userName = userName; - } + private String userName; + private GetUserResult() {} /** * @return The Amazon Resource Name (ARN) assigned by AWS for this user. * @@ -121,7 +104,7 @@ public static Builder builder() { public static Builder builder(GetUserResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; @@ -130,11 +113,7 @@ public static final class Builder { private Map tags; private String userId; private String userName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -146,35 +125,51 @@ public Builder(GetUserResult defaults) { this.userName = defaults.userName; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder permissionsBoundary(String permissionsBoundary) { this.permissionsBoundary = Objects.requireNonNull(permissionsBoundary); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder userId(String userId) { this.userId = Objects.requireNonNull(userId); return this; } + @CustomType.Setter public Builder userName(String userName) { this.userName = Objects.requireNonNull(userName); return this; - } public GetUserResult build() { - return new GetUserResult(arn, id, path, permissionsBoundary, tags, userId, userName); + } + public GetUserResult build() { + final var o = new GetUserResult(); + o.arn = arn; + o.id = id; + o.path = path; + o.permissionsBoundary = permissionsBoundary; + o.tags = tags; + o.userId = userId; + o.userName = userName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetUserSshKeyResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetUserSshKeyResult.java index 26c139ef234..df29734823c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetUserSshKeyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetUserSshKeyResult.java @@ -9,48 +9,31 @@ @CustomType public final class GetUserSshKeyResult { - private final String encoding; + private String encoding; /** * @return The MD5 message digest of the SSH public key. * */ - private final String fingerprint; + private String fingerprint; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The SSH public key. * */ - private final String publicKey; - private final String sshPublicKeyId; + private String publicKey; + private String sshPublicKeyId; /** * @return The status of the SSH public key. Active means that the key can be used for authentication with an CodeCommit repository. Inactive means that the key cannot be used. * */ - private final String status; - private final String username; - - @CustomType.Constructor - private GetUserSshKeyResult( - @CustomType.Parameter("encoding") String encoding, - @CustomType.Parameter("fingerprint") String fingerprint, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("publicKey") String publicKey, - @CustomType.Parameter("sshPublicKeyId") String sshPublicKeyId, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("username") String username) { - this.encoding = encoding; - this.fingerprint = fingerprint; - this.id = id; - this.publicKey = publicKey; - this.sshPublicKeyId = sshPublicKeyId; - this.status = status; - this.username = username; - } + private String status; + private String username; + private GetUserSshKeyResult() {} public String encoding() { return this.encoding; } @@ -96,7 +79,7 @@ public static Builder builder() { public static Builder builder(GetUserSshKeyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String encoding; private String fingerprint; @@ -105,11 +88,7 @@ public static final class Builder { private String sshPublicKeyId; private String status; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserSshKeyResult defaults) { Objects.requireNonNull(defaults); this.encoding = defaults.encoding; @@ -121,35 +100,51 @@ public Builder(GetUserSshKeyResult defaults) { this.username = defaults.username; } + @CustomType.Setter public Builder encoding(String encoding) { this.encoding = Objects.requireNonNull(encoding); return this; } + @CustomType.Setter public Builder fingerprint(String fingerprint) { this.fingerprint = Objects.requireNonNull(fingerprint); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder publicKey(String publicKey) { this.publicKey = Objects.requireNonNull(publicKey); return this; } + @CustomType.Setter public Builder sshPublicKeyId(String sshPublicKeyId) { this.sshPublicKeyId = Objects.requireNonNull(sshPublicKeyId); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public GetUserSshKeyResult build() { - return new GetUserSshKeyResult(encoding, fingerprint, id, publicKey, sshPublicKeyId, status, username); + } + public GetUserSshKeyResult build() { + final var o = new GetUserSshKeyResult(); + o.encoding = encoding; + o.fingerprint = fingerprint; + o.id = id; + o.publicKey = publicKey; + o.sshPublicKeyId = sshPublicKeyId; + o.status = status; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetUsersResult.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetUsersResult.java index becf142c444..daa634d5bf1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetUsersResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/GetUsersResult.java @@ -16,34 +16,21 @@ public final class GetUsersResult { * @return Set of ARNs of the matched IAM users. * */ - private final List arns; + private List arns; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String nameRegex; + private String id; + private @Nullable String nameRegex; /** * @return Set of Names of the matched IAM users. * */ - private final List names; - private final @Nullable String pathPrefix; - - @CustomType.Constructor - private GetUsersResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("nameRegex") @Nullable String nameRegex, - @CustomType.Parameter("names") List names, - @CustomType.Parameter("pathPrefix") @Nullable String pathPrefix) { - this.arns = arns; - this.id = id; - this.nameRegex = nameRegex; - this.names = names; - this.pathPrefix = pathPrefix; - } + private List names; + private @Nullable String pathPrefix; + private GetUsersResult() {} /** * @return Set of ARNs of the matched IAM users. * @@ -79,18 +66,14 @@ public static Builder builder() { public static Builder builder(GetUsersResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private String id; private @Nullable String nameRegex; private List names; private @Nullable String pathPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUsersResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -100,6 +83,7 @@ public Builder(GetUsersResult defaults) { this.pathPrefix = defaults.pathPrefix; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -107,14 +91,17 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder nameRegex(@Nullable String nameRegex) { this.nameRegex = nameRegex; return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; @@ -122,11 +109,19 @@ public Builder names(List names) { public Builder names(String... names) { return names(List.of(names)); } + @CustomType.Setter public Builder pathPrefix(@Nullable String pathPrefix) { this.pathPrefix = pathPrefix; return this; - } public GetUsersResult build() { - return new GetUsersResult(arns, id, nameRegex, names, pathPrefix); + } + public GetUsersResult build() { + final var o = new GetUsersResult(); + o.arns = arns; + o.id = id; + o.nameRegex = nameRegex; + o.names = names; + o.pathPrefix = pathPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/RoleInlinePolicy.java b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/RoleInlinePolicy.java index ab286be2b33..edc4d2c1fad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/RoleInlinePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iam/outputs/RoleInlinePolicy.java @@ -15,21 +15,14 @@ public final class RoleInlinePolicy { * @return Name of the role policy. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Policy document as a JSON formatted string. * */ - private final @Nullable String policy; - - @CustomType.Constructor - private RoleInlinePolicy( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("policy") @Nullable String policy) { - this.name = name; - this.policy = policy; - } + private @Nullable String policy; + private RoleInlinePolicy() {} /** * @return Name of the role policy. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(RoleInlinePolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String policy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RoleInlinePolicy defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.policy = defaults.policy; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder policy(@Nullable String policy) { this.policy = policy; return this; - } public RoleInlinePolicy build() { - return new RoleInlinePolicy(name, policy); + } + public RoleInlinePolicy build() { + final var o = new RoleInlinePolicy(); + o.name = name; + o.policy = policy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetGroupFilter.java b/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetGroupFilter.java index 213a742e34e..2c2b72a6784 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetGroupFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetGroupFilter.java @@ -13,21 +13,14 @@ public final class GetGroupFilter { * @return The attribute path that is used to specify which attribute name to search. Currently, `DisplayName` is the only valid attribute path. * */ - private final String attributePath; + private String attributePath; /** * @return The value for an attribute. * */ - private final String attributeValue; - - @CustomType.Constructor - private GetGroupFilter( - @CustomType.Parameter("attributePath") String attributePath, - @CustomType.Parameter("attributeValue") String attributeValue) { - this.attributePath = attributePath; - this.attributeValue = attributeValue; - } + private String attributeValue; + private GetGroupFilter() {} /** * @return The attribute path that is used to specify which attribute name to search. Currently, `DisplayName` is the only valid attribute path. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetGroupFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String attributePath; private String attributeValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetGroupFilter defaults) { Objects.requireNonNull(defaults); this.attributePath = defaults.attributePath; this.attributeValue = defaults.attributeValue; } + @CustomType.Setter public Builder attributePath(String attributePath) { this.attributePath = Objects.requireNonNull(attributePath); return this; } + @CustomType.Setter public Builder attributeValue(String attributeValue) { this.attributeValue = Objects.requireNonNull(attributeValue); return this; - } public GetGroupFilter build() { - return new GetGroupFilter(attributePath, attributeValue); + } + public GetGroupFilter build() { + final var o = new GetGroupFilter(); + o.attributePath = attributePath; + o.attributeValue = attributeValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetGroupResult.java index 01b711c89a8..02172de2683 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetGroupResult.java @@ -15,30 +15,17 @@ public final class GetGroupResult { * @return The group's display name value. * */ - private final String displayName; - private final List filters; - private final String groupId; + private String displayName; + private List filters; + private String groupId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String identityStoreId; - - @CustomType.Constructor - private GetGroupResult( - @CustomType.Parameter("displayName") String displayName, - @CustomType.Parameter("filters") List filters, - @CustomType.Parameter("groupId") String groupId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("identityStoreId") String identityStoreId) { - this.displayName = displayName; - this.filters = filters; - this.groupId = groupId; - this.id = id; - this.identityStoreId = identityStoreId; - } + private String id; + private String identityStoreId; + private GetGroupResult() {} /** * @return The group's display name value. * @@ -70,18 +57,14 @@ public static Builder builder() { public static Builder builder(GetGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String displayName; private List filters; private String groupId; private String id; private String identityStoreId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetGroupResult defaults) { Objects.requireNonNull(defaults); this.displayName = defaults.displayName; @@ -91,10 +74,12 @@ public Builder(GetGroupResult defaults) { this.identityStoreId = defaults.identityStoreId; } + @CustomType.Setter public Builder displayName(String displayName) { this.displayName = Objects.requireNonNull(displayName); return this; } + @CustomType.Setter public Builder filters(List filters) { this.filters = Objects.requireNonNull(filters); return this; @@ -102,19 +87,29 @@ public Builder filters(List filters) { public Builder filters(GetGroupFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder groupId(String groupId) { this.groupId = Objects.requireNonNull(groupId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder identityStoreId(String identityStoreId) { this.identityStoreId = Objects.requireNonNull(identityStoreId); return this; - } public GetGroupResult build() { - return new GetGroupResult(displayName, filters, groupId, id, identityStoreId); + } + public GetGroupResult build() { + final var o = new GetGroupResult(); + o.displayName = displayName; + o.filters = filters; + o.groupId = groupId; + o.id = id; + o.identityStoreId = identityStoreId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetUserFilter.java b/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetUserFilter.java index add18b198d7..2531e8985bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetUserFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetUserFilter.java @@ -13,21 +13,14 @@ public final class GetUserFilter { * @return The attribute path that is used to specify which attribute name to search. Currently, `UserName` is the only valid attribute path. * */ - private final String attributePath; + private String attributePath; /** * @return The value for an attribute. * */ - private final String attributeValue; - - @CustomType.Constructor - private GetUserFilter( - @CustomType.Parameter("attributePath") String attributePath, - @CustomType.Parameter("attributeValue") String attributeValue) { - this.attributePath = attributePath; - this.attributeValue = attributeValue; - } + private String attributeValue; + private GetUserFilter() {} /** * @return The attribute path that is used to specify which attribute name to search. Currently, `UserName` is the only valid attribute path. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetUserFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String attributePath; private String attributeValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserFilter defaults) { Objects.requireNonNull(defaults); this.attributePath = defaults.attributePath; this.attributeValue = defaults.attributeValue; } + @CustomType.Setter public Builder attributePath(String attributePath) { this.attributePath = Objects.requireNonNull(attributePath); return this; } + @CustomType.Setter public Builder attributeValue(String attributeValue) { this.attributeValue = Objects.requireNonNull(attributeValue); return this; - } public GetUserFilter build() { - return new GetUserFilter(attributePath, attributeValue); + } + public GetUserFilter build() { + final var o = new GetUserFilter(); + o.attributePath = attributePath; + o.attributeValue = attributeValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetUserResult.java b/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetUserResult.java index c0a2471860d..bb26033ff13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetUserResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/identitystore/outputs/GetUserResult.java @@ -11,34 +11,21 @@ @CustomType public final class GetUserResult { - private final List filters; + private List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String identityStoreId; - private final String userId; + private String id; + private String identityStoreId; + private String userId; /** * @return The user's user name value. * */ - private final String userName; - - @CustomType.Constructor - private GetUserResult( - @CustomType.Parameter("filters") List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("identityStoreId") String identityStoreId, - @CustomType.Parameter("userId") String userId, - @CustomType.Parameter("userName") String userName) { - this.filters = filters; - this.id = id; - this.identityStoreId = identityStoreId; - this.userId = userId; - this.userName = userName; - } + private String userName; + private GetUserResult() {} public List filters() { return this.filters; } @@ -70,18 +57,14 @@ public static Builder builder() { public static Builder builder(GetUserResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List filters; private String id; private String identityStoreId; private String userId; private String userName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -91,6 +74,7 @@ public Builder(GetUserResult defaults) { this.userName = defaults.userName; } + @CustomType.Setter public Builder filters(List filters) { this.filters = Objects.requireNonNull(filters); return this; @@ -98,23 +82,34 @@ public Builder filters(List filters) { public Builder filters(GetUserFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder identityStoreId(String identityStoreId) { this.identityStoreId = Objects.requireNonNull(identityStoreId); return this; } + @CustomType.Setter public Builder userId(String userId) { this.userId = Objects.requireNonNull(userId); return this; } + @CustomType.Setter public Builder userName(String userName) { this.userName = Objects.requireNonNull(userName); return this; - } public GetUserResult build() { - return new GetUserResult(filters, id, identityStoreId, userId, userName); + } + public GetUserResult build() { + final var o = new GetUserResult(); + o.filters = filters; + o.id = id; + o.identityStoreId = identityStoreId; + o.userId = userId; + o.userName = userName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ContainerRecipeComponent.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ContainerRecipeComponent.java index c7538baf0ef..eb162dab816 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ContainerRecipeComponent.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ContainerRecipeComponent.java @@ -16,21 +16,14 @@ public final class ContainerRecipeComponent { * @return Amazon Resource Name (ARN) of the Image Builder Component to associate. * */ - private final String componentArn; + private String componentArn; /** * @return Configuration block(s) for parameters to configure the component. Detailed below. * */ - private final @Nullable List parameters; - - @CustomType.Constructor - private ContainerRecipeComponent( - @CustomType.Parameter("componentArn") String componentArn, - @CustomType.Parameter("parameters") @Nullable List parameters) { - this.componentArn = componentArn; - this.parameters = parameters; - } + private @Nullable List parameters; + private ContainerRecipeComponent() {} /** * @return Amazon Resource Name (ARN) of the Image Builder Component to associate. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(ContainerRecipeComponent defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String componentArn; private @Nullable List parameters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ContainerRecipeComponent defaults) { Objects.requireNonNull(defaults); this.componentArn = defaults.componentArn; this.parameters = defaults.parameters; } + @CustomType.Setter public Builder componentArn(String componentArn) { this.componentArn = Objects.requireNonNull(componentArn); return this; } + @CustomType.Setter public Builder parameters(@Nullable List parameters) { this.parameters = parameters; return this; } public Builder parameters(ContainerRecipeComponentParameter... parameters) { return parameters(List.of(parameters)); - } public ContainerRecipeComponent build() { - return new ContainerRecipeComponent(componentArn, parameters); + } + public ContainerRecipeComponent build() { + final var o = new ContainerRecipeComponent(); + o.componentArn = componentArn; + o.parameters = parameters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ContainerRecipeComponentParameter.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ContainerRecipeComponentParameter.java index 90bcc4f039f..ce5dbc14284 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ContainerRecipeComponentParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ContainerRecipeComponentParameter.java @@ -13,21 +13,14 @@ public final class ContainerRecipeComponentParameter { * @return The name of the component parameter. * */ - private final String name; + private String name; /** * @return The value for the named component parameter. * */ - private final String value; - - @CustomType.Constructor - private ContainerRecipeComponentParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private ContainerRecipeComponentParameter() {} /** * @return The name of the component parameter. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ContainerRecipeComponentParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ContainerRecipeComponentParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ContainerRecipeComponentParameter build() { - return new ContainerRecipeComponentParameter(name, value); + } + public ContainerRecipeComponentParameter build() { + final var o = new ContainerRecipeComponentParameter(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ContainerRecipeInstanceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ContainerRecipeInstanceConfiguration.java index ab7dd59ef2f..a080679aaff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ContainerRecipeInstanceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ContainerRecipeInstanceConfiguration.java @@ -17,21 +17,14 @@ public final class ContainerRecipeInstanceConfiguration { * @return Configuration block(s) with block device mappings for the the container recipe. Detailed below. * */ - private final @Nullable List blockDeviceMappings; + private @Nullable List blockDeviceMappings; /** * @return The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image. * */ - private final @Nullable String image; - - @CustomType.Constructor - private ContainerRecipeInstanceConfiguration( - @CustomType.Parameter("blockDeviceMappings") @Nullable List blockDeviceMappings, - @CustomType.Parameter("image") @Nullable String image) { - this.blockDeviceMappings = blockDeviceMappings; - this.image = image; - } + private @Nullable String image; + private ContainerRecipeInstanceConfiguration() {} /** * @return Configuration block(s) with block device mappings for the the container recipe. Detailed below. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(ContainerRecipeInstanceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List blockDeviceMappings; private @Nullable String image; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ContainerRecipeInstanceConfiguration defaults) { Objects.requireNonNull(defaults); this.blockDeviceMappings = defaults.blockDeviceMappings; this.image = defaults.image; } + @CustomType.Setter public Builder blockDeviceMappings(@Nullable List blockDeviceMappings) { this.blockDeviceMappings = blockDeviceMappings; return this; @@ -76,11 +66,16 @@ public Builder blockDeviceMappings(@Nullable List fastLaunchConfigurations; + private @Nullable List fastLaunchConfigurations; /** * @return Set of launch template configuration settings that apply to image distribution. Detailed below. * */ - private final @Nullable List launchTemplateConfigurations; + private @Nullable List launchTemplateConfigurations; /** * @return Set of Amazon Resource Names (ARNs) of License Manager License Configurations. * */ - private final @Nullable List licenseConfigurationArns; + private @Nullable List licenseConfigurationArns; /** * @return AWS Region for the distribution. * */ - private final String region; - - @CustomType.Constructor - private DistributionConfigurationDistribution( - @CustomType.Parameter("amiDistributionConfiguration") @Nullable DistributionConfigurationDistributionAmiDistributionConfiguration amiDistributionConfiguration, - @CustomType.Parameter("containerDistributionConfiguration") @Nullable DistributionConfigurationDistributionContainerDistributionConfiguration containerDistributionConfiguration, - @CustomType.Parameter("fastLaunchConfigurations") @Nullable List fastLaunchConfigurations, - @CustomType.Parameter("launchTemplateConfigurations") @Nullable List launchTemplateConfigurations, - @CustomType.Parameter("licenseConfigurationArns") @Nullable List licenseConfigurationArns, - @CustomType.Parameter("region") String region) { - this.amiDistributionConfiguration = amiDistributionConfiguration; - this.containerDistributionConfiguration = containerDistributionConfiguration; - this.fastLaunchConfigurations = fastLaunchConfigurations; - this.launchTemplateConfigurations = launchTemplateConfigurations; - this.licenseConfigurationArns = licenseConfigurationArns; - this.region = region; - } + private String region; + private DistributionConfigurationDistribution() {} /** * @return Configuration block with Amazon Machine Image (AMI) distribution settings. Detailed below. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(DistributionConfigurationDistribution defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DistributionConfigurationDistributionAmiDistributionConfiguration amiDistributionConfiguration; private @Nullable DistributionConfigurationDistributionContainerDistributionConfiguration containerDistributionConfiguration; @@ -121,11 +106,7 @@ public static final class Builder { private @Nullable List launchTemplateConfigurations; private @Nullable List licenseConfigurationArns; private String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionConfigurationDistribution defaults) { Objects.requireNonNull(defaults); this.amiDistributionConfiguration = defaults.amiDistributionConfiguration; @@ -136,14 +117,17 @@ public Builder(DistributionConfigurationDistribution defaults) { this.region = defaults.region; } + @CustomType.Setter public Builder amiDistributionConfiguration(@Nullable DistributionConfigurationDistributionAmiDistributionConfiguration amiDistributionConfiguration) { this.amiDistributionConfiguration = amiDistributionConfiguration; return this; } + @CustomType.Setter public Builder containerDistributionConfiguration(@Nullable DistributionConfigurationDistributionContainerDistributionConfiguration containerDistributionConfiguration) { this.containerDistributionConfiguration = containerDistributionConfiguration; return this; } + @CustomType.Setter public Builder fastLaunchConfigurations(@Nullable List fastLaunchConfigurations) { this.fastLaunchConfigurations = fastLaunchConfigurations; return this; @@ -151,6 +135,7 @@ public Builder fastLaunchConfigurations(@Nullable List launchTemplateConfigurations) { this.launchTemplateConfigurations = launchTemplateConfigurations; return this; @@ -158,6 +143,7 @@ public Builder launchTemplateConfigurations(@Nullable List licenseConfigurationArns) { this.licenseConfigurationArns = licenseConfigurationArns; return this; @@ -165,11 +151,20 @@ public Builder licenseConfigurationArns(@Nullable List licenseConfigurat public Builder licenseConfigurationArns(String... licenseConfigurationArns) { return licenseConfigurationArns(List.of(licenseConfigurationArns)); } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; - } public DistributionConfigurationDistribution build() { - return new DistributionConfigurationDistribution(amiDistributionConfiguration, containerDistributionConfiguration, fastLaunchConfigurations, launchTemplateConfigurations, licenseConfigurationArns, region); + } + public DistributionConfigurationDistribution build() { + final var o = new DistributionConfigurationDistribution(); + o.amiDistributionConfiguration = amiDistributionConfiguration; + o.containerDistributionConfiguration = containerDistributionConfiguration; + o.fastLaunchConfigurations = fastLaunchConfigurations; + o.launchTemplateConfigurations = launchTemplateConfigurations; + o.licenseConfigurationArns = licenseConfigurationArns; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionAmiDistributionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionAmiDistributionConfiguration.java index 43722766042..75311c6dc97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionAmiDistributionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionAmiDistributionConfiguration.java @@ -18,49 +18,34 @@ public final class DistributionConfigurationDistributionAmiDistributionConfigura * @return Key-value map of tags to apply to the distributed AMI. * */ - private final @Nullable Map amiTags; + private @Nullable Map amiTags; /** * @return Description of the container distribution configuration. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return Amazon Resource Name (ARN) of the Key Management Service (KMS) Key to encrypt the distributed AMI. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return Configuration block of EC2 launch permissions to apply to the distributed AMI. Detailed below. * */ - private final @Nullable DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission launchPermission; + private @Nullable DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission launchPermission; /** * @return Name to apply to the distributed AMI. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Set of AWS Account identifiers to distribute the AMI. * */ - private final @Nullable List targetAccountIds; - - @CustomType.Constructor - private DistributionConfigurationDistributionAmiDistributionConfiguration( - @CustomType.Parameter("amiTags") @Nullable Map amiTags, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("launchPermission") @Nullable DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission launchPermission, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("targetAccountIds") @Nullable List targetAccountIds) { - this.amiTags = amiTags; - this.description = description; - this.kmsKeyId = kmsKeyId; - this.launchPermission = launchPermission; - this.name = name; - this.targetAccountIds = targetAccountIds; - } + private @Nullable List targetAccountIds; + private DistributionConfigurationDistributionAmiDistributionConfiguration() {} /** * @return Key-value map of tags to apply to the distributed AMI. * @@ -111,7 +96,7 @@ public static Builder builder() { public static Builder builder(DistributionConfigurationDistributionAmiDistributionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map amiTags; private @Nullable String description; @@ -119,11 +104,7 @@ public static final class Builder { private @Nullable DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission launchPermission; private @Nullable String name; private @Nullable List targetAccountIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionConfigurationDistributionAmiDistributionConfiguration defaults) { Objects.requireNonNull(defaults); this.amiTags = defaults.amiTags; @@ -134,34 +115,48 @@ public Builder(DistributionConfigurationDistributionAmiDistributionConfiguration this.targetAccountIds = defaults.targetAccountIds; } + @CustomType.Setter public Builder amiTags(@Nullable Map amiTags) { this.amiTags = amiTags; return this; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder launchPermission(@Nullable DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission launchPermission) { this.launchPermission = launchPermission; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder targetAccountIds(@Nullable List targetAccountIds) { this.targetAccountIds = targetAccountIds; return this; } public Builder targetAccountIds(String... targetAccountIds) { return targetAccountIds(List.of(targetAccountIds)); - } public DistributionConfigurationDistributionAmiDistributionConfiguration build() { - return new DistributionConfigurationDistributionAmiDistributionConfiguration(amiTags, description, kmsKeyId, launchPermission, name, targetAccountIds); + } + public DistributionConfigurationDistributionAmiDistributionConfiguration build() { + final var o = new DistributionConfigurationDistributionAmiDistributionConfiguration(); + o.amiTags = amiTags; + o.description = description; + o.kmsKeyId = kmsKeyId; + o.launchPermission = launchPermission; + o.name = name; + o.targetAccountIds = targetAccountIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission.java index 43676c4a705..88914736208 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission.java @@ -15,35 +15,24 @@ public final class DistributionConfigurationDistributionAmiDistributionConfigura * @return Set of AWS Organization ARNs to assign. * */ - private final @Nullable List organizationArns; + private @Nullable List organizationArns; /** * @return Set of AWS Organizational Unit ARNs to assign. * */ - private final @Nullable List organizationalUnitArns; + private @Nullable List organizationalUnitArns; /** * @return Set of EC2 launch permission user groups to assign. Use `all` to distribute a public AMI. * */ - private final @Nullable List userGroups; + private @Nullable List userGroups; /** * @return Set of AWS Account identifiers to assign. * */ - private final @Nullable List userIds; - - @CustomType.Constructor - private DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission( - @CustomType.Parameter("organizationArns") @Nullable List organizationArns, - @CustomType.Parameter("organizationalUnitArns") @Nullable List organizationalUnitArns, - @CustomType.Parameter("userGroups") @Nullable List userGroups, - @CustomType.Parameter("userIds") @Nullable List userIds) { - this.organizationArns = organizationArns; - this.organizationalUnitArns = organizationalUnitArns; - this.userGroups = userGroups; - this.userIds = userIds; - } + private @Nullable List userIds; + private DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission() {} /** * @return Set of AWS Organization ARNs to assign. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List organizationArns; private @Nullable List organizationalUnitArns; private @Nullable List userGroups; private @Nullable List userIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission defaults) { Objects.requireNonNull(defaults); this.organizationArns = defaults.organizationArns; @@ -99,6 +84,7 @@ public Builder(DistributionConfigurationDistributionAmiDistributionConfiguration this.userIds = defaults.userIds; } + @CustomType.Setter public Builder organizationArns(@Nullable List organizationArns) { this.organizationArns = organizationArns; return this; @@ -106,6 +92,7 @@ public Builder organizationArns(@Nullable List organizationArns) { public Builder organizationArns(String... organizationArns) { return organizationArns(List.of(organizationArns)); } + @CustomType.Setter public Builder organizationalUnitArns(@Nullable List organizationalUnitArns) { this.organizationalUnitArns = organizationalUnitArns; return this; @@ -113,6 +100,7 @@ public Builder organizationalUnitArns(@Nullable List organizationalUnitA public Builder organizationalUnitArns(String... organizationalUnitArns) { return organizationalUnitArns(List.of(organizationalUnitArns)); } + @CustomType.Setter public Builder userGroups(@Nullable List userGroups) { this.userGroups = userGroups; return this; @@ -120,14 +108,21 @@ public Builder userGroups(@Nullable List userGroups) { public Builder userGroups(String... userGroups) { return userGroups(List.of(userGroups)); } + @CustomType.Setter public Builder userIds(@Nullable List userIds) { this.userIds = userIds; return this; } public Builder userIds(String... userIds) { return userIds(List.of(userIds)); - } public DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission build() { - return new DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission(organizationArns, organizationalUnitArns, userGroups, userIds); + } + public DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission build() { + final var o = new DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission(); + o.organizationArns = organizationArns; + o.organizationalUnitArns = organizationalUnitArns; + o.userGroups = userGroups; + o.userIds = userIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionContainerDistributionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionContainerDistributionConfiguration.java index 615cb9ba630..d895f22b2b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionContainerDistributionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionContainerDistributionConfiguration.java @@ -17,28 +17,19 @@ public final class DistributionConfigurationDistributionContainerDistributionCon * @return Set of tags that are attached to the container distribution configuration. * */ - private final @Nullable List containerTags; + private @Nullable List containerTags; /** * @return Description of the container distribution configuration. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return Configuration block with the destination repository for the container distribution configuration. * */ - private final DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository targetRepository; - - @CustomType.Constructor - private DistributionConfigurationDistributionContainerDistributionConfiguration( - @CustomType.Parameter("containerTags") @Nullable List containerTags, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("targetRepository") DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository targetRepository) { - this.containerTags = containerTags; - this.description = description; - this.targetRepository = targetRepository; - } + private DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository targetRepository; + private DistributionConfigurationDistributionContainerDistributionConfiguration() {} /** * @return Set of tags that are attached to the container distribution configuration. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(DistributionConfigurationDistributionContainerDistributionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List containerTags; private @Nullable String description; private DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository targetRepository; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionConfigurationDistributionContainerDistributionConfiguration defaults) { Objects.requireNonNull(defaults); this.containerTags = defaults.containerTags; @@ -85,6 +72,7 @@ public Builder(DistributionConfigurationDistributionContainerDistributionConfigu this.targetRepository = defaults.targetRepository; } + @CustomType.Setter public Builder containerTags(@Nullable List containerTags) { this.containerTags = containerTags; return this; @@ -92,15 +80,22 @@ public Builder containerTags(@Nullable List containerTags) { public Builder containerTags(String... containerTags) { return containerTags(List.of(containerTags)); } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder targetRepository(DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository targetRepository) { this.targetRepository = Objects.requireNonNull(targetRepository); return this; - } public DistributionConfigurationDistributionContainerDistributionConfiguration build() { - return new DistributionConfigurationDistributionContainerDistributionConfiguration(containerTags, description, targetRepository); + } + public DistributionConfigurationDistributionContainerDistributionConfiguration build() { + final var o = new DistributionConfigurationDistributionContainerDistributionConfiguration(); + o.containerTags = containerTags; + o.description = description; + o.targetRepository = targetRepository; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository.java index 44ebfc3b528..67263259b93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository.java @@ -13,21 +13,14 @@ public final class DistributionConfigurationDistributionContainerDistributionCon * @return The name of the container repository where the output container image is stored. This name is prefixed by the repository location. * */ - private final String repositoryName; + private String repositoryName; /** * @return The service in which this image is registered. Valid values: `ECR`. * */ - private final String service; - - @CustomType.Constructor - private DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository( - @CustomType.Parameter("repositoryName") String repositoryName, - @CustomType.Parameter("service") String service) { - this.repositoryName = repositoryName; - this.service = service; - } + private String service; + private DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository() {} /** * @return The name of the container repository where the output container image is stored. This name is prefixed by the repository location. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String repositoryName; private String service; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository defaults) { Objects.requireNonNull(defaults); this.repositoryName = defaults.repositoryName; this.service = defaults.service; } + @CustomType.Setter public Builder repositoryName(String repositoryName) { this.repositoryName = Objects.requireNonNull(repositoryName); return this; } + @CustomType.Setter public Builder service(String service) { this.service = Objects.requireNonNull(service); return this; - } public DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository build() { - return new DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository(repositoryName, service); + } + public DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository build() { + final var o = new DistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository(); + o.repositoryName = repositoryName; + o.service = service; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionFastLaunchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionFastLaunchConfiguration.java index 9ae08aebcec..7fb86166507 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionFastLaunchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionFastLaunchConfiguration.java @@ -19,42 +19,29 @@ public final class DistributionConfigurationDistributionFastLaunchConfiguration * @return The account ID that this configuration applies to. * */ - private final String accountId; + private String accountId; /** * @return A Boolean that represents the current state of faster launching for the Windows AMI. Set to `true` to start using Windows faster launching, or `false` to stop using it. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return Configuration block for the launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. Detailed below. * */ - private final @Nullable DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate launchTemplate; + private @Nullable DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate launchTemplate; /** * @return The maximum number of parallel instances that are launched for creating resources. * */ - private final @Nullable Integer maxParallelLaunches; + private @Nullable Integer maxParallelLaunches; /** * @return Configuration block for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. Detailed below. * */ - private final @Nullable DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration snapshotConfiguration; - - @CustomType.Constructor - private DistributionConfigurationDistributionFastLaunchConfiguration( - @CustomType.Parameter("accountId") String accountId, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("launchTemplate") @Nullable DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate launchTemplate, - @CustomType.Parameter("maxParallelLaunches") @Nullable Integer maxParallelLaunches, - @CustomType.Parameter("snapshotConfiguration") @Nullable DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration snapshotConfiguration) { - this.accountId = accountId; - this.enabled = enabled; - this.launchTemplate = launchTemplate; - this.maxParallelLaunches = maxParallelLaunches; - this.snapshotConfiguration = snapshotConfiguration; - } + private @Nullable DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration snapshotConfiguration; + private DistributionConfigurationDistributionFastLaunchConfiguration() {} /** * @return The account ID that this configuration applies to. * @@ -98,18 +85,14 @@ public static Builder builder() { public static Builder builder(DistributionConfigurationDistributionFastLaunchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accountId; private Boolean enabled; private @Nullable DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate launchTemplate; private @Nullable Integer maxParallelLaunches; private @Nullable DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration snapshotConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionConfigurationDistributionFastLaunchConfiguration defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; @@ -119,27 +102,39 @@ public Builder(DistributionConfigurationDistributionFastLaunchConfiguration defa this.snapshotConfiguration = defaults.snapshotConfiguration; } + @CustomType.Setter public Builder accountId(String accountId) { this.accountId = Objects.requireNonNull(accountId); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder launchTemplate(@Nullable DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate launchTemplate) { this.launchTemplate = launchTemplate; return this; } + @CustomType.Setter public Builder maxParallelLaunches(@Nullable Integer maxParallelLaunches) { this.maxParallelLaunches = maxParallelLaunches; return this; } + @CustomType.Setter public Builder snapshotConfiguration(@Nullable DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration snapshotConfiguration) { this.snapshotConfiguration = snapshotConfiguration; return this; - } public DistributionConfigurationDistributionFastLaunchConfiguration build() { - return new DistributionConfigurationDistributionFastLaunchConfiguration(accountId, enabled, launchTemplate, maxParallelLaunches, snapshotConfiguration); + } + public DistributionConfigurationDistributionFastLaunchConfiguration build() { + final var o = new DistributionConfigurationDistributionFastLaunchConfiguration(); + o.accountId = accountId; + o.enabled = enabled; + o.launchTemplate = launchTemplate; + o.maxParallelLaunches = maxParallelLaunches; + o.snapshotConfiguration = snapshotConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate.java index 3558478cdef..366dc832b18 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate.java @@ -15,28 +15,19 @@ public final class DistributionConfigurationDistributionFastLaunchConfigurationL * @return The ID of the Amazon EC2 launch template to use. * */ - private final @Nullable String launchTemplateId; + private @Nullable String launchTemplateId; /** * @return The name of the launch template to use for faster launching for a Windows AMI. * */ - private final @Nullable String launchTemplateName; + private @Nullable String launchTemplateName; /** * @return The version of the launch template to use for faster launching for a Windows AMI. * */ - private final @Nullable String launchTemplateVersion; - - @CustomType.Constructor - private DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate( - @CustomType.Parameter("launchTemplateId") @Nullable String launchTemplateId, - @CustomType.Parameter("launchTemplateName") @Nullable String launchTemplateName, - @CustomType.Parameter("launchTemplateVersion") @Nullable String launchTemplateVersion) { - this.launchTemplateId = launchTemplateId; - this.launchTemplateName = launchTemplateName; - this.launchTemplateVersion = launchTemplateVersion; - } + private @Nullable String launchTemplateVersion; + private DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate() {} /** * @return The ID of the Amazon EC2 launch template to use. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String launchTemplateId; private @Nullable String launchTemplateName; private @Nullable String launchTemplateVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate defaults) { Objects.requireNonNull(defaults); this.launchTemplateId = defaults.launchTemplateId; @@ -83,19 +70,27 @@ public Builder(DistributionConfigurationDistributionFastLaunchConfigurationLaunc this.launchTemplateVersion = defaults.launchTemplateVersion; } + @CustomType.Setter public Builder launchTemplateId(@Nullable String launchTemplateId) { this.launchTemplateId = launchTemplateId; return this; } + @CustomType.Setter public Builder launchTemplateName(@Nullable String launchTemplateName) { this.launchTemplateName = launchTemplateName; return this; } + @CustomType.Setter public Builder launchTemplateVersion(@Nullable String launchTemplateVersion) { this.launchTemplateVersion = launchTemplateVersion; return this; - } public DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate build() { - return new DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate(launchTemplateId, launchTemplateName, launchTemplateVersion); + } + public DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate build() { + final var o = new DistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate(); + o.launchTemplateId = launchTemplateId; + o.launchTemplateName = launchTemplateName; + o.launchTemplateVersion = launchTemplateVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration.java index 7881e21c3bc..fbdf7eb2c39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration.java @@ -15,13 +15,9 @@ public final class DistributionConfigurationDistributionFastLaunchConfigurationS * @return The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI. * */ - private final @Nullable Integer targetResourceCount; - - @CustomType.Constructor - private DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration(@CustomType.Parameter("targetResourceCount") @Nullable Integer targetResourceCount) { - this.targetResourceCount = targetResourceCount; - } + private @Nullable Integer targetResourceCount; + private DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration() {} /** * @return The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer targetResourceCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration defaults) { Objects.requireNonNull(defaults); this.targetResourceCount = defaults.targetResourceCount; } + @CustomType.Setter public Builder targetResourceCount(@Nullable Integer targetResourceCount) { this.targetResourceCount = targetResourceCount; return this; - } public DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration build() { - return new DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration(targetResourceCount); + } + public DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration build() { + final var o = new DistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration(); + o.targetResourceCount = targetResourceCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionLaunchTemplateConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionLaunchTemplateConfiguration.java index 1cb28e722d3..fb0839d160e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionLaunchTemplateConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/DistributionConfigurationDistributionLaunchTemplateConfiguration.java @@ -16,28 +16,19 @@ public final class DistributionConfigurationDistributionLaunchTemplateConfigurat * @return The account ID that this configuration applies to. * */ - private final @Nullable String accountId; + private @Nullable String accountId; /** * @return Indicates whether to set the specified Amazon EC2 launch template as the default launch template. Defaults to `true`. * */ - private final @Nullable Boolean default_; + private @Nullable Boolean default_; /** * @return The ID of the Amazon EC2 launch template to use. * */ - private final String launchTemplateId; - - @CustomType.Constructor - private DistributionConfigurationDistributionLaunchTemplateConfiguration( - @CustomType.Parameter("accountId") @Nullable String accountId, - @CustomType.Parameter("default") @Nullable Boolean default_, - @CustomType.Parameter("launchTemplateId") String launchTemplateId) { - this.accountId = accountId; - this.default_ = default_; - this.launchTemplateId = launchTemplateId; - } + private String launchTemplateId; + private DistributionConfigurationDistributionLaunchTemplateConfiguration() {} /** * @return The account ID that this configuration applies to. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(DistributionConfigurationDistributionLaunchTemplateConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accountId; private @Nullable Boolean default_; private String launchTemplateId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DistributionConfigurationDistributionLaunchTemplateConfiguration defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; @@ -84,19 +71,27 @@ public Builder(DistributionConfigurationDistributionLaunchTemplateConfiguration this.launchTemplateId = defaults.launchTemplateId; } + @CustomType.Setter public Builder accountId(@Nullable String accountId) { this.accountId = accountId; return this; } + @CustomType.Setter("default") public Builder default_(@Nullable Boolean default_) { this.default_ = default_; return this; } + @CustomType.Setter public Builder launchTemplateId(String launchTemplateId) { this.launchTemplateId = Objects.requireNonNull(launchTemplateId); return this; - } public DistributionConfigurationDistributionLaunchTemplateConfiguration build() { - return new DistributionConfigurationDistributionLaunchTemplateConfiguration(accountId, default_, launchTemplateId); + } + public DistributionConfigurationDistributionLaunchTemplateConfiguration build() { + final var o = new DistributionConfigurationDistributionLaunchTemplateConfiguration(); + o.accountId = accountId; + o.default_ = default_; + o.launchTemplateId = launchTemplateId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetComponentResult.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetComponentResult.java index d439a26d777..747857d7717 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetComponentResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetComponentResult.java @@ -12,112 +12,79 @@ @CustomType public final class GetComponentResult { - private final String arn; + private String arn; /** * @return Change description of the component. * */ - private final String changeDescription; + private String changeDescription; /** * @return Data of the component. * */ - private final String data; + private String data; /** * @return Date the component was created. * */ - private final String dateCreated; + private String dateCreated; /** * @return Description of the component. * */ - private final String description; + private String description; /** * @return Encryption status of the component. * */ - private final Boolean encrypted; + private Boolean encrypted; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Amazon Resource Name (ARN) of the Key Management Service (KMS) Key used to encrypt the component. * */ - private final String kmsKeyId; + private String kmsKeyId; /** * @return Name of the component. * */ - private final String name; + private String name; /** * @return Owner of the component. * */ - private final String owner; + private String owner; /** * @return Platform of the component. * */ - private final String platform; + private String platform; /** * @return Operating Systems (OSes) supported by the component. * */ - private final List supportedOsVersions; + private List supportedOsVersions; /** * @return Key-value map of resource tags for the component. * */ - private final Map tags; + private Map tags; /** * @return Type of the component. * */ - private final String type; + private String type; /** * @return Version of the component. * */ - private final String version; - - @CustomType.Constructor - private GetComponentResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("changeDescription") String changeDescription, - @CustomType.Parameter("data") String data, - @CustomType.Parameter("dateCreated") String dateCreated, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("owner") String owner, - @CustomType.Parameter("platform") String platform, - @CustomType.Parameter("supportedOsVersions") List supportedOsVersions, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("version") String version) { - this.arn = arn; - this.changeDescription = changeDescription; - this.data = data; - this.dateCreated = dateCreated; - this.description = description; - this.encrypted = encrypted; - this.id = id; - this.kmsKeyId = kmsKeyId; - this.name = name; - this.owner = owner; - this.platform = platform; - this.supportedOsVersions = supportedOsVersions; - this.tags = tags; - this.type = type; - this.version = version; - } + private String version; + private GetComponentResult() {} public String arn() { return this.arn; } @@ -227,7 +194,7 @@ public static Builder builder() { public static Builder builder(GetComponentResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String changeDescription; @@ -244,11 +211,7 @@ public static final class Builder { private Map tags; private String type; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetComponentResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -268,50 +231,62 @@ public Builder(GetComponentResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder changeDescription(String changeDescription) { this.changeDescription = Objects.requireNonNull(changeDescription); return this; } + @CustomType.Setter public Builder data(String data) { this.data = Objects.requireNonNull(data); return this; } + @CustomType.Setter public Builder dateCreated(String dateCreated) { this.dateCreated = Objects.requireNonNull(dateCreated); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder owner(String owner) { this.owner = Objects.requireNonNull(owner); return this; } + @CustomType.Setter public Builder platform(String platform) { this.platform = Objects.requireNonNull(platform); return this; } + @CustomType.Setter public Builder supportedOsVersions(List supportedOsVersions) { this.supportedOsVersions = Objects.requireNonNull(supportedOsVersions); return this; @@ -319,19 +294,39 @@ public Builder supportedOsVersions(List supportedOsVersions) { public Builder supportedOsVersions(String... supportedOsVersions) { return supportedOsVersions(List.of(supportedOsVersions)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public GetComponentResult build() { - return new GetComponentResult(arn, changeDescription, data, dateCreated, description, encrypted, id, kmsKeyId, name, owner, platform, supportedOsVersions, tags, type, version); + } + public GetComponentResult build() { + final var o = new GetComponentResult(); + o.arn = arn; + o.changeDescription = changeDescription; + o.data = data; + o.dateCreated = dateCreated; + o.description = description; + o.encrypted = encrypted; + o.id = id; + o.kmsKeyId = kmsKeyId; + o.name = name; + o.owner = owner; + o.platform = platform; + o.supportedOsVersions = supportedOsVersions; + o.tags = tags; + o.type = type; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetComponentsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetComponentsFilter.java index 3e61e5dee1f..8cccedacc51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetComponentsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetComponentsFilter.java @@ -14,21 +14,14 @@ public final class GetComponentsFilter { * @return The name of the filter field. Valid values can be found in the [Image Builder ListComponents API Reference](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_ListComponents.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetComponentsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetComponentsFilter() {} /** * @return The name of the filter field. Valid values can be found in the [Image Builder ListComponents API Reference](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_ListComponents.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetComponentsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetComponentsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetComponentsFilter build() { - return new GetComponentsFilter(name, values); + } + public GetComponentsFilter build() { + final var o = new GetComponentsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetComponentsResult.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetComponentsResult.java index 5332f24af0d..36aa20dedd9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetComponentsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetComponentsResult.java @@ -17,34 +17,21 @@ public final class GetComponentsResult { * @return Set of ARNs of the matched Image Builder Components. * */ - private final List arns; - private final @Nullable List filters; + private List arns; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of names of the matched Image Builder Components. * */ - private final List names; - private final @Nullable String owner; - - @CustomType.Constructor - private GetComponentsResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names, - @CustomType.Parameter("owner") @Nullable String owner) { - this.arns = arns; - this.filters = filters; - this.id = id; - this.names = names; - this.owner = owner; - } + private List names; + private @Nullable String owner; + private GetComponentsResult() {} /** * @return Set of ARNs of the matched Image Builder Components. * @@ -80,18 +67,14 @@ public static Builder builder() { public static Builder builder(GetComponentsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private @Nullable List filters; private String id; private List names; private @Nullable String owner; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetComponentsResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -101,6 +84,7 @@ public Builder(GetComponentsResult defaults) { this.owner = defaults.owner; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -108,6 +92,7 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -115,10 +100,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetComponentsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; @@ -126,11 +113,19 @@ public Builder names(List names) { public Builder names(String... names) { return names(List.of(names)); } + @CustomType.Setter public Builder owner(@Nullable String owner) { this.owner = owner; return this; - } public GetComponentsResult build() { - return new GetComponentsResult(arns, filters, id, names, owner); + } + public GetComponentsResult build() { + final var o = new GetComponentsResult(); + o.arns = arns; + o.filters = filters; + o.id = id; + o.names = names; + o.owner = owner; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeComponent.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeComponent.java index 8cc2d2e4510..75da84a8a81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeComponent.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeComponent.java @@ -15,21 +15,14 @@ public final class GetContainerRecipeComponent { * @return Amazon Resource Name (ARN) of the Image Builder Component. * */ - private final String componentArn; + private String componentArn; /** * @return Set of parameters that are used to configure the component. * */ - private final List parameters; - - @CustomType.Constructor - private GetContainerRecipeComponent( - @CustomType.Parameter("componentArn") String componentArn, - @CustomType.Parameter("parameters") List parameters) { - this.componentArn = componentArn; - this.parameters = parameters; - } + private List parameters; + private GetContainerRecipeComponent() {} /** * @return Amazon Resource Name (ARN) of the Image Builder Component. * @@ -52,33 +45,35 @@ public static Builder builder() { public static Builder builder(GetContainerRecipeComponent defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String componentArn; private List parameters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetContainerRecipeComponent defaults) { Objects.requireNonNull(defaults); this.componentArn = defaults.componentArn; this.parameters = defaults.parameters; } + @CustomType.Setter public Builder componentArn(String componentArn) { this.componentArn = Objects.requireNonNull(componentArn); return this; } + @CustomType.Setter public Builder parameters(List parameters) { this.parameters = Objects.requireNonNull(parameters); return this; } public Builder parameters(GetContainerRecipeComponentParameter... parameters) { return parameters(List.of(parameters)); - } public GetContainerRecipeComponent build() { - return new GetContainerRecipeComponent(componentArn, parameters); + } + public GetContainerRecipeComponent build() { + final var o = new GetContainerRecipeComponent(); + o.componentArn = componentArn; + o.parameters = parameters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeComponentParameter.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeComponentParameter.java index 003253743e2..b6d7157428e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeComponentParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeComponentParameter.java @@ -13,21 +13,14 @@ public final class GetContainerRecipeComponentParameter { * @return Name of the container recipe. * */ - private final String name; + private String name; /** * @return Value of the component parameter. * */ - private final String value; - - @CustomType.Constructor - private GetContainerRecipeComponentParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private GetContainerRecipeComponentParameter() {} /** * @return Name of the container recipe. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetContainerRecipeComponentParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetContainerRecipeComponentParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetContainerRecipeComponentParameter build() { - return new GetContainerRecipeComponentParameter(name, value); + } + public GetContainerRecipeComponentParameter build() { + final var o = new GetContainerRecipeComponentParameter(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeInstanceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeInstanceConfiguration.java index 8123ee70ab2..2031e4d8ef3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeInstanceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeInstanceConfiguration.java @@ -15,21 +15,14 @@ public final class GetContainerRecipeInstanceConfiguration { * @return Set of objects with block device mappings for the instance configuration. * */ - private final List blockDeviceMappings; + private List blockDeviceMappings; /** * @return AMI ID of the base image for container build and test instance. * */ - private final String image; - - @CustomType.Constructor - private GetContainerRecipeInstanceConfiguration( - @CustomType.Parameter("blockDeviceMappings") List blockDeviceMappings, - @CustomType.Parameter("image") String image) { - this.blockDeviceMappings = blockDeviceMappings; - this.image = image; - } + private String image; + private GetContainerRecipeInstanceConfiguration() {} /** * @return Set of objects with block device mappings for the instance configuration. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(GetContainerRecipeInstanceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List blockDeviceMappings; private String image; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetContainerRecipeInstanceConfiguration defaults) { Objects.requireNonNull(defaults); this.blockDeviceMappings = defaults.blockDeviceMappings; this.image = defaults.image; } + @CustomType.Setter public Builder blockDeviceMappings(List blockDeviceMappings) { this.blockDeviceMappings = Objects.requireNonNull(blockDeviceMappings); return this; @@ -74,11 +64,16 @@ public Builder blockDeviceMappings(List ebs; + private List ebs; /** * @return Whether to remove a mapping from the parent image. * */ - private final String noDevice; + private String noDevice; /** * @return Virtual device name. For example, `ephemeral0`. Instance store volumes are numbered starting from 0. * */ - private final String virtualName; - - @CustomType.Constructor - private GetContainerRecipeInstanceConfigurationBlockDeviceMapping( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("ebs") List ebs, - @CustomType.Parameter("noDevice") String noDevice, - @CustomType.Parameter("virtualName") String virtualName) { - this.deviceName = deviceName; - this.ebs = ebs; - this.noDevice = noDevice; - this.virtualName = virtualName; - } + private String virtualName; + private GetContainerRecipeInstanceConfigurationBlockDeviceMapping() {} /** * @return Name of the device. For example, `/dev/sda` or `/dev/xvdb`. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(GetContainerRecipeInstanceConfigurationBlockDeviceMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private List ebs; private String noDevice; private String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetContainerRecipeInstanceConfigurationBlockDeviceMapping defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; @@ -99,10 +84,12 @@ public Builder(GetContainerRecipeInstanceConfigurationBlockDeviceMapping default this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder ebs(List ebs) { this.ebs = Objects.requireNonNull(ebs); return this; @@ -110,15 +97,23 @@ public Builder ebs(List components; + private List components; /** * @return Type of the container. * */ - private final String containerType; + private String containerType; /** * @return Date the container recipe was created. * */ - private final String dateCreated; + private String dateCreated; /** * @return Description of the container recipe. * */ - private final String description; + private String description; /** * @return Dockerfile template used to build the image. * */ - private final String dockerfileTemplateData; + private String dockerfileTemplateData; /** * @return Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. * */ - private final Boolean encrypted; + private Boolean encrypted; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return List of objects with instance configurations for building and testing container images. * */ - private final List instanceConfigurations; + private List instanceConfigurations; /** * @return KMS key used to encrypt the container image. * */ - private final String kmsKeyId; + private String kmsKeyId; /** * @return Name of the container recipe. * */ - private final String name; + private String name; /** * @return Owner of the container recipe. * */ - private final String owner; + private String owner; /** * @return Base image for the container recipe. * */ - private final String parentImage; + private String parentImage; /** * @return Platform of the container recipe. * */ - private final String platform; + private String platform; /** * @return Key-value map of resource tags for the container recipe. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return Destination repository for the container image. * */ - private final List targetRepositories; + private List targetRepositories; /** * @return Version of the container recipe. * */ - private final String version; + private String version; /** * @return The working directory used during build and test workflows. * */ - private final String workingDirectory; - - @CustomType.Constructor - private GetContainerRecipeResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("components") List components, - @CustomType.Parameter("containerType") String containerType, - @CustomType.Parameter("dateCreated") String dateCreated, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("dockerfileTemplateData") String dockerfileTemplateData, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceConfigurations") List instanceConfigurations, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("owner") String owner, - @CustomType.Parameter("parentImage") String parentImage, - @CustomType.Parameter("platform") String platform, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("targetRepositories") List targetRepositories, - @CustomType.Parameter("version") String version, - @CustomType.Parameter("workingDirectory") String workingDirectory) { - this.arn = arn; - this.components = components; - this.containerType = containerType; - this.dateCreated = dateCreated; - this.description = description; - this.dockerfileTemplateData = dockerfileTemplateData; - this.encrypted = encrypted; - this.id = id; - this.instanceConfigurations = instanceConfigurations; - this.kmsKeyId = kmsKeyId; - this.name = name; - this.owner = owner; - this.parentImage = parentImage; - this.platform = platform; - this.tags = tags; - this.targetRepositories = targetRepositories; - this.version = version; - this.workingDirectory = workingDirectory; - } + private String workingDirectory; + private GetContainerRecipeResult() {} public String arn() { return this.arn; } @@ -273,7 +234,7 @@ public static Builder builder() { public static Builder builder(GetContainerRecipeResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List components; @@ -293,11 +254,7 @@ public static final class Builder { private List targetRepositories; private String version; private String workingDirectory; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetContainerRecipeResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -320,10 +277,12 @@ public Builder(GetContainerRecipeResult defaults) { this.workingDirectory = defaults.workingDirectory; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder components(List components) { this.components = Objects.requireNonNull(components); return this; @@ -331,30 +290,37 @@ public Builder components(List components) { public Builder components(GetContainerRecipeComponent... components) { return components(List.of(components)); } + @CustomType.Setter public Builder containerType(String containerType) { this.containerType = Objects.requireNonNull(containerType); return this; } + @CustomType.Setter public Builder dateCreated(String dateCreated) { this.dateCreated = Objects.requireNonNull(dateCreated); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder dockerfileTemplateData(String dockerfileTemplateData) { this.dockerfileTemplateData = Objects.requireNonNull(dockerfileTemplateData); return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceConfigurations(List instanceConfigurations) { this.instanceConfigurations = Objects.requireNonNull(instanceConfigurations); return this; @@ -362,30 +328,37 @@ public Builder instanceConfigurations(List tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder targetRepositories(List targetRepositories) { this.targetRepositories = Objects.requireNonNull(targetRepositories); return this; @@ -393,15 +366,37 @@ public Builder targetRepositories(List targe public Builder targetRepositories(GetContainerRecipeTargetRepository... targetRepositories) { return targetRepositories(List.of(targetRepositories)); } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; } + @CustomType.Setter public Builder workingDirectory(String workingDirectory) { this.workingDirectory = Objects.requireNonNull(workingDirectory); return this; - } public GetContainerRecipeResult build() { - return new GetContainerRecipeResult(arn, components, containerType, dateCreated, description, dockerfileTemplateData, encrypted, id, instanceConfigurations, kmsKeyId, name, owner, parentImage, platform, tags, targetRepositories, version, workingDirectory); + } + public GetContainerRecipeResult build() { + final var o = new GetContainerRecipeResult(); + o.arn = arn; + o.components = components; + o.containerType = containerType; + o.dateCreated = dateCreated; + o.description = description; + o.dockerfileTemplateData = dockerfileTemplateData; + o.encrypted = encrypted; + o.id = id; + o.instanceConfigurations = instanceConfigurations; + o.kmsKeyId = kmsKeyId; + o.name = name; + o.owner = owner; + o.parentImage = parentImage; + o.platform = platform; + o.tags = tags; + o.targetRepositories = targetRepositories; + o.version = version; + o.workingDirectory = workingDirectory; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeTargetRepository.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeTargetRepository.java index c012570d716..a91b9f42b2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeTargetRepository.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipeTargetRepository.java @@ -13,21 +13,14 @@ public final class GetContainerRecipeTargetRepository { * @return Name of the container repository where the output container image is stored. The name is prefixed by the repository location. * */ - private final String repositoryName; + private String repositoryName; /** * @return Service in which this image is registered. * */ - private final String service; - - @CustomType.Constructor - private GetContainerRecipeTargetRepository( - @CustomType.Parameter("repositoryName") String repositoryName, - @CustomType.Parameter("service") String service) { - this.repositoryName = repositoryName; - this.service = service; - } + private String service; + private GetContainerRecipeTargetRepository() {} /** * @return Name of the container repository where the output container image is stored. The name is prefixed by the repository location. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetContainerRecipeTargetRepository defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String repositoryName; private String service; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetContainerRecipeTargetRepository defaults) { Objects.requireNonNull(defaults); this.repositoryName = defaults.repositoryName; this.service = defaults.service; } + @CustomType.Setter public Builder repositoryName(String repositoryName) { this.repositoryName = Objects.requireNonNull(repositoryName); return this; } + @CustomType.Setter public Builder service(String service) { this.service = Objects.requireNonNull(service); return this; - } public GetContainerRecipeTargetRepository build() { - return new GetContainerRecipeTargetRepository(repositoryName, service); + } + public GetContainerRecipeTargetRepository build() { + final var o = new GetContainerRecipeTargetRepository(); + o.repositoryName = repositoryName; + o.service = service; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipesFilter.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipesFilter.java index fcbac92674c..9088de696a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipesFilter.java @@ -14,21 +14,14 @@ public final class GetContainerRecipesFilter { * @return The name of the filter field. Valid values can be found in the [Image Builder ListContainerRecipes API Reference](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_ListContainerRecipes.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetContainerRecipesFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetContainerRecipesFilter() {} /** * @return The name of the filter field. Valid values can be found in the [Image Builder ListContainerRecipes API Reference](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_ListContainerRecipes.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetContainerRecipesFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetContainerRecipesFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetContainerRecipesFilter build() { - return new GetContainerRecipesFilter(name, values); + } + public GetContainerRecipesFilter build() { + final var o = new GetContainerRecipesFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipesResult.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipesResult.java index 586544c2b47..51d5a5d3cef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetContainerRecipesResult.java @@ -17,34 +17,21 @@ public final class GetContainerRecipesResult { * @return Set of ARNs of the matched Image Builder Container Recipes. * */ - private final List arns; - private final @Nullable List filters; + private List arns; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of names of the matched Image Builder Container Recipes. * */ - private final List names; - private final @Nullable String owner; - - @CustomType.Constructor - private GetContainerRecipesResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names, - @CustomType.Parameter("owner") @Nullable String owner) { - this.arns = arns; - this.filters = filters; - this.id = id; - this.names = names; - this.owner = owner; - } + private List names; + private @Nullable String owner; + private GetContainerRecipesResult() {} /** * @return Set of ARNs of the matched Image Builder Container Recipes. * @@ -80,18 +67,14 @@ public static Builder builder() { public static Builder builder(GetContainerRecipesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private @Nullable List filters; private String id; private List names; private @Nullable String owner; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetContainerRecipesResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -101,6 +84,7 @@ public Builder(GetContainerRecipesResult defaults) { this.owner = defaults.owner; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -108,6 +92,7 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -115,10 +100,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetContainerRecipesFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; @@ -126,11 +113,19 @@ public Builder names(List names) { public Builder names(String... names) { return names(List.of(names)); } + @CustomType.Setter public Builder owner(@Nullable String owner) { this.owner = owner; return this; - } public GetContainerRecipesResult build() { - return new GetContainerRecipesResult(arns, filters, id, names, owner); + } + public GetContainerRecipesResult build() { + final var o = new GetContainerRecipesResult(); + o.arns = arns; + o.filters = filters; + o.id = id; + o.names = names; + o.owner = owner; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistribution.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistribution.java index 740042e2ed4..d4882009acb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistribution.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistribution.java @@ -18,49 +18,34 @@ public final class GetDistributionConfigurationDistribution { * @return Nested list of AMI distribution configuration. * */ - private final List amiDistributionConfigurations; + private List amiDistributionConfigurations; /** * @return Nested list of container distribution configurations. * */ - private final List containerDistributionConfigurations; + private List containerDistributionConfigurations; /** * @return Nested list of Windows faster-launching configurations to use for AMI distribution. * */ - private final List fastLaunchConfigurations; + private List fastLaunchConfigurations; /** * @return Nested list of launch template configurations. * */ - private final List launchTemplateConfigurations; + private List launchTemplateConfigurations; /** * @return Set of Amazon Resource Names (ARNs) of License Manager License Configurations. * */ - private final List licenseConfigurationArns; + private List licenseConfigurationArns; /** * @return AWS Region of distribution. * */ - private final String region; - - @CustomType.Constructor - private GetDistributionConfigurationDistribution( - @CustomType.Parameter("amiDistributionConfigurations") List amiDistributionConfigurations, - @CustomType.Parameter("containerDistributionConfigurations") List containerDistributionConfigurations, - @CustomType.Parameter("fastLaunchConfigurations") List fastLaunchConfigurations, - @CustomType.Parameter("launchTemplateConfigurations") List launchTemplateConfigurations, - @CustomType.Parameter("licenseConfigurationArns") List licenseConfigurationArns, - @CustomType.Parameter("region") String region) { - this.amiDistributionConfigurations = amiDistributionConfigurations; - this.containerDistributionConfigurations = containerDistributionConfigurations; - this.fastLaunchConfigurations = fastLaunchConfigurations; - this.launchTemplateConfigurations = launchTemplateConfigurations; - this.licenseConfigurationArns = licenseConfigurationArns; - this.region = region; - } + private String region; + private GetDistributionConfigurationDistribution() {} /** * @return Nested list of AMI distribution configuration. * @@ -111,7 +96,7 @@ public static Builder builder() { public static Builder builder(GetDistributionConfigurationDistribution defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List amiDistributionConfigurations; private List containerDistributionConfigurations; @@ -119,11 +104,7 @@ public static final class Builder { private List launchTemplateConfigurations; private List licenseConfigurationArns; private String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionConfigurationDistribution defaults) { Objects.requireNonNull(defaults); this.amiDistributionConfigurations = defaults.amiDistributionConfigurations; @@ -134,6 +115,7 @@ public Builder(GetDistributionConfigurationDistribution defaults) { this.region = defaults.region; } + @CustomType.Setter public Builder amiDistributionConfigurations(List amiDistributionConfigurations) { this.amiDistributionConfigurations = Objects.requireNonNull(amiDistributionConfigurations); return this; @@ -141,6 +123,7 @@ public Builder amiDistributionConfigurations(List containerDistributionConfigurations) { this.containerDistributionConfigurations = Objects.requireNonNull(containerDistributionConfigurations); return this; @@ -148,6 +131,7 @@ public Builder containerDistributionConfigurations(List fastLaunchConfigurations) { this.fastLaunchConfigurations = Objects.requireNonNull(fastLaunchConfigurations); return this; @@ -155,6 +139,7 @@ public Builder fastLaunchConfigurations(List launchTemplateConfigurations) { this.launchTemplateConfigurations = Objects.requireNonNull(launchTemplateConfigurations); return this; @@ -162,6 +147,7 @@ public Builder launchTemplateConfigurations(List licenseConfigurationArns) { this.licenseConfigurationArns = Objects.requireNonNull(licenseConfigurationArns); return this; @@ -169,11 +155,20 @@ public Builder licenseConfigurationArns(List licenseConfigurationArns) { public Builder licenseConfigurationArns(String... licenseConfigurationArns) { return licenseConfigurationArns(List.of(licenseConfigurationArns)); } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; - } public GetDistributionConfigurationDistribution build() { - return new GetDistributionConfigurationDistribution(amiDistributionConfigurations, containerDistributionConfigurations, fastLaunchConfigurations, launchTemplateConfigurations, licenseConfigurationArns, region); + } + public GetDistributionConfigurationDistribution build() { + final var o = new GetDistributionConfigurationDistribution(); + o.amiDistributionConfigurations = amiDistributionConfigurations; + o.containerDistributionConfigurations = containerDistributionConfigurations; + o.fastLaunchConfigurations = fastLaunchConfigurations; + o.launchTemplateConfigurations = launchTemplateConfigurations; + o.licenseConfigurationArns = licenseConfigurationArns; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionAmiDistributionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionAmiDistributionConfiguration.java index a73127330ec..d06a9d9a3ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionAmiDistributionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionAmiDistributionConfiguration.java @@ -16,49 +16,34 @@ public final class GetDistributionConfigurationDistributionAmiDistributionConfig * @return Key-value map of tags to apply to distributed AMI. * */ - private final Map amiTags; + private Map amiTags; /** * @return Description of the container distribution configuration. * */ - private final String description; + private String description; /** * @return Amazon Resource Name (ARN) of Key Management Service (KMS) Key to encrypt AMI. * */ - private final String kmsKeyId; + private String kmsKeyId; /** * @return Nested list of EC2 launch permissions. * */ - private final List launchPermissions; + private List launchPermissions; /** * @return Name of the distribution configuration. * */ - private final String name; + private String name; /** * @return Set of target AWS Account identifiers. * */ - private final List targetAccountIds; - - @CustomType.Constructor - private GetDistributionConfigurationDistributionAmiDistributionConfiguration( - @CustomType.Parameter("amiTags") Map amiTags, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("launchPermissions") List launchPermissions, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("targetAccountIds") List targetAccountIds) { - this.amiTags = amiTags; - this.description = description; - this.kmsKeyId = kmsKeyId; - this.launchPermissions = launchPermissions; - this.name = name; - this.targetAccountIds = targetAccountIds; - } + private List targetAccountIds; + private GetDistributionConfigurationDistributionAmiDistributionConfiguration() {} /** * @return Key-value map of tags to apply to distributed AMI. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(GetDistributionConfigurationDistributionAmiDistributionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map amiTags; private String description; @@ -117,11 +102,7 @@ public static final class Builder { private List launchPermissions; private String name; private List targetAccountIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionConfigurationDistributionAmiDistributionConfiguration defaults) { Objects.requireNonNull(defaults); this.amiTags = defaults.amiTags; @@ -132,18 +113,22 @@ public Builder(GetDistributionConfigurationDistributionAmiDistributionConfigurat this.targetAccountIds = defaults.targetAccountIds; } + @CustomType.Setter public Builder amiTags(Map amiTags) { this.amiTags = Objects.requireNonNull(amiTags); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder launchPermissions(List launchPermissions) { this.launchPermissions = Objects.requireNonNull(launchPermissions); return this; @@ -151,18 +136,28 @@ public Builder launchPermissions(List targetAccountIds) { this.targetAccountIds = Objects.requireNonNull(targetAccountIds); return this; } public Builder targetAccountIds(String... targetAccountIds) { return targetAccountIds(List.of(targetAccountIds)); - } public GetDistributionConfigurationDistributionAmiDistributionConfiguration build() { - return new GetDistributionConfigurationDistributionAmiDistributionConfiguration(amiTags, description, kmsKeyId, launchPermissions, name, targetAccountIds); + } + public GetDistributionConfigurationDistributionAmiDistributionConfiguration build() { + final var o = new GetDistributionConfigurationDistributionAmiDistributionConfiguration(); + o.amiTags = amiTags; + o.description = description; + o.kmsKeyId = kmsKeyId; + o.launchPermissions = launchPermissions; + o.name = name; + o.targetAccountIds = targetAccountIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission.java index 13588e4eea6..8e4643a5037 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission.java @@ -14,35 +14,24 @@ public final class GetDistributionConfigurationDistributionAmiDistributionConfig * @return Set of AWS Organization ARNs. * */ - private final List organizationArns; + private List organizationArns; /** * @return Set of AWS Organizational Unit ARNs. * */ - private final List organizationalUnitArns; + private List organizationalUnitArns; /** * @return Set of EC2 launch permission user groups. * */ - private final List userGroups; + private List userGroups; /** * @return Set of AWS Account identifiers. * */ - private final List userIds; - - @CustomType.Constructor - private GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission( - @CustomType.Parameter("organizationArns") List organizationArns, - @CustomType.Parameter("organizationalUnitArns") List organizationalUnitArns, - @CustomType.Parameter("userGroups") List userGroups, - @CustomType.Parameter("userIds") List userIds) { - this.organizationArns = organizationArns; - this.organizationalUnitArns = organizationalUnitArns; - this.userGroups = userGroups; - this.userIds = userIds; - } + private List userIds; + private GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission() {} /** * @return Set of AWS Organization ARNs. * @@ -79,17 +68,13 @@ public static Builder builder() { public static Builder builder(GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List organizationArns; private List organizationalUnitArns; private List userGroups; private List userIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission defaults) { Objects.requireNonNull(defaults); this.organizationArns = defaults.organizationArns; @@ -98,6 +83,7 @@ public Builder(GetDistributionConfigurationDistributionAmiDistributionConfigurat this.userIds = defaults.userIds; } + @CustomType.Setter public Builder organizationArns(List organizationArns) { this.organizationArns = Objects.requireNonNull(organizationArns); return this; @@ -105,6 +91,7 @@ public Builder organizationArns(List organizationArns) { public Builder organizationArns(String... organizationArns) { return organizationArns(List.of(organizationArns)); } + @CustomType.Setter public Builder organizationalUnitArns(List organizationalUnitArns) { this.organizationalUnitArns = Objects.requireNonNull(organizationalUnitArns); return this; @@ -112,6 +99,7 @@ public Builder organizationalUnitArns(List organizationalUnitArns) { public Builder organizationalUnitArns(String... organizationalUnitArns) { return organizationalUnitArns(List.of(organizationalUnitArns)); } + @CustomType.Setter public Builder userGroups(List userGroups) { this.userGroups = Objects.requireNonNull(userGroups); return this; @@ -119,14 +107,21 @@ public Builder userGroups(List userGroups) { public Builder userGroups(String... userGroups) { return userGroups(List.of(userGroups)); } + @CustomType.Setter public Builder userIds(List userIds) { this.userIds = Objects.requireNonNull(userIds); return this; } public Builder userIds(String... userIds) { return userIds(List.of(userIds)); - } public GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission build() { - return new GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission(organizationArns, organizationalUnitArns, userGroups, userIds); + } + public GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission build() { + final var o = new GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission(); + o.organizationArns = organizationArns; + o.organizationalUnitArns = organizationalUnitArns; + o.userGroups = userGroups; + o.userIds = userIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionContainerDistributionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionContainerDistributionConfiguration.java index a5181657e2b..66515ca52c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionContainerDistributionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionContainerDistributionConfiguration.java @@ -15,28 +15,19 @@ public final class GetDistributionConfigurationDistributionContainerDistribution * @return Set of tags that are attached to the container distribution configuration. * */ - private final List containerTags; + private List containerTags; /** * @return Description of the container distribution configuration. * */ - private final String description; + private String description; /** * @return Set of destination repositories for the container distribution configuration. * */ - private final List targetRepositories; - - @CustomType.Constructor - private GetDistributionConfigurationDistributionContainerDistributionConfiguration( - @CustomType.Parameter("containerTags") List containerTags, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("targetRepositories") List targetRepositories) { - this.containerTags = containerTags; - this.description = description; - this.targetRepositories = targetRepositories; - } + private List targetRepositories; + private GetDistributionConfigurationDistributionContainerDistributionConfiguration() {} /** * @return Set of tags that are attached to the container distribution configuration. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetDistributionConfigurationDistributionContainerDistributionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List containerTags; private String description; private List targetRepositories; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionConfigurationDistributionContainerDistributionConfiguration defaults) { Objects.requireNonNull(defaults); this.containerTags = defaults.containerTags; @@ -83,6 +70,7 @@ public Builder(GetDistributionConfigurationDistributionContainerDistributionConf this.targetRepositories = defaults.targetRepositories; } + @CustomType.Setter public Builder containerTags(List containerTags) { this.containerTags = Objects.requireNonNull(containerTags); return this; @@ -90,18 +78,25 @@ public Builder containerTags(List containerTags) { public Builder containerTags(String... containerTags) { return containerTags(List.of(containerTags)); } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder targetRepositories(List targetRepositories) { this.targetRepositories = Objects.requireNonNull(targetRepositories); return this; } public Builder targetRepositories(GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository... targetRepositories) { return targetRepositories(List.of(targetRepositories)); - } public GetDistributionConfigurationDistributionContainerDistributionConfiguration build() { - return new GetDistributionConfigurationDistributionContainerDistributionConfiguration(containerTags, description, targetRepositories); + } + public GetDistributionConfigurationDistributionContainerDistributionConfiguration build() { + final var o = new GetDistributionConfigurationDistributionContainerDistributionConfiguration(); + o.containerTags = containerTags; + o.description = description; + o.targetRepositories = targetRepositories; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository.java index f9333091180..139623031e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository.java @@ -13,21 +13,14 @@ public final class GetDistributionConfigurationDistributionContainerDistribution * @return Name of the container repository where the output container image is stored. * */ - private final String repositoryName; + private String repositoryName; /** * @return Service in which the image is registered. * */ - private final String service; - - @CustomType.Constructor - private GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository( - @CustomType.Parameter("repositoryName") String repositoryName, - @CustomType.Parameter("service") String service) { - this.repositoryName = repositoryName; - this.service = service; - } + private String service; + private GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository() {} /** * @return Name of the container repository where the output container image is stored. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String repositoryName; private String service; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository defaults) { Objects.requireNonNull(defaults); this.repositoryName = defaults.repositoryName; this.service = defaults.service; } + @CustomType.Setter public Builder repositoryName(String repositoryName) { this.repositoryName = Objects.requireNonNull(repositoryName); return this; } + @CustomType.Setter public Builder service(String service) { this.service = Objects.requireNonNull(service); return this; - } public GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository build() { - return new GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository(repositoryName, service); + } + public GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository build() { + final var o = new GetDistributionConfigurationDistributionContainerDistributionConfigurationTargetRepository(); + o.repositoryName = repositoryName; + o.service = service; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionFastLaunchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionFastLaunchConfiguration.java index ffb5e4ac259..138bc284f05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionFastLaunchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionFastLaunchConfiguration.java @@ -18,42 +18,29 @@ public final class GetDistributionConfigurationDistributionFastLaunchConfigurati * @return The account ID that this configuration applies to. * */ - private final String accountId; + private String accountId; /** * @return A Boolean that represents the current state of faster launching for the Windows AMI. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return Nested list of launch templates that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. * */ - private final List launchTemplates; + private List launchTemplates; /** * @return The maximum number of parallel instances that are launched for creating resources. * */ - private final Integer maxParallelLaunches; + private Integer maxParallelLaunches; /** * @return Nested list of configurations for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. * */ - private final List snapshotConfigurations; - - @CustomType.Constructor - private GetDistributionConfigurationDistributionFastLaunchConfiguration( - @CustomType.Parameter("accountId") String accountId, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("launchTemplates") List launchTemplates, - @CustomType.Parameter("maxParallelLaunches") Integer maxParallelLaunches, - @CustomType.Parameter("snapshotConfigurations") List snapshotConfigurations) { - this.accountId = accountId; - this.enabled = enabled; - this.launchTemplates = launchTemplates; - this.maxParallelLaunches = maxParallelLaunches; - this.snapshotConfigurations = snapshotConfigurations; - } + private List snapshotConfigurations; + private GetDistributionConfigurationDistributionFastLaunchConfiguration() {} /** * @return The account ID that this configuration applies to. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(GetDistributionConfigurationDistributionFastLaunchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accountId; private Boolean enabled; private List launchTemplates; private Integer maxParallelLaunches; private List snapshotConfigurations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionConfigurationDistributionFastLaunchConfiguration defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; @@ -118,14 +101,17 @@ public Builder(GetDistributionConfigurationDistributionFastLaunchConfiguration d this.snapshotConfigurations = defaults.snapshotConfigurations; } + @CustomType.Setter public Builder accountId(String accountId) { this.accountId = Objects.requireNonNull(accountId); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder launchTemplates(List launchTemplates) { this.launchTemplates = Objects.requireNonNull(launchTemplates); return this; @@ -133,18 +119,27 @@ public Builder launchTemplates(List snapshotConfigurations) { this.snapshotConfigurations = Objects.requireNonNull(snapshotConfigurations); return this; } public Builder snapshotConfigurations(GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration... snapshotConfigurations) { return snapshotConfigurations(List.of(snapshotConfigurations)); - } public GetDistributionConfigurationDistributionFastLaunchConfiguration build() { - return new GetDistributionConfigurationDistributionFastLaunchConfiguration(accountId, enabled, launchTemplates, maxParallelLaunches, snapshotConfigurations); + } + public GetDistributionConfigurationDistributionFastLaunchConfiguration build() { + final var o = new GetDistributionConfigurationDistributionFastLaunchConfiguration(); + o.accountId = accountId; + o.enabled = enabled; + o.launchTemplates = launchTemplates; + o.maxParallelLaunches = maxParallelLaunches; + o.snapshotConfigurations = snapshotConfigurations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate.java index 8a3c26029f1..05ae976593c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate.java @@ -13,28 +13,19 @@ public final class GetDistributionConfigurationDistributionFastLaunchConfigurati * @return ID of the Amazon EC2 launch template. * */ - private final String launchTemplateId; + private String launchTemplateId; /** * @return The name of the launch template to use for faster launching for a Windows AMI. * */ - private final String launchTemplateName; + private String launchTemplateName; /** * @return The version of the launch template to use for faster launching for a Windows AMI. * */ - private final String launchTemplateVersion; - - @CustomType.Constructor - private GetDistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate( - @CustomType.Parameter("launchTemplateId") String launchTemplateId, - @CustomType.Parameter("launchTemplateName") String launchTemplateName, - @CustomType.Parameter("launchTemplateVersion") String launchTemplateVersion) { - this.launchTemplateId = launchTemplateId; - this.launchTemplateName = launchTemplateName; - this.launchTemplateVersion = launchTemplateVersion; - } + private String launchTemplateVersion; + private GetDistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate() {} /** * @return ID of the Amazon EC2 launch template. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetDistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String launchTemplateId; private String launchTemplateName; private String launchTemplateVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate defaults) { Objects.requireNonNull(defaults); this.launchTemplateId = defaults.launchTemplateId; @@ -81,19 +68,27 @@ public Builder(GetDistributionConfigurationDistributionFastLaunchConfigurationLa this.launchTemplateVersion = defaults.launchTemplateVersion; } + @CustomType.Setter public Builder launchTemplateId(String launchTemplateId) { this.launchTemplateId = Objects.requireNonNull(launchTemplateId); return this; } + @CustomType.Setter public Builder launchTemplateName(String launchTemplateName) { this.launchTemplateName = Objects.requireNonNull(launchTemplateName); return this; } + @CustomType.Setter public Builder launchTemplateVersion(String launchTemplateVersion) { this.launchTemplateVersion = Objects.requireNonNull(launchTemplateVersion); return this; - } public GetDistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate build() { - return new GetDistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate(launchTemplateId, launchTemplateName, launchTemplateVersion); + } + public GetDistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate build() { + final var o = new GetDistributionConfigurationDistributionFastLaunchConfigurationLaunchTemplate(); + o.launchTemplateId = launchTemplateId; + o.launchTemplateName = launchTemplateName; + o.launchTemplateVersion = launchTemplateVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration.java index 30f9d2fd207..0a8f0a24560 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration.java @@ -13,13 +13,9 @@ public final class GetDistributionConfigurationDistributionFastLaunchConfigurati * @return The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI. * */ - private final Integer targetResourceCount; - - @CustomType.Constructor - private GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration(@CustomType.Parameter("targetResourceCount") Integer targetResourceCount) { - this.targetResourceCount = targetResourceCount; - } + private Integer targetResourceCount; + private GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration() {} /** * @return The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer targetResourceCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration defaults) { Objects.requireNonNull(defaults); this.targetResourceCount = defaults.targetResourceCount; } + @CustomType.Setter public Builder targetResourceCount(Integer targetResourceCount) { this.targetResourceCount = Objects.requireNonNull(targetResourceCount); return this; - } public GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration build() { - return new GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration(targetResourceCount); + } + public GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration build() { + final var o = new GetDistributionConfigurationDistributionFastLaunchConfigurationSnapshotConfiguration(); + o.targetResourceCount = targetResourceCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionLaunchTemplateConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionLaunchTemplateConfiguration.java index 8558ae278f1..ebbfab2423a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionLaunchTemplateConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationDistributionLaunchTemplateConfiguration.java @@ -14,28 +14,19 @@ public final class GetDistributionConfigurationDistributionLaunchTemplateConfigu * @return The account ID that this configuration applies to. * */ - private final String accountId; + private String accountId; /** * @return Indicates whether the specified Amazon EC2 launch template is set as the default launch template. * */ - private final Boolean default_; + private Boolean default_; /** * @return ID of the Amazon EC2 launch template. * */ - private final String launchTemplateId; - - @CustomType.Constructor - private GetDistributionConfigurationDistributionLaunchTemplateConfiguration( - @CustomType.Parameter("accountId") String accountId, - @CustomType.Parameter("default") Boolean default_, - @CustomType.Parameter("launchTemplateId") String launchTemplateId) { - this.accountId = accountId; - this.default_ = default_; - this.launchTemplateId = launchTemplateId; - } + private String launchTemplateId; + private GetDistributionConfigurationDistributionLaunchTemplateConfiguration() {} /** * @return The account ID that this configuration applies to. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetDistributionConfigurationDistributionLaunchTemplateConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accountId; private Boolean default_; private String launchTemplateId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionConfigurationDistributionLaunchTemplateConfiguration defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; @@ -82,19 +69,27 @@ public Builder(GetDistributionConfigurationDistributionLaunchTemplateConfigurati this.launchTemplateId = defaults.launchTemplateId; } + @CustomType.Setter public Builder accountId(String accountId) { this.accountId = Objects.requireNonNull(accountId); return this; } + @CustomType.Setter("default") public Builder default_(Boolean default_) { this.default_ = Objects.requireNonNull(default_); return this; } + @CustomType.Setter public Builder launchTemplateId(String launchTemplateId) { this.launchTemplateId = Objects.requireNonNull(launchTemplateId); return this; - } public GetDistributionConfigurationDistributionLaunchTemplateConfiguration build() { - return new GetDistributionConfigurationDistributionLaunchTemplateConfiguration(accountId, default_, launchTemplateId); + } + public GetDistributionConfigurationDistributionLaunchTemplateConfiguration build() { + final var o = new GetDistributionConfigurationDistributionLaunchTemplateConfiguration(); + o.accountId = accountId; + o.default_ = default_; + o.launchTemplateId = launchTemplateId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationResult.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationResult.java index ea29e27d8f0..450eabbab85 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationResult.java @@ -12,63 +12,44 @@ @CustomType public final class GetDistributionConfigurationResult { - private final String arn; + private String arn; /** * @return Date the distribution configuration was created. * */ - private final String dateCreated; + private String dateCreated; /** * @return Date the distribution configuration was updated. * */ - private final String dateUpdated; + private String dateUpdated; /** * @return Description of the container distribution configuration. * */ - private final String description; + private String description; /** * @return Set of distributions. * */ - private final List distributions; + private List distributions; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Name of the distribution configuration. * */ - private final String name; + private String name; /** * @return Key-value map of resource tags for the distribution configuration. * */ - private final Map tags; - - @CustomType.Constructor - private GetDistributionConfigurationResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("dateCreated") String dateCreated, - @CustomType.Parameter("dateUpdated") String dateUpdated, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("distributions") List distributions, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.dateCreated = dateCreated; - this.dateUpdated = dateUpdated; - this.description = description; - this.distributions = distributions; - this.id = id; - this.name = name; - this.tags = tags; - } + private Map tags; + private GetDistributionConfigurationResult() {} public String arn() { return this.arn; } @@ -129,7 +110,7 @@ public static Builder builder() { public static Builder builder(GetDistributionConfigurationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String dateCreated; @@ -139,11 +120,7 @@ public static final class Builder { private String id; private String name; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionConfigurationResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -156,22 +133,27 @@ public Builder(GetDistributionConfigurationResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder dateCreated(String dateCreated) { this.dateCreated = Objects.requireNonNull(dateCreated); return this; } + @CustomType.Setter public Builder dateUpdated(String dateUpdated) { this.dateUpdated = Objects.requireNonNull(dateUpdated); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder distributions(List distributions) { this.distributions = Objects.requireNonNull(distributions); return this; @@ -179,19 +161,32 @@ public Builder distributions(List dist public Builder distributions(GetDistributionConfigurationDistribution... distributions) { return distributions(List.of(distributions)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetDistributionConfigurationResult build() { - return new GetDistributionConfigurationResult(arn, dateCreated, dateUpdated, description, distributions, id, name, tags); + } + public GetDistributionConfigurationResult build() { + final var o = new GetDistributionConfigurationResult(); + o.arn = arn; + o.dateCreated = dateCreated; + o.dateUpdated = dateUpdated; + o.description = description; + o.distributions = distributions; + o.id = id; + o.name = name; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationsFilter.java index d46790da2ab..ff0d0327ed9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationsFilter.java @@ -14,21 +14,14 @@ public final class GetDistributionConfigurationsFilter { * @return The name of the filter field. Valid values can be found in the [Image Builder ListDistributionConfigurations API Reference](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_ListDistributionConfigurations.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetDistributionConfigurationsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetDistributionConfigurationsFilter() {} /** * @return The name of the filter field. Valid values can be found in the [Image Builder ListDistributionConfigurations API Reference](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_ListDistributionConfigurations.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetDistributionConfigurationsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionConfigurationsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetDistributionConfigurationsFilter build() { - return new GetDistributionConfigurationsFilter(name, values); + } + public GetDistributionConfigurationsFilter build() { + final var o = new GetDistributionConfigurationsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationsResult.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationsResult.java index bf9cf4bb527..39afdf3fcfd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetDistributionConfigurationsResult.java @@ -16,31 +16,20 @@ public final class GetDistributionConfigurationsResult { * @return Set of ARNs of the matched Image Builder Distribution Configurations. * */ - private final List arns; - private final @Nullable List filters; + private List arns; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of names of the matched Image Builder Distribution Configurations. * */ - private final List names; - - @CustomType.Constructor - private GetDistributionConfigurationsResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names) { - this.arns = arns; - this.filters = filters; - this.id = id; - this.names = names; - } + private List names; + private GetDistributionConfigurationsResult() {} /** * @return Set of ARNs of the matched Image Builder Distribution Configurations. * @@ -73,17 +62,13 @@ public static Builder builder() { public static Builder builder(GetDistributionConfigurationsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private @Nullable List filters; private String id; private List names; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDistributionConfigurationsResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -92,6 +77,7 @@ public Builder(GetDistributionConfigurationsResult defaults) { this.names = defaults.names; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -99,6 +85,7 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -106,18 +93,26 @@ public Builder filters(@Nullable List filte public Builder filters(GetDistributionConfigurationsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; } public Builder names(String... names) { return names(List.of(names)); - } public GetDistributionConfigurationsResult build() { - return new GetDistributionConfigurationsResult(arns, filters, id, names); + } + public GetDistributionConfigurationsResult build() { + final var o = new GetDistributionConfigurationsResult(); + o.arns = arns; + o.filters = filters; + o.id = id; + o.names = names; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageImageTestsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageImageTestsConfiguration.java index 10e7c10ef07..b83eac32773 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageImageTestsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageImageTestsConfiguration.java @@ -14,21 +14,14 @@ public final class GetImageImageTestsConfiguration { * @return Whether image tests are enabled. * */ - private final Boolean imageTestsEnabled; + private Boolean imageTestsEnabled; /** * @return Number of minutes before image tests time out. * */ - private final Integer timeoutMinutes; - - @CustomType.Constructor - private GetImageImageTestsConfiguration( - @CustomType.Parameter("imageTestsEnabled") Boolean imageTestsEnabled, - @CustomType.Parameter("timeoutMinutes") Integer timeoutMinutes) { - this.imageTestsEnabled = imageTestsEnabled; - this.timeoutMinutes = timeoutMinutes; - } + private Integer timeoutMinutes; + private GetImageImageTestsConfiguration() {} /** * @return Whether image tests are enabled. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetImageImageTestsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean imageTestsEnabled; private Integer timeoutMinutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImageImageTestsConfiguration defaults) { Objects.requireNonNull(defaults); this.imageTestsEnabled = defaults.imageTestsEnabled; this.timeoutMinutes = defaults.timeoutMinutes; } + @CustomType.Setter public Builder imageTestsEnabled(Boolean imageTestsEnabled) { this.imageTestsEnabled = Objects.requireNonNull(imageTestsEnabled); return this; } + @CustomType.Setter public Builder timeoutMinutes(Integer timeoutMinutes) { this.timeoutMinutes = Objects.requireNonNull(timeoutMinutes); return this; - } public GetImageImageTestsConfiguration build() { - return new GetImageImageTestsConfiguration(imageTestsEnabled, timeoutMinutes); + } + public GetImageImageTestsConfiguration build() { + final var o = new GetImageImageTestsConfiguration(); + o.imageTestsEnabled = imageTestsEnabled; + o.timeoutMinutes = timeoutMinutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageOutputResource.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageOutputResource.java index eb4549caf4a..475325afcd7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageOutputResource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageOutputResource.java @@ -14,13 +14,9 @@ public final class GetImageOutputResource { * @return Set of objects with each Amazon Machine Image (AMI) created. * */ - private final List amis; - - @CustomType.Constructor - private GetImageOutputResource(@CustomType.Parameter("amis") List amis) { - this.amis = amis; - } + private List amis; + private GetImageOutputResource() {} /** * @return Set of objects with each Amazon Machine Image (AMI) created. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(GetImageOutputResource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List amis; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImageOutputResource defaults) { Objects.requireNonNull(defaults); this.amis = defaults.amis; } + @CustomType.Setter public Builder amis(List amis) { this.amis = Objects.requireNonNull(amis); return this; } public Builder amis(GetImageOutputResourceAmi... amis) { return amis(List.of(amis)); - } public GetImageOutputResource build() { - return new GetImageOutputResource(amis); + } + public GetImageOutputResource build() { + final var o = new GetImageOutputResource(); + o.amis = amis; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageOutputResourceAmi.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageOutputResourceAmi.java index 5c6833d3952..2f1865439dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageOutputResourceAmi.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageOutputResourceAmi.java @@ -13,42 +13,29 @@ public final class GetImageOutputResourceAmi { * @return Account identifier of the AMI. * */ - private final String accountId; + private String accountId; /** * @return Description of the AMI. * */ - private final String description; + private String description; /** * @return Identifier of the AMI. * */ - private final String image; + private String image; /** * @return Name of the AMI. * */ - private final String name; + private String name; /** * @return Region of the AMI. * */ - private final String region; - - @CustomType.Constructor - private GetImageOutputResourceAmi( - @CustomType.Parameter("accountId") String accountId, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("image") String image, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("region") String region) { - this.accountId = accountId; - this.description = description; - this.image = image; - this.name = name; - this.region = region; - } + private String region; + private GetImageOutputResourceAmi() {} /** * @return Account identifier of the AMI. * @@ -92,18 +79,14 @@ public static Builder builder() { public static Builder builder(GetImageOutputResourceAmi defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accountId; private String description; private String image; private String name; private String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImageOutputResourceAmi defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; @@ -113,27 +96,39 @@ public Builder(GetImageOutputResourceAmi defaults) { this.region = defaults.region; } + @CustomType.Setter public Builder accountId(String accountId) { this.accountId = Objects.requireNonNull(accountId); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder image(String image) { this.image = Objects.requireNonNull(image); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; - } public GetImageOutputResourceAmi build() { - return new GetImageOutputResourceAmi(accountId, description, image, name, region); + } + public GetImageOutputResourceAmi build() { + final var o = new GetImageOutputResourceAmi(); + o.accountId = accountId; + o.description = description; + o.image = image; + o.name = name; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelineImageTestsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelineImageTestsConfiguration.java index 6e63e90d96f..79a9c7901db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelineImageTestsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelineImageTestsConfiguration.java @@ -14,21 +14,14 @@ public final class GetImagePipelineImageTestsConfiguration { * @return Whether image tests are enabled. * */ - private final Boolean imageTestsEnabled; + private Boolean imageTestsEnabled; /** * @return Number of minutes before image tests time out. * */ - private final Integer timeoutMinutes; - - @CustomType.Constructor - private GetImagePipelineImageTestsConfiguration( - @CustomType.Parameter("imageTestsEnabled") Boolean imageTestsEnabled, - @CustomType.Parameter("timeoutMinutes") Integer timeoutMinutes) { - this.imageTestsEnabled = imageTestsEnabled; - this.timeoutMinutes = timeoutMinutes; - } + private Integer timeoutMinutes; + private GetImagePipelineImageTestsConfiguration() {} /** * @return Whether image tests are enabled. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetImagePipelineImageTestsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean imageTestsEnabled; private Integer timeoutMinutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImagePipelineImageTestsConfiguration defaults) { Objects.requireNonNull(defaults); this.imageTestsEnabled = defaults.imageTestsEnabled; this.timeoutMinutes = defaults.timeoutMinutes; } + @CustomType.Setter public Builder imageTestsEnabled(Boolean imageTestsEnabled) { this.imageTestsEnabled = Objects.requireNonNull(imageTestsEnabled); return this; } + @CustomType.Setter public Builder timeoutMinutes(Integer timeoutMinutes) { this.timeoutMinutes = Objects.requireNonNull(timeoutMinutes); return this; - } public GetImagePipelineImageTestsConfiguration build() { - return new GetImagePipelineImageTestsConfiguration(imageTestsEnabled, timeoutMinutes); + } + public GetImagePipelineImageTestsConfiguration build() { + final var o = new GetImagePipelineImageTestsConfiguration(); + o.imageTestsEnabled = imageTestsEnabled; + o.timeoutMinutes = timeoutMinutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelineResult.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelineResult.java index 363328763f5..d2df8ecd02b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelineResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelineResult.java @@ -14,133 +14,94 @@ @CustomType public final class GetImagePipelineResult { - private final String arn; + private String arn; /** * @return Amazon Resource Name (ARN) of the container recipe. * */ - private final String containerRecipeArn; + private String containerRecipeArn; /** * @return Date the image pipeline was created. * */ - private final String dateCreated; + private String dateCreated; /** * @return Date the image pipeline was last run. * */ - private final String dateLastRun; + private String dateLastRun; /** * @return Date the image pipeline will run next. * */ - private final String dateNextRun; + private String dateNextRun; /** * @return Date the image pipeline was updated. * */ - private final String dateUpdated; + private String dateUpdated; /** * @return Description of the image pipeline. * */ - private final String description; + private String description; /** * @return Amazon Resource Name (ARN) of the Image Builder Distribution Configuration. * */ - private final String distributionConfigurationArn; + private String distributionConfigurationArn; /** * @return Whether additional information about the image being created is collected. * */ - private final Boolean enhancedImageMetadataEnabled; + private Boolean enhancedImageMetadataEnabled; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Amazon Resource Name (ARN) of the image recipe. * */ - private final String imageRecipeArn; + private String imageRecipeArn; /** * @return List of an object with image tests configuration. * */ - private final List imageTestsConfigurations; + private List imageTestsConfigurations; /** * @return Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration. * */ - private final String infrastructureConfigurationArn; + private String infrastructureConfigurationArn; /** * @return Name of the image pipeline. * */ - private final String name; + private String name; /** * @return Platform of the image pipeline. * */ - private final String platform; + private String platform; /** * @return List of an object with schedule settings. * */ - private final List schedules; + private List schedules; /** * @return Status of the image pipeline. * */ - private final String status; + private String status; /** * @return Key-value map of resource tags for the image pipeline. * */ - private final Map tags; - - @CustomType.Constructor - private GetImagePipelineResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("containerRecipeArn") String containerRecipeArn, - @CustomType.Parameter("dateCreated") String dateCreated, - @CustomType.Parameter("dateLastRun") String dateLastRun, - @CustomType.Parameter("dateNextRun") String dateNextRun, - @CustomType.Parameter("dateUpdated") String dateUpdated, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("distributionConfigurationArn") String distributionConfigurationArn, - @CustomType.Parameter("enhancedImageMetadataEnabled") Boolean enhancedImageMetadataEnabled, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("imageRecipeArn") String imageRecipeArn, - @CustomType.Parameter("imageTestsConfigurations") List imageTestsConfigurations, - @CustomType.Parameter("infrastructureConfigurationArn") String infrastructureConfigurationArn, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("platform") String platform, - @CustomType.Parameter("schedules") List schedules, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.containerRecipeArn = containerRecipeArn; - this.dateCreated = dateCreated; - this.dateLastRun = dateLastRun; - this.dateNextRun = dateNextRun; - this.dateUpdated = dateUpdated; - this.description = description; - this.distributionConfigurationArn = distributionConfigurationArn; - this.enhancedImageMetadataEnabled = enhancedImageMetadataEnabled; - this.id = id; - this.imageRecipeArn = imageRecipeArn; - this.imageTestsConfigurations = imageTestsConfigurations; - this.infrastructureConfigurationArn = infrastructureConfigurationArn; - this.name = name; - this.platform = platform; - this.schedules = schedules; - this.status = status; - this.tags = tags; - } + private Map tags; + private GetImagePipelineResult() {} public String arn() { return this.arn; } @@ -271,7 +232,7 @@ public static Builder builder() { public static Builder builder(GetImagePipelineResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String containerRecipeArn; @@ -291,11 +252,7 @@ public static final class Builder { private List schedules; private String status; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImagePipelineResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -318,50 +275,62 @@ public Builder(GetImagePipelineResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder containerRecipeArn(String containerRecipeArn) { this.containerRecipeArn = Objects.requireNonNull(containerRecipeArn); return this; } + @CustomType.Setter public Builder dateCreated(String dateCreated) { this.dateCreated = Objects.requireNonNull(dateCreated); return this; } + @CustomType.Setter public Builder dateLastRun(String dateLastRun) { this.dateLastRun = Objects.requireNonNull(dateLastRun); return this; } + @CustomType.Setter public Builder dateNextRun(String dateNextRun) { this.dateNextRun = Objects.requireNonNull(dateNextRun); return this; } + @CustomType.Setter public Builder dateUpdated(String dateUpdated) { this.dateUpdated = Objects.requireNonNull(dateUpdated); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder distributionConfigurationArn(String distributionConfigurationArn) { this.distributionConfigurationArn = Objects.requireNonNull(distributionConfigurationArn); return this; } + @CustomType.Setter public Builder enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) { this.enhancedImageMetadataEnabled = Objects.requireNonNull(enhancedImageMetadataEnabled); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder imageRecipeArn(String imageRecipeArn) { this.imageRecipeArn = Objects.requireNonNull(imageRecipeArn); return this; } + @CustomType.Setter public Builder imageTestsConfigurations(List imageTestsConfigurations) { this.imageTestsConfigurations = Objects.requireNonNull(imageTestsConfigurations); return this; @@ -369,18 +338,22 @@ public Builder imageTestsConfigurations(List schedules) { this.schedules = Objects.requireNonNull(schedules); return this; @@ -388,15 +361,37 @@ public Builder schedules(List schedules) { public Builder schedules(GetImagePipelineSchedule... schedules) { return schedules(List.of(schedules)); } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetImagePipelineResult build() { - return new GetImagePipelineResult(arn, containerRecipeArn, dateCreated, dateLastRun, dateNextRun, dateUpdated, description, distributionConfigurationArn, enhancedImageMetadataEnabled, id, imageRecipeArn, imageTestsConfigurations, infrastructureConfigurationArn, name, platform, schedules, status, tags); + } + public GetImagePipelineResult build() { + final var o = new GetImagePipelineResult(); + o.arn = arn; + o.containerRecipeArn = containerRecipeArn; + o.dateCreated = dateCreated; + o.dateLastRun = dateLastRun; + o.dateNextRun = dateNextRun; + o.dateUpdated = dateUpdated; + o.description = description; + o.distributionConfigurationArn = distributionConfigurationArn; + o.enhancedImageMetadataEnabled = enhancedImageMetadataEnabled; + o.id = id; + o.imageRecipeArn = imageRecipeArn; + o.imageTestsConfigurations = imageTestsConfigurations; + o.infrastructureConfigurationArn = infrastructureConfigurationArn; + o.name = name; + o.platform = platform; + o.schedules = schedules; + o.status = status; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelineSchedule.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelineSchedule.java index c2fb20a69e4..8fd6b79e87b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelineSchedule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelineSchedule.java @@ -13,21 +13,14 @@ public final class GetImagePipelineSchedule { * @return Condition when the pipeline should trigger a new image build. * */ - private final String pipelineExecutionStartCondition; + private String pipelineExecutionStartCondition; /** * @return Cron expression of how often the pipeline start condition is evaluated. * */ - private final String scheduleExpression; - - @CustomType.Constructor - private GetImagePipelineSchedule( - @CustomType.Parameter("pipelineExecutionStartCondition") String pipelineExecutionStartCondition, - @CustomType.Parameter("scheduleExpression") String scheduleExpression) { - this.pipelineExecutionStartCondition = pipelineExecutionStartCondition; - this.scheduleExpression = scheduleExpression; - } + private String scheduleExpression; + private GetImagePipelineSchedule() {} /** * @return Condition when the pipeline should trigger a new image build. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetImagePipelineSchedule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String pipelineExecutionStartCondition; private String scheduleExpression; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImagePipelineSchedule defaults) { Objects.requireNonNull(defaults); this.pipelineExecutionStartCondition = defaults.pipelineExecutionStartCondition; this.scheduleExpression = defaults.scheduleExpression; } + @CustomType.Setter public Builder pipelineExecutionStartCondition(String pipelineExecutionStartCondition) { this.pipelineExecutionStartCondition = Objects.requireNonNull(pipelineExecutionStartCondition); return this; } + @CustomType.Setter public Builder scheduleExpression(String scheduleExpression) { this.scheduleExpression = Objects.requireNonNull(scheduleExpression); return this; - } public GetImagePipelineSchedule build() { - return new GetImagePipelineSchedule(pipelineExecutionStartCondition, scheduleExpression); + } + public GetImagePipelineSchedule build() { + final var o = new GetImagePipelineSchedule(); + o.pipelineExecutionStartCondition = pipelineExecutionStartCondition; + o.scheduleExpression = scheduleExpression; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelinesFilter.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelinesFilter.java index 84351cedf40..27e89b1f6de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelinesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelinesFilter.java @@ -14,21 +14,14 @@ public final class GetImagePipelinesFilter { * @return The name of the filter field. Valid values can be found in the [Image Builder ListImagePipelines API Reference](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_ListImagePipelines.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetImagePipelinesFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetImagePipelinesFilter() {} /** * @return The name of the filter field. Valid values can be found in the [Image Builder ListImagePipelines API Reference](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_ListImagePipelines.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetImagePipelinesFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImagePipelinesFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetImagePipelinesFilter build() { - return new GetImagePipelinesFilter(name, values); + } + public GetImagePipelinesFilter build() { + final var o = new GetImagePipelinesFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelinesResult.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelinesResult.java index 86e20d5e73c..260451f3b49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelinesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImagePipelinesResult.java @@ -16,31 +16,20 @@ public final class GetImagePipelinesResult { * @return Set of ARNs of the matched Image Builder Image Pipelines. * */ - private final List arns; - private final @Nullable List filters; + private List arns; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of names of the matched Image Builder Image Pipelines. * */ - private final List names; - - @CustomType.Constructor - private GetImagePipelinesResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names) { - this.arns = arns; - this.filters = filters; - this.id = id; - this.names = names; - } + private List names; + private GetImagePipelinesResult() {} /** * @return Set of ARNs of the matched Image Builder Image Pipelines. * @@ -73,17 +62,13 @@ public static Builder builder() { public static Builder builder(GetImagePipelinesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private @Nullable List filters; private String id; private List names; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImagePipelinesResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -92,6 +77,7 @@ public Builder(GetImagePipelinesResult defaults) { this.names = defaults.names; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -99,6 +85,7 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -106,18 +93,26 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetImagePipelinesFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; } public Builder names(String... names) { return names(List.of(names)); - } public GetImagePipelinesResult build() { - return new GetImagePipelinesResult(arns, filters, id, names); + } + public GetImagePipelinesResult build() { + final var o = new GetImagePipelinesResult(); + o.arns = arns; + o.filters = filters; + o.id = id; + o.names = names; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeBlockDeviceMapping.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeBlockDeviceMapping.java index c29d996ffa9..dea848cab9f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeBlockDeviceMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeBlockDeviceMapping.java @@ -15,35 +15,24 @@ public final class GetImageRecipeBlockDeviceMapping { * @return Name of the device. For example, `/dev/sda` or `/dev/xvdb`. * */ - private final String deviceName; + private String deviceName; /** * @return Single list of object with Elastic Block Storage (EBS) block device mapping settings. * */ - private final List ebs; + private List ebs; /** * @return Whether to remove a mapping from the parent image. * */ - private final String noDevice; + private String noDevice; /** * @return Virtual device name. For example, `ephemeral0`. Instance store volumes are numbered starting from 0. * */ - private final String virtualName; - - @CustomType.Constructor - private GetImageRecipeBlockDeviceMapping( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("ebs") List ebs, - @CustomType.Parameter("noDevice") String noDevice, - @CustomType.Parameter("virtualName") String virtualName) { - this.deviceName = deviceName; - this.ebs = ebs; - this.noDevice = noDevice; - this.virtualName = virtualName; - } + private String virtualName; + private GetImageRecipeBlockDeviceMapping() {} /** * @return Name of the device. For example, `/dev/sda` or `/dev/xvdb`. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(GetImageRecipeBlockDeviceMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private List ebs; private String noDevice; private String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImageRecipeBlockDeviceMapping defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; @@ -99,10 +84,12 @@ public Builder(GetImageRecipeBlockDeviceMapping defaults) { this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder ebs(List ebs) { this.ebs = Objects.requireNonNull(ebs); return this; @@ -110,15 +97,23 @@ public Builder ebs(List ebs) { public Builder ebs(GetImageRecipeBlockDeviceMappingEb... ebs) { return ebs(List.of(ebs)); } + @CustomType.Setter public Builder noDevice(String noDevice) { this.noDevice = Objects.requireNonNull(noDevice); return this; } + @CustomType.Setter public Builder virtualName(String virtualName) { this.virtualName = Objects.requireNonNull(virtualName); return this; - } public GetImageRecipeBlockDeviceMapping build() { - return new GetImageRecipeBlockDeviceMapping(deviceName, ebs, noDevice, virtualName); + } + public GetImageRecipeBlockDeviceMapping build() { + final var o = new GetImageRecipeBlockDeviceMapping(); + o.deviceName = deviceName; + o.ebs = ebs; + o.noDevice = noDevice; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeBlockDeviceMappingEb.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeBlockDeviceMappingEb.java index 10a6da63a9c..da4366fcdd4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeBlockDeviceMappingEb.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeBlockDeviceMappingEb.java @@ -15,63 +15,44 @@ public final class GetImageRecipeBlockDeviceMappingEb { * @return Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image. * */ - private final Boolean deleteOnTermination; + private Boolean deleteOnTermination; /** * @return Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. * */ - private final Boolean encrypted; + private Boolean encrypted; /** * @return Number of Input/Output (I/O) operations per second to provision for an `io1` or `io2` volume. * */ - private final Integer iops; + private Integer iops; /** * @return Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption. * */ - private final String kmsKeyId; + private String kmsKeyId; /** * @return Identifier of the EC2 Volume Snapshot. * */ - private final String snapshotId; + private String snapshotId; /** * @return For GP3 volumes only. The throughput in MiB/s that the volume supports. * */ - private final Integer throughput; + private Integer throughput; /** * @return Size of the volume, in GiB. * */ - private final Integer volumeSize; + private Integer volumeSize; /** * @return Type of the volume. For example, `gp2` or `io2`. * */ - private final String volumeType; - - @CustomType.Constructor - private GetImageRecipeBlockDeviceMappingEb( - @CustomType.Parameter("deleteOnTermination") Boolean deleteOnTermination, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("iops") Integer iops, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("snapshotId") String snapshotId, - @CustomType.Parameter("throughput") Integer throughput, - @CustomType.Parameter("volumeSize") Integer volumeSize, - @CustomType.Parameter("volumeType") String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.encrypted = encrypted; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.snapshotId = snapshotId; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private String volumeType; + private GetImageRecipeBlockDeviceMappingEb() {} /** * @return Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image. * @@ -136,7 +117,7 @@ public static Builder builder() { public static Builder builder(GetImageRecipeBlockDeviceMappingEb defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean deleteOnTermination; private Boolean encrypted; @@ -146,11 +127,7 @@ public static final class Builder { private Integer throughput; private Integer volumeSize; private String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImageRecipeBlockDeviceMappingEb defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -163,39 +140,57 @@ public Builder(GetImageRecipeBlockDeviceMappingEb defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(Boolean deleteOnTermination) { this.deleteOnTermination = Objects.requireNonNull(deleteOnTermination); return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder iops(Integer iops) { this.iops = Objects.requireNonNull(iops); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder snapshotId(String snapshotId) { this.snapshotId = Objects.requireNonNull(snapshotId); return this; } + @CustomType.Setter public Builder throughput(Integer throughput) { this.throughput = Objects.requireNonNull(throughput); return this; } + @CustomType.Setter public Builder volumeSize(Integer volumeSize) { this.volumeSize = Objects.requireNonNull(volumeSize); return this; } + @CustomType.Setter public Builder volumeType(String volumeType) { this.volumeType = Objects.requireNonNull(volumeType); return this; - } public GetImageRecipeBlockDeviceMappingEb build() { - return new GetImageRecipeBlockDeviceMappingEb(deleteOnTermination, encrypted, iops, kmsKeyId, snapshotId, throughput, volumeSize, volumeType); + } + public GetImageRecipeBlockDeviceMappingEb build() { + final var o = new GetImageRecipeBlockDeviceMappingEb(); + o.deleteOnTermination = deleteOnTermination; + o.encrypted = encrypted; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.snapshotId = snapshotId; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeComponent.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeComponent.java index 2117c150179..a92fa21e7f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeComponent.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeComponent.java @@ -15,21 +15,14 @@ public final class GetImageRecipeComponent { * @return Amazon Resource Name (ARN) of the Image Builder Component. * */ - private final String componentArn; + private String componentArn; /** * @return Set of parameters that are used to configure the component. * */ - private final List parameters; - - @CustomType.Constructor - private GetImageRecipeComponent( - @CustomType.Parameter("componentArn") String componentArn, - @CustomType.Parameter("parameters") List parameters) { - this.componentArn = componentArn; - this.parameters = parameters; - } + private List parameters; + private GetImageRecipeComponent() {} /** * @return Amazon Resource Name (ARN) of the Image Builder Component. * @@ -52,33 +45,35 @@ public static Builder builder() { public static Builder builder(GetImageRecipeComponent defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String componentArn; private List parameters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImageRecipeComponent defaults) { Objects.requireNonNull(defaults); this.componentArn = defaults.componentArn; this.parameters = defaults.parameters; } + @CustomType.Setter public Builder componentArn(String componentArn) { this.componentArn = Objects.requireNonNull(componentArn); return this; } + @CustomType.Setter public Builder parameters(List parameters) { this.parameters = Objects.requireNonNull(parameters); return this; } public Builder parameters(GetImageRecipeComponentParameter... parameters) { return parameters(List.of(parameters)); - } public GetImageRecipeComponent build() { - return new GetImageRecipeComponent(componentArn, parameters); + } + public GetImageRecipeComponent build() { + final var o = new GetImageRecipeComponent(); + o.componentArn = componentArn; + o.parameters = parameters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeComponentParameter.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeComponentParameter.java index 7de7401b8c2..775fe18ebdd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeComponentParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeComponentParameter.java @@ -13,21 +13,14 @@ public final class GetImageRecipeComponentParameter { * @return Name of the image recipe. * */ - private final String name; + private String name; /** * @return Value of the component parameter. * */ - private final String value; - - @CustomType.Constructor - private GetImageRecipeComponentParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private GetImageRecipeComponentParameter() {} /** * @return Name of the image recipe. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetImageRecipeComponentParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImageRecipeComponentParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetImageRecipeComponentParameter build() { - return new GetImageRecipeComponentParameter(name, value); + } + public GetImageRecipeComponentParameter build() { + final var o = new GetImageRecipeComponentParameter(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeResult.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeResult.java index fe1be6ec769..639630d3b57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipeResult.java @@ -14,105 +14,74 @@ @CustomType public final class GetImageRecipeResult { - private final String arn; + private String arn; /** * @return Set of objects with block device mappings for the image recipe. * */ - private final List blockDeviceMappings; + private List blockDeviceMappings; /** * @return List of objects with components for the image recipe. * */ - private final List components; + private List components; /** * @return Date the image recipe was created. * */ - private final String dateCreated; + private String dateCreated; /** * @return Description of the image recipe. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Name of the image recipe. * */ - private final String name; + private String name; /** * @return Owner of the image recipe. * */ - private final String owner; + private String owner; /** * @return Base image of the image recipe. * */ - private final String parentImage; + private String parentImage; /** * @return Platform of the image recipe. * */ - private final String platform; + private String platform; /** * @return Key-value map of resource tags for the image recipe. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return Base64 encoded contents of user data. Commands or a command script to run when build instance is launched. * */ - private final String userDataBase64; + private String userDataBase64; /** * @return Version of the image recipe. * */ - private final String version; + private String version; /** * @return The working directory used during build and test workflows. * */ - private final String workingDirectory; - - @CustomType.Constructor - private GetImageRecipeResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("blockDeviceMappings") List blockDeviceMappings, - @CustomType.Parameter("components") List components, - @CustomType.Parameter("dateCreated") String dateCreated, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("owner") String owner, - @CustomType.Parameter("parentImage") String parentImage, - @CustomType.Parameter("platform") String platform, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("userDataBase64") String userDataBase64, - @CustomType.Parameter("version") String version, - @CustomType.Parameter("workingDirectory") String workingDirectory) { - this.arn = arn; - this.blockDeviceMappings = blockDeviceMappings; - this.components = components; - this.dateCreated = dateCreated; - this.description = description; - this.id = id; - this.name = name; - this.owner = owner; - this.parentImage = parentImage; - this.platform = platform; - this.tags = tags; - this.userDataBase64 = userDataBase64; - this.version = version; - this.workingDirectory = workingDirectory; - } + private String workingDirectory; + private GetImageRecipeResult() {} public String arn() { return this.arn; } @@ -215,7 +184,7 @@ public static Builder builder() { public static Builder builder(GetImageRecipeResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List blockDeviceMappings; @@ -231,11 +200,7 @@ public static final class Builder { private String userDataBase64; private String version; private String workingDirectory; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImageRecipeResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -254,10 +219,12 @@ public Builder(GetImageRecipeResult defaults) { this.workingDirectory = defaults.workingDirectory; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder blockDeviceMappings(List blockDeviceMappings) { this.blockDeviceMappings = Objects.requireNonNull(blockDeviceMappings); return this; @@ -265,6 +232,7 @@ public Builder blockDeviceMappings(List blockD public Builder blockDeviceMappings(GetImageRecipeBlockDeviceMapping... blockDeviceMappings) { return blockDeviceMappings(List.of(blockDeviceMappings)); } + @CustomType.Setter public Builder components(List components) { this.components = Objects.requireNonNull(components); return this; @@ -272,51 +240,78 @@ public Builder components(List components) { public Builder components(GetImageRecipeComponent... components) { return components(List.of(components)); } + @CustomType.Setter public Builder dateCreated(String dateCreated) { this.dateCreated = Objects.requireNonNull(dateCreated); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder owner(String owner) { this.owner = Objects.requireNonNull(owner); return this; } + @CustomType.Setter public Builder parentImage(String parentImage) { this.parentImage = Objects.requireNonNull(parentImage); return this; } + @CustomType.Setter public Builder platform(String platform) { this.platform = Objects.requireNonNull(platform); return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder userDataBase64(String userDataBase64) { this.userDataBase64 = Objects.requireNonNull(userDataBase64); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; } + @CustomType.Setter public Builder workingDirectory(String workingDirectory) { this.workingDirectory = Objects.requireNonNull(workingDirectory); return this; - } public GetImageRecipeResult build() { - return new GetImageRecipeResult(arn, blockDeviceMappings, components, dateCreated, description, id, name, owner, parentImage, platform, tags, userDataBase64, version, workingDirectory); + } + public GetImageRecipeResult build() { + final var o = new GetImageRecipeResult(); + o.arn = arn; + o.blockDeviceMappings = blockDeviceMappings; + o.components = components; + o.dateCreated = dateCreated; + o.description = description; + o.id = id; + o.name = name; + o.owner = owner; + o.parentImage = parentImage; + o.platform = platform; + o.tags = tags; + o.userDataBase64 = userDataBase64; + o.version = version; + o.workingDirectory = workingDirectory; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipesFilter.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipesFilter.java index 62ecd07203a..514a43eaffb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipesFilter.java @@ -14,21 +14,14 @@ public final class GetImageRecipesFilter { * @return The name of the filter field. Valid values can be found in the [Image Builder ListImageRecipes API Reference](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_ListImageRecipes.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetImageRecipesFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetImageRecipesFilter() {} /** * @return The name of the filter field. Valid values can be found in the [Image Builder ListImageRecipes API Reference](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_ListImageRecipes.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetImageRecipesFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImageRecipesFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetImageRecipesFilter build() { - return new GetImageRecipesFilter(name, values); + } + public GetImageRecipesFilter build() { + final var o = new GetImageRecipesFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipesResult.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipesResult.java index d7a582d6a8c..0ee27b181fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageRecipesResult.java @@ -17,34 +17,21 @@ public final class GetImageRecipesResult { * @return Set of ARNs of the matched Image Builder Image Recipes. * */ - private final List arns; - private final @Nullable List filters; + private List arns; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of names of the matched Image Builder Image Recipes. * */ - private final List names; - private final @Nullable String owner; - - @CustomType.Constructor - private GetImageRecipesResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names, - @CustomType.Parameter("owner") @Nullable String owner) { - this.arns = arns; - this.filters = filters; - this.id = id; - this.names = names; - this.owner = owner; - } + private List names; + private @Nullable String owner; + private GetImageRecipesResult() {} /** * @return Set of ARNs of the matched Image Builder Image Recipes. * @@ -80,18 +67,14 @@ public static Builder builder() { public static Builder builder(GetImageRecipesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private @Nullable List filters; private String id; private List names; private @Nullable String owner; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImageRecipesResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -101,6 +84,7 @@ public Builder(GetImageRecipesResult defaults) { this.owner = defaults.owner; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -108,6 +92,7 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -115,10 +100,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetImageRecipesFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; @@ -126,11 +113,19 @@ public Builder names(List names) { public Builder names(String... names) { return names(List.of(names)); } + @CustomType.Setter public Builder owner(@Nullable String owner) { this.owner = owner; return this; - } public GetImageRecipesResult build() { - return new GetImageRecipesResult(arns, filters, id, names, owner); + } + public GetImageRecipesResult build() { + final var o = new GetImageRecipesResult(); + o.arns = arns; + o.filters = filters; + o.id = id; + o.names = names; + o.owner = owner; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageResult.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageResult.java index b06f9a3f324..41d8502a7f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetImageResult.java @@ -14,119 +14,84 @@ @CustomType public final class GetImageResult { - private final String arn; + private String arn; /** * @return Build version Amazon Resource Name (ARN) of the image. This will always have the `#.#.#/#` suffix. * */ - private final String buildVersionArn; + private String buildVersionArn; /** * @return Amazon Resource Name (ARN) of the container recipe. * */ - private final String containerRecipeArn; + private String containerRecipeArn; /** * @return Date the image was created. * */ - private final String dateCreated; + private String dateCreated; /** * @return Amazon Resource Name (ARN) of the Image Builder Distribution Configuration. * */ - private final String distributionConfigurationArn; + private String distributionConfigurationArn; /** * @return Whether additional information about the image being created is collected. * */ - private final Boolean enhancedImageMetadataEnabled; + private Boolean enhancedImageMetadataEnabled; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Amazon Resource Name (ARN) of the image recipe. * */ - private final String imageRecipeArn; + private String imageRecipeArn; /** * @return List of an object with image tests configuration. * */ - private final List imageTestsConfigurations; + private List imageTestsConfigurations; /** * @return Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration. * */ - private final String infrastructureConfigurationArn; + private String infrastructureConfigurationArn; /** * @return Name of the AMI. * */ - private final String name; + private String name; /** * @return Operating System version of the image. * */ - private final String osVersion; + private String osVersion; /** * @return List of objects with resources created by the image. * */ - private final List outputResources; + private List outputResources; /** * @return Platform of the image. * */ - private final String platform; + private String platform; /** * @return Key-value map of resource tags for the image. * */ - private final Map tags; + private Map tags; /** * @return Version of the image. * */ - private final String version; - - @CustomType.Constructor - private GetImageResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("buildVersionArn") String buildVersionArn, - @CustomType.Parameter("containerRecipeArn") String containerRecipeArn, - @CustomType.Parameter("dateCreated") String dateCreated, - @CustomType.Parameter("distributionConfigurationArn") String distributionConfigurationArn, - @CustomType.Parameter("enhancedImageMetadataEnabled") Boolean enhancedImageMetadataEnabled, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("imageRecipeArn") String imageRecipeArn, - @CustomType.Parameter("imageTestsConfigurations") List imageTestsConfigurations, - @CustomType.Parameter("infrastructureConfigurationArn") String infrastructureConfigurationArn, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("osVersion") String osVersion, - @CustomType.Parameter("outputResources") List outputResources, - @CustomType.Parameter("platform") String platform, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("version") String version) { - this.arn = arn; - this.buildVersionArn = buildVersionArn; - this.containerRecipeArn = containerRecipeArn; - this.dateCreated = dateCreated; - this.distributionConfigurationArn = distributionConfigurationArn; - this.enhancedImageMetadataEnabled = enhancedImageMetadataEnabled; - this.id = id; - this.imageRecipeArn = imageRecipeArn; - this.imageTestsConfigurations = imageTestsConfigurations; - this.infrastructureConfigurationArn = infrastructureConfigurationArn; - this.name = name; - this.osVersion = osVersion; - this.outputResources = outputResources; - this.platform = platform; - this.tags = tags; - this.version = version; - } + private String version; + private GetImageResult() {} public String arn() { return this.arn; } @@ -243,7 +208,7 @@ public static Builder builder() { public static Builder builder(GetImageResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String buildVersionArn; @@ -261,11 +226,7 @@ public static final class Builder { private String platform; private Map tags; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetImageResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -286,38 +247,47 @@ public Builder(GetImageResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder buildVersionArn(String buildVersionArn) { this.buildVersionArn = Objects.requireNonNull(buildVersionArn); return this; } + @CustomType.Setter public Builder containerRecipeArn(String containerRecipeArn) { this.containerRecipeArn = Objects.requireNonNull(containerRecipeArn); return this; } + @CustomType.Setter public Builder dateCreated(String dateCreated) { this.dateCreated = Objects.requireNonNull(dateCreated); return this; } + @CustomType.Setter public Builder distributionConfigurationArn(String distributionConfigurationArn) { this.distributionConfigurationArn = Objects.requireNonNull(distributionConfigurationArn); return this; } + @CustomType.Setter public Builder enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) { this.enhancedImageMetadataEnabled = Objects.requireNonNull(enhancedImageMetadataEnabled); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder imageRecipeArn(String imageRecipeArn) { this.imageRecipeArn = Objects.requireNonNull(imageRecipeArn); return this; } + @CustomType.Setter public Builder imageTestsConfigurations(List imageTestsConfigurations) { this.imageTestsConfigurations = Objects.requireNonNull(imageTestsConfigurations); return this; @@ -325,18 +295,22 @@ public Builder imageTestsConfigurations(List im public Builder imageTestsConfigurations(GetImageImageTestsConfiguration... imageTestsConfigurations) { return imageTestsConfigurations(List.of(imageTestsConfigurations)); } + @CustomType.Setter public Builder infrastructureConfigurationArn(String infrastructureConfigurationArn) { this.infrastructureConfigurationArn = Objects.requireNonNull(infrastructureConfigurationArn); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder osVersion(String osVersion) { this.osVersion = Objects.requireNonNull(osVersion); return this; } + @CustomType.Setter public Builder outputResources(List outputResources) { this.outputResources = Objects.requireNonNull(outputResources); return this; @@ -344,19 +318,40 @@ public Builder outputResources(List outputResources) { public Builder outputResources(GetImageOutputResource... outputResources) { return outputResources(List.of(outputResources)); } + @CustomType.Setter public Builder platform(String platform) { this.platform = Objects.requireNonNull(platform); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public GetImageResult build() { - return new GetImageResult(arn, buildVersionArn, containerRecipeArn, dateCreated, distributionConfigurationArn, enhancedImageMetadataEnabled, id, imageRecipeArn, imageTestsConfigurations, infrastructureConfigurationArn, name, osVersion, outputResources, platform, tags, version); + } + public GetImageResult build() { + final var o = new GetImageResult(); + o.arn = arn; + o.buildVersionArn = buildVersionArn; + o.containerRecipeArn = containerRecipeArn; + o.dateCreated = dateCreated; + o.distributionConfigurationArn = distributionConfigurationArn; + o.enhancedImageMetadataEnabled = enhancedImageMetadataEnabled; + o.id = id; + o.imageRecipeArn = imageRecipeArn; + o.imageTestsConfigurations = imageTestsConfigurations; + o.infrastructureConfigurationArn = infrastructureConfigurationArn; + o.name = name; + o.osVersion = osVersion; + o.outputResources = outputResources; + o.platform = platform; + o.tags = tags; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationInstanceMetadataOption.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationInstanceMetadataOption.java index 18f9f550232..4f3f2f1a3ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationInstanceMetadataOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationInstanceMetadataOption.java @@ -14,21 +14,14 @@ public final class GetInfrastructureConfigurationInstanceMetadataOption { * @return Number of hops that an instance can traverse to reach its destonation. * */ - private final Integer httpPutResponseHopLimit; + private Integer httpPutResponseHopLimit; /** * @return Whether a signed token is required for instance metadata retrieval requests. * */ - private final String httpTokens; - - @CustomType.Constructor - private GetInfrastructureConfigurationInstanceMetadataOption( - @CustomType.Parameter("httpPutResponseHopLimit") Integer httpPutResponseHopLimit, - @CustomType.Parameter("httpTokens") String httpTokens) { - this.httpPutResponseHopLimit = httpPutResponseHopLimit; - this.httpTokens = httpTokens; - } + private String httpTokens; + private GetInfrastructureConfigurationInstanceMetadataOption() {} /** * @return Number of hops that an instance can traverse to reach its destonation. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetInfrastructureConfigurationInstanceMetadataOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer httpPutResponseHopLimit; private String httpTokens; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInfrastructureConfigurationInstanceMetadataOption defaults) { Objects.requireNonNull(defaults); this.httpPutResponseHopLimit = defaults.httpPutResponseHopLimit; this.httpTokens = defaults.httpTokens; } + @CustomType.Setter public Builder httpPutResponseHopLimit(Integer httpPutResponseHopLimit) { this.httpPutResponseHopLimit = Objects.requireNonNull(httpPutResponseHopLimit); return this; } + @CustomType.Setter public Builder httpTokens(String httpTokens) { this.httpTokens = Objects.requireNonNull(httpTokens); return this; - } public GetInfrastructureConfigurationInstanceMetadataOption build() { - return new GetInfrastructureConfigurationInstanceMetadataOption(httpPutResponseHopLimit, httpTokens); + } + public GetInfrastructureConfigurationInstanceMetadataOption build() { + final var o = new GetInfrastructureConfigurationInstanceMetadataOption(); + o.httpPutResponseHopLimit = httpPutResponseHopLimit; + o.httpTokens = httpTokens; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationLogging.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationLogging.java index 0b7882f733b..b11fb3f166f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationLogging.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationLogging.java @@ -14,13 +14,9 @@ public final class GetInfrastructureConfigurationLogging { * @return Nested list of S3 logs settings. * */ - private final List s3Logs; - - @CustomType.Constructor - private GetInfrastructureConfigurationLogging(@CustomType.Parameter("s3Logs") List s3Logs) { - this.s3Logs = s3Logs; - } + private List s3Logs; + private GetInfrastructureConfigurationLogging() {} /** * @return Nested list of S3 logs settings. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(GetInfrastructureConfigurationLogging defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List s3Logs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInfrastructureConfigurationLogging defaults) { Objects.requireNonNull(defaults); this.s3Logs = defaults.s3Logs; } + @CustomType.Setter public Builder s3Logs(List s3Logs) { this.s3Logs = Objects.requireNonNull(s3Logs); return this; } public Builder s3Logs(GetInfrastructureConfigurationLoggingS3Log... s3Logs) { return s3Logs(List.of(s3Logs)); - } public GetInfrastructureConfigurationLogging build() { - return new GetInfrastructureConfigurationLogging(s3Logs); + } + public GetInfrastructureConfigurationLogging build() { + final var o = new GetInfrastructureConfigurationLogging(); + o.s3Logs = s3Logs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationLoggingS3Log.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationLoggingS3Log.java index b0fd9098440..8d48455394d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationLoggingS3Log.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationLoggingS3Log.java @@ -13,21 +13,14 @@ public final class GetInfrastructureConfigurationLoggingS3Log { * @return Name of the S3 Bucket for logging. * */ - private final String s3BucketName; + private String s3BucketName; /** * @return Key prefix for S3 Bucket logging. * */ - private final String s3KeyPrefix; - - @CustomType.Constructor - private GetInfrastructureConfigurationLoggingS3Log( - @CustomType.Parameter("s3BucketName") String s3BucketName, - @CustomType.Parameter("s3KeyPrefix") String s3KeyPrefix) { - this.s3BucketName = s3BucketName; - this.s3KeyPrefix = s3KeyPrefix; - } + private String s3KeyPrefix; + private GetInfrastructureConfigurationLoggingS3Log() {} /** * @return Name of the S3 Bucket for logging. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetInfrastructureConfigurationLoggingS3Log defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String s3BucketName; private String s3KeyPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInfrastructureConfigurationLoggingS3Log defaults) { Objects.requireNonNull(defaults); this.s3BucketName = defaults.s3BucketName; this.s3KeyPrefix = defaults.s3KeyPrefix; } + @CustomType.Setter public Builder s3BucketName(String s3BucketName) { this.s3BucketName = Objects.requireNonNull(s3BucketName); return this; } + @CustomType.Setter public Builder s3KeyPrefix(String s3KeyPrefix) { this.s3KeyPrefix = Objects.requireNonNull(s3KeyPrefix); return this; - } public GetInfrastructureConfigurationLoggingS3Log build() { - return new GetInfrastructureConfigurationLoggingS3Log(s3BucketName, s3KeyPrefix); + } + public GetInfrastructureConfigurationLoggingS3Log build() { + final var o = new GetInfrastructureConfigurationLoggingS3Log(); + o.s3BucketName = s3BucketName; + o.s3KeyPrefix = s3KeyPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationResult.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationResult.java index b83a1a9e5cd..aedb83f0e91 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationResult.java @@ -14,122 +14,85 @@ @CustomType public final class GetInfrastructureConfigurationResult { - private final String arn; + private String arn; /** * @return Date the infrastructure configuration was updated. * */ - private final String dateCreated; - private final String dateUpdated; + private String dateCreated; + private String dateUpdated; /** * @return Description of the infrastructure configuration. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Nested list of instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. * */ - private final List instanceMetadataOptions; + private List instanceMetadataOptions; /** * @return Name of the IAM Instance Profile associated with the configuration. * */ - private final String instanceProfileName; + private String instanceProfileName; /** * @return Set of EC2 Instance Types associated with the configuration. * */ - private final List instanceTypes; + private List instanceTypes; /** * @return Name of the EC2 Key Pair associated with the configuration. * */ - private final String keyPair; + private String keyPair; /** * @return Nested list of logging settings. * */ - private final List loggings; + private List loggings; /** * @return Name of the infrastructure configuration. * */ - private final String name; + private String name; /** * @return Key-value map of resource tags for the infrastructure created by the infrastructure configuration. * */ - private final Map resourceTags; + private Map resourceTags; /** * @return Set of EC2 Security Group identifiers associated with the configuration. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return Amazon Resource Name (ARN) of the SNS Topic associated with the configuration. * */ - private final String snsTopicArn; + private String snsTopicArn; /** * @return Identifier of the EC2 Subnet associated with the configuration. * */ - private final String subnetId; + private String subnetId; /** * @return Key-value map of resource tags for the infrastructure configuration. * */ - private final Map tags; + private Map tags; /** * @return Whether instances are terminated on failure. * */ - private final Boolean terminateInstanceOnFailure; - - @CustomType.Constructor - private GetInfrastructureConfigurationResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("dateCreated") String dateCreated, - @CustomType.Parameter("dateUpdated") String dateUpdated, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceMetadataOptions") List instanceMetadataOptions, - @CustomType.Parameter("instanceProfileName") String instanceProfileName, - @CustomType.Parameter("instanceTypes") List instanceTypes, - @CustomType.Parameter("keyPair") String keyPair, - @CustomType.Parameter("loggings") List loggings, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("resourceTags") Map resourceTags, - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("snsTopicArn") String snsTopicArn, - @CustomType.Parameter("subnetId") String subnetId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("terminateInstanceOnFailure") Boolean terminateInstanceOnFailure) { - this.arn = arn; - this.dateCreated = dateCreated; - this.dateUpdated = dateUpdated; - this.description = description; - this.id = id; - this.instanceMetadataOptions = instanceMetadataOptions; - this.instanceProfileName = instanceProfileName; - this.instanceTypes = instanceTypes; - this.keyPair = keyPair; - this.loggings = loggings; - this.name = name; - this.resourceTags = resourceTags; - this.securityGroupIds = securityGroupIds; - this.snsTopicArn = snsTopicArn; - this.subnetId = subnetId; - this.tags = tags; - this.terminateInstanceOnFailure = terminateInstanceOnFailure; - } + private Boolean terminateInstanceOnFailure; + private GetInfrastructureConfigurationResult() {} public String arn() { return this.arn; } @@ -249,7 +212,7 @@ public static Builder builder() { public static Builder builder(GetInfrastructureConfigurationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String dateCreated; @@ -268,11 +231,7 @@ public static final class Builder { private String subnetId; private Map tags; private Boolean terminateInstanceOnFailure; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInfrastructureConfigurationResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -294,26 +253,32 @@ public Builder(GetInfrastructureConfigurationResult defaults) { this.terminateInstanceOnFailure = defaults.terminateInstanceOnFailure; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder dateCreated(String dateCreated) { this.dateCreated = Objects.requireNonNull(dateCreated); return this; } + @CustomType.Setter public Builder dateUpdated(String dateUpdated) { this.dateUpdated = Objects.requireNonNull(dateUpdated); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceMetadataOptions(List instanceMetadataOptions) { this.instanceMetadataOptions = Objects.requireNonNull(instanceMetadataOptions); return this; @@ -321,10 +286,12 @@ public Builder instanceMetadataOptions(List instanceTypes) { this.instanceTypes = Objects.requireNonNull(instanceTypes); return this; @@ -332,10 +299,12 @@ public Builder instanceTypes(List instanceTypes) { public Builder instanceTypes(String... instanceTypes) { return instanceTypes(List.of(instanceTypes)); } + @CustomType.Setter public Builder keyPair(String keyPair) { this.keyPair = Objects.requireNonNull(keyPair); return this; } + @CustomType.Setter public Builder loggings(List loggings) { this.loggings = Objects.requireNonNull(loggings); return this; @@ -343,14 +312,17 @@ public Builder loggings(List loggings) { public Builder loggings(GetInfrastructureConfigurationLogging... loggings) { return loggings(List.of(loggings)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder resourceTags(Map resourceTags) { this.resourceTags = Objects.requireNonNull(resourceTags); return this; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -358,23 +330,46 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder snsTopicArn(String snsTopicArn) { this.snsTopicArn = Objects.requireNonNull(snsTopicArn); return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder terminateInstanceOnFailure(Boolean terminateInstanceOnFailure) { this.terminateInstanceOnFailure = Objects.requireNonNull(terminateInstanceOnFailure); return this; - } public GetInfrastructureConfigurationResult build() { - return new GetInfrastructureConfigurationResult(arn, dateCreated, dateUpdated, description, id, instanceMetadataOptions, instanceProfileName, instanceTypes, keyPair, loggings, name, resourceTags, securityGroupIds, snsTopicArn, subnetId, tags, terminateInstanceOnFailure); + } + public GetInfrastructureConfigurationResult build() { + final var o = new GetInfrastructureConfigurationResult(); + o.arn = arn; + o.dateCreated = dateCreated; + o.dateUpdated = dateUpdated; + o.description = description; + o.id = id; + o.instanceMetadataOptions = instanceMetadataOptions; + o.instanceProfileName = instanceProfileName; + o.instanceTypes = instanceTypes; + o.keyPair = keyPair; + o.loggings = loggings; + o.name = name; + o.resourceTags = resourceTags; + o.securityGroupIds = securityGroupIds; + o.snsTopicArn = snsTopicArn; + o.subnetId = subnetId; + o.tags = tags; + o.terminateInstanceOnFailure = terminateInstanceOnFailure; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationsFilter.java index 45dcf67a990..9ceb39fcf67 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationsFilter.java @@ -14,21 +14,14 @@ public final class GetInfrastructureConfigurationsFilter { * @return The name of the filter field. Valid values can be found in the [Image Builder ListInfrastructureConfigurations API Reference](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_ListInfrastructureConfigurations.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetInfrastructureConfigurationsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetInfrastructureConfigurationsFilter() {} /** * @return The name of the filter field. Valid values can be found in the [Image Builder ListInfrastructureConfigurations API Reference](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_ListInfrastructureConfigurations.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetInfrastructureConfigurationsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInfrastructureConfigurationsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetInfrastructureConfigurationsFilter build() { - return new GetInfrastructureConfigurationsFilter(name, values); + } + public GetInfrastructureConfigurationsFilter build() { + final var o = new GetInfrastructureConfigurationsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationsResult.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationsResult.java index ded2a8d6633..4a36626df58 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/GetInfrastructureConfigurationsResult.java @@ -16,31 +16,20 @@ public final class GetInfrastructureConfigurationsResult { * @return Set of ARNs of the matched Image Builder Infrastructure Configurations. * */ - private final List arns; - private final @Nullable List filters; + private List arns; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of names of the matched Image Builder Infrastructure Configurations. * */ - private final List names; - - @CustomType.Constructor - private GetInfrastructureConfigurationsResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names) { - this.arns = arns; - this.filters = filters; - this.id = id; - this.names = names; - } + private List names; + private GetInfrastructureConfigurationsResult() {} /** * @return Set of ARNs of the matched Image Builder Infrastructure Configurations. * @@ -73,17 +62,13 @@ public static Builder builder() { public static Builder builder(GetInfrastructureConfigurationsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private @Nullable List filters; private String id; private List names; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInfrastructureConfigurationsResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -92,6 +77,7 @@ public Builder(GetInfrastructureConfigurationsResult defaults) { this.names = defaults.names; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -99,6 +85,7 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -106,18 +93,26 @@ public Builder filters(@Nullable List fil public Builder filters(GetInfrastructureConfigurationsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; } public Builder names(String... names) { return names(List.of(names)); - } public GetInfrastructureConfigurationsResult build() { - return new GetInfrastructureConfigurationsResult(arns, filters, id, names); + } + public GetInfrastructureConfigurationsResult build() { + final var o = new GetInfrastructureConfigurationsResult(); + o.arns = arns; + o.filters = filters; + o.id = id; + o.names = names; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageImageTestsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageImageTestsConfiguration.java index f0569160ee2..db2cbd5f258 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageImageTestsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageImageTestsConfiguration.java @@ -16,21 +16,14 @@ public final class ImageImageTestsConfiguration { * @return Whether image tests are enabled. Defaults to `true`. * */ - private final @Nullable Boolean imageTestsEnabled; + private @Nullable Boolean imageTestsEnabled; /** * @return Number of minutes before image tests time out. Valid values are between `60` and `1440`. Defaults to `720`. * */ - private final @Nullable Integer timeoutMinutes; - - @CustomType.Constructor - private ImageImageTestsConfiguration( - @CustomType.Parameter("imageTestsEnabled") @Nullable Boolean imageTestsEnabled, - @CustomType.Parameter("timeoutMinutes") @Nullable Integer timeoutMinutes) { - this.imageTestsEnabled = imageTestsEnabled; - this.timeoutMinutes = timeoutMinutes; - } + private @Nullable Integer timeoutMinutes; + private ImageImageTestsConfiguration() {} /** * @return Whether image tests are enabled. Defaults to `true`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ImageImageTestsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean imageTestsEnabled; private @Nullable Integer timeoutMinutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImageImageTestsConfiguration defaults) { Objects.requireNonNull(defaults); this.imageTestsEnabled = defaults.imageTestsEnabled; this.timeoutMinutes = defaults.timeoutMinutes; } + @CustomType.Setter public Builder imageTestsEnabled(@Nullable Boolean imageTestsEnabled) { this.imageTestsEnabled = imageTestsEnabled; return this; } + @CustomType.Setter public Builder timeoutMinutes(@Nullable Integer timeoutMinutes) { this.timeoutMinutes = timeoutMinutes; return this; - } public ImageImageTestsConfiguration build() { - return new ImageImageTestsConfiguration(imageTestsEnabled, timeoutMinutes); + } + public ImageImageTestsConfiguration build() { + final var o = new ImageImageTestsConfiguration(); + o.imageTestsEnabled = imageTestsEnabled; + o.timeoutMinutes = timeoutMinutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageOutputResource.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageOutputResource.java index 7382cf66d2a..ee526474293 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageOutputResource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageOutputResource.java @@ -15,13 +15,9 @@ public final class ImageOutputResource { * @return Set of objects with each Amazon Machine Image (AMI) created. * */ - private final @Nullable List amis; - - @CustomType.Constructor - private ImageOutputResource(@CustomType.Parameter("amis") @Nullable List amis) { - this.amis = amis; - } + private @Nullable List amis; + private ImageOutputResource() {} /** * @return Set of objects with each Amazon Machine Image (AMI) created. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(ImageOutputResource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List amis; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImageOutputResource defaults) { Objects.requireNonNull(defaults); this.amis = defaults.amis; } + @CustomType.Setter public Builder amis(@Nullable List amis) { this.amis = amis; return this; } public Builder amis(ImageOutputResourceAmi... amis) { return amis(List.of(amis)); - } public ImageOutputResource build() { - return new ImageOutputResource(amis); + } + public ImageOutputResource build() { + final var o = new ImageOutputResource(); + o.amis = amis; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageOutputResourceAmi.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageOutputResourceAmi.java index b9cc6925856..e527f43c2a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageOutputResourceAmi.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageOutputResourceAmi.java @@ -15,42 +15,29 @@ public final class ImageOutputResourceAmi { * @return Account identifier of the AMI. * */ - private final @Nullable String accountId; + private @Nullable String accountId; /** * @return Description of the AMI. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return Identifier of the AMI. * */ - private final @Nullable String image; + private @Nullable String image; /** * @return Name of the AMI. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Region of the AMI. * */ - private final @Nullable String region; - - @CustomType.Constructor - private ImageOutputResourceAmi( - @CustomType.Parameter("accountId") @Nullable String accountId, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("image") @Nullable String image, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("region") @Nullable String region) { - this.accountId = accountId; - this.description = description; - this.image = image; - this.name = name; - this.region = region; - } + private @Nullable String region; + private ImageOutputResourceAmi() {} /** * @return Account identifier of the AMI. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(ImageOutputResourceAmi defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accountId; private @Nullable String description; private @Nullable String image; private @Nullable String name; private @Nullable String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImageOutputResourceAmi defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; @@ -115,27 +98,39 @@ public Builder(ImageOutputResourceAmi defaults) { this.region = defaults.region; } + @CustomType.Setter public Builder accountId(@Nullable String accountId) { this.accountId = accountId; return this; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder image(@Nullable String image) { this.image = image; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; - } public ImageOutputResourceAmi build() { - return new ImageOutputResourceAmi(accountId, description, image, name, region); + } + public ImageOutputResourceAmi build() { + final var o = new ImageOutputResourceAmi(); + o.accountId = accountId; + o.description = description; + o.image = image; + o.name = name; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImagePipelineImageTestsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImagePipelineImageTestsConfiguration.java index de2531b1b49..6b1ad088f19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImagePipelineImageTestsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImagePipelineImageTestsConfiguration.java @@ -16,21 +16,14 @@ public final class ImagePipelineImageTestsConfiguration { * @return Whether image tests are enabled. Defaults to `true`. * */ - private final @Nullable Boolean imageTestsEnabled; + private @Nullable Boolean imageTestsEnabled; /** * @return Number of minutes before image tests time out. Valid values are between `60` and `1440`. Defaults to `720`. * */ - private final @Nullable Integer timeoutMinutes; - - @CustomType.Constructor - private ImagePipelineImageTestsConfiguration( - @CustomType.Parameter("imageTestsEnabled") @Nullable Boolean imageTestsEnabled, - @CustomType.Parameter("timeoutMinutes") @Nullable Integer timeoutMinutes) { - this.imageTestsEnabled = imageTestsEnabled; - this.timeoutMinutes = timeoutMinutes; - } + private @Nullable Integer timeoutMinutes; + private ImagePipelineImageTestsConfiguration() {} /** * @return Whether image tests are enabled. Defaults to `true`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ImagePipelineImageTestsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean imageTestsEnabled; private @Nullable Integer timeoutMinutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImagePipelineImageTestsConfiguration defaults) { Objects.requireNonNull(defaults); this.imageTestsEnabled = defaults.imageTestsEnabled; this.timeoutMinutes = defaults.timeoutMinutes; } + @CustomType.Setter public Builder imageTestsEnabled(@Nullable Boolean imageTestsEnabled) { this.imageTestsEnabled = imageTestsEnabled; return this; } + @CustomType.Setter public Builder timeoutMinutes(@Nullable Integer timeoutMinutes) { this.timeoutMinutes = timeoutMinutes; return this; - } public ImagePipelineImageTestsConfiguration build() { - return new ImagePipelineImageTestsConfiguration(imageTestsEnabled, timeoutMinutes); + } + public ImagePipelineImageTestsConfiguration build() { + final var o = new ImagePipelineImageTestsConfiguration(); + o.imageTestsEnabled = imageTestsEnabled; + o.timeoutMinutes = timeoutMinutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImagePipelineSchedule.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImagePipelineSchedule.java index 6117b7d1860..f965b8f1fcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImagePipelineSchedule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImagePipelineSchedule.java @@ -15,28 +15,19 @@ public final class ImagePipelineSchedule { * @return Condition when the pipeline should trigger a new image build. Valid values are `EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE` and `EXPRESSION_MATCH_ONLY`. Defaults to `EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE`. * */ - private final @Nullable String pipelineExecutionStartCondition; + private @Nullable String pipelineExecutionStartCondition; /** * @return Cron expression of how often the pipeline start condition is evaluated. For example, `cron(0 0 * * ? *)` is evaluated every day at midnight UTC. Configurations using the five field syntax that was previously accepted by the API, such as `cron(0 0 * * *)`, must be updated to the six field syntax. For more information, see the [Image Builder User Guide](https://docs.aws.amazon.com/imagebuilder/latest/userguide/cron-expressions.html). * */ - private final String scheduleExpression; + private String scheduleExpression; /** * @return The timezone that applies to the scheduling expression. For example, "Etc/UTC", "America/Los_Angeles" in the [IANA timezone format](https://www.joda.org/joda-time/timezones.html). If not specified this defaults to UTC. * */ - private final @Nullable String timezone; - - @CustomType.Constructor - private ImagePipelineSchedule( - @CustomType.Parameter("pipelineExecutionStartCondition") @Nullable String pipelineExecutionStartCondition, - @CustomType.Parameter("scheduleExpression") String scheduleExpression, - @CustomType.Parameter("timezone") @Nullable String timezone) { - this.pipelineExecutionStartCondition = pipelineExecutionStartCondition; - this.scheduleExpression = scheduleExpression; - this.timezone = timezone; - } + private @Nullable String timezone; + private ImagePipelineSchedule() {} /** * @return Condition when the pipeline should trigger a new image build. Valid values are `EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE` and `EXPRESSION_MATCH_ONLY`. Defaults to `EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ImagePipelineSchedule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String pipelineExecutionStartCondition; private String scheduleExpression; private @Nullable String timezone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImagePipelineSchedule defaults) { Objects.requireNonNull(defaults); this.pipelineExecutionStartCondition = defaults.pipelineExecutionStartCondition; @@ -83,19 +70,27 @@ public Builder(ImagePipelineSchedule defaults) { this.timezone = defaults.timezone; } + @CustomType.Setter public Builder pipelineExecutionStartCondition(@Nullable String pipelineExecutionStartCondition) { this.pipelineExecutionStartCondition = pipelineExecutionStartCondition; return this; } + @CustomType.Setter public Builder scheduleExpression(String scheduleExpression) { this.scheduleExpression = Objects.requireNonNull(scheduleExpression); return this; } + @CustomType.Setter public Builder timezone(@Nullable String timezone) { this.timezone = timezone; return this; - } public ImagePipelineSchedule build() { - return new ImagePipelineSchedule(pipelineExecutionStartCondition, scheduleExpression, timezone); + } + public ImagePipelineSchedule build() { + final var o = new ImagePipelineSchedule(); + o.pipelineExecutionStartCondition = pipelineExecutionStartCondition; + o.scheduleExpression = scheduleExpression; + o.timezone = timezone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeBlockDeviceMapping.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeBlockDeviceMapping.java index 6c166be886e..4e46b013764 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeBlockDeviceMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeBlockDeviceMapping.java @@ -17,35 +17,24 @@ public final class ImageRecipeBlockDeviceMapping { * @return Name of the device. For example, `/dev/sda` or `/dev/xvdb`. * */ - private final @Nullable String deviceName; + private @Nullable String deviceName; /** * @return Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below. * */ - private final @Nullable ImageRecipeBlockDeviceMappingEbs ebs; + private @Nullable ImageRecipeBlockDeviceMappingEbs ebs; /** * @return Set to `true` to remove a mapping from the parent image. * */ - private final @Nullable Boolean noDevice; + private @Nullable Boolean noDevice; /** * @return Virtual device name. For example, `ephemeral0`. Instance store volumes are numbered starting from 0. * */ - private final @Nullable String virtualName; - - @CustomType.Constructor - private ImageRecipeBlockDeviceMapping( - @CustomType.Parameter("deviceName") @Nullable String deviceName, - @CustomType.Parameter("ebs") @Nullable ImageRecipeBlockDeviceMappingEbs ebs, - @CustomType.Parameter("noDevice") @Nullable Boolean noDevice, - @CustomType.Parameter("virtualName") @Nullable String virtualName) { - this.deviceName = deviceName; - this.ebs = ebs; - this.noDevice = noDevice; - this.virtualName = virtualName; - } + private @Nullable String virtualName; + private ImageRecipeBlockDeviceMapping() {} /** * @return Name of the device. For example, `/dev/sda` or `/dev/xvdb`. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(ImageRecipeBlockDeviceMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deviceName; private @Nullable ImageRecipeBlockDeviceMappingEbs ebs; private @Nullable Boolean noDevice; private @Nullable String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImageRecipeBlockDeviceMapping defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; @@ -101,23 +86,33 @@ public Builder(ImageRecipeBlockDeviceMapping defaults) { this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(@Nullable String deviceName) { this.deviceName = deviceName; return this; } + @CustomType.Setter public Builder ebs(@Nullable ImageRecipeBlockDeviceMappingEbs ebs) { this.ebs = ebs; return this; } + @CustomType.Setter public Builder noDevice(@Nullable Boolean noDevice) { this.noDevice = noDevice; return this; } + @CustomType.Setter public Builder virtualName(@Nullable String virtualName) { this.virtualName = virtualName; return this; - } public ImageRecipeBlockDeviceMapping build() { - return new ImageRecipeBlockDeviceMapping(deviceName, ebs, noDevice, virtualName); + } + public ImageRecipeBlockDeviceMapping build() { + final var o = new ImageRecipeBlockDeviceMapping(); + o.deviceName = deviceName; + o.ebs = ebs; + o.noDevice = noDevice; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeBlockDeviceMappingEbs.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeBlockDeviceMappingEbs.java index a6a00c9071d..aeb19d62b90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeBlockDeviceMappingEbs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeBlockDeviceMappingEbs.java @@ -16,63 +16,44 @@ public final class ImageRecipeBlockDeviceMappingEbs { * @return Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image. * */ - private final @Nullable String deleteOnTermination; + private @Nullable String deleteOnTermination; /** * @return Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image. * */ - private final @Nullable String encrypted; + private @Nullable String encrypted; /** * @return Number of Input/Output (I/O) operations per second to provision for an `io1` or `io2` volume. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return Identifier of the EC2 Volume Snapshot. * */ - private final @Nullable String snapshotId; + private @Nullable String snapshotId; /** * @return For GP3 volumes only. The throughput in MiB/s that the volume supports. * */ - private final @Nullable Integer throughput; + private @Nullable Integer throughput; /** * @return Size of the volume, in GiB. * */ - private final @Nullable Integer volumeSize; + private @Nullable Integer volumeSize; /** * @return Type of the volume. For example, `gp2` or `io2`. * */ - private final @Nullable String volumeType; - - @CustomType.Constructor - private ImageRecipeBlockDeviceMappingEbs( - @CustomType.Parameter("deleteOnTermination") @Nullable String deleteOnTermination, - @CustomType.Parameter("encrypted") @Nullable String encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("snapshotId") @Nullable String snapshotId, - @CustomType.Parameter("throughput") @Nullable Integer throughput, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.encrypted = encrypted; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.snapshotId = snapshotId; - this.throughput = throughput; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable String volumeType; + private ImageRecipeBlockDeviceMappingEbs() {} /** * @return Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image. * @@ -137,7 +118,7 @@ public static Builder builder() { public static Builder builder(ImageRecipeBlockDeviceMappingEbs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deleteOnTermination; private @Nullable String encrypted; @@ -147,11 +128,7 @@ public static final class Builder { private @Nullable Integer throughput; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImageRecipeBlockDeviceMappingEbs defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -164,39 +141,57 @@ public Builder(ImageRecipeBlockDeviceMappingEbs defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable String deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder encrypted(@Nullable String encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder snapshotId(@Nullable String snapshotId) { this.snapshotId = snapshotId; return this; } + @CustomType.Setter public Builder throughput(@Nullable Integer throughput) { this.throughput = throughput; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public ImageRecipeBlockDeviceMappingEbs build() { - return new ImageRecipeBlockDeviceMappingEbs(deleteOnTermination, encrypted, iops, kmsKeyId, snapshotId, throughput, volumeSize, volumeType); + } + public ImageRecipeBlockDeviceMappingEbs build() { + final var o = new ImageRecipeBlockDeviceMappingEbs(); + o.deleteOnTermination = deleteOnTermination; + o.encrypted = encrypted; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.snapshotId = snapshotId; + o.throughput = throughput; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeComponent.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeComponent.java index e948c29116c..2688833e077 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeComponent.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeComponent.java @@ -16,21 +16,14 @@ public final class ImageRecipeComponent { * @return Amazon Resource Name (ARN) of the Image Builder Component to associate. * */ - private final String componentArn; + private String componentArn; /** * @return Configuration block(s) for parameters to configure the component. Detailed below. * */ - private final @Nullable List parameters; - - @CustomType.Constructor - private ImageRecipeComponent( - @CustomType.Parameter("componentArn") String componentArn, - @CustomType.Parameter("parameters") @Nullable List parameters) { - this.componentArn = componentArn; - this.parameters = parameters; - } + private @Nullable List parameters; + private ImageRecipeComponent() {} /** * @return Amazon Resource Name (ARN) of the Image Builder Component to associate. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(ImageRecipeComponent defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String componentArn; private @Nullable List parameters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImageRecipeComponent defaults) { Objects.requireNonNull(defaults); this.componentArn = defaults.componentArn; this.parameters = defaults.parameters; } + @CustomType.Setter public Builder componentArn(String componentArn) { this.componentArn = Objects.requireNonNull(componentArn); return this; } + @CustomType.Setter public Builder parameters(@Nullable List parameters) { this.parameters = parameters; return this; } public Builder parameters(ImageRecipeComponentParameter... parameters) { return parameters(List.of(parameters)); - } public ImageRecipeComponent build() { - return new ImageRecipeComponent(componentArn, parameters); + } + public ImageRecipeComponent build() { + final var o = new ImageRecipeComponent(); + o.componentArn = componentArn; + o.parameters = parameters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeComponentParameter.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeComponentParameter.java index 8d2a91774f6..7d2b2a58d53 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeComponentParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeComponentParameter.java @@ -13,21 +13,14 @@ public final class ImageRecipeComponentParameter { * @return The name of the component parameter. * */ - private final String name; + private String name; /** * @return The value for the named component parameter. * */ - private final String value; - - @CustomType.Constructor - private ImageRecipeComponentParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private ImageRecipeComponentParameter() {} /** * @return The name of the component parameter. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ImageRecipeComponentParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImageRecipeComponentParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ImageRecipeComponentParameter build() { - return new ImageRecipeComponentParameter(name, value); + } + public ImageRecipeComponentParameter build() { + final var o = new ImageRecipeComponentParameter(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeSystemsManagerAgent.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeSystemsManagerAgent.java index b5600b382f3..38a2f60bdd6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeSystemsManagerAgent.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/ImageRecipeSystemsManagerAgent.java @@ -13,13 +13,9 @@ public final class ImageRecipeSystemsManagerAgent { * @return Whether to remove the Systems Manager Agent after the image has been built. Defaults to `false`. * */ - private final Boolean uninstallAfterBuild; - - @CustomType.Constructor - private ImageRecipeSystemsManagerAgent(@CustomType.Parameter("uninstallAfterBuild") Boolean uninstallAfterBuild) { - this.uninstallAfterBuild = uninstallAfterBuild; - } + private Boolean uninstallAfterBuild; + private ImageRecipeSystemsManagerAgent() {} /** * @return Whether to remove the Systems Manager Agent after the image has been built. Defaults to `false`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ImageRecipeSystemsManagerAgent defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean uninstallAfterBuild; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ImageRecipeSystemsManagerAgent defaults) { Objects.requireNonNull(defaults); this.uninstallAfterBuild = defaults.uninstallAfterBuild; } + @CustomType.Setter public Builder uninstallAfterBuild(Boolean uninstallAfterBuild) { this.uninstallAfterBuild = Objects.requireNonNull(uninstallAfterBuild); return this; - } public ImageRecipeSystemsManagerAgent build() { - return new ImageRecipeSystemsManagerAgent(uninstallAfterBuild); + } + public ImageRecipeSystemsManagerAgent build() { + final var o = new ImageRecipeSystemsManagerAgent(); + o.uninstallAfterBuild = uninstallAfterBuild; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/InfrastructureConfigurationInstanceMetadataOptions.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/InfrastructureConfigurationInstanceMetadataOptions.java index 72fff533ed7..52af0f70e9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/InfrastructureConfigurationInstanceMetadataOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/InfrastructureConfigurationInstanceMetadataOptions.java @@ -16,21 +16,14 @@ public final class InfrastructureConfigurationInstanceMetadataOptions { * @return The number of hops that an instance can traverse to reach its destonation. * */ - private final @Nullable Integer httpPutResponseHopLimit; + private @Nullable Integer httpPutResponseHopLimit; /** * @return Whether a signed token is required for instance metadata retrieval requests. Valid values: `required`, `optional`. * */ - private final @Nullable String httpTokens; - - @CustomType.Constructor - private InfrastructureConfigurationInstanceMetadataOptions( - @CustomType.Parameter("httpPutResponseHopLimit") @Nullable Integer httpPutResponseHopLimit, - @CustomType.Parameter("httpTokens") @Nullable String httpTokens) { - this.httpPutResponseHopLimit = httpPutResponseHopLimit; - this.httpTokens = httpTokens; - } + private @Nullable String httpTokens; + private InfrastructureConfigurationInstanceMetadataOptions() {} /** * @return The number of hops that an instance can traverse to reach its destonation. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(InfrastructureConfigurationInstanceMetadataOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer httpPutResponseHopLimit; private @Nullable String httpTokens; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InfrastructureConfigurationInstanceMetadataOptions defaults) { Objects.requireNonNull(defaults); this.httpPutResponseHopLimit = defaults.httpPutResponseHopLimit; this.httpTokens = defaults.httpTokens; } + @CustomType.Setter public Builder httpPutResponseHopLimit(@Nullable Integer httpPutResponseHopLimit) { this.httpPutResponseHopLimit = httpPutResponseHopLimit; return this; } + @CustomType.Setter public Builder httpTokens(@Nullable String httpTokens) { this.httpTokens = httpTokens; return this; - } public InfrastructureConfigurationInstanceMetadataOptions build() { - return new InfrastructureConfigurationInstanceMetadataOptions(httpPutResponseHopLimit, httpTokens); + } + public InfrastructureConfigurationInstanceMetadataOptions build() { + final var o = new InfrastructureConfigurationInstanceMetadataOptions(); + o.httpPutResponseHopLimit = httpPutResponseHopLimit; + o.httpTokens = httpTokens; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/InfrastructureConfigurationLogging.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/InfrastructureConfigurationLogging.java index d5da16bee65..772d8739b54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/InfrastructureConfigurationLogging.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/InfrastructureConfigurationLogging.java @@ -13,13 +13,9 @@ public final class InfrastructureConfigurationLogging { * @return Configuration block with S3 logging settings. Detailed below. * */ - private final InfrastructureConfigurationLoggingS3Logs s3Logs; - - @CustomType.Constructor - private InfrastructureConfigurationLogging(@CustomType.Parameter("s3Logs") InfrastructureConfigurationLoggingS3Logs s3Logs) { - this.s3Logs = s3Logs; - } + private InfrastructureConfigurationLoggingS3Logs s3Logs; + private InfrastructureConfigurationLogging() {} /** * @return Configuration block with S3 logging settings. Detailed below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(InfrastructureConfigurationLogging defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private InfrastructureConfigurationLoggingS3Logs s3Logs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InfrastructureConfigurationLogging defaults) { Objects.requireNonNull(defaults); this.s3Logs = defaults.s3Logs; } + @CustomType.Setter public Builder s3Logs(InfrastructureConfigurationLoggingS3Logs s3Logs) { this.s3Logs = Objects.requireNonNull(s3Logs); return this; - } public InfrastructureConfigurationLogging build() { - return new InfrastructureConfigurationLogging(s3Logs); + } + public InfrastructureConfigurationLogging build() { + final var o = new InfrastructureConfigurationLogging(); + o.s3Logs = s3Logs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/InfrastructureConfigurationLoggingS3Logs.java b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/InfrastructureConfigurationLoggingS3Logs.java index ad55de12d28..e4fce4ae979 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/InfrastructureConfigurationLoggingS3Logs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/imagebuilder/outputs/InfrastructureConfigurationLoggingS3Logs.java @@ -15,21 +15,14 @@ public final class InfrastructureConfigurationLoggingS3Logs { * @return Name of the S3 Bucket. * */ - private final String s3BucketName; + private String s3BucketName; /** * @return Prefix to use for S3 logs. Defaults to `/`. * */ - private final @Nullable String s3KeyPrefix; - - @CustomType.Constructor - private InfrastructureConfigurationLoggingS3Logs( - @CustomType.Parameter("s3BucketName") String s3BucketName, - @CustomType.Parameter("s3KeyPrefix") @Nullable String s3KeyPrefix) { - this.s3BucketName = s3BucketName; - this.s3KeyPrefix = s3KeyPrefix; - } + private @Nullable String s3KeyPrefix; + private InfrastructureConfigurationLoggingS3Logs() {} /** * @return Name of the S3 Bucket. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(InfrastructureConfigurationLoggingS3Logs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String s3BucketName; private @Nullable String s3KeyPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InfrastructureConfigurationLoggingS3Logs defaults) { Objects.requireNonNull(defaults); this.s3BucketName = defaults.s3BucketName; this.s3KeyPrefix = defaults.s3KeyPrefix; } + @CustomType.Setter public Builder s3BucketName(String s3BucketName) { this.s3BucketName = Objects.requireNonNull(s3BucketName); return this; } + @CustomType.Setter public Builder s3KeyPrefix(@Nullable String s3KeyPrefix) { this.s3KeyPrefix = s3KeyPrefix; return this; - } public InfrastructureConfigurationLoggingS3Logs build() { - return new InfrastructureConfigurationLoggingS3Logs(s3BucketName, s3KeyPrefix); + } + public InfrastructureConfigurationLoggingS3Logs build() { + final var o = new InfrastructureConfigurationLoggingS3Logs(); + o.s3BucketName = s3BucketName; + o.s3KeyPrefix = s3KeyPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/inspector/outputs/AssessmentTemplateEventSubscription.java b/sdk/java/src/main/java/com/pulumi/aws/inspector/outputs/AssessmentTemplateEventSubscription.java index bb11cc5d3d8..cc59556e03f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/inspector/outputs/AssessmentTemplateEventSubscription.java +++ b/sdk/java/src/main/java/com/pulumi/aws/inspector/outputs/AssessmentTemplateEventSubscription.java @@ -13,21 +13,14 @@ public final class AssessmentTemplateEventSubscription { * @return The event for which you want to receive SNS notifications. Valid values are `ASSESSMENT_RUN_STARTED`, `ASSESSMENT_RUN_COMPLETED`, `ASSESSMENT_RUN_STATE_CHANGED`, and `FINDING_REPORTED`. * */ - private final String event; + private String event; /** * @return The ARN of the SNS topic to which notifications are sent. * */ - private final String topicArn; - - @CustomType.Constructor - private AssessmentTemplateEventSubscription( - @CustomType.Parameter("event") String event, - @CustomType.Parameter("topicArn") String topicArn) { - this.event = event; - this.topicArn = topicArn; - } + private String topicArn; + private AssessmentTemplateEventSubscription() {} /** * @return The event for which you want to receive SNS notifications. Valid values are `ASSESSMENT_RUN_STARTED`, `ASSESSMENT_RUN_COMPLETED`, `ASSESSMENT_RUN_STATE_CHANGED`, and `FINDING_REPORTED`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(AssessmentTemplateEventSubscription defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String event; private String topicArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AssessmentTemplateEventSubscription defaults) { Objects.requireNonNull(defaults); this.event = defaults.event; this.topicArn = defaults.topicArn; } + @CustomType.Setter public Builder event(String event) { this.event = Objects.requireNonNull(event); return this; } + @CustomType.Setter public Builder topicArn(String topicArn) { this.topicArn = Objects.requireNonNull(topicArn); return this; - } public AssessmentTemplateEventSubscription build() { - return new AssessmentTemplateEventSubscription(event, topicArn); + } + public AssessmentTemplateEventSubscription build() { + final var o = new AssessmentTemplateEventSubscription(); + o.event = event; + o.topicArn = topicArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/inspector/outputs/GetRulesPackagesResult.java b/sdk/java/src/main/java/com/pulumi/aws/inspector/outputs/GetRulesPackagesResult.java index 4bb58cf26ce..a325db86973 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/inspector/outputs/GetRulesPackagesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/inspector/outputs/GetRulesPackagesResult.java @@ -14,21 +14,14 @@ public final class GetRulesPackagesResult { * @return A list of the AWS Inspector Rules Packages arns available in the AWS region. * */ - private final List arns; + private List arns; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetRulesPackagesResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("id") String id) { - this.arns = arns; - this.id = id; - } + private String id; + private GetRulesPackagesResult() {} /** * @return A list of the AWS Inspector Rules Packages arns available in the AWS region. * @@ -51,21 +44,18 @@ public static Builder builder() { public static Builder builder(GetRulesPackagesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRulesPackagesResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; this.id = defaults.id; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -73,11 +63,16 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetRulesPackagesResult build() { - return new GetRulesPackagesResult(arns, id); + } + public GetRulesPackagesResult build() { + final var o = new GetRulesPackagesResult(); + o.arns = arns; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/GetEndpointResult.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/GetEndpointResult.java index ccf851d901c..c5aaf8ad7ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/GetEndpointResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/GetEndpointResult.java @@ -20,24 +20,15 @@ public final class GetEndpointResult { * * `iot:Jobs`: `IDENTIFIER.jobs.iot.REGION.amazonaws.com` * */ - private final String endpointAddress; - private final @Nullable String endpointType; + private String endpointAddress; + private @Nullable String endpointType; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetEndpointResult( - @CustomType.Parameter("endpointAddress") String endpointAddress, - @CustomType.Parameter("endpointType") @Nullable String endpointType, - @CustomType.Parameter("id") String id) { - this.endpointAddress = endpointAddress; - this.endpointType = endpointType; - this.id = id; - } + private String id; + private GetEndpointResult() {} /** * @return The endpoint based on `endpoint_type`: * * No `endpoint_type`: Either `iot:Data` or `iot:Data-ATS` [depending on region](https://aws.amazon.com/blogs/iot/aws-iot-core-ats-endpoints/) @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(GetEndpointResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String endpointAddress; private @Nullable String endpointType; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEndpointResult defaults) { Objects.requireNonNull(defaults); this.endpointAddress = defaults.endpointAddress; @@ -85,19 +72,27 @@ public Builder(GetEndpointResult defaults) { this.id = defaults.id; } + @CustomType.Setter public Builder endpointAddress(String endpointAddress) { this.endpointAddress = Objects.requireNonNull(endpointAddress); return this; } + @CustomType.Setter public Builder endpointType(@Nullable String endpointType) { this.endpointType = endpointType; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetEndpointResult build() { - return new GetEndpointResult(endpointAddress, endpointType, id); + } + public GetEndpointResult build() { + final var o = new GetEndpointResult(); + o.endpointAddress = endpointAddress; + o.endpointType = endpointType; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/IndexingConfigurationThingGroupIndexingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/IndexingConfigurationThingGroupIndexingConfiguration.java index 9474751e1e2..19c1e04ed36 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/IndexingConfigurationThingGroupIndexingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/IndexingConfigurationThingGroupIndexingConfiguration.java @@ -17,28 +17,19 @@ public final class IndexingConfigurationThingGroupIndexingConfiguration { * @return A list of thing group fields to index. This list cannot contain any managed fields. See below. * */ - private final @Nullable List customFields; + private @Nullable List customFields; /** * @return Contains fields that are indexed and whose types are already known by the Fleet Indexing service. See below. * */ - private final @Nullable List managedFields; + private @Nullable List managedFields; /** * @return Thing group indexing mode. Valid values: `OFF`, `ON`. * */ - private final String thingGroupIndexingMode; - - @CustomType.Constructor - private IndexingConfigurationThingGroupIndexingConfiguration( - @CustomType.Parameter("customFields") @Nullable List customFields, - @CustomType.Parameter("managedFields") @Nullable List managedFields, - @CustomType.Parameter("thingGroupIndexingMode") String thingGroupIndexingMode) { - this.customFields = customFields; - this.managedFields = managedFields; - this.thingGroupIndexingMode = thingGroupIndexingMode; - } + private String thingGroupIndexingMode; + private IndexingConfigurationThingGroupIndexingConfiguration() {} /** * @return A list of thing group fields to index. This list cannot contain any managed fields. See below. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(IndexingConfigurationThingGroupIndexingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List customFields; private @Nullable List managedFields; private String thingGroupIndexingMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexingConfigurationThingGroupIndexingConfiguration defaults) { Objects.requireNonNull(defaults); this.customFields = defaults.customFields; @@ -85,6 +72,7 @@ public Builder(IndexingConfigurationThingGroupIndexingConfiguration defaults) { this.thingGroupIndexingMode = defaults.thingGroupIndexingMode; } + @CustomType.Setter public Builder customFields(@Nullable List customFields) { this.customFields = customFields; return this; @@ -92,6 +80,7 @@ public Builder customFields(@Nullable List managedFields) { this.managedFields = managedFields; return this; @@ -99,11 +88,17 @@ public Builder managedFields(@Nullable List customFields; + private @Nullable List customFields; /** * @return Device Defender indexing mode. Valid values: `VIOLATIONS`, `OFF`. Default: `OFF`. * */ - private final @Nullable String deviceDefenderIndexingMode; + private @Nullable String deviceDefenderIndexingMode; /** * @return Contains fields that are indexed and whose types are already known by the Fleet Indexing service. See below. * */ - private final @Nullable List managedFields; + private @Nullable List managedFields; /** * @return [Named shadow](https://docs.aws.amazon.com/iot/latest/developerguide/iot-device-shadows.html) indexing mode. Valid values: `ON`, `OFF`. Default: `OFF`. * */ - private final @Nullable String namedShadowIndexingMode; + private @Nullable String namedShadowIndexingMode; /** * @return Thing connectivity indexing mode. Valid values: `STATUS`, `OFF`. Default: `OFF`. * */ - private final @Nullable String thingConnectivityIndexingMode; + private @Nullable String thingConnectivityIndexingMode; /** * @return Thing indexing mode. Valid values: `REGISTRY`, `REGISTRY_AND_SHADOW`, `OFF`. * */ - private final String thingIndexingMode; - - @CustomType.Constructor - private IndexingConfigurationThingIndexingConfiguration( - @CustomType.Parameter("customFields") @Nullable List customFields, - @CustomType.Parameter("deviceDefenderIndexingMode") @Nullable String deviceDefenderIndexingMode, - @CustomType.Parameter("managedFields") @Nullable List managedFields, - @CustomType.Parameter("namedShadowIndexingMode") @Nullable String namedShadowIndexingMode, - @CustomType.Parameter("thingConnectivityIndexingMode") @Nullable String thingConnectivityIndexingMode, - @CustomType.Parameter("thingIndexingMode") String thingIndexingMode) { - this.customFields = customFields; - this.deviceDefenderIndexingMode = deviceDefenderIndexingMode; - this.managedFields = managedFields; - this.namedShadowIndexingMode = namedShadowIndexingMode; - this.thingConnectivityIndexingMode = thingConnectivityIndexingMode; - this.thingIndexingMode = thingIndexingMode; - } + private String thingIndexingMode; + private IndexingConfigurationThingIndexingConfiguration() {} /** * @return Contains custom field names and their data type. See below. * @@ -111,7 +96,7 @@ public static Builder builder() { public static Builder builder(IndexingConfigurationThingIndexingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List customFields; private @Nullable String deviceDefenderIndexingMode; @@ -119,11 +104,7 @@ public static final class Builder { private @Nullable String namedShadowIndexingMode; private @Nullable String thingConnectivityIndexingMode; private String thingIndexingMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexingConfigurationThingIndexingConfiguration defaults) { Objects.requireNonNull(defaults); this.customFields = defaults.customFields; @@ -134,6 +115,7 @@ public Builder(IndexingConfigurationThingIndexingConfiguration defaults) { this.thingIndexingMode = defaults.thingIndexingMode; } + @CustomType.Setter public Builder customFields(@Nullable List customFields) { this.customFields = customFields; return this; @@ -141,10 +123,12 @@ public Builder customFields(@Nullable List managedFields) { this.managedFields = managedFields; return this; @@ -152,19 +136,30 @@ public Builder managedFields(@Nullable List rootToParentGroups; - - @CustomType.Constructor - private ThingGroupMetadata( - @CustomType.Parameter("creationDate") @Nullable String creationDate, - @CustomType.Parameter("parentGroupName") @Nullable String parentGroupName, - @CustomType.Parameter("rootToParentGroups") @Nullable List rootToParentGroups) { - this.creationDate = creationDate; - this.parentGroupName = parentGroupName; - this.rootToParentGroups = rootToParentGroups; - } + private @Nullable String parentGroupName; + private @Nullable List rootToParentGroups; + private ThingGroupMetadata() {} public Optional creationDate() { return Optional.ofNullable(this.creationDate); } @@ -52,16 +43,12 @@ public static Builder builder() { public static Builder builder(ThingGroupMetadata defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String creationDate; private @Nullable String parentGroupName; private @Nullable List rootToParentGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ThingGroupMetadata defaults) { Objects.requireNonNull(defaults); this.creationDate = defaults.creationDate; @@ -69,22 +56,30 @@ public Builder(ThingGroupMetadata defaults) { this.rootToParentGroups = defaults.rootToParentGroups; } + @CustomType.Setter public Builder creationDate(@Nullable String creationDate) { this.creationDate = creationDate; return this; } + @CustomType.Setter public Builder parentGroupName(@Nullable String parentGroupName) { this.parentGroupName = parentGroupName; return this; } + @CustomType.Setter public Builder rootToParentGroups(@Nullable List rootToParentGroups) { this.rootToParentGroups = rootToParentGroups; return this; } public Builder rootToParentGroups(ThingGroupMetadataRootToParentGroup... rootToParentGroups) { return rootToParentGroups(List.of(rootToParentGroups)); - } public ThingGroupMetadata build() { - return new ThingGroupMetadata(creationDate, parentGroupName, rootToParentGroups); + } + public ThingGroupMetadata build() { + final var o = new ThingGroupMetadata(); + o.creationDate = creationDate; + o.parentGroupName = parentGroupName; + o.rootToParentGroups = rootToParentGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingGroupMetadataRootToParentGroup.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingGroupMetadataRootToParentGroup.java index 4021deb6a24..a8cabadc2cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingGroupMetadataRootToParentGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingGroupMetadataRootToParentGroup.java @@ -11,17 +11,10 @@ @CustomType public final class ThingGroupMetadataRootToParentGroup { - private final @Nullable String groupArn; - private final @Nullable String groupName; - - @CustomType.Constructor - private ThingGroupMetadataRootToParentGroup( - @CustomType.Parameter("groupArn") @Nullable String groupArn, - @CustomType.Parameter("groupName") @Nullable String groupName) { - this.groupArn = groupArn; - this.groupName = groupName; - } + private @Nullable String groupArn; + private @Nullable String groupName; + private ThingGroupMetadataRootToParentGroup() {} public Optional groupArn() { return Optional.ofNullable(this.groupArn); } @@ -36,30 +29,32 @@ public static Builder builder() { public static Builder builder(ThingGroupMetadataRootToParentGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String groupArn; private @Nullable String groupName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ThingGroupMetadataRootToParentGroup defaults) { Objects.requireNonNull(defaults); this.groupArn = defaults.groupArn; this.groupName = defaults.groupName; } + @CustomType.Setter public Builder groupArn(@Nullable String groupArn) { this.groupArn = groupArn; return this; } + @CustomType.Setter public Builder groupName(@Nullable String groupName) { this.groupName = groupName; return this; - } public ThingGroupMetadataRootToParentGroup build() { - return new ThingGroupMetadataRootToParentGroup(groupArn, groupName); + } + public ThingGroupMetadataRootToParentGroup build() { + final var o = new ThingGroupMetadataRootToParentGroup(); + o.groupArn = groupArn; + o.groupName = groupName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingGroupProperties.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingGroupProperties.java index 21cad367eb8..398b902a3c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingGroupProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingGroupProperties.java @@ -16,21 +16,14 @@ public final class ThingGroupProperties { * @return The Thing Group attributes. Defined below. * */ - private final @Nullable ThingGroupPropertiesAttributePayload attributePayload; + private @Nullable ThingGroupPropertiesAttributePayload attributePayload; /** * @return A description of the Thing Group. * */ - private final @Nullable String description; - - @CustomType.Constructor - private ThingGroupProperties( - @CustomType.Parameter("attributePayload") @Nullable ThingGroupPropertiesAttributePayload attributePayload, - @CustomType.Parameter("description") @Nullable String description) { - this.attributePayload = attributePayload; - this.description = description; - } + private @Nullable String description; + private ThingGroupProperties() {} /** * @return The Thing Group attributes. Defined below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ThingGroupProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ThingGroupPropertiesAttributePayload attributePayload; private @Nullable String description; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ThingGroupProperties defaults) { Objects.requireNonNull(defaults); this.attributePayload = defaults.attributePayload; this.description = defaults.description; } + @CustomType.Setter public Builder attributePayload(@Nullable ThingGroupPropertiesAttributePayload attributePayload) { this.attributePayload = attributePayload; return this; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; - } public ThingGroupProperties build() { - return new ThingGroupProperties(attributePayload, description); + } + public ThingGroupProperties build() { + final var o = new ThingGroupProperties(); + o.attributePayload = attributePayload; + o.description = description; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingGroupPropertiesAttributePayload.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingGroupPropertiesAttributePayload.java index 3e0c3b4d4cb..b015ff8c661 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingGroupPropertiesAttributePayload.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingGroupPropertiesAttributePayload.java @@ -15,13 +15,9 @@ public final class ThingGroupPropertiesAttributePayload { * @return Key-value map. * */ - private final @Nullable Map attributes; - - @CustomType.Constructor - private ThingGroupPropertiesAttributePayload(@CustomType.Parameter("attributes") @Nullable Map attributes) { - this.attributes = attributes; - } + private @Nullable Map attributes; + private ThingGroupPropertiesAttributePayload() {} /** * @return Key-value map. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ThingGroupPropertiesAttributePayload defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map attributes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ThingGroupPropertiesAttributePayload defaults) { Objects.requireNonNull(defaults); this.attributes = defaults.attributes; } + @CustomType.Setter public Builder attributes(@Nullable Map attributes) { this.attributes = attributes; return this; - } public ThingGroupPropertiesAttributePayload build() { - return new ThingGroupPropertiesAttributePayload(attributes); + } + public ThingGroupPropertiesAttributePayload build() { + final var o = new ThingGroupPropertiesAttributePayload(); + o.attributes = attributes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingTypeProperties.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingTypeProperties.java index c328c20d476..2899c7bacc5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingTypeProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/ThingTypeProperties.java @@ -16,21 +16,14 @@ public final class ThingTypeProperties { * @return The description of the thing type. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return A list of searchable thing attribute names. * */ - private final @Nullable List searchableAttributes; - - @CustomType.Constructor - private ThingTypeProperties( - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("searchableAttributes") @Nullable List searchableAttributes) { - this.description = description; - this.searchableAttributes = searchableAttributes; - } + private @Nullable List searchableAttributes; + private ThingTypeProperties() {} /** * @return The description of the thing type. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(ThingTypeProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String description; private @Nullable List searchableAttributes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ThingTypeProperties defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; this.searchableAttributes = defaults.searchableAttributes; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder searchableAttributes(@Nullable List searchableAttributes) { this.searchableAttributes = searchableAttributes; return this; } public Builder searchableAttributes(String... searchableAttributes) { return searchableAttributes(List.of(searchableAttributes)); - } public ThingTypeProperties build() { - return new ThingTypeProperties(description, searchableAttributes); + } + public ThingTypeProperties build() { + final var o = new ThingTypeProperties(); + o.description = description; + o.searchableAttributes = searchableAttributes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleCloudwatchAlarm.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleCloudwatchAlarm.java index 32c67cdef2c..46c7f544eb1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleCloudwatchAlarm.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleCloudwatchAlarm.java @@ -13,35 +13,24 @@ public final class TopicRuleCloudwatchAlarm { * @return The CloudWatch alarm name. * */ - private final String alarmName; + private String alarmName; /** * @return The IAM role ARN that allows access to the CloudWatch alarm. * */ - private final String roleArn; + private String roleArn; /** * @return The reason for the alarm change. * */ - private final String stateReason; + private String stateReason; /** * @return The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA. * */ - private final String stateValue; - - @CustomType.Constructor - private TopicRuleCloudwatchAlarm( - @CustomType.Parameter("alarmName") String alarmName, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("stateReason") String stateReason, - @CustomType.Parameter("stateValue") String stateValue) { - this.alarmName = alarmName; - this.roleArn = roleArn; - this.stateReason = stateReason; - this.stateValue = stateValue; - } + private String stateValue; + private TopicRuleCloudwatchAlarm() {} /** * @return The CloudWatch alarm name. * @@ -78,17 +67,13 @@ public static Builder builder() { public static Builder builder(TopicRuleCloudwatchAlarm defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String alarmName; private String roleArn; private String stateReason; private String stateValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleCloudwatchAlarm defaults) { Objects.requireNonNull(defaults); this.alarmName = defaults.alarmName; @@ -97,23 +82,33 @@ public Builder(TopicRuleCloudwatchAlarm defaults) { this.stateValue = defaults.stateValue; } + @CustomType.Setter public Builder alarmName(String alarmName) { this.alarmName = Objects.requireNonNull(alarmName); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder stateReason(String stateReason) { this.stateReason = Objects.requireNonNull(stateReason); return this; } + @CustomType.Setter public Builder stateValue(String stateValue) { this.stateValue = Objects.requireNonNull(stateValue); return this; - } public TopicRuleCloudwatchAlarm build() { - return new TopicRuleCloudwatchAlarm(alarmName, roleArn, stateReason, stateValue); + } + public TopicRuleCloudwatchAlarm build() { + final var o = new TopicRuleCloudwatchAlarm(); + o.alarmName = alarmName; + o.roleArn = roleArn; + o.stateReason = stateReason; + o.stateValue = stateValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleCloudwatchLog.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleCloudwatchLog.java index 6c238afb502..3bcf185a8aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleCloudwatchLog.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleCloudwatchLog.java @@ -13,21 +13,14 @@ public final class TopicRuleCloudwatchLog { * @return The CloudWatch log group name. * */ - private final String logGroupName; + private String logGroupName; /** * @return The IAM role ARN that allows access to the CloudWatch alarm. * */ - private final String roleArn; - - @CustomType.Constructor - private TopicRuleCloudwatchLog( - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("roleArn") String roleArn) { - this.logGroupName = logGroupName; - this.roleArn = roleArn; - } + private String roleArn; + private TopicRuleCloudwatchLog() {} /** * @return The CloudWatch log group name. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TopicRuleCloudwatchLog defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String logGroupName; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleCloudwatchLog defaults) { Objects.requireNonNull(defaults); this.logGroupName = defaults.logGroupName; this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public TopicRuleCloudwatchLog build() { - return new TopicRuleCloudwatchLog(logGroupName, roleArn); + } + public TopicRuleCloudwatchLog build() { + final var o = new TopicRuleCloudwatchLog(); + o.logGroupName = logGroupName; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleCloudwatchMetric.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleCloudwatchMetric.java index d3aae2104b6..0865199e5d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleCloudwatchMetric.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleCloudwatchMetric.java @@ -15,49 +15,34 @@ public final class TopicRuleCloudwatchMetric { * @return The CloudWatch metric name. * */ - private final String metricName; + private String metricName; /** * @return The CloudWatch metric namespace name. * */ - private final String metricNamespace; + private String metricNamespace; /** * @return An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp). * */ - private final @Nullable String metricTimestamp; + private @Nullable String metricTimestamp; /** * @return The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) * */ - private final String metricUnit; + private String metricUnit; /** * @return The CloudWatch metric value. * */ - private final String metricValue; + private String metricValue; /** * @return The IAM role ARN that allows access to the CloudWatch metric. * */ - private final String roleArn; - - @CustomType.Constructor - private TopicRuleCloudwatchMetric( - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("metricNamespace") String metricNamespace, - @CustomType.Parameter("metricTimestamp") @Nullable String metricTimestamp, - @CustomType.Parameter("metricUnit") String metricUnit, - @CustomType.Parameter("metricValue") String metricValue, - @CustomType.Parameter("roleArn") String roleArn) { - this.metricName = metricName; - this.metricNamespace = metricNamespace; - this.metricTimestamp = metricTimestamp; - this.metricUnit = metricUnit; - this.metricValue = metricValue; - this.roleArn = roleArn; - } + private String roleArn; + private TopicRuleCloudwatchMetric() {} /** * @return The CloudWatch metric name. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(TopicRuleCloudwatchMetric defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String metricName; private String metricNamespace; @@ -116,11 +101,7 @@ public static final class Builder { private String metricUnit; private String metricValue; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleCloudwatchMetric defaults) { Objects.requireNonNull(defaults); this.metricName = defaults.metricName; @@ -131,31 +112,45 @@ public Builder(TopicRuleCloudwatchMetric defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder metricName(String metricName) { this.metricName = Objects.requireNonNull(metricName); return this; } + @CustomType.Setter public Builder metricNamespace(String metricNamespace) { this.metricNamespace = Objects.requireNonNull(metricNamespace); return this; } + @CustomType.Setter public Builder metricTimestamp(@Nullable String metricTimestamp) { this.metricTimestamp = metricTimestamp; return this; } + @CustomType.Setter public Builder metricUnit(String metricUnit) { this.metricUnit = Objects.requireNonNull(metricUnit); return this; } + @CustomType.Setter public Builder metricValue(String metricValue) { this.metricValue = Objects.requireNonNull(metricValue); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public TopicRuleCloudwatchMetric build() { - return new TopicRuleCloudwatchMetric(metricName, metricNamespace, metricTimestamp, metricUnit, metricValue, roleArn); + } + public TopicRuleCloudwatchMetric build() { + final var o = new TopicRuleCloudwatchMetric(); + o.metricName = metricName; + o.metricNamespace = metricNamespace; + o.metricTimestamp = metricTimestamp; + o.metricUnit = metricUnit; + o.metricValue = metricValue; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDestinationVpcConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDestinationVpcConfiguration.java index 7355fbcc781..ed507461b7d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDestinationVpcConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDestinationVpcConfiguration.java @@ -15,35 +15,24 @@ public final class TopicRuleDestinationVpcConfiguration { * @return The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs). * */ - private final String roleArn; + private String roleArn; /** * @return The security groups of the VPC destination. * */ - private final @Nullable List securityGroups; + private @Nullable List securityGroups; /** * @return The subnet IDs of the VPC destination. * */ - private final List subnetIds; + private List subnetIds; /** * @return The ID of the VPC. * */ - private final String vpcId; - - @CustomType.Constructor - private TopicRuleDestinationVpcConfiguration( - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("securityGroups") @Nullable List securityGroups, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.roleArn = roleArn; - this.securityGroups = securityGroups; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private TopicRuleDestinationVpcConfiguration() {} /** * @return The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs). * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(TopicRuleDestinationVpcConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String roleArn; private @Nullable List securityGroups; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleDestinationVpcConfiguration defaults) { Objects.requireNonNull(defaults); this.roleArn = defaults.roleArn; @@ -99,10 +84,12 @@ public Builder(TopicRuleDestinationVpcConfiguration defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { this.securityGroups = securityGroups; return this; @@ -110,6 +97,7 @@ public Builder securityGroups(@Nullable List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -117,11 +105,18 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public TopicRuleDestinationVpcConfiguration build() { - return new TopicRuleDestinationVpcConfiguration(roleArn, securityGroups, subnetIds, vpcId); + } + public TopicRuleDestinationVpcConfiguration build() { + final var o = new TopicRuleDestinationVpcConfiguration(); + o.roleArn = roleArn; + o.securityGroups = securityGroups; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDynamodb.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDynamodb.java index 6546eaa7ffc..becb0f872ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDynamodb.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDynamodb.java @@ -15,77 +15,54 @@ public final class TopicRuleDynamodb { * @return The hash key name. * */ - private final String hashKeyField; + private String hashKeyField; /** * @return The hash key type. Valid values are "STRING" or "NUMBER". * */ - private final @Nullable String hashKeyType; + private @Nullable String hashKeyType; /** * @return The hash key value. * */ - private final String hashKeyValue; + private String hashKeyValue; /** * @return The operation. Valid values are "INSERT", "UPDATE", or "DELETE". * */ - private final @Nullable String operation; + private @Nullable String operation; /** * @return The action payload. * */ - private final @Nullable String payloadField; + private @Nullable String payloadField; /** * @return The range key name. * */ - private final @Nullable String rangeKeyField; + private @Nullable String rangeKeyField; /** * @return The range key type. Valid values are "STRING" or "NUMBER". * */ - private final @Nullable String rangeKeyType; + private @Nullable String rangeKeyType; /** * @return The range key value. * */ - private final @Nullable String rangeKeyValue; + private @Nullable String rangeKeyValue; /** * @return The ARN of the IAM role that grants access to the DynamoDB table. * */ - private final String roleArn; + private String roleArn; /** * @return The name of the DynamoDB table. * */ - private final String tableName; - - @CustomType.Constructor - private TopicRuleDynamodb( - @CustomType.Parameter("hashKeyField") String hashKeyField, - @CustomType.Parameter("hashKeyType") @Nullable String hashKeyType, - @CustomType.Parameter("hashKeyValue") String hashKeyValue, - @CustomType.Parameter("operation") @Nullable String operation, - @CustomType.Parameter("payloadField") @Nullable String payloadField, - @CustomType.Parameter("rangeKeyField") @Nullable String rangeKeyField, - @CustomType.Parameter("rangeKeyType") @Nullable String rangeKeyType, - @CustomType.Parameter("rangeKeyValue") @Nullable String rangeKeyValue, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("tableName") String tableName) { - this.hashKeyField = hashKeyField; - this.hashKeyType = hashKeyType; - this.hashKeyValue = hashKeyValue; - this.operation = operation; - this.payloadField = payloadField; - this.rangeKeyField = rangeKeyField; - this.rangeKeyType = rangeKeyType; - this.rangeKeyValue = rangeKeyValue; - this.roleArn = roleArn; - this.tableName = tableName; - } + private String tableName; + private TopicRuleDynamodb() {} /** * @return The hash key name. * @@ -164,7 +141,7 @@ public static Builder builder() { public static Builder builder(TopicRuleDynamodb defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String hashKeyField; private @Nullable String hashKeyType; @@ -176,11 +153,7 @@ public static final class Builder { private @Nullable String rangeKeyValue; private String roleArn; private String tableName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleDynamodb defaults) { Objects.requireNonNull(defaults); this.hashKeyField = defaults.hashKeyField; @@ -195,47 +168,69 @@ public Builder(TopicRuleDynamodb defaults) { this.tableName = defaults.tableName; } + @CustomType.Setter public Builder hashKeyField(String hashKeyField) { this.hashKeyField = Objects.requireNonNull(hashKeyField); return this; } + @CustomType.Setter public Builder hashKeyType(@Nullable String hashKeyType) { this.hashKeyType = hashKeyType; return this; } + @CustomType.Setter public Builder hashKeyValue(String hashKeyValue) { this.hashKeyValue = Objects.requireNonNull(hashKeyValue); return this; } + @CustomType.Setter public Builder operation(@Nullable String operation) { this.operation = operation; return this; } + @CustomType.Setter public Builder payloadField(@Nullable String payloadField) { this.payloadField = payloadField; return this; } + @CustomType.Setter public Builder rangeKeyField(@Nullable String rangeKeyField) { this.rangeKeyField = rangeKeyField; return this; } + @CustomType.Setter public Builder rangeKeyType(@Nullable String rangeKeyType) { this.rangeKeyType = rangeKeyType; return this; } + @CustomType.Setter public Builder rangeKeyValue(@Nullable String rangeKeyValue) { this.rangeKeyValue = rangeKeyValue; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder tableName(String tableName) { this.tableName = Objects.requireNonNull(tableName); return this; - } public TopicRuleDynamodb build() { - return new TopicRuleDynamodb(hashKeyField, hashKeyType, hashKeyValue, operation, payloadField, rangeKeyField, rangeKeyType, rangeKeyValue, roleArn, tableName); + } + public TopicRuleDynamodb build() { + final var o = new TopicRuleDynamodb(); + o.hashKeyField = hashKeyField; + o.hashKeyType = hashKeyType; + o.hashKeyValue = hashKeyValue; + o.operation = operation; + o.payloadField = payloadField; + o.rangeKeyField = rangeKeyField; + o.rangeKeyType = rangeKeyType; + o.rangeKeyValue = rangeKeyValue; + o.roleArn = roleArn; + o.tableName = tableName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDynamodbv2.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDynamodbv2.java index 83bef818aa0..cb285b5fe18 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDynamodbv2.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDynamodbv2.java @@ -16,21 +16,14 @@ public final class TopicRuleDynamodbv2 { * @return Configuration block with DynamoDB Table to which the message will be written. Nested arguments below. * */ - private final @Nullable TopicRuleDynamodbv2PutItem putItem; + private @Nullable TopicRuleDynamodbv2PutItem putItem; /** * @return The IAM role ARN that allows access to the CloudWatch alarm. * */ - private final String roleArn; - - @CustomType.Constructor - private TopicRuleDynamodbv2( - @CustomType.Parameter("putItem") @Nullable TopicRuleDynamodbv2PutItem putItem, - @CustomType.Parameter("roleArn") String roleArn) { - this.putItem = putItem; - this.roleArn = roleArn; - } + private String roleArn; + private TopicRuleDynamodbv2() {} /** * @return Configuration block with DynamoDB Table to which the message will be written. Nested arguments below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(TopicRuleDynamodbv2 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable TopicRuleDynamodbv2PutItem putItem; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleDynamodbv2 defaults) { Objects.requireNonNull(defaults); this.putItem = defaults.putItem; this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder putItem(@Nullable TopicRuleDynamodbv2PutItem putItem) { this.putItem = putItem; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public TopicRuleDynamodbv2 build() { - return new TopicRuleDynamodbv2(putItem, roleArn); + } + public TopicRuleDynamodbv2 build() { + final var o = new TopicRuleDynamodbv2(); + o.putItem = putItem; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDynamodbv2PutItem.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDynamodbv2PutItem.java index 24b0b8404dd..2c8adb16e04 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDynamodbv2PutItem.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleDynamodbv2PutItem.java @@ -13,13 +13,9 @@ public final class TopicRuleDynamodbv2PutItem { * @return The name of the DynamoDB table. * */ - private final String tableName; - - @CustomType.Constructor - private TopicRuleDynamodbv2PutItem(@CustomType.Parameter("tableName") String tableName) { - this.tableName = tableName; - } + private String tableName; + private TopicRuleDynamodbv2PutItem() {} /** * @return The name of the DynamoDB table. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(TopicRuleDynamodbv2PutItem defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String tableName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleDynamodbv2PutItem defaults) { Objects.requireNonNull(defaults); this.tableName = defaults.tableName; } + @CustomType.Setter public Builder tableName(String tableName) { this.tableName = Objects.requireNonNull(tableName); return this; - } public TopicRuleDynamodbv2PutItem build() { - return new TopicRuleDynamodbv2PutItem(tableName); + } + public TopicRuleDynamodbv2PutItem build() { + final var o = new TopicRuleDynamodbv2PutItem(); + o.tableName = tableName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleElasticsearch.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleElasticsearch.java index c2180a1db42..d8afdaa4f01 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleElasticsearch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleElasticsearch.java @@ -13,42 +13,29 @@ public final class TopicRuleElasticsearch { * @return The endpoint of your Elasticsearch domain. * */ - private final String endpoint; + private String endpoint; /** * @return The unique identifier for the document you are storing. * */ - private final String id; + private String id; /** * @return The Elasticsearch index where you want to store your data. * */ - private final String index; + private String index; /** * @return The IAM role ARN that has access to Elasticsearch. * */ - private final String roleArn; + private String roleArn; /** * @return The type of document you are storing. * */ - private final String type; - - @CustomType.Constructor - private TopicRuleElasticsearch( - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("index") String index, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("type") String type) { - this.endpoint = endpoint; - this.id = id; - this.index = index; - this.roleArn = roleArn; - this.type = type; - } + private String type; + private TopicRuleElasticsearch() {} /** * @return The endpoint of your Elasticsearch domain. * @@ -92,18 +79,14 @@ public static Builder builder() { public static Builder builder(TopicRuleElasticsearch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String endpoint; private String id; private String index; private String roleArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleElasticsearch defaults) { Objects.requireNonNull(defaults); this.endpoint = defaults.endpoint; @@ -113,27 +96,39 @@ public Builder(TopicRuleElasticsearch defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder index(String index) { this.index = Objects.requireNonNull(index); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public TopicRuleElasticsearch build() { - return new TopicRuleElasticsearch(endpoint, id, index, roleArn, type); + } + public TopicRuleElasticsearch build() { + final var o = new TopicRuleElasticsearch(); + o.endpoint = endpoint; + o.id = id; + o.index = index; + o.roleArn = roleArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorAction.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorAction.java index fc5bdcc1542..924121d3246 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorAction.java @@ -29,68 +29,27 @@ @CustomType public final class TopicRuleErrorAction { - private final @Nullable TopicRuleErrorActionCloudwatchAlarm cloudwatchAlarm; - private final @Nullable TopicRuleErrorActionCloudwatchLogs cloudwatchLogs; - private final @Nullable TopicRuleErrorActionCloudwatchMetric cloudwatchMetric; - private final @Nullable TopicRuleErrorActionDynamodb dynamodb; - private final @Nullable TopicRuleErrorActionDynamodbv2 dynamodbv2; - private final @Nullable TopicRuleErrorActionElasticsearch elasticsearch; - private final @Nullable TopicRuleErrorActionFirehose firehose; - private final @Nullable TopicRuleErrorActionHttp http; - private final @Nullable TopicRuleErrorActionIotAnalytics iotAnalytics; - private final @Nullable TopicRuleErrorActionIotEvents iotEvents; - private final @Nullable TopicRuleErrorActionKafka kafka; - private final @Nullable TopicRuleErrorActionKinesis kinesis; - private final @Nullable TopicRuleErrorActionLambda lambda; - private final @Nullable TopicRuleErrorActionRepublish republish; - private final @Nullable TopicRuleErrorActionS3 s3; - private final @Nullable TopicRuleErrorActionSns sns; - private final @Nullable TopicRuleErrorActionSqs sqs; - private final @Nullable TopicRuleErrorActionStepFunctions stepFunctions; - private final @Nullable TopicRuleErrorActionTimestream timestream; - - @CustomType.Constructor - private TopicRuleErrorAction( - @CustomType.Parameter("cloudwatchAlarm") @Nullable TopicRuleErrorActionCloudwatchAlarm cloudwatchAlarm, - @CustomType.Parameter("cloudwatchLogs") @Nullable TopicRuleErrorActionCloudwatchLogs cloudwatchLogs, - @CustomType.Parameter("cloudwatchMetric") @Nullable TopicRuleErrorActionCloudwatchMetric cloudwatchMetric, - @CustomType.Parameter("dynamodb") @Nullable TopicRuleErrorActionDynamodb dynamodb, - @CustomType.Parameter("dynamodbv2") @Nullable TopicRuleErrorActionDynamodbv2 dynamodbv2, - @CustomType.Parameter("elasticsearch") @Nullable TopicRuleErrorActionElasticsearch elasticsearch, - @CustomType.Parameter("firehose") @Nullable TopicRuleErrorActionFirehose firehose, - @CustomType.Parameter("http") @Nullable TopicRuleErrorActionHttp http, - @CustomType.Parameter("iotAnalytics") @Nullable TopicRuleErrorActionIotAnalytics iotAnalytics, - @CustomType.Parameter("iotEvents") @Nullable TopicRuleErrorActionIotEvents iotEvents, - @CustomType.Parameter("kafka") @Nullable TopicRuleErrorActionKafka kafka, - @CustomType.Parameter("kinesis") @Nullable TopicRuleErrorActionKinesis kinesis, - @CustomType.Parameter("lambda") @Nullable TopicRuleErrorActionLambda lambda, - @CustomType.Parameter("republish") @Nullable TopicRuleErrorActionRepublish republish, - @CustomType.Parameter("s3") @Nullable TopicRuleErrorActionS3 s3, - @CustomType.Parameter("sns") @Nullable TopicRuleErrorActionSns sns, - @CustomType.Parameter("sqs") @Nullable TopicRuleErrorActionSqs sqs, - @CustomType.Parameter("stepFunctions") @Nullable TopicRuleErrorActionStepFunctions stepFunctions, - @CustomType.Parameter("timestream") @Nullable TopicRuleErrorActionTimestream timestream) { - this.cloudwatchAlarm = cloudwatchAlarm; - this.cloudwatchLogs = cloudwatchLogs; - this.cloudwatchMetric = cloudwatchMetric; - this.dynamodb = dynamodb; - this.dynamodbv2 = dynamodbv2; - this.elasticsearch = elasticsearch; - this.firehose = firehose; - this.http = http; - this.iotAnalytics = iotAnalytics; - this.iotEvents = iotEvents; - this.kafka = kafka; - this.kinesis = kinesis; - this.lambda = lambda; - this.republish = republish; - this.s3 = s3; - this.sns = sns; - this.sqs = sqs; - this.stepFunctions = stepFunctions; - this.timestream = timestream; - } + private @Nullable TopicRuleErrorActionCloudwatchAlarm cloudwatchAlarm; + private @Nullable TopicRuleErrorActionCloudwatchLogs cloudwatchLogs; + private @Nullable TopicRuleErrorActionCloudwatchMetric cloudwatchMetric; + private @Nullable TopicRuleErrorActionDynamodb dynamodb; + private @Nullable TopicRuleErrorActionDynamodbv2 dynamodbv2; + private @Nullable TopicRuleErrorActionElasticsearch elasticsearch; + private @Nullable TopicRuleErrorActionFirehose firehose; + private @Nullable TopicRuleErrorActionHttp http; + private @Nullable TopicRuleErrorActionIotAnalytics iotAnalytics; + private @Nullable TopicRuleErrorActionIotEvents iotEvents; + private @Nullable TopicRuleErrorActionKafka kafka; + private @Nullable TopicRuleErrorActionKinesis kinesis; + private @Nullable TopicRuleErrorActionLambda lambda; + private @Nullable TopicRuleErrorActionRepublish republish; + private @Nullable TopicRuleErrorActionS3 s3; + private @Nullable TopicRuleErrorActionSns sns; + private @Nullable TopicRuleErrorActionSqs sqs; + private @Nullable TopicRuleErrorActionStepFunctions stepFunctions; + private @Nullable TopicRuleErrorActionTimestream timestream; + private TopicRuleErrorAction() {} public Optional cloudwatchAlarm() { return Optional.ofNullable(this.cloudwatchAlarm); } @@ -156,7 +115,7 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable TopicRuleErrorActionCloudwatchAlarm cloudwatchAlarm; private @Nullable TopicRuleErrorActionCloudwatchLogs cloudwatchLogs; @@ -177,11 +136,7 @@ public static final class Builder { private @Nullable TopicRuleErrorActionSqs sqs; private @Nullable TopicRuleErrorActionStepFunctions stepFunctions; private @Nullable TopicRuleErrorActionTimestream timestream; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorAction defaults) { Objects.requireNonNull(defaults); this.cloudwatchAlarm = defaults.cloudwatchAlarm; @@ -205,83 +160,123 @@ public Builder(TopicRuleErrorAction defaults) { this.timestream = defaults.timestream; } + @CustomType.Setter public Builder cloudwatchAlarm(@Nullable TopicRuleErrorActionCloudwatchAlarm cloudwatchAlarm) { this.cloudwatchAlarm = cloudwatchAlarm; return this; } + @CustomType.Setter public Builder cloudwatchLogs(@Nullable TopicRuleErrorActionCloudwatchLogs cloudwatchLogs) { this.cloudwatchLogs = cloudwatchLogs; return this; } + @CustomType.Setter public Builder cloudwatchMetric(@Nullable TopicRuleErrorActionCloudwatchMetric cloudwatchMetric) { this.cloudwatchMetric = cloudwatchMetric; return this; } + @CustomType.Setter public Builder dynamodb(@Nullable TopicRuleErrorActionDynamodb dynamodb) { this.dynamodb = dynamodb; return this; } + @CustomType.Setter public Builder dynamodbv2(@Nullable TopicRuleErrorActionDynamodbv2 dynamodbv2) { this.dynamodbv2 = dynamodbv2; return this; } + @CustomType.Setter public Builder elasticsearch(@Nullable TopicRuleErrorActionElasticsearch elasticsearch) { this.elasticsearch = elasticsearch; return this; } + @CustomType.Setter public Builder firehose(@Nullable TopicRuleErrorActionFirehose firehose) { this.firehose = firehose; return this; } + @CustomType.Setter public Builder http(@Nullable TopicRuleErrorActionHttp http) { this.http = http; return this; } + @CustomType.Setter public Builder iotAnalytics(@Nullable TopicRuleErrorActionIotAnalytics iotAnalytics) { this.iotAnalytics = iotAnalytics; return this; } + @CustomType.Setter public Builder iotEvents(@Nullable TopicRuleErrorActionIotEvents iotEvents) { this.iotEvents = iotEvents; return this; } + @CustomType.Setter public Builder kafka(@Nullable TopicRuleErrorActionKafka kafka) { this.kafka = kafka; return this; } + @CustomType.Setter public Builder kinesis(@Nullable TopicRuleErrorActionKinesis kinesis) { this.kinesis = kinesis; return this; } + @CustomType.Setter public Builder lambda(@Nullable TopicRuleErrorActionLambda lambda) { this.lambda = lambda; return this; } + @CustomType.Setter public Builder republish(@Nullable TopicRuleErrorActionRepublish republish) { this.republish = republish; return this; } + @CustomType.Setter public Builder s3(@Nullable TopicRuleErrorActionS3 s3) { this.s3 = s3; return this; } + @CustomType.Setter public Builder sns(@Nullable TopicRuleErrorActionSns sns) { this.sns = sns; return this; } + @CustomType.Setter public Builder sqs(@Nullable TopicRuleErrorActionSqs sqs) { this.sqs = sqs; return this; } + @CustomType.Setter public Builder stepFunctions(@Nullable TopicRuleErrorActionStepFunctions stepFunctions) { this.stepFunctions = stepFunctions; return this; } + @CustomType.Setter public Builder timestream(@Nullable TopicRuleErrorActionTimestream timestream) { this.timestream = timestream; return this; - } public TopicRuleErrorAction build() { - return new TopicRuleErrorAction(cloudwatchAlarm, cloudwatchLogs, cloudwatchMetric, dynamodb, dynamodbv2, elasticsearch, firehose, http, iotAnalytics, iotEvents, kafka, kinesis, lambda, republish, s3, sns, sqs, stepFunctions, timestream); + } + public TopicRuleErrorAction build() { + final var o = new TopicRuleErrorAction(); + o.cloudwatchAlarm = cloudwatchAlarm; + o.cloudwatchLogs = cloudwatchLogs; + o.cloudwatchMetric = cloudwatchMetric; + o.dynamodb = dynamodb; + o.dynamodbv2 = dynamodbv2; + o.elasticsearch = elasticsearch; + o.firehose = firehose; + o.http = http; + o.iotAnalytics = iotAnalytics; + o.iotEvents = iotEvents; + o.kafka = kafka; + o.kinesis = kinesis; + o.lambda = lambda; + o.republish = republish; + o.s3 = s3; + o.sns = sns; + o.sqs = sqs; + o.stepFunctions = stepFunctions; + o.timestream = timestream; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionCloudwatchAlarm.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionCloudwatchAlarm.java index 069a826762a..b95d2ec203b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionCloudwatchAlarm.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionCloudwatchAlarm.java @@ -13,35 +13,24 @@ public final class TopicRuleErrorActionCloudwatchAlarm { * @return The CloudWatch alarm name. * */ - private final String alarmName; + private String alarmName; /** * @return The IAM role ARN that allows access to the CloudWatch alarm. * */ - private final String roleArn; + private String roleArn; /** * @return The reason for the alarm change. * */ - private final String stateReason; + private String stateReason; /** * @return The value of the alarm state. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA. * */ - private final String stateValue; - - @CustomType.Constructor - private TopicRuleErrorActionCloudwatchAlarm( - @CustomType.Parameter("alarmName") String alarmName, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("stateReason") String stateReason, - @CustomType.Parameter("stateValue") String stateValue) { - this.alarmName = alarmName; - this.roleArn = roleArn; - this.stateReason = stateReason; - this.stateValue = stateValue; - } + private String stateValue; + private TopicRuleErrorActionCloudwatchAlarm() {} /** * @return The CloudWatch alarm name. * @@ -78,17 +67,13 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionCloudwatchAlarm defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String alarmName; private String roleArn; private String stateReason; private String stateValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionCloudwatchAlarm defaults) { Objects.requireNonNull(defaults); this.alarmName = defaults.alarmName; @@ -97,23 +82,33 @@ public Builder(TopicRuleErrorActionCloudwatchAlarm defaults) { this.stateValue = defaults.stateValue; } + @CustomType.Setter public Builder alarmName(String alarmName) { this.alarmName = Objects.requireNonNull(alarmName); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder stateReason(String stateReason) { this.stateReason = Objects.requireNonNull(stateReason); return this; } + @CustomType.Setter public Builder stateValue(String stateValue) { this.stateValue = Objects.requireNonNull(stateValue); return this; - } public TopicRuleErrorActionCloudwatchAlarm build() { - return new TopicRuleErrorActionCloudwatchAlarm(alarmName, roleArn, stateReason, stateValue); + } + public TopicRuleErrorActionCloudwatchAlarm build() { + final var o = new TopicRuleErrorActionCloudwatchAlarm(); + o.alarmName = alarmName; + o.roleArn = roleArn; + o.stateReason = stateReason; + o.stateValue = stateValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionCloudwatchLogs.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionCloudwatchLogs.java index 1fe7e388367..197ca67848e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionCloudwatchLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionCloudwatchLogs.java @@ -13,21 +13,14 @@ public final class TopicRuleErrorActionCloudwatchLogs { * @return The CloudWatch log group name. * */ - private final String logGroupName; + private String logGroupName; /** * @return The IAM role ARN that allows access to the CloudWatch alarm. * */ - private final String roleArn; - - @CustomType.Constructor - private TopicRuleErrorActionCloudwatchLogs( - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("roleArn") String roleArn) { - this.logGroupName = logGroupName; - this.roleArn = roleArn; - } + private String roleArn; + private TopicRuleErrorActionCloudwatchLogs() {} /** * @return The CloudWatch log group name. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionCloudwatchLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String logGroupName; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionCloudwatchLogs defaults) { Objects.requireNonNull(defaults); this.logGroupName = defaults.logGroupName; this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public TopicRuleErrorActionCloudwatchLogs build() { - return new TopicRuleErrorActionCloudwatchLogs(logGroupName, roleArn); + } + public TopicRuleErrorActionCloudwatchLogs build() { + final var o = new TopicRuleErrorActionCloudwatchLogs(); + o.logGroupName = logGroupName; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionCloudwatchMetric.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionCloudwatchMetric.java index 533e6b05b1a..c9c396225c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionCloudwatchMetric.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionCloudwatchMetric.java @@ -15,49 +15,34 @@ public final class TopicRuleErrorActionCloudwatchMetric { * @return The CloudWatch metric name. * */ - private final String metricName; + private String metricName; /** * @return The CloudWatch metric namespace name. * */ - private final String metricNamespace; + private String metricNamespace; /** * @return An optional Unix timestamp (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp). * */ - private final @Nullable String metricTimestamp; + private @Nullable String metricTimestamp; /** * @return The metric unit (supported units can be found here: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) * */ - private final String metricUnit; + private String metricUnit; /** * @return The CloudWatch metric value. * */ - private final String metricValue; + private String metricValue; /** * @return The IAM role ARN that allows access to the CloudWatch metric. * */ - private final String roleArn; - - @CustomType.Constructor - private TopicRuleErrorActionCloudwatchMetric( - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("metricNamespace") String metricNamespace, - @CustomType.Parameter("metricTimestamp") @Nullable String metricTimestamp, - @CustomType.Parameter("metricUnit") String metricUnit, - @CustomType.Parameter("metricValue") String metricValue, - @CustomType.Parameter("roleArn") String roleArn) { - this.metricName = metricName; - this.metricNamespace = metricNamespace; - this.metricTimestamp = metricTimestamp; - this.metricUnit = metricUnit; - this.metricValue = metricValue; - this.roleArn = roleArn; - } + private String roleArn; + private TopicRuleErrorActionCloudwatchMetric() {} /** * @return The CloudWatch metric name. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionCloudwatchMetric defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String metricName; private String metricNamespace; @@ -116,11 +101,7 @@ public static final class Builder { private String metricUnit; private String metricValue; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionCloudwatchMetric defaults) { Objects.requireNonNull(defaults); this.metricName = defaults.metricName; @@ -131,31 +112,45 @@ public Builder(TopicRuleErrorActionCloudwatchMetric defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder metricName(String metricName) { this.metricName = Objects.requireNonNull(metricName); return this; } + @CustomType.Setter public Builder metricNamespace(String metricNamespace) { this.metricNamespace = Objects.requireNonNull(metricNamespace); return this; } + @CustomType.Setter public Builder metricTimestamp(@Nullable String metricTimestamp) { this.metricTimestamp = metricTimestamp; return this; } + @CustomType.Setter public Builder metricUnit(String metricUnit) { this.metricUnit = Objects.requireNonNull(metricUnit); return this; } + @CustomType.Setter public Builder metricValue(String metricValue) { this.metricValue = Objects.requireNonNull(metricValue); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public TopicRuleErrorActionCloudwatchMetric build() { - return new TopicRuleErrorActionCloudwatchMetric(metricName, metricNamespace, metricTimestamp, metricUnit, metricValue, roleArn); + } + public TopicRuleErrorActionCloudwatchMetric build() { + final var o = new TopicRuleErrorActionCloudwatchMetric(); + o.metricName = metricName; + o.metricNamespace = metricNamespace; + o.metricTimestamp = metricTimestamp; + o.metricUnit = metricUnit; + o.metricValue = metricValue; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionDynamodb.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionDynamodb.java index 780c4c80828..bede4272cbe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionDynamodb.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionDynamodb.java @@ -15,77 +15,54 @@ public final class TopicRuleErrorActionDynamodb { * @return The hash key name. * */ - private final String hashKeyField; + private String hashKeyField; /** * @return The hash key type. Valid values are "STRING" or "NUMBER". * */ - private final @Nullable String hashKeyType; + private @Nullable String hashKeyType; /** * @return The hash key value. * */ - private final String hashKeyValue; + private String hashKeyValue; /** * @return The operation. Valid values are "INSERT", "UPDATE", or "DELETE". * */ - private final @Nullable String operation; + private @Nullable String operation; /** * @return The action payload. * */ - private final @Nullable String payloadField; + private @Nullable String payloadField; /** * @return The range key name. * */ - private final @Nullable String rangeKeyField; + private @Nullable String rangeKeyField; /** * @return The range key type. Valid values are "STRING" or "NUMBER". * */ - private final @Nullable String rangeKeyType; + private @Nullable String rangeKeyType; /** * @return The range key value. * */ - private final @Nullable String rangeKeyValue; + private @Nullable String rangeKeyValue; /** * @return The ARN of the IAM role that grants access to the DynamoDB table. * */ - private final String roleArn; + private String roleArn; /** * @return The name of the DynamoDB table. * */ - private final String tableName; - - @CustomType.Constructor - private TopicRuleErrorActionDynamodb( - @CustomType.Parameter("hashKeyField") String hashKeyField, - @CustomType.Parameter("hashKeyType") @Nullable String hashKeyType, - @CustomType.Parameter("hashKeyValue") String hashKeyValue, - @CustomType.Parameter("operation") @Nullable String operation, - @CustomType.Parameter("payloadField") @Nullable String payloadField, - @CustomType.Parameter("rangeKeyField") @Nullable String rangeKeyField, - @CustomType.Parameter("rangeKeyType") @Nullable String rangeKeyType, - @CustomType.Parameter("rangeKeyValue") @Nullable String rangeKeyValue, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("tableName") String tableName) { - this.hashKeyField = hashKeyField; - this.hashKeyType = hashKeyType; - this.hashKeyValue = hashKeyValue; - this.operation = operation; - this.payloadField = payloadField; - this.rangeKeyField = rangeKeyField; - this.rangeKeyType = rangeKeyType; - this.rangeKeyValue = rangeKeyValue; - this.roleArn = roleArn; - this.tableName = tableName; - } + private String tableName; + private TopicRuleErrorActionDynamodb() {} /** * @return The hash key name. * @@ -164,7 +141,7 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionDynamodb defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String hashKeyField; private @Nullable String hashKeyType; @@ -176,11 +153,7 @@ public static final class Builder { private @Nullable String rangeKeyValue; private String roleArn; private String tableName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionDynamodb defaults) { Objects.requireNonNull(defaults); this.hashKeyField = defaults.hashKeyField; @@ -195,47 +168,69 @@ public Builder(TopicRuleErrorActionDynamodb defaults) { this.tableName = defaults.tableName; } + @CustomType.Setter public Builder hashKeyField(String hashKeyField) { this.hashKeyField = Objects.requireNonNull(hashKeyField); return this; } + @CustomType.Setter public Builder hashKeyType(@Nullable String hashKeyType) { this.hashKeyType = hashKeyType; return this; } + @CustomType.Setter public Builder hashKeyValue(String hashKeyValue) { this.hashKeyValue = Objects.requireNonNull(hashKeyValue); return this; } + @CustomType.Setter public Builder operation(@Nullable String operation) { this.operation = operation; return this; } + @CustomType.Setter public Builder payloadField(@Nullable String payloadField) { this.payloadField = payloadField; return this; } + @CustomType.Setter public Builder rangeKeyField(@Nullable String rangeKeyField) { this.rangeKeyField = rangeKeyField; return this; } + @CustomType.Setter public Builder rangeKeyType(@Nullable String rangeKeyType) { this.rangeKeyType = rangeKeyType; return this; } + @CustomType.Setter public Builder rangeKeyValue(@Nullable String rangeKeyValue) { this.rangeKeyValue = rangeKeyValue; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder tableName(String tableName) { this.tableName = Objects.requireNonNull(tableName); return this; - } public TopicRuleErrorActionDynamodb build() { - return new TopicRuleErrorActionDynamodb(hashKeyField, hashKeyType, hashKeyValue, operation, payloadField, rangeKeyField, rangeKeyType, rangeKeyValue, roleArn, tableName); + } + public TopicRuleErrorActionDynamodb build() { + final var o = new TopicRuleErrorActionDynamodb(); + o.hashKeyField = hashKeyField; + o.hashKeyType = hashKeyType; + o.hashKeyValue = hashKeyValue; + o.operation = operation; + o.payloadField = payloadField; + o.rangeKeyField = rangeKeyField; + o.rangeKeyType = rangeKeyType; + o.rangeKeyValue = rangeKeyValue; + o.roleArn = roleArn; + o.tableName = tableName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionDynamodbv2.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionDynamodbv2.java index 19b9b208ba4..6443d4cdd5d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionDynamodbv2.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionDynamodbv2.java @@ -16,21 +16,14 @@ public final class TopicRuleErrorActionDynamodbv2 { * @return Configuration block with DynamoDB Table to which the message will be written. Nested arguments below. * */ - private final @Nullable TopicRuleErrorActionDynamodbv2PutItem putItem; + private @Nullable TopicRuleErrorActionDynamodbv2PutItem putItem; /** * @return The IAM role ARN that allows access to the CloudWatch alarm. * */ - private final String roleArn; - - @CustomType.Constructor - private TopicRuleErrorActionDynamodbv2( - @CustomType.Parameter("putItem") @Nullable TopicRuleErrorActionDynamodbv2PutItem putItem, - @CustomType.Parameter("roleArn") String roleArn) { - this.putItem = putItem; - this.roleArn = roleArn; - } + private String roleArn; + private TopicRuleErrorActionDynamodbv2() {} /** * @return Configuration block with DynamoDB Table to which the message will be written. Nested arguments below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionDynamodbv2 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable TopicRuleErrorActionDynamodbv2PutItem putItem; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionDynamodbv2 defaults) { Objects.requireNonNull(defaults); this.putItem = defaults.putItem; this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder putItem(@Nullable TopicRuleErrorActionDynamodbv2PutItem putItem) { this.putItem = putItem; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public TopicRuleErrorActionDynamodbv2 build() { - return new TopicRuleErrorActionDynamodbv2(putItem, roleArn); + } + public TopicRuleErrorActionDynamodbv2 build() { + final var o = new TopicRuleErrorActionDynamodbv2(); + o.putItem = putItem; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionDynamodbv2PutItem.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionDynamodbv2PutItem.java index 8524c80655e..469fe1371f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionDynamodbv2PutItem.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionDynamodbv2PutItem.java @@ -13,13 +13,9 @@ public final class TopicRuleErrorActionDynamodbv2PutItem { * @return The name of the DynamoDB table. * */ - private final String tableName; - - @CustomType.Constructor - private TopicRuleErrorActionDynamodbv2PutItem(@CustomType.Parameter("tableName") String tableName) { - this.tableName = tableName; - } + private String tableName; + private TopicRuleErrorActionDynamodbv2PutItem() {} /** * @return The name of the DynamoDB table. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionDynamodbv2PutItem defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String tableName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionDynamodbv2PutItem defaults) { Objects.requireNonNull(defaults); this.tableName = defaults.tableName; } + @CustomType.Setter public Builder tableName(String tableName) { this.tableName = Objects.requireNonNull(tableName); return this; - } public TopicRuleErrorActionDynamodbv2PutItem build() { - return new TopicRuleErrorActionDynamodbv2PutItem(tableName); + } + public TopicRuleErrorActionDynamodbv2PutItem build() { + final var o = new TopicRuleErrorActionDynamodbv2PutItem(); + o.tableName = tableName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionElasticsearch.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionElasticsearch.java index 29fa1d9a077..e8fe5df0100 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionElasticsearch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionElasticsearch.java @@ -13,42 +13,29 @@ public final class TopicRuleErrorActionElasticsearch { * @return The endpoint of your Elasticsearch domain. * */ - private final String endpoint; + private String endpoint; /** * @return The unique identifier for the document you are storing. * */ - private final String id; + private String id; /** * @return The Elasticsearch index where you want to store your data. * */ - private final String index; + private String index; /** * @return The IAM role ARN that has access to Elasticsearch. * */ - private final String roleArn; + private String roleArn; /** * @return The type of document you are storing. * */ - private final String type; - - @CustomType.Constructor - private TopicRuleErrorActionElasticsearch( - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("index") String index, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("type") String type) { - this.endpoint = endpoint; - this.id = id; - this.index = index; - this.roleArn = roleArn; - this.type = type; - } + private String type; + private TopicRuleErrorActionElasticsearch() {} /** * @return The endpoint of your Elasticsearch domain. * @@ -92,18 +79,14 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionElasticsearch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String endpoint; private String id; private String index; private String roleArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionElasticsearch defaults) { Objects.requireNonNull(defaults); this.endpoint = defaults.endpoint; @@ -113,27 +96,39 @@ public Builder(TopicRuleErrorActionElasticsearch defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder index(String index) { this.index = Objects.requireNonNull(index); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public TopicRuleErrorActionElasticsearch build() { - return new TopicRuleErrorActionElasticsearch(endpoint, id, index, roleArn, type); + } + public TopicRuleErrorActionElasticsearch build() { + final var o = new TopicRuleErrorActionElasticsearch(); + o.endpoint = endpoint; + o.id = id; + o.index = index; + o.roleArn = roleArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionFirehose.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionFirehose.java index 9c0469126fe..68329bff868 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionFirehose.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionFirehose.java @@ -15,28 +15,19 @@ public final class TopicRuleErrorActionFirehose { * @return The delivery stream name. * */ - private final String deliveryStreamName; + private String deliveryStreamName; /** * @return The IAM role ARN that grants access to the Amazon Kinesis Firehose stream. * */ - private final String roleArn; + private String roleArn; /** * @return A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma). * */ - private final @Nullable String separator; - - @CustomType.Constructor - private TopicRuleErrorActionFirehose( - @CustomType.Parameter("deliveryStreamName") String deliveryStreamName, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("separator") @Nullable String separator) { - this.deliveryStreamName = deliveryStreamName; - this.roleArn = roleArn; - this.separator = separator; - } + private @Nullable String separator; + private TopicRuleErrorActionFirehose() {} /** * @return The delivery stream name. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionFirehose defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deliveryStreamName; private String roleArn; private @Nullable String separator; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionFirehose defaults) { Objects.requireNonNull(defaults); this.deliveryStreamName = defaults.deliveryStreamName; @@ -83,19 +70,27 @@ public Builder(TopicRuleErrorActionFirehose defaults) { this.separator = defaults.separator; } + @CustomType.Setter public Builder deliveryStreamName(String deliveryStreamName) { this.deliveryStreamName = Objects.requireNonNull(deliveryStreamName); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder separator(@Nullable String separator) { this.separator = separator; return this; - } public TopicRuleErrorActionFirehose build() { - return new TopicRuleErrorActionFirehose(deliveryStreamName, roleArn, separator); + } + public TopicRuleErrorActionFirehose build() { + final var o = new TopicRuleErrorActionFirehose(); + o.deliveryStreamName = deliveryStreamName; + o.roleArn = roleArn; + o.separator = separator; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionHttp.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionHttp.java index d2179db1fce..367e22e8f09 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionHttp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionHttp.java @@ -17,28 +17,19 @@ public final class TopicRuleErrorActionHttp { * @return The HTTPS URL used to verify ownership of `url`. * */ - private final @Nullable String confirmationUrl; + private @Nullable String confirmationUrl; /** * @return Custom HTTP header IoT Core should send. It is possible to define more than one custom header. * */ - private final @Nullable List httpHeaders; + private @Nullable List httpHeaders; /** * @return The HTTPS URL. * */ - private final String url; - - @CustomType.Constructor - private TopicRuleErrorActionHttp( - @CustomType.Parameter("confirmationUrl") @Nullable String confirmationUrl, - @CustomType.Parameter("httpHeaders") @Nullable List httpHeaders, - @CustomType.Parameter("url") String url) { - this.confirmationUrl = confirmationUrl; - this.httpHeaders = httpHeaders; - this.url = url; - } + private String url; + private TopicRuleErrorActionHttp() {} /** * @return The HTTPS URL used to verify ownership of `url`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionHttp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String confirmationUrl; private @Nullable List httpHeaders; private String url; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionHttp defaults) { Objects.requireNonNull(defaults); this.confirmationUrl = defaults.confirmationUrl; @@ -85,10 +72,12 @@ public Builder(TopicRuleErrorActionHttp defaults) { this.url = defaults.url; } + @CustomType.Setter public Builder confirmationUrl(@Nullable String confirmationUrl) { this.confirmationUrl = confirmationUrl; return this; } + @CustomType.Setter public Builder httpHeaders(@Nullable List httpHeaders) { this.httpHeaders = httpHeaders; return this; @@ -96,11 +85,17 @@ public Builder httpHeaders(@Nullable List ht public Builder httpHeaders(TopicRuleErrorActionHttpHttpHeader... httpHeaders) { return httpHeaders(List.of(httpHeaders)); } + @CustomType.Setter public Builder url(String url) { this.url = Objects.requireNonNull(url); return this; - } public TopicRuleErrorActionHttp build() { - return new TopicRuleErrorActionHttp(confirmationUrl, httpHeaders, url); + } + public TopicRuleErrorActionHttp build() { + final var o = new TopicRuleErrorActionHttp(); + o.confirmationUrl = confirmationUrl; + o.httpHeaders = httpHeaders; + o.url = url; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionHttpHttpHeader.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionHttpHttpHeader.java index f4c77488fcb..9ab57ffda4d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionHttpHttpHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionHttpHttpHeader.java @@ -13,21 +13,14 @@ public final class TopicRuleErrorActionHttpHttpHeader { * @return The name of the HTTP header. * */ - private final String key; + private String key; /** * @return The value of the HTTP header. * */ - private final String value; - - @CustomType.Constructor - private TopicRuleErrorActionHttpHttpHeader( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private TopicRuleErrorActionHttpHttpHeader() {} /** * @return The name of the HTTP header. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionHttpHttpHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionHttpHttpHeader defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public TopicRuleErrorActionHttpHttpHeader build() { - return new TopicRuleErrorActionHttpHttpHeader(key, value); + } + public TopicRuleErrorActionHttpHttpHeader build() { + final var o = new TopicRuleErrorActionHttpHttpHeader(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionIotAnalytics.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionIotAnalytics.java index f299075f811..2d9324a549c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionIotAnalytics.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionIotAnalytics.java @@ -13,21 +13,14 @@ public final class TopicRuleErrorActionIotAnalytics { * @return Name of AWS IOT Analytics channel. * */ - private final String channelName; + private String channelName; /** * @return The ARN of the IAM role that grants access. * */ - private final String roleArn; - - @CustomType.Constructor - private TopicRuleErrorActionIotAnalytics( - @CustomType.Parameter("channelName") String channelName, - @CustomType.Parameter("roleArn") String roleArn) { - this.channelName = channelName; - this.roleArn = roleArn; - } + private String roleArn; + private TopicRuleErrorActionIotAnalytics() {} /** * @return Name of AWS IOT Analytics channel. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionIotAnalytics defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String channelName; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionIotAnalytics defaults) { Objects.requireNonNull(defaults); this.channelName = defaults.channelName; this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder channelName(String channelName) { this.channelName = Objects.requireNonNull(channelName); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public TopicRuleErrorActionIotAnalytics build() { - return new TopicRuleErrorActionIotAnalytics(channelName, roleArn); + } + public TopicRuleErrorActionIotAnalytics build() { + final var o = new TopicRuleErrorActionIotAnalytics(); + o.channelName = channelName; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionIotEvents.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionIotEvents.java index f39c021f6e5..d104ed2edc7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionIotEvents.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionIotEvents.java @@ -15,28 +15,19 @@ public final class TopicRuleErrorActionIotEvents { * @return The name of the AWS IoT Events input. * */ - private final String inputName; + private String inputName; /** * @return Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector. * */ - private final @Nullable String messageId; + private @Nullable String messageId; /** * @return The ARN of the IAM role that grants access. * */ - private final String roleArn; - - @CustomType.Constructor - private TopicRuleErrorActionIotEvents( - @CustomType.Parameter("inputName") String inputName, - @CustomType.Parameter("messageId") @Nullable String messageId, - @CustomType.Parameter("roleArn") String roleArn) { - this.inputName = inputName; - this.messageId = messageId; - this.roleArn = roleArn; - } + private String roleArn; + private TopicRuleErrorActionIotEvents() {} /** * @return The name of the AWS IoT Events input. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionIotEvents defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String inputName; private @Nullable String messageId; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionIotEvents defaults) { Objects.requireNonNull(defaults); this.inputName = defaults.inputName; @@ -83,19 +70,27 @@ public Builder(TopicRuleErrorActionIotEvents defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder inputName(String inputName) { this.inputName = Objects.requireNonNull(inputName); return this; } + @CustomType.Setter public Builder messageId(@Nullable String messageId) { this.messageId = messageId; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public TopicRuleErrorActionIotEvents build() { - return new TopicRuleErrorActionIotEvents(inputName, messageId, roleArn); + } + public TopicRuleErrorActionIotEvents build() { + final var o = new TopicRuleErrorActionIotEvents(); + o.inputName = inputName; + o.messageId = messageId; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionKafka.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionKafka.java index 0b7c3e57471..93d030072cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionKafka.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionKafka.java @@ -16,42 +16,29 @@ public final class TopicRuleErrorActionKafka { * @return Properties of the Apache Kafka producer client. For more info, see the [AWS documentation](https://docs.aws.amazon.com/iot/latest/developerguide/apache-kafka-rule-action.html). * */ - private final Map clientProperties; + private Map clientProperties; /** * @return The ARN of Kafka action's VPC `aws.iot.TopicRuleDestination` . * */ - private final String destinationArn; + private String destinationArn; /** * @return The Kafka message key. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return The Kafka message partition. * */ - private final @Nullable String partition; + private @Nullable String partition; /** * @return The Kafka topic for messages to be sent to the Kafka broker. * */ - private final String topic; - - @CustomType.Constructor - private TopicRuleErrorActionKafka( - @CustomType.Parameter("clientProperties") Map clientProperties, - @CustomType.Parameter("destinationArn") String destinationArn, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("partition") @Nullable String partition, - @CustomType.Parameter("topic") String topic) { - this.clientProperties = clientProperties; - this.destinationArn = destinationArn; - this.key = key; - this.partition = partition; - this.topic = topic; - } + private String topic; + private TopicRuleErrorActionKafka() {} /** * @return Properties of the Apache Kafka producer client. For more info, see the [AWS documentation](https://docs.aws.amazon.com/iot/latest/developerguide/apache-kafka-rule-action.html). * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionKafka defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map clientProperties; private String destinationArn; private @Nullable String key; private @Nullable String partition; private String topic; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionKafka defaults) { Objects.requireNonNull(defaults); this.clientProperties = defaults.clientProperties; @@ -116,27 +99,39 @@ public Builder(TopicRuleErrorActionKafka defaults) { this.topic = defaults.topic; } + @CustomType.Setter public Builder clientProperties(Map clientProperties) { this.clientProperties = Objects.requireNonNull(clientProperties); return this; } + @CustomType.Setter public Builder destinationArn(String destinationArn) { this.destinationArn = Objects.requireNonNull(destinationArn); return this; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder partition(@Nullable String partition) { this.partition = partition; return this; } + @CustomType.Setter public Builder topic(String topic) { this.topic = Objects.requireNonNull(topic); return this; - } public TopicRuleErrorActionKafka build() { - return new TopicRuleErrorActionKafka(clientProperties, destinationArn, key, partition, topic); + } + public TopicRuleErrorActionKafka build() { + final var o = new TopicRuleErrorActionKafka(); + o.clientProperties = clientProperties; + o.destinationArn = destinationArn; + o.key = key; + o.partition = partition; + o.topic = topic; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionKinesis.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionKinesis.java index 119ace3237a..2588046beaf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionKinesis.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionKinesis.java @@ -15,28 +15,19 @@ public final class TopicRuleErrorActionKinesis { * @return The partition key. * */ - private final @Nullable String partitionKey; + private @Nullable String partitionKey; /** * @return The ARN of the IAM role that grants access to the Amazon Kinesis stream. * */ - private final String roleArn; + private String roleArn; /** * @return The name of the Amazon Kinesis stream. * */ - private final String streamName; - - @CustomType.Constructor - private TopicRuleErrorActionKinesis( - @CustomType.Parameter("partitionKey") @Nullable String partitionKey, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("streamName") String streamName) { - this.partitionKey = partitionKey; - this.roleArn = roleArn; - this.streamName = streamName; - } + private String streamName; + private TopicRuleErrorActionKinesis() {} /** * @return The partition key. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionKinesis defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String partitionKey; private String roleArn; private String streamName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionKinesis defaults) { Objects.requireNonNull(defaults); this.partitionKey = defaults.partitionKey; @@ -83,19 +70,27 @@ public Builder(TopicRuleErrorActionKinesis defaults) { this.streamName = defaults.streamName; } + @CustomType.Setter public Builder partitionKey(@Nullable String partitionKey) { this.partitionKey = partitionKey; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder streamName(String streamName) { this.streamName = Objects.requireNonNull(streamName); return this; - } public TopicRuleErrorActionKinesis build() { - return new TopicRuleErrorActionKinesis(partitionKey, roleArn, streamName); + } + public TopicRuleErrorActionKinesis build() { + final var o = new TopicRuleErrorActionKinesis(); + o.partitionKey = partitionKey; + o.roleArn = roleArn; + o.streamName = streamName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionLambda.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionLambda.java index 8e54c2ca904..efe119bdee5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionLambda.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionLambda.java @@ -13,13 +13,9 @@ public final class TopicRuleErrorActionLambda { * @return The ARN of the Lambda function. * */ - private final String functionArn; - - @CustomType.Constructor - private TopicRuleErrorActionLambda(@CustomType.Parameter("functionArn") String functionArn) { - this.functionArn = functionArn; - } + private String functionArn; + private TopicRuleErrorActionLambda() {} /** * @return The ARN of the Lambda function. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionLambda defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String functionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionLambda defaults) { Objects.requireNonNull(defaults); this.functionArn = defaults.functionArn; } + @CustomType.Setter public Builder functionArn(String functionArn) { this.functionArn = Objects.requireNonNull(functionArn); return this; - } public TopicRuleErrorActionLambda build() { - return new TopicRuleErrorActionLambda(functionArn); + } + public TopicRuleErrorActionLambda build() { + final var o = new TopicRuleErrorActionLambda(); + o.functionArn = functionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionRepublish.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionRepublish.java index 58ad7b1d964..c7545fa255f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionRepublish.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionRepublish.java @@ -16,28 +16,19 @@ public final class TopicRuleErrorActionRepublish { * @return The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0. * */ - private final @Nullable Integer qos; + private @Nullable Integer qos; /** * @return The ARN of the IAM role that grants access. * */ - private final String roleArn; + private String roleArn; /** * @return The name of the MQTT topic the message should be republished to. * */ - private final String topic; - - @CustomType.Constructor - private TopicRuleErrorActionRepublish( - @CustomType.Parameter("qos") @Nullable Integer qos, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("topic") String topic) { - this.qos = qos; - this.roleArn = roleArn; - this.topic = topic; - } + private String topic; + private TopicRuleErrorActionRepublish() {} /** * @return The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionRepublish defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer qos; private String roleArn; private String topic; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionRepublish defaults) { Objects.requireNonNull(defaults); this.qos = defaults.qos; @@ -84,19 +71,27 @@ public Builder(TopicRuleErrorActionRepublish defaults) { this.topic = defaults.topic; } + @CustomType.Setter public Builder qos(@Nullable Integer qos) { this.qos = qos; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder topic(String topic) { this.topic = Objects.requireNonNull(topic); return this; - } public TopicRuleErrorActionRepublish build() { - return new TopicRuleErrorActionRepublish(qos, roleArn, topic); + } + public TopicRuleErrorActionRepublish build() { + final var o = new TopicRuleErrorActionRepublish(); + o.qos = qos; + o.roleArn = roleArn; + o.topic = topic; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionS3.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionS3.java index 57c2c4eeec7..d66dcc8c414 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionS3.java @@ -15,35 +15,24 @@ public final class TopicRuleErrorActionS3 { * @return The Amazon S3 bucket name. * */ - private final String bucketName; + private String bucketName; /** * @return The Amazon S3 canned ACL that controls access to the object identified by the object key. [Valid values](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl). * */ - private final @Nullable String cannedAcl; + private @Nullable String cannedAcl; /** * @return The name of the HTTP header. * */ - private final String key; + private String key; /** * @return The IAM role ARN that allows access to the CloudWatch alarm. * */ - private final String roleArn; - - @CustomType.Constructor - private TopicRuleErrorActionS3( - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("cannedAcl") @Nullable String cannedAcl, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("roleArn") String roleArn) { - this.bucketName = bucketName; - this.cannedAcl = cannedAcl; - this.key = key; - this.roleArn = roleArn; - } + private String roleArn; + private TopicRuleErrorActionS3() {} /** * @return The Amazon S3 bucket name. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketName; private @Nullable String cannedAcl; private String key; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionS3 defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -99,23 +84,33 @@ public Builder(TopicRuleErrorActionS3 defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder cannedAcl(@Nullable String cannedAcl) { this.cannedAcl = cannedAcl; return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public TopicRuleErrorActionS3 build() { - return new TopicRuleErrorActionS3(bucketName, cannedAcl, key, roleArn); + } + public TopicRuleErrorActionS3 build() { + final var o = new TopicRuleErrorActionS3(); + o.bucketName = bucketName; + o.cannedAcl = cannedAcl; + o.key = key; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionSns.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionSns.java index 5f65ed8136f..a93edee937e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionSns.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionSns.java @@ -15,28 +15,19 @@ public final class TopicRuleErrorActionSns { * @return The message format of the message to publish. Accepted values are "JSON" and "RAW". * */ - private final @Nullable String messageFormat; + private @Nullable String messageFormat; /** * @return The ARN of the IAM role that grants access. * */ - private final String roleArn; + private String roleArn; /** * @return The ARN of the SNS topic. * */ - private final String targetArn; - - @CustomType.Constructor - private TopicRuleErrorActionSns( - @CustomType.Parameter("messageFormat") @Nullable String messageFormat, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("targetArn") String targetArn) { - this.messageFormat = messageFormat; - this.roleArn = roleArn; - this.targetArn = targetArn; - } + private String targetArn; + private TopicRuleErrorActionSns() {} /** * @return The message format of the message to publish. Accepted values are "JSON" and "RAW". * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionSns defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String messageFormat; private String roleArn; private String targetArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionSns defaults) { Objects.requireNonNull(defaults); this.messageFormat = defaults.messageFormat; @@ -83,19 +70,27 @@ public Builder(TopicRuleErrorActionSns defaults) { this.targetArn = defaults.targetArn; } + @CustomType.Setter public Builder messageFormat(@Nullable String messageFormat) { this.messageFormat = messageFormat; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder targetArn(String targetArn) { this.targetArn = Objects.requireNonNull(targetArn); return this; - } public TopicRuleErrorActionSns build() { - return new TopicRuleErrorActionSns(messageFormat, roleArn, targetArn); + } + public TopicRuleErrorActionSns build() { + final var o = new TopicRuleErrorActionSns(); + o.messageFormat = messageFormat; + o.roleArn = roleArn; + o.targetArn = targetArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionSqs.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionSqs.java index 6fb025c3a60..b2aa37abe3e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionSqs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionSqs.java @@ -14,28 +14,19 @@ public final class TopicRuleErrorActionSqs { * @return The URL of the Amazon SQS queue. * */ - private final String queueUrl; + private String queueUrl; /** * @return The ARN of the IAM role that grants access. * */ - private final String roleArn; + private String roleArn; /** * @return Specifies whether to use Base64 encoding. * */ - private final Boolean useBase64; - - @CustomType.Constructor - private TopicRuleErrorActionSqs( - @CustomType.Parameter("queueUrl") String queueUrl, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("useBase64") Boolean useBase64) { - this.queueUrl = queueUrl; - this.roleArn = roleArn; - this.useBase64 = useBase64; - } + private Boolean useBase64; + private TopicRuleErrorActionSqs() {} /** * @return The URL of the Amazon SQS queue. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionSqs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String queueUrl; private String roleArn; private Boolean useBase64; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionSqs defaults) { Objects.requireNonNull(defaults); this.queueUrl = defaults.queueUrl; @@ -82,19 +69,27 @@ public Builder(TopicRuleErrorActionSqs defaults) { this.useBase64 = defaults.useBase64; } + @CustomType.Setter public Builder queueUrl(String queueUrl) { this.queueUrl = Objects.requireNonNull(queueUrl); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder useBase64(Boolean useBase64) { this.useBase64 = Objects.requireNonNull(useBase64); return this; - } public TopicRuleErrorActionSqs build() { - return new TopicRuleErrorActionSqs(queueUrl, roleArn, useBase64); + } + public TopicRuleErrorActionSqs build() { + final var o = new TopicRuleErrorActionSqs(); + o.queueUrl = queueUrl; + o.roleArn = roleArn; + o.useBase64 = useBase64; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionStepFunctions.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionStepFunctions.java index fdc196acce9..03b22a540c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionStepFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionStepFunctions.java @@ -15,28 +15,19 @@ public final class TopicRuleErrorActionStepFunctions { * @return The prefix used to generate, along with a UUID, the unique state machine execution name. * */ - private final @Nullable String executionNamePrefix; + private @Nullable String executionNamePrefix; /** * @return The ARN of the IAM role that grants access to start execution of the state machine. * */ - private final String roleArn; + private String roleArn; /** * @return The name of the Step Functions state machine whose execution will be started. * */ - private final String stateMachineName; - - @CustomType.Constructor - private TopicRuleErrorActionStepFunctions( - @CustomType.Parameter("executionNamePrefix") @Nullable String executionNamePrefix, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("stateMachineName") String stateMachineName) { - this.executionNamePrefix = executionNamePrefix; - this.roleArn = roleArn; - this.stateMachineName = stateMachineName; - } + private String stateMachineName; + private TopicRuleErrorActionStepFunctions() {} /** * @return The prefix used to generate, along with a UUID, the unique state machine execution name. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionStepFunctions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String executionNamePrefix; private String roleArn; private String stateMachineName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionStepFunctions defaults) { Objects.requireNonNull(defaults); this.executionNamePrefix = defaults.executionNamePrefix; @@ -83,19 +70,27 @@ public Builder(TopicRuleErrorActionStepFunctions defaults) { this.stateMachineName = defaults.stateMachineName; } + @CustomType.Setter public Builder executionNamePrefix(@Nullable String executionNamePrefix) { this.executionNamePrefix = executionNamePrefix; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder stateMachineName(String stateMachineName) { this.stateMachineName = Objects.requireNonNull(stateMachineName); return this; - } public TopicRuleErrorActionStepFunctions build() { - return new TopicRuleErrorActionStepFunctions(executionNamePrefix, roleArn, stateMachineName); + } + public TopicRuleErrorActionStepFunctions build() { + final var o = new TopicRuleErrorActionStepFunctions(); + o.executionNamePrefix = executionNamePrefix; + o.roleArn = roleArn; + o.stateMachineName = stateMachineName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionTimestream.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionTimestream.java index bd81fd49865..2ce9d5c27e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionTimestream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionTimestream.java @@ -18,42 +18,29 @@ public final class TopicRuleErrorActionTimestream { * @return The name of an Amazon Timestream database. * */ - private final String databaseName; + private String databaseName; /** * @return Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below. * */ - private final List dimensions; + private List dimensions; /** * @return The ARN of the role that grants permission to write to the Amazon Timestream database table. * */ - private final String roleArn; + private String roleArn; /** * @return The name of the database table into which to write the measure records. * */ - private final String tableName; + private String tableName; /** * @return Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below. * */ - private final @Nullable TopicRuleErrorActionTimestreamTimestamp timestamp; - - @CustomType.Constructor - private TopicRuleErrorActionTimestream( - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("dimensions") List dimensions, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("tableName") String tableName, - @CustomType.Parameter("timestamp") @Nullable TopicRuleErrorActionTimestreamTimestamp timestamp) { - this.databaseName = databaseName; - this.dimensions = dimensions; - this.roleArn = roleArn; - this.tableName = tableName; - this.timestamp = timestamp; - } + private @Nullable TopicRuleErrorActionTimestreamTimestamp timestamp; + private TopicRuleErrorActionTimestream() {} /** * @return The name of an Amazon Timestream database. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionTimestream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String databaseName; private List dimensions; private String roleArn; private String tableName; private @Nullable TopicRuleErrorActionTimestreamTimestamp timestamp; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionTimestream defaults) { Objects.requireNonNull(defaults); this.databaseName = defaults.databaseName; @@ -118,10 +101,12 @@ public Builder(TopicRuleErrorActionTimestream defaults) { this.timestamp = defaults.timestamp; } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder dimensions(List dimensions) { this.dimensions = Objects.requireNonNull(dimensions); return this; @@ -129,19 +114,29 @@ public Builder dimensions(List dimensio public Builder dimensions(TopicRuleErrorActionTimestreamDimension... dimensions) { return dimensions(List.of(dimensions)); } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder tableName(String tableName) { this.tableName = Objects.requireNonNull(tableName); return this; } + @CustomType.Setter public Builder timestamp(@Nullable TopicRuleErrorActionTimestreamTimestamp timestamp) { this.timestamp = timestamp; return this; - } public TopicRuleErrorActionTimestream build() { - return new TopicRuleErrorActionTimestream(databaseName, dimensions, roleArn, tableName, timestamp); + } + public TopicRuleErrorActionTimestream build() { + final var o = new TopicRuleErrorActionTimestream(); + o.databaseName = databaseName; + o.dimensions = dimensions; + o.roleArn = roleArn; + o.tableName = tableName; + o.timestamp = timestamp; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionTimestreamDimension.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionTimestreamDimension.java index 36d08fde17b..c3da0d73de7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionTimestreamDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionTimestreamDimension.java @@ -13,21 +13,14 @@ public final class TopicRuleErrorActionTimestreamDimension { * @return The name of the rule. * */ - private final String name; + private String name; /** * @return The value of the HTTP header. * */ - private final String value; - - @CustomType.Constructor - private TopicRuleErrorActionTimestreamDimension( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private TopicRuleErrorActionTimestreamDimension() {} /** * @return The name of the rule. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionTimestreamDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionTimestreamDimension defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public TopicRuleErrorActionTimestreamDimension build() { - return new TopicRuleErrorActionTimestreamDimension(name, value); + } + public TopicRuleErrorActionTimestreamDimension build() { + final var o = new TopicRuleErrorActionTimestreamDimension(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionTimestreamTimestamp.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionTimestreamTimestamp.java index 95e6d61b9f8..bdfe3c4a3dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionTimestreamTimestamp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleErrorActionTimestreamTimestamp.java @@ -13,21 +13,14 @@ public final class TopicRuleErrorActionTimestreamTimestamp { * @return The precision of the timestamp value that results from the expression described in value. Valid values: `SECONDS`, `MILLISECONDS`, `MICROSECONDS`, `NANOSECONDS`. * */ - private final String unit; + private String unit; /** * @return The value of the HTTP header. * */ - private final String value; - - @CustomType.Constructor - private TopicRuleErrorActionTimestreamTimestamp( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") String value) { - this.unit = unit; - this.value = value; - } + private String value; + private TopicRuleErrorActionTimestreamTimestamp() {} /** * @return The precision of the timestamp value that results from the expression described in value. Valid values: `SECONDS`, `MILLISECONDS`, `MICROSECONDS`, `NANOSECONDS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TopicRuleErrorActionTimestreamTimestamp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleErrorActionTimestreamTimestamp defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public TopicRuleErrorActionTimestreamTimestamp build() { - return new TopicRuleErrorActionTimestreamTimestamp(unit, value); + } + public TopicRuleErrorActionTimestreamTimestamp build() { + final var o = new TopicRuleErrorActionTimestreamTimestamp(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleFirehose.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleFirehose.java index 53a59bf34b1..7a7cd6e08a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleFirehose.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleFirehose.java @@ -15,28 +15,19 @@ public final class TopicRuleFirehose { * @return The delivery stream name. * */ - private final String deliveryStreamName; + private String deliveryStreamName; /** * @return The IAM role ARN that grants access to the Amazon Kinesis Firehose stream. * */ - private final String roleArn; + private String roleArn; /** * @return A character separator that is used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma). * */ - private final @Nullable String separator; - - @CustomType.Constructor - private TopicRuleFirehose( - @CustomType.Parameter("deliveryStreamName") String deliveryStreamName, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("separator") @Nullable String separator) { - this.deliveryStreamName = deliveryStreamName; - this.roleArn = roleArn; - this.separator = separator; - } + private @Nullable String separator; + private TopicRuleFirehose() {} /** * @return The delivery stream name. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(TopicRuleFirehose defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deliveryStreamName; private String roleArn; private @Nullable String separator; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleFirehose defaults) { Objects.requireNonNull(defaults); this.deliveryStreamName = defaults.deliveryStreamName; @@ -83,19 +70,27 @@ public Builder(TopicRuleFirehose defaults) { this.separator = defaults.separator; } + @CustomType.Setter public Builder deliveryStreamName(String deliveryStreamName) { this.deliveryStreamName = Objects.requireNonNull(deliveryStreamName); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder separator(@Nullable String separator) { this.separator = separator; return this; - } public TopicRuleFirehose build() { - return new TopicRuleFirehose(deliveryStreamName, roleArn, separator); + } + public TopicRuleFirehose build() { + final var o = new TopicRuleFirehose(); + o.deliveryStreamName = deliveryStreamName; + o.roleArn = roleArn; + o.separator = separator; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleHttp.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleHttp.java index ed315f86935..0b45b1e2dfb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleHttp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleHttp.java @@ -17,28 +17,19 @@ public final class TopicRuleHttp { * @return The HTTPS URL used to verify ownership of `url`. * */ - private final @Nullable String confirmationUrl; + private @Nullable String confirmationUrl; /** * @return Custom HTTP header IoT Core should send. It is possible to define more than one custom header. * */ - private final @Nullable List httpHeaders; + private @Nullable List httpHeaders; /** * @return The HTTPS URL. * */ - private final String url; - - @CustomType.Constructor - private TopicRuleHttp( - @CustomType.Parameter("confirmationUrl") @Nullable String confirmationUrl, - @CustomType.Parameter("httpHeaders") @Nullable List httpHeaders, - @CustomType.Parameter("url") String url) { - this.confirmationUrl = confirmationUrl; - this.httpHeaders = httpHeaders; - this.url = url; - } + private String url; + private TopicRuleHttp() {} /** * @return The HTTPS URL used to verify ownership of `url`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(TopicRuleHttp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String confirmationUrl; private @Nullable List httpHeaders; private String url; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleHttp defaults) { Objects.requireNonNull(defaults); this.confirmationUrl = defaults.confirmationUrl; @@ -85,10 +72,12 @@ public Builder(TopicRuleHttp defaults) { this.url = defaults.url; } + @CustomType.Setter public Builder confirmationUrl(@Nullable String confirmationUrl) { this.confirmationUrl = confirmationUrl; return this; } + @CustomType.Setter public Builder httpHeaders(@Nullable List httpHeaders) { this.httpHeaders = httpHeaders; return this; @@ -96,11 +85,17 @@ public Builder httpHeaders(@Nullable List httpHeaders) public Builder httpHeaders(TopicRuleHttpHttpHeader... httpHeaders) { return httpHeaders(List.of(httpHeaders)); } + @CustomType.Setter public Builder url(String url) { this.url = Objects.requireNonNull(url); return this; - } public TopicRuleHttp build() { - return new TopicRuleHttp(confirmationUrl, httpHeaders, url); + } + public TopicRuleHttp build() { + final var o = new TopicRuleHttp(); + o.confirmationUrl = confirmationUrl; + o.httpHeaders = httpHeaders; + o.url = url; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleHttpHttpHeader.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleHttpHttpHeader.java index f68ff0a1ea2..37a948ad704 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleHttpHttpHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleHttpHttpHeader.java @@ -13,21 +13,14 @@ public final class TopicRuleHttpHttpHeader { * @return The name of the HTTP header. * */ - private final String key; + private String key; /** * @return The value of the HTTP header. * */ - private final String value; - - @CustomType.Constructor - private TopicRuleHttpHttpHeader( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private TopicRuleHttpHttpHeader() {} /** * @return The name of the HTTP header. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TopicRuleHttpHttpHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleHttpHttpHeader defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public TopicRuleHttpHttpHeader build() { - return new TopicRuleHttpHttpHeader(key, value); + } + public TopicRuleHttpHttpHeader build() { + final var o = new TopicRuleHttpHttpHeader(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleIotAnalytic.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleIotAnalytic.java index 79c5b6d6853..2368dceaac0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleIotAnalytic.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleIotAnalytic.java @@ -13,21 +13,14 @@ public final class TopicRuleIotAnalytic { * @return Name of AWS IOT Analytics channel. * */ - private final String channelName; + private String channelName; /** * @return The ARN of the IAM role that grants access. * */ - private final String roleArn; - - @CustomType.Constructor - private TopicRuleIotAnalytic( - @CustomType.Parameter("channelName") String channelName, - @CustomType.Parameter("roleArn") String roleArn) { - this.channelName = channelName; - this.roleArn = roleArn; - } + private String roleArn; + private TopicRuleIotAnalytic() {} /** * @return Name of AWS IOT Analytics channel. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TopicRuleIotAnalytic defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String channelName; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleIotAnalytic defaults) { Objects.requireNonNull(defaults); this.channelName = defaults.channelName; this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder channelName(String channelName) { this.channelName = Objects.requireNonNull(channelName); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public TopicRuleIotAnalytic build() { - return new TopicRuleIotAnalytic(channelName, roleArn); + } + public TopicRuleIotAnalytic build() { + final var o = new TopicRuleIotAnalytic(); + o.channelName = channelName; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleIotEvent.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleIotEvent.java index ff4431b7143..3faca67ba35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleIotEvent.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleIotEvent.java @@ -15,28 +15,19 @@ public final class TopicRuleIotEvent { * @return The name of the AWS IoT Events input. * */ - private final String inputName; + private String inputName; /** * @return Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector. * */ - private final @Nullable String messageId; + private @Nullable String messageId; /** * @return The ARN of the IAM role that grants access. * */ - private final String roleArn; - - @CustomType.Constructor - private TopicRuleIotEvent( - @CustomType.Parameter("inputName") String inputName, - @CustomType.Parameter("messageId") @Nullable String messageId, - @CustomType.Parameter("roleArn") String roleArn) { - this.inputName = inputName; - this.messageId = messageId; - this.roleArn = roleArn; - } + private String roleArn; + private TopicRuleIotEvent() {} /** * @return The name of the AWS IoT Events input. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(TopicRuleIotEvent defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String inputName; private @Nullable String messageId; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleIotEvent defaults) { Objects.requireNonNull(defaults); this.inputName = defaults.inputName; @@ -83,19 +70,27 @@ public Builder(TopicRuleIotEvent defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder inputName(String inputName) { this.inputName = Objects.requireNonNull(inputName); return this; } + @CustomType.Setter public Builder messageId(@Nullable String messageId) { this.messageId = messageId; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public TopicRuleIotEvent build() { - return new TopicRuleIotEvent(inputName, messageId, roleArn); + } + public TopicRuleIotEvent build() { + final var o = new TopicRuleIotEvent(); + o.inputName = inputName; + o.messageId = messageId; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleKafka.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleKafka.java index 4b59fb4b759..f9162092cbe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleKafka.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleKafka.java @@ -16,42 +16,29 @@ public final class TopicRuleKafka { * @return Properties of the Apache Kafka producer client. For more info, see the [AWS documentation](https://docs.aws.amazon.com/iot/latest/developerguide/apache-kafka-rule-action.html). * */ - private final Map clientProperties; + private Map clientProperties; /** * @return The ARN of Kafka action's VPC `aws.iot.TopicRuleDestination` . * */ - private final String destinationArn; + private String destinationArn; /** * @return The Kafka message key. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return The Kafka message partition. * */ - private final @Nullable String partition; + private @Nullable String partition; /** * @return The Kafka topic for messages to be sent to the Kafka broker. * */ - private final String topic; - - @CustomType.Constructor - private TopicRuleKafka( - @CustomType.Parameter("clientProperties") Map clientProperties, - @CustomType.Parameter("destinationArn") String destinationArn, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("partition") @Nullable String partition, - @CustomType.Parameter("topic") String topic) { - this.clientProperties = clientProperties; - this.destinationArn = destinationArn; - this.key = key; - this.partition = partition; - this.topic = topic; - } + private String topic; + private TopicRuleKafka() {} /** * @return Properties of the Apache Kafka producer client. For more info, see the [AWS documentation](https://docs.aws.amazon.com/iot/latest/developerguide/apache-kafka-rule-action.html). * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(TopicRuleKafka defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map clientProperties; private String destinationArn; private @Nullable String key; private @Nullable String partition; private String topic; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleKafka defaults) { Objects.requireNonNull(defaults); this.clientProperties = defaults.clientProperties; @@ -116,27 +99,39 @@ public Builder(TopicRuleKafka defaults) { this.topic = defaults.topic; } + @CustomType.Setter public Builder clientProperties(Map clientProperties) { this.clientProperties = Objects.requireNonNull(clientProperties); return this; } + @CustomType.Setter public Builder destinationArn(String destinationArn) { this.destinationArn = Objects.requireNonNull(destinationArn); return this; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder partition(@Nullable String partition) { this.partition = partition; return this; } + @CustomType.Setter public Builder topic(String topic) { this.topic = Objects.requireNonNull(topic); return this; - } public TopicRuleKafka build() { - return new TopicRuleKafka(clientProperties, destinationArn, key, partition, topic); + } + public TopicRuleKafka build() { + final var o = new TopicRuleKafka(); + o.clientProperties = clientProperties; + o.destinationArn = destinationArn; + o.key = key; + o.partition = partition; + o.topic = topic; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleKinesis.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleKinesis.java index f9959a8ab0e..1298e8d7a98 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleKinesis.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleKinesis.java @@ -15,28 +15,19 @@ public final class TopicRuleKinesis { * @return The partition key. * */ - private final @Nullable String partitionKey; + private @Nullable String partitionKey; /** * @return The ARN of the IAM role that grants access to the Amazon Kinesis stream. * */ - private final String roleArn; + private String roleArn; /** * @return The name of the Amazon Kinesis stream. * */ - private final String streamName; - - @CustomType.Constructor - private TopicRuleKinesis( - @CustomType.Parameter("partitionKey") @Nullable String partitionKey, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("streamName") String streamName) { - this.partitionKey = partitionKey; - this.roleArn = roleArn; - this.streamName = streamName; - } + private String streamName; + private TopicRuleKinesis() {} /** * @return The partition key. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(TopicRuleKinesis defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String partitionKey; private String roleArn; private String streamName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleKinesis defaults) { Objects.requireNonNull(defaults); this.partitionKey = defaults.partitionKey; @@ -83,19 +70,27 @@ public Builder(TopicRuleKinesis defaults) { this.streamName = defaults.streamName; } + @CustomType.Setter public Builder partitionKey(@Nullable String partitionKey) { this.partitionKey = partitionKey; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder streamName(String streamName) { this.streamName = Objects.requireNonNull(streamName); return this; - } public TopicRuleKinesis build() { - return new TopicRuleKinesis(partitionKey, roleArn, streamName); + } + public TopicRuleKinesis build() { + final var o = new TopicRuleKinesis(); + o.partitionKey = partitionKey; + o.roleArn = roleArn; + o.streamName = streamName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleLambda.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleLambda.java index a2dcf0a1402..56f68acaeff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleLambda.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleLambda.java @@ -13,13 +13,9 @@ public final class TopicRuleLambda { * @return The ARN of the Lambda function. * */ - private final String functionArn; - - @CustomType.Constructor - private TopicRuleLambda(@CustomType.Parameter("functionArn") String functionArn) { - this.functionArn = functionArn; - } + private String functionArn; + private TopicRuleLambda() {} /** * @return The ARN of the Lambda function. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(TopicRuleLambda defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String functionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleLambda defaults) { Objects.requireNonNull(defaults); this.functionArn = defaults.functionArn; } + @CustomType.Setter public Builder functionArn(String functionArn) { this.functionArn = Objects.requireNonNull(functionArn); return this; - } public TopicRuleLambda build() { - return new TopicRuleLambda(functionArn); + } + public TopicRuleLambda build() { + final var o = new TopicRuleLambda(); + o.functionArn = functionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleRepublish.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleRepublish.java index 6cfa18a5d93..69beb219c57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleRepublish.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleRepublish.java @@ -16,28 +16,19 @@ public final class TopicRuleRepublish { * @return The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0. * */ - private final @Nullable Integer qos; + private @Nullable Integer qos; /** * @return The ARN of the IAM role that grants access. * */ - private final String roleArn; + private String roleArn; /** * @return The name of the MQTT topic the message should be republished to. * */ - private final String topic; - - @CustomType.Constructor - private TopicRuleRepublish( - @CustomType.Parameter("qos") @Nullable Integer qos, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("topic") String topic) { - this.qos = qos; - this.roleArn = roleArn; - this.topic = topic; - } + private String topic; + private TopicRuleRepublish() {} /** * @return The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(TopicRuleRepublish defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer qos; private String roleArn; private String topic; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleRepublish defaults) { Objects.requireNonNull(defaults); this.qos = defaults.qos; @@ -84,19 +71,27 @@ public Builder(TopicRuleRepublish defaults) { this.topic = defaults.topic; } + @CustomType.Setter public Builder qos(@Nullable Integer qos) { this.qos = qos; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder topic(String topic) { this.topic = Objects.requireNonNull(topic); return this; - } public TopicRuleRepublish build() { - return new TopicRuleRepublish(qos, roleArn, topic); + } + public TopicRuleRepublish build() { + final var o = new TopicRuleRepublish(); + o.qos = qos; + o.roleArn = roleArn; + o.topic = topic; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleS3.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleS3.java index bc045039ef2..6c7a5dd1f2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleS3.java @@ -15,35 +15,24 @@ public final class TopicRuleS3 { * @return The Amazon S3 bucket name. * */ - private final String bucketName; + private String bucketName; /** * @return The Amazon S3 canned ACL that controls access to the object identified by the object key. [Valid values](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl). * */ - private final @Nullable String cannedAcl; + private @Nullable String cannedAcl; /** * @return The name of the HTTP header. * */ - private final String key; + private String key; /** * @return The IAM role ARN that allows access to the CloudWatch alarm. * */ - private final String roleArn; - - @CustomType.Constructor - private TopicRuleS3( - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("cannedAcl") @Nullable String cannedAcl, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("roleArn") String roleArn) { - this.bucketName = bucketName; - this.cannedAcl = cannedAcl; - this.key = key; - this.roleArn = roleArn; - } + private String roleArn; + private TopicRuleS3() {} /** * @return The Amazon S3 bucket name. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(TopicRuleS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketName; private @Nullable String cannedAcl; private String key; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleS3 defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -99,23 +84,33 @@ public Builder(TopicRuleS3 defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder cannedAcl(@Nullable String cannedAcl) { this.cannedAcl = cannedAcl; return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public TopicRuleS3 build() { - return new TopicRuleS3(bucketName, cannedAcl, key, roleArn); + } + public TopicRuleS3 build() { + final var o = new TopicRuleS3(); + o.bucketName = bucketName; + o.cannedAcl = cannedAcl; + o.key = key; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleSns.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleSns.java index 5a646ff6670..27ce7c215b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleSns.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleSns.java @@ -15,28 +15,19 @@ public final class TopicRuleSns { * @return The message format of the message to publish. Accepted values are "JSON" and "RAW". * */ - private final @Nullable String messageFormat; + private @Nullable String messageFormat; /** * @return The ARN of the IAM role that grants access. * */ - private final String roleArn; + private String roleArn; /** * @return The ARN of the SNS topic. * */ - private final String targetArn; - - @CustomType.Constructor - private TopicRuleSns( - @CustomType.Parameter("messageFormat") @Nullable String messageFormat, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("targetArn") String targetArn) { - this.messageFormat = messageFormat; - this.roleArn = roleArn; - this.targetArn = targetArn; - } + private String targetArn; + private TopicRuleSns() {} /** * @return The message format of the message to publish. Accepted values are "JSON" and "RAW". * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(TopicRuleSns defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String messageFormat; private String roleArn; private String targetArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleSns defaults) { Objects.requireNonNull(defaults); this.messageFormat = defaults.messageFormat; @@ -83,19 +70,27 @@ public Builder(TopicRuleSns defaults) { this.targetArn = defaults.targetArn; } + @CustomType.Setter public Builder messageFormat(@Nullable String messageFormat) { this.messageFormat = messageFormat; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder targetArn(String targetArn) { this.targetArn = Objects.requireNonNull(targetArn); return this; - } public TopicRuleSns build() { - return new TopicRuleSns(messageFormat, roleArn, targetArn); + } + public TopicRuleSns build() { + final var o = new TopicRuleSns(); + o.messageFormat = messageFormat; + o.roleArn = roleArn; + o.targetArn = targetArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleSqs.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleSqs.java index 91b2add379d..4ae7e9233ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleSqs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleSqs.java @@ -14,28 +14,19 @@ public final class TopicRuleSqs { * @return The URL of the Amazon SQS queue. * */ - private final String queueUrl; + private String queueUrl; /** * @return The ARN of the IAM role that grants access. * */ - private final String roleArn; + private String roleArn; /** * @return Specifies whether to use Base64 encoding. * */ - private final Boolean useBase64; - - @CustomType.Constructor - private TopicRuleSqs( - @CustomType.Parameter("queueUrl") String queueUrl, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("useBase64") Boolean useBase64) { - this.queueUrl = queueUrl; - this.roleArn = roleArn; - this.useBase64 = useBase64; - } + private Boolean useBase64; + private TopicRuleSqs() {} /** * @return The URL of the Amazon SQS queue. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(TopicRuleSqs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String queueUrl; private String roleArn; private Boolean useBase64; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleSqs defaults) { Objects.requireNonNull(defaults); this.queueUrl = defaults.queueUrl; @@ -82,19 +69,27 @@ public Builder(TopicRuleSqs defaults) { this.useBase64 = defaults.useBase64; } + @CustomType.Setter public Builder queueUrl(String queueUrl) { this.queueUrl = Objects.requireNonNull(queueUrl); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder useBase64(Boolean useBase64) { this.useBase64 = Objects.requireNonNull(useBase64); return this; - } public TopicRuleSqs build() { - return new TopicRuleSqs(queueUrl, roleArn, useBase64); + } + public TopicRuleSqs build() { + final var o = new TopicRuleSqs(); + o.queueUrl = queueUrl; + o.roleArn = roleArn; + o.useBase64 = useBase64; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleStepFunction.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleStepFunction.java index 27dfc656cbf..d9345577632 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleStepFunction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleStepFunction.java @@ -15,28 +15,19 @@ public final class TopicRuleStepFunction { * @return The prefix used to generate, along with a UUID, the unique state machine execution name. * */ - private final @Nullable String executionNamePrefix; + private @Nullable String executionNamePrefix; /** * @return The ARN of the IAM role that grants access to start execution of the state machine. * */ - private final String roleArn; + private String roleArn; /** * @return The name of the Step Functions state machine whose execution will be started. * */ - private final String stateMachineName; - - @CustomType.Constructor - private TopicRuleStepFunction( - @CustomType.Parameter("executionNamePrefix") @Nullable String executionNamePrefix, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("stateMachineName") String stateMachineName) { - this.executionNamePrefix = executionNamePrefix; - this.roleArn = roleArn; - this.stateMachineName = stateMachineName; - } + private String stateMachineName; + private TopicRuleStepFunction() {} /** * @return The prefix used to generate, along with a UUID, the unique state machine execution name. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(TopicRuleStepFunction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String executionNamePrefix; private String roleArn; private String stateMachineName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleStepFunction defaults) { Objects.requireNonNull(defaults); this.executionNamePrefix = defaults.executionNamePrefix; @@ -83,19 +70,27 @@ public Builder(TopicRuleStepFunction defaults) { this.stateMachineName = defaults.stateMachineName; } + @CustomType.Setter public Builder executionNamePrefix(@Nullable String executionNamePrefix) { this.executionNamePrefix = executionNamePrefix; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder stateMachineName(String stateMachineName) { this.stateMachineName = Objects.requireNonNull(stateMachineName); return this; - } public TopicRuleStepFunction build() { - return new TopicRuleStepFunction(executionNamePrefix, roleArn, stateMachineName); + } + public TopicRuleStepFunction build() { + final var o = new TopicRuleStepFunction(); + o.executionNamePrefix = executionNamePrefix; + o.roleArn = roleArn; + o.stateMachineName = stateMachineName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleTimestream.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleTimestream.java index afddba3d2c6..67cc761cfca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleTimestream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleTimestream.java @@ -18,42 +18,29 @@ public final class TopicRuleTimestream { * @return The name of an Amazon Timestream database. * */ - private final String databaseName; + private String databaseName; /** * @return Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below. * */ - private final List dimensions; + private List dimensions; /** * @return The ARN of the role that grants permission to write to the Amazon Timestream database table. * */ - private final String roleArn; + private String roleArn; /** * @return The name of the database table into which to write the measure records. * */ - private final String tableName; + private String tableName; /** * @return Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below. * */ - private final @Nullable TopicRuleTimestreamTimestamp timestamp; - - @CustomType.Constructor - private TopicRuleTimestream( - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("dimensions") List dimensions, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("tableName") String tableName, - @CustomType.Parameter("timestamp") @Nullable TopicRuleTimestreamTimestamp timestamp) { - this.databaseName = databaseName; - this.dimensions = dimensions; - this.roleArn = roleArn; - this.tableName = tableName; - this.timestamp = timestamp; - } + private @Nullable TopicRuleTimestreamTimestamp timestamp; + private TopicRuleTimestream() {} /** * @return The name of an Amazon Timestream database. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(TopicRuleTimestream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String databaseName; private List dimensions; private String roleArn; private String tableName; private @Nullable TopicRuleTimestreamTimestamp timestamp; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleTimestream defaults) { Objects.requireNonNull(defaults); this.databaseName = defaults.databaseName; @@ -118,10 +101,12 @@ public Builder(TopicRuleTimestream defaults) { this.timestamp = defaults.timestamp; } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder dimensions(List dimensions) { this.dimensions = Objects.requireNonNull(dimensions); return this; @@ -129,19 +114,29 @@ public Builder dimensions(List dimensions) { public Builder dimensions(TopicRuleTimestreamDimension... dimensions) { return dimensions(List.of(dimensions)); } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder tableName(String tableName) { this.tableName = Objects.requireNonNull(tableName); return this; } + @CustomType.Setter public Builder timestamp(@Nullable TopicRuleTimestreamTimestamp timestamp) { this.timestamp = timestamp; return this; - } public TopicRuleTimestream build() { - return new TopicRuleTimestream(databaseName, dimensions, roleArn, tableName, timestamp); + } + public TopicRuleTimestream build() { + final var o = new TopicRuleTimestream(); + o.databaseName = databaseName; + o.dimensions = dimensions; + o.roleArn = roleArn; + o.tableName = tableName; + o.timestamp = timestamp; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleTimestreamDimension.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleTimestreamDimension.java index 1104d714946..7824ad22c5b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleTimestreamDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleTimestreamDimension.java @@ -13,21 +13,14 @@ public final class TopicRuleTimestreamDimension { * @return The name of the rule. * */ - private final String name; + private String name; /** * @return The value of the HTTP header. * */ - private final String value; - - @CustomType.Constructor - private TopicRuleTimestreamDimension( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private TopicRuleTimestreamDimension() {} /** * @return The name of the rule. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TopicRuleTimestreamDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleTimestreamDimension defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public TopicRuleTimestreamDimension build() { - return new TopicRuleTimestreamDimension(name, value); + } + public TopicRuleTimestreamDimension build() { + final var o = new TopicRuleTimestreamDimension(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleTimestreamTimestamp.java b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleTimestreamTimestamp.java index a1ad632c297..fdd21a4c74e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleTimestreamTimestamp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/iot/outputs/TopicRuleTimestreamTimestamp.java @@ -13,21 +13,14 @@ public final class TopicRuleTimestreamTimestamp { * @return The precision of the timestamp value that results from the expression described in value. Valid values: `SECONDS`, `MILLISECONDS`, `MICROSECONDS`, `NANOSECONDS`. * */ - private final String unit; + private String unit; /** * @return The value of the HTTP header. * */ - private final String value; - - @CustomType.Constructor - private TopicRuleTimestreamTimestamp( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") String value) { - this.unit = unit; - this.value = value; - } + private String value; + private TopicRuleTimestreamTimestamp() {} /** * @return The precision of the timestamp value that results from the expression described in value. Valid values: `SECONDS`, `MILLISECONDS`, `MICROSECONDS`, `NANOSECONDS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TopicRuleTimestreamTimestamp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TopicRuleTimestreamTimestamp defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public TopicRuleTimestreamTimestamp build() { - return new TopicRuleTimestreamTimestamp(unit, value); + } + public TopicRuleTimestreamTimestamp build() { + final var o = new TopicRuleTimestreamTimestamp(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfiguration.java index 12ee4e473b4..349e90ed85d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfiguration.java @@ -16,21 +16,14 @@ public final class DataSourceConfiguration { * @return A block that provides the configuration information to connect to an Amazon S3 bucket as your data source. Detailed below. * */ - private final @Nullable DataSourceConfigurationS3Configuration s3Configuration; + private @Nullable DataSourceConfigurationS3Configuration s3Configuration; /** * @return A block that provides the configuration information required for Amazon Kendra Web Crawler. Detailed below. * */ - private final @Nullable DataSourceConfigurationWebCrawlerConfiguration webCrawlerConfiguration; - - @CustomType.Constructor - private DataSourceConfiguration( - @CustomType.Parameter("s3Configuration") @Nullable DataSourceConfigurationS3Configuration s3Configuration, - @CustomType.Parameter("webCrawlerConfiguration") @Nullable DataSourceConfigurationWebCrawlerConfiguration webCrawlerConfiguration) { - this.s3Configuration = s3Configuration; - this.webCrawlerConfiguration = webCrawlerConfiguration; - } + private @Nullable DataSourceConfigurationWebCrawlerConfiguration webCrawlerConfiguration; + private DataSourceConfiguration() {} /** * @return A block that provides the configuration information to connect to an Amazon S3 bucket as your data source. Detailed below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(DataSourceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DataSourceConfigurationS3Configuration s3Configuration; private @Nullable DataSourceConfigurationWebCrawlerConfiguration webCrawlerConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceConfiguration defaults) { Objects.requireNonNull(defaults); this.s3Configuration = defaults.s3Configuration; this.webCrawlerConfiguration = defaults.webCrawlerConfiguration; } + @CustomType.Setter public Builder s3Configuration(@Nullable DataSourceConfigurationS3Configuration s3Configuration) { this.s3Configuration = s3Configuration; return this; } + @CustomType.Setter public Builder webCrawlerConfiguration(@Nullable DataSourceConfigurationWebCrawlerConfiguration webCrawlerConfiguration) { this.webCrawlerConfiguration = webCrawlerConfiguration; return this; - } public DataSourceConfiguration build() { - return new DataSourceConfiguration(s3Configuration, webCrawlerConfiguration); + } + public DataSourceConfiguration build() { + final var o = new DataSourceConfiguration(); + o.s3Configuration = s3Configuration; + o.webCrawlerConfiguration = webCrawlerConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationS3Configuration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationS3Configuration.java index d67dc31bbe5..9ca3088ac09 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationS3Configuration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationS3Configuration.java @@ -18,49 +18,34 @@ public final class DataSourceConfigurationS3Configuration { * @return A block that provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see [Access control for S3 data sources](https://docs.aws.amazon.com/kendra/latest/dg/s3-acl.html). Detailed below. * */ - private final @Nullable DataSourceConfigurationS3ConfigurationAccessControlListConfiguration accessControlListConfiguration; + private @Nullable DataSourceConfigurationS3ConfigurationAccessControlListConfiguration accessControlListConfiguration; /** * @return The name of the bucket that contains the documents. * */ - private final String bucketName; + private String bucketName; /** * @return A block that defines the Ddcument metadata files that contain information such as the document access control information, source URI, document author, and custom attributes. Each metadata file contains metadata about a single document. Detailed below. * */ - private final @Nullable DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration documentsMetadataConfiguration; + private @Nullable DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration documentsMetadataConfiguration; /** * @return A list of glob patterns for documents that should not be indexed. If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed. Refer to [Exclusion Patterns for more examples](https://docs.aws.amazon.com/kendra/latest/dg/API_S3DataSourceConfiguration.html#Kendra-Type-S3DataSourceConfiguration-ExclusionPatterns). * */ - private final @Nullable List exclusionPatterns; + private @Nullable List exclusionPatterns; /** * @return A list of glob patterns for documents that should be indexed. If a document that matches an inclusion pattern also matches an exclusion pattern, the document is not indexed. Refer to [Inclusion Patterns for more examples](https://docs.aws.amazon.com/kendra/latest/dg/API_S3DataSourceConfiguration.html#Kendra-Type-S3DataSourceConfiguration-InclusionPatterns). * */ - private final @Nullable List inclusionPatterns; + private @Nullable List inclusionPatterns; /** * @return A list of S3 prefixes for the documents that should be included in the index. * */ - private final @Nullable List inclusionPrefixes; - - @CustomType.Constructor - private DataSourceConfigurationS3Configuration( - @CustomType.Parameter("accessControlListConfiguration") @Nullable DataSourceConfigurationS3ConfigurationAccessControlListConfiguration accessControlListConfiguration, - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("documentsMetadataConfiguration") @Nullable DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration documentsMetadataConfiguration, - @CustomType.Parameter("exclusionPatterns") @Nullable List exclusionPatterns, - @CustomType.Parameter("inclusionPatterns") @Nullable List inclusionPatterns, - @CustomType.Parameter("inclusionPrefixes") @Nullable List inclusionPrefixes) { - this.accessControlListConfiguration = accessControlListConfiguration; - this.bucketName = bucketName; - this.documentsMetadataConfiguration = documentsMetadataConfiguration; - this.exclusionPatterns = exclusionPatterns; - this.inclusionPatterns = inclusionPatterns; - this.inclusionPrefixes = inclusionPrefixes; - } + private @Nullable List inclusionPrefixes; + private DataSourceConfigurationS3Configuration() {} /** * @return A block that provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see [Access control for S3 data sources](https://docs.aws.amazon.com/kendra/latest/dg/s3-acl.html). Detailed below. * @@ -111,7 +96,7 @@ public static Builder builder() { public static Builder builder(DataSourceConfigurationS3Configuration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DataSourceConfigurationS3ConfigurationAccessControlListConfiguration accessControlListConfiguration; private String bucketName; @@ -119,11 +104,7 @@ public static final class Builder { private @Nullable List exclusionPatterns; private @Nullable List inclusionPatterns; private @Nullable List inclusionPrefixes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceConfigurationS3Configuration defaults) { Objects.requireNonNull(defaults); this.accessControlListConfiguration = defaults.accessControlListConfiguration; @@ -134,18 +115,22 @@ public Builder(DataSourceConfigurationS3Configuration defaults) { this.inclusionPrefixes = defaults.inclusionPrefixes; } + @CustomType.Setter public Builder accessControlListConfiguration(@Nullable DataSourceConfigurationS3ConfigurationAccessControlListConfiguration accessControlListConfiguration) { this.accessControlListConfiguration = accessControlListConfiguration; return this; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder documentsMetadataConfiguration(@Nullable DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration documentsMetadataConfiguration) { this.documentsMetadataConfiguration = documentsMetadataConfiguration; return this; } + @CustomType.Setter public Builder exclusionPatterns(@Nullable List exclusionPatterns) { this.exclusionPatterns = exclusionPatterns; return this; @@ -153,6 +138,7 @@ public Builder exclusionPatterns(@Nullable List exclusionPatterns) { public Builder exclusionPatterns(String... exclusionPatterns) { return exclusionPatterns(List.of(exclusionPatterns)); } + @CustomType.Setter public Builder inclusionPatterns(@Nullable List inclusionPatterns) { this.inclusionPatterns = inclusionPatterns; return this; @@ -160,14 +146,23 @@ public Builder inclusionPatterns(@Nullable List inclusionPatterns) { public Builder inclusionPatterns(String... inclusionPatterns) { return inclusionPatterns(List.of(inclusionPatterns)); } + @CustomType.Setter public Builder inclusionPrefixes(@Nullable List inclusionPrefixes) { this.inclusionPrefixes = inclusionPrefixes; return this; } public Builder inclusionPrefixes(String... inclusionPrefixes) { return inclusionPrefixes(List.of(inclusionPrefixes)); - } public DataSourceConfigurationS3Configuration build() { - return new DataSourceConfigurationS3Configuration(accessControlListConfiguration, bucketName, documentsMetadataConfiguration, exclusionPatterns, inclusionPatterns, inclusionPrefixes); + } + public DataSourceConfigurationS3Configuration build() { + final var o = new DataSourceConfigurationS3Configuration(); + o.accessControlListConfiguration = accessControlListConfiguration; + o.bucketName = bucketName; + o.documentsMetadataConfiguration = documentsMetadataConfiguration; + o.exclusionPatterns = exclusionPatterns; + o.inclusionPatterns = inclusionPatterns; + o.inclusionPrefixes = inclusionPrefixes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationS3ConfigurationAccessControlListConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationS3ConfigurationAccessControlListConfiguration.java index f878670d277..3a0b681c377 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationS3ConfigurationAccessControlListConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationS3ConfigurationAccessControlListConfiguration.java @@ -15,13 +15,9 @@ public final class DataSourceConfigurationS3ConfigurationAccessControlListConfig * @return Path to the AWS S3 bucket that contains the ACL files. * */ - private final @Nullable String keyPath; - - @CustomType.Constructor - private DataSourceConfigurationS3ConfigurationAccessControlListConfiguration(@CustomType.Parameter("keyPath") @Nullable String keyPath) { - this.keyPath = keyPath; - } + private @Nullable String keyPath; + private DataSourceConfigurationS3ConfigurationAccessControlListConfiguration() {} /** * @return Path to the AWS S3 bucket that contains the ACL files. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DataSourceConfigurationS3ConfigurationAccessControlListConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String keyPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceConfigurationS3ConfigurationAccessControlListConfiguration defaults) { Objects.requireNonNull(defaults); this.keyPath = defaults.keyPath; } + @CustomType.Setter public Builder keyPath(@Nullable String keyPath) { this.keyPath = keyPath; return this; - } public DataSourceConfigurationS3ConfigurationAccessControlListConfiguration build() { - return new DataSourceConfigurationS3ConfigurationAccessControlListConfiguration(keyPath); + } + public DataSourceConfigurationS3ConfigurationAccessControlListConfiguration build() { + final var o = new DataSourceConfigurationS3ConfigurationAccessControlListConfiguration(); + o.keyPath = keyPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration.java index e5bab00ab65..605476599e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration.java @@ -15,13 +15,9 @@ public final class DataSourceConfigurationS3ConfigurationDocumentsMetadataConfig * @return A prefix used to filter metadata configuration files in the AWS S3 bucket. The S3 bucket might contain multiple metadata files. Use `s3_prefix` to include only the desired metadata files. * */ - private final @Nullable String s3Prefix; - - @CustomType.Constructor - private DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration(@CustomType.Parameter("s3Prefix") @Nullable String s3Prefix) { - this.s3Prefix = s3Prefix; - } + private @Nullable String s3Prefix; + private DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration() {} /** * @return A prefix used to filter metadata configuration files in the AWS S3 bucket. The S3 bucket might contain multiple metadata files. Use `s3_prefix` to include only the desired metadata files. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String s3Prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration defaults) { Objects.requireNonNull(defaults); this.s3Prefix = defaults.s3Prefix; } + @CustomType.Setter public Builder s3Prefix(@Nullable String s3Prefix) { this.s3Prefix = s3Prefix; return this; - } public DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration build() { - return new DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration(s3Prefix); + } + public DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration build() { + final var o = new DataSourceConfigurationS3ConfigurationDocumentsMetadataConfiguration(); + o.s3Prefix = s3Prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfiguration.java index 38431390104..db257bf26d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfiguration.java @@ -21,70 +21,49 @@ public final class DataSourceConfigurationWebCrawlerConfiguration { * @return A block with the configuration information required to connect to websites using authentication. You can connect to websites using basic authentication of user name and password. You use a secret in AWS Secrets Manager to store your authentication credentials. You must provide the website host name and port number. For example, the host name of `https://a.example.com/page1.html` is `"a.example.com"` and the port is `443`, the standard port for HTTPS. Detailed below. * */ - private final @Nullable DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration authenticationConfiguration; + private @Nullable DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration authenticationConfiguration; /** * @return Specifies the number of levels in a website that you want to crawl. The first level begins from the website seed or starting point URL. For example, if a website has 3 levels – index level (i.e. seed in this example), sections level, and subsections level – and you are only interested in crawling information up to the sections level (i.e. levels 0-1), you can set your depth to 1. The default crawl depth is set to `2`. Minimum value of `0`. Maximum value of `10`. * */ - private final @Nullable Integer crawlDepth; + private @Nullable Integer crawlDepth; /** * @return The maximum size (in MB) of a webpage or attachment to crawl. Files larger than this size (in MB) are skipped/not crawled. The default maximum size of a webpage or attachment is set to `50` MB. Minimum value of `1.0e-06`. Maximum value of `50`. * */ - private final @Nullable Double maxContentSizePerPageInMegaBytes; + private @Nullable Double maxContentSizePerPageInMegaBytes; /** * @return The maximum number of URLs on a webpage to include when crawling a website. This number is per webpage. As a website’s webpages are crawled, any URLs the webpages link to are also crawled. URLs on a webpage are crawled in order of appearance. The default maximum links per page is `100`. Minimum value of `1`. Maximum value of `1000`. * */ - private final @Nullable Integer maxLinksPerPage; + private @Nullable Integer maxLinksPerPage; /** * @return The maximum number of URLs crawled per website host per minute. The default maximum number of URLs crawled per website host per minute is `300`. Minimum value of `1`. Maximum value of `300`. * */ - private final @Nullable Integer maxUrlsPerMinuteCrawlRate; + private @Nullable Integer maxUrlsPerMinuteCrawlRate; /** * @return Configuration information required to connect to your internal websites via a web proxy. You must provide the website host name and port number. For example, the host name of `https://a.example.com/page1.html` is `"a.example.com"` and the port is `443`, the standard port for HTTPS. Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication. To store web proxy credentials, you use a secret in [AWS Secrets Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html). Detailed below. * */ - private final @Nullable DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration proxyConfiguration; + private @Nullable DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration proxyConfiguration; /** * @return A list of regular expression patterns to exclude certain URLs to crawl. URLs that match the patterns are excluded from the index. URLs that don't match the patterns are included in the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index. Array Members: Minimum number of `0` items. Maximum number of `100` items. Length Constraints: Minimum length of `1`. Maximum length of `150`. * */ - private final @Nullable List urlExclusionPatterns; + private @Nullable List urlExclusionPatterns; /** * @return A list of regular expression patterns to include certain URLs to crawl. URLs that match the patterns are included in the index. URLs that don't match the patterns are excluded from the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index. Array Members: Minimum number of `0` items. Maximum number of `100` items. Length Constraints: Minimum length of `1`. Maximum length of `150`. * */ - private final @Nullable List urlInclusionPatterns; + private @Nullable List urlInclusionPatterns; /** * @return A block that specifies the seed or starting point URLs of the websites or the sitemap URLs of the websites you want to crawl. You can include website subdomains. You can list up to `100` seed URLs and up to `3` sitemap URLs. You can only crawl websites that use the secure communication protocol, Hypertext Transfer Protocol Secure (HTTPS). If you receive an error when crawling a website, it could be that the website is blocked from crawling. When selecting websites to index, you must adhere to the [Amazon Acceptable Use Policy](https://aws.amazon.com/aup/) and all other Amazon terms. Remember that you must only use Amazon Kendra Web Crawler to index your own webpages, or webpages that you have authorization to index. Detailed below. * */ - private final DataSourceConfigurationWebCrawlerConfigurationUrls urls; - - @CustomType.Constructor - private DataSourceConfigurationWebCrawlerConfiguration( - @CustomType.Parameter("authenticationConfiguration") @Nullable DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration authenticationConfiguration, - @CustomType.Parameter("crawlDepth") @Nullable Integer crawlDepth, - @CustomType.Parameter("maxContentSizePerPageInMegaBytes") @Nullable Double maxContentSizePerPageInMegaBytes, - @CustomType.Parameter("maxLinksPerPage") @Nullable Integer maxLinksPerPage, - @CustomType.Parameter("maxUrlsPerMinuteCrawlRate") @Nullable Integer maxUrlsPerMinuteCrawlRate, - @CustomType.Parameter("proxyConfiguration") @Nullable DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration proxyConfiguration, - @CustomType.Parameter("urlExclusionPatterns") @Nullable List urlExclusionPatterns, - @CustomType.Parameter("urlInclusionPatterns") @Nullable List urlInclusionPatterns, - @CustomType.Parameter("urls") DataSourceConfigurationWebCrawlerConfigurationUrls urls) { - this.authenticationConfiguration = authenticationConfiguration; - this.crawlDepth = crawlDepth; - this.maxContentSizePerPageInMegaBytes = maxContentSizePerPageInMegaBytes; - this.maxLinksPerPage = maxLinksPerPage; - this.maxUrlsPerMinuteCrawlRate = maxUrlsPerMinuteCrawlRate; - this.proxyConfiguration = proxyConfiguration; - this.urlExclusionPatterns = urlExclusionPatterns; - this.urlInclusionPatterns = urlInclusionPatterns; - this.urls = urls; - } + private DataSourceConfigurationWebCrawlerConfigurationUrls urls; + private DataSourceConfigurationWebCrawlerConfiguration() {} /** * @return A block with the configuration information required to connect to websites using authentication. You can connect to websites using basic authentication of user name and password. You use a secret in AWS Secrets Manager to store your authentication credentials. You must provide the website host name and port number. For example, the host name of `https://a.example.com/page1.html` is `"a.example.com"` and the port is `443`, the standard port for HTTPS. Detailed below. * @@ -156,7 +135,7 @@ public static Builder builder() { public static Builder builder(DataSourceConfigurationWebCrawlerConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration authenticationConfiguration; private @Nullable Integer crawlDepth; @@ -167,11 +146,7 @@ public static final class Builder { private @Nullable List urlExclusionPatterns; private @Nullable List urlInclusionPatterns; private DataSourceConfigurationWebCrawlerConfigurationUrls urls; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceConfigurationWebCrawlerConfiguration defaults) { Objects.requireNonNull(defaults); this.authenticationConfiguration = defaults.authenticationConfiguration; @@ -185,30 +160,37 @@ public Builder(DataSourceConfigurationWebCrawlerConfiguration defaults) { this.urls = defaults.urls; } + @CustomType.Setter public Builder authenticationConfiguration(@Nullable DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration authenticationConfiguration) { this.authenticationConfiguration = authenticationConfiguration; return this; } + @CustomType.Setter public Builder crawlDepth(@Nullable Integer crawlDepth) { this.crawlDepth = crawlDepth; return this; } + @CustomType.Setter public Builder maxContentSizePerPageInMegaBytes(@Nullable Double maxContentSizePerPageInMegaBytes) { this.maxContentSizePerPageInMegaBytes = maxContentSizePerPageInMegaBytes; return this; } + @CustomType.Setter public Builder maxLinksPerPage(@Nullable Integer maxLinksPerPage) { this.maxLinksPerPage = maxLinksPerPage; return this; } + @CustomType.Setter public Builder maxUrlsPerMinuteCrawlRate(@Nullable Integer maxUrlsPerMinuteCrawlRate) { this.maxUrlsPerMinuteCrawlRate = maxUrlsPerMinuteCrawlRate; return this; } + @CustomType.Setter public Builder proxyConfiguration(@Nullable DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration proxyConfiguration) { this.proxyConfiguration = proxyConfiguration; return this; } + @CustomType.Setter public Builder urlExclusionPatterns(@Nullable List urlExclusionPatterns) { this.urlExclusionPatterns = urlExclusionPatterns; return this; @@ -216,6 +198,7 @@ public Builder urlExclusionPatterns(@Nullable List urlExclusionPatterns) public Builder urlExclusionPatterns(String... urlExclusionPatterns) { return urlExclusionPatterns(List.of(urlExclusionPatterns)); } + @CustomType.Setter public Builder urlInclusionPatterns(@Nullable List urlInclusionPatterns) { this.urlInclusionPatterns = urlInclusionPatterns; return this; @@ -223,11 +206,23 @@ public Builder urlInclusionPatterns(@Nullable List urlInclusionPatterns) public Builder urlInclusionPatterns(String... urlInclusionPatterns) { return urlInclusionPatterns(List.of(urlInclusionPatterns)); } + @CustomType.Setter public Builder urls(DataSourceConfigurationWebCrawlerConfigurationUrls urls) { this.urls = Objects.requireNonNull(urls); return this; - } public DataSourceConfigurationWebCrawlerConfiguration build() { - return new DataSourceConfigurationWebCrawlerConfiguration(authenticationConfiguration, crawlDepth, maxContentSizePerPageInMegaBytes, maxLinksPerPage, maxUrlsPerMinuteCrawlRate, proxyConfiguration, urlExclusionPatterns, urlInclusionPatterns, urls); + } + public DataSourceConfigurationWebCrawlerConfiguration build() { + final var o = new DataSourceConfigurationWebCrawlerConfiguration(); + o.authenticationConfiguration = authenticationConfiguration; + o.crawlDepth = crawlDepth; + o.maxContentSizePerPageInMegaBytes = maxContentSizePerPageInMegaBytes; + o.maxLinksPerPage = maxLinksPerPage; + o.maxUrlsPerMinuteCrawlRate = maxUrlsPerMinuteCrawlRate; + o.proxyConfiguration = proxyConfiguration; + o.urlExclusionPatterns = urlExclusionPatterns; + o.urlInclusionPatterns = urlInclusionPatterns; + o.urls = urls; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration.java index 83c95a2a56e..add8033eb25 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration.java @@ -15,13 +15,9 @@ public final class DataSourceConfigurationWebCrawlerConfigurationAuthenticationC * @return The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials. The list includes the name and port number of the website host. Detailed below. * */ - private final @Nullable List basicAuthentications; - - @CustomType.Constructor - private DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration(@CustomType.Parameter("basicAuthentications") @Nullable List basicAuthentications) { - this.basicAuthentications = basicAuthentications; - } + private @Nullable List basicAuthentications; + private DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration() {} /** * @return The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials. The list includes the name and port number of the website host. Detailed below. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List basicAuthentications; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration defaults) { Objects.requireNonNull(defaults); this.basicAuthentications = defaults.basicAuthentications; } + @CustomType.Setter public Builder basicAuthentications(@Nullable List basicAuthentications) { this.basicAuthentications = basicAuthentications; return this; } public Builder basicAuthentications(DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication... basicAuthentications) { return basicAuthentications(List.of(basicAuthentications)); - } public DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration build() { - return new DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration(basicAuthentications); + } + public DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration build() { + final var o = new DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfiguration(); + o.basicAuthentications = basicAuthentications; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication.java index e6768b281f2..2e295fcef5f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication.java @@ -14,28 +14,19 @@ public final class DataSourceConfigurationWebCrawlerConfigurationAuthenticationC * @return Your secret ARN, which you can create in AWS Secrets Manager. You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password. * */ - private final String credentials; + private String credentials; /** * @return The name of the website host you want to connect to using authentication credentials. For example, the host name of `https://a.example.com/page1.html` is `"a.example.com"`. * */ - private final String host; + private String host; /** * @return The port number of the website host you want to connect to using authentication credentials. For example, the port for `https://a.example.com/page1.html` is `443`, the standard port for HTTPS. * */ - private final Integer port; - - @CustomType.Constructor - private DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication( - @CustomType.Parameter("credentials") String credentials, - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") Integer port) { - this.credentials = credentials; - this.host = host; - this.port = port; - } + private Integer port; + private DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication() {} /** * @return Your secret ARN, which you can create in AWS Secrets Manager. You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String credentials; private String host; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication defaults) { Objects.requireNonNull(defaults); this.credentials = defaults.credentials; @@ -82,19 +69,27 @@ public Builder(DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfi this.port = defaults.port; } + @CustomType.Setter public Builder credentials(String credentials) { this.credentials = Objects.requireNonNull(credentials); return this; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication build() { - return new DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication(credentials, host, port); + } + public DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication build() { + final var o = new DataSourceConfigurationWebCrawlerConfigurationAuthenticationConfigurationBasicAuthentication(); + o.credentials = credentials; + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration.java index bdbcba0c5ca..5096c1cc6d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration.java @@ -16,28 +16,19 @@ public final class DataSourceConfigurationWebCrawlerConfigurationProxyConfigurat * @return Your secret ARN, which you can create in AWS Secrets Manager. The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials. * */ - private final @Nullable String credentials; + private @Nullable String credentials; /** * @return The name of the website host you want to connect to via a web proxy server. For example, the host name of `https://a.example.com/page1.html` is `"a.example.com"`. * */ - private final String host; + private String host; /** * @return The port number of the website host you want to connect to via a web proxy server. For example, the port for `https://a.example.com/page1.html` is `443`, the standard port for HTTPS. * */ - private final Integer port; - - @CustomType.Constructor - private DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration( - @CustomType.Parameter("credentials") @Nullable String credentials, - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") Integer port) { - this.credentials = credentials; - this.host = host; - this.port = port; - } + private Integer port; + private DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration() {} /** * @return Your secret ARN, which you can create in AWS Secrets Manager. The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String credentials; private String host; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration defaults) { Objects.requireNonNull(defaults); this.credentials = defaults.credentials; @@ -84,19 +71,27 @@ public Builder(DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration this.port = defaults.port; } + @CustomType.Setter public Builder credentials(@Nullable String credentials) { this.credentials = credentials; return this; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration build() { - return new DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration(credentials, host, port); + } + public DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration build() { + final var o = new DataSourceConfigurationWebCrawlerConfigurationProxyConfiguration(); + o.credentials = credentials; + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationUrls.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationUrls.java index 00fcdba7f9b..76953aa4249 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationUrls.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationUrls.java @@ -16,21 +16,14 @@ public final class DataSourceConfigurationWebCrawlerConfigurationUrls { * @return A block that specifies the configuration of the seed or starting point URLs of the websites you want to crawl. You can choose to crawl only the website host names, or the website host names with subdomains, or the website host names with subdomains and other domains that the webpages link to. You can list up to `100` seed URLs. Detailed below. * */ - private final @Nullable DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration seedUrlConfiguration; + private @Nullable DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration seedUrlConfiguration; /** * @return A block that specifies the configuration of the sitemap URLs of the websites you want to crawl. Only URLs belonging to the same website host names are crawled. You can list up to `3` sitemap URLs. Detailed below. * */ - private final @Nullable DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration siteMapsConfiguration; - - @CustomType.Constructor - private DataSourceConfigurationWebCrawlerConfigurationUrls( - @CustomType.Parameter("seedUrlConfiguration") @Nullable DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration seedUrlConfiguration, - @CustomType.Parameter("siteMapsConfiguration") @Nullable DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration siteMapsConfiguration) { - this.seedUrlConfiguration = seedUrlConfiguration; - this.siteMapsConfiguration = siteMapsConfiguration; - } + private @Nullable DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration siteMapsConfiguration; + private DataSourceConfigurationWebCrawlerConfigurationUrls() {} /** * @return A block that specifies the configuration of the seed or starting point URLs of the websites you want to crawl. You can choose to crawl only the website host names, or the website host names with subdomains, or the website host names with subdomains and other domains that the webpages link to. You can list up to `100` seed URLs. Detailed below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(DataSourceConfigurationWebCrawlerConfigurationUrls defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration seedUrlConfiguration; private @Nullable DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration siteMapsConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceConfigurationWebCrawlerConfigurationUrls defaults) { Objects.requireNonNull(defaults); this.seedUrlConfiguration = defaults.seedUrlConfiguration; this.siteMapsConfiguration = defaults.siteMapsConfiguration; } + @CustomType.Setter public Builder seedUrlConfiguration(@Nullable DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration seedUrlConfiguration) { this.seedUrlConfiguration = seedUrlConfiguration; return this; } + @CustomType.Setter public Builder siteMapsConfiguration(@Nullable DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration siteMapsConfiguration) { this.siteMapsConfiguration = siteMapsConfiguration; return this; - } public DataSourceConfigurationWebCrawlerConfigurationUrls build() { - return new DataSourceConfigurationWebCrawlerConfigurationUrls(seedUrlConfiguration, siteMapsConfiguration); + } + public DataSourceConfigurationWebCrawlerConfigurationUrls build() { + final var o = new DataSourceConfigurationWebCrawlerConfigurationUrls(); + o.seedUrlConfiguration = seedUrlConfiguration; + o.siteMapsConfiguration = siteMapsConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration.java index f0dca47da1c..bdedfa65a5f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration.java @@ -16,21 +16,14 @@ public final class DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConf * @return The list of seed or starting point URLs of the websites you want to crawl. The list can include a maximum of `100` seed URLs. Array Members: Minimum number of `0` items. Maximum number of `100` items. Length Constraints: Minimum length of `1`. Maximum length of `2048`. * */ - private final List seedUrls; + private List seedUrls; /** * @return The default mode is set to `HOST_ONLY`. You can choose one of the following modes: * */ - private final @Nullable String webCrawlerMode; - - @CustomType.Constructor - private DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration( - @CustomType.Parameter("seedUrls") List seedUrls, - @CustomType.Parameter("webCrawlerMode") @Nullable String webCrawlerMode) { - this.seedUrls = seedUrls; - this.webCrawlerMode = webCrawlerMode; - } + private @Nullable String webCrawlerMode; + private DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration() {} /** * @return The list of seed or starting point URLs of the websites you want to crawl. The list can include a maximum of `100` seed URLs. Array Members: Minimum number of `0` items. Maximum number of `100` items. Length Constraints: Minimum length of `1`. Maximum length of `2048`. * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List seedUrls; private @Nullable String webCrawlerMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration defaults) { Objects.requireNonNull(defaults); this.seedUrls = defaults.seedUrls; this.webCrawlerMode = defaults.webCrawlerMode; } + @CustomType.Setter public Builder seedUrls(List seedUrls) { this.seedUrls = Objects.requireNonNull(seedUrls); return this; @@ -75,11 +65,16 @@ public Builder seedUrls(List seedUrls) { public Builder seedUrls(String... seedUrls) { return seedUrls(List.of(seedUrls)); } + @CustomType.Setter public Builder webCrawlerMode(@Nullable String webCrawlerMode) { this.webCrawlerMode = webCrawlerMode; return this; - } public DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration build() { - return new DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration(seedUrls, webCrawlerMode); + } + public DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration build() { + final var o = new DataSourceConfigurationWebCrawlerConfigurationUrlsSeedUrlConfiguration(); + o.seedUrls = seedUrls; + o.webCrawlerMode = webCrawlerMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration.java index edb4a5b3d9d..ea3c2b885bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration.java @@ -14,13 +14,9 @@ public final class DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsCon * @return The list of sitemap URLs of the websites you want to crawl. The list can include a maximum of `3` sitemap URLs. * */ - private final List siteMaps; - - @CustomType.Constructor - private DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration(@CustomType.Parameter("siteMaps") List siteMaps) { - this.siteMaps = siteMaps; - } + private List siteMaps; + private DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration() {} /** * @return The list of sitemap URLs of the websites you want to crawl. The list can include a maximum of `3` sitemap URLs. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List siteMaps; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration defaults) { Objects.requireNonNull(defaults); this.siteMaps = defaults.siteMaps; } + @CustomType.Setter public Builder siteMaps(List siteMaps) { this.siteMaps = Objects.requireNonNull(siteMaps); return this; } public Builder siteMaps(String... siteMaps) { return siteMaps(List.of(siteMaps)); - } public DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration build() { - return new DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration(siteMaps); + } + public DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration build() { + final var o = new DataSourceConfigurationWebCrawlerConfigurationUrlsSiteMapsConfiguration(); + o.siteMaps = siteMaps; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfiguration.java index e63f6adb427..52b3a6f9d15 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfiguration.java @@ -19,35 +19,24 @@ public final class DataSourceCustomDocumentEnrichmentConfiguration { * @return Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra. Minimum number of `0` items. Maximum number of `100` items. Detailed below. * */ - private final @Nullable List inlineConfigurations; + private @Nullable List inlineConfigurations; /** * @return A block that specifies the configuration information for invoking a Lambda function in AWS Lambda on the structured documents with their metadata and text extracted. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see [Advanced data manipulation](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#advanced-data-manipulation). Detailed below. * */ - private final @Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration postExtractionHookConfiguration; + private @Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration postExtractionHookConfiguration; /** * @return Configuration information for invoking a Lambda function in AWS Lambda on the original or raw documents before extracting their metadata and text. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see [Advanced data manipulation](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#advanced-data-manipulation). Detailed below. * */ - private final @Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration preExtractionHookConfiguration; + private @Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration preExtractionHookConfiguration; /** * @return The Amazon Resource Name (ARN) of a role with permission to run `pre_extraction_hook_configuration` and `post_extraction_hook_configuration` for altering document metadata and content during the document ingestion process. For more information, see [IAM roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html). * */ - private final @Nullable String roleArn; - - @CustomType.Constructor - private DataSourceCustomDocumentEnrichmentConfiguration( - @CustomType.Parameter("inlineConfigurations") @Nullable List inlineConfigurations, - @CustomType.Parameter("postExtractionHookConfiguration") @Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration postExtractionHookConfiguration, - @CustomType.Parameter("preExtractionHookConfiguration") @Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration preExtractionHookConfiguration, - @CustomType.Parameter("roleArn") @Nullable String roleArn) { - this.inlineConfigurations = inlineConfigurations; - this.postExtractionHookConfiguration = postExtractionHookConfiguration; - this.preExtractionHookConfiguration = preExtractionHookConfiguration; - this.roleArn = roleArn; - } + private @Nullable String roleArn; + private DataSourceCustomDocumentEnrichmentConfiguration() {} /** * @return Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra. Minimum number of `0` items. Maximum number of `100` items. Detailed below. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(DataSourceCustomDocumentEnrichmentConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List inlineConfigurations; private @Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration postExtractionHookConfiguration; private @Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration preExtractionHookConfiguration; private @Nullable String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceCustomDocumentEnrichmentConfiguration defaults) { Objects.requireNonNull(defaults); this.inlineConfigurations = defaults.inlineConfigurations; @@ -103,6 +88,7 @@ public Builder(DataSourceCustomDocumentEnrichmentConfiguration defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder inlineConfigurations(@Nullable List inlineConfigurations) { this.inlineConfigurations = inlineConfigurations; return this; @@ -110,19 +96,28 @@ public Builder inlineConfigurations(@Nullable List stringListValues; - private final @Nullable String stringValue; - - @CustomType.Constructor - private DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationConditionConditionOnValue( - @CustomType.Parameter("dateValue") @Nullable String dateValue, - @CustomType.Parameter("longValue") @Nullable Integer longValue, - @CustomType.Parameter("stringListValues") @Nullable List stringListValues, - @CustomType.Parameter("stringValue") @Nullable String stringValue) { - this.dateValue = dateValue; - this.longValue = longValue; - this.stringListValues = stringListValues; - this.stringValue = stringValue; - } + private @Nullable List stringListValues; + private @Nullable String stringValue; + private DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationConditionConditionOnValue() {} /** * @return A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, `2012-03-25T12:30:10+00:00`. * @@ -74,17 +63,13 @@ public static Builder builder() { public static Builder builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationConditionConditionOnValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dateValue; private @Nullable Integer longValue; private @Nullable List stringListValues; private @Nullable String stringValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationConditionConditionOnValue defaults) { Objects.requireNonNull(defaults); this.dateValue = defaults.dateValue; @@ -93,14 +78,17 @@ public Builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfiguratio this.stringValue = defaults.stringValue; } + @CustomType.Setter public Builder dateValue(@Nullable String dateValue) { this.dateValue = dateValue; return this; } + @CustomType.Setter public Builder longValue(@Nullable Integer longValue) { this.longValue = longValue; return this; } + @CustomType.Setter public Builder stringListValues(@Nullable List stringListValues) { this.stringListValues = stringListValues; return this; @@ -108,11 +96,18 @@ public Builder stringListValues(@Nullable List stringListValues) { public Builder stringListValues(String... stringListValues) { return stringListValues(List.of(stringListValues)); } + @CustomType.Setter public Builder stringValue(@Nullable String stringValue) { this.stringValue = stringValue; return this; - } public DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationConditionConditionOnValue build() { - return new DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationConditionConditionOnValue(dateValue, longValue, stringListValues, stringValue); + } + public DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationConditionConditionOnValue build() { + final var o = new DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationConditionConditionOnValue(); + o.dateValue = dateValue; + o.longValue = longValue; + o.stringListValues = stringListValues; + o.stringValue = stringValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget.java index e66f073ae4e..40738327e2d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget.java @@ -17,29 +17,20 @@ public final class DataSourceCustomDocumentEnrichmentConfigurationInlineConfigur * @return The identifier of the target document attribute or metadata field. For example, 'Department' could be an identifier for the target attribute or metadata field that includes the department names associated with the documents. * */ - private final @Nullable String targetDocumentAttributeKey; + private @Nullable String targetDocumentAttributeKey; /** * @return The target value you want to create for the target attribute. For example, 'Finance' could be the target value for the target attribute key 'Department'. * See Document Attribute Value. * */ - private final @Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue targetDocumentAttributeValue; + private @Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue targetDocumentAttributeValue; /** * @return `TRUE` to delete the existing target value for your specified target attribute key. You cannot create a target value and set this to `TRUE`. To create a target value (`TargetDocumentAttributeValue`), set this to `FALSE`. * */ - private final @Nullable Boolean targetDocumentAttributeValueDeletion; - - @CustomType.Constructor - private DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget( - @CustomType.Parameter("targetDocumentAttributeKey") @Nullable String targetDocumentAttributeKey, - @CustomType.Parameter("targetDocumentAttributeValue") @Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue targetDocumentAttributeValue, - @CustomType.Parameter("targetDocumentAttributeValueDeletion") @Nullable Boolean targetDocumentAttributeValueDeletion) { - this.targetDocumentAttributeKey = targetDocumentAttributeKey; - this.targetDocumentAttributeValue = targetDocumentAttributeValue; - this.targetDocumentAttributeValueDeletion = targetDocumentAttributeValueDeletion; - } + private @Nullable Boolean targetDocumentAttributeValueDeletion; + private DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget() {} /** * @return The identifier of the target document attribute or metadata field. For example, 'Department' could be an identifier for the target attribute or metadata field that includes the department names associated with the documents. * @@ -70,16 +61,12 @@ public static Builder builder() { public static Builder builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String targetDocumentAttributeKey; private @Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue targetDocumentAttributeValue; private @Nullable Boolean targetDocumentAttributeValueDeletion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget defaults) { Objects.requireNonNull(defaults); this.targetDocumentAttributeKey = defaults.targetDocumentAttributeKey; @@ -87,19 +74,27 @@ public Builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfiguratio this.targetDocumentAttributeValueDeletion = defaults.targetDocumentAttributeValueDeletion; } + @CustomType.Setter public Builder targetDocumentAttributeKey(@Nullable String targetDocumentAttributeKey) { this.targetDocumentAttributeKey = targetDocumentAttributeKey; return this; } + @CustomType.Setter public Builder targetDocumentAttributeValue(@Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue targetDocumentAttributeValue) { this.targetDocumentAttributeValue = targetDocumentAttributeValue; return this; } + @CustomType.Setter public Builder targetDocumentAttributeValueDeletion(@Nullable Boolean targetDocumentAttributeValueDeletion) { this.targetDocumentAttributeValueDeletion = targetDocumentAttributeValueDeletion; return this; - } public DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget build() { - return new DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget(targetDocumentAttributeKey, targetDocumentAttributeValue, targetDocumentAttributeValueDeletion); + } + public DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget build() { + final var o = new DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget(); + o.targetDocumentAttributeKey = targetDocumentAttributeKey; + o.targetDocumentAttributeValue = targetDocumentAttributeValue; + o.targetDocumentAttributeValueDeletion = targetDocumentAttributeValueDeletion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue.java index 5134b298d42..270694c0a05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue.java @@ -17,31 +17,20 @@ public final class DataSourceCustomDocumentEnrichmentConfigurationInlineConfigur * @return A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, `2012-03-25T12:30:10+00:00`. * */ - private final @Nullable String dateValue; + private @Nullable String dateValue; /** * @return A long integer value. * */ - private final @Nullable Integer longValue; + private @Nullable Integer longValue; /** * @return A list of strings. * */ - private final @Nullable List stringListValues; - private final @Nullable String stringValue; - - @CustomType.Constructor - private DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue( - @CustomType.Parameter("dateValue") @Nullable String dateValue, - @CustomType.Parameter("longValue") @Nullable Integer longValue, - @CustomType.Parameter("stringListValues") @Nullable List stringListValues, - @CustomType.Parameter("stringValue") @Nullable String stringValue) { - this.dateValue = dateValue; - this.longValue = longValue; - this.stringListValues = stringListValues; - this.stringValue = stringValue; - } + private @Nullable List stringListValues; + private @Nullable String stringValue; + private DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue() {} /** * @return A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, `2012-03-25T12:30:10+00:00`. * @@ -74,17 +63,13 @@ public static Builder builder() { public static Builder builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dateValue; private @Nullable Integer longValue; private @Nullable List stringListValues; private @Nullable String stringValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue defaults) { Objects.requireNonNull(defaults); this.dateValue = defaults.dateValue; @@ -93,14 +78,17 @@ public Builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfiguratio this.stringValue = defaults.stringValue; } + @CustomType.Setter public Builder dateValue(@Nullable String dateValue) { this.dateValue = dateValue; return this; } + @CustomType.Setter public Builder longValue(@Nullable Integer longValue) { this.longValue = longValue; return this; } + @CustomType.Setter public Builder stringListValues(@Nullable List stringListValues) { this.stringListValues = stringListValues; return this; @@ -108,11 +96,18 @@ public Builder stringListValues(@Nullable List stringListValues) { public Builder stringListValues(String... stringListValues) { return stringListValues(List.of(stringListValues)); } + @CustomType.Setter public Builder stringValue(@Nullable String stringValue) { this.stringValue = stringValue; return this; - } public DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue build() { - return new DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue(dateValue, longValue, stringListValues, stringValue); + } + public DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue build() { + final var o = new DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTargetTargetDocumentAttributeValue(); + o.dateValue = dateValue; + o.longValue = longValue; + o.stringListValues = stringListValues; + o.stringValue = stringValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration.java index 89bd00eceb2..b8ab2140da7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration.java @@ -16,28 +16,19 @@ public final class DataSourceCustomDocumentEnrichmentConfigurationPostExtraction * @return A block that specifies the condition used for when a Lambda function should be invoked. For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time. See Document Attribute Condition. * */ - private final @Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition invocationCondition; + private @Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition invocationCondition; /** * @return The Amazon Resource Name (ARN) of a Lambda Function that can manipulate your document metadata fields or attributes and content. * */ - private final String lambdaArn; + private String lambdaArn; /** * @return Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see [Data contracts for Lambda functions](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#cde-data-contracts-lambda). * */ - private final String s3Bucket; - - @CustomType.Constructor - private DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration( - @CustomType.Parameter("invocationCondition") @Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition invocationCondition, - @CustomType.Parameter("lambdaArn") String lambdaArn, - @CustomType.Parameter("s3Bucket") String s3Bucket) { - this.invocationCondition = invocationCondition; - this.lambdaArn = lambdaArn; - this.s3Bucket = s3Bucket; - } + private String s3Bucket; + private DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration() {} /** * @return A block that specifies the condition used for when a Lambda function should be invoked. For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time. See Document Attribute Condition. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition invocationCondition; private String lambdaArn; private String s3Bucket; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration defaults) { Objects.requireNonNull(defaults); this.invocationCondition = defaults.invocationCondition; @@ -84,19 +71,27 @@ public Builder(DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHook this.s3Bucket = defaults.s3Bucket; } + @CustomType.Setter public Builder invocationCondition(@Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition invocationCondition) { this.invocationCondition = invocationCondition; return this; } + @CustomType.Setter public Builder lambdaArn(String lambdaArn) { this.lambdaArn = Objects.requireNonNull(lambdaArn); return this; } + @CustomType.Setter public Builder s3Bucket(String s3Bucket) { this.s3Bucket = Objects.requireNonNull(s3Bucket); return this; - } public DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration build() { - return new DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration(invocationCondition, lambdaArn, s3Bucket); + } + public DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration build() { + final var o = new DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfiguration(); + o.invocationCondition = invocationCondition; + o.lambdaArn = lambdaArn; + o.s3Bucket = s3Bucket; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition.java index de2a0ab210f..85cddb10a93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition.java @@ -16,28 +16,19 @@ public final class DataSourceCustomDocumentEnrichmentConfigurationPostExtraction * @return The identifier of the document attribute used for the condition. For example, `_source_uri` could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support `_document_body` as an attribute key used for the condition. * */ - private final String conditionDocumentAttributeKey; + private String conditionDocumentAttributeKey; /** * @return The value used by the operator. For example, you can specify the value 'financial' for strings in the `_source_uri` field that partially match or contain this value. See Document Attribute Value. * */ - private final @Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue conditionOnValue; + private @Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue conditionOnValue; /** * @return The condition operator. For example, you can use `Contains` to partially match a string. Valid Values: `GreaterThan` | `GreaterThanOrEquals` | `LessThan` | `LessThanOrEquals` | `Equals` | `NotEquals` | `Contains` | `NotContains` | `Exists` | `NotExists` | `BeginsWith`. * */ - private final String operator; - - @CustomType.Constructor - private DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition( - @CustomType.Parameter("conditionDocumentAttributeKey") String conditionDocumentAttributeKey, - @CustomType.Parameter("conditionOnValue") @Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue conditionOnValue, - @CustomType.Parameter("operator") String operator) { - this.conditionDocumentAttributeKey = conditionDocumentAttributeKey; - this.conditionOnValue = conditionOnValue; - this.operator = operator; - } + private String operator; + private DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition() {} /** * @return The identifier of the document attribute used for the condition. For example, `_source_uri` could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support `_document_body` as an attribute key used for the condition. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String conditionDocumentAttributeKey; private @Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue conditionOnValue; private String operator; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition defaults) { Objects.requireNonNull(defaults); this.conditionDocumentAttributeKey = defaults.conditionDocumentAttributeKey; @@ -84,19 +71,27 @@ public Builder(DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHook this.operator = defaults.operator; } + @CustomType.Setter public Builder conditionDocumentAttributeKey(String conditionDocumentAttributeKey) { this.conditionDocumentAttributeKey = Objects.requireNonNull(conditionDocumentAttributeKey); return this; } + @CustomType.Setter public Builder conditionOnValue(@Nullable DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue conditionOnValue) { this.conditionOnValue = conditionOnValue; return this; } + @CustomType.Setter public Builder operator(String operator) { this.operator = Objects.requireNonNull(operator); return this; - } public DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition build() { - return new DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition(conditionDocumentAttributeKey, conditionOnValue, operator); + } + public DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition build() { + final var o = new DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationCondition(); + o.conditionDocumentAttributeKey = conditionDocumentAttributeKey; + o.conditionOnValue = conditionOnValue; + o.operator = operator; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue.java index 22003096d2e..e22d4383195 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue.java @@ -17,31 +17,20 @@ public final class DataSourceCustomDocumentEnrichmentConfigurationPostExtraction * @return A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, `2012-03-25T12:30:10+00:00`. * */ - private final @Nullable String dateValue; + private @Nullable String dateValue; /** * @return A long integer value. * */ - private final @Nullable Integer longValue; + private @Nullable Integer longValue; /** * @return A list of strings. * */ - private final @Nullable List stringListValues; - private final @Nullable String stringValue; - - @CustomType.Constructor - private DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue( - @CustomType.Parameter("dateValue") @Nullable String dateValue, - @CustomType.Parameter("longValue") @Nullable Integer longValue, - @CustomType.Parameter("stringListValues") @Nullable List stringListValues, - @CustomType.Parameter("stringValue") @Nullable String stringValue) { - this.dateValue = dateValue; - this.longValue = longValue; - this.stringListValues = stringListValues; - this.stringValue = stringValue; - } + private @Nullable List stringListValues; + private @Nullable String stringValue; + private DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue() {} /** * @return A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, `2012-03-25T12:30:10+00:00`. * @@ -74,17 +63,13 @@ public static Builder builder() { public static Builder builder(DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dateValue; private @Nullable Integer longValue; private @Nullable List stringListValues; private @Nullable String stringValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue defaults) { Objects.requireNonNull(defaults); this.dateValue = defaults.dateValue; @@ -93,14 +78,17 @@ public Builder(DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHook this.stringValue = defaults.stringValue; } + @CustomType.Setter public Builder dateValue(@Nullable String dateValue) { this.dateValue = dateValue; return this; } + @CustomType.Setter public Builder longValue(@Nullable Integer longValue) { this.longValue = longValue; return this; } + @CustomType.Setter public Builder stringListValues(@Nullable List stringListValues) { this.stringListValues = stringListValues; return this; @@ -108,11 +96,18 @@ public Builder stringListValues(@Nullable List stringListValues) { public Builder stringListValues(String... stringListValues) { return stringListValues(List.of(stringListValues)); } + @CustomType.Setter public Builder stringValue(@Nullable String stringValue) { this.stringValue = stringValue; return this; - } public DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue build() { - return new DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue(dateValue, longValue, stringListValues, stringValue); + } + public DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue build() { + final var o = new DataSourceCustomDocumentEnrichmentConfigurationPostExtractionHookConfigurationInvocationConditionConditionOnValue(); + o.dateValue = dateValue; + o.longValue = longValue; + o.stringListValues = stringListValues; + o.stringValue = stringValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration.java index 7dcf9daba20..e196259d930 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration.java @@ -16,28 +16,19 @@ public final class DataSourceCustomDocumentEnrichmentConfigurationPreExtractionH * @return A block that specifies the condition used for when a Lambda function should be invoked. For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time. See Document Attribute Condition. * */ - private final @Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition invocationCondition; + private @Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition invocationCondition; /** * @return The Amazon Resource Name (ARN) of a Lambda Function that can manipulate your document metadata fields or attributes and content. * */ - private final String lambdaArn; + private String lambdaArn; /** * @return Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see [Data contracts for Lambda functions](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#cde-data-contracts-lambda). * */ - private final String s3Bucket; - - @CustomType.Constructor - private DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration( - @CustomType.Parameter("invocationCondition") @Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition invocationCondition, - @CustomType.Parameter("lambdaArn") String lambdaArn, - @CustomType.Parameter("s3Bucket") String s3Bucket) { - this.invocationCondition = invocationCondition; - this.lambdaArn = lambdaArn; - this.s3Bucket = s3Bucket; - } + private String s3Bucket; + private DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration() {} /** * @return A block that specifies the condition used for when a Lambda function should be invoked. For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time. See Document Attribute Condition. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition invocationCondition; private String lambdaArn; private String s3Bucket; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration defaults) { Objects.requireNonNull(defaults); this.invocationCondition = defaults.invocationCondition; @@ -84,19 +71,27 @@ public Builder(DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookC this.s3Bucket = defaults.s3Bucket; } + @CustomType.Setter public Builder invocationCondition(@Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition invocationCondition) { this.invocationCondition = invocationCondition; return this; } + @CustomType.Setter public Builder lambdaArn(String lambdaArn) { this.lambdaArn = Objects.requireNonNull(lambdaArn); return this; } + @CustomType.Setter public Builder s3Bucket(String s3Bucket) { this.s3Bucket = Objects.requireNonNull(s3Bucket); return this; - } public DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration build() { - return new DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration(invocationCondition, lambdaArn, s3Bucket); + } + public DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration build() { + final var o = new DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfiguration(); + o.invocationCondition = invocationCondition; + o.lambdaArn = lambdaArn; + o.s3Bucket = s3Bucket; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition.java index 78a12354cbf..ea96191416d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition.java @@ -16,28 +16,19 @@ public final class DataSourceCustomDocumentEnrichmentConfigurationPreExtractionH * @return The identifier of the document attribute used for the condition. For example, `_source_uri` could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support `_document_body` as an attribute key used for the condition. * */ - private final String conditionDocumentAttributeKey; + private String conditionDocumentAttributeKey; /** * @return The value used by the operator. For example, you can specify the value 'financial' for strings in the `_source_uri` field that partially match or contain this value. See Document Attribute Value. * */ - private final @Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue conditionOnValue; + private @Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue conditionOnValue; /** * @return The condition operator. For example, you can use `Contains` to partially match a string. Valid Values: `GreaterThan` | `GreaterThanOrEquals` | `LessThan` | `LessThanOrEquals` | `Equals` | `NotEquals` | `Contains` | `NotContains` | `Exists` | `NotExists` | `BeginsWith`. * */ - private final String operator; - - @CustomType.Constructor - private DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition( - @CustomType.Parameter("conditionDocumentAttributeKey") String conditionDocumentAttributeKey, - @CustomType.Parameter("conditionOnValue") @Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue conditionOnValue, - @CustomType.Parameter("operator") String operator) { - this.conditionDocumentAttributeKey = conditionDocumentAttributeKey; - this.conditionOnValue = conditionOnValue; - this.operator = operator; - } + private String operator; + private DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition() {} /** * @return The identifier of the document attribute used for the condition. For example, `_source_uri` could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support `_document_body` as an attribute key used for the condition. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String conditionDocumentAttributeKey; private @Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue conditionOnValue; private String operator; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition defaults) { Objects.requireNonNull(defaults); this.conditionDocumentAttributeKey = defaults.conditionDocumentAttributeKey; @@ -84,19 +71,27 @@ public Builder(DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookC this.operator = defaults.operator; } + @CustomType.Setter public Builder conditionDocumentAttributeKey(String conditionDocumentAttributeKey) { this.conditionDocumentAttributeKey = Objects.requireNonNull(conditionDocumentAttributeKey); return this; } + @CustomType.Setter public Builder conditionOnValue(@Nullable DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue conditionOnValue) { this.conditionOnValue = conditionOnValue; return this; } + @CustomType.Setter public Builder operator(String operator) { this.operator = Objects.requireNonNull(operator); return this; - } public DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition build() { - return new DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition(conditionDocumentAttributeKey, conditionOnValue, operator); + } + public DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition build() { + final var o = new DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationCondition(); + o.conditionDocumentAttributeKey = conditionDocumentAttributeKey; + o.conditionOnValue = conditionOnValue; + o.operator = operator; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue.java index cd85910b18c..3d06885842d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue.java @@ -17,31 +17,20 @@ public final class DataSourceCustomDocumentEnrichmentConfigurationPreExtractionH * @return A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, `2012-03-25T12:30:10+00:00`. * */ - private final @Nullable String dateValue; + private @Nullable String dateValue; /** * @return A long integer value. * */ - private final @Nullable Integer longValue; + private @Nullable Integer longValue; /** * @return A list of strings. * */ - private final @Nullable List stringListValues; - private final @Nullable String stringValue; - - @CustomType.Constructor - private DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue( - @CustomType.Parameter("dateValue") @Nullable String dateValue, - @CustomType.Parameter("longValue") @Nullable Integer longValue, - @CustomType.Parameter("stringListValues") @Nullable List stringListValues, - @CustomType.Parameter("stringValue") @Nullable String stringValue) { - this.dateValue = dateValue; - this.longValue = longValue; - this.stringListValues = stringListValues; - this.stringValue = stringValue; - } + private @Nullable List stringListValues; + private @Nullable String stringValue; + private DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue() {} /** * @return A date expressed as an ISO 8601 string. It is important for the time zone to be included in the ISO 8601 date-time format. As of this writing only UTC is supported. For example, `2012-03-25T12:30:10+00:00`. * @@ -74,17 +63,13 @@ public static Builder builder() { public static Builder builder(DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dateValue; private @Nullable Integer longValue; private @Nullable List stringListValues; private @Nullable String stringValue; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue defaults) { Objects.requireNonNull(defaults); this.dateValue = defaults.dateValue; @@ -93,14 +78,17 @@ public Builder(DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookC this.stringValue = defaults.stringValue; } + @CustomType.Setter public Builder dateValue(@Nullable String dateValue) { this.dateValue = dateValue; return this; } + @CustomType.Setter public Builder longValue(@Nullable Integer longValue) { this.longValue = longValue; return this; } + @CustomType.Setter public Builder stringListValues(@Nullable List stringListValues) { this.stringListValues = stringListValues; return this; @@ -108,11 +96,18 @@ public Builder stringListValues(@Nullable List stringListValues) { public Builder stringListValues(String... stringListValues) { return stringListValues(List.of(stringListValues)); } + @CustomType.Setter public Builder stringValue(@Nullable String stringValue) { this.stringValue = stringValue; return this; - } public DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue build() { - return new DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue(dateValue, longValue, stringListValues, stringValue); + } + public DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue build() { + final var o = new DataSourceCustomDocumentEnrichmentConfigurationPreExtractionHookConfigurationInvocationConditionConditionOnValue(); + o.dateValue = dateValue; + o.longValue = longValue; + o.stringListValues = stringListValues; + o.stringValue = stringValue; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceConfiguration.java index 4cb51cd3ab0..479a7455b4e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceConfiguration.java @@ -12,21 +12,14 @@ @CustomType public final class ExperienceConfiguration { - private final @Nullable ExperienceConfigurationContentSourceConfiguration contentSourceConfiguration; + private @Nullable ExperienceConfigurationContentSourceConfiguration contentSourceConfiguration; /** * @return The AWS SSO field name that contains the identifiers of your users, such as their emails. Detailed below. * */ - private final @Nullable ExperienceConfigurationUserIdentityConfiguration userIdentityConfiguration; - - @CustomType.Constructor - private ExperienceConfiguration( - @CustomType.Parameter("contentSourceConfiguration") @Nullable ExperienceConfigurationContentSourceConfiguration contentSourceConfiguration, - @CustomType.Parameter("userIdentityConfiguration") @Nullable ExperienceConfigurationUserIdentityConfiguration userIdentityConfiguration) { - this.contentSourceConfiguration = contentSourceConfiguration; - this.userIdentityConfiguration = userIdentityConfiguration; - } + private @Nullable ExperienceConfigurationUserIdentityConfiguration userIdentityConfiguration; + private ExperienceConfiguration() {} public Optional contentSourceConfiguration() { return Optional.ofNullable(this.contentSourceConfiguration); } @@ -45,30 +38,32 @@ public static Builder builder() { public static Builder builder(ExperienceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ExperienceConfigurationContentSourceConfiguration contentSourceConfiguration; private @Nullable ExperienceConfigurationUserIdentityConfiguration userIdentityConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ExperienceConfiguration defaults) { Objects.requireNonNull(defaults); this.contentSourceConfiguration = defaults.contentSourceConfiguration; this.userIdentityConfiguration = defaults.userIdentityConfiguration; } + @CustomType.Setter public Builder contentSourceConfiguration(@Nullable ExperienceConfigurationContentSourceConfiguration contentSourceConfiguration) { this.contentSourceConfiguration = contentSourceConfiguration; return this; } + @CustomType.Setter public Builder userIdentityConfiguration(@Nullable ExperienceConfigurationUserIdentityConfiguration userIdentityConfiguration) { this.userIdentityConfiguration = userIdentityConfiguration; return this; - } public ExperienceConfiguration build() { - return new ExperienceConfiguration(contentSourceConfiguration, userIdentityConfiguration); + } + public ExperienceConfiguration build() { + final var o = new ExperienceConfiguration(); + o.contentSourceConfiguration = contentSourceConfiguration; + o.userIdentityConfiguration = userIdentityConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceConfigurationContentSourceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceConfigurationContentSourceConfiguration.java index 48709bf1579..35f5f9d565a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceConfigurationContentSourceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceConfigurationContentSourceConfiguration.java @@ -17,28 +17,19 @@ public final class ExperienceConfigurationContentSourceConfiguration { * @return The identifiers of the data sources you want to use for your Amazon Kendra experience. Maximum number of 100 items. * */ - private final @Nullable List dataSourceIds; + private @Nullable List dataSourceIds; /** * @return Whether to use documents you indexed directly using the `BatchPutDocument API`. Defaults to `false`. * */ - private final @Nullable Boolean directPutContent; + private @Nullable Boolean directPutContent; /** * @return The identifier of the FAQs that you want to use for your Amazon Kendra experience. Maximum number of 100 items. * */ - private final @Nullable List faqIds; - - @CustomType.Constructor - private ExperienceConfigurationContentSourceConfiguration( - @CustomType.Parameter("dataSourceIds") @Nullable List dataSourceIds, - @CustomType.Parameter("directPutContent") @Nullable Boolean directPutContent, - @CustomType.Parameter("faqIds") @Nullable List faqIds) { - this.dataSourceIds = dataSourceIds; - this.directPutContent = directPutContent; - this.faqIds = faqIds; - } + private @Nullable List faqIds; + private ExperienceConfigurationContentSourceConfiguration() {} /** * @return The identifiers of the data sources you want to use for your Amazon Kendra experience. Maximum number of 100 items. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(ExperienceConfigurationContentSourceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List dataSourceIds; private @Nullable Boolean directPutContent; private @Nullable List faqIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ExperienceConfigurationContentSourceConfiguration defaults) { Objects.requireNonNull(defaults); this.dataSourceIds = defaults.dataSourceIds; @@ -85,6 +72,7 @@ public Builder(ExperienceConfigurationContentSourceConfiguration defaults) { this.faqIds = defaults.faqIds; } + @CustomType.Setter public Builder dataSourceIds(@Nullable List dataSourceIds) { this.dataSourceIds = dataSourceIds; return this; @@ -92,18 +80,25 @@ public Builder dataSourceIds(@Nullable List dataSourceIds) { public Builder dataSourceIds(String... dataSourceIds) { return dataSourceIds(List.of(dataSourceIds)); } + @CustomType.Setter public Builder directPutContent(@Nullable Boolean directPutContent) { this.directPutContent = directPutContent; return this; } + @CustomType.Setter public Builder faqIds(@Nullable List faqIds) { this.faqIds = faqIds; return this; } public Builder faqIds(String... faqIds) { return faqIds(List.of(faqIds)); - } public ExperienceConfigurationContentSourceConfiguration build() { - return new ExperienceConfigurationContentSourceConfiguration(dataSourceIds, directPutContent, faqIds); + } + public ExperienceConfigurationContentSourceConfiguration build() { + final var o = new ExperienceConfigurationContentSourceConfiguration(); + o.dataSourceIds = dataSourceIds; + o.directPutContent = directPutContent; + o.faqIds = faqIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceConfigurationUserIdentityConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceConfigurationUserIdentityConfiguration.java index 81930b6115b..dbf89c27b54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceConfigurationUserIdentityConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceConfigurationUserIdentityConfiguration.java @@ -13,13 +13,9 @@ public final class ExperienceConfigurationUserIdentityConfiguration { * @return The AWS SSO field name that contains the identifiers of your users, such as their emails. * */ - private final String identityAttributeName; - - @CustomType.Constructor - private ExperienceConfigurationUserIdentityConfiguration(@CustomType.Parameter("identityAttributeName") String identityAttributeName) { - this.identityAttributeName = identityAttributeName; - } + private String identityAttributeName; + private ExperienceConfigurationUserIdentityConfiguration() {} /** * @return The AWS SSO field name that contains the identifiers of your users, such as their emails. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ExperienceConfigurationUserIdentityConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String identityAttributeName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ExperienceConfigurationUserIdentityConfiguration defaults) { Objects.requireNonNull(defaults); this.identityAttributeName = defaults.identityAttributeName; } + @CustomType.Setter public Builder identityAttributeName(String identityAttributeName) { this.identityAttributeName = Objects.requireNonNull(identityAttributeName); return this; - } public ExperienceConfigurationUserIdentityConfiguration build() { - return new ExperienceConfigurationUserIdentityConfiguration(identityAttributeName); + } + public ExperienceConfigurationUserIdentityConfiguration build() { + final var o = new ExperienceConfigurationUserIdentityConfiguration(); + o.identityAttributeName = identityAttributeName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceEndpoint.java index 05fbf6f3123..022d82b686b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ExperienceEndpoint.java @@ -15,21 +15,14 @@ public final class ExperienceEndpoint { * @return The endpoint of your Amazon Kendra experience. * */ - private final @Nullable String endpoint; + private @Nullable String endpoint; /** * @return The type of endpoint for your Amazon Kendra experience. * */ - private final @Nullable String endpointType; - - @CustomType.Constructor - private ExperienceEndpoint( - @CustomType.Parameter("endpoint") @Nullable String endpoint, - @CustomType.Parameter("endpointType") @Nullable String endpointType) { - this.endpoint = endpoint; - this.endpointType = endpointType; - } + private @Nullable String endpointType; + private ExperienceEndpoint() {} /** * @return The endpoint of your Amazon Kendra experience. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ExperienceEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String endpoint; private @Nullable String endpointType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ExperienceEndpoint defaults) { Objects.requireNonNull(defaults); this.endpoint = defaults.endpoint; this.endpointType = defaults.endpointType; } + @CustomType.Setter public Builder endpoint(@Nullable String endpoint) { this.endpoint = endpoint; return this; } + @CustomType.Setter public Builder endpointType(@Nullable String endpointType) { this.endpointType = endpointType; return this; - } public ExperienceEndpoint build() { - return new ExperienceEndpoint(endpoint, endpointType); + } + public ExperienceEndpoint build() { + final var o = new ExperienceEndpoint(); + o.endpoint = endpoint; + o.endpointType = endpointType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/FaqS3Path.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/FaqS3Path.java index bc7f263bc5c..8eaff06ba38 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/FaqS3Path.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/FaqS3Path.java @@ -13,21 +13,14 @@ public final class FaqS3Path { * @return The name of the S3 bucket that contains the file. * */ - private final String bucket; + private String bucket; /** * @return The name of the file. * */ - private final String key; - - @CustomType.Constructor - private FaqS3Path( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("key") String key) { - this.bucket = bucket; - this.key = key; - } + private String key; + private FaqS3Path() {} /** * @return The name of the S3 bucket that contains the file. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(FaqS3Path defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FaqS3Path defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.key = defaults.key; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; - } public FaqS3Path build() { - return new FaqS3Path(bucket, key); + } + public FaqS3Path build() { + final var o = new FaqS3Path(); + o.bucket = bucket; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceConfiguration.java index d484c1d28d1..99d88246962 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceConfiguration.java @@ -15,21 +15,14 @@ public final class GetExperienceConfiguration { * @return The identifiers of your data sources and FAQs. This is the content you want to use for your Amazon Kendra Experience. Documented below. * */ - private final List contentSourceConfigurations; + private List contentSourceConfigurations; /** * @return The AWS SSO field name that contains the identifiers of your users, such as their emails. Documented below. * */ - private final List userIdentityConfigurations; - - @CustomType.Constructor - private GetExperienceConfiguration( - @CustomType.Parameter("contentSourceConfigurations") List contentSourceConfigurations, - @CustomType.Parameter("userIdentityConfigurations") List userIdentityConfigurations) { - this.contentSourceConfigurations = contentSourceConfigurations; - this.userIdentityConfigurations = userIdentityConfigurations; - } + private List userIdentityConfigurations; + private GetExperienceConfiguration() {} /** * @return The identifiers of your data sources and FAQs. This is the content you want to use for your Amazon Kendra Experience. Documented below. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(GetExperienceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List contentSourceConfigurations; private List userIdentityConfigurations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetExperienceConfiguration defaults) { Objects.requireNonNull(defaults); this.contentSourceConfigurations = defaults.contentSourceConfigurations; this.userIdentityConfigurations = defaults.userIdentityConfigurations; } + @CustomType.Setter public Builder contentSourceConfigurations(List contentSourceConfigurations) { this.contentSourceConfigurations = Objects.requireNonNull(contentSourceConfigurations); return this; @@ -74,14 +64,19 @@ public Builder contentSourceConfigurations(List userIdentityConfigurations) { this.userIdentityConfigurations = Objects.requireNonNull(userIdentityConfigurations); return this; } public Builder userIdentityConfigurations(GetExperienceConfigurationUserIdentityConfiguration... userIdentityConfigurations) { return userIdentityConfigurations(List.of(userIdentityConfigurations)); - } public GetExperienceConfiguration build() { - return new GetExperienceConfiguration(contentSourceConfigurations, userIdentityConfigurations); + } + public GetExperienceConfiguration build() { + final var o = new GetExperienceConfiguration(); + o.contentSourceConfigurations = contentSourceConfigurations; + o.userIdentityConfigurations = userIdentityConfigurations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceConfigurationContentSourceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceConfigurationContentSourceConfiguration.java index c8b05ee7bce..21d92153df8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceConfigurationContentSourceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceConfigurationContentSourceConfiguration.java @@ -15,28 +15,19 @@ public final class GetExperienceConfigurationContentSourceConfiguration { * @return The identifiers of the data sources you want to use for your Amazon Kendra Experience. * */ - private final List dataSourceIds; + private List dataSourceIds; /** * @return Whether to use documents you indexed directly using the `BatchPutDocument API`. * */ - private final Boolean directPutContent; + private Boolean directPutContent; /** * @return The identifier of the FAQs that you want to use for your Amazon Kendra Experience. * */ - private final List faqIds; - - @CustomType.Constructor - private GetExperienceConfigurationContentSourceConfiguration( - @CustomType.Parameter("dataSourceIds") List dataSourceIds, - @CustomType.Parameter("directPutContent") Boolean directPutContent, - @CustomType.Parameter("faqIds") List faqIds) { - this.dataSourceIds = dataSourceIds; - this.directPutContent = directPutContent; - this.faqIds = faqIds; - } + private List faqIds; + private GetExperienceConfigurationContentSourceConfiguration() {} /** * @return The identifiers of the data sources you want to use for your Amazon Kendra Experience. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetExperienceConfigurationContentSourceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List dataSourceIds; private Boolean directPutContent; private List faqIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetExperienceConfigurationContentSourceConfiguration defaults) { Objects.requireNonNull(defaults); this.dataSourceIds = defaults.dataSourceIds; @@ -83,6 +70,7 @@ public Builder(GetExperienceConfigurationContentSourceConfiguration defaults) { this.faqIds = defaults.faqIds; } + @CustomType.Setter public Builder dataSourceIds(List dataSourceIds) { this.dataSourceIds = Objects.requireNonNull(dataSourceIds); return this; @@ -90,18 +78,25 @@ public Builder dataSourceIds(List dataSourceIds) { public Builder dataSourceIds(String... dataSourceIds) { return dataSourceIds(List.of(dataSourceIds)); } + @CustomType.Setter public Builder directPutContent(Boolean directPutContent) { this.directPutContent = Objects.requireNonNull(directPutContent); return this; } + @CustomType.Setter public Builder faqIds(List faqIds) { this.faqIds = Objects.requireNonNull(faqIds); return this; } public Builder faqIds(String... faqIds) { return faqIds(List.of(faqIds)); - } public GetExperienceConfigurationContentSourceConfiguration build() { - return new GetExperienceConfigurationContentSourceConfiguration(dataSourceIds, directPutContent, faqIds); + } + public GetExperienceConfigurationContentSourceConfiguration build() { + final var o = new GetExperienceConfigurationContentSourceConfiguration(); + o.dataSourceIds = dataSourceIds; + o.directPutContent = directPutContent; + o.faqIds = faqIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceConfigurationUserIdentityConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceConfigurationUserIdentityConfiguration.java index fba477b16ed..c7f21b6ed60 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceConfigurationUserIdentityConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceConfigurationUserIdentityConfiguration.java @@ -13,13 +13,9 @@ public final class GetExperienceConfigurationUserIdentityConfiguration { * @return The AWS SSO field name that contains the identifiers of your users, such as their emails. * */ - private final String identityAttributeName; - - @CustomType.Constructor - private GetExperienceConfigurationUserIdentityConfiguration(@CustomType.Parameter("identityAttributeName") String identityAttributeName) { - this.identityAttributeName = identityAttributeName; - } + private String identityAttributeName; + private GetExperienceConfigurationUserIdentityConfiguration() {} /** * @return The AWS SSO field name that contains the identifiers of your users, such as their emails. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetExperienceConfigurationUserIdentityConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String identityAttributeName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetExperienceConfigurationUserIdentityConfiguration defaults) { Objects.requireNonNull(defaults); this.identityAttributeName = defaults.identityAttributeName; } + @CustomType.Setter public Builder identityAttributeName(String identityAttributeName) { this.identityAttributeName = Objects.requireNonNull(identityAttributeName); return this; - } public GetExperienceConfigurationUserIdentityConfiguration build() { - return new GetExperienceConfigurationUserIdentityConfiguration(identityAttributeName); + } + public GetExperienceConfigurationUserIdentityConfiguration build() { + final var o = new GetExperienceConfigurationUserIdentityConfiguration(); + o.identityAttributeName = identityAttributeName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceEndpoint.java index 37be7794e8e..d3b97cab310 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceEndpoint.java @@ -13,21 +13,14 @@ public final class GetExperienceEndpoint { * @return The endpoint of your Amazon Kendra Experience. * */ - private final String endpoint; + private String endpoint; /** * @return The type of endpoint for your Amazon Kendra Experience. * */ - private final String endpointType; - - @CustomType.Constructor - private GetExperienceEndpoint( - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("endpointType") String endpointType) { - this.endpoint = endpoint; - this.endpointType = endpointType; - } + private String endpointType; + private GetExperienceEndpoint() {} /** * @return The endpoint of your Amazon Kendra Experience. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetExperienceEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String endpoint; private String endpointType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetExperienceEndpoint defaults) { Objects.requireNonNull(defaults); this.endpoint = defaults.endpoint; this.endpointType = defaults.endpointType; } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder endpointType(String endpointType) { this.endpointType = Objects.requireNonNull(endpointType); return this; - } public GetExperienceEndpoint build() { - return new GetExperienceEndpoint(endpoint, endpointType); + } + public GetExperienceEndpoint build() { + final var o = new GetExperienceEndpoint(); + o.endpoint = endpoint; + o.endpointType = endpointType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceResult.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceResult.java index aa3033a528d..dc473d487a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetExperienceResult.java @@ -16,90 +16,61 @@ public final class GetExperienceResult { * @return The Amazon Resource Name (ARN) of the Experience. * */ - private final String arn; + private String arn; /** * @return A block that specifies the configuration information for your Amazon Kendra Experience. This includes `content_source_configuration`, which specifies the data source IDs and/or FAQ IDs, and `user_identity_configuration`, which specifies the user or group information to grant access to your Amazon Kendra Experience. Documented below. * */ - private final List configurations; + private List configurations; /** * @return The Unix datetime that the Experience was created. * */ - private final String createdAt; + private String createdAt; /** * @return The description of the Experience. * */ - private final String description; + private String description; /** * @return Shows the endpoint URLs for your Amazon Kendra Experiences. The URLs are unique and fully hosted by AWS. Documented below. * */ - private final List endpoints; + private List endpoints; /** * @return The reason your Amazon Kendra Experience could not properly process. * */ - private final String errorMessage; - private final String experienceId; + private String errorMessage; + private String experienceId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String indexId; + private String id; + private String indexId; /** * @return The name of the Experience. * */ - private final String name; + private String name; /** * @return Shows the Amazon Resource Name (ARN) of a role with permission to access `Query` API, `QuerySuggestions` API, `SubmitFeedback` API, and AWS SSO that stores your user and group information. * */ - private final String roleArn; + private String roleArn; /** * @return The current processing status of your Amazon Kendra Experience. When the status is `ACTIVE`, your Amazon Kendra Experience is ready to use. When the status is `FAILED`, the `error_message` field contains the reason that this failed. * */ - private final String status; + private String status; /** * @return The date and time that the Experience was last updated. * */ - private final String updatedAt; - - @CustomType.Constructor - private GetExperienceResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("configurations") List configurations, - @CustomType.Parameter("createdAt") String createdAt, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("endpoints") List endpoints, - @CustomType.Parameter("errorMessage") String errorMessage, - @CustomType.Parameter("experienceId") String experienceId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("indexId") String indexId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("updatedAt") String updatedAt) { - this.arn = arn; - this.configurations = configurations; - this.createdAt = createdAt; - this.description = description; - this.endpoints = endpoints; - this.errorMessage = errorMessage; - this.experienceId = experienceId; - this.id = id; - this.indexId = indexId; - this.name = name; - this.roleArn = roleArn; - this.status = status; - this.updatedAt = updatedAt; - } + private String updatedAt; + private GetExperienceResult() {} /** * @return The Amazon Resource Name (ARN) of the Experience. * @@ -191,7 +162,7 @@ public static Builder builder() { public static Builder builder(GetExperienceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List configurations; @@ -206,11 +177,7 @@ public static final class Builder { private String roleArn; private String status; private String updatedAt; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetExperienceResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -228,10 +195,12 @@ public Builder(GetExperienceResult defaults) { this.updatedAt = defaults.updatedAt; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder configurations(List configurations) { this.configurations = Objects.requireNonNull(configurations); return this; @@ -239,14 +208,17 @@ public Builder configurations(List configurations) { public Builder configurations(GetExperienceConfiguration... configurations) { return configurations(List.of(configurations)); } + @CustomType.Setter public Builder createdAt(String createdAt) { this.createdAt = Objects.requireNonNull(createdAt); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder endpoints(List endpoints) { this.endpoints = Objects.requireNonNull(endpoints); return this; @@ -254,39 +226,62 @@ public Builder endpoints(List endpoints) { public Builder endpoints(GetExperienceEndpoint... endpoints) { return endpoints(List.of(endpoints)); } + @CustomType.Setter public Builder errorMessage(String errorMessage) { this.errorMessage = Objects.requireNonNull(errorMessage); return this; } + @CustomType.Setter public Builder experienceId(String experienceId) { this.experienceId = Objects.requireNonNull(experienceId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder indexId(String indexId) { this.indexId = Objects.requireNonNull(indexId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder updatedAt(String updatedAt) { this.updatedAt = Objects.requireNonNull(updatedAt); return this; - } public GetExperienceResult build() { - return new GetExperienceResult(arn, configurations, createdAt, description, endpoints, errorMessage, experienceId, id, indexId, name, roleArn, status, updatedAt); + } + public GetExperienceResult build() { + final var o = new GetExperienceResult(); + o.arn = arn; + o.configurations = configurations; + o.createdAt = createdAt; + o.description = description; + o.endpoints = endpoints; + o.errorMessage = errorMessage; + o.experienceId = experienceId; + o.id = id; + o.indexId = indexId; + o.name = name; + o.roleArn = roleArn; + o.status = status; + o.updatedAt = updatedAt; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetFaqResult.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetFaqResult.java index b01527a9525..d7a07f80e03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetFaqResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetFaqResult.java @@ -16,104 +16,71 @@ public final class GetFaqResult { * @return The Amazon Resource Name (ARN) of the FAQ. * */ - private final String arn; + private String arn; /** * @return The Unix datetime that the faq was created. * */ - private final String createdAt; + private String createdAt; /** * @return The description of the FAQ. * */ - private final String description; + private String description; /** * @return When the `status` field value is `FAILED`, this contains a message that explains why. * */ - private final String errorMessage; - private final String faqId; + private String errorMessage; + private String faqId; /** * @return The file format used by the input files for the FAQ. Valid Values are `CSV`, `CSV_WITH_HEADER`, `JSON`. * */ - private final String fileFormat; + private String fileFormat; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String indexId; + private String id; + private String indexId; /** * @return The code for a language. This shows a supported language for the FAQ document. For more information on supported languages, including their codes, see [Adding documents in languages other than English](https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html). * */ - private final String languageCode; + private String languageCode; /** * @return Specifies the name of the FAQ. * */ - private final String name; + private String name; /** * @return The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the FAQs. For more information, see [IAM Roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html). * */ - private final String roleArn; + private String roleArn; /** * @return The S3 location of the FAQ input data. Detailed below. * */ - private final List s3Paths; + private List s3Paths; /** * @return The status of the FAQ. It is ready to use when the status is ACTIVE. * */ - private final String status; + private String status; /** * @return Metadata that helps organize the FAQs you create. * */ - private final Map tags; + private Map tags; /** * @return The date and time that the FAQ was last updated. * */ - private final String updatedAt; - - @CustomType.Constructor - private GetFaqResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createdAt") String createdAt, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("errorMessage") String errorMessage, - @CustomType.Parameter("faqId") String faqId, - @CustomType.Parameter("fileFormat") String fileFormat, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("indexId") String indexId, - @CustomType.Parameter("languageCode") String languageCode, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("s3Paths") List s3Paths, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("updatedAt") String updatedAt) { - this.arn = arn; - this.createdAt = createdAt; - this.description = description; - this.errorMessage = errorMessage; - this.faqId = faqId; - this.fileFormat = fileFormat; - this.id = id; - this.indexId = indexId; - this.languageCode = languageCode; - this.name = name; - this.roleArn = roleArn; - this.s3Paths = s3Paths; - this.status = status; - this.tags = tags; - this.updatedAt = updatedAt; - } + private String updatedAt; + private GetFaqResult() {} /** * @return The Amazon Resource Name (ARN) of the FAQ. * @@ -219,7 +186,7 @@ public static Builder builder() { public static Builder builder(GetFaqResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String createdAt; @@ -236,11 +203,7 @@ public static final class Builder { private String status; private Map tags; private String updatedAt; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFaqResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -260,50 +223,62 @@ public Builder(GetFaqResult defaults) { this.updatedAt = defaults.updatedAt; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createdAt(String createdAt) { this.createdAt = Objects.requireNonNull(createdAt); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder errorMessage(String errorMessage) { this.errorMessage = Objects.requireNonNull(errorMessage); return this; } + @CustomType.Setter public Builder faqId(String faqId) { this.faqId = Objects.requireNonNull(faqId); return this; } + @CustomType.Setter public Builder fileFormat(String fileFormat) { this.fileFormat = Objects.requireNonNull(fileFormat); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder indexId(String indexId) { this.indexId = Objects.requireNonNull(indexId); return this; } + @CustomType.Setter public Builder languageCode(String languageCode) { this.languageCode = Objects.requireNonNull(languageCode); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder s3Paths(List s3Paths) { this.s3Paths = Objects.requireNonNull(s3Paths); return this; @@ -311,19 +286,39 @@ public Builder s3Paths(List s3Paths) { public Builder s3Paths(GetFaqS3Path... s3Paths) { return s3Paths(List.of(s3Paths)); } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder updatedAt(String updatedAt) { this.updatedAt = Objects.requireNonNull(updatedAt); return this; - } public GetFaqResult build() { - return new GetFaqResult(arn, createdAt, description, errorMessage, faqId, fileFormat, id, indexId, languageCode, name, roleArn, s3Paths, status, tags, updatedAt); + } + public GetFaqResult build() { + final var o = new GetFaqResult(); + o.arn = arn; + o.createdAt = createdAt; + o.description = description; + o.errorMessage = errorMessage; + o.faqId = faqId; + o.fileFormat = fileFormat; + o.id = id; + o.indexId = indexId; + o.languageCode = languageCode; + o.name = name; + o.roleArn = roleArn; + o.s3Paths = s3Paths; + o.status = status; + o.tags = tags; + o.updatedAt = updatedAt; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetFaqS3Path.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetFaqS3Path.java index e002f622e08..068ef06047b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetFaqS3Path.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetFaqS3Path.java @@ -13,21 +13,14 @@ public final class GetFaqS3Path { * @return The name of the S3 bucket that contains the file. * */ - private final String bucket; + private String bucket; /** * @return The name of the file. * */ - private final String key; - - @CustomType.Constructor - private GetFaqS3Path( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("key") String key) { - this.bucket = bucket; - this.key = key; - } + private String key; + private GetFaqS3Path() {} /** * @return The name of the S3 bucket that contains the file. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetFaqS3Path defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFaqS3Path defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.key = defaults.key; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; - } public GetFaqS3Path build() { - return new GetFaqS3Path(bucket, key); + } + public GetFaqS3Path build() { + final var o = new GetFaqS3Path(); + o.bucket = bucket; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexCapacityUnit.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexCapacityUnit.java index ced5797823d..50dc62355c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexCapacityUnit.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexCapacityUnit.java @@ -13,21 +13,14 @@ public final class GetIndexCapacityUnit { * @return The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to [QueryCapacityUnits](https://docs.aws.amazon.com/kendra/latest/dg/API_CapacityUnitsConfiguration.html#Kendra-Type-CapacityUnitsConfiguration-QueryCapacityUnits). * */ - private final Integer queryCapacityUnits; + private Integer queryCapacityUnits; /** * @return The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. Minimum value of 0. * */ - private final Integer storageCapacityUnits; - - @CustomType.Constructor - private GetIndexCapacityUnit( - @CustomType.Parameter("queryCapacityUnits") Integer queryCapacityUnits, - @CustomType.Parameter("storageCapacityUnits") Integer storageCapacityUnits) { - this.queryCapacityUnits = queryCapacityUnits; - this.storageCapacityUnits = storageCapacityUnits; - } + private Integer storageCapacityUnits; + private GetIndexCapacityUnit() {} /** * @return The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to [QueryCapacityUnits](https://docs.aws.amazon.com/kendra/latest/dg/API_CapacityUnitsConfiguration.html#Kendra-Type-CapacityUnitsConfiguration-QueryCapacityUnits). * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetIndexCapacityUnit defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer queryCapacityUnits; private Integer storageCapacityUnits; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexCapacityUnit defaults) { Objects.requireNonNull(defaults); this.queryCapacityUnits = defaults.queryCapacityUnits; this.storageCapacityUnits = defaults.storageCapacityUnits; } + @CustomType.Setter public Builder queryCapacityUnits(Integer queryCapacityUnits) { this.queryCapacityUnits = Objects.requireNonNull(queryCapacityUnits); return this; } + @CustomType.Setter public Builder storageCapacityUnits(Integer storageCapacityUnits) { this.storageCapacityUnits = Objects.requireNonNull(storageCapacityUnits); return this; - } public GetIndexCapacityUnit build() { - return new GetIndexCapacityUnit(queryCapacityUnits, storageCapacityUnits); + } + public GetIndexCapacityUnit build() { + final var o = new GetIndexCapacityUnit(); + o.queryCapacityUnits = queryCapacityUnits; + o.storageCapacityUnits = storageCapacityUnits; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexDocumentMetadataConfigurationUpdate.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexDocumentMetadataConfigurationUpdate.java index f0254ee9bc3..29f504ab9f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexDocumentMetadataConfigurationUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexDocumentMetadataConfigurationUpdate.java @@ -16,35 +16,24 @@ public final class GetIndexDocumentMetadataConfigurationUpdate { * @return The name of the index field. Minimum length of 1. Maximum length of 30. * */ - private final String name; + private String name; /** * @return A block that provides manual tuning parameters to determine how the field affects the search results. Documented below. * */ - private final List relevances; + private List relevances; /** * @return A block that provides information about how the field is used during a search. Documented below. * */ - private final List searches; + private List searches; /** * @return The data type of the index field. Valid values are `STRING_VALUE`, `STRING_LIST_VALUE`, `LONG_VALUE`, `DATE_VALUE`. * */ - private final String type; - - @CustomType.Constructor - private GetIndexDocumentMetadataConfigurationUpdate( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("relevances") List relevances, - @CustomType.Parameter("searches") List searches, - @CustomType.Parameter("type") String type) { - this.name = name; - this.relevances = relevances; - this.searches = searches; - this.type = type; - } + private String type; + private GetIndexDocumentMetadataConfigurationUpdate() {} /** * @return The name of the index field. Minimum length of 1. Maximum length of 30. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(GetIndexDocumentMetadataConfigurationUpdate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List relevances; private List searches; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexDocumentMetadataConfigurationUpdate defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -100,10 +85,12 @@ public Builder(GetIndexDocumentMetadataConfigurationUpdate defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder relevances(List relevances) { this.relevances = Objects.requireNonNull(relevances); return this; @@ -111,6 +98,7 @@ public Builder relevances(List searches) { this.searches = Objects.requireNonNull(searches); return this; @@ -118,11 +106,18 @@ public Builder searches(List public Builder searches(GetIndexDocumentMetadataConfigurationUpdateSearch... searches) { return searches(List.of(searches)); } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetIndexDocumentMetadataConfigurationUpdate build() { - return new GetIndexDocumentMetadataConfigurationUpdate(name, relevances, searches, type); + } + public GetIndexDocumentMetadataConfigurationUpdate build() { + final var o = new GetIndexDocumentMetadataConfigurationUpdate(); + o.name = name; + o.relevances = relevances; + o.searches = searches; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexDocumentMetadataConfigurationUpdateRelevance.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexDocumentMetadataConfigurationUpdateRelevance.java index 9b1d91cf893..2ad2da72983 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexDocumentMetadataConfigurationUpdateRelevance.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexDocumentMetadataConfigurationUpdateRelevance.java @@ -16,42 +16,29 @@ public final class GetIndexDocumentMetadataConfigurationUpdateRelevance { * @return Specifies the time period that the boost applies to. For more information, refer to [Duration](https://docs.aws.amazon.com/kendra/latest/dg/API_Relevance.html#Kendra-Type-Relevance-Duration). * */ - private final String duration; + private String duration; /** * @return Indicates that this field determines how "fresh" a document is. For more information, refer to [Freshness](https://docs.aws.amazon.com/kendra/latest/dg/API_Relevance.html#Kendra-Type-Relevance-Freshness). * */ - private final Boolean freshness; + private Boolean freshness; /** * @return The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers. Minimum value of 1. Maximum value of 10. * */ - private final Integer importance; + private Integer importance; /** * @return Determines how values should be interpreted. For more information, refer to [RankOrder](https://docs.aws.amazon.com/kendra/latest/dg/API_Relevance.html#Kendra-Type-Relevance-RankOrder). * */ - private final String rankOrder; + private String rankOrder; /** * @return A list of values that should be given a different boost when they appear in the result list. For more information, refer to [ValueImportanceMap](https://docs.aws.amazon.com/kendra/latest/dg/API_Relevance.html#Kendra-Type-Relevance-ValueImportanceMap). * */ - private final Map valuesImportanceMap; - - @CustomType.Constructor - private GetIndexDocumentMetadataConfigurationUpdateRelevance( - @CustomType.Parameter("duration") String duration, - @CustomType.Parameter("freshness") Boolean freshness, - @CustomType.Parameter("importance") Integer importance, - @CustomType.Parameter("rankOrder") String rankOrder, - @CustomType.Parameter("valuesImportanceMap") Map valuesImportanceMap) { - this.duration = duration; - this.freshness = freshness; - this.importance = importance; - this.rankOrder = rankOrder; - this.valuesImportanceMap = valuesImportanceMap; - } + private Map valuesImportanceMap; + private GetIndexDocumentMetadataConfigurationUpdateRelevance() {} /** * @return Specifies the time period that the boost applies to. For more information, refer to [Duration](https://docs.aws.amazon.com/kendra/latest/dg/API_Relevance.html#Kendra-Type-Relevance-Duration). * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(GetIndexDocumentMetadataConfigurationUpdateRelevance defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String duration; private Boolean freshness; private Integer importance; private String rankOrder; private Map valuesImportanceMap; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexDocumentMetadataConfigurationUpdateRelevance defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; @@ -116,27 +99,39 @@ public Builder(GetIndexDocumentMetadataConfigurationUpdateRelevance defaults) { this.valuesImportanceMap = defaults.valuesImportanceMap; } + @CustomType.Setter public Builder duration(String duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder freshness(Boolean freshness) { this.freshness = Objects.requireNonNull(freshness); return this; } + @CustomType.Setter public Builder importance(Integer importance) { this.importance = Objects.requireNonNull(importance); return this; } + @CustomType.Setter public Builder rankOrder(String rankOrder) { this.rankOrder = Objects.requireNonNull(rankOrder); return this; } + @CustomType.Setter public Builder valuesImportanceMap(Map valuesImportanceMap) { this.valuesImportanceMap = Objects.requireNonNull(valuesImportanceMap); return this; - } public GetIndexDocumentMetadataConfigurationUpdateRelevance build() { - return new GetIndexDocumentMetadataConfigurationUpdateRelevance(duration, freshness, importance, rankOrder, valuesImportanceMap); + } + public GetIndexDocumentMetadataConfigurationUpdateRelevance build() { + final var o = new GetIndexDocumentMetadataConfigurationUpdateRelevance(); + o.duration = duration; + o.freshness = freshness; + o.importance = importance; + o.rankOrder = rankOrder; + o.valuesImportanceMap = valuesImportanceMap; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexDocumentMetadataConfigurationUpdateSearch.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexDocumentMetadataConfigurationUpdateSearch.java index 23f5515ba6c..aa26ba038d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexDocumentMetadataConfigurationUpdateSearch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexDocumentMetadataConfigurationUpdateSearch.java @@ -13,35 +13,24 @@ public final class GetIndexDocumentMetadataConfigurationUpdateSearch { * @return Determines whether the field is returned in the query response. The default is `true`. * */ - private final Boolean displayable; + private Boolean displayable; /** * @return Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is `false`. * */ - private final Boolean facetable; + private Boolean facetable; /** * @return Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is `true` for `string` fields and `false` for `number` and `date` fields. * */ - private final Boolean searchable; + private Boolean searchable; /** * @return Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is `false`. * */ - private final Boolean sortable; - - @CustomType.Constructor - private GetIndexDocumentMetadataConfigurationUpdateSearch( - @CustomType.Parameter("displayable") Boolean displayable, - @CustomType.Parameter("facetable") Boolean facetable, - @CustomType.Parameter("searchable") Boolean searchable, - @CustomType.Parameter("sortable") Boolean sortable) { - this.displayable = displayable; - this.facetable = facetable; - this.searchable = searchable; - this.sortable = sortable; - } + private Boolean sortable; + private GetIndexDocumentMetadataConfigurationUpdateSearch() {} /** * @return Determines whether the field is returned in the query response. The default is `true`. * @@ -78,17 +67,13 @@ public static Builder builder() { public static Builder builder(GetIndexDocumentMetadataConfigurationUpdateSearch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean displayable; private Boolean facetable; private Boolean searchable; private Boolean sortable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexDocumentMetadataConfigurationUpdateSearch defaults) { Objects.requireNonNull(defaults); this.displayable = defaults.displayable; @@ -97,23 +82,33 @@ public Builder(GetIndexDocumentMetadataConfigurationUpdateSearch defaults) { this.sortable = defaults.sortable; } + @CustomType.Setter public Builder displayable(Boolean displayable) { this.displayable = Objects.requireNonNull(displayable); return this; } + @CustomType.Setter public Builder facetable(Boolean facetable) { this.facetable = Objects.requireNonNull(facetable); return this; } + @CustomType.Setter public Builder searchable(Boolean searchable) { this.searchable = Objects.requireNonNull(searchable); return this; } + @CustomType.Setter public Builder sortable(Boolean sortable) { this.sortable = Objects.requireNonNull(sortable); return this; - } public GetIndexDocumentMetadataConfigurationUpdateSearch build() { - return new GetIndexDocumentMetadataConfigurationUpdateSearch(displayable, facetable, searchable, sortable); + } + public GetIndexDocumentMetadataConfigurationUpdateSearch build() { + final var o = new GetIndexDocumentMetadataConfigurationUpdateSearch(); + o.displayable = displayable; + o.facetable = facetable; + o.searchable = searchable; + o.sortable = sortable; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexIndexStatistic.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexIndexStatistic.java index c402d04f6bb..269098377a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexIndexStatistic.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexIndexStatistic.java @@ -15,21 +15,14 @@ public final class GetIndexIndexStatistic { * @return A block that specifies the number of question and answer topics in the index. Documented below. * */ - private final List faqStatistics; + private List faqStatistics; /** * @return A block that specifies the number of text documents indexed. * */ - private final List textDocumentStatistics; - - @CustomType.Constructor - private GetIndexIndexStatistic( - @CustomType.Parameter("faqStatistics") List faqStatistics, - @CustomType.Parameter("textDocumentStatistics") List textDocumentStatistics) { - this.faqStatistics = faqStatistics; - this.textDocumentStatistics = textDocumentStatistics; - } + private List textDocumentStatistics; + private GetIndexIndexStatistic() {} /** * @return A block that specifies the number of question and answer topics in the index. Documented below. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(GetIndexIndexStatistic defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List faqStatistics; private List textDocumentStatistics; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexIndexStatistic defaults) { Objects.requireNonNull(defaults); this.faqStatistics = defaults.faqStatistics; this.textDocumentStatistics = defaults.textDocumentStatistics; } + @CustomType.Setter public Builder faqStatistics(List faqStatistics) { this.faqStatistics = Objects.requireNonNull(faqStatistics); return this; @@ -74,14 +64,19 @@ public Builder faqStatistics(List faqStatist public Builder faqStatistics(GetIndexIndexStatisticFaqStatistic... faqStatistics) { return faqStatistics(List.of(faqStatistics)); } + @CustomType.Setter public Builder textDocumentStatistics(List textDocumentStatistics) { this.textDocumentStatistics = Objects.requireNonNull(textDocumentStatistics); return this; } public Builder textDocumentStatistics(GetIndexIndexStatisticTextDocumentStatistic... textDocumentStatistics) { return textDocumentStatistics(List.of(textDocumentStatistics)); - } public GetIndexIndexStatistic build() { - return new GetIndexIndexStatistic(faqStatistics, textDocumentStatistics); + } + public GetIndexIndexStatistic build() { + final var o = new GetIndexIndexStatistic(); + o.faqStatistics = faqStatistics; + o.textDocumentStatistics = textDocumentStatistics; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexIndexStatisticFaqStatistic.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexIndexStatisticFaqStatistic.java index dcd29ef0757..057221f4c1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexIndexStatisticFaqStatistic.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexIndexStatisticFaqStatistic.java @@ -13,13 +13,9 @@ public final class GetIndexIndexStatisticFaqStatistic { * @return The total number of FAQ questions and answers contained in the index. * */ - private final Integer indexedQuestionAnswersCount; - - @CustomType.Constructor - private GetIndexIndexStatisticFaqStatistic(@CustomType.Parameter("indexedQuestionAnswersCount") Integer indexedQuestionAnswersCount) { - this.indexedQuestionAnswersCount = indexedQuestionAnswersCount; - } + private Integer indexedQuestionAnswersCount; + private GetIndexIndexStatisticFaqStatistic() {} /** * @return The total number of FAQ questions and answers contained in the index. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetIndexIndexStatisticFaqStatistic defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer indexedQuestionAnswersCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexIndexStatisticFaqStatistic defaults) { Objects.requireNonNull(defaults); this.indexedQuestionAnswersCount = defaults.indexedQuestionAnswersCount; } + @CustomType.Setter public Builder indexedQuestionAnswersCount(Integer indexedQuestionAnswersCount) { this.indexedQuestionAnswersCount = Objects.requireNonNull(indexedQuestionAnswersCount); return this; - } public GetIndexIndexStatisticFaqStatistic build() { - return new GetIndexIndexStatisticFaqStatistic(indexedQuestionAnswersCount); + } + public GetIndexIndexStatisticFaqStatistic build() { + final var o = new GetIndexIndexStatisticFaqStatistic(); + o.indexedQuestionAnswersCount = indexedQuestionAnswersCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexIndexStatisticTextDocumentStatistic.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexIndexStatisticTextDocumentStatistic.java index efe46c03ce8..91bb5a6f1f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexIndexStatisticTextDocumentStatistic.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexIndexStatisticTextDocumentStatistic.java @@ -13,21 +13,14 @@ public final class GetIndexIndexStatisticTextDocumentStatistic { * @return The total size, in bytes, of the indexed documents. * */ - private final Integer indexedTextBytes; + private Integer indexedTextBytes; /** * @return The number of text documents indexed. * */ - private final Integer indexedTextDocumentsCount; - - @CustomType.Constructor - private GetIndexIndexStatisticTextDocumentStatistic( - @CustomType.Parameter("indexedTextBytes") Integer indexedTextBytes, - @CustomType.Parameter("indexedTextDocumentsCount") Integer indexedTextDocumentsCount) { - this.indexedTextBytes = indexedTextBytes; - this.indexedTextDocumentsCount = indexedTextDocumentsCount; - } + private Integer indexedTextDocumentsCount; + private GetIndexIndexStatisticTextDocumentStatistic() {} /** * @return The total size, in bytes, of the indexed documents. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetIndexIndexStatisticTextDocumentStatistic defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer indexedTextBytes; private Integer indexedTextDocumentsCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexIndexStatisticTextDocumentStatistic defaults) { Objects.requireNonNull(defaults); this.indexedTextBytes = defaults.indexedTextBytes; this.indexedTextDocumentsCount = defaults.indexedTextDocumentsCount; } + @CustomType.Setter public Builder indexedTextBytes(Integer indexedTextBytes) { this.indexedTextBytes = Objects.requireNonNull(indexedTextBytes); return this; } + @CustomType.Setter public Builder indexedTextDocumentsCount(Integer indexedTextDocumentsCount) { this.indexedTextDocumentsCount = Objects.requireNonNull(indexedTextDocumentsCount); return this; - } public GetIndexIndexStatisticTextDocumentStatistic build() { - return new GetIndexIndexStatisticTextDocumentStatistic(indexedTextBytes, indexedTextDocumentsCount); + } + public GetIndexIndexStatisticTextDocumentStatistic build() { + final var o = new GetIndexIndexStatisticTextDocumentStatistic(); + o.indexedTextBytes = indexedTextBytes; + o.indexedTextDocumentsCount = indexedTextDocumentsCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexResult.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexResult.java index e36d5572fc2..63922cc2fa9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexResult.java @@ -21,134 +21,95 @@ public final class GetIndexResult { * @return The Amazon Resource Name (ARN) of the Index. * */ - private final String arn; + private String arn; /** * @return A block that sets the number of additional document storage and query capacity units that should be used by the index. Documented below. * */ - private final List capacityUnits; + private List capacityUnits; /** * @return The Unix datetime that the index was created. * */ - private final String createdAt; + private String createdAt; /** * @return The description of the Index. * */ - private final String description; + private String description; /** * @return One or more blocks that specify the configuration settings for any metadata applied to the documents in the index. Documented below. * */ - private final List documentMetadataConfigurationUpdates; + private List documentMetadataConfigurationUpdates; /** * @return The Amazon Kendra edition for the index. * */ - private final String edition; + private String edition; /** * @return When the Status field value is `FAILED`, this contains a message that explains why. * */ - private final String errorMessage; + private String errorMessage; /** * @return The identifier of the Index. * */ - private final String id; + private String id; /** * @return A block that provides information about the number of FAQ questions and answers and the number of text documents indexed. Documented below. * */ - private final List indexStatistics; + private List indexStatistics; /** * @return The name of the index field. Minimum length of 1. Maximum length of 30. * */ - private final String name; + private String name; /** * @return An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role you use when you call the `BatchPutDocument` API to index documents from an Amazon S3 bucket. * */ - private final String roleArn; + private String roleArn; /** * @return A block that specifies the identifier of the AWS KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs. Documented below. * */ - private final List serverSideEncryptionConfigurations; + private List serverSideEncryptionConfigurations; /** * @return The current status of the index. When the value is `ACTIVE`, the index is ready for use. If the Status field value is `FAILED`, the `error_message` field contains a message that explains why. * */ - private final String status; + private String status; /** * @return Metadata that helps organize the Indices you create. * */ - private final Map tags; + private Map tags; /** * @return The Unix datetime that the index was last updated. * */ - private final String updatedAt; + private String updatedAt; /** * @return The user context policy. Valid values are `ATTRIBUTE_FILTER` or `USER_TOKEN`. For more information, refer to [UserContextPolicy](https://docs.aws.amazon.com/kendra/latest/dg/API_CreateIndex. * html#Kendra-CreateIndex-request-UserContextPolicy). * */ - private final String userContextPolicy; + private String userContextPolicy; /** * @return A block that enables fetching access levels of groups and users from an AWS Single Sign-On identity source. Documented below. * */ - private final List userGroupResolutionConfigurations; + private List userGroupResolutionConfigurations; /** * @return A block that specifies the user token configuration. Documented below. * */ - private final List userTokenConfigurations; - - @CustomType.Constructor - private GetIndexResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("capacityUnits") List capacityUnits, - @CustomType.Parameter("createdAt") String createdAt, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("documentMetadataConfigurationUpdates") List documentMetadataConfigurationUpdates, - @CustomType.Parameter("edition") String edition, - @CustomType.Parameter("errorMessage") String errorMessage, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("indexStatistics") List indexStatistics, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("serverSideEncryptionConfigurations") List serverSideEncryptionConfigurations, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("updatedAt") String updatedAt, - @CustomType.Parameter("userContextPolicy") String userContextPolicy, - @CustomType.Parameter("userGroupResolutionConfigurations") List userGroupResolutionConfigurations, - @CustomType.Parameter("userTokenConfigurations") List userTokenConfigurations) { - this.arn = arn; - this.capacityUnits = capacityUnits; - this.createdAt = createdAt; - this.description = description; - this.documentMetadataConfigurationUpdates = documentMetadataConfigurationUpdates; - this.edition = edition; - this.errorMessage = errorMessage; - this.id = id; - this.indexStatistics = indexStatistics; - this.name = name; - this.roleArn = roleArn; - this.serverSideEncryptionConfigurations = serverSideEncryptionConfigurations; - this.status = status; - this.tags = tags; - this.updatedAt = updatedAt; - this.userContextPolicy = userContextPolicy; - this.userGroupResolutionConfigurations = userGroupResolutionConfigurations; - this.userTokenConfigurations = userTokenConfigurations; - } + private List userTokenConfigurations; + private GetIndexResult() {} /** * @return The Amazon Resource Name (ARN) of the Index. * @@ -284,7 +245,7 @@ public static Builder builder() { public static Builder builder(GetIndexResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List capacityUnits; @@ -304,11 +265,7 @@ public static final class Builder { private String userContextPolicy; private List userGroupResolutionConfigurations; private List userTokenConfigurations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -331,10 +288,12 @@ public Builder(GetIndexResult defaults) { this.userTokenConfigurations = defaults.userTokenConfigurations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder capacityUnits(List capacityUnits) { this.capacityUnits = Objects.requireNonNull(capacityUnits); return this; @@ -342,14 +301,17 @@ public Builder capacityUnits(List capacityUnits) { public Builder capacityUnits(GetIndexCapacityUnit... capacityUnits) { return capacityUnits(List.of(capacityUnits)); } + @CustomType.Setter public Builder createdAt(String createdAt) { this.createdAt = Objects.requireNonNull(createdAt); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder documentMetadataConfigurationUpdates(List documentMetadataConfigurationUpdates) { this.documentMetadataConfigurationUpdates = Objects.requireNonNull(documentMetadataConfigurationUpdates); return this; @@ -357,18 +319,22 @@ public Builder documentMetadataConfigurationUpdates(List indexStatistics) { this.indexStatistics = Objects.requireNonNull(indexStatistics); return this; @@ -376,14 +342,17 @@ public Builder indexStatistics(List indexStatistics) { public Builder indexStatistics(GetIndexIndexStatistic... indexStatistics) { return indexStatistics(List.of(indexStatistics)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder serverSideEncryptionConfigurations(List serverSideEncryptionConfigurations) { this.serverSideEncryptionConfigurations = Objects.requireNonNull(serverSideEncryptionConfigurations); return this; @@ -391,22 +360,27 @@ public Builder serverSideEncryptionConfigurations(List tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder updatedAt(String updatedAt) { this.updatedAt = Objects.requireNonNull(updatedAt); return this; } + @CustomType.Setter public Builder userContextPolicy(String userContextPolicy) { this.userContextPolicy = Objects.requireNonNull(userContextPolicy); return this; } + @CustomType.Setter public Builder userGroupResolutionConfigurations(List userGroupResolutionConfigurations) { this.userGroupResolutionConfigurations = Objects.requireNonNull(userGroupResolutionConfigurations); return this; @@ -414,14 +388,35 @@ public Builder userGroupResolutionConfigurations(List userTokenConfigurations) { this.userTokenConfigurations = Objects.requireNonNull(userTokenConfigurations); return this; } public Builder userTokenConfigurations(GetIndexUserTokenConfiguration... userTokenConfigurations) { return userTokenConfigurations(List.of(userTokenConfigurations)); - } public GetIndexResult build() { - return new GetIndexResult(arn, capacityUnits, createdAt, description, documentMetadataConfigurationUpdates, edition, errorMessage, id, indexStatistics, name, roleArn, serverSideEncryptionConfigurations, status, tags, updatedAt, userContextPolicy, userGroupResolutionConfigurations, userTokenConfigurations); + } + public GetIndexResult build() { + final var o = new GetIndexResult(); + o.arn = arn; + o.capacityUnits = capacityUnits; + o.createdAt = createdAt; + o.description = description; + o.documentMetadataConfigurationUpdates = documentMetadataConfigurationUpdates; + o.edition = edition; + o.errorMessage = errorMessage; + o.id = id; + o.indexStatistics = indexStatistics; + o.name = name; + o.roleArn = roleArn; + o.serverSideEncryptionConfigurations = serverSideEncryptionConfigurations; + o.status = status; + o.tags = tags; + o.updatedAt = updatedAt; + o.userContextPolicy = userContextPolicy; + o.userGroupResolutionConfigurations = userGroupResolutionConfigurations; + o.userTokenConfigurations = userTokenConfigurations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexServerSideEncryptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexServerSideEncryptionConfiguration.java index a0357542301..dd5d8e7792c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexServerSideEncryptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexServerSideEncryptionConfiguration.java @@ -13,13 +13,9 @@ public final class GetIndexServerSideEncryptionConfiguration { * @return The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs. * */ - private final String kmsKeyId; - - @CustomType.Constructor - private GetIndexServerSideEncryptionConfiguration(@CustomType.Parameter("kmsKeyId") String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - } + private String kmsKeyId; + private GetIndexServerSideEncryptionConfiguration() {} /** * @return The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetIndexServerSideEncryptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String kmsKeyId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexServerSideEncryptionConfiguration defaults) { Objects.requireNonNull(defaults); this.kmsKeyId = defaults.kmsKeyId; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; - } public GetIndexServerSideEncryptionConfiguration build() { - return new GetIndexServerSideEncryptionConfiguration(kmsKeyId); + } + public GetIndexServerSideEncryptionConfiguration build() { + final var o = new GetIndexServerSideEncryptionConfiguration(); + o.kmsKeyId = kmsKeyId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserGroupResolutionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserGroupResolutionConfiguration.java index 6766328e77d..3d80580f848 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserGroupResolutionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserGroupResolutionConfiguration.java @@ -13,13 +13,9 @@ public final class GetIndexUserGroupResolutionConfiguration { * @return The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are `AWS_SSO` or `NONE`. * */ - private final String userGroupResolutionMode; - - @CustomType.Constructor - private GetIndexUserGroupResolutionConfiguration(@CustomType.Parameter("userGroupResolutionMode") String userGroupResolutionMode) { - this.userGroupResolutionMode = userGroupResolutionMode; - } + private String userGroupResolutionMode; + private GetIndexUserGroupResolutionConfiguration() {} /** * @return The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are `AWS_SSO` or `NONE`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetIndexUserGroupResolutionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String userGroupResolutionMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexUserGroupResolutionConfiguration defaults) { Objects.requireNonNull(defaults); this.userGroupResolutionMode = defaults.userGroupResolutionMode; } + @CustomType.Setter public Builder userGroupResolutionMode(String userGroupResolutionMode) { this.userGroupResolutionMode = Objects.requireNonNull(userGroupResolutionMode); return this; - } public GetIndexUserGroupResolutionConfiguration build() { - return new GetIndexUserGroupResolutionConfiguration(userGroupResolutionMode); + } + public GetIndexUserGroupResolutionConfiguration build() { + final var o = new GetIndexUserGroupResolutionConfiguration(); + o.userGroupResolutionMode = userGroupResolutionMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserTokenConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserTokenConfiguration.java index 028078b9f8a..4c5a49ecdc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserTokenConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserTokenConfiguration.java @@ -15,21 +15,14 @@ public final class GetIndexUserTokenConfiguration { * @return A block that specifies the information about the JSON token type configuration. * */ - private final List jsonTokenTypeConfigurations; + private List jsonTokenTypeConfigurations; /** * @return A block that specifies the information about the JWT token type configuration. * */ - private final List jwtTokenTypeConfigurations; - - @CustomType.Constructor - private GetIndexUserTokenConfiguration( - @CustomType.Parameter("jsonTokenTypeConfigurations") List jsonTokenTypeConfigurations, - @CustomType.Parameter("jwtTokenTypeConfigurations") List jwtTokenTypeConfigurations) { - this.jsonTokenTypeConfigurations = jsonTokenTypeConfigurations; - this.jwtTokenTypeConfigurations = jwtTokenTypeConfigurations; - } + private List jwtTokenTypeConfigurations; + private GetIndexUserTokenConfiguration() {} /** * @return A block that specifies the information about the JSON token type configuration. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(GetIndexUserTokenConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List jsonTokenTypeConfigurations; private List jwtTokenTypeConfigurations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexUserTokenConfiguration defaults) { Objects.requireNonNull(defaults); this.jsonTokenTypeConfigurations = defaults.jsonTokenTypeConfigurations; this.jwtTokenTypeConfigurations = defaults.jwtTokenTypeConfigurations; } + @CustomType.Setter public Builder jsonTokenTypeConfigurations(List jsonTokenTypeConfigurations) { this.jsonTokenTypeConfigurations = Objects.requireNonNull(jsonTokenTypeConfigurations); return this; @@ -74,14 +64,19 @@ public Builder jsonTokenTypeConfigurations(List jwtTokenTypeConfigurations) { this.jwtTokenTypeConfigurations = Objects.requireNonNull(jwtTokenTypeConfigurations); return this; } public Builder jwtTokenTypeConfigurations(GetIndexUserTokenConfigurationJwtTokenTypeConfiguration... jwtTokenTypeConfigurations) { return jwtTokenTypeConfigurations(List.of(jwtTokenTypeConfigurations)); - } public GetIndexUserTokenConfiguration build() { - return new GetIndexUserTokenConfiguration(jsonTokenTypeConfigurations, jwtTokenTypeConfigurations); + } + public GetIndexUserTokenConfiguration build() { + final var o = new GetIndexUserTokenConfiguration(); + o.jsonTokenTypeConfigurations = jsonTokenTypeConfigurations; + o.jwtTokenTypeConfigurations = jwtTokenTypeConfigurations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserTokenConfigurationJsonTokenTypeConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserTokenConfigurationJsonTokenTypeConfiguration.java index c82d13ea71a..fd1866920e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserTokenConfigurationJsonTokenTypeConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserTokenConfigurationJsonTokenTypeConfiguration.java @@ -13,21 +13,14 @@ public final class GetIndexUserTokenConfigurationJsonTokenTypeConfiguration { * @return The group attribute field. * */ - private final String groupAttributeField; + private String groupAttributeField; /** * @return The user name attribute field. * */ - private final String userNameAttributeField; - - @CustomType.Constructor - private GetIndexUserTokenConfigurationJsonTokenTypeConfiguration( - @CustomType.Parameter("groupAttributeField") String groupAttributeField, - @CustomType.Parameter("userNameAttributeField") String userNameAttributeField) { - this.groupAttributeField = groupAttributeField; - this.userNameAttributeField = userNameAttributeField; - } + private String userNameAttributeField; + private GetIndexUserTokenConfigurationJsonTokenTypeConfiguration() {} /** * @return The group attribute field. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetIndexUserTokenConfigurationJsonTokenTypeConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String groupAttributeField; private String userNameAttributeField; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexUserTokenConfigurationJsonTokenTypeConfiguration defaults) { Objects.requireNonNull(defaults); this.groupAttributeField = defaults.groupAttributeField; this.userNameAttributeField = defaults.userNameAttributeField; } + @CustomType.Setter public Builder groupAttributeField(String groupAttributeField) { this.groupAttributeField = Objects.requireNonNull(groupAttributeField); return this; } + @CustomType.Setter public Builder userNameAttributeField(String userNameAttributeField) { this.userNameAttributeField = Objects.requireNonNull(userNameAttributeField); return this; - } public GetIndexUserTokenConfigurationJsonTokenTypeConfiguration build() { - return new GetIndexUserTokenConfigurationJsonTokenTypeConfiguration(groupAttributeField, userNameAttributeField); + } + public GetIndexUserTokenConfigurationJsonTokenTypeConfiguration build() { + final var o = new GetIndexUserTokenConfigurationJsonTokenTypeConfiguration(); + o.groupAttributeField = groupAttributeField; + o.userNameAttributeField = userNameAttributeField; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserTokenConfigurationJwtTokenTypeConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserTokenConfigurationJwtTokenTypeConfiguration.java index 33aa2019ed7..bcbb15576c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserTokenConfigurationJwtTokenTypeConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetIndexUserTokenConfigurationJwtTokenTypeConfiguration.java @@ -13,56 +13,39 @@ public final class GetIndexUserTokenConfigurationJwtTokenTypeConfiguration { * @return The regular expression that identifies the claim. * */ - private final String claimRegex; + private String claimRegex; /** * @return The group attribute field. * */ - private final String groupAttributeField; + private String groupAttributeField; /** * @return The issuer of the token. * */ - private final String issuer; + private String issuer; /** * @return The location of the key. Valid values are `URL` or `SECRET_MANAGER` * */ - private final String keyLocation; + private String keyLocation; /** * @return The Amazon Resource Name (ARN) of the secret. * */ - private final String secretsManagerArn; + private String secretsManagerArn; /** * @return The signing key URL. * */ - private final String url; + private String url; /** * @return The user name attribute field. * */ - private final String userNameAttributeField; - - @CustomType.Constructor - private GetIndexUserTokenConfigurationJwtTokenTypeConfiguration( - @CustomType.Parameter("claimRegex") String claimRegex, - @CustomType.Parameter("groupAttributeField") String groupAttributeField, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("keyLocation") String keyLocation, - @CustomType.Parameter("secretsManagerArn") String secretsManagerArn, - @CustomType.Parameter("url") String url, - @CustomType.Parameter("userNameAttributeField") String userNameAttributeField) { - this.claimRegex = claimRegex; - this.groupAttributeField = groupAttributeField; - this.issuer = issuer; - this.keyLocation = keyLocation; - this.secretsManagerArn = secretsManagerArn; - this.url = url; - this.userNameAttributeField = userNameAttributeField; - } + private String userNameAttributeField; + private GetIndexUserTokenConfigurationJwtTokenTypeConfiguration() {} /** * @return The regular expression that identifies the claim. * @@ -120,7 +103,7 @@ public static Builder builder() { public static Builder builder(GetIndexUserTokenConfigurationJwtTokenTypeConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String claimRegex; private String groupAttributeField; @@ -129,11 +112,7 @@ public static final class Builder { private String secretsManagerArn; private String url; private String userNameAttributeField; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIndexUserTokenConfigurationJwtTokenTypeConfiguration defaults) { Objects.requireNonNull(defaults); this.claimRegex = defaults.claimRegex; @@ -145,35 +124,51 @@ public Builder(GetIndexUserTokenConfigurationJwtTokenTypeConfiguration defaults) this.userNameAttributeField = defaults.userNameAttributeField; } + @CustomType.Setter public Builder claimRegex(String claimRegex) { this.claimRegex = Objects.requireNonNull(claimRegex); return this; } + @CustomType.Setter public Builder groupAttributeField(String groupAttributeField) { this.groupAttributeField = Objects.requireNonNull(groupAttributeField); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder keyLocation(String keyLocation) { this.keyLocation = Objects.requireNonNull(keyLocation); return this; } + @CustomType.Setter public Builder secretsManagerArn(String secretsManagerArn) { this.secretsManagerArn = Objects.requireNonNull(secretsManagerArn); return this; } + @CustomType.Setter public Builder url(String url) { this.url = Objects.requireNonNull(url); return this; } + @CustomType.Setter public Builder userNameAttributeField(String userNameAttributeField) { this.userNameAttributeField = Objects.requireNonNull(userNameAttributeField); return this; - } public GetIndexUserTokenConfigurationJwtTokenTypeConfiguration build() { - return new GetIndexUserTokenConfigurationJwtTokenTypeConfiguration(claimRegex, groupAttributeField, issuer, keyLocation, secretsManagerArn, url, userNameAttributeField); + } + public GetIndexUserTokenConfigurationJwtTokenTypeConfiguration build() { + final var o = new GetIndexUserTokenConfigurationJwtTokenTypeConfiguration(); + o.claimRegex = claimRegex; + o.groupAttributeField = groupAttributeField; + o.issuer = issuer; + o.keyLocation = keyLocation; + o.secretsManagerArn = secretsManagerArn; + o.url = url; + o.userNameAttributeField = userNameAttributeField; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetQuerySuggestionsBlockListResult.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetQuerySuggestionsBlockListResult.java index 3c0b554415c..e39885a1501 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetQuerySuggestionsBlockListResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetQuerySuggestionsBlockListResult.java @@ -17,104 +17,71 @@ public final class GetQuerySuggestionsBlockListResult { * @return The Amazon Resource Name (ARN) of the block list. * */ - private final String arn; + private String arn; /** * @return The date-time a block list was created. * */ - private final String createdAt; + private String createdAt; /** * @return The description for the block list. * */ - private final String description; + private String description; /** * @return The error message containing details if there are issues processing the block list. * */ - private final String errorMessage; + private String errorMessage; /** * @return The current size of the block list text file in S3. * */ - private final Integer fileSizeBytes; + private Integer fileSizeBytes; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String indexId; + private String id; + private String indexId; /** * @return The current number of valid, non-empty words or phrases in the block list text file. * */ - private final Integer itemCount; + private Integer itemCount; /** * @return The name of the block list. * */ - private final String name; - private final String querySuggestionsBlockListId; + private String name; + private String querySuggestionsBlockListId; /** * @return The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the block list. For more information, see [IAM Roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html). * */ - private final String roleArn; + private String roleArn; /** * @return The S3 location of the block list input data. Detailed below. * */ - private final List sourceS3Paths; + private List sourceS3Paths; /** * @return The current status of the block list. When the value is `ACTIVE`, the block list is ready for use. * */ - private final String status; + private String status; /** * @return Metadata that helps organize the block list you create. * */ - private final Map tags; + private Map tags; /** * @return The date and time that the block list was last updated. * */ - private final String updatedAt; - - @CustomType.Constructor - private GetQuerySuggestionsBlockListResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createdAt") String createdAt, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("errorMessage") String errorMessage, - @CustomType.Parameter("fileSizeBytes") Integer fileSizeBytes, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("indexId") String indexId, - @CustomType.Parameter("itemCount") Integer itemCount, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("querySuggestionsBlockListId") String querySuggestionsBlockListId, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("sourceS3Paths") List sourceS3Paths, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("updatedAt") String updatedAt) { - this.arn = arn; - this.createdAt = createdAt; - this.description = description; - this.errorMessage = errorMessage; - this.fileSizeBytes = fileSizeBytes; - this.id = id; - this.indexId = indexId; - this.itemCount = itemCount; - this.name = name; - this.querySuggestionsBlockListId = querySuggestionsBlockListId; - this.roleArn = roleArn; - this.sourceS3Paths = sourceS3Paths; - this.status = status; - this.tags = tags; - this.updatedAt = updatedAt; - } + private String updatedAt; + private GetQuerySuggestionsBlockListResult() {} /** * @return The Amazon Resource Name (ARN) of the block list. * @@ -220,7 +187,7 @@ public static Builder builder() { public static Builder builder(GetQuerySuggestionsBlockListResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String createdAt; @@ -237,11 +204,7 @@ public static final class Builder { private String status; private Map tags; private String updatedAt; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetQuerySuggestionsBlockListResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -261,50 +224,62 @@ public Builder(GetQuerySuggestionsBlockListResult defaults) { this.updatedAt = defaults.updatedAt; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createdAt(String createdAt) { this.createdAt = Objects.requireNonNull(createdAt); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder errorMessage(String errorMessage) { this.errorMessage = Objects.requireNonNull(errorMessage); return this; } + @CustomType.Setter public Builder fileSizeBytes(Integer fileSizeBytes) { this.fileSizeBytes = Objects.requireNonNull(fileSizeBytes); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder indexId(String indexId) { this.indexId = Objects.requireNonNull(indexId); return this; } + @CustomType.Setter public Builder itemCount(Integer itemCount) { this.itemCount = Objects.requireNonNull(itemCount); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder querySuggestionsBlockListId(String querySuggestionsBlockListId) { this.querySuggestionsBlockListId = Objects.requireNonNull(querySuggestionsBlockListId); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder sourceS3Paths(List sourceS3Paths) { this.sourceS3Paths = Objects.requireNonNull(sourceS3Paths); return this; @@ -312,19 +287,39 @@ public Builder sourceS3Paths(List sour public Builder sourceS3Paths(GetQuerySuggestionsBlockListSourceS3Path... sourceS3Paths) { return sourceS3Paths(List.of(sourceS3Paths)); } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder updatedAt(String updatedAt) { this.updatedAt = Objects.requireNonNull(updatedAt); return this; - } public GetQuerySuggestionsBlockListResult build() { - return new GetQuerySuggestionsBlockListResult(arn, createdAt, description, errorMessage, fileSizeBytes, id, indexId, itemCount, name, querySuggestionsBlockListId, roleArn, sourceS3Paths, status, tags, updatedAt); + } + public GetQuerySuggestionsBlockListResult build() { + final var o = new GetQuerySuggestionsBlockListResult(); + o.arn = arn; + o.createdAt = createdAt; + o.description = description; + o.errorMessage = errorMessage; + o.fileSizeBytes = fileSizeBytes; + o.id = id; + o.indexId = indexId; + o.itemCount = itemCount; + o.name = name; + o.querySuggestionsBlockListId = querySuggestionsBlockListId; + o.roleArn = roleArn; + o.sourceS3Paths = sourceS3Paths; + o.status = status; + o.tags = tags; + o.updatedAt = updatedAt; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetQuerySuggestionsBlockListSourceS3Path.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetQuerySuggestionsBlockListSourceS3Path.java index 2b13dd2ed97..6ae398fb8ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetQuerySuggestionsBlockListSourceS3Path.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetQuerySuggestionsBlockListSourceS3Path.java @@ -13,21 +13,14 @@ public final class GetQuerySuggestionsBlockListSourceS3Path { * @return The name of the S3 bucket that contains the file. * */ - private final String bucket; + private String bucket; /** * @return The name of the file. * */ - private final String key; - - @CustomType.Constructor - private GetQuerySuggestionsBlockListSourceS3Path( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("key") String key) { - this.bucket = bucket; - this.key = key; - } + private String key; + private GetQuerySuggestionsBlockListSourceS3Path() {} /** * @return The name of the S3 bucket that contains the file. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetQuerySuggestionsBlockListSourceS3Path defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetQuerySuggestionsBlockListSourceS3Path defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.key = defaults.key; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; - } public GetQuerySuggestionsBlockListSourceS3Path build() { - return new GetQuerySuggestionsBlockListSourceS3Path(bucket, key); + } + public GetQuerySuggestionsBlockListSourceS3Path build() { + final var o = new GetQuerySuggestionsBlockListSourceS3Path(); + o.bucket = bucket; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetThesaurusResult.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetThesaurusResult.java index 93bd729795c..ce1a7954e6f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetThesaurusResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetThesaurusResult.java @@ -17,111 +17,76 @@ public final class GetThesaurusResult { * @return The Amazon Resource Name (ARN) of the Thesaurus. * */ - private final String arn; + private String arn; /** * @return The Unix datetime that the Thesaurus was created. * */ - private final String createdAt; + private String createdAt; /** * @return The description of the Thesaurus. * */ - private final String description; + private String description; /** * @return When the `status` field value is `FAILED`, this contains a message that explains why. * */ - private final String errorMessage; + private String errorMessage; /** * @return The size of the Thesaurus file in bytes. * */ - private final Integer fileSizeBytes; + private Integer fileSizeBytes; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String indexId; + private String id; + private String indexId; /** * @return Specifies the name of the Thesaurus. * */ - private final String name; + private String name; /** * @return The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see [IAM Roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html). * */ - private final String roleArn; + private String roleArn; /** * @return The S3 location of the Thesaurus input data. Detailed below. * */ - private final List sourceS3Paths; + private List sourceS3Paths; /** * @return The status of the Thesaurus. It is ready to use when the status is `ACTIVE`. * */ - private final String status; + private String status; /** * @return The number of synonym rules in the Thesaurus file. * */ - private final Integer synonymRuleCount; + private Integer synonymRuleCount; /** * @return Metadata that helps organize the Thesaurus you create. * */ - private final Map tags; + private Map tags; /** * @return The number of unique terms in the Thesaurus file. For example, the synonyms `a,b,c` and `a=>d`, the term count would be 4. * */ - private final Integer termCount; - private final String thesaurusId; + private Integer termCount; + private String thesaurusId; /** * @return The date and time that the Thesaurus was last updated. * */ - private final String updatedAt; - - @CustomType.Constructor - private GetThesaurusResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createdAt") String createdAt, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("errorMessage") String errorMessage, - @CustomType.Parameter("fileSizeBytes") Integer fileSizeBytes, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("indexId") String indexId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("sourceS3Paths") List sourceS3Paths, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("synonymRuleCount") Integer synonymRuleCount, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("termCount") Integer termCount, - @CustomType.Parameter("thesaurusId") String thesaurusId, - @CustomType.Parameter("updatedAt") String updatedAt) { - this.arn = arn; - this.createdAt = createdAt; - this.description = description; - this.errorMessage = errorMessage; - this.fileSizeBytes = fileSizeBytes; - this.id = id; - this.indexId = indexId; - this.name = name; - this.roleArn = roleArn; - this.sourceS3Paths = sourceS3Paths; - this.status = status; - this.synonymRuleCount = synonymRuleCount; - this.tags = tags; - this.termCount = termCount; - this.thesaurusId = thesaurusId; - this.updatedAt = updatedAt; - } + private String updatedAt; + private GetThesaurusResult() {} /** * @return The Amazon Resource Name (ARN) of the Thesaurus. * @@ -234,7 +199,7 @@ public static Builder builder() { public static Builder builder(GetThesaurusResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String createdAt; @@ -252,11 +217,7 @@ public static final class Builder { private Integer termCount; private String thesaurusId; private String updatedAt; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetThesaurusResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -277,42 +238,52 @@ public Builder(GetThesaurusResult defaults) { this.updatedAt = defaults.updatedAt; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createdAt(String createdAt) { this.createdAt = Objects.requireNonNull(createdAt); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder errorMessage(String errorMessage) { this.errorMessage = Objects.requireNonNull(errorMessage); return this; } + @CustomType.Setter public Builder fileSizeBytes(Integer fileSizeBytes) { this.fileSizeBytes = Objects.requireNonNull(fileSizeBytes); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder indexId(String indexId) { this.indexId = Objects.requireNonNull(indexId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder sourceS3Paths(List sourceS3Paths) { this.sourceS3Paths = Objects.requireNonNull(sourceS3Paths); return this; @@ -320,31 +291,55 @@ public Builder sourceS3Paths(List sourceS3Paths) { public Builder sourceS3Paths(GetThesaurusSourceS3Path... sourceS3Paths) { return sourceS3Paths(List.of(sourceS3Paths)); } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder synonymRuleCount(Integer synonymRuleCount) { this.synonymRuleCount = Objects.requireNonNull(synonymRuleCount); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder termCount(Integer termCount) { this.termCount = Objects.requireNonNull(termCount); return this; } + @CustomType.Setter public Builder thesaurusId(String thesaurusId) { this.thesaurusId = Objects.requireNonNull(thesaurusId); return this; } + @CustomType.Setter public Builder updatedAt(String updatedAt) { this.updatedAt = Objects.requireNonNull(updatedAt); return this; - } public GetThesaurusResult build() { - return new GetThesaurusResult(arn, createdAt, description, errorMessage, fileSizeBytes, id, indexId, name, roleArn, sourceS3Paths, status, synonymRuleCount, tags, termCount, thesaurusId, updatedAt); + } + public GetThesaurusResult build() { + final var o = new GetThesaurusResult(); + o.arn = arn; + o.createdAt = createdAt; + o.description = description; + o.errorMessage = errorMessage; + o.fileSizeBytes = fileSizeBytes; + o.id = id; + o.indexId = indexId; + o.name = name; + o.roleArn = roleArn; + o.sourceS3Paths = sourceS3Paths; + o.status = status; + o.synonymRuleCount = synonymRuleCount; + o.tags = tags; + o.termCount = termCount; + o.thesaurusId = thesaurusId; + o.updatedAt = updatedAt; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetThesaurusSourceS3Path.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetThesaurusSourceS3Path.java index be8b5dd66e2..8fba64b6a12 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetThesaurusSourceS3Path.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/GetThesaurusSourceS3Path.java @@ -13,21 +13,14 @@ public final class GetThesaurusSourceS3Path { * @return The name of the S3 bucket that contains the file. * */ - private final String bucket; + private String bucket; /** * @return The name of the file. * */ - private final String key; - - @CustomType.Constructor - private GetThesaurusSourceS3Path( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("key") String key) { - this.bucket = bucket; - this.key = key; - } + private String key; + private GetThesaurusSourceS3Path() {} /** * @return The name of the S3 bucket that contains the file. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetThesaurusSourceS3Path defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetThesaurusSourceS3Path defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.key = defaults.key; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; - } public GetThesaurusSourceS3Path build() { - return new GetThesaurusSourceS3Path(bucket, key); + } + public GetThesaurusSourceS3Path build() { + final var o = new GetThesaurusSourceS3Path(); + o.bucket = bucket; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexCapacityUnits.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexCapacityUnits.java index 75be09195bd..2dcc971dce3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexCapacityUnits.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexCapacityUnits.java @@ -15,21 +15,14 @@ public final class IndexCapacityUnits { * @return The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to [QueryCapacityUnits](https://docs.aws.amazon.com/kendra/latest/dg/API_CapacityUnitsConfiguration.html#Kendra-Type-CapacityUnitsConfiguration-QueryCapacityUnits). * */ - private final @Nullable Integer queryCapacityUnits; + private @Nullable Integer queryCapacityUnits; /** * @return The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. Minimum value of 0. * */ - private final @Nullable Integer storageCapacityUnits; - - @CustomType.Constructor - private IndexCapacityUnits( - @CustomType.Parameter("queryCapacityUnits") @Nullable Integer queryCapacityUnits, - @CustomType.Parameter("storageCapacityUnits") @Nullable Integer storageCapacityUnits) { - this.queryCapacityUnits = queryCapacityUnits; - this.storageCapacityUnits = storageCapacityUnits; - } + private @Nullable Integer storageCapacityUnits; + private IndexCapacityUnits() {} /** * @return The amount of extra query capacity for an index and GetQuerySuggestions capacity. For more information, refer to [QueryCapacityUnits](https://docs.aws.amazon.com/kendra/latest/dg/API_CapacityUnitsConfiguration.html#Kendra-Type-CapacityUnitsConfiguration-QueryCapacityUnits). * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(IndexCapacityUnits defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer queryCapacityUnits; private @Nullable Integer storageCapacityUnits; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexCapacityUnits defaults) { Objects.requireNonNull(defaults); this.queryCapacityUnits = defaults.queryCapacityUnits; this.storageCapacityUnits = defaults.storageCapacityUnits; } + @CustomType.Setter public Builder queryCapacityUnits(@Nullable Integer queryCapacityUnits) { this.queryCapacityUnits = queryCapacityUnits; return this; } + @CustomType.Setter public Builder storageCapacityUnits(@Nullable Integer storageCapacityUnits) { this.storageCapacityUnits = storageCapacityUnits; return this; - } public IndexCapacityUnits build() { - return new IndexCapacityUnits(queryCapacityUnits, storageCapacityUnits); + } + public IndexCapacityUnits build() { + final var o = new IndexCapacityUnits(); + o.queryCapacityUnits = queryCapacityUnits; + o.storageCapacityUnits = storageCapacityUnits; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexDocumentMetadataConfigurationUpdate.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexDocumentMetadataConfigurationUpdate.java index 6078230c67f..a418029f574 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexDocumentMetadataConfigurationUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexDocumentMetadataConfigurationUpdate.java @@ -18,35 +18,24 @@ public final class IndexDocumentMetadataConfigurationUpdate { * @return Specifies the name of the Index. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return A block that provides manual tuning parameters to determine how the field affects the search results. Documented below. * */ - private final @Nullable List relevances; + private @Nullable List relevances; /** * @return A block that provides information about how the field is used during a search. Documented below. * */ - private final @Nullable List searches; + private @Nullable List searches; /** * @return The data type of the index field. Valid values are `STRING_VALUE`, `STRING_LIST_VALUE`, `LONG_VALUE`, `DATE_VALUE`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private IndexDocumentMetadataConfigurationUpdate( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("relevances") @Nullable List relevances, - @CustomType.Parameter("searches") @Nullable List searches, - @CustomType.Parameter("type") @Nullable String type) { - this.name = name; - this.relevances = relevances; - this.searches = searches; - this.type = type; - } + private @Nullable String type; + private IndexDocumentMetadataConfigurationUpdate() {} /** * @return Specifies the name of the Index. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(IndexDocumentMetadataConfigurationUpdate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable List relevances; private @Nullable List searches; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexDocumentMetadataConfigurationUpdate defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -102,10 +87,12 @@ public Builder(IndexDocumentMetadataConfigurationUpdate defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder relevances(@Nullable List relevances) { this.relevances = relevances; return this; @@ -113,6 +100,7 @@ public Builder relevances(@Nullable List searches) { this.searches = searches; return this; @@ -120,11 +108,18 @@ public Builder searches(@Nullable List valuesImportanceMap; - - @CustomType.Constructor - private IndexDocumentMetadataConfigurationUpdateRelevance( - @CustomType.Parameter("duration") @Nullable String duration, - @CustomType.Parameter("freshness") @Nullable Boolean freshness, - @CustomType.Parameter("importance") @Nullable Integer importance, - @CustomType.Parameter("rankOrder") @Nullable String rankOrder, - @CustomType.Parameter("valuesImportanceMap") @Nullable Map valuesImportanceMap) { - this.duration = duration; - this.freshness = freshness; - this.importance = importance; - this.rankOrder = rankOrder; - this.valuesImportanceMap = valuesImportanceMap; - } + private @Nullable Map valuesImportanceMap; + private IndexDocumentMetadataConfigurationUpdateRelevance() {} /** * @return Specifies the time period that the boost applies to. For more information, refer to [Duration](https://docs.aws.amazon.com/kendra/latest/dg/API_Relevance.html#Kendra-Type-Relevance-Duration). * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(IndexDocumentMetadataConfigurationUpdateRelevance defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String duration; private @Nullable Boolean freshness; private @Nullable Integer importance; private @Nullable String rankOrder; private @Nullable Map valuesImportanceMap; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexDocumentMetadataConfigurationUpdateRelevance defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; @@ -118,27 +101,39 @@ public Builder(IndexDocumentMetadataConfigurationUpdateRelevance defaults) { this.valuesImportanceMap = defaults.valuesImportanceMap; } + @CustomType.Setter public Builder duration(@Nullable String duration) { this.duration = duration; return this; } + @CustomType.Setter public Builder freshness(@Nullable Boolean freshness) { this.freshness = freshness; return this; } + @CustomType.Setter public Builder importance(@Nullable Integer importance) { this.importance = importance; return this; } + @CustomType.Setter public Builder rankOrder(@Nullable String rankOrder) { this.rankOrder = rankOrder; return this; } + @CustomType.Setter public Builder valuesImportanceMap(@Nullable Map valuesImportanceMap) { this.valuesImportanceMap = valuesImportanceMap; return this; - } public IndexDocumentMetadataConfigurationUpdateRelevance build() { - return new IndexDocumentMetadataConfigurationUpdateRelevance(duration, freshness, importance, rankOrder, valuesImportanceMap); + } + public IndexDocumentMetadataConfigurationUpdateRelevance build() { + final var o = new IndexDocumentMetadataConfigurationUpdateRelevance(); + o.duration = duration; + o.freshness = freshness; + o.importance = importance; + o.rankOrder = rankOrder; + o.valuesImportanceMap = valuesImportanceMap; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexDocumentMetadataConfigurationUpdateSearch.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexDocumentMetadataConfigurationUpdateSearch.java index 6b79f15ff8e..4268ae6e7b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexDocumentMetadataConfigurationUpdateSearch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexDocumentMetadataConfigurationUpdateSearch.java @@ -15,35 +15,24 @@ public final class IndexDocumentMetadataConfigurationUpdateSearch { * @return Determines whether the field is returned in the query response. The default is `true`. * */ - private final @Nullable Boolean displayable; + private @Nullable Boolean displayable; /** * @return Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is `false`. * */ - private final @Nullable Boolean facetable; + private @Nullable Boolean facetable; /** * @return Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is `true` for `string` fields and `false` for `number` and `date` fields. * */ - private final @Nullable Boolean searchable; + private @Nullable Boolean searchable; /** * @return Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is `false`. * */ - private final @Nullable Boolean sortable; - - @CustomType.Constructor - private IndexDocumentMetadataConfigurationUpdateSearch( - @CustomType.Parameter("displayable") @Nullable Boolean displayable, - @CustomType.Parameter("facetable") @Nullable Boolean facetable, - @CustomType.Parameter("searchable") @Nullable Boolean searchable, - @CustomType.Parameter("sortable") @Nullable Boolean sortable) { - this.displayable = displayable; - this.facetable = facetable; - this.searchable = searchable; - this.sortable = sortable; - } + private @Nullable Boolean sortable; + private IndexDocumentMetadataConfigurationUpdateSearch() {} /** * @return Determines whether the field is returned in the query response. The default is `true`. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(IndexDocumentMetadataConfigurationUpdateSearch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean displayable; private @Nullable Boolean facetable; private @Nullable Boolean searchable; private @Nullable Boolean sortable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexDocumentMetadataConfigurationUpdateSearch defaults) { Objects.requireNonNull(defaults); this.displayable = defaults.displayable; @@ -99,23 +84,33 @@ public Builder(IndexDocumentMetadataConfigurationUpdateSearch defaults) { this.sortable = defaults.sortable; } + @CustomType.Setter public Builder displayable(@Nullable Boolean displayable) { this.displayable = displayable; return this; } + @CustomType.Setter public Builder facetable(@Nullable Boolean facetable) { this.facetable = facetable; return this; } + @CustomType.Setter public Builder searchable(@Nullable Boolean searchable) { this.searchable = searchable; return this; } + @CustomType.Setter public Builder sortable(@Nullable Boolean sortable) { this.sortable = sortable; return this; - } public IndexDocumentMetadataConfigurationUpdateSearch build() { - return new IndexDocumentMetadataConfigurationUpdateSearch(displayable, facetable, searchable, sortable); + } + public IndexDocumentMetadataConfigurationUpdateSearch build() { + final var o = new IndexDocumentMetadataConfigurationUpdateSearch(); + o.displayable = displayable; + o.facetable = facetable; + o.searchable = searchable; + o.sortable = sortable; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexIndexStatistic.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexIndexStatistic.java index 21bb8f8659b..f45e9baf79d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexIndexStatistic.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexIndexStatistic.java @@ -16,21 +16,14 @@ public final class IndexIndexStatistic { * @return A block that specifies the number of question and answer topics in the index. Documented below. * */ - private final @Nullable List faqStatistics; + private @Nullable List faqStatistics; /** * @return A block that specifies the number of text documents indexed. * */ - private final @Nullable List textDocumentStatistics; - - @CustomType.Constructor - private IndexIndexStatistic( - @CustomType.Parameter("faqStatistics") @Nullable List faqStatistics, - @CustomType.Parameter("textDocumentStatistics") @Nullable List textDocumentStatistics) { - this.faqStatistics = faqStatistics; - this.textDocumentStatistics = textDocumentStatistics; - } + private @Nullable List textDocumentStatistics; + private IndexIndexStatistic() {} /** * @return A block that specifies the number of question and answer topics in the index. Documented below. * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(IndexIndexStatistic defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List faqStatistics; private @Nullable List textDocumentStatistics; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexIndexStatistic defaults) { Objects.requireNonNull(defaults); this.faqStatistics = defaults.faqStatistics; this.textDocumentStatistics = defaults.textDocumentStatistics; } + @CustomType.Setter public Builder faqStatistics(@Nullable List faqStatistics) { this.faqStatistics = faqStatistics; return this; @@ -75,14 +65,19 @@ public Builder faqStatistics(@Nullable List faq public Builder faqStatistics(IndexIndexStatisticFaqStatistic... faqStatistics) { return faqStatistics(List.of(faqStatistics)); } + @CustomType.Setter public Builder textDocumentStatistics(@Nullable List textDocumentStatistics) { this.textDocumentStatistics = textDocumentStatistics; return this; } public Builder textDocumentStatistics(IndexIndexStatisticTextDocumentStatistic... textDocumentStatistics) { return textDocumentStatistics(List.of(textDocumentStatistics)); - } public IndexIndexStatistic build() { - return new IndexIndexStatistic(faqStatistics, textDocumentStatistics); + } + public IndexIndexStatistic build() { + final var o = new IndexIndexStatistic(); + o.faqStatistics = faqStatistics; + o.textDocumentStatistics = textDocumentStatistics; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexIndexStatisticFaqStatistic.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexIndexStatisticFaqStatistic.java index 5b36355bf51..cc4a9384ff5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexIndexStatisticFaqStatistic.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexIndexStatisticFaqStatistic.java @@ -15,13 +15,9 @@ public final class IndexIndexStatisticFaqStatistic { * @return The total number of FAQ questions and answers contained in the index. * */ - private final @Nullable Integer indexedQuestionAnswersCount; - - @CustomType.Constructor - private IndexIndexStatisticFaqStatistic(@CustomType.Parameter("indexedQuestionAnswersCount") @Nullable Integer indexedQuestionAnswersCount) { - this.indexedQuestionAnswersCount = indexedQuestionAnswersCount; - } + private @Nullable Integer indexedQuestionAnswersCount; + private IndexIndexStatisticFaqStatistic() {} /** * @return The total number of FAQ questions and answers contained in the index. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(IndexIndexStatisticFaqStatistic defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer indexedQuestionAnswersCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexIndexStatisticFaqStatistic defaults) { Objects.requireNonNull(defaults); this.indexedQuestionAnswersCount = defaults.indexedQuestionAnswersCount; } + @CustomType.Setter public Builder indexedQuestionAnswersCount(@Nullable Integer indexedQuestionAnswersCount) { this.indexedQuestionAnswersCount = indexedQuestionAnswersCount; return this; - } public IndexIndexStatisticFaqStatistic build() { - return new IndexIndexStatisticFaqStatistic(indexedQuestionAnswersCount); + } + public IndexIndexStatisticFaqStatistic build() { + final var o = new IndexIndexStatisticFaqStatistic(); + o.indexedQuestionAnswersCount = indexedQuestionAnswersCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexIndexStatisticTextDocumentStatistic.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexIndexStatisticTextDocumentStatistic.java index bc43f7cc1e9..e2daa2dd282 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexIndexStatisticTextDocumentStatistic.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexIndexStatisticTextDocumentStatistic.java @@ -15,21 +15,14 @@ public final class IndexIndexStatisticTextDocumentStatistic { * @return The total size, in bytes, of the indexed documents. * */ - private final @Nullable Integer indexedTextBytes; + private @Nullable Integer indexedTextBytes; /** * @return The number of text documents indexed. * */ - private final @Nullable Integer indexedTextDocumentsCount; - - @CustomType.Constructor - private IndexIndexStatisticTextDocumentStatistic( - @CustomType.Parameter("indexedTextBytes") @Nullable Integer indexedTextBytes, - @CustomType.Parameter("indexedTextDocumentsCount") @Nullable Integer indexedTextDocumentsCount) { - this.indexedTextBytes = indexedTextBytes; - this.indexedTextDocumentsCount = indexedTextDocumentsCount; - } + private @Nullable Integer indexedTextDocumentsCount; + private IndexIndexStatisticTextDocumentStatistic() {} /** * @return The total size, in bytes, of the indexed documents. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(IndexIndexStatisticTextDocumentStatistic defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer indexedTextBytes; private @Nullable Integer indexedTextDocumentsCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexIndexStatisticTextDocumentStatistic defaults) { Objects.requireNonNull(defaults); this.indexedTextBytes = defaults.indexedTextBytes; this.indexedTextDocumentsCount = defaults.indexedTextDocumentsCount; } + @CustomType.Setter public Builder indexedTextBytes(@Nullable Integer indexedTextBytes) { this.indexedTextBytes = indexedTextBytes; return this; } + @CustomType.Setter public Builder indexedTextDocumentsCount(@Nullable Integer indexedTextDocumentsCount) { this.indexedTextDocumentsCount = indexedTextDocumentsCount; return this; - } public IndexIndexStatisticTextDocumentStatistic build() { - return new IndexIndexStatisticTextDocumentStatistic(indexedTextBytes, indexedTextDocumentsCount); + } + public IndexIndexStatisticTextDocumentStatistic build() { + final var o = new IndexIndexStatisticTextDocumentStatistic(); + o.indexedTextBytes = indexedTextBytes; + o.indexedTextDocumentsCount = indexedTextDocumentsCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexServerSideEncryptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexServerSideEncryptionConfiguration.java index e0443a2dfad..9594d40929f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexServerSideEncryptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexServerSideEncryptionConfiguration.java @@ -15,13 +15,9 @@ public final class IndexServerSideEncryptionConfiguration { * @return The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs. * */ - private final @Nullable String kmsKeyId; - - @CustomType.Constructor - private IndexServerSideEncryptionConfiguration(@CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - } + private @Nullable String kmsKeyId; + private IndexServerSideEncryptionConfiguration() {} /** * @return The identifier of the AWS KMScustomer master key (CMK). Amazon Kendra doesn't support asymmetric CMKs. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(IndexServerSideEncryptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsKeyId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexServerSideEncryptionConfiguration defaults) { Objects.requireNonNull(defaults); this.kmsKeyId = defaults.kmsKeyId; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; - } public IndexServerSideEncryptionConfiguration build() { - return new IndexServerSideEncryptionConfiguration(kmsKeyId); + } + public IndexServerSideEncryptionConfiguration build() { + final var o = new IndexServerSideEncryptionConfiguration(); + o.kmsKeyId = kmsKeyId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserGroupResolutionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserGroupResolutionConfiguration.java index 164d5be320a..73e6b0c452a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserGroupResolutionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserGroupResolutionConfiguration.java @@ -13,13 +13,9 @@ public final class IndexUserGroupResolutionConfiguration { * @return The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are `AWS_SSO` or `NONE`. * */ - private final String userGroupResolutionMode; - - @CustomType.Constructor - private IndexUserGroupResolutionConfiguration(@CustomType.Parameter("userGroupResolutionMode") String userGroupResolutionMode) { - this.userGroupResolutionMode = userGroupResolutionMode; - } + private String userGroupResolutionMode; + private IndexUserGroupResolutionConfiguration() {} /** * @return The identity store provider (mode) you want to use to fetch access levels of groups and users. AWS Single Sign-On is currently the only available mode. Your users and groups must exist in an AWS SSO identity source in order to use this mode. Valid Values are `AWS_SSO` or `NONE`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(IndexUserGroupResolutionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String userGroupResolutionMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexUserGroupResolutionConfiguration defaults) { Objects.requireNonNull(defaults); this.userGroupResolutionMode = defaults.userGroupResolutionMode; } + @CustomType.Setter public Builder userGroupResolutionMode(String userGroupResolutionMode) { this.userGroupResolutionMode = Objects.requireNonNull(userGroupResolutionMode); return this; - } public IndexUserGroupResolutionConfiguration build() { - return new IndexUserGroupResolutionConfiguration(userGroupResolutionMode); + } + public IndexUserGroupResolutionConfiguration build() { + final var o = new IndexUserGroupResolutionConfiguration(); + o.userGroupResolutionMode = userGroupResolutionMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserTokenConfigurations.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserTokenConfigurations.java index c1b13c7a3cb..e74ab168e76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserTokenConfigurations.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserTokenConfigurations.java @@ -16,21 +16,14 @@ public final class IndexUserTokenConfigurations { * @return A block that specifies the information about the JSON token type configuration. * */ - private final @Nullable IndexUserTokenConfigurationsJsonTokenTypeConfiguration jsonTokenTypeConfiguration; + private @Nullable IndexUserTokenConfigurationsJsonTokenTypeConfiguration jsonTokenTypeConfiguration; /** * @return A block that specifies the information about the JWT token type configuration. * */ - private final @Nullable IndexUserTokenConfigurationsJwtTokenTypeConfiguration jwtTokenTypeConfiguration; - - @CustomType.Constructor - private IndexUserTokenConfigurations( - @CustomType.Parameter("jsonTokenTypeConfiguration") @Nullable IndexUserTokenConfigurationsJsonTokenTypeConfiguration jsonTokenTypeConfiguration, - @CustomType.Parameter("jwtTokenTypeConfiguration") @Nullable IndexUserTokenConfigurationsJwtTokenTypeConfiguration jwtTokenTypeConfiguration) { - this.jsonTokenTypeConfiguration = jsonTokenTypeConfiguration; - this.jwtTokenTypeConfiguration = jwtTokenTypeConfiguration; - } + private @Nullable IndexUserTokenConfigurationsJwtTokenTypeConfiguration jwtTokenTypeConfiguration; + private IndexUserTokenConfigurations() {} /** * @return A block that specifies the information about the JSON token type configuration. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(IndexUserTokenConfigurations defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable IndexUserTokenConfigurationsJsonTokenTypeConfiguration jsonTokenTypeConfiguration; private @Nullable IndexUserTokenConfigurationsJwtTokenTypeConfiguration jwtTokenTypeConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexUserTokenConfigurations defaults) { Objects.requireNonNull(defaults); this.jsonTokenTypeConfiguration = defaults.jsonTokenTypeConfiguration; this.jwtTokenTypeConfiguration = defaults.jwtTokenTypeConfiguration; } + @CustomType.Setter public Builder jsonTokenTypeConfiguration(@Nullable IndexUserTokenConfigurationsJsonTokenTypeConfiguration jsonTokenTypeConfiguration) { this.jsonTokenTypeConfiguration = jsonTokenTypeConfiguration; return this; } + @CustomType.Setter public Builder jwtTokenTypeConfiguration(@Nullable IndexUserTokenConfigurationsJwtTokenTypeConfiguration jwtTokenTypeConfiguration) { this.jwtTokenTypeConfiguration = jwtTokenTypeConfiguration; return this; - } public IndexUserTokenConfigurations build() { - return new IndexUserTokenConfigurations(jsonTokenTypeConfiguration, jwtTokenTypeConfiguration); + } + public IndexUserTokenConfigurations build() { + final var o = new IndexUserTokenConfigurations(); + o.jsonTokenTypeConfiguration = jsonTokenTypeConfiguration; + o.jwtTokenTypeConfiguration = jwtTokenTypeConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserTokenConfigurationsJsonTokenTypeConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserTokenConfigurationsJsonTokenTypeConfiguration.java index 42b4c65be94..4d6d81eaa44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserTokenConfigurationsJsonTokenTypeConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserTokenConfigurationsJsonTokenTypeConfiguration.java @@ -13,21 +13,14 @@ public final class IndexUserTokenConfigurationsJsonTokenTypeConfiguration { * @return The group attribute field. Minimum length of 1. Maximum length of 2048. * */ - private final String groupAttributeField; + private String groupAttributeField; /** * @return The user name attribute field. Minimum length of 1. Maximum length of 2048. * */ - private final String userNameAttributeField; - - @CustomType.Constructor - private IndexUserTokenConfigurationsJsonTokenTypeConfiguration( - @CustomType.Parameter("groupAttributeField") String groupAttributeField, - @CustomType.Parameter("userNameAttributeField") String userNameAttributeField) { - this.groupAttributeField = groupAttributeField; - this.userNameAttributeField = userNameAttributeField; - } + private String userNameAttributeField; + private IndexUserTokenConfigurationsJsonTokenTypeConfiguration() {} /** * @return The group attribute field. Minimum length of 1. Maximum length of 2048. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(IndexUserTokenConfigurationsJsonTokenTypeConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String groupAttributeField; private String userNameAttributeField; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexUserTokenConfigurationsJsonTokenTypeConfiguration defaults) { Objects.requireNonNull(defaults); this.groupAttributeField = defaults.groupAttributeField; this.userNameAttributeField = defaults.userNameAttributeField; } + @CustomType.Setter public Builder groupAttributeField(String groupAttributeField) { this.groupAttributeField = Objects.requireNonNull(groupAttributeField); return this; } + @CustomType.Setter public Builder userNameAttributeField(String userNameAttributeField) { this.userNameAttributeField = Objects.requireNonNull(userNameAttributeField); return this; - } public IndexUserTokenConfigurationsJsonTokenTypeConfiguration build() { - return new IndexUserTokenConfigurationsJsonTokenTypeConfiguration(groupAttributeField, userNameAttributeField); + } + public IndexUserTokenConfigurationsJsonTokenTypeConfiguration build() { + final var o = new IndexUserTokenConfigurationsJsonTokenTypeConfiguration(); + o.groupAttributeField = groupAttributeField; + o.userNameAttributeField = userNameAttributeField; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserTokenConfigurationsJwtTokenTypeConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserTokenConfigurationsJwtTokenTypeConfiguration.java index ee472f80ca5..d0ec59028a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserTokenConfigurationsJwtTokenTypeConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/IndexUserTokenConfigurationsJwtTokenTypeConfiguration.java @@ -15,56 +15,39 @@ public final class IndexUserTokenConfigurationsJwtTokenTypeConfiguration { * @return The regular expression that identifies the claim. Minimum length of 1. Maximum length of 100. * */ - private final @Nullable String claimRegex; + private @Nullable String claimRegex; /** * @return The group attribute field. Minimum length of 1. Maximum length of 100. * */ - private final @Nullable String groupAttributeField; + private @Nullable String groupAttributeField; /** * @return The issuer of the token. Minimum length of 1. Maximum length of 65. * */ - private final @Nullable String issuer; + private @Nullable String issuer; /** * @return The location of the key. Valid values are `URL` or `SECRET_MANAGER` * */ - private final String keyLocation; + private String keyLocation; /** * @return The Amazon Resource Name (ARN) of the secret. * */ - private final @Nullable String secretsManagerArn; + private @Nullable String secretsManagerArn; /** * @return The signing key URL. Valid pattern is `^(https?|ftp|file):\/\/([^\s]*)` * */ - private final @Nullable String url; + private @Nullable String url; /** * @return The user name attribute field. Minimum length of 1. Maximum length of 100. * */ - private final @Nullable String userNameAttributeField; - - @CustomType.Constructor - private IndexUserTokenConfigurationsJwtTokenTypeConfiguration( - @CustomType.Parameter("claimRegex") @Nullable String claimRegex, - @CustomType.Parameter("groupAttributeField") @Nullable String groupAttributeField, - @CustomType.Parameter("issuer") @Nullable String issuer, - @CustomType.Parameter("keyLocation") String keyLocation, - @CustomType.Parameter("secretsManagerArn") @Nullable String secretsManagerArn, - @CustomType.Parameter("url") @Nullable String url, - @CustomType.Parameter("userNameAttributeField") @Nullable String userNameAttributeField) { - this.claimRegex = claimRegex; - this.groupAttributeField = groupAttributeField; - this.issuer = issuer; - this.keyLocation = keyLocation; - this.secretsManagerArn = secretsManagerArn; - this.url = url; - this.userNameAttributeField = userNameAttributeField; - } + private @Nullable String userNameAttributeField; + private IndexUserTokenConfigurationsJwtTokenTypeConfiguration() {} /** * @return The regular expression that identifies the claim. Minimum length of 1. Maximum length of 100. * @@ -122,7 +105,7 @@ public static Builder builder() { public static Builder builder(IndexUserTokenConfigurationsJwtTokenTypeConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String claimRegex; private @Nullable String groupAttributeField; @@ -131,11 +114,7 @@ public static final class Builder { private @Nullable String secretsManagerArn; private @Nullable String url; private @Nullable String userNameAttributeField; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IndexUserTokenConfigurationsJwtTokenTypeConfiguration defaults) { Objects.requireNonNull(defaults); this.claimRegex = defaults.claimRegex; @@ -147,35 +126,51 @@ public Builder(IndexUserTokenConfigurationsJwtTokenTypeConfiguration defaults) { this.userNameAttributeField = defaults.userNameAttributeField; } + @CustomType.Setter public Builder claimRegex(@Nullable String claimRegex) { this.claimRegex = claimRegex; return this; } + @CustomType.Setter public Builder groupAttributeField(@Nullable String groupAttributeField) { this.groupAttributeField = groupAttributeField; return this; } + @CustomType.Setter public Builder issuer(@Nullable String issuer) { this.issuer = issuer; return this; } + @CustomType.Setter public Builder keyLocation(String keyLocation) { this.keyLocation = Objects.requireNonNull(keyLocation); return this; } + @CustomType.Setter public Builder secretsManagerArn(@Nullable String secretsManagerArn) { this.secretsManagerArn = secretsManagerArn; return this; } + @CustomType.Setter public Builder url(@Nullable String url) { this.url = url; return this; } + @CustomType.Setter public Builder userNameAttributeField(@Nullable String userNameAttributeField) { this.userNameAttributeField = userNameAttributeField; return this; - } public IndexUserTokenConfigurationsJwtTokenTypeConfiguration build() { - return new IndexUserTokenConfigurationsJwtTokenTypeConfiguration(claimRegex, groupAttributeField, issuer, keyLocation, secretsManagerArn, url, userNameAttributeField); + } + public IndexUserTokenConfigurationsJwtTokenTypeConfiguration build() { + final var o = new IndexUserTokenConfigurationsJwtTokenTypeConfiguration(); + o.claimRegex = claimRegex; + o.groupAttributeField = groupAttributeField; + o.issuer = issuer; + o.keyLocation = keyLocation; + o.secretsManagerArn = secretsManagerArn; + o.url = url; + o.userNameAttributeField = userNameAttributeField; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/QuerySuggestionsBlockListSourceS3Path.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/QuerySuggestionsBlockListSourceS3Path.java index ea560abcf12..e6877980d94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/QuerySuggestionsBlockListSourceS3Path.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/QuerySuggestionsBlockListSourceS3Path.java @@ -13,21 +13,14 @@ public final class QuerySuggestionsBlockListSourceS3Path { * @return The name of the S3 bucket that contains the file. * */ - private final String bucket; + private String bucket; /** * @return The name of the file. * */ - private final String key; - - @CustomType.Constructor - private QuerySuggestionsBlockListSourceS3Path( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("key") String key) { - this.bucket = bucket; - this.key = key; - } + private String key; + private QuerySuggestionsBlockListSourceS3Path() {} /** * @return The name of the S3 bucket that contains the file. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(QuerySuggestionsBlockListSourceS3Path defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(QuerySuggestionsBlockListSourceS3Path defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.key = defaults.key; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; - } public QuerySuggestionsBlockListSourceS3Path build() { - return new QuerySuggestionsBlockListSourceS3Path(bucket, key); + } + public QuerySuggestionsBlockListSourceS3Path build() { + final var o = new QuerySuggestionsBlockListSourceS3Path(); + o.bucket = bucket; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ThesaurusSourceS3Path.java b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ThesaurusSourceS3Path.java index f96cb2eb6a2..24f77ff70f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ThesaurusSourceS3Path.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kendra/outputs/ThesaurusSourceS3Path.java @@ -13,21 +13,14 @@ public final class ThesaurusSourceS3Path { * @return The name of the S3 bucket that contains the file. * */ - private final String bucket; + private String bucket; /** * @return The name of the file. * */ - private final String key; - - @CustomType.Constructor - private ThesaurusSourceS3Path( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("key") String key) { - this.bucket = bucket; - this.key = key; - } + private String key; + private ThesaurusSourceS3Path() {} /** * @return The name of the S3 bucket that contains the file. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ThesaurusSourceS3Path defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ThesaurusSourceS3Path defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.key = defaults.key; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; - } public ThesaurusSourceS3Path build() { - return new ThesaurusSourceS3Path(bucket, key); + } + public ThesaurusSourceS3Path build() { + final var o = new ThesaurusSourceS3Path(); + o.bucket = bucket; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableCapacitySpecification.java b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableCapacitySpecification.java index a23224245ff..8e96110dbbd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableCapacitySpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableCapacitySpecification.java @@ -16,28 +16,19 @@ public final class TableCapacitySpecification { * @return The throughput capacity specified for read operations defined in read capacity units (RCUs). * */ - private final @Nullable Integer readCapacityUnits; + private @Nullable Integer readCapacityUnits; /** * @return The read/write throughput capacity mode for a table. Valid values: `PAY_PER_REQUEST`, `PROVISIONED`. The default value is `PAY_PER_REQUEST`. * */ - private final @Nullable String throughputMode; + private @Nullable String throughputMode; /** * @return The throughput capacity specified for write operations defined in write capacity units (WCUs). * */ - private final @Nullable Integer writeCapacityUnits; - - @CustomType.Constructor - private TableCapacitySpecification( - @CustomType.Parameter("readCapacityUnits") @Nullable Integer readCapacityUnits, - @CustomType.Parameter("throughputMode") @Nullable String throughputMode, - @CustomType.Parameter("writeCapacityUnits") @Nullable Integer writeCapacityUnits) { - this.readCapacityUnits = readCapacityUnits; - this.throughputMode = throughputMode; - this.writeCapacityUnits = writeCapacityUnits; - } + private @Nullable Integer writeCapacityUnits; + private TableCapacitySpecification() {} /** * @return The throughput capacity specified for read operations defined in read capacity units (RCUs). * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(TableCapacitySpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer readCapacityUnits; private @Nullable String throughputMode; private @Nullable Integer writeCapacityUnits; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableCapacitySpecification defaults) { Objects.requireNonNull(defaults); this.readCapacityUnits = defaults.readCapacityUnits; @@ -84,19 +71,27 @@ public Builder(TableCapacitySpecification defaults) { this.writeCapacityUnits = defaults.writeCapacityUnits; } + @CustomType.Setter public Builder readCapacityUnits(@Nullable Integer readCapacityUnits) { this.readCapacityUnits = readCapacityUnits; return this; } + @CustomType.Setter public Builder throughputMode(@Nullable String throughputMode) { this.throughputMode = throughputMode; return this; } + @CustomType.Setter public Builder writeCapacityUnits(@Nullable Integer writeCapacityUnits) { this.writeCapacityUnits = writeCapacityUnits; return this; - } public TableCapacitySpecification build() { - return new TableCapacitySpecification(readCapacityUnits, throughputMode, writeCapacityUnits); + } + public TableCapacitySpecification build() { + final var o = new TableCapacitySpecification(); + o.readCapacityUnits = readCapacityUnits; + o.throughputMode = throughputMode; + o.writeCapacityUnits = writeCapacityUnits; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableComment.java b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableComment.java index c3a24185608..514b0b5e054 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableComment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableComment.java @@ -15,13 +15,9 @@ public final class TableComment { * @return A description of the table. * */ - private final @Nullable String message; - - @CustomType.Constructor - private TableComment(@CustomType.Parameter("message") @Nullable String message) { - this.message = message; - } + private @Nullable String message; + private TableComment() {} /** * @return A description of the table. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(TableComment defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String message; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableComment defaults) { Objects.requireNonNull(defaults); this.message = defaults.message; } + @CustomType.Setter public Builder message(@Nullable String message) { this.message = message; return this; - } public TableComment build() { - return new TableComment(message); + } + public TableComment build() { + final var o = new TableComment(); + o.message = message; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableEncryptionSpecification.java b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableEncryptionSpecification.java index baf9c3a8402..b79095a9ac1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableEncryptionSpecification.java +++ b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableEncryptionSpecification.java @@ -15,21 +15,14 @@ public final class TableEncryptionSpecification { * @return The Amazon Resource Name (ARN) of the customer managed KMS key. * */ - private final @Nullable String kmsKeyIdentifier; + private @Nullable String kmsKeyIdentifier; /** * @return The encryption option specified for the table. Valid values: `AWS_OWNED_KMS_KEY`, `CUSTOMER_MANAGED_KMS_KEY`. The default value is `AWS_OWNED_KMS_KEY`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private TableEncryptionSpecification( - @CustomType.Parameter("kmsKeyIdentifier") @Nullable String kmsKeyIdentifier, - @CustomType.Parameter("type") @Nullable String type) { - this.kmsKeyIdentifier = kmsKeyIdentifier; - this.type = type; - } + private @Nullable String type; + private TableEncryptionSpecification() {} /** * @return The Amazon Resource Name (ARN) of the customer managed KMS key. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(TableEncryptionSpecification defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsKeyIdentifier; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableEncryptionSpecification defaults) { Objects.requireNonNull(defaults); this.kmsKeyIdentifier = defaults.kmsKeyIdentifier; this.type = defaults.type; } + @CustomType.Setter public Builder kmsKeyIdentifier(@Nullable String kmsKeyIdentifier) { this.kmsKeyIdentifier = kmsKeyIdentifier; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public TableEncryptionSpecification build() { - return new TableEncryptionSpecification(kmsKeyIdentifier, type); + } + public TableEncryptionSpecification build() { + final var o = new TableEncryptionSpecification(); + o.kmsKeyIdentifier = kmsKeyIdentifier; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TablePointInTimeRecovery.java b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TablePointInTimeRecovery.java index e4c642dad18..987136d859b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TablePointInTimeRecovery.java +++ b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TablePointInTimeRecovery.java @@ -15,13 +15,9 @@ public final class TablePointInTimeRecovery { * @return Valid values: `ENABLED`, `DISABLED`. The default value is `DISABLED`. * */ - private final @Nullable String status; - - @CustomType.Constructor - private TablePointInTimeRecovery(@CustomType.Parameter("status") @Nullable String status) { - this.status = status; - } + private @Nullable String status; + private TablePointInTimeRecovery() {} /** * @return Valid values: `ENABLED`, `DISABLED`. The default value is `DISABLED`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(TablePointInTimeRecovery defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TablePointInTimeRecovery defaults) { Objects.requireNonNull(defaults); this.status = defaults.status; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; - } public TablePointInTimeRecovery build() { - return new TablePointInTimeRecovery(status); + } + public TablePointInTimeRecovery build() { + final var o = new TablePointInTimeRecovery(); + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinition.java index 4d0995e293a..ad5ac8d653e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinition.java @@ -18,35 +18,24 @@ public final class TableSchemaDefinition { * @return The columns that are part of the clustering key of the table. * */ - private final @Nullable List clusteringKeys; + private @Nullable List clusteringKeys; /** * @return The regular columns of the table. * */ - private final List columns; + private List columns; /** * @return The columns that are part of the partition key of the table . * */ - private final List partitionKeys; + private List partitionKeys; /** * @return The columns that have been defined as `STATIC`. Static columns store values that are shared by all rows in the same partition. * */ - private final @Nullable List staticColumns; - - @CustomType.Constructor - private TableSchemaDefinition( - @CustomType.Parameter("clusteringKeys") @Nullable List clusteringKeys, - @CustomType.Parameter("columns") List columns, - @CustomType.Parameter("partitionKeys") List partitionKeys, - @CustomType.Parameter("staticColumns") @Nullable List staticColumns) { - this.clusteringKeys = clusteringKeys; - this.columns = columns; - this.partitionKeys = partitionKeys; - this.staticColumns = staticColumns; - } + private @Nullable List staticColumns; + private TableSchemaDefinition() {} /** * @return The columns that are part of the clustering key of the table. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(TableSchemaDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List clusteringKeys; private List columns; private List partitionKeys; private @Nullable List staticColumns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableSchemaDefinition defaults) { Objects.requireNonNull(defaults); this.clusteringKeys = defaults.clusteringKeys; @@ -102,6 +87,7 @@ public Builder(TableSchemaDefinition defaults) { this.staticColumns = defaults.staticColumns; } + @CustomType.Setter public Builder clusteringKeys(@Nullable List clusteringKeys) { this.clusteringKeys = clusteringKeys; return this; @@ -109,6 +95,7 @@ public Builder clusteringKeys(@Nullable List public Builder clusteringKeys(TableSchemaDefinitionClusteringKey... clusteringKeys) { return clusteringKeys(List.of(clusteringKeys)); } + @CustomType.Setter public Builder columns(List columns) { this.columns = Objects.requireNonNull(columns); return this; @@ -116,6 +103,7 @@ public Builder columns(List columns) { public Builder columns(TableSchemaDefinitionColumn... columns) { return columns(List.of(columns)); } + @CustomType.Setter public Builder partitionKeys(List partitionKeys) { this.partitionKeys = Objects.requireNonNull(partitionKeys); return this; @@ -123,14 +111,21 @@ public Builder partitionKeys(List partitionKe public Builder partitionKeys(TableSchemaDefinitionPartitionKey... partitionKeys) { return partitionKeys(List.of(partitionKeys)); } + @CustomType.Setter public Builder staticColumns(@Nullable List staticColumns) { this.staticColumns = staticColumns; return this; } public Builder staticColumns(TableSchemaDefinitionStaticColumn... staticColumns) { return staticColumns(List.of(staticColumns)); - } public TableSchemaDefinition build() { - return new TableSchemaDefinition(clusteringKeys, columns, partitionKeys, staticColumns); + } + public TableSchemaDefinition build() { + final var o = new TableSchemaDefinition(); + o.clusteringKeys = clusteringKeys; + o.columns = columns; + o.partitionKeys = partitionKeys; + o.staticColumns = staticColumns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionClusteringKey.java b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionClusteringKey.java index f1c6dbff7a5..f9206927277 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionClusteringKey.java +++ b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionClusteringKey.java @@ -13,21 +13,14 @@ public final class TableSchemaDefinitionClusteringKey { * @return The name of the clustering key column. * */ - private final String name; + private String name; /** * @return The order modifier. Valid values: `ASC`, `DESC`. * */ - private final String orderBy; - - @CustomType.Constructor - private TableSchemaDefinitionClusteringKey( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("orderBy") String orderBy) { - this.name = name; - this.orderBy = orderBy; - } + private String orderBy; + private TableSchemaDefinitionClusteringKey() {} /** * @return The name of the clustering key column. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TableSchemaDefinitionClusteringKey defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String orderBy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableSchemaDefinitionClusteringKey defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.orderBy = defaults.orderBy; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder orderBy(String orderBy) { this.orderBy = Objects.requireNonNull(orderBy); return this; - } public TableSchemaDefinitionClusteringKey build() { - return new TableSchemaDefinitionClusteringKey(name, orderBy); + } + public TableSchemaDefinitionClusteringKey build() { + final var o = new TableSchemaDefinitionClusteringKey(); + o.name = name; + o.orderBy = orderBy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionColumn.java b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionColumn.java index a1146e7aade..d487a8edf94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionColumn.java +++ b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionColumn.java @@ -13,21 +13,14 @@ public final class TableSchemaDefinitionColumn { * @return The name of the column. * */ - private final String name; + private String name; /** * @return The data type of the column. See the [Developer Guide](https://docs.aws.amazon.com/keyspaces/latest/devguide/cql.elements.html#cql.data-types) for a list of available data types. * */ - private final String type; - - @CustomType.Constructor - private TableSchemaDefinitionColumn( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("type") String type) { - this.name = name; - this.type = type; - } + private String type; + private TableSchemaDefinitionColumn() {} /** * @return The name of the column. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TableSchemaDefinitionColumn defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableSchemaDefinitionColumn defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.type = defaults.type; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public TableSchemaDefinitionColumn build() { - return new TableSchemaDefinitionColumn(name, type); + } + public TableSchemaDefinitionColumn build() { + final var o = new TableSchemaDefinitionColumn(); + o.name = name; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionPartitionKey.java b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionPartitionKey.java index 8e13de1ce83..ab8c785844c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionPartitionKey.java +++ b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionPartitionKey.java @@ -13,13 +13,9 @@ public final class TableSchemaDefinitionPartitionKey { * @return The name of the partition key column. * */ - private final String name; - - @CustomType.Constructor - private TableSchemaDefinitionPartitionKey(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private TableSchemaDefinitionPartitionKey() {} /** * @return The name of the partition key column. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(TableSchemaDefinitionPartitionKey defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableSchemaDefinitionPartitionKey defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public TableSchemaDefinitionPartitionKey build() { - return new TableSchemaDefinitionPartitionKey(name); + } + public TableSchemaDefinitionPartitionKey build() { + final var o = new TableSchemaDefinitionPartitionKey(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionStaticColumn.java b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionStaticColumn.java index d030a449b27..3dac092a2ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionStaticColumn.java +++ b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableSchemaDefinitionStaticColumn.java @@ -13,13 +13,9 @@ public final class TableSchemaDefinitionStaticColumn { * @return The name of the static column. * */ - private final String name; - - @CustomType.Constructor - private TableSchemaDefinitionStaticColumn(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private TableSchemaDefinitionStaticColumn() {} /** * @return The name of the static column. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(TableSchemaDefinitionStaticColumn defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableSchemaDefinitionStaticColumn defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public TableSchemaDefinitionStaticColumn build() { - return new TableSchemaDefinitionStaticColumn(name); + } + public TableSchemaDefinitionStaticColumn build() { + final var o = new TableSchemaDefinitionStaticColumn(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableTtl.java b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableTtl.java index 50491db0031..c1c2e6ae60f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableTtl.java +++ b/sdk/java/src/main/java/com/pulumi/aws/keyspaces/outputs/TableTtl.java @@ -13,13 +13,9 @@ public final class TableTtl { * @return Valid values: `ENABLED`. * */ - private final String status; - - @CustomType.Constructor - private TableTtl(@CustomType.Parameter("status") String status) { - this.status = status; - } + private String status; + private TableTtl() {} /** * @return Valid values: `ENABLED`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(TableTtl defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableTtl defaults) { Objects.requireNonNull(defaults); this.status = defaults.status; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public TableTtl build() { - return new TableTtl(status); + } + public TableTtl build() { + final var o = new TableTtl(); + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationCloudwatchLoggingOptions.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationCloudwatchLoggingOptions.java index e7067ed6baa..9e7d2169ddc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationCloudwatchLoggingOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationCloudwatchLoggingOptions.java @@ -15,28 +15,19 @@ public final class AnalyticsApplicationCloudwatchLoggingOptions { * @return The ARN of the Kinesis Analytics Application. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The ARN of the CloudWatch Log Stream. * */ - private final String logStreamArn; + private String logStreamArn; /** * @return The ARN of the IAM Role used to send application messages. * */ - private final String roleArn; - - @CustomType.Constructor - private AnalyticsApplicationCloudwatchLoggingOptions( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("logStreamArn") String logStreamArn, - @CustomType.Parameter("roleArn") String roleArn) { - this.id = id; - this.logStreamArn = logStreamArn; - this.roleArn = roleArn; - } + private String roleArn; + private AnalyticsApplicationCloudwatchLoggingOptions() {} /** * @return The ARN of the Kinesis Analytics Application. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationCloudwatchLoggingOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private String logStreamArn; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationCloudwatchLoggingOptions defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -83,19 +70,27 @@ public Builder(AnalyticsApplicationCloudwatchLoggingOptions defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder logStreamArn(String logStreamArn) { this.logStreamArn = Objects.requireNonNull(logStreamArn); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public AnalyticsApplicationCloudwatchLoggingOptions build() { - return new AnalyticsApplicationCloudwatchLoggingOptions(id, logStreamArn, roleArn); + } + public AnalyticsApplicationCloudwatchLoggingOptions build() { + final var o = new AnalyticsApplicationCloudwatchLoggingOptions(); + o.id = id; + o.logStreamArn = logStreamArn; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputs.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputs.java index 5d668f6246c..ce7a8ab922b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputs.java @@ -22,71 +22,50 @@ public final class AnalyticsApplicationInputs { * @return The ARN of the Kinesis Analytics Application. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The Kinesis Firehose configuration for the streaming source. Conflicts with `kinesis_stream`. * See Kinesis Firehose below for more details. * */ - private final @Nullable AnalyticsApplicationInputsKinesisFirehose kinesisFirehose; + private @Nullable AnalyticsApplicationInputsKinesisFirehose kinesisFirehose; /** * @return The Kinesis Stream configuration for the streaming source. Conflicts with `kinesis_firehose`. * See Kinesis Stream below for more details. * */ - private final @Nullable AnalyticsApplicationInputsKinesisStream kinesisStream; + private @Nullable AnalyticsApplicationInputsKinesisStream kinesisStream; /** * @return The Name Prefix to use when creating an in-application stream. * */ - private final String namePrefix; + private String namePrefix; /** * @return The number of Parallel in-application streams to create. * See Parallelism below for more details. * */ - private final @Nullable AnalyticsApplicationInputsParallelism parallelism; + private @Nullable AnalyticsApplicationInputsParallelism parallelism; /** * @return The Processing Configuration to transform records as they are received from the stream. * See Processing Configuration below for more details. * */ - private final @Nullable AnalyticsApplicationInputsProcessingConfiguration processingConfiguration; + private @Nullable AnalyticsApplicationInputsProcessingConfiguration processingConfiguration; /** * @return The Schema format of the data in the streaming source. See Source Schema below for more details. * */ - private final AnalyticsApplicationInputsSchema schema; + private AnalyticsApplicationInputsSchema schema; /** * @return The point at which the application starts processing records from the streaming source. * See Starting Position Configuration below for more details. * */ - private final @Nullable List startingPositionConfigurations; - private final @Nullable List streamNames; - - @CustomType.Constructor - private AnalyticsApplicationInputs( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("kinesisFirehose") @Nullable AnalyticsApplicationInputsKinesisFirehose kinesisFirehose, - @CustomType.Parameter("kinesisStream") @Nullable AnalyticsApplicationInputsKinesisStream kinesisStream, - @CustomType.Parameter("namePrefix") String namePrefix, - @CustomType.Parameter("parallelism") @Nullable AnalyticsApplicationInputsParallelism parallelism, - @CustomType.Parameter("processingConfiguration") @Nullable AnalyticsApplicationInputsProcessingConfiguration processingConfiguration, - @CustomType.Parameter("schema") AnalyticsApplicationInputsSchema schema, - @CustomType.Parameter("startingPositionConfigurations") @Nullable List startingPositionConfigurations, - @CustomType.Parameter("streamNames") @Nullable List streamNames) { - this.id = id; - this.kinesisFirehose = kinesisFirehose; - this.kinesisStream = kinesisStream; - this.namePrefix = namePrefix; - this.parallelism = parallelism; - this.processingConfiguration = processingConfiguration; - this.schema = schema; - this.startingPositionConfigurations = startingPositionConfigurations; - this.streamNames = streamNames; - } + private @Nullable List startingPositionConfigurations; + private @Nullable List streamNames; + private AnalyticsApplicationInputs() {} /** * @return The ARN of the Kinesis Analytics Application. * @@ -159,7 +138,7 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private @Nullable AnalyticsApplicationInputsKinesisFirehose kinesisFirehose; @@ -170,11 +149,7 @@ public static final class Builder { private AnalyticsApplicationInputsSchema schema; private @Nullable List startingPositionConfigurations; private @Nullable List streamNames; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputs defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -188,34 +163,42 @@ public Builder(AnalyticsApplicationInputs defaults) { this.streamNames = defaults.streamNames; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder kinesisFirehose(@Nullable AnalyticsApplicationInputsKinesisFirehose kinesisFirehose) { this.kinesisFirehose = kinesisFirehose; return this; } + @CustomType.Setter public Builder kinesisStream(@Nullable AnalyticsApplicationInputsKinesisStream kinesisStream) { this.kinesisStream = kinesisStream; return this; } + @CustomType.Setter public Builder namePrefix(String namePrefix) { this.namePrefix = Objects.requireNonNull(namePrefix); return this; } + @CustomType.Setter public Builder parallelism(@Nullable AnalyticsApplicationInputsParallelism parallelism) { this.parallelism = parallelism; return this; } + @CustomType.Setter public Builder processingConfiguration(@Nullable AnalyticsApplicationInputsProcessingConfiguration processingConfiguration) { this.processingConfiguration = processingConfiguration; return this; } + @CustomType.Setter public Builder schema(AnalyticsApplicationInputsSchema schema) { this.schema = Objects.requireNonNull(schema); return this; } + @CustomType.Setter public Builder startingPositionConfigurations(@Nullable List startingPositionConfigurations) { this.startingPositionConfigurations = startingPositionConfigurations; return this; @@ -223,14 +206,26 @@ public Builder startingPositionConfigurations(@Nullable List streamNames) { this.streamNames = streamNames; return this; } public Builder streamNames(String... streamNames) { return streamNames(List.of(streamNames)); - } public AnalyticsApplicationInputs build() { - return new AnalyticsApplicationInputs(id, kinesisFirehose, kinesisStream, namePrefix, parallelism, processingConfiguration, schema, startingPositionConfigurations, streamNames); + } + public AnalyticsApplicationInputs build() { + final var o = new AnalyticsApplicationInputs(); + o.id = id; + o.kinesisFirehose = kinesisFirehose; + o.kinesisStream = kinesisStream; + o.namePrefix = namePrefix; + o.parallelism = parallelism; + o.processingConfiguration = processingConfiguration; + o.schema = schema; + o.startingPositionConfigurations = startingPositionConfigurations; + o.streamNames = streamNames; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsKinesisFirehose.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsKinesisFirehose.java index 1fc2fa2b3dd..e5941d8a3be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsKinesisFirehose.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsKinesisFirehose.java @@ -13,21 +13,14 @@ public final class AnalyticsApplicationInputsKinesisFirehose { * @return The ARN of the Kinesis Firehose delivery stream. * */ - private final String resourceArn; + private String resourceArn; /** * @return The ARN of the IAM Role used to access the stream. * */ - private final String roleArn; - - @CustomType.Constructor - private AnalyticsApplicationInputsKinesisFirehose( - @CustomType.Parameter("resourceArn") String resourceArn, - @CustomType.Parameter("roleArn") String roleArn) { - this.resourceArn = resourceArn; - this.roleArn = roleArn; - } + private String roleArn; + private AnalyticsApplicationInputsKinesisFirehose() {} /** * @return The ARN of the Kinesis Firehose delivery stream. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputsKinesisFirehose defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String resourceArn; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputsKinesisFirehose defaults) { Objects.requireNonNull(defaults); this.resourceArn = defaults.resourceArn; this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder resourceArn(String resourceArn) { this.resourceArn = Objects.requireNonNull(resourceArn); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public AnalyticsApplicationInputsKinesisFirehose build() { - return new AnalyticsApplicationInputsKinesisFirehose(resourceArn, roleArn); + } + public AnalyticsApplicationInputsKinesisFirehose build() { + final var o = new AnalyticsApplicationInputsKinesisFirehose(); + o.resourceArn = resourceArn; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsKinesisStream.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsKinesisStream.java index 6479be76427..cb878ec60e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsKinesisStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsKinesisStream.java @@ -13,21 +13,14 @@ public final class AnalyticsApplicationInputsKinesisStream { * @return The ARN of the Kinesis Stream. * */ - private final String resourceArn; + private String resourceArn; /** * @return The ARN of the IAM Role used to access the stream. * */ - private final String roleArn; - - @CustomType.Constructor - private AnalyticsApplicationInputsKinesisStream( - @CustomType.Parameter("resourceArn") String resourceArn, - @CustomType.Parameter("roleArn") String roleArn) { - this.resourceArn = resourceArn; - this.roleArn = roleArn; - } + private String roleArn; + private AnalyticsApplicationInputsKinesisStream() {} /** * @return The ARN of the Kinesis Stream. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputsKinesisStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String resourceArn; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputsKinesisStream defaults) { Objects.requireNonNull(defaults); this.resourceArn = defaults.resourceArn; this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder resourceArn(String resourceArn) { this.resourceArn = Objects.requireNonNull(resourceArn); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public AnalyticsApplicationInputsKinesisStream build() { - return new AnalyticsApplicationInputsKinesisStream(resourceArn, roleArn); + } + public AnalyticsApplicationInputsKinesisStream build() { + final var o = new AnalyticsApplicationInputsKinesisStream(); + o.resourceArn = resourceArn; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsParallelism.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsParallelism.java index 8acb2787cba..95a31d1553f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsParallelism.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsParallelism.java @@ -15,13 +15,9 @@ public final class AnalyticsApplicationInputsParallelism { * @return The Count of streams. * */ - private final @Nullable Integer count; - - @CustomType.Constructor - private AnalyticsApplicationInputsParallelism(@CustomType.Parameter("count") @Nullable Integer count) { - this.count = count; - } + private @Nullable Integer count; + private AnalyticsApplicationInputsParallelism() {} /** * @return The Count of streams. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputsParallelism defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer count; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputsParallelism defaults) { Objects.requireNonNull(defaults); this.count = defaults.count; } + @CustomType.Setter public Builder count(@Nullable Integer count) { this.count = count; return this; - } public AnalyticsApplicationInputsParallelism build() { - return new AnalyticsApplicationInputsParallelism(count); + } + public AnalyticsApplicationInputsParallelism build() { + final var o = new AnalyticsApplicationInputsParallelism(); + o.count = count; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsProcessingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsProcessingConfiguration.java index 6d1197e8521..eb773bb5647 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsProcessingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsProcessingConfiguration.java @@ -13,13 +13,9 @@ public final class AnalyticsApplicationInputsProcessingConfiguration { * @return The Lambda function configuration. See Lambda below for more details. * */ - private final AnalyticsApplicationInputsProcessingConfigurationLambda lambda; - - @CustomType.Constructor - private AnalyticsApplicationInputsProcessingConfiguration(@CustomType.Parameter("lambda") AnalyticsApplicationInputsProcessingConfigurationLambda lambda) { - this.lambda = lambda; - } + private AnalyticsApplicationInputsProcessingConfigurationLambda lambda; + private AnalyticsApplicationInputsProcessingConfiguration() {} /** * @return The Lambda function configuration. See Lambda below for more details. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputsProcessingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private AnalyticsApplicationInputsProcessingConfigurationLambda lambda; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputsProcessingConfiguration defaults) { Objects.requireNonNull(defaults); this.lambda = defaults.lambda; } + @CustomType.Setter public Builder lambda(AnalyticsApplicationInputsProcessingConfigurationLambda lambda) { this.lambda = Objects.requireNonNull(lambda); return this; - } public AnalyticsApplicationInputsProcessingConfiguration build() { - return new AnalyticsApplicationInputsProcessingConfiguration(lambda); + } + public AnalyticsApplicationInputsProcessingConfiguration build() { + final var o = new AnalyticsApplicationInputsProcessingConfiguration(); + o.lambda = lambda; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsProcessingConfigurationLambda.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsProcessingConfigurationLambda.java index 196540c6581..ec8cc3d32c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsProcessingConfigurationLambda.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsProcessingConfigurationLambda.java @@ -13,21 +13,14 @@ public final class AnalyticsApplicationInputsProcessingConfigurationLambda { * @return The ARN of the Lambda function. * */ - private final String resourceArn; + private String resourceArn; /** * @return The ARN of the IAM Role used to access the Lambda function. * */ - private final String roleArn; - - @CustomType.Constructor - private AnalyticsApplicationInputsProcessingConfigurationLambda( - @CustomType.Parameter("resourceArn") String resourceArn, - @CustomType.Parameter("roleArn") String roleArn) { - this.resourceArn = resourceArn; - this.roleArn = roleArn; - } + private String roleArn; + private AnalyticsApplicationInputsProcessingConfigurationLambda() {} /** * @return The ARN of the Lambda function. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputsProcessingConfigurationLambda defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String resourceArn; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputsProcessingConfigurationLambda defaults) { Objects.requireNonNull(defaults); this.resourceArn = defaults.resourceArn; this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder resourceArn(String resourceArn) { this.resourceArn = Objects.requireNonNull(resourceArn); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public AnalyticsApplicationInputsProcessingConfigurationLambda build() { - return new AnalyticsApplicationInputsProcessingConfigurationLambda(resourceArn, roleArn); + } + public AnalyticsApplicationInputsProcessingConfigurationLambda build() { + final var o = new AnalyticsApplicationInputsProcessingConfigurationLambda(); + o.resourceArn = resourceArn; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchema.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchema.java index f6dc27af606..c0888845036 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchema.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchema.java @@ -19,29 +19,20 @@ public final class AnalyticsApplicationInputsSchema { * See Record Columns below for more details. * */ - private final List recordColumns; + private List recordColumns; /** * @return The Encoding of the record in the streaming source. * */ - private final @Nullable String recordEncoding; + private @Nullable String recordEncoding; /** * @return The Record Format and mapping information to schematize a record. * See Record Format below for more details. * */ - private final AnalyticsApplicationInputsSchemaRecordFormat recordFormat; - - @CustomType.Constructor - private AnalyticsApplicationInputsSchema( - @CustomType.Parameter("recordColumns") List recordColumns, - @CustomType.Parameter("recordEncoding") @Nullable String recordEncoding, - @CustomType.Parameter("recordFormat") AnalyticsApplicationInputsSchemaRecordFormat recordFormat) { - this.recordColumns = recordColumns; - this.recordEncoding = recordEncoding; - this.recordFormat = recordFormat; - } + private AnalyticsApplicationInputsSchemaRecordFormat recordFormat; + private AnalyticsApplicationInputsSchema() {} /** * @return The Record Column mapping for the streaming source data element. * See Record Columns below for more details. @@ -73,16 +64,12 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputsSchema defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List recordColumns; private @Nullable String recordEncoding; private AnalyticsApplicationInputsSchemaRecordFormat recordFormat; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputsSchema defaults) { Objects.requireNonNull(defaults); this.recordColumns = defaults.recordColumns; @@ -90,6 +77,7 @@ public Builder(AnalyticsApplicationInputsSchema defaults) { this.recordFormat = defaults.recordFormat; } + @CustomType.Setter public Builder recordColumns(List recordColumns) { this.recordColumns = Objects.requireNonNull(recordColumns); return this; @@ -97,15 +85,22 @@ public Builder recordColumns(List public Builder recordColumns(AnalyticsApplicationInputsSchemaRecordColumn... recordColumns) { return recordColumns(List.of(recordColumns)); } + @CustomType.Setter public Builder recordEncoding(@Nullable String recordEncoding) { this.recordEncoding = recordEncoding; return this; } + @CustomType.Setter public Builder recordFormat(AnalyticsApplicationInputsSchemaRecordFormat recordFormat) { this.recordFormat = Objects.requireNonNull(recordFormat); return this; - } public AnalyticsApplicationInputsSchema build() { - return new AnalyticsApplicationInputsSchema(recordColumns, recordEncoding, recordFormat); + } + public AnalyticsApplicationInputsSchema build() { + final var o = new AnalyticsApplicationInputsSchema(); + o.recordColumns = recordColumns; + o.recordEncoding = recordEncoding; + o.recordFormat = recordFormat; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordColumn.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordColumn.java index 9e4b7850d9a..e442acda7aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordColumn.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordColumn.java @@ -15,28 +15,19 @@ public final class AnalyticsApplicationInputsSchemaRecordColumn { * @return The Mapping reference to the data element. * */ - private final @Nullable String mapping; + private @Nullable String mapping; /** * @return Name of the column. * */ - private final String name; + private String name; /** * @return The SQL Type of the column. * */ - private final String sqlType; - - @CustomType.Constructor - private AnalyticsApplicationInputsSchemaRecordColumn( - @CustomType.Parameter("mapping") @Nullable String mapping, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("sqlType") String sqlType) { - this.mapping = mapping; - this.name = name; - this.sqlType = sqlType; - } + private String sqlType; + private AnalyticsApplicationInputsSchemaRecordColumn() {} /** * @return The Mapping reference to the data element. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputsSchemaRecordColumn defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String mapping; private String name; private String sqlType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputsSchemaRecordColumn defaults) { Objects.requireNonNull(defaults); this.mapping = defaults.mapping; @@ -83,19 +70,27 @@ public Builder(AnalyticsApplicationInputsSchemaRecordColumn defaults) { this.sqlType = defaults.sqlType; } + @CustomType.Setter public Builder mapping(@Nullable String mapping) { this.mapping = mapping; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder sqlType(String sqlType) { this.sqlType = Objects.requireNonNull(sqlType); return this; - } public AnalyticsApplicationInputsSchemaRecordColumn build() { - return new AnalyticsApplicationInputsSchemaRecordColumn(mapping, name, sqlType); + } + public AnalyticsApplicationInputsSchemaRecordColumn build() { + final var o = new AnalyticsApplicationInputsSchemaRecordColumn(); + o.mapping = mapping; + o.name = name; + o.sqlType = sqlType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormat.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormat.java index 181cf2ffff8..e716bfb0641 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormat.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormat.java @@ -17,21 +17,14 @@ public final class AnalyticsApplicationInputsSchemaRecordFormat { * See Mapping Parameters below for more details. * */ - private final @Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParameters mappingParameters; + private @Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParameters mappingParameters; /** * @return The type of Record Format. Can be `CSV` or `JSON`. * */ - private final @Nullable String recordFormatType; - - @CustomType.Constructor - private AnalyticsApplicationInputsSchemaRecordFormat( - @CustomType.Parameter("mappingParameters") @Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParameters mappingParameters, - @CustomType.Parameter("recordFormatType") @Nullable String recordFormatType) { - this.mappingParameters = mappingParameters; - this.recordFormatType = recordFormatType; - } + private @Nullable String recordFormatType; + private AnalyticsApplicationInputsSchemaRecordFormat() {} /** * @return The Mapping Information for the record format. * See Mapping Parameters below for more details. @@ -55,30 +48,32 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputsSchemaRecordFormat defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParameters mappingParameters; private @Nullable String recordFormatType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputsSchemaRecordFormat defaults) { Objects.requireNonNull(defaults); this.mappingParameters = defaults.mappingParameters; this.recordFormatType = defaults.recordFormatType; } + @CustomType.Setter public Builder mappingParameters(@Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParameters mappingParameters) { this.mappingParameters = mappingParameters; return this; } + @CustomType.Setter public Builder recordFormatType(@Nullable String recordFormatType) { this.recordFormatType = recordFormatType; return this; - } public AnalyticsApplicationInputsSchemaRecordFormat build() { - return new AnalyticsApplicationInputsSchemaRecordFormat(mappingParameters, recordFormatType); + } + public AnalyticsApplicationInputsSchemaRecordFormat build() { + final var o = new AnalyticsApplicationInputsSchemaRecordFormat(); + o.mappingParameters = mappingParameters; + o.recordFormatType = recordFormatType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormatMappingParameters.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormatMappingParameters.java index 05221a5bbb2..7ded1ea6720 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormatMappingParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormatMappingParameters.java @@ -17,22 +17,15 @@ public final class AnalyticsApplicationInputsSchemaRecordFormatMappingParameters * See CSV Mapping Parameters below for more details. * */ - private final @Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv csv; + private @Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv csv; /** * @return Mapping information when JSON is the record format on the streaming source. * See JSON Mapping Parameters below for more details. * */ - private final @Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson json; - - @CustomType.Constructor - private AnalyticsApplicationInputsSchemaRecordFormatMappingParameters( - @CustomType.Parameter("csv") @Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv csv, - @CustomType.Parameter("json") @Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson json) { - this.csv = csv; - this.json = json; - } + private @Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson json; + private AnalyticsApplicationInputsSchemaRecordFormatMappingParameters() {} /** * @return Mapping information when the record format uses delimiters. * See CSV Mapping Parameters below for more details. @@ -57,30 +50,32 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputsSchemaRecordFormatMappingParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv csv; private @Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson json; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputsSchemaRecordFormatMappingParameters defaults) { Objects.requireNonNull(defaults); this.csv = defaults.csv; this.json = defaults.json; } + @CustomType.Setter public Builder csv(@Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv csv) { this.csv = csv; return this; } + @CustomType.Setter public Builder json(@Nullable AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson json) { this.json = json; return this; - } public AnalyticsApplicationInputsSchemaRecordFormatMappingParameters build() { - return new AnalyticsApplicationInputsSchemaRecordFormatMappingParameters(csv, json); + } + public AnalyticsApplicationInputsSchemaRecordFormatMappingParameters build() { + final var o = new AnalyticsApplicationInputsSchemaRecordFormatMappingParameters(); + o.csv = csv; + o.json = json; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv.java index 95fa9f11d95..6f2acda7ae1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv.java @@ -13,21 +13,14 @@ public final class AnalyticsApplicationInputsSchemaRecordFormatMappingParameters * @return The Column Delimiter. * */ - private final String recordColumnDelimiter; + private String recordColumnDelimiter; /** * @return The Row Delimiter. * */ - private final String recordRowDelimiter; - - @CustomType.Constructor - private AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv( - @CustomType.Parameter("recordColumnDelimiter") String recordColumnDelimiter, - @CustomType.Parameter("recordRowDelimiter") String recordRowDelimiter) { - this.recordColumnDelimiter = recordColumnDelimiter; - this.recordRowDelimiter = recordRowDelimiter; - } + private String recordRowDelimiter; + private AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv() {} /** * @return The Column Delimiter. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String recordColumnDelimiter; private String recordRowDelimiter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv defaults) { Objects.requireNonNull(defaults); this.recordColumnDelimiter = defaults.recordColumnDelimiter; this.recordRowDelimiter = defaults.recordRowDelimiter; } + @CustomType.Setter public Builder recordColumnDelimiter(String recordColumnDelimiter) { this.recordColumnDelimiter = Objects.requireNonNull(recordColumnDelimiter); return this; } + @CustomType.Setter public Builder recordRowDelimiter(String recordRowDelimiter) { this.recordRowDelimiter = Objects.requireNonNull(recordRowDelimiter); return this; - } public AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv build() { - return new AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv(recordColumnDelimiter, recordRowDelimiter); + } + public AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv build() { + final var o = new AnalyticsApplicationInputsSchemaRecordFormatMappingParametersCsv(); + o.recordColumnDelimiter = recordColumnDelimiter; + o.recordRowDelimiter = recordRowDelimiter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson.java index 52975dae8d9..d70aea4e732 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson.java @@ -13,13 +13,9 @@ public final class AnalyticsApplicationInputsSchemaRecordFormatMappingParameters * @return Path to the top-level parent that contains the records. * */ - private final String recordRowPath; - - @CustomType.Constructor - private AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson(@CustomType.Parameter("recordRowPath") String recordRowPath) { - this.recordRowPath = recordRowPath; - } + private String recordRowPath; + private AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson() {} /** * @return Path to the top-level parent that contains the records. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String recordRowPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson defaults) { Objects.requireNonNull(defaults); this.recordRowPath = defaults.recordRowPath; } + @CustomType.Setter public Builder recordRowPath(String recordRowPath) { this.recordRowPath = Objects.requireNonNull(recordRowPath); return this; - } public AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson build() { - return new AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson(recordRowPath); + } + public AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson build() { + final var o = new AnalyticsApplicationInputsSchemaRecordFormatMappingParametersJson(); + o.recordRowPath = recordRowPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsStartingPositionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsStartingPositionConfiguration.java index fcfbda8dfa6..bbb2e828c89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsStartingPositionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationInputsStartingPositionConfiguration.java @@ -15,13 +15,9 @@ public final class AnalyticsApplicationInputsStartingPositionConfiguration { * @return The starting position on the stream. Valid values: `LAST_STOPPED_POINT`, `NOW`, `TRIM_HORIZON`. * */ - private final @Nullable String startingPosition; - - @CustomType.Constructor - private AnalyticsApplicationInputsStartingPositionConfiguration(@CustomType.Parameter("startingPosition") @Nullable String startingPosition) { - this.startingPosition = startingPosition; - } + private @Nullable String startingPosition; + private AnalyticsApplicationInputsStartingPositionConfiguration() {} /** * @return The starting position on the stream. Valid values: `LAST_STOPPED_POINT`, `NOW`, `TRIM_HORIZON`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationInputsStartingPositionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String startingPosition; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationInputsStartingPositionConfiguration defaults) { Objects.requireNonNull(defaults); this.startingPosition = defaults.startingPosition; } + @CustomType.Setter public Builder startingPosition(@Nullable String startingPosition) { this.startingPosition = startingPosition; return this; - } public AnalyticsApplicationInputsStartingPositionConfiguration build() { - return new AnalyticsApplicationInputsStartingPositionConfiguration(startingPosition); + } + public AnalyticsApplicationInputsStartingPositionConfiguration build() { + final var o = new AnalyticsApplicationInputsStartingPositionConfiguration(); + o.startingPosition = startingPosition; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutput.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutput.java index c3fd0eab676..c852a83383a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutput.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutput.java @@ -19,51 +19,36 @@ public final class AnalyticsApplicationOutput { * @return The ARN of the Kinesis Analytics Application. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The Kinesis Firehose configuration for the destination stream. Conflicts with `kinesis_stream`. * See Kinesis Firehose below for more details. * */ - private final @Nullable AnalyticsApplicationOutputKinesisFirehose kinesisFirehose; + private @Nullable AnalyticsApplicationOutputKinesisFirehose kinesisFirehose; /** * @return The Kinesis Stream configuration for the destination stream. Conflicts with `kinesis_firehose`. * See Kinesis Stream below for more details. * */ - private final @Nullable AnalyticsApplicationOutputKinesisStream kinesisStream; + private @Nullable AnalyticsApplicationOutputKinesisStream kinesisStream; /** * @return The Lambda function destination. See Lambda below for more details. * */ - private final @Nullable AnalyticsApplicationOutputLambda lambda; + private @Nullable AnalyticsApplicationOutputLambda lambda; /** * @return The Name of the in-application stream. * */ - private final String name; + private String name; /** * @return The Schema format of the data written to the destination. See Destination Schema below for more details. * */ - private final AnalyticsApplicationOutputSchema schema; - - @CustomType.Constructor - private AnalyticsApplicationOutput( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("kinesisFirehose") @Nullable AnalyticsApplicationOutputKinesisFirehose kinesisFirehose, - @CustomType.Parameter("kinesisStream") @Nullable AnalyticsApplicationOutputKinesisStream kinesisStream, - @CustomType.Parameter("lambda") @Nullable AnalyticsApplicationOutputLambda lambda, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("schema") AnalyticsApplicationOutputSchema schema) { - this.id = id; - this.kinesisFirehose = kinesisFirehose; - this.kinesisStream = kinesisStream; - this.lambda = lambda; - this.name = name; - this.schema = schema; - } + private AnalyticsApplicationOutputSchema schema; + private AnalyticsApplicationOutput() {} /** * @return The ARN of the Kinesis Analytics Application. * @@ -116,7 +101,7 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationOutput defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private @Nullable AnalyticsApplicationOutputKinesisFirehose kinesisFirehose; @@ -124,11 +109,7 @@ public static final class Builder { private @Nullable AnalyticsApplicationOutputLambda lambda; private String name; private AnalyticsApplicationOutputSchema schema; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationOutput defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -139,31 +120,45 @@ public Builder(AnalyticsApplicationOutput defaults) { this.schema = defaults.schema; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder kinesisFirehose(@Nullable AnalyticsApplicationOutputKinesisFirehose kinesisFirehose) { this.kinesisFirehose = kinesisFirehose; return this; } + @CustomType.Setter public Builder kinesisStream(@Nullable AnalyticsApplicationOutputKinesisStream kinesisStream) { this.kinesisStream = kinesisStream; return this; } + @CustomType.Setter public Builder lambda(@Nullable AnalyticsApplicationOutputLambda lambda) { this.lambda = lambda; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder schema(AnalyticsApplicationOutputSchema schema) { this.schema = Objects.requireNonNull(schema); return this; - } public AnalyticsApplicationOutput build() { - return new AnalyticsApplicationOutput(id, kinesisFirehose, kinesisStream, lambda, name, schema); + } + public AnalyticsApplicationOutput build() { + final var o = new AnalyticsApplicationOutput(); + o.id = id; + o.kinesisFirehose = kinesisFirehose; + o.kinesisStream = kinesisStream; + o.lambda = lambda; + o.name = name; + o.schema = schema; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputKinesisFirehose.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputKinesisFirehose.java index 1a578c8fa91..30f37ef9d33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputKinesisFirehose.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputKinesisFirehose.java @@ -13,21 +13,14 @@ public final class AnalyticsApplicationOutputKinesisFirehose { * @return The ARN of the Kinesis Firehose delivery stream. * */ - private final String resourceArn; + private String resourceArn; /** * @return The ARN of the IAM Role used to access the stream. * */ - private final String roleArn; - - @CustomType.Constructor - private AnalyticsApplicationOutputKinesisFirehose( - @CustomType.Parameter("resourceArn") String resourceArn, - @CustomType.Parameter("roleArn") String roleArn) { - this.resourceArn = resourceArn; - this.roleArn = roleArn; - } + private String roleArn; + private AnalyticsApplicationOutputKinesisFirehose() {} /** * @return The ARN of the Kinesis Firehose delivery stream. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationOutputKinesisFirehose defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String resourceArn; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationOutputKinesisFirehose defaults) { Objects.requireNonNull(defaults); this.resourceArn = defaults.resourceArn; this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder resourceArn(String resourceArn) { this.resourceArn = Objects.requireNonNull(resourceArn); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public AnalyticsApplicationOutputKinesisFirehose build() { - return new AnalyticsApplicationOutputKinesisFirehose(resourceArn, roleArn); + } + public AnalyticsApplicationOutputKinesisFirehose build() { + final var o = new AnalyticsApplicationOutputKinesisFirehose(); + o.resourceArn = resourceArn; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputKinesisStream.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputKinesisStream.java index 800b03ecfbb..845bd20788b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputKinesisStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputKinesisStream.java @@ -13,21 +13,14 @@ public final class AnalyticsApplicationOutputKinesisStream { * @return The ARN of the Kinesis Stream. * */ - private final String resourceArn; + private String resourceArn; /** * @return The ARN of the IAM Role used to access the stream. * */ - private final String roleArn; - - @CustomType.Constructor - private AnalyticsApplicationOutputKinesisStream( - @CustomType.Parameter("resourceArn") String resourceArn, - @CustomType.Parameter("roleArn") String roleArn) { - this.resourceArn = resourceArn; - this.roleArn = roleArn; - } + private String roleArn; + private AnalyticsApplicationOutputKinesisStream() {} /** * @return The ARN of the Kinesis Stream. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationOutputKinesisStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String resourceArn; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationOutputKinesisStream defaults) { Objects.requireNonNull(defaults); this.resourceArn = defaults.resourceArn; this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder resourceArn(String resourceArn) { this.resourceArn = Objects.requireNonNull(resourceArn); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public AnalyticsApplicationOutputKinesisStream build() { - return new AnalyticsApplicationOutputKinesisStream(resourceArn, roleArn); + } + public AnalyticsApplicationOutputKinesisStream build() { + final var o = new AnalyticsApplicationOutputKinesisStream(); + o.resourceArn = resourceArn; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputLambda.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputLambda.java index dfcb0c35f4a..845734ab4c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputLambda.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputLambda.java @@ -13,21 +13,14 @@ public final class AnalyticsApplicationOutputLambda { * @return The ARN of the Lambda function. * */ - private final String resourceArn; + private String resourceArn; /** * @return The ARN of the IAM Role used to access the Lambda function. * */ - private final String roleArn; - - @CustomType.Constructor - private AnalyticsApplicationOutputLambda( - @CustomType.Parameter("resourceArn") String resourceArn, - @CustomType.Parameter("roleArn") String roleArn) { - this.resourceArn = resourceArn; - this.roleArn = roleArn; - } + private String roleArn; + private AnalyticsApplicationOutputLambda() {} /** * @return The ARN of the Lambda function. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationOutputLambda defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String resourceArn; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationOutputLambda defaults) { Objects.requireNonNull(defaults); this.resourceArn = defaults.resourceArn; this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder resourceArn(String resourceArn) { this.resourceArn = Objects.requireNonNull(resourceArn); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public AnalyticsApplicationOutputLambda build() { - return new AnalyticsApplicationOutputLambda(resourceArn, roleArn); + } + public AnalyticsApplicationOutputLambda build() { + final var o = new AnalyticsApplicationOutputLambda(); + o.resourceArn = resourceArn; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputSchema.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputSchema.java index 9c1781dfdec..1edaa7a0d96 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputSchema.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationOutputSchema.java @@ -13,13 +13,9 @@ public final class AnalyticsApplicationOutputSchema { * @return The Format Type of the records on the output stream. Can be `CSV` or `JSON`. * */ - private final String recordFormatType; - - @CustomType.Constructor - private AnalyticsApplicationOutputSchema(@CustomType.Parameter("recordFormatType") String recordFormatType) { - this.recordFormatType = recordFormatType; - } + private String recordFormatType; + private AnalyticsApplicationOutputSchema() {} /** * @return The Format Type of the records on the output stream. Can be `CSV` or `JSON`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationOutputSchema defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String recordFormatType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationOutputSchema defaults) { Objects.requireNonNull(defaults); this.recordFormatType = defaults.recordFormatType; } + @CustomType.Setter public Builder recordFormatType(String recordFormatType) { this.recordFormatType = Objects.requireNonNull(recordFormatType); return this; - } public AnalyticsApplicationOutputSchema build() { - return new AnalyticsApplicationOutputSchema(recordFormatType); + } + public AnalyticsApplicationOutputSchema build() { + final var o = new AnalyticsApplicationOutputSchema(); + o.recordFormatType = recordFormatType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationReferenceDataSources.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationReferenceDataSources.java index 28cdb8328db..264c01a6b52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationReferenceDataSources.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationReferenceDataSources.java @@ -17,35 +17,24 @@ public final class AnalyticsApplicationReferenceDataSources { * @return The ARN of the Kinesis Analytics Application. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The S3 configuration for the reference data source. See S3 Reference below for more details. * */ - private final AnalyticsApplicationReferenceDataSourcesS3 s3; + private AnalyticsApplicationReferenceDataSourcesS3 s3; /** * @return The Schema format of the data in the streaming source. See Source Schema below for more details. * */ - private final AnalyticsApplicationReferenceDataSourcesSchema schema; + private AnalyticsApplicationReferenceDataSourcesSchema schema; /** * @return The in-application Table Name. * */ - private final String tableName; - - @CustomType.Constructor - private AnalyticsApplicationReferenceDataSources( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("s3") AnalyticsApplicationReferenceDataSourcesS3 s3, - @CustomType.Parameter("schema") AnalyticsApplicationReferenceDataSourcesSchema schema, - @CustomType.Parameter("tableName") String tableName) { - this.id = id; - this.s3 = s3; - this.schema = schema; - this.tableName = tableName; - } + private String tableName; + private AnalyticsApplicationReferenceDataSources() {} /** * @return The ARN of the Kinesis Analytics Application. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationReferenceDataSources defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private AnalyticsApplicationReferenceDataSourcesS3 s3; private AnalyticsApplicationReferenceDataSourcesSchema schema; private String tableName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationReferenceDataSources defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -101,23 +86,33 @@ public Builder(AnalyticsApplicationReferenceDataSources defaults) { this.tableName = defaults.tableName; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder s3(AnalyticsApplicationReferenceDataSourcesS3 s3) { this.s3 = Objects.requireNonNull(s3); return this; } + @CustomType.Setter public Builder schema(AnalyticsApplicationReferenceDataSourcesSchema schema) { this.schema = Objects.requireNonNull(schema); return this; } + @CustomType.Setter public Builder tableName(String tableName) { this.tableName = Objects.requireNonNull(tableName); return this; - } public AnalyticsApplicationReferenceDataSources build() { - return new AnalyticsApplicationReferenceDataSources(id, s3, schema, tableName); + } + public AnalyticsApplicationReferenceDataSources build() { + final var o = new AnalyticsApplicationReferenceDataSources(); + o.id = id; + o.s3 = s3; + o.schema = schema; + o.tableName = tableName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationReferenceDataSourcesS3.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationReferenceDataSourcesS3.java index 7924b9e17d1..c24483f47f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationReferenceDataSourcesS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationReferenceDataSourcesS3.java @@ -13,28 +13,19 @@ public final class AnalyticsApplicationReferenceDataSourcesS3 { * @return The S3 Bucket ARN. * */ - private final String bucketArn; + private String bucketArn; /** * @return The File Key name containing reference data. * */ - private final String fileKey; + private String fileKey; /** * @return The ARN of the IAM Role used to send application messages. * */ - private final String roleArn; - - @CustomType.Constructor - private AnalyticsApplicationReferenceDataSourcesS3( - @CustomType.Parameter("bucketArn") String bucketArn, - @CustomType.Parameter("fileKey") String fileKey, - @CustomType.Parameter("roleArn") String roleArn) { - this.bucketArn = bucketArn; - this.fileKey = fileKey; - this.roleArn = roleArn; - } + private String roleArn; + private AnalyticsApplicationReferenceDataSourcesS3() {} /** * @return The S3 Bucket ARN. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationReferenceDataSourcesS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketArn; private String fileKey; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationReferenceDataSourcesS3 defaults) { Objects.requireNonNull(defaults); this.bucketArn = defaults.bucketArn; @@ -81,19 +68,27 @@ public Builder(AnalyticsApplicationReferenceDataSourcesS3 defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder bucketArn(String bucketArn) { this.bucketArn = Objects.requireNonNull(bucketArn); return this; } + @CustomType.Setter public Builder fileKey(String fileKey) { this.fileKey = Objects.requireNonNull(fileKey); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public AnalyticsApplicationReferenceDataSourcesS3 build() { - return new AnalyticsApplicationReferenceDataSourcesS3(bucketArn, fileKey, roleArn); + } + public AnalyticsApplicationReferenceDataSourcesS3 build() { + final var o = new AnalyticsApplicationReferenceDataSourcesS3(); + o.bucketArn = bucketArn; + o.fileKey = fileKey; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationReferenceDataSourcesSchema.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationReferenceDataSourcesSchema.java index 5af1646e9f1..2af1582664d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationReferenceDataSourcesSchema.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/AnalyticsApplicationReferenceDataSourcesSchema.java @@ -19,29 +19,20 @@ public final class AnalyticsApplicationReferenceDataSourcesSchema { * See Record Columns below for more details. * */ - private final List recordColumns; + private List recordColumns; /** * @return The Encoding of the record in the streaming source. * */ - private final @Nullable String recordEncoding; + private @Nullable String recordEncoding; /** * @return The Record Format and mapping information to schematize a record. * See Record Format below for more details. * */ - private final AnalyticsApplicationReferenceDataSourcesSchemaRecordFormat recordFormat; - - @CustomType.Constructor - private AnalyticsApplicationReferenceDataSourcesSchema( - @CustomType.Parameter("recordColumns") List recordColumns, - @CustomType.Parameter("recordEncoding") @Nullable String recordEncoding, - @CustomType.Parameter("recordFormat") AnalyticsApplicationReferenceDataSourcesSchemaRecordFormat recordFormat) { - this.recordColumns = recordColumns; - this.recordEncoding = recordEncoding; - this.recordFormat = recordFormat; - } + private AnalyticsApplicationReferenceDataSourcesSchemaRecordFormat recordFormat; + private AnalyticsApplicationReferenceDataSourcesSchema() {} /** * @return The Record Column mapping for the streaming source data element. * See Record Columns below for more details. @@ -73,16 +64,12 @@ public static Builder builder() { public static Builder builder(AnalyticsApplicationReferenceDataSourcesSchema defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List recordColumns; private @Nullable String recordEncoding; private AnalyticsApplicationReferenceDataSourcesSchemaRecordFormat recordFormat; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsApplicationReferenceDataSourcesSchema defaults) { Objects.requireNonNull(defaults); this.recordColumns = defaults.recordColumns; @@ -90,6 +77,7 @@ public Builder(AnalyticsApplicationReferenceDataSourcesSchema defaults) { this.recordFormat = defaults.recordFormat; } + @CustomType.Setter public Builder recordColumns(List recordColumns) { this.recordColumns = Objects.requireNonNull(recordColumns); return this; @@ -97,15 +85,22 @@ public Builder recordColumns(List processors; - - @CustomType.Constructor - private FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("processors") @Nullable List processors) { - this.enabled = enabled; - this.processors = processors; - } + private @Nullable List processors; + private FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfiguration() {} /** * @return Enables or disables data processing. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List processors; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.processors = defaults.processors; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder processors(@Nullable List processors) { this.processors = processors; return this; } public Builder processors(FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfigurationProcessor... processors) { return processors(List.of(processors)); - } public FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfiguration build() { - return new FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfiguration(enabled, processors); + } + public FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfiguration build() { + final var o = new FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfiguration(); + o.enabled = enabled; + o.processors = processors; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfigurationProcessor.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfigurationProcessor.java index 54a1ba3cd81..1bcec65d8b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfigurationProcessor.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfigurationProcessor.java @@ -16,21 +16,14 @@ public final class FirehoseDeliveryStreamElasticsearchConfigurationProcessingCon * @return Array of processor parameters. More details are given below * */ - private final @Nullable List parameters; + private @Nullable List parameters; /** * @return The type of processor. Valid Values: `RecordDeAggregation`, `Lambda`, `MetadataExtraction`, `AppendDelimiterToRecord`. Validation is done against [AWS SDK constants](https://docs.aws.amazon.com/sdk-for-go/api/service/firehose/#pkg-constants); so that values not explicitly listed may also work. * */ - private final String type; - - @CustomType.Constructor - private FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfigurationProcessor( - @CustomType.Parameter("parameters") @Nullable List parameters, - @CustomType.Parameter("type") String type) { - this.parameters = parameters; - this.type = type; - } + private String type; + private FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfigurationProcessor() {} /** * @return Array of processor parameters. More details are given below * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfigurationProcessor defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List parameters; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamElasticsearchConfigurationProcessingConfigurationProcessor defaults) { Objects.requireNonNull(defaults); this.parameters = defaults.parameters; this.type = defaults.type; } + @CustomType.Setter public Builder parameters(@Nullable List parameters) { this.parameters = parameters; return this; @@ -75,11 +65,16 @@ public Builder parameters(@Nullable List securityGroupIds; + private List securityGroupIds; /** * @return A list of subnet IDs to associate with Kinesis Firehose. * */ - private final List subnetIds; - private final @Nullable String vpcId; - - @CustomType.Constructor - private FirehoseDeliveryStreamElasticsearchConfigurationVpcConfig( - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.roleArn = roleArn; - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private List subnetIds; + private @Nullable String vpcId; + private FirehoseDeliveryStreamElasticsearchConfigurationVpcConfig() {} /** * @return The ARN of the IAM role to be assumed by Firehose for calling the Amazon EC2 configuration API and for creating network interfaces. Make sure role has necessary [IAM permissions](https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-es-vpc) * @@ -73,17 +62,13 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamElasticsearchConfigurationVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String roleArn; private List securityGroupIds; private List subnetIds; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamElasticsearchConfigurationVpcConfig defaults) { Objects.requireNonNull(defaults); this.roleArn = defaults.roleArn; @@ -92,10 +77,12 @@ public Builder(FirehoseDeliveryStreamElasticsearchConfigurationVpcConfig default this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -103,6 +90,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -110,11 +98,18 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(@Nullable String vpcId) { this.vpcId = vpcId; return this; - } public FirehoseDeliveryStreamElasticsearchConfigurationVpcConfig build() { - return new FirehoseDeliveryStreamElasticsearchConfigurationVpcConfig(roleArn, securityGroupIds, subnetIds, vpcId); + } + public FirehoseDeliveryStreamElasticsearchConfigurationVpcConfig build() { + final var o = new FirehoseDeliveryStreamElasticsearchConfigurationVpcConfig(); + o.roleArn = roleArn; + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3Configuration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3Configuration.java index 5fd512f64e5..bb19d6b26b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3Configuration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3Configuration.java @@ -21,107 +21,76 @@ public final class FirehoseDeliveryStreamExtendedS3Configuration { * @return The ARN of the S3 bucket * */ - private final String bucketArn; + private String bucketArn; /** * @return Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 300. * */ - private final @Nullable Integer bufferInterval; + private @Nullable Integer bufferInterval; /** * @return Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5. * We recommend setting SizeInMBs to a value greater than the amount of data you typically ingest into the delivery stream in 10 seconds. For example, if you typically ingest data at 1 MB/sec set SizeInMBs to be 10 MB or higher. * */ - private final @Nullable Integer bufferSize; + private @Nullable Integer bufferSize; /** * @return The CloudWatch Logging Options for the delivery stream. More details are given below * */ - private final @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions cloudwatchLoggingOptions; + private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions cloudwatchLoggingOptions; /** * @return The compression format. If no value is specified, the default is `UNCOMPRESSED`. Other supported values are `GZIP`, `ZIP`, `Snappy`, & `HADOOP_SNAPPY`. * */ - private final @Nullable String compressionFormat; + private @Nullable String compressionFormat; /** * @return Nested argument for the serializer, deserializer, and schema for converting data from the JSON format to the Parquet or ORC format before writing it to Amazon S3. More details given below. * */ - private final @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration dataFormatConversionConfiguration; + private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration dataFormatConversionConfiguration; /** * @return The configuration for dynamic partitioning. See Dynamic Partitioning Configuration below for more details. * */ - private final @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration dynamicPartitioningConfiguration; + private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration dynamicPartitioningConfiguration; /** * @return Prefix added to failed records before writing them to S3. Not currently supported for `redshift` destination. This prefix appears immediately following the bucket name. For information about how to specify this prefix, see [Custom Prefixes for Amazon S3 Objects](https://docs.aws.amazon.com/firehose/latest/dev/s3-prefixes.html). * */ - private final @Nullable String errorOutputPrefix; + private @Nullable String errorOutputPrefix; /** * @return Specifies the KMS key ARN the stream will use to encrypt data. If not set, no encryption will * be used. * */ - private final @Nullable String kmsKeyArn; + private @Nullable String kmsKeyArn; /** * @return The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered S3 files. You can specify an extra prefix to be added in front of the time format prefix. Note that if the prefix ends with a slash, it appears as a folder in the S3 bucket * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return The data processing configuration. More details are given below. * */ - private final @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration processingConfiguration; + private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration processingConfiguration; /** * @return The role that Kinesis Data Firehose can use to access AWS Glue. This role must be in the same account you use for Kinesis Data Firehose. Cross-account roles aren't allowed. * */ - private final String roleArn; + private String roleArn; /** * @return The configuration for backup in Amazon S3. Required if `s3_backup_mode` is `Enabled`. Supports the same fields as `s3_configuration` object. * */ - private final @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationS3BackupConfiguration s3BackupConfiguration; + private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationS3BackupConfiguration s3BackupConfiguration; /** * @return The Amazon S3 backup mode. Valid values are `Disabled` and `Enabled`. Default value is `Disabled`. * */ - private final @Nullable String s3BackupMode; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3Configuration( - @CustomType.Parameter("bucketArn") String bucketArn, - @CustomType.Parameter("bufferInterval") @Nullable Integer bufferInterval, - @CustomType.Parameter("bufferSize") @Nullable Integer bufferSize, - @CustomType.Parameter("cloudwatchLoggingOptions") @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions cloudwatchLoggingOptions, - @CustomType.Parameter("compressionFormat") @Nullable String compressionFormat, - @CustomType.Parameter("dataFormatConversionConfiguration") @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration dataFormatConversionConfiguration, - @CustomType.Parameter("dynamicPartitioningConfiguration") @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration dynamicPartitioningConfiguration, - @CustomType.Parameter("errorOutputPrefix") @Nullable String errorOutputPrefix, - @CustomType.Parameter("kmsKeyArn") @Nullable String kmsKeyArn, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("processingConfiguration") @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration processingConfiguration, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("s3BackupConfiguration") @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationS3BackupConfiguration s3BackupConfiguration, - @CustomType.Parameter("s3BackupMode") @Nullable String s3BackupMode) { - this.bucketArn = bucketArn; - this.bufferInterval = bufferInterval; - this.bufferSize = bufferSize; - this.cloudwatchLoggingOptions = cloudwatchLoggingOptions; - this.compressionFormat = compressionFormat; - this.dataFormatConversionConfiguration = dataFormatConversionConfiguration; - this.dynamicPartitioningConfiguration = dynamicPartitioningConfiguration; - this.errorOutputPrefix = errorOutputPrefix; - this.kmsKeyArn = kmsKeyArn; - this.prefix = prefix; - this.processingConfiguration = processingConfiguration; - this.roleArn = roleArn; - this.s3BackupConfiguration = s3BackupConfiguration; - this.s3BackupMode = s3BackupMode; - } + private @Nullable String s3BackupMode; + private FirehoseDeliveryStreamExtendedS3Configuration() {} /** * @return The ARN of the S3 bucket * @@ -230,7 +199,7 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3Configuration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketArn; private @Nullable Integer bufferInterval; @@ -246,11 +215,7 @@ public static final class Builder { private String roleArn; private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationS3BackupConfiguration s3BackupConfiguration; private @Nullable String s3BackupMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3Configuration defaults) { Objects.requireNonNull(defaults); this.bucketArn = defaults.bucketArn; @@ -269,63 +234,93 @@ public Builder(FirehoseDeliveryStreamExtendedS3Configuration defaults) { this.s3BackupMode = defaults.s3BackupMode; } + @CustomType.Setter public Builder bucketArn(String bucketArn) { this.bucketArn = Objects.requireNonNull(bucketArn); return this; } + @CustomType.Setter public Builder bufferInterval(@Nullable Integer bufferInterval) { this.bufferInterval = bufferInterval; return this; } + @CustomType.Setter public Builder bufferSize(@Nullable Integer bufferSize) { this.bufferSize = bufferSize; return this; } + @CustomType.Setter public Builder cloudwatchLoggingOptions(@Nullable FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions cloudwatchLoggingOptions) { this.cloudwatchLoggingOptions = cloudwatchLoggingOptions; return this; } + @CustomType.Setter public Builder compressionFormat(@Nullable String compressionFormat) { this.compressionFormat = compressionFormat; return this; } + @CustomType.Setter public Builder dataFormatConversionConfiguration(@Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration dataFormatConversionConfiguration) { this.dataFormatConversionConfiguration = dataFormatConversionConfiguration; return this; } + @CustomType.Setter public Builder dynamicPartitioningConfiguration(@Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration dynamicPartitioningConfiguration) { this.dynamicPartitioningConfiguration = dynamicPartitioningConfiguration; return this; } + @CustomType.Setter public Builder errorOutputPrefix(@Nullable String errorOutputPrefix) { this.errorOutputPrefix = errorOutputPrefix; return this; } + @CustomType.Setter public Builder kmsKeyArn(@Nullable String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder processingConfiguration(@Nullable FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration processingConfiguration) { this.processingConfiguration = processingConfiguration; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder s3BackupConfiguration(@Nullable FirehoseDeliveryStreamExtendedS3ConfigurationS3BackupConfiguration s3BackupConfiguration) { this.s3BackupConfiguration = s3BackupConfiguration; return this; } + @CustomType.Setter public Builder s3BackupMode(@Nullable String s3BackupMode) { this.s3BackupMode = s3BackupMode; return this; - } public FirehoseDeliveryStreamExtendedS3Configuration build() { - return new FirehoseDeliveryStreamExtendedS3Configuration(bucketArn, bufferInterval, bufferSize, cloudwatchLoggingOptions, compressionFormat, dataFormatConversionConfiguration, dynamicPartitioningConfiguration, errorOutputPrefix, kmsKeyArn, prefix, processingConfiguration, roleArn, s3BackupConfiguration, s3BackupMode); + } + public FirehoseDeliveryStreamExtendedS3Configuration build() { + final var o = new FirehoseDeliveryStreamExtendedS3Configuration(); + o.bucketArn = bucketArn; + o.bufferInterval = bufferInterval; + o.bufferSize = bufferSize; + o.cloudwatchLoggingOptions = cloudwatchLoggingOptions; + o.compressionFormat = compressionFormat; + o.dataFormatConversionConfiguration = dataFormatConversionConfiguration; + o.dynamicPartitioningConfiguration = dynamicPartitioningConfiguration; + o.errorOutputPrefix = errorOutputPrefix; + o.kmsKeyArn = kmsKeyArn; + o.prefix = prefix; + o.processingConfiguration = processingConfiguration; + o.roleArn = roleArn; + o.s3BackupConfiguration = s3BackupConfiguration; + o.s3BackupMode = s3BackupMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions.java index f662efb089b..f3be29d1c10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions.java @@ -16,28 +16,19 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggin * @return Enables or disables the logging. Defaults to `false`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The CloudWatch group name for logging. This value is required if `enabled` is true. * */ - private final @Nullable String logGroupName; + private @Nullable String logGroupName; /** * @return The CloudWatch log stream name for logging. This value is required if `enabled` is true. * */ - private final @Nullable String logStreamName; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logGroupName") @Nullable String logGroupName, - @CustomType.Parameter("logStreamName") @Nullable String logStreamName) { - this.enabled = enabled; - this.logGroupName = logGroupName; - this.logStreamName = logStreamName; - } + private @Nullable String logStreamName; + private FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions() {} /** * @return Enables or disables the logging. Defaults to `false`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable String logGroupName; private @Nullable String logStreamName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; @@ -84,19 +71,27 @@ public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOpt this.logStreamName = defaults.logStreamName; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logGroupName(@Nullable String logGroupName) { this.logGroupName = logGroupName; return this; } + @CustomType.Setter public Builder logStreamName(@Nullable String logStreamName) { this.logStreamName = logStreamName; return this; - } public FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions(enabled, logGroupName, logStreamName); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationCloudwatchLoggingOptions(); + o.enabled = enabled; + o.logGroupName = logGroupName; + o.logStreamName = logStreamName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration.java index 7ab9b8b62f2..0c6c8acbda8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration.java @@ -18,35 +18,24 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConver * @return Enables or disables [dynamic partitioning](https://docs.aws.amazon.com/firehose/latest/dev/dynamic-partitioning.html). Defaults to `false`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Nested argument that specifies the deserializer that you want Kinesis Data Firehose to use to convert the format of your data from JSON. More details below. * */ - private final FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration inputFormatConfiguration; + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration inputFormatConfiguration; /** * @return Nested argument that specifies the serializer that you want Kinesis Data Firehose to use to convert the format of your data to the Parquet or ORC format. More details below. * */ - private final FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration outputFormatConfiguration; + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration outputFormatConfiguration; /** * @return Nested argument that specifies the AWS Glue Data Catalog table that contains the column information. More details below. * */ - private final FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration schemaConfiguration; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("inputFormatConfiguration") FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration inputFormatConfiguration, - @CustomType.Parameter("outputFormatConfiguration") FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration outputFormatConfiguration, - @CustomType.Parameter("schemaConfiguration") FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration schemaConfiguration) { - this.enabled = enabled; - this.inputFormatConfiguration = inputFormatConfiguration; - this.outputFormatConfiguration = outputFormatConfiguration; - this.schemaConfiguration = schemaConfiguration; - } + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration schemaConfiguration; + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration() {} /** * @return Enables or disables [dynamic partitioning](https://docs.aws.amazon.com/firehose/latest/dev/dynamic-partitioning.html). Defaults to `false`. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration inputFormatConfiguration; private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration outputFormatConfiguration; private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration schemaConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; @@ -102,23 +87,33 @@ public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversion this.schemaConfiguration = defaults.schemaConfiguration; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder inputFormatConfiguration(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration inputFormatConfiguration) { this.inputFormatConfiguration = Objects.requireNonNull(inputFormatConfiguration); return this; } + @CustomType.Setter public Builder outputFormatConfiguration(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration outputFormatConfiguration) { this.outputFormatConfiguration = Objects.requireNonNull(outputFormatConfiguration); return this; } + @CustomType.Setter public Builder schemaConfiguration(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration schemaConfiguration) { this.schemaConfiguration = Objects.requireNonNull(schemaConfiguration); return this; - } public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration(enabled, inputFormatConfiguration, outputFormatConfiguration, schemaConfiguration); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfiguration(); + o.enabled = enabled; + o.inputFormatConfiguration = inputFormatConfiguration; + o.outputFormatConfiguration = outputFormatConfiguration; + o.schemaConfiguration = schemaConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration.java index 9afff5917be..bceb7d6b25b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration.java @@ -13,13 +13,9 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConver * @return Nested argument that specifies which deserializer to use. You can choose either the Apache Hive JSON SerDe or the OpenX JSON SerDe. More details below. * */ - private final FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer deserializer; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration(@CustomType.Parameter("deserializer") FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer deserializer) { - this.deserializer = deserializer; - } + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer deserializer; + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration() {} /** * @return Nested argument that specifies which deserializer to use. You can choose either the Apache Hive JSON SerDe or the OpenX JSON SerDe. More details below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer deserializer; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration defaults) { Objects.requireNonNull(defaults); this.deserializer = defaults.deserializer; } + @CustomType.Setter public Builder deserializer(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer deserializer) { this.deserializer = Objects.requireNonNull(deserializer); return this; - } public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration(deserializer); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfiguration(); + o.deserializer = deserializer; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer.java index 2b7a7eaed91..334c2895045 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer.java @@ -16,21 +16,14 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConver * @return Nested argument that specifies the native Hive / HCatalog JsonSerDe. More details below. * */ - private final @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe hiveJsonSerDe; + private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe hiveJsonSerDe; /** * @return Nested argument that specifies the OpenX SerDe. More details below. * */ - private final @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe openXJsonSerDe; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer( - @CustomType.Parameter("hiveJsonSerDe") @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe hiveJsonSerDe, - @CustomType.Parameter("openXJsonSerDe") @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe openXJsonSerDe) { - this.hiveJsonSerDe = hiveJsonSerDe; - this.openXJsonSerDe = openXJsonSerDe; - } + private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe openXJsonSerDe; + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer() {} /** * @return Nested argument that specifies the native Hive / HCatalog JsonSerDe. More details below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe hiveJsonSerDe; private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe openXJsonSerDe; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer defaults) { Objects.requireNonNull(defaults); this.hiveJsonSerDe = defaults.hiveJsonSerDe; this.openXJsonSerDe = defaults.openXJsonSerDe; } + @CustomType.Setter public Builder hiveJsonSerDe(@Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe hiveJsonSerDe) { this.hiveJsonSerDe = hiveJsonSerDe; return this; } + @CustomType.Setter public Builder openXJsonSerDe(@Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe openXJsonSerDe) { this.openXJsonSerDe = openXJsonSerDe; return this; - } public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer(hiveJsonSerDe, openXJsonSerDe); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializer(); + o.hiveJsonSerDe = hiveJsonSerDe; + o.openXJsonSerDe = openXJsonSerDe; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe.java index bb5d43a5cf7..60c4d7d3238 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe.java @@ -15,13 +15,9 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConver * @return A list of how you want Kinesis Data Firehose to parse the date and time stamps that may be present in your input data JSON. To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more information, see [Class DateTimeFormat](https://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html). You can also use the special value millis to parse time stamps in epoch milliseconds. If you don't specify a format, Kinesis Data Firehose uses java.sql.Timestamp::valueOf by default. * */ - private final @Nullable List timestampFormats; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe(@CustomType.Parameter("timestampFormats") @Nullable List timestampFormats) { - this.timestampFormats = timestampFormats; - } + private @Nullable List timestampFormats; + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe() {} /** * @return A list of how you want Kinesis Data Firehose to parse the date and time stamps that may be present in your input data JSON. To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more information, see [Class DateTimeFormat](https://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html). You can also use the special value millis to parse time stamps in epoch milliseconds. If you don't specify a format, Kinesis Data Firehose uses java.sql.Timestamp::valueOf by default. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List timestampFormats; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe defaults) { Objects.requireNonNull(defaults); this.timestampFormats = defaults.timestampFormats; } + @CustomType.Setter public Builder timestampFormats(@Nullable List timestampFormats) { this.timestampFormats = timestampFormats; return this; } public Builder timestampFormats(String... timestampFormats) { return timestampFormats(List.of(timestampFormats)); - } public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe(timestampFormats); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerHiveJsonSerDe(); + o.timestampFormats = timestampFormats; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe.java index 542c74717bd..1f2d305adbe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe.java @@ -17,28 +17,19 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConver * @return When set to true, which is the default, Kinesis Data Firehose converts JSON keys to lowercase before deserializing them. * */ - private final @Nullable Boolean caseInsensitive; + private @Nullable Boolean caseInsensitive; /** * @return A map of column names to JSON keys that aren't identical to the column names. This is useful when the JSON contains keys that are Hive keywords. For example, timestamp is a Hive keyword. If you have a JSON key named timestamp, set this parameter to `{ ts = "timestamp" }` to map this key to a column named ts. * */ - private final @Nullable Map columnToJsonKeyMappings; + private @Nullable Map columnToJsonKeyMappings; /** * @return When set to `true`, specifies that the names of the keys include dots and that you want Kinesis Data Firehose to replace them with underscores. This is useful because Apache Hive does not allow dots in column names. For example, if the JSON contains a key whose name is "a.b", you can define the column name to be "a_b" when using this option. Defaults to `false`. * */ - private final @Nullable Boolean convertDotsInJsonKeysToUnderscores; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe( - @CustomType.Parameter("caseInsensitive") @Nullable Boolean caseInsensitive, - @CustomType.Parameter("columnToJsonKeyMappings") @Nullable Map columnToJsonKeyMappings, - @CustomType.Parameter("convertDotsInJsonKeysToUnderscores") @Nullable Boolean convertDotsInJsonKeysToUnderscores) { - this.caseInsensitive = caseInsensitive; - this.columnToJsonKeyMappings = columnToJsonKeyMappings; - this.convertDotsInJsonKeysToUnderscores = convertDotsInJsonKeysToUnderscores; - } + private @Nullable Boolean convertDotsInJsonKeysToUnderscores; + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe() {} /** * @return When set to true, which is the default, Kinesis Data Firehose converts JSON keys to lowercase before deserializing them. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean caseInsensitive; private @Nullable Map columnToJsonKeyMappings; private @Nullable Boolean convertDotsInJsonKeysToUnderscores; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe defaults) { Objects.requireNonNull(defaults); this.caseInsensitive = defaults.caseInsensitive; @@ -85,19 +72,27 @@ public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversion this.convertDotsInJsonKeysToUnderscores = defaults.convertDotsInJsonKeysToUnderscores; } + @CustomType.Setter public Builder caseInsensitive(@Nullable Boolean caseInsensitive) { this.caseInsensitive = caseInsensitive; return this; } + @CustomType.Setter public Builder columnToJsonKeyMappings(@Nullable Map columnToJsonKeyMappings) { this.columnToJsonKeyMappings = columnToJsonKeyMappings; return this; } + @CustomType.Setter public Builder convertDotsInJsonKeysToUnderscores(@Nullable Boolean convertDotsInJsonKeysToUnderscores) { this.convertDotsInJsonKeysToUnderscores = convertDotsInJsonKeysToUnderscores; return this; - } public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe(caseInsensitive, columnToJsonKeyMappings, convertDotsInJsonKeysToUnderscores); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationInputFormatConfigurationDeserializerOpenXJsonSerDe(); + o.caseInsensitive = caseInsensitive; + o.columnToJsonKeyMappings = columnToJsonKeyMappings; + o.convertDotsInJsonKeysToUnderscores = convertDotsInJsonKeysToUnderscores; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration.java index 0fc0f72939c..69f1b75245a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration.java @@ -13,13 +13,9 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConver * @return Nested argument that specifies which serializer to use. You can choose either the ORC SerDe or the Parquet SerDe. More details below. * */ - private final FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer serializer; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration(@CustomType.Parameter("serializer") FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer serializer) { - this.serializer = serializer; - } + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer serializer; + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration() {} /** * @return Nested argument that specifies which serializer to use. You can choose either the ORC SerDe or the Parquet SerDe. More details below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer serializer; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration defaults) { Objects.requireNonNull(defaults); this.serializer = defaults.serializer; } + @CustomType.Setter public Builder serializer(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer serializer) { this.serializer = Objects.requireNonNull(serializer); return this; - } public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration(serializer); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfiguration(); + o.serializer = serializer; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer.java index ab36bc28363..b79701c863e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer.java @@ -16,21 +16,14 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConver * @return Nested argument that specifies converting data to the ORC format before storing it in Amazon S3. For more information, see [Apache ORC](https://orc.apache.org/docs/). More details below. * */ - private final @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe orcSerDe; + private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe orcSerDe; /** * @return Nested argument that specifies converting data to the Parquet format before storing it in Amazon S3. For more information, see [Apache Parquet](https://parquet.apache.org/documentation/latest/). More details below. * */ - private final @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe parquetSerDe; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer( - @CustomType.Parameter("orcSerDe") @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe orcSerDe, - @CustomType.Parameter("parquetSerDe") @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe parquetSerDe) { - this.orcSerDe = orcSerDe; - this.parquetSerDe = parquetSerDe; - } + private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe parquetSerDe; + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer() {} /** * @return Nested argument that specifies converting data to the ORC format before storing it in Amazon S3. For more information, see [Apache ORC](https://orc.apache.org/docs/). More details below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe orcSerDe; private @Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe parquetSerDe; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer defaults) { Objects.requireNonNull(defaults); this.orcSerDe = defaults.orcSerDe; this.parquetSerDe = defaults.parquetSerDe; } + @CustomType.Setter public Builder orcSerDe(@Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe orcSerDe) { this.orcSerDe = orcSerDe; return this; } + @CustomType.Setter public Builder parquetSerDe(@Nullable FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe parquetSerDe) { this.parquetSerDe = parquetSerDe; return this; - } public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer(orcSerDe, parquetSerDe); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializer(); + o.orcSerDe = orcSerDe; + o.parquetSerDe = parquetSerDe; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe.java index 1aa62d1c6b9..ac58cc076f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe.java @@ -19,77 +19,54 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConver * @return The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations. * */ - private final @Nullable Integer blockSizeBytes; + private @Nullable Integer blockSizeBytes; /** * @return A list of column names for which you want Kinesis Data Firehose to create bloom filters. * */ - private final @Nullable List bloomFilterColumns; + private @Nullable List bloomFilterColumns; /** * @return The Bloom filter false positive probability (FPP). The lower the FPP, the bigger the Bloom filter. The default value is `0.05`, the minimum is `0`, and the maximum is `1`. * */ - private final @Nullable Double bloomFilterFalsePositiveProbability; + private @Nullable Double bloomFilterFalsePositiveProbability; /** * @return The compression code to use over data blocks. The possible values are `UNCOMPRESSED`, `SNAPPY`, and `GZIP`, with the default being `SNAPPY`. Use `SNAPPY` for higher decompression speed. Use `GZIP` if the compression ratio is more important than speed. * */ - private final @Nullable String compression; + private @Nullable String compression; /** * @return A float that represents the fraction of the total number of non-null rows. To turn off dictionary encoding, set this fraction to a number that is less than the number of distinct keys in a dictionary. To always use dictionary encoding, set this threshold to `1`. * */ - private final @Nullable Double dictionaryKeyThreshold; + private @Nullable Double dictionaryKeyThreshold; /** * @return Set this to `true` to indicate that you want stripes to be padded to the HDFS block boundaries. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is `false`. * */ - private final @Nullable Boolean enablePadding; + private @Nullable Boolean enablePadding; /** * @return The version of the file to write. The possible values are `V0_11` and `V0_12`. The default is `V0_12`. * */ - private final @Nullable String formatVersion; + private @Nullable String formatVersion; /** * @return A float between 0 and 1 that defines the tolerance for block padding as a decimal fraction of stripe size. The default value is `0.05`, which means 5 percent of stripe size. For the default values of 64 MiB ORC stripes and 256 MiB HDFS blocks, the default block padding tolerance of 5 percent reserves a maximum of 3.2 MiB for padding within the 256 MiB block. In such a case, if the available size within the block is more than 3.2 MiB, a new, smaller stripe is inserted to fit within that space. This ensures that no stripe crosses block boundaries and causes remote reads within a node-local task. Kinesis Data Firehose ignores this parameter when `enable_padding` is `false`. * */ - private final @Nullable Double paddingTolerance; + private @Nullable Double paddingTolerance; /** * @return The number of rows between index entries. The default is `10000` and the minimum is `1000`. * */ - private final @Nullable Integer rowIndexStride; + private @Nullable Integer rowIndexStride; /** * @return The number of bytes in each stripe. The default is 64 MiB and the minimum is 8 MiB. * */ - private final @Nullable Integer stripeSizeBytes; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe( - @CustomType.Parameter("blockSizeBytes") @Nullable Integer blockSizeBytes, - @CustomType.Parameter("bloomFilterColumns") @Nullable List bloomFilterColumns, - @CustomType.Parameter("bloomFilterFalsePositiveProbability") @Nullable Double bloomFilterFalsePositiveProbability, - @CustomType.Parameter("compression") @Nullable String compression, - @CustomType.Parameter("dictionaryKeyThreshold") @Nullable Double dictionaryKeyThreshold, - @CustomType.Parameter("enablePadding") @Nullable Boolean enablePadding, - @CustomType.Parameter("formatVersion") @Nullable String formatVersion, - @CustomType.Parameter("paddingTolerance") @Nullable Double paddingTolerance, - @CustomType.Parameter("rowIndexStride") @Nullable Integer rowIndexStride, - @CustomType.Parameter("stripeSizeBytes") @Nullable Integer stripeSizeBytes) { - this.blockSizeBytes = blockSizeBytes; - this.bloomFilterColumns = bloomFilterColumns; - this.bloomFilterFalsePositiveProbability = bloomFilterFalsePositiveProbability; - this.compression = compression; - this.dictionaryKeyThreshold = dictionaryKeyThreshold; - this.enablePadding = enablePadding; - this.formatVersion = formatVersion; - this.paddingTolerance = paddingTolerance; - this.rowIndexStride = rowIndexStride; - this.stripeSizeBytes = stripeSizeBytes; - } + private @Nullable Integer stripeSizeBytes; + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe() {} /** * @return The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations. * @@ -168,7 +145,7 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer blockSizeBytes; private @Nullable List bloomFilterColumns; @@ -180,11 +157,7 @@ public static final class Builder { private @Nullable Double paddingTolerance; private @Nullable Integer rowIndexStride; private @Nullable Integer stripeSizeBytes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe defaults) { Objects.requireNonNull(defaults); this.blockSizeBytes = defaults.blockSizeBytes; @@ -199,10 +172,12 @@ public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversion this.stripeSizeBytes = defaults.stripeSizeBytes; } + @CustomType.Setter public Builder blockSizeBytes(@Nullable Integer blockSizeBytes) { this.blockSizeBytes = blockSizeBytes; return this; } + @CustomType.Setter public Builder bloomFilterColumns(@Nullable List bloomFilterColumns) { this.bloomFilterColumns = bloomFilterColumns; return this; @@ -210,39 +185,59 @@ public Builder bloomFilterColumns(@Nullable List bloomFilterColumns) { public Builder bloomFilterColumns(String... bloomFilterColumns) { return bloomFilterColumns(List.of(bloomFilterColumns)); } + @CustomType.Setter public Builder bloomFilterFalsePositiveProbability(@Nullable Double bloomFilterFalsePositiveProbability) { this.bloomFilterFalsePositiveProbability = bloomFilterFalsePositiveProbability; return this; } + @CustomType.Setter public Builder compression(@Nullable String compression) { this.compression = compression; return this; } + @CustomType.Setter public Builder dictionaryKeyThreshold(@Nullable Double dictionaryKeyThreshold) { this.dictionaryKeyThreshold = dictionaryKeyThreshold; return this; } + @CustomType.Setter public Builder enablePadding(@Nullable Boolean enablePadding) { this.enablePadding = enablePadding; return this; } + @CustomType.Setter public Builder formatVersion(@Nullable String formatVersion) { this.formatVersion = formatVersion; return this; } + @CustomType.Setter public Builder paddingTolerance(@Nullable Double paddingTolerance) { this.paddingTolerance = paddingTolerance; return this; } + @CustomType.Setter public Builder rowIndexStride(@Nullable Integer rowIndexStride) { this.rowIndexStride = rowIndexStride; return this; } + @CustomType.Setter public Builder stripeSizeBytes(@Nullable Integer stripeSizeBytes) { this.stripeSizeBytes = stripeSizeBytes; return this; - } public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe(blockSizeBytes, bloomFilterColumns, bloomFilterFalsePositiveProbability, compression, dictionaryKeyThreshold, enablePadding, formatVersion, paddingTolerance, rowIndexStride, stripeSizeBytes); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerOrcSerDe(); + o.blockSizeBytes = blockSizeBytes; + o.bloomFilterColumns = bloomFilterColumns; + o.bloomFilterFalsePositiveProbability = bloomFilterFalsePositiveProbability; + o.compression = compression; + o.dictionaryKeyThreshold = dictionaryKeyThreshold; + o.enablePadding = enablePadding; + o.formatVersion = formatVersion; + o.paddingTolerance = paddingTolerance; + o.rowIndexStride = rowIndexStride; + o.stripeSizeBytes = stripeSizeBytes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe.java index daa3e590449..cd6aa79454b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe.java @@ -17,49 +17,34 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConver * @return The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations. * */ - private final @Nullable Integer blockSizeBytes; + private @Nullable Integer blockSizeBytes; /** * @return The compression code to use over data blocks. The possible values are `UNCOMPRESSED`, `SNAPPY`, and `GZIP`, with the default being `SNAPPY`. Use `SNAPPY` for higher decompression speed. Use `GZIP` if the compression ratio is more important than speed. * */ - private final @Nullable String compression; + private @Nullable String compression; /** * @return Indicates whether to enable dictionary compression. * */ - private final @Nullable Boolean enableDictionaryCompression; + private @Nullable Boolean enableDictionaryCompression; /** * @return The maximum amount of padding to apply. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is `0`. * */ - private final @Nullable Integer maxPaddingBytes; + private @Nullable Integer maxPaddingBytes; /** * @return The Parquet page size. Column chunks are divided into pages. A page is conceptually an indivisible unit (in terms of compression and encoding). The minimum value is 64 KiB and the default is 1 MiB. * */ - private final @Nullable Integer pageSizeBytes; + private @Nullable Integer pageSizeBytes; /** * @return Indicates the version of row format to output. The possible values are `V1` and `V2`. The default is `V1`. * */ - private final @Nullable String writerVersion; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe( - @CustomType.Parameter("blockSizeBytes") @Nullable Integer blockSizeBytes, - @CustomType.Parameter("compression") @Nullable String compression, - @CustomType.Parameter("enableDictionaryCompression") @Nullable Boolean enableDictionaryCompression, - @CustomType.Parameter("maxPaddingBytes") @Nullable Integer maxPaddingBytes, - @CustomType.Parameter("pageSizeBytes") @Nullable Integer pageSizeBytes, - @CustomType.Parameter("writerVersion") @Nullable String writerVersion) { - this.blockSizeBytes = blockSizeBytes; - this.compression = compression; - this.enableDictionaryCompression = enableDictionaryCompression; - this.maxPaddingBytes = maxPaddingBytes; - this.pageSizeBytes = pageSizeBytes; - this.writerVersion = writerVersion; - } + private @Nullable String writerVersion; + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe() {} /** * @return The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations. * @@ -110,7 +95,7 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer blockSizeBytes; private @Nullable String compression; @@ -118,11 +103,7 @@ public static final class Builder { private @Nullable Integer maxPaddingBytes; private @Nullable Integer pageSizeBytes; private @Nullable String writerVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe defaults) { Objects.requireNonNull(defaults); this.blockSizeBytes = defaults.blockSizeBytes; @@ -133,31 +114,45 @@ public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversion this.writerVersion = defaults.writerVersion; } + @CustomType.Setter public Builder blockSizeBytes(@Nullable Integer blockSizeBytes) { this.blockSizeBytes = blockSizeBytes; return this; } + @CustomType.Setter public Builder compression(@Nullable String compression) { this.compression = compression; return this; } + @CustomType.Setter public Builder enableDictionaryCompression(@Nullable Boolean enableDictionaryCompression) { this.enableDictionaryCompression = enableDictionaryCompression; return this; } + @CustomType.Setter public Builder maxPaddingBytes(@Nullable Integer maxPaddingBytes) { this.maxPaddingBytes = maxPaddingBytes; return this; } + @CustomType.Setter public Builder pageSizeBytes(@Nullable Integer pageSizeBytes) { this.pageSizeBytes = pageSizeBytes; return this; } + @CustomType.Setter public Builder writerVersion(@Nullable String writerVersion) { this.writerVersion = writerVersion; return this; - } public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe(blockSizeBytes, compression, enableDictionaryCompression, maxPaddingBytes, pageSizeBytes, writerVersion); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationOutputFormatConfigurationSerializerParquetSerDe(); + o.blockSizeBytes = blockSizeBytes; + o.compression = compression; + o.enableDictionaryCompression = enableDictionaryCompression; + o.maxPaddingBytes = maxPaddingBytes; + o.pageSizeBytes = pageSizeBytes; + o.writerVersion = writerVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration.java index 2c4cffda84a..7aa9a0e342e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration.java @@ -15,49 +15,34 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConver * @return The ID of the AWS Glue Data Catalog. If you don't supply this, the AWS account ID is used by default. * */ - private final @Nullable String catalogId; + private @Nullable String catalogId; /** * @return Specifies the name of the AWS Glue database that contains the schema for the output data. * */ - private final String databaseName; + private String databaseName; /** * @return If you don't specify an AWS Region, the default is the current region. * */ - private final @Nullable String region; + private @Nullable String region; /** * @return The role that Kinesis Data Firehose can use to access AWS Glue. This role must be in the same account you use for Kinesis Data Firehose. Cross-account roles aren't allowed. * */ - private final String roleArn; + private String roleArn; /** * @return Specifies the AWS Glue table that contains the column information that constitutes your data schema. * */ - private final String tableName; + private String tableName; /** * @return Specifies the table version for the output data schema. Defaults to `LATEST`. * */ - private final @Nullable String versionId; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration( - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("region") @Nullable String region, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("tableName") String tableName, - @CustomType.Parameter("versionId") @Nullable String versionId) { - this.catalogId = catalogId; - this.databaseName = databaseName; - this.region = region; - this.roleArn = roleArn; - this.tableName = tableName; - this.versionId = versionId; - } + private @Nullable String versionId; + private FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration() {} /** * @return The ID of the AWS Glue Data Catalog. If you don't supply this, the AWS account ID is used by default. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalogId; private String databaseName; @@ -116,11 +101,7 @@ public static final class Builder { private String roleArn; private String tableName; private @Nullable String versionId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -131,31 +112,45 @@ public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversion this.versionId = defaults.versionId; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder tableName(String tableName) { this.tableName = Objects.requireNonNull(tableName); return this; } + @CustomType.Setter public Builder versionId(@Nullable String versionId) { this.versionId = versionId; return this; - } public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration(catalogId, databaseName, region, roleArn, tableName, versionId); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationDataFormatConversionConfigurationSchemaConfiguration(); + o.catalogId = catalogId; + o.databaseName = databaseName; + o.region = region; + o.roleArn = roleArn; + o.tableName = tableName; + o.versionId = versionId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration.java index 961e073e791..260e4dfb50b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration.java @@ -16,21 +16,14 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartition * @return Enables or disables [dynamic partitioning](https://docs.aws.amazon.com/firehose/latest/dev/dynamic-partitioning.html). Defaults to `false`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Total amount of seconds Firehose spends on retries. Valid values between 0 and 7200. Default is 300. * */ - private final @Nullable Integer retryDuration; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("retryDuration") @Nullable Integer retryDuration) { - this.enabled = enabled; - this.retryDuration = retryDuration; - } + private @Nullable Integer retryDuration; + private FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration() {} /** * @return Enables or disables [dynamic partitioning](https://docs.aws.amazon.com/firehose/latest/dev/dynamic-partitioning.html). Defaults to `false`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable Integer retryDuration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.retryDuration = defaults.retryDuration; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder retryDuration(@Nullable Integer retryDuration) { this.retryDuration = retryDuration; return this; - } public FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration(enabled, retryDuration); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationDynamicPartitioningConfiguration(); + o.enabled = enabled; + o.retryDuration = retryDuration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration.java index 518937604b8..b2cc285e968 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration.java @@ -17,21 +17,14 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfig * @return Enables or disables data processing. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Array of data processors. More details are given below * */ - private final @Nullable List processors; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("processors") @Nullable List processors) { - this.enabled = enabled; - this.processors = processors; - } + private @Nullable List processors; + private FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration() {} /** * @return Enables or disables data processing. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List processors; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.processors = defaults.processors; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder processors(@Nullable List processors) { this.processors = processors; return this; } public Builder processors(FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfigurationProcessor... processors) { return processors(List.of(processors)); - } public FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration build() { - return new FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration(enabled, processors); + } + public FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration build() { + final var o = new FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfiguration(); + o.enabled = enabled; + o.processors = processors; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfigurationProcessor.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfigurationProcessor.java index 637c78f2150..b24ea8df685 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfigurationProcessor.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfigurationProcessor.java @@ -16,21 +16,14 @@ public final class FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfig * @return Array of processor parameters. More details are given below * */ - private final @Nullable List parameters; + private @Nullable List parameters; /** * @return The type of processor. Valid Values: `RecordDeAggregation`, `Lambda`, `MetadataExtraction`, `AppendDelimiterToRecord`. Validation is done against [AWS SDK constants](https://docs.aws.amazon.com/sdk-for-go/api/service/firehose/#pkg-constants); so that values not explicitly listed may also work. * */ - private final String type; - - @CustomType.Constructor - private FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfigurationProcessor( - @CustomType.Parameter("parameters") @Nullable List parameters, - @CustomType.Parameter("type") String type) { - this.parameters = parameters; - this.type = type; - } + private String type; + private FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfigurationProcessor() {} /** * @return Array of processor parameters. More details are given below * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfigurationProcessor defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List parameters; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamExtendedS3ConfigurationProcessingConfigurationProcessor defaults) { Objects.requireNonNull(defaults); this.parameters = defaults.parameters; this.type = defaults.type; } + @CustomType.Setter public Builder parameters(@Nullable List parameters) { this.parameters = parameters; return this; @@ -75,11 +65,16 @@ public Builder parameters(@Nullable List processors; - - @CustomType.Constructor - private FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("processors") @Nullable List processors) { - this.enabled = enabled; - this.processors = processors; - } + private @Nullable List processors; + private FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration() {} /** * @return Enables or disables data processing. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List processors; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.processors = defaults.processors; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder processors(@Nullable List processors) { this.processors = processors; return this; } public Builder processors(FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor... processors) { return processors(List.of(processors)); - } public FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration build() { - return new FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration(enabled, processors); + } + public FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration build() { + final var o = new FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfiguration(); + o.enabled = enabled; + o.processors = processors; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor.java index a7df662994c..0c1e4aefd39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor.java @@ -16,21 +16,14 @@ public final class FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConf * @return Array of processor parameters. More details are given below * */ - private final @Nullable List parameters; + private @Nullable List parameters; /** * @return The type of processor. Valid Values: `RecordDeAggregation`, `Lambda`, `MetadataExtraction`, `AppendDelimiterToRecord`. Validation is done against [AWS SDK constants](https://docs.aws.amazon.com/sdk-for-go/api/service/firehose/#pkg-constants); so that values not explicitly listed may also work. * */ - private final String type; - - @CustomType.Constructor - private FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor( - @CustomType.Parameter("parameters") @Nullable List parameters, - @CustomType.Parameter("type") String type) { - this.parameters = parameters; - this.type = type; - } + private String type; + private FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor() {} /** * @return Array of processor parameters. More details are given below * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List parameters; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamHttpEndpointConfigurationProcessingConfigurationProcessor defaults) { Objects.requireNonNull(defaults); this.parameters = defaults.parameters; this.type = defaults.type; } + @CustomType.Setter public Builder parameters(@Nullable List parameters) { this.parameters = parameters; return this; @@ -75,11 +65,16 @@ public Builder parameters(@Nullable List commonAttributes; + private @Nullable List commonAttributes; /** * @return Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to the destination. Valid values are `NONE` and `GZIP`. Default value is `NONE`. * */ - private final @Nullable String contentEncoding; - - @CustomType.Constructor - private FirehoseDeliveryStreamHttpEndpointConfigurationRequestConfiguration( - @CustomType.Parameter("commonAttributes") @Nullable List commonAttributes, - @CustomType.Parameter("contentEncoding") @Nullable String contentEncoding) { - this.commonAttributes = commonAttributes; - this.contentEncoding = contentEncoding; - } + private @Nullable String contentEncoding; + private FirehoseDeliveryStreamHttpEndpointConfigurationRequestConfiguration() {} /** * @return Describes the metadata sent to the HTTP endpoint destination. More details are given below * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamHttpEndpointConfigurationRequestConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List commonAttributes; private @Nullable String contentEncoding; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamHttpEndpointConfigurationRequestConfiguration defaults) { Objects.requireNonNull(defaults); this.commonAttributes = defaults.commonAttributes; this.contentEncoding = defaults.contentEncoding; } + @CustomType.Setter public Builder commonAttributes(@Nullable List commonAttributes) { this.commonAttributes = commonAttributes; return this; @@ -76,11 +66,16 @@ public Builder commonAttributes(@Nullable List processors; - - @CustomType.Constructor - private FirehoseDeliveryStreamRedshiftConfigurationProcessingConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("processors") @Nullable List processors) { - this.enabled = enabled; - this.processors = processors; - } + private @Nullable List processors; + private FirehoseDeliveryStreamRedshiftConfigurationProcessingConfiguration() {} /** * @return Enables or disables data processing. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamRedshiftConfigurationProcessingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List processors; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamRedshiftConfigurationProcessingConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.processors = defaults.processors; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder processors(@Nullable List processors) { this.processors = processors; return this; } public Builder processors(FirehoseDeliveryStreamRedshiftConfigurationProcessingConfigurationProcessor... processors) { return processors(List.of(processors)); - } public FirehoseDeliveryStreamRedshiftConfigurationProcessingConfiguration build() { - return new FirehoseDeliveryStreamRedshiftConfigurationProcessingConfiguration(enabled, processors); + } + public FirehoseDeliveryStreamRedshiftConfigurationProcessingConfiguration build() { + final var o = new FirehoseDeliveryStreamRedshiftConfigurationProcessingConfiguration(); + o.enabled = enabled; + o.processors = processors; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamRedshiftConfigurationProcessingConfigurationProcessor.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamRedshiftConfigurationProcessingConfigurationProcessor.java index 09283dc6f67..2a66253e418 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamRedshiftConfigurationProcessingConfigurationProcessor.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamRedshiftConfigurationProcessingConfigurationProcessor.java @@ -16,21 +16,14 @@ public final class FirehoseDeliveryStreamRedshiftConfigurationProcessingConfigur * @return Array of processor parameters. More details are given below * */ - private final @Nullable List parameters; + private @Nullable List parameters; /** * @return The type of processor. Valid Values: `RecordDeAggregation`, `Lambda`, `MetadataExtraction`, `AppendDelimiterToRecord`. Validation is done against [AWS SDK constants](https://docs.aws.amazon.com/sdk-for-go/api/service/firehose/#pkg-constants); so that values not explicitly listed may also work. * */ - private final String type; - - @CustomType.Constructor - private FirehoseDeliveryStreamRedshiftConfigurationProcessingConfigurationProcessor( - @CustomType.Parameter("parameters") @Nullable List parameters, - @CustomType.Parameter("type") String type) { - this.parameters = parameters; - this.type = type; - } + private String type; + private FirehoseDeliveryStreamRedshiftConfigurationProcessingConfigurationProcessor() {} /** * @return Array of processor parameters. More details are given below * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamRedshiftConfigurationProcessingConfigurationProcessor defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List parameters; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamRedshiftConfigurationProcessingConfigurationProcessor defaults) { Objects.requireNonNull(defaults); this.parameters = defaults.parameters; this.type = defaults.type; } + @CustomType.Setter public Builder parameters(@Nullable List parameters) { this.parameters = parameters; return this; @@ -75,11 +65,16 @@ public Builder parameters(@Nullable List processors; - - @CustomType.Constructor - private FirehoseDeliveryStreamSplunkConfigurationProcessingConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("processors") @Nullable List processors) { - this.enabled = enabled; - this.processors = processors; - } + private @Nullable List processors; + private FirehoseDeliveryStreamSplunkConfigurationProcessingConfiguration() {} /** * @return Enables or disables data processing. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamSplunkConfigurationProcessingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List processors; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamSplunkConfigurationProcessingConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.processors = defaults.processors; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder processors(@Nullable List processors) { this.processors = processors; return this; } public Builder processors(FirehoseDeliveryStreamSplunkConfigurationProcessingConfigurationProcessor... processors) { return processors(List.of(processors)); - } public FirehoseDeliveryStreamSplunkConfigurationProcessingConfiguration build() { - return new FirehoseDeliveryStreamSplunkConfigurationProcessingConfiguration(enabled, processors); + } + public FirehoseDeliveryStreamSplunkConfigurationProcessingConfiguration build() { + final var o = new FirehoseDeliveryStreamSplunkConfigurationProcessingConfiguration(); + o.enabled = enabled; + o.processors = processors; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamSplunkConfigurationProcessingConfigurationProcessor.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamSplunkConfigurationProcessingConfigurationProcessor.java index 742dcc1afde..31b09ab8fdf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamSplunkConfigurationProcessingConfigurationProcessor.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/FirehoseDeliveryStreamSplunkConfigurationProcessingConfigurationProcessor.java @@ -16,21 +16,14 @@ public final class FirehoseDeliveryStreamSplunkConfigurationProcessingConfigurat * @return Array of processor parameters. More details are given below * */ - private final @Nullable List parameters; + private @Nullable List parameters; /** * @return The type of processor. Valid Values: `RecordDeAggregation`, `Lambda`, `MetadataExtraction`, `AppendDelimiterToRecord`. Validation is done against [AWS SDK constants](https://docs.aws.amazon.com/sdk-for-go/api/service/firehose/#pkg-constants); so that values not explicitly listed may also work. * */ - private final String type; - - @CustomType.Constructor - private FirehoseDeliveryStreamSplunkConfigurationProcessingConfigurationProcessor( - @CustomType.Parameter("parameters") @Nullable List parameters, - @CustomType.Parameter("type") String type) { - this.parameters = parameters; - this.type = type; - } + private String type; + private FirehoseDeliveryStreamSplunkConfigurationProcessingConfigurationProcessor() {} /** * @return Array of processor parameters. More details are given below * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(FirehoseDeliveryStreamSplunkConfigurationProcessingConfigurationProcessor defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List parameters; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirehoseDeliveryStreamSplunkConfigurationProcessingConfigurationProcessor defaults) { Objects.requireNonNull(defaults); this.parameters = defaults.parameters; this.type = defaults.type; } + @CustomType.Setter public Builder parameters(@Nullable List parameters) { this.parameters = parameters; return this; @@ -75,11 +65,16 @@ public Builder parameters(@Nullable List closedShards; + private List closedShards; /** * @return The approximate UNIX timestamp that the stream was created. * */ - private final Integer creationTimestamp; + private Integer creationTimestamp; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the Kinesis Stream. * */ - private final String name; + private String name; /** * @return The list of shard ids in the OPEN state. See [Shard State](https://docs.aws.amazon.com/streams/latest/dev/kinesis-using-sdk-java-after-resharding.html#kinesis-using-sdk-java-resharding-data-routing) for more. * */ - private final List openShards; + private List openShards; /** * @return Length of time (in hours) data records are accessible after they are added to the stream. * */ - private final Integer retentionPeriod; + private Integer retentionPeriod; /** * @return A list of shard-level CloudWatch metrics which are enabled for the stream. See [Monitoring with CloudWatch](https://docs.aws.amazon.com/streams/latest/dev/monitoring-with-cloudwatch.html) for more. * */ - private final List shardLevelMetrics; + private List shardLevelMetrics; /** * @return The current status of the stream. The stream status is one of CREATING, DELETING, ACTIVE, or UPDATING. * */ - private final String status; + private String status; /** * @return Indicates the [capacity mode](https://docs.aws.amazon.com/streams/latest/dev/how-do-i-size-a-stream.html) of the data stream. Detailed below. * */ - private final List streamModeDetails; + private List streamModeDetails; /** * @return A map of tags to assigned to the stream. * */ - private final Map tags; - - @CustomType.Constructor - private GetStreamResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("closedShards") List closedShards, - @CustomType.Parameter("creationTimestamp") Integer creationTimestamp, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("openShards") List openShards, - @CustomType.Parameter("retentionPeriod") Integer retentionPeriod, - @CustomType.Parameter("shardLevelMetrics") List shardLevelMetrics, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("streamModeDetails") List streamModeDetails, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.closedShards = closedShards; - this.creationTimestamp = creationTimestamp; - this.id = id; - this.name = name; - this.openShards = openShards; - this.retentionPeriod = retentionPeriod; - this.shardLevelMetrics = shardLevelMetrics; - this.status = status; - this.streamModeDetails = streamModeDetails; - this.tags = tags; - } + private Map tags; + private GetStreamResult() {} /** * @return The Amazon Resource Name (ARN) of the Kinesis Stream (same as id). * @@ -180,7 +155,7 @@ public static Builder builder() { public static Builder builder(GetStreamResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List closedShards; @@ -193,11 +168,7 @@ public static final class Builder { private String status; private List streamModeDetails; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetStreamResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -213,10 +184,12 @@ public Builder(GetStreamResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder closedShards(List closedShards) { this.closedShards = Objects.requireNonNull(closedShards); return this; @@ -224,18 +197,22 @@ public Builder closedShards(List closedShards) { public Builder closedShards(String... closedShards) { return closedShards(List.of(closedShards)); } + @CustomType.Setter public Builder creationTimestamp(Integer creationTimestamp) { this.creationTimestamp = Objects.requireNonNull(creationTimestamp); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder openShards(List openShards) { this.openShards = Objects.requireNonNull(openShards); return this; @@ -243,10 +220,12 @@ public Builder openShards(List openShards) { public Builder openShards(String... openShards) { return openShards(List.of(openShards)); } + @CustomType.Setter public Builder retentionPeriod(Integer retentionPeriod) { this.retentionPeriod = Objects.requireNonNull(retentionPeriod); return this; } + @CustomType.Setter public Builder shardLevelMetrics(List shardLevelMetrics) { this.shardLevelMetrics = Objects.requireNonNull(shardLevelMetrics); return this; @@ -254,10 +233,12 @@ public Builder shardLevelMetrics(List shardLevelMetrics) { public Builder shardLevelMetrics(String... shardLevelMetrics) { return shardLevelMetrics(List.of(shardLevelMetrics)); } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder streamModeDetails(List streamModeDetails) { this.streamModeDetails = Objects.requireNonNull(streamModeDetails); return this; @@ -265,11 +246,25 @@ public Builder streamModeDetails(List streamModeDetai public Builder streamModeDetails(GetStreamStreamModeDetail... streamModeDetails) { return streamModeDetails(List.of(streamModeDetails)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetStreamResult build() { - return new GetStreamResult(arn, closedShards, creationTimestamp, id, name, openShards, retentionPeriod, shardLevelMetrics, status, streamModeDetails, tags); + } + public GetStreamResult build() { + final var o = new GetStreamResult(); + o.arn = arn; + o.closedShards = closedShards; + o.creationTimestamp = creationTimestamp; + o.id = id; + o.name = name; + o.openShards = openShards; + o.retentionPeriod = retentionPeriod; + o.shardLevelMetrics = shardLevelMetrics; + o.status = status; + o.streamModeDetails = streamModeDetails; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/GetStreamStreamModeDetail.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/GetStreamStreamModeDetail.java index a66c69b7c9e..459d58088e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/GetStreamStreamModeDetail.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/GetStreamStreamModeDetail.java @@ -13,13 +13,9 @@ public final class GetStreamStreamModeDetail { * @return The capacity mode of the stream. Either `ON_DEMAND` or `PROVISIONED`. * */ - private final String streamMode; - - @CustomType.Constructor - private GetStreamStreamModeDetail(@CustomType.Parameter("streamMode") String streamMode) { - this.streamMode = streamMode; - } + private String streamMode; + private GetStreamStreamModeDetail() {} /** * @return The capacity mode of the stream. Either `ON_DEMAND` or `PROVISIONED`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetStreamStreamModeDetail defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String streamMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetStreamStreamModeDetail defaults) { Objects.requireNonNull(defaults); this.streamMode = defaults.streamMode; } + @CustomType.Setter public Builder streamMode(String streamMode) { this.streamMode = Objects.requireNonNull(streamMode); return this; - } public GetStreamStreamModeDetail build() { - return new GetStreamStreamModeDetail(streamMode); + } + public GetStreamStreamModeDetail build() { + final var o = new GetStreamStreamModeDetail(); + o.streamMode = streamMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/StreamStreamModeDetails.java b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/StreamStreamModeDetails.java index 1c89ac46fa6..2d18623ead0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/StreamStreamModeDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesis/outputs/StreamStreamModeDetails.java @@ -13,13 +13,9 @@ public final class StreamStreamModeDetails { * @return Specifies the capacity mode of the stream. Must be either `PROVISIONED` or `ON_DEMAND`. * */ - private final String streamMode; - - @CustomType.Constructor - private StreamStreamModeDetails(@CustomType.Parameter("streamMode") String streamMode) { - this.streamMode = streamMode; - } + private String streamMode; + private StreamStreamModeDetails() {} /** * @return Specifies the capacity mode of the stream. Must be either `PROVISIONED` or `ON_DEMAND`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(StreamStreamModeDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String streamMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StreamStreamModeDetails defaults) { Objects.requireNonNull(defaults); this.streamMode = defaults.streamMode; } + @CustomType.Setter public Builder streamMode(String streamMode) { this.streamMode = Objects.requireNonNull(streamMode); return this; - } public StreamStreamModeDetails build() { - return new StreamStreamModeDetails(streamMode); + } + public StreamStreamModeDetails build() { + final var o = new StreamStreamModeDetails(); + o.streamMode = streamMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfiguration.java index dfb9781c861..a744eced2fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfiguration.java @@ -21,56 +21,39 @@ public final class ApplicationApplicationConfiguration { * @return The code location and type parameters for the application. * */ - private final ApplicationApplicationConfigurationApplicationCodeConfiguration applicationCodeConfiguration; + private ApplicationApplicationConfigurationApplicationCodeConfiguration applicationCodeConfiguration; /** * @return Describes whether snapshots are enabled for a Flink-based application. * */ - private final @Nullable ApplicationApplicationConfigurationApplicationSnapshotConfiguration applicationSnapshotConfiguration; + private @Nullable ApplicationApplicationConfigurationApplicationSnapshotConfiguration applicationSnapshotConfiguration; /** * @return Describes execution properties for a Flink-based application. * */ - private final @Nullable ApplicationApplicationConfigurationEnvironmentProperties environmentProperties; + private @Nullable ApplicationApplicationConfigurationEnvironmentProperties environmentProperties; /** * @return The configuration of a Flink-based application. * */ - private final @Nullable ApplicationApplicationConfigurationFlinkApplicationConfiguration flinkApplicationConfiguration; + private @Nullable ApplicationApplicationConfigurationFlinkApplicationConfiguration flinkApplicationConfiguration; /** * @return Describes the starting properties for a Flink-based application. * */ - private final @Nullable ApplicationApplicationConfigurationRunConfiguration runConfiguration; + private @Nullable ApplicationApplicationConfigurationRunConfiguration runConfiguration; /** * @return The configuration of a SQL-based application. * */ - private final @Nullable ApplicationApplicationConfigurationSqlApplicationConfiguration sqlApplicationConfiguration; + private @Nullable ApplicationApplicationConfigurationSqlApplicationConfiguration sqlApplicationConfiguration; /** * @return The VPC configuration of a Flink-based application. * */ - private final @Nullable ApplicationApplicationConfigurationVpcConfiguration vpcConfiguration; - - @CustomType.Constructor - private ApplicationApplicationConfiguration( - @CustomType.Parameter("applicationCodeConfiguration") ApplicationApplicationConfigurationApplicationCodeConfiguration applicationCodeConfiguration, - @CustomType.Parameter("applicationSnapshotConfiguration") @Nullable ApplicationApplicationConfigurationApplicationSnapshotConfiguration applicationSnapshotConfiguration, - @CustomType.Parameter("environmentProperties") @Nullable ApplicationApplicationConfigurationEnvironmentProperties environmentProperties, - @CustomType.Parameter("flinkApplicationConfiguration") @Nullable ApplicationApplicationConfigurationFlinkApplicationConfiguration flinkApplicationConfiguration, - @CustomType.Parameter("runConfiguration") @Nullable ApplicationApplicationConfigurationRunConfiguration runConfiguration, - @CustomType.Parameter("sqlApplicationConfiguration") @Nullable ApplicationApplicationConfigurationSqlApplicationConfiguration sqlApplicationConfiguration, - @CustomType.Parameter("vpcConfiguration") @Nullable ApplicationApplicationConfigurationVpcConfiguration vpcConfiguration) { - this.applicationCodeConfiguration = applicationCodeConfiguration; - this.applicationSnapshotConfiguration = applicationSnapshotConfiguration; - this.environmentProperties = environmentProperties; - this.flinkApplicationConfiguration = flinkApplicationConfiguration; - this.runConfiguration = runConfiguration; - this.sqlApplicationConfiguration = sqlApplicationConfiguration; - this.vpcConfiguration = vpcConfiguration; - } + private @Nullable ApplicationApplicationConfigurationVpcConfiguration vpcConfiguration; + private ApplicationApplicationConfiguration() {} /** * @return The code location and type parameters for the application. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private ApplicationApplicationConfigurationApplicationCodeConfiguration applicationCodeConfiguration; private @Nullable ApplicationApplicationConfigurationApplicationSnapshotConfiguration applicationSnapshotConfiguration; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable ApplicationApplicationConfigurationRunConfiguration runConfiguration; private @Nullable ApplicationApplicationConfigurationSqlApplicationConfiguration sqlApplicationConfiguration; private @Nullable ApplicationApplicationConfigurationVpcConfiguration vpcConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfiguration defaults) { Objects.requireNonNull(defaults); this.applicationCodeConfiguration = defaults.applicationCodeConfiguration; @@ -153,35 +132,51 @@ public Builder(ApplicationApplicationConfiguration defaults) { this.vpcConfiguration = defaults.vpcConfiguration; } + @CustomType.Setter public Builder applicationCodeConfiguration(ApplicationApplicationConfigurationApplicationCodeConfiguration applicationCodeConfiguration) { this.applicationCodeConfiguration = Objects.requireNonNull(applicationCodeConfiguration); return this; } + @CustomType.Setter public Builder applicationSnapshotConfiguration(@Nullable ApplicationApplicationConfigurationApplicationSnapshotConfiguration applicationSnapshotConfiguration) { this.applicationSnapshotConfiguration = applicationSnapshotConfiguration; return this; } + @CustomType.Setter public Builder environmentProperties(@Nullable ApplicationApplicationConfigurationEnvironmentProperties environmentProperties) { this.environmentProperties = environmentProperties; return this; } + @CustomType.Setter public Builder flinkApplicationConfiguration(@Nullable ApplicationApplicationConfigurationFlinkApplicationConfiguration flinkApplicationConfiguration) { this.flinkApplicationConfiguration = flinkApplicationConfiguration; return this; } + @CustomType.Setter public Builder runConfiguration(@Nullable ApplicationApplicationConfigurationRunConfiguration runConfiguration) { this.runConfiguration = runConfiguration; return this; } + @CustomType.Setter public Builder sqlApplicationConfiguration(@Nullable ApplicationApplicationConfigurationSqlApplicationConfiguration sqlApplicationConfiguration) { this.sqlApplicationConfiguration = sqlApplicationConfiguration; return this; } + @CustomType.Setter public Builder vpcConfiguration(@Nullable ApplicationApplicationConfigurationVpcConfiguration vpcConfiguration) { this.vpcConfiguration = vpcConfiguration; return this; - } public ApplicationApplicationConfiguration build() { - return new ApplicationApplicationConfiguration(applicationCodeConfiguration, applicationSnapshotConfiguration, environmentProperties, flinkApplicationConfiguration, runConfiguration, sqlApplicationConfiguration, vpcConfiguration); + } + public ApplicationApplicationConfiguration build() { + final var o = new ApplicationApplicationConfiguration(); + o.applicationCodeConfiguration = applicationCodeConfiguration; + o.applicationSnapshotConfiguration = applicationSnapshotConfiguration; + o.environmentProperties = environmentProperties; + o.flinkApplicationConfiguration = flinkApplicationConfiguration; + o.runConfiguration = runConfiguration; + o.sqlApplicationConfiguration = sqlApplicationConfiguration; + o.vpcConfiguration = vpcConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationCodeConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationCodeConfiguration.java index c0f999b221a..b93e2a5be77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationCodeConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationCodeConfiguration.java @@ -16,21 +16,14 @@ public final class ApplicationApplicationConfigurationApplicationCodeConfigurati * @return The location and type of the application code. * */ - private final @Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent codeContent; + private @Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent codeContent; /** * @return Specifies whether the code content is in text or zip format. Valid values: `PLAINTEXT`, `ZIPFILE`. * */ - private final String codeContentType; - - @CustomType.Constructor - private ApplicationApplicationConfigurationApplicationCodeConfiguration( - @CustomType.Parameter("codeContent") @Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent codeContent, - @CustomType.Parameter("codeContentType") String codeContentType) { - this.codeContent = codeContent; - this.codeContentType = codeContentType; - } + private String codeContentType; + private ApplicationApplicationConfigurationApplicationCodeConfiguration() {} /** * @return The location and type of the application code. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationApplicationCodeConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent codeContent; private String codeContentType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationApplicationCodeConfiguration defaults) { Objects.requireNonNull(defaults); this.codeContent = defaults.codeContent; this.codeContentType = defaults.codeContentType; } + @CustomType.Setter public Builder codeContent(@Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent codeContent) { this.codeContent = codeContent; return this; } + @CustomType.Setter public Builder codeContentType(String codeContentType) { this.codeContentType = Objects.requireNonNull(codeContentType); return this; - } public ApplicationApplicationConfigurationApplicationCodeConfiguration build() { - return new ApplicationApplicationConfigurationApplicationCodeConfiguration(codeContent, codeContentType); + } + public ApplicationApplicationConfigurationApplicationCodeConfiguration build() { + final var o = new ApplicationApplicationConfigurationApplicationCodeConfiguration(); + o.codeContent = codeContent; + o.codeContentType = codeContentType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent.java index 557b6609588..b7b02bcde2e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent.java @@ -16,21 +16,14 @@ public final class ApplicationApplicationConfigurationApplicationCodeConfigurati * @return Information about the Amazon S3 bucket containing the application code. * */ - private final @Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation s3ContentLocation; + private @Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation s3ContentLocation; /** * @return The text-format code for the application. * */ - private final @Nullable String textContent; - - @CustomType.Constructor - private ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent( - @CustomType.Parameter("s3ContentLocation") @Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation s3ContentLocation, - @CustomType.Parameter("textContent") @Nullable String textContent) { - this.s3ContentLocation = s3ContentLocation; - this.textContent = textContent; - } + private @Nullable String textContent; + private ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent() {} /** * @return Information about the Amazon S3 bucket containing the application code. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation s3ContentLocation; private @Nullable String textContent; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent defaults) { Objects.requireNonNull(defaults); this.s3ContentLocation = defaults.s3ContentLocation; this.textContent = defaults.textContent; } + @CustomType.Setter public Builder s3ContentLocation(@Nullable ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation s3ContentLocation) { this.s3ContentLocation = s3ContentLocation; return this; } + @CustomType.Setter public Builder textContent(@Nullable String textContent) { this.textContent = textContent; return this; - } public ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent build() { - return new ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent(s3ContentLocation, textContent); + } + public ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent build() { + final var o = new ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContent(); + o.s3ContentLocation = s3ContentLocation; + o.textContent = textContent; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation.java index 473f737b741..b293ca1b5c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation.java @@ -15,28 +15,19 @@ public final class ApplicationApplicationConfigurationApplicationCodeConfigurati * @return The ARN for the S3 bucket containing the application code. * */ - private final String bucketArn; + private String bucketArn; /** * @return The file key for the object containing the application code. * */ - private final String fileKey; + private String fileKey; /** * @return The version of the object containing the application code. * */ - private final @Nullable String objectVersion; - - @CustomType.Constructor - private ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation( - @CustomType.Parameter("bucketArn") String bucketArn, - @CustomType.Parameter("fileKey") String fileKey, - @CustomType.Parameter("objectVersion") @Nullable String objectVersion) { - this.bucketArn = bucketArn; - this.fileKey = fileKey; - this.objectVersion = objectVersion; - } + private @Nullable String objectVersion; + private ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation() {} /** * @return The ARN for the S3 bucket containing the application code. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketArn; private String fileKey; private @Nullable String objectVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation defaults) { Objects.requireNonNull(defaults); this.bucketArn = defaults.bucketArn; @@ -83,19 +70,27 @@ public Builder(ApplicationApplicationConfigurationApplicationCodeConfigurationCo this.objectVersion = defaults.objectVersion; } + @CustomType.Setter public Builder bucketArn(String bucketArn) { this.bucketArn = Objects.requireNonNull(bucketArn); return this; } + @CustomType.Setter public Builder fileKey(String fileKey) { this.fileKey = Objects.requireNonNull(fileKey); return this; } + @CustomType.Setter public Builder objectVersion(@Nullable String objectVersion) { this.objectVersion = objectVersion; return this; - } public ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation build() { - return new ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation(bucketArn, fileKey, objectVersion); + } + public ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation build() { + final var o = new ApplicationApplicationConfigurationApplicationCodeConfigurationCodeContentS3ContentLocation(); + o.bucketArn = bucketArn; + o.fileKey = fileKey; + o.objectVersion = objectVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationSnapshotConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationSnapshotConfiguration.java index db8eeddb684..29f48bcd49b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationSnapshotConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationApplicationSnapshotConfiguration.java @@ -13,13 +13,9 @@ public final class ApplicationApplicationConfigurationApplicationSnapshotConfigu * @return Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application. * */ - private final Boolean snapshotsEnabled; - - @CustomType.Constructor - private ApplicationApplicationConfigurationApplicationSnapshotConfiguration(@CustomType.Parameter("snapshotsEnabled") Boolean snapshotsEnabled) { - this.snapshotsEnabled = snapshotsEnabled; - } + private Boolean snapshotsEnabled; + private ApplicationApplicationConfigurationApplicationSnapshotConfiguration() {} /** * @return Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationApplicationSnapshotConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean snapshotsEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationApplicationSnapshotConfiguration defaults) { Objects.requireNonNull(defaults); this.snapshotsEnabled = defaults.snapshotsEnabled; } + @CustomType.Setter public Builder snapshotsEnabled(Boolean snapshotsEnabled) { this.snapshotsEnabled = Objects.requireNonNull(snapshotsEnabled); return this; - } public ApplicationApplicationConfigurationApplicationSnapshotConfiguration build() { - return new ApplicationApplicationConfigurationApplicationSnapshotConfiguration(snapshotsEnabled); + } + public ApplicationApplicationConfigurationApplicationSnapshotConfiguration build() { + final var o = new ApplicationApplicationConfigurationApplicationSnapshotConfiguration(); + o.snapshotsEnabled = snapshotsEnabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationEnvironmentProperties.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationEnvironmentProperties.java index fcc0d1f51f5..ecf9d6c02a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationEnvironmentProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationEnvironmentProperties.java @@ -14,13 +14,9 @@ public final class ApplicationApplicationConfigurationEnvironmentProperties { * @return Describes the execution property groups. * */ - private final List propertyGroups; - - @CustomType.Constructor - private ApplicationApplicationConfigurationEnvironmentProperties(@CustomType.Parameter("propertyGroups") List propertyGroups) { - this.propertyGroups = propertyGroups; - } + private List propertyGroups; + private ApplicationApplicationConfigurationEnvironmentProperties() {} /** * @return Describes the execution property groups. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationEnvironmentProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List propertyGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationEnvironmentProperties defaults) { Objects.requireNonNull(defaults); this.propertyGroups = defaults.propertyGroups; } + @CustomType.Setter public Builder propertyGroups(List propertyGroups) { this.propertyGroups = Objects.requireNonNull(propertyGroups); return this; } public Builder propertyGroups(ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup... propertyGroups) { return propertyGroups(List.of(propertyGroups)); - } public ApplicationApplicationConfigurationEnvironmentProperties build() { - return new ApplicationApplicationConfigurationEnvironmentProperties(propertyGroups); + } + public ApplicationApplicationConfigurationEnvironmentProperties build() { + final var o = new ApplicationApplicationConfigurationEnvironmentProperties(); + o.propertyGroups = propertyGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup.java index 5cec8790952..282f379cd79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup.java @@ -14,21 +14,14 @@ public final class ApplicationApplicationConfigurationEnvironmentPropertiesPrope * @return The key of the application execution property key-value map. * */ - private final String propertyGroupId; + private String propertyGroupId; /** * @return Application execution property key-value map. * */ - private final Map propertyMap; - - @CustomType.Constructor - private ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup( - @CustomType.Parameter("propertyGroupId") String propertyGroupId, - @CustomType.Parameter("propertyMap") Map propertyMap) { - this.propertyGroupId = propertyGroupId; - this.propertyMap = propertyMap; - } + private Map propertyMap; + private ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup() {} /** * @return The key of the application execution property key-value map. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String propertyGroupId; private Map propertyMap; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup defaults) { Objects.requireNonNull(defaults); this.propertyGroupId = defaults.propertyGroupId; this.propertyMap = defaults.propertyMap; } + @CustomType.Setter public Builder propertyGroupId(String propertyGroupId) { this.propertyGroupId = Objects.requireNonNull(propertyGroupId); return this; } + @CustomType.Setter public Builder propertyMap(Map propertyMap) { this.propertyMap = Objects.requireNonNull(propertyMap); return this; - } public ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup build() { - return new ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup(propertyGroupId, propertyMap); + } + public ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup build() { + final var o = new ApplicationApplicationConfigurationEnvironmentPropertiesPropertyGroup(); + o.propertyGroupId = propertyGroupId; + o.propertyMap = propertyMap; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfiguration.java index 20e0cd9416f..35cc3b39891 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfiguration.java @@ -17,28 +17,19 @@ public final class ApplicationApplicationConfigurationFlinkApplicationConfigurat * @return Describes an application's checkpointing configuration. * */ - private final @Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration checkpointConfiguration; + private @Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration checkpointConfiguration; /** * @return Describes configuration parameters for CloudWatch logging for an application. * */ - private final @Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration monitoringConfiguration; + private @Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration monitoringConfiguration; /** * @return Describes parameters for how an application executes multiple tasks simultaneously. * */ - private final @Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration parallelismConfiguration; - - @CustomType.Constructor - private ApplicationApplicationConfigurationFlinkApplicationConfiguration( - @CustomType.Parameter("checkpointConfiguration") @Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration checkpointConfiguration, - @CustomType.Parameter("monitoringConfiguration") @Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration monitoringConfiguration, - @CustomType.Parameter("parallelismConfiguration") @Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration parallelismConfiguration) { - this.checkpointConfiguration = checkpointConfiguration; - this.monitoringConfiguration = monitoringConfiguration; - this.parallelismConfiguration = parallelismConfiguration; - } + private @Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration parallelismConfiguration; + private ApplicationApplicationConfigurationFlinkApplicationConfiguration() {} /** * @return Describes an application's checkpointing configuration. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationFlinkApplicationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration checkpointConfiguration; private @Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration monitoringConfiguration; private @Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration parallelismConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationFlinkApplicationConfiguration defaults) { Objects.requireNonNull(defaults); this.checkpointConfiguration = defaults.checkpointConfiguration; @@ -85,19 +72,27 @@ public Builder(ApplicationApplicationConfigurationFlinkApplicationConfiguration this.parallelismConfiguration = defaults.parallelismConfiguration; } + @CustomType.Setter public Builder checkpointConfiguration(@Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration checkpointConfiguration) { this.checkpointConfiguration = checkpointConfiguration; return this; } + @CustomType.Setter public Builder monitoringConfiguration(@Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration monitoringConfiguration) { this.monitoringConfiguration = monitoringConfiguration; return this; } + @CustomType.Setter public Builder parallelismConfiguration(@Nullable ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration parallelismConfiguration) { this.parallelismConfiguration = parallelismConfiguration; return this; - } public ApplicationApplicationConfigurationFlinkApplicationConfiguration build() { - return new ApplicationApplicationConfigurationFlinkApplicationConfiguration(checkpointConfiguration, monitoringConfiguration, parallelismConfiguration); + } + public ApplicationApplicationConfigurationFlinkApplicationConfiguration build() { + final var o = new ApplicationApplicationConfigurationFlinkApplicationConfiguration(); + o.checkpointConfiguration = checkpointConfiguration; + o.monitoringConfiguration = monitoringConfiguration; + o.parallelismConfiguration = parallelismConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration.java index c7fcd73af3c..efcb1db70fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration.java @@ -17,12 +17,12 @@ public final class ApplicationApplicationConfigurationFlinkApplicationConfigurat * @return Describes the interval in milliseconds between checkpoint operations. * */ - private final @Nullable Integer checkpointInterval; + private @Nullable Integer checkpointInterval; /** * @return Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application. * */ - private final @Nullable Boolean checkpointingEnabled; + private @Nullable Boolean checkpointingEnabled; /** * @return Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. Valid values: `CUSTOM`, `DEFAULT`. Set this attribute to `CUSTOM` in order for any specified `checkpointing_enabled`, `checkpoint_interval`, or `min_pause_between_checkpoints` attribute values to be effective. If this attribute is set to `DEFAULT`, the application will always use the following values: * * `checkpointing_enabled = true` @@ -30,25 +30,14 @@ public final class ApplicationApplicationConfigurationFlinkApplicationConfigurat * * `min_pause_between_checkpoints = 5000` * */ - private final String configurationType; + private String configurationType; /** * @return Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. * */ - private final @Nullable Integer minPauseBetweenCheckpoints; - - @CustomType.Constructor - private ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration( - @CustomType.Parameter("checkpointInterval") @Nullable Integer checkpointInterval, - @CustomType.Parameter("checkpointingEnabled") @Nullable Boolean checkpointingEnabled, - @CustomType.Parameter("configurationType") String configurationType, - @CustomType.Parameter("minPauseBetweenCheckpoints") @Nullable Integer minPauseBetweenCheckpoints) { - this.checkpointInterval = checkpointInterval; - this.checkpointingEnabled = checkpointingEnabled; - this.configurationType = configurationType; - this.minPauseBetweenCheckpoints = minPauseBetweenCheckpoints; - } + private @Nullable Integer minPauseBetweenCheckpoints; + private ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration() {} /** * @return Describes the interval in milliseconds between checkpoint operations. * @@ -88,17 +77,13 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer checkpointInterval; private @Nullable Boolean checkpointingEnabled; private String configurationType; private @Nullable Integer minPauseBetweenCheckpoints; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration defaults) { Objects.requireNonNull(defaults); this.checkpointInterval = defaults.checkpointInterval; @@ -107,23 +92,33 @@ public Builder(ApplicationApplicationConfigurationFlinkApplicationConfigurationC this.minPauseBetweenCheckpoints = defaults.minPauseBetweenCheckpoints; } + @CustomType.Setter public Builder checkpointInterval(@Nullable Integer checkpointInterval) { this.checkpointInterval = checkpointInterval; return this; } + @CustomType.Setter public Builder checkpointingEnabled(@Nullable Boolean checkpointingEnabled) { this.checkpointingEnabled = checkpointingEnabled; return this; } + @CustomType.Setter public Builder configurationType(String configurationType) { this.configurationType = Objects.requireNonNull(configurationType); return this; } + @CustomType.Setter public Builder minPauseBetweenCheckpoints(@Nullable Integer minPauseBetweenCheckpoints) { this.minPauseBetweenCheckpoints = minPauseBetweenCheckpoints; return this; - } public ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration build() { - return new ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration(checkpointInterval, checkpointingEnabled, configurationType, minPauseBetweenCheckpoints); + } + public ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration build() { + final var o = new ApplicationApplicationConfigurationFlinkApplicationConfigurationCheckpointConfiguration(); + o.checkpointInterval = checkpointInterval; + o.checkpointingEnabled = checkpointingEnabled; + o.configurationType = configurationType; + o.minPauseBetweenCheckpoints = minPauseBetweenCheckpoints; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration.java index a7d4f420f7b..8230faa9621 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration.java @@ -15,28 +15,19 @@ public final class ApplicationApplicationConfigurationFlinkApplicationConfigurat * @return Describes whether to use the default CloudWatch logging configuration for an application. Valid values: `CUSTOM`, `DEFAULT`. Set this attribute to `CUSTOM` in order for any specified `log_level` or `metrics_level` attribute values to be effective. * */ - private final String configurationType; + private String configurationType; /** * @return Describes the verbosity of the CloudWatch Logs for an application. Valid values: `DEBUG`, `ERROR`, `INFO`, `WARN`. * */ - private final @Nullable String logLevel; + private @Nullable String logLevel; /** * @return Describes the granularity of the CloudWatch Logs for an application. Valid values: `APPLICATION`, `OPERATOR`, `PARALLELISM`, `TASK`. * */ - private final @Nullable String metricsLevel; - - @CustomType.Constructor - private ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration( - @CustomType.Parameter("configurationType") String configurationType, - @CustomType.Parameter("logLevel") @Nullable String logLevel, - @CustomType.Parameter("metricsLevel") @Nullable String metricsLevel) { - this.configurationType = configurationType; - this.logLevel = logLevel; - this.metricsLevel = metricsLevel; - } + private @Nullable String metricsLevel; + private ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration() {} /** * @return Describes whether to use the default CloudWatch logging configuration for an application. Valid values: `CUSTOM`, `DEFAULT`. Set this attribute to `CUSTOM` in order for any specified `log_level` or `metrics_level` attribute values to be effective. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String configurationType; private @Nullable String logLevel; private @Nullable String metricsLevel; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration defaults) { Objects.requireNonNull(defaults); this.configurationType = defaults.configurationType; @@ -83,19 +70,27 @@ public Builder(ApplicationApplicationConfigurationFlinkApplicationConfigurationM this.metricsLevel = defaults.metricsLevel; } + @CustomType.Setter public Builder configurationType(String configurationType) { this.configurationType = Objects.requireNonNull(configurationType); return this; } + @CustomType.Setter public Builder logLevel(@Nullable String logLevel) { this.logLevel = logLevel; return this; } + @CustomType.Setter public Builder metricsLevel(@Nullable String metricsLevel) { this.metricsLevel = metricsLevel; return this; - } public ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration build() { - return new ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration(configurationType, logLevel, metricsLevel); + } + public ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration build() { + final var o = new ApplicationApplicationConfigurationFlinkApplicationConfigurationMonitoringConfiguration(); + o.configurationType = configurationType; + o.logLevel = logLevel; + o.metricsLevel = metricsLevel; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration.java index d30f210eb29..f80e3f6832b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration.java @@ -17,35 +17,24 @@ public final class ApplicationApplicationConfigurationFlinkApplicationConfigurat * @return Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput. * */ - private final @Nullable Boolean autoScalingEnabled; + private @Nullable Boolean autoScalingEnabled; /** * @return Describes whether the application uses the default parallelism for the Kinesis Data Analytics service. Valid values: `CUSTOM`, `DEFAULT`. Set this attribute to `CUSTOM` in order for any specified `auto_scaling_enabled`, `parallelism`, or `parallelism_per_kpu` attribute values to be effective. * */ - private final String configurationType; + private String configurationType; /** * @return Describes the initial number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform. * */ - private final @Nullable Integer parallelism; + private @Nullable Integer parallelism; /** * @return Describes the number of parallel tasks that a Flink-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. * */ - private final @Nullable Integer parallelismPerKpu; - - @CustomType.Constructor - private ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration( - @CustomType.Parameter("autoScalingEnabled") @Nullable Boolean autoScalingEnabled, - @CustomType.Parameter("configurationType") String configurationType, - @CustomType.Parameter("parallelism") @Nullable Integer parallelism, - @CustomType.Parameter("parallelismPerKpu") @Nullable Integer parallelismPerKpu) { - this.autoScalingEnabled = autoScalingEnabled; - this.configurationType = configurationType; - this.parallelism = parallelism; - this.parallelismPerKpu = parallelismPerKpu; - } + private @Nullable Integer parallelismPerKpu; + private ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration() {} /** * @return Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean autoScalingEnabled; private String configurationType; private @Nullable Integer parallelism; private @Nullable Integer parallelismPerKpu; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration defaults) { Objects.requireNonNull(defaults); this.autoScalingEnabled = defaults.autoScalingEnabled; @@ -101,23 +86,33 @@ public Builder(ApplicationApplicationConfigurationFlinkApplicationConfigurationP this.parallelismPerKpu = defaults.parallelismPerKpu; } + @CustomType.Setter public Builder autoScalingEnabled(@Nullable Boolean autoScalingEnabled) { this.autoScalingEnabled = autoScalingEnabled; return this; } + @CustomType.Setter public Builder configurationType(String configurationType) { this.configurationType = Objects.requireNonNull(configurationType); return this; } + @CustomType.Setter public Builder parallelism(@Nullable Integer parallelism) { this.parallelism = parallelism; return this; } + @CustomType.Setter public Builder parallelismPerKpu(@Nullable Integer parallelismPerKpu) { this.parallelismPerKpu = parallelismPerKpu; return this; - } public ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration build() { - return new ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration(autoScalingEnabled, configurationType, parallelism, parallelismPerKpu); + } + public ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration build() { + final var o = new ApplicationApplicationConfigurationFlinkApplicationConfigurationParallelismConfiguration(); + o.autoScalingEnabled = autoScalingEnabled; + o.configurationType = configurationType; + o.parallelism = parallelism; + o.parallelismPerKpu = parallelismPerKpu; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationRunConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationRunConfiguration.java index a1b9774d015..2bdc3289c17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationRunConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationRunConfiguration.java @@ -16,21 +16,14 @@ public final class ApplicationApplicationConfigurationRunConfiguration { * @return The restore behavior of a restarting application. * */ - private final @Nullable ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration applicationRestoreConfiguration; + private @Nullable ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration applicationRestoreConfiguration; /** * @return The starting parameters for a Flink-based Kinesis Data Analytics application. * */ - private final @Nullable ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration flinkRunConfiguration; - - @CustomType.Constructor - private ApplicationApplicationConfigurationRunConfiguration( - @CustomType.Parameter("applicationRestoreConfiguration") @Nullable ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration applicationRestoreConfiguration, - @CustomType.Parameter("flinkRunConfiguration") @Nullable ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration flinkRunConfiguration) { - this.applicationRestoreConfiguration = applicationRestoreConfiguration; - this.flinkRunConfiguration = flinkRunConfiguration; - } + private @Nullable ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration flinkRunConfiguration; + private ApplicationApplicationConfigurationRunConfiguration() {} /** * @return The restore behavior of a restarting application. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationRunConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration applicationRestoreConfiguration; private @Nullable ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration flinkRunConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationRunConfiguration defaults) { Objects.requireNonNull(defaults); this.applicationRestoreConfiguration = defaults.applicationRestoreConfiguration; this.flinkRunConfiguration = defaults.flinkRunConfiguration; } + @CustomType.Setter public Builder applicationRestoreConfiguration(@Nullable ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration applicationRestoreConfiguration) { this.applicationRestoreConfiguration = applicationRestoreConfiguration; return this; } + @CustomType.Setter public Builder flinkRunConfiguration(@Nullable ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration flinkRunConfiguration) { this.flinkRunConfiguration = flinkRunConfiguration; return this; - } public ApplicationApplicationConfigurationRunConfiguration build() { - return new ApplicationApplicationConfigurationRunConfiguration(applicationRestoreConfiguration, flinkRunConfiguration); + } + public ApplicationApplicationConfigurationRunConfiguration build() { + final var o = new ApplicationApplicationConfigurationRunConfiguration(); + o.applicationRestoreConfiguration = applicationRestoreConfiguration; + o.flinkRunConfiguration = flinkRunConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration.java index 4dc915795b7..880cda3a4b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration.java @@ -15,21 +15,14 @@ public final class ApplicationApplicationConfigurationRunConfigurationApplicatio * @return Specifies how the application should be restored. Valid values: `RESTORE_FROM_CUSTOM_SNAPSHOT`, `RESTORE_FROM_LATEST_SNAPSHOT`, `SKIP_RESTORE_FROM_SNAPSHOT`. * */ - private final @Nullable String applicationRestoreType; + private @Nullable String applicationRestoreType; /** * @return The identifier of an existing snapshot of application state to use to restart an application. The application uses this value if `RESTORE_FROM_CUSTOM_SNAPSHOT` is specified for `application_restore_type`. * */ - private final @Nullable String snapshotName; - - @CustomType.Constructor - private ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration( - @CustomType.Parameter("applicationRestoreType") @Nullable String applicationRestoreType, - @CustomType.Parameter("snapshotName") @Nullable String snapshotName) { - this.applicationRestoreType = applicationRestoreType; - this.snapshotName = snapshotName; - } + private @Nullable String snapshotName; + private ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration() {} /** * @return Specifies how the application should be restored. Valid values: `RESTORE_FROM_CUSTOM_SNAPSHOT`, `RESTORE_FROM_LATEST_SNAPSHOT`, `SKIP_RESTORE_FROM_SNAPSHOT`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String applicationRestoreType; private @Nullable String snapshotName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration defaults) { Objects.requireNonNull(defaults); this.applicationRestoreType = defaults.applicationRestoreType; this.snapshotName = defaults.snapshotName; } + @CustomType.Setter public Builder applicationRestoreType(@Nullable String applicationRestoreType) { this.applicationRestoreType = applicationRestoreType; return this; } + @CustomType.Setter public Builder snapshotName(@Nullable String snapshotName) { this.snapshotName = snapshotName; return this; - } public ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration build() { - return new ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration(applicationRestoreType, snapshotName); + } + public ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration build() { + final var o = new ApplicationApplicationConfigurationRunConfigurationApplicationRestoreConfiguration(); + o.applicationRestoreType = applicationRestoreType; + o.snapshotName = snapshotName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration.java index 0eba6f62a6a..f0f6d8b466e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration.java @@ -15,13 +15,9 @@ public final class ApplicationApplicationConfigurationRunConfigurationFlinkRunCo * @return When restoring from a snapshot, specifies whether the runtime is allowed to skip a state that cannot be mapped to the new program. Default is `false`. * */ - private final @Nullable Boolean allowNonRestoredState; - - @CustomType.Constructor - private ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration(@CustomType.Parameter("allowNonRestoredState") @Nullable Boolean allowNonRestoredState) { - this.allowNonRestoredState = allowNonRestoredState; - } + private @Nullable Boolean allowNonRestoredState; + private ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration() {} /** * @return When restoring from a snapshot, specifies whether the runtime is allowed to skip a state that cannot be mapped to the new program. Default is `false`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allowNonRestoredState; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration defaults) { Objects.requireNonNull(defaults); this.allowNonRestoredState = defaults.allowNonRestoredState; } + @CustomType.Setter public Builder allowNonRestoredState(@Nullable Boolean allowNonRestoredState) { this.allowNonRestoredState = allowNonRestoredState; return this; - } public ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration build() { - return new ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration(allowNonRestoredState); + } + public ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration build() { + final var o = new ApplicationApplicationConfigurationRunConfigurationFlinkRunConfiguration(); + o.allowNonRestoredState = allowNonRestoredState; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationSqlApplicationConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationSqlApplicationConfiguration.java index e7947d2bb7c..96333ed46cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationSqlApplicationConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationSqlApplicationConfiguration.java @@ -18,28 +18,19 @@ public final class ApplicationApplicationConfigurationSqlApplicationConfiguratio * @return The input stream used by the application. * */ - private final @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInput input; + private @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInput input; /** * @return The destination streams used by the application. * */ - private final @Nullable List outputs; + private @Nullable List outputs; /** * @return The reference data source used by the application. * */ - private final @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSource referenceDataSource; - - @CustomType.Constructor - private ApplicationApplicationConfigurationSqlApplicationConfiguration( - @CustomType.Parameter("input") @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInput input, - @CustomType.Parameter("outputs") @Nullable List outputs, - @CustomType.Parameter("referenceDataSource") @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSource referenceDataSource) { - this.input = input; - this.outputs = outputs; - this.referenceDataSource = referenceDataSource; - } + private @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSource referenceDataSource; + private ApplicationApplicationConfigurationSqlApplicationConfiguration() {} /** * @return The input stream used by the application. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationSqlApplicationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInput input; private @Nullable List outputs; private @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSource referenceDataSource; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationSqlApplicationConfiguration defaults) { Objects.requireNonNull(defaults); this.input = defaults.input; @@ -86,10 +73,12 @@ public Builder(ApplicationApplicationConfigurationSqlApplicationConfiguration de this.referenceDataSource = defaults.referenceDataSource; } + @CustomType.Setter public Builder input(@Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInput input) { this.input = input; return this; } + @CustomType.Setter public Builder outputs(@Nullable List outputs) { this.outputs = outputs; return this; @@ -97,11 +86,17 @@ public Builder outputs(@Nullable List inAppStreamNames; - private final @Nullable String inputId; + private @Nullable List inAppStreamNames; + private @Nullable String inputId; /** * @return Describes the number of in-application streams to create. * */ - private final @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputParallelism inputParallelism; + private @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputParallelism inputParallelism; /** * @return The input processing configuration for the input. * An input processor transforms records as they are received from the stream, before the application's SQL code executes. * */ - private final @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputProcessingConfiguration inputProcessingConfiguration; + private @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputProcessingConfiguration inputProcessingConfiguration; /** * @return Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created. * */ - private final ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchema inputSchema; + private ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchema inputSchema; /** * @return The point at which the application starts processing records from the streaming source. * */ - private final @Nullable List inputStartingPositionConfigurations; + private @Nullable List inputStartingPositionConfigurations; /** * @return If the streaming source is a Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN. * */ - private final @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisFirehoseInput kinesisFirehoseInput; + private @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisFirehoseInput kinesisFirehoseInput; /** * @return If the streaming source is a Kinesis data stream, identifies the stream's Amazon Resource Name (ARN). * */ - private final @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisStreamsInput kinesisStreamsInput; + private @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisStreamsInput kinesisStreamsInput; /** * @return The name prefix to use when creating an in-application stream. * */ - private final String namePrefix; - - @CustomType.Constructor - private ApplicationApplicationConfigurationSqlApplicationConfigurationInput( - @CustomType.Parameter("inAppStreamNames") @Nullable List inAppStreamNames, - @CustomType.Parameter("inputId") @Nullable String inputId, - @CustomType.Parameter("inputParallelism") @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputParallelism inputParallelism, - @CustomType.Parameter("inputProcessingConfiguration") @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputProcessingConfiguration inputProcessingConfiguration, - @CustomType.Parameter("inputSchema") ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchema inputSchema, - @CustomType.Parameter("inputStartingPositionConfigurations") @Nullable List inputStartingPositionConfigurations, - @CustomType.Parameter("kinesisFirehoseInput") @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisFirehoseInput kinesisFirehoseInput, - @CustomType.Parameter("kinesisStreamsInput") @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisStreamsInput kinesisStreamsInput, - @CustomType.Parameter("namePrefix") String namePrefix) { - this.inAppStreamNames = inAppStreamNames; - this.inputId = inputId; - this.inputParallelism = inputParallelism; - this.inputProcessingConfiguration = inputProcessingConfiguration; - this.inputSchema = inputSchema; - this.inputStartingPositionConfigurations = inputStartingPositionConfigurations; - this.kinesisFirehoseInput = kinesisFirehoseInput; - this.kinesisStreamsInput = kinesisStreamsInput; - this.namePrefix = namePrefix; - } + private String namePrefix; + private ApplicationApplicationConfigurationSqlApplicationConfigurationInput() {} public List inAppStreamNames() { return this.inAppStreamNames == null ? List.of() : this.inAppStreamNames; } @@ -143,7 +122,7 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationSqlApplicationConfigurationInput defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List inAppStreamNames; private @Nullable String inputId; @@ -154,11 +133,7 @@ public static final class Builder { private @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisFirehoseInput kinesisFirehoseInput; private @Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputKinesisStreamsInput kinesisStreamsInput; private String namePrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationSqlApplicationConfigurationInput defaults) { Objects.requireNonNull(defaults); this.inAppStreamNames = defaults.inAppStreamNames; @@ -172,6 +147,7 @@ public Builder(ApplicationApplicationConfigurationSqlApplicationConfigurationInp this.namePrefix = defaults.namePrefix; } + @CustomType.Setter public Builder inAppStreamNames(@Nullable List inAppStreamNames) { this.inAppStreamNames = inAppStreamNames; return this; @@ -179,22 +155,27 @@ public Builder inAppStreamNames(@Nullable List inAppStreamNames) { public Builder inAppStreamNames(String... inAppStreamNames) { return inAppStreamNames(List.of(inAppStreamNames)); } + @CustomType.Setter public Builder inputId(@Nullable String inputId) { this.inputId = inputId; return this; } + @CustomType.Setter public Builder inputParallelism(@Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputParallelism inputParallelism) { this.inputParallelism = inputParallelism; return this; } + @CustomType.Setter public Builder inputProcessingConfiguration(@Nullable ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputProcessingConfiguration inputProcessingConfiguration) { this.inputProcessingConfiguration = inputProcessingConfiguration; return this; } + @CustomType.Setter public Builder inputSchema(ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchema inputSchema) { this.inputSchema = Objects.requireNonNull(inputSchema); return this; } + @CustomType.Setter public Builder inputStartingPositionConfigurations(@Nullable List inputStartingPositionConfigurations) { this.inputStartingPositionConfigurations = inputStartingPositionConfigurations; return this; @@ -202,19 +183,33 @@ public Builder inputStartingPositionConfigurations(@Nullable List recordColumns; + private List recordColumns; /** * @return Specifies the encoding of the records in the streaming source. For example, `UTF-8`. * */ - private final @Nullable String recordEncoding; + private @Nullable String recordEncoding; /** * @return Specifies the format of the records on the streaming source. * */ - private final ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchemaRecordFormat recordFormat; - - @CustomType.Constructor - private ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchema( - @CustomType.Parameter("recordColumns") List recordColumns, - @CustomType.Parameter("recordEncoding") @Nullable String recordEncoding, - @CustomType.Parameter("recordFormat") ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchemaRecordFormat recordFormat) { - this.recordColumns = recordColumns; - this.recordEncoding = recordEncoding; - this.recordFormat = recordFormat; - } + private ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchemaRecordFormat recordFormat; + private ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchema() {} /** * @return Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchema defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List recordColumns; private @Nullable String recordEncoding; private ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchemaRecordFormat recordFormat; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationSqlApplicationConfigurationInputInputSchema defaults) { Objects.requireNonNull(defaults); this.recordColumns = defaults.recordColumns; @@ -86,6 +73,7 @@ public Builder(ApplicationApplicationConfigurationSqlApplicationConfigurationInp this.recordFormat = defaults.recordFormat; } + @CustomType.Setter public Builder recordColumns(List recordColumns) { this.recordColumns = Objects.requireNonNull(recordColumns); return this; @@ -93,15 +81,22 @@ public Builder recordColumns(List referenceId() { return Optional.ofNullable(this.referenceId); } @@ -74,17 +63,13 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String referenceId; private ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchema referenceSchema; private ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceS3ReferenceDataSource s3ReferenceDataSource; private String tableName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSource defaults) { Objects.requireNonNull(defaults); this.referenceId = defaults.referenceId; @@ -93,23 +78,33 @@ public Builder(ApplicationApplicationConfigurationSqlApplicationConfigurationRef this.tableName = defaults.tableName; } + @CustomType.Setter public Builder referenceId(@Nullable String referenceId) { this.referenceId = referenceId; return this; } + @CustomType.Setter public Builder referenceSchema(ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchema referenceSchema) { this.referenceSchema = Objects.requireNonNull(referenceSchema); return this; } + @CustomType.Setter public Builder s3ReferenceDataSource(ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceS3ReferenceDataSource s3ReferenceDataSource) { this.s3ReferenceDataSource = Objects.requireNonNull(s3ReferenceDataSource); return this; } + @CustomType.Setter public Builder tableName(String tableName) { this.tableName = Objects.requireNonNull(tableName); return this; - } public ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSource build() { - return new ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSource(referenceId, referenceSchema, s3ReferenceDataSource, tableName); + } + public ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSource build() { + final var o = new ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSource(); + o.referenceId = referenceId; + o.referenceSchema = referenceSchema; + o.s3ReferenceDataSource = s3ReferenceDataSource; + o.tableName = tableName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchema.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchema.java index 5cbe8e481fa..b1940a8bb78 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchema.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchema.java @@ -18,28 +18,19 @@ public final class ApplicationApplicationConfigurationSqlApplicationConfiguratio * @return Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream. * */ - private final List recordColumns; + private List recordColumns; /** * @return Specifies the encoding of the records in the streaming source. For example, `UTF-8`. * */ - private final @Nullable String recordEncoding; + private @Nullable String recordEncoding; /** * @return Specifies the format of the records on the streaming source. * */ - private final ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordFormat recordFormat; - - @CustomType.Constructor - private ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchema( - @CustomType.Parameter("recordColumns") List recordColumns, - @CustomType.Parameter("recordEncoding") @Nullable String recordEncoding, - @CustomType.Parameter("recordFormat") ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordFormat recordFormat) { - this.recordColumns = recordColumns; - this.recordEncoding = recordEncoding; - this.recordFormat = recordFormat; - } + private ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordFormat recordFormat; + private ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchema() {} /** * @return Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchema defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List recordColumns; private @Nullable String recordEncoding; private ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordFormat recordFormat; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchema defaults) { Objects.requireNonNull(defaults); this.recordColumns = defaults.recordColumns; @@ -86,6 +73,7 @@ public Builder(ApplicationApplicationConfigurationSqlApplicationConfigurationRef this.recordFormat = defaults.recordFormat; } + @CustomType.Setter public Builder recordColumns(List recordColumns) { this.recordColumns = Objects.requireNonNull(recordColumns); return this; @@ -93,15 +81,22 @@ public Builder recordColumns(List securityGroupIds; + private List securityGroupIds; /** * @return The Subnet IDs used by the VPC configuration. * */ - private final List subnetIds; - private final @Nullable String vpcConfigurationId; - private final @Nullable String vpcId; - - @CustomType.Constructor - private ApplicationApplicationConfigurationVpcConfiguration( - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcConfigurationId") @Nullable String vpcConfigurationId, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcConfigurationId = vpcConfigurationId; - this.vpcId = vpcId; - } + private List subnetIds; + private @Nullable String vpcConfigurationId; + private @Nullable String vpcId; + private ApplicationApplicationConfigurationVpcConfiguration() {} /** * @return The Security Group IDs used by the VPC configuration. * @@ -65,17 +54,13 @@ public static Builder builder() { public static Builder builder(ApplicationApplicationConfigurationVpcConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List securityGroupIds; private List subnetIds; private @Nullable String vpcConfigurationId; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationApplicationConfigurationVpcConfiguration defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; @@ -84,6 +69,7 @@ public Builder(ApplicationApplicationConfigurationVpcConfiguration defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -91,6 +77,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -98,15 +85,23 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcConfigurationId(@Nullable String vpcConfigurationId) { this.vpcConfigurationId = vpcConfigurationId; return this; } + @CustomType.Setter public Builder vpcId(@Nullable String vpcId) { this.vpcId = vpcId; return this; - } public ApplicationApplicationConfigurationVpcConfiguration build() { - return new ApplicationApplicationConfigurationVpcConfiguration(securityGroupIds, subnetIds, vpcConfigurationId, vpcId); + } + public ApplicationApplicationConfigurationVpcConfiguration build() { + final var o = new ApplicationApplicationConfigurationVpcConfiguration(); + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcConfigurationId = vpcConfigurationId; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationCloudwatchLoggingOptions.java b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationCloudwatchLoggingOptions.java index efe7b3b678e..68217d3c01d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationCloudwatchLoggingOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kinesisanalyticsv2/outputs/ApplicationCloudwatchLoggingOptions.java @@ -11,21 +11,14 @@ @CustomType public final class ApplicationCloudwatchLoggingOptions { - private final @Nullable String cloudwatchLoggingOptionId; + private @Nullable String cloudwatchLoggingOptionId; /** * @return The ARN of the CloudWatch log stream to receive application messages. * */ - private final String logStreamArn; - - @CustomType.Constructor - private ApplicationCloudwatchLoggingOptions( - @CustomType.Parameter("cloudwatchLoggingOptionId") @Nullable String cloudwatchLoggingOptionId, - @CustomType.Parameter("logStreamArn") String logStreamArn) { - this.cloudwatchLoggingOptionId = cloudwatchLoggingOptionId; - this.logStreamArn = logStreamArn; - } + private String logStreamArn; + private ApplicationCloudwatchLoggingOptions() {} public Optional cloudwatchLoggingOptionId() { return Optional.ofNullable(this.cloudwatchLoggingOptionId); } @@ -44,30 +37,32 @@ public static Builder builder() { public static Builder builder(ApplicationCloudwatchLoggingOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cloudwatchLoggingOptionId; private String logStreamArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationCloudwatchLoggingOptions defaults) { Objects.requireNonNull(defaults); this.cloudwatchLoggingOptionId = defaults.cloudwatchLoggingOptionId; this.logStreamArn = defaults.logStreamArn; } + @CustomType.Setter public Builder cloudwatchLoggingOptionId(@Nullable String cloudwatchLoggingOptionId) { this.cloudwatchLoggingOptionId = cloudwatchLoggingOptionId; return this; } + @CustomType.Setter public Builder logStreamArn(String logStreamArn) { this.logStreamArn = Objects.requireNonNull(logStreamArn); return this; - } public ApplicationCloudwatchLoggingOptions build() { - return new ApplicationCloudwatchLoggingOptions(cloudwatchLoggingOptionId, logStreamArn); + } + public ApplicationCloudwatchLoggingOptions build() { + final var o = new ApplicationCloudwatchLoggingOptions(); + o.cloudwatchLoggingOptionId = cloudwatchLoggingOptionId; + o.logStreamArn = logStreamArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetAliasResult.java b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetAliasResult.java index 58751a8b824..78f813fc340 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetAliasResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetAliasResult.java @@ -13,38 +13,25 @@ public final class GetAliasResult { * @return The Amazon Resource Name(ARN) of the key alias. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return ARN pointed to by the alias. * */ - private final String targetKeyArn; + private String targetKeyArn; /** * @return Key identifier pointed to by the alias. * */ - private final String targetKeyId; - - @CustomType.Constructor - private GetAliasResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("targetKeyArn") String targetKeyArn, - @CustomType.Parameter("targetKeyId") String targetKeyId) { - this.arn = arn; - this.id = id; - this.name = name; - this.targetKeyArn = targetKeyArn; - this.targetKeyId = targetKeyId; - } + private String targetKeyId; + private GetAliasResult() {} /** * @return The Amazon Resource Name(ARN) of the key alias. * @@ -84,18 +71,14 @@ public static Builder builder() { public static Builder builder(GetAliasResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; private String targetKeyArn; private String targetKeyId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAliasResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -105,27 +88,39 @@ public Builder(GetAliasResult defaults) { this.targetKeyId = defaults.targetKeyId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder targetKeyArn(String targetKeyArn) { this.targetKeyArn = Objects.requireNonNull(targetKeyArn); return this; } + @CustomType.Setter public Builder targetKeyId(String targetKeyId) { this.targetKeyId = Objects.requireNonNull(targetKeyId); return this; - } public GetAliasResult build() { - return new GetAliasResult(arn, id, name, targetKeyArn, targetKeyId); + } + public GetAliasResult build() { + final var o = new GetAliasResult(); + o.arn = arn; + o.id = id; + o.name = name; + o.targetKeyArn = targetKeyArn; + o.targetKeyId = targetKeyId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetCipherTextResult.java b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetCipherTextResult.java index 437939c398e..426eb825f5b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetCipherTextResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetCipherTextResult.java @@ -15,30 +15,17 @@ public final class GetCipherTextResult { * @return Base64 encoded ciphertext * */ - private final String ciphertextBlob; - private final @Nullable Map context; + private String ciphertextBlob; + private @Nullable Map context; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String keyId; - private final String plaintext; - - @CustomType.Constructor - private GetCipherTextResult( - @CustomType.Parameter("ciphertextBlob") String ciphertextBlob, - @CustomType.Parameter("context") @Nullable Map context, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("keyId") String keyId, - @CustomType.Parameter("plaintext") String plaintext) { - this.ciphertextBlob = ciphertextBlob; - this.context = context; - this.id = id; - this.keyId = keyId; - this.plaintext = plaintext; - } + private String id; + private String keyId; + private String plaintext; + private GetCipherTextResult() {} /** * @return Base64 encoded ciphertext * @@ -70,18 +57,14 @@ public static Builder builder() { public static Builder builder(GetCipherTextResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String ciphertextBlob; private @Nullable Map context; private String id; private String keyId; private String plaintext; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCipherTextResult defaults) { Objects.requireNonNull(defaults); this.ciphertextBlob = defaults.ciphertextBlob; @@ -91,27 +74,39 @@ public Builder(GetCipherTextResult defaults) { this.plaintext = defaults.plaintext; } + @CustomType.Setter public Builder ciphertextBlob(String ciphertextBlob) { this.ciphertextBlob = Objects.requireNonNull(ciphertextBlob); return this; } + @CustomType.Setter public Builder context(@Nullable Map context) { this.context = context; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder keyId(String keyId) { this.keyId = Objects.requireNonNull(keyId); return this; } + @CustomType.Setter public Builder plaintext(String plaintext) { this.plaintext = Objects.requireNonNull(plaintext); return this; - } public GetCipherTextResult build() { - return new GetCipherTextResult(ciphertextBlob, context, id, keyId, plaintext); + } + public GetCipherTextResult build() { + final var o = new GetCipherTextResult(); + o.ciphertextBlob = ciphertextBlob; + o.context = context; + o.id = id; + o.keyId = keyId; + o.plaintext = plaintext; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyMultiRegionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyMultiRegionConfiguration.java index 840429dd320..7ab92c13b16 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyMultiRegionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyMultiRegionConfiguration.java @@ -12,20 +12,11 @@ @CustomType public final class GetKeyMultiRegionConfiguration { - private final String multiRegionKeyType; - private final List primaryKeys; - private final List replicaKeys; - - @CustomType.Constructor - private GetKeyMultiRegionConfiguration( - @CustomType.Parameter("multiRegionKeyType") String multiRegionKeyType, - @CustomType.Parameter("primaryKeys") List primaryKeys, - @CustomType.Parameter("replicaKeys") List replicaKeys) { - this.multiRegionKeyType = multiRegionKeyType; - this.primaryKeys = primaryKeys; - this.replicaKeys = replicaKeys; - } + private String multiRegionKeyType; + private List primaryKeys; + private List replicaKeys; + private GetKeyMultiRegionConfiguration() {} public String multiRegionKeyType() { return this.multiRegionKeyType; } @@ -43,16 +34,12 @@ public static Builder builder() { public static Builder builder(GetKeyMultiRegionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String multiRegionKeyType; private List primaryKeys; private List replicaKeys; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetKeyMultiRegionConfiguration defaults) { Objects.requireNonNull(defaults); this.multiRegionKeyType = defaults.multiRegionKeyType; @@ -60,10 +47,12 @@ public Builder(GetKeyMultiRegionConfiguration defaults) { this.replicaKeys = defaults.replicaKeys; } + @CustomType.Setter public Builder multiRegionKeyType(String multiRegionKeyType) { this.multiRegionKeyType = Objects.requireNonNull(multiRegionKeyType); return this; } + @CustomType.Setter public Builder primaryKeys(List primaryKeys) { this.primaryKeys = Objects.requireNonNull(primaryKeys); return this; @@ -71,14 +60,20 @@ public Builder primaryKeys(List primar public Builder primaryKeys(GetKeyMultiRegionConfigurationPrimaryKey... primaryKeys) { return primaryKeys(List.of(primaryKeys)); } + @CustomType.Setter public Builder replicaKeys(List replicaKeys) { this.replicaKeys = Objects.requireNonNull(replicaKeys); return this; } public Builder replicaKeys(GetKeyMultiRegionConfigurationReplicaKey... replicaKeys) { return replicaKeys(List.of(replicaKeys)); - } public GetKeyMultiRegionConfiguration build() { - return new GetKeyMultiRegionConfiguration(multiRegionKeyType, primaryKeys, replicaKeys); + } + public GetKeyMultiRegionConfiguration build() { + final var o = new GetKeyMultiRegionConfiguration(); + o.multiRegionKeyType = multiRegionKeyType; + o.primaryKeys = primaryKeys; + o.replicaKeys = replicaKeys; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyMultiRegionConfigurationPrimaryKey.java b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyMultiRegionConfigurationPrimaryKey.java index 47396f65223..5629eedca6a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyMultiRegionConfigurationPrimaryKey.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyMultiRegionConfigurationPrimaryKey.java @@ -9,17 +9,10 @@ @CustomType public final class GetKeyMultiRegionConfigurationPrimaryKey { - private final String arn; - private final String region; - - @CustomType.Constructor - private GetKeyMultiRegionConfigurationPrimaryKey( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("region") String region) { - this.arn = arn; - this.region = region; - } + private String arn; + private String region; + private GetKeyMultiRegionConfigurationPrimaryKey() {} public String arn() { return this.arn; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetKeyMultiRegionConfigurationPrimaryKey defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetKeyMultiRegionConfigurationPrimaryKey defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.region = defaults.region; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; - } public GetKeyMultiRegionConfigurationPrimaryKey build() { - return new GetKeyMultiRegionConfigurationPrimaryKey(arn, region); + } + public GetKeyMultiRegionConfigurationPrimaryKey build() { + final var o = new GetKeyMultiRegionConfigurationPrimaryKey(); + o.arn = arn; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyMultiRegionConfigurationReplicaKey.java b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyMultiRegionConfigurationReplicaKey.java index be5cf7d43e4..3e7ba9a1100 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyMultiRegionConfigurationReplicaKey.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyMultiRegionConfigurationReplicaKey.java @@ -9,17 +9,10 @@ @CustomType public final class GetKeyMultiRegionConfigurationReplicaKey { - private final String arn; - private final String region; - - @CustomType.Constructor - private GetKeyMultiRegionConfigurationReplicaKey( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("region") String region) { - this.arn = arn; - this.region = region; - } + private String arn; + private String region; + private GetKeyMultiRegionConfigurationReplicaKey() {} public String arn() { return this.arn; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetKeyMultiRegionConfigurationReplicaKey defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetKeyMultiRegionConfigurationReplicaKey defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.region = defaults.region; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; - } public GetKeyMultiRegionConfigurationReplicaKey build() { - return new GetKeyMultiRegionConfigurationReplicaKey(arn, region); + } + public GetKeyMultiRegionConfigurationReplicaKey build() { + final var o = new GetKeyMultiRegionConfigurationReplicaKey(); + o.arn = arn; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyResult.java b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyResult.java index 578a2db4777..01c2f5a17bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetKeyResult.java @@ -13,69 +13,30 @@ @CustomType public final class GetKeyResult { - private final String arn; - private final String awsAccountId; - private final String creationDate; - private final String customerMasterKeySpec; - private final String deletionDate; - private final String description; - private final Boolean enabled; - private final String expirationModel; - private final @Nullable List grantTokens; + private String arn; + private String awsAccountId; + private String creationDate; + private String customerMasterKeySpec; + private String deletionDate; + private String description; + private Boolean enabled; + private String expirationModel; + private @Nullable List grantTokens; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String keyId; - private final String keyManager; - private final String keyState; - private final String keyUsage; - private final Boolean multiRegion; - private final List multiRegionConfigurations; - private final String origin; - private final String validTo; - - @CustomType.Constructor - private GetKeyResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("awsAccountId") String awsAccountId, - @CustomType.Parameter("creationDate") String creationDate, - @CustomType.Parameter("customerMasterKeySpec") String customerMasterKeySpec, - @CustomType.Parameter("deletionDate") String deletionDate, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("expirationModel") String expirationModel, - @CustomType.Parameter("grantTokens") @Nullable List grantTokens, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("keyId") String keyId, - @CustomType.Parameter("keyManager") String keyManager, - @CustomType.Parameter("keyState") String keyState, - @CustomType.Parameter("keyUsage") String keyUsage, - @CustomType.Parameter("multiRegion") Boolean multiRegion, - @CustomType.Parameter("multiRegionConfigurations") List multiRegionConfigurations, - @CustomType.Parameter("origin") String origin, - @CustomType.Parameter("validTo") String validTo) { - this.arn = arn; - this.awsAccountId = awsAccountId; - this.creationDate = creationDate; - this.customerMasterKeySpec = customerMasterKeySpec; - this.deletionDate = deletionDate; - this.description = description; - this.enabled = enabled; - this.expirationModel = expirationModel; - this.grantTokens = grantTokens; - this.id = id; - this.keyId = keyId; - this.keyManager = keyManager; - this.keyState = keyState; - this.keyUsage = keyUsage; - this.multiRegion = multiRegion; - this.multiRegionConfigurations = multiRegionConfigurations; - this.origin = origin; - this.validTo = validTo; - } + private String id; + private String keyId; + private String keyManager; + private String keyState; + private String keyUsage; + private Boolean multiRegion; + private List multiRegionConfigurations; + private String origin; + private String validTo; + private GetKeyResult() {} public String arn() { return this.arn; } @@ -142,7 +103,7 @@ public static Builder builder() { public static Builder builder(GetKeyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String awsAccountId; @@ -162,11 +123,7 @@ public static final class Builder { private List multiRegionConfigurations; private String origin; private String validTo; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetKeyResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -189,38 +146,47 @@ public Builder(GetKeyResult defaults) { this.validTo = defaults.validTo; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder awsAccountId(String awsAccountId) { this.awsAccountId = Objects.requireNonNull(awsAccountId); return this; } + @CustomType.Setter public Builder creationDate(String creationDate) { this.creationDate = Objects.requireNonNull(creationDate); return this; } + @CustomType.Setter public Builder customerMasterKeySpec(String customerMasterKeySpec) { this.customerMasterKeySpec = Objects.requireNonNull(customerMasterKeySpec); return this; } + @CustomType.Setter public Builder deletionDate(String deletionDate) { this.deletionDate = Objects.requireNonNull(deletionDate); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder expirationModel(String expirationModel) { this.expirationModel = Objects.requireNonNull(expirationModel); return this; } + @CustomType.Setter public Builder grantTokens(@Nullable List grantTokens) { this.grantTokens = grantTokens; return this; @@ -228,30 +194,37 @@ public Builder grantTokens(@Nullable List grantTokens) { public Builder grantTokens(String... grantTokens) { return grantTokens(List.of(grantTokens)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder keyId(String keyId) { this.keyId = Objects.requireNonNull(keyId); return this; } + @CustomType.Setter public Builder keyManager(String keyManager) { this.keyManager = Objects.requireNonNull(keyManager); return this; } + @CustomType.Setter public Builder keyState(String keyState) { this.keyState = Objects.requireNonNull(keyState); return this; } + @CustomType.Setter public Builder keyUsage(String keyUsage) { this.keyUsage = Objects.requireNonNull(keyUsage); return this; } + @CustomType.Setter public Builder multiRegion(Boolean multiRegion) { this.multiRegion = Objects.requireNonNull(multiRegion); return this; } + @CustomType.Setter public Builder multiRegionConfigurations(List multiRegionConfigurations) { this.multiRegionConfigurations = Objects.requireNonNull(multiRegionConfigurations); return this; @@ -259,15 +232,37 @@ public Builder multiRegionConfigurations(List mu public Builder multiRegionConfigurations(GetKeyMultiRegionConfiguration... multiRegionConfigurations) { return multiRegionConfigurations(List.of(multiRegionConfigurations)); } + @CustomType.Setter public Builder origin(String origin) { this.origin = Objects.requireNonNull(origin); return this; } + @CustomType.Setter public Builder validTo(String validTo) { this.validTo = Objects.requireNonNull(validTo); return this; - } public GetKeyResult build() { - return new GetKeyResult(arn, awsAccountId, creationDate, customerMasterKeySpec, deletionDate, description, enabled, expirationModel, grantTokens, id, keyId, keyManager, keyState, keyUsage, multiRegion, multiRegionConfigurations, origin, validTo); + } + public GetKeyResult build() { + final var o = new GetKeyResult(); + o.arn = arn; + o.awsAccountId = awsAccountId; + o.creationDate = creationDate; + o.customerMasterKeySpec = customerMasterKeySpec; + o.deletionDate = deletionDate; + o.description = description; + o.enabled = enabled; + o.expirationModel = expirationModel; + o.grantTokens = grantTokens; + o.id = id; + o.keyId = keyId; + o.keyManager = keyManager; + o.keyState = keyState; + o.keyUsage = keyUsage; + o.multiRegion = multiRegion; + o.multiRegionConfigurations = multiRegionConfigurations; + o.origin = origin; + o.validTo = validTo; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetPublicKeyResult.java b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetPublicKeyResult.java index cad82617ae6..ff0ea682312 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetPublicKeyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetPublicKeyResult.java @@ -15,69 +15,46 @@ public final class GetPublicKeyResult { * @return Key ARN of the asymmetric CMK from which the public key was downloaded. * */ - private final String arn; + private String arn; /** * @return Type of the public key that was downloaded. * */ - private final String customerMasterKeySpec; + private String customerMasterKeySpec; /** * @return Encryption algorithms that AWS KMS supports for this key. Only set when the `key_usage` of the public key is `ENCRYPT_DECRYPT`. * */ - private final List encryptionAlgorithms; - private final @Nullable List grantTokens; + private List encryptionAlgorithms; + private @Nullable List grantTokens; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String keyId; + private String id; + private String keyId; /** * @return Permitted use of the public key. Valid values are `ENCRYPT_DECRYPT` or `SIGN_VERIFY` * */ - private final String keyUsage; + private String keyUsage; /** * @return Exported public key. The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI), as defined in [RFC 5280](https://tools.ietf.org/html/rfc5280). The value is Base64-encoded. * */ - private final String publicKey; + private String publicKey; /** * @return Exported public key. The value is Privacy Enhanced Mail (PEM) encoded. * */ - private final String publicKeyPem; + private String publicKeyPem; /** * @return Signing algorithms that AWS KMS supports for this key. Only set when the `key_usage` of the public key is `SIGN_VERIFY`. * */ - private final List signingAlgorithms; - - @CustomType.Constructor - private GetPublicKeyResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("customerMasterKeySpec") String customerMasterKeySpec, - @CustomType.Parameter("encryptionAlgorithms") List encryptionAlgorithms, - @CustomType.Parameter("grantTokens") @Nullable List grantTokens, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("keyId") String keyId, - @CustomType.Parameter("keyUsage") String keyUsage, - @CustomType.Parameter("publicKey") String publicKey, - @CustomType.Parameter("publicKeyPem") String publicKeyPem, - @CustomType.Parameter("signingAlgorithms") List signingAlgorithms) { - this.arn = arn; - this.customerMasterKeySpec = customerMasterKeySpec; - this.encryptionAlgorithms = encryptionAlgorithms; - this.grantTokens = grantTokens; - this.id = id; - this.keyId = keyId; - this.keyUsage = keyUsage; - this.publicKey = publicKey; - this.publicKeyPem = publicKeyPem; - this.signingAlgorithms = signingAlgorithms; - } + private List signingAlgorithms; + private GetPublicKeyResult() {} /** * @return Key ARN of the asymmetric CMK from which the public key was downloaded. * @@ -148,7 +125,7 @@ public static Builder builder() { public static Builder builder(GetPublicKeyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String customerMasterKeySpec; @@ -160,11 +137,7 @@ public static final class Builder { private String publicKey; private String publicKeyPem; private List signingAlgorithms; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPublicKeyResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -179,14 +152,17 @@ public Builder(GetPublicKeyResult defaults) { this.signingAlgorithms = defaults.signingAlgorithms; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder customerMasterKeySpec(String customerMasterKeySpec) { this.customerMasterKeySpec = Objects.requireNonNull(customerMasterKeySpec); return this; } + @CustomType.Setter public Builder encryptionAlgorithms(List encryptionAlgorithms) { this.encryptionAlgorithms = Objects.requireNonNull(encryptionAlgorithms); return this; @@ -194,6 +170,7 @@ public Builder encryptionAlgorithms(List encryptionAlgorithms) { public Builder encryptionAlgorithms(String... encryptionAlgorithms) { return encryptionAlgorithms(List.of(encryptionAlgorithms)); } + @CustomType.Setter public Builder grantTokens(@Nullable List grantTokens) { this.grantTokens = grantTokens; return this; @@ -201,34 +178,52 @@ public Builder grantTokens(@Nullable List grantTokens) { public Builder grantTokens(String... grantTokens) { return grantTokens(List.of(grantTokens)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder keyId(String keyId) { this.keyId = Objects.requireNonNull(keyId); return this; } + @CustomType.Setter public Builder keyUsage(String keyUsage) { this.keyUsage = Objects.requireNonNull(keyUsage); return this; } + @CustomType.Setter public Builder publicKey(String publicKey) { this.publicKey = Objects.requireNonNull(publicKey); return this; } + @CustomType.Setter public Builder publicKeyPem(String publicKeyPem) { this.publicKeyPem = Objects.requireNonNull(publicKeyPem); return this; } + @CustomType.Setter public Builder signingAlgorithms(List signingAlgorithms) { this.signingAlgorithms = Objects.requireNonNull(signingAlgorithms); return this; } public Builder signingAlgorithms(String... signingAlgorithms) { return signingAlgorithms(List.of(signingAlgorithms)); - } public GetPublicKeyResult build() { - return new GetPublicKeyResult(arn, customerMasterKeySpec, encryptionAlgorithms, grantTokens, id, keyId, keyUsage, publicKey, publicKeyPem, signingAlgorithms); + } + public GetPublicKeyResult build() { + final var o = new GetPublicKeyResult(); + o.arn = arn; + o.customerMasterKeySpec = customerMasterKeySpec; + o.encryptionAlgorithms = encryptionAlgorithms; + o.grantTokens = grantTokens; + o.id = id; + o.keyId = keyId; + o.keyUsage = keyUsage; + o.publicKey = publicKey; + o.publicKeyPem = publicKeyPem; + o.signingAlgorithms = signingAlgorithms; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretResult.java b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretResult.java index b6ac41e56dc..7d37a5574b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretResult.java @@ -15,17 +15,10 @@ public final class GetSecretResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final List secrets; - - @CustomType.Constructor - private GetSecretResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("secrets") List secrets) { - this.id = id; - this.secrets = secrets; - } + private String id; + private List secrets; + private GetSecretResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -44,33 +37,35 @@ public static Builder builder() { public static Builder builder(GetSecretResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private List secrets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecretResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.secrets = defaults.secrets; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder secrets(List secrets) { this.secrets = Objects.requireNonNull(secrets); return this; } public Builder secrets(GetSecretSecret... secrets) { return secrets(List.of(secrets)); - } public GetSecretResult build() { - return new GetSecretResult(id, secrets); + } + public GetSecretResult build() { + final var o = new GetSecretResult(); + o.id = id; + o.secrets = secrets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretSecret.java b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretSecret.java index 8ab88957b4c..3cae23d3977 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretSecret.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretSecret.java @@ -12,23 +12,12 @@ @CustomType public final class GetSecretSecret { - private final @Nullable Map context; - private final @Nullable List grantTokens; - private final String name; - private final String payload; - - @CustomType.Constructor - private GetSecretSecret( - @CustomType.Parameter("context") @Nullable Map context, - @CustomType.Parameter("grantTokens") @Nullable List grantTokens, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("payload") String payload) { - this.context = context; - this.grantTokens = grantTokens; - this.name = name; - this.payload = payload; - } + private @Nullable Map context; + private @Nullable List grantTokens; + private String name; + private String payload; + private GetSecretSecret() {} public Map context() { return this.context == null ? Map.of() : this.context; } @@ -49,17 +38,13 @@ public static Builder builder() { public static Builder builder(GetSecretSecret defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map context; private @Nullable List grantTokens; private String name; private String payload; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecretSecret defaults) { Objects.requireNonNull(defaults); this.context = defaults.context; @@ -68,10 +53,12 @@ public Builder(GetSecretSecret defaults) { this.payload = defaults.payload; } + @CustomType.Setter public Builder context(@Nullable Map context) { this.context = context; return this; } + @CustomType.Setter public Builder grantTokens(@Nullable List grantTokens) { this.grantTokens = grantTokens; return this; @@ -79,15 +66,23 @@ public Builder grantTokens(@Nullable List grantTokens) { public Builder grantTokens(String... grantTokens) { return grantTokens(List.of(grantTokens)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder payload(String payload) { this.payload = Objects.requireNonNull(payload); return this; - } public GetSecretSecret build() { - return new GetSecretSecret(context, grantTokens, name, payload); + } + public GetSecretSecret build() { + final var o = new GetSecretSecret(); + o.context = context; + o.grantTokens = grantTokens; + o.name = name; + o.payload = payload; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretsResult.java b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretsResult.java index 54b04691e44..1133fbe7a6d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretsResult.java @@ -16,24 +16,15 @@ public final class GetSecretsResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Map containing each `secret` `name` as the key with its decrypted plaintext value * */ - private final Map plaintext; - private final List secrets; - - @CustomType.Constructor - private GetSecretsResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("plaintext") Map plaintext, - @CustomType.Parameter("secrets") List secrets) { - this.id = id; - this.plaintext = plaintext; - this.secrets = secrets; - } + private Map plaintext; + private List secrets; + private GetSecretsResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(GetSecretsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private Map plaintext; private List secrets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecretsResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -76,22 +63,30 @@ public Builder(GetSecretsResult defaults) { this.secrets = defaults.secrets; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder plaintext(Map plaintext) { this.plaintext = Objects.requireNonNull(plaintext); return this; } + @CustomType.Setter public Builder secrets(List secrets) { this.secrets = Objects.requireNonNull(secrets); return this; } public Builder secrets(GetSecretsSecret... secrets) { return secrets(List.of(secrets)); - } public GetSecretsResult build() { - return new GetSecretsResult(id, plaintext, secrets); + } + public GetSecretsResult build() { + final var o = new GetSecretsResult(); + o.id = id; + o.plaintext = plaintext; + o.secrets = secrets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretsSecret.java b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretsSecret.java index 9dc45367e1c..dbf5bfd0e04 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretsSecret.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GetSecretsSecret.java @@ -16,35 +16,24 @@ public final class GetSecretsSecret { * @return An optional mapping that makes up the Encryption Context for the secret. * */ - private final @Nullable Map context; + private @Nullable Map context; /** * @return An optional list of Grant Tokens for the secret. * */ - private final @Nullable List grantTokens; + private @Nullable List grantTokens; /** * @return The name to export this secret under in the attributes. * */ - private final String name; + private String name; /** * @return Base64 encoded payload, as returned from a KMS encrypt operation. * */ - private final String payload; - - @CustomType.Constructor - private GetSecretsSecret( - @CustomType.Parameter("context") @Nullable Map context, - @CustomType.Parameter("grantTokens") @Nullable List grantTokens, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("payload") String payload) { - this.context = context; - this.grantTokens = grantTokens; - this.name = name; - this.payload = payload; - } + private String payload; + private GetSecretsSecret() {} /** * @return An optional mapping that makes up the Encryption Context for the secret. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(GetSecretsSecret defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map context; private @Nullable List grantTokens; private String name; private String payload; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecretsSecret defaults) { Objects.requireNonNull(defaults); this.context = defaults.context; @@ -100,10 +85,12 @@ public Builder(GetSecretsSecret defaults) { this.payload = defaults.payload; } + @CustomType.Setter public Builder context(@Nullable Map context) { this.context = context; return this; } + @CustomType.Setter public Builder grantTokens(@Nullable List grantTokens) { this.grantTokens = grantTokens; return this; @@ -111,15 +98,23 @@ public Builder grantTokens(@Nullable List grantTokens) { public Builder grantTokens(String... grantTokens) { return grantTokens(List.of(grantTokens)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder payload(String payload) { this.payload = Objects.requireNonNull(payload); return this; - } public GetSecretsSecret build() { - return new GetSecretsSecret(context, grantTokens, name, payload); + } + public GetSecretsSecret build() { + final var o = new GetSecretsSecret(); + o.context = context; + o.grantTokens = grantTokens; + o.name = name; + o.payload = payload; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GrantConstraint.java b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GrantConstraint.java index 3300fe34df9..fb1bb1a9ae0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GrantConstraint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/kms/outputs/GrantConstraint.java @@ -15,21 +15,14 @@ public final class GrantConstraint { * @return A list of key-value pairs that must match the encryption context in subsequent cryptographic operation requests. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint. Conflicts with `encryption_context_subset`. * */ - private final @Nullable Map encryptionContextEquals; + private @Nullable Map encryptionContextEquals; /** * @return A list of key-value pairs that must be included in the encryption context of subsequent cryptographic operation requests. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs. Conflicts with `encryption_context_equals`. * */ - private final @Nullable Map encryptionContextSubset; - - @CustomType.Constructor - private GrantConstraint( - @CustomType.Parameter("encryptionContextEquals") @Nullable Map encryptionContextEquals, - @CustomType.Parameter("encryptionContextSubset") @Nullable Map encryptionContextSubset) { - this.encryptionContextEquals = encryptionContextEquals; - this.encryptionContextSubset = encryptionContextSubset; - } + private @Nullable Map encryptionContextSubset; + private GrantConstraint() {} /** * @return A list of key-value pairs that must match the encryption context in subsequent cryptographic operation requests. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint. Conflicts with `encryption_context_subset`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GrantConstraint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map encryptionContextEquals; private @Nullable Map encryptionContextSubset; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GrantConstraint defaults) { Objects.requireNonNull(defaults); this.encryptionContextEquals = defaults.encryptionContextEquals; this.encryptionContextSubset = defaults.encryptionContextSubset; } + @CustomType.Setter public Builder encryptionContextEquals(@Nullable Map encryptionContextEquals) { this.encryptionContextEquals = encryptionContextEquals; return this; } + @CustomType.Setter public Builder encryptionContextSubset(@Nullable Map encryptionContextSubset) { this.encryptionContextSubset = encryptionContextSubset; return this; - } public GrantConstraint build() { - return new GrantConstraint(encryptionContextEquals, encryptionContextSubset); + } + public GrantConstraint build() { + final var o = new GrantConstraint(); + o.encryptionContextEquals = encryptionContextEquals; + o.encryptionContextSubset = encryptionContextSubset; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/DataLakeSettingsCreateDatabaseDefaultPermission.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/DataLakeSettingsCreateDatabaseDefaultPermission.java index 53718aeb945..45b014a57c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/DataLakeSettingsCreateDatabaseDefaultPermission.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/DataLakeSettingsCreateDatabaseDefaultPermission.java @@ -16,21 +16,14 @@ public final class DataLakeSettingsCreateDatabaseDefaultPermission { * @return List of permissions that are granted to the principal. Valid values may include `ALL`, `SELECT`, `ALTER`, `DROP`, `DELETE`, `INSERT`, and `DESCRIBE`. For more details, see [Lake Formation Permissions Reference](https://docs.aws.amazon.com/lake-formation/latest/dg/lf-permissions-reference.html). * */ - private final @Nullable List permissions; + private @Nullable List permissions; /** * @return Principal who is granted permissions. To enforce metadata and underlying data access control only by IAM on new databases and tables set `principal` to `IAM_ALLOWED_PRINCIPALS` and `permissions` to `["ALL"]`. * */ - private final @Nullable String principal; - - @CustomType.Constructor - private DataLakeSettingsCreateDatabaseDefaultPermission( - @CustomType.Parameter("permissions") @Nullable List permissions, - @CustomType.Parameter("principal") @Nullable String principal) { - this.permissions = permissions; - this.principal = principal; - } + private @Nullable String principal; + private DataLakeSettingsCreateDatabaseDefaultPermission() {} /** * @return List of permissions that are granted to the principal. Valid values may include `ALL`, `SELECT`, `ALTER`, `DROP`, `DELETE`, `INSERT`, and `DESCRIBE`. For more details, see [Lake Formation Permissions Reference](https://docs.aws.amazon.com/lake-formation/latest/dg/lf-permissions-reference.html). * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(DataLakeSettingsCreateDatabaseDefaultPermission defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List permissions; private @Nullable String principal; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataLakeSettingsCreateDatabaseDefaultPermission defaults) { Objects.requireNonNull(defaults); this.permissions = defaults.permissions; this.principal = defaults.principal; } + @CustomType.Setter public Builder permissions(@Nullable List permissions) { this.permissions = permissions; return this; @@ -75,11 +65,16 @@ public Builder permissions(@Nullable List permissions) { public Builder permissions(String... permissions) { return permissions(List.of(permissions)); } + @CustomType.Setter public Builder principal(@Nullable String principal) { this.principal = principal; return this; - } public DataLakeSettingsCreateDatabaseDefaultPermission build() { - return new DataLakeSettingsCreateDatabaseDefaultPermission(permissions, principal); + } + public DataLakeSettingsCreateDatabaseDefaultPermission build() { + final var o = new DataLakeSettingsCreateDatabaseDefaultPermission(); + o.permissions = permissions; + o.principal = principal; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/DataLakeSettingsCreateTableDefaultPermission.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/DataLakeSettingsCreateTableDefaultPermission.java index 1e2bed35b6f..cd6a622fb45 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/DataLakeSettingsCreateTableDefaultPermission.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/DataLakeSettingsCreateTableDefaultPermission.java @@ -16,21 +16,14 @@ public final class DataLakeSettingsCreateTableDefaultPermission { * @return List of permissions that are granted to the principal. Valid values may include `ALL`, `SELECT`, `ALTER`, `DROP`, `DELETE`, `INSERT`, and `DESCRIBE`. For more details, see [Lake Formation Permissions Reference](https://docs.aws.amazon.com/lake-formation/latest/dg/lf-permissions-reference.html). * */ - private final @Nullable List permissions; + private @Nullable List permissions; /** * @return Principal who is granted permissions. To enforce metadata and underlying data access control only by IAM on new databases and tables set `principal` to `IAM_ALLOWED_PRINCIPALS` and `permissions` to `["ALL"]`. * */ - private final @Nullable String principal; - - @CustomType.Constructor - private DataLakeSettingsCreateTableDefaultPermission( - @CustomType.Parameter("permissions") @Nullable List permissions, - @CustomType.Parameter("principal") @Nullable String principal) { - this.permissions = permissions; - this.principal = principal; - } + private @Nullable String principal; + private DataLakeSettingsCreateTableDefaultPermission() {} /** * @return List of permissions that are granted to the principal. Valid values may include `ALL`, `SELECT`, `ALTER`, `DROP`, `DELETE`, `INSERT`, and `DESCRIBE`. For more details, see [Lake Formation Permissions Reference](https://docs.aws.amazon.com/lake-formation/latest/dg/lf-permissions-reference.html). * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(DataLakeSettingsCreateTableDefaultPermission defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List permissions; private @Nullable String principal; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataLakeSettingsCreateTableDefaultPermission defaults) { Objects.requireNonNull(defaults); this.permissions = defaults.permissions; this.principal = defaults.principal; } + @CustomType.Setter public Builder permissions(@Nullable List permissions) { this.permissions = permissions; return this; @@ -75,11 +65,16 @@ public Builder permissions(@Nullable List permissions) { public Builder permissions(String... permissions) { return permissions(List.of(permissions)); } + @CustomType.Setter public Builder principal(@Nullable String principal) { this.principal = principal; return this; - } public DataLakeSettingsCreateTableDefaultPermission build() { - return new DataLakeSettingsCreateTableDefaultPermission(permissions, principal); + } + public DataLakeSettingsCreateTableDefaultPermission build() { + final var o = new DataLakeSettingsCreateTableDefaultPermission(); + o.permissions = permissions; + o.principal = principal; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetDataLakeSettingsCreateDatabaseDefaultPermission.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetDataLakeSettingsCreateDatabaseDefaultPermission.java index c1d89cb7fba..a71926f7741 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetDataLakeSettingsCreateDatabaseDefaultPermission.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetDataLakeSettingsCreateDatabaseDefaultPermission.java @@ -14,21 +14,14 @@ public final class GetDataLakeSettingsCreateDatabaseDefaultPermission { * @return List of permissions granted to the principal. * */ - private final List permissions; + private List permissions; /** * @return Principal who is granted permissions. * */ - private final String principal; - - @CustomType.Constructor - private GetDataLakeSettingsCreateDatabaseDefaultPermission( - @CustomType.Parameter("permissions") List permissions, - @CustomType.Parameter("principal") String principal) { - this.permissions = permissions; - this.principal = principal; - } + private String principal; + private GetDataLakeSettingsCreateDatabaseDefaultPermission() {} /** * @return List of permissions granted to the principal. * @@ -51,21 +44,18 @@ public static Builder builder() { public static Builder builder(GetDataLakeSettingsCreateDatabaseDefaultPermission defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List permissions; private String principal; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDataLakeSettingsCreateDatabaseDefaultPermission defaults) { Objects.requireNonNull(defaults); this.permissions = defaults.permissions; this.principal = defaults.principal; } + @CustomType.Setter public Builder permissions(List permissions) { this.permissions = Objects.requireNonNull(permissions); return this; @@ -73,11 +63,16 @@ public Builder permissions(List permissions) { public Builder permissions(String... permissions) { return permissions(List.of(permissions)); } + @CustomType.Setter public Builder principal(String principal) { this.principal = Objects.requireNonNull(principal); return this; - } public GetDataLakeSettingsCreateDatabaseDefaultPermission build() { - return new GetDataLakeSettingsCreateDatabaseDefaultPermission(permissions, principal); + } + public GetDataLakeSettingsCreateDatabaseDefaultPermission build() { + final var o = new GetDataLakeSettingsCreateDatabaseDefaultPermission(); + o.permissions = permissions; + o.principal = principal; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetDataLakeSettingsCreateTableDefaultPermission.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetDataLakeSettingsCreateTableDefaultPermission.java index 10bf6c98d67..73498a34ee1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetDataLakeSettingsCreateTableDefaultPermission.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetDataLakeSettingsCreateTableDefaultPermission.java @@ -14,21 +14,14 @@ public final class GetDataLakeSettingsCreateTableDefaultPermission { * @return List of permissions granted to the principal. * */ - private final List permissions; + private List permissions; /** * @return Principal who is granted permissions. * */ - private final String principal; - - @CustomType.Constructor - private GetDataLakeSettingsCreateTableDefaultPermission( - @CustomType.Parameter("permissions") List permissions, - @CustomType.Parameter("principal") String principal) { - this.permissions = permissions; - this.principal = principal; - } + private String principal; + private GetDataLakeSettingsCreateTableDefaultPermission() {} /** * @return List of permissions granted to the principal. * @@ -51,21 +44,18 @@ public static Builder builder() { public static Builder builder(GetDataLakeSettingsCreateTableDefaultPermission defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List permissions; private String principal; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDataLakeSettingsCreateTableDefaultPermission defaults) { Objects.requireNonNull(defaults); this.permissions = defaults.permissions; this.principal = defaults.principal; } + @CustomType.Setter public Builder permissions(List permissions) { this.permissions = Objects.requireNonNull(permissions); return this; @@ -73,11 +63,16 @@ public Builder permissions(List permissions) { public Builder permissions(String... permissions) { return permissions(List.of(permissions)); } + @CustomType.Setter public Builder principal(String principal) { this.principal = Objects.requireNonNull(principal); return this; - } public GetDataLakeSettingsCreateTableDefaultPermission build() { - return new GetDataLakeSettingsCreateTableDefaultPermission(permissions, principal); + } + public GetDataLakeSettingsCreateTableDefaultPermission build() { + final var o = new GetDataLakeSettingsCreateTableDefaultPermission(); + o.permissions = permissions; + o.principal = principal; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetDataLakeSettingsResult.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetDataLakeSettingsResult.java index d02d7579854..b5c8fae1125 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetDataLakeSettingsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetDataLakeSettingsResult.java @@ -18,45 +18,30 @@ public final class GetDataLakeSettingsResult { * @return List of ARNs of AWS Lake Formation principals (IAM users or roles). * */ - private final List admins; - private final @Nullable String catalogId; + private List admins; + private @Nullable String catalogId; /** * @return Up to three configuration blocks of principal permissions for default create database permissions. Detailed below. * */ - private final List createDatabaseDefaultPermissions; + private List createDatabaseDefaultPermissions; /** * @return Up to three configuration blocks of principal permissions for default create table permissions. Detailed below. * */ - private final List createTableDefaultPermissions; + private List createTableDefaultPermissions; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return List of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs). * */ - private final List trustedResourceOwners; - - @CustomType.Constructor - private GetDataLakeSettingsResult( - @CustomType.Parameter("admins") List admins, - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("createDatabaseDefaultPermissions") List createDatabaseDefaultPermissions, - @CustomType.Parameter("createTableDefaultPermissions") List createTableDefaultPermissions, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("trustedResourceOwners") List trustedResourceOwners) { - this.admins = admins; - this.catalogId = catalogId; - this.createDatabaseDefaultPermissions = createDatabaseDefaultPermissions; - this.createTableDefaultPermissions = createTableDefaultPermissions; - this.id = id; - this.trustedResourceOwners = trustedResourceOwners; - } + private List trustedResourceOwners; + private GetDataLakeSettingsResult() {} /** * @return List of ARNs of AWS Lake Formation principals (IAM users or roles). * @@ -103,7 +88,7 @@ public static Builder builder() { public static Builder builder(GetDataLakeSettingsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List admins; private @Nullable String catalogId; @@ -111,11 +96,7 @@ public static final class Builder { private List createTableDefaultPermissions; private String id; private List trustedResourceOwners; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDataLakeSettingsResult defaults) { Objects.requireNonNull(defaults); this.admins = defaults.admins; @@ -126,6 +107,7 @@ public Builder(GetDataLakeSettingsResult defaults) { this.trustedResourceOwners = defaults.trustedResourceOwners; } + @CustomType.Setter public Builder admins(List admins) { this.admins = Objects.requireNonNull(admins); return this; @@ -133,10 +115,12 @@ public Builder admins(List admins) { public Builder admins(String... admins) { return admins(List.of(admins)); } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder createDatabaseDefaultPermissions(List createDatabaseDefaultPermissions) { this.createDatabaseDefaultPermissions = Objects.requireNonNull(createDatabaseDefaultPermissions); return this; @@ -144,6 +128,7 @@ public Builder createDatabaseDefaultPermissions(List createTableDefaultPermissions) { this.createTableDefaultPermissions = Objects.requireNonNull(createTableDefaultPermissions); return this; @@ -151,18 +136,28 @@ public Builder createTableDefaultPermissions(List trustedResourceOwners) { this.trustedResourceOwners = Objects.requireNonNull(trustedResourceOwners); return this; } public Builder trustedResourceOwners(String... trustedResourceOwners) { return trustedResourceOwners(List.of(trustedResourceOwners)); - } public GetDataLakeSettingsResult build() { - return new GetDataLakeSettingsResult(admins, catalogId, createDatabaseDefaultPermissions, createTableDefaultPermissions, id, trustedResourceOwners); + } + public GetDataLakeSettingsResult build() { + final var o = new GetDataLakeSettingsResult(); + o.admins = admins; + o.catalogId = catalogId; + o.createDatabaseDefaultPermissions = createDatabaseDefaultPermissions; + o.createTableDefaultPermissions = createTableDefaultPermissions; + o.id = id; + o.trustedResourceOwners = trustedResourceOwners; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsDataLocation.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsDataLocation.java index fd37210407d..22ef52a399b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsDataLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsDataLocation.java @@ -13,21 +13,14 @@ public final class GetPermissionsDataLocation { * @return Amazon Resource Name (ARN) that uniquely identifies the data location resource. * */ - private final String arn; + private String arn; /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final String catalogId; - - @CustomType.Constructor - private GetPermissionsDataLocation( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("catalogId") String catalogId) { - this.arn = arn; - this.catalogId = catalogId; - } + private String catalogId; + private GetPermissionsDataLocation() {} /** * @return Amazon Resource Name (ARN) that uniquely identifies the data location resource. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetPermissionsDataLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String catalogId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPermissionsDataLocation defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.catalogId = defaults.catalogId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder catalogId(String catalogId) { this.catalogId = Objects.requireNonNull(catalogId); return this; - } public GetPermissionsDataLocation build() { - return new GetPermissionsDataLocation(arn, catalogId); + } + public GetPermissionsDataLocation build() { + final var o = new GetPermissionsDataLocation(); + o.arn = arn; + o.catalogId = catalogId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsDatabase.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsDatabase.java index 2920bb0340a..9ccfdd697ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsDatabase.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsDatabase.java @@ -13,21 +13,14 @@ public final class GetPermissionsDatabase { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final String catalogId; + private String catalogId; /** * @return Name of the table resource. * */ - private final String name; - - @CustomType.Constructor - private GetPermissionsDatabase( - @CustomType.Parameter("catalogId") String catalogId, - @CustomType.Parameter("name") String name) { - this.catalogId = catalogId; - this.name = name; - } + private String name; + private GetPermissionsDatabase() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetPermissionsDatabase defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String catalogId; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPermissionsDatabase defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; this.name = defaults.name; } + @CustomType.Setter public Builder catalogId(String catalogId) { this.catalogId = Objects.requireNonNull(catalogId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetPermissionsDatabase build() { - return new GetPermissionsDatabase(catalogId, name); + } + public GetPermissionsDatabase build() { + final var o = new GetPermissionsDatabase(); + o.catalogId = catalogId; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsLfTag.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsLfTag.java index b0a2c0f7089..36bd1c31b0d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsLfTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsLfTag.java @@ -14,28 +14,19 @@ public final class GetPermissionsLfTag { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final String catalogId; + private String catalogId; /** * @return The key-name of an LF-Tag. * */ - private final String key; + private String key; /** * @return A list of possible values of an LF-Tag. * */ - private final List values; - - @CustomType.Constructor - private GetPermissionsLfTag( - @CustomType.Parameter("catalogId") String catalogId, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") List values) { - this.catalogId = catalogId; - this.key = key; - this.values = values; - } + private List values; + private GetPermissionsLfTag() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetPermissionsLfTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String catalogId; private String key; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPermissionsLfTag defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -82,22 +69,30 @@ public Builder(GetPermissionsLfTag defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder catalogId(String catalogId) { this.catalogId = Objects.requireNonNull(catalogId); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetPermissionsLfTag build() { - return new GetPermissionsLfTag(catalogId, key, values); + } + public GetPermissionsLfTag build() { + final var o = new GetPermissionsLfTag(); + o.catalogId = catalogId; + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsLfTagPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsLfTagPolicy.java index b2e7c16b789..a7c19f9e46e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsLfTagPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsLfTagPolicy.java @@ -15,28 +15,19 @@ public final class GetPermissionsLfTagPolicy { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final String catalogId; + private String catalogId; /** * @return A list of tag conditions that apply to the resource's tag policy. Configuration block for tag conditions that apply to the policy. See `expression` below. * */ - private final List expressions; + private List expressions; /** * @return The resource type for which the tag policy applies. Valid values are `DATABASE` and `TABLE`. * */ - private final String resourceType; - - @CustomType.Constructor - private GetPermissionsLfTagPolicy( - @CustomType.Parameter("catalogId") String catalogId, - @CustomType.Parameter("expressions") List expressions, - @CustomType.Parameter("resourceType") String resourceType) { - this.catalogId = catalogId; - this.expressions = expressions; - this.resourceType = resourceType; - } + private String resourceType; + private GetPermissionsLfTagPolicy() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetPermissionsLfTagPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String catalogId; private List expressions; private String resourceType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPermissionsLfTagPolicy defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -83,10 +70,12 @@ public Builder(GetPermissionsLfTagPolicy defaults) { this.resourceType = defaults.resourceType; } + @CustomType.Setter public Builder catalogId(String catalogId) { this.catalogId = Objects.requireNonNull(catalogId); return this; } + @CustomType.Setter public Builder expressions(List expressions) { this.expressions = Objects.requireNonNull(expressions); return this; @@ -94,11 +83,17 @@ public Builder expressions(List expressions public Builder expressions(GetPermissionsLfTagPolicyExpression... expressions) { return expressions(List.of(expressions)); } + @CustomType.Setter public Builder resourceType(String resourceType) { this.resourceType = Objects.requireNonNull(resourceType); return this; - } public GetPermissionsLfTagPolicy build() { - return new GetPermissionsLfTagPolicy(catalogId, expressions, resourceType); + } + public GetPermissionsLfTagPolicy build() { + final var o = new GetPermissionsLfTagPolicy(); + o.catalogId = catalogId; + o.expressions = expressions; + o.resourceType = resourceType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsLfTagPolicyExpression.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsLfTagPolicyExpression.java index c622e318557..c762b762ac6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsLfTagPolicyExpression.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsLfTagPolicyExpression.java @@ -14,21 +14,14 @@ public final class GetPermissionsLfTagPolicyExpression { * @return The key-name of an LF-Tag. * */ - private final String key; + private String key; /** * @return A list of possible values of an LF-Tag. * */ - private final List values; - - @CustomType.Constructor - private GetPermissionsLfTagPolicyExpression( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") List values) { - this.key = key; - this.values = values; - } + private List values; + private GetPermissionsLfTagPolicyExpression() {} /** * @return The key-name of an LF-Tag. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetPermissionsLfTagPolicyExpression defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPermissionsLfTagPolicyExpression defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetPermissionsLfTagPolicyExpression build() { - return new GetPermissionsLfTagPolicyExpression(key, values); + } + public GetPermissionsLfTagPolicyExpression build() { + final var o = new GetPermissionsLfTagPolicyExpression(); + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsResult.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsResult.java index ec7aa8f3768..dfc6b2d2a3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsResult.java @@ -19,59 +19,32 @@ @CustomType public final class GetPermissionsResult { - private final @Nullable String catalogId; - private final @Nullable Boolean catalogResource; - private final GetPermissionsDataLocation dataLocation; - private final GetPermissionsDatabase database; + private @Nullable String catalogId; + private @Nullable Boolean catalogResource; + private GetPermissionsDataLocation dataLocation; + private GetPermissionsDatabase database; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final GetPermissionsLfTag lfTag; - private final GetPermissionsLfTagPolicy lfTagPolicy; + private String id; + private GetPermissionsLfTag lfTag; + private GetPermissionsLfTagPolicy lfTagPolicy; /** * @return List of permissions granted to the principal. For details on permissions, see [Lake Formation Permissions Reference](https://docs.aws.amazon.com/lake-formation/latest/dg/lf-permissions-reference.html). * */ - private final List permissions; + private List permissions; /** * @return Subset of `permissions` which the principal can pass. * */ - private final List permissionsWithGrantOptions; - private final String principal; - private final GetPermissionsTable table; - private final GetPermissionsTableWithColumns tableWithColumns; - - @CustomType.Constructor - private GetPermissionsResult( - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("catalogResource") @Nullable Boolean catalogResource, - @CustomType.Parameter("dataLocation") GetPermissionsDataLocation dataLocation, - @CustomType.Parameter("database") GetPermissionsDatabase database, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lfTag") GetPermissionsLfTag lfTag, - @CustomType.Parameter("lfTagPolicy") GetPermissionsLfTagPolicy lfTagPolicy, - @CustomType.Parameter("permissions") List permissions, - @CustomType.Parameter("permissionsWithGrantOptions") List permissionsWithGrantOptions, - @CustomType.Parameter("principal") String principal, - @CustomType.Parameter("table") GetPermissionsTable table, - @CustomType.Parameter("tableWithColumns") GetPermissionsTableWithColumns tableWithColumns) { - this.catalogId = catalogId; - this.catalogResource = catalogResource; - this.dataLocation = dataLocation; - this.database = database; - this.id = id; - this.lfTag = lfTag; - this.lfTagPolicy = lfTagPolicy; - this.permissions = permissions; - this.permissionsWithGrantOptions = permissionsWithGrantOptions; - this.principal = principal; - this.table = table; - this.tableWithColumns = tableWithColumns; - } + private List permissionsWithGrantOptions; + private String principal; + private GetPermissionsTable table; + private GetPermissionsTableWithColumns tableWithColumns; + private GetPermissionsResult() {} public Optional catalogId() { return Optional.ofNullable(this.catalogId); } @@ -128,7 +101,7 @@ public static Builder builder() { public static Builder builder(GetPermissionsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalogId; private @Nullable Boolean catalogResource; @@ -142,11 +115,7 @@ public static final class Builder { private String principal; private GetPermissionsTable table; private GetPermissionsTableWithColumns tableWithColumns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPermissionsResult defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -163,34 +132,42 @@ public Builder(GetPermissionsResult defaults) { this.tableWithColumns = defaults.tableWithColumns; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder catalogResource(@Nullable Boolean catalogResource) { this.catalogResource = catalogResource; return this; } + @CustomType.Setter public Builder dataLocation(GetPermissionsDataLocation dataLocation) { this.dataLocation = Objects.requireNonNull(dataLocation); return this; } + @CustomType.Setter public Builder database(GetPermissionsDatabase database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lfTag(GetPermissionsLfTag lfTag) { this.lfTag = Objects.requireNonNull(lfTag); return this; } + @CustomType.Setter public Builder lfTagPolicy(GetPermissionsLfTagPolicy lfTagPolicy) { this.lfTagPolicy = Objects.requireNonNull(lfTagPolicy); return this; } + @CustomType.Setter public Builder permissions(List permissions) { this.permissions = Objects.requireNonNull(permissions); return this; @@ -198,6 +175,7 @@ public Builder permissions(List permissions) { public Builder permissions(String... permissions) { return permissions(List.of(permissions)); } + @CustomType.Setter public Builder permissionsWithGrantOptions(List permissionsWithGrantOptions) { this.permissionsWithGrantOptions = Objects.requireNonNull(permissionsWithGrantOptions); return this; @@ -205,19 +183,36 @@ public Builder permissionsWithGrantOptions(List permissionsWithGrantOpti public Builder permissionsWithGrantOptions(String... permissionsWithGrantOptions) { return permissionsWithGrantOptions(List.of(permissionsWithGrantOptions)); } + @CustomType.Setter public Builder principal(String principal) { this.principal = Objects.requireNonNull(principal); return this; } + @CustomType.Setter public Builder table(GetPermissionsTable table) { this.table = Objects.requireNonNull(table); return this; } + @CustomType.Setter public Builder tableWithColumns(GetPermissionsTableWithColumns tableWithColumns) { this.tableWithColumns = Objects.requireNonNull(tableWithColumns); return this; - } public GetPermissionsResult build() { - return new GetPermissionsResult(catalogId, catalogResource, dataLocation, database, id, lfTag, lfTagPolicy, permissions, permissionsWithGrantOptions, principal, table, tableWithColumns); + } + public GetPermissionsResult build() { + final var o = new GetPermissionsResult(); + o.catalogId = catalogId; + o.catalogResource = catalogResource; + o.dataLocation = dataLocation; + o.database = database; + o.id = id; + o.lfTag = lfTag; + o.lfTagPolicy = lfTagPolicy; + o.permissions = permissions; + o.permissionsWithGrantOptions = permissionsWithGrantOptions; + o.principal = principal; + o.table = table; + o.tableWithColumns = tableWithColumns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsTable.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsTable.java index cb438446e87..0fb6855491d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsTable.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsTable.java @@ -16,35 +16,24 @@ public final class GetPermissionsTable { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final String catalogId; + private String catalogId; /** * @return Name of the database for the table with columns resource. Unique to the Data Catalog. * */ - private final String databaseName; + private String databaseName; /** * @return Name of the table resource. * */ - private final String name; + private String name; /** * @return Whether to use a wildcard representing every table under a database. At least one of `name` or `wildcard` is required. Defaults to `false`. * */ - private final @Nullable Boolean wildcard; - - @CustomType.Constructor - private GetPermissionsTable( - @CustomType.Parameter("catalogId") String catalogId, - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("wildcard") @Nullable Boolean wildcard) { - this.catalogId = catalogId; - this.databaseName = databaseName; - this.name = name; - this.wildcard = wildcard; - } + private @Nullable Boolean wildcard; + private GetPermissionsTable() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(GetPermissionsTable defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String catalogId; private String databaseName; private String name; private @Nullable Boolean wildcard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPermissionsTable defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -100,23 +85,33 @@ public Builder(GetPermissionsTable defaults) { this.wildcard = defaults.wildcard; } + @CustomType.Setter public Builder catalogId(String catalogId) { this.catalogId = Objects.requireNonNull(catalogId); return this; } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder wildcard(@Nullable Boolean wildcard) { this.wildcard = wildcard; return this; - } public GetPermissionsTable build() { - return new GetPermissionsTable(catalogId, databaseName, name, wildcard); + } + public GetPermissionsTable build() { + final var o = new GetPermissionsTable(); + o.catalogId = catalogId; + o.databaseName = databaseName; + o.name = name; + o.wildcard = wildcard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsTableWithColumns.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsTableWithColumns.java index b6e48b93477..e2c48566025 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsTableWithColumns.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetPermissionsTableWithColumns.java @@ -17,49 +17,34 @@ public final class GetPermissionsTableWithColumns { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final String catalogId; + private String catalogId; /** * @return Set of column names for the table. At least one of `column_names` or `excluded_column_names` is required. * */ - private final @Nullable List columnNames; + private @Nullable List columnNames; /** * @return Name of the database for the table with columns resource. Unique to the Data Catalog. * */ - private final String databaseName; + private String databaseName; /** * @return Set of column names for the table to exclude. At least one of `column_names` or `excluded_column_names` is required. * */ - private final @Nullable List excludedColumnNames; + private @Nullable List excludedColumnNames; /** * @return Name of the table resource. * */ - private final String name; + private String name; /** * @return Whether to use a wildcard representing every table under a database. At least one of `name` or `wildcard` is required. Defaults to `false`. * */ - private final @Nullable Boolean wildcard; - - @CustomType.Constructor - private GetPermissionsTableWithColumns( - @CustomType.Parameter("catalogId") String catalogId, - @CustomType.Parameter("columnNames") @Nullable List columnNames, - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("excludedColumnNames") @Nullable List excludedColumnNames, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("wildcard") @Nullable Boolean wildcard) { - this.catalogId = catalogId; - this.columnNames = columnNames; - this.databaseName = databaseName; - this.excludedColumnNames = excludedColumnNames; - this.name = name; - this.wildcard = wildcard; - } + private @Nullable Boolean wildcard; + private GetPermissionsTableWithColumns() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -110,7 +95,7 @@ public static Builder builder() { public static Builder builder(GetPermissionsTableWithColumns defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String catalogId; private @Nullable List columnNames; @@ -118,11 +103,7 @@ public static final class Builder { private @Nullable List excludedColumnNames; private String name; private @Nullable Boolean wildcard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPermissionsTableWithColumns defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -133,10 +114,12 @@ public Builder(GetPermissionsTableWithColumns defaults) { this.wildcard = defaults.wildcard; } + @CustomType.Setter public Builder catalogId(String catalogId) { this.catalogId = Objects.requireNonNull(catalogId); return this; } + @CustomType.Setter public Builder columnNames(@Nullable List columnNames) { this.columnNames = columnNames; return this; @@ -144,10 +127,12 @@ public Builder columnNames(@Nullable List columnNames) { public Builder columnNames(String... columnNames) { return columnNames(List.of(columnNames)); } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder excludedColumnNames(@Nullable List excludedColumnNames) { this.excludedColumnNames = excludedColumnNames; return this; @@ -155,15 +140,25 @@ public Builder excludedColumnNames(@Nullable List excludedColumnNames) { public Builder excludedColumnNames(String... excludedColumnNames) { return excludedColumnNames(List.of(excludedColumnNames)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder wildcard(@Nullable Boolean wildcard) { this.wildcard = wildcard; return this; - } public GetPermissionsTableWithColumns build() { - return new GetPermissionsTableWithColumns(catalogId, columnNames, databaseName, excludedColumnNames, name, wildcard); + } + public GetPermissionsTableWithColumns build() { + final var o = new GetPermissionsTableWithColumns(); + o.catalogId = catalogId; + o.columnNames = columnNames; + o.databaseName = databaseName; + o.excludedColumnNames = excludedColumnNames; + o.name = name; + o.wildcard = wildcard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetResourceResult.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetResourceResult.java index d034894eb66..2ff95a91928 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetResourceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/GetResourceResult.java @@ -9,35 +9,24 @@ @CustomType public final class GetResourceResult { - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The date and time the resource was last modified in [RFC 3339 format](https://tools.ietf.org/html/rfc3339#section-5.8). * */ - private final String lastModified; + private String lastModified; /** * @return Role that the resource was registered with. * */ - private final String roleArn; - - @CustomType.Constructor - private GetResourceResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastModified") String lastModified, - @CustomType.Parameter("roleArn") String roleArn) { - this.arn = arn; - this.id = id; - this.lastModified = lastModified; - this.roleArn = roleArn; - } + private String roleArn; + private GetResourceResult() {} public String arn() { return this.arn; } @@ -70,17 +59,13 @@ public static Builder builder() { public static Builder builder(GetResourceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String lastModified; private String roleArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResourceResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -89,23 +74,33 @@ public Builder(GetResourceResult defaults) { this.roleArn = defaults.roleArn; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastModified(String lastModified) { this.lastModified = Objects.requireNonNull(lastModified); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; - } public GetResourceResult build() { - return new GetResourceResult(arn, id, lastModified, roleArn); + } + public GetResourceResult build() { + final var o = new GetResourceResult(); + o.arn = arn; + o.id = id; + o.lastModified = lastModified; + o.roleArn = roleArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsDataLocation.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsDataLocation.java index 1cb6856f9fc..879438e78be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsDataLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsDataLocation.java @@ -15,21 +15,14 @@ public final class PermissionsDataLocation { * @return Amazon Resource Name (ARN) that uniquely identifies the data location resource. * */ - private final String arn; + private String arn; /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final @Nullable String catalogId; - - @CustomType.Constructor - private PermissionsDataLocation( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("catalogId") @Nullable String catalogId) { - this.arn = arn; - this.catalogId = catalogId; - } + private @Nullable String catalogId; + private PermissionsDataLocation() {} /** * @return Amazon Resource Name (ARN) that uniquely identifies the data location resource. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(PermissionsDataLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable String catalogId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PermissionsDataLocation defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.catalogId = defaults.catalogId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; - } public PermissionsDataLocation build() { - return new PermissionsDataLocation(arn, catalogId); + } + public PermissionsDataLocation build() { + final var o = new PermissionsDataLocation(); + o.arn = arn; + o.catalogId = catalogId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsDatabase.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsDatabase.java index 33413ebec73..3cfdcf1d946 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsDatabase.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsDatabase.java @@ -15,21 +15,14 @@ public final class PermissionsDatabase { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final @Nullable String catalogId; + private @Nullable String catalogId; /** * @return Name of the table resource. * */ - private final String name; - - @CustomType.Constructor - private PermissionsDatabase( - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("name") String name) { - this.catalogId = catalogId; - this.name = name; - } + private String name; + private PermissionsDatabase() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(PermissionsDatabase defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalogId; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PermissionsDatabase defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; this.name = defaults.name; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public PermissionsDatabase build() { - return new PermissionsDatabase(catalogId, name); + } + public PermissionsDatabase build() { + final var o = new PermissionsDatabase(); + o.catalogId = catalogId; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsLfTag.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsLfTag.java index 07eeb7d9600..fcf4087eb17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsLfTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsLfTag.java @@ -16,28 +16,19 @@ public final class PermissionsLfTag { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final @Nullable String catalogId; + private @Nullable String catalogId; /** * @return The key-name of an LF-Tag. * */ - private final String key; + private String key; /** * @return A list of possible values of an LF-Tag. * */ - private final List values; - - @CustomType.Constructor - private PermissionsLfTag( - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") List values) { - this.catalogId = catalogId; - this.key = key; - this.values = values; - } + private List values; + private PermissionsLfTag() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(PermissionsLfTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalogId; private String key; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PermissionsLfTag defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -84,22 +71,30 @@ public Builder(PermissionsLfTag defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public PermissionsLfTag build() { - return new PermissionsLfTag(catalogId, key, values); + } + public PermissionsLfTag build() { + final var o = new PermissionsLfTag(); + o.catalogId = catalogId; + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsLfTagPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsLfTagPolicy.java index 88c8aa730d2..4f3fc4e0dad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsLfTagPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsLfTagPolicy.java @@ -17,28 +17,19 @@ public final class PermissionsLfTagPolicy { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final @Nullable String catalogId; + private @Nullable String catalogId; /** * @return A list of tag conditions that apply to the resource's tag policy. Configuration block for tag conditions that apply to the policy. See `expression` below. * */ - private final List expressions; + private List expressions; /** * @return The resource type for which the tag policy applies. Valid values are `DATABASE` and `TABLE`. * */ - private final String resourceType; - - @CustomType.Constructor - private PermissionsLfTagPolicy( - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("expressions") List expressions, - @CustomType.Parameter("resourceType") String resourceType) { - this.catalogId = catalogId; - this.expressions = expressions; - this.resourceType = resourceType; - } + private String resourceType; + private PermissionsLfTagPolicy() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(PermissionsLfTagPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalogId; private List expressions; private String resourceType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PermissionsLfTagPolicy defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -85,10 +72,12 @@ public Builder(PermissionsLfTagPolicy defaults) { this.resourceType = defaults.resourceType; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder expressions(List expressions) { this.expressions = Objects.requireNonNull(expressions); return this; @@ -96,11 +85,17 @@ public Builder expressions(List expressions) { public Builder expressions(PermissionsLfTagPolicyExpression... expressions) { return expressions(List.of(expressions)); } + @CustomType.Setter public Builder resourceType(String resourceType) { this.resourceType = Objects.requireNonNull(resourceType); return this; - } public PermissionsLfTagPolicy build() { - return new PermissionsLfTagPolicy(catalogId, expressions, resourceType); + } + public PermissionsLfTagPolicy build() { + final var o = new PermissionsLfTagPolicy(); + o.catalogId = catalogId; + o.expressions = expressions; + o.resourceType = resourceType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsLfTagPolicyExpression.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsLfTagPolicyExpression.java index d49205c456e..89c2c1f1e09 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsLfTagPolicyExpression.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsLfTagPolicyExpression.java @@ -14,21 +14,14 @@ public final class PermissionsLfTagPolicyExpression { * @return The key-name of an LF-Tag. * */ - private final String key; + private String key; /** * @return A list of possible values of an LF-Tag. * */ - private final List values; - - @CustomType.Constructor - private PermissionsLfTagPolicyExpression( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") List values) { - this.key = key; - this.values = values; - } + private List values; + private PermissionsLfTagPolicyExpression() {} /** * @return The key-name of an LF-Tag. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(PermissionsLfTagPolicyExpression defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PermissionsLfTagPolicyExpression defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public PermissionsLfTagPolicyExpression build() { - return new PermissionsLfTagPolicyExpression(key, values); + } + public PermissionsLfTagPolicyExpression build() { + final var o = new PermissionsLfTagPolicyExpression(); + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsTable.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsTable.java index fa37e2e6610..fab93d0fe86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsTable.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsTable.java @@ -16,31 +16,20 @@ public final class PermissionsTable { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final @Nullable String catalogId; + private @Nullable String catalogId; /** * @return Name of the database for the table with columns resource. Unique to the Data Catalog. * */ - private final String databaseName; + private String databaseName; /** * @return Name of the table resource. * */ - private final @Nullable String name; - private final @Nullable Boolean wildcard; - - @CustomType.Constructor - private PermissionsTable( - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("wildcard") @Nullable Boolean wildcard) { - this.catalogId = catalogId; - this.databaseName = databaseName; - this.name = name; - this.wildcard = wildcard; - } + private @Nullable String name; + private @Nullable Boolean wildcard; + private PermissionsTable() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -73,17 +62,13 @@ public static Builder builder() { public static Builder builder(PermissionsTable defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalogId; private String databaseName; private @Nullable String name; private @Nullable Boolean wildcard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PermissionsTable defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -92,23 +77,33 @@ public Builder(PermissionsTable defaults) { this.wildcard = defaults.wildcard; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder wildcard(@Nullable Boolean wildcard) { this.wildcard = wildcard; return this; - } public PermissionsTable build() { - return new PermissionsTable(catalogId, databaseName, name, wildcard); + } + public PermissionsTable build() { + final var o = new PermissionsTable(); + o.catalogId = catalogId; + o.databaseName = databaseName; + o.name = name; + o.wildcard = wildcard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsTableWithColumns.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsTableWithColumns.java index 913340c1f72..ec9e6cda082 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsTableWithColumns.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/PermissionsTableWithColumns.java @@ -17,41 +17,26 @@ public final class PermissionsTableWithColumns { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final @Nullable String catalogId; + private @Nullable String catalogId; /** * @return Set of column names for the table. * */ - private final @Nullable List columnNames; + private @Nullable List columnNames; /** * @return Name of the database for the table with columns resource. Unique to the Data Catalog. * */ - private final String databaseName; - private final @Nullable List excludedColumnNames; + private String databaseName; + private @Nullable List excludedColumnNames; /** * @return Name of the table resource. * */ - private final String name; - private final @Nullable Boolean wildcard; - - @CustomType.Constructor - private PermissionsTableWithColumns( - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("columnNames") @Nullable List columnNames, - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("excludedColumnNames") @Nullable List excludedColumnNames, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("wildcard") @Nullable Boolean wildcard) { - this.catalogId = catalogId; - this.columnNames = columnNames; - this.databaseName = databaseName; - this.excludedColumnNames = excludedColumnNames; - this.name = name; - this.wildcard = wildcard; - } + private String name; + private @Nullable Boolean wildcard; + private PermissionsTableWithColumns() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -94,7 +79,7 @@ public static Builder builder() { public static Builder builder(PermissionsTableWithColumns defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalogId; private @Nullable List columnNames; @@ -102,11 +87,7 @@ public static final class Builder { private @Nullable List excludedColumnNames; private String name; private @Nullable Boolean wildcard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PermissionsTableWithColumns defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -117,10 +98,12 @@ public Builder(PermissionsTableWithColumns defaults) { this.wildcard = defaults.wildcard; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder columnNames(@Nullable List columnNames) { this.columnNames = columnNames; return this; @@ -128,10 +111,12 @@ public Builder columnNames(@Nullable List columnNames) { public Builder columnNames(String... columnNames) { return columnNames(List.of(columnNames)); } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder excludedColumnNames(@Nullable List excludedColumnNames) { this.excludedColumnNames = excludedColumnNames; return this; @@ -139,15 +124,25 @@ public Builder excludedColumnNames(@Nullable List excludedColumnNames) { public Builder excludedColumnNames(String... excludedColumnNames) { return excludedColumnNames(List.of(excludedColumnNames)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder wildcard(@Nullable Boolean wildcard) { this.wildcard = wildcard; return this; - } public PermissionsTableWithColumns build() { - return new PermissionsTableWithColumns(catalogId, columnNames, databaseName, excludedColumnNames, name, wildcard); + } + public PermissionsTableWithColumns build() { + final var o = new PermissionsTableWithColumns(); + o.catalogId = catalogId; + o.columnNames = columnNames; + o.databaseName = databaseName; + o.excludedColumnNames = excludedColumnNames; + o.name = name; + o.wildcard = wildcard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsDatabase.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsDatabase.java index 9b20cf5d323..eb5ae55eddf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsDatabase.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsDatabase.java @@ -15,21 +15,14 @@ public final class ResourceLfTagsDatabase { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final @Nullable String catalogId; + private @Nullable String catalogId; /** * @return Name of the table resource. * */ - private final String name; - - @CustomType.Constructor - private ResourceLfTagsDatabase( - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("name") String name) { - this.catalogId = catalogId; - this.name = name; - } + private String name; + private ResourceLfTagsDatabase() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ResourceLfTagsDatabase defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalogId; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResourceLfTagsDatabase defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; this.name = defaults.name; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public ResourceLfTagsDatabase build() { - return new ResourceLfTagsDatabase(catalogId, name); + } + public ResourceLfTagsDatabase build() { + final var o = new ResourceLfTagsDatabase(); + o.catalogId = catalogId; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsLfTag.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsLfTag.java index 0e8b3a24e30..ca1842bc592 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsLfTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsLfTag.java @@ -15,28 +15,19 @@ public final class ResourceLfTagsLfTag { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final @Nullable String catalogId; + private @Nullable String catalogId; /** * @return Key name for an existing LF-tag. * */ - private final String key; + private String key; /** * @return Value from the possible values for the LF-tag. * */ - private final String value; - - @CustomType.Constructor - private ResourceLfTagsLfTag( - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.catalogId = catalogId; - this.key = key; - this.value = value; - } + private String value; + private ResourceLfTagsLfTag() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ResourceLfTagsLfTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalogId; private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResourceLfTagsLfTag defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -83,19 +70,27 @@ public Builder(ResourceLfTagsLfTag defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ResourceLfTagsLfTag build() { - return new ResourceLfTagsLfTag(catalogId, key, value); + } + public ResourceLfTagsLfTag build() { + final var o = new ResourceLfTagsLfTag(); + o.catalogId = catalogId; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsTable.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsTable.java index 7fae2cb0acb..541f7725579 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsTable.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsTable.java @@ -16,31 +16,20 @@ public final class ResourceLfTagsTable { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final @Nullable String catalogId; + private @Nullable String catalogId; /** * @return Name of the database for the table with columns resource. Unique to the Data Catalog. * */ - private final String databaseName; + private String databaseName; /** * @return Name of the table resource. * */ - private final @Nullable String name; - private final @Nullable Boolean wildcard; - - @CustomType.Constructor - private ResourceLfTagsTable( - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("wildcard") @Nullable Boolean wildcard) { - this.catalogId = catalogId; - this.databaseName = databaseName; - this.name = name; - this.wildcard = wildcard; - } + private @Nullable String name; + private @Nullable Boolean wildcard; + private ResourceLfTagsTable() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -73,17 +62,13 @@ public static Builder builder() { public static Builder builder(ResourceLfTagsTable defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalogId; private String databaseName; private @Nullable String name; private @Nullable Boolean wildcard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResourceLfTagsTable defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -92,23 +77,33 @@ public Builder(ResourceLfTagsTable defaults) { this.wildcard = defaults.wildcard; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder wildcard(@Nullable Boolean wildcard) { this.wildcard = wildcard; return this; - } public ResourceLfTagsTable build() { - return new ResourceLfTagsTable(catalogId, databaseName, name, wildcard); + } + public ResourceLfTagsTable build() { + final var o = new ResourceLfTagsTable(); + o.catalogId = catalogId; + o.databaseName = databaseName; + o.name = name; + o.wildcard = wildcard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsTableWithColumns.java b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsTableWithColumns.java index 367d2ac16dd..60cfcd93aa4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsTableWithColumns.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lakeformation/outputs/ResourceLfTagsTableWithColumns.java @@ -17,41 +17,26 @@ public final class ResourceLfTagsTableWithColumns { * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * */ - private final @Nullable String catalogId; + private @Nullable String catalogId; /** * @return Set of column names for the table. * */ - private final @Nullable List columnNames; + private @Nullable List columnNames; /** * @return Name of the database for the table with columns resource. Unique to the Data Catalog. * */ - private final String databaseName; - private final @Nullable List excludedColumnNames; + private String databaseName; + private @Nullable List excludedColumnNames; /** * @return Name of the table resource. * */ - private final String name; - private final @Nullable Boolean wildcard; - - @CustomType.Constructor - private ResourceLfTagsTableWithColumns( - @CustomType.Parameter("catalogId") @Nullable String catalogId, - @CustomType.Parameter("columnNames") @Nullable List columnNames, - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("excludedColumnNames") @Nullable List excludedColumnNames, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("wildcard") @Nullable Boolean wildcard) { - this.catalogId = catalogId; - this.columnNames = columnNames; - this.databaseName = databaseName; - this.excludedColumnNames = excludedColumnNames; - this.name = name; - this.wildcard = wildcard; - } + private String name; + private @Nullable Boolean wildcard; + private ResourceLfTagsTableWithColumns() {} /** * @return Identifier for the Data Catalog. By default, it is the account ID of the caller. * @@ -94,7 +79,7 @@ public static Builder builder() { public static Builder builder(ResourceLfTagsTableWithColumns defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalogId; private @Nullable List columnNames; @@ -102,11 +87,7 @@ public static final class Builder { private @Nullable List excludedColumnNames; private String name; private @Nullable Boolean wildcard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResourceLfTagsTableWithColumns defaults) { Objects.requireNonNull(defaults); this.catalogId = defaults.catalogId; @@ -117,10 +98,12 @@ public Builder(ResourceLfTagsTableWithColumns defaults) { this.wildcard = defaults.wildcard; } + @CustomType.Setter public Builder catalogId(@Nullable String catalogId) { this.catalogId = catalogId; return this; } + @CustomType.Setter public Builder columnNames(@Nullable List columnNames) { this.columnNames = columnNames; return this; @@ -128,10 +111,12 @@ public Builder columnNames(@Nullable List columnNames) { public Builder columnNames(String... columnNames) { return columnNames(List.of(columnNames)); } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder excludedColumnNames(@Nullable List excludedColumnNames) { this.excludedColumnNames = excludedColumnNames; return this; @@ -139,15 +124,25 @@ public Builder excludedColumnNames(@Nullable List excludedColumnNames) { public Builder excludedColumnNames(String... excludedColumnNames) { return excludedColumnNames(List.of(excludedColumnNames)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder wildcard(@Nullable Boolean wildcard) { this.wildcard = wildcard; return this; - } public ResourceLfTagsTableWithColumns build() { - return new ResourceLfTagsTableWithColumns(catalogId, columnNames, databaseName, excludedColumnNames, name, wildcard); + } + public ResourceLfTagsTableWithColumns build() { + final var o = new ResourceLfTagsTableWithColumns(); + o.catalogId = catalogId; + o.columnNames = columnNames; + o.databaseName = databaseName; + o.excludedColumnNames = excludedColumnNames; + o.name = name; + o.wildcard = wildcard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/AliasRoutingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/AliasRoutingConfig.java index aa051ef1552..66e147d1068 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/AliasRoutingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/AliasRoutingConfig.java @@ -16,13 +16,9 @@ public final class AliasRoutingConfig { * @return A map that defines the proportion of events that should be sent to different versions of a lambda function. * */ - private final @Nullable Map additionalVersionWeights; - - @CustomType.Constructor - private AliasRoutingConfig(@CustomType.Parameter("additionalVersionWeights") @Nullable Map additionalVersionWeights) { - this.additionalVersionWeights = additionalVersionWeights; - } + private @Nullable Map additionalVersionWeights; + private AliasRoutingConfig() {} /** * @return A map that defines the proportion of events that should be sent to different versions of a lambda function. * @@ -38,24 +34,24 @@ public static Builder builder() { public static Builder builder(AliasRoutingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map additionalVersionWeights; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AliasRoutingConfig defaults) { Objects.requireNonNull(defaults); this.additionalVersionWeights = defaults.additionalVersionWeights; } + @CustomType.Setter public Builder additionalVersionWeights(@Nullable Map additionalVersionWeights) { this.additionalVersionWeights = additionalVersionWeights; return this; - } public AliasRoutingConfig build() { - return new AliasRoutingConfig(additionalVersionWeights); + } + public AliasRoutingConfig build() { + final var o = new AliasRoutingConfig(); + o.additionalVersionWeights = additionalVersionWeights; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/CodeSigningConfigAllowedPublishers.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/CodeSigningConfigAllowedPublishers.java index b49b62c6dff..5b6c637aa5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/CodeSigningConfigAllowedPublishers.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/CodeSigningConfigAllowedPublishers.java @@ -14,13 +14,9 @@ public final class CodeSigningConfigAllowedPublishers { * @return The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package. * */ - private final List signingProfileVersionArns; - - @CustomType.Constructor - private CodeSigningConfigAllowedPublishers(@CustomType.Parameter("signingProfileVersionArns") List signingProfileVersionArns) { - this.signingProfileVersionArns = signingProfileVersionArns; - } + private List signingProfileVersionArns; + private CodeSigningConfigAllowedPublishers() {} /** * @return The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(CodeSigningConfigAllowedPublishers defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List signingProfileVersionArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CodeSigningConfigAllowedPublishers defaults) { Objects.requireNonNull(defaults); this.signingProfileVersionArns = defaults.signingProfileVersionArns; } + @CustomType.Setter public Builder signingProfileVersionArns(List signingProfileVersionArns) { this.signingProfileVersionArns = Objects.requireNonNull(signingProfileVersionArns); return this; } public Builder signingProfileVersionArns(String... signingProfileVersionArns) { return signingProfileVersionArns(List.of(signingProfileVersionArns)); - } public CodeSigningConfigAllowedPublishers build() { - return new CodeSigningConfigAllowedPublishers(signingProfileVersionArns); + } + public CodeSigningConfigAllowedPublishers build() { + final var o = new CodeSigningConfigAllowedPublishers(); + o.signingProfileVersionArns = signingProfileVersionArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/CodeSigningConfigPolicies.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/CodeSigningConfigPolicies.java index 526c9fb3f15..4d046144c04 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/CodeSigningConfigPolicies.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/CodeSigningConfigPolicies.java @@ -13,13 +13,9 @@ public final class CodeSigningConfigPolicies { * @return Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if code-signing validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log. Valid values: `Warn`, `Enforce`. Default value: `Warn`. * */ - private final String untrustedArtifactOnDeployment; - - @CustomType.Constructor - private CodeSigningConfigPolicies(@CustomType.Parameter("untrustedArtifactOnDeployment") String untrustedArtifactOnDeployment) { - this.untrustedArtifactOnDeployment = untrustedArtifactOnDeployment; - } + private String untrustedArtifactOnDeployment; + private CodeSigningConfigPolicies() {} /** * @return Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if code-signing validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log. Valid values: `Warn`, `Enforce`. Default value: `Warn`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(CodeSigningConfigPolicies defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String untrustedArtifactOnDeployment; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CodeSigningConfigPolicies defaults) { Objects.requireNonNull(defaults); this.untrustedArtifactOnDeployment = defaults.untrustedArtifactOnDeployment; } + @CustomType.Setter public Builder untrustedArtifactOnDeployment(String untrustedArtifactOnDeployment) { this.untrustedArtifactOnDeployment = Objects.requireNonNull(untrustedArtifactOnDeployment); return this; - } public CodeSigningConfigPolicies build() { - return new CodeSigningConfigPolicies(untrustedArtifactOnDeployment); + } + public CodeSigningConfigPolicies build() { + final var o = new CodeSigningConfigPolicies(); + o.untrustedArtifactOnDeployment = untrustedArtifactOnDeployment; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingDestinationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingDestinationConfig.java index 274e1b4cfbb..da785e22fb2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingDestinationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingDestinationConfig.java @@ -15,13 +15,9 @@ public final class EventSourceMappingDestinationConfig { * @return The destination configuration for failed invocations. Detailed below. * */ - private final @Nullable EventSourceMappingDestinationConfigOnFailure onFailure; - - @CustomType.Constructor - private EventSourceMappingDestinationConfig(@CustomType.Parameter("onFailure") @Nullable EventSourceMappingDestinationConfigOnFailure onFailure) { - this.onFailure = onFailure; - } + private @Nullable EventSourceMappingDestinationConfigOnFailure onFailure; + private EventSourceMappingDestinationConfig() {} /** * @return The destination configuration for failed invocations. Detailed below. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(EventSourceMappingDestinationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable EventSourceMappingDestinationConfigOnFailure onFailure; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventSourceMappingDestinationConfig defaults) { Objects.requireNonNull(defaults); this.onFailure = defaults.onFailure; } + @CustomType.Setter public Builder onFailure(@Nullable EventSourceMappingDestinationConfigOnFailure onFailure) { this.onFailure = onFailure; return this; - } public EventSourceMappingDestinationConfig build() { - return new EventSourceMappingDestinationConfig(onFailure); + } + public EventSourceMappingDestinationConfig build() { + final var o = new EventSourceMappingDestinationConfig(); + o.onFailure = onFailure; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingDestinationConfigOnFailure.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingDestinationConfigOnFailure.java index 99d54a8f9bb..5fd5d9f552f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingDestinationConfigOnFailure.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingDestinationConfigOnFailure.java @@ -13,13 +13,9 @@ public final class EventSourceMappingDestinationConfigOnFailure { * @return The Amazon Resource Name (ARN) of the destination resource. * */ - private final String destinationArn; - - @CustomType.Constructor - private EventSourceMappingDestinationConfigOnFailure(@CustomType.Parameter("destinationArn") String destinationArn) { - this.destinationArn = destinationArn; - } + private String destinationArn; + private EventSourceMappingDestinationConfigOnFailure() {} /** * @return The Amazon Resource Name (ARN) of the destination resource. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(EventSourceMappingDestinationConfigOnFailure defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destinationArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventSourceMappingDestinationConfigOnFailure defaults) { Objects.requireNonNull(defaults); this.destinationArn = defaults.destinationArn; } + @CustomType.Setter public Builder destinationArn(String destinationArn) { this.destinationArn = Objects.requireNonNull(destinationArn); return this; - } public EventSourceMappingDestinationConfigOnFailure build() { - return new EventSourceMappingDestinationConfigOnFailure(destinationArn); + } + public EventSourceMappingDestinationConfigOnFailure build() { + final var o = new EventSourceMappingDestinationConfigOnFailure(); + o.destinationArn = destinationArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingFilterCriteria.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingFilterCriteria.java index ce5271c6e74..0b55e7d391b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingFilterCriteria.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingFilterCriteria.java @@ -15,13 +15,9 @@ public final class EventSourceMappingFilterCriteria { * @return A set of up to 5 filter. If an event satisfies at least one, Lambda sends the event to the function or adds it to the next batch. Detailed below. * */ - private final @Nullable List filters; - - @CustomType.Constructor - private EventSourceMappingFilterCriteria(@CustomType.Parameter("filters") @Nullable List filters) { - this.filters = filters; - } + private @Nullable List filters; + private EventSourceMappingFilterCriteria() {} /** * @return A set of up to 5 filter. If an event satisfies at least one, Lambda sends the event to the function or adds it to the next batch. Detailed below. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(EventSourceMappingFilterCriteria defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventSourceMappingFilterCriteria defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; } public Builder filters(EventSourceMappingFilterCriteriaFilter... filters) { return filters(List.of(filters)); - } public EventSourceMappingFilterCriteria build() { - return new EventSourceMappingFilterCriteria(filters); + } + public EventSourceMappingFilterCriteria build() { + final var o = new EventSourceMappingFilterCriteria(); + o.filters = filters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingFilterCriteriaFilter.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingFilterCriteriaFilter.java index 62d01be2ed4..80683f07351 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingFilterCriteriaFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingFilterCriteriaFilter.java @@ -15,13 +15,9 @@ public final class EventSourceMappingFilterCriteriaFilter { * @return A filter pattern up to 4096 characters. See [Filter Rule Syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax). * */ - private final @Nullable String pattern; - - @CustomType.Constructor - private EventSourceMappingFilterCriteriaFilter(@CustomType.Parameter("pattern") @Nullable String pattern) { - this.pattern = pattern; - } + private @Nullable String pattern; + private EventSourceMappingFilterCriteriaFilter() {} /** * @return A filter pattern up to 4096 characters. See [Filter Rule Syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax). * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(EventSourceMappingFilterCriteriaFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String pattern; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventSourceMappingFilterCriteriaFilter defaults) { Objects.requireNonNull(defaults); this.pattern = defaults.pattern; } + @CustomType.Setter public Builder pattern(@Nullable String pattern) { this.pattern = pattern; return this; - } public EventSourceMappingFilterCriteriaFilter build() { - return new EventSourceMappingFilterCriteriaFilter(pattern); + } + public EventSourceMappingFilterCriteriaFilter build() { + final var o = new EventSourceMappingFilterCriteriaFilter(); + o.pattern = pattern; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingSelfManagedEventSource.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingSelfManagedEventSource.java index a328763ba24..14fa01f81d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingSelfManagedEventSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingSelfManagedEventSource.java @@ -14,13 +14,9 @@ public final class EventSourceMappingSelfManagedEventSource { * @return A map of endpoints for the self managed source. For Kafka self-managed sources, the key should be `KAFKA_BOOTSTRAP_SERVERS` and the value should be a string with a comma separated list of broker endpoints. * */ - private final Map endpoints; - - @CustomType.Constructor - private EventSourceMappingSelfManagedEventSource(@CustomType.Parameter("endpoints") Map endpoints) { - this.endpoints = endpoints; - } + private Map endpoints; + private EventSourceMappingSelfManagedEventSource() {} /** * @return A map of endpoints for the self managed source. For Kafka self-managed sources, the key should be `KAFKA_BOOTSTRAP_SERVERS` and the value should be a string with a comma separated list of broker endpoints. * @@ -36,24 +32,24 @@ public static Builder builder() { public static Builder builder(EventSourceMappingSelfManagedEventSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map endpoints; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventSourceMappingSelfManagedEventSource defaults) { Objects.requireNonNull(defaults); this.endpoints = defaults.endpoints; } + @CustomType.Setter public Builder endpoints(Map endpoints) { this.endpoints = Objects.requireNonNull(endpoints); return this; - } public EventSourceMappingSelfManagedEventSource build() { - return new EventSourceMappingSelfManagedEventSource(endpoints); + } + public EventSourceMappingSelfManagedEventSource build() { + final var o = new EventSourceMappingSelfManagedEventSource(); + o.endpoints = endpoints; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingSourceAccessConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingSourceAccessConfiguration.java index ca2be5a19ec..c7fc5a5cdfc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingSourceAccessConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/EventSourceMappingSourceAccessConfiguration.java @@ -13,21 +13,14 @@ public final class EventSourceMappingSourceAccessConfiguration { * @return The type of this configuration. For Self Managed Kafka you will need to supply blocks for type `VPC_SUBNET` and `VPC_SECURITY_GROUP`. * */ - private final String type; + private String type; /** * @return The URI for this configuration. For type `VPC_SUBNET` the value should be `subnet:subnet_id` where `subnet_id` is the value you would find in an aws.ec2.Subnet resource's id attribute. For type `VPC_SECURITY_GROUP` the value should be `security_group:security_group_id` where `security_group_id` is the value you would find in an aws.ec2.SecurityGroup resource's id attribute. * */ - private final String uri; - - @CustomType.Constructor - private EventSourceMappingSourceAccessConfiguration( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("uri") String uri) { - this.type = type; - this.uri = uri; - } + private String uri; + private EventSourceMappingSourceAccessConfiguration() {} /** * @return The type of this configuration. For Self Managed Kafka you will need to supply blocks for type `VPC_SUBNET` and `VPC_SECURITY_GROUP`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(EventSourceMappingSourceAccessConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private String uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventSourceMappingSourceAccessConfiguration defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.uri = defaults.uri; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder uri(String uri) { this.uri = Objects.requireNonNull(uri); return this; - } public EventSourceMappingSourceAccessConfiguration build() { - return new EventSourceMappingSourceAccessConfiguration(type, uri); + } + public EventSourceMappingSourceAccessConfiguration build() { + final var o = new EventSourceMappingSourceAccessConfiguration(); + o.type = type; + o.uri = uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionDeadLetterConfig.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionDeadLetterConfig.java index 12546bca982..386cc5f2fa5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionDeadLetterConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionDeadLetterConfig.java @@ -13,13 +13,9 @@ public final class FunctionDeadLetterConfig { * @return ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on which service is targeted. * */ - private final String targetArn; - - @CustomType.Constructor - private FunctionDeadLetterConfig(@CustomType.Parameter("targetArn") String targetArn) { - this.targetArn = targetArn; - } + private String targetArn; + private FunctionDeadLetterConfig() {} /** * @return ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on which service is targeted. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FunctionDeadLetterConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String targetArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionDeadLetterConfig defaults) { Objects.requireNonNull(defaults); this.targetArn = defaults.targetArn; } + @CustomType.Setter public Builder targetArn(String targetArn) { this.targetArn = Objects.requireNonNull(targetArn); return this; - } public FunctionDeadLetterConfig build() { - return new FunctionDeadLetterConfig(targetArn); + } + public FunctionDeadLetterConfig build() { + final var o = new FunctionDeadLetterConfig(); + o.targetArn = targetArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEnvironment.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEnvironment.java index 582424f8874..3da14fafa86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEnvironment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEnvironment.java @@ -15,13 +15,9 @@ public final class FunctionEnvironment { * @return Map of environment variables that are accessible from the function code during execution. * */ - private final @Nullable Map variables; - - @CustomType.Constructor - private FunctionEnvironment(@CustomType.Parameter("variables") @Nullable Map variables) { - this.variables = variables; - } + private @Nullable Map variables; + private FunctionEnvironment() {} /** * @return Map of environment variables that are accessible from the function code during execution. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FunctionEnvironment defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map variables; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionEnvironment defaults) { Objects.requireNonNull(defaults); this.variables = defaults.variables; } + @CustomType.Setter public Builder variables(@Nullable Map variables) { this.variables = variables; return this; - } public FunctionEnvironment build() { - return new FunctionEnvironment(variables); + } + public FunctionEnvironment build() { + final var o = new FunctionEnvironment(); + o.variables = variables; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEphemeralStorage.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEphemeralStorage.java index 5c53715b839..09a49a14bfe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEphemeralStorage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEphemeralStorage.java @@ -15,13 +15,9 @@ public final class FunctionEphemeralStorage { * @return The size of the Lambda function Ephemeral storage(`/tmp`) represented in MB. The minimum supported `ephemeral_storage` value defaults to `512`MB and the maximum supported value is `10240`MB. * */ - private final @Nullable Integer size; - - @CustomType.Constructor - private FunctionEphemeralStorage(@CustomType.Parameter("size") @Nullable Integer size) { - this.size = size; - } + private @Nullable Integer size; + private FunctionEphemeralStorage() {} /** * @return The size of the Lambda function Ephemeral storage(`/tmp`) represented in MB. The minimum supported `ephemeral_storage` value defaults to `512`MB and the maximum supported value is `10240`MB. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FunctionEphemeralStorage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer size; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionEphemeralStorage defaults) { Objects.requireNonNull(defaults); this.size = defaults.size; } + @CustomType.Setter public Builder size(@Nullable Integer size) { this.size = size; return this; - } public FunctionEphemeralStorage build() { - return new FunctionEphemeralStorage(size); + } + public FunctionEphemeralStorage build() { + final var o = new FunctionEphemeralStorage(); + o.size = size; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEventInvokeConfigDestinationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEventInvokeConfigDestinationConfig.java index ea0b8b4eed4..ffe8fd67168 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEventInvokeConfigDestinationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEventInvokeConfigDestinationConfig.java @@ -16,21 +16,14 @@ public final class FunctionEventInvokeConfigDestinationConfig { * @return Configuration block with destination configuration for failed asynchronous invocations. See below for details. * */ - private final @Nullable FunctionEventInvokeConfigDestinationConfigOnFailure onFailure; + private @Nullable FunctionEventInvokeConfigDestinationConfigOnFailure onFailure; /** * @return Configuration block with destination configuration for successful asynchronous invocations. See below for details. * */ - private final @Nullable FunctionEventInvokeConfigDestinationConfigOnSuccess onSuccess; - - @CustomType.Constructor - private FunctionEventInvokeConfigDestinationConfig( - @CustomType.Parameter("onFailure") @Nullable FunctionEventInvokeConfigDestinationConfigOnFailure onFailure, - @CustomType.Parameter("onSuccess") @Nullable FunctionEventInvokeConfigDestinationConfigOnSuccess onSuccess) { - this.onFailure = onFailure; - this.onSuccess = onSuccess; - } + private @Nullable FunctionEventInvokeConfigDestinationConfigOnSuccess onSuccess; + private FunctionEventInvokeConfigDestinationConfig() {} /** * @return Configuration block with destination configuration for failed asynchronous invocations. See below for details. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(FunctionEventInvokeConfigDestinationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FunctionEventInvokeConfigDestinationConfigOnFailure onFailure; private @Nullable FunctionEventInvokeConfigDestinationConfigOnSuccess onSuccess; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionEventInvokeConfigDestinationConfig defaults) { Objects.requireNonNull(defaults); this.onFailure = defaults.onFailure; this.onSuccess = defaults.onSuccess; } + @CustomType.Setter public Builder onFailure(@Nullable FunctionEventInvokeConfigDestinationConfigOnFailure onFailure) { this.onFailure = onFailure; return this; } + @CustomType.Setter public Builder onSuccess(@Nullable FunctionEventInvokeConfigDestinationConfigOnSuccess onSuccess) { this.onSuccess = onSuccess; return this; - } public FunctionEventInvokeConfigDestinationConfig build() { - return new FunctionEventInvokeConfigDestinationConfig(onFailure, onSuccess); + } + public FunctionEventInvokeConfigDestinationConfig build() { + final var o = new FunctionEventInvokeConfigDestinationConfig(); + o.onFailure = onFailure; + o.onSuccess = onSuccess; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEventInvokeConfigDestinationConfigOnFailure.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEventInvokeConfigDestinationConfigOnFailure.java index 20ca81ef470..c1f91ab2531 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEventInvokeConfigDestinationConfigOnFailure.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEventInvokeConfigDestinationConfigOnFailure.java @@ -13,13 +13,9 @@ public final class FunctionEventInvokeConfigDestinationConfigOnFailure { * @return Amazon Resource Name (ARN) of the destination resource. See the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) for acceptable resource types and associated IAM permissions. * */ - private final String destination; - - @CustomType.Constructor - private FunctionEventInvokeConfigDestinationConfigOnFailure(@CustomType.Parameter("destination") String destination) { - this.destination = destination; - } + private String destination; + private FunctionEventInvokeConfigDestinationConfigOnFailure() {} /** * @return Amazon Resource Name (ARN) of the destination resource. See the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) for acceptable resource types and associated IAM permissions. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FunctionEventInvokeConfigDestinationConfigOnFailure defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destination; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionEventInvokeConfigDestinationConfigOnFailure defaults) { Objects.requireNonNull(defaults); this.destination = defaults.destination; } + @CustomType.Setter public Builder destination(String destination) { this.destination = Objects.requireNonNull(destination); return this; - } public FunctionEventInvokeConfigDestinationConfigOnFailure build() { - return new FunctionEventInvokeConfigDestinationConfigOnFailure(destination); + } + public FunctionEventInvokeConfigDestinationConfigOnFailure build() { + final var o = new FunctionEventInvokeConfigDestinationConfigOnFailure(); + o.destination = destination; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEventInvokeConfigDestinationConfigOnSuccess.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEventInvokeConfigDestinationConfigOnSuccess.java index 722d339b744..6d9f7f4d2ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEventInvokeConfigDestinationConfigOnSuccess.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionEventInvokeConfigDestinationConfigOnSuccess.java @@ -13,13 +13,9 @@ public final class FunctionEventInvokeConfigDestinationConfigOnSuccess { * @return Amazon Resource Name (ARN) of the destination resource. See the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) for acceptable resource types and associated IAM permissions. * */ - private final String destination; - - @CustomType.Constructor - private FunctionEventInvokeConfigDestinationConfigOnSuccess(@CustomType.Parameter("destination") String destination) { - this.destination = destination; - } + private String destination; + private FunctionEventInvokeConfigDestinationConfigOnSuccess() {} /** * @return Amazon Resource Name (ARN) of the destination resource. See the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) for acceptable resource types and associated IAM permissions. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FunctionEventInvokeConfigDestinationConfigOnSuccess defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destination; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionEventInvokeConfigDestinationConfigOnSuccess defaults) { Objects.requireNonNull(defaults); this.destination = defaults.destination; } + @CustomType.Setter public Builder destination(String destination) { this.destination = Objects.requireNonNull(destination); return this; - } public FunctionEventInvokeConfigDestinationConfigOnSuccess build() { - return new FunctionEventInvokeConfigDestinationConfigOnSuccess(destination); + } + public FunctionEventInvokeConfigDestinationConfigOnSuccess build() { + final var o = new FunctionEventInvokeConfigDestinationConfigOnSuccess(); + o.destination = destination; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionFileSystemConfig.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionFileSystemConfig.java index 25e9ec32ff2..2a8cb77d1c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionFileSystemConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionFileSystemConfig.java @@ -13,21 +13,14 @@ public final class FunctionFileSystemConfig { * @return Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system. * */ - private final String arn; + private String arn; /** * @return Path where the function can access the file system, starting with /mnt/. * */ - private final String localMountPath; - - @CustomType.Constructor - private FunctionFileSystemConfig( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("localMountPath") String localMountPath) { - this.arn = arn; - this.localMountPath = localMountPath; - } + private String localMountPath; + private FunctionFileSystemConfig() {} /** * @return Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(FunctionFileSystemConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String localMountPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionFileSystemConfig defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.localMountPath = defaults.localMountPath; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder localMountPath(String localMountPath) { this.localMountPath = Objects.requireNonNull(localMountPath); return this; - } public FunctionFileSystemConfig build() { - return new FunctionFileSystemConfig(arn, localMountPath); + } + public FunctionFileSystemConfig build() { + final var o = new FunctionFileSystemConfig(); + o.arn = arn; + o.localMountPath = localMountPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionImageConfig.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionImageConfig.java index 95bc3f55e5b..c88acdf6a87 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionImageConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionImageConfig.java @@ -16,28 +16,19 @@ public final class FunctionImageConfig { * @return Parameters that you want to pass in with `entry_point`. * */ - private final @Nullable List commands; + private @Nullable List commands; /** * @return Entry point to your application, which is typically the location of the runtime executable. * */ - private final @Nullable List entryPoints; + private @Nullable List entryPoints; /** * @return Working directory. * */ - private final @Nullable String workingDirectory; - - @CustomType.Constructor - private FunctionImageConfig( - @CustomType.Parameter("commands") @Nullable List commands, - @CustomType.Parameter("entryPoints") @Nullable List entryPoints, - @CustomType.Parameter("workingDirectory") @Nullable String workingDirectory) { - this.commands = commands; - this.entryPoints = entryPoints; - this.workingDirectory = workingDirectory; - } + private @Nullable String workingDirectory; + private FunctionImageConfig() {} /** * @return Parameters that you want to pass in with `entry_point`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(FunctionImageConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List commands; private @Nullable List entryPoints; private @Nullable String workingDirectory; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionImageConfig defaults) { Objects.requireNonNull(defaults); this.commands = defaults.commands; @@ -84,6 +71,7 @@ public Builder(FunctionImageConfig defaults) { this.workingDirectory = defaults.workingDirectory; } + @CustomType.Setter public Builder commands(@Nullable List commands) { this.commands = commands; return this; @@ -91,6 +79,7 @@ public Builder commands(@Nullable List commands) { public Builder commands(String... commands) { return commands(List.of(commands)); } + @CustomType.Setter public Builder entryPoints(@Nullable List entryPoints) { this.entryPoints = entryPoints; return this; @@ -98,11 +87,17 @@ public Builder entryPoints(@Nullable List entryPoints) { public Builder entryPoints(String... entryPoints) { return entryPoints(List.of(entryPoints)); } + @CustomType.Setter public Builder workingDirectory(@Nullable String workingDirectory) { this.workingDirectory = workingDirectory; return this; - } public FunctionImageConfig build() { - return new FunctionImageConfig(commands, entryPoints, workingDirectory); + } + public FunctionImageConfig build() { + final var o = new FunctionImageConfig(); + o.commands = commands; + o.entryPoints = entryPoints; + o.workingDirectory = workingDirectory; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionTracingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionTracingConfig.java index 7ed41a7ae7d..cc7497aeaa1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionTracingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionTracingConfig.java @@ -13,13 +13,9 @@ public final class FunctionTracingConfig { * @return Whether to to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are `PassThrough` and `Active`. If `PassThrough`, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If `Active`, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision. * */ - private final String mode; - - @CustomType.Constructor - private FunctionTracingConfig(@CustomType.Parameter("mode") String mode) { - this.mode = mode; - } + private String mode; + private FunctionTracingConfig() {} /** * @return Whether to to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are `PassThrough` and `Active`. If `PassThrough`, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If `Active`, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FunctionTracingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String mode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionTracingConfig defaults) { Objects.requireNonNull(defaults); this.mode = defaults.mode; } + @CustomType.Setter public Builder mode(String mode) { this.mode = Objects.requireNonNull(mode); return this; - } public FunctionTracingConfig build() { - return new FunctionTracingConfig(mode); + } + public FunctionTracingConfig build() { + final var o = new FunctionTracingConfig(); + o.mode = mode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionUrlCors.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionUrlCors.java index e1cd572dab2..fb5907df310 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionUrlCors.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionUrlCors.java @@ -18,49 +18,34 @@ public final class FunctionUrlCors { * @return Whether to allow cookies or other credentials in requests to the function URL. The default is `false`. * */ - private final @Nullable Boolean allowCredentials; + private @Nullable Boolean allowCredentials; /** * @return The HTTP headers that origins can include in requests to the function URL. For example: `["date", "keep-alive", "x-custom-header"]`. * */ - private final @Nullable List allowHeaders; + private @Nullable List allowHeaders; /** * @return The HTTP methods that are allowed when calling the function URL. For example: `["GET", "POST", "DELETE"]`, or the wildcard character (`["*"]`). * */ - private final @Nullable List allowMethods; + private @Nullable List allowMethods; /** * @return The origins that can access the function URL. You can list any number of specific origins (or the wildcard character (`"*"`)), separated by a comma. For example: `["https://www.example.com", "http://localhost:60905"]`. * */ - private final @Nullable List allowOrigins; + private @Nullable List allowOrigins; /** * @return The HTTP headers in your function response that you want to expose to origins that call the function URL. * */ - private final @Nullable List exposeHeaders; + private @Nullable List exposeHeaders; /** * @return The maximum amount of time, in seconds, that web browsers can cache results of a preflight request. By default, this is set to `0`, which means that the browser doesn't cache results. The maximum value is `86400`. * */ - private final @Nullable Integer maxAge; - - @CustomType.Constructor - private FunctionUrlCors( - @CustomType.Parameter("allowCredentials") @Nullable Boolean allowCredentials, - @CustomType.Parameter("allowHeaders") @Nullable List allowHeaders, - @CustomType.Parameter("allowMethods") @Nullable List allowMethods, - @CustomType.Parameter("allowOrigins") @Nullable List allowOrigins, - @CustomType.Parameter("exposeHeaders") @Nullable List exposeHeaders, - @CustomType.Parameter("maxAge") @Nullable Integer maxAge) { - this.allowCredentials = allowCredentials; - this.allowHeaders = allowHeaders; - this.allowMethods = allowMethods; - this.allowOrigins = allowOrigins; - this.exposeHeaders = exposeHeaders; - this.maxAge = maxAge; - } + private @Nullable Integer maxAge; + private FunctionUrlCors() {} /** * @return Whether to allow cookies or other credentials in requests to the function URL. The default is `false`. * @@ -111,7 +96,7 @@ public static Builder builder() { public static Builder builder(FunctionUrlCors defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allowCredentials; private @Nullable List allowHeaders; @@ -119,11 +104,7 @@ public static final class Builder { private @Nullable List allowOrigins; private @Nullable List exposeHeaders; private @Nullable Integer maxAge; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionUrlCors defaults) { Objects.requireNonNull(defaults); this.allowCredentials = defaults.allowCredentials; @@ -134,10 +115,12 @@ public Builder(FunctionUrlCors defaults) { this.maxAge = defaults.maxAge; } + @CustomType.Setter public Builder allowCredentials(@Nullable Boolean allowCredentials) { this.allowCredentials = allowCredentials; return this; } + @CustomType.Setter public Builder allowHeaders(@Nullable List allowHeaders) { this.allowHeaders = allowHeaders; return this; @@ -145,6 +128,7 @@ public Builder allowHeaders(@Nullable List allowHeaders) { public Builder allowHeaders(String... allowHeaders) { return allowHeaders(List.of(allowHeaders)); } + @CustomType.Setter public Builder allowMethods(@Nullable List allowMethods) { this.allowMethods = allowMethods; return this; @@ -152,6 +136,7 @@ public Builder allowMethods(@Nullable List allowMethods) { public Builder allowMethods(String... allowMethods) { return allowMethods(List.of(allowMethods)); } + @CustomType.Setter public Builder allowOrigins(@Nullable List allowOrigins) { this.allowOrigins = allowOrigins; return this; @@ -159,6 +144,7 @@ public Builder allowOrigins(@Nullable List allowOrigins) { public Builder allowOrigins(String... allowOrigins) { return allowOrigins(List.of(allowOrigins)); } + @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { this.exposeHeaders = exposeHeaders; return this; @@ -166,11 +152,20 @@ public Builder exposeHeaders(@Nullable List exposeHeaders) { public Builder exposeHeaders(String... exposeHeaders) { return exposeHeaders(List.of(exposeHeaders)); } + @CustomType.Setter public Builder maxAge(@Nullable Integer maxAge) { this.maxAge = maxAge; return this; - } public FunctionUrlCors build() { - return new FunctionUrlCors(allowCredentials, allowHeaders, allowMethods, allowOrigins, exposeHeaders, maxAge); + } + public FunctionUrlCors build() { + final var o = new FunctionUrlCors(); + o.allowCredentials = allowCredentials; + o.allowHeaders = allowHeaders; + o.allowMethods = allowMethods; + o.allowOrigins = allowOrigins; + o.exposeHeaders = exposeHeaders; + o.maxAge = maxAge; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionVpcConfig.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionVpcConfig.java index f04505035c2..6103f52c5fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionVpcConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/FunctionVpcConfig.java @@ -16,24 +16,15 @@ public final class FunctionVpcConfig { * @return List of security group IDs associated with the Lambda function. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return List of subnet IDs associated with the Lambda function. * */ - private final List subnetIds; - private final @Nullable String vpcId; - - @CustomType.Constructor - private FunctionVpcConfig( - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private List subnetIds; + private @Nullable String vpcId; + private FunctionVpcConfig() {} /** * @return List of security group IDs associated with the Lambda function. * @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(FunctionVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List securityGroupIds; private List subnetIds; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FunctionVpcConfig defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; @@ -76,6 +63,7 @@ public Builder(FunctionVpcConfig defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -83,6 +71,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -90,11 +79,17 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(@Nullable String vpcId) { this.vpcId = vpcId; return this; - } public FunctionVpcConfig build() { - return new FunctionVpcConfig(securityGroupIds, subnetIds, vpcId); + } + public FunctionVpcConfig build() { + final var o = new FunctionVpcConfig(); + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetAliasResult.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetAliasResult.java index 0cfdd57e31f..f9e80fa6f9f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetAliasResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetAliasResult.java @@ -13,48 +13,31 @@ public final class GetAliasResult { * @return The Amazon Resource Name (ARN) identifying the Lambda function alias. * */ - private final String arn; + private String arn; /** * @return Description of alias. * */ - private final String description; - private final String functionName; + private String description; + private String functionName; /** * @return Lambda function version which the alias uses. * */ - private final String functionVersion; + private String functionVersion; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_integration's `uri`. * */ - private final String invokeArn; - private final String name; - - @CustomType.Constructor - private GetAliasResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("functionName") String functionName, - @CustomType.Parameter("functionVersion") String functionVersion, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("invokeArn") String invokeArn, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.description = description; - this.functionName = functionName; - this.functionVersion = functionVersion; - this.id = id; - this.invokeArn = invokeArn; - this.name = name; - } + private String invokeArn; + private String name; + private GetAliasResult() {} /** * @return The Amazon Resource Name (ARN) identifying the Lambda function alias. * @@ -104,7 +87,7 @@ public static Builder builder() { public static Builder builder(GetAliasResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -113,11 +96,7 @@ public static final class Builder { private String id; private String invokeArn; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAliasResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -129,35 +108,51 @@ public Builder(GetAliasResult defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder functionName(String functionName) { this.functionName = Objects.requireNonNull(functionName); return this; } + @CustomType.Setter public Builder functionVersion(String functionVersion) { this.functionVersion = Objects.requireNonNull(functionVersion); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder invokeArn(String invokeArn) { this.invokeArn = Objects.requireNonNull(invokeArn); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetAliasResult build() { - return new GetAliasResult(arn, description, functionName, functionVersion, id, invokeArn, name); + } + public GetAliasResult build() { + final var o = new GetAliasResult(); + o.arn = arn; + o.description = description; + o.functionName = functionName; + o.functionVersion = functionVersion; + o.id = id; + o.invokeArn = invokeArn; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetCodeSigningConfigAllowedPublisher.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetCodeSigningConfigAllowedPublisher.java index f6f82171b4f..7cb0dd20db7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetCodeSigningConfigAllowedPublisher.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetCodeSigningConfigAllowedPublisher.java @@ -14,13 +14,9 @@ public final class GetCodeSigningConfigAllowedPublisher { * @return The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package. * */ - private final List signingProfileVersionArns; - - @CustomType.Constructor - private GetCodeSigningConfigAllowedPublisher(@CustomType.Parameter("signingProfileVersionArns") List signingProfileVersionArns) { - this.signingProfileVersionArns = signingProfileVersionArns; - } + private List signingProfileVersionArns; + private GetCodeSigningConfigAllowedPublisher() {} /** * @return The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(GetCodeSigningConfigAllowedPublisher defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List signingProfileVersionArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCodeSigningConfigAllowedPublisher defaults) { Objects.requireNonNull(defaults); this.signingProfileVersionArns = defaults.signingProfileVersionArns; } + @CustomType.Setter public Builder signingProfileVersionArns(List signingProfileVersionArns) { this.signingProfileVersionArns = Objects.requireNonNull(signingProfileVersionArns); return this; } public Builder signingProfileVersionArns(String... signingProfileVersionArns) { return signingProfileVersionArns(List.of(signingProfileVersionArns)); - } public GetCodeSigningConfigAllowedPublisher build() { - return new GetCodeSigningConfigAllowedPublisher(signingProfileVersionArns); + } + public GetCodeSigningConfigAllowedPublisher build() { + final var o = new GetCodeSigningConfigAllowedPublisher(); + o.signingProfileVersionArns = signingProfileVersionArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetCodeSigningConfigPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetCodeSigningConfigPolicy.java index 1096af844ce..dc1fda34eab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetCodeSigningConfigPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetCodeSigningConfigPolicy.java @@ -13,13 +13,9 @@ public final class GetCodeSigningConfigPolicy { * @return Code signing configuration policy for deployment validation failure. * */ - private final String untrustedArtifactOnDeployment; - - @CustomType.Constructor - private GetCodeSigningConfigPolicy(@CustomType.Parameter("untrustedArtifactOnDeployment") String untrustedArtifactOnDeployment) { - this.untrustedArtifactOnDeployment = untrustedArtifactOnDeployment; - } + private String untrustedArtifactOnDeployment; + private GetCodeSigningConfigPolicy() {} /** * @return Code signing configuration policy for deployment validation failure. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetCodeSigningConfigPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String untrustedArtifactOnDeployment; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCodeSigningConfigPolicy defaults) { Objects.requireNonNull(defaults); this.untrustedArtifactOnDeployment = defaults.untrustedArtifactOnDeployment; } + @CustomType.Setter public Builder untrustedArtifactOnDeployment(String untrustedArtifactOnDeployment) { this.untrustedArtifactOnDeployment = Objects.requireNonNull(untrustedArtifactOnDeployment); return this; - } public GetCodeSigningConfigPolicy build() { - return new GetCodeSigningConfigPolicy(untrustedArtifactOnDeployment); + } + public GetCodeSigningConfigPolicy build() { + final var o = new GetCodeSigningConfigPolicy(); + o.untrustedArtifactOnDeployment = untrustedArtifactOnDeployment; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetCodeSigningConfigResult.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetCodeSigningConfigResult.java index 7ca30af6864..c5d3baa8a1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetCodeSigningConfigResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetCodeSigningConfigResult.java @@ -16,52 +16,35 @@ public final class GetCodeSigningConfigResult { * @return List of allowed publishers as signing profiles for this code signing configuration. * */ - private final List allowedPublishers; - private final String arn; + private List allowedPublishers; + private String arn; /** * @return Unique identifier for the code signing configuration. * */ - private final String configId; + private String configId; /** * @return Code signing configuration description. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The date and time that the code signing configuration was last modified. * */ - private final String lastModified; + private String lastModified; /** * @return List of code signing policies that control the validation failure action for signature mismatch or expiry. * */ - private final List policies; - - @CustomType.Constructor - private GetCodeSigningConfigResult( - @CustomType.Parameter("allowedPublishers") List allowedPublishers, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("configId") String configId, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastModified") String lastModified, - @CustomType.Parameter("policies") List policies) { - this.allowedPublishers = allowedPublishers; - this.arn = arn; - this.configId = configId; - this.description = description; - this.id = id; - this.lastModified = lastModified; - this.policies = policies; - } + private List policies; + private GetCodeSigningConfigResult() {} /** * @return List of allowed publishers as signing profiles for this code signing configuration. * @@ -115,7 +98,7 @@ public static Builder builder() { public static Builder builder(GetCodeSigningConfigResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List allowedPublishers; private String arn; @@ -124,11 +107,7 @@ public static final class Builder { private String id; private String lastModified; private List policies; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCodeSigningConfigResult defaults) { Objects.requireNonNull(defaults); this.allowedPublishers = defaults.allowedPublishers; @@ -140,6 +119,7 @@ public Builder(GetCodeSigningConfigResult defaults) { this.policies = defaults.policies; } + @CustomType.Setter public Builder allowedPublishers(List allowedPublishers) { this.allowedPublishers = Objects.requireNonNull(allowedPublishers); return this; @@ -147,34 +127,49 @@ public Builder allowedPublishers(List allo public Builder allowedPublishers(GetCodeSigningConfigAllowedPublisher... allowedPublishers) { return allowedPublishers(List.of(allowedPublishers)); } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder configId(String configId) { this.configId = Objects.requireNonNull(configId); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastModified(String lastModified) { this.lastModified = Objects.requireNonNull(lastModified); return this; } + @CustomType.Setter public Builder policies(List policies) { this.policies = Objects.requireNonNull(policies); return this; } public Builder policies(GetCodeSigningConfigPolicy... policies) { return policies(List.of(policies)); - } public GetCodeSigningConfigResult build() { - return new GetCodeSigningConfigResult(allowedPublishers, arn, configId, description, id, lastModified, policies); + } + public GetCodeSigningConfigResult build() { + final var o = new GetCodeSigningConfigResult(); + o.allowedPublishers = allowedPublishers; + o.arn = arn; + o.configId = configId; + o.description = description; + o.id = id; + o.lastModified = lastModified; + o.policies = policies; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionDeadLetterConfig.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionDeadLetterConfig.java index 0cf712fe55f..3399c9fc996 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionDeadLetterConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionDeadLetterConfig.java @@ -9,13 +9,9 @@ @CustomType public final class GetFunctionDeadLetterConfig { - private final String targetArn; - - @CustomType.Constructor - private GetFunctionDeadLetterConfig(@CustomType.Parameter("targetArn") String targetArn) { - this.targetArn = targetArn; - } + private String targetArn; + private GetFunctionDeadLetterConfig() {} public String targetArn() { return this.targetArn; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetFunctionDeadLetterConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String targetArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFunctionDeadLetterConfig defaults) { Objects.requireNonNull(defaults); this.targetArn = defaults.targetArn; } + @CustomType.Setter public Builder targetArn(String targetArn) { this.targetArn = Objects.requireNonNull(targetArn); return this; - } public GetFunctionDeadLetterConfig build() { - return new GetFunctionDeadLetterConfig(targetArn); + } + public GetFunctionDeadLetterConfig build() { + final var o = new GetFunctionDeadLetterConfig(); + o.targetArn = targetArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionEnvironment.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionEnvironment.java index 2dc3fe06067..1b8cd768e2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionEnvironment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionEnvironment.java @@ -10,13 +10,9 @@ @CustomType public final class GetFunctionEnvironment { - private final Map variables; - - @CustomType.Constructor - private GetFunctionEnvironment(@CustomType.Parameter("variables") Map variables) { - this.variables = variables; - } + private Map variables; + private GetFunctionEnvironment() {} public Map variables() { return this.variables; } @@ -28,24 +24,24 @@ public static Builder builder() { public static Builder builder(GetFunctionEnvironment defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map variables; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFunctionEnvironment defaults) { Objects.requireNonNull(defaults); this.variables = defaults.variables; } + @CustomType.Setter public Builder variables(Map variables) { this.variables = Objects.requireNonNull(variables); return this; - } public GetFunctionEnvironment build() { - return new GetFunctionEnvironment(variables); + } + public GetFunctionEnvironment build() { + final var o = new GetFunctionEnvironment(); + o.variables = variables; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionEphemeralStorage.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionEphemeralStorage.java index 30dc80be073..f9d49fa82c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionEphemeralStorage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionEphemeralStorage.java @@ -9,13 +9,9 @@ @CustomType public final class GetFunctionEphemeralStorage { - private final Integer size; - - @CustomType.Constructor - private GetFunctionEphemeralStorage(@CustomType.Parameter("size") Integer size) { - this.size = size; - } + private Integer size; + private GetFunctionEphemeralStorage() {} public Integer size() { return this.size; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetFunctionEphemeralStorage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer size; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFunctionEphemeralStorage defaults) { Objects.requireNonNull(defaults); this.size = defaults.size; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; - } public GetFunctionEphemeralStorage build() { - return new GetFunctionEphemeralStorage(size); + } + public GetFunctionEphemeralStorage build() { + final var o = new GetFunctionEphemeralStorage(); + o.size = size; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionFileSystemConfig.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionFileSystemConfig.java index da26e92b10e..babe0c04e05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionFileSystemConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionFileSystemConfig.java @@ -13,17 +13,10 @@ public final class GetFunctionFileSystemConfig { * @return Unqualified (no `:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `qualified_arn`. * */ - private final String arn; - private final String localMountPath; - - @CustomType.Constructor - private GetFunctionFileSystemConfig( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("localMountPath") String localMountPath) { - this.arn = arn; - this.localMountPath = localMountPath; - } + private String arn; + private String localMountPath; + private GetFunctionFileSystemConfig() {} /** * @return Unqualified (no `:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `qualified_arn`. * @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetFunctionFileSystemConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String localMountPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFunctionFileSystemConfig defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.localMountPath = defaults.localMountPath; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder localMountPath(String localMountPath) { this.localMountPath = Objects.requireNonNull(localMountPath); return this; - } public GetFunctionFileSystemConfig build() { - return new GetFunctionFileSystemConfig(arn, localMountPath); + } + public GetFunctionFileSystemConfig build() { + final var o = new GetFunctionFileSystemConfig(); + o.arn = arn; + o.localMountPath = localMountPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionResult.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionResult.java index 0c169fb88a0..8112d7541dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionResult.java @@ -24,212 +24,147 @@ public final class GetFunctionResult { * @return The instruction set architecture for the Lambda function. * */ - private final List architectures; + private List architectures; /** * @return Unqualified (no `:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `qualified_arn`. * */ - private final String arn; + private String arn; /** * @return Amazon Resource Name (ARN) for a Code Signing Configuration. * */ - private final String codeSigningConfigArn; + private String codeSigningConfigArn; /** * @return Configure the function's *dead letter queue*. * */ - private final GetFunctionDeadLetterConfig deadLetterConfig; + private GetFunctionDeadLetterConfig deadLetterConfig; /** * @return Description of what your Lambda Function does. * */ - private final String description; + private String description; /** * @return The Lambda environment's configuration settings. * */ - private final GetFunctionEnvironment environment; + private GetFunctionEnvironment environment; /** * @return The amount of Ephemeral storage(`/tmp`) allocated for the Lambda Function. * */ - private final List ephemeralStorages; + private List ephemeralStorages; /** * @return The connection settings for an Amazon EFS file system. * */ - private final List fileSystemConfigs; - private final String functionName; + private List fileSystemConfigs; + private String functionName; /** * @return The function entrypoint in your code. * */ - private final String handler; + private String handler; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The URI of the container image. * */ - private final String imageUri; + private String imageUri; /** * @return The ARN to be used for invoking Lambda Function from API Gateway. * */ - private final String invokeArn; + private String invokeArn; /** * @return The ARN for the KMS encryption key. * */ - private final String kmsKeyArn; + private String kmsKeyArn; /** * @return The date this resource was last modified. * */ - private final String lastModified; + private String lastModified; /** * @return A list of Lambda Layer ARNs attached to your Lambda Function. * */ - private final List layers; + private List layers; /** * @return Amount of memory in MB your Lambda Function can use at runtime. * */ - private final Integer memorySize; + private Integer memorySize; /** * @return Qualified (`:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `arn`. * */ - private final String qualifiedArn; - private final @Nullable String qualifier; + private String qualifiedArn; + private @Nullable String qualifier; /** * @return The amount of reserved concurrent executions for this lambda function or `-1` if unreserved. * */ - private final Integer reservedConcurrentExecutions; + private Integer reservedConcurrentExecutions; /** * @return IAM role attached to the Lambda Function. * */ - private final String role; + private String role; /** * @return The runtime environment for the Lambda function. * */ - private final String runtime; + private String runtime; /** * @return The Amazon Resource Name (ARN) of a signing job. * */ - private final String signingJobArn; + private String signingJobArn; /** * @return The Amazon Resource Name (ARN) for a signing profile version. * */ - private final String signingProfileVersionArn; + private String signingProfileVersionArn; /** * @return Base64-encoded representation of raw SHA-256 sum of the zip file. * */ - private final String sourceCodeHash; + private String sourceCodeHash; /** * @return The size in bytes of the function .zip file. * */ - private final Integer sourceCodeSize; - private final Map tags; + private Integer sourceCodeSize; + private Map tags; /** * @return The function execution time at which Lambda should terminate the function. * */ - private final Integer timeout; + private Integer timeout; /** * @return Tracing settings of the function. * */ - private final GetFunctionTracingConfig tracingConfig; + private GetFunctionTracingConfig tracingConfig; /** * @return The version of the Lambda function. * */ - private final String version; + private String version; /** * @return VPC configuration associated with your Lambda function. * */ - private final GetFunctionVpcConfig vpcConfig; - - @CustomType.Constructor - private GetFunctionResult( - @CustomType.Parameter("architectures") List architectures, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("codeSigningConfigArn") String codeSigningConfigArn, - @CustomType.Parameter("deadLetterConfig") GetFunctionDeadLetterConfig deadLetterConfig, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("environment") GetFunctionEnvironment environment, - @CustomType.Parameter("ephemeralStorages") List ephemeralStorages, - @CustomType.Parameter("fileSystemConfigs") List fileSystemConfigs, - @CustomType.Parameter("functionName") String functionName, - @CustomType.Parameter("handler") String handler, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("imageUri") String imageUri, - @CustomType.Parameter("invokeArn") String invokeArn, - @CustomType.Parameter("kmsKeyArn") String kmsKeyArn, - @CustomType.Parameter("lastModified") String lastModified, - @CustomType.Parameter("layers") List layers, - @CustomType.Parameter("memorySize") Integer memorySize, - @CustomType.Parameter("qualifiedArn") String qualifiedArn, - @CustomType.Parameter("qualifier") @Nullable String qualifier, - @CustomType.Parameter("reservedConcurrentExecutions") Integer reservedConcurrentExecutions, - @CustomType.Parameter("role") String role, - @CustomType.Parameter("runtime") String runtime, - @CustomType.Parameter("signingJobArn") String signingJobArn, - @CustomType.Parameter("signingProfileVersionArn") String signingProfileVersionArn, - @CustomType.Parameter("sourceCodeHash") String sourceCodeHash, - @CustomType.Parameter("sourceCodeSize") Integer sourceCodeSize, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("timeout") Integer timeout, - @CustomType.Parameter("tracingConfig") GetFunctionTracingConfig tracingConfig, - @CustomType.Parameter("version") String version, - @CustomType.Parameter("vpcConfig") GetFunctionVpcConfig vpcConfig) { - this.architectures = architectures; - this.arn = arn; - this.codeSigningConfigArn = codeSigningConfigArn; - this.deadLetterConfig = deadLetterConfig; - this.description = description; - this.environment = environment; - this.ephemeralStorages = ephemeralStorages; - this.fileSystemConfigs = fileSystemConfigs; - this.functionName = functionName; - this.handler = handler; - this.id = id; - this.imageUri = imageUri; - this.invokeArn = invokeArn; - this.kmsKeyArn = kmsKeyArn; - this.lastModified = lastModified; - this.layers = layers; - this.memorySize = memorySize; - this.qualifiedArn = qualifiedArn; - this.qualifier = qualifier; - this.reservedConcurrentExecutions = reservedConcurrentExecutions; - this.role = role; - this.runtime = runtime; - this.signingJobArn = signingJobArn; - this.signingProfileVersionArn = signingProfileVersionArn; - this.sourceCodeHash = sourceCodeHash; - this.sourceCodeSize = sourceCodeSize; - this.tags = tags; - this.timeout = timeout; - this.tracingConfig = tracingConfig; - this.version = version; - this.vpcConfig = vpcConfig; - } + private GetFunctionVpcConfig vpcConfig; + private GetFunctionResult() {} /** * @return The instruction set architecture for the Lambda function. * @@ -443,7 +378,7 @@ public static Builder builder() { public static Builder builder(GetFunctionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List architectures; private String arn; @@ -476,11 +411,7 @@ public static final class Builder { private GetFunctionTracingConfig tracingConfig; private String version; private GetFunctionVpcConfig vpcConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFunctionResult defaults) { Objects.requireNonNull(defaults); this.architectures = defaults.architectures; @@ -516,6 +447,7 @@ public Builder(GetFunctionResult defaults) { this.vpcConfig = defaults.vpcConfig; } + @CustomType.Setter public Builder architectures(List architectures) { this.architectures = Objects.requireNonNull(architectures); return this; @@ -523,26 +455,32 @@ public Builder architectures(List architectures) { public Builder architectures(String... architectures) { return architectures(List.of(architectures)); } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder codeSigningConfigArn(String codeSigningConfigArn) { this.codeSigningConfigArn = Objects.requireNonNull(codeSigningConfigArn); return this; } + @CustomType.Setter public Builder deadLetterConfig(GetFunctionDeadLetterConfig deadLetterConfig) { this.deadLetterConfig = Objects.requireNonNull(deadLetterConfig); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder environment(GetFunctionEnvironment environment) { this.environment = Objects.requireNonNull(environment); return this; } + @CustomType.Setter public Builder ephemeralStorages(List ephemeralStorages) { this.ephemeralStorages = Objects.requireNonNull(ephemeralStorages); return this; @@ -550,6 +488,7 @@ public Builder ephemeralStorages(List ephemeralStor public Builder ephemeralStorages(GetFunctionEphemeralStorage... ephemeralStorages) { return ephemeralStorages(List.of(ephemeralStorages)); } + @CustomType.Setter public Builder fileSystemConfigs(List fileSystemConfigs) { this.fileSystemConfigs = Objects.requireNonNull(fileSystemConfigs); return this; @@ -557,34 +496,42 @@ public Builder fileSystemConfigs(List fileSystemCon public Builder fileSystemConfigs(GetFunctionFileSystemConfig... fileSystemConfigs) { return fileSystemConfigs(List.of(fileSystemConfigs)); } + @CustomType.Setter public Builder functionName(String functionName) { this.functionName = Objects.requireNonNull(functionName); return this; } + @CustomType.Setter public Builder handler(String handler) { this.handler = Objects.requireNonNull(handler); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder imageUri(String imageUri) { this.imageUri = Objects.requireNonNull(imageUri); return this; } + @CustomType.Setter public Builder invokeArn(String invokeArn) { this.invokeArn = Objects.requireNonNull(invokeArn); return this; } + @CustomType.Setter public Builder kmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = Objects.requireNonNull(kmsKeyArn); return this; } + @CustomType.Setter public Builder lastModified(String lastModified) { this.lastModified = Objects.requireNonNull(lastModified); return this; } + @CustomType.Setter public Builder layers(List layers) { this.layers = Objects.requireNonNull(layers); return this; @@ -592,67 +539,115 @@ public Builder layers(List layers) { public Builder layers(String... layers) { return layers(List.of(layers)); } + @CustomType.Setter public Builder memorySize(Integer memorySize) { this.memorySize = Objects.requireNonNull(memorySize); return this; } + @CustomType.Setter public Builder qualifiedArn(String qualifiedArn) { this.qualifiedArn = Objects.requireNonNull(qualifiedArn); return this; } + @CustomType.Setter public Builder qualifier(@Nullable String qualifier) { this.qualifier = qualifier; return this; } + @CustomType.Setter public Builder reservedConcurrentExecutions(Integer reservedConcurrentExecutions) { this.reservedConcurrentExecutions = Objects.requireNonNull(reservedConcurrentExecutions); return this; } + @CustomType.Setter public Builder role(String role) { this.role = Objects.requireNonNull(role); return this; } + @CustomType.Setter public Builder runtime(String runtime) { this.runtime = Objects.requireNonNull(runtime); return this; } + @CustomType.Setter public Builder signingJobArn(String signingJobArn) { this.signingJobArn = Objects.requireNonNull(signingJobArn); return this; } + @CustomType.Setter public Builder signingProfileVersionArn(String signingProfileVersionArn) { this.signingProfileVersionArn = Objects.requireNonNull(signingProfileVersionArn); return this; } + @CustomType.Setter public Builder sourceCodeHash(String sourceCodeHash) { this.sourceCodeHash = Objects.requireNonNull(sourceCodeHash); return this; } + @CustomType.Setter public Builder sourceCodeSize(Integer sourceCodeSize) { this.sourceCodeSize = Objects.requireNonNull(sourceCodeSize); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder timeout(Integer timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } + @CustomType.Setter public Builder tracingConfig(GetFunctionTracingConfig tracingConfig) { this.tracingConfig = Objects.requireNonNull(tracingConfig); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; } + @CustomType.Setter public Builder vpcConfig(GetFunctionVpcConfig vpcConfig) { this.vpcConfig = Objects.requireNonNull(vpcConfig); return this; - } public GetFunctionResult build() { - return new GetFunctionResult(architectures, arn, codeSigningConfigArn, deadLetterConfig, description, environment, ephemeralStorages, fileSystemConfigs, functionName, handler, id, imageUri, invokeArn, kmsKeyArn, lastModified, layers, memorySize, qualifiedArn, qualifier, reservedConcurrentExecutions, role, runtime, signingJobArn, signingProfileVersionArn, sourceCodeHash, sourceCodeSize, tags, timeout, tracingConfig, version, vpcConfig); + } + public GetFunctionResult build() { + final var o = new GetFunctionResult(); + o.architectures = architectures; + o.arn = arn; + o.codeSigningConfigArn = codeSigningConfigArn; + o.deadLetterConfig = deadLetterConfig; + o.description = description; + o.environment = environment; + o.ephemeralStorages = ephemeralStorages; + o.fileSystemConfigs = fileSystemConfigs; + o.functionName = functionName; + o.handler = handler; + o.id = id; + o.imageUri = imageUri; + o.invokeArn = invokeArn; + o.kmsKeyArn = kmsKeyArn; + o.lastModified = lastModified; + o.layers = layers; + o.memorySize = memorySize; + o.qualifiedArn = qualifiedArn; + o.qualifier = qualifier; + o.reservedConcurrentExecutions = reservedConcurrentExecutions; + o.role = role; + o.runtime = runtime; + o.signingJobArn = signingJobArn; + o.signingProfileVersionArn = signingProfileVersionArn; + o.sourceCodeHash = sourceCodeHash; + o.sourceCodeSize = sourceCodeSize; + o.tags = tags; + o.timeout = timeout; + o.tracingConfig = tracingConfig; + o.version = version; + o.vpcConfig = vpcConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionTracingConfig.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionTracingConfig.java index 3c84d761d6f..cfde206b351 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionTracingConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionTracingConfig.java @@ -9,13 +9,9 @@ @CustomType public final class GetFunctionTracingConfig { - private final String mode; - - @CustomType.Constructor - private GetFunctionTracingConfig(@CustomType.Parameter("mode") String mode) { - this.mode = mode; - } + private String mode; + private GetFunctionTracingConfig() {} public String mode() { return this.mode; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetFunctionTracingConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String mode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFunctionTracingConfig defaults) { Objects.requireNonNull(defaults); this.mode = defaults.mode; } + @CustomType.Setter public Builder mode(String mode) { this.mode = Objects.requireNonNull(mode); return this; - } public GetFunctionTracingConfig build() { - return new GetFunctionTracingConfig(mode); + } + public GetFunctionTracingConfig build() { + final var o = new GetFunctionTracingConfig(); + o.mode = mode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionUrlCor.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionUrlCor.java index a189e385937..dc126de221c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionUrlCor.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionUrlCor.java @@ -12,29 +12,14 @@ @CustomType public final class GetFunctionUrlCor { - private final Boolean allowCredentials; - private final List allowHeaders; - private final List allowMethods; - private final List allowOrigins; - private final List exposeHeaders; - private final Integer maxAge; - - @CustomType.Constructor - private GetFunctionUrlCor( - @CustomType.Parameter("allowCredentials") Boolean allowCredentials, - @CustomType.Parameter("allowHeaders") List allowHeaders, - @CustomType.Parameter("allowMethods") List allowMethods, - @CustomType.Parameter("allowOrigins") List allowOrigins, - @CustomType.Parameter("exposeHeaders") List exposeHeaders, - @CustomType.Parameter("maxAge") Integer maxAge) { - this.allowCredentials = allowCredentials; - this.allowHeaders = allowHeaders; - this.allowMethods = allowMethods; - this.allowOrigins = allowOrigins; - this.exposeHeaders = exposeHeaders; - this.maxAge = maxAge; - } + private Boolean allowCredentials; + private List allowHeaders; + private List allowMethods; + private List allowOrigins; + private List exposeHeaders; + private Integer maxAge; + private GetFunctionUrlCor() {} public Boolean allowCredentials() { return this.allowCredentials; } @@ -61,7 +46,7 @@ public static Builder builder() { public static Builder builder(GetFunctionUrlCor defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean allowCredentials; private List allowHeaders; @@ -69,11 +54,7 @@ public static final class Builder { private List allowOrigins; private List exposeHeaders; private Integer maxAge; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFunctionUrlCor defaults) { Objects.requireNonNull(defaults); this.allowCredentials = defaults.allowCredentials; @@ -84,10 +65,12 @@ public Builder(GetFunctionUrlCor defaults) { this.maxAge = defaults.maxAge; } + @CustomType.Setter public Builder allowCredentials(Boolean allowCredentials) { this.allowCredentials = Objects.requireNonNull(allowCredentials); return this; } + @CustomType.Setter public Builder allowHeaders(List allowHeaders) { this.allowHeaders = Objects.requireNonNull(allowHeaders); return this; @@ -95,6 +78,7 @@ public Builder allowHeaders(List allowHeaders) { public Builder allowHeaders(String... allowHeaders) { return allowHeaders(List.of(allowHeaders)); } + @CustomType.Setter public Builder allowMethods(List allowMethods) { this.allowMethods = Objects.requireNonNull(allowMethods); return this; @@ -102,6 +86,7 @@ public Builder allowMethods(List allowMethods) { public Builder allowMethods(String... allowMethods) { return allowMethods(List.of(allowMethods)); } + @CustomType.Setter public Builder allowOrigins(List allowOrigins) { this.allowOrigins = Objects.requireNonNull(allowOrigins); return this; @@ -109,6 +94,7 @@ public Builder allowOrigins(List allowOrigins) { public Builder allowOrigins(String... allowOrigins) { return allowOrigins(List.of(allowOrigins)); } + @CustomType.Setter public Builder exposeHeaders(List exposeHeaders) { this.exposeHeaders = Objects.requireNonNull(exposeHeaders); return this; @@ -116,11 +102,20 @@ public Builder exposeHeaders(List exposeHeaders) { public Builder exposeHeaders(String... exposeHeaders) { return exposeHeaders(List.of(exposeHeaders)); } + @CustomType.Setter public Builder maxAge(Integer maxAge) { this.maxAge = Objects.requireNonNull(maxAge); return this; - } public GetFunctionUrlCor build() { - return new GetFunctionUrlCor(allowCredentials, allowHeaders, allowMethods, allowOrigins, exposeHeaders, maxAge); + } + public GetFunctionUrlCor build() { + final var o = new GetFunctionUrlCor(); + o.allowCredentials = allowCredentials; + o.allowHeaders = allowHeaders; + o.allowMethods = allowMethods; + o.allowOrigins = allowOrigins; + o.exposeHeaders = exposeHeaders; + o.maxAge = maxAge; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionUrlResult.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionUrlResult.java index 85461c2e8e7..d6e60d0703f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionUrlResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionUrlResult.java @@ -17,69 +17,46 @@ public final class GetFunctionUrlResult { * @return The type of authentication that the function URL uses. * */ - private final String authorizationType; + private String authorizationType; /** * @return The [cross-origin resource sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for the function URL. See the [`aws.lambda.FunctionUrl` resource](https://www.terraform.io/docs/providers/aws/r/lambda_function_url.html) documentation for more details. * */ - private final List cors; + private List cors; /** * @return When the function URL was created, in [ISO-8601 format](https://www.w3.org/TR/NOTE-datetime). * */ - private final String creationTime; + private String creationTime; /** * @return The Amazon Resource Name (ARN) of the function. * */ - private final String functionArn; - private final String functionName; + private String functionArn; + private String functionName; /** * @return The HTTP URL endpoint for the function in the format `https://<url_id>.lambda-url.<region>.on.aws`. * */ - private final String functionUrl; + private String functionUrl; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return When the function URL configuration was last updated, in [ISO-8601 format](https://www.w3.org/TR/NOTE-datetime). * */ - private final String lastModifiedTime; - private final @Nullable String qualifier; + private String lastModifiedTime; + private @Nullable String qualifier; /** * @return A generated ID for the endpoint. * */ - private final String urlId; - - @CustomType.Constructor - private GetFunctionUrlResult( - @CustomType.Parameter("authorizationType") String authorizationType, - @CustomType.Parameter("cors") List cors, - @CustomType.Parameter("creationTime") String creationTime, - @CustomType.Parameter("functionArn") String functionArn, - @CustomType.Parameter("functionName") String functionName, - @CustomType.Parameter("functionUrl") String functionUrl, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastModifiedTime") String lastModifiedTime, - @CustomType.Parameter("qualifier") @Nullable String qualifier, - @CustomType.Parameter("urlId") String urlId) { - this.authorizationType = authorizationType; - this.cors = cors; - this.creationTime = creationTime; - this.functionArn = functionArn; - this.functionName = functionName; - this.functionUrl = functionUrl; - this.id = id; - this.lastModifiedTime = lastModifiedTime; - this.qualifier = qualifier; - this.urlId = urlId; - } + private String urlId; + private GetFunctionUrlResult() {} /** * @return The type of authentication that the function URL uses. * @@ -150,7 +127,7 @@ public static Builder builder() { public static Builder builder(GetFunctionUrlResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String authorizationType; private List cors; @@ -162,11 +139,7 @@ public static final class Builder { private String lastModifiedTime; private @Nullable String qualifier; private String urlId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFunctionUrlResult defaults) { Objects.requireNonNull(defaults); this.authorizationType = defaults.authorizationType; @@ -181,10 +154,12 @@ public Builder(GetFunctionUrlResult defaults) { this.urlId = defaults.urlId; } + @CustomType.Setter public Builder authorizationType(String authorizationType) { this.authorizationType = Objects.requireNonNull(authorizationType); return this; } + @CustomType.Setter public Builder cors(List cors) { this.cors = Objects.requireNonNull(cors); return this; @@ -192,39 +167,59 @@ public Builder cors(List cors) { public Builder cors(GetFunctionUrlCor... cors) { return cors(List.of(cors)); } + @CustomType.Setter public Builder creationTime(String creationTime) { this.creationTime = Objects.requireNonNull(creationTime); return this; } + @CustomType.Setter public Builder functionArn(String functionArn) { this.functionArn = Objects.requireNonNull(functionArn); return this; } + @CustomType.Setter public Builder functionName(String functionName) { this.functionName = Objects.requireNonNull(functionName); return this; } + @CustomType.Setter public Builder functionUrl(String functionUrl) { this.functionUrl = Objects.requireNonNull(functionUrl); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastModifiedTime(String lastModifiedTime) { this.lastModifiedTime = Objects.requireNonNull(lastModifiedTime); return this; } + @CustomType.Setter public Builder qualifier(@Nullable String qualifier) { this.qualifier = qualifier; return this; } + @CustomType.Setter public Builder urlId(String urlId) { this.urlId = Objects.requireNonNull(urlId); return this; - } public GetFunctionUrlResult build() { - return new GetFunctionUrlResult(authorizationType, cors, creationTime, functionArn, functionName, functionUrl, id, lastModifiedTime, qualifier, urlId); + } + public GetFunctionUrlResult build() { + final var o = new GetFunctionUrlResult(); + o.authorizationType = authorizationType; + o.cors = cors; + o.creationTime = creationTime; + o.functionArn = functionArn; + o.functionName = functionName; + o.functionUrl = functionUrl; + o.id = id; + o.lastModifiedTime = lastModifiedTime; + o.qualifier = qualifier; + o.urlId = urlId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionVpcConfig.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionVpcConfig.java index 2a076b8a8df..0bdb81eff27 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionVpcConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetFunctionVpcConfig.java @@ -10,20 +10,11 @@ @CustomType public final class GetFunctionVpcConfig { - private final List securityGroupIds; - private final List subnetIds; - private final String vpcId; - - @CustomType.Constructor - private GetFunctionVpcConfig( - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private List securityGroupIds; + private List subnetIds; + private String vpcId; + private GetFunctionVpcConfig() {} public List securityGroupIds() { return this.securityGroupIds; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(GetFunctionVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List securityGroupIds; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFunctionVpcConfig defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; @@ -58,6 +45,7 @@ public Builder(GetFunctionVpcConfig defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -65,6 +53,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -72,11 +61,17 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetFunctionVpcConfig build() { - return new GetFunctionVpcConfig(securityGroupIds, subnetIds, vpcId); + } + public GetFunctionVpcConfig build() { + final var o = new GetFunctionVpcConfig(); + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetInvocationResult.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetInvocationResult.java index f4bc4025aca..48f29f3206b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetInvocationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetInvocationResult.java @@ -11,34 +11,21 @@ @CustomType public final class GetInvocationResult { - private final String functionName; + private String functionName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String input; - private final @Nullable String qualifier; + private String id; + private String input; + private @Nullable String qualifier; /** * @return String result of the lambda function invocation. * */ - private final String result; - - @CustomType.Constructor - private GetInvocationResult( - @CustomType.Parameter("functionName") String functionName, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("input") String input, - @CustomType.Parameter("qualifier") @Nullable String qualifier, - @CustomType.Parameter("result") String result) { - this.functionName = functionName; - this.id = id; - this.input = input; - this.qualifier = qualifier; - this.result = result; - } + private String result; + private GetInvocationResult() {} public String functionName() { return this.functionName; } @@ -70,18 +57,14 @@ public static Builder builder() { public static Builder builder(GetInvocationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String functionName; private String id; private String input; private @Nullable String qualifier; private String result; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInvocationResult defaults) { Objects.requireNonNull(defaults); this.functionName = defaults.functionName; @@ -91,27 +74,39 @@ public Builder(GetInvocationResult defaults) { this.result = defaults.result; } + @CustomType.Setter public Builder functionName(String functionName) { this.functionName = Objects.requireNonNull(functionName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder input(String input) { this.input = Objects.requireNonNull(input); return this; } + @CustomType.Setter public Builder qualifier(@Nullable String qualifier) { this.qualifier = qualifier; return this; } + @CustomType.Setter public Builder result(String result) { this.result = Objects.requireNonNull(result); return this; - } public GetInvocationResult build() { - return new GetInvocationResult(functionName, id, input, qualifier, result); + } + public GetInvocationResult build() { + final var o = new GetInvocationResult(); + o.functionName = functionName; + o.id = id; + o.input = input; + o.qualifier = qualifier; + o.result = result; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetLayerVersionResult.java b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetLayerVersionResult.java index 022a74c123a..1bc8cc2588e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetLayerVersionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lambda/outputs/GetLayerVersionResult.java @@ -17,107 +17,72 @@ public final class GetLayerVersionResult { * @return The Amazon Resource Name (ARN) of the Lambda Layer with version. * */ - private final String arn; - private final @Nullable String compatibleArchitecture; + private String arn; + private @Nullable String compatibleArchitecture; /** * @return A list of [Architectures](https://docs.aws.amazon.com/lambda/latest/dg/API_GetLayerVersion.html#SSS-GetLayerVersion-response-CompatibleArchitectures) the specific Lambda Layer version is compatible with. * */ - private final List compatibleArchitectures; - private final @Nullable String compatibleRuntime; + private List compatibleArchitectures; + private @Nullable String compatibleRuntime; /** * @return A list of [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_GetLayerVersion.html#SSS-GetLayerVersion-response-CompatibleRuntimes) the specific Lambda Layer version is compatible with. * */ - private final List compatibleRuntimes; + private List compatibleRuntimes; /** * @return The date this resource was created. * */ - private final String createdDate; + private String createdDate; /** * @return Description of the specific Lambda Layer version. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The Amazon Resource Name (ARN) of the Lambda Layer without version. * */ - private final String layerArn; - private final String layerName; + private String layerArn; + private String layerName; /** * @return License info associated with the specific Lambda Layer version. * */ - private final String licenseInfo; + private String licenseInfo; /** * @return The Amazon Resource Name (ARN) of a signing job. * */ - private final String signingJobArn; + private String signingJobArn; /** * @return The Amazon Resource Name (ARN) for a signing profile version. * */ - private final String signingProfileVersionArn; + private String signingProfileVersionArn; /** * @return Base64-encoded representation of raw SHA-256 sum of the zip file. * */ - private final String sourceCodeHash; + private String sourceCodeHash; /** * @return The size in bytes of the function .zip file. * */ - private final Integer sourceCodeSize; + private Integer sourceCodeSize; /** * @return This Lamba Layer version. * */ - private final Integer version; - - @CustomType.Constructor - private GetLayerVersionResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("compatibleArchitecture") @Nullable String compatibleArchitecture, - @CustomType.Parameter("compatibleArchitectures") List compatibleArchitectures, - @CustomType.Parameter("compatibleRuntime") @Nullable String compatibleRuntime, - @CustomType.Parameter("compatibleRuntimes") List compatibleRuntimes, - @CustomType.Parameter("createdDate") String createdDate, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("layerArn") String layerArn, - @CustomType.Parameter("layerName") String layerName, - @CustomType.Parameter("licenseInfo") String licenseInfo, - @CustomType.Parameter("signingJobArn") String signingJobArn, - @CustomType.Parameter("signingProfileVersionArn") String signingProfileVersionArn, - @CustomType.Parameter("sourceCodeHash") String sourceCodeHash, - @CustomType.Parameter("sourceCodeSize") Integer sourceCodeSize, - @CustomType.Parameter("version") Integer version) { - this.arn = arn; - this.compatibleArchitecture = compatibleArchitecture; - this.compatibleArchitectures = compatibleArchitectures; - this.compatibleRuntime = compatibleRuntime; - this.compatibleRuntimes = compatibleRuntimes; - this.createdDate = createdDate; - this.description = description; - this.id = id; - this.layerArn = layerArn; - this.layerName = layerName; - this.licenseInfo = licenseInfo; - this.signingJobArn = signingJobArn; - this.signingProfileVersionArn = signingProfileVersionArn; - this.sourceCodeHash = sourceCodeHash; - this.sourceCodeSize = sourceCodeSize; - this.version = version; - } + private Integer version; + private GetLayerVersionResult() {} /** * @return The Amazon Resource Name (ARN) of the Lambda Layer with version. * @@ -226,7 +191,7 @@ public static Builder builder() { public static Builder builder(GetLayerVersionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable String compatibleArchitecture; @@ -244,11 +209,7 @@ public static final class Builder { private String sourceCodeHash; private Integer sourceCodeSize; private Integer version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLayerVersionResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -269,14 +230,17 @@ public Builder(GetLayerVersionResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder compatibleArchitecture(@Nullable String compatibleArchitecture) { this.compatibleArchitecture = compatibleArchitecture; return this; } + @CustomType.Setter public Builder compatibleArchitectures(List compatibleArchitectures) { this.compatibleArchitectures = Objects.requireNonNull(compatibleArchitectures); return this; @@ -284,10 +248,12 @@ public Builder compatibleArchitectures(List compatibleArchitectures) { public Builder compatibleArchitectures(String... compatibleArchitectures) { return compatibleArchitectures(List.of(compatibleArchitectures)); } + @CustomType.Setter public Builder compatibleRuntime(@Nullable String compatibleRuntime) { this.compatibleRuntime = compatibleRuntime; return this; } + @CustomType.Setter public Builder compatibleRuntimes(List compatibleRuntimes) { this.compatibleRuntimes = Objects.requireNonNull(compatibleRuntimes); return this; @@ -295,51 +261,80 @@ public Builder compatibleRuntimes(List compatibleRuntimes) { public Builder compatibleRuntimes(String... compatibleRuntimes) { return compatibleRuntimes(List.of(compatibleRuntimes)); } + @CustomType.Setter public Builder createdDate(String createdDate) { this.createdDate = Objects.requireNonNull(createdDate); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder layerArn(String layerArn) { this.layerArn = Objects.requireNonNull(layerArn); return this; } + @CustomType.Setter public Builder layerName(String layerName) { this.layerName = Objects.requireNonNull(layerName); return this; } + @CustomType.Setter public Builder licenseInfo(String licenseInfo) { this.licenseInfo = Objects.requireNonNull(licenseInfo); return this; } + @CustomType.Setter public Builder signingJobArn(String signingJobArn) { this.signingJobArn = Objects.requireNonNull(signingJobArn); return this; } + @CustomType.Setter public Builder signingProfileVersionArn(String signingProfileVersionArn) { this.signingProfileVersionArn = Objects.requireNonNull(signingProfileVersionArn); return this; } + @CustomType.Setter public Builder sourceCodeHash(String sourceCodeHash) { this.sourceCodeHash = Objects.requireNonNull(sourceCodeHash); return this; } + @CustomType.Setter public Builder sourceCodeSize(Integer sourceCodeSize) { this.sourceCodeSize = Objects.requireNonNull(sourceCodeSize); return this; } + @CustomType.Setter public Builder version(Integer version) { this.version = Objects.requireNonNull(version); return this; - } public GetLayerVersionResult build() { - return new GetLayerVersionResult(arn, compatibleArchitecture, compatibleArchitectures, compatibleRuntime, compatibleRuntimes, createdDate, description, id, layerArn, layerName, licenseInfo, signingJobArn, signingProfileVersionArn, sourceCodeHash, sourceCodeSize, version); + } + public GetLayerVersionResult build() { + final var o = new GetLayerVersionResult(); + o.arn = arn; + o.compatibleArchitecture = compatibleArchitecture; + o.compatibleArchitectures = compatibleArchitectures; + o.compatibleRuntime = compatibleRuntime; + o.compatibleRuntimes = compatibleRuntimes; + o.createdDate = createdDate; + o.description = description; + o.id = id; + o.layerArn = layerArn; + o.layerName = layerName; + o.licenseInfo = licenseInfo; + o.signingJobArn = signingJobArn; + o.signingProfileVersionArn = signingProfileVersionArn; + o.sourceCodeHash = sourceCodeHash; + o.sourceCodeSize = sourceCodeSize; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetHostedZoneIdResult.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetHostedZoneIdResult.java index db7ed33c05a..8eef5168a69 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetHostedZoneIdResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetHostedZoneIdResult.java @@ -15,20 +15,11 @@ public final class GetHostedZoneIdResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String loadBalancerType; - private final @Nullable String region; - - @CustomType.Constructor - private GetHostedZoneIdResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("loadBalancerType") @Nullable String loadBalancerType, - @CustomType.Parameter("region") @Nullable String region) { - this.id = id; - this.loadBalancerType = loadBalancerType; - this.region = region; - } + private String id; + private @Nullable String loadBalancerType; + private @Nullable String region; + private GetHostedZoneIdResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -50,16 +41,12 @@ public static Builder builder() { public static Builder builder(GetHostedZoneIdResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private @Nullable String loadBalancerType; private @Nullable String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetHostedZoneIdResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -67,19 +54,27 @@ public Builder(GetHostedZoneIdResult defaults) { this.region = defaults.region; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder loadBalancerType(@Nullable String loadBalancerType) { this.loadBalancerType = loadBalancerType; return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; - } public GetHostedZoneIdResult build() { - return new GetHostedZoneIdResult(id, loadBalancerType, region); + } + public GetHostedZoneIdResult build() { + final var o = new GetHostedZoneIdResult(); + o.id = id; + o.loadBalancerType = loadBalancerType; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultAction.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultAction.java index d76763fdfc3..824e2cf0962 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultAction.java @@ -16,35 +16,16 @@ @CustomType public final class GetListenerDefaultAction { - private final List authenticateCognitos; - private final List authenticateOidcs; - private final List fixedResponses; - private final List forwards; - private final Integer order; - private final List redirects; - private final String targetGroupArn; - private final String type; - - @CustomType.Constructor - private GetListenerDefaultAction( - @CustomType.Parameter("authenticateCognitos") List authenticateCognitos, - @CustomType.Parameter("authenticateOidcs") List authenticateOidcs, - @CustomType.Parameter("fixedResponses") List fixedResponses, - @CustomType.Parameter("forwards") List forwards, - @CustomType.Parameter("order") Integer order, - @CustomType.Parameter("redirects") List redirects, - @CustomType.Parameter("targetGroupArn") String targetGroupArn, - @CustomType.Parameter("type") String type) { - this.authenticateCognitos = authenticateCognitos; - this.authenticateOidcs = authenticateOidcs; - this.fixedResponses = fixedResponses; - this.forwards = forwards; - this.order = order; - this.redirects = redirects; - this.targetGroupArn = targetGroupArn; - this.type = type; - } + private List authenticateCognitos; + private List authenticateOidcs; + private List fixedResponses; + private List forwards; + private Integer order; + private List redirects; + private String targetGroupArn; + private String type; + private GetListenerDefaultAction() {} public List authenticateCognitos() { return this.authenticateCognitos; } @@ -77,7 +58,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List authenticateCognitos; private List authenticateOidcs; @@ -87,11 +68,7 @@ public static final class Builder { private List redirects; private String targetGroupArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultAction defaults) { Objects.requireNonNull(defaults); this.authenticateCognitos = defaults.authenticateCognitos; @@ -104,6 +81,7 @@ public Builder(GetListenerDefaultAction defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder authenticateCognitos(List authenticateCognitos) { this.authenticateCognitos = Objects.requireNonNull(authenticateCognitos); return this; @@ -111,6 +89,7 @@ public Builder authenticateCognitos(List authenticateOidcs) { this.authenticateOidcs = Objects.requireNonNull(authenticateOidcs); return this; @@ -118,6 +97,7 @@ public Builder authenticateOidcs(List public Builder authenticateOidcs(GetListenerDefaultActionAuthenticateOidc... authenticateOidcs) { return authenticateOidcs(List.of(authenticateOidcs)); } + @CustomType.Setter public Builder fixedResponses(List fixedResponses) { this.fixedResponses = Objects.requireNonNull(fixedResponses); return this; @@ -125,6 +105,7 @@ public Builder fixedResponses(List fixedR public Builder fixedResponses(GetListenerDefaultActionFixedResponse... fixedResponses) { return fixedResponses(List.of(fixedResponses)); } + @CustomType.Setter public Builder forwards(List forwards) { this.forwards = Objects.requireNonNull(forwards); return this; @@ -132,10 +113,12 @@ public Builder forwards(List forwards) { public Builder forwards(GetListenerDefaultActionForward... forwards) { return forwards(List.of(forwards)); } + @CustomType.Setter public Builder order(Integer order) { this.order = Objects.requireNonNull(order); return this; } + @CustomType.Setter public Builder redirects(List redirects) { this.redirects = Objects.requireNonNull(redirects); return this; @@ -143,15 +126,27 @@ public Builder redirects(List redirects) { public Builder redirects(GetListenerDefaultActionRedirect... redirects) { return redirects(List.of(redirects)); } + @CustomType.Setter public Builder targetGroupArn(String targetGroupArn) { this.targetGroupArn = Objects.requireNonNull(targetGroupArn); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetListenerDefaultAction build() { - return new GetListenerDefaultAction(authenticateCognitos, authenticateOidcs, fixedResponses, forwards, order, redirects, targetGroupArn, type); + } + public GetListenerDefaultAction build() { + final var o = new GetListenerDefaultAction(); + o.authenticateCognitos = authenticateCognitos; + o.authenticateOidcs = authenticateOidcs; + o.fixedResponses = fixedResponses; + o.forwards = forwards; + o.order = order; + o.redirects = redirects; + o.targetGroupArn = targetGroupArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionAuthenticateCognito.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionAuthenticateCognito.java index b978b5ff1a4..db85810d82f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionAuthenticateCognito.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionAuthenticateCognito.java @@ -11,35 +11,16 @@ @CustomType public final class GetListenerDefaultActionAuthenticateCognito { - private final Map authenticationRequestExtraParams; - private final String onUnauthenticatedRequest; - private final String scope; - private final String sessionCookieName; - private final Integer sessionTimeout; - private final String userPoolArn; - private final String userPoolClientId; - private final String userPoolDomain; - - @CustomType.Constructor - private GetListenerDefaultActionAuthenticateCognito( - @CustomType.Parameter("authenticationRequestExtraParams") Map authenticationRequestExtraParams, - @CustomType.Parameter("onUnauthenticatedRequest") String onUnauthenticatedRequest, - @CustomType.Parameter("scope") String scope, - @CustomType.Parameter("sessionCookieName") String sessionCookieName, - @CustomType.Parameter("sessionTimeout") Integer sessionTimeout, - @CustomType.Parameter("userPoolArn") String userPoolArn, - @CustomType.Parameter("userPoolClientId") String userPoolClientId, - @CustomType.Parameter("userPoolDomain") String userPoolDomain) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.userPoolArn = userPoolArn; - this.userPoolClientId = userPoolClientId; - this.userPoolDomain = userPoolDomain; - } + private Map authenticationRequestExtraParams; + private String onUnauthenticatedRequest; + private String scope; + private String sessionCookieName; + private Integer sessionTimeout; + private String userPoolArn; + private String userPoolClientId; + private String userPoolDomain; + private GetListenerDefaultActionAuthenticateCognito() {} public Map authenticationRequestExtraParams() { return this.authenticationRequestExtraParams; } @@ -72,7 +53,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionAuthenticateCognito defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map authenticationRequestExtraParams; private String onUnauthenticatedRequest; @@ -82,11 +63,7 @@ public static final class Builder { private String userPoolArn; private String userPoolClientId; private String userPoolDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionAuthenticateCognito defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -99,39 +76,57 @@ public Builder(GetListenerDefaultActionAuthenticateCognito defaults) { this.userPoolDomain = defaults.userPoolDomain; } + @CustomType.Setter public Builder authenticationRequestExtraParams(Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = Objects.requireNonNull(authenticationRequestExtraParams); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = Objects.requireNonNull(onUnauthenticatedRequest); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; } + @CustomType.Setter public Builder sessionCookieName(String sessionCookieName) { this.sessionCookieName = Objects.requireNonNull(sessionCookieName); return this; } + @CustomType.Setter public Builder sessionTimeout(Integer sessionTimeout) { this.sessionTimeout = Objects.requireNonNull(sessionTimeout); return this; } + @CustomType.Setter public Builder userPoolArn(String userPoolArn) { this.userPoolArn = Objects.requireNonNull(userPoolArn); return this; } + @CustomType.Setter public Builder userPoolClientId(String userPoolClientId) { this.userPoolClientId = Objects.requireNonNull(userPoolClientId); return this; } + @CustomType.Setter public Builder userPoolDomain(String userPoolDomain) { this.userPoolDomain = Objects.requireNonNull(userPoolDomain); return this; - } public GetListenerDefaultActionAuthenticateCognito build() { - return new GetListenerDefaultActionAuthenticateCognito(authenticationRequestExtraParams, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, userPoolArn, userPoolClientId, userPoolDomain); + } + public GetListenerDefaultActionAuthenticateCognito build() { + final var o = new GetListenerDefaultActionAuthenticateCognito(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.userPoolArn = userPoolArn; + o.userPoolClientId = userPoolClientId; + o.userPoolDomain = userPoolDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionAuthenticateOidc.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionAuthenticateOidc.java index 29b01959407..00f5f163a86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionAuthenticateOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionAuthenticateOidc.java @@ -11,44 +11,19 @@ @CustomType public final class GetListenerDefaultActionAuthenticateOidc { - private final Map authenticationRequestExtraParams; - private final String authorizationEndpoint; - private final String clientId; - private final String clientSecret; - private final String issuer; - private final String onUnauthenticatedRequest; - private final String scope; - private final String sessionCookieName; - private final Integer sessionTimeout; - private final String tokenEndpoint; - private final String userInfoEndpoint; - - @CustomType.Constructor - private GetListenerDefaultActionAuthenticateOidc( - @CustomType.Parameter("authenticationRequestExtraParams") Map authenticationRequestExtraParams, - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("onUnauthenticatedRequest") String onUnauthenticatedRequest, - @CustomType.Parameter("scope") String scope, - @CustomType.Parameter("sessionCookieName") String sessionCookieName, - @CustomType.Parameter("sessionTimeout") Integer sessionTimeout, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private Map authenticationRequestExtraParams; + private String authorizationEndpoint; + private String clientId; + private String clientSecret; + private String issuer; + private String onUnauthenticatedRequest; + private String scope; + private String sessionCookieName; + private Integer sessionTimeout; + private String tokenEndpoint; + private String userInfoEndpoint; + private GetListenerDefaultActionAuthenticateOidc() {} public Map authenticationRequestExtraParams() { return this.authenticationRequestExtraParams; } @@ -90,7 +65,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionAuthenticateOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map authenticationRequestExtraParams; private String authorizationEndpoint; @@ -103,11 +78,7 @@ public static final class Builder { private Integer sessionTimeout; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionAuthenticateOidc defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -123,51 +94,75 @@ public Builder(GetListenerDefaultActionAuthenticateOidc defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authenticationRequestExtraParams(Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = Objects.requireNonNull(authenticationRequestExtraParams); return this; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = Objects.requireNonNull(onUnauthenticatedRequest); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; } + @CustomType.Setter public Builder sessionCookieName(String sessionCookieName) { this.sessionCookieName = Objects.requireNonNull(sessionCookieName); return this; } + @CustomType.Setter public Builder sessionTimeout(Integer sessionTimeout) { this.sessionTimeout = Objects.requireNonNull(sessionTimeout); return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public GetListenerDefaultActionAuthenticateOidc build() { - return new GetListenerDefaultActionAuthenticateOidc(authenticationRequestExtraParams, authorizationEndpoint, clientId, clientSecret, issuer, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, tokenEndpoint, userInfoEndpoint); + } + public GetListenerDefaultActionAuthenticateOidc build() { + final var o = new GetListenerDefaultActionAuthenticateOidc(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionFixedResponse.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionFixedResponse.java index 7a591675d6f..e98442df062 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionFixedResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionFixedResponse.java @@ -9,20 +9,11 @@ @CustomType public final class GetListenerDefaultActionFixedResponse { - private final String contentType; - private final String messageBody; - private final String statusCode; - - @CustomType.Constructor - private GetListenerDefaultActionFixedResponse( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("messageBody") String messageBody, - @CustomType.Parameter("statusCode") String statusCode) { - this.contentType = contentType; - this.messageBody = messageBody; - this.statusCode = statusCode; - } + private String contentType; + private String messageBody; + private String statusCode; + private GetListenerDefaultActionFixedResponse() {} public String contentType() { return this.contentType; } @@ -40,16 +31,12 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionFixedResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private String messageBody; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionFixedResponse defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -57,19 +44,27 @@ public Builder(GetListenerDefaultActionFixedResponse defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder messageBody(String messageBody) { this.messageBody = Objects.requireNonNull(messageBody); return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public GetListenerDefaultActionFixedResponse build() { - return new GetListenerDefaultActionFixedResponse(contentType, messageBody, statusCode); + } + public GetListenerDefaultActionFixedResponse build() { + final var o = new GetListenerDefaultActionFixedResponse(); + o.contentType = contentType; + o.messageBody = messageBody; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionForward.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionForward.java index 1efaa701976..559bd6e5feb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionForward.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionForward.java @@ -11,17 +11,10 @@ @CustomType public final class GetListenerDefaultActionForward { - private final List stickinesses; - private final List targetGroups; - - @CustomType.Constructor - private GetListenerDefaultActionForward( - @CustomType.Parameter("stickinesses") List stickinesses, - @CustomType.Parameter("targetGroups") List targetGroups) { - this.stickinesses = stickinesses; - this.targetGroups = targetGroups; - } + private List stickinesses; + private List targetGroups; + private GetListenerDefaultActionForward() {} public List stickinesses() { return this.stickinesses; } @@ -36,21 +29,18 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionForward defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List stickinesses; private List targetGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionForward defaults) { Objects.requireNonNull(defaults); this.stickinesses = defaults.stickinesses; this.targetGroups = defaults.targetGroups; } + @CustomType.Setter public Builder stickinesses(List stickinesses) { this.stickinesses = Objects.requireNonNull(stickinesses); return this; @@ -58,14 +48,19 @@ public Builder stickinesses(List stic public Builder stickinesses(GetListenerDefaultActionForwardStickiness... stickinesses) { return stickinesses(List.of(stickinesses)); } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; } public Builder targetGroups(GetListenerDefaultActionForwardTargetGroup... targetGroups) { return targetGroups(List.of(targetGroups)); - } public GetListenerDefaultActionForward build() { - return new GetListenerDefaultActionForward(stickinesses, targetGroups); + } + public GetListenerDefaultActionForward build() { + final var o = new GetListenerDefaultActionForward(); + o.stickinesses = stickinesses; + o.targetGroups = targetGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionForwardStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionForwardStickiness.java index 16673c0ebe0..1df5a45860b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionForwardStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionForwardStickiness.java @@ -10,17 +10,10 @@ @CustomType public final class GetListenerDefaultActionForwardStickiness { - private final Integer duration; - private final Boolean enabled; - - @CustomType.Constructor - private GetListenerDefaultActionForwardStickiness( - @CustomType.Parameter("duration") Integer duration, - @CustomType.Parameter("enabled") Boolean enabled) { - this.duration = duration; - this.enabled = enabled; - } + private Integer duration; + private Boolean enabled; + private GetListenerDefaultActionForwardStickiness() {} public Integer duration() { return this.duration; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionForwardStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer duration; private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionForwardStickiness defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder duration(Integer duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public GetListenerDefaultActionForwardStickiness build() { - return new GetListenerDefaultActionForwardStickiness(duration, enabled); + } + public GetListenerDefaultActionForwardStickiness build() { + final var o = new GetListenerDefaultActionForwardStickiness(); + o.duration = duration; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionForwardTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionForwardTargetGroup.java index ae03faf2394..cc7988fe111 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionForwardTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionForwardTargetGroup.java @@ -14,17 +14,10 @@ public final class GetListenerDefaultActionForwardTargetGroup { * @return ARN of the listener. Required if `load_balancer_arn` and `port` is not set. * */ - private final String arn; - private final Integer weight; - - @CustomType.Constructor - private GetListenerDefaultActionForwardTargetGroup( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("weight") Integer weight) { - this.arn = arn; - this.weight = weight; - } + private String arn; + private Integer weight; + private GetListenerDefaultActionForwardTargetGroup() {} /** * @return ARN of the listener. Required if `load_balancer_arn` and `port` is not set. * @@ -43,30 +36,32 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionForwardTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionForwardTargetGroup defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.weight = defaults.weight; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder weight(Integer weight) { this.weight = Objects.requireNonNull(weight); return this; - } public GetListenerDefaultActionForwardTargetGroup build() { - return new GetListenerDefaultActionForwardTargetGroup(arn, weight); + } + public GetListenerDefaultActionForwardTargetGroup build() { + final var o = new GetListenerDefaultActionForwardTargetGroup(); + o.arn = arn; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionRedirect.java index 90777c31566..d20848e50b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerDefaultActionRedirect.java @@ -9,33 +9,18 @@ @CustomType public final class GetListenerDefaultActionRedirect { - private final String host; - private final String path; + private String host; + private String path; /** * @return Port of the listener. Required if `arn` is not set. * */ - private final String port; - private final String protocol; - private final String query; - private final String statusCode; - - @CustomType.Constructor - private GetListenerDefaultActionRedirect( - @CustomType.Parameter("host") String host, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("port") String port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("query") String query, - @CustomType.Parameter("statusCode") String statusCode) { - this.host = host; - this.path = path; - this.port = port; - this.protocol = protocol; - this.query = query; - this.statusCode = statusCode; - } + private String port; + private String protocol; + private String query; + private String statusCode; + private GetListenerDefaultActionRedirect() {} public String host() { return this.host; } @@ -66,7 +51,7 @@ public static Builder builder() { public static Builder builder(GetListenerDefaultActionRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String host; private String path; @@ -74,11 +59,7 @@ public static final class Builder { private String protocol; private String query; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerDefaultActionRedirect defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -89,31 +70,45 @@ public Builder(GetListenerDefaultActionRedirect defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder port(String port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder query(String query) { this.query = Objects.requireNonNull(query); return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public GetListenerDefaultActionRedirect build() { - return new GetListenerDefaultActionRedirect(host, path, port, protocol, query, statusCode); + } + public GetListenerDefaultActionRedirect build() { + final var o = new GetListenerDefaultActionRedirect(); + o.host = host; + o.path = path; + o.port = port; + o.protocol = protocol; + o.query = query; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerResult.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerResult.java index e89dd2fccbf..b6b0837a474 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetListenerResult.java @@ -13,45 +13,22 @@ @CustomType public final class GetListenerResult { - private final String alpnPolicy; - private final String arn; - private final String certificateArn; - private final List defaultActions; + private String alpnPolicy; + private String arn; + private String certificateArn; + private List defaultActions; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String loadBalancerArn; - private final Integer port; - private final String protocol; - private final String sslPolicy; - private final Map tags; - - @CustomType.Constructor - private GetListenerResult( - @CustomType.Parameter("alpnPolicy") String alpnPolicy, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("certificateArn") String certificateArn, - @CustomType.Parameter("defaultActions") List defaultActions, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("loadBalancerArn") String loadBalancerArn, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("sslPolicy") String sslPolicy, - @CustomType.Parameter("tags") Map tags) { - this.alpnPolicy = alpnPolicy; - this.arn = arn; - this.certificateArn = certificateArn; - this.defaultActions = defaultActions; - this.id = id; - this.loadBalancerArn = loadBalancerArn; - this.port = port; - this.protocol = protocol; - this.sslPolicy = sslPolicy; - this.tags = tags; - } + private String id; + private String loadBalancerArn; + private Integer port; + private String protocol; + private String sslPolicy; + private Map tags; + private GetListenerResult() {} public String alpnPolicy() { return this.alpnPolicy; } @@ -94,7 +71,7 @@ public static Builder builder() { public static Builder builder(GetListenerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String alpnPolicy; private String arn; @@ -106,11 +83,7 @@ public static final class Builder { private String protocol; private String sslPolicy; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetListenerResult defaults) { Objects.requireNonNull(defaults); this.alpnPolicy = defaults.alpnPolicy; @@ -125,18 +98,22 @@ public Builder(GetListenerResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder alpnPolicy(String alpnPolicy) { this.alpnPolicy = Objects.requireNonNull(alpnPolicy); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder certificateArn(String certificateArn) { this.certificateArn = Objects.requireNonNull(certificateArn); return this; } + @CustomType.Setter public Builder defaultActions(List defaultActions) { this.defaultActions = Objects.requireNonNull(defaultActions); return this; @@ -144,31 +121,49 @@ public Builder defaultActions(List defaultActions) { public Builder defaultActions(GetListenerDefaultAction... defaultActions) { return defaultActions(List.of(defaultActions)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder loadBalancerArn(String loadBalancerArn) { this.loadBalancerArn = Objects.requireNonNull(loadBalancerArn); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder sslPolicy(String sslPolicy) { this.sslPolicy = Objects.requireNonNull(sslPolicy); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetListenerResult build() { - return new GetListenerResult(alpnPolicy, arn, certificateArn, defaultActions, id, loadBalancerArn, port, protocol, sslPolicy, tags); + } + public GetListenerResult build() { + final var o = new GetListenerResult(); + o.alpnPolicy = alpnPolicy; + o.arn = arn; + o.certificateArn = certificateArn; + o.defaultActions = defaultActions; + o.id = id; + o.loadBalancerArn = loadBalancerArn; + o.port = port; + o.protocol = protocol; + o.sslPolicy = sslPolicy; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetLoadBalancerAccessLogs.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetLoadBalancerAccessLogs.java index 9dc1174b96c..385aeafcddc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetLoadBalancerAccessLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetLoadBalancerAccessLogs.java @@ -10,20 +10,11 @@ @CustomType public final class GetLoadBalancerAccessLogs { - private final String bucket; - private final Boolean enabled; - private final String prefix; - - @CustomType.Constructor - private GetLoadBalancerAccessLogs( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("prefix") String prefix) { - this.bucket = bucket; - this.enabled = enabled; - this.prefix = prefix; - } + private String bucket; + private Boolean enabled; + private String prefix; + private GetLoadBalancerAccessLogs() {} public String bucket() { return this.bucket; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerAccessLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private Boolean enabled; private String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerAccessLogs defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -58,19 +45,27 @@ public Builder(GetLoadBalancerAccessLogs defaults) { this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder prefix(String prefix) { this.prefix = Objects.requireNonNull(prefix); return this; - } public GetLoadBalancerAccessLogs build() { - return new GetLoadBalancerAccessLogs(bucket, enabled, prefix); + } + public GetLoadBalancerAccessLogs build() { + final var o = new GetLoadBalancerAccessLogs(); + o.bucket = bucket; + o.enabled = enabled; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetLoadBalancerResult.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetLoadBalancerResult.java index 56203b909b4..ac0dd78ec94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetLoadBalancerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetLoadBalancerResult.java @@ -15,84 +15,35 @@ @CustomType public final class GetLoadBalancerResult { - private final GetLoadBalancerAccessLogs accessLogs; - private final String arn; - private final String arnSuffix; - private final String customerOwnedIpv4Pool; - private final String desyncMitigationMode; - private final String dnsName; - private final Boolean dropInvalidHeaderFields; - private final Boolean enableDeletionProtection; - private final Boolean enableHttp2; - private final Boolean enableWafFailOpen; + private GetLoadBalancerAccessLogs accessLogs; + private String arn; + private String arnSuffix; + private String customerOwnedIpv4Pool; + private String desyncMitigationMode; + private String dnsName; + private Boolean dropInvalidHeaderFields; + private Boolean enableDeletionProtection; + private Boolean enableHttp2; + private Boolean enableWafFailOpen; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final Integer idleTimeout; - private final Boolean internal; - private final String ipAddressType; - private final String loadBalancerType; - private final String name; - private final Boolean preserveHostHeader; - private final List securityGroups; - private final List subnetMappings; - private final List subnets; - private final Map tags; - private final String vpcId; - private final String zoneId; - - @CustomType.Constructor - private GetLoadBalancerResult( - @CustomType.Parameter("accessLogs") GetLoadBalancerAccessLogs accessLogs, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("arnSuffix") String arnSuffix, - @CustomType.Parameter("customerOwnedIpv4Pool") String customerOwnedIpv4Pool, - @CustomType.Parameter("desyncMitigationMode") String desyncMitigationMode, - @CustomType.Parameter("dnsName") String dnsName, - @CustomType.Parameter("dropInvalidHeaderFields") Boolean dropInvalidHeaderFields, - @CustomType.Parameter("enableDeletionProtection") Boolean enableDeletionProtection, - @CustomType.Parameter("enableHttp2") Boolean enableHttp2, - @CustomType.Parameter("enableWafFailOpen") Boolean enableWafFailOpen, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("idleTimeout") Integer idleTimeout, - @CustomType.Parameter("internal") Boolean internal, - @CustomType.Parameter("ipAddressType") String ipAddressType, - @CustomType.Parameter("loadBalancerType") String loadBalancerType, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("preserveHostHeader") Boolean preserveHostHeader, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("subnetMappings") List subnetMappings, - @CustomType.Parameter("subnets") List subnets, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId, - @CustomType.Parameter("zoneId") String zoneId) { - this.accessLogs = accessLogs; - this.arn = arn; - this.arnSuffix = arnSuffix; - this.customerOwnedIpv4Pool = customerOwnedIpv4Pool; - this.desyncMitigationMode = desyncMitigationMode; - this.dnsName = dnsName; - this.dropInvalidHeaderFields = dropInvalidHeaderFields; - this.enableDeletionProtection = enableDeletionProtection; - this.enableHttp2 = enableHttp2; - this.enableWafFailOpen = enableWafFailOpen; - this.id = id; - this.idleTimeout = idleTimeout; - this.internal = internal; - this.ipAddressType = ipAddressType; - this.loadBalancerType = loadBalancerType; - this.name = name; - this.preserveHostHeader = preserveHostHeader; - this.securityGroups = securityGroups; - this.subnetMappings = subnetMappings; - this.subnets = subnets; - this.tags = tags; - this.vpcId = vpcId; - this.zoneId = zoneId; - } + private String id; + private Integer idleTimeout; + private Boolean internal; + private String ipAddressType; + private String loadBalancerType; + private String name; + private Boolean preserveHostHeader; + private List securityGroups; + private List subnetMappings; + private List subnets; + private Map tags; + private String vpcId; + private String zoneId; + private GetLoadBalancerResult() {} public GetLoadBalancerAccessLogs accessLogs() { return this.accessLogs; } @@ -174,7 +125,7 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GetLoadBalancerAccessLogs accessLogs; private String arn; @@ -199,11 +150,7 @@ public static final class Builder { private Map tags; private String vpcId; private String zoneId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerResult defaults) { Objects.requireNonNull(defaults); this.accessLogs = defaults.accessLogs; @@ -231,74 +178,92 @@ public Builder(GetLoadBalancerResult defaults) { this.zoneId = defaults.zoneId; } + @CustomType.Setter public Builder accessLogs(GetLoadBalancerAccessLogs accessLogs) { this.accessLogs = Objects.requireNonNull(accessLogs); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder arnSuffix(String arnSuffix) { this.arnSuffix = Objects.requireNonNull(arnSuffix); return this; } + @CustomType.Setter public Builder customerOwnedIpv4Pool(String customerOwnedIpv4Pool) { this.customerOwnedIpv4Pool = Objects.requireNonNull(customerOwnedIpv4Pool); return this; } + @CustomType.Setter public Builder desyncMitigationMode(String desyncMitigationMode) { this.desyncMitigationMode = Objects.requireNonNull(desyncMitigationMode); return this; } + @CustomType.Setter public Builder dnsName(String dnsName) { this.dnsName = Objects.requireNonNull(dnsName); return this; } + @CustomType.Setter public Builder dropInvalidHeaderFields(Boolean dropInvalidHeaderFields) { this.dropInvalidHeaderFields = Objects.requireNonNull(dropInvalidHeaderFields); return this; } + @CustomType.Setter public Builder enableDeletionProtection(Boolean enableDeletionProtection) { this.enableDeletionProtection = Objects.requireNonNull(enableDeletionProtection); return this; } + @CustomType.Setter public Builder enableHttp2(Boolean enableHttp2) { this.enableHttp2 = Objects.requireNonNull(enableHttp2); return this; } + @CustomType.Setter public Builder enableWafFailOpen(Boolean enableWafFailOpen) { this.enableWafFailOpen = Objects.requireNonNull(enableWafFailOpen); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder idleTimeout(Integer idleTimeout) { this.idleTimeout = Objects.requireNonNull(idleTimeout); return this; } + @CustomType.Setter public Builder internal(Boolean internal) { this.internal = Objects.requireNonNull(internal); return this; } + @CustomType.Setter public Builder ipAddressType(String ipAddressType) { this.ipAddressType = Objects.requireNonNull(ipAddressType); return this; } + @CustomType.Setter public Builder loadBalancerType(String loadBalancerType) { this.loadBalancerType = Objects.requireNonNull(loadBalancerType); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder preserveHostHeader(Boolean preserveHostHeader) { this.preserveHostHeader = Objects.requireNonNull(preserveHostHeader); return this; } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -306,6 +271,7 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnetMappings(List subnetMappings) { this.subnetMappings = Objects.requireNonNull(subnetMappings); return this; @@ -313,6 +279,7 @@ public Builder subnetMappings(List subnetMappings) public Builder subnetMappings(GetLoadBalancerSubnetMapping... subnetMappings) { return subnetMappings(List.of(subnetMappings)); } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; @@ -320,19 +287,47 @@ public Builder subnets(List subnets) { public Builder subnets(String... subnets) { return subnets(List.of(subnets)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; } + @CustomType.Setter public Builder zoneId(String zoneId) { this.zoneId = Objects.requireNonNull(zoneId); return this; - } public GetLoadBalancerResult build() { - return new GetLoadBalancerResult(accessLogs, arn, arnSuffix, customerOwnedIpv4Pool, desyncMitigationMode, dnsName, dropInvalidHeaderFields, enableDeletionProtection, enableHttp2, enableWafFailOpen, id, idleTimeout, internal, ipAddressType, loadBalancerType, name, preserveHostHeader, securityGroups, subnetMappings, subnets, tags, vpcId, zoneId); + } + public GetLoadBalancerResult build() { + final var o = new GetLoadBalancerResult(); + o.accessLogs = accessLogs; + o.arn = arn; + o.arnSuffix = arnSuffix; + o.customerOwnedIpv4Pool = customerOwnedIpv4Pool; + o.desyncMitigationMode = desyncMitigationMode; + o.dnsName = dnsName; + o.dropInvalidHeaderFields = dropInvalidHeaderFields; + o.enableDeletionProtection = enableDeletionProtection; + o.enableHttp2 = enableHttp2; + o.enableWafFailOpen = enableWafFailOpen; + o.id = id; + o.idleTimeout = idleTimeout; + o.internal = internal; + o.ipAddressType = ipAddressType; + o.loadBalancerType = loadBalancerType; + o.name = name; + o.preserveHostHeader = preserveHostHeader; + o.securityGroups = securityGroups; + o.subnetMappings = subnetMappings; + o.subnets = subnets; + o.tags = tags; + o.vpcId = vpcId; + o.zoneId = zoneId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetLoadBalancerSubnetMapping.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetLoadBalancerSubnetMapping.java index aa60ebaf608..9fc9249d3b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetLoadBalancerSubnetMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetLoadBalancerSubnetMapping.java @@ -9,26 +9,13 @@ @CustomType public final class GetLoadBalancerSubnetMapping { - private final String allocationId; - private final String ipv6Address; - private final String outpostId; - private final String privateIpv4Address; - private final String subnetId; - - @CustomType.Constructor - private GetLoadBalancerSubnetMapping( - @CustomType.Parameter("allocationId") String allocationId, - @CustomType.Parameter("ipv6Address") String ipv6Address, - @CustomType.Parameter("outpostId") String outpostId, - @CustomType.Parameter("privateIpv4Address") String privateIpv4Address, - @CustomType.Parameter("subnetId") String subnetId) { - this.allocationId = allocationId; - this.ipv6Address = ipv6Address; - this.outpostId = outpostId; - this.privateIpv4Address = privateIpv4Address; - this.subnetId = subnetId; - } + private String allocationId; + private String ipv6Address; + private String outpostId; + private String privateIpv4Address; + private String subnetId; + private GetLoadBalancerSubnetMapping() {} public String allocationId() { return this.allocationId; } @@ -52,18 +39,14 @@ public static Builder builder() { public static Builder builder(GetLoadBalancerSubnetMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String allocationId; private String ipv6Address; private String outpostId; private String privateIpv4Address; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLoadBalancerSubnetMapping defaults) { Objects.requireNonNull(defaults); this.allocationId = defaults.allocationId; @@ -73,27 +56,39 @@ public Builder(GetLoadBalancerSubnetMapping defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder allocationId(String allocationId) { this.allocationId = Objects.requireNonNull(allocationId); return this; } + @CustomType.Setter public Builder ipv6Address(String ipv6Address) { this.ipv6Address = Objects.requireNonNull(ipv6Address); return this; } + @CustomType.Setter public Builder outpostId(String outpostId) { this.outpostId = Objects.requireNonNull(outpostId); return this; } + @CustomType.Setter public Builder privateIpv4Address(String privateIpv4Address) { this.privateIpv4Address = Objects.requireNonNull(privateIpv4Address); return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public GetLoadBalancerSubnetMapping build() { - return new GetLoadBalancerSubnetMapping(allocationId, ipv6Address, outpostId, privateIpv4Address, subnetId); + } + public GetLoadBalancerSubnetMapping build() { + final var o = new GetLoadBalancerSubnetMapping(); + o.allocationId = allocationId; + o.ipv6Address = ipv6Address; + o.outpostId = outpostId; + o.privateIpv4Address = privateIpv4Address; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetTargetGroupHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetTargetGroupHealthCheck.java index 82c0a4fa3f9..944df160ab3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetTargetGroupHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetTargetGroupHealthCheck.java @@ -11,38 +11,17 @@ @CustomType public final class GetTargetGroupHealthCheck { - private final Boolean enabled; - private final Integer healthyThreshold; - private final Integer interval; - private final String matcher; - private final String path; - private final String port; - private final String protocol; - private final Integer timeout; - private final Integer unhealthyThreshold; - - @CustomType.Constructor - private GetTargetGroupHealthCheck( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("healthyThreshold") Integer healthyThreshold, - @CustomType.Parameter("interval") Integer interval, - @CustomType.Parameter("matcher") String matcher, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("port") String port, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("timeout") Integer timeout, - @CustomType.Parameter("unhealthyThreshold") Integer unhealthyThreshold) { - this.enabled = enabled; - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.matcher = matcher; - this.path = path; - this.port = port; - this.protocol = protocol; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private Boolean enabled; + private Integer healthyThreshold; + private Integer interval; + private String matcher; + private String path; + private String port; + private String protocol; + private Integer timeout; + private Integer unhealthyThreshold; + private GetTargetGroupHealthCheck() {} public Boolean enabled() { return this.enabled; } @@ -78,7 +57,7 @@ public static Builder builder() { public static Builder builder(GetTargetGroupHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private Integer healthyThreshold; @@ -89,11 +68,7 @@ public static final class Builder { private String protocol; private Integer timeout; private Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTargetGroupHealthCheck defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; @@ -107,43 +82,63 @@ public Builder(GetTargetGroupHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder healthyThreshold(Integer healthyThreshold) { this.healthyThreshold = Objects.requireNonNull(healthyThreshold); return this; } + @CustomType.Setter public Builder interval(Integer interval) { this.interval = Objects.requireNonNull(interval); return this; } + @CustomType.Setter public Builder matcher(String matcher) { this.matcher = Objects.requireNonNull(matcher); return this; } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder port(String port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder timeout(Integer timeout) { this.timeout = Objects.requireNonNull(timeout); return this; } + @CustomType.Setter public Builder unhealthyThreshold(Integer unhealthyThreshold) { this.unhealthyThreshold = Objects.requireNonNull(unhealthyThreshold); return this; - } public GetTargetGroupHealthCheck build() { - return new GetTargetGroupHealthCheck(enabled, healthyThreshold, interval, matcher, path, port, protocol, timeout, unhealthyThreshold); + } + public GetTargetGroupHealthCheck build() { + final var o = new GetTargetGroupHealthCheck(); + o.enabled = enabled; + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.matcher = matcher; + o.path = path; + o.port = port; + o.protocol = protocol; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetTargetGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetTargetGroupResult.java index 4c2e32d8345..0a28806c2fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetTargetGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetTargetGroupResult.java @@ -14,72 +14,31 @@ @CustomType public final class GetTargetGroupResult { - private final String arn; - private final String arnSuffix; - private final Boolean connectionTermination; - private final Integer deregistrationDelay; - private final GetTargetGroupHealthCheck healthCheck; + private String arn; + private String arnSuffix; + private Boolean connectionTermination; + private Integer deregistrationDelay; + private GetTargetGroupHealthCheck healthCheck; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final Boolean lambdaMultiValueHeadersEnabled; - private final String loadBalancingAlgorithmType; - private final String name; - private final Integer port; - private final String preserveClientIp; - private final String protocol; - private final String protocolVersion; - private final Boolean proxyProtocolV2; - private final Integer slowStart; - private final GetTargetGroupStickiness stickiness; - private final Map tags; - private final String targetType; - private final String vpcId; - - @CustomType.Constructor - private GetTargetGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("arnSuffix") String arnSuffix, - @CustomType.Parameter("connectionTermination") Boolean connectionTermination, - @CustomType.Parameter("deregistrationDelay") Integer deregistrationDelay, - @CustomType.Parameter("healthCheck") GetTargetGroupHealthCheck healthCheck, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lambdaMultiValueHeadersEnabled") Boolean lambdaMultiValueHeadersEnabled, - @CustomType.Parameter("loadBalancingAlgorithmType") String loadBalancingAlgorithmType, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("preserveClientIp") String preserveClientIp, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("protocolVersion") String protocolVersion, - @CustomType.Parameter("proxyProtocolV2") Boolean proxyProtocolV2, - @CustomType.Parameter("slowStart") Integer slowStart, - @CustomType.Parameter("stickiness") GetTargetGroupStickiness stickiness, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("targetType") String targetType, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.arnSuffix = arnSuffix; - this.connectionTermination = connectionTermination; - this.deregistrationDelay = deregistrationDelay; - this.healthCheck = healthCheck; - this.id = id; - this.lambdaMultiValueHeadersEnabled = lambdaMultiValueHeadersEnabled; - this.loadBalancingAlgorithmType = loadBalancingAlgorithmType; - this.name = name; - this.port = port; - this.preserveClientIp = preserveClientIp; - this.protocol = protocol; - this.protocolVersion = protocolVersion; - this.proxyProtocolV2 = proxyProtocolV2; - this.slowStart = slowStart; - this.stickiness = stickiness; - this.tags = tags; - this.targetType = targetType; - this.vpcId = vpcId; - } + private String id; + private Boolean lambdaMultiValueHeadersEnabled; + private String loadBalancingAlgorithmType; + private String name; + private Integer port; + private String preserveClientIp; + private String protocol; + private String protocolVersion; + private Boolean proxyProtocolV2; + private Integer slowStart; + private GetTargetGroupStickiness stickiness; + private Map tags; + private String targetType; + private String vpcId; + private GetTargetGroupResult() {} public String arn() { return this.arn; } @@ -149,7 +108,7 @@ public static Builder builder() { public static Builder builder(GetTargetGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String arnSuffix; @@ -170,11 +129,7 @@ public static final class Builder { private Map tags; private String targetType; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTargetGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -198,83 +153,123 @@ public Builder(GetTargetGroupResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder arnSuffix(String arnSuffix) { this.arnSuffix = Objects.requireNonNull(arnSuffix); return this; } + @CustomType.Setter public Builder connectionTermination(Boolean connectionTermination) { this.connectionTermination = Objects.requireNonNull(connectionTermination); return this; } + @CustomType.Setter public Builder deregistrationDelay(Integer deregistrationDelay) { this.deregistrationDelay = Objects.requireNonNull(deregistrationDelay); return this; } + @CustomType.Setter public Builder healthCheck(GetTargetGroupHealthCheck healthCheck) { this.healthCheck = Objects.requireNonNull(healthCheck); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lambdaMultiValueHeadersEnabled(Boolean lambdaMultiValueHeadersEnabled) { this.lambdaMultiValueHeadersEnabled = Objects.requireNonNull(lambdaMultiValueHeadersEnabled); return this; } + @CustomType.Setter public Builder loadBalancingAlgorithmType(String loadBalancingAlgorithmType) { this.loadBalancingAlgorithmType = Objects.requireNonNull(loadBalancingAlgorithmType); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder preserveClientIp(String preserveClientIp) { this.preserveClientIp = Objects.requireNonNull(preserveClientIp); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder protocolVersion(String protocolVersion) { this.protocolVersion = Objects.requireNonNull(protocolVersion); return this; } + @CustomType.Setter public Builder proxyProtocolV2(Boolean proxyProtocolV2) { this.proxyProtocolV2 = Objects.requireNonNull(proxyProtocolV2); return this; } + @CustomType.Setter public Builder slowStart(Integer slowStart) { this.slowStart = Objects.requireNonNull(slowStart); return this; } + @CustomType.Setter public Builder stickiness(GetTargetGroupStickiness stickiness) { this.stickiness = Objects.requireNonNull(stickiness); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder targetType(String targetType) { this.targetType = Objects.requireNonNull(targetType); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetTargetGroupResult build() { - return new GetTargetGroupResult(arn, arnSuffix, connectionTermination, deregistrationDelay, healthCheck, id, lambdaMultiValueHeadersEnabled, loadBalancingAlgorithmType, name, port, preserveClientIp, protocol, protocolVersion, proxyProtocolV2, slowStart, stickiness, tags, targetType, vpcId); + } + public GetTargetGroupResult build() { + final var o = new GetTargetGroupResult(); + o.arn = arn; + o.arnSuffix = arnSuffix; + o.connectionTermination = connectionTermination; + o.deregistrationDelay = deregistrationDelay; + o.healthCheck = healthCheck; + o.id = id; + o.lambdaMultiValueHeadersEnabled = lambdaMultiValueHeadersEnabled; + o.loadBalancingAlgorithmType = loadBalancingAlgorithmType; + o.name = name; + o.port = port; + o.preserveClientIp = preserveClientIp; + o.protocol = protocol; + o.protocolVersion = protocolVersion; + o.proxyProtocolV2 = proxyProtocolV2; + o.slowStart = slowStart; + o.stickiness = stickiness; + o.tags = tags; + o.targetType = targetType; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetTargetGroupStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetTargetGroupStickiness.java index 96697ce20b0..37f65fa784f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetTargetGroupStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/GetTargetGroupStickiness.java @@ -11,23 +11,12 @@ @CustomType public final class GetTargetGroupStickiness { - private final Integer cookieDuration; - private final String cookieName; - private final Boolean enabled; - private final String type; - - @CustomType.Constructor - private GetTargetGroupStickiness( - @CustomType.Parameter("cookieDuration") Integer cookieDuration, - @CustomType.Parameter("cookieName") String cookieName, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("type") String type) { - this.cookieDuration = cookieDuration; - this.cookieName = cookieName; - this.enabled = enabled; - this.type = type; - } + private Integer cookieDuration; + private String cookieName; + private Boolean enabled; + private String type; + private GetTargetGroupStickiness() {} public Integer cookieDuration() { return this.cookieDuration; } @@ -48,17 +37,13 @@ public static Builder builder() { public static Builder builder(GetTargetGroupStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer cookieDuration; private String cookieName; private Boolean enabled; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTargetGroupStickiness defaults) { Objects.requireNonNull(defaults); this.cookieDuration = defaults.cookieDuration; @@ -67,23 +52,33 @@ public Builder(GetTargetGroupStickiness defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder cookieDuration(Integer cookieDuration) { this.cookieDuration = Objects.requireNonNull(cookieDuration); return this; } + @CustomType.Setter public Builder cookieName(String cookieName) { this.cookieName = Objects.requireNonNull(cookieName); return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetTargetGroupStickiness build() { - return new GetTargetGroupStickiness(cookieDuration, cookieName, enabled, type); + } + public GetTargetGroupStickiness build() { + final var o = new GetTargetGroupStickiness(); + o.cookieDuration = cookieDuration; + o.cookieName = cookieName; + o.enabled = enabled; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultAction.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultAction.java index 16c4168396a..3a4f5761fcb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultAction.java @@ -21,63 +21,44 @@ public final class ListenerDefaultAction { * @return Configuration block for using Amazon Cognito to authenticate users. Specify only when `type` is `authenticate-cognito`. Detailed below. * */ - private final @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito; + private @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito; /** * @return Configuration block for an identity provider that is compliant with OpenID Connect (OIDC). Specify only when `type` is `authenticate-oidc`. Detailed below. * */ - private final @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc; + private @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc; /** * @return Information for creating an action that returns a custom HTTP response. Required if `type` is `fixed-response`. * */ - private final @Nullable ListenerDefaultActionFixedResponse fixedResponse; + private @Nullable ListenerDefaultActionFixedResponse fixedResponse; /** * @return Configuration block for creating an action that distributes requests among one or more target groups. Specify only if `type` is `forward`. If you specify both `forward` block and `target_group_arn` attribute, you can specify only one target group using `forward` and it must be the same target group specified in `target_group_arn`. Detailed below. * */ - private final @Nullable ListenerDefaultActionForward forward; + private @Nullable ListenerDefaultActionForward forward; /** * @return Order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first. Valid values are between `1` and `50000`. * */ - private final @Nullable Integer order; + private @Nullable Integer order; /** * @return Configuration block for creating a redirect action. Required if `type` is `redirect`. Detailed below. * */ - private final @Nullable ListenerDefaultActionRedirect redirect; + private @Nullable ListenerDefaultActionRedirect redirect; /** * @return ARN of the Target Group to which to route traffic. Specify only if `type` is `forward` and you want to route to a single target group. To route to one or more target groups, use a `forward` block instead. * */ - private final @Nullable String targetGroupArn; + private @Nullable String targetGroupArn; /** * @return Type of routing action. Valid values are `forward`, `redirect`, `fixed-response`, `authenticate-cognito` and `authenticate-oidc`. * */ - private final String type; - - @CustomType.Constructor - private ListenerDefaultAction( - @CustomType.Parameter("authenticateCognito") @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito, - @CustomType.Parameter("authenticateOidc") @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc, - @CustomType.Parameter("fixedResponse") @Nullable ListenerDefaultActionFixedResponse fixedResponse, - @CustomType.Parameter("forward") @Nullable ListenerDefaultActionForward forward, - @CustomType.Parameter("order") @Nullable Integer order, - @CustomType.Parameter("redirect") @Nullable ListenerDefaultActionRedirect redirect, - @CustomType.Parameter("targetGroupArn") @Nullable String targetGroupArn, - @CustomType.Parameter("type") String type) { - this.authenticateCognito = authenticateCognito; - this.authenticateOidc = authenticateOidc; - this.fixedResponse = fixedResponse; - this.forward = forward; - this.order = order; - this.redirect = redirect; - this.targetGroupArn = targetGroupArn; - this.type = type; - } + private String type; + private ListenerDefaultAction() {} /** * @return Configuration block for using Amazon Cognito to authenticate users. Specify only when `type` is `authenticate-cognito`. Detailed below. * @@ -142,7 +123,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito; private @Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc; @@ -152,11 +133,7 @@ public static final class Builder { private @Nullable ListenerDefaultActionRedirect redirect; private @Nullable String targetGroupArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultAction defaults) { Objects.requireNonNull(defaults); this.authenticateCognito = defaults.authenticateCognito; @@ -169,39 +146,57 @@ public Builder(ListenerDefaultAction defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder authenticateCognito(@Nullable ListenerDefaultActionAuthenticateCognito authenticateCognito) { this.authenticateCognito = authenticateCognito; return this; } + @CustomType.Setter public Builder authenticateOidc(@Nullable ListenerDefaultActionAuthenticateOidc authenticateOidc) { this.authenticateOidc = authenticateOidc; return this; } + @CustomType.Setter public Builder fixedResponse(@Nullable ListenerDefaultActionFixedResponse fixedResponse) { this.fixedResponse = fixedResponse; return this; } + @CustomType.Setter public Builder forward(@Nullable ListenerDefaultActionForward forward) { this.forward = forward; return this; } + @CustomType.Setter public Builder order(@Nullable Integer order) { this.order = order; return this; } + @CustomType.Setter public Builder redirect(@Nullable ListenerDefaultActionRedirect redirect) { this.redirect = redirect; return this; } + @CustomType.Setter public Builder targetGroupArn(@Nullable String targetGroupArn) { this.targetGroupArn = targetGroupArn; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ListenerDefaultAction build() { - return new ListenerDefaultAction(authenticateCognito, authenticateOidc, fixedResponse, forward, order, redirect, targetGroupArn, type); + } + public ListenerDefaultAction build() { + final var o = new ListenerDefaultAction(); + o.authenticateCognito = authenticateCognito; + o.authenticateOidc = authenticateOidc; + o.fixedResponse = fixedResponse; + o.forward = forward; + o.order = order; + o.redirect = redirect; + o.targetGroupArn = targetGroupArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionAuthenticateCognito.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionAuthenticateCognito.java index 353757276ed..dbbd98af0e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionAuthenticateCognito.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionAuthenticateCognito.java @@ -17,63 +17,44 @@ public final class ListenerDefaultActionAuthenticateCognito { * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return Behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return Set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return Name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return Maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return ARN of the Cognito user pool. * */ - private final String userPoolArn; + private String userPoolArn; /** * @return ID of the Cognito user pool client. * */ - private final String userPoolClientId; + private String userPoolClientId; /** * @return Domain prefix or fully-qualified domain name of the Cognito user pool. * */ - private final String userPoolDomain; - - @CustomType.Constructor - private ListenerDefaultActionAuthenticateCognito( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("userPoolArn") String userPoolArn, - @CustomType.Parameter("userPoolClientId") String userPoolClientId, - @CustomType.Parameter("userPoolDomain") String userPoolDomain) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.userPoolArn = userPoolArn; - this.userPoolClientId = userPoolClientId; - this.userPoolDomain = userPoolDomain; - } + private String userPoolDomain; + private ListenerDefaultActionAuthenticateCognito() {} /** * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -138,7 +119,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionAuthenticateCognito defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private @Nullable String onUnauthenticatedRequest; @@ -148,11 +129,7 @@ public static final class Builder { private String userPoolArn; private String userPoolClientId; private String userPoolDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionAuthenticateCognito defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -165,39 +142,57 @@ public Builder(ListenerDefaultActionAuthenticateCognito defaults) { this.userPoolDomain = defaults.userPoolDomain; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder userPoolArn(String userPoolArn) { this.userPoolArn = Objects.requireNonNull(userPoolArn); return this; } + @CustomType.Setter public Builder userPoolClientId(String userPoolClientId) { this.userPoolClientId = Objects.requireNonNull(userPoolClientId); return this; } + @CustomType.Setter public Builder userPoolDomain(String userPoolDomain) { this.userPoolDomain = Objects.requireNonNull(userPoolDomain); return this; - } public ListenerDefaultActionAuthenticateCognito build() { - return new ListenerDefaultActionAuthenticateCognito(authenticationRequestExtraParams, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, userPoolArn, userPoolClientId, userPoolDomain); + } + public ListenerDefaultActionAuthenticateCognito build() { + final var o = new ListenerDefaultActionAuthenticateCognito(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.userPoolArn = userPoolArn; + o.userPoolClientId = userPoolClientId; + o.userPoolDomain = userPoolDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionAuthenticateOidc.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionAuthenticateOidc.java index ac31fd94de7..cb9bf118307 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionAuthenticateOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionAuthenticateOidc.java @@ -17,84 +17,59 @@ public final class ListenerDefaultActionAuthenticateOidc { * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return Authorization endpoint of the IdP. * */ - private final String authorizationEndpoint; + private String authorizationEndpoint; /** * @return OAuth 2.0 client identifier. * */ - private final String clientId; + private String clientId; /** * @return OAuth 2.0 client secret. * */ - private final String clientSecret; + private String clientSecret; /** * @return OIDC issuer identifier of the IdP. * */ - private final String issuer; + private String issuer; /** * @return Behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return Set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return Name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return Maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return Token endpoint of the IdP. * */ - private final String tokenEndpoint; + private String tokenEndpoint; /** * @return User info endpoint of the IdP. * */ - private final String userInfoEndpoint; - - @CustomType.Constructor - private ListenerDefaultActionAuthenticateOidc( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private String userInfoEndpoint; + private ListenerDefaultActionAuthenticateOidc() {} /** * @return Query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -180,7 +155,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionAuthenticateOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private String authorizationEndpoint; @@ -193,11 +168,7 @@ public static final class Builder { private @Nullable Integer sessionTimeout; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionAuthenticateOidc defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -213,51 +184,75 @@ public Builder(ListenerDefaultActionAuthenticateOidc defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public ListenerDefaultActionAuthenticateOidc build() { - return new ListenerDefaultActionAuthenticateOidc(authenticationRequestExtraParams, authorizationEndpoint, clientId, clientSecret, issuer, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, tokenEndpoint, userInfoEndpoint); + } + public ListenerDefaultActionAuthenticateOidc build() { + final var o = new ListenerDefaultActionAuthenticateOidc(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionFixedResponse.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionFixedResponse.java index 4197540858d..e8f68fceec6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionFixedResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionFixedResponse.java @@ -15,28 +15,19 @@ public final class ListenerDefaultActionFixedResponse { * @return Content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * */ - private final String contentType; + private String contentType; /** * @return Message body. * */ - private final @Nullable String messageBody; + private @Nullable String messageBody; /** * @return HTTP redirect code. The redirect is either permanent (`HTTP_301`) or temporary (`HTTP_302`). * */ - private final @Nullable String statusCode; - - @CustomType.Constructor - private ListenerDefaultActionFixedResponse( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("messageBody") @Nullable String messageBody, - @CustomType.Parameter("statusCode") @Nullable String statusCode) { - this.contentType = contentType; - this.messageBody = messageBody; - this.statusCode = statusCode; - } + private @Nullable String statusCode; + private ListenerDefaultActionFixedResponse() {} /** * @return Content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionFixedResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private @Nullable String messageBody; private @Nullable String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionFixedResponse defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -83,19 +70,27 @@ public Builder(ListenerDefaultActionFixedResponse defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder messageBody(@Nullable String messageBody) { this.messageBody = messageBody; return this; } + @CustomType.Setter public Builder statusCode(@Nullable String statusCode) { this.statusCode = statusCode; return this; - } public ListenerDefaultActionFixedResponse build() { - return new ListenerDefaultActionFixedResponse(contentType, messageBody, statusCode); + } + public ListenerDefaultActionFixedResponse build() { + final var o = new ListenerDefaultActionFixedResponse(); + o.contentType = contentType; + o.messageBody = messageBody; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionForward.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionForward.java index ea328464426..2ceca6f26b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionForward.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionForward.java @@ -17,21 +17,14 @@ public final class ListenerDefaultActionForward { * @return Configuration block for target group stickiness for the rule. Detailed below. * */ - private final @Nullable ListenerDefaultActionForwardStickiness stickiness; + private @Nullable ListenerDefaultActionForwardStickiness stickiness; /** * @return Set of 1-5 target group blocks. Detailed below. * */ - private final List targetGroups; - - @CustomType.Constructor - private ListenerDefaultActionForward( - @CustomType.Parameter("stickiness") @Nullable ListenerDefaultActionForwardStickiness stickiness, - @CustomType.Parameter("targetGroups") List targetGroups) { - this.stickiness = stickiness; - this.targetGroups = targetGroups; - } + private List targetGroups; + private ListenerDefaultActionForward() {} /** * @return Configuration block for target group stickiness for the rule. Detailed below. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionForward defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerDefaultActionForwardStickiness stickiness; private List targetGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionForward defaults) { Objects.requireNonNull(defaults); this.stickiness = defaults.stickiness; this.targetGroups = defaults.targetGroups; } + @CustomType.Setter public Builder stickiness(@Nullable ListenerDefaultActionForwardStickiness stickiness) { this.stickiness = stickiness; return this; } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; } public Builder targetGroups(ListenerDefaultActionForwardTargetGroup... targetGroups) { return targetGroups(List.of(targetGroups)); - } public ListenerDefaultActionForward build() { - return new ListenerDefaultActionForward(stickiness, targetGroups); + } + public ListenerDefaultActionForward build() { + final var o = new ListenerDefaultActionForward(); + o.stickiness = stickiness; + o.targetGroups = targetGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionForwardStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionForwardStickiness.java index ce93012c9df..4f2a340a904 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionForwardStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionForwardStickiness.java @@ -16,21 +16,14 @@ public final class ListenerDefaultActionForwardStickiness { * @return Time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * */ - private final Integer duration; + private Integer duration; /** * @return Whether target group stickiness is enabled. Default is `false`. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private ListenerDefaultActionForwardStickiness( - @CustomType.Parameter("duration") Integer duration, - @CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.duration = duration; - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private ListenerDefaultActionForwardStickiness() {} /** * @return Time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionForwardStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer duration; private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionForwardStickiness defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder duration(Integer duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public ListenerDefaultActionForwardStickiness build() { - return new ListenerDefaultActionForwardStickiness(duration, enabled); + } + public ListenerDefaultActionForwardStickiness build() { + final var o = new ListenerDefaultActionForwardStickiness(); + o.duration = duration; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionForwardTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionForwardTargetGroup.java index 29f350f1833..4a23340bc89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionForwardTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionForwardTargetGroup.java @@ -16,21 +16,14 @@ public final class ListenerDefaultActionForwardTargetGroup { * @return ARN of the target group. * */ - private final String arn; + private String arn; /** * @return Weight. The range is 0 to 999. * */ - private final @Nullable Integer weight; - - @CustomType.Constructor - private ListenerDefaultActionForwardTargetGroup( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("weight") @Nullable Integer weight) { - this.arn = arn; - this.weight = weight; - } + private @Nullable Integer weight; + private ListenerDefaultActionForwardTargetGroup() {} /** * @return ARN of the target group. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionForwardTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionForwardTargetGroup defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.weight = defaults.weight; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder weight(@Nullable Integer weight) { this.weight = weight; return this; - } public ListenerDefaultActionForwardTargetGroup build() { - return new ListenerDefaultActionForwardTargetGroup(arn, weight); + } + public ListenerDefaultActionForwardTargetGroup build() { + final var o = new ListenerDefaultActionForwardTargetGroup(); + o.arn = arn; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionRedirect.java index f39351f48fa..36af05cfcdd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerDefaultActionRedirect.java @@ -15,49 +15,34 @@ public final class ListenerDefaultActionRedirect { * @return Hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * */ - private final @Nullable String host; + private @Nullable String host; /** * @return Absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to `/#{path}`. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return Port. Specify a value from `1` to `65535` or `#{port}`. Defaults to `#{port}`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return Protocol. Valid values are `HTTP`, `HTTPS`, or `#{protocol}`. Defaults to `#{protocol}`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return Query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to `#{query}`. * */ - private final @Nullable String query; + private @Nullable String query; /** * @return HTTP redirect code. The redirect is either permanent (`HTTP_301`) or temporary (`HTTP_302`). * */ - private final String statusCode; - - @CustomType.Constructor - private ListenerDefaultActionRedirect( - @CustomType.Parameter("host") @Nullable String host, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("query") @Nullable String query, - @CustomType.Parameter("statusCode") String statusCode) { - this.host = host; - this.path = path; - this.port = port; - this.protocol = protocol; - this.query = query; - this.statusCode = statusCode; - } + private String statusCode; + private ListenerDefaultActionRedirect() {} /** * @return Hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(ListenerDefaultActionRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String host; private @Nullable String path; @@ -116,11 +101,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable String query; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerDefaultActionRedirect defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -131,31 +112,45 @@ public Builder(ListenerDefaultActionRedirect defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder host(@Nullable String host) { this.host = host; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder query(@Nullable String query) { this.query = query; return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public ListenerDefaultActionRedirect build() { - return new ListenerDefaultActionRedirect(host, path, port, protocol, query, statusCode); + } + public ListenerDefaultActionRedirect build() { + final var o = new ListenerDefaultActionRedirect(); + o.host = host; + o.path = path; + o.port = port; + o.protocol = protocol; + o.query = query; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleAction.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleAction.java index 44b86a3a2c2..f7f89cb497d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleAction.java @@ -21,59 +21,40 @@ public final class ListenerRuleAction { * @return Information for creating an authenticate action using Cognito. Required if `type` is `authenticate-cognito`. * */ - private final @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito; + private @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito; /** * @return Information for creating an authenticate action using OIDC. Required if `type` is `authenticate-oidc`. * */ - private final @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc; + private @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc; /** * @return Information for creating an action that returns a custom HTTP response. Required if `type` is `fixed-response`. * */ - private final @Nullable ListenerRuleActionFixedResponse fixedResponse; + private @Nullable ListenerRuleActionFixedResponse fixedResponse; /** * @return Information for creating an action that distributes requests among one or more target groups. Specify only if `type` is `forward`. If you specify both `forward` block and `target_group_arn` attribute, you can specify only one target group using `forward` and it must be the same target group specified in `target_group_arn`. * */ - private final @Nullable ListenerRuleActionForward forward; - private final @Nullable Integer order; + private @Nullable ListenerRuleActionForward forward; + private @Nullable Integer order; /** * @return Information for creating a redirect action. Required if `type` is `redirect`. * */ - private final @Nullable ListenerRuleActionRedirect redirect; + private @Nullable ListenerRuleActionRedirect redirect; /** * @return The ARN of the Target Group to which to route traffic. Specify only if `type` is `forward` and you want to route to a single target group. To route to one or more target groups, use a `forward` block instead. * */ - private final @Nullable String targetGroupArn; + private @Nullable String targetGroupArn; /** * @return The type of routing action. Valid values are `forward`, `redirect`, `fixed-response`, `authenticate-cognito` and `authenticate-oidc`. * */ - private final String type; - - @CustomType.Constructor - private ListenerRuleAction( - @CustomType.Parameter("authenticateCognito") @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito, - @CustomType.Parameter("authenticateOidc") @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc, - @CustomType.Parameter("fixedResponse") @Nullable ListenerRuleActionFixedResponse fixedResponse, - @CustomType.Parameter("forward") @Nullable ListenerRuleActionForward forward, - @CustomType.Parameter("order") @Nullable Integer order, - @CustomType.Parameter("redirect") @Nullable ListenerRuleActionRedirect redirect, - @CustomType.Parameter("targetGroupArn") @Nullable String targetGroupArn, - @CustomType.Parameter("type") String type) { - this.authenticateCognito = authenticateCognito; - this.authenticateOidc = authenticateOidc; - this.fixedResponse = fixedResponse; - this.forward = forward; - this.order = order; - this.redirect = redirect; - this.targetGroupArn = targetGroupArn; - this.type = type; - } + private String type; + private ListenerRuleAction() {} /** * @return Information for creating an authenticate action using Cognito. Required if `type` is `authenticate-cognito`. * @@ -134,7 +115,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerRuleActionAuthenticateCognito authenticateCognito; private @Nullable ListenerRuleActionAuthenticateOidc authenticateOidc; @@ -144,11 +125,7 @@ public static final class Builder { private @Nullable ListenerRuleActionRedirect redirect; private @Nullable String targetGroupArn; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleAction defaults) { Objects.requireNonNull(defaults); this.authenticateCognito = defaults.authenticateCognito; @@ -161,39 +138,57 @@ public Builder(ListenerRuleAction defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder authenticateCognito(@Nullable ListenerRuleActionAuthenticateCognito authenticateCognito) { this.authenticateCognito = authenticateCognito; return this; } + @CustomType.Setter public Builder authenticateOidc(@Nullable ListenerRuleActionAuthenticateOidc authenticateOidc) { this.authenticateOidc = authenticateOidc; return this; } + @CustomType.Setter public Builder fixedResponse(@Nullable ListenerRuleActionFixedResponse fixedResponse) { this.fixedResponse = fixedResponse; return this; } + @CustomType.Setter public Builder forward(@Nullable ListenerRuleActionForward forward) { this.forward = forward; return this; } + @CustomType.Setter public Builder order(@Nullable Integer order) { this.order = order; return this; } + @CustomType.Setter public Builder redirect(@Nullable ListenerRuleActionRedirect redirect) { this.redirect = redirect; return this; } + @CustomType.Setter public Builder targetGroupArn(@Nullable String targetGroupArn) { this.targetGroupArn = targetGroupArn; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ListenerRuleAction build() { - return new ListenerRuleAction(authenticateCognito, authenticateOidc, fixedResponse, forward, order, redirect, targetGroupArn, type); + } + public ListenerRuleAction build() { + final var o = new ListenerRuleAction(); + o.authenticateCognito = authenticateCognito; + o.authenticateOidc = authenticateOidc; + o.fixedResponse = fixedResponse; + o.forward = forward; + o.order = order; + o.redirect = redirect; + o.targetGroupArn = targetGroupArn; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionAuthenticateCognito.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionAuthenticateCognito.java index d8e571b1ef0..19d08312c49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionAuthenticateCognito.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionAuthenticateCognito.java @@ -17,63 +17,44 @@ public final class ListenerRuleActionAuthenticateCognito { * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return The behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return The set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return The name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return The maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return The ARN of the Cognito user pool. * */ - private final String userPoolArn; + private String userPoolArn; /** * @return The ID of the Cognito user pool client. * */ - private final String userPoolClientId; + private String userPoolClientId; /** * @return The domain prefix or fully-qualified domain name of the Cognito user pool. * */ - private final String userPoolDomain; - - @CustomType.Constructor - private ListenerRuleActionAuthenticateCognito( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("userPoolArn") String userPoolArn, - @CustomType.Parameter("userPoolClientId") String userPoolClientId, - @CustomType.Parameter("userPoolDomain") String userPoolDomain) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.userPoolArn = userPoolArn; - this.userPoolClientId = userPoolClientId; - this.userPoolDomain = userPoolDomain; - } + private String userPoolDomain; + private ListenerRuleActionAuthenticateCognito() {} /** * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -138,7 +119,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionAuthenticateCognito defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private @Nullable String onUnauthenticatedRequest; @@ -148,11 +129,7 @@ public static final class Builder { private String userPoolArn; private String userPoolClientId; private String userPoolDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionAuthenticateCognito defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -165,39 +142,57 @@ public Builder(ListenerRuleActionAuthenticateCognito defaults) { this.userPoolDomain = defaults.userPoolDomain; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder userPoolArn(String userPoolArn) { this.userPoolArn = Objects.requireNonNull(userPoolArn); return this; } + @CustomType.Setter public Builder userPoolClientId(String userPoolClientId) { this.userPoolClientId = Objects.requireNonNull(userPoolClientId); return this; } + @CustomType.Setter public Builder userPoolDomain(String userPoolDomain) { this.userPoolDomain = Objects.requireNonNull(userPoolDomain); return this; - } public ListenerRuleActionAuthenticateCognito build() { - return new ListenerRuleActionAuthenticateCognito(authenticationRequestExtraParams, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, userPoolArn, userPoolClientId, userPoolDomain); + } + public ListenerRuleActionAuthenticateCognito build() { + final var o = new ListenerRuleActionAuthenticateCognito(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.userPoolArn = userPoolArn; + o.userPoolClientId = userPoolClientId; + o.userPoolDomain = userPoolDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionAuthenticateOidc.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionAuthenticateOidc.java index 4a9e592fb60..c67d6de8441 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionAuthenticateOidc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionAuthenticateOidc.java @@ -17,84 +17,59 @@ public final class ListenerRuleActionAuthenticateOidc { * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * */ - private final @Nullable Map authenticationRequestExtraParams; + private @Nullable Map authenticationRequestExtraParams; /** * @return The authorization endpoint of the IdP. * */ - private final String authorizationEndpoint; + private String authorizationEndpoint; /** * @return The OAuth 2.0 client identifier. * */ - private final String clientId; + private String clientId; /** * @return The OAuth 2.0 client secret. * */ - private final String clientSecret; + private String clientSecret; /** * @return The OIDC issuer identifier of the IdP. * */ - private final String issuer; + private String issuer; /** * @return The behavior if the user is not authenticated. Valid values: `deny`, `allow` and `authenticate` * */ - private final @Nullable String onUnauthenticatedRequest; + private @Nullable String onUnauthenticatedRequest; /** * @return The set of user claims to be requested from the IdP. * */ - private final @Nullable String scope; + private @Nullable String scope; /** * @return The name of the cookie used to maintain session information. * */ - private final @Nullable String sessionCookieName; + private @Nullable String sessionCookieName; /** * @return The maximum duration of the authentication session, in seconds. * */ - private final @Nullable Integer sessionTimeout; + private @Nullable Integer sessionTimeout; /** * @return The token endpoint of the IdP. * */ - private final String tokenEndpoint; + private String tokenEndpoint; /** * @return The user info endpoint of the IdP. * */ - private final String userInfoEndpoint; - - @CustomType.Constructor - private ListenerRuleActionAuthenticateOidc( - @CustomType.Parameter("authenticationRequestExtraParams") @Nullable Map authenticationRequestExtraParams, - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("onUnauthenticatedRequest") @Nullable String onUnauthenticatedRequest, - @CustomType.Parameter("scope") @Nullable String scope, - @CustomType.Parameter("sessionCookieName") @Nullable String sessionCookieName, - @CustomType.Parameter("sessionTimeout") @Nullable Integer sessionTimeout, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authenticationRequestExtraParams = authenticationRequestExtraParams; - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.onUnauthenticatedRequest = onUnauthenticatedRequest; - this.scope = scope; - this.sessionCookieName = sessionCookieName; - this.sessionTimeout = sessionTimeout; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private String userInfoEndpoint; + private ListenerRuleActionAuthenticateOidc() {} /** * @return The query parameters to include in the redirect request to the authorization endpoint. Max: 10. * @@ -180,7 +155,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionAuthenticateOidc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Map authenticationRequestExtraParams; private String authorizationEndpoint; @@ -193,11 +168,7 @@ public static final class Builder { private @Nullable Integer sessionTimeout; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionAuthenticateOidc defaults) { Objects.requireNonNull(defaults); this.authenticationRequestExtraParams = defaults.authenticationRequestExtraParams; @@ -213,51 +184,75 @@ public Builder(ListenerRuleActionAuthenticateOidc defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authenticationRequestExtraParams(@Nullable Map authenticationRequestExtraParams) { this.authenticationRequestExtraParams = authenticationRequestExtraParams; return this; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder onUnauthenticatedRequest(@Nullable String onUnauthenticatedRequest) { this.onUnauthenticatedRequest = onUnauthenticatedRequest; return this; } + @CustomType.Setter public Builder scope(@Nullable String scope) { this.scope = scope; return this; } + @CustomType.Setter public Builder sessionCookieName(@Nullable String sessionCookieName) { this.sessionCookieName = sessionCookieName; return this; } + @CustomType.Setter public Builder sessionTimeout(@Nullable Integer sessionTimeout) { this.sessionTimeout = sessionTimeout; return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public ListenerRuleActionAuthenticateOidc build() { - return new ListenerRuleActionAuthenticateOidc(authenticationRequestExtraParams, authorizationEndpoint, clientId, clientSecret, issuer, onUnauthenticatedRequest, scope, sessionCookieName, sessionTimeout, tokenEndpoint, userInfoEndpoint); + } + public ListenerRuleActionAuthenticateOidc build() { + final var o = new ListenerRuleActionAuthenticateOidc(); + o.authenticationRequestExtraParams = authenticationRequestExtraParams; + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.onUnauthenticatedRequest = onUnauthenticatedRequest; + o.scope = scope; + o.sessionCookieName = sessionCookieName; + o.sessionTimeout = sessionTimeout; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionFixedResponse.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionFixedResponse.java index e0052410112..f6de94bc492 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionFixedResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionFixedResponse.java @@ -15,28 +15,19 @@ public final class ListenerRuleActionFixedResponse { * @return The content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * */ - private final String contentType; + private String contentType; /** * @return The message body. * */ - private final @Nullable String messageBody; + private @Nullable String messageBody; /** * @return The HTTP response code. Valid values are `2XX`, `4XX`, or `5XX`. * */ - private final @Nullable String statusCode; - - @CustomType.Constructor - private ListenerRuleActionFixedResponse( - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("messageBody") @Nullable String messageBody, - @CustomType.Parameter("statusCode") @Nullable String statusCode) { - this.contentType = contentType; - this.messageBody = messageBody; - this.statusCode = statusCode; - } + private @Nullable String statusCode; + private ListenerRuleActionFixedResponse() {} /** * @return The content type. Valid values are `text/plain`, `text/css`, `text/html`, `application/javascript` and `application/json`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionFixedResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String contentType; private @Nullable String messageBody; private @Nullable String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionFixedResponse defaults) { Objects.requireNonNull(defaults); this.contentType = defaults.contentType; @@ -83,19 +70,27 @@ public Builder(ListenerRuleActionFixedResponse defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder messageBody(@Nullable String messageBody) { this.messageBody = messageBody; return this; } + @CustomType.Setter public Builder statusCode(@Nullable String statusCode) { this.statusCode = statusCode; return this; - } public ListenerRuleActionFixedResponse build() { - return new ListenerRuleActionFixedResponse(contentType, messageBody, statusCode); + } + public ListenerRuleActionFixedResponse build() { + final var o = new ListenerRuleActionFixedResponse(); + o.contentType = contentType; + o.messageBody = messageBody; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionForward.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionForward.java index 0601167c8ad..b6838d60a80 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionForward.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionForward.java @@ -17,21 +17,14 @@ public final class ListenerRuleActionForward { * @return The target group stickiness for the rule. * */ - private final @Nullable ListenerRuleActionForwardStickiness stickiness; + private @Nullable ListenerRuleActionForwardStickiness stickiness; /** * @return One or more target groups block. * */ - private final List targetGroups; - - @CustomType.Constructor - private ListenerRuleActionForward( - @CustomType.Parameter("stickiness") @Nullable ListenerRuleActionForwardStickiness stickiness, - @CustomType.Parameter("targetGroups") List targetGroups) { - this.stickiness = stickiness; - this.targetGroups = targetGroups; - } + private List targetGroups; + private ListenerRuleActionForward() {} /** * @return The target group stickiness for the rule. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionForward defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerRuleActionForwardStickiness stickiness; private List targetGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionForward defaults) { Objects.requireNonNull(defaults); this.stickiness = defaults.stickiness; this.targetGroups = defaults.targetGroups; } + @CustomType.Setter public Builder stickiness(@Nullable ListenerRuleActionForwardStickiness stickiness) { this.stickiness = stickiness; return this; } + @CustomType.Setter public Builder targetGroups(List targetGroups) { this.targetGroups = Objects.requireNonNull(targetGroups); return this; } public Builder targetGroups(ListenerRuleActionForwardTargetGroup... targetGroups) { return targetGroups(List.of(targetGroups)); - } public ListenerRuleActionForward build() { - return new ListenerRuleActionForward(stickiness, targetGroups); + } + public ListenerRuleActionForward build() { + final var o = new ListenerRuleActionForward(); + o.stickiness = stickiness; + o.targetGroups = targetGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionForwardStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionForwardStickiness.java index 04802c6ed8c..a976912d535 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionForwardStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionForwardStickiness.java @@ -16,21 +16,14 @@ public final class ListenerRuleActionForwardStickiness { * @return The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * */ - private final Integer duration; + private Integer duration; /** * @return Indicates whether target group stickiness is enabled. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private ListenerRuleActionForwardStickiness( - @CustomType.Parameter("duration") Integer duration, - @CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.duration = duration; - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private ListenerRuleActionForwardStickiness() {} /** * @return The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionForwardStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer duration; private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionForwardStickiness defaults) { Objects.requireNonNull(defaults); this.duration = defaults.duration; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder duration(Integer duration) { this.duration = Objects.requireNonNull(duration); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public ListenerRuleActionForwardStickiness build() { - return new ListenerRuleActionForwardStickiness(duration, enabled); + } + public ListenerRuleActionForwardStickiness build() { + final var o = new ListenerRuleActionForwardStickiness(); + o.duration = duration; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionForwardTargetGroup.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionForwardTargetGroup.java index 91616952e24..853be891c92 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionForwardTargetGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionForwardTargetGroup.java @@ -16,21 +16,14 @@ public final class ListenerRuleActionForwardTargetGroup { * @return The Amazon Resource Name (ARN) of the target group. * */ - private final String arn; + private String arn; /** * @return The weight. The range is 0 to 999. * */ - private final @Nullable Integer weight; - - @CustomType.Constructor - private ListenerRuleActionForwardTargetGroup( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("weight") @Nullable Integer weight) { - this.arn = arn; - this.weight = weight; - } + private @Nullable Integer weight; + private ListenerRuleActionForwardTargetGroup() {} /** * @return The Amazon Resource Name (ARN) of the target group. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionForwardTargetGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionForwardTargetGroup defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.weight = defaults.weight; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder weight(@Nullable Integer weight) { this.weight = weight; return this; - } public ListenerRuleActionForwardTargetGroup build() { - return new ListenerRuleActionForwardTargetGroup(arn, weight); + } + public ListenerRuleActionForwardTargetGroup build() { + final var o = new ListenerRuleActionForwardTargetGroup(); + o.arn = arn; + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionRedirect.java index fe76e7a9de6..ff2d2e04bf5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleActionRedirect.java @@ -15,49 +15,34 @@ public final class ListenerRuleActionRedirect { * @return The hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * */ - private final @Nullable String host; + private @Nullable String host; /** * @return The absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}. Defaults to `/#{path}`. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return The port. Specify a value from `1` to `65535` or `#{port}`. Defaults to `#{port}`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return The protocol. Valid values are `HTTP`, `HTTPS`, or `#{protocol}`. Defaults to `#{protocol}`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?". Defaults to `#{query}`. * */ - private final @Nullable String query; + private @Nullable String query; /** * @return The HTTP redirect code. The redirect is either permanent (`HTTP_301`) or temporary (`HTTP_302`). * */ - private final String statusCode; - - @CustomType.Constructor - private ListenerRuleActionRedirect( - @CustomType.Parameter("host") @Nullable String host, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("query") @Nullable String query, - @CustomType.Parameter("statusCode") String statusCode) { - this.host = host; - this.path = path; - this.port = port; - this.protocol = protocol; - this.query = query; - this.statusCode = statusCode; - } + private String statusCode; + private ListenerRuleActionRedirect() {} /** * @return The hostname. This component is not percent-encoded. The hostname can contain `#{host}`. Defaults to `#{host}`. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleActionRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String host; private @Nullable String path; @@ -116,11 +101,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable String query; private String statusCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleActionRedirect defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; @@ -131,31 +112,45 @@ public Builder(ListenerRuleActionRedirect defaults) { this.statusCode = defaults.statusCode; } + @CustomType.Setter public Builder host(@Nullable String host) { this.host = host; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder query(@Nullable String query) { this.query = query; return this; } + @CustomType.Setter public Builder statusCode(String statusCode) { this.statusCode = Objects.requireNonNull(statusCode); return this; - } public ListenerRuleActionRedirect build() { - return new ListenerRuleActionRedirect(host, path, port, protocol, query, statusCode); + } + public ListenerRuleActionRedirect build() { + final var o = new ListenerRuleActionRedirect(); + o.host = host; + o.path = path; + o.port = port; + o.protocol = protocol; + o.query = query; + o.statusCode = statusCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleCondition.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleCondition.java index 3bc960a583c..29fbd926d56 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleCondition.java @@ -21,49 +21,34 @@ public final class ListenerRuleCondition { * @return Contains a single `values` item which is a list of host header patterns to match. The maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. * */ - private final @Nullable ListenerRuleConditionHostHeader hostHeader; + private @Nullable ListenerRuleConditionHostHeader hostHeader; /** * @return HTTP headers to match. HTTP Header block fields documented below. * */ - private final @Nullable ListenerRuleConditionHttpHeader httpHeader; + private @Nullable ListenerRuleConditionHttpHeader httpHeader; /** * @return Contains a single `values` item which is a list of HTTP request methods or verbs to match. Maximum size is 40 characters. Only allowed characters are A-Z, hyphen (-) and underscore (\_). Comparison is case sensitive. Wildcards are not supported. Only one needs to match for the condition to be satisfied. AWS recommends that GET and HEAD requests are routed in the same way because the response to a HEAD request may be cached. * */ - private final @Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod; + private @Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod; /** * @return Contains a single `values` item which is a list of path patterns to match against the request URL. Maximum size of each pattern is 128 characters. Comparison is case sensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. Path pattern is compared only to the path of the URL, not to its query string. To compare against the query string, use a `query_string` condition. * */ - private final @Nullable ListenerRuleConditionPathPattern pathPattern; + private @Nullable ListenerRuleConditionPathPattern pathPattern; /** * @return Query strings to match. Query String block fields documented below. * */ - private final @Nullable List queryStrings; + private @Nullable List queryStrings; /** * @return Contains a single `values` item which is a list of source IP CIDR notations to match. You can use both IPv4 and IPv6 addresses. Wildcards are not supported. Condition is satisfied if the source IP address of the request matches one of the CIDR blocks. Condition is not satisfied by the addresses in the `X-Forwarded-For` header, use `http_header` condition instead. * */ - private final @Nullable ListenerRuleConditionSourceIp sourceIp; - - @CustomType.Constructor - private ListenerRuleCondition( - @CustomType.Parameter("hostHeader") @Nullable ListenerRuleConditionHostHeader hostHeader, - @CustomType.Parameter("httpHeader") @Nullable ListenerRuleConditionHttpHeader httpHeader, - @CustomType.Parameter("httpRequestMethod") @Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod, - @CustomType.Parameter("pathPattern") @Nullable ListenerRuleConditionPathPattern pathPattern, - @CustomType.Parameter("queryStrings") @Nullable List queryStrings, - @CustomType.Parameter("sourceIp") @Nullable ListenerRuleConditionSourceIp sourceIp) { - this.hostHeader = hostHeader; - this.httpHeader = httpHeader; - this.httpRequestMethod = httpRequestMethod; - this.pathPattern = pathPattern; - this.queryStrings = queryStrings; - this.sourceIp = sourceIp; - } + private @Nullable ListenerRuleConditionSourceIp sourceIp; + private ListenerRuleCondition() {} /** * @return Contains a single `values` item which is a list of host header patterns to match. The maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). Only one pattern needs to match for the condition to be satisfied. * @@ -114,7 +99,7 @@ public static Builder builder() { public static Builder builder(ListenerRuleCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ListenerRuleConditionHostHeader hostHeader; private @Nullable ListenerRuleConditionHttpHeader httpHeader; @@ -122,11 +107,7 @@ public static final class Builder { private @Nullable ListenerRuleConditionPathPattern pathPattern; private @Nullable List queryStrings; private @Nullable ListenerRuleConditionSourceIp sourceIp; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleCondition defaults) { Objects.requireNonNull(defaults); this.hostHeader = defaults.hostHeader; @@ -137,22 +118,27 @@ public Builder(ListenerRuleCondition defaults) { this.sourceIp = defaults.sourceIp; } + @CustomType.Setter public Builder hostHeader(@Nullable ListenerRuleConditionHostHeader hostHeader) { this.hostHeader = hostHeader; return this; } + @CustomType.Setter public Builder httpHeader(@Nullable ListenerRuleConditionHttpHeader httpHeader) { this.httpHeader = httpHeader; return this; } + @CustomType.Setter public Builder httpRequestMethod(@Nullable ListenerRuleConditionHttpRequestMethod httpRequestMethod) { this.httpRequestMethod = httpRequestMethod; return this; } + @CustomType.Setter public Builder pathPattern(@Nullable ListenerRuleConditionPathPattern pathPattern) { this.pathPattern = pathPattern; return this; } + @CustomType.Setter public Builder queryStrings(@Nullable List queryStrings) { this.queryStrings = queryStrings; return this; @@ -160,11 +146,20 @@ public Builder queryStrings(@Nullable List que public Builder queryStrings(ListenerRuleConditionQueryString... queryStrings) { return queryStrings(List.of(queryStrings)); } + @CustomType.Setter public Builder sourceIp(@Nullable ListenerRuleConditionSourceIp sourceIp) { this.sourceIp = sourceIp; return this; - } public ListenerRuleCondition build() { - return new ListenerRuleCondition(hostHeader, httpHeader, httpRequestMethod, pathPattern, queryStrings, sourceIp); + } + public ListenerRuleCondition build() { + final var o = new ListenerRuleCondition(); + o.hostHeader = hostHeader; + o.httpHeader = httpHeader; + o.httpRequestMethod = httpRequestMethod; + o.pathPattern = pathPattern; + o.queryStrings = queryStrings; + o.sourceIp = sourceIp; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionHostHeader.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionHostHeader.java index fc306cfe832..62ab413fe09 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionHostHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionHostHeader.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionHostHeader { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionHostHeader(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionHostHeader() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionHostHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionHostHeader defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionHostHeader build() { - return new ListenerRuleConditionHostHeader(values); + } + public ListenerRuleConditionHostHeader build() { + final var o = new ListenerRuleConditionHostHeader(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionHttpHeader.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionHttpHeader.java index 937208dc9dc..c38e1162efc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionHttpHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionHttpHeader.java @@ -14,21 +14,14 @@ public final class ListenerRuleConditionHttpHeader { * @return Name of HTTP header to search. The maximum size is 40 characters. Comparison is case insensitive. Only RFC7240 characters are supported. Wildcards are not supported. You cannot use HTTP header condition to specify the host header, use a `host-header` condition instead. * */ - private final String httpHeaderName; + private String httpHeaderName; /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionHttpHeader( - @CustomType.Parameter("httpHeaderName") String httpHeaderName, - @CustomType.Parameter("values") List values) { - this.httpHeaderName = httpHeaderName; - this.values = values; - } + private List values; + private ListenerRuleConditionHttpHeader() {} /** * @return Name of HTTP header to search. The maximum size is 40 characters. Comparison is case insensitive. Only RFC7240 characters are supported. Wildcards are not supported. You cannot use HTTP header condition to specify the host header, use a `host-header` condition instead. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionHttpHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String httpHeaderName; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionHttpHeader defaults) { Objects.requireNonNull(defaults); this.httpHeaderName = defaults.httpHeaderName; this.values = defaults.values; } + @CustomType.Setter public Builder httpHeaderName(String httpHeaderName) { this.httpHeaderName = Objects.requireNonNull(httpHeaderName); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionHttpHeader build() { - return new ListenerRuleConditionHttpHeader(httpHeaderName, values); + } + public ListenerRuleConditionHttpHeader build() { + final var o = new ListenerRuleConditionHttpHeader(); + o.httpHeaderName = httpHeaderName; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionHttpRequestMethod.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionHttpRequestMethod.java index 1a551ca1d6d..5341f2b1cc0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionHttpRequestMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionHttpRequestMethod.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionHttpRequestMethod { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionHttpRequestMethod(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionHttpRequestMethod() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionHttpRequestMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionHttpRequestMethod defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionHttpRequestMethod build() { - return new ListenerRuleConditionHttpRequestMethod(values); + } + public ListenerRuleConditionHttpRequestMethod build() { + final var o = new ListenerRuleConditionHttpRequestMethod(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionPathPattern.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionPathPattern.java index 6c261760727..b7891e4ff26 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionPathPattern.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionPathPattern.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionPathPattern { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionPathPattern(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionPathPattern() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionPathPattern defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionPathPattern defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionPathPattern build() { - return new ListenerRuleConditionPathPattern(values); + } + public ListenerRuleConditionPathPattern build() { + final var o = new ListenerRuleConditionPathPattern(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionQueryString.java index 9a3d9804437..9f42343d1e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionQueryString.java @@ -15,21 +15,14 @@ public final class ListenerRuleConditionQueryString { * @return Query string key pattern to match. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Query string value pattern to match. * */ - private final String value; - - @CustomType.Constructor - private ListenerRuleConditionQueryString( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private ListenerRuleConditionQueryString() {} /** * @return Query string key pattern to match. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionQueryString defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ListenerRuleConditionQueryString build() { - return new ListenerRuleConditionQueryString(key, value); + } + public ListenerRuleConditionQueryString build() { + final var o = new ListenerRuleConditionQueryString(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionSourceIp.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionSourceIp.java index 2b876fe9887..52a18dfb1a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionSourceIp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/ListenerRuleConditionSourceIp.java @@ -14,13 +14,9 @@ public final class ListenerRuleConditionSourceIp { * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * */ - private final List values; - - @CustomType.Constructor - private ListenerRuleConditionSourceIp(@CustomType.Parameter("values") List values) { - this.values = values; - } + private List values; + private ListenerRuleConditionSourceIp() {} /** * @return List of header value patterns to match. Maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * (matches 0 or more characters) and ? (matches exactly 1 character). If the same header appears multiple times in the request they will be searched in order until a match is found. Only one pattern needs to match for the condition to be satisfied. To require that all of the strings are a match, create one condition block per string. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(ListenerRuleConditionSourceIp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ListenerRuleConditionSourceIp defaults) { Objects.requireNonNull(defaults); this.values = defaults.values; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public ListenerRuleConditionSourceIp build() { - return new ListenerRuleConditionSourceIp(values); + } + public ListenerRuleConditionSourceIp build() { + final var o = new ListenerRuleConditionSourceIp(); + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/LoadBalancerAccessLogs.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/LoadBalancerAccessLogs.java index 608784b3b18..0ef8335c95f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/LoadBalancerAccessLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/LoadBalancerAccessLogs.java @@ -16,28 +16,19 @@ public final class LoadBalancerAccessLogs { * @return The S3 bucket name to store the logs in. * */ - private final String bucket; + private String bucket; /** * @return Boolean to enable / disable `access_logs`. Defaults to `false`, even when `bucket` is specified. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The S3 bucket prefix. Logs are stored in the root if not configured. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private LoadBalancerAccessLogs( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.bucket = bucket; - this.enabled = enabled; - this.prefix = prefix; - } + private @Nullable String prefix; + private LoadBalancerAccessLogs() {} /** * @return The S3 bucket name to store the logs in. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(LoadBalancerAccessLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private @Nullable Boolean enabled; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerAccessLogs defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -84,19 +71,27 @@ public Builder(LoadBalancerAccessLogs defaults) { this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public LoadBalancerAccessLogs build() { - return new LoadBalancerAccessLogs(bucket, enabled, prefix); + } + public LoadBalancerAccessLogs build() { + final var o = new LoadBalancerAccessLogs(); + o.bucket = bucket; + o.enabled = enabled; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/LoadBalancerSubnetMapping.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/LoadBalancerSubnetMapping.java index 53593e046fb..60f42e1d232 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/LoadBalancerSubnetMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/LoadBalancerSubnetMapping.java @@ -15,38 +15,25 @@ public final class LoadBalancerSubnetMapping { * @return The allocation ID of the Elastic IP address. * */ - private final @Nullable String allocationId; + private @Nullable String allocationId; /** * @return An ipv6 address within the subnet to assign to the internet-facing load balancer. * */ - private final @Nullable String ipv6Address; - private final @Nullable String outpostId; + private @Nullable String ipv6Address; + private @Nullable String outpostId; /** * @return A private ipv4 address within the subnet to assign to the internal-facing load balancer. * */ - private final @Nullable String privateIpv4Address; + private @Nullable String privateIpv4Address; /** * @return The id of the subnet of which to attach to the load balancer. You can specify only one subnet per Availability Zone. * */ - private final String subnetId; - - @CustomType.Constructor - private LoadBalancerSubnetMapping( - @CustomType.Parameter("allocationId") @Nullable String allocationId, - @CustomType.Parameter("ipv6Address") @Nullable String ipv6Address, - @CustomType.Parameter("outpostId") @Nullable String outpostId, - @CustomType.Parameter("privateIpv4Address") @Nullable String privateIpv4Address, - @CustomType.Parameter("subnetId") String subnetId) { - this.allocationId = allocationId; - this.ipv6Address = ipv6Address; - this.outpostId = outpostId; - this.privateIpv4Address = privateIpv4Address; - this.subnetId = subnetId; - } + private String subnetId; + private LoadBalancerSubnetMapping() {} /** * @return The allocation ID of the Elastic IP address. * @@ -86,18 +73,14 @@ public static Builder builder() { public static Builder builder(LoadBalancerSubnetMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String allocationId; private @Nullable String ipv6Address; private @Nullable String outpostId; private @Nullable String privateIpv4Address; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoadBalancerSubnetMapping defaults) { Objects.requireNonNull(defaults); this.allocationId = defaults.allocationId; @@ -107,27 +90,39 @@ public Builder(LoadBalancerSubnetMapping defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder allocationId(@Nullable String allocationId) { this.allocationId = allocationId; return this; } + @CustomType.Setter public Builder ipv6Address(@Nullable String ipv6Address) { this.ipv6Address = ipv6Address; return this; } + @CustomType.Setter public Builder outpostId(@Nullable String outpostId) { this.outpostId = outpostId; return this; } + @CustomType.Setter public Builder privateIpv4Address(@Nullable String privateIpv4Address) { this.privateIpv4Address = privateIpv4Address; return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public LoadBalancerSubnetMapping build() { - return new LoadBalancerSubnetMapping(allocationId, ipv6Address, outpostId, privateIpv4Address, subnetId); + } + public LoadBalancerSubnetMapping build() { + final var o = new LoadBalancerSubnetMapping(); + o.allocationId = allocationId; + o.ipv6Address = ipv6Address; + o.outpostId = outpostId; + o.privateIpv4Address = privateIpv4Address; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/TargetGroupHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/TargetGroupHealthCheck.java index c71b2904257..332b71f56bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/TargetGroupHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/TargetGroupHealthCheck.java @@ -17,70 +17,49 @@ public final class TargetGroupHealthCheck { * @return Boolean to enable / disable `stickiness`. Default is `true`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Number of consecutive health checks successes required before considering an unhealthy target healthy. Defaults to 3. * */ - private final @Nullable Integer healthyThreshold; + private @Nullable Integer healthyThreshold; /** * @return Approximate amount of time, in seconds, between health checks of an individual target. Minimum value 5 seconds, Maximum value 300 seconds. For `lambda` target groups, it needs to be greater as the `timeout` of the underlying `lambda`. Default 30 seconds. * */ - private final @Nullable Integer interval; + private @Nullable Integer interval; /** * @return Response codes to use when checking for a healthy responses from a target. You can specify multiple values (for example, "200,202" for HTTP(s) or "0,12" for GRPC) or a range of values (for example, "200-299" or "0-99"). Required for HTTP/HTTPS/GRPC ALB. Only applies to Application Load Balancers (i.e., HTTP/HTTPS/GRPC) not Network Load Balancers (i.e., TCP). * */ - private final @Nullable String matcher; + private @Nullable String matcher; /** * @return Destination for the health check request. Required for HTTP/HTTPS ALB and HTTP NLB. Only applies to HTTP/HTTPS. * */ - private final @Nullable String path; + private @Nullable String path; /** * @return Port to use to connect with the target. Valid values are either ports 1-65535, or `traffic-port`. Defaults to `traffic-port`. * */ - private final @Nullable String port; + private @Nullable String port; /** * @return Protocol to use to connect with the target. Defaults to `HTTP`. Not applicable when `target_type` is `lambda`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return Amount of time, in seconds, during which no response means a failed health check. For Application Load Balancers, the range is 2 to 120 seconds, and the default is 5 seconds for the `instance` target type and 30 seconds for the `lambda` target type. For Network Load Balancers, you cannot set a custom value, and the default is 10 seconds for TCP and HTTPS health checks and 5 seconds for HTTP health checks. * */ - private final @Nullable Integer timeout; + private @Nullable Integer timeout; /** * @return Number of consecutive health check failures required before considering the target unhealthy. For Network Load Balancers, this value must be the same as the `healthy_threshold`. Defaults to 3. * */ - private final @Nullable Integer unhealthyThreshold; - - @CustomType.Constructor - private TargetGroupHealthCheck( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("healthyThreshold") @Nullable Integer healthyThreshold, - @CustomType.Parameter("interval") @Nullable Integer interval, - @CustomType.Parameter("matcher") @Nullable String matcher, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("port") @Nullable String port, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("timeout") @Nullable Integer timeout, - @CustomType.Parameter("unhealthyThreshold") @Nullable Integer unhealthyThreshold) { - this.enabled = enabled; - this.healthyThreshold = healthyThreshold; - this.interval = interval; - this.matcher = matcher; - this.path = path; - this.port = port; - this.protocol = protocol; - this.timeout = timeout; - this.unhealthyThreshold = unhealthyThreshold; - } + private @Nullable Integer unhealthyThreshold; + private TargetGroupHealthCheck() {} /** * @return Boolean to enable / disable `stickiness`. Default is `true`. * @@ -152,7 +131,7 @@ public static Builder builder() { public static Builder builder(TargetGroupHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable Integer healthyThreshold; @@ -163,11 +142,7 @@ public static final class Builder { private @Nullable String protocol; private @Nullable Integer timeout; private @Nullable Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TargetGroupHealthCheck defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; @@ -181,43 +156,63 @@ public Builder(TargetGroupHealthCheck defaults) { this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder healthyThreshold(@Nullable Integer healthyThreshold) { this.healthyThreshold = healthyThreshold; return this; } + @CustomType.Setter public Builder interval(@Nullable Integer interval) { this.interval = interval; return this; } + @CustomType.Setter public Builder matcher(@Nullable String matcher) { this.matcher = matcher; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder port(@Nullable String port) { this.port = port; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { this.timeout = timeout; return this; } + @CustomType.Setter public Builder unhealthyThreshold(@Nullable Integer unhealthyThreshold) { this.unhealthyThreshold = unhealthyThreshold; return this; - } public TargetGroupHealthCheck build() { - return new TargetGroupHealthCheck(enabled, healthyThreshold, interval, matcher, path, port, protocol, timeout, unhealthyThreshold); + } + public TargetGroupHealthCheck build() { + final var o = new TargetGroupHealthCheck(); + o.enabled = enabled; + o.healthyThreshold = healthyThreshold; + o.interval = interval; + o.matcher = matcher; + o.path = path; + o.port = port; + o.protocol = protocol; + o.timeout = timeout; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/TargetGroupStickiness.java b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/TargetGroupStickiness.java index 2bed105dc3d..e032baf88ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/TargetGroupStickiness.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lb/outputs/TargetGroupStickiness.java @@ -17,35 +17,24 @@ public final class TargetGroupStickiness { * @return Only used when the type is `lb_cookie`. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). * */ - private final @Nullable Integer cookieDuration; + private @Nullable Integer cookieDuration; /** * @return Name of the application based cookie. AWSALB, AWSALBAPP, and AWSALBTG prefixes are reserved and cannot be used. Only needed when type is `app_cookie`. * */ - private final @Nullable String cookieName; + private @Nullable String cookieName; /** * @return Boolean to enable / disable `stickiness`. Default is `true`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return The type of sticky sessions. The only current possible values are `lb_cookie`, `app_cookie` for ALBs, and `source_ip` for NLBs. * */ - private final String type; - - @CustomType.Constructor - private TargetGroupStickiness( - @CustomType.Parameter("cookieDuration") @Nullable Integer cookieDuration, - @CustomType.Parameter("cookieName") @Nullable String cookieName, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("type") String type) { - this.cookieDuration = cookieDuration; - this.cookieName = cookieName; - this.enabled = enabled; - this.type = type; - } + private String type; + private TargetGroupStickiness() {} /** * @return Only used when the type is `lb_cookie`. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(TargetGroupStickiness defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer cookieDuration; private @Nullable String cookieName; private @Nullable Boolean enabled; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TargetGroupStickiness defaults) { Objects.requireNonNull(defaults); this.cookieDuration = defaults.cookieDuration; @@ -101,23 +86,33 @@ public Builder(TargetGroupStickiness defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder cookieDuration(@Nullable Integer cookieDuration) { this.cookieDuration = cookieDuration; return this; } + @CustomType.Setter public Builder cookieName(@Nullable String cookieName) { this.cookieName = cookieName; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public TargetGroupStickiness build() { - return new TargetGroupStickiness(cookieDuration, cookieName, enabled, type); + } + public TargetGroupStickiness build() { + final var o = new TargetGroupStickiness(); + o.cookieDuration = cookieDuration; + o.cookieName = cookieName; + o.enabled = enabled; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAbortStatement.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAbortStatement.java index d6f4cf75c57..6e5a309fe74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAbortStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAbortStatement.java @@ -19,23 +19,16 @@ public final class BotAbortStatement { * are documented under message. * */ - private final List messages; + private List messages; /** * @return The response card. Amazon Lex will substitute session attributes and * slot values into the response card. For more information, see * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html). * */ - private final @Nullable String responseCard; - - @CustomType.Constructor - private BotAbortStatement( - @CustomType.Parameter("messages") List messages, - @CustomType.Parameter("responseCard") @Nullable String responseCard) { - this.messages = messages; - this.responseCard = responseCard; - } + private @Nullable String responseCard; + private BotAbortStatement() {} /** * @return A set of messages, each of which provides a message string and its type. You * can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes @@ -62,21 +55,18 @@ public static Builder builder() { public static Builder builder(BotAbortStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List messages; private @Nullable String responseCard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BotAbortStatement defaults) { Objects.requireNonNull(defaults); this.messages = defaults.messages; this.responseCard = defaults.responseCard; } + @CustomType.Setter public Builder messages(List messages) { this.messages = Objects.requireNonNull(messages); return this; @@ -84,11 +74,16 @@ public Builder messages(List messages) { public Builder messages(BotAbortStatementMessage... messages) { return messages(List.of(messages)); } + @CustomType.Setter public Builder responseCard(@Nullable String responseCard) { this.responseCard = responseCard; return this; - } public BotAbortStatement build() { - return new BotAbortStatement(messages, responseCard); + } + public BotAbortStatement build() { + final var o = new BotAbortStatement(); + o.messages = messages; + o.responseCard = responseCard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAbortStatementMessage.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAbortStatementMessage.java index 797d76870bb..216f0560917 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAbortStatementMessage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAbortStatementMessage.java @@ -16,29 +16,20 @@ public final class BotAbortStatementMessage { * @return The text of the message. * */ - private final String content; + private String content; /** * @return The content type of the message string. * */ - private final String contentType; + private String contentType; /** * @return Identifies the message group that the message belongs to. When a group * is assigned to a message, Amazon Lex returns one message from each group in the response. * */ - private final @Nullable Integer groupNumber; - - @CustomType.Constructor - private BotAbortStatementMessage( - @CustomType.Parameter("content") String content, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("groupNumber") @Nullable Integer groupNumber) { - this.content = content; - this.contentType = contentType; - this.groupNumber = groupNumber; - } + private @Nullable Integer groupNumber; + private BotAbortStatementMessage() {} /** * @return The text of the message. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(BotAbortStatementMessage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String content; private String contentType; private @Nullable Integer groupNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BotAbortStatementMessage defaults) { Objects.requireNonNull(defaults); this.content = defaults.content; @@ -86,19 +73,27 @@ public Builder(BotAbortStatementMessage defaults) { this.groupNumber = defaults.groupNumber; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder groupNumber(@Nullable Integer groupNumber) { this.groupNumber = groupNumber; return this; - } public BotAbortStatementMessage build() { - return new BotAbortStatementMessage(content, contentType, groupNumber); + } + public BotAbortStatementMessage build() { + final var o = new BotAbortStatementMessage(); + o.content = content; + o.contentType = contentType; + o.groupNumber = groupNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAliasConversationLogs.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAliasConversationLogs.java index 76bce93fad6..d626524945b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAliasConversationLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAliasConversationLogs.java @@ -16,21 +16,14 @@ public final class BotAliasConversationLogs { * @return The Amazon Resource Name (ARN) of the IAM role used to write your logs to CloudWatch Logs or an S3 bucket. Must be between 20 and 2048 characters in length. * */ - private final String iamRoleArn; + private String iamRoleArn; /** * @return The settings for your conversation logs. You can log text, audio, or both. Attributes are documented under log_settings. * */ - private final @Nullable List logSettings; - - @CustomType.Constructor - private BotAliasConversationLogs( - @CustomType.Parameter("iamRoleArn") String iamRoleArn, - @CustomType.Parameter("logSettings") @Nullable List logSettings) { - this.iamRoleArn = iamRoleArn; - this.logSettings = logSettings; - } + private @Nullable List logSettings; + private BotAliasConversationLogs() {} /** * @return The Amazon Resource Name (ARN) of the IAM role used to write your logs to CloudWatch Logs or an S3 bucket. Must be between 20 and 2048 characters in length. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(BotAliasConversationLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String iamRoleArn; private @Nullable List logSettings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BotAliasConversationLogs defaults) { Objects.requireNonNull(defaults); this.iamRoleArn = defaults.iamRoleArn; this.logSettings = defaults.logSettings; } + @CustomType.Setter public Builder iamRoleArn(String iamRoleArn) { this.iamRoleArn = Objects.requireNonNull(iamRoleArn); return this; } + @CustomType.Setter public Builder logSettings(@Nullable List logSettings) { this.logSettings = logSettings; return this; } public Builder logSettings(BotAliasConversationLogsLogSetting... logSettings) { return logSettings(List.of(logSettings)); - } public BotAliasConversationLogs build() { - return new BotAliasConversationLogs(iamRoleArn, logSettings); + } + public BotAliasConversationLogs build() { + final var o = new BotAliasConversationLogs(); + o.iamRoleArn = iamRoleArn; + o.logSettings = logSettings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAliasConversationLogsLogSetting.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAliasConversationLogsLogSetting.java index 80e625f74a5..aa626c89e60 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAliasConversationLogsLogSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotAliasConversationLogsLogSetting.java @@ -15,42 +15,29 @@ public final class BotAliasConversationLogsLogSetting { * @return The destination where logs are delivered. Options are `CLOUDWATCH_LOGS` or `S3`. * */ - private final String destination; + private String destination; /** * @return The Amazon Resource Name (ARN) of the key used to encrypt audio logs in an S3 bucket. This can only be specified when `destination` is set to `S3`. Must be between 20 and 2048 characters in length. * */ - private final @Nullable String kmsKeyArn; + private @Nullable String kmsKeyArn; /** * @return The type of logging that is enabled. Options are `AUDIO` or `TEXT`. * */ - private final String logType; + private String logType; /** * @return The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket where the logs are delivered. Must be less than or equal to 2048 characters in length. * */ - private final String resourceArn; + private String resourceArn; /** * @return The prefix of the S3 object key for `AUDIO` logs or the log stream name for `TEXT` logs. * */ - private final @Nullable String resourcePrefix; - - @CustomType.Constructor - private BotAliasConversationLogsLogSetting( - @CustomType.Parameter("destination") String destination, - @CustomType.Parameter("kmsKeyArn") @Nullable String kmsKeyArn, - @CustomType.Parameter("logType") String logType, - @CustomType.Parameter("resourceArn") String resourceArn, - @CustomType.Parameter("resourcePrefix") @Nullable String resourcePrefix) { - this.destination = destination; - this.kmsKeyArn = kmsKeyArn; - this.logType = logType; - this.resourceArn = resourceArn; - this.resourcePrefix = resourcePrefix; - } + private @Nullable String resourcePrefix; + private BotAliasConversationLogsLogSetting() {} /** * @return The destination where logs are delivered. Options are `CLOUDWATCH_LOGS` or `S3`. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(BotAliasConversationLogsLogSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destination; private @Nullable String kmsKeyArn; private String logType; private String resourceArn; private @Nullable String resourcePrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BotAliasConversationLogsLogSetting defaults) { Objects.requireNonNull(defaults); this.destination = defaults.destination; @@ -115,27 +98,39 @@ public Builder(BotAliasConversationLogsLogSetting defaults) { this.resourcePrefix = defaults.resourcePrefix; } + @CustomType.Setter public Builder destination(String destination) { this.destination = Objects.requireNonNull(destination); return this; } + @CustomType.Setter public Builder kmsKeyArn(@Nullable String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; return this; } + @CustomType.Setter public Builder logType(String logType) { this.logType = Objects.requireNonNull(logType); return this; } + @CustomType.Setter public Builder resourceArn(String resourceArn) { this.resourceArn = Objects.requireNonNull(resourceArn); return this; } + @CustomType.Setter public Builder resourcePrefix(@Nullable String resourcePrefix) { this.resourcePrefix = resourcePrefix; return this; - } public BotAliasConversationLogsLogSetting build() { - return new BotAliasConversationLogsLogSetting(destination, kmsKeyArn, logType, resourceArn, resourcePrefix); + } + public BotAliasConversationLogsLogSetting build() { + final var o = new BotAliasConversationLogsLogSetting(); + o.destination = destination; + o.kmsKeyArn = kmsKeyArn; + o.logType = logType; + o.resourceArn = resourceArn; + o.resourcePrefix = resourcePrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotClarificationPrompt.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotClarificationPrompt.java index 7bed081faa4..3143c48432e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotClarificationPrompt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotClarificationPrompt.java @@ -18,32 +18,23 @@ public final class BotClarificationPrompt { * @return The number of times to prompt the user for information. * */ - private final Integer maxAttempts; + private Integer maxAttempts; /** * @return A set of messages, each of which provides a message string and its type. You * can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). Attributes * are documented under message. * */ - private final List messages; + private List messages; /** * @return The response card. Amazon Lex will substitute session attributes and * slot values into the response card. For more information, see * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html). * */ - private final @Nullable String responseCard; - - @CustomType.Constructor - private BotClarificationPrompt( - @CustomType.Parameter("maxAttempts") Integer maxAttempts, - @CustomType.Parameter("messages") List messages, - @CustomType.Parameter("responseCard") @Nullable String responseCard) { - this.maxAttempts = maxAttempts; - this.messages = messages; - this.responseCard = responseCard; - } + private @Nullable String responseCard; + private BotClarificationPrompt() {} /** * @return The number of times to prompt the user for information. * @@ -77,16 +68,12 @@ public static Builder builder() { public static Builder builder(BotClarificationPrompt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxAttempts; private List messages; private @Nullable String responseCard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BotClarificationPrompt defaults) { Objects.requireNonNull(defaults); this.maxAttempts = defaults.maxAttempts; @@ -94,10 +81,12 @@ public Builder(BotClarificationPrompt defaults) { this.responseCard = defaults.responseCard; } + @CustomType.Setter public Builder maxAttempts(Integer maxAttempts) { this.maxAttempts = Objects.requireNonNull(maxAttempts); return this; } + @CustomType.Setter public Builder messages(List messages) { this.messages = Objects.requireNonNull(messages); return this; @@ -105,11 +94,17 @@ public Builder messages(List messages) { public Builder messages(BotClarificationPromptMessage... messages) { return messages(List.of(messages)); } + @CustomType.Setter public Builder responseCard(@Nullable String responseCard) { this.responseCard = responseCard; return this; - } public BotClarificationPrompt build() { - return new BotClarificationPrompt(maxAttempts, messages, responseCard); + } + public BotClarificationPrompt build() { + final var o = new BotClarificationPrompt(); + o.maxAttempts = maxAttempts; + o.messages = messages; + o.responseCard = responseCard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotClarificationPromptMessage.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotClarificationPromptMessage.java index 24f3bf5c73f..fbbb8fb2bae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotClarificationPromptMessage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotClarificationPromptMessage.java @@ -16,29 +16,20 @@ public final class BotClarificationPromptMessage { * @return The text of the message. * */ - private final String content; + private String content; /** * @return The content type of the message string. * */ - private final String contentType; + private String contentType; /** * @return Identifies the message group that the message belongs to. When a group * is assigned to a message, Amazon Lex returns one message from each group in the response. * */ - private final @Nullable Integer groupNumber; - - @CustomType.Constructor - private BotClarificationPromptMessage( - @CustomType.Parameter("content") String content, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("groupNumber") @Nullable Integer groupNumber) { - this.content = content; - this.contentType = contentType; - this.groupNumber = groupNumber; - } + private @Nullable Integer groupNumber; + private BotClarificationPromptMessage() {} /** * @return The text of the message. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(BotClarificationPromptMessage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String content; private String contentType; private @Nullable Integer groupNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BotClarificationPromptMessage defaults) { Objects.requireNonNull(defaults); this.content = defaults.content; @@ -86,19 +73,27 @@ public Builder(BotClarificationPromptMessage defaults) { this.groupNumber = defaults.groupNumber; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder groupNumber(@Nullable Integer groupNumber) { this.groupNumber = groupNumber; return this; - } public BotClarificationPromptMessage build() { - return new BotClarificationPromptMessage(content, contentType, groupNumber); + } + public BotClarificationPromptMessage build() { + final var o = new BotClarificationPromptMessage(); + o.content = content; + o.contentType = contentType; + o.groupNumber = groupNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotIntent.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotIntent.java index f075f76d437..779c9191ddd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotIntent.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/BotIntent.java @@ -13,21 +13,14 @@ public final class BotIntent { * @return The name of the intent. Must be less than or equal to 100 characters in length. * */ - private final String intentName; + private String intentName; /** * @return The version of the intent. Must be less than or equal to 64 characters in length. * */ - private final String intentVersion; - - @CustomType.Constructor - private BotIntent( - @CustomType.Parameter("intentName") String intentName, - @CustomType.Parameter("intentVersion") String intentVersion) { - this.intentName = intentName; - this.intentVersion = intentVersion; - } + private String intentVersion; + private BotIntent() {} /** * @return The name of the intent. Must be less than or equal to 100 characters in length. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(BotIntent defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String intentName; private String intentVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BotIntent defaults) { Objects.requireNonNull(defaults); this.intentName = defaults.intentName; this.intentVersion = defaults.intentVersion; } + @CustomType.Setter public Builder intentName(String intentName) { this.intentName = Objects.requireNonNull(intentName); return this; } + @CustomType.Setter public Builder intentVersion(String intentVersion) { this.intentVersion = Objects.requireNonNull(intentVersion); return this; - } public BotIntent build() { - return new BotIntent(intentName, intentVersion); + } + public BotIntent build() { + final var o = new BotIntent(); + o.intentName = intentName; + o.intentVersion = intentVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetBotAliasResult.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetBotAliasResult.java index 3b2f5466c71..d7c4ce6173d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetBotAliasResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetBotAliasResult.java @@ -13,70 +13,49 @@ public final class GetBotAliasResult { * @return The ARN of the bot alias. * */ - private final String arn; + private String arn; /** * @return The name of the bot. * */ - private final String botName; + private String botName; /** * @return The version of the bot that the alias points to. * */ - private final String botVersion; + private String botVersion; /** * @return Checksum of the bot alias. * */ - private final String checksum; + private String checksum; /** * @return The date that the bot alias was created. * */ - private final String createdDate; + private String createdDate; /** * @return A description of the alias. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The date that the bot alias was updated. When you create a resource, the creation date and the last updated date are the same. * */ - private final String lastUpdatedDate; + private String lastUpdatedDate; /** * @return The name of the alias. The name is not case sensitive. * */ - private final String name; - - @CustomType.Constructor - private GetBotAliasResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("botName") String botName, - @CustomType.Parameter("botVersion") String botVersion, - @CustomType.Parameter("checksum") String checksum, - @CustomType.Parameter("createdDate") String createdDate, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastUpdatedDate") String lastUpdatedDate, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.botName = botName; - this.botVersion = botVersion; - this.checksum = checksum; - this.createdDate = createdDate; - this.description = description; - this.id = id; - this.lastUpdatedDate = lastUpdatedDate; - this.name = name; - } + private String name; + private GetBotAliasResult() {} /** * @return The ARN of the bot alias. * @@ -148,7 +127,7 @@ public static Builder builder() { public static Builder builder(GetBotAliasResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String botName; @@ -159,11 +138,7 @@ public static final class Builder { private String id; private String lastUpdatedDate; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBotAliasResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -177,43 +152,63 @@ public Builder(GetBotAliasResult defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder botName(String botName) { this.botName = Objects.requireNonNull(botName); return this; } + @CustomType.Setter public Builder botVersion(String botVersion) { this.botVersion = Objects.requireNonNull(botVersion); return this; } + @CustomType.Setter public Builder checksum(String checksum) { this.checksum = Objects.requireNonNull(checksum); return this; } + @CustomType.Setter public Builder createdDate(String createdDate) { this.createdDate = Objects.requireNonNull(createdDate); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetBotAliasResult build() { - return new GetBotAliasResult(arn, botName, botVersion, checksum, createdDate, description, id, lastUpdatedDate, name); + } + public GetBotAliasResult build() { + final var o = new GetBotAliasResult(); + o.arn = arn; + o.botName = botName; + o.botVersion = botVersion; + o.checksum = checksum; + o.createdDate = createdDate; + o.description = description; + o.id = id; + o.lastUpdatedDate = lastUpdatedDate; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetBotResult.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetBotResult.java index 2fd0d7d7d94..e7f6cba0754 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetBotResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetBotResult.java @@ -18,126 +18,89 @@ public final class GetBotResult { * @return The ARN of the bot. * */ - private final String arn; + private String arn; /** * @return Checksum of the bot used to identify a specific revision of the bot's `$LATEST` version. * */ - private final String checksum; + private String checksum; /** * @return Specifies if this Amazon Lex Bot is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. * */ - private final Boolean childDirected; + private Boolean childDirected; /** * @return The date that the bot was created. * */ - private final String createdDate; + private String createdDate; /** * @return A description of the bot. * */ - private final String description; + private String description; /** * @return When set to true user utterances are sent to Amazon Comprehend for sentiment analysis. * */ - private final Boolean detectSentiment; + private Boolean detectSentiment; /** * @return Set to true if natural language understanding improvements are enabled. * */ - private final Boolean enableModelImprovements; + private Boolean enableModelImprovements; /** * @return If the `status` is `FAILED`, the reason why the bot failed to build. * */ - private final String failureReason; + private String failureReason; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The maximum time in seconds that Amazon Lex retains the data gathered in a conversation. * */ - private final Integer idleSessionTtlInSeconds; + private Integer idleSessionTtlInSeconds; /** * @return The date that the bot was updated. * */ - private final String lastUpdatedDate; + private String lastUpdatedDate; /** * @return Specifies the target locale for the bot. Any intent used in the bot must be compatible with the locale of the bot. * */ - private final String locale; + private String locale; /** * @return The name of the bot, case sensitive. * */ - private final String name; + private String name; /** * @return The threshold where Amazon Lex will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a PostContent or PostText response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot. * */ - private final Double nluIntentConfidenceThreshold; + private Double nluIntentConfidenceThreshold; /** * @return The status of the bot. * */ - private final String status; + private String status; /** * @return The version of the bot. For a new bot, the version is always `$LATEST`. * */ - private final @Nullable String version; + private @Nullable String version; /** * @return The Amazon Polly voice ID that the Amazon Lex Bot uses for voice interactions with the user. * */ - private final String voiceId; - - @CustomType.Constructor - private GetBotResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("checksum") String checksum, - @CustomType.Parameter("childDirected") Boolean childDirected, - @CustomType.Parameter("createdDate") String createdDate, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("detectSentiment") Boolean detectSentiment, - @CustomType.Parameter("enableModelImprovements") Boolean enableModelImprovements, - @CustomType.Parameter("failureReason") String failureReason, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("idleSessionTtlInSeconds") Integer idleSessionTtlInSeconds, - @CustomType.Parameter("lastUpdatedDate") String lastUpdatedDate, - @CustomType.Parameter("locale") String locale, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nluIntentConfidenceThreshold") Double nluIntentConfidenceThreshold, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("version") @Nullable String version, - @CustomType.Parameter("voiceId") String voiceId) { - this.arn = arn; - this.checksum = checksum; - this.childDirected = childDirected; - this.createdDate = createdDate; - this.description = description; - this.detectSentiment = detectSentiment; - this.enableModelImprovements = enableModelImprovements; - this.failureReason = failureReason; - this.id = id; - this.idleSessionTtlInSeconds = idleSessionTtlInSeconds; - this.lastUpdatedDate = lastUpdatedDate; - this.locale = locale; - this.name = name; - this.nluIntentConfidenceThreshold = nluIntentConfidenceThreshold; - this.status = status; - this.version = version; - this.voiceId = voiceId; - } + private String voiceId; + private GetBotResult() {} /** * @return The ARN of the bot. * @@ -265,7 +228,7 @@ public static Builder builder() { public static Builder builder(GetBotResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String checksum; @@ -284,11 +247,7 @@ public static final class Builder { private String status; private @Nullable String version; private String voiceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBotResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -310,75 +269,111 @@ public Builder(GetBotResult defaults) { this.voiceId = defaults.voiceId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder checksum(String checksum) { this.checksum = Objects.requireNonNull(checksum); return this; } + @CustomType.Setter public Builder childDirected(Boolean childDirected) { this.childDirected = Objects.requireNonNull(childDirected); return this; } + @CustomType.Setter public Builder createdDate(String createdDate) { this.createdDate = Objects.requireNonNull(createdDate); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder detectSentiment(Boolean detectSentiment) { this.detectSentiment = Objects.requireNonNull(detectSentiment); return this; } + @CustomType.Setter public Builder enableModelImprovements(Boolean enableModelImprovements) { this.enableModelImprovements = Objects.requireNonNull(enableModelImprovements); return this; } + @CustomType.Setter public Builder failureReason(String failureReason) { this.failureReason = Objects.requireNonNull(failureReason); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder idleSessionTtlInSeconds(Integer idleSessionTtlInSeconds) { this.idleSessionTtlInSeconds = Objects.requireNonNull(idleSessionTtlInSeconds); return this; } + @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); return this; } + @CustomType.Setter public Builder locale(String locale) { this.locale = Objects.requireNonNull(locale); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nluIntentConfidenceThreshold(Double nluIntentConfidenceThreshold) { this.nluIntentConfidenceThreshold = Objects.requireNonNull(nluIntentConfidenceThreshold); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; } + @CustomType.Setter public Builder voiceId(String voiceId) { this.voiceId = Objects.requireNonNull(voiceId); return this; - } public GetBotResult build() { - return new GetBotResult(arn, checksum, childDirected, createdDate, description, detectSentiment, enableModelImprovements, failureReason, id, idleSessionTtlInSeconds, lastUpdatedDate, locale, name, nluIntentConfidenceThreshold, status, version, voiceId); + } + public GetBotResult build() { + final var o = new GetBotResult(); + o.arn = arn; + o.checksum = checksum; + o.childDirected = childDirected; + o.createdDate = createdDate; + o.description = description; + o.detectSentiment = detectSentiment; + o.enableModelImprovements = enableModelImprovements; + o.failureReason = failureReason; + o.id = id; + o.idleSessionTtlInSeconds = idleSessionTtlInSeconds; + o.lastUpdatedDate = lastUpdatedDate; + o.locale = locale; + o.name = name; + o.nluIntentConfidenceThreshold = nluIntentConfidenceThreshold; + o.status = status; + o.version = version; + o.voiceId = voiceId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetIntentResult.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetIntentResult.java index 759dda684df..c839f5a03d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetIntentResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetIntentResult.java @@ -15,38 +15,38 @@ public final class GetIntentResult { * @return The ARN of the Lex intent. * */ - private final String arn; + private String arn; /** * @return Checksum identifying the version of the intent that was created. The checksum is not * included as an argument because the resource will add it automatically when updating the intent. * */ - private final String checksum; + private String checksum; /** * @return The date when the intent version was created. * */ - private final String createdDate; + private String createdDate; /** * @return A description of the intent. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The date when the $LATEST version of this intent was updated. * */ - private final String lastUpdatedDate; + private String lastUpdatedDate; /** * @return The name of the intent, not case sensitive. * */ - private final String name; + private String name; /** * @return A unique identifier for the built-in intent to base this * intent on. To find the signature for an intent, see @@ -54,35 +54,14 @@ public final class GetIntentResult { * in the Alexa Skills Kit. * */ - private final String parentIntentSignature; + private String parentIntentSignature; /** * @return The version of the bot. * */ - private final @Nullable String version; - - @CustomType.Constructor - private GetIntentResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("checksum") String checksum, - @CustomType.Parameter("createdDate") String createdDate, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastUpdatedDate") String lastUpdatedDate, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("parentIntentSignature") String parentIntentSignature, - @CustomType.Parameter("version") @Nullable String version) { - this.arn = arn; - this.checksum = checksum; - this.createdDate = createdDate; - this.description = description; - this.id = id; - this.lastUpdatedDate = lastUpdatedDate; - this.name = name; - this.parentIntentSignature = parentIntentSignature; - this.version = version; - } + private @Nullable String version; + private GetIntentResult() {} /** * @return The ARN of the Lex intent. * @@ -158,7 +137,7 @@ public static Builder builder() { public static Builder builder(GetIntentResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String checksum; @@ -169,11 +148,7 @@ public static final class Builder { private String name; private String parentIntentSignature; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIntentResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -187,43 +162,63 @@ public Builder(GetIntentResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder checksum(String checksum) { this.checksum = Objects.requireNonNull(checksum); return this; } + @CustomType.Setter public Builder createdDate(String createdDate) { this.createdDate = Objects.requireNonNull(createdDate); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder parentIntentSignature(String parentIntentSignature) { this.parentIntentSignature = Objects.requireNonNull(parentIntentSignature); return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public GetIntentResult build() { - return new GetIntentResult(arn, checksum, createdDate, description, id, lastUpdatedDate, name, parentIntentSignature, version); + } + public GetIntentResult build() { + final var o = new GetIntentResult(); + o.arn = arn; + o.checksum = checksum; + o.createdDate = createdDate; + o.description = description; + o.id = id; + o.lastUpdatedDate = lastUpdatedDate; + o.name = name; + o.parentIntentSignature = parentIntentSignature; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetSlotTypeEnumerationValue.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetSlotTypeEnumerationValue.java index d09e142a05a..3595b355a03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetSlotTypeEnumerationValue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetSlotTypeEnumerationValue.java @@ -10,17 +10,10 @@ @CustomType public final class GetSlotTypeEnumerationValue { - private final List synonyms; - private final String value; - - @CustomType.Constructor - private GetSlotTypeEnumerationValue( - @CustomType.Parameter("synonyms") List synonyms, - @CustomType.Parameter("value") String value) { - this.synonyms = synonyms; - this.value = value; - } + private List synonyms; + private String value; + private GetSlotTypeEnumerationValue() {} public List synonyms() { return this.synonyms; } @@ -35,21 +28,18 @@ public static Builder builder() { public static Builder builder(GetSlotTypeEnumerationValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List synonyms; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSlotTypeEnumerationValue defaults) { Objects.requireNonNull(defaults); this.synonyms = defaults.synonyms; this.value = defaults.value; } + @CustomType.Setter public Builder synonyms(List synonyms) { this.synonyms = Objects.requireNonNull(synonyms); return this; @@ -57,11 +47,16 @@ public Builder synonyms(List synonyms) { public Builder synonyms(String... synonyms) { return synonyms(List.of(synonyms)); } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetSlotTypeEnumerationValue build() { - return new GetSlotTypeEnumerationValue(synonyms, value); + } + public GetSlotTypeEnumerationValue build() { + final var o = new GetSlotTypeEnumerationValue(); + o.synonyms = synonyms; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetSlotTypeResult.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetSlotTypeResult.java index bba42515c4a..db77b10067c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetSlotTypeResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/GetSlotTypeResult.java @@ -18,39 +18,39 @@ public final class GetSlotTypeResult { * not included as an argument because the resource will add it automatically when updating the slot type. * */ - private final String checksum; + private String checksum; /** * @return The date when the slot type version was created. * */ - private final String createdDate; + private String createdDate; /** * @return A description of the slot type. * */ - private final String description; + private String description; /** * @return A set of EnumerationValue objects that defines the values that * the slot type can take. Each value can have a set of synonyms, which are additional values that help * train the machine learning model about the values that it resolves for a slot. * */ - private final List enumerationValues; + private List enumerationValues; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The date when the $LATEST version of this slot type was updated. * */ - private final String lastUpdatedDate; + private String lastUpdatedDate; /** * @return The name of the slot type. The name is not case sensitive. * */ - private final String name; + private String name; /** * @return Determines the slot resolution strategy that Amazon Lex * uses to return slot type values. `ORIGINAL_VALUE` returns the value entered by the user if the user @@ -58,35 +58,14 @@ public final class GetSlotTypeResult { * if there is a resolution list for the slot, otherwise null is returned. * */ - private final String valueSelectionStrategy; + private String valueSelectionStrategy; /** * @return The version of the slot type. * */ - private final @Nullable String version; - - @CustomType.Constructor - private GetSlotTypeResult( - @CustomType.Parameter("checksum") String checksum, - @CustomType.Parameter("createdDate") String createdDate, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("enumerationValues") List enumerationValues, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("lastUpdatedDate") String lastUpdatedDate, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("valueSelectionStrategy") String valueSelectionStrategy, - @CustomType.Parameter("version") @Nullable String version) { - this.checksum = checksum; - this.createdDate = createdDate; - this.description = description; - this.enumerationValues = enumerationValues; - this.id = id; - this.lastUpdatedDate = lastUpdatedDate; - this.name = name; - this.valueSelectionStrategy = valueSelectionStrategy; - this.version = version; - } + private @Nullable String version; + private GetSlotTypeResult() {} /** * @return Checksum identifying the version of the slot type that was created. The checksum is * not included as an argument because the resource will add it automatically when updating the slot type. @@ -164,7 +143,7 @@ public static Builder builder() { public static Builder builder(GetSlotTypeResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String checksum; private String createdDate; @@ -175,11 +154,7 @@ public static final class Builder { private String name; private String valueSelectionStrategy; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSlotTypeResult defaults) { Objects.requireNonNull(defaults); this.checksum = defaults.checksum; @@ -193,18 +168,22 @@ public Builder(GetSlotTypeResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder checksum(String checksum) { this.checksum = Objects.requireNonNull(checksum); return this; } + @CustomType.Setter public Builder createdDate(String createdDate) { this.createdDate = Objects.requireNonNull(createdDate); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder enumerationValues(List enumerationValues) { this.enumerationValues = Objects.requireNonNull(enumerationValues); return this; @@ -212,27 +191,43 @@ public Builder enumerationValues(List enumerationVa public Builder enumerationValues(GetSlotTypeEnumerationValue... enumerationValues) { return enumerationValues(List.of(enumerationValues)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder valueSelectionStrategy(String valueSelectionStrategy) { this.valueSelectionStrategy = Objects.requireNonNull(valueSelectionStrategy); return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public GetSlotTypeResult build() { - return new GetSlotTypeResult(checksum, createdDate, description, enumerationValues, id, lastUpdatedDate, name, valueSelectionStrategy, version); + } + public GetSlotTypeResult build() { + final var o = new GetSlotTypeResult(); + o.checksum = checksum; + o.createdDate = createdDate; + o.description = description; + o.enumerationValues = enumerationValues; + o.id = id; + o.lastUpdatedDate = lastUpdatedDate; + o.name = name; + o.valueSelectionStrategy = valueSelectionStrategy; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConclusionStatement.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConclusionStatement.java index bab1fab95e3..96291d82d9a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConclusionStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConclusionStatement.java @@ -19,23 +19,16 @@ public final class IntentConclusionStatement { * Attributes are documented under message. Must contain between 1 and 15 messages. * */ - private final List messages; + private List messages; /** * @return The response card. Amazon Lex will substitute session attributes and * slot values into the response card. For more information, see * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html). Must be less than or equal to 50000 characters in length. * */ - private final @Nullable String responseCard; - - @CustomType.Constructor - private IntentConclusionStatement( - @CustomType.Parameter("messages") List messages, - @CustomType.Parameter("responseCard") @Nullable String responseCard) { - this.messages = messages; - this.responseCard = responseCard; - } + private @Nullable String responseCard; + private IntentConclusionStatement() {} /** * @return A set of messages, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). @@ -62,21 +55,18 @@ public static Builder builder() { public static Builder builder(IntentConclusionStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List messages; private @Nullable String responseCard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentConclusionStatement defaults) { Objects.requireNonNull(defaults); this.messages = defaults.messages; this.responseCard = defaults.responseCard; } + @CustomType.Setter public Builder messages(List messages) { this.messages = Objects.requireNonNull(messages); return this; @@ -84,11 +74,16 @@ public Builder messages(List messages) { public Builder messages(IntentConclusionStatementMessage... messages) { return messages(List.of(messages)); } + @CustomType.Setter public Builder responseCard(@Nullable String responseCard) { this.responseCard = responseCard; return this; - } public IntentConclusionStatement build() { - return new IntentConclusionStatement(messages, responseCard); + } + public IntentConclusionStatement build() { + final var o = new IntentConclusionStatement(); + o.messages = messages; + o.responseCard = responseCard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConclusionStatementMessage.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConclusionStatementMessage.java index b96d7559742..ca92c32a6c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConclusionStatementMessage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConclusionStatementMessage.java @@ -16,29 +16,20 @@ public final class IntentConclusionStatementMessage { * @return The text of the message. Must be less than or equal to 1000 characters in length. * */ - private final String content; + private String content; /** * @return The content type of the message string. * */ - private final String contentType; + private String contentType; /** * @return Identifies the message group that the message belongs to. When a group * is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). * */ - private final @Nullable Integer groupNumber; - - @CustomType.Constructor - private IntentConclusionStatementMessage( - @CustomType.Parameter("content") String content, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("groupNumber") @Nullable Integer groupNumber) { - this.content = content; - this.contentType = contentType; - this.groupNumber = groupNumber; - } + private @Nullable Integer groupNumber; + private IntentConclusionStatementMessage() {} /** * @return The text of the message. Must be less than or equal to 1000 characters in length. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(IntentConclusionStatementMessage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String content; private String contentType; private @Nullable Integer groupNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentConclusionStatementMessage defaults) { Objects.requireNonNull(defaults); this.content = defaults.content; @@ -86,19 +73,27 @@ public Builder(IntentConclusionStatementMessage defaults) { this.groupNumber = defaults.groupNumber; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder groupNumber(@Nullable Integer groupNumber) { this.groupNumber = groupNumber; return this; - } public IntentConclusionStatementMessage build() { - return new IntentConclusionStatementMessage(content, contentType, groupNumber); + } + public IntentConclusionStatementMessage build() { + final var o = new IntentConclusionStatementMessage(); + o.content = content; + o.contentType = contentType; + o.groupNumber = groupNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConfirmationPrompt.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConfirmationPrompt.java index f52e0c0ce21..f4ae7d9c612 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConfirmationPrompt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConfirmationPrompt.java @@ -18,32 +18,23 @@ public final class IntentConfirmationPrompt { * @return The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). * */ - private final Integer maxAttempts; + private Integer maxAttempts; /** * @return A set of messages, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). * Attributes are documented under message. Must contain between 1 and 15 messages. * */ - private final List messages; + private List messages; /** * @return The response card. Amazon Lex will substitute session attributes and * slot values into the response card. For more information, see * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html). Must be less than or equal to 50000 characters in length. * */ - private final @Nullable String responseCard; - - @CustomType.Constructor - private IntentConfirmationPrompt( - @CustomType.Parameter("maxAttempts") Integer maxAttempts, - @CustomType.Parameter("messages") List messages, - @CustomType.Parameter("responseCard") @Nullable String responseCard) { - this.maxAttempts = maxAttempts; - this.messages = messages; - this.responseCard = responseCard; - } + private @Nullable String responseCard; + private IntentConfirmationPrompt() {} /** * @return The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). * @@ -77,16 +68,12 @@ public static Builder builder() { public static Builder builder(IntentConfirmationPrompt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxAttempts; private List messages; private @Nullable String responseCard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentConfirmationPrompt defaults) { Objects.requireNonNull(defaults); this.maxAttempts = defaults.maxAttempts; @@ -94,10 +81,12 @@ public Builder(IntentConfirmationPrompt defaults) { this.responseCard = defaults.responseCard; } + @CustomType.Setter public Builder maxAttempts(Integer maxAttempts) { this.maxAttempts = Objects.requireNonNull(maxAttempts); return this; } + @CustomType.Setter public Builder messages(List messages) { this.messages = Objects.requireNonNull(messages); return this; @@ -105,11 +94,17 @@ public Builder messages(List messages) { public Builder messages(IntentConfirmationPromptMessage... messages) { return messages(List.of(messages)); } + @CustomType.Setter public Builder responseCard(@Nullable String responseCard) { this.responseCard = responseCard; return this; - } public IntentConfirmationPrompt build() { - return new IntentConfirmationPrompt(maxAttempts, messages, responseCard); + } + public IntentConfirmationPrompt build() { + final var o = new IntentConfirmationPrompt(); + o.maxAttempts = maxAttempts; + o.messages = messages; + o.responseCard = responseCard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConfirmationPromptMessage.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConfirmationPromptMessage.java index 3d4b0b6ec09..07db757d1dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConfirmationPromptMessage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentConfirmationPromptMessage.java @@ -16,29 +16,20 @@ public final class IntentConfirmationPromptMessage { * @return The text of the message. Must be less than or equal to 1000 characters in length. * */ - private final String content; + private String content; /** * @return The content type of the message string. * */ - private final String contentType; + private String contentType; /** * @return Identifies the message group that the message belongs to. When a group * is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). * */ - private final @Nullable Integer groupNumber; - - @CustomType.Constructor - private IntentConfirmationPromptMessage( - @CustomType.Parameter("content") String content, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("groupNumber") @Nullable Integer groupNumber) { - this.content = content; - this.contentType = contentType; - this.groupNumber = groupNumber; - } + private @Nullable Integer groupNumber; + private IntentConfirmationPromptMessage() {} /** * @return The text of the message. Must be less than or equal to 1000 characters in length. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(IntentConfirmationPromptMessage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String content; private String contentType; private @Nullable Integer groupNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentConfirmationPromptMessage defaults) { Objects.requireNonNull(defaults); this.content = defaults.content; @@ -86,19 +73,27 @@ public Builder(IntentConfirmationPromptMessage defaults) { this.groupNumber = defaults.groupNumber; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder groupNumber(@Nullable Integer groupNumber) { this.groupNumber = groupNumber; return this; - } public IntentConfirmationPromptMessage build() { - return new IntentConfirmationPromptMessage(content, contentType, groupNumber); + } + public IntentConfirmationPromptMessage build() { + final var o = new IntentConfirmationPromptMessage(); + o.content = content; + o.contentType = contentType; + o.groupNumber = groupNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentDialogCodeHook.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentDialogCodeHook.java index 9d51695219c..07ab18670f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentDialogCodeHook.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentDialogCodeHook.java @@ -15,21 +15,14 @@ public final class IntentDialogCodeHook { * [Using Lambda Functions](https://docs.aws.amazon.com/lex/latest/dg/using-lambda.html). Must be less than or equal to 5 characters in length. * */ - private final String messageVersion; + private String messageVersion; /** * @return The Amazon Resource Name (ARN) of the Lambda function. * */ - private final String uri; - - @CustomType.Constructor - private IntentDialogCodeHook( - @CustomType.Parameter("messageVersion") String messageVersion, - @CustomType.Parameter("uri") String uri) { - this.messageVersion = messageVersion; - this.uri = uri; - } + private String uri; + private IntentDialogCodeHook() {} /** * @return The version of the request-response that you want Amazon Lex to use * to invoke your Lambda function. For more information, see @@ -54,30 +47,32 @@ public static Builder builder() { public static Builder builder(IntentDialogCodeHook defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String messageVersion; private String uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentDialogCodeHook defaults) { Objects.requireNonNull(defaults); this.messageVersion = defaults.messageVersion; this.uri = defaults.uri; } + @CustomType.Setter public Builder messageVersion(String messageVersion) { this.messageVersion = Objects.requireNonNull(messageVersion); return this; } + @CustomType.Setter public Builder uri(String uri) { this.uri = Objects.requireNonNull(uri); return this; - } public IntentDialogCodeHook build() { - return new IntentDialogCodeHook(messageVersion, uri); + } + public IntentDialogCodeHook build() { + final var o = new IntentDialogCodeHook(); + o.messageVersion = messageVersion; + o.uri = uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPrompt.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPrompt.java index a3ae21bd0d3..efc9908badc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPrompt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPrompt.java @@ -14,23 +14,16 @@ public final class IntentFollowUpPrompt { * @return Prompts for information from the user. Attributes are documented under prompt. * */ - private final IntentFollowUpPromptPrompt prompt; + private IntentFollowUpPromptPrompt prompt; /** * @return If the user answers "no" to the question defined in the prompt field, * Amazon Lex responds with this statement to acknowledge that the intent was canceled. Attributes are * documented below under statement. * */ - private final IntentFollowUpPromptRejectionStatement rejectionStatement; - - @CustomType.Constructor - private IntentFollowUpPrompt( - @CustomType.Parameter("prompt") IntentFollowUpPromptPrompt prompt, - @CustomType.Parameter("rejectionStatement") IntentFollowUpPromptRejectionStatement rejectionStatement) { - this.prompt = prompt; - this.rejectionStatement = rejectionStatement; - } + private IntentFollowUpPromptRejectionStatement rejectionStatement; + private IntentFollowUpPrompt() {} /** * @return Prompts for information from the user. Attributes are documented under prompt. * @@ -55,30 +48,32 @@ public static Builder builder() { public static Builder builder(IntentFollowUpPrompt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private IntentFollowUpPromptPrompt prompt; private IntentFollowUpPromptRejectionStatement rejectionStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentFollowUpPrompt defaults) { Objects.requireNonNull(defaults); this.prompt = defaults.prompt; this.rejectionStatement = defaults.rejectionStatement; } + @CustomType.Setter public Builder prompt(IntentFollowUpPromptPrompt prompt) { this.prompt = Objects.requireNonNull(prompt); return this; } + @CustomType.Setter public Builder rejectionStatement(IntentFollowUpPromptRejectionStatement rejectionStatement) { this.rejectionStatement = Objects.requireNonNull(rejectionStatement); return this; - } public IntentFollowUpPrompt build() { - return new IntentFollowUpPrompt(prompt, rejectionStatement); + } + public IntentFollowUpPrompt build() { + final var o = new IntentFollowUpPrompt(); + o.prompt = prompt; + o.rejectionStatement = rejectionStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptPrompt.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptPrompt.java index 30cb5dc43ab..f42b766e8cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptPrompt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptPrompt.java @@ -18,32 +18,23 @@ public final class IntentFollowUpPromptPrompt { * @return The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). * */ - private final Integer maxAttempts; + private Integer maxAttempts; /** * @return A set of messages, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). * Attributes are documented under message. Must contain between 1 and 15 messages. * */ - private final List messages; + private List messages; /** * @return The response card. Amazon Lex will substitute session attributes and * slot values into the response card. For more information, see * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html). Must be less than or equal to 50000 characters in length. * */ - private final @Nullable String responseCard; - - @CustomType.Constructor - private IntentFollowUpPromptPrompt( - @CustomType.Parameter("maxAttempts") Integer maxAttempts, - @CustomType.Parameter("messages") List messages, - @CustomType.Parameter("responseCard") @Nullable String responseCard) { - this.maxAttempts = maxAttempts; - this.messages = messages; - this.responseCard = responseCard; - } + private @Nullable String responseCard; + private IntentFollowUpPromptPrompt() {} /** * @return The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). * @@ -77,16 +68,12 @@ public static Builder builder() { public static Builder builder(IntentFollowUpPromptPrompt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxAttempts; private List messages; private @Nullable String responseCard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentFollowUpPromptPrompt defaults) { Objects.requireNonNull(defaults); this.maxAttempts = defaults.maxAttempts; @@ -94,10 +81,12 @@ public Builder(IntentFollowUpPromptPrompt defaults) { this.responseCard = defaults.responseCard; } + @CustomType.Setter public Builder maxAttempts(Integer maxAttempts) { this.maxAttempts = Objects.requireNonNull(maxAttempts); return this; } + @CustomType.Setter public Builder messages(List messages) { this.messages = Objects.requireNonNull(messages); return this; @@ -105,11 +94,17 @@ public Builder messages(List messages) { public Builder messages(IntentFollowUpPromptPromptMessage... messages) { return messages(List.of(messages)); } + @CustomType.Setter public Builder responseCard(@Nullable String responseCard) { this.responseCard = responseCard; return this; - } public IntentFollowUpPromptPrompt build() { - return new IntentFollowUpPromptPrompt(maxAttempts, messages, responseCard); + } + public IntentFollowUpPromptPrompt build() { + final var o = new IntentFollowUpPromptPrompt(); + o.maxAttempts = maxAttempts; + o.messages = messages; + o.responseCard = responseCard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptPromptMessage.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptPromptMessage.java index cfa1391e047..f3e946650a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptPromptMessage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptPromptMessage.java @@ -16,29 +16,20 @@ public final class IntentFollowUpPromptPromptMessage { * @return The text of the message. Must be less than or equal to 1000 characters in length. * */ - private final String content; + private String content; /** * @return The content type of the message string. * */ - private final String contentType; + private String contentType; /** * @return Identifies the message group that the message belongs to. When a group * is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). * */ - private final @Nullable Integer groupNumber; - - @CustomType.Constructor - private IntentFollowUpPromptPromptMessage( - @CustomType.Parameter("content") String content, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("groupNumber") @Nullable Integer groupNumber) { - this.content = content; - this.contentType = contentType; - this.groupNumber = groupNumber; - } + private @Nullable Integer groupNumber; + private IntentFollowUpPromptPromptMessage() {} /** * @return The text of the message. Must be less than or equal to 1000 characters in length. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(IntentFollowUpPromptPromptMessage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String content; private String contentType; private @Nullable Integer groupNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentFollowUpPromptPromptMessage defaults) { Objects.requireNonNull(defaults); this.content = defaults.content; @@ -86,19 +73,27 @@ public Builder(IntentFollowUpPromptPromptMessage defaults) { this.groupNumber = defaults.groupNumber; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder groupNumber(@Nullable Integer groupNumber) { this.groupNumber = groupNumber; return this; - } public IntentFollowUpPromptPromptMessage build() { - return new IntentFollowUpPromptPromptMessage(content, contentType, groupNumber); + } + public IntentFollowUpPromptPromptMessage build() { + final var o = new IntentFollowUpPromptPromptMessage(); + o.content = content; + o.contentType = contentType; + o.groupNumber = groupNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptRejectionStatement.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptRejectionStatement.java index e8f26b6ef5d..f7ba3adeef4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptRejectionStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptRejectionStatement.java @@ -19,23 +19,16 @@ public final class IntentFollowUpPromptRejectionStatement { * Attributes are documented under message. Must contain between 1 and 15 messages. * */ - private final List messages; + private List messages; /** * @return The response card. Amazon Lex will substitute session attributes and * slot values into the response card. For more information, see * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html). Must be less than or equal to 50000 characters in length. * */ - private final @Nullable String responseCard; - - @CustomType.Constructor - private IntentFollowUpPromptRejectionStatement( - @CustomType.Parameter("messages") List messages, - @CustomType.Parameter("responseCard") @Nullable String responseCard) { - this.messages = messages; - this.responseCard = responseCard; - } + private @Nullable String responseCard; + private IntentFollowUpPromptRejectionStatement() {} /** * @return A set of messages, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). @@ -62,21 +55,18 @@ public static Builder builder() { public static Builder builder(IntentFollowUpPromptRejectionStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List messages; private @Nullable String responseCard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentFollowUpPromptRejectionStatement defaults) { Objects.requireNonNull(defaults); this.messages = defaults.messages; this.responseCard = defaults.responseCard; } + @CustomType.Setter public Builder messages(List messages) { this.messages = Objects.requireNonNull(messages); return this; @@ -84,11 +74,16 @@ public Builder messages(List mess public Builder messages(IntentFollowUpPromptRejectionStatementMessage... messages) { return messages(List.of(messages)); } + @CustomType.Setter public Builder responseCard(@Nullable String responseCard) { this.responseCard = responseCard; return this; - } public IntentFollowUpPromptRejectionStatement build() { - return new IntentFollowUpPromptRejectionStatement(messages, responseCard); + } + public IntentFollowUpPromptRejectionStatement build() { + final var o = new IntentFollowUpPromptRejectionStatement(); + o.messages = messages; + o.responseCard = responseCard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptRejectionStatementMessage.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptRejectionStatementMessage.java index 7cfa66a7913..3c96f42ca93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptRejectionStatementMessage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFollowUpPromptRejectionStatementMessage.java @@ -16,29 +16,20 @@ public final class IntentFollowUpPromptRejectionStatementMessage { * @return The text of the message. Must be less than or equal to 1000 characters in length. * */ - private final String content; + private String content; /** * @return The content type of the message string. * */ - private final String contentType; + private String contentType; /** * @return Identifies the message group that the message belongs to. When a group * is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). * */ - private final @Nullable Integer groupNumber; - - @CustomType.Constructor - private IntentFollowUpPromptRejectionStatementMessage( - @CustomType.Parameter("content") String content, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("groupNumber") @Nullable Integer groupNumber) { - this.content = content; - this.contentType = contentType; - this.groupNumber = groupNumber; - } + private @Nullable Integer groupNumber; + private IntentFollowUpPromptRejectionStatementMessage() {} /** * @return The text of the message. Must be less than or equal to 1000 characters in length. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(IntentFollowUpPromptRejectionStatementMessage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String content; private String contentType; private @Nullable Integer groupNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentFollowUpPromptRejectionStatementMessage defaults) { Objects.requireNonNull(defaults); this.content = defaults.content; @@ -86,19 +73,27 @@ public Builder(IntentFollowUpPromptRejectionStatementMessage defaults) { this.groupNumber = defaults.groupNumber; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder groupNumber(@Nullable Integer groupNumber) { this.groupNumber = groupNumber; return this; - } public IntentFollowUpPromptRejectionStatementMessage build() { - return new IntentFollowUpPromptRejectionStatementMessage(content, contentType, groupNumber); + } + public IntentFollowUpPromptRejectionStatementMessage build() { + final var o = new IntentFollowUpPromptRejectionStatementMessage(); + o.content = content; + o.contentType = contentType; + o.groupNumber = groupNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFulfillmentActivity.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFulfillmentActivity.java index 02abf98ef2f..a2eb7fdd93d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFulfillmentActivity.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFulfillmentActivity.java @@ -17,22 +17,15 @@ public final class IntentFulfillmentActivity { * Required if type is CodeHook. Attributes are documented under code_hook. * */ - private final @Nullable IntentFulfillmentActivityCodeHook codeHook; + private @Nullable IntentFulfillmentActivityCodeHook codeHook; /** * @return How the intent should be fulfilled, either by running a Lambda function or by * returning the slot data to the client application. Type can be either `ReturnIntent` or `CodeHook`, as documented [here](https://docs.aws.amazon.com/lex/latest/dg/API_FulfillmentActivity.html). * */ - private final String type; - - @CustomType.Constructor - private IntentFulfillmentActivity( - @CustomType.Parameter("codeHook") @Nullable IntentFulfillmentActivityCodeHook codeHook, - @CustomType.Parameter("type") String type) { - this.codeHook = codeHook; - this.type = type; - } + private String type; + private IntentFulfillmentActivity() {} /** * @return A description of the Lambda function that is run to fulfill the intent. * Required if type is CodeHook. Attributes are documented under code_hook. @@ -57,30 +50,32 @@ public static Builder builder() { public static Builder builder(IntentFulfillmentActivity defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable IntentFulfillmentActivityCodeHook codeHook; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentFulfillmentActivity defaults) { Objects.requireNonNull(defaults); this.codeHook = defaults.codeHook; this.type = defaults.type; } + @CustomType.Setter public Builder codeHook(@Nullable IntentFulfillmentActivityCodeHook codeHook) { this.codeHook = codeHook; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public IntentFulfillmentActivity build() { - return new IntentFulfillmentActivity(codeHook, type); + } + public IntentFulfillmentActivity build() { + final var o = new IntentFulfillmentActivity(); + o.codeHook = codeHook; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFulfillmentActivityCodeHook.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFulfillmentActivityCodeHook.java index b28af000c9d..fe3a14b4bee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFulfillmentActivityCodeHook.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentFulfillmentActivityCodeHook.java @@ -15,21 +15,14 @@ public final class IntentFulfillmentActivityCodeHook { * [Using Lambda Functions](https://docs.aws.amazon.com/lex/latest/dg/using-lambda.html). Must be less than or equal to 5 characters in length. * */ - private final String messageVersion; + private String messageVersion; /** * @return The Amazon Resource Name (ARN) of the Lambda function. * */ - private final String uri; - - @CustomType.Constructor - private IntentFulfillmentActivityCodeHook( - @CustomType.Parameter("messageVersion") String messageVersion, - @CustomType.Parameter("uri") String uri) { - this.messageVersion = messageVersion; - this.uri = uri; - } + private String uri; + private IntentFulfillmentActivityCodeHook() {} /** * @return The version of the request-response that you want Amazon Lex to use * to invoke your Lambda function. For more information, see @@ -54,30 +47,32 @@ public static Builder builder() { public static Builder builder(IntentFulfillmentActivityCodeHook defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String messageVersion; private String uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentFulfillmentActivityCodeHook defaults) { Objects.requireNonNull(defaults); this.messageVersion = defaults.messageVersion; this.uri = defaults.uri; } + @CustomType.Setter public Builder messageVersion(String messageVersion) { this.messageVersion = Objects.requireNonNull(messageVersion); return this; } + @CustomType.Setter public Builder uri(String uri) { this.uri = Objects.requireNonNull(uri); return this; - } public IntentFulfillmentActivityCodeHook build() { - return new IntentFulfillmentActivityCodeHook(messageVersion, uri); + } + public IntentFulfillmentActivityCodeHook build() { + final var o = new IntentFulfillmentActivityCodeHook(); + o.messageVersion = messageVersion; + o.uri = uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentRejectionStatement.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentRejectionStatement.java index a8de9cfdcd4..0fe2064a9cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentRejectionStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentRejectionStatement.java @@ -19,23 +19,16 @@ public final class IntentRejectionStatement { * Attributes are documented under message. Must contain between 1 and 15 messages. * */ - private final List messages; + private List messages; /** * @return The response card. Amazon Lex will substitute session attributes and * slot values into the response card. For more information, see * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html). Must be less than or equal to 50000 characters in length. * */ - private final @Nullable String responseCard; - - @CustomType.Constructor - private IntentRejectionStatement( - @CustomType.Parameter("messages") List messages, - @CustomType.Parameter("responseCard") @Nullable String responseCard) { - this.messages = messages; - this.responseCard = responseCard; - } + private @Nullable String responseCard; + private IntentRejectionStatement() {} /** * @return A set of messages, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). @@ -62,21 +55,18 @@ public static Builder builder() { public static Builder builder(IntentRejectionStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List messages; private @Nullable String responseCard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentRejectionStatement defaults) { Objects.requireNonNull(defaults); this.messages = defaults.messages; this.responseCard = defaults.responseCard; } + @CustomType.Setter public Builder messages(List messages) { this.messages = Objects.requireNonNull(messages); return this; @@ -84,11 +74,16 @@ public Builder messages(List messages) { public Builder messages(IntentRejectionStatementMessage... messages) { return messages(List.of(messages)); } + @CustomType.Setter public Builder responseCard(@Nullable String responseCard) { this.responseCard = responseCard; return this; - } public IntentRejectionStatement build() { - return new IntentRejectionStatement(messages, responseCard); + } + public IntentRejectionStatement build() { + final var o = new IntentRejectionStatement(); + o.messages = messages; + o.responseCard = responseCard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentRejectionStatementMessage.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentRejectionStatementMessage.java index 8946de1c87a..b73fbb14923 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentRejectionStatementMessage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentRejectionStatementMessage.java @@ -16,29 +16,20 @@ public final class IntentRejectionStatementMessage { * @return The text of the message. Must be less than or equal to 1000 characters in length. * */ - private final String content; + private String content; /** * @return The content type of the message string. * */ - private final String contentType; + private String contentType; /** * @return Identifies the message group that the message belongs to. When a group * is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). * */ - private final @Nullable Integer groupNumber; - - @CustomType.Constructor - private IntentRejectionStatementMessage( - @CustomType.Parameter("content") String content, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("groupNumber") @Nullable Integer groupNumber) { - this.content = content; - this.contentType = contentType; - this.groupNumber = groupNumber; - } + private @Nullable Integer groupNumber; + private IntentRejectionStatementMessage() {} /** * @return The text of the message. Must be less than or equal to 1000 characters in length. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(IntentRejectionStatementMessage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String content; private String contentType; private @Nullable Integer groupNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentRejectionStatementMessage defaults) { Objects.requireNonNull(defaults); this.content = defaults.content; @@ -86,19 +73,27 @@ public Builder(IntentRejectionStatementMessage defaults) { this.groupNumber = defaults.groupNumber; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder groupNumber(@Nullable Integer groupNumber) { this.groupNumber = groupNumber; return this; - } public IntentRejectionStatementMessage build() { - return new IntentRejectionStatementMessage(content, contentType, groupNumber); + } + public IntentRejectionStatementMessage build() { + final var o = new IntentRejectionStatementMessage(); + o.content = content; + o.contentType = contentType; + o.groupNumber = groupNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentSlot.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentSlot.java index e130ff118c0..8b82598b96d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentSlot.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentSlot.java @@ -18,12 +18,12 @@ public final class IntentSlot { * @return A description of the bot. Must be less than or equal to 200 characters in length. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length. * */ - private final String name; + private String name; /** * @return Directs Lex the order in which to elicit this slot value from the user. * For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for @@ -31,66 +31,45 @@ public final class IntentSlot { * values is arbitrary. Must be between 1 and 100. * */ - private final @Nullable Integer priority; + private @Nullable Integer priority; /** * @return The response card. Amazon Lex will substitute session attributes and * slot values into the response card. For more information, see * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html). Must be less than or equal to 50000 characters in length. * */ - private final @Nullable String responseCard; + private @Nullable String responseCard; /** * @return If you know a specific pattern with which users might respond to * an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This * is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length. * */ - private final @Nullable List sampleUtterances; + private @Nullable List sampleUtterances; /** * @return Specifies whether the slot is required or optional. * */ - private final String slotConstraint; + private String slotConstraint; /** * @return The type of the slot, either a custom slot type that you defined or one of * the built-in slot types. Must be less than or equal to 100 characters in length. * */ - private final String slotType; + private String slotType; /** * @return The version of the slot type. Must be less than or equal to 64 characters in length. * */ - private final @Nullable String slotTypeVersion; + private @Nullable String slotTypeVersion; /** * @return The prompt that Amazon Lex uses to elicit the slot value * from the user. Attributes are documented under prompt. * */ - private final @Nullable IntentSlotValueElicitationPrompt valueElicitationPrompt; - - @CustomType.Constructor - private IntentSlot( - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("priority") @Nullable Integer priority, - @CustomType.Parameter("responseCard") @Nullable String responseCard, - @CustomType.Parameter("sampleUtterances") @Nullable List sampleUtterances, - @CustomType.Parameter("slotConstraint") String slotConstraint, - @CustomType.Parameter("slotType") String slotType, - @CustomType.Parameter("slotTypeVersion") @Nullable String slotTypeVersion, - @CustomType.Parameter("valueElicitationPrompt") @Nullable IntentSlotValueElicitationPrompt valueElicitationPrompt) { - this.description = description; - this.name = name; - this.priority = priority; - this.responseCard = responseCard; - this.sampleUtterances = sampleUtterances; - this.slotConstraint = slotConstraint; - this.slotType = slotType; - this.slotTypeVersion = slotTypeVersion; - this.valueElicitationPrompt = valueElicitationPrompt; - } + private @Nullable IntentSlotValueElicitationPrompt valueElicitationPrompt; + private IntentSlot() {} /** * @return A description of the bot. Must be less than or equal to 200 characters in length. * @@ -171,7 +150,7 @@ public static Builder builder() { public static Builder builder(IntentSlot defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String description; private String name; @@ -182,11 +161,7 @@ public static final class Builder { private String slotType; private @Nullable String slotTypeVersion; private @Nullable IntentSlotValueElicitationPrompt valueElicitationPrompt; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentSlot defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; @@ -200,22 +175,27 @@ public Builder(IntentSlot defaults) { this.valueElicitationPrompt = defaults.valueElicitationPrompt; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder priority(@Nullable Integer priority) { this.priority = priority; return this; } + @CustomType.Setter public Builder responseCard(@Nullable String responseCard) { this.responseCard = responseCard; return this; } + @CustomType.Setter public Builder sampleUtterances(@Nullable List sampleUtterances) { this.sampleUtterances = sampleUtterances; return this; @@ -223,23 +203,38 @@ public Builder sampleUtterances(@Nullable List sampleUtterances) { public Builder sampleUtterances(String... sampleUtterances) { return sampleUtterances(List.of(sampleUtterances)); } + @CustomType.Setter public Builder slotConstraint(String slotConstraint) { this.slotConstraint = Objects.requireNonNull(slotConstraint); return this; } + @CustomType.Setter public Builder slotType(String slotType) { this.slotType = Objects.requireNonNull(slotType); return this; } + @CustomType.Setter public Builder slotTypeVersion(@Nullable String slotTypeVersion) { this.slotTypeVersion = slotTypeVersion; return this; } + @CustomType.Setter public Builder valueElicitationPrompt(@Nullable IntentSlotValueElicitationPrompt valueElicitationPrompt) { this.valueElicitationPrompt = valueElicitationPrompt; return this; - } public IntentSlot build() { - return new IntentSlot(description, name, priority, responseCard, sampleUtterances, slotConstraint, slotType, slotTypeVersion, valueElicitationPrompt); + } + public IntentSlot build() { + final var o = new IntentSlot(); + o.description = description; + o.name = name; + o.priority = priority; + o.responseCard = responseCard; + o.sampleUtterances = sampleUtterances; + o.slotConstraint = slotConstraint; + o.slotType = slotType; + o.slotTypeVersion = slotTypeVersion; + o.valueElicitationPrompt = valueElicitationPrompt; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentSlotValueElicitationPrompt.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentSlotValueElicitationPrompt.java index bb9b2eaa624..748ff05b9e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentSlotValueElicitationPrompt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentSlotValueElicitationPrompt.java @@ -18,32 +18,23 @@ public final class IntentSlotValueElicitationPrompt { * @return The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). * */ - private final Integer maxAttempts; + private Integer maxAttempts; /** * @return A set of messages, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup Language (SSML). * Attributes are documented under message. Must contain between 1 and 15 messages. * */ - private final List messages; + private List messages; /** * @return The response card. Amazon Lex will substitute session attributes and * slot values into the response card. For more information, see * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html). Must be less than or equal to 50000 characters in length. * */ - private final @Nullable String responseCard; - - @CustomType.Constructor - private IntentSlotValueElicitationPrompt( - @CustomType.Parameter("maxAttempts") Integer maxAttempts, - @CustomType.Parameter("messages") List messages, - @CustomType.Parameter("responseCard") @Nullable String responseCard) { - this.maxAttempts = maxAttempts; - this.messages = messages; - this.responseCard = responseCard; - } + private @Nullable String responseCard; + private IntentSlotValueElicitationPrompt() {} /** * @return The number of times to prompt the user for information. Must be a number between 1 and 5 (inclusive). * @@ -77,16 +68,12 @@ public static Builder builder() { public static Builder builder(IntentSlotValueElicitationPrompt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxAttempts; private List messages; private @Nullable String responseCard; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentSlotValueElicitationPrompt defaults) { Objects.requireNonNull(defaults); this.maxAttempts = defaults.maxAttempts; @@ -94,10 +81,12 @@ public Builder(IntentSlotValueElicitationPrompt defaults) { this.responseCard = defaults.responseCard; } + @CustomType.Setter public Builder maxAttempts(Integer maxAttempts) { this.maxAttempts = Objects.requireNonNull(maxAttempts); return this; } + @CustomType.Setter public Builder messages(List messages) { this.messages = Objects.requireNonNull(messages); return this; @@ -105,11 +94,17 @@ public Builder messages(List messages) public Builder messages(IntentSlotValueElicitationPromptMessage... messages) { return messages(List.of(messages)); } + @CustomType.Setter public Builder responseCard(@Nullable String responseCard) { this.responseCard = responseCard; return this; - } public IntentSlotValueElicitationPrompt build() { - return new IntentSlotValueElicitationPrompt(maxAttempts, messages, responseCard); + } + public IntentSlotValueElicitationPrompt build() { + final var o = new IntentSlotValueElicitationPrompt(); + o.maxAttempts = maxAttempts; + o.messages = messages; + o.responseCard = responseCard; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentSlotValueElicitationPromptMessage.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentSlotValueElicitationPromptMessage.java index 8065a68599b..206646b95c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentSlotValueElicitationPromptMessage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/IntentSlotValueElicitationPromptMessage.java @@ -16,29 +16,20 @@ public final class IntentSlotValueElicitationPromptMessage { * @return The text of the message. Must be less than or equal to 1000 characters in length. * */ - private final String content; + private String content; /** * @return The content type of the message string. * */ - private final String contentType; + private String contentType; /** * @return Identifies the message group that the message belongs to. When a group * is assigned to a message, Amazon Lex returns one message from each group in the response. Must be a number between 1 and 5 (inclusive). * */ - private final @Nullable Integer groupNumber; - - @CustomType.Constructor - private IntentSlotValueElicitationPromptMessage( - @CustomType.Parameter("content") String content, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("groupNumber") @Nullable Integer groupNumber) { - this.content = content; - this.contentType = contentType; - this.groupNumber = groupNumber; - } + private @Nullable Integer groupNumber; + private IntentSlotValueElicitationPromptMessage() {} /** * @return The text of the message. Must be less than or equal to 1000 characters in length. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(IntentSlotValueElicitationPromptMessage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String content; private String contentType; private @Nullable Integer groupNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IntentSlotValueElicitationPromptMessage defaults) { Objects.requireNonNull(defaults); this.content = defaults.content; @@ -86,19 +73,27 @@ public Builder(IntentSlotValueElicitationPromptMessage defaults) { this.groupNumber = defaults.groupNumber; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder groupNumber(@Nullable Integer groupNumber) { this.groupNumber = groupNumber; return this; - } public IntentSlotValueElicitationPromptMessage build() { - return new IntentSlotValueElicitationPromptMessage(content, contentType, groupNumber); + } + public IntentSlotValueElicitationPromptMessage build() { + final var o = new IntentSlotValueElicitationPromptMessage(); + o.content = content; + o.contentType = contentType; + o.groupNumber = groupNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/SlotTypeEnumerationValue.java b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/SlotTypeEnumerationValue.java index 6bebb0d5aba..11247b9c641 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/SlotTypeEnumerationValue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lex/outputs/SlotTypeEnumerationValue.java @@ -15,21 +15,14 @@ public final class SlotTypeEnumerationValue { * @return Additional values related to the slot type value. Each item must be less than or equal to 140 characters in length. * */ - private final @Nullable List synonyms; + private @Nullable List synonyms; /** * @return The value of the slot type. Must be less than or equal to 140 characters in length. * */ - private final String value; - - @CustomType.Constructor - private SlotTypeEnumerationValue( - @CustomType.Parameter("synonyms") @Nullable List synonyms, - @CustomType.Parameter("value") String value) { - this.synonyms = synonyms; - this.value = value; - } + private String value; + private SlotTypeEnumerationValue() {} /** * @return Additional values related to the slot type value. Each item must be less than or equal to 140 characters in length. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(SlotTypeEnumerationValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List synonyms; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SlotTypeEnumerationValue defaults) { Objects.requireNonNull(defaults); this.synonyms = defaults.synonyms; this.value = defaults.value; } + @CustomType.Setter public Builder synonyms(@Nullable List synonyms) { this.synonyms = synonyms; return this; @@ -74,11 +64,16 @@ public Builder synonyms(@Nullable List synonyms) { public Builder synonyms(String... synonyms) { return synonyms(List.of(synonyms)); } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public SlotTypeEnumerationValue build() { - return new SlotTypeEnumerationValue(synonyms, value); + } + public SlotTypeEnumerationValue build() { + final var o = new SlotTypeEnumerationValue(); + o.synonyms = synonyms; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServiceDeploymentVersionContainer.java b/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServiceDeploymentVersionContainer.java index 74b5fdb3c04..e3d844d6a9a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServiceDeploymentVersionContainer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServiceDeploymentVersionContainer.java @@ -16,42 +16,29 @@ public final class ContainerServiceDeploymentVersionContainer { * @return The launch command for the container. A list of string. * */ - private final @Nullable List commands; + private @Nullable List commands; /** * @return The name for the container. * */ - private final String containerName; + private String containerName; /** * @return A key-value map of the environment variables of the container. * */ - private final @Nullable Map environment; + private @Nullable Map environment; /** * @return The name of the image used for the container. Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (`:`). For example, `:container-service-1.mystaticwebsite.1`. Container images sourced from a public registry like Docker Hub don't start with a colon. For example, `nginx:latest` or `nginx`. * */ - private final String image; + private String image; /** * @return A key-value map of the open firewall ports of the container. Valid values: `HTTP`, `HTTPS`, `TCP`, `UDP`. * */ - private final @Nullable Map ports; - - @CustomType.Constructor - private ContainerServiceDeploymentVersionContainer( - @CustomType.Parameter("commands") @Nullable List commands, - @CustomType.Parameter("containerName") String containerName, - @CustomType.Parameter("environment") @Nullable Map environment, - @CustomType.Parameter("image") String image, - @CustomType.Parameter("ports") @Nullable Map ports) { - this.commands = commands; - this.containerName = containerName; - this.environment = environment; - this.image = image; - this.ports = ports; - } + private @Nullable Map ports; + private ContainerServiceDeploymentVersionContainer() {} /** * @return The launch command for the container. A list of string. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ContainerServiceDeploymentVersionContainer defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List commands; private String containerName; private @Nullable Map environment; private String image; private @Nullable Map ports; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ContainerServiceDeploymentVersionContainer defaults) { Objects.requireNonNull(defaults); this.commands = defaults.commands; @@ -116,6 +99,7 @@ public Builder(ContainerServiceDeploymentVersionContainer defaults) { this.ports = defaults.ports; } + @CustomType.Setter public Builder commands(@Nullable List commands) { this.commands = commands; return this; @@ -123,23 +107,34 @@ public Builder commands(@Nullable List commands) { public Builder commands(String... commands) { return commands(List.of(commands)); } + @CustomType.Setter public Builder containerName(String containerName) { this.containerName = Objects.requireNonNull(containerName); return this; } + @CustomType.Setter public Builder environment(@Nullable Map environment) { this.environment = environment; return this; } + @CustomType.Setter public Builder image(String image) { this.image = Objects.requireNonNull(image); return this; } + @CustomType.Setter public Builder ports(@Nullable Map ports) { this.ports = ports; return this; - } public ContainerServiceDeploymentVersionContainer build() { - return new ContainerServiceDeploymentVersionContainer(commands, containerName, environment, image, ports); + } + public ContainerServiceDeploymentVersionContainer build() { + final var o = new ContainerServiceDeploymentVersionContainer(); + o.commands = commands; + o.containerName = containerName; + o.environment = environment; + o.image = image; + o.ports = ports; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServiceDeploymentVersionPublicEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServiceDeploymentVersionPublicEndpoint.java index 3d3e5b39f8c..e013f4cfecd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServiceDeploymentVersionPublicEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServiceDeploymentVersionPublicEndpoint.java @@ -15,28 +15,19 @@ public final class ContainerServiceDeploymentVersionPublicEndpoint { * @return The name of the container for the endpoint. * */ - private final String containerName; + private String containerName; /** * @return The port of the container to which traffic is forwarded to. * */ - private final Integer containerPort; + private Integer containerPort; /** * @return A configuration block that describes the health check configuration of the container. Detailed below. * */ - private final ContainerServiceDeploymentVersionPublicEndpointHealthCheck healthCheck; - - @CustomType.Constructor - private ContainerServiceDeploymentVersionPublicEndpoint( - @CustomType.Parameter("containerName") String containerName, - @CustomType.Parameter("containerPort") Integer containerPort, - @CustomType.Parameter("healthCheck") ContainerServiceDeploymentVersionPublicEndpointHealthCheck healthCheck) { - this.containerName = containerName; - this.containerPort = containerPort; - this.healthCheck = healthCheck; - } + private ContainerServiceDeploymentVersionPublicEndpointHealthCheck healthCheck; + private ContainerServiceDeploymentVersionPublicEndpoint() {} /** * @return The name of the container for the endpoint. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ContainerServiceDeploymentVersionPublicEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String containerName; private Integer containerPort; private ContainerServiceDeploymentVersionPublicEndpointHealthCheck healthCheck; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ContainerServiceDeploymentVersionPublicEndpoint defaults) { Objects.requireNonNull(defaults); this.containerName = defaults.containerName; @@ -83,19 +70,27 @@ public Builder(ContainerServiceDeploymentVersionPublicEndpoint defaults) { this.healthCheck = defaults.healthCheck; } + @CustomType.Setter public Builder containerName(String containerName) { this.containerName = Objects.requireNonNull(containerName); return this; } + @CustomType.Setter public Builder containerPort(Integer containerPort) { this.containerPort = Objects.requireNonNull(containerPort); return this; } + @CustomType.Setter public Builder healthCheck(ContainerServiceDeploymentVersionPublicEndpointHealthCheck healthCheck) { this.healthCheck = Objects.requireNonNull(healthCheck); return this; - } public ContainerServiceDeploymentVersionPublicEndpoint build() { - return new ContainerServiceDeploymentVersionPublicEndpoint(containerName, containerPort, healthCheck); + } + public ContainerServiceDeploymentVersionPublicEndpoint build() { + final var o = new ContainerServiceDeploymentVersionPublicEndpoint(); + o.containerName = containerName; + o.containerPort = containerPort; + o.healthCheck = healthCheck; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServiceDeploymentVersionPublicEndpointHealthCheck.java b/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServiceDeploymentVersionPublicEndpointHealthCheck.java index ab02198072b..0820bee4e60 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServiceDeploymentVersionPublicEndpointHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServiceDeploymentVersionPublicEndpointHealthCheck.java @@ -16,49 +16,34 @@ public final class ContainerServiceDeploymentVersionPublicEndpointHealthCheck { * @return The number of consecutive health checks successes required before moving the container to the Healthy state. Defaults to 2. * */ - private final @Nullable Integer healthyThreshold; + private @Nullable Integer healthyThreshold; /** * @return The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. Defaults to 5. * */ - private final @Nullable Integer intervalSeconds; + private @Nullable Integer intervalSeconds; /** * @return The path on the container on which to perform the health check. Defaults to "/". * */ - private final @Nullable String path; + private @Nullable String path; /** * @return The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. Defaults to "200-499". * */ - private final @Nullable String successCodes; + private @Nullable String successCodes; /** * @return The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. Defaults to 2. * */ - private final @Nullable Integer timeoutSeconds; + private @Nullable Integer timeoutSeconds; /** * @return The number of consecutive health checks failures required before moving the container to the Unhealthy state. Defaults to 2. * */ - private final @Nullable Integer unhealthyThreshold; - - @CustomType.Constructor - private ContainerServiceDeploymentVersionPublicEndpointHealthCheck( - @CustomType.Parameter("healthyThreshold") @Nullable Integer healthyThreshold, - @CustomType.Parameter("intervalSeconds") @Nullable Integer intervalSeconds, - @CustomType.Parameter("path") @Nullable String path, - @CustomType.Parameter("successCodes") @Nullable String successCodes, - @CustomType.Parameter("timeoutSeconds") @Nullable Integer timeoutSeconds, - @CustomType.Parameter("unhealthyThreshold") @Nullable Integer unhealthyThreshold) { - this.healthyThreshold = healthyThreshold; - this.intervalSeconds = intervalSeconds; - this.path = path; - this.successCodes = successCodes; - this.timeoutSeconds = timeoutSeconds; - this.unhealthyThreshold = unhealthyThreshold; - } + private @Nullable Integer unhealthyThreshold; + private ContainerServiceDeploymentVersionPublicEndpointHealthCheck() {} /** * @return The number of consecutive health checks successes required before moving the container to the Healthy state. Defaults to 2. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(ContainerServiceDeploymentVersionPublicEndpointHealthCheck defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer healthyThreshold; private @Nullable Integer intervalSeconds; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable String successCodes; private @Nullable Integer timeoutSeconds; private @Nullable Integer unhealthyThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ContainerServiceDeploymentVersionPublicEndpointHealthCheck defaults) { Objects.requireNonNull(defaults); this.healthyThreshold = defaults.healthyThreshold; @@ -132,31 +113,45 @@ public Builder(ContainerServiceDeploymentVersionPublicEndpointHealthCheck defaul this.unhealthyThreshold = defaults.unhealthyThreshold; } + @CustomType.Setter public Builder healthyThreshold(@Nullable Integer healthyThreshold) { this.healthyThreshold = healthyThreshold; return this; } + @CustomType.Setter public Builder intervalSeconds(@Nullable Integer intervalSeconds) { this.intervalSeconds = intervalSeconds; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; } + @CustomType.Setter public Builder successCodes(@Nullable String successCodes) { this.successCodes = successCodes; return this; } + @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } + @CustomType.Setter public Builder unhealthyThreshold(@Nullable Integer unhealthyThreshold) { this.unhealthyThreshold = unhealthyThreshold; return this; - } public ContainerServiceDeploymentVersionPublicEndpointHealthCheck build() { - return new ContainerServiceDeploymentVersionPublicEndpointHealthCheck(healthyThreshold, intervalSeconds, path, successCodes, timeoutSeconds, unhealthyThreshold); + } + public ContainerServiceDeploymentVersionPublicEndpointHealthCheck build() { + final var o = new ContainerServiceDeploymentVersionPublicEndpointHealthCheck(); + o.healthyThreshold = healthyThreshold; + o.intervalSeconds = intervalSeconds; + o.path = path; + o.successCodes = successCodes; + o.timeoutSeconds = timeoutSeconds; + o.unhealthyThreshold = unhealthyThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServicePublicDomainNames.java b/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServicePublicDomainNames.java index 431d33c014d..06a903b08d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServicePublicDomainNames.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServicePublicDomainNames.java @@ -10,13 +10,9 @@ @CustomType public final class ContainerServicePublicDomainNames { - private final List certificates; - - @CustomType.Constructor - private ContainerServicePublicDomainNames(@CustomType.Parameter("certificates") List certificates) { - this.certificates = certificates; - } + private List certificates; + private ContainerServicePublicDomainNames() {} public List certificates() { return this.certificates; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(ContainerServicePublicDomainNames defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List certificates; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ContainerServicePublicDomainNames defaults) { Objects.requireNonNull(defaults); this.certificates = defaults.certificates; } + @CustomType.Setter public Builder certificates(List certificates) { this.certificates = Objects.requireNonNull(certificates); return this; } public Builder certificates(ContainerServicePublicDomainNamesCertificate... certificates) { return certificates(List.of(certificates)); - } public ContainerServicePublicDomainNames build() { - return new ContainerServicePublicDomainNames(certificates); + } + public ContainerServicePublicDomainNames build() { + final var o = new ContainerServicePublicDomainNames(); + o.certificates = certificates; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServicePublicDomainNamesCertificate.java b/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServicePublicDomainNamesCertificate.java index 2d58fec230c..013e6ad592f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServicePublicDomainNamesCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/ContainerServicePublicDomainNamesCertificate.java @@ -10,17 +10,10 @@ @CustomType public final class ContainerServicePublicDomainNamesCertificate { - private final String certificateName; - private final List domainNames; - - @CustomType.Constructor - private ContainerServicePublicDomainNamesCertificate( - @CustomType.Parameter("certificateName") String certificateName, - @CustomType.Parameter("domainNames") List domainNames) { - this.certificateName = certificateName; - this.domainNames = domainNames; - } + private String certificateName; + private List domainNames; + private ContainerServicePublicDomainNamesCertificate() {} public String certificateName() { return this.certificateName; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(ContainerServicePublicDomainNamesCertificate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificateName; private List domainNames; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ContainerServicePublicDomainNamesCertificate defaults) { Objects.requireNonNull(defaults); this.certificateName = defaults.certificateName; this.domainNames = defaults.domainNames; } + @CustomType.Setter public Builder certificateName(String certificateName) { this.certificateName = Objects.requireNonNull(certificateName); return this; } + @CustomType.Setter public Builder domainNames(List domainNames) { this.domainNames = Objects.requireNonNull(domainNames); return this; } public Builder domainNames(String... domainNames) { return domainNames(List.of(domainNames)); - } public ContainerServicePublicDomainNamesCertificate build() { - return new ContainerServicePublicDomainNamesCertificate(certificateName, domainNames); + } + public ContainerServicePublicDomainNamesCertificate build() { + final var o = new ContainerServicePublicDomainNamesCertificate(); + o.certificateName = certificateName; + o.domainNames = domainNames; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/InstancePublicPortsPortInfo.java b/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/InstancePublicPortsPortInfo.java index d6436ff19e2..1840ed5a804 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/InstancePublicPortsPortInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/lightsail/outputs/InstancePublicPortsPortInfo.java @@ -16,35 +16,24 @@ public final class InstancePublicPortsPortInfo { * @return Set of CIDR blocks. * */ - private final @Nullable List cidrs; + private @Nullable List cidrs; /** * @return First port in a range of open ports on an instance. * */ - private final Integer fromPort; + private Integer fromPort; /** * @return IP protocol name. Valid values are `tcp`, `all`, `udp`, and `icmp`. * */ - private final String protocol; + private String protocol; /** * @return Last port in a range of open ports on an instance. * */ - private final Integer toPort; - - @CustomType.Constructor - private InstancePublicPortsPortInfo( - @CustomType.Parameter("cidrs") @Nullable List cidrs, - @CustomType.Parameter("fromPort") Integer fromPort, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("toPort") Integer toPort) { - this.cidrs = cidrs; - this.fromPort = fromPort; - this.protocol = protocol; - this.toPort = toPort; - } + private Integer toPort; + private InstancePublicPortsPortInfo() {} /** * @return Set of CIDR blocks. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(InstancePublicPortsPortInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List cidrs; private Integer fromPort; private String protocol; private Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstancePublicPortsPortInfo defaults) { Objects.requireNonNull(defaults); this.cidrs = defaults.cidrs; @@ -100,6 +85,7 @@ public Builder(InstancePublicPortsPortInfo defaults) { this.toPort = defaults.toPort; } + @CustomType.Setter public Builder cidrs(@Nullable List cidrs) { this.cidrs = cidrs; return this; @@ -107,19 +93,28 @@ public Builder cidrs(@Nullable List cidrs) { public Builder cidrs(String... cidrs) { return cidrs(List.of(cidrs)); } + @CustomType.Setter public Builder fromPort(Integer fromPort) { this.fromPort = Objects.requireNonNull(fromPort); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder toPort(Integer toPort) { this.toPort = Objects.requireNonNull(toPort); return this; - } public InstancePublicPortsPortInfo build() { - return new InstancePublicPortsPortInfo(cidrs, fromPort, protocol, toPort); + } + public InstancePublicPortsPortInfo build() { + final var o = new InstancePublicPortsPortInfo(); + o.cidrs = cidrs; + o.fromPort = fromPort; + o.protocol = protocol; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetGeofenceCollectionResult.java b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetGeofenceCollectionResult.java index b67df515a29..ae522a656f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetGeofenceCollectionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetGeofenceCollectionResult.java @@ -14,59 +14,40 @@ public final class GetGeofenceCollectionResult { * @return The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource across all AWS. * */ - private final String collectionArn; - private final String collectionName; + private String collectionArn; + private String collectionName; /** * @return The timestamp for when the geofence collection resource was created in ISO 8601 format. * */ - private final String createTime; + private String createTime; /** * @return The optional description of the geofence collection resource. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource. * */ - private final String kmsKeyId; + private String kmsKeyId; /** * @return Key-value map of resource tags for the geofence collection. * */ - private final Map tags; + private Map tags; /** * @return The timestamp for when the geofence collection resource was last updated in ISO 8601 format. * */ - private final String updateTime; - - @CustomType.Constructor - private GetGeofenceCollectionResult( - @CustomType.Parameter("collectionArn") String collectionArn, - @CustomType.Parameter("collectionName") String collectionName, - @CustomType.Parameter("createTime") String createTime, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("updateTime") String updateTime) { - this.collectionArn = collectionArn; - this.collectionName = collectionName; - this.createTime = createTime; - this.description = description; - this.id = id; - this.kmsKeyId = kmsKeyId; - this.tags = tags; - this.updateTime = updateTime; - } + private String updateTime; + private GetGeofenceCollectionResult() {} /** * @return The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource across all AWS. * @@ -127,7 +108,7 @@ public static Builder builder() { public static Builder builder(GetGeofenceCollectionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String collectionArn; private String collectionName; @@ -137,11 +118,7 @@ public static final class Builder { private String kmsKeyId; private Map tags; private String updateTime; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetGeofenceCollectionResult defaults) { Objects.requireNonNull(defaults); this.collectionArn = defaults.collectionArn; @@ -154,39 +131,57 @@ public Builder(GetGeofenceCollectionResult defaults) { this.updateTime = defaults.updateTime; } + @CustomType.Setter public Builder collectionArn(String collectionArn) { this.collectionArn = Objects.requireNonNull(collectionArn); return this; } + @CustomType.Setter public Builder collectionName(String collectionName) { this.collectionName = Objects.requireNonNull(collectionName); return this; } + @CustomType.Setter public Builder createTime(String createTime) { this.createTime = Objects.requireNonNull(createTime); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder updateTime(String updateTime) { this.updateTime = Objects.requireNonNull(updateTime); return this; - } public GetGeofenceCollectionResult build() { - return new GetGeofenceCollectionResult(collectionArn, collectionName, createTime, description, id, kmsKeyId, tags, updateTime); + } + public GetGeofenceCollectionResult build() { + final var o = new GetGeofenceCollectionResult(); + o.collectionArn = collectionArn; + o.collectionName = collectionName; + o.createTime = createTime; + o.description = description; + o.id = id; + o.kmsKeyId = kmsKeyId; + o.tags = tags; + o.updateTime = updateTime; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetMapConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetMapConfiguration.java index 0ec543d2df3..b775f865b6d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetMapConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetMapConfiguration.java @@ -13,13 +13,9 @@ public final class GetMapConfiguration { * @return The map style selected from an available data provider. * */ - private final String style; - - @CustomType.Constructor - private GetMapConfiguration(@CustomType.Parameter("style") String style) { - this.style = style; - } + private String style; + private GetMapConfiguration() {} /** * @return The map style selected from an available data provider. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetMapConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String style; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMapConfiguration defaults) { Objects.requireNonNull(defaults); this.style = defaults.style; } + @CustomType.Setter public Builder style(String style) { this.style = Objects.requireNonNull(style); return this; - } public GetMapConfiguration build() { - return new GetMapConfiguration(style); + } + public GetMapConfiguration build() { + final var o = new GetMapConfiguration(); + o.style = style; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetMapResult.java b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetMapResult.java index 157d84fd941..6605afe5c39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetMapResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetMapResult.java @@ -16,59 +16,40 @@ public final class GetMapResult { * @return List of configurations that specify the map tile style selected from a partner data provider. * */ - private final List configurations; + private List configurations; /** * @return The timestamp for when the map resource was created in ISO 8601 format. * */ - private final String createTime; + private String createTime; /** * @return The optional description for the map resource. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The Amazon Resource Name (ARN) for the map resource. * */ - private final String mapArn; - private final String mapName; + private String mapArn; + private String mapName; /** * @return Key-value map of resource tags for the map. * */ - private final Map tags; + private Map tags; /** * @return The timestamp for when the map resource was last updated in ISO 8601 format. * */ - private final String updateTime; - - @CustomType.Constructor - private GetMapResult( - @CustomType.Parameter("configurations") List configurations, - @CustomType.Parameter("createTime") String createTime, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("mapArn") String mapArn, - @CustomType.Parameter("mapName") String mapName, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("updateTime") String updateTime) { - this.configurations = configurations; - this.createTime = createTime; - this.description = description; - this.id = id; - this.mapArn = mapArn; - this.mapName = mapName; - this.tags = tags; - this.updateTime = updateTime; - } + private String updateTime; + private GetMapResult() {} /** * @return List of configurations that specify the map tile style selected from a partner data provider. * @@ -129,7 +110,7 @@ public static Builder builder() { public static Builder builder(GetMapResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List configurations; private String createTime; @@ -139,11 +120,7 @@ public static final class Builder { private String mapName; private Map tags; private String updateTime; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMapResult defaults) { Objects.requireNonNull(defaults); this.configurations = defaults.configurations; @@ -156,6 +133,7 @@ public Builder(GetMapResult defaults) { this.updateTime = defaults.updateTime; } + @CustomType.Setter public Builder configurations(List configurations) { this.configurations = Objects.requireNonNull(configurations); return this; @@ -163,35 +141,52 @@ public Builder configurations(List configurations) { public Builder configurations(GetMapConfiguration... configurations) { return configurations(List.of(configurations)); } + @CustomType.Setter public Builder createTime(String createTime) { this.createTime = Objects.requireNonNull(createTime); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder mapArn(String mapArn) { this.mapArn = Objects.requireNonNull(mapArn); return this; } + @CustomType.Setter public Builder mapName(String mapName) { this.mapName = Objects.requireNonNull(mapName); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder updateTime(String updateTime) { this.updateTime = Objects.requireNonNull(updateTime); return this; - } public GetMapResult build() { - return new GetMapResult(configurations, createTime, description, id, mapArn, mapName, tags, updateTime); + } + public GetMapResult build() { + final var o = new GetMapResult(); + o.configurations = configurations; + o.createTime = createTime; + o.description = description; + o.id = id; + o.mapArn = mapArn; + o.mapName = mapName; + o.tags = tags; + o.updateTime = updateTime; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetPlaceIndexDataSourceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetPlaceIndexDataSourceConfiguration.java index 47dcbe2ae8c..0dafab2d1df 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetPlaceIndexDataSourceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetPlaceIndexDataSourceConfiguration.java @@ -9,13 +9,9 @@ @CustomType public final class GetPlaceIndexDataSourceConfiguration { - private final String intendedUse; - - @CustomType.Constructor - private GetPlaceIndexDataSourceConfiguration(@CustomType.Parameter("intendedUse") String intendedUse) { - this.intendedUse = intendedUse; - } + private String intendedUse; + private GetPlaceIndexDataSourceConfiguration() {} public String intendedUse() { return this.intendedUse; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetPlaceIndexDataSourceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String intendedUse; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPlaceIndexDataSourceConfiguration defaults) { Objects.requireNonNull(defaults); this.intendedUse = defaults.intendedUse; } + @CustomType.Setter public Builder intendedUse(String intendedUse) { this.intendedUse = Objects.requireNonNull(intendedUse); return this; - } public GetPlaceIndexDataSourceConfiguration build() { - return new GetPlaceIndexDataSourceConfiguration(intendedUse); + } + public GetPlaceIndexDataSourceConfiguration build() { + final var o = new GetPlaceIndexDataSourceConfiguration(); + o.intendedUse = intendedUse; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetPlaceIndexResult.java b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetPlaceIndexResult.java index 640793544b5..c04f8943b80 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetPlaceIndexResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetPlaceIndexResult.java @@ -16,66 +16,45 @@ public final class GetPlaceIndexResult { * @return The timestamp for when the place index resource was created in ISO 8601 format. * */ - private final String createTime; + private String createTime; /** * @return The data provider of geospatial data. * */ - private final String dataSource; + private String dataSource; /** * @return List of configurations that specify data storage option for requesting Places. * */ - private final List dataSourceConfigurations; + private List dataSourceConfigurations; /** * @return The optional description for the place index resource. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The Amazon Resource Name (ARN) for the place index resource. * */ - private final String indexArn; - private final String indexName; + private String indexArn; + private String indexName; /** * @return Key-value map of resource tags for the place index. * */ - private final Map tags; + private Map tags; /** * @return The timestamp for when the place index resource was last updated in ISO 8601 format. * */ - private final String updateTime; - - @CustomType.Constructor - private GetPlaceIndexResult( - @CustomType.Parameter("createTime") String createTime, - @CustomType.Parameter("dataSource") String dataSource, - @CustomType.Parameter("dataSourceConfigurations") List dataSourceConfigurations, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("indexArn") String indexArn, - @CustomType.Parameter("indexName") String indexName, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("updateTime") String updateTime) { - this.createTime = createTime; - this.dataSource = dataSource; - this.dataSourceConfigurations = dataSourceConfigurations; - this.description = description; - this.id = id; - this.indexArn = indexArn; - this.indexName = indexName; - this.tags = tags; - this.updateTime = updateTime; - } + private String updateTime; + private GetPlaceIndexResult() {} /** * @return The timestamp for when the place index resource was created in ISO 8601 format. * @@ -143,7 +122,7 @@ public static Builder builder() { public static Builder builder(GetPlaceIndexResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String createTime; private String dataSource; @@ -154,11 +133,7 @@ public static final class Builder { private String indexName; private Map tags; private String updateTime; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPlaceIndexResult defaults) { Objects.requireNonNull(defaults); this.createTime = defaults.createTime; @@ -172,14 +147,17 @@ public Builder(GetPlaceIndexResult defaults) { this.updateTime = defaults.updateTime; } + @CustomType.Setter public Builder createTime(String createTime) { this.createTime = Objects.requireNonNull(createTime); return this; } + @CustomType.Setter public Builder dataSource(String dataSource) { this.dataSource = Objects.requireNonNull(dataSource); return this; } + @CustomType.Setter public Builder dataSourceConfigurations(List dataSourceConfigurations) { this.dataSourceConfigurations = Objects.requireNonNull(dataSourceConfigurations); return this; @@ -187,31 +165,48 @@ public Builder dataSourceConfigurations(List tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder updateTime(String updateTime) { this.updateTime = Objects.requireNonNull(updateTime); return this; - } public GetPlaceIndexResult build() { - return new GetPlaceIndexResult(createTime, dataSource, dataSourceConfigurations, description, id, indexArn, indexName, tags, updateTime); + } + public GetPlaceIndexResult build() { + final var o = new GetPlaceIndexResult(); + o.createTime = createTime; + o.dataSource = dataSource; + o.dataSourceConfigurations = dataSourceConfigurations; + o.description = description; + o.id = id; + o.indexArn = indexArn; + o.indexName = indexName; + o.tags = tags; + o.updateTime = updateTime; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetRouteCalculatorResult.java b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetRouteCalculatorResult.java index 6b9a71daa62..d6e3eab1c7e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetRouteCalculatorResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetRouteCalculatorResult.java @@ -14,59 +14,40 @@ public final class GetRouteCalculatorResult { * @return The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS. * */ - private final String calculatorArn; - private final String calculatorName; + private String calculatorArn; + private String calculatorName; /** * @return The timestamp for when the route calculator resource was created in ISO 8601 format. * */ - private final String createTime; + private String createTime; /** * @return The data provider of traffic and road network data. * */ - private final String dataSource; + private String dataSource; /** * @return The optional description of the route calculator resource. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Key-value map of resource tags for the route calculator. * */ - private final Map tags; + private Map tags; /** * @return The timestamp for when the route calculator resource was last updated in ISO 8601 format. * */ - private final String updateTime; - - @CustomType.Constructor - private GetRouteCalculatorResult( - @CustomType.Parameter("calculatorArn") String calculatorArn, - @CustomType.Parameter("calculatorName") String calculatorName, - @CustomType.Parameter("createTime") String createTime, - @CustomType.Parameter("dataSource") String dataSource, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("updateTime") String updateTime) { - this.calculatorArn = calculatorArn; - this.calculatorName = calculatorName; - this.createTime = createTime; - this.dataSource = dataSource; - this.description = description; - this.id = id; - this.tags = tags; - this.updateTime = updateTime; - } + private String updateTime; + private GetRouteCalculatorResult() {} /** * @return The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS. * @@ -127,7 +108,7 @@ public static Builder builder() { public static Builder builder(GetRouteCalculatorResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String calculatorArn; private String calculatorName; @@ -137,11 +118,7 @@ public static final class Builder { private String id; private Map tags; private String updateTime; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRouteCalculatorResult defaults) { Objects.requireNonNull(defaults); this.calculatorArn = defaults.calculatorArn; @@ -154,39 +131,57 @@ public Builder(GetRouteCalculatorResult defaults) { this.updateTime = defaults.updateTime; } + @CustomType.Setter public Builder calculatorArn(String calculatorArn) { this.calculatorArn = Objects.requireNonNull(calculatorArn); return this; } + @CustomType.Setter public Builder calculatorName(String calculatorName) { this.calculatorName = Objects.requireNonNull(calculatorName); return this; } + @CustomType.Setter public Builder createTime(String createTime) { this.createTime = Objects.requireNonNull(createTime); return this; } + @CustomType.Setter public Builder dataSource(String dataSource) { this.dataSource = Objects.requireNonNull(dataSource); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder updateTime(String updateTime) { this.updateTime = Objects.requireNonNull(updateTime); return this; - } public GetRouteCalculatorResult build() { - return new GetRouteCalculatorResult(calculatorArn, calculatorName, createTime, dataSource, description, id, tags, updateTime); + } + public GetRouteCalculatorResult build() { + final var o = new GetRouteCalculatorResult(); + o.calculatorArn = calculatorArn; + o.calculatorName = calculatorName; + o.createTime = createTime; + o.dataSource = dataSource; + o.description = description; + o.id = id; + o.tags = tags; + o.updateTime = updateTime; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetTrackerResult.java b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetTrackerResult.java index e6d714e6b74..5c17144f754 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetTrackerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/GetTrackerResult.java @@ -14,66 +14,45 @@ public final class GetTrackerResult { * @return The timestamp for when the tracker resource was created in ISO 8601 format. * */ - private final String createTime; + private String createTime; /** * @return The optional description for the tracker resource. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource. * */ - private final String kmsKeyId; + private String kmsKeyId; /** * @return The position filtering method of the tracker resource. * */ - private final String positionFiltering; + private String positionFiltering; /** * @return Key-value map of resource tags for the tracker. * */ - private final Map tags; + private Map tags; /** * @return The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS. * */ - private final String trackerArn; - private final String trackerName; + private String trackerArn; + private String trackerName; /** * @return The timestamp for when the tracker resource was last updated in ISO 8601 format. * */ - private final String updateTime; - - @CustomType.Constructor - private GetTrackerResult( - @CustomType.Parameter("createTime") String createTime, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("positionFiltering") String positionFiltering, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("trackerArn") String trackerArn, - @CustomType.Parameter("trackerName") String trackerName, - @CustomType.Parameter("updateTime") String updateTime) { - this.createTime = createTime; - this.description = description; - this.id = id; - this.kmsKeyId = kmsKeyId; - this.positionFiltering = positionFiltering; - this.tags = tags; - this.trackerArn = trackerArn; - this.trackerName = trackerName; - this.updateTime = updateTime; - } + private String updateTime; + private GetTrackerResult() {} /** * @return The timestamp for when the tracker resource was created in ISO 8601 format. * @@ -141,7 +120,7 @@ public static Builder builder() { public static Builder builder(GetTrackerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String createTime; private String description; @@ -152,11 +131,7 @@ public static final class Builder { private String trackerArn; private String trackerName; private String updateTime; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTrackerResult defaults) { Objects.requireNonNull(defaults); this.createTime = defaults.createTime; @@ -170,43 +145,63 @@ public Builder(GetTrackerResult defaults) { this.updateTime = defaults.updateTime; } + @CustomType.Setter public Builder createTime(String createTime) { this.createTime = Objects.requireNonNull(createTime); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder positionFiltering(String positionFiltering) { this.positionFiltering = Objects.requireNonNull(positionFiltering); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder trackerArn(String trackerArn) { this.trackerArn = Objects.requireNonNull(trackerArn); return this; } + @CustomType.Setter public Builder trackerName(String trackerName) { this.trackerName = Objects.requireNonNull(trackerName); return this; } + @CustomType.Setter public Builder updateTime(String updateTime) { this.updateTime = Objects.requireNonNull(updateTime); return this; - } public GetTrackerResult build() { - return new GetTrackerResult(createTime, description, id, kmsKeyId, positionFiltering, tags, trackerArn, trackerName, updateTime); + } + public GetTrackerResult build() { + final var o = new GetTrackerResult(); + o.createTime = createTime; + o.description = description; + o.id = id; + o.kmsKeyId = kmsKeyId; + o.positionFiltering = positionFiltering; + o.tags = tags; + o.trackerArn = trackerArn; + o.trackerName = trackerName; + o.updateTime = updateTime; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/MapConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/MapConfiguration.java index 5b0a472ba95..c72280be3fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/MapConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/MapConfiguration.java @@ -13,13 +13,9 @@ public final class MapConfiguration { * @return Specifies the map style selected from an available data provider. Valid values can be found in the [Location Service CreateMap API Reference](https://docs.aws.amazon.com/location/latest/APIReference/API_CreateMap.html). * */ - private final String style; - - @CustomType.Constructor - private MapConfiguration(@CustomType.Parameter("style") String style) { - this.style = style; - } + private String style; + private MapConfiguration() {} /** * @return Specifies the map style selected from an available data provider. Valid values can be found in the [Location Service CreateMap API Reference](https://docs.aws.amazon.com/location/latest/APIReference/API_CreateMap.html). * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(MapConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String style; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MapConfiguration defaults) { Objects.requireNonNull(defaults); this.style = defaults.style; } + @CustomType.Setter public Builder style(String style) { this.style = Objects.requireNonNull(style); return this; - } public MapConfiguration build() { - return new MapConfiguration(style); + } + public MapConfiguration build() { + final var o = new MapConfiguration(); + o.style = style; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/PlaceIndexDataSourceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/PlaceIndexDataSourceConfiguration.java index ac33f5e4c72..550282b6231 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/location/outputs/PlaceIndexDataSourceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/location/outputs/PlaceIndexDataSourceConfiguration.java @@ -15,13 +15,9 @@ public final class PlaceIndexDataSourceConfiguration { * @return Specifies how the results of an operation will be stored by the caller. Valid values: `SingleUse`, `Storage`. Default: `SingleUse`. * */ - private final @Nullable String intendedUse; - - @CustomType.Constructor - private PlaceIndexDataSourceConfiguration(@CustomType.Parameter("intendedUse") @Nullable String intendedUse) { - this.intendedUse = intendedUse; - } + private @Nullable String intendedUse; + private PlaceIndexDataSourceConfiguration() {} /** * @return Specifies how the results of an operation will be stored by the caller. Valid values: `SingleUse`, `Storage`. Default: `SingleUse`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(PlaceIndexDataSourceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String intendedUse; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PlaceIndexDataSourceConfiguration defaults) { Objects.requireNonNull(defaults); this.intendedUse = defaults.intendedUse; } + @CustomType.Setter public Builder intendedUse(@Nullable String intendedUse) { this.intendedUse = intendedUse; return this; - } public PlaceIndexDataSourceConfiguration build() { - return new PlaceIndexDataSourceConfiguration(intendedUse); + } + public PlaceIndexDataSourceConfiguration build() { + final var o = new PlaceIndexDataSourceConfiguration(); + o.intendedUse = intendedUse; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie/outputs/FindingsFilterFindingCriteria.java b/sdk/java/src/main/java/com/pulumi/aws/macie/outputs/FindingsFilterFindingCriteria.java index 0b0b61d43aa..6fb6187c1c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie/outputs/FindingsFilterFindingCriteria.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie/outputs/FindingsFilterFindingCriteria.java @@ -15,13 +15,9 @@ public final class FindingsFilterFindingCriteria { * @return A condition that specifies the property, operator, and one or more values to use to filter the results. (documented below) * */ - private final @Nullable List criterions; - - @CustomType.Constructor - private FindingsFilterFindingCriteria(@CustomType.Parameter("criterions") @Nullable List criterions) { - this.criterions = criterions; - } + private @Nullable List criterions; + private FindingsFilterFindingCriteria() {} /** * @return A condition that specifies the property, operator, and one or more values to use to filter the results. (documented below) * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(FindingsFilterFindingCriteria defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List criterions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FindingsFilterFindingCriteria defaults) { Objects.requireNonNull(defaults); this.criterions = defaults.criterions; } + @CustomType.Setter public Builder criterions(@Nullable List criterions) { this.criterions = criterions; return this; } public Builder criterions(FindingsFilterFindingCriteriaCriterion... criterions) { return criterions(List.of(criterions)); - } public FindingsFilterFindingCriteria build() { - return new FindingsFilterFindingCriteria(criterions); + } + public FindingsFilterFindingCriteria build() { + final var o = new FindingsFilterFindingCriteria(); + o.criterions = criterions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie/outputs/FindingsFilterFindingCriteriaCriterion.java b/sdk/java/src/main/java/com/pulumi/aws/macie/outputs/FindingsFilterFindingCriteriaCriterion.java index 535ce05a0a9..7088fb1808f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie/outputs/FindingsFilterFindingCriteriaCriterion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie/outputs/FindingsFilterFindingCriteriaCriterion.java @@ -16,63 +16,44 @@ public final class FindingsFilterFindingCriteriaCriterion { * @return The value for the property exclusively matches (equals an exact match for) all the specified values. If you specify multiple values, Amazon Macie uses AND logic to join the values. * */ - private final @Nullable List eqExactMatches; + private @Nullable List eqExactMatches; /** * @return The value for the property matches (equals) the specified value. If you specify multiple values, Amazon Macie uses OR logic to join the values. * */ - private final @Nullable List eqs; + private @Nullable List eqs; /** * @return The name of the field to be evaluated. * */ - private final String field; + private String field; /** * @return The value for the property is greater than the specified value. * */ - private final @Nullable String gt; + private @Nullable String gt; /** * @return The value for the property is greater than or equal to the specified value. * */ - private final @Nullable String gte; + private @Nullable String gte; /** * @return The value for the property is less than the specified value. * */ - private final @Nullable String lt; + private @Nullable String lt; /** * @return The value for the property is less than or equal to the specified value. * */ - private final @Nullable String lte; + private @Nullable String lte; /** * @return The value for the property doesn't match (doesn't equal) the specified value. If you specify multiple values, Amazon Macie uses OR logic to join the values. * */ - private final @Nullable List neqs; - - @CustomType.Constructor - private FindingsFilterFindingCriteriaCriterion( - @CustomType.Parameter("eqExactMatches") @Nullable List eqExactMatches, - @CustomType.Parameter("eqs") @Nullable List eqs, - @CustomType.Parameter("field") String field, - @CustomType.Parameter("gt") @Nullable String gt, - @CustomType.Parameter("gte") @Nullable String gte, - @CustomType.Parameter("lt") @Nullable String lt, - @CustomType.Parameter("lte") @Nullable String lte, - @CustomType.Parameter("neqs") @Nullable List neqs) { - this.eqExactMatches = eqExactMatches; - this.eqs = eqs; - this.field = field; - this.gt = gt; - this.gte = gte; - this.lt = lt; - this.lte = lte; - this.neqs = neqs; - } + private @Nullable List neqs; + private FindingsFilterFindingCriteriaCriterion() {} /** * @return The value for the property exclusively matches (equals an exact match for) all the specified values. If you specify multiple values, Amazon Macie uses AND logic to join the values. * @@ -137,7 +118,7 @@ public static Builder builder() { public static Builder builder(FindingsFilterFindingCriteriaCriterion defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List eqExactMatches; private @Nullable List eqs; @@ -147,11 +128,7 @@ public static final class Builder { private @Nullable String lt; private @Nullable String lte; private @Nullable List neqs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FindingsFilterFindingCriteriaCriterion defaults) { Objects.requireNonNull(defaults); this.eqExactMatches = defaults.eqExactMatches; @@ -164,6 +141,7 @@ public Builder(FindingsFilterFindingCriteriaCriterion defaults) { this.neqs = defaults.neqs; } + @CustomType.Setter public Builder eqExactMatches(@Nullable List eqExactMatches) { this.eqExactMatches = eqExactMatches; return this; @@ -171,6 +149,7 @@ public Builder eqExactMatches(@Nullable List eqExactMatches) { public Builder eqExactMatches(String... eqExactMatches) { return eqExactMatches(List.of(eqExactMatches)); } + @CustomType.Setter public Builder eqs(@Nullable List eqs) { this.eqs = eqs; return this; @@ -178,34 +157,50 @@ public Builder eqs(@Nullable List eqs) { public Builder eqs(String... eqs) { return eqs(List.of(eqs)); } + @CustomType.Setter public Builder field(String field) { this.field = Objects.requireNonNull(field); return this; } + @CustomType.Setter public Builder gt(@Nullable String gt) { this.gt = gt; return this; } + @CustomType.Setter public Builder gte(@Nullable String gte) { this.gte = gte; return this; } + @CustomType.Setter public Builder lt(@Nullable String lt) { this.lt = lt; return this; } + @CustomType.Setter public Builder lte(@Nullable String lte) { this.lte = lte; return this; } + @CustomType.Setter public Builder neqs(@Nullable List neqs) { this.neqs = neqs; return this; } public Builder neqs(String... neqs) { return neqs(List.of(neqs)); - } public FindingsFilterFindingCriteriaCriterion build() { - return new FindingsFilterFindingCriteriaCriterion(eqExactMatches, eqs, field, gt, gte, lt, lte, neqs); + } + public FindingsFilterFindingCriteriaCriterion build() { + final var o = new FindingsFilterFindingCriteriaCriterion(); + o.eqExactMatches = eqExactMatches; + o.eqs = eqs; + o.field = field; + o.gt = gt; + o.gte = gte; + o.lt = lt; + o.lte = lte; + o.neqs = neqs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie/outputs/S3BucketAssociationClassificationType.java b/sdk/java/src/main/java/com/pulumi/aws/macie/outputs/S3BucketAssociationClassificationType.java index a1856d6ed4c..4d1fe4fb844 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie/outputs/S3BucketAssociationClassificationType.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie/outputs/S3BucketAssociationClassificationType.java @@ -16,22 +16,15 @@ public final class S3BucketAssociationClassificationType { * The only valid value is the default value, `FULL`. * */ - private final @Nullable String continuous; + private @Nullable String continuous; /** * @return A string value indicating whether or not Macie performs a one-time classification of all of the existing objects in the bucket. * Valid values are `NONE` and `FULL`. Defaults to `NONE` indicating that Macie only classifies objects that are added after the association was created. * */ - private final @Nullable String oneTime; - - @CustomType.Constructor - private S3BucketAssociationClassificationType( - @CustomType.Parameter("continuous") @Nullable String continuous, - @CustomType.Parameter("oneTime") @Nullable String oneTime) { - this.continuous = continuous; - this.oneTime = oneTime; - } + private @Nullable String oneTime; + private S3BucketAssociationClassificationType() {} /** * @return A string value indicating that Macie perform a one-time classification of all of the existing objects in the bucket. * The only valid value is the default value, `FULL`. @@ -56,30 +49,32 @@ public static Builder builder() { public static Builder builder(S3BucketAssociationClassificationType defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String continuous; private @Nullable String oneTime; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(S3BucketAssociationClassificationType defaults) { Objects.requireNonNull(defaults); this.continuous = defaults.continuous; this.oneTime = defaults.oneTime; } + @CustomType.Setter public Builder continuous(@Nullable String continuous) { this.continuous = continuous; return this; } + @CustomType.Setter public Builder oneTime(@Nullable String oneTime) { this.oneTime = oneTime; return this; - } public S3BucketAssociationClassificationType build() { - return new S3BucketAssociationClassificationType(continuous, oneTime); + } + public S3BucketAssociationClassificationType build() { + final var o = new S3BucketAssociationClassificationType(); + o.continuous = continuous; + o.oneTime = oneTime; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationExportConfigurationS3Destination.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationExportConfigurationS3Destination.java index 9331ecab93d..353e8b20676 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationExportConfigurationS3Destination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationExportConfigurationS3Destination.java @@ -15,28 +15,19 @@ public final class ClassificationExportConfigurationS3Destination { * @return The Amazon S3 bucket name in which Amazon Macie exports the data classification results. * */ - private final String bucketName; + private String bucketName; /** * @return The object key for the bucket in which Amazon Macie exports the data classification results. * */ - private final @Nullable String keyPrefix; + private @Nullable String keyPrefix; /** * @return Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. * */ - private final String kmsKeyArn; - - @CustomType.Constructor - private ClassificationExportConfigurationS3Destination( - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("keyPrefix") @Nullable String keyPrefix, - @CustomType.Parameter("kmsKeyArn") String kmsKeyArn) { - this.bucketName = bucketName; - this.keyPrefix = keyPrefix; - this.kmsKeyArn = kmsKeyArn; - } + private String kmsKeyArn; + private ClassificationExportConfigurationS3Destination() {} /** * @return The Amazon S3 bucket name in which Amazon Macie exports the data classification results. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ClassificationExportConfigurationS3Destination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketName; private @Nullable String keyPrefix; private String kmsKeyArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationExportConfigurationS3Destination defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -83,19 +70,27 @@ public Builder(ClassificationExportConfigurationS3Destination defaults) { this.kmsKeyArn = defaults.kmsKeyArn; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder keyPrefix(@Nullable String keyPrefix) { this.keyPrefix = keyPrefix; return this; } + @CustomType.Setter public Builder kmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = Objects.requireNonNull(kmsKeyArn); return this; - } public ClassificationExportConfigurationS3Destination build() { - return new ClassificationExportConfigurationS3Destination(bucketName, keyPrefix, kmsKeyArn); + } + public ClassificationExportConfigurationS3Destination build() { + final var o = new ClassificationExportConfigurationS3Destination(); + o.bucketName = bucketName; + o.keyPrefix = keyPrefix; + o.kmsKeyArn = kmsKeyArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinition.java index d6b4a408e7a..a39fc0a87e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinition.java @@ -18,28 +18,19 @@ public final class ClassificationJobS3JobDefinition { * @return The property- and tag-based conditions that determine which S3 buckets to include or exclude from the analysis. Conflicts with `bucket_definitions`. (documented below) * */ - private final @Nullable ClassificationJobS3JobDefinitionBucketCriteria bucketCriteria; + private @Nullable ClassificationJobS3JobDefinitionBucketCriteria bucketCriteria; /** * @return An array of objects, one for each AWS account that owns buckets to analyze. Each object specifies the account ID for an account and one or more buckets to analyze for the account. Conflicts with `bucket_criteria`. (documented below) * */ - private final @Nullable List bucketDefinitions; + private @Nullable List bucketDefinitions; /** * @return The property- and tag-based conditions that determine which objects to include or exclude from the analysis. (documented below) * */ - private final @Nullable ClassificationJobS3JobDefinitionScoping scoping; - - @CustomType.Constructor - private ClassificationJobS3JobDefinition( - @CustomType.Parameter("bucketCriteria") @Nullable ClassificationJobS3JobDefinitionBucketCriteria bucketCriteria, - @CustomType.Parameter("bucketDefinitions") @Nullable List bucketDefinitions, - @CustomType.Parameter("scoping") @Nullable ClassificationJobS3JobDefinitionScoping scoping) { - this.bucketCriteria = bucketCriteria; - this.bucketDefinitions = bucketDefinitions; - this.scoping = scoping; - } + private @Nullable ClassificationJobS3JobDefinitionScoping scoping; + private ClassificationJobS3JobDefinition() {} /** * @return The property- and tag-based conditions that determine which S3 buckets to include or exclude from the analysis. Conflicts with `bucket_definitions`. (documented below) * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClassificationJobS3JobDefinitionBucketCriteria bucketCriteria; private @Nullable List bucketDefinitions; private @Nullable ClassificationJobS3JobDefinitionScoping scoping; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinition defaults) { Objects.requireNonNull(defaults); this.bucketCriteria = defaults.bucketCriteria; @@ -86,10 +73,12 @@ public Builder(ClassificationJobS3JobDefinition defaults) { this.scoping = defaults.scoping; } + @CustomType.Setter public Builder bucketCriteria(@Nullable ClassificationJobS3JobDefinitionBucketCriteria bucketCriteria) { this.bucketCriteria = bucketCriteria; return this; } + @CustomType.Setter public Builder bucketDefinitions(@Nullable List bucketDefinitions) { this.bucketDefinitions = bucketDefinitions; return this; @@ -97,11 +86,17 @@ public Builder bucketDefinitions(@Nullable List ands; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionBucketCriteriaExcludes(@CustomType.Parameter("ands") @Nullable List ands) { - this.ands = ands; - } + private @Nullable List ands; + private ClassificationJobS3JobDefinitionBucketCriteriaExcludes() {} /** * @return An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionBucketCriteriaExcludes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List ands; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionBucketCriteriaExcludes defaults) { Objects.requireNonNull(defaults); this.ands = defaults.ands; } + @CustomType.Setter public Builder ands(@Nullable List ands) { this.ands = ands; return this; } public Builder ands(ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd... ands) { return ands(List.of(ands)); - } public ClassificationJobS3JobDefinitionBucketCriteriaExcludes build() { - return new ClassificationJobS3JobDefinitionBucketCriteriaExcludes(ands); + } + public ClassificationJobS3JobDefinitionBucketCriteriaExcludes build() { + final var o = new ClassificationJobS3JobDefinitionBucketCriteriaExcludes(); + o.ands = ands; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd.java index 1e490229fc9..d58d1e3a853 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd.java @@ -16,21 +16,14 @@ public final class ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd { * @return A property-based condition that defines a property, operator, and one or more values for including or excluding an S3 buckets from the job. (documented below) * */ - private final @Nullable ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion simpleCriterion; + private @Nullable ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion simpleCriterion; /** * @return A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an S3 buckets from the job. (documented below) * */ - private final @Nullable ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion tagCriterion; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd( - @CustomType.Parameter("simpleCriterion") @Nullable ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion simpleCriterion, - @CustomType.Parameter("tagCriterion") @Nullable ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion tagCriterion) { - this.simpleCriterion = simpleCriterion; - this.tagCriterion = tagCriterion; - } + private @Nullable ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion tagCriterion; + private ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd() {} /** * @return A property-based condition that defines a property, operator, and one or more values for including or excluding an S3 buckets from the job. (documented below) * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion simpleCriterion; private @Nullable ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion tagCriterion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd defaults) { Objects.requireNonNull(defaults); this.simpleCriterion = defaults.simpleCriterion; this.tagCriterion = defaults.tagCriterion; } + @CustomType.Setter public Builder simpleCriterion(@Nullable ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion simpleCriterion) { this.simpleCriterion = simpleCriterion; return this; } + @CustomType.Setter public Builder tagCriterion(@Nullable ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion tagCriterion) { this.tagCriterion = tagCriterion; return this; - } public ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd build() { - return new ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd(simpleCriterion, tagCriterion); + } + public ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd build() { + final var o = new ClassificationJobS3JobDefinitionBucketCriteriaExcludesAnd(); + o.simpleCriterion = simpleCriterion; + o.tagCriterion = tagCriterion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion.java index 7d6ab807d66..a0c72cccf42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion.java @@ -16,28 +16,19 @@ public final class ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimp * @return The operator to use in a condition. Valid combination of values are available in the [AWS Documentation](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html#jobs-model-jobcomparator) * */ - private final @Nullable String comparator; + private @Nullable String comparator; /** * @return The object property to use in the condition. Valid combination of values are available in the [AWS Documentation](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html#jobs-model-simplecriterionkeyforjob) * */ - private final @Nullable String key; + private @Nullable String key; /** * @return An array that lists the values to use in the condition. Valid combination of values are available in the [AWS Documentation](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html#jobs-model-simplecriterionforjob) * */ - private final @Nullable List values; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion( - @CustomType.Parameter("comparator") @Nullable String comparator, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("values") @Nullable List values) { - this.comparator = comparator; - this.key = key; - this.values = values; - } + private @Nullable List values; + private ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion() {} /** * @return The operator to use in a condition. Valid combination of values are available in the [AWS Documentation](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html#jobs-model-jobcomparator) * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String comparator; private @Nullable String key; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion defaults) { Objects.requireNonNull(defaults); this.comparator = defaults.comparator; @@ -84,22 +71,30 @@ public Builder(ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCr this.values = defaults.values; } + @CustomType.Setter public Builder comparator(@Nullable String comparator) { this.comparator = comparator; return this; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion build() { - return new ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion(comparator, key, values); + } + public ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion build() { + final var o = new ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndSimpleCriterion(); + o.comparator = comparator; + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion.java index acb6a545403..c5ed5c1a8cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion.java @@ -17,21 +17,14 @@ public final class ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagC * @return The operator to use in the condition. Valid combination and values are available in the [AWS Documentation](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html#jobs-model-jobcomparator) * */ - private final @Nullable String comparator; + private @Nullable String comparator; /** * @return The tag key and value pairs to use in the condition. One or more blocks are allowed. (documented below) * */ - private final @Nullable List tagValues; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion( - @CustomType.Parameter("comparator") @Nullable String comparator, - @CustomType.Parameter("tagValues") @Nullable List tagValues) { - this.comparator = comparator; - this.tagValues = tagValues; - } + private @Nullable List tagValues; + private ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion() {} /** * @return The operator to use in the condition. Valid combination and values are available in the [AWS Documentation](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html#jobs-model-jobcomparator) * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String comparator; private @Nullable List tagValues; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion defaults) { Objects.requireNonNull(defaults); this.comparator = defaults.comparator; this.tagValues = defaults.tagValues; } + @CustomType.Setter public Builder comparator(@Nullable String comparator) { this.comparator = comparator; return this; } + @CustomType.Setter public Builder tagValues(@Nullable List tagValues) { this.tagValues = tagValues; return this; } public Builder tagValues(ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue... tagValues) { return tagValues(List.of(tagValues)); - } public ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion build() { - return new ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion(comparator, tagValues); + } + public ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion build() { + final var o = new ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterion(); + o.comparator = comparator; + o.tagValues = tagValues; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue.java index 15898e61ab2..49a15ecdda3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue.java @@ -15,21 +15,14 @@ public final class ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagC * @return The tag key. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return The tag value. * */ - private final @Nullable String value; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") @Nullable String value) { - this.key = key; - this.value = value; - } + private @Nullable String value; + private ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue() {} /** * @return The tag key. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @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; - } public ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue build() { - return new ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue(key, value); + } + public ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue build() { + final var o = new ClassificationJobS3JobDefinitionBucketCriteriaExcludesAndTagCriterionTagValue(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludes.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludes.java index 933f248e102..bd6aa98b15a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludes.java @@ -15,13 +15,9 @@ public final class ClassificationJobS3JobDefinitionBucketCriteriaIncludes { * @return An array of conditions, one for each condition that determines which S3 buckets to include or exclude from the job. (documented below) * */ - private final @Nullable List ands; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionBucketCriteriaIncludes(@CustomType.Parameter("ands") @Nullable List ands) { - this.ands = ands; - } + private @Nullable List ands; + private ClassificationJobS3JobDefinitionBucketCriteriaIncludes() {} /** * @return An array of conditions, one for each condition that determines which S3 buckets to include or exclude from the job. (documented below) * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionBucketCriteriaIncludes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List ands; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionBucketCriteriaIncludes defaults) { Objects.requireNonNull(defaults); this.ands = defaults.ands; } + @CustomType.Setter public Builder ands(@Nullable List ands) { this.ands = ands; return this; } public Builder ands(ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd... ands) { return ands(List.of(ands)); - } public ClassificationJobS3JobDefinitionBucketCriteriaIncludes build() { - return new ClassificationJobS3JobDefinitionBucketCriteriaIncludes(ands); + } + public ClassificationJobS3JobDefinitionBucketCriteriaIncludes build() { + final var o = new ClassificationJobS3JobDefinitionBucketCriteriaIncludes(); + o.ands = ands; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd.java index 4e61536e401..eeebac24efa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd.java @@ -16,21 +16,14 @@ public final class ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd { * @return A property-based condition that defines a property, operator, and one or more values for including or excluding an S3 buckets from the job. (documented below) * */ - private final @Nullable ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion simpleCriterion; + private @Nullable ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion simpleCriterion; /** * @return A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an S3 buckets from the job. (documented below) * */ - private final @Nullable ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion tagCriterion; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd( - @CustomType.Parameter("simpleCriterion") @Nullable ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion simpleCriterion, - @CustomType.Parameter("tagCriterion") @Nullable ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion tagCriterion) { - this.simpleCriterion = simpleCriterion; - this.tagCriterion = tagCriterion; - } + private @Nullable ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion tagCriterion; + private ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd() {} /** * @return A property-based condition that defines a property, operator, and one or more values for including or excluding an S3 buckets from the job. (documented below) * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion simpleCriterion; private @Nullable ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion tagCriterion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd defaults) { Objects.requireNonNull(defaults); this.simpleCriterion = defaults.simpleCriterion; this.tagCriterion = defaults.tagCriterion; } + @CustomType.Setter public Builder simpleCriterion(@Nullable ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion simpleCriterion) { this.simpleCriterion = simpleCriterion; return this; } + @CustomType.Setter public Builder tagCriterion(@Nullable ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion tagCriterion) { this.tagCriterion = tagCriterion; return this; - } public ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd build() { - return new ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd(simpleCriterion, tagCriterion); + } + public ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd build() { + final var o = new ClassificationJobS3JobDefinitionBucketCriteriaIncludesAnd(); + o.simpleCriterion = simpleCriterion; + o.tagCriterion = tagCriterion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion.java index f507792ec1e..7790a36df18 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion.java @@ -16,28 +16,19 @@ public final class ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimp * @return The operator to use in a condition. Valid combination of values are available in the [AWS Documentation](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html#jobs-model-jobcomparator) * */ - private final @Nullable String comparator; + private @Nullable String comparator; /** * @return The object property to use in the condition. Valid combination of values are available in the [AWS Documentation](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html#jobs-model-simplecriterionkeyforjob) * */ - private final @Nullable String key; + private @Nullable String key; /** * @return An array that lists the values to use in the condition. Valid combination of values are available in the [AWS Documentation](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html#jobs-model-simplecriterionforjob) * */ - private final @Nullable List values; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion( - @CustomType.Parameter("comparator") @Nullable String comparator, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("values") @Nullable List values) { - this.comparator = comparator; - this.key = key; - this.values = values; - } + private @Nullable List values; + private ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion() {} /** * @return The operator to use in a condition. Valid combination of values are available in the [AWS Documentation](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html#jobs-model-jobcomparator) * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String comparator; private @Nullable String key; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion defaults) { Objects.requireNonNull(defaults); this.comparator = defaults.comparator; @@ -84,22 +71,30 @@ public Builder(ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCr this.values = defaults.values; } + @CustomType.Setter public Builder comparator(@Nullable String comparator) { this.comparator = comparator; return this; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion build() { - return new ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion(comparator, key, values); + } + public ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion build() { + final var o = new ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndSimpleCriterion(); + o.comparator = comparator; + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion.java index d88151b01bd..4b56acb07f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion.java @@ -17,21 +17,14 @@ public final class ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagC * @return The operator to use in the condition. Valid combination and values are available in the [AWS Documentation](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html#jobs-model-jobcomparator) * */ - private final @Nullable String comparator; + private @Nullable String comparator; /** * @return The tag key and value pairs to use in the condition. One or more blocks are allowed. (documented below) * */ - private final @Nullable List tagValues; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion( - @CustomType.Parameter("comparator") @Nullable String comparator, - @CustomType.Parameter("tagValues") @Nullable List tagValues) { - this.comparator = comparator; - this.tagValues = tagValues; - } + private @Nullable List tagValues; + private ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion() {} /** * @return The operator to use in the condition. Valid combination and values are available in the [AWS Documentation](https://docs.aws.amazon.com/macie/latest/APIReference/jobs.html#jobs-model-jobcomparator) * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String comparator; private @Nullable List tagValues; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion defaults) { Objects.requireNonNull(defaults); this.comparator = defaults.comparator; this.tagValues = defaults.tagValues; } + @CustomType.Setter public Builder comparator(@Nullable String comparator) { this.comparator = comparator; return this; } + @CustomType.Setter public Builder tagValues(@Nullable List tagValues) { this.tagValues = tagValues; return this; } public Builder tagValues(ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue... tagValues) { return tagValues(List.of(tagValues)); - } public ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion build() { - return new ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion(comparator, tagValues); + } + public ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion build() { + final var o = new ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterion(); + o.comparator = comparator; + o.tagValues = tagValues; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue.java index 7c3abbe1622..68c7e6f064b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue.java @@ -15,21 +15,14 @@ public final class ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagC * @return The tag key. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return The tag value. * */ - private final @Nullable String value; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue( - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") @Nullable String value) { - this.key = key; - this.value = value; - } + private @Nullable String value; + private ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue() {} /** * @return The tag key. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String key; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @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; - } public ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue build() { - return new ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue(key, value); + } + public ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue build() { + final var o = new ClassificationJobS3JobDefinitionBucketCriteriaIncludesAndTagCriterionTagValue(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketDefinition.java index 2e383df87d4..21b3059025b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionBucketDefinition.java @@ -14,21 +14,14 @@ public final class ClassificationJobS3JobDefinitionBucketDefinition { * @return The unique identifier for the AWS account that owns the buckets. * */ - private final String accountId; + private String accountId; /** * @return An array that lists the names of the buckets. * */ - private final List buckets; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionBucketDefinition( - @CustomType.Parameter("accountId") String accountId, - @CustomType.Parameter("buckets") List buckets) { - this.accountId = accountId; - this.buckets = buckets; - } + private List buckets; + private ClassificationJobS3JobDefinitionBucketDefinition() {} /** * @return The unique identifier for the AWS account that owns the buckets. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionBucketDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accountId; private List buckets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionBucketDefinition defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; this.buckets = defaults.buckets; } + @CustomType.Setter public Builder accountId(String accountId) { this.accountId = Objects.requireNonNull(accountId); return this; } + @CustomType.Setter public Builder buckets(List buckets) { this.buckets = Objects.requireNonNull(buckets); return this; } public Builder buckets(String... buckets) { return buckets(List.of(buckets)); - } public ClassificationJobS3JobDefinitionBucketDefinition build() { - return new ClassificationJobS3JobDefinitionBucketDefinition(accountId, buckets); + } + public ClassificationJobS3JobDefinitionBucketDefinition build() { + final var o = new ClassificationJobS3JobDefinitionBucketDefinition(); + o.accountId = accountId; + o.buckets = buckets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScoping.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScoping.java index 2d1aab72c2d..2ef61842889 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScoping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScoping.java @@ -16,21 +16,14 @@ public final class ClassificationJobS3JobDefinitionScoping { * @return The property- or tag-based conditions that determine which objects to exclude from the analysis. (documented below) * */ - private final @Nullable ClassificationJobS3JobDefinitionScopingExcludes excludes; + private @Nullable ClassificationJobS3JobDefinitionScopingExcludes excludes; /** * @return The property- or tag-based conditions that determine which objects to include in the analysis. (documented below) * */ - private final @Nullable ClassificationJobS3JobDefinitionScopingIncludes includes; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionScoping( - @CustomType.Parameter("excludes") @Nullable ClassificationJobS3JobDefinitionScopingExcludes excludes, - @CustomType.Parameter("includes") @Nullable ClassificationJobS3JobDefinitionScopingIncludes includes) { - this.excludes = excludes; - this.includes = includes; - } + private @Nullable ClassificationJobS3JobDefinitionScopingIncludes includes; + private ClassificationJobS3JobDefinitionScoping() {} /** * @return The property- or tag-based conditions that determine which objects to exclude from the analysis. (documented below) * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionScoping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClassificationJobS3JobDefinitionScopingExcludes excludes; private @Nullable ClassificationJobS3JobDefinitionScopingIncludes includes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionScoping defaults) { Objects.requireNonNull(defaults); this.excludes = defaults.excludes; this.includes = defaults.includes; } + @CustomType.Setter public Builder excludes(@Nullable ClassificationJobS3JobDefinitionScopingExcludes excludes) { this.excludes = excludes; return this; } + @CustomType.Setter public Builder includes(@Nullable ClassificationJobS3JobDefinitionScopingIncludes includes) { this.includes = includes; return this; - } public ClassificationJobS3JobDefinitionScoping build() { - return new ClassificationJobS3JobDefinitionScoping(excludes, includes); + } + public ClassificationJobS3JobDefinitionScoping build() { + final var o = new ClassificationJobS3JobDefinitionScoping(); + o.excludes = excludes; + o.includes = includes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludes.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludes.java index 05579cbc16d..5c29828da3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludes.java @@ -15,13 +15,9 @@ public final class ClassificationJobS3JobDefinitionScopingExcludes { * @return An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) * */ - private final @Nullable List ands; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionScopingExcludes(@CustomType.Parameter("ands") @Nullable List ands) { - this.ands = ands; - } + private @Nullable List ands; + private ClassificationJobS3JobDefinitionScopingExcludes() {} /** * @return An array of conditions, one for each condition that determines which objects to include or exclude from the job. (documented below) * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionScopingExcludes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List ands; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionScopingExcludes defaults) { Objects.requireNonNull(defaults); this.ands = defaults.ands; } + @CustomType.Setter public Builder ands(@Nullable List ands) { this.ands = ands; return this; } public Builder ands(ClassificationJobS3JobDefinitionScopingExcludesAnd... ands) { return ands(List.of(ands)); - } public ClassificationJobS3JobDefinitionScopingExcludes build() { - return new ClassificationJobS3JobDefinitionScopingExcludes(ands); + } + public ClassificationJobS3JobDefinitionScopingExcludes build() { + final var o = new ClassificationJobS3JobDefinitionScopingExcludes(); + o.ands = ands; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludesAnd.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludesAnd.java index 35eca578d8b..b00df67ebbc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludesAnd.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludesAnd.java @@ -16,21 +16,14 @@ public final class ClassificationJobS3JobDefinitionScopingExcludesAnd { * @return A property-based condition that defines a property, operator, and one or more values for including or excluding an object from the job. (documented below) * */ - private final @Nullable ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm simpleScopeTerm; + private @Nullable ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm simpleScopeTerm; /** * @return A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an object from the job. (documented below) * */ - private final @Nullable ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm tagScopeTerm; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionScopingExcludesAnd( - @CustomType.Parameter("simpleScopeTerm") @Nullable ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm simpleScopeTerm, - @CustomType.Parameter("tagScopeTerm") @Nullable ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm tagScopeTerm) { - this.simpleScopeTerm = simpleScopeTerm; - this.tagScopeTerm = tagScopeTerm; - } + private @Nullable ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm tagScopeTerm; + private ClassificationJobS3JobDefinitionScopingExcludesAnd() {} /** * @return A property-based condition that defines a property, operator, and one or more values for including or excluding an object from the job. (documented below) * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionScopingExcludesAnd defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm simpleScopeTerm; private @Nullable ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm tagScopeTerm; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionScopingExcludesAnd defaults) { Objects.requireNonNull(defaults); this.simpleScopeTerm = defaults.simpleScopeTerm; this.tagScopeTerm = defaults.tagScopeTerm; } + @CustomType.Setter public Builder simpleScopeTerm(@Nullable ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm simpleScopeTerm) { this.simpleScopeTerm = simpleScopeTerm; return this; } + @CustomType.Setter public Builder tagScopeTerm(@Nullable ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm tagScopeTerm) { this.tagScopeTerm = tagScopeTerm; return this; - } public ClassificationJobS3JobDefinitionScopingExcludesAnd build() { - return new ClassificationJobS3JobDefinitionScopingExcludesAnd(simpleScopeTerm, tagScopeTerm); + } + public ClassificationJobS3JobDefinitionScopingExcludesAnd build() { + final var o = new ClassificationJobS3JobDefinitionScopingExcludesAnd(); + o.simpleScopeTerm = simpleScopeTerm; + o.tagScopeTerm = tagScopeTerm; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm.java index cd6772d0fbb..02be607d7b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm.java @@ -16,28 +16,19 @@ public final class ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScope * @return The operator to use in a condition. Valid values are: `EQ`, `GT`, `GTE`, `LT`, `LTE`, `NE`, `CONTAINS`, `STARTS_WITH` * */ - private final @Nullable String comparator; + private @Nullable String comparator; /** * @return The object property to use in the condition. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return An array that lists the values to use in the condition. * */ - private final @Nullable List values; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm( - @CustomType.Parameter("comparator") @Nullable String comparator, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("values") @Nullable List values) { - this.comparator = comparator; - this.key = key; - this.values = values; - } + private @Nullable List values; + private ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm() {} /** * @return The operator to use in a condition. Valid values are: `EQ`, `GT`, `GTE`, `LT`, `LTE`, `NE`, `CONTAINS`, `STARTS_WITH` * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String comparator; private @Nullable String key; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm defaults) { Objects.requireNonNull(defaults); this.comparator = defaults.comparator; @@ -84,22 +71,30 @@ public Builder(ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm this.values = defaults.values; } + @CustomType.Setter public Builder comparator(@Nullable String comparator) { this.comparator = comparator; return this; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm build() { - return new ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm(comparator, key, values); + } + public ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm build() { + final var o = new ClassificationJobS3JobDefinitionScopingExcludesAndSimpleScopeTerm(); + o.comparator = comparator; + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm.java index 913c2ef6ff9..2b05bf3ca2f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm.java @@ -17,35 +17,24 @@ public final class ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTer * @return The operator to use in the condition. * */ - private final @Nullable String comparator; + private @Nullable String comparator; /** * @return The tag key to use in the condition. The only valid value is `TAG`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return The tag keys or tag key and value pairs to use in the condition. * */ - private final @Nullable List tagValues; + private @Nullable List tagValues; /** * @return The type of object to apply the condition to. The only valid value is `S3_OBJECT`. * */ - private final @Nullable String target; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm( - @CustomType.Parameter("comparator") @Nullable String comparator, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("tagValues") @Nullable List tagValues, - @CustomType.Parameter("target") @Nullable String target) { - this.comparator = comparator; - this.key = key; - this.tagValues = tagValues; - this.target = target; - } + private @Nullable String target; + private ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm() {} /** * @return The operator to use in the condition. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String comparator; private @Nullable String key; private @Nullable List tagValues; private @Nullable String target; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm defaults) { Objects.requireNonNull(defaults); this.comparator = defaults.comparator; @@ -101,14 +86,17 @@ public Builder(ClassificationJobS3JobDefinitionScopingExcludesAndTagScopeTerm de this.target = defaults.target; } + @CustomType.Setter public Builder comparator(@Nullable String comparator) { this.comparator = comparator; return this; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder tagValues(@Nullable List tagValues) { this.tagValues = tagValues; return this; @@ -116,11 +104,18 @@ public Builder tagValues(@Nullable List ands; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionScopingIncludes(@CustomType.Parameter("ands") @Nullable List ands) { - this.ands = ands; - } + private @Nullable List ands; + private ClassificationJobS3JobDefinitionScopingIncludes() {} /** * @return An array of conditions, one for each condition that determines which S3 buckets to include or exclude from the job. (documented below) * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionScopingIncludes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List ands; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionScopingIncludes defaults) { Objects.requireNonNull(defaults); this.ands = defaults.ands; } + @CustomType.Setter public Builder ands(@Nullable List ands) { this.ands = ands; return this; } public Builder ands(ClassificationJobS3JobDefinitionScopingIncludesAnd... ands) { return ands(List.of(ands)); - } public ClassificationJobS3JobDefinitionScopingIncludes build() { - return new ClassificationJobS3JobDefinitionScopingIncludes(ands); + } + public ClassificationJobS3JobDefinitionScopingIncludes build() { + final var o = new ClassificationJobS3JobDefinitionScopingIncludes(); + o.ands = ands; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingIncludesAnd.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingIncludesAnd.java index 20525184530..c04e546539f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingIncludesAnd.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingIncludesAnd.java @@ -16,21 +16,14 @@ public final class ClassificationJobS3JobDefinitionScopingIncludesAnd { * @return A property-based condition that defines a property, operator, and one or more values for including or excluding an object from the job. (documented below) * */ - private final @Nullable ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm simpleScopeTerm; + private @Nullable ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm simpleScopeTerm; /** * @return A tag-based condition that defines the operator and tag keys or tag key and value pairs for including or excluding an object from the job. (documented below) * */ - private final @Nullable ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm tagScopeTerm; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionScopingIncludesAnd( - @CustomType.Parameter("simpleScopeTerm") @Nullable ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm simpleScopeTerm, - @CustomType.Parameter("tagScopeTerm") @Nullable ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm tagScopeTerm) { - this.simpleScopeTerm = simpleScopeTerm; - this.tagScopeTerm = tagScopeTerm; - } + private @Nullable ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm tagScopeTerm; + private ClassificationJobS3JobDefinitionScopingIncludesAnd() {} /** * @return A property-based condition that defines a property, operator, and one or more values for including or excluding an object from the job. (documented below) * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionScopingIncludesAnd defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm simpleScopeTerm; private @Nullable ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm tagScopeTerm; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionScopingIncludesAnd defaults) { Objects.requireNonNull(defaults); this.simpleScopeTerm = defaults.simpleScopeTerm; this.tagScopeTerm = defaults.tagScopeTerm; } + @CustomType.Setter public Builder simpleScopeTerm(@Nullable ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm simpleScopeTerm) { this.simpleScopeTerm = simpleScopeTerm; return this; } + @CustomType.Setter public Builder tagScopeTerm(@Nullable ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm tagScopeTerm) { this.tagScopeTerm = tagScopeTerm; return this; - } public ClassificationJobS3JobDefinitionScopingIncludesAnd build() { - return new ClassificationJobS3JobDefinitionScopingIncludesAnd(simpleScopeTerm, tagScopeTerm); + } + public ClassificationJobS3JobDefinitionScopingIncludesAnd build() { + final var o = new ClassificationJobS3JobDefinitionScopingIncludesAnd(); + o.simpleScopeTerm = simpleScopeTerm; + o.tagScopeTerm = tagScopeTerm; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm.java index 71c25b201bc..6d4b10520c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm.java @@ -16,28 +16,19 @@ public final class ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScope * @return The operator to use in a condition. Valid values are: `EQ`, `GT`, `GTE`, `LT`, `LTE`, `NE`, `CONTAINS`, `STARTS_WITH` * */ - private final @Nullable String comparator; + private @Nullable String comparator; /** * @return The object property to use in the condition. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return An array that lists the values to use in the condition. * */ - private final @Nullable List values; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm( - @CustomType.Parameter("comparator") @Nullable String comparator, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("values") @Nullable List values) { - this.comparator = comparator; - this.key = key; - this.values = values; - } + private @Nullable List values; + private ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm() {} /** * @return The operator to use in a condition. Valid values are: `EQ`, `GT`, `GTE`, `LT`, `LTE`, `NE`, `CONTAINS`, `STARTS_WITH` * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String comparator; private @Nullable String key; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm defaults) { Objects.requireNonNull(defaults); this.comparator = defaults.comparator; @@ -84,22 +71,30 @@ public Builder(ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm this.values = defaults.values; } + @CustomType.Setter public Builder comparator(@Nullable String comparator) { this.comparator = comparator; return this; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm build() { - return new ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm(comparator, key, values); + } + public ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm build() { + final var o = new ClassificationJobS3JobDefinitionScopingIncludesAndSimpleScopeTerm(); + o.comparator = comparator; + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm.java b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm.java index a8a31fba744..a969a0c1649 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm.java +++ b/sdk/java/src/main/java/com/pulumi/aws/macie2/outputs/ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm.java @@ -17,35 +17,24 @@ public final class ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTer * @return The operator to use in the condition. * */ - private final @Nullable String comparator; + private @Nullable String comparator; /** * @return The tag key to use in the condition. The only valid value is `TAG`. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return The tag keys or tag key and value pairs to use in the condition. * */ - private final @Nullable List tagValues; + private @Nullable List tagValues; /** * @return The type of object to apply the condition to. The only valid value is `S3_OBJECT`. * */ - private final @Nullable String target; - - @CustomType.Constructor - private ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm( - @CustomType.Parameter("comparator") @Nullable String comparator, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("tagValues") @Nullable List tagValues, - @CustomType.Parameter("target") @Nullable String target) { - this.comparator = comparator; - this.key = key; - this.tagValues = tagValues; - this.target = target; - } + private @Nullable String target; + private ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm() {} /** * @return The operator to use in the condition. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String comparator; private @Nullable String key; private @Nullable List tagValues; private @Nullable String target; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm defaults) { Objects.requireNonNull(defaults); this.comparator = defaults.comparator; @@ -101,14 +86,17 @@ public Builder(ClassificationJobS3JobDefinitionScopingIncludesAndTagScopeTerm de this.target = defaults.target; } + @CustomType.Setter public Builder comparator(@Nullable String comparator) { this.comparator = comparator; return this; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; } + @CustomType.Setter public Builder tagValues(@Nullable List tagValues) { this.tagValues = tagValues; return this; @@ -116,11 +104,18 @@ public Builder tagValues(@Nullable List jobExpiresAt() { return Optional.ofNullable(this.jobExpiresAt); } @@ -42,16 +33,12 @@ public static Builder builder() { public static Builder builder(ClassificationJobUserPausedDetail defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String jobExpiresAt; private @Nullable String jobImminentExpirationHealthEventArn; private @Nullable String jobPausedAt; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClassificationJobUserPausedDetail defaults) { Objects.requireNonNull(defaults); this.jobExpiresAt = defaults.jobExpiresAt; @@ -59,19 +46,27 @@ public Builder(ClassificationJobUserPausedDetail defaults) { this.jobPausedAt = defaults.jobPausedAt; } + @CustomType.Setter public Builder jobExpiresAt(@Nullable String jobExpiresAt) { this.jobExpiresAt = jobExpiresAt; return this; } + @CustomType.Setter public Builder jobImminentExpirationHealthEventArn(@Nullable String jobImminentExpirationHealthEventArn) { this.jobImminentExpirationHealthEventArn = jobImminentExpirationHealthEventArn; return this; } + @CustomType.Setter public Builder jobPausedAt(@Nullable String jobPausedAt) { this.jobPausedAt = jobPausedAt; return this; - } public ClassificationJobUserPausedDetail build() { - return new ClassificationJobUserPausedDetail(jobExpiresAt, jobImminentExpirationHealthEventArn, jobPausedAt); + } + public ClassificationJobUserPausedDetail build() { + final var o = new ClassificationJobUserPausedDetail(); + o.jobExpiresAt = jobExpiresAt; + o.jobImminentExpirationHealthEventArn = jobImminentExpirationHealthEventArn; + o.jobPausedAt = jobPausedAt; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mediaconvert/outputs/QueueReservationPlanSettings.java b/sdk/java/src/main/java/com/pulumi/aws/mediaconvert/outputs/QueueReservationPlanSettings.java index 29adf0c4875..1b528b5c106 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mediaconvert/outputs/QueueReservationPlanSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mediaconvert/outputs/QueueReservationPlanSettings.java @@ -14,28 +14,19 @@ public final class QueueReservationPlanSettings { * @return The length of the term of your reserved queue pricing plan commitment. Valid value is `ONE_YEAR`. * */ - private final String commitment; + private String commitment; /** * @return Specifies whether the term of your reserved queue pricing plan. Valid values are `AUTO_RENEW` or `EXPIRE`. * */ - private final String renewalType; + private String renewalType; /** * @return Specifies the number of reserved transcode slots (RTS) for queue. * */ - private final Integer reservedSlots; - - @CustomType.Constructor - private QueueReservationPlanSettings( - @CustomType.Parameter("commitment") String commitment, - @CustomType.Parameter("renewalType") String renewalType, - @CustomType.Parameter("reservedSlots") Integer reservedSlots) { - this.commitment = commitment; - this.renewalType = renewalType; - this.reservedSlots = reservedSlots; - } + private Integer reservedSlots; + private QueueReservationPlanSettings() {} /** * @return The length of the term of your reserved queue pricing plan commitment. Valid value is `ONE_YEAR`. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(QueueReservationPlanSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String commitment; private String renewalType; private Integer reservedSlots; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(QueueReservationPlanSettings defaults) { Objects.requireNonNull(defaults); this.commitment = defaults.commitment; @@ -82,19 +69,27 @@ public Builder(QueueReservationPlanSettings defaults) { this.reservedSlots = defaults.reservedSlots; } + @CustomType.Setter public Builder commitment(String commitment) { this.commitment = Objects.requireNonNull(commitment); return this; } + @CustomType.Setter public Builder renewalType(String renewalType) { this.renewalType = Objects.requireNonNull(renewalType); return this; } + @CustomType.Setter public Builder reservedSlots(Integer reservedSlots) { this.reservedSlots = Objects.requireNonNull(reservedSlots); return this; - } public QueueReservationPlanSettings build() { - return new QueueReservationPlanSettings(commitment, renewalType, reservedSlots); + } + public QueueReservationPlanSettings build() { + final var o = new QueueReservationPlanSettings(); + o.commitment = commitment; + o.renewalType = renewalType; + o.reservedSlots = reservedSlots; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mediapackage/outputs/ChannelHlsIngest.java b/sdk/java/src/main/java/com/pulumi/aws/mediapackage/outputs/ChannelHlsIngest.java index aa75e423fc9..adc8232ef1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mediapackage/outputs/ChannelHlsIngest.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mediapackage/outputs/ChannelHlsIngest.java @@ -15,13 +15,9 @@ public final class ChannelHlsIngest { * @return A list of the ingest endpoints * */ - private final @Nullable List ingestEndpoints; - - @CustomType.Constructor - private ChannelHlsIngest(@CustomType.Parameter("ingestEndpoints") @Nullable List ingestEndpoints) { - this.ingestEndpoints = ingestEndpoints; - } + private @Nullable List ingestEndpoints; + private ChannelHlsIngest() {} /** * @return A list of the ingest endpoints * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(ChannelHlsIngest defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List ingestEndpoints; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ChannelHlsIngest defaults) { Objects.requireNonNull(defaults); this.ingestEndpoints = defaults.ingestEndpoints; } + @CustomType.Setter public Builder ingestEndpoints(@Nullable List ingestEndpoints) { this.ingestEndpoints = ingestEndpoints; return this; } public Builder ingestEndpoints(ChannelHlsIngestIngestEndpoint... ingestEndpoints) { return ingestEndpoints(List.of(ingestEndpoints)); - } public ChannelHlsIngest build() { - return new ChannelHlsIngest(ingestEndpoints); + } + public ChannelHlsIngest build() { + final var o = new ChannelHlsIngest(); + o.ingestEndpoints = ingestEndpoints; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mediapackage/outputs/ChannelHlsIngestIngestEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/mediapackage/outputs/ChannelHlsIngestIngestEndpoint.java index 9d9ed91da0f..aa13d54788b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mediapackage/outputs/ChannelHlsIngestIngestEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mediapackage/outputs/ChannelHlsIngestIngestEndpoint.java @@ -15,28 +15,19 @@ public final class ChannelHlsIngestIngestEndpoint { * @return The password * */ - private final @Nullable String password; + private @Nullable String password; /** * @return The URL * */ - private final @Nullable String url; + private @Nullable String url; /** * @return The username * */ - private final @Nullable String username; - - @CustomType.Constructor - private ChannelHlsIngestIngestEndpoint( - @CustomType.Parameter("password") @Nullable String password, - @CustomType.Parameter("url") @Nullable String url, - @CustomType.Parameter("username") @Nullable String username) { - this.password = password; - this.url = url; - this.username = username; - } + private @Nullable String username; + private ChannelHlsIngestIngestEndpoint() {} /** * @return The password * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ChannelHlsIngestIngestEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String password; private @Nullable String url; private @Nullable String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ChannelHlsIngestIngestEndpoint defaults) { Objects.requireNonNull(defaults); this.password = defaults.password; @@ -83,19 +70,27 @@ public Builder(ChannelHlsIngestIngestEndpoint defaults) { this.username = defaults.username; } + @CustomType.Setter public Builder password(@Nullable String password) { this.password = password; return this; } + @CustomType.Setter public Builder url(@Nullable String url) { this.url = url; return this; } + @CustomType.Setter public Builder username(@Nullable String username) { this.username = username; return this; - } public ChannelHlsIngestIngestEndpoint build() { - return new ChannelHlsIngestIngestEndpoint(password, url, username); + } + public ChannelHlsIngestIngestEndpoint build() { + final var o = new ChannelHlsIngestIngestEndpoint(); + o.password = password; + o.url = url; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterClusterEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterClusterEndpoint.java index bb6aac23ded..3b494b6da28 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterClusterEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterClusterEndpoint.java @@ -16,21 +16,14 @@ public final class ClusterClusterEndpoint { * @return DNS hostname of the node. * */ - private final @Nullable String address; + private @Nullable String address; /** * @return The port number on which each of the nodes accepts connections. Defaults to `6379`. * */ - private final @Nullable Integer port; - - @CustomType.Constructor - private ClusterClusterEndpoint( - @CustomType.Parameter("address") @Nullable String address, - @CustomType.Parameter("port") @Nullable Integer port) { - this.address = address; - this.port = port; - } + private @Nullable Integer port; + private ClusterClusterEndpoint() {} /** * @return DNS hostname of the node. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClusterClusterEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String address; private @Nullable Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterClusterEndpoint defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; this.port = defaults.port; } + @CustomType.Setter public Builder address(@Nullable String address) { this.address = address; return this; } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; - } public ClusterClusterEndpoint build() { - return new ClusterClusterEndpoint(address, port); + } + public ClusterClusterEndpoint build() { + final var o = new ClusterClusterEndpoint(); + o.address = address; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterShard.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterShard.java index 6d7e5691b44..78a928e552c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterShard.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterShard.java @@ -19,35 +19,24 @@ public final class ClusterShard { * * `endpoint` * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Set of nodes in this shard. * */ - private final @Nullable List nodes; + private @Nullable List nodes; /** * @return Number of individual nodes in this shard. * */ - private final @Nullable Integer numNodes; + private @Nullable Integer numNodes; /** * @return Keyspace for this shard. Example: `0-16383`. * */ - private final @Nullable String slots; - - @CustomType.Constructor - private ClusterShard( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("nodes") @Nullable List nodes, - @CustomType.Parameter("numNodes") @Nullable Integer numNodes, - @CustomType.Parameter("slots") @Nullable String slots) { - this.name = name; - this.nodes = nodes; - this.numNodes = numNodes; - this.slots = slots; - } + private @Nullable String slots; + private ClusterShard() {} /** * @return Name of this node. * * `endpoint` @@ -85,17 +74,13 @@ public static Builder builder() { public static Builder builder(ClusterShard defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable List nodes; private @Nullable Integer numNodes; private @Nullable String slots; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterShard defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -104,10 +89,12 @@ public Builder(ClusterShard defaults) { this.slots = defaults.slots; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder nodes(@Nullable List nodes) { this.nodes = nodes; return this; @@ -115,15 +102,23 @@ public Builder nodes(@Nullable List nodes) { public Builder nodes(ClusterShardNode... nodes) { return nodes(List.of(nodes)); } + @CustomType.Setter public Builder numNodes(@Nullable Integer numNodes) { this.numNodes = numNodes; return this; } + @CustomType.Setter public Builder slots(@Nullable String slots) { this.slots = slots; return this; - } public ClusterShard build() { - return new ClusterShard(name, nodes, numNodes, slots); + } + public ClusterShard build() { + final var o = new ClusterShard(); + o.name = name; + o.nodes = nodes; + o.numNodes = numNodes; + o.slots = slots; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterShardNode.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterShardNode.java index 1f71de169cc..61b478a809e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterShardNode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterShardNode.java @@ -17,32 +17,21 @@ public final class ClusterShardNode { * @return The Availability Zone in which the node resides. * */ - private final @Nullable String availabilityZone; + private @Nullable String availabilityZone; /** * @return The date and time when the node was created. Example: `2022-01-01T21:00:00Z`. * */ - private final @Nullable String createTime; - private final @Nullable List endpoints; + private @Nullable String createTime; + private @Nullable List endpoints; /** * @return Name of this node. * * `endpoint` * */ - private final @Nullable String name; - - @CustomType.Constructor - private ClusterShardNode( - @CustomType.Parameter("availabilityZone") @Nullable String availabilityZone, - @CustomType.Parameter("createTime") @Nullable String createTime, - @CustomType.Parameter("endpoints") @Nullable List endpoints, - @CustomType.Parameter("name") @Nullable String name) { - this.availabilityZone = availabilityZone; - this.createTime = createTime; - this.endpoints = endpoints; - this.name = name; - } + private @Nullable String name; + private ClusterShardNode() {} /** * @return The Availability Zone in which the node resides. * @@ -76,17 +65,13 @@ public static Builder builder() { public static Builder builder(ClusterShardNode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String availabilityZone; private @Nullable String createTime; private @Nullable List endpoints; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterShardNode defaults) { Objects.requireNonNull(defaults); this.availabilityZone = defaults.availabilityZone; @@ -95,14 +80,17 @@ public Builder(ClusterShardNode defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder availabilityZone(@Nullable String availabilityZone) { this.availabilityZone = availabilityZone; return this; } + @CustomType.Setter public Builder createTime(@Nullable String createTime) { this.createTime = createTime; return this; } + @CustomType.Setter public Builder endpoints(@Nullable List endpoints) { this.endpoints = endpoints; return this; @@ -110,11 +98,18 @@ public Builder endpoints(@Nullable List endpoints) { public Builder endpoints(ClusterShardNodeEndpoint... endpoints) { return endpoints(List.of(endpoints)); } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public ClusterShardNode build() { - return new ClusterShardNode(availabilityZone, createTime, endpoints, name); + } + public ClusterShardNode build() { + final var o = new ClusterShardNode(); + o.availabilityZone = availabilityZone; + o.createTime = createTime; + o.endpoints = endpoints; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterShardNodeEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterShardNodeEndpoint.java index 8f4f0c3a49c..667f576b4a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterShardNodeEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ClusterShardNodeEndpoint.java @@ -16,21 +16,14 @@ public final class ClusterShardNodeEndpoint { * @return DNS hostname of the node. * */ - private final @Nullable String address; + private @Nullable String address; /** * @return The port number on which each of the nodes accepts connections. Defaults to `6379`. * */ - private final @Nullable Integer port; - - @CustomType.Constructor - private ClusterShardNodeEndpoint( - @CustomType.Parameter("address") @Nullable String address, - @CustomType.Parameter("port") @Nullable Integer port) { - this.address = address; - this.port = port; - } + private @Nullable Integer port; + private ClusterShardNodeEndpoint() {} /** * @return DNS hostname of the node. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClusterShardNodeEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String address; private @Nullable Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterShardNodeEndpoint defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; this.port = defaults.port; } + @CustomType.Setter public Builder address(@Nullable String address) { this.address = address; return this; } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; - } public ClusterShardNodeEndpoint build() { - return new ClusterShardNodeEndpoint(address, port); + } + public ClusterShardNodeEndpoint build() { + final var o = new ClusterShardNodeEndpoint(); + o.address = address; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetAclResult.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetAclResult.java index 2e04c3aa75c..100c575168a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetAclResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetAclResult.java @@ -15,45 +15,30 @@ public final class GetAclResult { * @return ARN of the ACL. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The minimum engine version supported by the ACL. * */ - private final String minimumEngineVersion; - private final String name; + private String minimumEngineVersion; + private String name; /** * @return A map of tags assigned to the ACL. * */ - private final Map tags; + private Map tags; /** * @return Set of MemoryDB user names included in this ACL. * */ - private final List userNames; - - @CustomType.Constructor - private GetAclResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("minimumEngineVersion") String minimumEngineVersion, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("userNames") List userNames) { - this.arn = arn; - this.id = id; - this.minimumEngineVersion = minimumEngineVersion; - this.name = name; - this.tags = tags; - this.userNames = userNames; - } + private List userNames; + private GetAclResult() {} /** * @return ARN of the ACL. * @@ -100,7 +85,7 @@ public static Builder builder() { public static Builder builder(GetAclResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; @@ -108,11 +93,7 @@ public static final class Builder { private String name; private Map tags; private List userNames; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAclResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -123,34 +104,48 @@ public Builder(GetAclResult defaults) { this.userNames = defaults.userNames; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder minimumEngineVersion(String minimumEngineVersion) { this.minimumEngineVersion = Objects.requireNonNull(minimumEngineVersion); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder userNames(List userNames) { this.userNames = Objects.requireNonNull(userNames); return this; } public Builder userNames(String... userNames) { return userNames(List.of(userNames)); - } public GetAclResult build() { - return new GetAclResult(arn, id, minimumEngineVersion, name, tags, userNames); + } + public GetAclResult build() { + final var o = new GetAclResult(); + o.arn = arn; + o.id = id; + o.minimumEngineVersion = minimumEngineVersion; + o.name = name; + o.tags = tags; + o.userNames = userNames; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterClusterEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterClusterEndpoint.java index 91e70074510..a892fdc0148 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterClusterEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterClusterEndpoint.java @@ -14,21 +14,14 @@ public final class GetClusterClusterEndpoint { * @return DNS hostname of the node. * */ - private final String address; + private String address; /** * @return Port number that this node is listening on. * */ - private final Integer port; - - @CustomType.Constructor - private GetClusterClusterEndpoint( - @CustomType.Parameter("address") String address, - @CustomType.Parameter("port") Integer port) { - this.address = address; - this.port = port; - } + private Integer port; + private GetClusterClusterEndpoint() {} /** * @return DNS hostname of the node. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetClusterClusterEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String address; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterClusterEndpoint defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; this.port = defaults.port; } + @CustomType.Setter public Builder address(String address) { this.address = Objects.requireNonNull(address); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public GetClusterClusterEndpoint build() { - return new GetClusterClusterEndpoint(address, port); + } + public GetClusterClusterEndpoint build() { + final var o = new GetClusterClusterEndpoint(); + o.address = address; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterResult.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterResult.java index 8097d95350b..c3421a9a796 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterResult.java @@ -19,177 +19,124 @@ public final class GetClusterResult { * @return The name of the Access Control List associated with the cluster. * */ - private final String aclName; + private String aclName; /** * @return The ARN of the cluster. * */ - private final String arn; + private String arn; /** * @return True when the cluster allows automatic minor version upgrades. * * `cluster_endpoint` * */ - private final Boolean autoMinorVersionUpgrade; - private final List clusterEndpoints; + private Boolean autoMinorVersionUpgrade; + private List clusterEndpoints; /** * @return Description for the cluster. * */ - private final String description; + private String description; /** * @return Patch version number of the Redis engine used by the cluster. * */ - private final String enginePatchVersion; + private String enginePatchVersion; /** * @return Version number of the Redis engine used by the cluster. * */ - private final String engineVersion; + private String engineVersion; /** * @return Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made. * */ - private final String finalSnapshotName; + private String finalSnapshotName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return ARN of the KMS key used to encrypt the cluster at rest. * */ - private final String kmsKeyArn; + private String kmsKeyArn; /** * @return The weekly time range during which maintenance on the cluster is performed. Specify as a range in the format `ddd:hh24:mi-ddd:hh24:mi` (24H Clock UTC). Example: `sun:23:00-mon:01:30`. * */ - private final String maintenanceWindow; + private String maintenanceWindow; /** * @return Name of this node. * * `endpoint` * */ - private final String name; + private String name; /** * @return The compute and memory capacity of the nodes in the cluster. * */ - private final String nodeType; + private String nodeType; /** * @return The number of replicas to apply to each shard. * */ - private final Integer numReplicasPerShard; + private Integer numReplicasPerShard; /** * @return The number of shards in the cluster. * */ - private final Integer numShards; + private Integer numShards; /** * @return The name of the parameter group associated with the cluster. * */ - private final String parameterGroupName; + private String parameterGroupName; /** * @return Port number that this node is listening on. * */ - private final Integer port; + private Integer port; /** * @return Set of VPC Security Group ID-s associated with this cluster. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return Set of shards in this cluster. * */ - private final List shards; + private List shards; /** * @return The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to `0`, automatic backups are disabled. * */ - private final Integer snapshotRetentionLimit; + private Integer snapshotRetentionLimit; /** * @return The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: `05:00-09:00`. * */ - private final String snapshotWindow; + private String snapshotWindow; /** * @return ARN of the SNS topic to which cluster notifications are sent. * * `subnet_group_name` -The name of the subnet group used for the cluster. * */ - private final String snsTopicArn; - private final String subnetGroupName; + private String snsTopicArn; + private String subnetGroupName; /** * @return A map of tags assigned to the cluster. * */ - private final Map tags; + private Map tags; /** * @return When true, in-transit encryption is enabled for the cluster. * */ - private final Boolean tlsEnabled; - - @CustomType.Constructor - private GetClusterResult( - @CustomType.Parameter("aclName") String aclName, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("autoMinorVersionUpgrade") Boolean autoMinorVersionUpgrade, - @CustomType.Parameter("clusterEndpoints") List clusterEndpoints, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("enginePatchVersion") String enginePatchVersion, - @CustomType.Parameter("engineVersion") String engineVersion, - @CustomType.Parameter("finalSnapshotName") String finalSnapshotName, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKeyArn") String kmsKeyArn, - @CustomType.Parameter("maintenanceWindow") String maintenanceWindow, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nodeType") String nodeType, - @CustomType.Parameter("numReplicasPerShard") Integer numReplicasPerShard, - @CustomType.Parameter("numShards") Integer numShards, - @CustomType.Parameter("parameterGroupName") String parameterGroupName, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("shards") List shards, - @CustomType.Parameter("snapshotRetentionLimit") Integer snapshotRetentionLimit, - @CustomType.Parameter("snapshotWindow") String snapshotWindow, - @CustomType.Parameter("snsTopicArn") String snsTopicArn, - @CustomType.Parameter("subnetGroupName") String subnetGroupName, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("tlsEnabled") Boolean tlsEnabled) { - this.aclName = aclName; - this.arn = arn; - this.autoMinorVersionUpgrade = autoMinorVersionUpgrade; - this.clusterEndpoints = clusterEndpoints; - this.description = description; - this.enginePatchVersion = enginePatchVersion; - this.engineVersion = engineVersion; - this.finalSnapshotName = finalSnapshotName; - this.id = id; - this.kmsKeyArn = kmsKeyArn; - this.maintenanceWindow = maintenanceWindow; - this.name = name; - this.nodeType = nodeType; - this.numReplicasPerShard = numReplicasPerShard; - this.numShards = numShards; - this.parameterGroupName = parameterGroupName; - this.port = port; - this.securityGroupIds = securityGroupIds; - this.shards = shards; - this.snapshotRetentionLimit = snapshotRetentionLimit; - this.snapshotWindow = snapshotWindow; - this.snsTopicArn = snsTopicArn; - this.subnetGroupName = subnetGroupName; - this.tags = tags; - this.tlsEnabled = tlsEnabled; - } + private Boolean tlsEnabled; + private GetClusterResult() {} /** * @return The name of the Access Control List associated with the cluster. * @@ -368,7 +315,7 @@ public static Builder builder() { public static Builder builder(GetClusterResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String aclName; private String arn; @@ -395,11 +342,7 @@ public static final class Builder { private String subnetGroupName; private Map tags; private Boolean tlsEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterResult defaults) { Objects.requireNonNull(defaults); this.aclName = defaults.aclName; @@ -429,18 +372,22 @@ public Builder(GetClusterResult defaults) { this.tlsEnabled = defaults.tlsEnabled; } + @CustomType.Setter public Builder aclName(String aclName) { this.aclName = Objects.requireNonNull(aclName); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) { this.autoMinorVersionUpgrade = Objects.requireNonNull(autoMinorVersionUpgrade); return this; } + @CustomType.Setter public Builder clusterEndpoints(List clusterEndpoints) { this.clusterEndpoints = Objects.requireNonNull(clusterEndpoints); return this; @@ -448,58 +395,72 @@ public Builder clusterEndpoints(List clusterEndpoints public Builder clusterEndpoints(GetClusterClusterEndpoint... clusterEndpoints) { return clusterEndpoints(List.of(clusterEndpoints)); } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder enginePatchVersion(String enginePatchVersion) { this.enginePatchVersion = Objects.requireNonNull(enginePatchVersion); return this; } + @CustomType.Setter public Builder engineVersion(String engineVersion) { this.engineVersion = Objects.requireNonNull(engineVersion); return this; } + @CustomType.Setter public Builder finalSnapshotName(String finalSnapshotName) { this.finalSnapshotName = Objects.requireNonNull(finalSnapshotName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = Objects.requireNonNull(kmsKeyArn); return this; } + @CustomType.Setter public Builder maintenanceWindow(String maintenanceWindow) { this.maintenanceWindow = Objects.requireNonNull(maintenanceWindow); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nodeType(String nodeType) { this.nodeType = Objects.requireNonNull(nodeType); return this; } + @CustomType.Setter public Builder numReplicasPerShard(Integer numReplicasPerShard) { this.numReplicasPerShard = Objects.requireNonNull(numReplicasPerShard); return this; } + @CustomType.Setter public Builder numShards(Integer numShards) { this.numShards = Objects.requireNonNull(numShards); return this; } + @CustomType.Setter public Builder parameterGroupName(String parameterGroupName) { this.parameterGroupName = Objects.requireNonNull(parameterGroupName); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -507,6 +468,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder shards(List shards) { this.shards = Objects.requireNonNull(shards); return this; @@ -514,31 +476,64 @@ public Builder shards(List shards) { public Builder shards(GetClusterShard... shards) { return shards(List.of(shards)); } + @CustomType.Setter public Builder snapshotRetentionLimit(Integer snapshotRetentionLimit) { this.snapshotRetentionLimit = Objects.requireNonNull(snapshotRetentionLimit); return this; } + @CustomType.Setter public Builder snapshotWindow(String snapshotWindow) { this.snapshotWindow = Objects.requireNonNull(snapshotWindow); return this; } + @CustomType.Setter public Builder snsTopicArn(String snsTopicArn) { this.snsTopicArn = Objects.requireNonNull(snsTopicArn); return this; } + @CustomType.Setter public Builder subnetGroupName(String subnetGroupName) { this.subnetGroupName = Objects.requireNonNull(subnetGroupName); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder tlsEnabled(Boolean tlsEnabled) { this.tlsEnabled = Objects.requireNonNull(tlsEnabled); return this; - } public GetClusterResult build() { - return new GetClusterResult(aclName, arn, autoMinorVersionUpgrade, clusterEndpoints, description, enginePatchVersion, engineVersion, finalSnapshotName, id, kmsKeyArn, maintenanceWindow, name, nodeType, numReplicasPerShard, numShards, parameterGroupName, port, securityGroupIds, shards, snapshotRetentionLimit, snapshotWindow, snsTopicArn, subnetGroupName, tags, tlsEnabled); + } + public GetClusterResult build() { + final var o = new GetClusterResult(); + o.aclName = aclName; + o.arn = arn; + o.autoMinorVersionUpgrade = autoMinorVersionUpgrade; + o.clusterEndpoints = clusterEndpoints; + o.description = description; + o.enginePatchVersion = enginePatchVersion; + o.engineVersion = engineVersion; + o.finalSnapshotName = finalSnapshotName; + o.id = id; + o.kmsKeyArn = kmsKeyArn; + o.maintenanceWindow = maintenanceWindow; + o.name = name; + o.nodeType = nodeType; + o.numReplicasPerShard = numReplicasPerShard; + o.numShards = numShards; + o.parameterGroupName = parameterGroupName; + o.port = port; + o.securityGroupIds = securityGroupIds; + o.shards = shards; + o.snapshotRetentionLimit = snapshotRetentionLimit; + o.snapshotWindow = snapshotWindow; + o.snsTopicArn = snsTopicArn; + o.subnetGroupName = subnetGroupName; + o.tags = tags; + o.tlsEnabled = tlsEnabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterShard.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterShard.java index e1bc5c8e8cd..bf9d924f0b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterShard.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterShard.java @@ -16,35 +16,24 @@ public final class GetClusterShard { * @return Name of the cluster. * */ - private final String name; + private String name; /** * @return Set of nodes in this shard. * */ - private final List nodes; + private List nodes; /** * @return Number of individual nodes in this shard. * */ - private final Integer numNodes; + private Integer numNodes; /** * @return Keyspace for this shard. Example: `0-16383`. * */ - private final String slots; - - @CustomType.Constructor - private GetClusterShard( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nodes") List nodes, - @CustomType.Parameter("numNodes") Integer numNodes, - @CustomType.Parameter("slots") String slots) { - this.name = name; - this.nodes = nodes; - this.numNodes = numNodes; - this.slots = slots; - } + private String slots; + private GetClusterShard() {} /** * @return Name of the cluster. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(GetClusterShard defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List nodes; private Integer numNodes; private String slots; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterShard defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -100,10 +85,12 @@ public Builder(GetClusterShard defaults) { this.slots = defaults.slots; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nodes(List nodes) { this.nodes = Objects.requireNonNull(nodes); return this; @@ -111,15 +98,23 @@ public Builder nodes(List nodes) { public Builder nodes(GetClusterShardNode... nodes) { return nodes(List.of(nodes)); } + @CustomType.Setter public Builder numNodes(Integer numNodes) { this.numNodes = Objects.requireNonNull(numNodes); return this; } + @CustomType.Setter public Builder slots(String slots) { this.slots = Objects.requireNonNull(slots); return this; - } public GetClusterShard build() { - return new GetClusterShard(name, nodes, numNodes, slots); + } + public GetClusterShard build() { + final var o = new GetClusterShard(); + o.name = name; + o.nodes = nodes; + o.numNodes = numNodes; + o.slots = slots; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterShardNode.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterShardNode.java index 5d2d069d280..91a3d389313 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterShardNode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterShardNode.java @@ -15,31 +15,20 @@ public final class GetClusterShardNode { * @return The Availability Zone in which the node resides. * */ - private final String availabilityZone; + private String availabilityZone; /** * @return The date and time when the node was created. Example: `2022-01-01T21:00:00Z`. * */ - private final String createTime; - private final List endpoints; + private String createTime; + private List endpoints; /** * @return Name of the cluster. * */ - private final String name; - - @CustomType.Constructor - private GetClusterShardNode( - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("createTime") String createTime, - @CustomType.Parameter("endpoints") List endpoints, - @CustomType.Parameter("name") String name) { - this.availabilityZone = availabilityZone; - this.createTime = createTime; - this.endpoints = endpoints; - this.name = name; - } + private String name; + private GetClusterShardNode() {} /** * @return The Availability Zone in which the node resides. * @@ -72,17 +61,13 @@ public static Builder builder() { public static Builder builder(GetClusterShardNode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String availabilityZone; private String createTime; private List endpoints; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterShardNode defaults) { Objects.requireNonNull(defaults); this.availabilityZone = defaults.availabilityZone; @@ -91,14 +76,17 @@ public Builder(GetClusterShardNode defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder createTime(String createTime) { this.createTime = Objects.requireNonNull(createTime); return this; } + @CustomType.Setter public Builder endpoints(List endpoints) { this.endpoints = Objects.requireNonNull(endpoints); return this; @@ -106,11 +94,18 @@ public Builder endpoints(List endpoints) { public Builder endpoints(GetClusterShardNodeEndpoint... endpoints) { return endpoints(List.of(endpoints)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetClusterShardNode build() { - return new GetClusterShardNode(availabilityZone, createTime, endpoints, name); + } + public GetClusterShardNode build() { + final var o = new GetClusterShardNode(); + o.availabilityZone = availabilityZone; + o.createTime = createTime; + o.endpoints = endpoints; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterShardNodeEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterShardNodeEndpoint.java index 7fe36da1bff..5b206b13ce3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterShardNodeEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetClusterShardNodeEndpoint.java @@ -14,21 +14,14 @@ public final class GetClusterShardNodeEndpoint { * @return DNS hostname of the node. * */ - private final String address; + private String address; /** * @return Port number that this node is listening on. * */ - private final Integer port; - - @CustomType.Constructor - private GetClusterShardNodeEndpoint( - @CustomType.Parameter("address") String address, - @CustomType.Parameter("port") Integer port) { - this.address = address; - this.port = port; - } + private Integer port; + private GetClusterShardNodeEndpoint() {} /** * @return DNS hostname of the node. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetClusterShardNodeEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String address; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterShardNodeEndpoint defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; this.port = defaults.port; } + @CustomType.Setter public Builder address(String address) { this.address = Objects.requireNonNull(address); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public GetClusterShardNodeEndpoint build() { - return new GetClusterShardNodeEndpoint(address, port); + } + public GetClusterShardNodeEndpoint build() { + final var o = new GetClusterShardNodeEndpoint(); + o.address = address; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetParameterGroupParameter.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetParameterGroupParameter.java index 7d37fe4dfc9..d3342c6641d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetParameterGroupParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetParameterGroupParameter.java @@ -13,21 +13,14 @@ public final class GetParameterGroupParameter { * @return Name of the parameter group. * */ - private final String name; + private String name; /** * @return Value of the parameter. * */ - private final String value; - - @CustomType.Constructor - private GetParameterGroupParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private GetParameterGroupParameter() {} /** * @return Name of the parameter group. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetParameterGroupParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetParameterGroupParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetParameterGroupParameter build() { - return new GetParameterGroupParameter(name, value); + } + public GetParameterGroupParameter build() { + final var o = new GetParameterGroupParameter(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetParameterGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetParameterGroupResult.java index 340599c5ff5..e110b6a6eb7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetParameterGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetParameterGroupResult.java @@ -16,56 +16,39 @@ public final class GetParameterGroupResult { * @return ARN of the parameter group. * */ - private final String arn; + private String arn; /** * @return Description of the parameter group. * */ - private final String description; + private String description; /** * @return The engine version that the parameter group can be used with. * */ - private final String family; + private String family; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Name of the parameter. * */ - private final String name; + private String name; /** * @return Set of user-defined MemoryDB parameters applied by the parameter group. * */ - private final List parameters; + private List parameters; /** * @return A map of tags assigned to the parameter group. * */ - private final Map tags; - - @CustomType.Constructor - private GetParameterGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("family") String family, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("parameters") List parameters, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.description = description; - this.family = family; - this.id = id; - this.name = name; - this.parameters = parameters; - this.tags = tags; - } + private Map tags; + private GetParameterGroupResult() {} /** * @return ARN of the parameter group. * @@ -123,7 +106,7 @@ public static Builder builder() { public static Builder builder(GetParameterGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -132,11 +115,7 @@ public static final class Builder { private String name; private List parameters; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetParameterGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -148,26 +127,32 @@ public Builder(GetParameterGroupResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder family(String family) { this.family = Objects.requireNonNull(family); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder parameters(List parameters) { this.parameters = Objects.requireNonNull(parameters); return this; @@ -175,11 +160,21 @@ public Builder parameters(List parameters) { public Builder parameters(GetParameterGroupParameter... parameters) { return parameters(List.of(parameters)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetParameterGroupResult build() { - return new GetParameterGroupResult(arn, description, family, id, name, parameters, tags); + } + public GetParameterGroupResult build() { + final var o = new GetParameterGroupResult(); + o.arn = arn; + o.description = description; + o.family = family; + o.id = id; + o.name = name; + o.parameters = parameters; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetSnapshotClusterConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetSnapshotClusterConfiguration.java index 58d939aceb7..a4e9560ce13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetSnapshotClusterConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetSnapshotClusterConfiguration.java @@ -14,98 +14,69 @@ public final class GetSnapshotClusterConfiguration { * @return Description for the cluster. * */ - private final String description; + private String description; /** * @return Version number of the Redis engine used by the cluster. * */ - private final String engineVersion; + private String engineVersion; /** * @return The weekly time range during which maintenance on the cluster is performed. * */ - private final String maintenanceWindow; + private String maintenanceWindow; /** * @return Name of the snapshot. * */ - private final String name; + private String name; /** * @return Compute and memory capacity of the nodes in the cluster. * */ - private final String nodeType; + private String nodeType; /** * @return Number of shards in the cluster. * */ - private final Integer numShards; + private Integer numShards; /** * @return Name of the parameter group associated with the cluster. * */ - private final String parameterGroupName; + private String parameterGroupName; /** * @return Port number on which the cluster accepts connections. * */ - private final Integer port; + private Integer port; /** * @return Number of days for which MemoryDB retains automatic snapshots before deleting them. * */ - private final Integer snapshotRetentionLimit; + private Integer snapshotRetentionLimit; /** * @return The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of the shard. * */ - private final String snapshotWindow; + private String snapshotWindow; /** * @return Name of the subnet group used by the cluster. * */ - private final String subnetGroupName; + private String subnetGroupName; /** * @return ARN of the SNS topic to which cluster notifications are sent. * */ - private final String topicArn; + private String topicArn; /** * @return The VPC in which the cluster exists. * */ - private final String vpcId; - - @CustomType.Constructor - private GetSnapshotClusterConfiguration( - @CustomType.Parameter("description") String description, - @CustomType.Parameter("engineVersion") String engineVersion, - @CustomType.Parameter("maintenanceWindow") String maintenanceWindow, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nodeType") String nodeType, - @CustomType.Parameter("numShards") Integer numShards, - @CustomType.Parameter("parameterGroupName") String parameterGroupName, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("snapshotRetentionLimit") Integer snapshotRetentionLimit, - @CustomType.Parameter("snapshotWindow") String snapshotWindow, - @CustomType.Parameter("subnetGroupName") String subnetGroupName, - @CustomType.Parameter("topicArn") String topicArn, - @CustomType.Parameter("vpcId") String vpcId) { - this.description = description; - this.engineVersion = engineVersion; - this.maintenanceWindow = maintenanceWindow; - this.name = name; - this.nodeType = nodeType; - this.numShards = numShards; - this.parameterGroupName = parameterGroupName; - this.port = port; - this.snapshotRetentionLimit = snapshotRetentionLimit; - this.snapshotWindow = snapshotWindow; - this.subnetGroupName = subnetGroupName; - this.topicArn = topicArn; - this.vpcId = vpcId; - } + private String vpcId; + private GetSnapshotClusterConfiguration() {} /** * @return Description for the cluster. * @@ -205,7 +176,7 @@ public static Builder builder() { public static Builder builder(GetSnapshotClusterConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String description; private String engineVersion; @@ -220,11 +191,7 @@ public static final class Builder { private String subnetGroupName; private String topicArn; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSnapshotClusterConfiguration defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; @@ -242,59 +209,87 @@ public Builder(GetSnapshotClusterConfiguration defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder engineVersion(String engineVersion) { this.engineVersion = Objects.requireNonNull(engineVersion); return this; } + @CustomType.Setter public Builder maintenanceWindow(String maintenanceWindow) { this.maintenanceWindow = Objects.requireNonNull(maintenanceWindow); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nodeType(String nodeType) { this.nodeType = Objects.requireNonNull(nodeType); return this; } + @CustomType.Setter public Builder numShards(Integer numShards) { this.numShards = Objects.requireNonNull(numShards); return this; } + @CustomType.Setter public Builder parameterGroupName(String parameterGroupName) { this.parameterGroupName = Objects.requireNonNull(parameterGroupName); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder snapshotRetentionLimit(Integer snapshotRetentionLimit) { this.snapshotRetentionLimit = Objects.requireNonNull(snapshotRetentionLimit); return this; } + @CustomType.Setter public Builder snapshotWindow(String snapshotWindow) { this.snapshotWindow = Objects.requireNonNull(snapshotWindow); return this; } + @CustomType.Setter public Builder subnetGroupName(String subnetGroupName) { this.subnetGroupName = Objects.requireNonNull(subnetGroupName); return this; } + @CustomType.Setter public Builder topicArn(String topicArn) { this.topicArn = Objects.requireNonNull(topicArn); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetSnapshotClusterConfiguration build() { - return new GetSnapshotClusterConfiguration(description, engineVersion, maintenanceWindow, name, nodeType, numShards, parameterGroupName, port, snapshotRetentionLimit, snapshotWindow, subnetGroupName, topicArn, vpcId); + } + public GetSnapshotClusterConfiguration build() { + final var o = new GetSnapshotClusterConfiguration(); + o.description = description; + o.engineVersion = engineVersion; + o.maintenanceWindow = maintenanceWindow; + o.name = name; + o.nodeType = nodeType; + o.numShards = numShards; + o.parameterGroupName = parameterGroupName; + o.port = port; + o.snapshotRetentionLimit = snapshotRetentionLimit; + o.snapshotWindow = snapshotWindow; + o.subnetGroupName = subnetGroupName; + o.topicArn = topicArn; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetSnapshotResult.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetSnapshotResult.java index 19fdecfbf41..d72ae1d5c9b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetSnapshotResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetSnapshotResult.java @@ -16,63 +16,44 @@ public final class GetSnapshotResult { * @return The ARN of the snapshot. * */ - private final String arn; + private String arn; /** * @return The configuration of the cluster from which the snapshot was taken. * */ - private final List clusterConfigurations; + private List clusterConfigurations; /** * @return Name of the MemoryDB cluster that this snapshot was taken from. * */ - private final String clusterName; + private String clusterName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return ARN of the KMS key used to encrypt the snapshot at rest. * */ - private final String kmsKeyArn; + private String kmsKeyArn; /** * @return Name of the cluster. * */ - private final String name; + private String name; /** * @return Indicates whether the snapshot is from an automatic backup (`automated`) or was created manually (`manual`). * */ - private final String source; + private String source; /** * @return A map of tags assigned to the snapshot. * */ - private final Map tags; - - @CustomType.Constructor - private GetSnapshotResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("clusterConfigurations") List clusterConfigurations, - @CustomType.Parameter("clusterName") String clusterName, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKeyArn") String kmsKeyArn, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("source") String source, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.clusterConfigurations = clusterConfigurations; - this.clusterName = clusterName; - this.id = id; - this.kmsKeyArn = kmsKeyArn; - this.name = name; - this.source = source; - this.tags = tags; - } + private Map tags; + private GetSnapshotResult() {} /** * @return The ARN of the snapshot. * @@ -137,7 +118,7 @@ public static Builder builder() { public static Builder builder(GetSnapshotResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List clusterConfigurations; @@ -147,11 +128,7 @@ public static final class Builder { private String name; private String source; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSnapshotResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -164,10 +141,12 @@ public Builder(GetSnapshotResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder clusterConfigurations(List clusterConfigurations) { this.clusterConfigurations = Objects.requireNonNull(clusterConfigurations); return this; @@ -175,31 +154,47 @@ public Builder clusterConfigurations(List clust public Builder clusterConfigurations(GetSnapshotClusterConfiguration... clusterConfigurations) { return clusterConfigurations(List.of(clusterConfigurations)); } + @CustomType.Setter public Builder clusterName(String clusterName) { this.clusterName = Objects.requireNonNull(clusterName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = Objects.requireNonNull(kmsKeyArn); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder source(String source) { this.source = Objects.requireNonNull(source); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetSnapshotResult build() { - return new GetSnapshotResult(arn, clusterConfigurations, clusterName, id, kmsKeyArn, name, source, tags); + } + public GetSnapshotResult build() { + final var o = new GetSnapshotResult(); + o.arn = arn; + o.clusterConfigurations = clusterConfigurations; + o.clusterName = clusterName; + o.id = id; + o.kmsKeyArn = kmsKeyArn; + o.name = name; + o.source = source; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetSubnetGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetSubnetGroupResult.java index a500f96eddb..45da93b175d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetSubnetGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetSubnetGroupResult.java @@ -15,52 +15,35 @@ public final class GetSubnetGroupResult { * @return ARN of the subnet group. * */ - private final String arn; + private String arn; /** * @return Description of the subnet group. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return Set of VPC Subnet ID-s of the subnet group. * */ - private final List subnetIds; + private List subnetIds; /** * @return A map of tags assigned to the subnet group. * */ - private final Map tags; + private Map tags; /** * @return The VPC in which the subnet group exists. * */ - private final String vpcId; - - @CustomType.Constructor - private GetSubnetGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.description = description; - this.id = id; - this.name = name; - this.subnetIds = subnetIds; - this.tags = tags; - this.vpcId = vpcId; - } + private String vpcId; + private GetSubnetGroupResult() {} /** * @return ARN of the subnet group. * @@ -114,7 +97,7 @@ public static Builder builder() { public static Builder builder(GetSubnetGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -123,11 +106,7 @@ public static final class Builder { private List subnetIds; private Map tags; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSubnetGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -139,22 +118,27 @@ public Builder(GetSubnetGroupResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -162,15 +146,26 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetSubnetGroupResult build() { - return new GetSubnetGroupResult(arn, description, id, name, subnetIds, tags, vpcId); + } + public GetSubnetGroupResult build() { + final var o = new GetSubnetGroupResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.name = name; + o.subnetIds = subnetIds; + o.tags = tags; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetUserAuthenticationMode.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetUserAuthenticationMode.java index 4aea62ce535..1d338f6cddf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetUserAuthenticationMode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetUserAuthenticationMode.java @@ -14,21 +14,14 @@ public final class GetUserAuthenticationMode { * @return The number of passwords belonging to the user. * */ - private final Integer passwordCount; + private Integer passwordCount; /** * @return Indicates whether the user requires a password to authenticate. * */ - private final String type; - - @CustomType.Constructor - private GetUserAuthenticationMode( - @CustomType.Parameter("passwordCount") Integer passwordCount, - @CustomType.Parameter("type") String type) { - this.passwordCount = passwordCount; - this.type = type; - } + private String type; + private GetUserAuthenticationMode() {} /** * @return The number of passwords belonging to the user. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetUserAuthenticationMode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer passwordCount; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserAuthenticationMode defaults) { Objects.requireNonNull(defaults); this.passwordCount = defaults.passwordCount; this.type = defaults.type; } + @CustomType.Setter public Builder passwordCount(Integer passwordCount) { this.passwordCount = Objects.requireNonNull(passwordCount); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetUserAuthenticationMode build() { - return new GetUserAuthenticationMode(passwordCount, type); + } + public GetUserAuthenticationMode build() { + final var o = new GetUserAuthenticationMode(); + o.passwordCount = passwordCount; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetUserResult.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetUserResult.java index cdbd747defa..47aab8f94d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetUserResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/GetUserResult.java @@ -16,52 +16,35 @@ public final class GetUserResult { * @return The access permissions string used for this user. * */ - private final String accessString; + private String accessString; /** * @return ARN of the user. * */ - private final String arn; + private String arn; /** * @return Denotes the user's authentication properties. * */ - private final List authenticationModes; + private List authenticationModes; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The minimum engine version supported for the user. * */ - private final String minimumEngineVersion; + private String minimumEngineVersion; /** * @return A map of tags assigned to the subnet group. * */ - private final Map tags; - private final String userName; - - @CustomType.Constructor - private GetUserResult( - @CustomType.Parameter("accessString") String accessString, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("authenticationModes") List authenticationModes, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("minimumEngineVersion") String minimumEngineVersion, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("userName") String userName) { - this.accessString = accessString; - this.arn = arn; - this.authenticationModes = authenticationModes; - this.id = id; - this.minimumEngineVersion = minimumEngineVersion; - this.tags = tags; - this.userName = userName; - } + private Map tags; + private String userName; + private GetUserResult() {} /** * @return The access permissions string used for this user. * @@ -115,7 +98,7 @@ public static Builder builder() { public static Builder builder(GetUserResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accessString; private String arn; @@ -124,11 +107,7 @@ public static final class Builder { private String minimumEngineVersion; private Map tags; private String userName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetUserResult defaults) { Objects.requireNonNull(defaults); this.accessString = defaults.accessString; @@ -140,14 +119,17 @@ public Builder(GetUserResult defaults) { this.userName = defaults.userName; } + @CustomType.Setter public Builder accessString(String accessString) { this.accessString = Objects.requireNonNull(accessString); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder authenticationModes(List authenticationModes) { this.authenticationModes = Objects.requireNonNull(authenticationModes); return this; @@ -155,23 +137,36 @@ public Builder authenticationModes(List authenticatio public Builder authenticationModes(GetUserAuthenticationMode... authenticationModes) { return authenticationModes(List.of(authenticationModes)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder minimumEngineVersion(String minimumEngineVersion) { this.minimumEngineVersion = Objects.requireNonNull(minimumEngineVersion); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder userName(String userName) { this.userName = Objects.requireNonNull(userName); return this; - } public GetUserResult build() { - return new GetUserResult(accessString, arn, authenticationModes, id, minimumEngineVersion, tags, userName); + } + public GetUserResult build() { + final var o = new GetUserResult(); + o.accessString = accessString; + o.arn = arn; + o.authenticationModes = authenticationModes; + o.id = id; + o.minimumEngineVersion = minimumEngineVersion; + o.tags = tags; + o.userName = userName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ParameterGroupParameter.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ParameterGroupParameter.java index f8a310b7ca6..743412786d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ParameterGroupParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/ParameterGroupParameter.java @@ -13,21 +13,14 @@ public final class ParameterGroupParameter { * @return The name of the parameter. * */ - private final String name; + private String name; /** * @return The value of the parameter. * */ - private final String value; - - @CustomType.Constructor - private ParameterGroupParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private ParameterGroupParameter() {} /** * @return The name of the parameter. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ParameterGroupParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ParameterGroupParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ParameterGroupParameter build() { - return new ParameterGroupParameter(name, value); + } + public ParameterGroupParameter build() { + final var o = new ParameterGroupParameter(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/SnapshotClusterConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/SnapshotClusterConfiguration.java index 3df5d69a2fe..38eebeb80c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/SnapshotClusterConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/SnapshotClusterConfiguration.java @@ -16,98 +16,69 @@ public final class SnapshotClusterConfiguration { * @return Description for the cluster. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return Version number of the Redis engine used by the cluster. * */ - private final @Nullable String engineVersion; + private @Nullable String engineVersion; /** * @return The weekly time range during which maintenance on the cluster is performed. * */ - private final @Nullable String maintenanceWindow; + private @Nullable String maintenanceWindow; /** * @return Name of the cluster. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Compute and memory capacity of the nodes in the cluster. * */ - private final @Nullable String nodeType; + private @Nullable String nodeType; /** * @return Number of shards in the cluster. * */ - private final @Nullable Integer numShards; + private @Nullable Integer numShards; /** * @return Name of the parameter group associated with the cluster. * */ - private final @Nullable String parameterGroupName; + private @Nullable String parameterGroupName; /** * @return Port number on which the cluster accepts connections. * */ - private final @Nullable Integer port; + private @Nullable Integer port; /** * @return Number of days for which MemoryDB retains automatic snapshots before deleting them. * */ - private final @Nullable Integer snapshotRetentionLimit; + private @Nullable Integer snapshotRetentionLimit; /** * @return The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of the shard. * */ - private final @Nullable String snapshotWindow; + private @Nullable String snapshotWindow; /** * @return Name of the subnet group used by the cluster. * */ - private final @Nullable String subnetGroupName; + private @Nullable String subnetGroupName; /** * @return ARN of the SNS topic to which cluster notifications are sent. * */ - private final @Nullable String topicArn; + private @Nullable String topicArn; /** * @return The VPC in which the cluster exists. * */ - private final @Nullable String vpcId; - - @CustomType.Constructor - private SnapshotClusterConfiguration( - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("engineVersion") @Nullable String engineVersion, - @CustomType.Parameter("maintenanceWindow") @Nullable String maintenanceWindow, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("nodeType") @Nullable String nodeType, - @CustomType.Parameter("numShards") @Nullable Integer numShards, - @CustomType.Parameter("parameterGroupName") @Nullable String parameterGroupName, - @CustomType.Parameter("port") @Nullable Integer port, - @CustomType.Parameter("snapshotRetentionLimit") @Nullable Integer snapshotRetentionLimit, - @CustomType.Parameter("snapshotWindow") @Nullable String snapshotWindow, - @CustomType.Parameter("subnetGroupName") @Nullable String subnetGroupName, - @CustomType.Parameter("topicArn") @Nullable String topicArn, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.description = description; - this.engineVersion = engineVersion; - this.maintenanceWindow = maintenanceWindow; - this.name = name; - this.nodeType = nodeType; - this.numShards = numShards; - this.parameterGroupName = parameterGroupName; - this.port = port; - this.snapshotRetentionLimit = snapshotRetentionLimit; - this.snapshotWindow = snapshotWindow; - this.subnetGroupName = subnetGroupName; - this.topicArn = topicArn; - this.vpcId = vpcId; - } + private @Nullable String vpcId; + private SnapshotClusterConfiguration() {} /** * @return Description for the cluster. * @@ -207,7 +178,7 @@ public static Builder builder() { public static Builder builder(SnapshotClusterConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String description; private @Nullable String engineVersion; @@ -222,11 +193,7 @@ public static final class Builder { private @Nullable String subnetGroupName; private @Nullable String topicArn; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SnapshotClusterConfiguration defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; @@ -244,59 +211,87 @@ public Builder(SnapshotClusterConfiguration defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder engineVersion(@Nullable String engineVersion) { this.engineVersion = engineVersion; return this; } + @CustomType.Setter public Builder maintenanceWindow(@Nullable String maintenanceWindow) { this.maintenanceWindow = maintenanceWindow; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder nodeType(@Nullable String nodeType) { this.nodeType = nodeType; return this; } + @CustomType.Setter public Builder numShards(@Nullable Integer numShards) { this.numShards = numShards; return this; } + @CustomType.Setter public Builder parameterGroupName(@Nullable String parameterGroupName) { this.parameterGroupName = parameterGroupName; return this; } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; } + @CustomType.Setter public Builder snapshotRetentionLimit(@Nullable Integer snapshotRetentionLimit) { this.snapshotRetentionLimit = snapshotRetentionLimit; return this; } + @CustomType.Setter public Builder snapshotWindow(@Nullable String snapshotWindow) { this.snapshotWindow = snapshotWindow; return this; } + @CustomType.Setter public Builder subnetGroupName(@Nullable String subnetGroupName) { this.subnetGroupName = subnetGroupName; return this; } + @CustomType.Setter public Builder topicArn(@Nullable String topicArn) { this.topicArn = topicArn; return this; } + @CustomType.Setter public Builder vpcId(@Nullable String vpcId) { this.vpcId = vpcId; return this; - } public SnapshotClusterConfiguration build() { - return new SnapshotClusterConfiguration(description, engineVersion, maintenanceWindow, name, nodeType, numShards, parameterGroupName, port, snapshotRetentionLimit, snapshotWindow, subnetGroupName, topicArn, vpcId); + } + public SnapshotClusterConfiguration build() { + final var o = new SnapshotClusterConfiguration(); + o.description = description; + o.engineVersion = engineVersion; + o.maintenanceWindow = maintenanceWindow; + o.name = name; + o.nodeType = nodeType; + o.numShards = numShards; + o.parameterGroupName = parameterGroupName; + o.port = port; + o.snapshotRetentionLimit = snapshotRetentionLimit; + o.snapshotWindow = snapshotWindow; + o.subnetGroupName = subnetGroupName; + o.topicArn = topicArn; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/UserAuthenticationMode.java b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/UserAuthenticationMode.java index 1f5b991adaf..dc71d832611 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/UserAuthenticationMode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/memorydb/outputs/UserAuthenticationMode.java @@ -17,28 +17,19 @@ public final class UserAuthenticationMode { * @return The number of passwords belonging to the user. * */ - private final @Nullable Integer passwordCount; + private @Nullable Integer passwordCount; /** * @return The set of passwords used for authentication. You can create up to two passwords for each user. * */ - private final List passwords; + private List passwords; /** * @return Indicates whether the user requires a password to authenticate. Must be set to `password`. * */ - private final String type; - - @CustomType.Constructor - private UserAuthenticationMode( - @CustomType.Parameter("passwordCount") @Nullable Integer passwordCount, - @CustomType.Parameter("passwords") List passwords, - @CustomType.Parameter("type") String type) { - this.passwordCount = passwordCount; - this.passwords = passwords; - this.type = type; - } + private String type; + private UserAuthenticationMode() {} /** * @return The number of passwords belonging to the user. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(UserAuthenticationMode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer passwordCount; private List passwords; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserAuthenticationMode defaults) { Objects.requireNonNull(defaults); this.passwordCount = defaults.passwordCount; @@ -85,10 +72,12 @@ public Builder(UserAuthenticationMode defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder passwordCount(@Nullable Integer passwordCount) { this.passwordCount = passwordCount; return this; } + @CustomType.Setter public Builder passwords(List passwords) { this.passwords = Objects.requireNonNull(passwords); return this; @@ -96,11 +85,17 @@ public Builder passwords(List passwords) { public Builder passwords(String... passwords) { return passwords(List.of(passwords)); } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public UserAuthenticationMode build() { - return new UserAuthenticationMode(passwordCount, passwords, type); + } + public UserAuthenticationMode build() { + final var o = new UserAuthenticationMode(); + o.passwordCount = passwordCount; + o.passwords = passwords; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerConfiguration.java index 73933075d2e..ca528b45ba1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerConfiguration.java @@ -16,21 +16,14 @@ public final class BrokerConfiguration { * @return The Configuration ID. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Revision of the Configuration. * */ - private final @Nullable Integer revision; - - @CustomType.Constructor - private BrokerConfiguration( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("revision") @Nullable Integer revision) { - this.id = id; - this.revision = revision; - } + private @Nullable Integer revision; + private BrokerConfiguration() {} /** * @return The Configuration ID. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BrokerConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private @Nullable Integer revision; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BrokerConfiguration defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.revision = defaults.revision; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder revision(@Nullable Integer revision) { this.revision = revision; return this; - } public BrokerConfiguration build() { - return new BrokerConfiguration(id, revision); + } + public BrokerConfiguration build() { + final var o = new BrokerConfiguration(); + o.id = id; + o.revision = revision; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerEncryptionOptions.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerEncryptionOptions.java index 9a885be32fc..d969d466934 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerEncryptionOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerEncryptionOptions.java @@ -16,21 +16,14 @@ public final class BrokerEncryptionOptions { * @return Amazon Resource Name (ARN) of Key Management Service (KMS) Customer Master Key (CMK) to use for encryption at rest. Requires setting `use_aws_owned_key` to `false`. To perform drift detection when AWS-managed CMKs or customer-managed CMKs are in use, this value must be configured. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return Whether to enable an AWS-owned KMS CMK that is not in your account. Defaults to `true`. Setting to `false` without configuring `kms_key_id` will create an AWS-managed CMK aliased to `aws/mq` in your account. * */ - private final @Nullable Boolean useAwsOwnedKey; - - @CustomType.Constructor - private BrokerEncryptionOptions( - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("useAwsOwnedKey") @Nullable Boolean useAwsOwnedKey) { - this.kmsKeyId = kmsKeyId; - this.useAwsOwnedKey = useAwsOwnedKey; - } + private @Nullable Boolean useAwsOwnedKey; + private BrokerEncryptionOptions() {} /** * @return Amazon Resource Name (ARN) of Key Management Service (KMS) Customer Master Key (CMK) to use for encryption at rest. Requires setting `use_aws_owned_key` to `false`. To perform drift detection when AWS-managed CMKs or customer-managed CMKs are in use, this value must be configured. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BrokerEncryptionOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsKeyId; private @Nullable Boolean useAwsOwnedKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BrokerEncryptionOptions defaults) { Objects.requireNonNull(defaults); this.kmsKeyId = defaults.kmsKeyId; this.useAwsOwnedKey = defaults.useAwsOwnedKey; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder useAwsOwnedKey(@Nullable Boolean useAwsOwnedKey) { this.useAwsOwnedKey = useAwsOwnedKey; return this; - } public BrokerEncryptionOptions build() { - return new BrokerEncryptionOptions(kmsKeyId, useAwsOwnedKey); + } + public BrokerEncryptionOptions build() { + final var o = new BrokerEncryptionOptions(); + o.kmsKeyId = kmsKeyId; + o.useAwsOwnedKey = useAwsOwnedKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerInstance.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerInstance.java index 99290ac4335..f199b996236 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerInstance.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerInstance.java @@ -12,20 +12,11 @@ @CustomType public final class BrokerInstance { - private final @Nullable String consoleUrl; - private final @Nullable List endpoints; - private final @Nullable String ipAddress; - - @CustomType.Constructor - private BrokerInstance( - @CustomType.Parameter("consoleUrl") @Nullable String consoleUrl, - @CustomType.Parameter("endpoints") @Nullable List endpoints, - @CustomType.Parameter("ipAddress") @Nullable String ipAddress) { - this.consoleUrl = consoleUrl; - this.endpoints = endpoints; - this.ipAddress = ipAddress; - } + private @Nullable String consoleUrl; + private @Nullable List endpoints; + private @Nullable String ipAddress; + private BrokerInstance() {} public Optional consoleUrl() { return Optional.ofNullable(this.consoleUrl); } @@ -43,16 +34,12 @@ public static Builder builder() { public static Builder builder(BrokerInstance defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String consoleUrl; private @Nullable List endpoints; private @Nullable String ipAddress; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BrokerInstance defaults) { Objects.requireNonNull(defaults); this.consoleUrl = defaults.consoleUrl; @@ -60,10 +47,12 @@ public Builder(BrokerInstance defaults) { this.ipAddress = defaults.ipAddress; } + @CustomType.Setter public Builder consoleUrl(@Nullable String consoleUrl) { this.consoleUrl = consoleUrl; return this; } + @CustomType.Setter public Builder endpoints(@Nullable List endpoints) { this.endpoints = endpoints; return this; @@ -71,11 +60,17 @@ public Builder endpoints(@Nullable List endpoints) { public Builder endpoints(String... endpoints) { return endpoints(List.of(endpoints)); } + @CustomType.Setter public Builder ipAddress(@Nullable String ipAddress) { this.ipAddress = ipAddress; return this; - } public BrokerInstance build() { - return new BrokerInstance(consoleUrl, endpoints, ipAddress); + } + public BrokerInstance build() { + final var o = new BrokerInstance(); + o.consoleUrl = consoleUrl; + o.endpoints = endpoints; + o.ipAddress = ipAddress; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerLdapServerMetadata.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerLdapServerMetadata.java index 7df2288be86..89a8eb31efa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerLdapServerMetadata.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerLdapServerMetadata.java @@ -17,84 +17,59 @@ public final class BrokerLdapServerMetadata { * @return List of a fully qualified domain name of the LDAP server and an optional failover server. * */ - private final @Nullable List hosts; + private @Nullable List hosts; /** * @return Fully qualified name of the directory to search for a user’s groups. * */ - private final @Nullable String roleBase; + private @Nullable String roleBase; /** * @return Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query. * */ - private final @Nullable String roleName; + private @Nullable String roleName; /** * @return Search criteria for groups. * */ - private final @Nullable String roleSearchMatching; + private @Nullable String roleSearchMatching; /** * @return Whether the directory search scope is the entire sub-tree. * */ - private final @Nullable Boolean roleSearchSubtree; + private @Nullable Boolean roleSearchSubtree; /** * @return Service account password. * */ - private final @Nullable String serviceAccountPassword; + private @Nullable String serviceAccountPassword; /** * @return Service account username. * */ - private final @Nullable String serviceAccountUsername; + private @Nullable String serviceAccountUsername; /** * @return Fully qualified name of the directory where you want to search for users. * */ - private final @Nullable String userBase; + private @Nullable String userBase; /** * @return Specifies the name of the LDAP attribute for the user group membership. * */ - private final @Nullable String userRoleName; + private @Nullable String userRoleName; /** * @return Search criteria for users. * */ - private final @Nullable String userSearchMatching; + private @Nullable String userSearchMatching; /** * @return Whether the directory search scope is the entire sub-tree. * */ - private final @Nullable Boolean userSearchSubtree; - - @CustomType.Constructor - private BrokerLdapServerMetadata( - @CustomType.Parameter("hosts") @Nullable List hosts, - @CustomType.Parameter("roleBase") @Nullable String roleBase, - @CustomType.Parameter("roleName") @Nullable String roleName, - @CustomType.Parameter("roleSearchMatching") @Nullable String roleSearchMatching, - @CustomType.Parameter("roleSearchSubtree") @Nullable Boolean roleSearchSubtree, - @CustomType.Parameter("serviceAccountPassword") @Nullable String serviceAccountPassword, - @CustomType.Parameter("serviceAccountUsername") @Nullable String serviceAccountUsername, - @CustomType.Parameter("userBase") @Nullable String userBase, - @CustomType.Parameter("userRoleName") @Nullable String userRoleName, - @CustomType.Parameter("userSearchMatching") @Nullable String userSearchMatching, - @CustomType.Parameter("userSearchSubtree") @Nullable Boolean userSearchSubtree) { - this.hosts = hosts; - this.roleBase = roleBase; - this.roleName = roleName; - this.roleSearchMatching = roleSearchMatching; - this.roleSearchSubtree = roleSearchSubtree; - this.serviceAccountPassword = serviceAccountPassword; - this.serviceAccountUsername = serviceAccountUsername; - this.userBase = userBase; - this.userRoleName = userRoleName; - this.userSearchMatching = userSearchMatching; - this.userSearchSubtree = userSearchSubtree; - } + private @Nullable Boolean userSearchSubtree; + private BrokerLdapServerMetadata() {} /** * @return List of a fully qualified domain name of the LDAP server and an optional failover server. * @@ -180,7 +155,7 @@ public static Builder builder() { public static Builder builder(BrokerLdapServerMetadata defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List hosts; private @Nullable String roleBase; @@ -193,11 +168,7 @@ public static final class Builder { private @Nullable String userRoleName; private @Nullable String userSearchMatching; private @Nullable Boolean userSearchSubtree; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BrokerLdapServerMetadata defaults) { Objects.requireNonNull(defaults); this.hosts = defaults.hosts; @@ -213,6 +184,7 @@ public Builder(BrokerLdapServerMetadata defaults) { this.userSearchSubtree = defaults.userSearchSubtree; } + @CustomType.Setter public Builder hosts(@Nullable List hosts) { this.hosts = hosts; return this; @@ -220,47 +192,70 @@ public Builder hosts(@Nullable List hosts) { public Builder hosts(String... hosts) { return hosts(List.of(hosts)); } + @CustomType.Setter public Builder roleBase(@Nullable String roleBase) { this.roleBase = roleBase; return this; } + @CustomType.Setter public Builder roleName(@Nullable String roleName) { this.roleName = roleName; return this; } + @CustomType.Setter public Builder roleSearchMatching(@Nullable String roleSearchMatching) { this.roleSearchMatching = roleSearchMatching; return this; } + @CustomType.Setter public Builder roleSearchSubtree(@Nullable Boolean roleSearchSubtree) { this.roleSearchSubtree = roleSearchSubtree; return this; } + @CustomType.Setter public Builder serviceAccountPassword(@Nullable String serviceAccountPassword) { this.serviceAccountPassword = serviceAccountPassword; return this; } + @CustomType.Setter public Builder serviceAccountUsername(@Nullable String serviceAccountUsername) { this.serviceAccountUsername = serviceAccountUsername; return this; } + @CustomType.Setter public Builder userBase(@Nullable String userBase) { this.userBase = userBase; return this; } + @CustomType.Setter public Builder userRoleName(@Nullable String userRoleName) { this.userRoleName = userRoleName; return this; } + @CustomType.Setter public Builder userSearchMatching(@Nullable String userSearchMatching) { this.userSearchMatching = userSearchMatching; return this; } + @CustomType.Setter public Builder userSearchSubtree(@Nullable Boolean userSearchSubtree) { this.userSearchSubtree = userSearchSubtree; return this; - } public BrokerLdapServerMetadata build() { - return new BrokerLdapServerMetadata(hosts, roleBase, roleName, roleSearchMatching, roleSearchSubtree, serviceAccountPassword, serviceAccountUsername, userBase, userRoleName, userSearchMatching, userSearchSubtree); + } + public BrokerLdapServerMetadata build() { + final var o = new BrokerLdapServerMetadata(); + o.hosts = hosts; + o.roleBase = roleBase; + o.roleName = roleName; + o.roleSearchMatching = roleSearchMatching; + o.roleSearchSubtree = roleSearchSubtree; + o.serviceAccountPassword = serviceAccountPassword; + o.serviceAccountUsername = serviceAccountUsername; + o.userBase = userBase; + o.userRoleName = userRoleName; + o.userSearchMatching = userSearchMatching; + o.userSearchSubtree = userSearchSubtree; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerLogs.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerLogs.java index 0a660c34eba..742a8afa5c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerLogs.java @@ -15,21 +15,14 @@ public final class BrokerLogs { * @return Enables audit logging. Auditing is only possible for `engine_type` of `ActiveMQ`. User management action made using JMX or the ActiveMQ Web Console is logged. Defaults to `false`. * */ - private final @Nullable Boolean audit; + private @Nullable Boolean audit; /** * @return Enables general logging via CloudWatch. Defaults to `false`. * */ - private final @Nullable Boolean general; - - @CustomType.Constructor - private BrokerLogs( - @CustomType.Parameter("audit") @Nullable Boolean audit, - @CustomType.Parameter("general") @Nullable Boolean general) { - this.audit = audit; - this.general = general; - } + private @Nullable Boolean general; + private BrokerLogs() {} /** * @return Enables audit logging. Auditing is only possible for `engine_type` of `ActiveMQ`. User management action made using JMX or the ActiveMQ Web Console is logged. Defaults to `false`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(BrokerLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean audit; private @Nullable Boolean general; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BrokerLogs defaults) { Objects.requireNonNull(defaults); this.audit = defaults.audit; this.general = defaults.general; } + @CustomType.Setter public Builder audit(@Nullable Boolean audit) { this.audit = audit; return this; } + @CustomType.Setter public Builder general(@Nullable Boolean general) { this.general = general; return this; - } public BrokerLogs build() { - return new BrokerLogs(audit, general); + } + public BrokerLogs build() { + final var o = new BrokerLogs(); + o.audit = audit; + o.general = general; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerMaintenanceWindowStartTime.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerMaintenanceWindowStartTime.java index 07fedccf191..2e2ea4b5bdc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerMaintenanceWindowStartTime.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerMaintenanceWindowStartTime.java @@ -13,28 +13,19 @@ public final class BrokerMaintenanceWindowStartTime { * @return Day of the week, e.g., `MONDAY`, `TUESDAY`, or `WEDNESDAY`. * */ - private final String dayOfWeek; + private String dayOfWeek; /** * @return Time, in 24-hour format, e.g., `02:00`. * */ - private final String timeOfDay; + private String timeOfDay; /** * @return Time zone in either the Country/City format or the UTC offset format, e.g., `CET`. * */ - private final String timeZone; - - @CustomType.Constructor - private BrokerMaintenanceWindowStartTime( - @CustomType.Parameter("dayOfWeek") String dayOfWeek, - @CustomType.Parameter("timeOfDay") String timeOfDay, - @CustomType.Parameter("timeZone") String timeZone) { - this.dayOfWeek = dayOfWeek; - this.timeOfDay = timeOfDay; - this.timeZone = timeZone; - } + private String timeZone; + private BrokerMaintenanceWindowStartTime() {} /** * @return Day of the week, e.g., `MONDAY`, `TUESDAY`, or `WEDNESDAY`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(BrokerMaintenanceWindowStartTime defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dayOfWeek; private String timeOfDay; private String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BrokerMaintenanceWindowStartTime defaults) { Objects.requireNonNull(defaults); this.dayOfWeek = defaults.dayOfWeek; @@ -81,19 +68,27 @@ public Builder(BrokerMaintenanceWindowStartTime defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder dayOfWeek(String dayOfWeek) { this.dayOfWeek = Objects.requireNonNull(dayOfWeek); return this; } + @CustomType.Setter public Builder timeOfDay(String timeOfDay) { this.timeOfDay = Objects.requireNonNull(timeOfDay); return this; } + @CustomType.Setter public Builder timeZone(String timeZone) { this.timeZone = Objects.requireNonNull(timeZone); return this; - } public BrokerMaintenanceWindowStartTime build() { - return new BrokerMaintenanceWindowStartTime(dayOfWeek, timeOfDay, timeZone); + } + public BrokerMaintenanceWindowStartTime build() { + final var o = new BrokerMaintenanceWindowStartTime(); + o.dayOfWeek = dayOfWeek; + o.timeOfDay = timeOfDay; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerUser.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerUser.java index c22192a0c22..0087b840461 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerUser.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/BrokerUser.java @@ -17,35 +17,24 @@ public final class BrokerUser { * @return Whether to enable access to the [ActiveMQ Web Console](http://activemq.apache.org/web-console.html) for the user. Applies to `engine_type` of `ActiveMQ` only. * */ - private final @Nullable Boolean consoleAccess; + private @Nullable Boolean consoleAccess; /** * @return List of groups (20 maximum) to which the ActiveMQ user belongs. Applies to `engine_type` of `ActiveMQ` only. * */ - private final @Nullable List groups; + private @Nullable List groups; /** * @return Password of the user. It must be 12 to 250 characters long, at least 4 unique characters, and must not contain commas. * */ - private final String password; + private String password; /** * @return Username of the user. * */ - private final String username; - - @CustomType.Constructor - private BrokerUser( - @CustomType.Parameter("consoleAccess") @Nullable Boolean consoleAccess, - @CustomType.Parameter("groups") @Nullable List groups, - @CustomType.Parameter("password") String password, - @CustomType.Parameter("username") String username) { - this.consoleAccess = consoleAccess; - this.groups = groups; - this.password = password; - this.username = username; - } + private String username; + private BrokerUser() {} /** * @return Whether to enable access to the [ActiveMQ Web Console](http://activemq.apache.org/web-console.html) for the user. Applies to `engine_type` of `ActiveMQ` only. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(BrokerUser defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean consoleAccess; private @Nullable List groups; private String password; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BrokerUser defaults) { Objects.requireNonNull(defaults); this.consoleAccess = defaults.consoleAccess; @@ -101,10 +86,12 @@ public Builder(BrokerUser defaults) { this.username = defaults.username; } + @CustomType.Setter public Builder consoleAccess(@Nullable Boolean consoleAccess) { this.consoleAccess = consoleAccess; return this; } + @CustomType.Setter public Builder groups(@Nullable List groups) { this.groups = groups; return this; @@ -112,15 +99,23 @@ public Builder groups(@Nullable List groups) { public Builder groups(String... groups) { return groups(List.of(groups)); } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public BrokerUser build() { - return new BrokerUser(consoleAccess, groups, password, username); + } + public BrokerUser build() { + final var o = new BrokerUser(); + o.consoleAccess = consoleAccess; + o.groups = groups; + o.password = password; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerConfiguration.java index 75d861651e5..7654c8f68c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerConfiguration.java @@ -10,17 +10,10 @@ @CustomType public final class GetBrokerConfiguration { - private final String id; - private final Integer revision; - - @CustomType.Constructor - private GetBrokerConfiguration( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("revision") Integer revision) { - this.id = id; - this.revision = revision; - } + private String id; + private Integer revision; + private GetBrokerConfiguration() {} public String id() { return this.id; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetBrokerConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private Integer revision; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBrokerConfiguration defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.revision = defaults.revision; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder revision(Integer revision) { this.revision = Objects.requireNonNull(revision); return this; - } public GetBrokerConfiguration build() { - return new GetBrokerConfiguration(id, revision); + } + public GetBrokerConfiguration build() { + final var o = new GetBrokerConfiguration(); + o.id = id; + o.revision = revision; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerEncryptionOption.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerEncryptionOption.java index 2a82ab2198b..ecc4c7ba9d3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerEncryptionOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerEncryptionOption.java @@ -10,17 +10,10 @@ @CustomType public final class GetBrokerEncryptionOption { - private final String kmsKeyId; - private final Boolean useAwsOwnedKey; - - @CustomType.Constructor - private GetBrokerEncryptionOption( - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("useAwsOwnedKey") Boolean useAwsOwnedKey) { - this.kmsKeyId = kmsKeyId; - this.useAwsOwnedKey = useAwsOwnedKey; - } + private String kmsKeyId; + private Boolean useAwsOwnedKey; + private GetBrokerEncryptionOption() {} public String kmsKeyId() { return this.kmsKeyId; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetBrokerEncryptionOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String kmsKeyId; private Boolean useAwsOwnedKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBrokerEncryptionOption defaults) { Objects.requireNonNull(defaults); this.kmsKeyId = defaults.kmsKeyId; this.useAwsOwnedKey = defaults.useAwsOwnedKey; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder useAwsOwnedKey(Boolean useAwsOwnedKey) { this.useAwsOwnedKey = Objects.requireNonNull(useAwsOwnedKey); return this; - } public GetBrokerEncryptionOption build() { - return new GetBrokerEncryptionOption(kmsKeyId, useAwsOwnedKey); + } + public GetBrokerEncryptionOption build() { + final var o = new GetBrokerEncryptionOption(); + o.kmsKeyId = kmsKeyId; + o.useAwsOwnedKey = useAwsOwnedKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerInstance.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerInstance.java index f2712bb2e31..bfbf658fe8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerInstance.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerInstance.java @@ -10,20 +10,11 @@ @CustomType public final class GetBrokerInstance { - private final String consoleUrl; - private final List endpoints; - private final String ipAddress; - - @CustomType.Constructor - private GetBrokerInstance( - @CustomType.Parameter("consoleUrl") String consoleUrl, - @CustomType.Parameter("endpoints") List endpoints, - @CustomType.Parameter("ipAddress") String ipAddress) { - this.consoleUrl = consoleUrl; - this.endpoints = endpoints; - this.ipAddress = ipAddress; - } + private String consoleUrl; + private List endpoints; + private String ipAddress; + private GetBrokerInstance() {} public String consoleUrl() { return this.consoleUrl; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(GetBrokerInstance defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String consoleUrl; private List endpoints; private String ipAddress; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBrokerInstance defaults) { Objects.requireNonNull(defaults); this.consoleUrl = defaults.consoleUrl; @@ -58,10 +45,12 @@ public Builder(GetBrokerInstance defaults) { this.ipAddress = defaults.ipAddress; } + @CustomType.Setter public Builder consoleUrl(String consoleUrl) { this.consoleUrl = Objects.requireNonNull(consoleUrl); return this; } + @CustomType.Setter public Builder endpoints(List endpoints) { this.endpoints = Objects.requireNonNull(endpoints); return this; @@ -69,11 +58,17 @@ public Builder endpoints(List endpoints) { public Builder endpoints(String... endpoints) { return endpoints(List.of(endpoints)); } + @CustomType.Setter public Builder ipAddress(String ipAddress) { this.ipAddress = Objects.requireNonNull(ipAddress); return this; - } public GetBrokerInstance build() { - return new GetBrokerInstance(consoleUrl, endpoints, ipAddress); + } + public GetBrokerInstance build() { + final var o = new GetBrokerInstance(); + o.consoleUrl = consoleUrl; + o.endpoints = endpoints; + o.ipAddress = ipAddress; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerLdapServerMetadata.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerLdapServerMetadata.java index fe0cca8d8c4..67f0e3cc107 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerLdapServerMetadata.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerLdapServerMetadata.java @@ -11,44 +11,19 @@ @CustomType public final class GetBrokerLdapServerMetadata { - private final List hosts; - private final String roleBase; - private final String roleName; - private final String roleSearchMatching; - private final Boolean roleSearchSubtree; - private final String serviceAccountPassword; - private final String serviceAccountUsername; - private final String userBase; - private final String userRoleName; - private final String userSearchMatching; - private final Boolean userSearchSubtree; - - @CustomType.Constructor - private GetBrokerLdapServerMetadata( - @CustomType.Parameter("hosts") List hosts, - @CustomType.Parameter("roleBase") String roleBase, - @CustomType.Parameter("roleName") String roleName, - @CustomType.Parameter("roleSearchMatching") String roleSearchMatching, - @CustomType.Parameter("roleSearchSubtree") Boolean roleSearchSubtree, - @CustomType.Parameter("serviceAccountPassword") String serviceAccountPassword, - @CustomType.Parameter("serviceAccountUsername") String serviceAccountUsername, - @CustomType.Parameter("userBase") String userBase, - @CustomType.Parameter("userRoleName") String userRoleName, - @CustomType.Parameter("userSearchMatching") String userSearchMatching, - @CustomType.Parameter("userSearchSubtree") Boolean userSearchSubtree) { - this.hosts = hosts; - this.roleBase = roleBase; - this.roleName = roleName; - this.roleSearchMatching = roleSearchMatching; - this.roleSearchSubtree = roleSearchSubtree; - this.serviceAccountPassword = serviceAccountPassword; - this.serviceAccountUsername = serviceAccountUsername; - this.userBase = userBase; - this.userRoleName = userRoleName; - this.userSearchMatching = userSearchMatching; - this.userSearchSubtree = userSearchSubtree; - } + private List hosts; + private String roleBase; + private String roleName; + private String roleSearchMatching; + private Boolean roleSearchSubtree; + private String serviceAccountPassword; + private String serviceAccountUsername; + private String userBase; + private String userRoleName; + private String userSearchMatching; + private Boolean userSearchSubtree; + private GetBrokerLdapServerMetadata() {} public List hosts() { return this.hosts; } @@ -90,7 +65,7 @@ public static Builder builder() { public static Builder builder(GetBrokerLdapServerMetadata defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List hosts; private String roleBase; @@ -103,11 +78,7 @@ public static final class Builder { private String userRoleName; private String userSearchMatching; private Boolean userSearchSubtree; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBrokerLdapServerMetadata defaults) { Objects.requireNonNull(defaults); this.hosts = defaults.hosts; @@ -123,6 +94,7 @@ public Builder(GetBrokerLdapServerMetadata defaults) { this.userSearchSubtree = defaults.userSearchSubtree; } + @CustomType.Setter public Builder hosts(List hosts) { this.hosts = Objects.requireNonNull(hosts); return this; @@ -130,47 +102,70 @@ public Builder hosts(List hosts) { public Builder hosts(String... hosts) { return hosts(List.of(hosts)); } + @CustomType.Setter public Builder roleBase(String roleBase) { this.roleBase = Objects.requireNonNull(roleBase); return this; } + @CustomType.Setter public Builder roleName(String roleName) { this.roleName = Objects.requireNonNull(roleName); return this; } + @CustomType.Setter public Builder roleSearchMatching(String roleSearchMatching) { this.roleSearchMatching = Objects.requireNonNull(roleSearchMatching); return this; } + @CustomType.Setter public Builder roleSearchSubtree(Boolean roleSearchSubtree) { this.roleSearchSubtree = Objects.requireNonNull(roleSearchSubtree); return this; } + @CustomType.Setter public Builder serviceAccountPassword(String serviceAccountPassword) { this.serviceAccountPassword = Objects.requireNonNull(serviceAccountPassword); return this; } + @CustomType.Setter public Builder serviceAccountUsername(String serviceAccountUsername) { this.serviceAccountUsername = Objects.requireNonNull(serviceAccountUsername); return this; } + @CustomType.Setter public Builder userBase(String userBase) { this.userBase = Objects.requireNonNull(userBase); return this; } + @CustomType.Setter public Builder userRoleName(String userRoleName) { this.userRoleName = Objects.requireNonNull(userRoleName); return this; } + @CustomType.Setter public Builder userSearchMatching(String userSearchMatching) { this.userSearchMatching = Objects.requireNonNull(userSearchMatching); return this; } + @CustomType.Setter public Builder userSearchSubtree(Boolean userSearchSubtree) { this.userSearchSubtree = Objects.requireNonNull(userSearchSubtree); return this; - } public GetBrokerLdapServerMetadata build() { - return new GetBrokerLdapServerMetadata(hosts, roleBase, roleName, roleSearchMatching, roleSearchSubtree, serviceAccountPassword, serviceAccountUsername, userBase, userRoleName, userSearchMatching, userSearchSubtree); + } + public GetBrokerLdapServerMetadata build() { + final var o = new GetBrokerLdapServerMetadata(); + o.hosts = hosts; + o.roleBase = roleBase; + o.roleName = roleName; + o.roleSearchMatching = roleSearchMatching; + o.roleSearchSubtree = roleSearchSubtree; + o.serviceAccountPassword = serviceAccountPassword; + o.serviceAccountUsername = serviceAccountUsername; + o.userBase = userBase; + o.userRoleName = userRoleName; + o.userSearchMatching = userSearchMatching; + o.userSearchSubtree = userSearchSubtree; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerLogs.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerLogs.java index 718703f9836..beee7ffd213 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerLogs.java @@ -9,17 +9,10 @@ @CustomType public final class GetBrokerLogs { - private final Boolean audit; - private final Boolean general; - - @CustomType.Constructor - private GetBrokerLogs( - @CustomType.Parameter("audit") Boolean audit, - @CustomType.Parameter("general") Boolean general) { - this.audit = audit; - this.general = general; - } + private Boolean audit; + private Boolean general; + private GetBrokerLogs() {} public Boolean audit() { return this.audit; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetBrokerLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean audit; private Boolean general; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBrokerLogs defaults) { Objects.requireNonNull(defaults); this.audit = defaults.audit; this.general = defaults.general; } + @CustomType.Setter public Builder audit(Boolean audit) { this.audit = Objects.requireNonNull(audit); return this; } + @CustomType.Setter public Builder general(Boolean general) { this.general = Objects.requireNonNull(general); return this; - } public GetBrokerLogs build() { - return new GetBrokerLogs(audit, general); + } + public GetBrokerLogs build() { + final var o = new GetBrokerLogs(); + o.audit = audit; + o.general = general; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerMaintenanceWindowStartTime.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerMaintenanceWindowStartTime.java index 96c28d1ad0f..7f87324a512 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerMaintenanceWindowStartTime.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerMaintenanceWindowStartTime.java @@ -9,20 +9,11 @@ @CustomType public final class GetBrokerMaintenanceWindowStartTime { - private final String dayOfWeek; - private final String timeOfDay; - private final String timeZone; - - @CustomType.Constructor - private GetBrokerMaintenanceWindowStartTime( - @CustomType.Parameter("dayOfWeek") String dayOfWeek, - @CustomType.Parameter("timeOfDay") String timeOfDay, - @CustomType.Parameter("timeZone") String timeZone) { - this.dayOfWeek = dayOfWeek; - this.timeOfDay = timeOfDay; - this.timeZone = timeZone; - } + private String dayOfWeek; + private String timeOfDay; + private String timeZone; + private GetBrokerMaintenanceWindowStartTime() {} public String dayOfWeek() { return this.dayOfWeek; } @@ -40,16 +31,12 @@ public static Builder builder() { public static Builder builder(GetBrokerMaintenanceWindowStartTime defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dayOfWeek; private String timeOfDay; private String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBrokerMaintenanceWindowStartTime defaults) { Objects.requireNonNull(defaults); this.dayOfWeek = defaults.dayOfWeek; @@ -57,19 +44,27 @@ public Builder(GetBrokerMaintenanceWindowStartTime defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder dayOfWeek(String dayOfWeek) { this.dayOfWeek = Objects.requireNonNull(dayOfWeek); return this; } + @CustomType.Setter public Builder timeOfDay(String timeOfDay) { this.timeOfDay = Objects.requireNonNull(timeOfDay); return this; } + @CustomType.Setter public Builder timeZone(String timeZone) { this.timeZone = Objects.requireNonNull(timeZone); return this; - } public GetBrokerMaintenanceWindowStartTime build() { - return new GetBrokerMaintenanceWindowStartTime(dayOfWeek, timeOfDay, timeZone); + } + public GetBrokerMaintenanceWindowStartTime build() { + final var o = new GetBrokerMaintenanceWindowStartTime(); + o.dayOfWeek = dayOfWeek; + o.timeOfDay = timeOfDay; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerResult.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerResult.java index 5b94931880a..cb2a60d02f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerResult.java @@ -19,81 +19,34 @@ @CustomType public final class GetBrokerResult { - private final String arn; - private final String authenticationStrategy; - private final Boolean autoMinorVersionUpgrade; - private final String brokerId; - private final String brokerName; - private final GetBrokerConfiguration configuration; - private final String deploymentMode; - private final List encryptionOptions; - private final String engineType; - private final String engineVersion; - private final String hostInstanceType; + private String arn; + private String authenticationStrategy; + private Boolean autoMinorVersionUpgrade; + private String brokerId; + private String brokerName; + private GetBrokerConfiguration configuration; + private String deploymentMode; + private List encryptionOptions; + private String engineType; + private String engineVersion; + private String hostInstanceType; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final List instances; - private final List ldapServerMetadatas; - private final GetBrokerLogs logs; - private final GetBrokerMaintenanceWindowStartTime maintenanceWindowStartTime; - private final Boolean publiclyAccessible; - private final List securityGroups; - private final String storageType; - private final List subnetIds; - private final Map tags; - private final List users; - - @CustomType.Constructor - private GetBrokerResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("authenticationStrategy") String authenticationStrategy, - @CustomType.Parameter("autoMinorVersionUpgrade") Boolean autoMinorVersionUpgrade, - @CustomType.Parameter("brokerId") String brokerId, - @CustomType.Parameter("brokerName") String brokerName, - @CustomType.Parameter("configuration") GetBrokerConfiguration configuration, - @CustomType.Parameter("deploymentMode") String deploymentMode, - @CustomType.Parameter("encryptionOptions") List encryptionOptions, - @CustomType.Parameter("engineType") String engineType, - @CustomType.Parameter("engineVersion") String engineVersion, - @CustomType.Parameter("hostInstanceType") String hostInstanceType, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instances") List instances, - @CustomType.Parameter("ldapServerMetadatas") List ldapServerMetadatas, - @CustomType.Parameter("logs") GetBrokerLogs logs, - @CustomType.Parameter("maintenanceWindowStartTime") GetBrokerMaintenanceWindowStartTime maintenanceWindowStartTime, - @CustomType.Parameter("publiclyAccessible") Boolean publiclyAccessible, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("storageType") String storageType, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("users") List users) { - this.arn = arn; - this.authenticationStrategy = authenticationStrategy; - this.autoMinorVersionUpgrade = autoMinorVersionUpgrade; - this.brokerId = brokerId; - this.brokerName = brokerName; - this.configuration = configuration; - this.deploymentMode = deploymentMode; - this.encryptionOptions = encryptionOptions; - this.engineType = engineType; - this.engineVersion = engineVersion; - this.hostInstanceType = hostInstanceType; - this.id = id; - this.instances = instances; - this.ldapServerMetadatas = ldapServerMetadatas; - this.logs = logs; - this.maintenanceWindowStartTime = maintenanceWindowStartTime; - this.publiclyAccessible = publiclyAccessible; - this.securityGroups = securityGroups; - this.storageType = storageType; - this.subnetIds = subnetIds; - this.tags = tags; - this.users = users; - } + private String id; + private List instances; + private List ldapServerMetadatas; + private GetBrokerLogs logs; + private GetBrokerMaintenanceWindowStartTime maintenanceWindowStartTime; + private Boolean publiclyAccessible; + private List securityGroups; + private String storageType; + private List subnetIds; + private Map tags; + private List users; + private GetBrokerResult() {} public String arn() { return this.arn; } @@ -172,7 +125,7 @@ public static Builder builder() { public static Builder builder(GetBrokerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String authenticationStrategy; @@ -196,11 +149,7 @@ public static final class Builder { private List subnetIds; private Map tags; private List users; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBrokerResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -227,34 +176,42 @@ public Builder(GetBrokerResult defaults) { this.users = defaults.users; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder authenticationStrategy(String authenticationStrategy) { this.authenticationStrategy = Objects.requireNonNull(authenticationStrategy); return this; } + @CustomType.Setter public Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) { this.autoMinorVersionUpgrade = Objects.requireNonNull(autoMinorVersionUpgrade); return this; } + @CustomType.Setter public Builder brokerId(String brokerId) { this.brokerId = Objects.requireNonNull(brokerId); return this; } + @CustomType.Setter public Builder brokerName(String brokerName) { this.brokerName = Objects.requireNonNull(brokerName); return this; } + @CustomType.Setter public Builder configuration(GetBrokerConfiguration configuration) { this.configuration = Objects.requireNonNull(configuration); return this; } + @CustomType.Setter public Builder deploymentMode(String deploymentMode) { this.deploymentMode = Objects.requireNonNull(deploymentMode); return this; } + @CustomType.Setter public Builder encryptionOptions(List encryptionOptions) { this.encryptionOptions = Objects.requireNonNull(encryptionOptions); return this; @@ -262,22 +219,27 @@ public Builder encryptionOptions(List encryptionOptio public Builder encryptionOptions(GetBrokerEncryptionOption... encryptionOptions) { return encryptionOptions(List.of(encryptionOptions)); } + @CustomType.Setter public Builder engineType(String engineType) { this.engineType = Objects.requireNonNull(engineType); return this; } + @CustomType.Setter public Builder engineVersion(String engineVersion) { this.engineVersion = Objects.requireNonNull(engineVersion); return this; } + @CustomType.Setter public Builder hostInstanceType(String hostInstanceType) { this.hostInstanceType = Objects.requireNonNull(hostInstanceType); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instances(List instances) { this.instances = Objects.requireNonNull(instances); return this; @@ -285,6 +247,7 @@ public Builder instances(List instances) { public Builder instances(GetBrokerInstance... instances) { return instances(List.of(instances)); } + @CustomType.Setter public Builder ldapServerMetadatas(List ldapServerMetadatas) { this.ldapServerMetadatas = Objects.requireNonNull(ldapServerMetadatas); return this; @@ -292,18 +255,22 @@ public Builder ldapServerMetadatas(List ldapServerM public Builder ldapServerMetadatas(GetBrokerLdapServerMetadata... ldapServerMetadatas) { return ldapServerMetadatas(List.of(ldapServerMetadatas)); } + @CustomType.Setter public Builder logs(GetBrokerLogs logs) { this.logs = Objects.requireNonNull(logs); return this; } + @CustomType.Setter public Builder maintenanceWindowStartTime(GetBrokerMaintenanceWindowStartTime maintenanceWindowStartTime) { this.maintenanceWindowStartTime = Objects.requireNonNull(maintenanceWindowStartTime); return this; } + @CustomType.Setter public Builder publiclyAccessible(Boolean publiclyAccessible) { this.publiclyAccessible = Objects.requireNonNull(publiclyAccessible); return this; } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -311,10 +278,12 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder storageType(String storageType) { this.storageType = Objects.requireNonNull(storageType); return this; } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -322,18 +291,44 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder users(List users) { this.users = Objects.requireNonNull(users); return this; } public Builder users(GetBrokerUser... users) { return users(List.of(users)); - } public GetBrokerResult build() { - return new GetBrokerResult(arn, authenticationStrategy, autoMinorVersionUpgrade, brokerId, brokerName, configuration, deploymentMode, encryptionOptions, engineType, engineVersion, hostInstanceType, id, instances, ldapServerMetadatas, logs, maintenanceWindowStartTime, publiclyAccessible, securityGroups, storageType, subnetIds, tags, users); + } + public GetBrokerResult build() { + final var o = new GetBrokerResult(); + o.arn = arn; + o.authenticationStrategy = authenticationStrategy; + o.autoMinorVersionUpgrade = autoMinorVersionUpgrade; + o.brokerId = brokerId; + o.brokerName = brokerName; + o.configuration = configuration; + o.deploymentMode = deploymentMode; + o.encryptionOptions = encryptionOptions; + o.engineType = engineType; + o.engineVersion = engineVersion; + o.hostInstanceType = hostInstanceType; + o.id = id; + o.instances = instances; + o.ldapServerMetadatas = ldapServerMetadatas; + o.logs = logs; + o.maintenanceWindowStartTime = maintenanceWindowStartTime; + o.publiclyAccessible = publiclyAccessible; + o.securityGroups = securityGroups; + o.storageType = storageType; + o.subnetIds = subnetIds; + o.tags = tags; + o.users = users; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerUser.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerUser.java index 460d41bfe13..2b00a1f8136 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerUser.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetBrokerUser.java @@ -11,20 +11,11 @@ @CustomType public final class GetBrokerUser { - private final Boolean consoleAccess; - private final List groups; - private final String username; - - @CustomType.Constructor - private GetBrokerUser( - @CustomType.Parameter("consoleAccess") Boolean consoleAccess, - @CustomType.Parameter("groups") List groups, - @CustomType.Parameter("username") String username) { - this.consoleAccess = consoleAccess; - this.groups = groups; - this.username = username; - } + private Boolean consoleAccess; + private List groups; + private String username; + private GetBrokerUser() {} public Boolean consoleAccess() { return this.consoleAccess; } @@ -42,16 +33,12 @@ public static Builder builder() { public static Builder builder(GetBrokerUser defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean consoleAccess; private List groups; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBrokerUser defaults) { Objects.requireNonNull(defaults); this.consoleAccess = defaults.consoleAccess; @@ -59,10 +46,12 @@ public Builder(GetBrokerUser defaults) { this.username = defaults.username; } + @CustomType.Setter public Builder consoleAccess(Boolean consoleAccess) { this.consoleAccess = Objects.requireNonNull(consoleAccess); return this; } + @CustomType.Setter public Builder groups(List groups) { this.groups = Objects.requireNonNull(groups); return this; @@ -70,11 +59,17 @@ public Builder groups(List groups) { public Builder groups(String... groups) { return groups(List.of(groups)); } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public GetBrokerUser build() { - return new GetBrokerUser(consoleAccess, groups, username); + } + public GetBrokerUser build() { + final var o = new GetBrokerUser(); + o.consoleAccess = consoleAccess; + o.groups = groups; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetInstanceTypeOfferingsBrokerInstanceOption.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetInstanceTypeOfferingsBrokerInstanceOption.java index a611d8700b0..e21e181239d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetInstanceTypeOfferingsBrokerInstanceOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetInstanceTypeOfferingsBrokerInstanceOption.java @@ -15,49 +15,34 @@ public final class GetInstanceTypeOfferingsBrokerInstanceOption { * @return The list of available AZs. See Availability Zones. below * */ - private final List availabilityZones; + private List availabilityZones; /** * @return Filter response by engine type. * */ - private final String engineType; + private String engineType; /** * @return Filter response by host instance type. * */ - private final String hostInstanceType; + private String hostInstanceType; /** * @return Filter response by storage type. * */ - private final String storageType; + private String storageType; /** * @return The list of supported deployment modes. * */ - private final List supportedDeploymentModes; + private List supportedDeploymentModes; /** * @return The list of supported engine versions. * */ - private final List supportedEngineVersions; - - @CustomType.Constructor - private GetInstanceTypeOfferingsBrokerInstanceOption( - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("engineType") String engineType, - @CustomType.Parameter("hostInstanceType") String hostInstanceType, - @CustomType.Parameter("storageType") String storageType, - @CustomType.Parameter("supportedDeploymentModes") List supportedDeploymentModes, - @CustomType.Parameter("supportedEngineVersions") List supportedEngineVersions) { - this.availabilityZones = availabilityZones; - this.engineType = engineType; - this.hostInstanceType = hostInstanceType; - this.storageType = storageType; - this.supportedDeploymentModes = supportedDeploymentModes; - this.supportedEngineVersions = supportedEngineVersions; - } + private List supportedEngineVersions; + private GetInstanceTypeOfferingsBrokerInstanceOption() {} /** * @return The list of available AZs. See Availability Zones. below * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(GetInstanceTypeOfferingsBrokerInstanceOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List availabilityZones; private String engineType; @@ -116,11 +101,7 @@ public static final class Builder { private String storageType; private List supportedDeploymentModes; private List supportedEngineVersions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypeOfferingsBrokerInstanceOption defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -131,6 +112,7 @@ public Builder(GetInstanceTypeOfferingsBrokerInstanceOption defaults) { this.supportedEngineVersions = defaults.supportedEngineVersions; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -138,18 +120,22 @@ public Builder availabilityZones(List supportedDeploymentModes) { this.supportedDeploymentModes = Objects.requireNonNull(supportedDeploymentModes); return this; @@ -157,14 +143,23 @@ public Builder supportedDeploymentModes(List supportedDeploymentModes) { public Builder supportedDeploymentModes(String... supportedDeploymentModes) { return supportedDeploymentModes(List.of(supportedDeploymentModes)); } + @CustomType.Setter public Builder supportedEngineVersions(List supportedEngineVersions) { this.supportedEngineVersions = Objects.requireNonNull(supportedEngineVersions); return this; } public Builder supportedEngineVersions(String... supportedEngineVersions) { return supportedEngineVersions(List.of(supportedEngineVersions)); - } public GetInstanceTypeOfferingsBrokerInstanceOption build() { - return new GetInstanceTypeOfferingsBrokerInstanceOption(availabilityZones, engineType, hostInstanceType, storageType, supportedDeploymentModes, supportedEngineVersions); + } + public GetInstanceTypeOfferingsBrokerInstanceOption build() { + final var o = new GetInstanceTypeOfferingsBrokerInstanceOption(); + o.availabilityZones = availabilityZones; + o.engineType = engineType; + o.hostInstanceType = hostInstanceType; + o.storageType = storageType; + o.supportedDeploymentModes = supportedDeploymentModes; + o.supportedEngineVersions = supportedEngineVersions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone.java index a8f5b964536..8257455a856 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone.java @@ -13,13 +13,9 @@ public final class GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone * @return The name of the Availability Zone. * */ - private final String name; - - @CustomType.Constructor - private GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone() {} /** * @return The name of the Availability Zone. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone build() { - return new GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone(name); + } + public GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone build() { + final var o = new GetInstanceTypeOfferingsBrokerInstanceOptionAvailabilityZone(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetInstanceTypeOfferingsResult.java b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetInstanceTypeOfferingsResult.java index ff89422092f..8cc4bfd95c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetInstanceTypeOfferingsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mq/outputs/GetInstanceTypeOfferingsResult.java @@ -17,42 +17,29 @@ public final class GetInstanceTypeOfferingsResult { * @return Option for host instance type. See Broker Instance Options below. * */ - private final List brokerInstanceOptions; + private List brokerInstanceOptions; /** * @return The broker's engine type. * */ - private final @Nullable String engineType; + private @Nullable String engineType; /** * @return The broker's instance type. * */ - private final @Nullable String hostInstanceType; + private @Nullable String hostInstanceType; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The broker's storage type. * */ - private final @Nullable String storageType; - - @CustomType.Constructor - private GetInstanceTypeOfferingsResult( - @CustomType.Parameter("brokerInstanceOptions") List brokerInstanceOptions, - @CustomType.Parameter("engineType") @Nullable String engineType, - @CustomType.Parameter("hostInstanceType") @Nullable String hostInstanceType, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("storageType") @Nullable String storageType) { - this.brokerInstanceOptions = brokerInstanceOptions; - this.engineType = engineType; - this.hostInstanceType = hostInstanceType; - this.id = id; - this.storageType = storageType; - } + private @Nullable String storageType; + private GetInstanceTypeOfferingsResult() {} /** * @return Option for host instance type. See Broker Instance Options below. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(GetInstanceTypeOfferingsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List brokerInstanceOptions; private @Nullable String engineType; private @Nullable String hostInstanceType; private String id; private @Nullable String storageType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceTypeOfferingsResult defaults) { Objects.requireNonNull(defaults); this.brokerInstanceOptions = defaults.brokerInstanceOptions; @@ -117,6 +100,7 @@ public Builder(GetInstanceTypeOfferingsResult defaults) { this.storageType = defaults.storageType; } + @CustomType.Setter public Builder brokerInstanceOptions(List brokerInstanceOptions) { this.brokerInstanceOptions = Objects.requireNonNull(brokerInstanceOptions); return this; @@ -124,23 +108,34 @@ public Builder brokerInstanceOptions(List clientSubnets; + private List clientSubnets; /** * @return Information about the cluster access configuration. See below. For security reasons, you can't turn on public access while creating an MSK cluster. However, you can update an existing cluster to make it publicly accessible. You can also create a new cluster and then update it to make it publicly accessible ([documentation](https://docs.aws.amazon.com/msk/latest/developerguide/public-access.html)). * */ - private final @Nullable ClusterBrokerNodeGroupInfoConnectivityInfo connectivityInfo; + private @Nullable ClusterBrokerNodeGroupInfoConnectivityInfo connectivityInfo; /** * @return The size in GiB of the EBS volume for the data drive on each broker node. * @@ -38,41 +38,24 @@ public final class ClusterBrokerNodeGroupInfo { * */ @Deprecated /* use 'storage_info' argument instead */ - private final @Nullable Integer ebsVolumeSize; + private @Nullable Integer ebsVolumeSize; /** * @return Specify the instance type to use for the kafka brokersE.g., kafka.m5.large. ([Pricing info](https://aws.amazon.com/msk/pricing/)) * */ - private final String instanceType; + private String instanceType; /** * @return A list of the security groups to associate with the elastic network interfaces to control who can communicate with the cluster. * */ - private final List securityGroups; + private List securityGroups; /** * @return A block that contains information about storage volumes attached to MSK broker nodes. See below. * */ - private final @Nullable ClusterBrokerNodeGroupInfoStorageInfo storageInfo; - - @CustomType.Constructor - private ClusterBrokerNodeGroupInfo( - @CustomType.Parameter("azDistribution") @Nullable String azDistribution, - @CustomType.Parameter("clientSubnets") List clientSubnets, - @CustomType.Parameter("connectivityInfo") @Nullable ClusterBrokerNodeGroupInfoConnectivityInfo connectivityInfo, - @CustomType.Parameter("ebsVolumeSize") @Nullable Integer ebsVolumeSize, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("storageInfo") @Nullable ClusterBrokerNodeGroupInfoStorageInfo storageInfo) { - this.azDistribution = azDistribution; - this.clientSubnets = clientSubnets; - this.connectivityInfo = connectivityInfo; - this.ebsVolumeSize = ebsVolumeSize; - this.instanceType = instanceType; - this.securityGroups = securityGroups; - this.storageInfo = storageInfo; - } + private @Nullable ClusterBrokerNodeGroupInfoStorageInfo storageInfo; + private ClusterBrokerNodeGroupInfo() {} /** * @return The distribution of broker nodes across availability zones ([documentation](https://docs.aws.amazon.com/msk/1.0/apireference/clusters.html#clusters-model-brokerazdistribution)). Currently the only valid value is `DEFAULT`. * @@ -134,7 +117,7 @@ public static Builder builder() { public static Builder builder(ClusterBrokerNodeGroupInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String azDistribution; private List clientSubnets; @@ -143,11 +126,7 @@ public static final class Builder { private String instanceType; private List securityGroups; private @Nullable ClusterBrokerNodeGroupInfoStorageInfo storageInfo; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterBrokerNodeGroupInfo defaults) { Objects.requireNonNull(defaults); this.azDistribution = defaults.azDistribution; @@ -159,10 +138,12 @@ public Builder(ClusterBrokerNodeGroupInfo defaults) { this.storageInfo = defaults.storageInfo; } + @CustomType.Setter public Builder azDistribution(@Nullable String azDistribution) { this.azDistribution = azDistribution; return this; } + @CustomType.Setter public Builder clientSubnets(List clientSubnets) { this.clientSubnets = Objects.requireNonNull(clientSubnets); return this; @@ -170,18 +151,22 @@ public Builder clientSubnets(List clientSubnets) { public Builder clientSubnets(String... clientSubnets) { return clientSubnets(List.of(clientSubnets)); } + @CustomType.Setter public Builder connectivityInfo(@Nullable ClusterBrokerNodeGroupInfoConnectivityInfo connectivityInfo) { this.connectivityInfo = connectivityInfo; return this; } + @CustomType.Setter public Builder ebsVolumeSize(@Nullable Integer ebsVolumeSize) { this.ebsVolumeSize = ebsVolumeSize; return this; } + @CustomType.Setter public Builder instanceType(String instanceType) { this.instanceType = Objects.requireNonNull(instanceType); return this; } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -189,11 +174,21 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder storageInfo(@Nullable ClusterBrokerNodeGroupInfoStorageInfo storageInfo) { this.storageInfo = storageInfo; return this; - } public ClusterBrokerNodeGroupInfo build() { - return new ClusterBrokerNodeGroupInfo(azDistribution, clientSubnets, connectivityInfo, ebsVolumeSize, instanceType, securityGroups, storageInfo); + } + public ClusterBrokerNodeGroupInfo build() { + final var o = new ClusterBrokerNodeGroupInfo(); + o.azDistribution = azDistribution; + o.clientSubnets = clientSubnets; + o.connectivityInfo = connectivityInfo; + o.ebsVolumeSize = ebsVolumeSize; + o.instanceType = instanceType; + o.securityGroups = securityGroups; + o.storageInfo = storageInfo; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoConnectivityInfo.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoConnectivityInfo.java index 5df7159e782..05f529f299f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoConnectivityInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoConnectivityInfo.java @@ -15,13 +15,9 @@ public final class ClusterBrokerNodeGroupInfoConnectivityInfo { * @return Access control settings for brokers. See below. * */ - private final @Nullable ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess publicAccess; - - @CustomType.Constructor - private ClusterBrokerNodeGroupInfoConnectivityInfo(@CustomType.Parameter("publicAccess") @Nullable ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess publicAccess) { - this.publicAccess = publicAccess; - } + private @Nullable ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess publicAccess; + private ClusterBrokerNodeGroupInfoConnectivityInfo() {} /** * @return Access control settings for brokers. See below. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ClusterBrokerNodeGroupInfoConnectivityInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess publicAccess; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterBrokerNodeGroupInfoConnectivityInfo defaults) { Objects.requireNonNull(defaults); this.publicAccess = defaults.publicAccess; } + @CustomType.Setter public Builder publicAccess(@Nullable ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess publicAccess) { this.publicAccess = publicAccess; return this; - } public ClusterBrokerNodeGroupInfoConnectivityInfo build() { - return new ClusterBrokerNodeGroupInfoConnectivityInfo(publicAccess); + } + public ClusterBrokerNodeGroupInfoConnectivityInfo build() { + final var o = new ClusterBrokerNodeGroupInfoConnectivityInfo(); + o.publicAccess = publicAccess; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess.java index ff24d656a16..f79eefc1ad3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess.java @@ -15,13 +15,9 @@ public final class ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess { * @return Public access type. Valida values: `DISABLED`, `SERVICE_PROVIDED_EIPS`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess(@CustomType.Parameter("type") @Nullable String type) { - this.type = type; - } + private @Nullable String type; + private ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess() {} /** * @return Public access type. Valida values: `DISABLED`, `SERVICE_PROVIDED_EIPS`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess build() { - return new ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess(type); + } + public ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess build() { + final var o = new ClusterBrokerNodeGroupInfoConnectivityInfoPublicAccess(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoStorageInfo.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoStorageInfo.java index 8f1b2759f41..147f382ecf8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoStorageInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoStorageInfo.java @@ -15,13 +15,9 @@ public final class ClusterBrokerNodeGroupInfoStorageInfo { * @return A block that contains EBS volume information. See below. * */ - private final @Nullable ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo ebsStorageInfo; - - @CustomType.Constructor - private ClusterBrokerNodeGroupInfoStorageInfo(@CustomType.Parameter("ebsStorageInfo") @Nullable ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo ebsStorageInfo) { - this.ebsStorageInfo = ebsStorageInfo; - } + private @Nullable ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo ebsStorageInfo; + private ClusterBrokerNodeGroupInfoStorageInfo() {} /** * @return A block that contains EBS volume information. See below. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ClusterBrokerNodeGroupInfoStorageInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo ebsStorageInfo; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterBrokerNodeGroupInfoStorageInfo defaults) { Objects.requireNonNull(defaults); this.ebsStorageInfo = defaults.ebsStorageInfo; } + @CustomType.Setter public Builder ebsStorageInfo(@Nullable ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo ebsStorageInfo) { this.ebsStorageInfo = ebsStorageInfo; return this; - } public ClusterBrokerNodeGroupInfoStorageInfo build() { - return new ClusterBrokerNodeGroupInfoStorageInfo(ebsStorageInfo); + } + public ClusterBrokerNodeGroupInfoStorageInfo build() { + final var o = new ClusterBrokerNodeGroupInfoStorageInfo(); + o.ebsStorageInfo = ebsStorageInfo; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo.java index 04538c805e9..25f2a3f1e43 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo.java @@ -16,21 +16,14 @@ public final class ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo { * @return A block that contains EBS volume provisioned throughput information. To provision storage throughput, you must choose broker type kafka.m5.4xlarge or larger. See below. * */ - private final @Nullable ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput provisionedThroughput; + private @Nullable ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput provisionedThroughput; /** * @return The size in GiB of the EBS volume for the data drive on each broker node. Minimum value of `1` and maximum value of `16384`. * */ - private final @Nullable Integer volumeSize; - - @CustomType.Constructor - private ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo( - @CustomType.Parameter("provisionedThroughput") @Nullable ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput provisionedThroughput, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize) { - this.provisionedThroughput = provisionedThroughput; - this.volumeSize = volumeSize; - } + private @Nullable Integer volumeSize; + private ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo() {} /** * @return A block that contains EBS volume provisioned throughput information. To provision storage throughput, you must choose broker type kafka.m5.4xlarge or larger. See below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput provisionedThroughput; private @Nullable Integer volumeSize; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo defaults) { Objects.requireNonNull(defaults); this.provisionedThroughput = defaults.provisionedThroughput; this.volumeSize = defaults.volumeSize; } + @CustomType.Setter public Builder provisionedThroughput(@Nullable ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput provisionedThroughput) { this.provisionedThroughput = provisionedThroughput; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; - } public ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo build() { - return new ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo(provisionedThroughput, volumeSize); + } + public ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo build() { + final var o = new ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfo(); + o.provisionedThroughput = provisionedThroughput; + o.volumeSize = volumeSize; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput.java index 72d478e46c3..b3af4e138f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput.java @@ -16,21 +16,14 @@ public final class ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisione * @return Controls whether provisioned throughput is enabled or not. Default value: `false`. * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second. The minimum value is `250`. The maximum value varies between broker type. You can refer to the valid values for the maximum volume throughput at the following [documentation on throughput bottlenecks](https://docs.aws.amazon.com/msk/latest/developerguide/msk-provision-throughput.html#throughput-bottlenecks) * */ - private final @Nullable Integer volumeThroughput; - - @CustomType.Constructor - private ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("volumeThroughput") @Nullable Integer volumeThroughput) { - this.enabled = enabled; - this.volumeThroughput = volumeThroughput; - } + private @Nullable Integer volumeThroughput; + private ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput() {} /** * @return Controls whether provisioned throughput is enabled or not. Default value: `false`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable Integer volumeThroughput; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.volumeThroughput = defaults.volumeThroughput; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder volumeThroughput(@Nullable Integer volumeThroughput) { this.volumeThroughput = volumeThroughput; return this; - } public ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput build() { - return new ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput(enabled, volumeThroughput); + } + public ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput build() { + final var o = new ClusterBrokerNodeGroupInfoStorageInfoEbsStorageInfoProvisionedThroughput(); + o.enabled = enabled; + o.volumeThroughput = volumeThroughput; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterClientAuthentication.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterClientAuthentication.java index 57dd2baaa97..97007050d1c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterClientAuthentication.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterClientAuthentication.java @@ -17,28 +17,19 @@ public final class ClusterClientAuthentication { * @return Configuration block for specifying SASL client authentication. See below. * */ - private final @Nullable ClusterClientAuthenticationSasl sasl; + private @Nullable ClusterClientAuthenticationSasl sasl; /** * @return Configuration block for specifying TLS client authentication. See below. * */ - private final @Nullable ClusterClientAuthenticationTls tls; + private @Nullable ClusterClientAuthenticationTls tls; /** * @return Enables unauthenticated access. * */ - private final @Nullable Boolean unauthenticated; - - @CustomType.Constructor - private ClusterClientAuthentication( - @CustomType.Parameter("sasl") @Nullable ClusterClientAuthenticationSasl sasl, - @CustomType.Parameter("tls") @Nullable ClusterClientAuthenticationTls tls, - @CustomType.Parameter("unauthenticated") @Nullable Boolean unauthenticated) { - this.sasl = sasl; - this.tls = tls; - this.unauthenticated = unauthenticated; - } + private @Nullable Boolean unauthenticated; + private ClusterClientAuthentication() {} /** * @return Configuration block for specifying SASL client authentication. See below. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(ClusterClientAuthentication defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClusterClientAuthenticationSasl sasl; private @Nullable ClusterClientAuthenticationTls tls; private @Nullable Boolean unauthenticated; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterClientAuthentication defaults) { Objects.requireNonNull(defaults); this.sasl = defaults.sasl; @@ -85,19 +72,27 @@ public Builder(ClusterClientAuthentication defaults) { this.unauthenticated = defaults.unauthenticated; } + @CustomType.Setter public Builder sasl(@Nullable ClusterClientAuthenticationSasl sasl) { this.sasl = sasl; return this; } + @CustomType.Setter public Builder tls(@Nullable ClusterClientAuthenticationTls tls) { this.tls = tls; return this; } + @CustomType.Setter public Builder unauthenticated(@Nullable Boolean unauthenticated) { this.unauthenticated = unauthenticated; return this; - } public ClusterClientAuthentication build() { - return new ClusterClientAuthentication(sasl, tls, unauthenticated); + } + public ClusterClientAuthentication build() { + final var o = new ClusterClientAuthentication(); + o.sasl = sasl; + o.tls = tls; + o.unauthenticated = unauthenticated; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterClientAuthenticationSasl.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterClientAuthenticationSasl.java index 350fb0327c9..409fb06ab23 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterClientAuthenticationSasl.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterClientAuthenticationSasl.java @@ -15,21 +15,14 @@ public final class ClusterClientAuthenticationSasl { * @return Enables IAM client authentication. Defaults to `false`. * */ - private final @Nullable Boolean iam; + private @Nullable Boolean iam; /** * @return Enables SCRAM client authentication via AWS Secrets Manager. Defaults to `false`. * */ - private final @Nullable Boolean scram; - - @CustomType.Constructor - private ClusterClientAuthenticationSasl( - @CustomType.Parameter("iam") @Nullable Boolean iam, - @CustomType.Parameter("scram") @Nullable Boolean scram) { - this.iam = iam; - this.scram = scram; - } + private @Nullable Boolean scram; + private ClusterClientAuthenticationSasl() {} /** * @return Enables IAM client authentication. Defaults to `false`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ClusterClientAuthenticationSasl defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean iam; private @Nullable Boolean scram; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterClientAuthenticationSasl defaults) { Objects.requireNonNull(defaults); this.iam = defaults.iam; this.scram = defaults.scram; } + @CustomType.Setter public Builder iam(@Nullable Boolean iam) { this.iam = iam; return this; } + @CustomType.Setter public Builder scram(@Nullable Boolean scram) { this.scram = scram; return this; - } public ClusterClientAuthenticationSasl build() { - return new ClusterClientAuthenticationSasl(iam, scram); + } + public ClusterClientAuthenticationSasl build() { + final var o = new ClusterClientAuthenticationSasl(); + o.iam = iam; + o.scram = scram; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterClientAuthenticationTls.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterClientAuthenticationTls.java index 1f4d2867e51..2deceef6a36 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterClientAuthenticationTls.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterClientAuthenticationTls.java @@ -15,13 +15,9 @@ public final class ClusterClientAuthenticationTls { * @return List of ACM Certificate Authority Amazon Resource Names (ARNs). * */ - private final @Nullable List certificateAuthorityArns; - - @CustomType.Constructor - private ClusterClientAuthenticationTls(@CustomType.Parameter("certificateAuthorityArns") @Nullable List certificateAuthorityArns) { - this.certificateAuthorityArns = certificateAuthorityArns; - } + private @Nullable List certificateAuthorityArns; + private ClusterClientAuthenticationTls() {} /** * @return List of ACM Certificate Authority Amazon Resource Names (ARNs). * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(ClusterClientAuthenticationTls defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List certificateAuthorityArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterClientAuthenticationTls defaults) { Objects.requireNonNull(defaults); this.certificateAuthorityArns = defaults.certificateAuthorityArns; } + @CustomType.Setter public Builder certificateAuthorityArns(@Nullable List certificateAuthorityArns) { this.certificateAuthorityArns = certificateAuthorityArns; return this; } public Builder certificateAuthorityArns(String... certificateAuthorityArns) { return certificateAuthorityArns(List.of(certificateAuthorityArns)); - } public ClusterClientAuthenticationTls build() { - return new ClusterClientAuthenticationTls(certificateAuthorityArns); + } + public ClusterClientAuthenticationTls build() { + final var o = new ClusterClientAuthenticationTls(); + o.certificateAuthorityArns = certificateAuthorityArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterConfigurationInfo.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterConfigurationInfo.java index f0527434611..bfda04f6b75 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterConfigurationInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterConfigurationInfo.java @@ -14,21 +14,14 @@ public final class ClusterConfigurationInfo { * @return Amazon Resource Name (ARN) of the MSK Configuration to use in the cluster. * */ - private final String arn; + private String arn; /** * @return Revision of the MSK Configuration to use in the cluster. * */ - private final Integer revision; - - @CustomType.Constructor - private ClusterConfigurationInfo( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("revision") Integer revision) { - this.arn = arn; - this.revision = revision; - } + private Integer revision; + private ClusterConfigurationInfo() {} /** * @return Amazon Resource Name (ARN) of the MSK Configuration to use in the cluster. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(ClusterConfigurationInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Integer revision; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterConfigurationInfo defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.revision = defaults.revision; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder revision(Integer revision) { this.revision = Objects.requireNonNull(revision); return this; - } public ClusterConfigurationInfo build() { - return new ClusterConfigurationInfo(arn, revision); + } + public ClusterConfigurationInfo build() { + final var o = new ClusterConfigurationInfo(); + o.arn = arn; + o.revision = revision; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterEncryptionInfo.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterEncryptionInfo.java index 2b9a00e682b..f0f8e589549 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterEncryptionInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterEncryptionInfo.java @@ -16,21 +16,14 @@ public final class ClusterEncryptionInfo { * @return You may specify a KMS key short ID or ARN (it will always output an ARN) to use for encrypting your data at rest. If no key is specified, an AWS managed KMS ('aws/msk' managed service) key will be used for encrypting the data at rest. * */ - private final @Nullable String encryptionAtRestKmsKeyArn; + private @Nullable String encryptionAtRestKmsKeyArn; /** * @return Configuration block to specify encryption in transit. See below. * */ - private final @Nullable ClusterEncryptionInfoEncryptionInTransit encryptionInTransit; - - @CustomType.Constructor - private ClusterEncryptionInfo( - @CustomType.Parameter("encryptionAtRestKmsKeyArn") @Nullable String encryptionAtRestKmsKeyArn, - @CustomType.Parameter("encryptionInTransit") @Nullable ClusterEncryptionInfoEncryptionInTransit encryptionInTransit) { - this.encryptionAtRestKmsKeyArn = encryptionAtRestKmsKeyArn; - this.encryptionInTransit = encryptionInTransit; - } + private @Nullable ClusterEncryptionInfoEncryptionInTransit encryptionInTransit; + private ClusterEncryptionInfo() {} /** * @return You may specify a KMS key short ID or ARN (it will always output an ARN) to use for encrypting your data at rest. If no key is specified, an AWS managed KMS ('aws/msk' managed service) key will be used for encrypting the data at rest. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClusterEncryptionInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String encryptionAtRestKmsKeyArn; private @Nullable ClusterEncryptionInfoEncryptionInTransit encryptionInTransit; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterEncryptionInfo defaults) { Objects.requireNonNull(defaults); this.encryptionAtRestKmsKeyArn = defaults.encryptionAtRestKmsKeyArn; this.encryptionInTransit = defaults.encryptionInTransit; } + @CustomType.Setter public Builder encryptionAtRestKmsKeyArn(@Nullable String encryptionAtRestKmsKeyArn) { this.encryptionAtRestKmsKeyArn = encryptionAtRestKmsKeyArn; return this; } + @CustomType.Setter public Builder encryptionInTransit(@Nullable ClusterEncryptionInfoEncryptionInTransit encryptionInTransit) { this.encryptionInTransit = encryptionInTransit; return this; - } public ClusterEncryptionInfo build() { - return new ClusterEncryptionInfo(encryptionAtRestKmsKeyArn, encryptionInTransit); + } + public ClusterEncryptionInfo build() { + final var o = new ClusterEncryptionInfo(); + o.encryptionAtRestKmsKeyArn = encryptionAtRestKmsKeyArn; + o.encryptionInTransit = encryptionInTransit; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterEncryptionInfoEncryptionInTransit.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterEncryptionInfoEncryptionInTransit.java index 8eb455edb31..ce184eeaeac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterEncryptionInfoEncryptionInTransit.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterEncryptionInfoEncryptionInTransit.java @@ -16,21 +16,14 @@ public final class ClusterEncryptionInfoEncryptionInTransit { * @return Encryption setting for data in transit between clients and brokers. Valid values: `TLS`, `TLS_PLAINTEXT`, and `PLAINTEXT`. Default value is `TLS`. * */ - private final @Nullable String clientBroker; + private @Nullable String clientBroker; /** * @return Whether data communication among broker nodes is encrypted. Default value: `true`. * */ - private final @Nullable Boolean inCluster; - - @CustomType.Constructor - private ClusterEncryptionInfoEncryptionInTransit( - @CustomType.Parameter("clientBroker") @Nullable String clientBroker, - @CustomType.Parameter("inCluster") @Nullable Boolean inCluster) { - this.clientBroker = clientBroker; - this.inCluster = inCluster; - } + private @Nullable Boolean inCluster; + private ClusterEncryptionInfoEncryptionInTransit() {} /** * @return Encryption setting for data in transit between clients and brokers. Valid values: `TLS`, `TLS_PLAINTEXT`, and `PLAINTEXT`. Default value is `TLS`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClusterEncryptionInfoEncryptionInTransit defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String clientBroker; private @Nullable Boolean inCluster; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterEncryptionInfoEncryptionInTransit defaults) { Objects.requireNonNull(defaults); this.clientBroker = defaults.clientBroker; this.inCluster = defaults.inCluster; } + @CustomType.Setter public Builder clientBroker(@Nullable String clientBroker) { this.clientBroker = clientBroker; return this; } + @CustomType.Setter public Builder inCluster(@Nullable Boolean inCluster) { this.inCluster = inCluster; return this; - } public ClusterEncryptionInfoEncryptionInTransit build() { - return new ClusterEncryptionInfoEncryptionInTransit(clientBroker, inCluster); + } + public ClusterEncryptionInfoEncryptionInTransit build() { + final var o = new ClusterEncryptionInfoEncryptionInTransit(); + o.clientBroker = clientBroker; + o.inCluster = inCluster; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfo.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfo.java index c0a41387d9b..368dc608b0e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfo.java @@ -13,13 +13,9 @@ public final class ClusterLoggingInfo { * @return Configuration block for Broker Logs settings for logging info. See below. * */ - private final ClusterLoggingInfoBrokerLogs brokerLogs; - - @CustomType.Constructor - private ClusterLoggingInfo(@CustomType.Parameter("brokerLogs") ClusterLoggingInfoBrokerLogs brokerLogs) { - this.brokerLogs = brokerLogs; - } + private ClusterLoggingInfoBrokerLogs brokerLogs; + private ClusterLoggingInfo() {} /** * @return Configuration block for Broker Logs settings for logging info. See below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ClusterLoggingInfo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private ClusterLoggingInfoBrokerLogs brokerLogs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterLoggingInfo defaults) { Objects.requireNonNull(defaults); this.brokerLogs = defaults.brokerLogs; } + @CustomType.Setter public Builder brokerLogs(ClusterLoggingInfoBrokerLogs brokerLogs) { this.brokerLogs = Objects.requireNonNull(brokerLogs); return this; - } public ClusterLoggingInfo build() { - return new ClusterLoggingInfo(brokerLogs); + } + public ClusterLoggingInfo build() { + final var o = new ClusterLoggingInfo(); + o.brokerLogs = brokerLogs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogs.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogs.java index 940706dc736..7c393e2eb5d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogs.java @@ -13,20 +13,11 @@ @CustomType public final class ClusterLoggingInfoBrokerLogs { - private final @Nullable ClusterLoggingInfoBrokerLogsCloudwatchLogs cloudwatchLogs; - private final @Nullable ClusterLoggingInfoBrokerLogsFirehose firehose; - private final @Nullable ClusterLoggingInfoBrokerLogsS3 s3; - - @CustomType.Constructor - private ClusterLoggingInfoBrokerLogs( - @CustomType.Parameter("cloudwatchLogs") @Nullable ClusterLoggingInfoBrokerLogsCloudwatchLogs cloudwatchLogs, - @CustomType.Parameter("firehose") @Nullable ClusterLoggingInfoBrokerLogsFirehose firehose, - @CustomType.Parameter("s3") @Nullable ClusterLoggingInfoBrokerLogsS3 s3) { - this.cloudwatchLogs = cloudwatchLogs; - this.firehose = firehose; - this.s3 = s3; - } + private @Nullable ClusterLoggingInfoBrokerLogsCloudwatchLogs cloudwatchLogs; + private @Nullable ClusterLoggingInfoBrokerLogsFirehose firehose; + private @Nullable ClusterLoggingInfoBrokerLogsS3 s3; + private ClusterLoggingInfoBrokerLogs() {} public Optional cloudwatchLogs() { return Optional.ofNullable(this.cloudwatchLogs); } @@ -44,16 +35,12 @@ public static Builder builder() { public static Builder builder(ClusterLoggingInfoBrokerLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClusterLoggingInfoBrokerLogsCloudwatchLogs cloudwatchLogs; private @Nullable ClusterLoggingInfoBrokerLogsFirehose firehose; private @Nullable ClusterLoggingInfoBrokerLogsS3 s3; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterLoggingInfoBrokerLogs defaults) { Objects.requireNonNull(defaults); this.cloudwatchLogs = defaults.cloudwatchLogs; @@ -61,19 +48,27 @@ public Builder(ClusterLoggingInfoBrokerLogs defaults) { this.s3 = defaults.s3; } + @CustomType.Setter public Builder cloudwatchLogs(@Nullable ClusterLoggingInfoBrokerLogsCloudwatchLogs cloudwatchLogs) { this.cloudwatchLogs = cloudwatchLogs; return this; } + @CustomType.Setter public Builder firehose(@Nullable ClusterLoggingInfoBrokerLogsFirehose firehose) { this.firehose = firehose; return this; } + @CustomType.Setter public Builder s3(@Nullable ClusterLoggingInfoBrokerLogsS3 s3) { this.s3 = s3; return this; - } public ClusterLoggingInfoBrokerLogs build() { - return new ClusterLoggingInfoBrokerLogs(cloudwatchLogs, firehose, s3); + } + public ClusterLoggingInfoBrokerLogs build() { + final var o = new ClusterLoggingInfoBrokerLogs(); + o.cloudwatchLogs = cloudwatchLogs; + o.firehose = firehose; + o.s3 = s3; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogsCloudwatchLogs.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogsCloudwatchLogs.java index 7422058ec3a..1fa483b1703 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogsCloudwatchLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogsCloudwatchLogs.java @@ -16,21 +16,14 @@ public final class ClusterLoggingInfoBrokerLogsCloudwatchLogs { * @return Controls whether provisioned throughput is enabled or not. Default value: `false`. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return Name of the Cloudwatch Log Group to deliver logs to. * */ - private final @Nullable String logGroup; - - @CustomType.Constructor - private ClusterLoggingInfoBrokerLogsCloudwatchLogs( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("logGroup") @Nullable String logGroup) { - this.enabled = enabled; - this.logGroup = logGroup; - } + private @Nullable String logGroup; + private ClusterLoggingInfoBrokerLogsCloudwatchLogs() {} /** * @return Controls whether provisioned throughput is enabled or not. Default value: `false`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClusterLoggingInfoBrokerLogsCloudwatchLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private @Nullable String logGroup; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterLoggingInfoBrokerLogsCloudwatchLogs defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logGroup = defaults.logGroup; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder logGroup(@Nullable String logGroup) { this.logGroup = logGroup; return this; - } public ClusterLoggingInfoBrokerLogsCloudwatchLogs build() { - return new ClusterLoggingInfoBrokerLogsCloudwatchLogs(enabled, logGroup); + } + public ClusterLoggingInfoBrokerLogsCloudwatchLogs build() { + final var o = new ClusterLoggingInfoBrokerLogsCloudwatchLogs(); + o.enabled = enabled; + o.logGroup = logGroup; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogsFirehose.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogsFirehose.java index 87dc5805605..0293f56eb5d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogsFirehose.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogsFirehose.java @@ -16,21 +16,14 @@ public final class ClusterLoggingInfoBrokerLogsFirehose { * @return Name of the Kinesis Data Firehose delivery stream to deliver logs to. * */ - private final @Nullable String deliveryStream; + private @Nullable String deliveryStream; /** * @return Controls whether provisioned throughput is enabled or not. Default value: `false`. * */ - private final Boolean enabled; - - @CustomType.Constructor - private ClusterLoggingInfoBrokerLogsFirehose( - @CustomType.Parameter("deliveryStream") @Nullable String deliveryStream, - @CustomType.Parameter("enabled") Boolean enabled) { - this.deliveryStream = deliveryStream; - this.enabled = enabled; - } + private Boolean enabled; + private ClusterLoggingInfoBrokerLogsFirehose() {} /** * @return Name of the Kinesis Data Firehose delivery stream to deliver logs to. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClusterLoggingInfoBrokerLogsFirehose defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deliveryStream; private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterLoggingInfoBrokerLogsFirehose defaults) { Objects.requireNonNull(defaults); this.deliveryStream = defaults.deliveryStream; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder deliveryStream(@Nullable String deliveryStream) { this.deliveryStream = deliveryStream; return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public ClusterLoggingInfoBrokerLogsFirehose build() { - return new ClusterLoggingInfoBrokerLogsFirehose(deliveryStream, enabled); + } + public ClusterLoggingInfoBrokerLogsFirehose build() { + final var o = new ClusterLoggingInfoBrokerLogsFirehose(); + o.deliveryStream = deliveryStream; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogsS3.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogsS3.java index 64fdd970bb3..9b5d861a80e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogsS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterLoggingInfoBrokerLogsS3.java @@ -16,28 +16,19 @@ public final class ClusterLoggingInfoBrokerLogsS3 { * @return Name of the S3 bucket to deliver logs to. * */ - private final @Nullable String bucket; + private @Nullable String bucket; /** * @return Controls whether provisioned throughput is enabled or not. Default value: `false`. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return Prefix to append to the folder name. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private ClusterLoggingInfoBrokerLogsS3( - @CustomType.Parameter("bucket") @Nullable String bucket, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.bucket = bucket; - this.enabled = enabled; - this.prefix = prefix; - } + private @Nullable String prefix; + private ClusterLoggingInfoBrokerLogsS3() {} /** * @return Name of the S3 bucket to deliver logs to. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ClusterLoggingInfoBrokerLogsS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucket; private Boolean enabled; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterLoggingInfoBrokerLogsS3 defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -84,19 +71,27 @@ public Builder(ClusterLoggingInfoBrokerLogsS3 defaults) { this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucket(@Nullable String bucket) { this.bucket = bucket; return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public ClusterLoggingInfoBrokerLogsS3 build() { - return new ClusterLoggingInfoBrokerLogsS3(bucket, enabled, prefix); + } + public ClusterLoggingInfoBrokerLogsS3 build() { + final var o = new ClusterLoggingInfoBrokerLogsS3(); + o.bucket = bucket; + o.enabled = enabled; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoring.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoring.java index c83ce2c812a..341f01e42bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoring.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoring.java @@ -13,13 +13,9 @@ public final class ClusterOpenMonitoring { * @return Configuration block for Prometheus settings for open monitoring. See below. * */ - private final ClusterOpenMonitoringPrometheus prometheus; - - @CustomType.Constructor - private ClusterOpenMonitoring(@CustomType.Parameter("prometheus") ClusterOpenMonitoringPrometheus prometheus) { - this.prometheus = prometheus; - } + private ClusterOpenMonitoringPrometheus prometheus; + private ClusterOpenMonitoring() {} /** * @return Configuration block for Prometheus settings for open monitoring. See below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ClusterOpenMonitoring defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private ClusterOpenMonitoringPrometheus prometheus; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterOpenMonitoring defaults) { Objects.requireNonNull(defaults); this.prometheus = defaults.prometheus; } + @CustomType.Setter public Builder prometheus(ClusterOpenMonitoringPrometheus prometheus) { this.prometheus = Objects.requireNonNull(prometheus); return this; - } public ClusterOpenMonitoring build() { - return new ClusterOpenMonitoring(prometheus); + } + public ClusterOpenMonitoring build() { + final var o = new ClusterOpenMonitoring(); + o.prometheus = prometheus; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoringPrometheus.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoringPrometheus.java index db9ec3a76db..4329fbb2ac5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoringPrometheus.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoringPrometheus.java @@ -16,21 +16,14 @@ public final class ClusterOpenMonitoringPrometheus { * @return Configuration block for JMX Exporter. See below. * */ - private final @Nullable ClusterOpenMonitoringPrometheusJmxExporter jmxExporter; + private @Nullable ClusterOpenMonitoringPrometheusJmxExporter jmxExporter; /** * @return Configuration block for Node Exporter. See below. * */ - private final @Nullable ClusterOpenMonitoringPrometheusNodeExporter nodeExporter; - - @CustomType.Constructor - private ClusterOpenMonitoringPrometheus( - @CustomType.Parameter("jmxExporter") @Nullable ClusterOpenMonitoringPrometheusJmxExporter jmxExporter, - @CustomType.Parameter("nodeExporter") @Nullable ClusterOpenMonitoringPrometheusNodeExporter nodeExporter) { - this.jmxExporter = jmxExporter; - this.nodeExporter = nodeExporter; - } + private @Nullable ClusterOpenMonitoringPrometheusNodeExporter nodeExporter; + private ClusterOpenMonitoringPrometheus() {} /** * @return Configuration block for JMX Exporter. See below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ClusterOpenMonitoringPrometheus defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ClusterOpenMonitoringPrometheusJmxExporter jmxExporter; private @Nullable ClusterOpenMonitoringPrometheusNodeExporter nodeExporter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterOpenMonitoringPrometheus defaults) { Objects.requireNonNull(defaults); this.jmxExporter = defaults.jmxExporter; this.nodeExporter = defaults.nodeExporter; } + @CustomType.Setter public Builder jmxExporter(@Nullable ClusterOpenMonitoringPrometheusJmxExporter jmxExporter) { this.jmxExporter = jmxExporter; return this; } + @CustomType.Setter public Builder nodeExporter(@Nullable ClusterOpenMonitoringPrometheusNodeExporter nodeExporter) { this.nodeExporter = nodeExporter; return this; - } public ClusterOpenMonitoringPrometheus build() { - return new ClusterOpenMonitoringPrometheus(jmxExporter, nodeExporter); + } + public ClusterOpenMonitoringPrometheus build() { + final var o = new ClusterOpenMonitoringPrometheus(); + o.jmxExporter = jmxExporter; + o.nodeExporter = nodeExporter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoringPrometheusJmxExporter.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoringPrometheusJmxExporter.java index 521b0e67842..f12f43c32cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoringPrometheusJmxExporter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoringPrometheusJmxExporter.java @@ -13,13 +13,9 @@ public final class ClusterOpenMonitoringPrometheusJmxExporter { * @return Indicates whether you want to enable or disable the JMX Exporter. * */ - private final Boolean enabledInBroker; - - @CustomType.Constructor - private ClusterOpenMonitoringPrometheusJmxExporter(@CustomType.Parameter("enabledInBroker") Boolean enabledInBroker) { - this.enabledInBroker = enabledInBroker; - } + private Boolean enabledInBroker; + private ClusterOpenMonitoringPrometheusJmxExporter() {} /** * @return Indicates whether you want to enable or disable the JMX Exporter. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ClusterOpenMonitoringPrometheusJmxExporter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabledInBroker; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterOpenMonitoringPrometheusJmxExporter defaults) { Objects.requireNonNull(defaults); this.enabledInBroker = defaults.enabledInBroker; } + @CustomType.Setter public Builder enabledInBroker(Boolean enabledInBroker) { this.enabledInBroker = Objects.requireNonNull(enabledInBroker); return this; - } public ClusterOpenMonitoringPrometheusJmxExporter build() { - return new ClusterOpenMonitoringPrometheusJmxExporter(enabledInBroker); + } + public ClusterOpenMonitoringPrometheusJmxExporter build() { + final var o = new ClusterOpenMonitoringPrometheusJmxExporter(); + o.enabledInBroker = enabledInBroker; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoringPrometheusNodeExporter.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoringPrometheusNodeExporter.java index 53f2736a8e9..527cafb776a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoringPrometheusNodeExporter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ClusterOpenMonitoringPrometheusNodeExporter.java @@ -13,13 +13,9 @@ public final class ClusterOpenMonitoringPrometheusNodeExporter { * @return Indicates whether you want to enable or disable the JMX Exporter. * */ - private final Boolean enabledInBroker; - - @CustomType.Constructor - private ClusterOpenMonitoringPrometheusNodeExporter(@CustomType.Parameter("enabledInBroker") Boolean enabledInBroker) { - this.enabledInBroker = enabledInBroker; - } + private Boolean enabledInBroker; + private ClusterOpenMonitoringPrometheusNodeExporter() {} /** * @return Indicates whether you want to enable or disable the JMX Exporter. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ClusterOpenMonitoringPrometheusNodeExporter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabledInBroker; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterOpenMonitoringPrometheusNodeExporter defaults) { Objects.requireNonNull(defaults); this.enabledInBroker = defaults.enabledInBroker; } + @CustomType.Setter public Builder enabledInBroker(Boolean enabledInBroker) { this.enabledInBroker = Objects.requireNonNull(enabledInBroker); return this; - } public ClusterOpenMonitoringPrometheusNodeExporter build() { - return new ClusterOpenMonitoringPrometheusNodeExporter(enabledInBroker); + } + public ClusterOpenMonitoringPrometheusNodeExporter build() { + final var o = new ClusterOpenMonitoringPrometheusNodeExporter(); + o.enabledInBroker = enabledInBroker; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetBrokerNodesNodeInfoList.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetBrokerNodesNodeInfoList.java index 3b74ba661c4..53895b4f64f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetBrokerNodesNodeInfoList.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetBrokerNodesNodeInfoList.java @@ -15,49 +15,34 @@ public final class GetBrokerNodesNodeInfoList { * @return The attached elastic network interface of the broker * */ - private final String attachedEniId; + private String attachedEniId; /** * @return The ID of the broker * */ - private final Double brokerId; + private Double brokerId; /** * @return The client subnet to which this broker node belongs * */ - private final String clientSubnet; + private String clientSubnet; /** * @return The client virtual private cloud (VPC) IP address * */ - private final String clientVpcIpAddress; + private String clientVpcIpAddress; /** * @return Set of endpoints for accessing the broker. This does not include ports * */ - private final List endpoints; + private List endpoints; /** * @return The Amazon Resource Name (ARN) of the node * */ - private final String nodeArn; - - @CustomType.Constructor - private GetBrokerNodesNodeInfoList( - @CustomType.Parameter("attachedEniId") String attachedEniId, - @CustomType.Parameter("brokerId") Double brokerId, - @CustomType.Parameter("clientSubnet") String clientSubnet, - @CustomType.Parameter("clientVpcIpAddress") String clientVpcIpAddress, - @CustomType.Parameter("endpoints") List endpoints, - @CustomType.Parameter("nodeArn") String nodeArn) { - this.attachedEniId = attachedEniId; - this.brokerId = brokerId; - this.clientSubnet = clientSubnet; - this.clientVpcIpAddress = clientVpcIpAddress; - this.endpoints = endpoints; - this.nodeArn = nodeArn; - } + private String nodeArn; + private GetBrokerNodesNodeInfoList() {} /** * @return The attached elastic network interface of the broker * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(GetBrokerNodesNodeInfoList defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String attachedEniId; private Double brokerId; @@ -116,11 +101,7 @@ public static final class Builder { private String clientVpcIpAddress; private List endpoints; private String nodeArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBrokerNodesNodeInfoList defaults) { Objects.requireNonNull(defaults); this.attachedEniId = defaults.attachedEniId; @@ -131,22 +112,27 @@ public Builder(GetBrokerNodesNodeInfoList defaults) { this.nodeArn = defaults.nodeArn; } + @CustomType.Setter public Builder attachedEniId(String attachedEniId) { this.attachedEniId = Objects.requireNonNull(attachedEniId); return this; } + @CustomType.Setter public Builder brokerId(Double brokerId) { this.brokerId = Objects.requireNonNull(brokerId); return this; } + @CustomType.Setter public Builder clientSubnet(String clientSubnet) { this.clientSubnet = Objects.requireNonNull(clientSubnet); return this; } + @CustomType.Setter public Builder clientVpcIpAddress(String clientVpcIpAddress) { this.clientVpcIpAddress = Objects.requireNonNull(clientVpcIpAddress); return this; } + @CustomType.Setter public Builder endpoints(List endpoints) { this.endpoints = Objects.requireNonNull(endpoints); return this; @@ -154,11 +140,20 @@ public Builder endpoints(List endpoints) { public Builder endpoints(String... endpoints) { return endpoints(List.of(endpoints)); } + @CustomType.Setter public Builder nodeArn(String nodeArn) { this.nodeArn = Objects.requireNonNull(nodeArn); return this; - } public GetBrokerNodesNodeInfoList build() { - return new GetBrokerNodesNodeInfoList(attachedEniId, brokerId, clientSubnet, clientVpcIpAddress, endpoints, nodeArn); + } + public GetBrokerNodesNodeInfoList build() { + final var o = new GetBrokerNodesNodeInfoList(); + o.attachedEniId = attachedEniId; + o.brokerId = brokerId; + o.clientSubnet = clientSubnet; + o.clientVpcIpAddress = clientVpcIpAddress; + o.endpoints = endpoints; + o.nodeArn = nodeArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetBrokerNodesResult.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetBrokerNodesResult.java index 35edb45c93d..33ac7e148e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetBrokerNodesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetBrokerNodesResult.java @@ -11,24 +11,15 @@ @CustomType public final class GetBrokerNodesResult { - private final String clusterArn; + private String clusterArn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final List nodeInfoLists; - - @CustomType.Constructor - private GetBrokerNodesResult( - @CustomType.Parameter("clusterArn") String clusterArn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("nodeInfoLists") List nodeInfoLists) { - this.clusterArn = clusterArn; - this.id = id; - this.nodeInfoLists = nodeInfoLists; - } + private String id; + private List nodeInfoLists; + private GetBrokerNodesResult() {} public String clusterArn() { return this.clusterArn; } @@ -50,16 +41,12 @@ public static Builder builder() { public static Builder builder(GetBrokerNodesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String clusterArn; private String id; private List nodeInfoLists; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBrokerNodesResult defaults) { Objects.requireNonNull(defaults); this.clusterArn = defaults.clusterArn; @@ -67,22 +54,30 @@ public Builder(GetBrokerNodesResult defaults) { this.nodeInfoLists = defaults.nodeInfoLists; } + @CustomType.Setter public Builder clusterArn(String clusterArn) { this.clusterArn = Objects.requireNonNull(clusterArn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder nodeInfoLists(List nodeInfoLists) { this.nodeInfoLists = Objects.requireNonNull(nodeInfoLists); return this; } public Builder nodeInfoLists(GetBrokerNodesNodeInfoList... nodeInfoLists) { return nodeInfoLists(List.of(nodeInfoLists)); - } public GetBrokerNodesResult build() { - return new GetBrokerNodesResult(clusterArn, id, nodeInfoLists); + } + public GetBrokerNodesResult build() { + final var o = new GetBrokerNodesResult(); + o.clusterArn = clusterArn; + o.id = id; + o.nodeInfoLists = nodeInfoLists; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetClusterResult.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetClusterResult.java index c2fed81b8d4..61a174aa046 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetClusterResult.java @@ -15,108 +15,75 @@ public final class GetClusterResult { * @return Amazon Resource Name (ARN) of the MSK cluster. * */ - private final String arn; + private String arn; /** * @return Comma separated list of one or more hostname:port pairs of kafka brokers suitable to bootstrap connectivity to the kafka cluster. Contains a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `PLAINTEXT` or `TLS_PLAINTEXT`. The resource sorts values alphabetically. AWS may not always return all endpoints so this value is not guaranteed to be stable across applies. * */ - private final String bootstrapBrokers; + private String bootstrapBrokers; /** * @return One or more DNS names (or IP addresses) and SASL IAM port pairs. For example, `b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.iam` is set to `true` and `broker_node_group_info.0.connectivity_info.0.public_access.0.type` is set to `SERVICE_PROVIDED_EIPS` and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies. * */ - private final String bootstrapBrokersPublicSaslIam; + private String bootstrapBrokersPublicSaslIam; /** * @return One or more DNS names (or IP addresses) and SASL SCRAM port pairs. For example, `b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.scram` is set to `true` and `broker_node_group_info.0.connectivity_info.0.public_access.0.type` is set to `SERVICE_PROVIDED_EIPS` and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies. * */ - private final String bootstrapBrokersPublicSaslScram; + private String bootstrapBrokersPublicSaslScram; /** * @return One or more DNS names (or IP addresses) and TLS port pairs. For example, `b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `broker_node_group_info.0.connectivity_info.0.public_access.0.type` is set to `SERVICE_PROVIDED_EIPS` and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies. * */ - private final String bootstrapBrokersPublicTls; + private String bootstrapBrokersPublicTls; /** * @return One or more DNS names (or IP addresses) and SASL IAM port pairs. For example, `b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.iam` is set to `true`. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies. * */ - private final String bootstrapBrokersSaslIam; + private String bootstrapBrokersSaslIam; /** * @return One or more DNS names (or IP addresses) and SASL SCRAM port pairs. For example, `b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.scram` is set to `true`. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies. * */ - private final String bootstrapBrokersSaslScram; + private String bootstrapBrokersSaslScram; /** * @return One or more DNS names (or IP addresses) and TLS port pairs. For example, `b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS`. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies. * */ - private final String bootstrapBrokersTls; - private final String clusterName; + private String bootstrapBrokersTls; + private String clusterName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Apache Kafka version. * */ - private final String kafkaVersion; + private String kafkaVersion; /** * @return Number of broker nodes in the cluster. * */ - private final Integer numberOfBrokerNodes; + private Integer numberOfBrokerNodes; /** * @return Map of key-value pairs assigned to the cluster. * */ - private final Map tags; + private Map tags; /** * @return A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster. The returned values are sorted alphbetically. The AWS API may not return all endpoints, so this value is not guaranteed to be stable across applies. * */ - private final String zookeeperConnectString; + private String zookeeperConnectString; /** * @return A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster via TLS. The returned values are sorted alphabetically. The AWS API may not return all endpoints, so this value is not guaranteed to be stable across applies. * */ - private final String zookeeperConnectStringTls; - - @CustomType.Constructor - private GetClusterResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("bootstrapBrokers") String bootstrapBrokers, - @CustomType.Parameter("bootstrapBrokersPublicSaslIam") String bootstrapBrokersPublicSaslIam, - @CustomType.Parameter("bootstrapBrokersPublicSaslScram") String bootstrapBrokersPublicSaslScram, - @CustomType.Parameter("bootstrapBrokersPublicTls") String bootstrapBrokersPublicTls, - @CustomType.Parameter("bootstrapBrokersSaslIam") String bootstrapBrokersSaslIam, - @CustomType.Parameter("bootstrapBrokersSaslScram") String bootstrapBrokersSaslScram, - @CustomType.Parameter("bootstrapBrokersTls") String bootstrapBrokersTls, - @CustomType.Parameter("clusterName") String clusterName, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kafkaVersion") String kafkaVersion, - @CustomType.Parameter("numberOfBrokerNodes") Integer numberOfBrokerNodes, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("zookeeperConnectString") String zookeeperConnectString, - @CustomType.Parameter("zookeeperConnectStringTls") String zookeeperConnectStringTls) { - this.arn = arn; - this.bootstrapBrokers = bootstrapBrokers; - this.bootstrapBrokersPublicSaslIam = bootstrapBrokersPublicSaslIam; - this.bootstrapBrokersPublicSaslScram = bootstrapBrokersPublicSaslScram; - this.bootstrapBrokersPublicTls = bootstrapBrokersPublicTls; - this.bootstrapBrokersSaslIam = bootstrapBrokersSaslIam; - this.bootstrapBrokersSaslScram = bootstrapBrokersSaslScram; - this.bootstrapBrokersTls = bootstrapBrokersTls; - this.clusterName = clusterName; - this.id = id; - this.kafkaVersion = kafkaVersion; - this.numberOfBrokerNodes = numberOfBrokerNodes; - this.tags = tags; - this.zookeeperConnectString = zookeeperConnectString; - this.zookeeperConnectStringTls = zookeeperConnectStringTls; - } + private String zookeeperConnectStringTls; + private GetClusterResult() {} /** * @return Amazon Resource Name (ARN) of the MSK cluster. * @@ -226,7 +193,7 @@ public static Builder builder() { public static Builder builder(GetClusterResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String bootstrapBrokers; @@ -243,11 +210,7 @@ public static final class Builder { private Map tags; private String zookeeperConnectString; private String zookeeperConnectStringTls; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -267,67 +230,99 @@ public Builder(GetClusterResult defaults) { this.zookeeperConnectStringTls = defaults.zookeeperConnectStringTls; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder bootstrapBrokers(String bootstrapBrokers) { this.bootstrapBrokers = Objects.requireNonNull(bootstrapBrokers); return this; } + @CustomType.Setter public Builder bootstrapBrokersPublicSaslIam(String bootstrapBrokersPublicSaslIam) { this.bootstrapBrokersPublicSaslIam = Objects.requireNonNull(bootstrapBrokersPublicSaslIam); return this; } + @CustomType.Setter public Builder bootstrapBrokersPublicSaslScram(String bootstrapBrokersPublicSaslScram) { this.bootstrapBrokersPublicSaslScram = Objects.requireNonNull(bootstrapBrokersPublicSaslScram); return this; } + @CustomType.Setter public Builder bootstrapBrokersPublicTls(String bootstrapBrokersPublicTls) { this.bootstrapBrokersPublicTls = Objects.requireNonNull(bootstrapBrokersPublicTls); return this; } + @CustomType.Setter public Builder bootstrapBrokersSaslIam(String bootstrapBrokersSaslIam) { this.bootstrapBrokersSaslIam = Objects.requireNonNull(bootstrapBrokersSaslIam); return this; } + @CustomType.Setter public Builder bootstrapBrokersSaslScram(String bootstrapBrokersSaslScram) { this.bootstrapBrokersSaslScram = Objects.requireNonNull(bootstrapBrokersSaslScram); return this; } + @CustomType.Setter public Builder bootstrapBrokersTls(String bootstrapBrokersTls) { this.bootstrapBrokersTls = Objects.requireNonNull(bootstrapBrokersTls); return this; } + @CustomType.Setter public Builder clusterName(String clusterName) { this.clusterName = Objects.requireNonNull(clusterName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kafkaVersion(String kafkaVersion) { this.kafkaVersion = Objects.requireNonNull(kafkaVersion); return this; } + @CustomType.Setter public Builder numberOfBrokerNodes(Integer numberOfBrokerNodes) { this.numberOfBrokerNodes = Objects.requireNonNull(numberOfBrokerNodes); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder zookeeperConnectString(String zookeeperConnectString) { this.zookeeperConnectString = Objects.requireNonNull(zookeeperConnectString); return this; } + @CustomType.Setter public Builder zookeeperConnectStringTls(String zookeeperConnectStringTls) { this.zookeeperConnectStringTls = Objects.requireNonNull(zookeeperConnectStringTls); return this; - } public GetClusterResult build() { - return new GetClusterResult(arn, bootstrapBrokers, bootstrapBrokersPublicSaslIam, bootstrapBrokersPublicSaslScram, bootstrapBrokersPublicTls, bootstrapBrokersSaslIam, bootstrapBrokersSaslScram, bootstrapBrokersTls, clusterName, id, kafkaVersion, numberOfBrokerNodes, tags, zookeeperConnectString, zookeeperConnectStringTls); + } + public GetClusterResult build() { + final var o = new GetClusterResult(); + o.arn = arn; + o.bootstrapBrokers = bootstrapBrokers; + o.bootstrapBrokersPublicSaslIam = bootstrapBrokersPublicSaslIam; + o.bootstrapBrokersPublicSaslScram = bootstrapBrokersPublicSaslScram; + o.bootstrapBrokersPublicTls = bootstrapBrokersPublicTls; + o.bootstrapBrokersSaslIam = bootstrapBrokersSaslIam; + o.bootstrapBrokersSaslScram = bootstrapBrokersSaslScram; + o.bootstrapBrokersTls = bootstrapBrokersTls; + o.clusterName = clusterName; + o.id = id; + o.kafkaVersion = kafkaVersion; + o.numberOfBrokerNodes = numberOfBrokerNodes; + o.tags = tags; + o.zookeeperConnectString = zookeeperConnectString; + o.zookeeperConnectStringTls = zookeeperConnectStringTls; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetConfigurationResult.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetConfigurationResult.java index 6da1a9cf3da..55a597a2f71 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetConfigurationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetConfigurationResult.java @@ -15,52 +15,35 @@ public final class GetConfigurationResult { * @return Amazon Resource Name (ARN) of the configuration. * */ - private final String arn; + private String arn; /** * @return Description of the configuration. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return List of Apache Kafka versions which can use this configuration. * */ - private final List kafkaVersions; + private List kafkaVersions; /** * @return Latest revision of the configuration. * */ - private final Integer latestRevision; - private final String name; + private Integer latestRevision; + private String name; /** * @return Contents of the server.properties file. * */ - private final String serverProperties; - - @CustomType.Constructor - private GetConfigurationResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kafkaVersions") List kafkaVersions, - @CustomType.Parameter("latestRevision") Integer latestRevision, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("serverProperties") String serverProperties) { - this.arn = arn; - this.description = description; - this.id = id; - this.kafkaVersions = kafkaVersions; - this.latestRevision = latestRevision; - this.name = name; - this.serverProperties = serverProperties; - } + private String serverProperties; + private GetConfigurationResult() {} /** * @return Amazon Resource Name (ARN) of the configuration. * @@ -114,7 +97,7 @@ public static Builder builder() { public static Builder builder(GetConfigurationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -123,11 +106,7 @@ public static final class Builder { private Integer latestRevision; private String name; private String serverProperties; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConfigurationResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -139,18 +118,22 @@ public Builder(GetConfigurationResult defaults) { this.serverProperties = defaults.serverProperties; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kafkaVersions(List kafkaVersions) { this.kafkaVersions = Objects.requireNonNull(kafkaVersions); return this; @@ -158,19 +141,31 @@ public Builder kafkaVersions(List kafkaVersions) { public Builder kafkaVersions(String... kafkaVersions) { return kafkaVersions(List.of(kafkaVersions)); } + @CustomType.Setter public Builder latestRevision(Integer latestRevision) { this.latestRevision = Objects.requireNonNull(latestRevision); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder serverProperties(String serverProperties) { this.serverProperties = Objects.requireNonNull(serverProperties); return this; - } public GetConfigurationResult build() { - return new GetConfigurationResult(arn, description, id, kafkaVersions, latestRevision, name, serverProperties); + } + public GetConfigurationResult build() { + final var o = new GetConfigurationResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.kafkaVersions = kafkaVersions; + o.latestRevision = latestRevision; + o.name = name; + o.serverProperties = serverProperties; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetKafkaVersionResult.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetKafkaVersionResult.java index e2201d7e7b4..45c6ebbf386 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetKafkaVersionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/GetKafkaVersionResult.java @@ -15,27 +15,16 @@ public final class GetKafkaVersionResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable List preferredVersions; + private String id; + private @Nullable List preferredVersions; /** * @return Status of the MSK Kafka version eg. `ACTIVE` or `DEPRECATED`. * */ - private final String status; - private final String version; - - @CustomType.Constructor - private GetKafkaVersionResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("preferredVersions") @Nullable List preferredVersions, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("version") String version) { - this.id = id; - this.preferredVersions = preferredVersions; - this.status = status; - this.version = version; - } + private String status; + private String version; + private GetKafkaVersionResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -64,17 +53,13 @@ public static Builder builder() { public static Builder builder(GetKafkaVersionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private @Nullable List preferredVersions; private String status; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetKafkaVersionResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -83,10 +68,12 @@ public Builder(GetKafkaVersionResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder preferredVersions(@Nullable List preferredVersions) { this.preferredVersions = preferredVersions; return this; @@ -94,15 +81,23 @@ public Builder preferredVersions(@Nullable List preferredVersions) { public Builder preferredVersions(String... preferredVersions) { return preferredVersions(List.of(preferredVersions)); } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public GetKafkaVersionResult build() { - return new GetKafkaVersionResult(id, preferredVersions, status, version); + } + public GetKafkaVersionResult build() { + final var o = new GetKafkaVersionResult(); + o.id = id; + o.preferredVersions = preferredVersions; + o.status = status; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterClientAuthentication.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterClientAuthentication.java index 6ec761243ab..89bdd86ac37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterClientAuthentication.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterClientAuthentication.java @@ -13,13 +13,9 @@ public final class ServerlessClusterClientAuthentication { * @return Details for client authentication using SASL. See below. * */ - private final ServerlessClusterClientAuthenticationSasl sasl; - - @CustomType.Constructor - private ServerlessClusterClientAuthentication(@CustomType.Parameter("sasl") ServerlessClusterClientAuthenticationSasl sasl) { - this.sasl = sasl; - } + private ServerlessClusterClientAuthenticationSasl sasl; + private ServerlessClusterClientAuthentication() {} /** * @return Details for client authentication using SASL. See below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ServerlessClusterClientAuthentication defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private ServerlessClusterClientAuthenticationSasl sasl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServerlessClusterClientAuthentication defaults) { Objects.requireNonNull(defaults); this.sasl = defaults.sasl; } + @CustomType.Setter public Builder sasl(ServerlessClusterClientAuthenticationSasl sasl) { this.sasl = Objects.requireNonNull(sasl); return this; - } public ServerlessClusterClientAuthentication build() { - return new ServerlessClusterClientAuthentication(sasl); + } + public ServerlessClusterClientAuthentication build() { + final var o = new ServerlessClusterClientAuthentication(); + o.sasl = sasl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterClientAuthenticationSasl.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterClientAuthenticationSasl.java index 7f54e397e9e..c83755df802 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterClientAuthenticationSasl.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterClientAuthenticationSasl.java @@ -13,13 +13,9 @@ public final class ServerlessClusterClientAuthenticationSasl { * @return Details for client authentication using IAM. See below. * */ - private final ServerlessClusterClientAuthenticationSaslIam iam; - - @CustomType.Constructor - private ServerlessClusterClientAuthenticationSasl(@CustomType.Parameter("iam") ServerlessClusterClientAuthenticationSaslIam iam) { - this.iam = iam; - } + private ServerlessClusterClientAuthenticationSaslIam iam; + private ServerlessClusterClientAuthenticationSasl() {} /** * @return Details for client authentication using IAM. See below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ServerlessClusterClientAuthenticationSasl defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private ServerlessClusterClientAuthenticationSaslIam iam; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServerlessClusterClientAuthenticationSasl defaults) { Objects.requireNonNull(defaults); this.iam = defaults.iam; } + @CustomType.Setter public Builder iam(ServerlessClusterClientAuthenticationSaslIam iam) { this.iam = Objects.requireNonNull(iam); return this; - } public ServerlessClusterClientAuthenticationSasl build() { - return new ServerlessClusterClientAuthenticationSasl(iam); + } + public ServerlessClusterClientAuthenticationSasl build() { + final var o = new ServerlessClusterClientAuthenticationSasl(); + o.iam = iam; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterClientAuthenticationSaslIam.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterClientAuthenticationSaslIam.java index 3345b78235a..bd2615ece62 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterClientAuthenticationSaslIam.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterClientAuthenticationSaslIam.java @@ -13,13 +13,9 @@ public final class ServerlessClusterClientAuthenticationSaslIam { * @return Whether SASL/IAM authentication is enabled or not. * */ - private final Boolean enabled; - - @CustomType.Constructor - private ServerlessClusterClientAuthenticationSaslIam(@CustomType.Parameter("enabled") Boolean enabled) { - this.enabled = enabled; - } + private Boolean enabled; + private ServerlessClusterClientAuthenticationSaslIam() {} /** * @return Whether SASL/IAM authentication is enabled or not. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ServerlessClusterClientAuthenticationSaslIam defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServerlessClusterClientAuthenticationSaslIam defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public ServerlessClusterClientAuthenticationSaslIam build() { - return new ServerlessClusterClientAuthenticationSaslIam(enabled); + } + public ServerlessClusterClientAuthenticationSaslIam build() { + final var o = new ServerlessClusterClientAuthenticationSaslIam(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterVpcConfig.java b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterVpcConfig.java index d8ceab98664..c4466639150 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterVpcConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/msk/outputs/ServerlessClusterVpcConfig.java @@ -15,21 +15,14 @@ public final class ServerlessClusterVpcConfig { * @return Specifies up to five security groups that control inbound and outbound traffic for the serverless cluster. * */ - private final @Nullable List securityGroupIds; + private @Nullable List securityGroupIds; /** * @return A list of subnets in at least two different Availability Zones that host your client applications. * */ - private final List subnetIds; - - @CustomType.Constructor - private ServerlessClusterVpcConfig( - @CustomType.Parameter("securityGroupIds") @Nullable List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds) { - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - } + private List subnetIds; + private ServerlessClusterVpcConfig() {} /** * @return Specifies up to five security groups that control inbound and outbound traffic for the serverless cluster. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(ServerlessClusterVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List securityGroupIds; private List subnetIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServerlessClusterVpcConfig defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; this.subnetIds = defaults.subnetIds; } + @CustomType.Setter public Builder securityGroupIds(@Nullable List securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; @@ -74,14 +64,19 @@ public Builder securityGroupIds(@Nullable List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; } public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); - } public ServerlessClusterVpcConfig build() { - return new ServerlessClusterVpcConfig(securityGroupIds, subnetIds); + } + public ServerlessClusterVpcConfig build() { + final var o = new ServerlessClusterVpcConfig(); + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacity.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacity.java index 4c3842964db..722a4d61007 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacity.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacity.java @@ -16,21 +16,14 @@ public final class ConnectorCapacity { * @return Information about the auto scaling parameters for the connector. See below. * */ - private final @Nullable ConnectorCapacityAutoscaling autoscaling; + private @Nullable ConnectorCapacityAutoscaling autoscaling; /** * @return Details about a fixed capacity allocated to a connector. See below. * */ - private final @Nullable ConnectorCapacityProvisionedCapacity provisionedCapacity; - - @CustomType.Constructor - private ConnectorCapacity( - @CustomType.Parameter("autoscaling") @Nullable ConnectorCapacityAutoscaling autoscaling, - @CustomType.Parameter("provisionedCapacity") @Nullable ConnectorCapacityProvisionedCapacity provisionedCapacity) { - this.autoscaling = autoscaling; - this.provisionedCapacity = provisionedCapacity; - } + private @Nullable ConnectorCapacityProvisionedCapacity provisionedCapacity; + private ConnectorCapacity() {} /** * @return Information about the auto scaling parameters for the connector. See below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ConnectorCapacity defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ConnectorCapacityAutoscaling autoscaling; private @Nullable ConnectorCapacityProvisionedCapacity provisionedCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorCapacity defaults) { Objects.requireNonNull(defaults); this.autoscaling = defaults.autoscaling; this.provisionedCapacity = defaults.provisionedCapacity; } + @CustomType.Setter public Builder autoscaling(@Nullable ConnectorCapacityAutoscaling autoscaling) { this.autoscaling = autoscaling; return this; } + @CustomType.Setter public Builder provisionedCapacity(@Nullable ConnectorCapacityProvisionedCapacity provisionedCapacity) { this.provisionedCapacity = provisionedCapacity; return this; - } public ConnectorCapacity build() { - return new ConnectorCapacity(autoscaling, provisionedCapacity); + } + public ConnectorCapacity build() { + final var o = new ConnectorCapacity(); + o.autoscaling = autoscaling; + o.provisionedCapacity = provisionedCapacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityAutoscaling.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityAutoscaling.java index d713d745c85..d021c6bf407 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityAutoscaling.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityAutoscaling.java @@ -17,42 +17,29 @@ public final class ConnectorCapacityAutoscaling { * @return The maximum number of workers allocated to the connector. * */ - private final Integer maxWorkerCount; + private Integer maxWorkerCount; /** * @return The number of microcontroller units (MCUs) allocated to each connector worker. Valid values: `1`, `2`, `4`, `8`. The default value is `1`. * */ - private final @Nullable Integer mcuCount; + private @Nullable Integer mcuCount; /** * @return The minimum number of workers allocated to the connector. * */ - private final Integer minWorkerCount; + private Integer minWorkerCount; /** * @return The scale-in policy for the connector. See below. * */ - private final @Nullable ConnectorCapacityAutoscalingScaleInPolicy scaleInPolicy; + private @Nullable ConnectorCapacityAutoscalingScaleInPolicy scaleInPolicy; /** * @return The scale-out policy for the connector. See below. * */ - private final @Nullable ConnectorCapacityAutoscalingScaleOutPolicy scaleOutPolicy; - - @CustomType.Constructor - private ConnectorCapacityAutoscaling( - @CustomType.Parameter("maxWorkerCount") Integer maxWorkerCount, - @CustomType.Parameter("mcuCount") @Nullable Integer mcuCount, - @CustomType.Parameter("minWorkerCount") Integer minWorkerCount, - @CustomType.Parameter("scaleInPolicy") @Nullable ConnectorCapacityAutoscalingScaleInPolicy scaleInPolicy, - @CustomType.Parameter("scaleOutPolicy") @Nullable ConnectorCapacityAutoscalingScaleOutPolicy scaleOutPolicy) { - this.maxWorkerCount = maxWorkerCount; - this.mcuCount = mcuCount; - this.minWorkerCount = minWorkerCount; - this.scaleInPolicy = scaleInPolicy; - this.scaleOutPolicy = scaleOutPolicy; - } + private @Nullable ConnectorCapacityAutoscalingScaleOutPolicy scaleOutPolicy; + private ConnectorCapacityAutoscaling() {} /** * @return The maximum number of workers allocated to the connector. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(ConnectorCapacityAutoscaling defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxWorkerCount; private @Nullable Integer mcuCount; private Integer minWorkerCount; private @Nullable ConnectorCapacityAutoscalingScaleInPolicy scaleInPolicy; private @Nullable ConnectorCapacityAutoscalingScaleOutPolicy scaleOutPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorCapacityAutoscaling defaults) { Objects.requireNonNull(defaults); this.maxWorkerCount = defaults.maxWorkerCount; @@ -117,27 +100,39 @@ public Builder(ConnectorCapacityAutoscaling defaults) { this.scaleOutPolicy = defaults.scaleOutPolicy; } + @CustomType.Setter public Builder maxWorkerCount(Integer maxWorkerCount) { this.maxWorkerCount = Objects.requireNonNull(maxWorkerCount); return this; } + @CustomType.Setter public Builder mcuCount(@Nullable Integer mcuCount) { this.mcuCount = mcuCount; return this; } + @CustomType.Setter public Builder minWorkerCount(Integer minWorkerCount) { this.minWorkerCount = Objects.requireNonNull(minWorkerCount); return this; } + @CustomType.Setter public Builder scaleInPolicy(@Nullable ConnectorCapacityAutoscalingScaleInPolicy scaleInPolicy) { this.scaleInPolicy = scaleInPolicy; return this; } + @CustomType.Setter public Builder scaleOutPolicy(@Nullable ConnectorCapacityAutoscalingScaleOutPolicy scaleOutPolicy) { this.scaleOutPolicy = scaleOutPolicy; return this; - } public ConnectorCapacityAutoscaling build() { - return new ConnectorCapacityAutoscaling(maxWorkerCount, mcuCount, minWorkerCount, scaleInPolicy, scaleOutPolicy); + } + public ConnectorCapacityAutoscaling build() { + final var o = new ConnectorCapacityAutoscaling(); + o.maxWorkerCount = maxWorkerCount; + o.mcuCount = mcuCount; + o.minWorkerCount = minWorkerCount; + o.scaleInPolicy = scaleInPolicy; + o.scaleOutPolicy = scaleOutPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityAutoscalingScaleInPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityAutoscalingScaleInPolicy.java index 2c0af4111ca..80ec24284c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityAutoscalingScaleInPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityAutoscalingScaleInPolicy.java @@ -15,13 +15,9 @@ public final class ConnectorCapacityAutoscalingScaleInPolicy { * @return The CPU utilization percentage threshold at which you want connector scale out to be triggered. * */ - private final @Nullable Integer cpuUtilizationPercentage; - - @CustomType.Constructor - private ConnectorCapacityAutoscalingScaleInPolicy(@CustomType.Parameter("cpuUtilizationPercentage") @Nullable Integer cpuUtilizationPercentage) { - this.cpuUtilizationPercentage = cpuUtilizationPercentage; - } + private @Nullable Integer cpuUtilizationPercentage; + private ConnectorCapacityAutoscalingScaleInPolicy() {} /** * @return The CPU utilization percentage threshold at which you want connector scale out to be triggered. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ConnectorCapacityAutoscalingScaleInPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer cpuUtilizationPercentage; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorCapacityAutoscalingScaleInPolicy defaults) { Objects.requireNonNull(defaults); this.cpuUtilizationPercentage = defaults.cpuUtilizationPercentage; } + @CustomType.Setter public Builder cpuUtilizationPercentage(@Nullable Integer cpuUtilizationPercentage) { this.cpuUtilizationPercentage = cpuUtilizationPercentage; return this; - } public ConnectorCapacityAutoscalingScaleInPolicy build() { - return new ConnectorCapacityAutoscalingScaleInPolicy(cpuUtilizationPercentage); + } + public ConnectorCapacityAutoscalingScaleInPolicy build() { + final var o = new ConnectorCapacityAutoscalingScaleInPolicy(); + o.cpuUtilizationPercentage = cpuUtilizationPercentage; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityAutoscalingScaleOutPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityAutoscalingScaleOutPolicy.java index c90a3a8d862..1ba00bebd2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityAutoscalingScaleOutPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityAutoscalingScaleOutPolicy.java @@ -15,13 +15,9 @@ public final class ConnectorCapacityAutoscalingScaleOutPolicy { * @return The CPU utilization percentage threshold at which you want connector scale out to be triggered. * */ - private final @Nullable Integer cpuUtilizationPercentage; - - @CustomType.Constructor - private ConnectorCapacityAutoscalingScaleOutPolicy(@CustomType.Parameter("cpuUtilizationPercentage") @Nullable Integer cpuUtilizationPercentage) { - this.cpuUtilizationPercentage = cpuUtilizationPercentage; - } + private @Nullable Integer cpuUtilizationPercentage; + private ConnectorCapacityAutoscalingScaleOutPolicy() {} /** * @return The CPU utilization percentage threshold at which you want connector scale out to be triggered. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ConnectorCapacityAutoscalingScaleOutPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer cpuUtilizationPercentage; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorCapacityAutoscalingScaleOutPolicy defaults) { Objects.requireNonNull(defaults); this.cpuUtilizationPercentage = defaults.cpuUtilizationPercentage; } + @CustomType.Setter public Builder cpuUtilizationPercentage(@Nullable Integer cpuUtilizationPercentage) { this.cpuUtilizationPercentage = cpuUtilizationPercentage; return this; - } public ConnectorCapacityAutoscalingScaleOutPolicy build() { - return new ConnectorCapacityAutoscalingScaleOutPolicy(cpuUtilizationPercentage); + } + public ConnectorCapacityAutoscalingScaleOutPolicy build() { + final var o = new ConnectorCapacityAutoscalingScaleOutPolicy(); + o.cpuUtilizationPercentage = cpuUtilizationPercentage; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityProvisionedCapacity.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityProvisionedCapacity.java index 046f80ce646..9fb55dccdc4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityProvisionedCapacity.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorCapacityProvisionedCapacity.java @@ -15,21 +15,14 @@ public final class ConnectorCapacityProvisionedCapacity { * @return The number of microcontroller units (MCUs) allocated to each connector worker. Valid values: `1`, `2`, `4`, `8`. The default value is `1`. * */ - private final @Nullable Integer mcuCount; + private @Nullable Integer mcuCount; /** * @return The number of workers that are allocated to the connector. * */ - private final Integer workerCount; - - @CustomType.Constructor - private ConnectorCapacityProvisionedCapacity( - @CustomType.Parameter("mcuCount") @Nullable Integer mcuCount, - @CustomType.Parameter("workerCount") Integer workerCount) { - this.mcuCount = mcuCount; - this.workerCount = workerCount; - } + private Integer workerCount; + private ConnectorCapacityProvisionedCapacity() {} /** * @return The number of microcontroller units (MCUs) allocated to each connector worker. Valid values: `1`, `2`, `4`, `8`. The default value is `1`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ConnectorCapacityProvisionedCapacity defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer mcuCount; private Integer workerCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorCapacityProvisionedCapacity defaults) { Objects.requireNonNull(defaults); this.mcuCount = defaults.mcuCount; this.workerCount = defaults.workerCount; } + @CustomType.Setter public Builder mcuCount(@Nullable Integer mcuCount) { this.mcuCount = mcuCount; return this; } + @CustomType.Setter public Builder workerCount(Integer workerCount) { this.workerCount = Objects.requireNonNull(workerCount); return this; - } public ConnectorCapacityProvisionedCapacity build() { - return new ConnectorCapacityProvisionedCapacity(mcuCount, workerCount); + } + public ConnectorCapacityProvisionedCapacity build() { + final var o = new ConnectorCapacityProvisionedCapacity(); + o.mcuCount = mcuCount; + o.workerCount = workerCount; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaCluster.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaCluster.java index f7e0219a30b..6cc2f01b602 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaCluster.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaCluster.java @@ -13,13 +13,9 @@ public final class ConnectorKafkaCluster { * @return The Apache Kafka cluster to which the connector is connected. * */ - private final ConnectorKafkaClusterApacheKafkaCluster apacheKafkaCluster; - - @CustomType.Constructor - private ConnectorKafkaCluster(@CustomType.Parameter("apacheKafkaCluster") ConnectorKafkaClusterApacheKafkaCluster apacheKafkaCluster) { - this.apacheKafkaCluster = apacheKafkaCluster; - } + private ConnectorKafkaClusterApacheKafkaCluster apacheKafkaCluster; + private ConnectorKafkaCluster() {} /** * @return The Apache Kafka cluster to which the connector is connected. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorKafkaCluster defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private ConnectorKafkaClusterApacheKafkaCluster apacheKafkaCluster; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorKafkaCluster defaults) { Objects.requireNonNull(defaults); this.apacheKafkaCluster = defaults.apacheKafkaCluster; } + @CustomType.Setter public Builder apacheKafkaCluster(ConnectorKafkaClusterApacheKafkaCluster apacheKafkaCluster) { this.apacheKafkaCluster = Objects.requireNonNull(apacheKafkaCluster); return this; - } public ConnectorKafkaCluster build() { - return new ConnectorKafkaCluster(apacheKafkaCluster); + } + public ConnectorKafkaCluster build() { + final var o = new ConnectorKafkaCluster(); + o.apacheKafkaCluster = apacheKafkaCluster; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterApacheKafkaCluster.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterApacheKafkaCluster.java index 8364eb0fc60..f7595524167 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterApacheKafkaCluster.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterApacheKafkaCluster.java @@ -14,21 +14,14 @@ public final class ConnectorKafkaClusterApacheKafkaCluster { * @return The bootstrap servers of the cluster. * */ - private final String bootstrapServers; + private String bootstrapServers; /** * @return Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster. * */ - private final ConnectorKafkaClusterApacheKafkaClusterVpc vpc; - - @CustomType.Constructor - private ConnectorKafkaClusterApacheKafkaCluster( - @CustomType.Parameter("bootstrapServers") String bootstrapServers, - @CustomType.Parameter("vpc") ConnectorKafkaClusterApacheKafkaClusterVpc vpc) { - this.bootstrapServers = bootstrapServers; - this.vpc = vpc; - } + private ConnectorKafkaClusterApacheKafkaClusterVpc vpc; + private ConnectorKafkaClusterApacheKafkaCluster() {} /** * @return The bootstrap servers of the cluster. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(ConnectorKafkaClusterApacheKafkaCluster defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bootstrapServers; private ConnectorKafkaClusterApacheKafkaClusterVpc vpc; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorKafkaClusterApacheKafkaCluster defaults) { Objects.requireNonNull(defaults); this.bootstrapServers = defaults.bootstrapServers; this.vpc = defaults.vpc; } + @CustomType.Setter public Builder bootstrapServers(String bootstrapServers) { this.bootstrapServers = Objects.requireNonNull(bootstrapServers); return this; } + @CustomType.Setter public Builder vpc(ConnectorKafkaClusterApacheKafkaClusterVpc vpc) { this.vpc = Objects.requireNonNull(vpc); return this; - } public ConnectorKafkaClusterApacheKafkaCluster build() { - return new ConnectorKafkaClusterApacheKafkaCluster(bootstrapServers, vpc); + } + public ConnectorKafkaClusterApacheKafkaCluster build() { + final var o = new ConnectorKafkaClusterApacheKafkaCluster(); + o.bootstrapServers = bootstrapServers; + o.vpc = vpc; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterApacheKafkaClusterVpc.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterApacheKafkaClusterVpc.java index 761f0f530bd..0c1c1c9d303 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterApacheKafkaClusterVpc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterApacheKafkaClusterVpc.java @@ -14,21 +14,14 @@ public final class ConnectorKafkaClusterApacheKafkaClusterVpc { * @return The security groups for the connector. * */ - private final List securityGroups; + private List securityGroups; /** * @return The subnets for the connector. * */ - private final List subnets; - - @CustomType.Constructor - private ConnectorKafkaClusterApacheKafkaClusterVpc( - @CustomType.Parameter("securityGroups") List securityGroups, - @CustomType.Parameter("subnets") List subnets) { - this.securityGroups = securityGroups; - this.subnets = subnets; - } + private List subnets; + private ConnectorKafkaClusterApacheKafkaClusterVpc() {} /** * @return The security groups for the connector. * @@ -51,21 +44,18 @@ public static Builder builder() { public static Builder builder(ConnectorKafkaClusterApacheKafkaClusterVpc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List securityGroups; private List subnets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorKafkaClusterApacheKafkaClusterVpc defaults) { Objects.requireNonNull(defaults); this.securityGroups = defaults.securityGroups; this.subnets = defaults.subnets; } + @CustomType.Setter public Builder securityGroups(List securityGroups) { this.securityGroups = Objects.requireNonNull(securityGroups); return this; @@ -73,14 +63,19 @@ public Builder securityGroups(List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; } public Builder subnets(String... subnets) { return subnets(List.of(subnets)); - } public ConnectorKafkaClusterApacheKafkaClusterVpc build() { - return new ConnectorKafkaClusterApacheKafkaClusterVpc(securityGroups, subnets); + } + public ConnectorKafkaClusterApacheKafkaClusterVpc build() { + final var o = new ConnectorKafkaClusterApacheKafkaClusterVpc(); + o.securityGroups = securityGroups; + o.subnets = subnets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterClientAuthentication.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterClientAuthentication.java index b565308a1a4..00e215b909b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterClientAuthentication.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterClientAuthentication.java @@ -15,13 +15,9 @@ public final class ConnectorKafkaClusterClientAuthentication { * @return The type of client authentication used to connect to the Apache Kafka cluster. Valid values: `IAM`, `NONE`. A value of `NONE` means that no client authentication is used. The default value is `NONE`. * */ - private final @Nullable String authenticationType; - - @CustomType.Constructor - private ConnectorKafkaClusterClientAuthentication(@CustomType.Parameter("authenticationType") @Nullable String authenticationType) { - this.authenticationType = authenticationType; - } + private @Nullable String authenticationType; + private ConnectorKafkaClusterClientAuthentication() {} /** * @return The type of client authentication used to connect to the Apache Kafka cluster. Valid values: `IAM`, `NONE`. A value of `NONE` means that no client authentication is used. The default value is `NONE`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ConnectorKafkaClusterClientAuthentication defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String authenticationType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorKafkaClusterClientAuthentication defaults) { Objects.requireNonNull(defaults); this.authenticationType = defaults.authenticationType; } + @CustomType.Setter public Builder authenticationType(@Nullable String authenticationType) { this.authenticationType = authenticationType; return this; - } public ConnectorKafkaClusterClientAuthentication build() { - return new ConnectorKafkaClusterClientAuthentication(authenticationType); + } + public ConnectorKafkaClusterClientAuthentication build() { + final var o = new ConnectorKafkaClusterClientAuthentication(); + o.authenticationType = authenticationType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterEncryptionInTransit.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterEncryptionInTransit.java index 3131ae7b7b1..61fe2038ca1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterEncryptionInTransit.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorKafkaClusterEncryptionInTransit.java @@ -15,13 +15,9 @@ public final class ConnectorKafkaClusterEncryptionInTransit { * @return The type of encryption in transit to the Apache Kafka cluster. Valid values: `PLAINTEXT`, `TLS`. The default values is `PLAINTEXT`. * */ - private final @Nullable String encryptionType; - - @CustomType.Constructor - private ConnectorKafkaClusterEncryptionInTransit(@CustomType.Parameter("encryptionType") @Nullable String encryptionType) { - this.encryptionType = encryptionType; - } + private @Nullable String encryptionType; + private ConnectorKafkaClusterEncryptionInTransit() {} /** * @return The type of encryption in transit to the Apache Kafka cluster. Valid values: `PLAINTEXT`, `TLS`. The default values is `PLAINTEXT`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ConnectorKafkaClusterEncryptionInTransit defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String encryptionType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorKafkaClusterEncryptionInTransit defaults) { Objects.requireNonNull(defaults); this.encryptionType = defaults.encryptionType; } + @CustomType.Setter public Builder encryptionType(@Nullable String encryptionType) { this.encryptionType = encryptionType; return this; - } public ConnectorKafkaClusterEncryptionInTransit build() { - return new ConnectorKafkaClusterEncryptionInTransit(encryptionType); + } + public ConnectorKafkaClusterEncryptionInTransit build() { + final var o = new ConnectorKafkaClusterEncryptionInTransit(); + o.encryptionType = encryptionType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDelivery.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDelivery.java index a8dcc4f2eb9..d048cb81f1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDelivery.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDelivery.java @@ -13,13 +13,9 @@ public final class ConnectorLogDelivery { * @return The workers can send worker logs to different destination types. This configuration specifies the details of these destinations. See below. * */ - private final ConnectorLogDeliveryWorkerLogDelivery workerLogDelivery; - - @CustomType.Constructor - private ConnectorLogDelivery(@CustomType.Parameter("workerLogDelivery") ConnectorLogDeliveryWorkerLogDelivery workerLogDelivery) { - this.workerLogDelivery = workerLogDelivery; - } + private ConnectorLogDeliveryWorkerLogDelivery workerLogDelivery; + private ConnectorLogDelivery() {} /** * @return The workers can send worker logs to different destination types. This configuration specifies the details of these destinations. See below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorLogDelivery defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private ConnectorLogDeliveryWorkerLogDelivery workerLogDelivery; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorLogDelivery defaults) { Objects.requireNonNull(defaults); this.workerLogDelivery = defaults.workerLogDelivery; } + @CustomType.Setter public Builder workerLogDelivery(ConnectorLogDeliveryWorkerLogDelivery workerLogDelivery) { this.workerLogDelivery = Objects.requireNonNull(workerLogDelivery); return this; - } public ConnectorLogDelivery build() { - return new ConnectorLogDelivery(workerLogDelivery); + } + public ConnectorLogDelivery build() { + final var o = new ConnectorLogDelivery(); + o.workerLogDelivery = workerLogDelivery; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDelivery.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDelivery.java index 8532c2d20a4..1fb8b1e44bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDelivery.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDelivery.java @@ -17,28 +17,19 @@ public final class ConnectorLogDeliveryWorkerLogDelivery { * @return Details about delivering logs to Amazon CloudWatch Logs. See below. * */ - private final @Nullable ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs cloudwatchLogs; + private @Nullable ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs cloudwatchLogs; /** * @return Details about delivering logs to Amazon Kinesis Data Firehose. See below. * */ - private final @Nullable ConnectorLogDeliveryWorkerLogDeliveryFirehose firehose; + private @Nullable ConnectorLogDeliveryWorkerLogDeliveryFirehose firehose; /** * @return Details about delivering logs to Amazon S3. See below. * */ - private final @Nullable ConnectorLogDeliveryWorkerLogDeliveryS3 s3; - - @CustomType.Constructor - private ConnectorLogDeliveryWorkerLogDelivery( - @CustomType.Parameter("cloudwatchLogs") @Nullable ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs cloudwatchLogs, - @CustomType.Parameter("firehose") @Nullable ConnectorLogDeliveryWorkerLogDeliveryFirehose firehose, - @CustomType.Parameter("s3") @Nullable ConnectorLogDeliveryWorkerLogDeliveryS3 s3) { - this.cloudwatchLogs = cloudwatchLogs; - this.firehose = firehose; - this.s3 = s3; - } + private @Nullable ConnectorLogDeliveryWorkerLogDeliveryS3 s3; + private ConnectorLogDeliveryWorkerLogDelivery() {} /** * @return Details about delivering logs to Amazon CloudWatch Logs. See below. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(ConnectorLogDeliveryWorkerLogDelivery defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs cloudwatchLogs; private @Nullable ConnectorLogDeliveryWorkerLogDeliveryFirehose firehose; private @Nullable ConnectorLogDeliveryWorkerLogDeliveryS3 s3; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorLogDeliveryWorkerLogDelivery defaults) { Objects.requireNonNull(defaults); this.cloudwatchLogs = defaults.cloudwatchLogs; @@ -85,19 +72,27 @@ public Builder(ConnectorLogDeliveryWorkerLogDelivery defaults) { this.s3 = defaults.s3; } + @CustomType.Setter public Builder cloudwatchLogs(@Nullable ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs cloudwatchLogs) { this.cloudwatchLogs = cloudwatchLogs; return this; } + @CustomType.Setter public Builder firehose(@Nullable ConnectorLogDeliveryWorkerLogDeliveryFirehose firehose) { this.firehose = firehose; return this; } + @CustomType.Setter public Builder s3(@Nullable ConnectorLogDeliveryWorkerLogDeliveryS3 s3) { this.s3 = s3; return this; - } public ConnectorLogDeliveryWorkerLogDelivery build() { - return new ConnectorLogDeliveryWorkerLogDelivery(cloudwatchLogs, firehose, s3); + } + public ConnectorLogDeliveryWorkerLogDelivery build() { + final var o = new ConnectorLogDeliveryWorkerLogDelivery(); + o.cloudwatchLogs = cloudwatchLogs; + o.firehose = firehose; + o.s3 = s3; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs.java index 6d758924919..ccff8c3d9ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs.java @@ -16,21 +16,14 @@ public final class ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs { * @return Specifies whether connector logs get sent to the specified Amazon S3 destination. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return The name of the CloudWatch log group that is the destination for log delivery. * */ - private final @Nullable String logGroup; - - @CustomType.Constructor - private ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("logGroup") @Nullable String logGroup) { - this.enabled = enabled; - this.logGroup = logGroup; - } + private @Nullable String logGroup; + private ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs() {} /** * @return Specifies whether connector logs get sent to the specified Amazon S3 destination. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private @Nullable String logGroup; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logGroup = defaults.logGroup; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder logGroup(@Nullable String logGroup) { this.logGroup = logGroup; return this; - } public ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs build() { - return new ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs(enabled, logGroup); + } + public ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs build() { + final var o = new ConnectorLogDeliveryWorkerLogDeliveryCloudwatchLogs(); + o.enabled = enabled; + o.logGroup = logGroup; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDeliveryFirehose.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDeliveryFirehose.java index 90554ebbd53..8c4cf7610ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDeliveryFirehose.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDeliveryFirehose.java @@ -16,21 +16,14 @@ public final class ConnectorLogDeliveryWorkerLogDeliveryFirehose { * @return The name of the Kinesis Data Firehose delivery stream that is the destination for log delivery. * */ - private final @Nullable String deliveryStream; + private @Nullable String deliveryStream; /** * @return Specifies whether connector logs get sent to the specified Amazon S3 destination. * */ - private final Boolean enabled; - - @CustomType.Constructor - private ConnectorLogDeliveryWorkerLogDeliveryFirehose( - @CustomType.Parameter("deliveryStream") @Nullable String deliveryStream, - @CustomType.Parameter("enabled") Boolean enabled) { - this.deliveryStream = deliveryStream; - this.enabled = enabled; - } + private Boolean enabled; + private ConnectorLogDeliveryWorkerLogDeliveryFirehose() {} /** * @return The name of the Kinesis Data Firehose delivery stream that is the destination for log delivery. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ConnectorLogDeliveryWorkerLogDeliveryFirehose defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deliveryStream; private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorLogDeliveryWorkerLogDeliveryFirehose defaults) { Objects.requireNonNull(defaults); this.deliveryStream = defaults.deliveryStream; this.enabled = defaults.enabled; } + @CustomType.Setter public Builder deliveryStream(@Nullable String deliveryStream) { this.deliveryStream = deliveryStream; return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public ConnectorLogDeliveryWorkerLogDeliveryFirehose build() { - return new ConnectorLogDeliveryWorkerLogDeliveryFirehose(deliveryStream, enabled); + } + public ConnectorLogDeliveryWorkerLogDeliveryFirehose build() { + final var o = new ConnectorLogDeliveryWorkerLogDeliveryFirehose(); + o.deliveryStream = deliveryStream; + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDeliveryS3.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDeliveryS3.java index 6dac950a71d..05892b8cd9b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDeliveryS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorLogDeliveryWorkerLogDeliveryS3.java @@ -16,28 +16,19 @@ public final class ConnectorLogDeliveryWorkerLogDeliveryS3 { * @return The name of the S3 bucket that is the destination for log delivery. * */ - private final @Nullable String bucket; + private @Nullable String bucket; /** * @return Specifies whether connector logs get sent to the specified Amazon S3 destination. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return The S3 prefix that is the destination for log delivery. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private ConnectorLogDeliveryWorkerLogDeliveryS3( - @CustomType.Parameter("bucket") @Nullable String bucket, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.bucket = bucket; - this.enabled = enabled; - this.prefix = prefix; - } + private @Nullable String prefix; + private ConnectorLogDeliveryWorkerLogDeliveryS3() {} /** * @return The name of the S3 bucket that is the destination for log delivery. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ConnectorLogDeliveryWorkerLogDeliveryS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucket; private Boolean enabled; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorLogDeliveryWorkerLogDeliveryS3 defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -84,19 +71,27 @@ public Builder(ConnectorLogDeliveryWorkerLogDeliveryS3 defaults) { this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucket(@Nullable String bucket) { this.bucket = bucket; return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public ConnectorLogDeliveryWorkerLogDeliveryS3 build() { - return new ConnectorLogDeliveryWorkerLogDeliveryS3(bucket, enabled, prefix); + } + public ConnectorLogDeliveryWorkerLogDeliveryS3 build() { + final var o = new ConnectorLogDeliveryWorkerLogDeliveryS3(); + o.bucket = bucket; + o.enabled = enabled; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorPlugin.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorPlugin.java index bc65a583024..cf73d43e12e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorPlugin.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorPlugin.java @@ -13,13 +13,9 @@ public final class ConnectorPlugin { * @return Details about a custom plugin. See below. * */ - private final ConnectorPluginCustomPlugin customPlugin; - - @CustomType.Constructor - private ConnectorPlugin(@CustomType.Parameter("customPlugin") ConnectorPluginCustomPlugin customPlugin) { - this.customPlugin = customPlugin; - } + private ConnectorPluginCustomPlugin customPlugin; + private ConnectorPlugin() {} /** * @return Details about a custom plugin. See below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ConnectorPlugin defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private ConnectorPluginCustomPlugin customPlugin; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorPlugin defaults) { Objects.requireNonNull(defaults); this.customPlugin = defaults.customPlugin; } + @CustomType.Setter public Builder customPlugin(ConnectorPluginCustomPlugin customPlugin) { this.customPlugin = Objects.requireNonNull(customPlugin); return this; - } public ConnectorPlugin build() { - return new ConnectorPlugin(customPlugin); + } + public ConnectorPlugin build() { + final var o = new ConnectorPlugin(); + o.customPlugin = customPlugin; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorPluginCustomPlugin.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorPluginCustomPlugin.java index 3595f77f82c..03696c22ddc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorPluginCustomPlugin.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorPluginCustomPlugin.java @@ -14,21 +14,14 @@ public final class ConnectorPluginCustomPlugin { * @return The Amazon Resource Name (ARN) of the worker configuration. * */ - private final String arn; + private String arn; /** * @return The revision of the worker configuration. * */ - private final Integer revision; - - @CustomType.Constructor - private ConnectorPluginCustomPlugin( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("revision") Integer revision) { - this.arn = arn; - this.revision = revision; - } + private Integer revision; + private ConnectorPluginCustomPlugin() {} /** * @return The Amazon Resource Name (ARN) of the worker configuration. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(ConnectorPluginCustomPlugin defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Integer revision; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorPluginCustomPlugin defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.revision = defaults.revision; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder revision(Integer revision) { this.revision = Objects.requireNonNull(revision); return this; - } public ConnectorPluginCustomPlugin build() { - return new ConnectorPluginCustomPlugin(arn, revision); + } + public ConnectorPluginCustomPlugin build() { + final var o = new ConnectorPluginCustomPlugin(); + o.arn = arn; + o.revision = revision; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorWorkerConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorWorkerConfiguration.java index 191bfc1347c..9db18a8e852 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorWorkerConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/ConnectorWorkerConfiguration.java @@ -14,21 +14,14 @@ public final class ConnectorWorkerConfiguration { * @return The Amazon Resource Name (ARN) of the worker configuration. * */ - private final String arn; + private String arn; /** * @return The revision of the worker configuration. * */ - private final Integer revision; - - @CustomType.Constructor - private ConnectorWorkerConfiguration( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("revision") Integer revision) { - this.arn = arn; - this.revision = revision; - } + private Integer revision; + private ConnectorWorkerConfiguration() {} /** * @return The Amazon Resource Name (ARN) of the worker configuration. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(ConnectorWorkerConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Integer revision; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConnectorWorkerConfiguration defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.revision = defaults.revision; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder revision(Integer revision) { this.revision = Objects.requireNonNull(revision); return this; - } public ConnectorWorkerConfiguration build() { - return new ConnectorWorkerConfiguration(arn, revision); + } + public ConnectorWorkerConfiguration build() { + final var o = new ConnectorWorkerConfiguration(); + o.arn = arn; + o.revision = revision; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/CustomPluginLocation.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/CustomPluginLocation.java index cb4be3cf0f1..7d8dda0adc9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/CustomPluginLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/CustomPluginLocation.java @@ -13,13 +13,9 @@ public final class CustomPluginLocation { * @return Information of the plugin file stored in Amazon S3. See below. * */ - private final CustomPluginLocationS3 s3; - - @CustomType.Constructor - private CustomPluginLocation(@CustomType.Parameter("s3") CustomPluginLocationS3 s3) { - this.s3 = s3; - } + private CustomPluginLocationS3 s3; + private CustomPluginLocation() {} /** * @return Information of the plugin file stored in Amazon S3. See below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(CustomPluginLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private CustomPluginLocationS3 s3; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CustomPluginLocation defaults) { Objects.requireNonNull(defaults); this.s3 = defaults.s3; } + @CustomType.Setter public Builder s3(CustomPluginLocationS3 s3) { this.s3 = Objects.requireNonNull(s3); return this; - } public CustomPluginLocation build() { - return new CustomPluginLocation(s3); + } + public CustomPluginLocation build() { + final var o = new CustomPluginLocation(); + o.s3 = s3; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/CustomPluginLocationS3.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/CustomPluginLocationS3.java index 9e7e8a56c74..5f6c1c9dc8b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/CustomPluginLocationS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/CustomPluginLocationS3.java @@ -15,28 +15,19 @@ public final class CustomPluginLocationS3 { * @return The Amazon Resource Name (ARN) of an S3 bucket. * */ - private final String bucketArn; + private String bucketArn; /** * @return The file key for an object in an S3 bucket. * */ - private final String fileKey; + private String fileKey; /** * @return The version of an object in an S3 bucket. * */ - private final @Nullable String objectVersion; - - @CustomType.Constructor - private CustomPluginLocationS3( - @CustomType.Parameter("bucketArn") String bucketArn, - @CustomType.Parameter("fileKey") String fileKey, - @CustomType.Parameter("objectVersion") @Nullable String objectVersion) { - this.bucketArn = bucketArn; - this.fileKey = fileKey; - this.objectVersion = objectVersion; - } + private @Nullable String objectVersion; + private CustomPluginLocationS3() {} /** * @return The Amazon Resource Name (ARN) of an S3 bucket. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(CustomPluginLocationS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketArn; private String fileKey; private @Nullable String objectVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CustomPluginLocationS3 defaults) { Objects.requireNonNull(defaults); this.bucketArn = defaults.bucketArn; @@ -83,19 +70,27 @@ public Builder(CustomPluginLocationS3 defaults) { this.objectVersion = defaults.objectVersion; } + @CustomType.Setter public Builder bucketArn(String bucketArn) { this.bucketArn = Objects.requireNonNull(bucketArn); return this; } + @CustomType.Setter public Builder fileKey(String fileKey) { this.fileKey = Objects.requireNonNull(fileKey); return this; } + @CustomType.Setter public Builder objectVersion(@Nullable String objectVersion) { this.objectVersion = objectVersion; return this; - } public CustomPluginLocationS3 build() { - return new CustomPluginLocationS3(bucketArn, fileKey, objectVersion); + } + public CustomPluginLocationS3 build() { + final var o = new CustomPluginLocationS3(); + o.bucketArn = bucketArn; + o.fileKey = fileKey; + o.objectVersion = objectVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/GetConnectorResult.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/GetConnectorResult.java index 5b275f43cbc..018c3184680 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/GetConnectorResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/GetConnectorResult.java @@ -13,38 +13,25 @@ public final class GetConnectorResult { * @return The Amazon Resource Name (ARN) of the connector. * */ - private final String arn; + private String arn; /** * @return A summary description of the connector. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return The current version of the connector. * */ - private final String version; - - @CustomType.Constructor - private GetConnectorResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("version") String version) { - this.arn = arn; - this.description = description; - this.id = id; - this.name = name; - this.version = version; - } + private String version; + private GetConnectorResult() {} /** * @return The Amazon Resource Name (ARN) of the connector. * @@ -84,18 +71,14 @@ public static Builder builder() { public static Builder builder(GetConnectorResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; private String id; private String name; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConnectorResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -105,27 +88,39 @@ public Builder(GetConnectorResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public GetConnectorResult build() { - return new GetConnectorResult(arn, description, id, name, version); + } + public GetConnectorResult build() { + final var o = new GetConnectorResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.name = name; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/GetCustomPluginResult.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/GetCustomPluginResult.java index 1695b8a2c7a..623afe6638d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/GetCustomPluginResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/GetCustomPluginResult.java @@ -14,45 +14,30 @@ public final class GetCustomPluginResult { * @return the Amazon Resource Name (ARN) of the custom plugin. * */ - private final String arn; + private String arn; /** * @return a summary description of the custom plugin. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return an ID of the latest successfully created revision of the custom plugin. * */ - private final Integer latestRevision; - private final String name; + private Integer latestRevision; + private String name; /** * @return the state of the custom plugin. * */ - private final String state; - - @CustomType.Constructor - private GetCustomPluginResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("latestRevision") Integer latestRevision, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("state") String state) { - this.arn = arn; - this.description = description; - this.id = id; - this.latestRevision = latestRevision; - this.name = name; - this.state = state; - } + private String state; + private GetCustomPluginResult() {} /** * @return the Amazon Resource Name (ARN) of the custom plugin. * @@ -99,7 +84,7 @@ public static Builder builder() { public static Builder builder(GetCustomPluginResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -107,11 +92,7 @@ public static final class Builder { private Integer latestRevision; private String name; private String state; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCustomPluginResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -122,31 +103,45 @@ public Builder(GetCustomPluginResult defaults) { this.state = defaults.state; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder latestRevision(Integer latestRevision) { this.latestRevision = Objects.requireNonNull(latestRevision); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; - } public GetCustomPluginResult build() { - return new GetCustomPluginResult(arn, description, id, latestRevision, name, state); + } + public GetCustomPluginResult build() { + final var o = new GetCustomPluginResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.latestRevision = latestRevision; + o.name = name; + o.state = state; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/GetWorkerConfigurationResult.java b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/GetWorkerConfigurationResult.java index 649dca5f307..23b261f7a8f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/GetWorkerConfigurationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mskconnect/outputs/GetWorkerConfigurationResult.java @@ -14,45 +14,30 @@ public final class GetWorkerConfigurationResult { * @return the Amazon Resource Name (ARN) of the worker configuration. * */ - private final String arn; + private String arn; /** * @return a summary description of the worker configuration. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return an ID of the latest successfully created revision of the worker configuration. * */ - private final Integer latestRevision; - private final String name; + private Integer latestRevision; + private String name; /** * @return contents of connect-distributed.properties file. * */ - private final String propertiesFileContent; - - @CustomType.Constructor - private GetWorkerConfigurationResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("latestRevision") Integer latestRevision, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("propertiesFileContent") String propertiesFileContent) { - this.arn = arn; - this.description = description; - this.id = id; - this.latestRevision = latestRevision; - this.name = name; - this.propertiesFileContent = propertiesFileContent; - } + private String propertiesFileContent; + private GetWorkerConfigurationResult() {} /** * @return the Amazon Resource Name (ARN) of the worker configuration. * @@ -99,7 +84,7 @@ public static Builder builder() { public static Builder builder(GetWorkerConfigurationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -107,11 +92,7 @@ public static final class Builder { private Integer latestRevision; private String name; private String propertiesFileContent; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetWorkerConfigurationResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -122,31 +103,45 @@ public Builder(GetWorkerConfigurationResult defaults) { this.propertiesFileContent = defaults.propertiesFileContent; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder latestRevision(Integer latestRevision) { this.latestRevision = Objects.requireNonNull(latestRevision); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder propertiesFileContent(String propertiesFileContent) { this.propertiesFileContent = Objects.requireNonNull(propertiesFileContent); return this; - } public GetWorkerConfigurationResult build() { - return new GetWorkerConfigurationResult(arn, description, id, latestRevision, name, propertiesFileContent); + } + public GetWorkerConfigurationResult build() { + final var o = new GetWorkerConfigurationResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.latestRevision = latestRevision; + o.name = name; + o.propertiesFileContent = propertiesFileContent; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLastUpdated.java b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLastUpdated.java index 308a93354d5..55a6cb36515 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLastUpdated.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLastUpdated.java @@ -18,24 +18,15 @@ public final class EnvironmentLastUpdated { * * `logging_configuration[0].<LOG_CONFIGURATION_TYPE>[0].cloud_watch_log_group_arn` - Provides the ARN for the CloudWatch group where the logs will be published * */ - private final @Nullable String createdAt; - private final @Nullable List errors; + private @Nullable String createdAt; + private @Nullable List errors; /** * @return The status of the Amazon MWAA Environment * */ - private final @Nullable String status; - - @CustomType.Constructor - private EnvironmentLastUpdated( - @CustomType.Parameter("createdAt") @Nullable String createdAt, - @CustomType.Parameter("errors") @Nullable List errors, - @CustomType.Parameter("status") @Nullable String status) { - this.createdAt = createdAt; - this.errors = errors; - this.status = status; - } + private @Nullable String status; + private EnvironmentLastUpdated() {} /** * @return The Created At date of the MWAA Environment * * `logging_configuration[0].<LOG_CONFIGURATION_TYPE>[0].cloud_watch_log_group_arn` - Provides the ARN for the CloudWatch group where the logs will be published @@ -62,16 +53,12 @@ public static Builder builder() { public static Builder builder(EnvironmentLastUpdated defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String createdAt; private @Nullable List errors; private @Nullable String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EnvironmentLastUpdated defaults) { Objects.requireNonNull(defaults); this.createdAt = defaults.createdAt; @@ -79,10 +66,12 @@ public Builder(EnvironmentLastUpdated defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder createdAt(@Nullable String createdAt) { this.createdAt = createdAt; return this; } + @CustomType.Setter public Builder errors(@Nullable List errors) { this.errors = errors; return this; @@ -90,11 +79,17 @@ public Builder errors(@Nullable List errors) { public Builder errors(EnvironmentLastUpdatedError... errors) { return errors(List.of(errors)); } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; - } public EnvironmentLastUpdated build() { - return new EnvironmentLastUpdated(createdAt, errors, status); + } + public EnvironmentLastUpdated build() { + final var o = new EnvironmentLastUpdated(); + o.createdAt = createdAt; + o.errors = errors; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLastUpdatedError.java b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLastUpdatedError.java index 70272a56593..5b09c9afc37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLastUpdatedError.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLastUpdatedError.java @@ -11,17 +11,10 @@ @CustomType public final class EnvironmentLastUpdatedError { - private final @Nullable String errorCode; - private final @Nullable String errorMessage; - - @CustomType.Constructor - private EnvironmentLastUpdatedError( - @CustomType.Parameter("errorCode") @Nullable String errorCode, - @CustomType.Parameter("errorMessage") @Nullable String errorMessage) { - this.errorCode = errorCode; - this.errorMessage = errorMessage; - } + private @Nullable String errorCode; + private @Nullable String errorMessage; + private EnvironmentLastUpdatedError() {} public Optional errorCode() { return Optional.ofNullable(this.errorCode); } @@ -36,30 +29,32 @@ public static Builder builder() { public static Builder builder(EnvironmentLastUpdatedError defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String errorCode; private @Nullable String errorMessage; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EnvironmentLastUpdatedError defaults) { Objects.requireNonNull(defaults); this.errorCode = defaults.errorCode; this.errorMessage = defaults.errorMessage; } + @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; - } public EnvironmentLastUpdatedError build() { - return new EnvironmentLastUpdatedError(errorCode, errorMessage); + } + public EnvironmentLastUpdatedError build() { + final var o = new EnvironmentLastUpdatedError(); + o.errorCode = errorCode; + o.errorMessage = errorMessage; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfiguration.java index d60d01d8818..4928e4f6604 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfiguration.java @@ -19,42 +19,29 @@ public final class EnvironmentLoggingConfiguration { * @return (Optional) Log configuration options for processing DAGs. See Module logging configuration for more information. Disabled by default. * */ - private final @Nullable EnvironmentLoggingConfigurationDagProcessingLogs dagProcessingLogs; + private @Nullable EnvironmentLoggingConfigurationDagProcessingLogs dagProcessingLogs; /** * @return Log configuration options for the schedulers. See Module logging configuration for more information. Disabled by default. * */ - private final @Nullable EnvironmentLoggingConfigurationSchedulerLogs schedulerLogs; + private @Nullable EnvironmentLoggingConfigurationSchedulerLogs schedulerLogs; /** * @return Log configuration options for DAG tasks. See Module logging configuration for more information. Enabled by default with `INFO` log level. * */ - private final @Nullable EnvironmentLoggingConfigurationTaskLogs taskLogs; + private @Nullable EnvironmentLoggingConfigurationTaskLogs taskLogs; /** * @return Log configuration options for the webservers. See Module logging configuration for more information. Disabled by default. * */ - private final @Nullable EnvironmentLoggingConfigurationWebserverLogs webserverLogs; + private @Nullable EnvironmentLoggingConfigurationWebserverLogs webserverLogs; /** * @return Log configuration options for the workers. See Module logging configuration for more information. Disabled by default. * */ - private final @Nullable EnvironmentLoggingConfigurationWorkerLogs workerLogs; - - @CustomType.Constructor - private EnvironmentLoggingConfiguration( - @CustomType.Parameter("dagProcessingLogs") @Nullable EnvironmentLoggingConfigurationDagProcessingLogs dagProcessingLogs, - @CustomType.Parameter("schedulerLogs") @Nullable EnvironmentLoggingConfigurationSchedulerLogs schedulerLogs, - @CustomType.Parameter("taskLogs") @Nullable EnvironmentLoggingConfigurationTaskLogs taskLogs, - @CustomType.Parameter("webserverLogs") @Nullable EnvironmentLoggingConfigurationWebserverLogs webserverLogs, - @CustomType.Parameter("workerLogs") @Nullable EnvironmentLoggingConfigurationWorkerLogs workerLogs) { - this.dagProcessingLogs = dagProcessingLogs; - this.schedulerLogs = schedulerLogs; - this.taskLogs = taskLogs; - this.webserverLogs = webserverLogs; - this.workerLogs = workerLogs; - } + private @Nullable EnvironmentLoggingConfigurationWorkerLogs workerLogs; + private EnvironmentLoggingConfiguration() {} /** * @return (Optional) Log configuration options for processing DAGs. See Module logging configuration for more information. Disabled by default. * @@ -98,18 +85,14 @@ public static Builder builder() { public static Builder builder(EnvironmentLoggingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable EnvironmentLoggingConfigurationDagProcessingLogs dagProcessingLogs; private @Nullable EnvironmentLoggingConfigurationSchedulerLogs schedulerLogs; private @Nullable EnvironmentLoggingConfigurationTaskLogs taskLogs; private @Nullable EnvironmentLoggingConfigurationWebserverLogs webserverLogs; private @Nullable EnvironmentLoggingConfigurationWorkerLogs workerLogs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EnvironmentLoggingConfiguration defaults) { Objects.requireNonNull(defaults); this.dagProcessingLogs = defaults.dagProcessingLogs; @@ -119,27 +102,39 @@ public Builder(EnvironmentLoggingConfiguration defaults) { this.workerLogs = defaults.workerLogs; } + @CustomType.Setter public Builder dagProcessingLogs(@Nullable EnvironmentLoggingConfigurationDagProcessingLogs dagProcessingLogs) { this.dagProcessingLogs = dagProcessingLogs; return this; } + @CustomType.Setter public Builder schedulerLogs(@Nullable EnvironmentLoggingConfigurationSchedulerLogs schedulerLogs) { this.schedulerLogs = schedulerLogs; return this; } + @CustomType.Setter public Builder taskLogs(@Nullable EnvironmentLoggingConfigurationTaskLogs taskLogs) { this.taskLogs = taskLogs; return this; } + @CustomType.Setter public Builder webserverLogs(@Nullable EnvironmentLoggingConfigurationWebserverLogs webserverLogs) { this.webserverLogs = webserverLogs; return this; } + @CustomType.Setter public Builder workerLogs(@Nullable EnvironmentLoggingConfigurationWorkerLogs workerLogs) { this.workerLogs = workerLogs; return this; - } public EnvironmentLoggingConfiguration build() { - return new EnvironmentLoggingConfiguration(dagProcessingLogs, schedulerLogs, taskLogs, webserverLogs, workerLogs); + } + public EnvironmentLoggingConfiguration build() { + final var o = new EnvironmentLoggingConfiguration(); + o.dagProcessingLogs = dagProcessingLogs; + o.schedulerLogs = schedulerLogs; + o.taskLogs = taskLogs; + o.webserverLogs = webserverLogs; + o.workerLogs = workerLogs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationDagProcessingLogs.java b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationDagProcessingLogs.java index 15ee3ad4592..c69a70fa9dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationDagProcessingLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationDagProcessingLogs.java @@ -12,28 +12,19 @@ @CustomType public final class EnvironmentLoggingConfigurationDagProcessingLogs { - private final @Nullable String cloudWatchLogGroupArn; + private @Nullable String cloudWatchLogGroupArn; /** * @return Enabling or disabling the collection of logs * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Logging level. Valid values: `CRITICAL`, `ERROR`, `WARNING`, `INFO`, `DEBUG`. Will be `INFO` by default. * */ - private final @Nullable String logLevel; - - @CustomType.Constructor - private EnvironmentLoggingConfigurationDagProcessingLogs( - @CustomType.Parameter("cloudWatchLogGroupArn") @Nullable String cloudWatchLogGroupArn, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logLevel") @Nullable String logLevel) { - this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; - this.enabled = enabled; - this.logLevel = logLevel; - } + private @Nullable String logLevel; + private EnvironmentLoggingConfigurationDagProcessingLogs() {} public Optional cloudWatchLogGroupArn() { return Optional.ofNullable(this.cloudWatchLogGroupArn); } @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(EnvironmentLoggingConfigurationDagProcessingLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cloudWatchLogGroupArn; private @Nullable Boolean enabled; private @Nullable String logLevel; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EnvironmentLoggingConfigurationDagProcessingLogs defaults) { Objects.requireNonNull(defaults); this.cloudWatchLogGroupArn = defaults.cloudWatchLogGroupArn; @@ -76,19 +63,27 @@ public Builder(EnvironmentLoggingConfigurationDagProcessingLogs defaults) { this.logLevel = defaults.logLevel; } + @CustomType.Setter public Builder cloudWatchLogGroupArn(@Nullable String cloudWatchLogGroupArn) { this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logLevel(@Nullable String logLevel) { this.logLevel = logLevel; return this; - } public EnvironmentLoggingConfigurationDagProcessingLogs build() { - return new EnvironmentLoggingConfigurationDagProcessingLogs(cloudWatchLogGroupArn, enabled, logLevel); + } + public EnvironmentLoggingConfigurationDagProcessingLogs build() { + final var o = new EnvironmentLoggingConfigurationDagProcessingLogs(); + o.cloudWatchLogGroupArn = cloudWatchLogGroupArn; + o.enabled = enabled; + o.logLevel = logLevel; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationSchedulerLogs.java b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationSchedulerLogs.java index 8ec38a51cf8..f8a44e5187a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationSchedulerLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationSchedulerLogs.java @@ -12,28 +12,19 @@ @CustomType public final class EnvironmentLoggingConfigurationSchedulerLogs { - private final @Nullable String cloudWatchLogGroupArn; + private @Nullable String cloudWatchLogGroupArn; /** * @return Enabling or disabling the collection of logs * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Logging level. Valid values: `CRITICAL`, `ERROR`, `WARNING`, `INFO`, `DEBUG`. Will be `INFO` by default. * */ - private final @Nullable String logLevel; - - @CustomType.Constructor - private EnvironmentLoggingConfigurationSchedulerLogs( - @CustomType.Parameter("cloudWatchLogGroupArn") @Nullable String cloudWatchLogGroupArn, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logLevel") @Nullable String logLevel) { - this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; - this.enabled = enabled; - this.logLevel = logLevel; - } + private @Nullable String logLevel; + private EnvironmentLoggingConfigurationSchedulerLogs() {} public Optional cloudWatchLogGroupArn() { return Optional.ofNullable(this.cloudWatchLogGroupArn); } @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(EnvironmentLoggingConfigurationSchedulerLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cloudWatchLogGroupArn; private @Nullable Boolean enabled; private @Nullable String logLevel; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EnvironmentLoggingConfigurationSchedulerLogs defaults) { Objects.requireNonNull(defaults); this.cloudWatchLogGroupArn = defaults.cloudWatchLogGroupArn; @@ -76,19 +63,27 @@ public Builder(EnvironmentLoggingConfigurationSchedulerLogs defaults) { this.logLevel = defaults.logLevel; } + @CustomType.Setter public Builder cloudWatchLogGroupArn(@Nullable String cloudWatchLogGroupArn) { this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logLevel(@Nullable String logLevel) { this.logLevel = logLevel; return this; - } public EnvironmentLoggingConfigurationSchedulerLogs build() { - return new EnvironmentLoggingConfigurationSchedulerLogs(cloudWatchLogGroupArn, enabled, logLevel); + } + public EnvironmentLoggingConfigurationSchedulerLogs build() { + final var o = new EnvironmentLoggingConfigurationSchedulerLogs(); + o.cloudWatchLogGroupArn = cloudWatchLogGroupArn; + o.enabled = enabled; + o.logLevel = logLevel; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationTaskLogs.java b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationTaskLogs.java index 68684a72453..8d4705def2f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationTaskLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationTaskLogs.java @@ -12,28 +12,19 @@ @CustomType public final class EnvironmentLoggingConfigurationTaskLogs { - private final @Nullable String cloudWatchLogGroupArn; + private @Nullable String cloudWatchLogGroupArn; /** * @return Enabling or disabling the collection of logs * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Logging level. Valid values: `CRITICAL`, `ERROR`, `WARNING`, `INFO`, `DEBUG`. Will be `INFO` by default. * */ - private final @Nullable String logLevel; - - @CustomType.Constructor - private EnvironmentLoggingConfigurationTaskLogs( - @CustomType.Parameter("cloudWatchLogGroupArn") @Nullable String cloudWatchLogGroupArn, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logLevel") @Nullable String logLevel) { - this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; - this.enabled = enabled; - this.logLevel = logLevel; - } + private @Nullable String logLevel; + private EnvironmentLoggingConfigurationTaskLogs() {} public Optional cloudWatchLogGroupArn() { return Optional.ofNullable(this.cloudWatchLogGroupArn); } @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(EnvironmentLoggingConfigurationTaskLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cloudWatchLogGroupArn; private @Nullable Boolean enabled; private @Nullable String logLevel; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EnvironmentLoggingConfigurationTaskLogs defaults) { Objects.requireNonNull(defaults); this.cloudWatchLogGroupArn = defaults.cloudWatchLogGroupArn; @@ -76,19 +63,27 @@ public Builder(EnvironmentLoggingConfigurationTaskLogs defaults) { this.logLevel = defaults.logLevel; } + @CustomType.Setter public Builder cloudWatchLogGroupArn(@Nullable String cloudWatchLogGroupArn) { this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logLevel(@Nullable String logLevel) { this.logLevel = logLevel; return this; - } public EnvironmentLoggingConfigurationTaskLogs build() { - return new EnvironmentLoggingConfigurationTaskLogs(cloudWatchLogGroupArn, enabled, logLevel); + } + public EnvironmentLoggingConfigurationTaskLogs build() { + final var o = new EnvironmentLoggingConfigurationTaskLogs(); + o.cloudWatchLogGroupArn = cloudWatchLogGroupArn; + o.enabled = enabled; + o.logLevel = logLevel; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationWebserverLogs.java b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationWebserverLogs.java index 8fc2a15a2dc..0368ef51c32 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationWebserverLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationWebserverLogs.java @@ -12,28 +12,19 @@ @CustomType public final class EnvironmentLoggingConfigurationWebserverLogs { - private final @Nullable String cloudWatchLogGroupArn; + private @Nullable String cloudWatchLogGroupArn; /** * @return Enabling or disabling the collection of logs * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Logging level. Valid values: `CRITICAL`, `ERROR`, `WARNING`, `INFO`, `DEBUG`. Will be `INFO` by default. * */ - private final @Nullable String logLevel; - - @CustomType.Constructor - private EnvironmentLoggingConfigurationWebserverLogs( - @CustomType.Parameter("cloudWatchLogGroupArn") @Nullable String cloudWatchLogGroupArn, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logLevel") @Nullable String logLevel) { - this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; - this.enabled = enabled; - this.logLevel = logLevel; - } + private @Nullable String logLevel; + private EnvironmentLoggingConfigurationWebserverLogs() {} public Optional cloudWatchLogGroupArn() { return Optional.ofNullable(this.cloudWatchLogGroupArn); } @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(EnvironmentLoggingConfigurationWebserverLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cloudWatchLogGroupArn; private @Nullable Boolean enabled; private @Nullable String logLevel; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EnvironmentLoggingConfigurationWebserverLogs defaults) { Objects.requireNonNull(defaults); this.cloudWatchLogGroupArn = defaults.cloudWatchLogGroupArn; @@ -76,19 +63,27 @@ public Builder(EnvironmentLoggingConfigurationWebserverLogs defaults) { this.logLevel = defaults.logLevel; } + @CustomType.Setter public Builder cloudWatchLogGroupArn(@Nullable String cloudWatchLogGroupArn) { this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logLevel(@Nullable String logLevel) { this.logLevel = logLevel; return this; - } public EnvironmentLoggingConfigurationWebserverLogs build() { - return new EnvironmentLoggingConfigurationWebserverLogs(cloudWatchLogGroupArn, enabled, logLevel); + } + public EnvironmentLoggingConfigurationWebserverLogs build() { + final var o = new EnvironmentLoggingConfigurationWebserverLogs(); + o.cloudWatchLogGroupArn = cloudWatchLogGroupArn; + o.enabled = enabled; + o.logLevel = logLevel; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationWorkerLogs.java b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationWorkerLogs.java index dcdbf501bc5..c064056f90a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationWorkerLogs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentLoggingConfigurationWorkerLogs.java @@ -12,28 +12,19 @@ @CustomType public final class EnvironmentLoggingConfigurationWorkerLogs { - private final @Nullable String cloudWatchLogGroupArn; + private @Nullable String cloudWatchLogGroupArn; /** * @return Enabling or disabling the collection of logs * */ - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return Logging level. Valid values: `CRITICAL`, `ERROR`, `WARNING`, `INFO`, `DEBUG`. Will be `INFO` by default. * */ - private final @Nullable String logLevel; - - @CustomType.Constructor - private EnvironmentLoggingConfigurationWorkerLogs( - @CustomType.Parameter("cloudWatchLogGroupArn") @Nullable String cloudWatchLogGroupArn, - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logLevel") @Nullable String logLevel) { - this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; - this.enabled = enabled; - this.logLevel = logLevel; - } + private @Nullable String logLevel; + private EnvironmentLoggingConfigurationWorkerLogs() {} public Optional cloudWatchLogGroupArn() { return Optional.ofNullable(this.cloudWatchLogGroupArn); } @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(EnvironmentLoggingConfigurationWorkerLogs defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cloudWatchLogGroupArn; private @Nullable Boolean enabled; private @Nullable String logLevel; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EnvironmentLoggingConfigurationWorkerLogs defaults) { Objects.requireNonNull(defaults); this.cloudWatchLogGroupArn = defaults.cloudWatchLogGroupArn; @@ -76,19 +63,27 @@ public Builder(EnvironmentLoggingConfigurationWorkerLogs defaults) { this.logLevel = defaults.logLevel; } + @CustomType.Setter public Builder cloudWatchLogGroupArn(@Nullable String cloudWatchLogGroupArn) { this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; return this; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logLevel(@Nullable String logLevel) { this.logLevel = logLevel; return this; - } public EnvironmentLoggingConfigurationWorkerLogs build() { - return new EnvironmentLoggingConfigurationWorkerLogs(cloudWatchLogGroupArn, enabled, logLevel); + } + public EnvironmentLoggingConfigurationWorkerLogs build() { + final var o = new EnvironmentLoggingConfigurationWorkerLogs(); + o.cloudWatchLogGroupArn = cloudWatchLogGroupArn; + o.enabled = enabled; + o.logLevel = logLevel; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentNetworkConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentNetworkConfiguration.java index 89cd5a79e5b..aab5378a975 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentNetworkConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/mwaa/outputs/EnvironmentNetworkConfiguration.java @@ -14,21 +14,14 @@ public final class EnvironmentNetworkConfiguration { * @return Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return The private subnet IDs in which the environment should be created. MWAA requires two subnets. * */ - private final List subnetIds; - - @CustomType.Constructor - private EnvironmentNetworkConfiguration( - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds) { - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - } + private List subnetIds; + private EnvironmentNetworkConfiguration() {} /** * @return Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned. * @@ -51,21 +44,18 @@ public static Builder builder() { public static Builder builder(EnvironmentNetworkConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List securityGroupIds; private List subnetIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EnvironmentNetworkConfiguration defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; this.subnetIds = defaults.subnetIds; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -73,14 +63,19 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; } public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); - } public EnvironmentNetworkConfiguration build() { - return new EnvironmentNetworkConfiguration(securityGroupIds, subnetIds); + } + public EnvironmentNetworkConfiguration build() { + final var o = new EnvironmentNetworkConfiguration(); + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/ClusterParameterGroupParameter.java b/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/ClusterParameterGroupParameter.java index 29dad93a2d7..2257ff08304 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/ClusterParameterGroupParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/ClusterParameterGroupParameter.java @@ -15,28 +15,19 @@ public final class ClusterParameterGroupParameter { * @return Valid values are `immediate` and `pending-reboot`. Defaults to `pending-reboot`. * */ - private final @Nullable String applyMethod; + private @Nullable String applyMethod; /** * @return The name of the neptune parameter. * */ - private final String name; + private String name; /** * @return The value of the neptune parameter. * */ - private final String value; - - @CustomType.Constructor - private ClusterParameterGroupParameter( - @CustomType.Parameter("applyMethod") @Nullable String applyMethod, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.applyMethod = applyMethod; - this.name = name; - this.value = value; - } + private String value; + private ClusterParameterGroupParameter() {} /** * @return Valid values are `immediate` and `pending-reboot`. Defaults to `pending-reboot`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ClusterParameterGroupParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String applyMethod; private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterParameterGroupParameter defaults) { Objects.requireNonNull(defaults); this.applyMethod = defaults.applyMethod; @@ -83,19 +70,27 @@ public Builder(ClusterParameterGroupParameter defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder applyMethod(@Nullable String applyMethod) { this.applyMethod = applyMethod; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ClusterParameterGroupParameter build() { - return new ClusterParameterGroupParameter(applyMethod, name, value); + } + public ClusterParameterGroupParameter build() { + final var o = new ClusterParameterGroupParameter(); + o.applyMethod = applyMethod; + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/GetEngineVersionResult.java b/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/GetEngineVersionResult.java index 079aebcb814..bdd73bf2520 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/GetEngineVersionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/GetEngineVersionResult.java @@ -13,79 +13,52 @@ @CustomType public final class GetEngineVersionResult { - private final @Nullable String engine; + private @Nullable String engine; /** * @return The description of the database engine. * */ - private final String engineDescription; + private String engineDescription; /** * @return Set of log types that the database engine has available for export to CloudWatch Logs. * */ - private final List exportableLogTypes; + private List exportableLogTypes; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String parameterGroupFamily; - private final @Nullable List preferredVersions; + private String id; + private String parameterGroupFamily; + private @Nullable List preferredVersions; /** * @return Set of the time zones supported by this engine. * */ - private final List supportedTimezones; + private List supportedTimezones; /** * @return Indicates whether the engine version supports exporting the log types specified by `exportable_log_types` to CloudWatch Logs. * */ - private final Boolean supportsLogExportsToCloudwatch; + private Boolean supportsLogExportsToCloudwatch; /** * @return Indicates whether the database engine version supports read replicas. * */ - private final Boolean supportsReadReplica; + private Boolean supportsReadReplica; /** * @return Set of engine versions that this database engine version can be upgraded to. * */ - private final List validUpgradeTargets; - private final String version; + private List validUpgradeTargets; + private String version; /** * @return The description of the database engine version. * */ - private final String versionDescription; - - @CustomType.Constructor - private GetEngineVersionResult( - @CustomType.Parameter("engine") @Nullable String engine, - @CustomType.Parameter("engineDescription") String engineDescription, - @CustomType.Parameter("exportableLogTypes") List exportableLogTypes, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("parameterGroupFamily") String parameterGroupFamily, - @CustomType.Parameter("preferredVersions") @Nullable List preferredVersions, - @CustomType.Parameter("supportedTimezones") List supportedTimezones, - @CustomType.Parameter("supportsLogExportsToCloudwatch") Boolean supportsLogExportsToCloudwatch, - @CustomType.Parameter("supportsReadReplica") Boolean supportsReadReplica, - @CustomType.Parameter("validUpgradeTargets") List validUpgradeTargets, - @CustomType.Parameter("version") String version, - @CustomType.Parameter("versionDescription") String versionDescription) { - this.engine = engine; - this.engineDescription = engineDescription; - this.exportableLogTypes = exportableLogTypes; - this.id = id; - this.parameterGroupFamily = parameterGroupFamily; - this.preferredVersions = preferredVersions; - this.supportedTimezones = supportedTimezones; - this.supportsLogExportsToCloudwatch = supportsLogExportsToCloudwatch; - this.supportsReadReplica = supportsReadReplica; - this.validUpgradeTargets = validUpgradeTargets; - this.version = version; - this.versionDescription = versionDescription; - } + private String versionDescription; + private GetEngineVersionResult() {} public Optional engine() { return Optional.ofNullable(this.engine); } @@ -162,7 +135,7 @@ public static Builder builder() { public static Builder builder(GetEngineVersionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String engine; private String engineDescription; @@ -176,11 +149,7 @@ public static final class Builder { private List validUpgradeTargets; private String version; private String versionDescription; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEngineVersionResult defaults) { Objects.requireNonNull(defaults); this.engine = defaults.engine; @@ -197,14 +166,17 @@ public Builder(GetEngineVersionResult defaults) { this.versionDescription = defaults.versionDescription; } + @CustomType.Setter public Builder engine(@Nullable String engine) { this.engine = engine; return this; } + @CustomType.Setter public Builder engineDescription(String engineDescription) { this.engineDescription = Objects.requireNonNull(engineDescription); return this; } + @CustomType.Setter public Builder exportableLogTypes(List exportableLogTypes) { this.exportableLogTypes = Objects.requireNonNull(exportableLogTypes); return this; @@ -212,14 +184,17 @@ public Builder exportableLogTypes(List exportableLogTypes) { public Builder exportableLogTypes(String... exportableLogTypes) { return exportableLogTypes(List.of(exportableLogTypes)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder parameterGroupFamily(String parameterGroupFamily) { this.parameterGroupFamily = Objects.requireNonNull(parameterGroupFamily); return this; } + @CustomType.Setter public Builder preferredVersions(@Nullable List preferredVersions) { this.preferredVersions = preferredVersions; return this; @@ -227,6 +202,7 @@ public Builder preferredVersions(@Nullable List preferredVersions) { public Builder preferredVersions(String... preferredVersions) { return preferredVersions(List.of(preferredVersions)); } + @CustomType.Setter public Builder supportedTimezones(List supportedTimezones) { this.supportedTimezones = Objects.requireNonNull(supportedTimezones); return this; @@ -234,14 +210,17 @@ public Builder supportedTimezones(List supportedTimezones) { public Builder supportedTimezones(String... supportedTimezones) { return supportedTimezones(List.of(supportedTimezones)); } + @CustomType.Setter public Builder supportsLogExportsToCloudwatch(Boolean supportsLogExportsToCloudwatch) { this.supportsLogExportsToCloudwatch = Objects.requireNonNull(supportsLogExportsToCloudwatch); return this; } + @CustomType.Setter public Builder supportsReadReplica(Boolean supportsReadReplica) { this.supportsReadReplica = Objects.requireNonNull(supportsReadReplica); return this; } + @CustomType.Setter public Builder validUpgradeTargets(List validUpgradeTargets) { this.validUpgradeTargets = Objects.requireNonNull(validUpgradeTargets); return this; @@ -249,15 +228,31 @@ public Builder validUpgradeTargets(List validUpgradeTargets) { public Builder validUpgradeTargets(String... validUpgradeTargets) { return validUpgradeTargets(List.of(validUpgradeTargets)); } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; } + @CustomType.Setter public Builder versionDescription(String versionDescription) { this.versionDescription = Objects.requireNonNull(versionDescription); return this; - } public GetEngineVersionResult build() { - return new GetEngineVersionResult(engine, engineDescription, exportableLogTypes, id, parameterGroupFamily, preferredVersions, supportedTimezones, supportsLogExportsToCloudwatch, supportsReadReplica, validUpgradeTargets, version, versionDescription); + } + public GetEngineVersionResult build() { + final var o = new GetEngineVersionResult(); + o.engine = engine; + o.engineDescription = engineDescription; + o.exportableLogTypes = exportableLogTypes; + o.id = id; + o.parameterGroupFamily = parameterGroupFamily; + o.preferredVersions = preferredVersions; + o.supportedTimezones = supportedTimezones; + o.supportsLogExportsToCloudwatch = supportsLogExportsToCloudwatch; + o.supportsReadReplica = supportsReadReplica; + o.validUpgradeTargets = validUpgradeTargets; + o.version = version; + o.versionDescription = versionDescription; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/GetOrderableDbInstanceResult.java b/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/GetOrderableDbInstanceResult.java index 38dc0f5bd64..dc6e83150bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/GetOrderableDbInstanceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/GetOrderableDbInstanceResult.java @@ -19,137 +19,90 @@ public final class GetOrderableDbInstanceResult { * @return Availability zones where the instance is available. * */ - private final List availabilityZones; - private final @Nullable String engine; - private final String engineVersion; + private List availabilityZones; + private @Nullable String engine; + private String engineVersion; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceClass; - private final @Nullable String licenseModel; + private String id; + private String instanceClass; + private @Nullable String licenseModel; /** * @return Maximum total provisioned IOPS for a DB instance. * */ - private final Integer maxIopsPerDbInstance; + private Integer maxIopsPerDbInstance; /** * @return Maximum provisioned IOPS per GiB for a DB instance. * */ - private final Double maxIopsPerGib; + private Double maxIopsPerGib; /** * @return Maximum storage size for a DB instance. * */ - private final Integer maxStorageSize; + private Integer maxStorageSize; /** * @return Minimum total provisioned IOPS for a DB instance. * */ - private final Integer minIopsPerDbInstance; + private Integer minIopsPerDbInstance; /** * @return Minimum provisioned IOPS per GiB for a DB instance. * */ - private final Double minIopsPerGib; + private Double minIopsPerGib; /** * @return Minimum storage size for a DB instance. * */ - private final Integer minStorageSize; + private Integer minStorageSize; /** * @return Whether a DB instance is Multi-AZ capable. * */ - private final Boolean multiAzCapable; - private final @Nullable List preferredInstanceClasses; + private Boolean multiAzCapable; + private @Nullable List preferredInstanceClasses; /** * @return Whether a DB instance can have a read replica. * */ - private final Boolean readReplicaCapable; + private Boolean readReplicaCapable; /** * @return The storage type for a DB instance. * */ - private final String storageType; + private String storageType; /** * @return Whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds. * */ - private final Boolean supportsEnhancedMonitoring; + private Boolean supportsEnhancedMonitoring; /** * @return Whether a DB instance supports IAM database authentication. * */ - private final Boolean supportsIamDatabaseAuthentication; + private Boolean supportsIamDatabaseAuthentication; /** * @return Whether a DB instance supports provisioned IOPS. * */ - private final Boolean supportsIops; + private Boolean supportsIops; /** * @return Whether a DB instance supports Performance Insights. * */ - private final Boolean supportsPerformanceInsights; + private Boolean supportsPerformanceInsights; /** * @return Whether a DB instance supports encrypted storage. * */ - private final Boolean supportsStorageEncryption; - private final Boolean vpc; - - @CustomType.Constructor - private GetOrderableDbInstanceResult( - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("engine") @Nullable String engine, - @CustomType.Parameter("engineVersion") String engineVersion, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceClass") String instanceClass, - @CustomType.Parameter("licenseModel") @Nullable String licenseModel, - @CustomType.Parameter("maxIopsPerDbInstance") Integer maxIopsPerDbInstance, - @CustomType.Parameter("maxIopsPerGib") Double maxIopsPerGib, - @CustomType.Parameter("maxStorageSize") Integer maxStorageSize, - @CustomType.Parameter("minIopsPerDbInstance") Integer minIopsPerDbInstance, - @CustomType.Parameter("minIopsPerGib") Double minIopsPerGib, - @CustomType.Parameter("minStorageSize") Integer minStorageSize, - @CustomType.Parameter("multiAzCapable") Boolean multiAzCapable, - @CustomType.Parameter("preferredInstanceClasses") @Nullable List preferredInstanceClasses, - @CustomType.Parameter("readReplicaCapable") Boolean readReplicaCapable, - @CustomType.Parameter("storageType") String storageType, - @CustomType.Parameter("supportsEnhancedMonitoring") Boolean supportsEnhancedMonitoring, - @CustomType.Parameter("supportsIamDatabaseAuthentication") Boolean supportsIamDatabaseAuthentication, - @CustomType.Parameter("supportsIops") Boolean supportsIops, - @CustomType.Parameter("supportsPerformanceInsights") Boolean supportsPerformanceInsights, - @CustomType.Parameter("supportsStorageEncryption") Boolean supportsStorageEncryption, - @CustomType.Parameter("vpc") Boolean vpc) { - this.availabilityZones = availabilityZones; - this.engine = engine; - this.engineVersion = engineVersion; - this.id = id; - this.instanceClass = instanceClass; - this.licenseModel = licenseModel; - this.maxIopsPerDbInstance = maxIopsPerDbInstance; - this.maxIopsPerGib = maxIopsPerGib; - this.maxStorageSize = maxStorageSize; - this.minIopsPerDbInstance = minIopsPerDbInstance; - this.minIopsPerGib = minIopsPerGib; - this.minStorageSize = minStorageSize; - this.multiAzCapable = multiAzCapable; - this.preferredInstanceClasses = preferredInstanceClasses; - this.readReplicaCapable = readReplicaCapable; - this.storageType = storageType; - this.supportsEnhancedMonitoring = supportsEnhancedMonitoring; - this.supportsIamDatabaseAuthentication = supportsIamDatabaseAuthentication; - this.supportsIops = supportsIops; - this.supportsPerformanceInsights = supportsPerformanceInsights; - this.supportsStorageEncryption = supportsStorageEncryption; - this.vpc = vpc; - } + private Boolean supportsStorageEncryption; + private Boolean vpc; + private GetOrderableDbInstanceResult() {} /** * @return Availability zones where the instance is available. * @@ -288,7 +241,7 @@ public static Builder builder() { public static Builder builder(GetOrderableDbInstanceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List availabilityZones; private @Nullable String engine; @@ -312,11 +265,7 @@ public static final class Builder { private Boolean supportsPerformanceInsights; private Boolean supportsStorageEncryption; private Boolean vpc; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOrderableDbInstanceResult defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -343,6 +292,7 @@ public Builder(GetOrderableDbInstanceResult defaults) { this.vpc = defaults.vpc; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -350,54 +300,67 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder engine(@Nullable String engine) { this.engine = engine; return this; } + @CustomType.Setter public Builder engineVersion(String engineVersion) { this.engineVersion = Objects.requireNonNull(engineVersion); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceClass(String instanceClass) { this.instanceClass = Objects.requireNonNull(instanceClass); return this; } + @CustomType.Setter public Builder licenseModel(@Nullable String licenseModel) { this.licenseModel = licenseModel; return this; } + @CustomType.Setter public Builder maxIopsPerDbInstance(Integer maxIopsPerDbInstance) { this.maxIopsPerDbInstance = Objects.requireNonNull(maxIopsPerDbInstance); return this; } + @CustomType.Setter public Builder maxIopsPerGib(Double maxIopsPerGib) { this.maxIopsPerGib = Objects.requireNonNull(maxIopsPerGib); return this; } + @CustomType.Setter public Builder maxStorageSize(Integer maxStorageSize) { this.maxStorageSize = Objects.requireNonNull(maxStorageSize); return this; } + @CustomType.Setter public Builder minIopsPerDbInstance(Integer minIopsPerDbInstance) { this.minIopsPerDbInstance = Objects.requireNonNull(minIopsPerDbInstance); return this; } + @CustomType.Setter public Builder minIopsPerGib(Double minIopsPerGib) { this.minIopsPerGib = Objects.requireNonNull(minIopsPerGib); return this; } + @CustomType.Setter public Builder minStorageSize(Integer minStorageSize) { this.minStorageSize = Objects.requireNonNull(minStorageSize); return this; } + @CustomType.Setter public Builder multiAzCapable(Boolean multiAzCapable) { this.multiAzCapable = Objects.requireNonNull(multiAzCapable); return this; } + @CustomType.Setter public Builder preferredInstanceClasses(@Nullable List preferredInstanceClasses) { this.preferredInstanceClasses = preferredInstanceClasses; return this; @@ -405,39 +368,71 @@ public Builder preferredInstanceClasses(@Nullable List preferredInstance public Builder preferredInstanceClasses(String... preferredInstanceClasses) { return preferredInstanceClasses(List.of(preferredInstanceClasses)); } + @CustomType.Setter public Builder readReplicaCapable(Boolean readReplicaCapable) { this.readReplicaCapable = Objects.requireNonNull(readReplicaCapable); return this; } + @CustomType.Setter public Builder storageType(String storageType) { this.storageType = Objects.requireNonNull(storageType); return this; } + @CustomType.Setter public Builder supportsEnhancedMonitoring(Boolean supportsEnhancedMonitoring) { this.supportsEnhancedMonitoring = Objects.requireNonNull(supportsEnhancedMonitoring); return this; } + @CustomType.Setter public Builder supportsIamDatabaseAuthentication(Boolean supportsIamDatabaseAuthentication) { this.supportsIamDatabaseAuthentication = Objects.requireNonNull(supportsIamDatabaseAuthentication); return this; } + @CustomType.Setter public Builder supportsIops(Boolean supportsIops) { this.supportsIops = Objects.requireNonNull(supportsIops); return this; } + @CustomType.Setter public Builder supportsPerformanceInsights(Boolean supportsPerformanceInsights) { this.supportsPerformanceInsights = Objects.requireNonNull(supportsPerformanceInsights); return this; } + @CustomType.Setter public Builder supportsStorageEncryption(Boolean supportsStorageEncryption) { this.supportsStorageEncryption = Objects.requireNonNull(supportsStorageEncryption); return this; } + @CustomType.Setter public Builder vpc(Boolean vpc) { this.vpc = Objects.requireNonNull(vpc); return this; - } public GetOrderableDbInstanceResult build() { - return new GetOrderableDbInstanceResult(availabilityZones, engine, engineVersion, id, instanceClass, licenseModel, maxIopsPerDbInstance, maxIopsPerGib, maxStorageSize, minIopsPerDbInstance, minIopsPerGib, minStorageSize, multiAzCapable, preferredInstanceClasses, readReplicaCapable, storageType, supportsEnhancedMonitoring, supportsIamDatabaseAuthentication, supportsIops, supportsPerformanceInsights, supportsStorageEncryption, vpc); + } + public GetOrderableDbInstanceResult build() { + final var o = new GetOrderableDbInstanceResult(); + o.availabilityZones = availabilityZones; + o.engine = engine; + o.engineVersion = engineVersion; + o.id = id; + o.instanceClass = instanceClass; + o.licenseModel = licenseModel; + o.maxIopsPerDbInstance = maxIopsPerDbInstance; + o.maxIopsPerGib = maxIopsPerGib; + o.maxStorageSize = maxStorageSize; + o.minIopsPerDbInstance = minIopsPerDbInstance; + o.minIopsPerGib = minIopsPerGib; + o.minStorageSize = minStorageSize; + o.multiAzCapable = multiAzCapable; + o.preferredInstanceClasses = preferredInstanceClasses; + o.readReplicaCapable = readReplicaCapable; + o.storageType = storageType; + o.supportsEnhancedMonitoring = supportsEnhancedMonitoring; + o.supportsIamDatabaseAuthentication = supportsIamDatabaseAuthentication; + o.supportsIops = supportsIops; + o.supportsPerformanceInsights = supportsPerformanceInsights; + o.supportsStorageEncryption = supportsStorageEncryption; + o.vpc = vpc; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/ParameterGroupParameter.java b/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/ParameterGroupParameter.java index 4db037d8c49..c0e7855ae49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/ParameterGroupParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/neptune/outputs/ParameterGroupParameter.java @@ -15,28 +15,19 @@ public final class ParameterGroupParameter { * @return The apply method of the Neptune parameter. Valid values are `immediate` and `pending-reboot`. Defaults to `pending-reboot`. * */ - private final @Nullable String applyMethod; + private @Nullable String applyMethod; /** * @return The name of the Neptune parameter. * */ - private final String name; + private String name; /** * @return The value of the Neptune parameter. * */ - private final String value; - - @CustomType.Constructor - private ParameterGroupParameter( - @CustomType.Parameter("applyMethod") @Nullable String applyMethod, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.applyMethod = applyMethod; - this.name = name; - this.value = value; - } + private String value; + private ParameterGroupParameter() {} /** * @return The apply method of the Neptune parameter. Valid values are `immediate` and `pending-reboot`. Defaults to `pending-reboot`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ParameterGroupParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String applyMethod; private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ParameterGroupParameter defaults) { Objects.requireNonNull(defaults); this.applyMethod = defaults.applyMethod; @@ -83,19 +70,27 @@ public Builder(ParameterGroupParameter defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder applyMethod(@Nullable String applyMethod) { this.applyMethod = applyMethod; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ParameterGroupParameter build() { - return new ParameterGroupParameter(applyMethod, name, value); + } + public ParameterGroupParameter build() { + final var o = new ParameterGroupParameter(); + o.applyMethod = applyMethod; + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallFirewallStatus.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallFirewallStatus.java index 8a3ac30ce88..3fb680691f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallFirewallStatus.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallFirewallStatus.java @@ -15,13 +15,9 @@ public final class FirewallFirewallStatus { * @return Set of subnets configured for use by the firewall. * */ - private final @Nullable List syncStates; - - @CustomType.Constructor - private FirewallFirewallStatus(@CustomType.Parameter("syncStates") @Nullable List syncStates) { - this.syncStates = syncStates; - } + private @Nullable List syncStates; + private FirewallFirewallStatus() {} /** * @return Set of subnets configured for use by the firewall. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(FirewallFirewallStatus defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List syncStates; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirewallFirewallStatus defaults) { Objects.requireNonNull(defaults); this.syncStates = defaults.syncStates; } + @CustomType.Setter public Builder syncStates(@Nullable List syncStates) { this.syncStates = syncStates; return this; } public Builder syncStates(FirewallFirewallStatusSyncState... syncStates) { return syncStates(List.of(syncStates)); - } public FirewallFirewallStatus build() { - return new FirewallFirewallStatus(syncStates); + } + public FirewallFirewallStatus build() { + final var o = new FirewallFirewallStatus(); + o.syncStates = syncStates; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallFirewallStatusSyncState.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallFirewallStatusSyncState.java index b2c2f6e4306..9262295f5cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallFirewallStatusSyncState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallFirewallStatusSyncState.java @@ -17,21 +17,14 @@ public final class FirewallFirewallStatusSyncState { * @return Nested list describing the attachment status of the firewall's association with a single VPC subnet. * */ - private final @Nullable List attachments; + private @Nullable List attachments; /** * @return The Availability Zone where the subnet is configured. * */ - private final @Nullable String availabilityZone; - - @CustomType.Constructor - private FirewallFirewallStatusSyncState( - @CustomType.Parameter("attachments") @Nullable List attachments, - @CustomType.Parameter("availabilityZone") @Nullable String availabilityZone) { - this.attachments = attachments; - this.availabilityZone = availabilityZone; - } + private @Nullable String availabilityZone; + private FirewallFirewallStatusSyncState() {} /** * @return Nested list describing the attachment status of the firewall's association with a single VPC subnet. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(FirewallFirewallStatusSyncState defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List attachments; private @Nullable String availabilityZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirewallFirewallStatusSyncState defaults) { Objects.requireNonNull(defaults); this.attachments = defaults.attachments; this.availabilityZone = defaults.availabilityZone; } + @CustomType.Setter public Builder attachments(@Nullable List attachments) { this.attachments = attachments; return this; @@ -76,11 +66,16 @@ public Builder attachments(@Nullable List statefulDefaultActions; + private @Nullable List statefulDefaultActions; /** * @return A configuration block that defines options on how the policy handles stateful rules. See Stateful Engine Options below for details. * */ - private final @Nullable FirewallPolicyFirewallPolicyStatefulEngineOptions statefulEngineOptions; + private @Nullable FirewallPolicyFirewallPolicyStatefulEngineOptions statefulEngineOptions; /** * @return Set of configuration blocks containing references to the stateful rule groups that are used in the policy. See Stateful Rule Group Reference below for details. * */ - private final @Nullable List statefulRuleGroupReferences; + private @Nullable List statefulRuleGroupReferences; /** * @return Set of configuration blocks describing the custom action definitions that are available for use in the firewall policy's `stateless_default_actions`. See Stateless Custom Action below for details. * */ - private final @Nullable List statelessCustomActions; + private @Nullable List statelessCustomActions; /** * @return Set of actions to take on a packet if it does not match any of the stateless rules in the policy. You must specify one of the standard actions including: `aws:drop`, `aws:pass`, or `aws:forward_to_sfe`. * In addition, you can specify custom actions that are compatible with your standard action choice. If you want non-matching packets to be forwarded for stateful inspection, specify `aws:forward_to_sfe`. * */ - private final List statelessDefaultActions; + private List statelessDefaultActions; /** * @return Set of actions to take on a fragmented packet if it does not match any of the stateless rules in the policy. You must specify one of the standard actions including: `aws:drop`, `aws:pass`, or `aws:forward_to_sfe`. * In addition, you can specify custom actions that are compatible with your standard action choice. If you want non-matching packets to be forwarded for stateful inspection, specify `aws:forward_to_sfe`. * */ - private final List statelessFragmentDefaultActions; + private List statelessFragmentDefaultActions; /** * @return Set of configuration blocks containing references to the stateless rule groups that are used in the policy. See Stateless Rule Group Reference below for details. * */ - private final @Nullable List statelessRuleGroupReferences; - - @CustomType.Constructor - private FirewallPolicyFirewallPolicy( - @CustomType.Parameter("statefulDefaultActions") @Nullable List statefulDefaultActions, - @CustomType.Parameter("statefulEngineOptions") @Nullable FirewallPolicyFirewallPolicyStatefulEngineOptions statefulEngineOptions, - @CustomType.Parameter("statefulRuleGroupReferences") @Nullable List statefulRuleGroupReferences, - @CustomType.Parameter("statelessCustomActions") @Nullable List statelessCustomActions, - @CustomType.Parameter("statelessDefaultActions") List statelessDefaultActions, - @CustomType.Parameter("statelessFragmentDefaultActions") List statelessFragmentDefaultActions, - @CustomType.Parameter("statelessRuleGroupReferences") @Nullable List statelessRuleGroupReferences) { - this.statefulDefaultActions = statefulDefaultActions; - this.statefulEngineOptions = statefulEngineOptions; - this.statefulRuleGroupReferences = statefulRuleGroupReferences; - this.statelessCustomActions = statelessCustomActions; - this.statelessDefaultActions = statelessDefaultActions; - this.statelessFragmentDefaultActions = statelessFragmentDefaultActions; - this.statelessRuleGroupReferences = statelessRuleGroupReferences; - } + private @Nullable List statelessRuleGroupReferences; + private FirewallPolicyFirewallPolicy() {} /** * @return Set of actions to take on a packet if it does not match any stateful rules in the policy. This can only be specified if the policy has a `stateful_engine_options` block with a `rule_order` value of `STRICT_ORDER`. You can specify one of either or neither values of `aws:drop_strict` or `aws:drop_established`, as well as any combination of `aws:alert_strict` and `aws:alert_established`. * @@ -131,7 +114,7 @@ public static Builder builder() { public static Builder builder(FirewallPolicyFirewallPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List statefulDefaultActions; private @Nullable FirewallPolicyFirewallPolicyStatefulEngineOptions statefulEngineOptions; @@ -140,11 +123,7 @@ public static final class Builder { private List statelessDefaultActions; private List statelessFragmentDefaultActions; private @Nullable List statelessRuleGroupReferences; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirewallPolicyFirewallPolicy defaults) { Objects.requireNonNull(defaults); this.statefulDefaultActions = defaults.statefulDefaultActions; @@ -156,6 +135,7 @@ public Builder(FirewallPolicyFirewallPolicy defaults) { this.statelessRuleGroupReferences = defaults.statelessRuleGroupReferences; } + @CustomType.Setter public Builder statefulDefaultActions(@Nullable List statefulDefaultActions) { this.statefulDefaultActions = statefulDefaultActions; return this; @@ -163,10 +143,12 @@ public Builder statefulDefaultActions(@Nullable List statefulDefaultActi public Builder statefulDefaultActions(String... statefulDefaultActions) { return statefulDefaultActions(List.of(statefulDefaultActions)); } + @CustomType.Setter public Builder statefulEngineOptions(@Nullable FirewallPolicyFirewallPolicyStatefulEngineOptions statefulEngineOptions) { this.statefulEngineOptions = statefulEngineOptions; return this; } + @CustomType.Setter public Builder statefulRuleGroupReferences(@Nullable List statefulRuleGroupReferences) { this.statefulRuleGroupReferences = statefulRuleGroupReferences; return this; @@ -174,6 +156,7 @@ public Builder statefulRuleGroupReferences(@Nullable List statelessCustomActions) { this.statelessCustomActions = statelessCustomActions; return this; @@ -181,6 +164,7 @@ public Builder statelessCustomActions(@Nullable List statelessDefaultActions) { this.statelessDefaultActions = Objects.requireNonNull(statelessDefaultActions); return this; @@ -188,6 +172,7 @@ public Builder statelessDefaultActions(List statelessDefaultActions) { public Builder statelessDefaultActions(String... statelessDefaultActions) { return statelessDefaultActions(List.of(statelessDefaultActions)); } + @CustomType.Setter public Builder statelessFragmentDefaultActions(List statelessFragmentDefaultActions) { this.statelessFragmentDefaultActions = Objects.requireNonNull(statelessFragmentDefaultActions); return this; @@ -195,14 +180,24 @@ public Builder statelessFragmentDefaultActions(List statelessFragmentDef public Builder statelessFragmentDefaultActions(String... statelessFragmentDefaultActions) { return statelessFragmentDefaultActions(List.of(statelessFragmentDefaultActions)); } + @CustomType.Setter public Builder statelessRuleGroupReferences(@Nullable List statelessRuleGroupReferences) { this.statelessRuleGroupReferences = statelessRuleGroupReferences; return this; } public Builder statelessRuleGroupReferences(FirewallPolicyFirewallPolicyStatelessRuleGroupReference... statelessRuleGroupReferences) { return statelessRuleGroupReferences(List.of(statelessRuleGroupReferences)); - } public FirewallPolicyFirewallPolicy build() { - return new FirewallPolicyFirewallPolicy(statefulDefaultActions, statefulEngineOptions, statefulRuleGroupReferences, statelessCustomActions, statelessDefaultActions, statelessFragmentDefaultActions, statelessRuleGroupReferences); + } + public FirewallPolicyFirewallPolicy build() { + final var o = new FirewallPolicyFirewallPolicy(); + o.statefulDefaultActions = statefulDefaultActions; + o.statefulEngineOptions = statefulEngineOptions; + o.statefulRuleGroupReferences = statefulRuleGroupReferences; + o.statelessCustomActions = statelessCustomActions; + o.statelessDefaultActions = statelessDefaultActions; + o.statelessFragmentDefaultActions = statelessFragmentDefaultActions; + o.statelessRuleGroupReferences = statelessRuleGroupReferences; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatefulEngineOptions.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatefulEngineOptions.java index 1880fb6230d..fdef9a68e42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatefulEngineOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatefulEngineOptions.java @@ -13,13 +13,9 @@ public final class FirewallPolicyFirewallPolicyStatefulEngineOptions { * @return Indicates how to manage the order of stateful rule evaluation for the policy. Default value: `DEFAULT_ACTION_ORDER`. Valid values: `DEFAULT_ACTION_ORDER`, `STRICT_ORDER`. * */ - private final String ruleOrder; - - @CustomType.Constructor - private FirewallPolicyFirewallPolicyStatefulEngineOptions(@CustomType.Parameter("ruleOrder") String ruleOrder) { - this.ruleOrder = ruleOrder; - } + private String ruleOrder; + private FirewallPolicyFirewallPolicyStatefulEngineOptions() {} /** * @return Indicates how to manage the order of stateful rule evaluation for the policy. Default value: `DEFAULT_ACTION_ORDER`. Valid values: `DEFAULT_ACTION_ORDER`, `STRICT_ORDER`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FirewallPolicyFirewallPolicyStatefulEngineOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String ruleOrder; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirewallPolicyFirewallPolicyStatefulEngineOptions defaults) { Objects.requireNonNull(defaults); this.ruleOrder = defaults.ruleOrder; } + @CustomType.Setter public Builder ruleOrder(String ruleOrder) { this.ruleOrder = Objects.requireNonNull(ruleOrder); return this; - } public FirewallPolicyFirewallPolicyStatefulEngineOptions build() { - return new FirewallPolicyFirewallPolicyStatefulEngineOptions(ruleOrder); + } + public FirewallPolicyFirewallPolicyStatefulEngineOptions build() { + final var o = new FirewallPolicyFirewallPolicyStatefulEngineOptions(); + o.ruleOrder = ruleOrder; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatefulRuleGroupReference.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatefulRuleGroupReference.java index aea7b827fa0..c9c29208c0d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatefulRuleGroupReference.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatefulRuleGroupReference.java @@ -16,21 +16,14 @@ public final class FirewallPolicyFirewallPolicyStatefulRuleGroupReference { * @return An integer setting that indicates the order in which to apply the stateful rule groups in a single policy. This argument must be specified if the policy has a `stateful_engine_options` block with a `rule_order` value of `STRICT_ORDER`. AWS Network Firewall applies each stateful rule group to a packet starting with the group that has the lowest priority setting. * */ - private final @Nullable Integer priority; + private @Nullable Integer priority; /** * @return The Amazon Resource Name (ARN) of the stateful rule group. * */ - private final String resourceArn; - - @CustomType.Constructor - private FirewallPolicyFirewallPolicyStatefulRuleGroupReference( - @CustomType.Parameter("priority") @Nullable Integer priority, - @CustomType.Parameter("resourceArn") String resourceArn) { - this.priority = priority; - this.resourceArn = resourceArn; - } + private String resourceArn; + private FirewallPolicyFirewallPolicyStatefulRuleGroupReference() {} /** * @return An integer setting that indicates the order in which to apply the stateful rule groups in a single policy. This argument must be specified if the policy has a `stateful_engine_options` block with a `rule_order` value of `STRICT_ORDER`. AWS Network Firewall applies each stateful rule group to a packet starting with the group that has the lowest priority setting. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(FirewallPolicyFirewallPolicyStatefulRuleGroupReference defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer priority; private String resourceArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirewallPolicyFirewallPolicyStatefulRuleGroupReference defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.resourceArn = defaults.resourceArn; } + @CustomType.Setter public Builder priority(@Nullable Integer priority) { this.priority = priority; return this; } + @CustomType.Setter public Builder resourceArn(String resourceArn) { this.resourceArn = Objects.requireNonNull(resourceArn); return this; - } public FirewallPolicyFirewallPolicyStatefulRuleGroupReference build() { - return new FirewallPolicyFirewallPolicyStatefulRuleGroupReference(priority, resourceArn); + } + public FirewallPolicyFirewallPolicyStatefulRuleGroupReference build() { + final var o = new FirewallPolicyFirewallPolicyStatefulRuleGroupReference(); + o.priority = priority; + o.resourceArn = resourceArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomAction.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomAction.java index adc6f60abc2..e6f119aecd1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomAction.java @@ -14,21 +14,14 @@ public final class FirewallPolicyFirewallPolicyStatelessCustomAction { * @return A configuration block describing the custom action associated with the `action_name`. See Action Definition below for details. * */ - private final FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition actionDefinition; + private FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition actionDefinition; /** * @return A friendly name of the custom action. * */ - private final String actionName; - - @CustomType.Constructor - private FirewallPolicyFirewallPolicyStatelessCustomAction( - @CustomType.Parameter("actionDefinition") FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition actionDefinition, - @CustomType.Parameter("actionName") String actionName) { - this.actionDefinition = actionDefinition; - this.actionName = actionName; - } + private String actionName; + private FirewallPolicyFirewallPolicyStatelessCustomAction() {} /** * @return A configuration block describing the custom action associated with the `action_name`. See Action Definition below for details. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(FirewallPolicyFirewallPolicyStatelessCustomAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition actionDefinition; private String actionName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirewallPolicyFirewallPolicyStatelessCustomAction defaults) { Objects.requireNonNull(defaults); this.actionDefinition = defaults.actionDefinition; this.actionName = defaults.actionName; } + @CustomType.Setter public Builder actionDefinition(FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition actionDefinition) { this.actionDefinition = Objects.requireNonNull(actionDefinition); return this; } + @CustomType.Setter public Builder actionName(String actionName) { this.actionName = Objects.requireNonNull(actionName); return this; - } public FirewallPolicyFirewallPolicyStatelessCustomAction build() { - return new FirewallPolicyFirewallPolicyStatelessCustomAction(actionDefinition, actionName); + } + public FirewallPolicyFirewallPolicyStatelessCustomAction build() { + final var o = new FirewallPolicyFirewallPolicyStatelessCustomAction(); + o.actionDefinition = actionDefinition; + o.actionName = actionName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition.java index 0bd1376d8a7..93370b7d540 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition.java @@ -13,13 +13,9 @@ public final class FirewallPolicyFirewallPolicyStatelessCustomActionActionDefini * @return A configuration block describing the stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. You can pair this custom action with any of the standard stateless rule actions. See Publish Metric Action below for details. * */ - private final FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction publishMetricAction; - - @CustomType.Constructor - private FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition(@CustomType.Parameter("publishMetricAction") FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction publishMetricAction) { - this.publishMetricAction = publishMetricAction; - } + private FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction publishMetricAction; + private FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition() {} /** * @return A configuration block describing the stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. You can pair this custom action with any of the standard stateless rule actions. See Publish Metric Action below for details. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction publishMetricAction; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition defaults) { Objects.requireNonNull(defaults); this.publishMetricAction = defaults.publishMetricAction; } + @CustomType.Setter public Builder publishMetricAction(FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction publishMetricAction) { this.publishMetricAction = Objects.requireNonNull(publishMetricAction); return this; - } public FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition build() { - return new FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition(publishMetricAction); + } + public FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition build() { + final var o = new FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition(); + o.publishMetricAction = publishMetricAction; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction.java index f628d5d28ab..ae3287db208 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction.java @@ -14,13 +14,9 @@ public final class FirewallPolicyFirewallPolicyStatelessCustomActionActionDefini * @return Set of configuration blocks describing dimension settings to use for Amazon CloudWatch custom metrics. See Dimension below for more details. * */ - private final List dimensions; - - @CustomType.Constructor - private FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction(@CustomType.Parameter("dimensions") List dimensions) { - this.dimensions = dimensions; - } + private List dimensions; + private FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction() {} /** * @return Set of configuration blocks describing dimension settings to use for Amazon CloudWatch custom metrics. See Dimension below for more details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List dimensions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction defaults) { Objects.requireNonNull(defaults); this.dimensions = defaults.dimensions; } + @CustomType.Setter public Builder dimensions(List dimensions) { this.dimensions = Objects.requireNonNull(dimensions); return this; } public Builder dimensions(FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension... dimensions) { return dimensions(List.of(dimensions)); - } public FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction build() { - return new FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction(dimensions); + } + public FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction build() { + final var o = new FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction(); + o.dimensions = dimensions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension.java index 8a08ec45ac8..48e558970b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension.java @@ -13,13 +13,9 @@ public final class FirewallPolicyFirewallPolicyStatelessCustomActionActionDefini * @return The string value to use in the custom metric dimension. * */ - private final String value; - - @CustomType.Constructor - private FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension(@CustomType.Parameter("value") String value) { - this.value = value; - } + private String value; + private FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension() {} /** * @return The string value to use in the custom metric dimension. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension defaults) { Objects.requireNonNull(defaults); this.value = defaults.value; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension build() { - return new FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension(value); + } + public FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension build() { + final var o = new FirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension(); + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessRuleGroupReference.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessRuleGroupReference.java index c9d3ff66c54..3947769adfa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessRuleGroupReference.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallPolicyFirewallPolicyStatelessRuleGroupReference.java @@ -14,21 +14,14 @@ public final class FirewallPolicyFirewallPolicyStatelessRuleGroupReference { * @return An integer setting that indicates the order in which to run the stateless rule groups in a single policy. AWS Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting. * */ - private final Integer priority; + private Integer priority; /** * @return The Amazon Resource Name (ARN) of the stateless rule group. * */ - private final String resourceArn; - - @CustomType.Constructor - private FirewallPolicyFirewallPolicyStatelessRuleGroupReference( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("resourceArn") String resourceArn) { - this.priority = priority; - this.resourceArn = resourceArn; - } + private String resourceArn; + private FirewallPolicyFirewallPolicyStatelessRuleGroupReference() {} /** * @return An integer setting that indicates the order in which to run the stateless rule groups in a single policy. AWS Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(FirewallPolicyFirewallPolicyStatelessRuleGroupReference defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String resourceArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirewallPolicyFirewallPolicyStatelessRuleGroupReference defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.resourceArn = defaults.resourceArn; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder resourceArn(String resourceArn) { this.resourceArn = Objects.requireNonNull(resourceArn); return this; - } public FirewallPolicyFirewallPolicyStatelessRuleGroupReference build() { - return new FirewallPolicyFirewallPolicyStatelessRuleGroupReference(priority, resourceArn); + } + public FirewallPolicyFirewallPolicyStatelessRuleGroupReference build() { + final var o = new FirewallPolicyFirewallPolicyStatelessRuleGroupReference(); + o.priority = priority; + o.resourceArn = resourceArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallSubnetMapping.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallSubnetMapping.java index cbb03357c6b..7d71f441ec5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallSubnetMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/FirewallSubnetMapping.java @@ -13,13 +13,9 @@ public final class FirewallSubnetMapping { * @return The unique identifier for the subnet. * */ - private final String subnetId; - - @CustomType.Constructor - private FirewallSubnetMapping(@CustomType.Parameter("subnetId") String subnetId) { - this.subnetId = subnetId; - } + private String subnetId; + private FirewallSubnetMapping() {} /** * @return The unique identifier for the subnet. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FirewallSubnetMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FirewallSubnetMapping defaults) { Objects.requireNonNull(defaults); this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public FirewallSubnetMapping build() { - return new FirewallSubnetMapping(subnetId); + } + public FirewallSubnetMapping build() { + final var o = new FirewallSubnetMapping(); + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallEncryptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallEncryptionConfiguration.java index cc731401d25..41850de6f54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallEncryptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallEncryptionConfiguration.java @@ -13,21 +13,14 @@ public final class GetFirewallEncryptionConfiguration { * @return The ID of the AWS Key Management Service (AWS KMS) customer managed key. * */ - private final String keyId; + private String keyId; /** * @return The type of the AWS Key Management Service (AWS KMS) key use by the firewall. * */ - private final String type; - - @CustomType.Constructor - private GetFirewallEncryptionConfiguration( - @CustomType.Parameter("keyId") String keyId, - @CustomType.Parameter("type") String type) { - this.keyId = keyId; - this.type = type; - } + private String type; + private GetFirewallEncryptionConfiguration() {} /** * @return The ID of the AWS Key Management Service (AWS KMS) customer managed key. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetFirewallEncryptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String keyId; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallEncryptionConfiguration defaults) { Objects.requireNonNull(defaults); this.keyId = defaults.keyId; this.type = defaults.type; } + @CustomType.Setter public Builder keyId(String keyId) { this.keyId = Objects.requireNonNull(keyId); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetFirewallEncryptionConfiguration build() { - return new GetFirewallEncryptionConfiguration(keyId, type); + } + public GetFirewallEncryptionConfiguration build() { + final var o = new GetFirewallEncryptionConfiguration(); + o.keyId = keyId; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatus.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatus.java index e85e20fdc5a..f7e33b5ad38 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatus.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatus.java @@ -16,31 +16,20 @@ public final class GetFirewallFirewallStatus { * @return Aggregated count of all resources used by reference sets in a firewall. * */ - private final List capacityUsageSummaries; + private List capacityUsageSummaries; /** * @return Summary of sync states for all availability zones in which the firewall is configured. * */ - private final String configurationSyncStateSummary; - private final String status; + private String configurationSyncStateSummary; + private String status; /** * @return Set of subnets configured for use by the firewall. * */ - private final List syncStates; - - @CustomType.Constructor - private GetFirewallFirewallStatus( - @CustomType.Parameter("capacityUsageSummaries") List capacityUsageSummaries, - @CustomType.Parameter("configurationSyncStateSummary") String configurationSyncStateSummary, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("syncStates") List syncStates) { - this.capacityUsageSummaries = capacityUsageSummaries; - this.configurationSyncStateSummary = configurationSyncStateSummary; - this.status = status; - this.syncStates = syncStates; - } + private List syncStates; + private GetFirewallFirewallStatus() {} /** * @return Aggregated count of all resources used by reference sets in a firewall. * @@ -73,17 +62,13 @@ public static Builder builder() { public static Builder builder(GetFirewallFirewallStatus defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List capacityUsageSummaries; private String configurationSyncStateSummary; private String status; private List syncStates; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallFirewallStatus defaults) { Objects.requireNonNull(defaults); this.capacityUsageSummaries = defaults.capacityUsageSummaries; @@ -92,6 +77,7 @@ public Builder(GetFirewallFirewallStatus defaults) { this.syncStates = defaults.syncStates; } + @CustomType.Setter public Builder capacityUsageSummaries(List capacityUsageSummaries) { this.capacityUsageSummaries = Objects.requireNonNull(capacityUsageSummaries); return this; @@ -99,22 +85,31 @@ public Builder capacityUsageSummaries(List syncStates) { this.syncStates = Objects.requireNonNull(syncStates); return this; } public Builder syncStates(GetFirewallFirewallStatusSyncState... syncStates) { return syncStates(List.of(syncStates)); - } public GetFirewallFirewallStatus build() { - return new GetFirewallFirewallStatus(capacityUsageSummaries, configurationSyncStateSummary, status, syncStates); + } + public GetFirewallFirewallStatus build() { + final var o = new GetFirewallFirewallStatus(); + o.capacityUsageSummaries = capacityUsageSummaries; + o.configurationSyncStateSummary = configurationSyncStateSummary; + o.status = status; + o.syncStates = syncStates; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatusCapacityUsageSummary.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatusCapacityUsageSummary.java index ad7befdb3c6..93ee0b4644e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatusCapacityUsageSummary.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatusCapacityUsageSummary.java @@ -14,13 +14,9 @@ public final class GetFirewallFirewallStatusCapacityUsageSummary { * @return Capacity usage of CIDR blocks used by IP set references in a firewall. * */ - private final List cidrs; - - @CustomType.Constructor - private GetFirewallFirewallStatusCapacityUsageSummary(@CustomType.Parameter("cidrs") List cidrs) { - this.cidrs = cidrs; - } + private List cidrs; + private GetFirewallFirewallStatusCapacityUsageSummary() {} /** * @return Capacity usage of CIDR blocks used by IP set references in a firewall. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(GetFirewallFirewallStatusCapacityUsageSummary defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List cidrs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallFirewallStatusCapacityUsageSummary defaults) { Objects.requireNonNull(defaults); this.cidrs = defaults.cidrs; } + @CustomType.Setter public Builder cidrs(List cidrs) { this.cidrs = Objects.requireNonNull(cidrs); return this; } public Builder cidrs(GetFirewallFirewallStatusCapacityUsageSummaryCidr... cidrs) { return cidrs(List.of(cidrs)); - } public GetFirewallFirewallStatusCapacityUsageSummary build() { - return new GetFirewallFirewallStatusCapacityUsageSummary(cidrs); + } + public GetFirewallFirewallStatusCapacityUsageSummary build() { + final var o = new GetFirewallFirewallStatusCapacityUsageSummary(); + o.cidrs = cidrs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatusCapacityUsageSummaryCidr.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatusCapacityUsageSummaryCidr.java index 76c1ca5c4aa..ba5ba2bce92 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatusCapacityUsageSummaryCidr.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatusCapacityUsageSummaryCidr.java @@ -15,28 +15,19 @@ public final class GetFirewallFirewallStatusCapacityUsageSummaryCidr { * @return Available number of CIDR blocks available for use by the IP set references in a firewall. * */ - private final Integer availableCidrCount; + private Integer availableCidrCount; /** * @return The list of IP set references used by a firewall. * */ - private final List ipSetReferences; + private List ipSetReferences; /** * @return Number of CIDR blocks used by the IP set references in a firewall. * */ - private final Integer utilizedCidrCount; - - @CustomType.Constructor - private GetFirewallFirewallStatusCapacityUsageSummaryCidr( - @CustomType.Parameter("availableCidrCount") Integer availableCidrCount, - @CustomType.Parameter("ipSetReferences") List ipSetReferences, - @CustomType.Parameter("utilizedCidrCount") Integer utilizedCidrCount) { - this.availableCidrCount = availableCidrCount; - this.ipSetReferences = ipSetReferences; - this.utilizedCidrCount = utilizedCidrCount; - } + private Integer utilizedCidrCount; + private GetFirewallFirewallStatusCapacityUsageSummaryCidr() {} /** * @return Available number of CIDR blocks available for use by the IP set references in a firewall. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetFirewallFirewallStatusCapacityUsageSummaryCidr defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer availableCidrCount; private List ipSetReferences; private Integer utilizedCidrCount; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallFirewallStatusCapacityUsageSummaryCidr defaults) { Objects.requireNonNull(defaults); this.availableCidrCount = defaults.availableCidrCount; @@ -83,10 +70,12 @@ public Builder(GetFirewallFirewallStatusCapacityUsageSummaryCidr defaults) { this.utilizedCidrCount = defaults.utilizedCidrCount; } + @CustomType.Setter public Builder availableCidrCount(Integer availableCidrCount) { this.availableCidrCount = Objects.requireNonNull(availableCidrCount); return this; } + @CustomType.Setter public Builder ipSetReferences(List ipSetReferences) { this.ipSetReferences = Objects.requireNonNull(ipSetReferences); return this; @@ -94,11 +83,17 @@ public Builder ipSetReferences(List attachments; + private List attachments; /** * @return The Availability Zone where the subnet is configured. * */ - private final String availabilityZone; - - @CustomType.Constructor - private GetFirewallFirewallStatusSyncState( - @CustomType.Parameter("attachments") List attachments, - @CustomType.Parameter("availabilityZone") String availabilityZone) { - this.attachments = attachments; - this.availabilityZone = availabilityZone; - } + private String availabilityZone; + private GetFirewallFirewallStatusSyncState() {} /** * @return Nested list describing the attachment status of the firewall's association with a single VPC subnet. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(GetFirewallFirewallStatusSyncState defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List attachments; private String availabilityZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallFirewallStatusSyncState defaults) { Objects.requireNonNull(defaults); this.attachments = defaults.attachments; this.availabilityZone = defaults.availabilityZone; } + @CustomType.Setter public Builder attachments(List attachments) { this.attachments = Objects.requireNonNull(attachments); return this; @@ -74,11 +64,16 @@ public Builder attachments(List at public Builder attachments(GetFirewallFirewallStatusSyncStateAttachment... attachments) { return attachments(List.of(attachments)); } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; - } public GetFirewallFirewallStatusSyncState build() { - return new GetFirewallFirewallStatusSyncState(attachments, availabilityZone); + } + public GetFirewallFirewallStatusSyncState build() { + final var o = new GetFirewallFirewallStatusSyncState(); + o.attachments = attachments; + o.availabilityZone = availabilityZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatusSyncStateAttachment.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatusSyncStateAttachment.java index 4b5abe568dc..adb0ffe43b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatusSyncStateAttachment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallFirewallStatusSyncStateAttachment.java @@ -13,24 +13,15 @@ public final class GetFirewallFirewallStatusSyncStateAttachment { * @return The identifier of the firewall endpoint that AWS Network Firewall has instantiated in the subnet. You use this to identify the firewall endpoint in the VPC route tables, when you redirect the VPC traffic through the endpoint. * */ - private final String endpointId; - private final String status; + private String endpointId; + private String status; /** * @return The unique identifier for the subnet. * */ - private final String subnetId; - - @CustomType.Constructor - private GetFirewallFirewallStatusSyncStateAttachment( - @CustomType.Parameter("endpointId") String endpointId, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("subnetId") String subnetId) { - this.endpointId = endpointId; - this.status = status; - this.subnetId = subnetId; - } + private String subnetId; + private GetFirewallFirewallStatusSyncStateAttachment() {} /** * @return The identifier of the firewall endpoint that AWS Network Firewall has instantiated in the subnet. You use this to identify the firewall endpoint in the VPC route tables, when you redirect the VPC traffic through the endpoint. * @@ -56,16 +47,12 @@ public static Builder builder() { public static Builder builder(GetFirewallFirewallStatusSyncStateAttachment defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String endpointId; private String status; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallFirewallStatusSyncStateAttachment defaults) { Objects.requireNonNull(defaults); this.endpointId = defaults.endpointId; @@ -73,19 +60,27 @@ public Builder(GetFirewallFirewallStatusSyncStateAttachment defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder endpointId(String endpointId) { this.endpointId = Objects.requireNonNull(endpointId); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public GetFirewallFirewallStatusSyncStateAttachment build() { - return new GetFirewallFirewallStatusSyncStateAttachment(endpointId, status, subnetId); + } + public GetFirewallFirewallStatusSyncStateAttachment build() { + final var o = new GetFirewallFirewallStatusSyncStateAttachment(); + o.endpointId = endpointId; + o.status = status; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicy.java index 0041f711d7a..5ae17ec568a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicy.java @@ -14,32 +14,15 @@ @CustomType public final class GetFirewallPolicyFirewallPolicy { - private final List statefulDefaultActions; - private final List statefulEngineOptions; - private final List statefulRuleGroupReferences; - private final List statelessCustomActions; - private final List statelessDefaultActions; - private final List statelessFragmentDefaultActions; - private final List statelessRuleGroupReferences; - - @CustomType.Constructor - private GetFirewallPolicyFirewallPolicy( - @CustomType.Parameter("statefulDefaultActions") List statefulDefaultActions, - @CustomType.Parameter("statefulEngineOptions") List statefulEngineOptions, - @CustomType.Parameter("statefulRuleGroupReferences") List statefulRuleGroupReferences, - @CustomType.Parameter("statelessCustomActions") List statelessCustomActions, - @CustomType.Parameter("statelessDefaultActions") List statelessDefaultActions, - @CustomType.Parameter("statelessFragmentDefaultActions") List statelessFragmentDefaultActions, - @CustomType.Parameter("statelessRuleGroupReferences") List statelessRuleGroupReferences) { - this.statefulDefaultActions = statefulDefaultActions; - this.statefulEngineOptions = statefulEngineOptions; - this.statefulRuleGroupReferences = statefulRuleGroupReferences; - this.statelessCustomActions = statelessCustomActions; - this.statelessDefaultActions = statelessDefaultActions; - this.statelessFragmentDefaultActions = statelessFragmentDefaultActions; - this.statelessRuleGroupReferences = statelessRuleGroupReferences; - } + private List statefulDefaultActions; + private List statefulEngineOptions; + private List statefulRuleGroupReferences; + private List statelessCustomActions; + private List statelessDefaultActions; + private List statelessFragmentDefaultActions; + private List statelessRuleGroupReferences; + private GetFirewallPolicyFirewallPolicy() {} public List statefulDefaultActions() { return this.statefulDefaultActions; } @@ -69,7 +52,7 @@ public static Builder builder() { public static Builder builder(GetFirewallPolicyFirewallPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statefulDefaultActions; private List statefulEngineOptions; @@ -78,11 +61,7 @@ public static final class Builder { private List statelessDefaultActions; private List statelessFragmentDefaultActions; private List statelessRuleGroupReferences; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallPolicyFirewallPolicy defaults) { Objects.requireNonNull(defaults); this.statefulDefaultActions = defaults.statefulDefaultActions; @@ -94,6 +73,7 @@ public Builder(GetFirewallPolicyFirewallPolicy defaults) { this.statelessRuleGroupReferences = defaults.statelessRuleGroupReferences; } + @CustomType.Setter public Builder statefulDefaultActions(List statefulDefaultActions) { this.statefulDefaultActions = Objects.requireNonNull(statefulDefaultActions); return this; @@ -101,6 +81,7 @@ public Builder statefulDefaultActions(List statefulDefaultActions) { public Builder statefulDefaultActions(String... statefulDefaultActions) { return statefulDefaultActions(List.of(statefulDefaultActions)); } + @CustomType.Setter public Builder statefulEngineOptions(List statefulEngineOptions) { this.statefulEngineOptions = Objects.requireNonNull(statefulEngineOptions); return this; @@ -108,6 +89,7 @@ public Builder statefulEngineOptions(List statefulRuleGroupReferences) { this.statefulRuleGroupReferences = Objects.requireNonNull(statefulRuleGroupReferences); return this; @@ -115,6 +97,7 @@ public Builder statefulRuleGroupReferences(List statelessCustomActions) { this.statelessCustomActions = Objects.requireNonNull(statelessCustomActions); return this; @@ -122,6 +105,7 @@ public Builder statelessCustomActions(List statelessDefaultActions) { this.statelessDefaultActions = Objects.requireNonNull(statelessDefaultActions); return this; @@ -129,6 +113,7 @@ public Builder statelessDefaultActions(List statelessDefaultActions) { public Builder statelessDefaultActions(String... statelessDefaultActions) { return statelessDefaultActions(List.of(statelessDefaultActions)); } + @CustomType.Setter public Builder statelessFragmentDefaultActions(List statelessFragmentDefaultActions) { this.statelessFragmentDefaultActions = Objects.requireNonNull(statelessFragmentDefaultActions); return this; @@ -136,14 +121,24 @@ public Builder statelessFragmentDefaultActions(List statelessFragmentDef public Builder statelessFragmentDefaultActions(String... statelessFragmentDefaultActions) { return statelessFragmentDefaultActions(List.of(statelessFragmentDefaultActions)); } + @CustomType.Setter public Builder statelessRuleGroupReferences(List statelessRuleGroupReferences) { this.statelessRuleGroupReferences = Objects.requireNonNull(statelessRuleGroupReferences); return this; } public Builder statelessRuleGroupReferences(GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference... statelessRuleGroupReferences) { return statelessRuleGroupReferences(List.of(statelessRuleGroupReferences)); - } public GetFirewallPolicyFirewallPolicy build() { - return new GetFirewallPolicyFirewallPolicy(statefulDefaultActions, statefulEngineOptions, statefulRuleGroupReferences, statelessCustomActions, statelessDefaultActions, statelessFragmentDefaultActions, statelessRuleGroupReferences); + } + public GetFirewallPolicyFirewallPolicy build() { + final var o = new GetFirewallPolicyFirewallPolicy(); + o.statefulDefaultActions = statefulDefaultActions; + o.statefulEngineOptions = statefulEngineOptions; + o.statefulRuleGroupReferences = statefulRuleGroupReferences; + o.statelessCustomActions = statelessCustomActions; + o.statelessDefaultActions = statelessDefaultActions; + o.statelessFragmentDefaultActions = statelessFragmentDefaultActions; + o.statelessRuleGroupReferences = statelessRuleGroupReferences; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatefulEngineOption.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatefulEngineOption.java index ee60f5b146d..9423b7f75ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatefulEngineOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatefulEngineOption.java @@ -9,13 +9,9 @@ @CustomType public final class GetFirewallPolicyFirewallPolicyStatefulEngineOption { - private final String ruleOrder; - - @CustomType.Constructor - private GetFirewallPolicyFirewallPolicyStatefulEngineOption(@CustomType.Parameter("ruleOrder") String ruleOrder) { - this.ruleOrder = ruleOrder; - } + private String ruleOrder; + private GetFirewallPolicyFirewallPolicyStatefulEngineOption() {} public String ruleOrder() { return this.ruleOrder; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetFirewallPolicyFirewallPolicyStatefulEngineOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String ruleOrder; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallPolicyFirewallPolicyStatefulEngineOption defaults) { Objects.requireNonNull(defaults); this.ruleOrder = defaults.ruleOrder; } + @CustomType.Setter public Builder ruleOrder(String ruleOrder) { this.ruleOrder = Objects.requireNonNull(ruleOrder); return this; - } public GetFirewallPolicyFirewallPolicyStatefulEngineOption build() { - return new GetFirewallPolicyFirewallPolicyStatefulEngineOption(ruleOrder); + } + public GetFirewallPolicyFirewallPolicyStatefulEngineOption build() { + final var o = new GetFirewallPolicyFirewallPolicyStatefulEngineOption(); + o.ruleOrder = ruleOrder; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference.java index 01c2d43c665..b3e09bed30a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference.java @@ -10,17 +10,10 @@ @CustomType public final class GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference { - private final Integer priority; - private final String resourceArn; - - @CustomType.Constructor - private GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("resourceArn") String resourceArn) { - this.priority = priority; - this.resourceArn = resourceArn; - } + private Integer priority; + private String resourceArn; + private GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference() {} public Integer priority() { return this.priority; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String resourceArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.resourceArn = defaults.resourceArn; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder resourceArn(String resourceArn) { this.resourceArn = Objects.requireNonNull(resourceArn); return this; - } public GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference build() { - return new GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference(priority, resourceArn); + } + public GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference build() { + final var o = new GetFirewallPolicyFirewallPolicyStatefulRuleGroupReference(); + o.priority = priority; + o.resourceArn = resourceArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessCustomAction.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessCustomAction.java index 2ac3c8ffc23..afbaf00908d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessCustomAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessCustomAction.java @@ -11,17 +11,10 @@ @CustomType public final class GetFirewallPolicyFirewallPolicyStatelessCustomAction { - private final List actionDefinitions; - private final String actionName; - - @CustomType.Constructor - private GetFirewallPolicyFirewallPolicyStatelessCustomAction( - @CustomType.Parameter("actionDefinitions") List actionDefinitions, - @CustomType.Parameter("actionName") String actionName) { - this.actionDefinitions = actionDefinitions; - this.actionName = actionName; - } + private List actionDefinitions; + private String actionName; + private GetFirewallPolicyFirewallPolicyStatelessCustomAction() {} public List actionDefinitions() { return this.actionDefinitions; } @@ -36,21 +29,18 @@ public static Builder builder() { public static Builder builder(GetFirewallPolicyFirewallPolicyStatelessCustomAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List actionDefinitions; private String actionName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallPolicyFirewallPolicyStatelessCustomAction defaults) { Objects.requireNonNull(defaults); this.actionDefinitions = defaults.actionDefinitions; this.actionName = defaults.actionName; } + @CustomType.Setter public Builder actionDefinitions(List actionDefinitions) { this.actionDefinitions = Objects.requireNonNull(actionDefinitions); return this; @@ -58,11 +48,16 @@ public Builder actionDefinitions(List publishMetricActions; - - @CustomType.Constructor - private GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition(@CustomType.Parameter("publishMetricActions") List publishMetricActions) { - this.publishMetricActions = publishMetricActions; - } + private List publishMetricActions; + private GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition() {} public List publishMetricActions() { return this.publishMetricActions; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List publishMetricActions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition defaults) { Objects.requireNonNull(defaults); this.publishMetricActions = defaults.publishMetricActions; } + @CustomType.Setter public Builder publishMetricActions(List publishMetricActions) { this.publishMetricActions = Objects.requireNonNull(publishMetricActions); return this; } public Builder publishMetricActions(GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction... publishMetricActions) { return publishMetricActions(List.of(publishMetricActions)); - } public GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition build() { - return new GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition(publishMetricActions); + } + public GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition build() { + final var o = new GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinition(); + o.publishMetricActions = publishMetricActions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction.java index 1d16c067326..eae8b5607e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction.java @@ -10,13 +10,9 @@ @CustomType public final class GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction { - private final List dimensions; - - @CustomType.Constructor - private GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction(@CustomType.Parameter("dimensions") List dimensions) { - this.dimensions = dimensions; - } + private List dimensions; + private GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction() {} public List dimensions() { return this.dimensions; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List dimensions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction defaults) { Objects.requireNonNull(defaults); this.dimensions = defaults.dimensions; } + @CustomType.Setter public Builder dimensions(List dimensions) { this.dimensions = Objects.requireNonNull(dimensions); return this; } public Builder dimensions(GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension... dimensions) { return dimensions(List.of(dimensions)); - } public GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction build() { - return new GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction(dimensions); + } + public GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction build() { + final var o = new GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricAction(); + o.dimensions = dimensions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension.java index bfa865db5f2..575652f7a02 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension.java @@ -9,13 +9,9 @@ @CustomType public final class GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension { - private final String value; - - @CustomType.Constructor - private GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension(@CustomType.Parameter("value") String value) { - this.value = value; - } + private String value; + private GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension() {} public String value() { return this.value; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension defaults) { Objects.requireNonNull(defaults); this.value = defaults.value; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension build() { - return new GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension(value); + } + public GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension build() { + final var o = new GetFirewallPolicyFirewallPolicyStatelessCustomActionActionDefinitionPublishMetricActionDimension(); + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference.java index 977c873c890..fd8a154a380 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference.java @@ -10,17 +10,10 @@ @CustomType public final class GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference { - private final Integer priority; - private final String resourceArn; - - @CustomType.Constructor - private GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("resourceArn") String resourceArn) { - this.priority = priority; - this.resourceArn = resourceArn; - } + private Integer priority; + private String resourceArn; + private GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference() {} public Integer priority() { return this.priority; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String resourceArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.resourceArn = defaults.resourceArn; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder resourceArn(String resourceArn) { this.resourceArn = Objects.requireNonNull(resourceArn); return this; - } public GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference build() { - return new GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference(priority, resourceArn); + } + public GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference build() { + final var o = new GetFirewallPolicyFirewallPolicyStatelessRuleGroupReference(); + o.priority = priority; + o.resourceArn = resourceArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyResult.java index f14d537698b..c68710f4ffc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallPolicyResult.java @@ -14,52 +14,35 @@ @CustomType public final class GetFirewallPolicyResult { - private final @Nullable String arn; + private @Nullable String arn; /** * @return A description of the firewall policy. * */ - private final String description; + private String description; /** * @return The [policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/networkfirewall_firewall_policy) for the specified firewall policy. * */ - private final List firewallPolicies; + private List firewallPolicies; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String name; + private String id; + private @Nullable String name; /** * @return Key-value tags for the firewall policy. * */ - private final Map tags; + private Map tags; /** * @return A token used for optimistic locking. * */ - private final String updateToken; - - @CustomType.Constructor - private GetFirewallPolicyResult( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("firewallPolicies") List firewallPolicies, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("updateToken") String updateToken) { - this.arn = arn; - this.description = description; - this.firewallPolicies = firewallPolicies; - this.id = id; - this.name = name; - this.tags = tags; - this.updateToken = updateToken; - } + private String updateToken; + private GetFirewallPolicyResult() {} public Optional arn() { return Optional.ofNullable(this.arn); } @@ -109,7 +92,7 @@ public static Builder builder() { public static Builder builder(GetFirewallPolicyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private String description; @@ -118,11 +101,7 @@ public static final class Builder { private @Nullable String name; private Map tags; private String updateToken; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallPolicyResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -134,14 +113,17 @@ public Builder(GetFirewallPolicyResult defaults) { this.updateToken = defaults.updateToken; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder firewallPolicies(List firewallPolicies) { this.firewallPolicies = Objects.requireNonNull(firewallPolicies); return this; @@ -149,23 +131,36 @@ public Builder firewallPolicies(List firewallPo public Builder firewallPolicies(GetFirewallPolicyFirewallPolicy... firewallPolicies) { return firewallPolicies(List.of(firewallPolicies)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder updateToken(String updateToken) { this.updateToken = Objects.requireNonNull(updateToken); return this; - } public GetFirewallPolicyResult build() { - return new GetFirewallPolicyResult(arn, description, firewallPolicies, id, name, tags, updateToken); + } + public GetFirewallPolicyResult build() { + final var o = new GetFirewallPolicyResult(); + o.arn = arn; + o.description = description; + o.firewallPolicies = firewallPolicies; + o.id = id; + o.name = name; + o.tags = tags; + o.updateToken = updateToken; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallResult.java index dfbe13bb768..eeefd0a4605 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallResult.java @@ -20,105 +20,74 @@ public final class GetFirewallResult { * @return The Amazon Resource Name (ARN) of the firewall. * */ - private final String arn; + private String arn; /** * @return A boolean flag indicating whether it is possible to delete the firewall. * */ - private final Boolean deleteProtection; + private Boolean deleteProtection; /** * @return A description of the firewall. * */ - private final String description; + private String description; /** * @return AWS Key Management Service (AWS KMS) encryption settings for the firewall. * */ - private final List encryptionConfigurations; + private List encryptionConfigurations; /** * @return The Amazon Resource Name (ARN) of the VPC Firewall policy. * */ - private final String firewallPolicyArn; + private String firewallPolicyArn; /** * @return A boolean flag indicating whether it is possible to change the associated firewall policy. * */ - private final Boolean firewallPolicyChangeProtection; + private Boolean firewallPolicyChangeProtection; /** * @return Nested list of information about the current status of the firewall. * */ - private final List firewallStatuses; + private List firewallStatuses; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The descriptive name of the firewall. * */ - private final String name; + private String name; /** * @return A boolean flag indicating whether it is possible to change the associated subnet(s). * */ - private final Boolean subnetChangeProtection; + private Boolean subnetChangeProtection; /** * @return Set of configuration blocks describing the public subnets. Each subnet must belong to a different Availability Zone in the VPC. AWS Network Firewall creates a firewall endpoint in each subnet. * */ - private final List subnetMappings; + private List subnetMappings; /** * @return Map of resource tags to associate with the resource. If configured with a provider [`default_tags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return A string token used when updating a firewall. * */ - private final String updateToken; + private String updateToken; /** * @return The unique identifier of the VPC where AWS Network Firewall should create the firewall. * */ - private final String vpcId; - - @CustomType.Constructor - private GetFirewallResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("deleteProtection") Boolean deleteProtection, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("encryptionConfigurations") List encryptionConfigurations, - @CustomType.Parameter("firewallPolicyArn") String firewallPolicyArn, - @CustomType.Parameter("firewallPolicyChangeProtection") Boolean firewallPolicyChangeProtection, - @CustomType.Parameter("firewallStatuses") List firewallStatuses, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("subnetChangeProtection") Boolean subnetChangeProtection, - @CustomType.Parameter("subnetMappings") List subnetMappings, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("updateToken") String updateToken, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.deleteProtection = deleteProtection; - this.description = description; - this.encryptionConfigurations = encryptionConfigurations; - this.firewallPolicyArn = firewallPolicyArn; - this.firewallPolicyChangeProtection = firewallPolicyChangeProtection; - this.firewallStatuses = firewallStatuses; - this.id = id; - this.name = name; - this.subnetChangeProtection = subnetChangeProtection; - this.subnetMappings = subnetMappings; - this.tags = tags; - this.updateToken = updateToken; - this.vpcId = vpcId; - } + private String vpcId; + private GetFirewallResult() {} /** * @return The Amazon Resource Name (ARN) of the firewall. * @@ -225,7 +194,7 @@ public static Builder builder() { public static Builder builder(GetFirewallResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Boolean deleteProtection; @@ -241,11 +210,7 @@ public static final class Builder { private @Nullable Map tags; private String updateToken; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -264,18 +229,22 @@ public Builder(GetFirewallResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder deleteProtection(Boolean deleteProtection) { this.deleteProtection = Objects.requireNonNull(deleteProtection); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder encryptionConfigurations(List encryptionConfigurations) { this.encryptionConfigurations = Objects.requireNonNull(encryptionConfigurations); return this; @@ -283,14 +252,17 @@ public Builder encryptionConfigurations(List public Builder encryptionConfigurations(GetFirewallEncryptionConfiguration... encryptionConfigurations) { return encryptionConfigurations(List.of(encryptionConfigurations)); } + @CustomType.Setter public Builder firewallPolicyArn(String firewallPolicyArn) { this.firewallPolicyArn = Objects.requireNonNull(firewallPolicyArn); return this; } + @CustomType.Setter public Builder firewallPolicyChangeProtection(Boolean firewallPolicyChangeProtection) { this.firewallPolicyChangeProtection = Objects.requireNonNull(firewallPolicyChangeProtection); return this; } + @CustomType.Setter public Builder firewallStatuses(List firewallStatuses) { this.firewallStatuses = Objects.requireNonNull(firewallStatuses); return this; @@ -298,18 +270,22 @@ public Builder firewallStatuses(List firewallStatuses public Builder firewallStatuses(GetFirewallFirewallStatus... firewallStatuses) { return firewallStatuses(List.of(firewallStatuses)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder subnetChangeProtection(Boolean subnetChangeProtection) { this.subnetChangeProtection = Objects.requireNonNull(subnetChangeProtection); return this; } + @CustomType.Setter public Builder subnetMappings(List subnetMappings) { this.subnetMappings = Objects.requireNonNull(subnetMappings); return this; @@ -317,19 +293,38 @@ public Builder subnetMappings(List subnetMappings) { public Builder subnetMappings(GetFirewallSubnetMapping... subnetMappings) { return subnetMappings(List.of(subnetMappings)); } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder updateToken(String updateToken) { this.updateToken = Objects.requireNonNull(updateToken); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetFirewallResult build() { - return new GetFirewallResult(arn, deleteProtection, description, encryptionConfigurations, firewallPolicyArn, firewallPolicyChangeProtection, firewallStatuses, id, name, subnetChangeProtection, subnetMappings, tags, updateToken, vpcId); + } + public GetFirewallResult build() { + final var o = new GetFirewallResult(); + o.arn = arn; + o.deleteProtection = deleteProtection; + o.description = description; + o.encryptionConfigurations = encryptionConfigurations; + o.firewallPolicyArn = firewallPolicyArn; + o.firewallPolicyChangeProtection = firewallPolicyChangeProtection; + o.firewallStatuses = firewallStatuses; + o.id = id; + o.name = name; + o.subnetChangeProtection = subnetChangeProtection; + o.subnetMappings = subnetMappings; + o.tags = tags; + o.updateToken = updateToken; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallSubnetMapping.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallSubnetMapping.java index 2f3e90a375d..10a8cce2447 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallSubnetMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/GetFirewallSubnetMapping.java @@ -13,13 +13,9 @@ public final class GetFirewallSubnetMapping { * @return The unique identifier for the subnet. * */ - private final String subnetId; - - @CustomType.Constructor - private GetFirewallSubnetMapping(@CustomType.Parameter("subnetId") String subnetId) { - this.subnetId = subnetId; - } + private String subnetId; + private GetFirewallSubnetMapping() {} /** * @return The unique identifier for the subnet. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetFirewallSubnetMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetFirewallSubnetMapping defaults) { Objects.requireNonNull(defaults); this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public GetFirewallSubnetMapping build() { - return new GetFirewallSubnetMapping(subnetId); + } + public GetFirewallSubnetMapping build() { + final var o = new GetFirewallSubnetMapping(); + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/LoggingConfigurationLoggingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/LoggingConfigurationLoggingConfiguration.java index f418c69b9d0..0e229a4be2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/LoggingConfigurationLoggingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/LoggingConfigurationLoggingConfiguration.java @@ -14,13 +14,9 @@ public final class LoggingConfigurationLoggingConfiguration { * @return Set of configuration blocks describing the logging details for a firewall. See Log Destination Config below for details. At most, only two blocks can be specified; one for `FLOW` logs and one for `ALERT` logs. * */ - private final List logDestinationConfigs; - - @CustomType.Constructor - private LoggingConfigurationLoggingConfiguration(@CustomType.Parameter("logDestinationConfigs") List logDestinationConfigs) { - this.logDestinationConfigs = logDestinationConfigs; - } + private List logDestinationConfigs; + private LoggingConfigurationLoggingConfiguration() {} /** * @return Set of configuration blocks describing the logging details for a firewall. See Log Destination Config below for details. At most, only two blocks can be specified; one for `FLOW` logs and one for `ALERT` logs. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(LoggingConfigurationLoggingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List logDestinationConfigs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoggingConfigurationLoggingConfiguration defaults) { Objects.requireNonNull(defaults); this.logDestinationConfigs = defaults.logDestinationConfigs; } + @CustomType.Setter public Builder logDestinationConfigs(List logDestinationConfigs) { this.logDestinationConfigs = Objects.requireNonNull(logDestinationConfigs); return this; } public Builder logDestinationConfigs(LoggingConfigurationLoggingConfigurationLogDestinationConfig... logDestinationConfigs) { return logDestinationConfigs(List.of(logDestinationConfigs)); - } public LoggingConfigurationLoggingConfiguration build() { - return new LoggingConfigurationLoggingConfiguration(logDestinationConfigs); + } + public LoggingConfigurationLoggingConfiguration build() { + final var o = new LoggingConfigurationLoggingConfiguration(); + o.logDestinationConfigs = logDestinationConfigs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/LoggingConfigurationLoggingConfigurationLogDestinationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/LoggingConfigurationLoggingConfigurationLogDestinationConfig.java index 8a531036b53..0ac892461db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/LoggingConfigurationLoggingConfigurationLogDestinationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/LoggingConfigurationLoggingConfigurationLogDestinationConfig.java @@ -17,28 +17,19 @@ public final class LoggingConfigurationLoggingConfigurationLogDestinationConfig * * For a Kinesis Data Firehose delivery stream, specify the key `deliveryStream` with the name of the delivery stream. * */ - private final Map logDestination; + private Map logDestination; /** * @return The location to send logs to. Valid values: `S3`, `CloudWatchLogs`, `KinesisDataFirehose`. * */ - private final String logDestinationType; + private String logDestinationType; /** * @return The type of log to send. Valid values: `ALERT` or `FLOW`. Alert logs report traffic that matches a `StatefulRule` with an action setting that sends a log message. Flow logs are standard network traffic flow logs. * */ - private final String logType; - - @CustomType.Constructor - private LoggingConfigurationLoggingConfigurationLogDestinationConfig( - @CustomType.Parameter("logDestination") Map logDestination, - @CustomType.Parameter("logDestinationType") String logDestinationType, - @CustomType.Parameter("logType") String logType) { - this.logDestination = logDestination; - this.logDestinationType = logDestinationType; - this.logType = logType; - } + private String logType; + private LoggingConfigurationLoggingConfigurationLogDestinationConfig() {} /** * @return A map describing the logging destination for the chosen `log_destination_type`. * * For an Amazon S3 bucket, specify the key `bucketName` with the name of the bucket and optionally specify the key `prefix` with a path. @@ -71,16 +62,12 @@ public static Builder builder() { public static Builder builder(LoggingConfigurationLoggingConfigurationLogDestinationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Map logDestination; private String logDestinationType; private String logType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LoggingConfigurationLoggingConfigurationLogDestinationConfig defaults) { Objects.requireNonNull(defaults); this.logDestination = defaults.logDestination; @@ -88,19 +75,27 @@ public Builder(LoggingConfigurationLoggingConfigurationLogDestinationConfig defa this.logType = defaults.logType; } + @CustomType.Setter public Builder logDestination(Map logDestination) { this.logDestination = Objects.requireNonNull(logDestination); return this; } + @CustomType.Setter public Builder logDestinationType(String logDestinationType) { this.logDestinationType = Objects.requireNonNull(logDestinationType); return this; } + @CustomType.Setter public Builder logType(String logType) { this.logType = Objects.requireNonNull(logType); return this; - } public LoggingConfigurationLoggingConfigurationLogDestinationConfig build() { - return new LoggingConfigurationLoggingConfigurationLogDestinationConfig(logDestination, logDestinationType, logType); + } + public LoggingConfigurationLoggingConfigurationLogDestinationConfig build() { + final var o = new LoggingConfigurationLoggingConfigurationLogDestinationConfig(); + o.logDestination = logDestination; + o.logDestinationType = logDestinationType; + o.logType = logType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroup.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroup.java index 6a782e097fa..23b8b6a6d23 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroup.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroup.java @@ -17,28 +17,19 @@ public final class RuleGroupRuleGroup { * @return A configuration block that defines additional settings available to use in the rules defined in the rule group. Can only be specified for **stateful** rule groups. See Rule Variables below for details. * */ - private final @Nullable RuleGroupRuleGroupRuleVariables ruleVariables; + private @Nullable RuleGroupRuleGroupRuleVariables ruleVariables; /** * @return A configuration block that defines the stateful or stateless rules for the rule group. See Rules Source below for details. * */ - private final RuleGroupRuleGroupRulesSource rulesSource; + private RuleGroupRuleGroupRulesSource rulesSource; /** * @return A configuration block that defines stateful rule options for the rule group. See Stateful Rule Options below for details. * */ - private final @Nullable RuleGroupRuleGroupStatefulRuleOptions statefulRuleOptions; - - @CustomType.Constructor - private RuleGroupRuleGroup( - @CustomType.Parameter("ruleVariables") @Nullable RuleGroupRuleGroupRuleVariables ruleVariables, - @CustomType.Parameter("rulesSource") RuleGroupRuleGroupRulesSource rulesSource, - @CustomType.Parameter("statefulRuleOptions") @Nullable RuleGroupRuleGroupStatefulRuleOptions statefulRuleOptions) { - this.ruleVariables = ruleVariables; - this.rulesSource = rulesSource; - this.statefulRuleOptions = statefulRuleOptions; - } + private @Nullable RuleGroupRuleGroupStatefulRuleOptions statefulRuleOptions; + private RuleGroupRuleGroup() {} /** * @return A configuration block that defines additional settings available to use in the rules defined in the rule group. Can only be specified for **stateful** rule groups. See Rule Variables below for details. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroup defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleGroupRuleVariables ruleVariables; private RuleGroupRuleGroupRulesSource rulesSource; private @Nullable RuleGroupRuleGroupStatefulRuleOptions statefulRuleOptions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroup defaults) { Objects.requireNonNull(defaults); this.ruleVariables = defaults.ruleVariables; @@ -85,19 +72,27 @@ public Builder(RuleGroupRuleGroup defaults) { this.statefulRuleOptions = defaults.statefulRuleOptions; } + @CustomType.Setter public Builder ruleVariables(@Nullable RuleGroupRuleGroupRuleVariables ruleVariables) { this.ruleVariables = ruleVariables; return this; } + @CustomType.Setter public Builder rulesSource(RuleGroupRuleGroupRulesSource rulesSource) { this.rulesSource = Objects.requireNonNull(rulesSource); return this; } + @CustomType.Setter public Builder statefulRuleOptions(@Nullable RuleGroupRuleGroupStatefulRuleOptions statefulRuleOptions) { this.statefulRuleOptions = statefulRuleOptions; return this; - } public RuleGroupRuleGroup build() { - return new RuleGroupRuleGroup(ruleVariables, rulesSource, statefulRuleOptions); + } + public RuleGroupRuleGroup build() { + final var o = new RuleGroupRuleGroup(); + o.ruleVariables = ruleVariables; + o.rulesSource = rulesSource; + o.statefulRuleOptions = statefulRuleOptions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariables.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariables.java index 484c3ce016a..e0d61b7dc95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariables.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariables.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleGroupRuleVariables { * @return Set of configuration blocks that define IP address information. See IP Sets below for details. * */ - private final @Nullable List ipSets; + private @Nullable List ipSets; /** * @return Set of configuration blocks that define port range information. See Port Sets below for details. * */ - private final @Nullable List portSets; - - @CustomType.Constructor - private RuleGroupRuleGroupRuleVariables( - @CustomType.Parameter("ipSets") @Nullable List ipSets, - @CustomType.Parameter("portSets") @Nullable List portSets) { - this.ipSets = ipSets; - this.portSets = portSets; - } + private @Nullable List portSets; + private RuleGroupRuleGroupRuleVariables() {} /** * @return Set of configuration blocks that define IP address information. See IP Sets below for details. * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRuleVariables defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List ipSets; private @Nullable List portSets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRuleVariables defaults) { Objects.requireNonNull(defaults); this.ipSets = defaults.ipSets; this.portSets = defaults.portSets; } + @CustomType.Setter public Builder ipSets(@Nullable List ipSets) { this.ipSets = ipSets; return this; @@ -75,14 +65,19 @@ public Builder ipSets(@Nullable List ipSet public Builder ipSets(RuleGroupRuleGroupRuleVariablesIpSet... ipSets) { return ipSets(List.of(ipSets)); } + @CustomType.Setter public Builder portSets(@Nullable List portSets) { this.portSets = portSets; return this; } public Builder portSets(RuleGroupRuleGroupRuleVariablesPortSet... portSets) { return portSets(List.of(portSets)); - } public RuleGroupRuleGroupRuleVariables build() { - return new RuleGroupRuleGroupRuleVariables(ipSets, portSets); + } + public RuleGroupRuleGroupRuleVariables build() { + final var o = new RuleGroupRuleGroupRuleVariables(); + o.ipSets = ipSets; + o.portSets = portSets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesIpSet.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesIpSet.java index d77a87fed94..86e1c8ebc82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesIpSet.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesIpSet.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleGroupRuleVariablesIpSet { * @return A configuration block that defines a set of IP addresses. See IP Set below for details. * */ - private final RuleGroupRuleGroupRuleVariablesIpSetIpSet ipSet; + private RuleGroupRuleGroupRuleVariablesIpSetIpSet ipSet; /** * @return A unique alphanumeric string to identify the `ip_set`. * */ - private final String key; - - @CustomType.Constructor - private RuleGroupRuleGroupRuleVariablesIpSet( - @CustomType.Parameter("ipSet") RuleGroupRuleGroupRuleVariablesIpSetIpSet ipSet, - @CustomType.Parameter("key") String key) { - this.ipSet = ipSet; - this.key = key; - } + private String key; + private RuleGroupRuleGroupRuleVariablesIpSet() {} /** * @return A configuration block that defines a set of IP addresses. See IP Set below for details. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRuleVariablesIpSet defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RuleGroupRuleGroupRuleVariablesIpSetIpSet ipSet; private String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRuleVariablesIpSet defaults) { Objects.requireNonNull(defaults); this.ipSet = defaults.ipSet; this.key = defaults.key; } + @CustomType.Setter public Builder ipSet(RuleGroupRuleGroupRuleVariablesIpSetIpSet ipSet) { this.ipSet = Objects.requireNonNull(ipSet); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; - } public RuleGroupRuleGroupRuleVariablesIpSet build() { - return new RuleGroupRuleGroupRuleVariablesIpSet(ipSet, key); + } + public RuleGroupRuleGroupRuleVariablesIpSet build() { + final var o = new RuleGroupRuleGroupRuleVariablesIpSet(); + o.ipSet = ipSet; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesIpSetIpSet.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesIpSetIpSet.java index ed37643eb0f..e77aca52283 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesIpSetIpSet.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesIpSetIpSet.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleGroupRuleVariablesIpSetIpSet { * @return Set of IP addresses and address ranges, in CIDR notation. * */ - private final List definitions; - - @CustomType.Constructor - private RuleGroupRuleGroupRuleVariablesIpSetIpSet(@CustomType.Parameter("definitions") List definitions) { - this.definitions = definitions; - } + private List definitions; + private RuleGroupRuleGroupRuleVariablesIpSetIpSet() {} /** * @return Set of IP addresses and address ranges, in CIDR notation. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRuleVariablesIpSetIpSet defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List definitions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRuleVariablesIpSetIpSet defaults) { Objects.requireNonNull(defaults); this.definitions = defaults.definitions; } + @CustomType.Setter public Builder definitions(List definitions) { this.definitions = Objects.requireNonNull(definitions); return this; } public Builder definitions(String... definitions) { return definitions(List.of(definitions)); - } public RuleGroupRuleGroupRuleVariablesIpSetIpSet build() { - return new RuleGroupRuleGroupRuleVariablesIpSetIpSet(definitions); + } + public RuleGroupRuleGroupRuleVariablesIpSetIpSet build() { + final var o = new RuleGroupRuleGroupRuleVariablesIpSetIpSet(); + o.definitions = definitions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesPortSet.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesPortSet.java index 3793fd6437d..b208751c93c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesPortSet.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesPortSet.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleGroupRuleVariablesPortSet { * @return An unique alphanumeric string to identify the `port_set`. * */ - private final String key; + private String key; /** * @return A configuration block that defines a set of port ranges. See Port Set below for details. * */ - private final RuleGroupRuleGroupRuleVariablesPortSetPortSet portSet; - - @CustomType.Constructor - private RuleGroupRuleGroupRuleVariablesPortSet( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("portSet") RuleGroupRuleGroupRuleVariablesPortSetPortSet portSet) { - this.key = key; - this.portSet = portSet; - } + private RuleGroupRuleGroupRuleVariablesPortSetPortSet portSet; + private RuleGroupRuleGroupRuleVariablesPortSet() {} /** * @return An unique alphanumeric string to identify the `port_set`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRuleVariablesPortSet defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private RuleGroupRuleGroupRuleVariablesPortSetPortSet portSet; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRuleVariablesPortSet defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.portSet = defaults.portSet; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder portSet(RuleGroupRuleGroupRuleVariablesPortSetPortSet portSet) { this.portSet = Objects.requireNonNull(portSet); return this; - } public RuleGroupRuleGroupRuleVariablesPortSet build() { - return new RuleGroupRuleGroupRuleVariablesPortSet(key, portSet); + } + public RuleGroupRuleGroupRuleVariablesPortSet build() { + final var o = new RuleGroupRuleGroupRuleVariablesPortSet(); + o.key = key; + o.portSet = portSet; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesPortSetPortSet.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesPortSetPortSet.java index eaa1d06281c..53efadaedb0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesPortSetPortSet.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRuleVariablesPortSetPortSet.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleGroupRuleVariablesPortSetPortSet { * @return Set of port ranges. * */ - private final List definitions; - - @CustomType.Constructor - private RuleGroupRuleGroupRuleVariablesPortSetPortSet(@CustomType.Parameter("definitions") List definitions) { - this.definitions = definitions; - } + private List definitions; + private RuleGroupRuleGroupRuleVariablesPortSetPortSet() {} /** * @return Set of port ranges. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRuleVariablesPortSetPortSet defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List definitions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRuleVariablesPortSetPortSet defaults) { Objects.requireNonNull(defaults); this.definitions = defaults.definitions; } + @CustomType.Setter public Builder definitions(List definitions) { this.definitions = Objects.requireNonNull(definitions); return this; } public Builder definitions(String... definitions) { return definitions(List.of(definitions)); - } public RuleGroupRuleGroupRuleVariablesPortSetPortSet build() { - return new RuleGroupRuleGroupRuleVariablesPortSetPortSet(definitions); + } + public RuleGroupRuleGroupRuleVariablesPortSetPortSet build() { + final var o = new RuleGroupRuleGroupRuleVariablesPortSetPortSet(); + o.definitions = definitions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSource.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSource.java index 39c647c503a..2ef1a1ce974 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSource.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleGroupRulesSource { * @return A configuration block containing **stateful** inspection criteria for a domain list rule group. See Rules Source List below for details. * */ - private final @Nullable RuleGroupRuleGroupRulesSourceRulesSourceList rulesSourceList; + private @Nullable RuleGroupRuleGroupRulesSourceRulesSourceList rulesSourceList; /** * @return The fully qualified name of a file in an S3 bucket that contains Suricata compatible intrusion preventions system (IPS) rules or the Suricata rules as a string. These rules contain **stateful** inspection criteria and the action to take for traffic that matches the criteria. * */ - private final @Nullable String rulesString; + private @Nullable String rulesString; /** * @return Set of configuration blocks containing **stateful** inspection criteria for 5-tuple rules to be used together in a rule group. See Stateful Rule below for details. * */ - private final @Nullable List statefulRules; + private @Nullable List statefulRules; /** * @return A configuration block containing **stateless** inspection criteria for a stateless rule group. See Stateless Rules and Custom Actions below for details. * */ - private final @Nullable RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions statelessRulesAndCustomActions; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSource( - @CustomType.Parameter("rulesSourceList") @Nullable RuleGroupRuleGroupRulesSourceRulesSourceList rulesSourceList, - @CustomType.Parameter("rulesString") @Nullable String rulesString, - @CustomType.Parameter("statefulRules") @Nullable List statefulRules, - @CustomType.Parameter("statelessRulesAndCustomActions") @Nullable RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions statelessRulesAndCustomActions) { - this.rulesSourceList = rulesSourceList; - this.rulesString = rulesString; - this.statefulRules = statefulRules; - this.statelessRulesAndCustomActions = statelessRulesAndCustomActions; - } + private @Nullable RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions statelessRulesAndCustomActions; + private RuleGroupRuleGroupRulesSource() {} /** * @return A configuration block containing **stateful** inspection criteria for a domain list rule group. See Rules Source List below for details. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleGroupRulesSourceRulesSourceList rulesSourceList; private @Nullable String rulesString; private @Nullable List statefulRules; private @Nullable RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions statelessRulesAndCustomActions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSource defaults) { Objects.requireNonNull(defaults); this.rulesSourceList = defaults.rulesSourceList; @@ -103,14 +88,17 @@ public Builder(RuleGroupRuleGroupRulesSource defaults) { this.statelessRulesAndCustomActions = defaults.statelessRulesAndCustomActions; } + @CustomType.Setter public Builder rulesSourceList(@Nullable RuleGroupRuleGroupRulesSourceRulesSourceList rulesSourceList) { this.rulesSourceList = rulesSourceList; return this; } + @CustomType.Setter public Builder rulesString(@Nullable String rulesString) { this.rulesString = rulesString; return this; } + @CustomType.Setter public Builder statefulRules(@Nullable List statefulRules) { this.statefulRules = statefulRules; return this; @@ -118,11 +106,18 @@ public Builder statefulRules(@Nullable List targetTypes; + private List targetTypes; /** * @return Set of domains that you want to inspect for in your traffic flows. * */ - private final List targets; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceRulesSourceList( - @CustomType.Parameter("generatedRulesType") String generatedRulesType, - @CustomType.Parameter("targetTypes") List targetTypes, - @CustomType.Parameter("targets") List targets) { - this.generatedRulesType = generatedRulesType; - this.targetTypes = targetTypes; - this.targets = targets; - } + private List targets; + private RuleGroupRuleGroupRulesSourceRulesSourceList() {} /** * @return String value to specify whether domains in the target list are allowed or denied access. Valid values: `ALLOWLIST`, `DENYLIST`. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceRulesSourceList defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String generatedRulesType; private List targetTypes; private List targets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceRulesSourceList defaults) { Objects.requireNonNull(defaults); this.generatedRulesType = defaults.generatedRulesType; @@ -82,10 +69,12 @@ public Builder(RuleGroupRuleGroupRulesSourceRulesSourceList defaults) { this.targets = defaults.targets; } + @CustomType.Setter public Builder generatedRulesType(String generatedRulesType) { this.generatedRulesType = Objects.requireNonNull(generatedRulesType); return this; } + @CustomType.Setter public Builder targetTypes(List targetTypes) { this.targetTypes = Objects.requireNonNull(targetTypes); return this; @@ -93,14 +82,20 @@ public Builder targetTypes(List targetTypes) { public Builder targetTypes(String... targetTypes) { return targetTypes(List.of(targetTypes)); } + @CustomType.Setter public Builder targets(List targets) { this.targets = Objects.requireNonNull(targets); return this; } public Builder targets(String... targets) { return targets(List.of(targets)); - } public RuleGroupRuleGroupRulesSourceRulesSourceList build() { - return new RuleGroupRuleGroupRulesSourceRulesSourceList(generatedRulesType, targetTypes, targets); + } + public RuleGroupRuleGroupRulesSourceRulesSourceList build() { + final var o = new RuleGroupRuleGroupRulesSourceRulesSourceList(); + o.generatedRulesType = generatedRulesType; + o.targetTypes = targetTypes; + o.targets = targets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatefulRule.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatefulRule.java index 8b30f9541a7..a9906ede84a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatefulRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatefulRule.java @@ -16,28 +16,19 @@ public final class RuleGroupRuleGroupRulesSourceStatefulRule { * @return Action to take with packets in a traffic flow when the flow matches the stateful rule criteria. For all actions, AWS Network Firewall performs the specified action and discontinues stateful inspection of the traffic flow. Valid values: `ALERT`, `DROP` or `PASS`. * */ - private final String action; + private String action; /** * @return A configuration block containing the stateful 5-tuple inspection criteria for the rule, used to inspect traffic flows. See Header below for details. * */ - private final RuleGroupRuleGroupRulesSourceStatefulRuleHeader header; + private RuleGroupRuleGroupRulesSourceStatefulRuleHeader header; /** * @return Set of configuration blocks containing additional settings for a stateful rule. See Rule Option below for details. * */ - private final List ruleOptions; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatefulRule( - @CustomType.Parameter("action") String action, - @CustomType.Parameter("header") RuleGroupRuleGroupRulesSourceStatefulRuleHeader header, - @CustomType.Parameter("ruleOptions") List ruleOptions) { - this.action = action; - this.header = header; - this.ruleOptions = ruleOptions; - } + private List ruleOptions; + private RuleGroupRuleGroupRulesSourceStatefulRule() {} /** * @return Action to take with packets in a traffic flow when the flow matches the stateful rule criteria. For all actions, AWS Network Firewall performs the specified action and discontinues stateful inspection of the traffic flow. Valid values: `ALERT`, `DROP` or `PASS`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatefulRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String action; private RuleGroupRuleGroupRulesSourceStatefulRuleHeader header; private List ruleOptions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatefulRule defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -84,22 +71,30 @@ public Builder(RuleGroupRuleGroupRulesSourceStatefulRule defaults) { this.ruleOptions = defaults.ruleOptions; } + @CustomType.Setter public Builder action(String action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder header(RuleGroupRuleGroupRulesSourceStatefulRuleHeader header) { this.header = Objects.requireNonNull(header); return this; } + @CustomType.Setter public Builder ruleOptions(List ruleOptions) { this.ruleOptions = Objects.requireNonNull(ruleOptions); return this; } public Builder ruleOptions(RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption... ruleOptions) { return ruleOptions(List.of(ruleOptions)); - } public RuleGroupRuleGroupRulesSourceStatefulRule build() { - return new RuleGroupRuleGroupRulesSourceStatefulRule(action, header, ruleOptions); + } + public RuleGroupRuleGroupRulesSourceStatefulRule build() { + final var o = new RuleGroupRuleGroupRulesSourceStatefulRule(); + o.action = action; + o.header = header; + o.ruleOptions = ruleOptions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatefulRuleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatefulRuleHeader.java index 49bae614f00..8f7c13b61a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatefulRuleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatefulRuleHeader.java @@ -13,49 +13,34 @@ public final class RuleGroupRuleGroupRulesSourceStatefulRuleHeader { * @return The destination IP address or address range to inspect for, in CIDR notation. To match with any address, specify `ANY`. * */ - private final String destination; + private String destination; /** * @return The destination port to inspect for. To match with any address, specify `ANY`. * */ - private final String destinationPort; + private String destinationPort; /** * @return The direction of traffic flow to inspect. Valid values: `ANY` or `FORWARD`. * */ - private final String direction; + private String direction; /** * @return The protocol to inspect. Valid values: `IP`, `TCP`, `UDP`, `ICMP`, `HTTP`, `FTP`, `TLS`, `SMB`, `DNS`, `DCERPC`, `SSH`, `SMTP`, `IMAP`, `MSN`, `KRB5`, `IKEV2`, `TFTP`, `NTP`, `DHCP`. * */ - private final String protocol; + private String protocol; /** * @return The source IP address or address range for, in CIDR notation. To match with any address, specify `ANY`. * */ - private final String source; + private String source; /** * @return The source port to inspect for. To match with any address, specify `ANY`. * */ - private final String sourcePort; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatefulRuleHeader( - @CustomType.Parameter("destination") String destination, - @CustomType.Parameter("destinationPort") String destinationPort, - @CustomType.Parameter("direction") String direction, - @CustomType.Parameter("protocol") String protocol, - @CustomType.Parameter("source") String source, - @CustomType.Parameter("sourcePort") String sourcePort) { - this.destination = destination; - this.destinationPort = destinationPort; - this.direction = direction; - this.protocol = protocol; - this.source = source; - this.sourcePort = sourcePort; - } + private String sourcePort; + private RuleGroupRuleGroupRulesSourceStatefulRuleHeader() {} /** * @return The destination IP address or address range to inspect for, in CIDR notation. To match with any address, specify `ANY`. * @@ -106,7 +91,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatefulRuleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destination; private String destinationPort; @@ -114,11 +99,7 @@ public static final class Builder { private String protocol; private String source; private String sourcePort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatefulRuleHeader defaults) { Objects.requireNonNull(defaults); this.destination = defaults.destination; @@ -129,31 +110,45 @@ public Builder(RuleGroupRuleGroupRulesSourceStatefulRuleHeader defaults) { this.sourcePort = defaults.sourcePort; } + @CustomType.Setter public Builder destination(String destination) { this.destination = Objects.requireNonNull(destination); return this; } + @CustomType.Setter public Builder destinationPort(String destinationPort) { this.destinationPort = Objects.requireNonNull(destinationPort); return this; } + @CustomType.Setter public Builder direction(String direction) { this.direction = Objects.requireNonNull(direction); return this; } + @CustomType.Setter public Builder protocol(String protocol) { this.protocol = Objects.requireNonNull(protocol); return this; } + @CustomType.Setter public Builder source(String source) { this.source = Objects.requireNonNull(source); return this; } + @CustomType.Setter public Builder sourcePort(String sourcePort) { this.sourcePort = Objects.requireNonNull(sourcePort); return this; - } public RuleGroupRuleGroupRulesSourceStatefulRuleHeader build() { - return new RuleGroupRuleGroupRulesSourceStatefulRuleHeader(destination, destinationPort, direction, protocol, source, sourcePort); + } + public RuleGroupRuleGroupRulesSourceStatefulRuleHeader build() { + final var o = new RuleGroupRuleGroupRulesSourceStatefulRuleHeader(); + o.destination = destination; + o.destinationPort = destinationPort; + o.direction = direction; + o.protocol = protocol; + o.source = source; + o.sourcePort = sourcePort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption.java index 60c38dd459e..46fa9af0e6b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption { * See [Snort General Rule Options](http://manual-snort-org.s3-website-us-east-1.amazonaws.com/node31.html) or [Suricata Rule Options](https://suricata.readthedocs.io/en/suricata-5.0.1/rules/intro.html#rule-options) for more details. * */ - private final String keyword; + private String keyword; /** * @return Set of strings for additional settings to use in stateful rule inspection. * */ - private final @Nullable List settings; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption( - @CustomType.Parameter("keyword") String keyword, - @CustomType.Parameter("settings") @Nullable List settings) { - this.keyword = keyword; - this.settings = settings; - } + private @Nullable List settings; + private RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption() {} /** * @return Keyword defined by open source detection systems like Snort or Suricata for stateful rule inspection. * See [Snort General Rule Options](http://manual-snort-org.s3-website-us-east-1.amazonaws.com/node31.html) or [Suricata Rule Options](https://suricata.readthedocs.io/en/suricata-5.0.1/rules/intro.html#rule-options) for more details. @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String keyword; private @Nullable List settings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption defaults) { Objects.requireNonNull(defaults); this.keyword = defaults.keyword; this.settings = defaults.settings; } + @CustomType.Setter public Builder keyword(String keyword) { this.keyword = Objects.requireNonNull(keyword); return this; } + @CustomType.Setter public Builder settings(@Nullable List settings) { this.settings = settings; return this; } public Builder settings(String... settings) { return settings(List.of(settings)); - } public RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption build() { - return new RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption(keyword, settings); + } + public RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption build() { + final var o = new RuleGroupRuleGroupRulesSourceStatefulRuleRuleOption(); + o.keyword = keyword; + o.settings = settings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions.java index baf091ac75f..590ebed65a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions { * @return Set of configuration blocks containing custom action definitions that are available for use by the set of `stateless rule`. See Custom Action below for details. * */ - private final @Nullable List customActions; + private @Nullable List customActions; /** * @return Set of configuration blocks containing the stateless rules for use in the stateless rule group. See Stateless Rule below for details. * */ - private final List statelessRules; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions( - @CustomType.Parameter("customActions") @Nullable List customActions, - @CustomType.Parameter("statelessRules") List statelessRules) { - this.customActions = customActions; - this.statelessRules = statelessRules; - } + private List statelessRules; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions() {} /** * @return Set of configuration blocks containing custom action definitions that are available for use by the set of `stateless rule`. See Custom Action below for details. * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List customActions; private List statelessRules; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions defaults) { Objects.requireNonNull(defaults); this.customActions = defaults.customActions; this.statelessRules = defaults.statelessRules; } + @CustomType.Setter public Builder customActions(@Nullable List customActions) { this.customActions = customActions; return this; @@ -75,14 +65,19 @@ public Builder customActions(@Nullable List statelessRules) { this.statelessRules = Objects.requireNonNull(statelessRules); return this; } public Builder statelessRules(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule... statelessRules) { return statelessRules(List.of(statelessRules)); - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions(customActions, statelessRules); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActions(); + o.customActions = customActions; + o.statelessRules = statelessRules; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomAction.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomAction.java index b8d9e9d8523..c1d98a14cf3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomAction.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCu * @return A configuration block describing the custom action associated with the `action_name`. See Action Definition below for details. * */ - private final RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition actionDefinition; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition actionDefinition; /** * @return A friendly name of the custom action. * */ - private final String actionName; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomAction( - @CustomType.Parameter("actionDefinition") RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition actionDefinition, - @CustomType.Parameter("actionName") String actionName) { - this.actionDefinition = actionDefinition; - this.actionName = actionName; - } + private String actionName; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomAction() {} /** * @return A configuration block describing the custom action associated with the `action_name`. See Action Definition below for details. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition actionDefinition; private String actionName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomAction defaults) { Objects.requireNonNull(defaults); this.actionDefinition = defaults.actionDefinition; this.actionName = defaults.actionName; } + @CustomType.Setter public Builder actionDefinition(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition actionDefinition) { this.actionDefinition = Objects.requireNonNull(actionDefinition); return this; } + @CustomType.Setter public Builder actionName(String actionName) { this.actionName = Objects.requireNonNull(actionName); return this; - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomAction build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomAction(actionDefinition, actionName); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomAction build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomAction(); + o.actionDefinition = actionDefinition; + o.actionName = actionName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition.java index 1ba7c86e349..ab01df78b61 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCu * @return A configuration block describing the stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. You can pair this custom action with any of the standard stateless rule actions. See Publish Metric Action below for details. * */ - private final RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction publishMetricAction; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition(@CustomType.Parameter("publishMetricAction") RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction publishMetricAction) { - this.publishMetricAction = publishMetricAction; - } + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction publishMetricAction; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition() {} /** * @return A configuration block describing the stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. You can pair this custom action with any of the standard stateless rule actions. See Publish Metric Action below for details. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction publishMetricAction; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition defaults) { Objects.requireNonNull(defaults); this.publishMetricAction = defaults.publishMetricAction; } + @CustomType.Setter public Builder publishMetricAction(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction publishMetricAction) { this.publishMetricAction = Objects.requireNonNull(publishMetricAction); return this; - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition(publishMetricAction); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinition(); + o.publishMetricAction = publishMetricAction; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction.java index 18ee2b805b4..46e5981141c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCu * @return Set of configuration blocks containing the dimension settings to use for Amazon CloudWatch custom metrics. See Dimension below for details. * */ - private final List dimensions; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction(@CustomType.Parameter("dimensions") List dimensions) { - this.dimensions = dimensions; - } + private List dimensions; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction() {} /** * @return Set of configuration blocks containing the dimension settings to use for Amazon CloudWatch custom metrics. See Dimension below for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List dimensions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction defaults) { Objects.requireNonNull(defaults); this.dimensions = defaults.dimensions; } + @CustomType.Setter public Builder dimensions(List dimensions) { this.dimensions = Objects.requireNonNull(dimensions); return this; } public Builder dimensions(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension... dimensions) { return dimensions(List.of(dimensions)); - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction(dimensions); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricAction(); + o.dimensions = dimensions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension.java index c2fc3d77b17..c158b2ce143 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCu * @return The value to use in the custom metric dimension. * */ - private final String value; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension(@CustomType.Parameter("value") String value) { - this.value = value; - } + private String value; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension() {} /** * @return The value to use in the custom metric dimension. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension defaults) { Objects.requireNonNull(defaults); this.value = defaults.value; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension(value); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsCustomActionActionDefinitionPublishMetricActionDimension(); + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule.java index 7925fa2752f..9207f74fbff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsSt * @return A setting that indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group. AWS Network Firewall evaluates the rules in a rule group starting with the lowest priority setting. * */ - private final Integer priority; + private Integer priority; /** * @return A configuration block defining the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria. See Rule Definition below for details. * */ - private final RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition ruleDefinition; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("ruleDefinition") RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition ruleDefinition) { - this.priority = priority; - this.ruleDefinition = ruleDefinition; - } + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition ruleDefinition; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule() {} /** * @return A setting that indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group. AWS Network Firewall evaluates the rules in a rule group starting with the lowest priority setting. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition ruleDefinition; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.ruleDefinition = defaults.ruleDefinition; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder ruleDefinition(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition ruleDefinition) { this.ruleDefinition = Objects.requireNonNull(ruleDefinition); return this; - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule(priority, ruleDefinition); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRule(); + o.priority = priority; + o.ruleDefinition = ruleDefinition; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition.java index 8c4065dafc6..9471291f877 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition.java @@ -15,21 +15,14 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsSt * @return Set of actions to take on a packet that matches one of the stateless rule definition's `match_attributes`. For every rule you must specify 1 standard action, and you can add custom actions. Standard actions include: `aws:pass`, `aws:drop`, `aws:forward_to_sfe`. * */ - private final List actions; + private List actions; /** * @return A configuration block containing criteria for AWS Network Firewall to use to inspect an individual packet in stateless rule inspection. See Match Attributes below for details. * */ - private final RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes matchAttributes; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition( - @CustomType.Parameter("actions") List actions, - @CustomType.Parameter("matchAttributes") RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes matchAttributes) { - this.actions = actions; - this.matchAttributes = matchAttributes; - } + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes matchAttributes; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition() {} /** * @return Set of actions to take on a packet that matches one of the stateless rule definition's `match_attributes`. For every rule you must specify 1 standard action, and you can add custom actions. Standard actions include: `aws:pass`, `aws:drop`, `aws:forward_to_sfe`. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List actions; private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes matchAttributes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition defaults) { Objects.requireNonNull(defaults); this.actions = defaults.actions; this.matchAttributes = defaults.matchAttributes; } + @CustomType.Setter public Builder actions(List actions) { this.actions = Objects.requireNonNull(actions); return this; @@ -74,11 +64,16 @@ public Builder actions(List actions) { public Builder actions(String... actions) { return actions(List.of(actions)); } + @CustomType.Setter public Builder matchAttributes(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes matchAttributes) { this.matchAttributes = Objects.requireNonNull(matchAttributes); return this; - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition(actions, matchAttributes); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinition(); + o.actions = actions; + o.matchAttributes = matchAttributes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes.java index a4e7af4566d..69ea6ee20a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes.java @@ -20,49 +20,34 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsSt * @return Set of configuration blocks describing the destination ports to inspect for. If not specified, this matches with any destination port. See Destination Port below for details. * */ - private final @Nullable List destinationPorts; + private @Nullable List destinationPorts; /** * @return Set of configuration blocks describing the destination IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address. See Destination below for details. * */ - private final @Nullable List destinations; + private @Nullable List destinations; /** * @return Set of protocols to inspect for, specified using the protocol's assigned internet protocol number (IANA). If not specified, this matches with any protocol. * */ - private final @Nullable List protocols; + private @Nullable List protocols; /** * @return Set of configuration blocks describing the source ports to inspect for. If not specified, this matches with any source port. See Source Port below for details. * */ - private final @Nullable List sourcePorts; + private @Nullable List sourcePorts; /** * @return Set of configuration blocks describing the source IP address and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address. See Source below for details. * */ - private final @Nullable List sources; + private @Nullable List sources; /** * @return Set of configuration blocks containing the TCP flags and masks to inspect for. If not specified, this matches with any settings. * */ - private final @Nullable List tcpFlags; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes( - @CustomType.Parameter("destinationPorts") @Nullable List destinationPorts, - @CustomType.Parameter("destinations") @Nullable List destinations, - @CustomType.Parameter("protocols") @Nullable List protocols, - @CustomType.Parameter("sourcePorts") @Nullable List sourcePorts, - @CustomType.Parameter("sources") @Nullable List sources, - @CustomType.Parameter("tcpFlags") @Nullable List tcpFlags) { - this.destinationPorts = destinationPorts; - this.destinations = destinations; - this.protocols = protocols; - this.sourcePorts = sourcePorts; - this.sources = sources; - this.tcpFlags = tcpFlags; - } + private @Nullable List tcpFlags; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes() {} /** * @return Set of configuration blocks describing the destination ports to inspect for. If not specified, this matches with any destination port. See Destination Port below for details. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List destinationPorts; private @Nullable List destinations; @@ -121,11 +106,7 @@ public static final class Builder { private @Nullable List sourcePorts; private @Nullable List sources; private @Nullable List tcpFlags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes defaults) { Objects.requireNonNull(defaults); this.destinationPorts = defaults.destinationPorts; @@ -136,6 +117,7 @@ public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatel this.tcpFlags = defaults.tcpFlags; } + @CustomType.Setter public Builder destinationPorts(@Nullable List destinationPorts) { this.destinationPorts = destinationPorts; return this; @@ -143,6 +125,7 @@ public Builder destinationPorts(@Nullable List destinations) { this.destinations = destinations; return this; @@ -150,6 +133,7 @@ public Builder destinations(@Nullable List protocols) { this.protocols = protocols; return this; @@ -157,6 +141,7 @@ public Builder protocols(@Nullable List protocols) { public Builder protocols(Integer... protocols) { return protocols(List.of(protocols)); } + @CustomType.Setter public Builder sourcePorts(@Nullable List sourcePorts) { this.sourcePorts = sourcePorts; return this; @@ -164,6 +149,7 @@ public Builder sourcePorts(@Nullable List sources) { this.sources = sources; return this; @@ -171,14 +157,23 @@ public Builder sources(@Nullable List tcpFlags) { this.tcpFlags = tcpFlags; return this; } public Builder tcpFlags(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag... tcpFlags) { return tcpFlags(List.of(tcpFlags)); - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes(destinationPorts, destinations, protocols, sourcePorts, sources, tcpFlags); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributes(); + o.destinationPorts = destinationPorts; + o.destinations = destinations; + o.protocols = protocols; + o.sourcePorts = sourcePorts; + o.sources = sources; + o.tcpFlags = tcpFlags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestination.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestination.java index 9222bec5fdb..b691e723a7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestination.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsSt * @return An IP address or a block of IP addresses in CIDR notation. AWS Network Firewall supports all address ranges for IPv4. * */ - private final String addressDefinition; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestination(@CustomType.Parameter("addressDefinition") String addressDefinition) { - this.addressDefinition = addressDefinition; - } + private String addressDefinition; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestination() {} /** * @return An IP address or a block of IP addresses in CIDR notation. AWS Network Firewall supports all address ranges for IPv4. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String addressDefinition; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestination defaults) { Objects.requireNonNull(defaults); this.addressDefinition = defaults.addressDefinition; } + @CustomType.Setter public Builder addressDefinition(String addressDefinition) { this.addressDefinition = Objects.requireNonNull(addressDefinition); return this; - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestination build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestination(addressDefinition); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestination build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestination(); + o.addressDefinition = addressDefinition; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestinationPort.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestinationPort.java index 693f819568a..b770fee5993 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestinationPort.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestinationPort.java @@ -15,21 +15,14 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsSt * @return The lower limit of the port range. This must be less than or equal to the `to_port`. * */ - private final Integer fromPort; + private Integer fromPort; /** * @return The upper limit of the port range. This must be greater than or equal to the `from_port`. * */ - private final @Nullable Integer toPort; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestinationPort( - @CustomType.Parameter("fromPort") Integer fromPort, - @CustomType.Parameter("toPort") @Nullable Integer toPort) { - this.fromPort = fromPort; - this.toPort = toPort; - } + private @Nullable Integer toPort; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestinationPort() {} /** * @return The lower limit of the port range. This must be less than or equal to the `to_port`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestinationPort defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer fromPort; private @Nullable Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestinationPort defaults) { Objects.requireNonNull(defaults); this.fromPort = defaults.fromPort; this.toPort = defaults.toPort; } + @CustomType.Setter public Builder fromPort(Integer fromPort) { this.fromPort = Objects.requireNonNull(fromPort); return this; } + @CustomType.Setter public Builder toPort(@Nullable Integer toPort) { this.toPort = toPort; return this; - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestinationPort build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestinationPort(fromPort, toPort); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestinationPort build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesDestinationPort(); + o.fromPort = fromPort; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSource.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSource.java index 343955c5ce4..0c97e377da0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSource.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsSt * @return An IP address or a block of IP addresses in CIDR notation. AWS Network Firewall supports all address ranges for IPv4. * */ - private final String addressDefinition; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSource(@CustomType.Parameter("addressDefinition") String addressDefinition) { - this.addressDefinition = addressDefinition; - } + private String addressDefinition; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSource() {} /** * @return An IP address or a block of IP addresses in CIDR notation. AWS Network Firewall supports all address ranges for IPv4. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String addressDefinition; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSource defaults) { Objects.requireNonNull(defaults); this.addressDefinition = defaults.addressDefinition; } + @CustomType.Setter public Builder addressDefinition(String addressDefinition) { this.addressDefinition = Objects.requireNonNull(addressDefinition); return this; - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSource build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSource(addressDefinition); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSource build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSource(); + o.addressDefinition = addressDefinition; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSourcePort.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSourcePort.java index f3d4ca37520..54e00976988 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSourcePort.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSourcePort.java @@ -15,21 +15,14 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsSt * @return The lower limit of the port range. This must be less than or equal to the `to_port`. * */ - private final Integer fromPort; + private Integer fromPort; /** * @return The upper limit of the port range. This must be greater than or equal to the `from_port`. * */ - private final @Nullable Integer toPort; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSourcePort( - @CustomType.Parameter("fromPort") Integer fromPort, - @CustomType.Parameter("toPort") @Nullable Integer toPort) { - this.fromPort = fromPort; - this.toPort = toPort; - } + private @Nullable Integer toPort; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSourcePort() {} /** * @return The lower limit of the port range. This must be less than or equal to the `to_port`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSourcePort defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer fromPort; private @Nullable Integer toPort; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSourcePort defaults) { Objects.requireNonNull(defaults); this.fromPort = defaults.fromPort; this.toPort = defaults.toPort; } + @CustomType.Setter public Builder fromPort(Integer fromPort) { this.fromPort = Objects.requireNonNull(fromPort); return this; } + @CustomType.Setter public Builder toPort(@Nullable Integer toPort) { this.toPort = toPort; return this; - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSourcePort build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSourcePort(fromPort, toPort); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSourcePort build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesSourcePort(); + o.fromPort = fromPort; + o.toPort = toPort; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag.java index d0df4c39b74..427a3afcd64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag.java @@ -16,22 +16,15 @@ public final class RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsSt * Valid values: `FIN`, `SYN`, `RST`, `PSH`, `ACK`, `URG`, `ECE`, `CWR`. * */ - private final List flags; + private List flags; /** * @return Set of flags to consider in the inspection. To inspect all flags, leave this empty. * Valid values: `FIN`, `SYN`, `RST`, `PSH`, `ACK`, `URG`, `ECE`, `CWR`. * */ - private final @Nullable List masks; - - @CustomType.Constructor - private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag( - @CustomType.Parameter("flags") List flags, - @CustomType.Parameter("masks") @Nullable List masks) { - this.flags = flags; - this.masks = masks; - } + private @Nullable List masks; + private RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag() {} /** * @return Set of flags to look for in a packet. This setting can only specify values that are also specified in `masks`. * Valid values: `FIN`, `SYN`, `RST`, `PSH`, `ACK`, `URG`, `ECE`, `CWR`. @@ -56,21 +49,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List flags; private @Nullable List masks; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag defaults) { Objects.requireNonNull(defaults); this.flags = defaults.flags; this.masks = defaults.masks; } + @CustomType.Setter public Builder flags(List flags) { this.flags = Objects.requireNonNull(flags); return this; @@ -78,14 +68,19 @@ public Builder flags(List flags) { public Builder flags(String... flags) { return flags(List.of(flags)); } + @CustomType.Setter public Builder masks(@Nullable List masks) { this.masks = masks; return this; } public Builder masks(String... masks) { return masks(List.of(masks)); - } public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag build() { - return new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag(flags, masks); + } + public RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag build() { + final var o = new RuleGroupRuleGroupRulesSourceStatelessRulesAndCustomActionsStatelessRuleRuleDefinitionMatchAttributesTcpFlag(); + o.flags = flags; + o.masks = masks; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupStatefulRuleOptions.java b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupStatefulRuleOptions.java index 42614b53548..0bc0a663aef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupStatefulRuleOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkfirewall/outputs/RuleGroupRuleGroupStatefulRuleOptions.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleGroupStatefulRuleOptions { * @return Indicates how to manage the order of the rule evaluation for the rule group. Default value: `DEFAULT_ACTION_ORDER`. Valid values: `DEFAULT_ACTION_ORDER`, `STRICT_ORDER`. * */ - private final String ruleOrder; - - @CustomType.Constructor - private RuleGroupRuleGroupStatefulRuleOptions(@CustomType.Parameter("ruleOrder") String ruleOrder) { - this.ruleOrder = ruleOrder; - } + private String ruleOrder; + private RuleGroupRuleGroupStatefulRuleOptions() {} /** * @return Indicates how to manage the order of the rule evaluation for the rule group. Default value: `DEFAULT_ACTION_ORDER`. Valid values: `DEFAULT_ACTION_ORDER`, `STRICT_ORDER`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleGroupStatefulRuleOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String ruleOrder; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleGroupStatefulRuleOptions defaults) { Objects.requireNonNull(defaults); this.ruleOrder = defaults.ruleOrder; } + @CustomType.Setter public Builder ruleOrder(String ruleOrder) { this.ruleOrder = Objects.requireNonNull(ruleOrder); return this; - } public RuleGroupRuleGroupStatefulRuleOptions build() { - return new RuleGroupRuleGroupStatefulRuleOptions(ruleOrder); + } + public RuleGroupRuleGroupStatefulRuleOptions build() { + final var o = new RuleGroupRuleGroupStatefulRuleOptions(); + o.ruleOrder = ruleOrder; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/DeviceAwsLocation.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/DeviceAwsLocation.java index b0d6cd1772d..d104db6d0e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/DeviceAwsLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/DeviceAwsLocation.java @@ -15,21 +15,14 @@ public final class DeviceAwsLocation { * @return The Amazon Resource Name (ARN) of the subnet that the device is located in. * */ - private final @Nullable String subnetArn; + private @Nullable String subnetArn; /** * @return The Zone that the device is located in. Specify the ID of an Availability Zone, Local Zone, Wavelength Zone, or an Outpost. * */ - private final @Nullable String zone; - - @CustomType.Constructor - private DeviceAwsLocation( - @CustomType.Parameter("subnetArn") @Nullable String subnetArn, - @CustomType.Parameter("zone") @Nullable String zone) { - this.subnetArn = subnetArn; - this.zone = zone; - } + private @Nullable String zone; + private DeviceAwsLocation() {} /** * @return The Amazon Resource Name (ARN) of the subnet that the device is located in. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DeviceAwsLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String subnetArn; private @Nullable String zone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeviceAwsLocation defaults) { Objects.requireNonNull(defaults); this.subnetArn = defaults.subnetArn; this.zone = defaults.zone; } + @CustomType.Setter public Builder subnetArn(@Nullable String subnetArn) { this.subnetArn = subnetArn; return this; } + @CustomType.Setter public Builder zone(@Nullable String zone) { this.zone = zone; return this; - } public DeviceAwsLocation build() { - return new DeviceAwsLocation(subnetArn, zone); + } + public DeviceAwsLocation build() { + final var o = new DeviceAwsLocation(); + o.subnetArn = subnetArn; + o.zone = zone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/DeviceLocation.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/DeviceLocation.java index f04850770e5..00bfaa9a722 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/DeviceLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/DeviceLocation.java @@ -15,28 +15,19 @@ public final class DeviceLocation { * @return The physical address. * */ - private final @Nullable String address; + private @Nullable String address; /** * @return The latitude. * */ - private final @Nullable String latitude; + private @Nullable String latitude; /** * @return The longitude. * */ - private final @Nullable String longitude; - - @CustomType.Constructor - private DeviceLocation( - @CustomType.Parameter("address") @Nullable String address, - @CustomType.Parameter("latitude") @Nullable String latitude, - @CustomType.Parameter("longitude") @Nullable String longitude) { - this.address = address; - this.latitude = latitude; - this.longitude = longitude; - } + private @Nullable String longitude; + private DeviceLocation() {} /** * @return The physical address. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(DeviceLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String address; private @Nullable String latitude; private @Nullable String longitude; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeviceLocation defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; @@ -83,19 +70,27 @@ public Builder(DeviceLocation defaults) { this.longitude = defaults.longitude; } + @CustomType.Setter public Builder address(@Nullable String address) { this.address = address; return this; } + @CustomType.Setter public Builder latitude(@Nullable String latitude) { this.latitude = latitude; return this; } + @CustomType.Setter public Builder longitude(@Nullable String longitude) { this.longitude = longitude; return this; - } public DeviceLocation build() { - return new DeviceLocation(address, latitude, longitude); + } + public DeviceLocation build() { + final var o = new DeviceLocation(); + o.address = address; + o.latitude = latitude; + o.longitude = longitude; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetConnectionResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetConnectionResult.java index c7cad65bbe3..72fd9276756 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetConnectionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetConnectionResult.java @@ -14,69 +14,46 @@ public final class GetConnectionResult { * @return The ARN of the connection. * */ - private final String arn; + private String arn; /** * @return The ID of the second device in the connection. * */ - private final String connectedDeviceId; + private String connectedDeviceId; /** * @return The ID of the link for the second device. * */ - private final String connectedLinkId; - private final String connectionId; + private String connectedLinkId; + private String connectionId; /** * @return A description of the connection. * */ - private final String description; + private String description; /** * @return The ID of the first device in the connection. * */ - private final String deviceId; - private final String globalNetworkId; + private String deviceId; + private String globalNetworkId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The ID of the link for the first device. * */ - private final String linkId; + private String linkId; /** * @return Key-value tags for the connection. * */ - private final Map tags; - - @CustomType.Constructor - private GetConnectionResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("connectedDeviceId") String connectedDeviceId, - @CustomType.Parameter("connectedLinkId") String connectedLinkId, - @CustomType.Parameter("connectionId") String connectionId, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("deviceId") String deviceId, - @CustomType.Parameter("globalNetworkId") String globalNetworkId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("linkId") String linkId, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.connectedDeviceId = connectedDeviceId; - this.connectedLinkId = connectedLinkId; - this.connectionId = connectionId; - this.description = description; - this.deviceId = deviceId; - this.globalNetworkId = globalNetworkId; - this.id = id; - this.linkId = linkId; - this.tags = tags; - } + private Map tags; + private GetConnectionResult() {} /** * @return The ARN of the connection. * @@ -147,7 +124,7 @@ public static Builder builder() { public static Builder builder(GetConnectionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String connectedDeviceId; @@ -159,11 +136,7 @@ public static final class Builder { private String id; private String linkId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConnectionResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -178,47 +151,69 @@ public Builder(GetConnectionResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder connectedDeviceId(String connectedDeviceId) { this.connectedDeviceId = Objects.requireNonNull(connectedDeviceId); return this; } + @CustomType.Setter public Builder connectedLinkId(String connectedLinkId) { this.connectedLinkId = Objects.requireNonNull(connectedLinkId); return this; } + @CustomType.Setter public Builder connectionId(String connectionId) { this.connectionId = Objects.requireNonNull(connectionId); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder deviceId(String deviceId) { this.deviceId = Objects.requireNonNull(deviceId); return this; } + @CustomType.Setter public Builder globalNetworkId(String globalNetworkId) { this.globalNetworkId = Objects.requireNonNull(globalNetworkId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder linkId(String linkId) { this.linkId = Objects.requireNonNull(linkId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetConnectionResult build() { - return new GetConnectionResult(arn, connectedDeviceId, connectedLinkId, connectionId, description, deviceId, globalNetworkId, id, linkId, tags); + } + public GetConnectionResult build() { + final var o = new GetConnectionResult(); + o.arn = arn; + o.connectedDeviceId = connectedDeviceId; + o.connectedLinkId = connectedLinkId; + o.connectionId = connectionId; + o.description = description; + o.deviceId = deviceId; + o.globalNetworkId = globalNetworkId; + o.id = id; + o.linkId = linkId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetConnectionsResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetConnectionsResult.java index 9fd289142c3..5cca67c3a03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetConnectionsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetConnectionsResult.java @@ -13,34 +13,21 @@ @CustomType public final class GetConnectionsResult { - private final @Nullable String deviceId; - private final String globalNetworkId; + private @Nullable String deviceId; + private String globalNetworkId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The IDs of the connections. * */ - private final List ids; - private final @Nullable Map tags; - - @CustomType.Constructor - private GetConnectionsResult( - @CustomType.Parameter("deviceId") @Nullable String deviceId, - @CustomType.Parameter("globalNetworkId") String globalNetworkId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.deviceId = deviceId; - this.globalNetworkId = globalNetworkId; - this.id = id; - this.ids = ids; - this.tags = tags; - } + private List ids; + private @Nullable Map tags; + private GetConnectionsResult() {} public Optional deviceId() { return Optional.ofNullable(this.deviceId); } @@ -72,18 +59,14 @@ public static Builder builder() { public static Builder builder(GetConnectionsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deviceId; private String globalNetworkId; private String id; private List ids; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConnectionsResult defaults) { Objects.requireNonNull(defaults); this.deviceId = defaults.deviceId; @@ -93,18 +76,22 @@ public Builder(GetConnectionsResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder deviceId(@Nullable String deviceId) { this.deviceId = deviceId; return this; } + @CustomType.Setter public Builder globalNetworkId(String globalNetworkId) { this.globalNetworkId = Objects.requireNonNull(globalNetworkId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -112,11 +99,19 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public GetConnectionsResult build() { - return new GetConnectionsResult(deviceId, globalNetworkId, id, ids, tags); + } + public GetConnectionsResult build() { + final var o = new GetConnectionsResult(); + o.deviceId = deviceId; + o.globalNetworkId = globalNetworkId; + o.id = id; + o.ids = ids; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentAttachmentPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentAttachmentPolicy.java index debae22eed8..5ad6c9434f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentAttachmentPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentAttachmentPolicy.java @@ -19,42 +19,29 @@ public final class GetCoreNetworkPolicyDocumentAttachmentPolicy { * @return The action to take for the chosen segment. Valid values `create-route` or `share`. * */ - private final GetCoreNetworkPolicyDocumentAttachmentPolicyAction action; + private GetCoreNetworkPolicyDocumentAttachmentPolicyAction action; /** * @return Valid values include `and` or `or`. This is a mandatory parameter only if you have more than one condition. The `condition_logic` apply to all of the conditions for a rule, which also means nested conditions of `and` or `or` are not supported. Use `or` if you want to associate the attachment with the segment by either the segment name or attachment tag value, or by the chosen conditions. Use `and` if you want to associate the attachment with the segment by either the segment name or attachment tag value and by the chosen conditions. Detailed Below. * */ - private final @Nullable String conditionLogic; + private @Nullable String conditionLogic; /** * @return A block argument. Detailed Below. * */ - private final List conditions; + private List conditions; /** * @return A user-defined string describing the segment action. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return An integer from `1` to `65535` indicating the rule's order number. Rules are processed in order from the lowest numbered rule to the highest. Rules stop processing when a rule is matched. It's important to make sure that you number your rules in the exact order that you want them processed. * */ - private final Integer ruleNumber; - - @CustomType.Constructor - private GetCoreNetworkPolicyDocumentAttachmentPolicy( - @CustomType.Parameter("action") GetCoreNetworkPolicyDocumentAttachmentPolicyAction action, - @CustomType.Parameter("conditionLogic") @Nullable String conditionLogic, - @CustomType.Parameter("conditions") List conditions, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("ruleNumber") Integer ruleNumber) { - this.action = action; - this.conditionLogic = conditionLogic; - this.conditions = conditions; - this.description = description; - this.ruleNumber = ruleNumber; - } + private Integer ruleNumber; + private GetCoreNetworkPolicyDocumentAttachmentPolicy() {} /** * @return The action to take for the chosen segment. Valid values `create-route` or `share`. * @@ -98,18 +85,14 @@ public static Builder builder() { public static Builder builder(GetCoreNetworkPolicyDocumentAttachmentPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private GetCoreNetworkPolicyDocumentAttachmentPolicyAction action; private @Nullable String conditionLogic; private List conditions; private @Nullable String description; private Integer ruleNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCoreNetworkPolicyDocumentAttachmentPolicy defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -119,14 +102,17 @@ public Builder(GetCoreNetworkPolicyDocumentAttachmentPolicy defaults) { this.ruleNumber = defaults.ruleNumber; } + @CustomType.Setter public Builder action(GetCoreNetworkPolicyDocumentAttachmentPolicyAction action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder conditionLogic(@Nullable String conditionLogic) { this.conditionLogic = conditionLogic; return this; } + @CustomType.Setter public Builder conditions(List conditions) { this.conditions = Objects.requireNonNull(conditions); return this; @@ -134,15 +120,24 @@ public Builder conditions(List asnRanges; + private List asnRanges; /** * @return A list of strings of AWS Region names. Allows you to define a more restrictive set of Regions for a segment. The edge location must be a subset of the locations that are defined for `edge_locations` in the `core_network_configuration`. * */ - private final List edgeLocations; + private List edgeLocations; /** * @return The local CIDR blocks for this Core Network Edge for AWS Transit Gateway Connect attachments. By default, this CIDR block will be one or more optional IPv4 and IPv6 CIDR prefixes auto-assigned from `inside_cidr_blocks`. * */ - private final @Nullable List insideCidrBlocks; + private @Nullable List insideCidrBlocks; /** * @return Indicates whether the core network forwards traffic over multiple equal-cost routes using VPN. The value can be either `true` or `false`. The default is `true`. * */ - private final @Nullable Boolean vpnEcmpSupport; - - @CustomType.Constructor - private GetCoreNetworkPolicyDocumentCoreNetworkConfiguration( - @CustomType.Parameter("asnRanges") List asnRanges, - @CustomType.Parameter("edgeLocations") List edgeLocations, - @CustomType.Parameter("insideCidrBlocks") @Nullable List insideCidrBlocks, - @CustomType.Parameter("vpnEcmpSupport") @Nullable Boolean vpnEcmpSupport) { - this.asnRanges = asnRanges; - this.edgeLocations = edgeLocations; - this.insideCidrBlocks = insideCidrBlocks; - this.vpnEcmpSupport = vpnEcmpSupport; - } + private @Nullable Boolean vpnEcmpSupport; + private GetCoreNetworkPolicyDocumentCoreNetworkConfiguration() {} /** * @return List of strings containing Autonomous System Numbers (ASNs) to assign to Core Network Edges. By default, the core network automatically assigns an ASN for each Core Network Edge but you can optionally define the ASN in the edge-locations for each Region. The ASN uses an array of integer ranges only from `64512` to `65534` and `4200000000` to `4294967294` expressed as a string like `"64512-65534"`. No other ASN ranges can be used. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(GetCoreNetworkPolicyDocumentCoreNetworkConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List asnRanges; private List edgeLocations; private @Nullable List insideCidrBlocks; private @Nullable Boolean vpnEcmpSupport; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCoreNetworkPolicyDocumentCoreNetworkConfiguration defaults) { Objects.requireNonNull(defaults); this.asnRanges = defaults.asnRanges; @@ -102,6 +87,7 @@ public Builder(GetCoreNetworkPolicyDocumentCoreNetworkConfiguration defaults) { this.vpnEcmpSupport = defaults.vpnEcmpSupport; } + @CustomType.Setter public Builder asnRanges(List asnRanges) { this.asnRanges = Objects.requireNonNull(asnRanges); return this; @@ -109,6 +95,7 @@ public Builder asnRanges(List asnRanges) { public Builder asnRanges(String... asnRanges) { return asnRanges(List.of(asnRanges)); } + @CustomType.Setter public Builder edgeLocations(List edgeLocations) { this.edgeLocations = Objects.requireNonNull(edgeLocations); return this; @@ -116,6 +103,7 @@ public Builder edgeLocations(List insideCidrBlocks) { this.insideCidrBlocks = insideCidrBlocks; return this; @@ -123,11 +111,18 @@ public Builder insideCidrBlocks(@Nullable List insideCidrBlocks) { public Builder insideCidrBlocks(String... insideCidrBlocks) { return insideCidrBlocks(List.of(insideCidrBlocks)); } + @CustomType.Setter public Builder vpnEcmpSupport(@Nullable Boolean vpnEcmpSupport) { this.vpnEcmpSupport = vpnEcmpSupport; return this; - } public GetCoreNetworkPolicyDocumentCoreNetworkConfiguration build() { - return new GetCoreNetworkPolicyDocumentCoreNetworkConfiguration(asnRanges, edgeLocations, insideCidrBlocks, vpnEcmpSupport); + } + public GetCoreNetworkPolicyDocumentCoreNetworkConfiguration build() { + final var o = new GetCoreNetworkPolicyDocumentCoreNetworkConfiguration(); + o.asnRanges = asnRanges; + o.edgeLocations = edgeLocations; + o.insideCidrBlocks = insideCidrBlocks; + o.vpnEcmpSupport = vpnEcmpSupport; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation.java index 185d984dc7f..9058657aac8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation.java @@ -17,24 +17,15 @@ public final class GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocat * @return The ASN of the Core Network Edge in an AWS Region. By default, the ASN will be a single integer automatically assigned from `asn_ranges` * */ - private final @Nullable Integer asn; + private @Nullable Integer asn; /** * @return The local CIDR blocks for this Core Network Edge for AWS Transit Gateway Connect attachments. By default, this CIDR block will be one or more optional IPv4 and IPv6 CIDR prefixes auto-assigned from `inside_cidr_blocks`. * */ - private final @Nullable List insideCidrBlocks; - private final String location; - - @CustomType.Constructor - private GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation( - @CustomType.Parameter("asn") @Nullable Integer asn, - @CustomType.Parameter("insideCidrBlocks") @Nullable List insideCidrBlocks, - @CustomType.Parameter("location") String location) { - this.asn = asn; - this.insideCidrBlocks = insideCidrBlocks; - this.location = location; - } + private @Nullable List insideCidrBlocks; + private String location; + private GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation() {} /** * @return The ASN of the Core Network Edge in an AWS Region. By default, the ASN will be a single integer automatically assigned from `asn_ranges` * @@ -60,16 +51,12 @@ public static Builder builder() { public static Builder builder(GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer asn; private @Nullable List insideCidrBlocks; private String location; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation defaults) { Objects.requireNonNull(defaults); this.asn = defaults.asn; @@ -77,10 +64,12 @@ public Builder(GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation this.location = defaults.location; } + @CustomType.Setter public Builder asn(@Nullable Integer asn) { this.asn = asn; return this; } + @CustomType.Setter public Builder insideCidrBlocks(@Nullable List insideCidrBlocks) { this.insideCidrBlocks = insideCidrBlocks; return this; @@ -88,11 +77,17 @@ public Builder insideCidrBlocks(@Nullable List insideCidrBlocks) { public Builder insideCidrBlocks(String... insideCidrBlocks) { return insideCidrBlocks(List.of(insideCidrBlocks)); } + @CustomType.Setter public Builder location(String location) { this.location = Objects.requireNonNull(location); return this; - } public GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation build() { - return new GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation(asn, insideCidrBlocks, location); + } + public GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation build() { + final var o = new GetCoreNetworkPolicyDocumentCoreNetworkConfigurationEdgeLocation(); + o.asn = asn; + o.insideCidrBlocks = insideCidrBlocks; + o.location = location; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentResult.java index 12e23e516ad..708f87452d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentResult.java @@ -16,40 +16,23 @@ @CustomType public final class GetCoreNetworkPolicyDocumentResult { - private final @Nullable List attachmentPolicies; - private final List coreNetworkConfigurations; + private @Nullable List attachmentPolicies; + private List coreNetworkConfigurations; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Standard JSON policy document rendered based on the arguments above. * */ - private final String json; - private final @Nullable List segmentActions; - private final List segments; - private final @Nullable String version; - - @CustomType.Constructor - private GetCoreNetworkPolicyDocumentResult( - @CustomType.Parameter("attachmentPolicies") @Nullable List attachmentPolicies, - @CustomType.Parameter("coreNetworkConfigurations") List coreNetworkConfigurations, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("json") String json, - @CustomType.Parameter("segmentActions") @Nullable List segmentActions, - @CustomType.Parameter("segments") List segments, - @CustomType.Parameter("version") @Nullable String version) { - this.attachmentPolicies = attachmentPolicies; - this.coreNetworkConfigurations = coreNetworkConfigurations; - this.id = id; - this.json = json; - this.segmentActions = segmentActions; - this.segments = segments; - this.version = version; - } + private String json; + private @Nullable List segmentActions; + private List segments; + private @Nullable String version; + private GetCoreNetworkPolicyDocumentResult() {} public List attachmentPolicies() { return this.attachmentPolicies == null ? List.of() : this.attachmentPolicies; } @@ -87,7 +70,7 @@ public static Builder builder() { public static Builder builder(GetCoreNetworkPolicyDocumentResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List attachmentPolicies; private List coreNetworkConfigurations; @@ -96,11 +79,7 @@ public static final class Builder { private @Nullable List segmentActions; private List segments; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCoreNetworkPolicyDocumentResult defaults) { Objects.requireNonNull(defaults); this.attachmentPolicies = defaults.attachmentPolicies; @@ -112,6 +91,7 @@ public Builder(GetCoreNetworkPolicyDocumentResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder attachmentPolicies(@Nullable List attachmentPolicies) { this.attachmentPolicies = attachmentPolicies; return this; @@ -119,6 +99,7 @@ public Builder attachmentPolicies(@Nullable List coreNetworkConfigurations) { this.coreNetworkConfigurations = Objects.requireNonNull(coreNetworkConfigurations); return this; @@ -126,14 +107,17 @@ public Builder coreNetworkConfigurations(List segmentActions) { this.segmentActions = segmentActions; return this; @@ -141,6 +125,7 @@ public Builder segmentActions(@Nullable List segments) { this.segments = Objects.requireNonNull(segments); return this; @@ -148,11 +133,21 @@ public Builder segments(List segments) { public Builder segments(GetCoreNetworkPolicyDocumentSegment... segments) { return segments(List.of(segments)); } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public GetCoreNetworkPolicyDocumentResult build() { - return new GetCoreNetworkPolicyDocumentResult(attachmentPolicies, coreNetworkConfigurations, id, json, segmentActions, segments, version); + } + public GetCoreNetworkPolicyDocumentResult build() { + final var o = new GetCoreNetworkPolicyDocumentResult(); + o.attachmentPolicies = attachmentPolicies; + o.coreNetworkConfigurations = coreNetworkConfigurations; + o.id = id; + o.json = json; + o.segmentActions = segmentActions; + o.segments = segments; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentSegment.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentSegment.java index 15e75a85a48..2d8ee41d7c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentSegment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentSegment.java @@ -17,56 +17,39 @@ public final class GetCoreNetworkPolicyDocumentSegment { * @return List of strings of segment names that explicitly allows only routes from the segments that are listed in the array. Use the `allow_filter` setting if a segment has a well-defined group of other segments that connectivity should be restricted to. It is applied after routes have been shared in `segment_actions`. If a segment is listed in `allow_filter`, attachments between the two segments will have routes if they are also shared in the segment-actions area. For example, you might have a segment named "video-producer" that should only ever share routes with a "video-distributor" segment, no matter how many other share statements are created. * */ - private final @Nullable List allowFilters; + private @Nullable List allowFilters; /** * @return An array of segments that disallows routes from the segments listed in the array. It is applied only after routes have been shared in `segment_actions`. If a segment is listed in the `deny_filter`, attachments between the two segments will never have routes shared across them. For example, you might have a "financial" payment segment that should never share routes with a "development" segment, regardless of how many other share statements are created. Adding the payments segment to the deny-filter parameter prevents any shared routes from being created with other segments. * */ - private final @Nullable List denyFilters; + private @Nullable List denyFilters; /** * @return A user-defined string describing the segment action. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return A list of strings of AWS Region names. Allows you to define a more restrictive set of Regions for a segment. The edge location must be a subset of the locations that are defined for `edge_locations` in the `core_network_configuration`. * */ - private final @Nullable List edgeLocations; + private @Nullable List edgeLocations; /** * @return This Boolean setting determines whether attachments on the same segment can communicate with each other. If set to `true`, the only routes available will be either shared routes through the share actions, which are attachments in other segments, or static routes. The default value is `false`. For example, you might have a segment dedicated to "development" that should never allow VPCs to talk to each other, even if they’re on the same segment. In this example, you would keep the default parameter of `false`. * */ - private final @Nullable Boolean isolateAttachments; + private @Nullable Boolean isolateAttachments; /** * @return A unique name for a segment. The name is a string used in other parts of the policy document, as well as in the console for metrics and other reference points. Valid characters are a–z, and 0–9. * */ - private final String name; + private String name; /** * @return This Boolean setting determines whether attachment requests are automatically approved or require acceptance. The default is `true`, indicating that attachment requests require acceptance. For example, you might use this setting to allow a "sandbox" segment to allow any attachment request so that a core network or attachment administrator does not need to review and approve attachment requests. In this example, `require_attachment_acceptance` is set to `false`. * */ - private final @Nullable Boolean requireAttachmentAcceptance; - - @CustomType.Constructor - private GetCoreNetworkPolicyDocumentSegment( - @CustomType.Parameter("allowFilters") @Nullable List allowFilters, - @CustomType.Parameter("denyFilters") @Nullable List denyFilters, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("edgeLocations") @Nullable List edgeLocations, - @CustomType.Parameter("isolateAttachments") @Nullable Boolean isolateAttachments, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("requireAttachmentAcceptance") @Nullable Boolean requireAttachmentAcceptance) { - this.allowFilters = allowFilters; - this.denyFilters = denyFilters; - this.description = description; - this.edgeLocations = edgeLocations; - this.isolateAttachments = isolateAttachments; - this.name = name; - this.requireAttachmentAcceptance = requireAttachmentAcceptance; - } + private @Nullable Boolean requireAttachmentAcceptance; + private GetCoreNetworkPolicyDocumentSegment() {} /** * @return List of strings of segment names that explicitly allows only routes from the segments that are listed in the array. Use the `allow_filter` setting if a segment has a well-defined group of other segments that connectivity should be restricted to. It is applied after routes have been shared in `segment_actions`. If a segment is listed in `allow_filter`, attachments between the two segments will have routes if they are also shared in the segment-actions area. For example, you might have a segment named "video-producer" that should only ever share routes with a "video-distributor" segment, no matter how many other share statements are created. * @@ -124,7 +107,7 @@ public static Builder builder() { public static Builder builder(GetCoreNetworkPolicyDocumentSegment defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List allowFilters; private @Nullable List denyFilters; @@ -133,11 +116,7 @@ public static final class Builder { private @Nullable Boolean isolateAttachments; private String name; private @Nullable Boolean requireAttachmentAcceptance; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCoreNetworkPolicyDocumentSegment defaults) { Objects.requireNonNull(defaults); this.allowFilters = defaults.allowFilters; @@ -149,6 +128,7 @@ public Builder(GetCoreNetworkPolicyDocumentSegment defaults) { this.requireAttachmentAcceptance = defaults.requireAttachmentAcceptance; } + @CustomType.Setter public Builder allowFilters(@Nullable List allowFilters) { this.allowFilters = allowFilters; return this; @@ -156,6 +136,7 @@ public Builder allowFilters(@Nullable List allowFilters) { public Builder allowFilters(String... allowFilters) { return allowFilters(List.of(allowFilters)); } + @CustomType.Setter public Builder denyFilters(@Nullable List denyFilters) { this.denyFilters = denyFilters; return this; @@ -163,10 +144,12 @@ public Builder denyFilters(@Nullable List denyFilters) { public Builder denyFilters(String... denyFilters) { return denyFilters(List.of(denyFilters)); } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder edgeLocations(@Nullable List edgeLocations) { this.edgeLocations = edgeLocations; return this; @@ -174,19 +157,31 @@ public Builder edgeLocations(@Nullable List edgeLocations) { public Builder edgeLocations(String... edgeLocations) { return edgeLocations(List.of(edgeLocations)); } + @CustomType.Setter public Builder isolateAttachments(@Nullable Boolean isolateAttachments) { this.isolateAttachments = isolateAttachments; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder requireAttachmentAcceptance(@Nullable Boolean requireAttachmentAcceptance) { this.requireAttachmentAcceptance = requireAttachmentAcceptance; return this; - } public GetCoreNetworkPolicyDocumentSegment build() { - return new GetCoreNetworkPolicyDocumentSegment(allowFilters, denyFilters, description, edgeLocations, isolateAttachments, name, requireAttachmentAcceptance); + } + public GetCoreNetworkPolicyDocumentSegment build() { + final var o = new GetCoreNetworkPolicyDocumentSegment(); + o.allowFilters = allowFilters; + o.denyFilters = denyFilters; + o.description = description; + o.edgeLocations = edgeLocations; + o.isolateAttachments = isolateAttachments; + o.name = name; + o.requireAttachmentAcceptance = requireAttachmentAcceptance; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentSegmentAction.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentSegmentAction.java index f533e0671a0..8df2d724702 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentSegmentAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetCoreNetworkPolicyDocumentSegmentAction.java @@ -16,63 +16,44 @@ public final class GetCoreNetworkPolicyDocumentSegmentAction { * @return The action to take for the chosen segment. Valid values `create-route` or `share`. * */ - private final String action; + private String action; /** * @return A user-defined string describing the segment action. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return List of strings containing CIDRs. You can define the IPv4 and IPv6 CIDR notation for each AWS Region. For example, `10.1.0.0/16` or `2001:db8::/56`. This is an array of CIDR notation strings. * */ - private final @Nullable List destinationCidrBlocks; + private @Nullable List destinationCidrBlocks; /** * @return A list of strings. Valid values include `["blackhole"]` or a list of attachment ids. * */ - private final @Nullable List destinations; + private @Nullable List destinations; /** * @return A string. This mode places the attachment and return routes in each of the `share_with` segments. Valid values include: `attachment-route`. * */ - private final @Nullable String mode; + private @Nullable String mode; /** * @return The name of the segment. * */ - private final String segment; + private String segment; /** * @return A set subtraction of segments to not share with. * */ - private final @Nullable List shareWithExcepts; + private @Nullable List shareWithExcepts; /** * @return A list of strings to share with. Must be a substring is all segments. Valid values include: `["*"]` or `["<segment-names>"]`. * */ - private final @Nullable List shareWiths; - - @CustomType.Constructor - private GetCoreNetworkPolicyDocumentSegmentAction( - @CustomType.Parameter("action") String action, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("destinationCidrBlocks") @Nullable List destinationCidrBlocks, - @CustomType.Parameter("destinations") @Nullable List destinations, - @CustomType.Parameter("mode") @Nullable String mode, - @CustomType.Parameter("segment") String segment, - @CustomType.Parameter("shareWithExcepts") @Nullable List shareWithExcepts, - @CustomType.Parameter("shareWiths") @Nullable List shareWiths) { - this.action = action; - this.description = description; - this.destinationCidrBlocks = destinationCidrBlocks; - this.destinations = destinations; - this.mode = mode; - this.segment = segment; - this.shareWithExcepts = shareWithExcepts; - this.shareWiths = shareWiths; - } + private @Nullable List shareWiths; + private GetCoreNetworkPolicyDocumentSegmentAction() {} /** * @return The action to take for the chosen segment. Valid values `create-route` or `share`. * @@ -137,7 +118,7 @@ public static Builder builder() { public static Builder builder(GetCoreNetworkPolicyDocumentSegmentAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String action; private @Nullable String description; @@ -147,11 +128,7 @@ public static final class Builder { private String segment; private @Nullable List shareWithExcepts; private @Nullable List shareWiths; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCoreNetworkPolicyDocumentSegmentAction defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -164,14 +141,17 @@ public Builder(GetCoreNetworkPolicyDocumentSegmentAction defaults) { this.shareWiths = defaults.shareWiths; } + @CustomType.Setter public Builder action(String action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder destinationCidrBlocks(@Nullable List destinationCidrBlocks) { this.destinationCidrBlocks = destinationCidrBlocks; return this; @@ -179,6 +159,7 @@ public Builder destinationCidrBlocks(@Nullable List destinationCidrBlock public Builder destinationCidrBlocks(String... destinationCidrBlocks) { return destinationCidrBlocks(List.of(destinationCidrBlocks)); } + @CustomType.Setter public Builder destinations(@Nullable List destinations) { this.destinations = destinations; return this; @@ -186,14 +167,17 @@ public Builder destinations(@Nullable List destinations) { public Builder destinations(String... destinations) { return destinations(List.of(destinations)); } + @CustomType.Setter public Builder mode(@Nullable String mode) { this.mode = mode; return this; } + @CustomType.Setter public Builder segment(String segment) { this.segment = Objects.requireNonNull(segment); return this; } + @CustomType.Setter public Builder shareWithExcepts(@Nullable List shareWithExcepts) { this.shareWithExcepts = shareWithExcepts; return this; @@ -201,14 +185,25 @@ public Builder shareWithExcepts(@Nullable List shareWithExcepts) { public Builder shareWithExcepts(String... shareWithExcepts) { return shareWithExcepts(List.of(shareWithExcepts)); } + @CustomType.Setter public Builder shareWiths(@Nullable List shareWiths) { this.shareWiths = shareWiths; return this; } public Builder shareWiths(String... shareWiths) { return shareWiths(List.of(shareWiths)); - } public GetCoreNetworkPolicyDocumentSegmentAction build() { - return new GetCoreNetworkPolicyDocumentSegmentAction(action, description, destinationCidrBlocks, destinations, mode, segment, shareWithExcepts, shareWiths); + } + public GetCoreNetworkPolicyDocumentSegmentAction build() { + final var o = new GetCoreNetworkPolicyDocumentSegmentAction(); + o.action = action; + o.description = description; + o.destinationCidrBlocks = destinationCidrBlocks; + o.destinations = destinations; + o.mode = mode; + o.segment = segment; + o.shareWithExcepts = shareWithExcepts; + o.shareWiths = shareWiths; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDeviceAwsLocation.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDeviceAwsLocation.java index 69cbdca1542..2074f657698 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDeviceAwsLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDeviceAwsLocation.java @@ -13,21 +13,14 @@ public final class GetDeviceAwsLocation { * @return The Amazon Resource Name (ARN) of the subnet that the device is located in. * */ - private final String subnetArn; + private String subnetArn; /** * @return The Zone that the device is located in. * */ - private final String zone; - - @CustomType.Constructor - private GetDeviceAwsLocation( - @CustomType.Parameter("subnetArn") String subnetArn, - @CustomType.Parameter("zone") String zone) { - this.subnetArn = subnetArn; - this.zone = zone; - } + private String zone; + private GetDeviceAwsLocation() {} /** * @return The Amazon Resource Name (ARN) of the subnet that the device is located in. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetDeviceAwsLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String subnetArn; private String zone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDeviceAwsLocation defaults) { Objects.requireNonNull(defaults); this.subnetArn = defaults.subnetArn; this.zone = defaults.zone; } + @CustomType.Setter public Builder subnetArn(String subnetArn) { this.subnetArn = Objects.requireNonNull(subnetArn); return this; } + @CustomType.Setter public Builder zone(String zone) { this.zone = Objects.requireNonNull(zone); return this; - } public GetDeviceAwsLocation build() { - return new GetDeviceAwsLocation(subnetArn, zone); + } + public GetDeviceAwsLocation build() { + final var o = new GetDeviceAwsLocation(); + o.subnetArn = subnetArn; + o.zone = zone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDeviceLocation.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDeviceLocation.java index 36fe93d8a40..8606a243471 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDeviceLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDeviceLocation.java @@ -13,28 +13,19 @@ public final class GetDeviceLocation { * @return The physical address. * */ - private final String address; + private String address; /** * @return The latitude. * */ - private final String latitude; + private String latitude; /** * @return The longitude. * */ - private final String longitude; - - @CustomType.Constructor - private GetDeviceLocation( - @CustomType.Parameter("address") String address, - @CustomType.Parameter("latitude") String latitude, - @CustomType.Parameter("longitude") String longitude) { - this.address = address; - this.latitude = latitude; - this.longitude = longitude; - } + private String longitude; + private GetDeviceLocation() {} /** * @return The physical address. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetDeviceLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String address; private String latitude; private String longitude; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDeviceLocation defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; @@ -81,19 +68,27 @@ public Builder(GetDeviceLocation defaults) { this.longitude = defaults.longitude; } + @CustomType.Setter public Builder address(String address) { this.address = Objects.requireNonNull(address); return this; } + @CustomType.Setter public Builder latitude(String latitude) { this.latitude = Objects.requireNonNull(latitude); return this; } + @CustomType.Setter public Builder longitude(String longitude) { this.longitude = Objects.requireNonNull(longitude); return this; - } public GetDeviceLocation build() { - return new GetDeviceLocation(address, latitude, longitude); + } + public GetDeviceLocation build() { + final var o = new GetDeviceLocation(); + o.address = address; + o.latitude = latitude; + o.longitude = longitude; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDeviceResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDeviceResult.java index a4472ceb2dc..0658e423e5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDeviceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDeviceResult.java @@ -17,90 +17,61 @@ public final class GetDeviceResult { * @return The Amazon Resource Name (ARN) of the device. * */ - private final String arn; + private String arn; /** * @return The AWS location of the device. Documented below. * */ - private final List awsLocations; + private List awsLocations; /** * @return A description of the device. * */ - private final String description; - private final String deviceId; - private final String globalNetworkId; + private String description; + private String deviceId; + private String globalNetworkId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The location of the device. Documented below. * */ - private final List locations; + private List locations; /** * @return The model of device. * */ - private final String model; + private String model; /** * @return The serial number of the device. * */ - private final String serialNumber; + private String serialNumber; /** * @return The ID of the site. * */ - private final String siteId; + private String siteId; /** * @return Key-value tags for the device. * */ - private final Map tags; + private Map tags; /** * @return The type of device. * */ - private final String type; + private String type; /** * @return The vendor of the device. * */ - private final String vendor; - - @CustomType.Constructor - private GetDeviceResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("awsLocations") List awsLocations, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("deviceId") String deviceId, - @CustomType.Parameter("globalNetworkId") String globalNetworkId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("locations") List locations, - @CustomType.Parameter("model") String model, - @CustomType.Parameter("serialNumber") String serialNumber, - @CustomType.Parameter("siteId") String siteId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("vendor") String vendor) { - this.arn = arn; - this.awsLocations = awsLocations; - this.description = description; - this.deviceId = deviceId; - this.globalNetworkId = globalNetworkId; - this.id = id; - this.locations = locations; - this.model = model; - this.serialNumber = serialNumber; - this.siteId = siteId; - this.tags = tags; - this.type = type; - this.vendor = vendor; - } + private String vendor; + private GetDeviceResult() {} /** * @return The Amazon Resource Name (ARN) of the device. * @@ -192,7 +163,7 @@ public static Builder builder() { public static Builder builder(GetDeviceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List awsLocations; @@ -207,11 +178,7 @@ public static final class Builder { private Map tags; private String type; private String vendor; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDeviceResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -229,10 +196,12 @@ public Builder(GetDeviceResult defaults) { this.vendor = defaults.vendor; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder awsLocations(List awsLocations) { this.awsLocations = Objects.requireNonNull(awsLocations); return this; @@ -240,22 +209,27 @@ public Builder awsLocations(List awsLocations) { public Builder awsLocations(GetDeviceAwsLocation... awsLocations) { return awsLocations(List.of(awsLocations)); } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder deviceId(String deviceId) { this.deviceId = Objects.requireNonNull(deviceId); return this; } + @CustomType.Setter public Builder globalNetworkId(String globalNetworkId) { this.globalNetworkId = Objects.requireNonNull(globalNetworkId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder locations(List locations) { this.locations = Objects.requireNonNull(locations); return this; @@ -263,31 +237,52 @@ public Builder locations(List locations) { public Builder locations(GetDeviceLocation... locations) { return locations(List.of(locations)); } + @CustomType.Setter public Builder model(String model) { this.model = Objects.requireNonNull(model); return this; } + @CustomType.Setter public Builder serialNumber(String serialNumber) { this.serialNumber = Objects.requireNonNull(serialNumber); return this; } + @CustomType.Setter public Builder siteId(String siteId) { this.siteId = Objects.requireNonNull(siteId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder vendor(String vendor) { this.vendor = Objects.requireNonNull(vendor); return this; - } public GetDeviceResult build() { - return new GetDeviceResult(arn, awsLocations, description, deviceId, globalNetworkId, id, locations, model, serialNumber, siteId, tags, type, vendor); + } + public GetDeviceResult build() { + final var o = new GetDeviceResult(); + o.arn = arn; + o.awsLocations = awsLocations; + o.description = description; + o.deviceId = deviceId; + o.globalNetworkId = globalNetworkId; + o.id = id; + o.locations = locations; + o.model = model; + o.serialNumber = serialNumber; + o.siteId = siteId; + o.tags = tags; + o.type = type; + o.vendor = vendor; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDevicesResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDevicesResult.java index be054bef5f4..b98a2cb47e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDevicesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetDevicesResult.java @@ -13,34 +13,21 @@ @CustomType public final class GetDevicesResult { - private final String globalNetworkId; + private String globalNetworkId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The IDs of the devices. * */ - private final List ids; - private final @Nullable String siteId; - private final @Nullable Map tags; - - @CustomType.Constructor - private GetDevicesResult( - @CustomType.Parameter("globalNetworkId") String globalNetworkId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("siteId") @Nullable String siteId, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.globalNetworkId = globalNetworkId; - this.id = id; - this.ids = ids; - this.siteId = siteId; - this.tags = tags; - } + private List ids; + private @Nullable String siteId; + private @Nullable Map tags; + private GetDevicesResult() {} public String globalNetworkId() { return this.globalNetworkId; } @@ -72,18 +59,14 @@ public static Builder builder() { public static Builder builder(GetDevicesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String globalNetworkId; private String id; private List ids; private @Nullable String siteId; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDevicesResult defaults) { Objects.requireNonNull(defaults); this.globalNetworkId = defaults.globalNetworkId; @@ -93,14 +76,17 @@ public Builder(GetDevicesResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder globalNetworkId(String globalNetworkId) { this.globalNetworkId = Objects.requireNonNull(globalNetworkId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -108,15 +94,24 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder siteId(@Nullable String siteId) { this.siteId = siteId; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public GetDevicesResult build() { - return new GetDevicesResult(globalNetworkId, id, ids, siteId, tags); + } + public GetDevicesResult build() { + final var o = new GetDevicesResult(); + o.globalNetworkId = globalNetworkId; + o.id = id; + o.ids = ids; + o.siteId = siteId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetGlobalNetworkResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetGlobalNetworkResult.java index 5b5b1d98dfd..03ebbcf347c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetGlobalNetworkResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetGlobalNetworkResult.java @@ -14,38 +14,25 @@ public final class GetGlobalNetworkResult { * @return The ARN of the global network. * */ - private final String arn; + private String arn; /** * @return The description of the global network. * */ - private final String description; - private final String globalNetworkId; + private String description; + private String globalNetworkId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A map of resource tags. * */ - private final Map tags; - - @CustomType.Constructor - private GetGlobalNetworkResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("globalNetworkId") String globalNetworkId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.description = description; - this.globalNetworkId = globalNetworkId; - this.id = id; - this.tags = tags; - } + private Map tags; + private GetGlobalNetworkResult() {} /** * @return The ARN of the global network. * @@ -85,18 +72,14 @@ public static Builder builder() { public static Builder builder(GetGlobalNetworkResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; private String globalNetworkId; private String id; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetGlobalNetworkResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -106,27 +89,39 @@ public Builder(GetGlobalNetworkResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder globalNetworkId(String globalNetworkId) { this.globalNetworkId = Objects.requireNonNull(globalNetworkId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetGlobalNetworkResult build() { - return new GetGlobalNetworkResult(arn, description, globalNetworkId, id, tags); + } + public GetGlobalNetworkResult build() { + final var o = new GetGlobalNetworkResult(); + o.arn = arn; + o.description = description; + o.globalNetworkId = globalNetworkId; + o.id = id; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetGlobalNetworksResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetGlobalNetworksResult.java index 2fb00dc95d8..3db867b4522 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetGlobalNetworksResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetGlobalNetworksResult.java @@ -16,24 +16,15 @@ public final class GetGlobalNetworksResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The IDs of the global networks. * */ - private final List ids; - private final @Nullable Map tags; - - @CustomType.Constructor - private GetGlobalNetworksResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.id = id; - this.ids = ids; - this.tags = tags; - } + private List ids; + private @Nullable Map tags; + private GetGlobalNetworksResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(GetGlobalNetworksResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private List ids; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetGlobalNetworksResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -76,10 +63,12 @@ public Builder(GetGlobalNetworksResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -87,11 +76,17 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public GetGlobalNetworksResult build() { - return new GetGlobalNetworksResult(id, ids, tags); + } + public GetGlobalNetworksResult build() { + final var o = new GetGlobalNetworksResult(); + o.id = id; + o.ids = ids; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetLinkBandwidth.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetLinkBandwidth.java index 32db134a59b..b24792117f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetLinkBandwidth.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetLinkBandwidth.java @@ -13,21 +13,14 @@ public final class GetLinkBandwidth { * @return Download speed in Mbps. * */ - private final Integer downloadSpeed; + private Integer downloadSpeed; /** * @return Upload speed in Mbps. * */ - private final Integer uploadSpeed; - - @CustomType.Constructor - private GetLinkBandwidth( - @CustomType.Parameter("downloadSpeed") Integer downloadSpeed, - @CustomType.Parameter("uploadSpeed") Integer uploadSpeed) { - this.downloadSpeed = downloadSpeed; - this.uploadSpeed = uploadSpeed; - } + private Integer uploadSpeed; + private GetLinkBandwidth() {} /** * @return Download speed in Mbps. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetLinkBandwidth defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer downloadSpeed; private Integer uploadSpeed; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLinkBandwidth defaults) { Objects.requireNonNull(defaults); this.downloadSpeed = defaults.downloadSpeed; this.uploadSpeed = defaults.uploadSpeed; } + @CustomType.Setter public Builder downloadSpeed(Integer downloadSpeed) { this.downloadSpeed = Objects.requireNonNull(downloadSpeed); return this; } + @CustomType.Setter public Builder uploadSpeed(Integer uploadSpeed) { this.uploadSpeed = Objects.requireNonNull(uploadSpeed); return this; - } public GetLinkBandwidth build() { - return new GetLinkBandwidth(downloadSpeed, uploadSpeed); + } + public GetLinkBandwidth build() { + final var o = new GetLinkBandwidth(); + o.downloadSpeed = downloadSpeed; + o.uploadSpeed = uploadSpeed; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetLinkResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetLinkResult.java index 9cd9c6c0873..563d8d8e69b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetLinkResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetLinkResult.java @@ -16,69 +16,46 @@ public final class GetLinkResult { * @return The ARN of the link. * */ - private final String arn; + private String arn; /** * @return The upload speed and download speed of the link as documented below * */ - private final List bandwidths; + private List bandwidths; /** * @return The description of the link. * */ - private final String description; - private final String globalNetworkId; + private String description; + private String globalNetworkId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String linkId; + private String id; + private String linkId; /** * @return The provider of the link. * */ - private final String providerName; + private String providerName; /** * @return The ID of the site. * */ - private final String siteId; + private String siteId; /** * @return Key-value tags for the link. * */ - private final Map tags; + private Map tags; /** * @return The type of the link. * */ - private final String type; - - @CustomType.Constructor - private GetLinkResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("bandwidths") List bandwidths, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("globalNetworkId") String globalNetworkId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("linkId") String linkId, - @CustomType.Parameter("providerName") String providerName, - @CustomType.Parameter("siteId") String siteId, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("type") String type) { - this.arn = arn; - this.bandwidths = bandwidths; - this.description = description; - this.globalNetworkId = globalNetworkId; - this.id = id; - this.linkId = linkId; - this.providerName = providerName; - this.siteId = siteId; - this.tags = tags; - this.type = type; - } + private String type; + private GetLinkResult() {} /** * @return The ARN of the link. * @@ -149,7 +126,7 @@ public static Builder builder() { public static Builder builder(GetLinkResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List bandwidths; @@ -161,11 +138,7 @@ public static final class Builder { private String siteId; private Map tags; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLinkResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -180,10 +153,12 @@ public Builder(GetLinkResult defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder bandwidths(List bandwidths) { this.bandwidths = Objects.requireNonNull(bandwidths); return this; @@ -191,39 +166,59 @@ public Builder bandwidths(List bandwidths) { public Builder bandwidths(GetLinkBandwidth... bandwidths) { return bandwidths(List.of(bandwidths)); } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder globalNetworkId(String globalNetworkId) { this.globalNetworkId = Objects.requireNonNull(globalNetworkId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder linkId(String linkId) { this.linkId = Objects.requireNonNull(linkId); return this; } + @CustomType.Setter public Builder providerName(String providerName) { this.providerName = Objects.requireNonNull(providerName); return this; } + @CustomType.Setter public Builder siteId(String siteId) { this.siteId = Objects.requireNonNull(siteId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetLinkResult build() { - return new GetLinkResult(arn, bandwidths, description, globalNetworkId, id, linkId, providerName, siteId, tags, type); + } + public GetLinkResult build() { + final var o = new GetLinkResult(); + o.arn = arn; + o.bandwidths = bandwidths; + o.description = description; + o.globalNetworkId = globalNetworkId; + o.id = id; + o.linkId = linkId; + o.providerName = providerName; + o.siteId = siteId; + o.tags = tags; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetLinksResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetLinksResult.java index 846a58816dd..088d064d4af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetLinksResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetLinksResult.java @@ -13,40 +13,23 @@ @CustomType public final class GetLinksResult { - private final String globalNetworkId; + private String globalNetworkId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The IDs of the links. * */ - private final List ids; - private final @Nullable String providerName; - private final @Nullable String siteId; - private final @Nullable Map tags; - private final @Nullable String type; - - @CustomType.Constructor - private GetLinksResult( - @CustomType.Parameter("globalNetworkId") String globalNetworkId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("providerName") @Nullable String providerName, - @CustomType.Parameter("siteId") @Nullable String siteId, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("type") @Nullable String type) { - this.globalNetworkId = globalNetworkId; - this.id = id; - this.ids = ids; - this.providerName = providerName; - this.siteId = siteId; - this.tags = tags; - this.type = type; - } + private List ids; + private @Nullable String providerName; + private @Nullable String siteId; + private @Nullable Map tags; + private @Nullable String type; + private GetLinksResult() {} public String globalNetworkId() { return this.globalNetworkId; } @@ -84,7 +67,7 @@ public static Builder builder() { public static Builder builder(GetLinksResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String globalNetworkId; private String id; @@ -93,11 +76,7 @@ public static final class Builder { private @Nullable String siteId; private @Nullable Map tags; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLinksResult defaults) { Objects.requireNonNull(defaults); this.globalNetworkId = defaults.globalNetworkId; @@ -109,14 +88,17 @@ public Builder(GetLinksResult defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder globalNetworkId(String globalNetworkId) { this.globalNetworkId = Objects.requireNonNull(globalNetworkId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -124,23 +106,36 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder providerName(@Nullable String providerName) { this.providerName = providerName; return this; } + @CustomType.Setter public Builder siteId(@Nullable String siteId) { this.siteId = siteId; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public GetLinksResult build() { - return new GetLinksResult(globalNetworkId, id, ids, providerName, siteId, tags, type); + } + public GetLinksResult build() { + final var o = new GetLinksResult(); + o.globalNetworkId = globalNetworkId; + o.id = id; + o.ids = ids; + o.providerName = providerName; + o.siteId = siteId; + o.tags = tags; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetSiteLocation.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetSiteLocation.java index 2e3849545e5..0c2e29fecd3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetSiteLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetSiteLocation.java @@ -13,28 +13,19 @@ public final class GetSiteLocation { * @return Address of the location. * */ - private final String address; + private String address; /** * @return Latitude of the location. * */ - private final String latitude; + private String latitude; /** * @return Longitude of the location. * */ - private final String longitude; - - @CustomType.Constructor - private GetSiteLocation( - @CustomType.Parameter("address") String address, - @CustomType.Parameter("latitude") String latitude, - @CustomType.Parameter("longitude") String longitude) { - this.address = address; - this.latitude = latitude; - this.longitude = longitude; - } + private String longitude; + private GetSiteLocation() {} /** * @return Address of the location. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetSiteLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String address; private String latitude; private String longitude; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSiteLocation defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; @@ -81,19 +68,27 @@ public Builder(GetSiteLocation defaults) { this.longitude = defaults.longitude; } + @CustomType.Setter public Builder address(String address) { this.address = Objects.requireNonNull(address); return this; } + @CustomType.Setter public Builder latitude(String latitude) { this.latitude = Objects.requireNonNull(latitude); return this; } + @CustomType.Setter public Builder longitude(String longitude) { this.longitude = Objects.requireNonNull(longitude); return this; - } public GetSiteLocation build() { - return new GetSiteLocation(address, latitude, longitude); + } + public GetSiteLocation build() { + final var o = new GetSiteLocation(); + o.address = address; + o.latitude = latitude; + o.longitude = longitude; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetSiteResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetSiteResult.java index 153c8838de4..587c1c8c14b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetSiteResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetSiteResult.java @@ -16,48 +16,31 @@ public final class GetSiteResult { * @return The ARN of the site. * */ - private final String arn; + private String arn; /** * @return The description of the site. * */ - private final String description; - private final String globalNetworkId; + private String description; + private String globalNetworkId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The site location as documented below. * */ - private final List locations; - private final String siteId; + private List locations; + private String siteId; /** * @return Key-value tags for the Site. * */ - private final Map tags; - - @CustomType.Constructor - private GetSiteResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("globalNetworkId") String globalNetworkId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("locations") List locations, - @CustomType.Parameter("siteId") String siteId, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.description = description; - this.globalNetworkId = globalNetworkId; - this.id = id; - this.locations = locations; - this.siteId = siteId; - this.tags = tags; - } + private Map tags; + private GetSiteResult() {} /** * @return The ARN of the site. * @@ -107,7 +90,7 @@ public static Builder builder() { public static Builder builder(GetSiteResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -116,11 +99,7 @@ public static final class Builder { private List locations; private String siteId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSiteResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -132,22 +111,27 @@ public Builder(GetSiteResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder globalNetworkId(String globalNetworkId) { this.globalNetworkId = Objects.requireNonNull(globalNetworkId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder locations(List locations) { this.locations = Objects.requireNonNull(locations); return this; @@ -155,15 +139,26 @@ public Builder locations(List locations) { public Builder locations(GetSiteLocation... locations) { return locations(List.of(locations)); } + @CustomType.Setter public Builder siteId(String siteId) { this.siteId = Objects.requireNonNull(siteId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetSiteResult build() { - return new GetSiteResult(arn, description, globalNetworkId, id, locations, siteId, tags); + } + public GetSiteResult build() { + final var o = new GetSiteResult(); + o.arn = arn; + o.description = description; + o.globalNetworkId = globalNetworkId; + o.id = id; + o.locations = locations; + o.siteId = siteId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetSitesResult.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetSitesResult.java index d8350d19872..2ebf4e86035 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetSitesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/GetSitesResult.java @@ -12,31 +12,20 @@ @CustomType public final class GetSitesResult { - private final String globalNetworkId; + private String globalNetworkId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The IDs of the sites. * */ - private final List ids; - private final @Nullable Map tags; - - @CustomType.Constructor - private GetSitesResult( - @CustomType.Parameter("globalNetworkId") String globalNetworkId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.globalNetworkId = globalNetworkId; - this.id = id; - this.ids = ids; - this.tags = tags; - } + private List ids; + private @Nullable Map tags; + private GetSitesResult() {} public String globalNetworkId() { return this.globalNetworkId; } @@ -65,17 +54,13 @@ public static Builder builder() { public static Builder builder(GetSitesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String globalNetworkId; private String id; private List ids; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSitesResult defaults) { Objects.requireNonNull(defaults); this.globalNetworkId = defaults.globalNetworkId; @@ -84,14 +69,17 @@ public Builder(GetSitesResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder globalNetworkId(String globalNetworkId) { this.globalNetworkId = Objects.requireNonNull(globalNetworkId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -99,11 +87,18 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public GetSitesResult build() { - return new GetSitesResult(globalNetworkId, id, ids, tags); + } + public GetSitesResult build() { + final var o = new GetSitesResult(); + o.globalNetworkId = globalNetworkId; + o.id = id; + o.ids = ids; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/LinkBandwidth.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/LinkBandwidth.java index 5eafab69032..4d9c867a847 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/LinkBandwidth.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/LinkBandwidth.java @@ -15,21 +15,14 @@ public final class LinkBandwidth { * @return Download speed in Mbps. * */ - private final @Nullable Integer downloadSpeed; + private @Nullable Integer downloadSpeed; /** * @return Upload speed in Mbps. * */ - private final @Nullable Integer uploadSpeed; - - @CustomType.Constructor - private LinkBandwidth( - @CustomType.Parameter("downloadSpeed") @Nullable Integer downloadSpeed, - @CustomType.Parameter("uploadSpeed") @Nullable Integer uploadSpeed) { - this.downloadSpeed = downloadSpeed; - this.uploadSpeed = uploadSpeed; - } + private @Nullable Integer uploadSpeed; + private LinkBandwidth() {} /** * @return Download speed in Mbps. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(LinkBandwidth defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer downloadSpeed; private @Nullable Integer uploadSpeed; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LinkBandwidth defaults) { Objects.requireNonNull(defaults); this.downloadSpeed = defaults.downloadSpeed; this.uploadSpeed = defaults.uploadSpeed; } + @CustomType.Setter public Builder downloadSpeed(@Nullable Integer downloadSpeed) { this.downloadSpeed = downloadSpeed; return this; } + @CustomType.Setter public Builder uploadSpeed(@Nullable Integer uploadSpeed) { this.uploadSpeed = uploadSpeed; return this; - } public LinkBandwidth build() { - return new LinkBandwidth(downloadSpeed, uploadSpeed); + } + public LinkBandwidth build() { + final var o = new LinkBandwidth(); + o.downloadSpeed = downloadSpeed; + o.uploadSpeed = uploadSpeed; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/SiteLocation.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/SiteLocation.java index 1f055639d1f..05812089fd8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/SiteLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/SiteLocation.java @@ -15,28 +15,19 @@ public final class SiteLocation { * @return Address of the location. * */ - private final @Nullable String address; + private @Nullable String address; /** * @return Latitude of the location. * */ - private final @Nullable String latitude; + private @Nullable String latitude; /** * @return Longitude of the location. * */ - private final @Nullable String longitude; - - @CustomType.Constructor - private SiteLocation( - @CustomType.Parameter("address") @Nullable String address, - @CustomType.Parameter("latitude") @Nullable String latitude, - @CustomType.Parameter("longitude") @Nullable String longitude) { - this.address = address; - this.latitude = latitude; - this.longitude = longitude; - } + private @Nullable String longitude; + private SiteLocation() {} /** * @return Address of the location. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(SiteLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String address; private @Nullable String latitude; private @Nullable String longitude; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SiteLocation defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; @@ -83,19 +70,27 @@ public Builder(SiteLocation defaults) { this.longitude = defaults.longitude; } + @CustomType.Setter public Builder address(@Nullable String address) { this.address = address; return this; } + @CustomType.Setter public Builder latitude(@Nullable String latitude) { this.latitude = latitude; return this; } + @CustomType.Setter public Builder longitude(@Nullable String longitude) { this.longitude = longitude; return this; - } public SiteLocation build() { - return new SiteLocation(address, latitude, longitude); + } + public SiteLocation build() { + final var o = new SiteLocation(); + o.address = address; + o.latitude = latitude; + o.longitude = longitude; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/VpcAttachmentOptions.java b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/VpcAttachmentOptions.java index 8b1a080c6b7..12491f917b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/VpcAttachmentOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/networkmanager/outputs/VpcAttachmentOptions.java @@ -13,13 +13,9 @@ public final class VpcAttachmentOptions { * @return Indicates whether IPv6 is supported. * */ - private final Boolean ipv6Support; - - @CustomType.Constructor - private VpcAttachmentOptions(@CustomType.Parameter("ipv6Support") Boolean ipv6Support) { - this.ipv6Support = ipv6Support; - } + private Boolean ipv6Support; + private VpcAttachmentOptions() {} /** * @return Indicates whether IPv6 is supported. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(VpcAttachmentOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean ipv6Support; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(VpcAttachmentOptions defaults) { Objects.requireNonNull(defaults); this.ipv6Support = defaults.ipv6Support; } + @CustomType.Setter public Builder ipv6Support(Boolean ipv6Support) { this.ipv6Support = Objects.requireNonNull(ipv6Support); return this; - } public VpcAttachmentOptions build() { - return new VpcAttachmentOptions(ipv6Support); + } + public VpcAttachmentOptions build() { + final var o = new VpcAttachmentOptions(); + o.ipv6Support = ipv6Support; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/DomainAdvancedSecurityOptions.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/DomainAdvancedSecurityOptions.java index 2c00ff35ac1..789c0cefeda 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/DomainAdvancedSecurityOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/DomainAdvancedSecurityOptions.java @@ -16,28 +16,19 @@ public final class DomainAdvancedSecurityOptions { * @return Whether to enable node-to-node encryption. If the `node_to_node_encryption` block is not provided then this defaults to `false`. Enabling node-to-node encryption of a new domain requires an `engine_version` of `OpenSearch_X.Y` or `Elasticsearch_6.0` or greater. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return Whether the internal user database is enabled. Default is `false`. * */ - private final @Nullable Boolean internalUserDatabaseEnabled; + private @Nullable Boolean internalUserDatabaseEnabled; /** * @return Configuration block for the main user. Detailed below. * */ - private final @Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions; - - @CustomType.Constructor - private DomainAdvancedSecurityOptions( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("internalUserDatabaseEnabled") @Nullable Boolean internalUserDatabaseEnabled, - @CustomType.Parameter("masterUserOptions") @Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions) { - this.enabled = enabled; - this.internalUserDatabaseEnabled = internalUserDatabaseEnabled; - this.masterUserOptions = masterUserOptions; - } + private @Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions; + private DomainAdvancedSecurityOptions() {} /** * @return Whether to enable node-to-node encryption. If the `node_to_node_encryption` block is not provided then this defaults to `false`. Enabling node-to-node encryption of a new domain requires an `engine_version` of `OpenSearch_X.Y` or `Elasticsearch_6.0` or greater. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(DomainAdvancedSecurityOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private @Nullable Boolean internalUserDatabaseEnabled; private @Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainAdvancedSecurityOptions defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; @@ -84,19 +71,27 @@ public Builder(DomainAdvancedSecurityOptions defaults) { this.masterUserOptions = defaults.masterUserOptions; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder internalUserDatabaseEnabled(@Nullable Boolean internalUserDatabaseEnabled) { this.internalUserDatabaseEnabled = internalUserDatabaseEnabled; return this; } + @CustomType.Setter public Builder masterUserOptions(@Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions) { this.masterUserOptions = masterUserOptions; return this; - } public DomainAdvancedSecurityOptions build() { - return new DomainAdvancedSecurityOptions(enabled, internalUserDatabaseEnabled, masterUserOptions); + } + public DomainAdvancedSecurityOptions build() { + final var o = new DomainAdvancedSecurityOptions(); + o.enabled = enabled; + o.internalUserDatabaseEnabled = internalUserDatabaseEnabled; + o.masterUserOptions = masterUserOptions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/DomainAdvancedSecurityOptionsMasterUserOptions.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/DomainAdvancedSecurityOptionsMasterUserOptions.java index 1b43821b2b2..09d5dc7307b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/DomainAdvancedSecurityOptionsMasterUserOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/DomainAdvancedSecurityOptionsMasterUserOptions.java @@ -15,28 +15,19 @@ public final class DomainAdvancedSecurityOptionsMasterUserOptions { * @return ARN for the main user. Only specify if `internal_user_database_enabled` is not set or set to `false`. * */ - private final @Nullable String masterUserArn; + private @Nullable String masterUserArn; /** * @return Main user's username, which is stored in the Amazon OpenSearch Service domain's internal database. Only specify if `internal_user_database_enabled` is set to `true`. * */ - private final @Nullable String masterUserName; + private @Nullable String masterUserName; /** * @return Main user's password, which is stored in the Amazon OpenSearch Service domain's internal database. Only specify if `internal_user_database_enabled` is set to `true`. * */ - private final @Nullable String masterUserPassword; - - @CustomType.Constructor - private DomainAdvancedSecurityOptionsMasterUserOptions( - @CustomType.Parameter("masterUserArn") @Nullable String masterUserArn, - @CustomType.Parameter("masterUserName") @Nullable String masterUserName, - @CustomType.Parameter("masterUserPassword") @Nullable String masterUserPassword) { - this.masterUserArn = masterUserArn; - this.masterUserName = masterUserName; - this.masterUserPassword = masterUserPassword; - } + private @Nullable String masterUserPassword; + private DomainAdvancedSecurityOptionsMasterUserOptions() {} /** * @return ARN for the main user. Only specify if `internal_user_database_enabled` is not set or set to `false`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(DomainAdvancedSecurityOptionsMasterUserOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String masterUserArn; private @Nullable String masterUserName; private @Nullable String masterUserPassword; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainAdvancedSecurityOptionsMasterUserOptions defaults) { Objects.requireNonNull(defaults); this.masterUserArn = defaults.masterUserArn; @@ -83,19 +70,27 @@ public Builder(DomainAdvancedSecurityOptionsMasterUserOptions defaults) { this.masterUserPassword = defaults.masterUserPassword; } + @CustomType.Setter public Builder masterUserArn(@Nullable String masterUserArn) { this.masterUserArn = masterUserArn; return this; } + @CustomType.Setter public Builder masterUserName(@Nullable String masterUserName) { this.masterUserName = masterUserName; return this; } + @CustomType.Setter public Builder masterUserPassword(@Nullable String masterUserPassword) { this.masterUserPassword = masterUserPassword; return this; - } public DomainAdvancedSecurityOptionsMasterUserOptions build() { - return new DomainAdvancedSecurityOptionsMasterUserOptions(masterUserArn, masterUserName, masterUserPassword); + } + public DomainAdvancedSecurityOptionsMasterUserOptions build() { + final var o = new DomainAdvancedSecurityOptionsMasterUserOptions(); + o.masterUserArn = masterUserArn; + o.masterUserName = masterUserName; + o.masterUserPassword = masterUserPassword; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/DomainAutoTuneOptions.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/DomainAutoTuneOptions.java index f92958bc437..b93388ebeb7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/DomainAutoTuneOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/DomainAutoTuneOptions.java @@ -17,28 +17,19 @@ public final class DomainAutoTuneOptions { * @return Auto-Tune desired state for the domain. Valid values: `ENABLED` or `DISABLED`. * */ - private final String desiredState; + private String desiredState; /** * @return Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below. * */ - private final @Nullable List maintenanceSchedules; + private @Nullable List maintenanceSchedules; /** * @return Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: `DEFAULT_ROLLBACK` or `NO_ROLLBACK`. * */ - private final @Nullable String rollbackOnDisable; - - @CustomType.Constructor - private DomainAutoTuneOptions( - @CustomType.Parameter("desiredState") String desiredState, - @CustomType.Parameter("maintenanceSchedules") @Nullable List maintenanceSchedules, - @CustomType.Parameter("rollbackOnDisable") @Nullable String rollbackOnDisable) { - this.desiredState = desiredState; - this.maintenanceSchedules = maintenanceSchedules; - this.rollbackOnDisable = rollbackOnDisable; - } + private @Nullable String rollbackOnDisable; + private DomainAutoTuneOptions() {} /** * @return Auto-Tune desired state for the domain. Valid values: `ENABLED` or `DISABLED`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(DomainAutoTuneOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String desiredState; private @Nullable List maintenanceSchedules; private @Nullable String rollbackOnDisable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainAutoTuneOptions defaults) { Objects.requireNonNull(defaults); this.desiredState = defaults.desiredState; @@ -85,10 +72,12 @@ public Builder(DomainAutoTuneOptions defaults) { this.rollbackOnDisable = defaults.rollbackOnDisable; } + @CustomType.Setter public Builder desiredState(String desiredState) { this.desiredState = Objects.requireNonNull(desiredState); return this; } + @CustomType.Setter public Builder maintenanceSchedules(@Nullable List maintenanceSchedules) { this.maintenanceSchedules = maintenanceSchedules; return this; @@ -96,11 +85,17 @@ public Builder maintenanceSchedules(@Nullable List availabilityZones; + private @Nullable List availabilityZones; /** * @return List of VPC Security Group IDs to be applied to the OpenSearch domain endpoints. If omitted, the default Security Group for the VPC will be used. * */ - private final @Nullable List securityGroupIds; + private @Nullable List securityGroupIds; /** * @return List of VPC Subnet IDs for the OpenSearch domain endpoints to be created in. * */ - private final @Nullable List subnetIds; - private final @Nullable String vpcId; - - @CustomType.Constructor - private DomainVpcOptions( - @CustomType.Parameter("availabilityZones") @Nullable List availabilityZones, - @CustomType.Parameter("securityGroupIds") @Nullable List securityGroupIds, - @CustomType.Parameter("subnetIds") @Nullable List subnetIds, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.availabilityZones = availabilityZones; - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private @Nullable List subnetIds; + private @Nullable String vpcId; + private DomainVpcOptions() {} public List availabilityZones() { return this.availabilityZones == null ? List.of() : this.availabilityZones; } @@ -65,17 +54,13 @@ public static Builder builder() { public static Builder builder(DomainVpcOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List availabilityZones; private @Nullable List securityGroupIds; private @Nullable List subnetIds; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainVpcOptions defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -84,6 +69,7 @@ public Builder(DomainVpcOptions defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder availabilityZones(@Nullable List availabilityZones) { this.availabilityZones = availabilityZones; return this; @@ -91,6 +77,7 @@ public Builder availabilityZones(@Nullable List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder securityGroupIds(@Nullable List securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; @@ -98,6 +85,7 @@ public Builder securityGroupIds(@Nullable List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(@Nullable List subnetIds) { this.subnetIds = subnetIds; return this; @@ -105,11 +93,18 @@ public Builder subnetIds(@Nullable List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(@Nullable String vpcId) { this.vpcId = vpcId; return this; - } public DomainVpcOptions build() { - return new DomainVpcOptions(availabilityZones, securityGroupIds, subnetIds, vpcId); + } + public DomainVpcOptions build() { + final var o = new DomainVpcOptions(); + o.availabilityZones = availabilityZones; + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainAdvancedSecurityOption.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainAdvancedSecurityOption.java index c8bac716825..c4d4662d0e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainAdvancedSecurityOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainAdvancedSecurityOption.java @@ -13,21 +13,14 @@ public final class GetDomainAdvancedSecurityOption { * @return Whether node to node encryption is enabled. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return Whether the internal user database is enabled. * */ - private final Boolean internalUserDatabaseEnabled; - - @CustomType.Constructor - private GetDomainAdvancedSecurityOption( - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("internalUserDatabaseEnabled") Boolean internalUserDatabaseEnabled) { - this.enabled = enabled; - this.internalUserDatabaseEnabled = internalUserDatabaseEnabled; - } + private Boolean internalUserDatabaseEnabled; + private GetDomainAdvancedSecurityOption() {} /** * @return Whether node to node encryption is enabled. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetDomainAdvancedSecurityOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; private Boolean internalUserDatabaseEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainAdvancedSecurityOption defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.internalUserDatabaseEnabled = defaults.internalUserDatabaseEnabled; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder internalUserDatabaseEnabled(Boolean internalUserDatabaseEnabled) { this.internalUserDatabaseEnabled = Objects.requireNonNull(internalUserDatabaseEnabled); return this; - } public GetDomainAdvancedSecurityOption build() { - return new GetDomainAdvancedSecurityOption(enabled, internalUserDatabaseEnabled); + } + public GetDomainAdvancedSecurityOption build() { + final var o = new GetDomainAdvancedSecurityOption(); + o.enabled = enabled; + o.internalUserDatabaseEnabled = internalUserDatabaseEnabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainAutoTuneOption.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainAutoTuneOption.java index 1d9157b3f96..368c53c6278 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainAutoTuneOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainAutoTuneOption.java @@ -15,28 +15,19 @@ public final class GetDomainAutoTuneOption { * @return Auto-Tune desired state for the domain. * */ - private final String desiredState; + private String desiredState; /** * @return A list of the nested configurations for the Auto-Tune maintenance windows of the domain. * */ - private final List maintenanceSchedules; + private List maintenanceSchedules; /** * @return Whether the domain is set to roll back to default Auto-Tune settings when disabling Auto-Tune. * */ - private final String rollbackOnDisable; - - @CustomType.Constructor - private GetDomainAutoTuneOption( - @CustomType.Parameter("desiredState") String desiredState, - @CustomType.Parameter("maintenanceSchedules") List maintenanceSchedules, - @CustomType.Parameter("rollbackOnDisable") String rollbackOnDisable) { - this.desiredState = desiredState; - this.maintenanceSchedules = maintenanceSchedules; - this.rollbackOnDisable = rollbackOnDisable; - } + private String rollbackOnDisable; + private GetDomainAutoTuneOption() {} /** * @return Auto-Tune desired state for the domain. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetDomainAutoTuneOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String desiredState; private List maintenanceSchedules; private String rollbackOnDisable; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainAutoTuneOption defaults) { Objects.requireNonNull(defaults); this.desiredState = defaults.desiredState; @@ -83,10 +70,12 @@ public Builder(GetDomainAutoTuneOption defaults) { this.rollbackOnDisable = defaults.rollbackOnDisable; } + @CustomType.Setter public Builder desiredState(String desiredState) { this.desiredState = Objects.requireNonNull(desiredState); return this; } + @CustomType.Setter public Builder maintenanceSchedules(List maintenanceSchedules) { this.maintenanceSchedules = Objects.requireNonNull(maintenanceSchedules); return this; @@ -94,11 +83,17 @@ public Builder maintenanceSchedules(List durations; + private List durations; /** * @return Date and time at which the Auto-Tune maintenance schedule starts in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8). * */ - private final String startAt; - - @CustomType.Constructor - private GetDomainAutoTuneOptionMaintenanceSchedule( - @CustomType.Parameter("cronExpressionForRecurrence") String cronExpressionForRecurrence, - @CustomType.Parameter("durations") List durations, - @CustomType.Parameter("startAt") String startAt) { - this.cronExpressionForRecurrence = cronExpressionForRecurrence; - this.durations = durations; - this.startAt = startAt; - } + private String startAt; + private GetDomainAutoTuneOptionMaintenanceSchedule() {} /** * @return A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetDomainAutoTuneOptionMaintenanceSchedule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cronExpressionForRecurrence; private List durations; private String startAt; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainAutoTuneOptionMaintenanceSchedule defaults) { Objects.requireNonNull(defaults); this.cronExpressionForRecurrence = defaults.cronExpressionForRecurrence; @@ -83,10 +70,12 @@ public Builder(GetDomainAutoTuneOptionMaintenanceSchedule defaults) { this.startAt = defaults.startAt; } + @CustomType.Setter public Builder cronExpressionForRecurrence(String cronExpressionForRecurrence) { this.cronExpressionForRecurrence = Objects.requireNonNull(cronExpressionForRecurrence); return this; } + @CustomType.Setter public Builder durations(List durations) { this.durations = Objects.requireNonNull(durations); return this; @@ -94,11 +83,17 @@ public Builder durations(List coldStorageOptions; + private List coldStorageOptions; /** * @return Number of dedicated master nodes in the cluster. * */ - private final Integer dedicatedMasterCount; + private Integer dedicatedMasterCount; /** * @return Indicates whether dedicated master nodes are enabled for the cluster. * */ - private final Boolean dedicatedMasterEnabled; + private Boolean dedicatedMasterEnabled; /** * @return Instance type of the dedicated master nodes in the cluster. * */ - private final String dedicatedMasterType; + private String dedicatedMasterType; /** * @return Number of instances in the cluster. * */ - private final Integer instanceCount; + private Integer instanceCount; /** * @return Instance type of data nodes in the cluster. * */ - private final String instanceType; + private String instanceType; /** * @return Number of warm nodes in the cluster. * */ - private final Integer warmCount; + private Integer warmCount; /** * @return Indicates warm storage is enabled. * */ - private final @Nullable Boolean warmEnabled; + private @Nullable Boolean warmEnabled; /** * @return Instance type for the OpenSearch cluster's warm nodes. * */ - private final String warmType; + private String warmType; /** * @return Configuration block containing zone awareness settings. * */ - private final List zoneAwarenessConfigs; + private List zoneAwarenessConfigs; /** * @return Indicates whether zone awareness is enabled. * */ - private final Boolean zoneAwarenessEnabled; - - @CustomType.Constructor - private GetDomainClusterConfig( - @CustomType.Parameter("coldStorageOptions") List coldStorageOptions, - @CustomType.Parameter("dedicatedMasterCount") Integer dedicatedMasterCount, - @CustomType.Parameter("dedicatedMasterEnabled") Boolean dedicatedMasterEnabled, - @CustomType.Parameter("dedicatedMasterType") String dedicatedMasterType, - @CustomType.Parameter("instanceCount") Integer instanceCount, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("warmCount") Integer warmCount, - @CustomType.Parameter("warmEnabled") @Nullable Boolean warmEnabled, - @CustomType.Parameter("warmType") String warmType, - @CustomType.Parameter("zoneAwarenessConfigs") List zoneAwarenessConfigs, - @CustomType.Parameter("zoneAwarenessEnabled") Boolean zoneAwarenessEnabled) { - this.coldStorageOptions = coldStorageOptions; - this.dedicatedMasterCount = dedicatedMasterCount; - this.dedicatedMasterEnabled = dedicatedMasterEnabled; - this.dedicatedMasterType = dedicatedMasterType; - this.instanceCount = instanceCount; - this.instanceType = instanceType; - this.warmCount = warmCount; - this.warmEnabled = warmEnabled; - this.warmType = warmType; - this.zoneAwarenessConfigs = zoneAwarenessConfigs; - this.zoneAwarenessEnabled = zoneAwarenessEnabled; - } + private Boolean zoneAwarenessEnabled; + private GetDomainClusterConfig() {} /** * @return Configuration block containing cold storage configuration. * @@ -183,7 +158,7 @@ public static Builder builder() { public static Builder builder(GetDomainClusterConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List coldStorageOptions; private Integer dedicatedMasterCount; @@ -196,11 +171,7 @@ public static final class Builder { private String warmType; private List zoneAwarenessConfigs; private Boolean zoneAwarenessEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainClusterConfig defaults) { Objects.requireNonNull(defaults); this.coldStorageOptions = defaults.coldStorageOptions; @@ -216,6 +187,7 @@ public Builder(GetDomainClusterConfig defaults) { this.zoneAwarenessEnabled = defaults.zoneAwarenessEnabled; } + @CustomType.Setter public Builder coldStorageOptions(List coldStorageOptions) { this.coldStorageOptions = Objects.requireNonNull(coldStorageOptions); return this; @@ -223,38 +195,47 @@ public Builder coldStorageOptions(List public Builder coldStorageOptions(GetDomainClusterConfigColdStorageOption... coldStorageOptions) { return coldStorageOptions(List.of(coldStorageOptions)); } + @CustomType.Setter public Builder dedicatedMasterCount(Integer dedicatedMasterCount) { this.dedicatedMasterCount = Objects.requireNonNull(dedicatedMasterCount); return this; } + @CustomType.Setter public Builder dedicatedMasterEnabled(Boolean dedicatedMasterEnabled) { this.dedicatedMasterEnabled = Objects.requireNonNull(dedicatedMasterEnabled); return this; } + @CustomType.Setter public Builder dedicatedMasterType(String dedicatedMasterType) { this.dedicatedMasterType = Objects.requireNonNull(dedicatedMasterType); return this; } + @CustomType.Setter public Builder instanceCount(Integer instanceCount) { this.instanceCount = Objects.requireNonNull(instanceCount); return this; } + @CustomType.Setter public Builder instanceType(String instanceType) { this.instanceType = Objects.requireNonNull(instanceType); return this; } + @CustomType.Setter public Builder warmCount(Integer warmCount) { this.warmCount = Objects.requireNonNull(warmCount); return this; } + @CustomType.Setter public Builder warmEnabled(@Nullable Boolean warmEnabled) { this.warmEnabled = warmEnabled; return this; } + @CustomType.Setter public Builder warmType(String warmType) { this.warmType = Objects.requireNonNull(warmType); return this; } + @CustomType.Setter public Builder zoneAwarenessConfigs(List zoneAwarenessConfigs) { this.zoneAwarenessConfigs = Objects.requireNonNull(zoneAwarenessConfigs); return this; @@ -262,11 +243,25 @@ public Builder zoneAwarenessConfigs(List advancedOptions; + private Map advancedOptions; /** * @return Status of the OpenSearch domain's advanced security options. The block consists of the following attributes: * */ - private final List advancedSecurityOptions; + private List advancedSecurityOptions; /** * @return ARN of the domain. * */ - private final String arn; + private String arn; /** * @return Configuration of the Auto-Tune options of the domain. * */ - private final List autoTuneOptions; + private List autoTuneOptions; /** * @return Cluster configuration of the domain. * */ - private final List clusterConfigs; + private List clusterConfigs; /** * @return Domain Amazon Cognito Authentication options for Kibana. * */ - private final List cognitoOptions; + private List cognitoOptions; /** * @return Status of the creation of the domain. * */ - private final Boolean created; + private Boolean created; /** * @return Status of the deletion of the domain. * */ - private final Boolean deleted; + private Boolean deleted; /** * @return Unique identifier for the domain. * */ - private final String domainId; - private final String domainName; + private String domainId; + private String domainName; /** * @return EBS Options for the instances in the domain. * */ - private final List ebsOptions; + private List ebsOptions; /** * @return Domain encryption at rest related options. * */ - private final List encryptionAtRests; + private List encryptionAtRests; /** * @return Domain-specific endpoint used to submit index, search, and data upload requests. * */ - private final String endpoint; + private String endpoint; /** * @return OpenSearch version for the domain. * */ - private final String engineVersion; + private String engineVersion; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Domain-specific endpoint used to access the Kibana application. * */ - private final String kibanaEndpoint; + private String kibanaEndpoint; /** * @return Domain log publishing related options. * */ - private final List logPublishingOptions; + private List logPublishingOptions; /** * @return Domain in transit encryption related options. * */ - private final List nodeToNodeEncryptions; + private List nodeToNodeEncryptions; /** * @return Status of a configuration change in the domain. * * `snapshot_options` – Domain snapshot related options. * */ - private final Boolean processing; - private final List snapshotOptions; + private Boolean processing; + private List snapshotOptions; /** * @return Tags assigned to the domain. * */ - private final Map tags; + private Map tags; /** * @return VPC Options for private OpenSearch domains. * */ - private final List vpcOptions; - - @CustomType.Constructor - private GetDomainResult( - @CustomType.Parameter("accessPolicies") String accessPolicies, - @CustomType.Parameter("advancedOptions") Map advancedOptions, - @CustomType.Parameter("advancedSecurityOptions") List advancedSecurityOptions, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("autoTuneOptions") List autoTuneOptions, - @CustomType.Parameter("clusterConfigs") List clusterConfigs, - @CustomType.Parameter("cognitoOptions") List cognitoOptions, - @CustomType.Parameter("created") Boolean created, - @CustomType.Parameter("deleted") Boolean deleted, - @CustomType.Parameter("domainId") String domainId, - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("ebsOptions") List ebsOptions, - @CustomType.Parameter("encryptionAtRests") List encryptionAtRests, - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("engineVersion") String engineVersion, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kibanaEndpoint") String kibanaEndpoint, - @CustomType.Parameter("logPublishingOptions") List logPublishingOptions, - @CustomType.Parameter("nodeToNodeEncryptions") List nodeToNodeEncryptions, - @CustomType.Parameter("processing") Boolean processing, - @CustomType.Parameter("snapshotOptions") List snapshotOptions, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcOptions") List vpcOptions) { - this.accessPolicies = accessPolicies; - this.advancedOptions = advancedOptions; - this.advancedSecurityOptions = advancedSecurityOptions; - this.arn = arn; - this.autoTuneOptions = autoTuneOptions; - this.clusterConfigs = clusterConfigs; - this.cognitoOptions = cognitoOptions; - this.created = created; - this.deleted = deleted; - this.domainId = domainId; - this.domainName = domainName; - this.ebsOptions = ebsOptions; - this.encryptionAtRests = encryptionAtRests; - this.endpoint = endpoint; - this.engineVersion = engineVersion; - this.id = id; - this.kibanaEndpoint = kibanaEndpoint; - this.logPublishingOptions = logPublishingOptions; - this.nodeToNodeEncryptions = nodeToNodeEncryptions; - this.processing = processing; - this.snapshotOptions = snapshotOptions; - this.tags = tags; - this.vpcOptions = vpcOptions; - } + private List vpcOptions; + private GetDomainResult() {} /** * @return Policy document attached to the domain. * @@ -343,7 +294,7 @@ public static Builder builder() { public static Builder builder(GetDomainResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accessPolicies; private Map advancedOptions; @@ -368,11 +319,7 @@ public static final class Builder { private List snapshotOptions; private Map tags; private List vpcOptions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainResult defaults) { Objects.requireNonNull(defaults); this.accessPolicies = defaults.accessPolicies; @@ -400,14 +347,17 @@ public Builder(GetDomainResult defaults) { this.vpcOptions = defaults.vpcOptions; } + @CustomType.Setter public Builder accessPolicies(String accessPolicies) { this.accessPolicies = Objects.requireNonNull(accessPolicies); return this; } + @CustomType.Setter public Builder advancedOptions(Map advancedOptions) { this.advancedOptions = Objects.requireNonNull(advancedOptions); return this; } + @CustomType.Setter public Builder advancedSecurityOptions(List advancedSecurityOptions) { this.advancedSecurityOptions = Objects.requireNonNull(advancedSecurityOptions); return this; @@ -415,10 +365,12 @@ public Builder advancedSecurityOptions(List adv public Builder advancedSecurityOptions(GetDomainAdvancedSecurityOption... advancedSecurityOptions) { return advancedSecurityOptions(List.of(advancedSecurityOptions)); } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder autoTuneOptions(List autoTuneOptions) { this.autoTuneOptions = Objects.requireNonNull(autoTuneOptions); return this; @@ -426,6 +378,7 @@ public Builder autoTuneOptions(List autoTuneOptions) { public Builder autoTuneOptions(GetDomainAutoTuneOption... autoTuneOptions) { return autoTuneOptions(List.of(autoTuneOptions)); } + @CustomType.Setter public Builder clusterConfigs(List clusterConfigs) { this.clusterConfigs = Objects.requireNonNull(clusterConfigs); return this; @@ -433,6 +386,7 @@ public Builder clusterConfigs(List clusterConfigs) { public Builder clusterConfigs(GetDomainClusterConfig... clusterConfigs) { return clusterConfigs(List.of(clusterConfigs)); } + @CustomType.Setter public Builder cognitoOptions(List cognitoOptions) { this.cognitoOptions = Objects.requireNonNull(cognitoOptions); return this; @@ -440,22 +394,27 @@ public Builder cognitoOptions(List cognitoOptions) { public Builder cognitoOptions(GetDomainCognitoOption... cognitoOptions) { return cognitoOptions(List.of(cognitoOptions)); } + @CustomType.Setter public Builder created(Boolean created) { this.created = Objects.requireNonNull(created); return this; } + @CustomType.Setter public Builder deleted(Boolean deleted) { this.deleted = Objects.requireNonNull(deleted); return this; } + @CustomType.Setter public Builder domainId(String domainId) { this.domainId = Objects.requireNonNull(domainId); return this; } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder ebsOptions(List ebsOptions) { this.ebsOptions = Objects.requireNonNull(ebsOptions); return this; @@ -463,6 +422,7 @@ public Builder ebsOptions(List ebsOptions) { public Builder ebsOptions(GetDomainEbsOption... ebsOptions) { return ebsOptions(List.of(ebsOptions)); } + @CustomType.Setter public Builder encryptionAtRests(List encryptionAtRests) { this.encryptionAtRests = Objects.requireNonNull(encryptionAtRests); return this; @@ -470,22 +430,27 @@ public Builder encryptionAtRests(List encryptionAtRes public Builder encryptionAtRests(GetDomainEncryptionAtRest... encryptionAtRests) { return encryptionAtRests(List.of(encryptionAtRests)); } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder engineVersion(String engineVersion) { this.engineVersion = Objects.requireNonNull(engineVersion); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kibanaEndpoint(String kibanaEndpoint) { this.kibanaEndpoint = Objects.requireNonNull(kibanaEndpoint); return this; } + @CustomType.Setter public Builder logPublishingOptions(List logPublishingOptions) { this.logPublishingOptions = Objects.requireNonNull(logPublishingOptions); return this; @@ -493,6 +458,7 @@ public Builder logPublishingOptions(List logPublis public Builder logPublishingOptions(GetDomainLogPublishingOption... logPublishingOptions) { return logPublishingOptions(List.of(logPublishingOptions)); } + @CustomType.Setter public Builder nodeToNodeEncryptions(List nodeToNodeEncryptions) { this.nodeToNodeEncryptions = Objects.requireNonNull(nodeToNodeEncryptions); return this; @@ -500,10 +466,12 @@ public Builder nodeToNodeEncryptions(List nodeToN public Builder nodeToNodeEncryptions(GetDomainNodeToNodeEncryption... nodeToNodeEncryptions) { return nodeToNodeEncryptions(List.of(nodeToNodeEncryptions)); } + @CustomType.Setter public Builder processing(Boolean processing) { this.processing = Objects.requireNonNull(processing); return this; } + @CustomType.Setter public Builder snapshotOptions(List snapshotOptions) { this.snapshotOptions = Objects.requireNonNull(snapshotOptions); return this; @@ -511,18 +479,45 @@ public Builder snapshotOptions(List snapshotOptions) { public Builder snapshotOptions(GetDomainSnapshotOption... snapshotOptions) { return snapshotOptions(List.of(snapshotOptions)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcOptions(List vpcOptions) { this.vpcOptions = Objects.requireNonNull(vpcOptions); return this; } public Builder vpcOptions(GetDomainVpcOption... vpcOptions) { return vpcOptions(List.of(vpcOptions)); - } public GetDomainResult build() { - return new GetDomainResult(accessPolicies, advancedOptions, advancedSecurityOptions, arn, autoTuneOptions, clusterConfigs, cognitoOptions, created, deleted, domainId, domainName, ebsOptions, encryptionAtRests, endpoint, engineVersion, id, kibanaEndpoint, logPublishingOptions, nodeToNodeEncryptions, processing, snapshotOptions, tags, vpcOptions); + } + public GetDomainResult build() { + final var o = new GetDomainResult(); + o.accessPolicies = accessPolicies; + o.advancedOptions = advancedOptions; + o.advancedSecurityOptions = advancedSecurityOptions; + o.arn = arn; + o.autoTuneOptions = autoTuneOptions; + o.clusterConfigs = clusterConfigs; + o.cognitoOptions = cognitoOptions; + o.created = created; + o.deleted = deleted; + o.domainId = domainId; + o.domainName = domainName; + o.ebsOptions = ebsOptions; + o.encryptionAtRests = encryptionAtRests; + o.endpoint = endpoint; + o.engineVersion = engineVersion; + o.id = id; + o.kibanaEndpoint = kibanaEndpoint; + o.logPublishingOptions = logPublishingOptions; + o.nodeToNodeEncryptions = nodeToNodeEncryptions; + o.processing = processing; + o.snapshotOptions = snapshotOptions; + o.tags = tags; + o.vpcOptions = vpcOptions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainSnapshotOption.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainSnapshotOption.java index 8237609f6b5..08b5e011f1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainSnapshotOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainSnapshotOption.java @@ -13,13 +13,9 @@ public final class GetDomainSnapshotOption { * @return Hour during which the service takes an automated daily snapshot of the indices in the domain. * */ - private final Integer automatedSnapshotStartHour; - - @CustomType.Constructor - private GetDomainSnapshotOption(@CustomType.Parameter("automatedSnapshotStartHour") Integer automatedSnapshotStartHour) { - this.automatedSnapshotStartHour = automatedSnapshotStartHour; - } + private Integer automatedSnapshotStartHour; + private GetDomainSnapshotOption() {} /** * @return Hour during which the service takes an automated daily snapshot of the indices in the domain. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetDomainSnapshotOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer automatedSnapshotStartHour; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainSnapshotOption defaults) { Objects.requireNonNull(defaults); this.automatedSnapshotStartHour = defaults.automatedSnapshotStartHour; } + @CustomType.Setter public Builder automatedSnapshotStartHour(Integer automatedSnapshotStartHour) { this.automatedSnapshotStartHour = Objects.requireNonNull(automatedSnapshotStartHour); return this; - } public GetDomainSnapshotOption build() { - return new GetDomainSnapshotOption(automatedSnapshotStartHour); + } + public GetDomainSnapshotOption build() { + final var o = new GetDomainSnapshotOption(); + o.automatedSnapshotStartHour = automatedSnapshotStartHour; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainVpcOption.java b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainVpcOption.java index 2ec0c5ad8ca..cd143761199 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainVpcOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opensearch/outputs/GetDomainVpcOption.java @@ -14,35 +14,24 @@ public final class GetDomainVpcOption { * @return Availability zones used by the domain. * */ - private final List availabilityZones; + private List availabilityZones; /** * @return Security groups used by the domain. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return Subnets used by the domain. * */ - private final List subnetIds; + private List subnetIds; /** * @return VPC used by the domain. * */ - private final String vpcId; - - @CustomType.Constructor - private GetDomainVpcOption( - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.availabilityZones = availabilityZones; - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private GetDomainVpcOption() {} /** * @return Availability zones used by the domain. * @@ -79,17 +68,13 @@ public static Builder builder() { public static Builder builder(GetDomainVpcOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List availabilityZones; private List securityGroupIds; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainVpcOption defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -98,6 +83,7 @@ public Builder(GetDomainVpcOption defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -105,6 +91,7 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -112,6 +99,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -119,11 +107,18 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetDomainVpcOption build() { - return new GetDomainVpcOption(availabilityZones, securityGroupIds, subnetIds, vpcId); + } + public GetDomainVpcOption build() { + final var o = new GetDomainVpcOption(); + o.availabilityZones = availabilityZones; + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/ApplicationAppSource.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/ApplicationAppSource.java index c62391c6185..7b844d4c0f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/ApplicationAppSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/ApplicationAppSource.java @@ -15,49 +15,34 @@ public final class ApplicationAppSource { * @return Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration. * */ - private final @Nullable String password; + private @Nullable String password; /** * @return For sources that are version-aware, the revision to use. * */ - private final @Nullable String revision; + private @Nullable String revision; /** * @return SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration. * */ - private final @Nullable String sshKey; + private @Nullable String sshKey; /** * @return The type of source to use. For example, "archive". * */ - private final String type; + private String type; /** * @return The URL where the app resource can be found. * */ - private final @Nullable String url; + private @Nullable String url; /** * @return Username to use when authenticating to the source. * */ - private final @Nullable String username; - - @CustomType.Constructor - private ApplicationAppSource( - @CustomType.Parameter("password") @Nullable String password, - @CustomType.Parameter("revision") @Nullable String revision, - @CustomType.Parameter("sshKey") @Nullable String sshKey, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("url") @Nullable String url, - @CustomType.Parameter("username") @Nullable String username) { - this.password = password; - this.revision = revision; - this.sshKey = sshKey; - this.type = type; - this.url = url; - this.username = username; - } + private @Nullable String username; + private ApplicationAppSource() {} /** * @return Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(ApplicationAppSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String password; private @Nullable String revision; @@ -116,11 +101,7 @@ public static final class Builder { private String type; private @Nullable String url; private @Nullable String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationAppSource defaults) { Objects.requireNonNull(defaults); this.password = defaults.password; @@ -131,31 +112,45 @@ public Builder(ApplicationAppSource defaults) { this.username = defaults.username; } + @CustomType.Setter public Builder password(@Nullable String password) { this.password = password; return this; } + @CustomType.Setter public Builder revision(@Nullable String revision) { this.revision = revision; return this; } + @CustomType.Setter public Builder sshKey(@Nullable String sshKey) { this.sshKey = sshKey; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder url(@Nullable String url) { this.url = url; return this; } + @CustomType.Setter public Builder username(@Nullable String username) { this.username = username; return this; - } public ApplicationAppSource build() { - return new ApplicationAppSource(password, revision, sshKey, type, url, username); + } + public ApplicationAppSource build() { + final var o = new ApplicationAppSource(); + o.password = password; + o.revision = revision; + o.sshKey = sshKey; + o.type = type; + o.url = url; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/ApplicationEnvironment.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/ApplicationEnvironment.java index 47563b22844..3f2b2afcb66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/ApplicationEnvironment.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/ApplicationEnvironment.java @@ -16,28 +16,19 @@ public final class ApplicationEnvironment { * @return Variable name. * */ - private final String key; + private String key; /** * @return Set visibility of the variable value to `true` or `false`. * */ - private final @Nullable Boolean secure; + private @Nullable Boolean secure; /** * @return Variable value. * */ - private final String value; - - @CustomType.Constructor - private ApplicationEnvironment( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("secure") @Nullable Boolean secure, - @CustomType.Parameter("value") String value) { - this.key = key; - this.secure = secure; - this.value = value; - } + private String value; + private ApplicationEnvironment() {} /** * @return Variable name. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ApplicationEnvironment defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private @Nullable Boolean secure; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationEnvironment defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,19 +71,27 @@ public Builder(ApplicationEnvironment defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder secure(@Nullable Boolean secure) { this.secure = secure; return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ApplicationEnvironment build() { - return new ApplicationEnvironment(key, secure, value); + } + public ApplicationEnvironment build() { + final var o = new ApplicationEnvironment(); + o.key = key; + o.secure = secure; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/ApplicationSslConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/ApplicationSslConfiguration.java index 2cf4391b5ab..371385d81b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/ApplicationSslConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/ApplicationSslConfiguration.java @@ -15,28 +15,19 @@ public final class ApplicationSslConfiguration { * @return The contents of the certificate's domain.crt file. * */ - private final String certificate; + private String certificate; /** * @return Can be used to specify an intermediate certificate authority key or client authentication. * */ - private final @Nullable String chain; + private @Nullable String chain; /** * @return The private key; the contents of the certificate's domain.key file. * */ - private final String privateKey; - - @CustomType.Constructor - private ApplicationSslConfiguration( - @CustomType.Parameter("certificate") String certificate, - @CustomType.Parameter("chain") @Nullable String chain, - @CustomType.Parameter("privateKey") String privateKey) { - this.certificate = certificate; - this.chain = chain; - this.privateKey = privateKey; - } + private String privateKey; + private ApplicationSslConfiguration() {} /** * @return The contents of the certificate's domain.crt file. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ApplicationSslConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String certificate; private @Nullable String chain; private String privateKey; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ApplicationSslConfiguration defaults) { Objects.requireNonNull(defaults); this.certificate = defaults.certificate; @@ -83,19 +70,27 @@ public Builder(ApplicationSslConfiguration defaults) { this.privateKey = defaults.privateKey; } + @CustomType.Setter public Builder certificate(String certificate) { this.certificate = Objects.requireNonNull(certificate); return this; } + @CustomType.Setter public Builder chain(@Nullable String chain) { this.chain = chain; return this; } + @CustomType.Setter public Builder privateKey(String privateKey) { this.privateKey = Objects.requireNonNull(privateKey); return this; - } public ApplicationSslConfiguration build() { - return new ApplicationSslConfiguration(certificate, chain, privateKey); + } + public ApplicationSslConfiguration build() { + final var o = new ApplicationSslConfiguration(); + o.certificate = certificate; + o.chain = chain; + o.privateKey = privateKey; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/CustomLayerCloudwatchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/CustomLayerCloudwatchConfiguration.java index b906fdbc6c2..697e7f9be87 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/CustomLayerCloudwatchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/CustomLayerCloudwatchConfiguration.java @@ -13,21 +13,14 @@ @CustomType public final class CustomLayerCloudwatchConfiguration { - private final @Nullable Boolean enabled; + private @Nullable Boolean enabled; /** * @return A block the specifies how an opsworks logs look like. See Log Streams. * */ - private final @Nullable List logStreams; - - @CustomType.Constructor - private CustomLayerCloudwatchConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logStreams") @Nullable List logStreams) { - this.enabled = enabled; - this.logStreams = logStreams; - } + private @Nullable List logStreams; + private CustomLayerCloudwatchConfiguration() {} public Optional enabled() { return Optional.ofNullable(this.enabled); } @@ -46,33 +39,35 @@ public static Builder builder() { public static Builder builder(CustomLayerCloudwatchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List logStreams; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CustomLayerCloudwatchConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logStreams = defaults.logStreams; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logStreams(@Nullable List logStreams) { this.logStreams = logStreams; return this; } public Builder logStreams(CustomLayerCloudwatchConfigurationLogStream... logStreams) { return logStreams(List.of(logStreams)); - } public CustomLayerCloudwatchConfiguration build() { - return new CustomLayerCloudwatchConfiguration(enabled, logStreams); + } + public CustomLayerCloudwatchConfiguration build() { + final var o = new CustomLayerCloudwatchConfiguration(); + o.enabled = enabled; + o.logStreams = logStreams; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/CustomLayerCloudwatchConfigurationLogStream.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/CustomLayerCloudwatchConfigurationLogStream.java index 0c45dc80f23..3d5b9d81a75 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/CustomLayerCloudwatchConfigurationLogStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/CustomLayerCloudwatchConfigurationLogStream.java @@ -16,84 +16,59 @@ public final class CustomLayerCloudwatchConfigurationLogStream { * @return Specifies the max number of log events in a batch, up to `10000`. The default value is `1000`. * */ - private final @Nullable Integer batchCount; + private @Nullable Integer batchCount; /** * @return Specifies the maximum size of log events in a batch, in bytes, up to `1048576` bytes. The default value is `32768` bytes. * */ - private final @Nullable Integer batchSize; + private @Nullable Integer batchSize; /** * @return Specifies the time duration for the batching of log events. The minimum value is `5000` and default value is `5000`. * */ - private final @Nullable Integer bufferDuration; + private @Nullable Integer bufferDuration; /** * @return Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html). * */ - private final @Nullable String datetimeFormat; + private @Nullable String datetimeFormat; /** * @return Specifies the encoding of the log file so that the file can be read correctly. The default is `utf_8`. * */ - private final @Nullable String encoding; + private @Nullable String encoding; /** * @return Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*). * */ - private final String file; + private String file; /** * @return Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as `1`, `2-5`. The default value is `1`. * */ - private final @Nullable String fileFingerprintLines; + private @Nullable String fileFingerprintLines; /** * @return Specifies where to start to read data (`start_of_file` or `end_of_file`). The default is `start_of_file`. * */ - private final @Nullable String initialPosition; + private @Nullable String initialPosition; /** * @return Specifies the destination log group. A log group is created automatically if it doesn't already exist. * */ - private final String logGroupName; + private String logGroupName; /** * @return Specifies the pattern for identifying the start of a log message. * */ - private final @Nullable String multilineStartPattern; + private @Nullable String multilineStartPattern; /** * @return Specifies the time zone of log event time stamps. * */ - private final @Nullable String timeZone; - - @CustomType.Constructor - private CustomLayerCloudwatchConfigurationLogStream( - @CustomType.Parameter("batchCount") @Nullable Integer batchCount, - @CustomType.Parameter("batchSize") @Nullable Integer batchSize, - @CustomType.Parameter("bufferDuration") @Nullable Integer bufferDuration, - @CustomType.Parameter("datetimeFormat") @Nullable String datetimeFormat, - @CustomType.Parameter("encoding") @Nullable String encoding, - @CustomType.Parameter("file") String file, - @CustomType.Parameter("fileFingerprintLines") @Nullable String fileFingerprintLines, - @CustomType.Parameter("initialPosition") @Nullable String initialPosition, - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("multilineStartPattern") @Nullable String multilineStartPattern, - @CustomType.Parameter("timeZone") @Nullable String timeZone) { - this.batchCount = batchCount; - this.batchSize = batchSize; - this.bufferDuration = bufferDuration; - this.datetimeFormat = datetimeFormat; - this.encoding = encoding; - this.file = file; - this.fileFingerprintLines = fileFingerprintLines; - this.initialPosition = initialPosition; - this.logGroupName = logGroupName; - this.multilineStartPattern = multilineStartPattern; - this.timeZone = timeZone; - } + private @Nullable String timeZone; + private CustomLayerCloudwatchConfigurationLogStream() {} /** * @return Specifies the max number of log events in a batch, up to `10000`. The default value is `1000`. * @@ -179,7 +154,7 @@ public static Builder builder() { public static Builder builder(CustomLayerCloudwatchConfigurationLogStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer batchCount; private @Nullable Integer batchSize; @@ -192,11 +167,7 @@ public static final class Builder { private String logGroupName; private @Nullable String multilineStartPattern; private @Nullable String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CustomLayerCloudwatchConfigurationLogStream defaults) { Objects.requireNonNull(defaults); this.batchCount = defaults.batchCount; @@ -212,51 +183,75 @@ public Builder(CustomLayerCloudwatchConfigurationLogStream defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder batchCount(@Nullable Integer batchCount) { this.batchCount = batchCount; return this; } + @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { this.batchSize = batchSize; return this; } + @CustomType.Setter public Builder bufferDuration(@Nullable Integer bufferDuration) { this.bufferDuration = bufferDuration; return this; } + @CustomType.Setter public Builder datetimeFormat(@Nullable String datetimeFormat) { this.datetimeFormat = datetimeFormat; return this; } + @CustomType.Setter public Builder encoding(@Nullable String encoding) { this.encoding = encoding; return this; } + @CustomType.Setter public Builder file(String file) { this.file = Objects.requireNonNull(file); return this; } + @CustomType.Setter public Builder fileFingerprintLines(@Nullable String fileFingerprintLines) { this.fileFingerprintLines = fileFingerprintLines; return this; } + @CustomType.Setter public Builder initialPosition(@Nullable String initialPosition) { this.initialPosition = initialPosition; return this; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder multilineStartPattern(@Nullable String multilineStartPattern) { this.multilineStartPattern = multilineStartPattern; return this; } + @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { this.timeZone = timeZone; return this; - } public CustomLayerCloudwatchConfigurationLogStream build() { - return new CustomLayerCloudwatchConfigurationLogStream(batchCount, batchSize, bufferDuration, datetimeFormat, encoding, file, fileFingerprintLines, initialPosition, logGroupName, multilineStartPattern, timeZone); + } + public CustomLayerCloudwatchConfigurationLogStream build() { + final var o = new CustomLayerCloudwatchConfigurationLogStream(); + o.batchCount = batchCount; + o.batchSize = batchSize; + o.bufferDuration = bufferDuration; + o.datetimeFormat = datetimeFormat; + o.encoding = encoding; + o.file = file; + o.fileFingerprintLines = fileFingerprintLines; + o.initialPosition = initialPosition; + o.logGroupName = logGroupName; + o.multilineStartPattern = multilineStartPattern; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/CustomLayerEbsVolume.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/CustomLayerEbsVolume.java index ea5c5110f90..5945a41173e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/CustomLayerEbsVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/CustomLayerEbsVolume.java @@ -17,56 +17,39 @@ public final class CustomLayerEbsVolume { * @return Encrypt the volume. * */ - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return For PIOPS volumes, the IOPS per disk. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The path to mount the EBS volume on the layer's instances. * */ - private final String mountPoint; + private String mountPoint; /** * @return The number of disks to use for the EBS volume. * */ - private final Integer numberOfDisks; + private Integer numberOfDisks; /** * @return The RAID level to use for the volume. * */ - private final @Nullable String raidLevel; + private @Nullable String raidLevel; /** * @return The size of the volume in gigabytes. * */ - private final Integer size; + private Integer size; /** * @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private CustomLayerEbsVolume( - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mountPoint") String mountPoint, - @CustomType.Parameter("numberOfDisks") Integer numberOfDisks, - @CustomType.Parameter("raidLevel") @Nullable String raidLevel, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") @Nullable String type) { - this.encrypted = encrypted; - this.iops = iops; - this.mountPoint = mountPoint; - this.numberOfDisks = numberOfDisks; - this.raidLevel = raidLevel; - this.size = size; - this.type = type; - } + private @Nullable String type; + private CustomLayerEbsVolume() {} /** * @return Encrypt the volume. * @@ -124,7 +107,7 @@ public static Builder builder() { public static Builder builder(CustomLayerEbsVolume defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean encrypted; private @Nullable Integer iops; @@ -133,11 +116,7 @@ public static final class Builder { private @Nullable String raidLevel; private Integer size; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CustomLayerEbsVolume defaults) { Objects.requireNonNull(defaults); this.encrypted = defaults.encrypted; @@ -149,35 +128,51 @@ public Builder(CustomLayerEbsVolume defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mountPoint(String mountPoint) { this.mountPoint = Objects.requireNonNull(mountPoint); return this; } + @CustomType.Setter public Builder numberOfDisks(Integer numberOfDisks) { this.numberOfDisks = Objects.requireNonNull(numberOfDisks); return this; } + @CustomType.Setter public Builder raidLevel(@Nullable String raidLevel) { this.raidLevel = raidLevel; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public CustomLayerEbsVolume build() { - return new CustomLayerEbsVolume(encrypted, iops, mountPoint, numberOfDisks, raidLevel, size, type); + } + public CustomLayerEbsVolume build() { + final var o = new CustomLayerEbsVolume(); + o.encrypted = encrypted; + o.iops = iops; + o.mountPoint = mountPoint; + o.numberOfDisks = numberOfDisks; + o.raidLevel = raidLevel; + o.size = size; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/EcsClusterLayerCloudwatchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/EcsClusterLayerCloudwatchConfiguration.java index 26e1ed6550a..09151daad69 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/EcsClusterLayerCloudwatchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/EcsClusterLayerCloudwatchConfiguration.java @@ -13,17 +13,10 @@ @CustomType public final class EcsClusterLayerCloudwatchConfiguration { - private final @Nullable Boolean enabled; - private final @Nullable List logStreams; - - @CustomType.Constructor - private EcsClusterLayerCloudwatchConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logStreams") @Nullable List logStreams) { - this.enabled = enabled; - this.logStreams = logStreams; - } + private @Nullable Boolean enabled; + private @Nullable List logStreams; + private EcsClusterLayerCloudwatchConfiguration() {} public Optional enabled() { return Optional.ofNullable(this.enabled); } @@ -38,33 +31,35 @@ public static Builder builder() { public static Builder builder(EcsClusterLayerCloudwatchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List logStreams; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EcsClusterLayerCloudwatchConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logStreams = defaults.logStreams; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logStreams(@Nullable List logStreams) { this.logStreams = logStreams; return this; } public Builder logStreams(EcsClusterLayerCloudwatchConfigurationLogStream... logStreams) { return logStreams(List.of(logStreams)); - } public EcsClusterLayerCloudwatchConfiguration build() { - return new EcsClusterLayerCloudwatchConfiguration(enabled, logStreams); + } + public EcsClusterLayerCloudwatchConfiguration build() { + final var o = new EcsClusterLayerCloudwatchConfiguration(); + o.enabled = enabled; + o.logStreams = logStreams; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/EcsClusterLayerCloudwatchConfigurationLogStream.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/EcsClusterLayerCloudwatchConfigurationLogStream.java index cb164625fa5..9b6aadb53ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/EcsClusterLayerCloudwatchConfigurationLogStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/EcsClusterLayerCloudwatchConfigurationLogStream.java @@ -12,44 +12,19 @@ @CustomType public final class EcsClusterLayerCloudwatchConfigurationLogStream { - private final @Nullable Integer batchCount; - private final @Nullable Integer batchSize; - private final @Nullable Integer bufferDuration; - private final @Nullable String datetimeFormat; - private final @Nullable String encoding; - private final String file; - private final @Nullable String fileFingerprintLines; - private final @Nullable String initialPosition; - private final String logGroupName; - private final @Nullable String multilineStartPattern; - private final @Nullable String timeZone; - - @CustomType.Constructor - private EcsClusterLayerCloudwatchConfigurationLogStream( - @CustomType.Parameter("batchCount") @Nullable Integer batchCount, - @CustomType.Parameter("batchSize") @Nullable Integer batchSize, - @CustomType.Parameter("bufferDuration") @Nullable Integer bufferDuration, - @CustomType.Parameter("datetimeFormat") @Nullable String datetimeFormat, - @CustomType.Parameter("encoding") @Nullable String encoding, - @CustomType.Parameter("file") String file, - @CustomType.Parameter("fileFingerprintLines") @Nullable String fileFingerprintLines, - @CustomType.Parameter("initialPosition") @Nullable String initialPosition, - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("multilineStartPattern") @Nullable String multilineStartPattern, - @CustomType.Parameter("timeZone") @Nullable String timeZone) { - this.batchCount = batchCount; - this.batchSize = batchSize; - this.bufferDuration = bufferDuration; - this.datetimeFormat = datetimeFormat; - this.encoding = encoding; - this.file = file; - this.fileFingerprintLines = fileFingerprintLines; - this.initialPosition = initialPosition; - this.logGroupName = logGroupName; - this.multilineStartPattern = multilineStartPattern; - this.timeZone = timeZone; - } + private @Nullable Integer batchCount; + private @Nullable Integer batchSize; + private @Nullable Integer bufferDuration; + private @Nullable String datetimeFormat; + private @Nullable String encoding; + private String file; + private @Nullable String fileFingerprintLines; + private @Nullable String initialPosition; + private String logGroupName; + private @Nullable String multilineStartPattern; + private @Nullable String timeZone; + private EcsClusterLayerCloudwatchConfigurationLogStream() {} public Optional batchCount() { return Optional.ofNullable(this.batchCount); } @@ -91,7 +66,7 @@ public static Builder builder() { public static Builder builder(EcsClusterLayerCloudwatchConfigurationLogStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer batchCount; private @Nullable Integer batchSize; @@ -104,11 +79,7 @@ public static final class Builder { private String logGroupName; private @Nullable String multilineStartPattern; private @Nullable String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EcsClusterLayerCloudwatchConfigurationLogStream defaults) { Objects.requireNonNull(defaults); this.batchCount = defaults.batchCount; @@ -124,51 +95,75 @@ public Builder(EcsClusterLayerCloudwatchConfigurationLogStream defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder batchCount(@Nullable Integer batchCount) { this.batchCount = batchCount; return this; } + @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { this.batchSize = batchSize; return this; } + @CustomType.Setter public Builder bufferDuration(@Nullable Integer bufferDuration) { this.bufferDuration = bufferDuration; return this; } + @CustomType.Setter public Builder datetimeFormat(@Nullable String datetimeFormat) { this.datetimeFormat = datetimeFormat; return this; } + @CustomType.Setter public Builder encoding(@Nullable String encoding) { this.encoding = encoding; return this; } + @CustomType.Setter public Builder file(String file) { this.file = Objects.requireNonNull(file); return this; } + @CustomType.Setter public Builder fileFingerprintLines(@Nullable String fileFingerprintLines) { this.fileFingerprintLines = fileFingerprintLines; return this; } + @CustomType.Setter public Builder initialPosition(@Nullable String initialPosition) { this.initialPosition = initialPosition; return this; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder multilineStartPattern(@Nullable String multilineStartPattern) { this.multilineStartPattern = multilineStartPattern; return this; } + @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { this.timeZone = timeZone; return this; - } public EcsClusterLayerCloudwatchConfigurationLogStream build() { - return new EcsClusterLayerCloudwatchConfigurationLogStream(batchCount, batchSize, bufferDuration, datetimeFormat, encoding, file, fileFingerprintLines, initialPosition, logGroupName, multilineStartPattern, timeZone); + } + public EcsClusterLayerCloudwatchConfigurationLogStream build() { + final var o = new EcsClusterLayerCloudwatchConfigurationLogStream(); + o.batchCount = batchCount; + o.batchSize = batchSize; + o.bufferDuration = bufferDuration; + o.datetimeFormat = datetimeFormat; + o.encoding = encoding; + o.file = file; + o.fileFingerprintLines = fileFingerprintLines; + o.initialPosition = initialPosition; + o.logGroupName = logGroupName; + o.multilineStartPattern = multilineStartPattern; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/EcsClusterLayerEbsVolume.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/EcsClusterLayerEbsVolume.java index 4e3b7807512..c66761d7910 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/EcsClusterLayerEbsVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/EcsClusterLayerEbsVolume.java @@ -13,56 +13,39 @@ @CustomType public final class EcsClusterLayerEbsVolume { - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return For PIOPS volumes, the IOPS per disk. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The path to mount the EBS volume on the layer's instances. * */ - private final String mountPoint; + private String mountPoint; /** * @return The number of disks to use for the EBS volume. * */ - private final Integer numberOfDisks; + private Integer numberOfDisks; /** * @return The RAID level to use for the volume. * */ - private final @Nullable String raidLevel; + private @Nullable String raidLevel; /** * @return The size of the volume in gigabytes. * */ - private final Integer size; + private Integer size; /** * @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private EcsClusterLayerEbsVolume( - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mountPoint") String mountPoint, - @CustomType.Parameter("numberOfDisks") Integer numberOfDisks, - @CustomType.Parameter("raidLevel") @Nullable String raidLevel, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") @Nullable String type) { - this.encrypted = encrypted; - this.iops = iops; - this.mountPoint = mountPoint; - this.numberOfDisks = numberOfDisks; - this.raidLevel = raidLevel; - this.size = size; - this.type = type; - } + private @Nullable String type; + private EcsClusterLayerEbsVolume() {} public Optional encrypted() { return Optional.ofNullable(this.encrypted); } @@ -116,7 +99,7 @@ public static Builder builder() { public static Builder builder(EcsClusterLayerEbsVolume defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean encrypted; private @Nullable Integer iops; @@ -125,11 +108,7 @@ public static final class Builder { private @Nullable String raidLevel; private Integer size; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EcsClusterLayerEbsVolume defaults) { Objects.requireNonNull(defaults); this.encrypted = defaults.encrypted; @@ -141,35 +120,51 @@ public Builder(EcsClusterLayerEbsVolume defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mountPoint(String mountPoint) { this.mountPoint = Objects.requireNonNull(mountPoint); return this; } + @CustomType.Setter public Builder numberOfDisks(Integer numberOfDisks) { this.numberOfDisks = Objects.requireNonNull(numberOfDisks); return this; } + @CustomType.Setter public Builder raidLevel(@Nullable String raidLevel) { this.raidLevel = raidLevel; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public EcsClusterLayerEbsVolume build() { - return new EcsClusterLayerEbsVolume(encrypted, iops, mountPoint, numberOfDisks, raidLevel, size, type); + } + public EcsClusterLayerEbsVolume build() { + final var o = new EcsClusterLayerEbsVolume(); + o.encrypted = encrypted; + o.iops = iops; + o.mountPoint = mountPoint; + o.numberOfDisks = numberOfDisks; + o.raidLevel = raidLevel; + o.size = size; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/GangliaLayerCloudwatchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/GangliaLayerCloudwatchConfiguration.java index 5095fe3c6ce..3fe1fe7b761 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/GangliaLayerCloudwatchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/GangliaLayerCloudwatchConfiguration.java @@ -13,17 +13,10 @@ @CustomType public final class GangliaLayerCloudwatchConfiguration { - private final @Nullable Boolean enabled; - private final @Nullable List logStreams; - - @CustomType.Constructor - private GangliaLayerCloudwatchConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logStreams") @Nullable List logStreams) { - this.enabled = enabled; - this.logStreams = logStreams; - } + private @Nullable Boolean enabled; + private @Nullable List logStreams; + private GangliaLayerCloudwatchConfiguration() {} public Optional enabled() { return Optional.ofNullable(this.enabled); } @@ -38,33 +31,35 @@ public static Builder builder() { public static Builder builder(GangliaLayerCloudwatchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List logStreams; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GangliaLayerCloudwatchConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logStreams = defaults.logStreams; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logStreams(@Nullable List logStreams) { this.logStreams = logStreams; return this; } public Builder logStreams(GangliaLayerCloudwatchConfigurationLogStream... logStreams) { return logStreams(List.of(logStreams)); - } public GangliaLayerCloudwatchConfiguration build() { - return new GangliaLayerCloudwatchConfiguration(enabled, logStreams); + } + public GangliaLayerCloudwatchConfiguration build() { + final var o = new GangliaLayerCloudwatchConfiguration(); + o.enabled = enabled; + o.logStreams = logStreams; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/GangliaLayerCloudwatchConfigurationLogStream.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/GangliaLayerCloudwatchConfigurationLogStream.java index 88b0c41a39f..8348b050c82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/GangliaLayerCloudwatchConfigurationLogStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/GangliaLayerCloudwatchConfigurationLogStream.java @@ -12,44 +12,19 @@ @CustomType public final class GangliaLayerCloudwatchConfigurationLogStream { - private final @Nullable Integer batchCount; - private final @Nullable Integer batchSize; - private final @Nullable Integer bufferDuration; - private final @Nullable String datetimeFormat; - private final @Nullable String encoding; - private final String file; - private final @Nullable String fileFingerprintLines; - private final @Nullable String initialPosition; - private final String logGroupName; - private final @Nullable String multilineStartPattern; - private final @Nullable String timeZone; - - @CustomType.Constructor - private GangliaLayerCloudwatchConfigurationLogStream( - @CustomType.Parameter("batchCount") @Nullable Integer batchCount, - @CustomType.Parameter("batchSize") @Nullable Integer batchSize, - @CustomType.Parameter("bufferDuration") @Nullable Integer bufferDuration, - @CustomType.Parameter("datetimeFormat") @Nullable String datetimeFormat, - @CustomType.Parameter("encoding") @Nullable String encoding, - @CustomType.Parameter("file") String file, - @CustomType.Parameter("fileFingerprintLines") @Nullable String fileFingerprintLines, - @CustomType.Parameter("initialPosition") @Nullable String initialPosition, - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("multilineStartPattern") @Nullable String multilineStartPattern, - @CustomType.Parameter("timeZone") @Nullable String timeZone) { - this.batchCount = batchCount; - this.batchSize = batchSize; - this.bufferDuration = bufferDuration; - this.datetimeFormat = datetimeFormat; - this.encoding = encoding; - this.file = file; - this.fileFingerprintLines = fileFingerprintLines; - this.initialPosition = initialPosition; - this.logGroupName = logGroupName; - this.multilineStartPattern = multilineStartPattern; - this.timeZone = timeZone; - } + private @Nullable Integer batchCount; + private @Nullable Integer batchSize; + private @Nullable Integer bufferDuration; + private @Nullable String datetimeFormat; + private @Nullable String encoding; + private String file; + private @Nullable String fileFingerprintLines; + private @Nullable String initialPosition; + private String logGroupName; + private @Nullable String multilineStartPattern; + private @Nullable String timeZone; + private GangliaLayerCloudwatchConfigurationLogStream() {} public Optional batchCount() { return Optional.ofNullable(this.batchCount); } @@ -91,7 +66,7 @@ public static Builder builder() { public static Builder builder(GangliaLayerCloudwatchConfigurationLogStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer batchCount; private @Nullable Integer batchSize; @@ -104,11 +79,7 @@ public static final class Builder { private String logGroupName; private @Nullable String multilineStartPattern; private @Nullable String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GangliaLayerCloudwatchConfigurationLogStream defaults) { Objects.requireNonNull(defaults); this.batchCount = defaults.batchCount; @@ -124,51 +95,75 @@ public Builder(GangliaLayerCloudwatchConfigurationLogStream defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder batchCount(@Nullable Integer batchCount) { this.batchCount = batchCount; return this; } + @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { this.batchSize = batchSize; return this; } + @CustomType.Setter public Builder bufferDuration(@Nullable Integer bufferDuration) { this.bufferDuration = bufferDuration; return this; } + @CustomType.Setter public Builder datetimeFormat(@Nullable String datetimeFormat) { this.datetimeFormat = datetimeFormat; return this; } + @CustomType.Setter public Builder encoding(@Nullable String encoding) { this.encoding = encoding; return this; } + @CustomType.Setter public Builder file(String file) { this.file = Objects.requireNonNull(file); return this; } + @CustomType.Setter public Builder fileFingerprintLines(@Nullable String fileFingerprintLines) { this.fileFingerprintLines = fileFingerprintLines; return this; } + @CustomType.Setter public Builder initialPosition(@Nullable String initialPosition) { this.initialPosition = initialPosition; return this; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder multilineStartPattern(@Nullable String multilineStartPattern) { this.multilineStartPattern = multilineStartPattern; return this; } + @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { this.timeZone = timeZone; return this; - } public GangliaLayerCloudwatchConfigurationLogStream build() { - return new GangliaLayerCloudwatchConfigurationLogStream(batchCount, batchSize, bufferDuration, datetimeFormat, encoding, file, fileFingerprintLines, initialPosition, logGroupName, multilineStartPattern, timeZone); + } + public GangliaLayerCloudwatchConfigurationLogStream build() { + final var o = new GangliaLayerCloudwatchConfigurationLogStream(); + o.batchCount = batchCount; + o.batchSize = batchSize; + o.bufferDuration = bufferDuration; + o.datetimeFormat = datetimeFormat; + o.encoding = encoding; + o.file = file; + o.fileFingerprintLines = fileFingerprintLines; + o.initialPosition = initialPosition; + o.logGroupName = logGroupName; + o.multilineStartPattern = multilineStartPattern; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/GangliaLayerEbsVolume.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/GangliaLayerEbsVolume.java index a047971df0b..34dc3e1ba5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/GangliaLayerEbsVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/GangliaLayerEbsVolume.java @@ -13,56 +13,39 @@ @CustomType public final class GangliaLayerEbsVolume { - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return For PIOPS volumes, the IOPS per disk. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The path to mount the EBS volume on the layer's instances. * */ - private final String mountPoint; + private String mountPoint; /** * @return The number of disks to use for the EBS volume. * */ - private final Integer numberOfDisks; + private Integer numberOfDisks; /** * @return The RAID level to use for the volume. * */ - private final @Nullable String raidLevel; + private @Nullable String raidLevel; /** * @return The size of the volume in gigabytes. * */ - private final Integer size; + private Integer size; /** * @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private GangliaLayerEbsVolume( - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mountPoint") String mountPoint, - @CustomType.Parameter("numberOfDisks") Integer numberOfDisks, - @CustomType.Parameter("raidLevel") @Nullable String raidLevel, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") @Nullable String type) { - this.encrypted = encrypted; - this.iops = iops; - this.mountPoint = mountPoint; - this.numberOfDisks = numberOfDisks; - this.raidLevel = raidLevel; - this.size = size; - this.type = type; - } + private @Nullable String type; + private GangliaLayerEbsVolume() {} public Optional encrypted() { return Optional.ofNullable(this.encrypted); } @@ -116,7 +99,7 @@ public static Builder builder() { public static Builder builder(GangliaLayerEbsVolume defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean encrypted; private @Nullable Integer iops; @@ -125,11 +108,7 @@ public static final class Builder { private @Nullable String raidLevel; private Integer size; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GangliaLayerEbsVolume defaults) { Objects.requireNonNull(defaults); this.encrypted = defaults.encrypted; @@ -141,35 +120,51 @@ public Builder(GangliaLayerEbsVolume defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mountPoint(String mountPoint) { this.mountPoint = Objects.requireNonNull(mountPoint); return this; } + @CustomType.Setter public Builder numberOfDisks(Integer numberOfDisks) { this.numberOfDisks = Objects.requireNonNull(numberOfDisks); return this; } + @CustomType.Setter public Builder raidLevel(@Nullable String raidLevel) { this.raidLevel = raidLevel; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public GangliaLayerEbsVolume build() { - return new GangliaLayerEbsVolume(encrypted, iops, mountPoint, numberOfDisks, raidLevel, size, type); + } + public GangliaLayerEbsVolume build() { + final var o = new GangliaLayerEbsVolume(); + o.encrypted = encrypted; + o.iops = iops; + o.mountPoint = mountPoint; + o.numberOfDisks = numberOfDisks; + o.raidLevel = raidLevel; + o.size = size; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/HaproxyLayerCloudwatchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/HaproxyLayerCloudwatchConfiguration.java index e862dfa3dc4..01a8c9c149f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/HaproxyLayerCloudwatchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/HaproxyLayerCloudwatchConfiguration.java @@ -13,17 +13,10 @@ @CustomType public final class HaproxyLayerCloudwatchConfiguration { - private final @Nullable Boolean enabled; - private final @Nullable List logStreams; - - @CustomType.Constructor - private HaproxyLayerCloudwatchConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logStreams") @Nullable List logStreams) { - this.enabled = enabled; - this.logStreams = logStreams; - } + private @Nullable Boolean enabled; + private @Nullable List logStreams; + private HaproxyLayerCloudwatchConfiguration() {} public Optional enabled() { return Optional.ofNullable(this.enabled); } @@ -38,33 +31,35 @@ public static Builder builder() { public static Builder builder(HaproxyLayerCloudwatchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List logStreams; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(HaproxyLayerCloudwatchConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logStreams = defaults.logStreams; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logStreams(@Nullable List logStreams) { this.logStreams = logStreams; return this; } public Builder logStreams(HaproxyLayerCloudwatchConfigurationLogStream... logStreams) { return logStreams(List.of(logStreams)); - } public HaproxyLayerCloudwatchConfiguration build() { - return new HaproxyLayerCloudwatchConfiguration(enabled, logStreams); + } + public HaproxyLayerCloudwatchConfiguration build() { + final var o = new HaproxyLayerCloudwatchConfiguration(); + o.enabled = enabled; + o.logStreams = logStreams; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/HaproxyLayerCloudwatchConfigurationLogStream.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/HaproxyLayerCloudwatchConfigurationLogStream.java index dd1e5c6a2ed..ec2714dfd2f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/HaproxyLayerCloudwatchConfigurationLogStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/HaproxyLayerCloudwatchConfigurationLogStream.java @@ -12,44 +12,19 @@ @CustomType public final class HaproxyLayerCloudwatchConfigurationLogStream { - private final @Nullable Integer batchCount; - private final @Nullable Integer batchSize; - private final @Nullable Integer bufferDuration; - private final @Nullable String datetimeFormat; - private final @Nullable String encoding; - private final String file; - private final @Nullable String fileFingerprintLines; - private final @Nullable String initialPosition; - private final String logGroupName; - private final @Nullable String multilineStartPattern; - private final @Nullable String timeZone; - - @CustomType.Constructor - private HaproxyLayerCloudwatchConfigurationLogStream( - @CustomType.Parameter("batchCount") @Nullable Integer batchCount, - @CustomType.Parameter("batchSize") @Nullable Integer batchSize, - @CustomType.Parameter("bufferDuration") @Nullable Integer bufferDuration, - @CustomType.Parameter("datetimeFormat") @Nullable String datetimeFormat, - @CustomType.Parameter("encoding") @Nullable String encoding, - @CustomType.Parameter("file") String file, - @CustomType.Parameter("fileFingerprintLines") @Nullable String fileFingerprintLines, - @CustomType.Parameter("initialPosition") @Nullable String initialPosition, - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("multilineStartPattern") @Nullable String multilineStartPattern, - @CustomType.Parameter("timeZone") @Nullable String timeZone) { - this.batchCount = batchCount; - this.batchSize = batchSize; - this.bufferDuration = bufferDuration; - this.datetimeFormat = datetimeFormat; - this.encoding = encoding; - this.file = file; - this.fileFingerprintLines = fileFingerprintLines; - this.initialPosition = initialPosition; - this.logGroupName = logGroupName; - this.multilineStartPattern = multilineStartPattern; - this.timeZone = timeZone; - } + private @Nullable Integer batchCount; + private @Nullable Integer batchSize; + private @Nullable Integer bufferDuration; + private @Nullable String datetimeFormat; + private @Nullable String encoding; + private String file; + private @Nullable String fileFingerprintLines; + private @Nullable String initialPosition; + private String logGroupName; + private @Nullable String multilineStartPattern; + private @Nullable String timeZone; + private HaproxyLayerCloudwatchConfigurationLogStream() {} public Optional batchCount() { return Optional.ofNullable(this.batchCount); } @@ -91,7 +66,7 @@ public static Builder builder() { public static Builder builder(HaproxyLayerCloudwatchConfigurationLogStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer batchCount; private @Nullable Integer batchSize; @@ -104,11 +79,7 @@ public static final class Builder { private String logGroupName; private @Nullable String multilineStartPattern; private @Nullable String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(HaproxyLayerCloudwatchConfigurationLogStream defaults) { Objects.requireNonNull(defaults); this.batchCount = defaults.batchCount; @@ -124,51 +95,75 @@ public Builder(HaproxyLayerCloudwatchConfigurationLogStream defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder batchCount(@Nullable Integer batchCount) { this.batchCount = batchCount; return this; } + @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { this.batchSize = batchSize; return this; } + @CustomType.Setter public Builder bufferDuration(@Nullable Integer bufferDuration) { this.bufferDuration = bufferDuration; return this; } + @CustomType.Setter public Builder datetimeFormat(@Nullable String datetimeFormat) { this.datetimeFormat = datetimeFormat; return this; } + @CustomType.Setter public Builder encoding(@Nullable String encoding) { this.encoding = encoding; return this; } + @CustomType.Setter public Builder file(String file) { this.file = Objects.requireNonNull(file); return this; } + @CustomType.Setter public Builder fileFingerprintLines(@Nullable String fileFingerprintLines) { this.fileFingerprintLines = fileFingerprintLines; return this; } + @CustomType.Setter public Builder initialPosition(@Nullable String initialPosition) { this.initialPosition = initialPosition; return this; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder multilineStartPattern(@Nullable String multilineStartPattern) { this.multilineStartPattern = multilineStartPattern; return this; } + @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { this.timeZone = timeZone; return this; - } public HaproxyLayerCloudwatchConfigurationLogStream build() { - return new HaproxyLayerCloudwatchConfigurationLogStream(batchCount, batchSize, bufferDuration, datetimeFormat, encoding, file, fileFingerprintLines, initialPosition, logGroupName, multilineStartPattern, timeZone); + } + public HaproxyLayerCloudwatchConfigurationLogStream build() { + final var o = new HaproxyLayerCloudwatchConfigurationLogStream(); + o.batchCount = batchCount; + o.batchSize = batchSize; + o.bufferDuration = bufferDuration; + o.datetimeFormat = datetimeFormat; + o.encoding = encoding; + o.file = file; + o.fileFingerprintLines = fileFingerprintLines; + o.initialPosition = initialPosition; + o.logGroupName = logGroupName; + o.multilineStartPattern = multilineStartPattern; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/HaproxyLayerEbsVolume.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/HaproxyLayerEbsVolume.java index a748d781f26..5a68929dc6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/HaproxyLayerEbsVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/HaproxyLayerEbsVolume.java @@ -13,56 +13,39 @@ @CustomType public final class HaproxyLayerEbsVolume { - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return For PIOPS volumes, the IOPS per disk. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The path to mount the EBS volume on the layer's instances. * */ - private final String mountPoint; + private String mountPoint; /** * @return The number of disks to use for the EBS volume. * */ - private final Integer numberOfDisks; + private Integer numberOfDisks; /** * @return The RAID level to use for the volume. * */ - private final @Nullable String raidLevel; + private @Nullable String raidLevel; /** * @return The size of the volume in gigabytes. * */ - private final Integer size; + private Integer size; /** * @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private HaproxyLayerEbsVolume( - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mountPoint") String mountPoint, - @CustomType.Parameter("numberOfDisks") Integer numberOfDisks, - @CustomType.Parameter("raidLevel") @Nullable String raidLevel, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") @Nullable String type) { - this.encrypted = encrypted; - this.iops = iops; - this.mountPoint = mountPoint; - this.numberOfDisks = numberOfDisks; - this.raidLevel = raidLevel; - this.size = size; - this.type = type; - } + private @Nullable String type; + private HaproxyLayerEbsVolume() {} public Optional encrypted() { return Optional.ofNullable(this.encrypted); } @@ -116,7 +99,7 @@ public static Builder builder() { public static Builder builder(HaproxyLayerEbsVolume defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean encrypted; private @Nullable Integer iops; @@ -125,11 +108,7 @@ public static final class Builder { private @Nullable String raidLevel; private Integer size; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(HaproxyLayerEbsVolume defaults) { Objects.requireNonNull(defaults); this.encrypted = defaults.encrypted; @@ -141,35 +120,51 @@ public Builder(HaproxyLayerEbsVolume defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mountPoint(String mountPoint) { this.mountPoint = Objects.requireNonNull(mountPoint); return this; } + @CustomType.Setter public Builder numberOfDisks(Integer numberOfDisks) { this.numberOfDisks = Objects.requireNonNull(numberOfDisks); return this; } + @CustomType.Setter public Builder raidLevel(@Nullable String raidLevel) { this.raidLevel = raidLevel; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public HaproxyLayerEbsVolume build() { - return new HaproxyLayerEbsVolume(encrypted, iops, mountPoint, numberOfDisks, raidLevel, size, type); + } + public HaproxyLayerEbsVolume build() { + final var o = new HaproxyLayerEbsVolume(); + o.encrypted = encrypted; + o.iops = iops; + o.mountPoint = mountPoint; + o.numberOfDisks = numberOfDisks; + o.raidLevel = raidLevel; + o.size = size; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/InstanceEbsBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/InstanceEbsBlockDevice.java index 1b7b2a19086..008cf939a5d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/InstanceEbsBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/InstanceEbsBlockDevice.java @@ -13,29 +13,14 @@ @CustomType public final class InstanceEbsBlockDevice { - private final @Nullable Boolean deleteOnTermination; - private final String deviceName; - private final @Nullable Integer iops; - private final @Nullable String snapshotId; - private final @Nullable Integer volumeSize; - private final @Nullable String volumeType; - - @CustomType.Constructor - private InstanceEbsBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("snapshotId") @Nullable String snapshotId, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.deviceName = deviceName; - this.iops = iops; - this.snapshotId = snapshotId; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable Boolean deleteOnTermination; + private String deviceName; + private @Nullable Integer iops; + private @Nullable String snapshotId; + private @Nullable Integer volumeSize; + private @Nullable String volumeType; + private InstanceEbsBlockDevice() {} public Optional deleteOnTermination() { return Optional.ofNullable(this.deleteOnTermination); } @@ -62,7 +47,7 @@ public static Builder builder() { public static Builder builder(InstanceEbsBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private String deviceName; @@ -70,11 +55,7 @@ public static final class Builder { private @Nullable String snapshotId; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceEbsBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -85,31 +66,45 @@ public Builder(InstanceEbsBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder snapshotId(@Nullable String snapshotId) { this.snapshotId = snapshotId; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public InstanceEbsBlockDevice build() { - return new InstanceEbsBlockDevice(deleteOnTermination, deviceName, iops, snapshotId, volumeSize, volumeType); + } + public InstanceEbsBlockDevice build() { + final var o = new InstanceEbsBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.deviceName = deviceName; + o.iops = iops; + o.snapshotId = snapshotId; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/InstanceEphemeralBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/InstanceEphemeralBlockDevice.java index f9238a20d2b..59f633838c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/InstanceEphemeralBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/InstanceEphemeralBlockDevice.java @@ -9,17 +9,10 @@ @CustomType public final class InstanceEphemeralBlockDevice { - private final String deviceName; - private final String virtualName; - - @CustomType.Constructor - private InstanceEphemeralBlockDevice( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("virtualName") String virtualName) { - this.deviceName = deviceName; - this.virtualName = virtualName; - } + private String deviceName; + private String virtualName; + private InstanceEphemeralBlockDevice() {} public String deviceName() { return this.deviceName; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(InstanceEphemeralBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceEphemeralBlockDevice defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder virtualName(String virtualName) { this.virtualName = Objects.requireNonNull(virtualName); return this; - } public InstanceEphemeralBlockDevice build() { - return new InstanceEphemeralBlockDevice(deviceName, virtualName); + } + public InstanceEphemeralBlockDevice build() { + final var o = new InstanceEphemeralBlockDevice(); + o.deviceName = deviceName; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/InstanceRootBlockDevice.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/InstanceRootBlockDevice.java index 1854be6edeb..430e0281104 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/InstanceRootBlockDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/InstanceRootBlockDevice.java @@ -13,23 +13,12 @@ @CustomType public final class InstanceRootBlockDevice { - private final @Nullable Boolean deleteOnTermination; - private final @Nullable Integer iops; - private final @Nullable Integer volumeSize; - private final @Nullable String volumeType; - - @CustomType.Constructor - private InstanceRootBlockDevice( - @CustomType.Parameter("deleteOnTermination") @Nullable Boolean deleteOnTermination, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("volumeSize") @Nullable Integer volumeSize, - @CustomType.Parameter("volumeType") @Nullable String volumeType) { - this.deleteOnTermination = deleteOnTermination; - this.iops = iops; - this.volumeSize = volumeSize; - this.volumeType = volumeType; - } + private @Nullable Boolean deleteOnTermination; + private @Nullable Integer iops; + private @Nullable Integer volumeSize; + private @Nullable String volumeType; + private InstanceRootBlockDevice() {} public Optional deleteOnTermination() { return Optional.ofNullable(this.deleteOnTermination); } @@ -50,17 +39,13 @@ public static Builder builder() { public static Builder builder(InstanceRootBlockDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean deleteOnTermination; private @Nullable Integer iops; private @Nullable Integer volumeSize; private @Nullable String volumeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceRootBlockDevice defaults) { Objects.requireNonNull(defaults); this.deleteOnTermination = defaults.deleteOnTermination; @@ -69,23 +54,33 @@ public Builder(InstanceRootBlockDevice defaults) { this.volumeType = defaults.volumeType; } + @CustomType.Setter public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) { this.deleteOnTermination = deleteOnTermination; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder volumeSize(@Nullable Integer volumeSize) { this.volumeSize = volumeSize; return this; } + @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { this.volumeType = volumeType; return this; - } public InstanceRootBlockDevice build() { - return new InstanceRootBlockDevice(deleteOnTermination, iops, volumeSize, volumeType); + } + public InstanceRootBlockDevice build() { + final var o = new InstanceRootBlockDevice(); + o.deleteOnTermination = deleteOnTermination; + o.iops = iops; + o.volumeSize = volumeSize; + o.volumeType = volumeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/JavaAppLayerCloudwatchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/JavaAppLayerCloudwatchConfiguration.java index cdf762551e7..4ca07b38299 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/JavaAppLayerCloudwatchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/JavaAppLayerCloudwatchConfiguration.java @@ -13,17 +13,10 @@ @CustomType public final class JavaAppLayerCloudwatchConfiguration { - private final @Nullable Boolean enabled; - private final @Nullable List logStreams; - - @CustomType.Constructor - private JavaAppLayerCloudwatchConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logStreams") @Nullable List logStreams) { - this.enabled = enabled; - this.logStreams = logStreams; - } + private @Nullable Boolean enabled; + private @Nullable List logStreams; + private JavaAppLayerCloudwatchConfiguration() {} public Optional enabled() { return Optional.ofNullable(this.enabled); } @@ -38,33 +31,35 @@ public static Builder builder() { public static Builder builder(JavaAppLayerCloudwatchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List logStreams; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(JavaAppLayerCloudwatchConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logStreams = defaults.logStreams; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logStreams(@Nullable List logStreams) { this.logStreams = logStreams; return this; } public Builder logStreams(JavaAppLayerCloudwatchConfigurationLogStream... logStreams) { return logStreams(List.of(logStreams)); - } public JavaAppLayerCloudwatchConfiguration build() { - return new JavaAppLayerCloudwatchConfiguration(enabled, logStreams); + } + public JavaAppLayerCloudwatchConfiguration build() { + final var o = new JavaAppLayerCloudwatchConfiguration(); + o.enabled = enabled; + o.logStreams = logStreams; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/JavaAppLayerCloudwatchConfigurationLogStream.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/JavaAppLayerCloudwatchConfigurationLogStream.java index 86b3dccbeea..065c74dcb7e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/JavaAppLayerCloudwatchConfigurationLogStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/JavaAppLayerCloudwatchConfigurationLogStream.java @@ -12,44 +12,19 @@ @CustomType public final class JavaAppLayerCloudwatchConfigurationLogStream { - private final @Nullable Integer batchCount; - private final @Nullable Integer batchSize; - private final @Nullable Integer bufferDuration; - private final @Nullable String datetimeFormat; - private final @Nullable String encoding; - private final String file; - private final @Nullable String fileFingerprintLines; - private final @Nullable String initialPosition; - private final String logGroupName; - private final @Nullable String multilineStartPattern; - private final @Nullable String timeZone; - - @CustomType.Constructor - private JavaAppLayerCloudwatchConfigurationLogStream( - @CustomType.Parameter("batchCount") @Nullable Integer batchCount, - @CustomType.Parameter("batchSize") @Nullable Integer batchSize, - @CustomType.Parameter("bufferDuration") @Nullable Integer bufferDuration, - @CustomType.Parameter("datetimeFormat") @Nullable String datetimeFormat, - @CustomType.Parameter("encoding") @Nullable String encoding, - @CustomType.Parameter("file") String file, - @CustomType.Parameter("fileFingerprintLines") @Nullable String fileFingerprintLines, - @CustomType.Parameter("initialPosition") @Nullable String initialPosition, - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("multilineStartPattern") @Nullable String multilineStartPattern, - @CustomType.Parameter("timeZone") @Nullable String timeZone) { - this.batchCount = batchCount; - this.batchSize = batchSize; - this.bufferDuration = bufferDuration; - this.datetimeFormat = datetimeFormat; - this.encoding = encoding; - this.file = file; - this.fileFingerprintLines = fileFingerprintLines; - this.initialPosition = initialPosition; - this.logGroupName = logGroupName; - this.multilineStartPattern = multilineStartPattern; - this.timeZone = timeZone; - } + private @Nullable Integer batchCount; + private @Nullable Integer batchSize; + private @Nullable Integer bufferDuration; + private @Nullable String datetimeFormat; + private @Nullable String encoding; + private String file; + private @Nullable String fileFingerprintLines; + private @Nullable String initialPosition; + private String logGroupName; + private @Nullable String multilineStartPattern; + private @Nullable String timeZone; + private JavaAppLayerCloudwatchConfigurationLogStream() {} public Optional batchCount() { return Optional.ofNullable(this.batchCount); } @@ -91,7 +66,7 @@ public static Builder builder() { public static Builder builder(JavaAppLayerCloudwatchConfigurationLogStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer batchCount; private @Nullable Integer batchSize; @@ -104,11 +79,7 @@ public static final class Builder { private String logGroupName; private @Nullable String multilineStartPattern; private @Nullable String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(JavaAppLayerCloudwatchConfigurationLogStream defaults) { Objects.requireNonNull(defaults); this.batchCount = defaults.batchCount; @@ -124,51 +95,75 @@ public Builder(JavaAppLayerCloudwatchConfigurationLogStream defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder batchCount(@Nullable Integer batchCount) { this.batchCount = batchCount; return this; } + @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { this.batchSize = batchSize; return this; } + @CustomType.Setter public Builder bufferDuration(@Nullable Integer bufferDuration) { this.bufferDuration = bufferDuration; return this; } + @CustomType.Setter public Builder datetimeFormat(@Nullable String datetimeFormat) { this.datetimeFormat = datetimeFormat; return this; } + @CustomType.Setter public Builder encoding(@Nullable String encoding) { this.encoding = encoding; return this; } + @CustomType.Setter public Builder file(String file) { this.file = Objects.requireNonNull(file); return this; } + @CustomType.Setter public Builder fileFingerprintLines(@Nullable String fileFingerprintLines) { this.fileFingerprintLines = fileFingerprintLines; return this; } + @CustomType.Setter public Builder initialPosition(@Nullable String initialPosition) { this.initialPosition = initialPosition; return this; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder multilineStartPattern(@Nullable String multilineStartPattern) { this.multilineStartPattern = multilineStartPattern; return this; } + @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { this.timeZone = timeZone; return this; - } public JavaAppLayerCloudwatchConfigurationLogStream build() { - return new JavaAppLayerCloudwatchConfigurationLogStream(batchCount, batchSize, bufferDuration, datetimeFormat, encoding, file, fileFingerprintLines, initialPosition, logGroupName, multilineStartPattern, timeZone); + } + public JavaAppLayerCloudwatchConfigurationLogStream build() { + final var o = new JavaAppLayerCloudwatchConfigurationLogStream(); + o.batchCount = batchCount; + o.batchSize = batchSize; + o.bufferDuration = bufferDuration; + o.datetimeFormat = datetimeFormat; + o.encoding = encoding; + o.file = file; + o.fileFingerprintLines = fileFingerprintLines; + o.initialPosition = initialPosition; + o.logGroupName = logGroupName; + o.multilineStartPattern = multilineStartPattern; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/JavaAppLayerEbsVolume.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/JavaAppLayerEbsVolume.java index 8bd5d61f5af..ad623c05d12 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/JavaAppLayerEbsVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/JavaAppLayerEbsVolume.java @@ -13,56 +13,39 @@ @CustomType public final class JavaAppLayerEbsVolume { - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return For PIOPS volumes, the IOPS per disk. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The path to mount the EBS volume on the layer's instances. * */ - private final String mountPoint; + private String mountPoint; /** * @return The number of disks to use for the EBS volume. * */ - private final Integer numberOfDisks; + private Integer numberOfDisks; /** * @return The RAID level to use for the volume. * */ - private final @Nullable String raidLevel; + private @Nullable String raidLevel; /** * @return The size of the volume in gigabytes. * */ - private final Integer size; + private Integer size; /** * @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private JavaAppLayerEbsVolume( - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mountPoint") String mountPoint, - @CustomType.Parameter("numberOfDisks") Integer numberOfDisks, - @CustomType.Parameter("raidLevel") @Nullable String raidLevel, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") @Nullable String type) { - this.encrypted = encrypted; - this.iops = iops; - this.mountPoint = mountPoint; - this.numberOfDisks = numberOfDisks; - this.raidLevel = raidLevel; - this.size = size; - this.type = type; - } + private @Nullable String type; + private JavaAppLayerEbsVolume() {} public Optional encrypted() { return Optional.ofNullable(this.encrypted); } @@ -116,7 +99,7 @@ public static Builder builder() { public static Builder builder(JavaAppLayerEbsVolume defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean encrypted; private @Nullable Integer iops; @@ -125,11 +108,7 @@ public static final class Builder { private @Nullable String raidLevel; private Integer size; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(JavaAppLayerEbsVolume defaults) { Objects.requireNonNull(defaults); this.encrypted = defaults.encrypted; @@ -141,35 +120,51 @@ public Builder(JavaAppLayerEbsVolume defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mountPoint(String mountPoint) { this.mountPoint = Objects.requireNonNull(mountPoint); return this; } + @CustomType.Setter public Builder numberOfDisks(Integer numberOfDisks) { this.numberOfDisks = Objects.requireNonNull(numberOfDisks); return this; } + @CustomType.Setter public Builder raidLevel(@Nullable String raidLevel) { this.raidLevel = raidLevel; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public JavaAppLayerEbsVolume build() { - return new JavaAppLayerEbsVolume(encrypted, iops, mountPoint, numberOfDisks, raidLevel, size, type); + } + public JavaAppLayerEbsVolume build() { + final var o = new JavaAppLayerEbsVolume(); + o.encrypted = encrypted; + o.iops = iops; + o.mountPoint = mountPoint; + o.numberOfDisks = numberOfDisks; + o.raidLevel = raidLevel; + o.size = size; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MemcachedLayerCloudwatchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MemcachedLayerCloudwatchConfiguration.java index e054bc67f9a..da89de4af1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MemcachedLayerCloudwatchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MemcachedLayerCloudwatchConfiguration.java @@ -13,17 +13,10 @@ @CustomType public final class MemcachedLayerCloudwatchConfiguration { - private final @Nullable Boolean enabled; - private final @Nullable List logStreams; - - @CustomType.Constructor - private MemcachedLayerCloudwatchConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logStreams") @Nullable List logStreams) { - this.enabled = enabled; - this.logStreams = logStreams; - } + private @Nullable Boolean enabled; + private @Nullable List logStreams; + private MemcachedLayerCloudwatchConfiguration() {} public Optional enabled() { return Optional.ofNullable(this.enabled); } @@ -38,33 +31,35 @@ public static Builder builder() { public static Builder builder(MemcachedLayerCloudwatchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List logStreams; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MemcachedLayerCloudwatchConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logStreams = defaults.logStreams; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logStreams(@Nullable List logStreams) { this.logStreams = logStreams; return this; } public Builder logStreams(MemcachedLayerCloudwatchConfigurationLogStream... logStreams) { return logStreams(List.of(logStreams)); - } public MemcachedLayerCloudwatchConfiguration build() { - return new MemcachedLayerCloudwatchConfiguration(enabled, logStreams); + } + public MemcachedLayerCloudwatchConfiguration build() { + final var o = new MemcachedLayerCloudwatchConfiguration(); + o.enabled = enabled; + o.logStreams = logStreams; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MemcachedLayerCloudwatchConfigurationLogStream.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MemcachedLayerCloudwatchConfigurationLogStream.java index bf3cd4dd36d..4a91af28bf0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MemcachedLayerCloudwatchConfigurationLogStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MemcachedLayerCloudwatchConfigurationLogStream.java @@ -12,44 +12,19 @@ @CustomType public final class MemcachedLayerCloudwatchConfigurationLogStream { - private final @Nullable Integer batchCount; - private final @Nullable Integer batchSize; - private final @Nullable Integer bufferDuration; - private final @Nullable String datetimeFormat; - private final @Nullable String encoding; - private final String file; - private final @Nullable String fileFingerprintLines; - private final @Nullable String initialPosition; - private final String logGroupName; - private final @Nullable String multilineStartPattern; - private final @Nullable String timeZone; - - @CustomType.Constructor - private MemcachedLayerCloudwatchConfigurationLogStream( - @CustomType.Parameter("batchCount") @Nullable Integer batchCount, - @CustomType.Parameter("batchSize") @Nullable Integer batchSize, - @CustomType.Parameter("bufferDuration") @Nullable Integer bufferDuration, - @CustomType.Parameter("datetimeFormat") @Nullable String datetimeFormat, - @CustomType.Parameter("encoding") @Nullable String encoding, - @CustomType.Parameter("file") String file, - @CustomType.Parameter("fileFingerprintLines") @Nullable String fileFingerprintLines, - @CustomType.Parameter("initialPosition") @Nullable String initialPosition, - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("multilineStartPattern") @Nullable String multilineStartPattern, - @CustomType.Parameter("timeZone") @Nullable String timeZone) { - this.batchCount = batchCount; - this.batchSize = batchSize; - this.bufferDuration = bufferDuration; - this.datetimeFormat = datetimeFormat; - this.encoding = encoding; - this.file = file; - this.fileFingerprintLines = fileFingerprintLines; - this.initialPosition = initialPosition; - this.logGroupName = logGroupName; - this.multilineStartPattern = multilineStartPattern; - this.timeZone = timeZone; - } + private @Nullable Integer batchCount; + private @Nullable Integer batchSize; + private @Nullable Integer bufferDuration; + private @Nullable String datetimeFormat; + private @Nullable String encoding; + private String file; + private @Nullable String fileFingerprintLines; + private @Nullable String initialPosition; + private String logGroupName; + private @Nullable String multilineStartPattern; + private @Nullable String timeZone; + private MemcachedLayerCloudwatchConfigurationLogStream() {} public Optional batchCount() { return Optional.ofNullable(this.batchCount); } @@ -91,7 +66,7 @@ public static Builder builder() { public static Builder builder(MemcachedLayerCloudwatchConfigurationLogStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer batchCount; private @Nullable Integer batchSize; @@ -104,11 +79,7 @@ public static final class Builder { private String logGroupName; private @Nullable String multilineStartPattern; private @Nullable String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MemcachedLayerCloudwatchConfigurationLogStream defaults) { Objects.requireNonNull(defaults); this.batchCount = defaults.batchCount; @@ -124,51 +95,75 @@ public Builder(MemcachedLayerCloudwatchConfigurationLogStream defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder batchCount(@Nullable Integer batchCount) { this.batchCount = batchCount; return this; } + @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { this.batchSize = batchSize; return this; } + @CustomType.Setter public Builder bufferDuration(@Nullable Integer bufferDuration) { this.bufferDuration = bufferDuration; return this; } + @CustomType.Setter public Builder datetimeFormat(@Nullable String datetimeFormat) { this.datetimeFormat = datetimeFormat; return this; } + @CustomType.Setter public Builder encoding(@Nullable String encoding) { this.encoding = encoding; return this; } + @CustomType.Setter public Builder file(String file) { this.file = Objects.requireNonNull(file); return this; } + @CustomType.Setter public Builder fileFingerprintLines(@Nullable String fileFingerprintLines) { this.fileFingerprintLines = fileFingerprintLines; return this; } + @CustomType.Setter public Builder initialPosition(@Nullable String initialPosition) { this.initialPosition = initialPosition; return this; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder multilineStartPattern(@Nullable String multilineStartPattern) { this.multilineStartPattern = multilineStartPattern; return this; } + @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { this.timeZone = timeZone; return this; - } public MemcachedLayerCloudwatchConfigurationLogStream build() { - return new MemcachedLayerCloudwatchConfigurationLogStream(batchCount, batchSize, bufferDuration, datetimeFormat, encoding, file, fileFingerprintLines, initialPosition, logGroupName, multilineStartPattern, timeZone); + } + public MemcachedLayerCloudwatchConfigurationLogStream build() { + final var o = new MemcachedLayerCloudwatchConfigurationLogStream(); + o.batchCount = batchCount; + o.batchSize = batchSize; + o.bufferDuration = bufferDuration; + o.datetimeFormat = datetimeFormat; + o.encoding = encoding; + o.file = file; + o.fileFingerprintLines = fileFingerprintLines; + o.initialPosition = initialPosition; + o.logGroupName = logGroupName; + o.multilineStartPattern = multilineStartPattern; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MemcachedLayerEbsVolume.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MemcachedLayerEbsVolume.java index cd0585ddf21..2aa41a52ece 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MemcachedLayerEbsVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MemcachedLayerEbsVolume.java @@ -13,56 +13,39 @@ @CustomType public final class MemcachedLayerEbsVolume { - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return For PIOPS volumes, the IOPS per disk. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The path to mount the EBS volume on the layer's instances. * */ - private final String mountPoint; + private String mountPoint; /** * @return The number of disks to use for the EBS volume. * */ - private final Integer numberOfDisks; + private Integer numberOfDisks; /** * @return The RAID level to use for the volume. * */ - private final @Nullable String raidLevel; + private @Nullable String raidLevel; /** * @return The size of the volume in gigabytes. * */ - private final Integer size; + private Integer size; /** * @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private MemcachedLayerEbsVolume( - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mountPoint") String mountPoint, - @CustomType.Parameter("numberOfDisks") Integer numberOfDisks, - @CustomType.Parameter("raidLevel") @Nullable String raidLevel, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") @Nullable String type) { - this.encrypted = encrypted; - this.iops = iops; - this.mountPoint = mountPoint; - this.numberOfDisks = numberOfDisks; - this.raidLevel = raidLevel; - this.size = size; - this.type = type; - } + private @Nullable String type; + private MemcachedLayerEbsVolume() {} public Optional encrypted() { return Optional.ofNullable(this.encrypted); } @@ -116,7 +99,7 @@ public static Builder builder() { public static Builder builder(MemcachedLayerEbsVolume defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean encrypted; private @Nullable Integer iops; @@ -125,11 +108,7 @@ public static final class Builder { private @Nullable String raidLevel; private Integer size; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MemcachedLayerEbsVolume defaults) { Objects.requireNonNull(defaults); this.encrypted = defaults.encrypted; @@ -141,35 +120,51 @@ public Builder(MemcachedLayerEbsVolume defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mountPoint(String mountPoint) { this.mountPoint = Objects.requireNonNull(mountPoint); return this; } + @CustomType.Setter public Builder numberOfDisks(Integer numberOfDisks) { this.numberOfDisks = Objects.requireNonNull(numberOfDisks); return this; } + @CustomType.Setter public Builder raidLevel(@Nullable String raidLevel) { this.raidLevel = raidLevel; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public MemcachedLayerEbsVolume build() { - return new MemcachedLayerEbsVolume(encrypted, iops, mountPoint, numberOfDisks, raidLevel, size, type); + } + public MemcachedLayerEbsVolume build() { + final var o = new MemcachedLayerEbsVolume(); + o.encrypted = encrypted; + o.iops = iops; + o.mountPoint = mountPoint; + o.numberOfDisks = numberOfDisks; + o.raidLevel = raidLevel; + o.size = size; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MysqlLayerCloudwatchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MysqlLayerCloudwatchConfiguration.java index e95486c59ac..9545f878bf3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MysqlLayerCloudwatchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MysqlLayerCloudwatchConfiguration.java @@ -13,17 +13,10 @@ @CustomType public final class MysqlLayerCloudwatchConfiguration { - private final @Nullable Boolean enabled; - private final @Nullable List logStreams; - - @CustomType.Constructor - private MysqlLayerCloudwatchConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logStreams") @Nullable List logStreams) { - this.enabled = enabled; - this.logStreams = logStreams; - } + private @Nullable Boolean enabled; + private @Nullable List logStreams; + private MysqlLayerCloudwatchConfiguration() {} public Optional enabled() { return Optional.ofNullable(this.enabled); } @@ -38,33 +31,35 @@ public static Builder builder() { public static Builder builder(MysqlLayerCloudwatchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List logStreams; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MysqlLayerCloudwatchConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logStreams = defaults.logStreams; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logStreams(@Nullable List logStreams) { this.logStreams = logStreams; return this; } public Builder logStreams(MysqlLayerCloudwatchConfigurationLogStream... logStreams) { return logStreams(List.of(logStreams)); - } public MysqlLayerCloudwatchConfiguration build() { - return new MysqlLayerCloudwatchConfiguration(enabled, logStreams); + } + public MysqlLayerCloudwatchConfiguration build() { + final var o = new MysqlLayerCloudwatchConfiguration(); + o.enabled = enabled; + o.logStreams = logStreams; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MysqlLayerCloudwatchConfigurationLogStream.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MysqlLayerCloudwatchConfigurationLogStream.java index 4b7f2ba0873..48d19488572 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MysqlLayerCloudwatchConfigurationLogStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MysqlLayerCloudwatchConfigurationLogStream.java @@ -12,44 +12,19 @@ @CustomType public final class MysqlLayerCloudwatchConfigurationLogStream { - private final @Nullable Integer batchCount; - private final @Nullable Integer batchSize; - private final @Nullable Integer bufferDuration; - private final @Nullable String datetimeFormat; - private final @Nullable String encoding; - private final String file; - private final @Nullable String fileFingerprintLines; - private final @Nullable String initialPosition; - private final String logGroupName; - private final @Nullable String multilineStartPattern; - private final @Nullable String timeZone; - - @CustomType.Constructor - private MysqlLayerCloudwatchConfigurationLogStream( - @CustomType.Parameter("batchCount") @Nullable Integer batchCount, - @CustomType.Parameter("batchSize") @Nullable Integer batchSize, - @CustomType.Parameter("bufferDuration") @Nullable Integer bufferDuration, - @CustomType.Parameter("datetimeFormat") @Nullable String datetimeFormat, - @CustomType.Parameter("encoding") @Nullable String encoding, - @CustomType.Parameter("file") String file, - @CustomType.Parameter("fileFingerprintLines") @Nullable String fileFingerprintLines, - @CustomType.Parameter("initialPosition") @Nullable String initialPosition, - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("multilineStartPattern") @Nullable String multilineStartPattern, - @CustomType.Parameter("timeZone") @Nullable String timeZone) { - this.batchCount = batchCount; - this.batchSize = batchSize; - this.bufferDuration = bufferDuration; - this.datetimeFormat = datetimeFormat; - this.encoding = encoding; - this.file = file; - this.fileFingerprintLines = fileFingerprintLines; - this.initialPosition = initialPosition; - this.logGroupName = logGroupName; - this.multilineStartPattern = multilineStartPattern; - this.timeZone = timeZone; - } + private @Nullable Integer batchCount; + private @Nullable Integer batchSize; + private @Nullable Integer bufferDuration; + private @Nullable String datetimeFormat; + private @Nullable String encoding; + private String file; + private @Nullable String fileFingerprintLines; + private @Nullable String initialPosition; + private String logGroupName; + private @Nullable String multilineStartPattern; + private @Nullable String timeZone; + private MysqlLayerCloudwatchConfigurationLogStream() {} public Optional batchCount() { return Optional.ofNullable(this.batchCount); } @@ -91,7 +66,7 @@ public static Builder builder() { public static Builder builder(MysqlLayerCloudwatchConfigurationLogStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer batchCount; private @Nullable Integer batchSize; @@ -104,11 +79,7 @@ public static final class Builder { private String logGroupName; private @Nullable String multilineStartPattern; private @Nullable String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MysqlLayerCloudwatchConfigurationLogStream defaults) { Objects.requireNonNull(defaults); this.batchCount = defaults.batchCount; @@ -124,51 +95,75 @@ public Builder(MysqlLayerCloudwatchConfigurationLogStream defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder batchCount(@Nullable Integer batchCount) { this.batchCount = batchCount; return this; } + @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { this.batchSize = batchSize; return this; } + @CustomType.Setter public Builder bufferDuration(@Nullable Integer bufferDuration) { this.bufferDuration = bufferDuration; return this; } + @CustomType.Setter public Builder datetimeFormat(@Nullable String datetimeFormat) { this.datetimeFormat = datetimeFormat; return this; } + @CustomType.Setter public Builder encoding(@Nullable String encoding) { this.encoding = encoding; return this; } + @CustomType.Setter public Builder file(String file) { this.file = Objects.requireNonNull(file); return this; } + @CustomType.Setter public Builder fileFingerprintLines(@Nullable String fileFingerprintLines) { this.fileFingerprintLines = fileFingerprintLines; return this; } + @CustomType.Setter public Builder initialPosition(@Nullable String initialPosition) { this.initialPosition = initialPosition; return this; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder multilineStartPattern(@Nullable String multilineStartPattern) { this.multilineStartPattern = multilineStartPattern; return this; } + @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { this.timeZone = timeZone; return this; - } public MysqlLayerCloudwatchConfigurationLogStream build() { - return new MysqlLayerCloudwatchConfigurationLogStream(batchCount, batchSize, bufferDuration, datetimeFormat, encoding, file, fileFingerprintLines, initialPosition, logGroupName, multilineStartPattern, timeZone); + } + public MysqlLayerCloudwatchConfigurationLogStream build() { + final var o = new MysqlLayerCloudwatchConfigurationLogStream(); + o.batchCount = batchCount; + o.batchSize = batchSize; + o.bufferDuration = bufferDuration; + o.datetimeFormat = datetimeFormat; + o.encoding = encoding; + o.file = file; + o.fileFingerprintLines = fileFingerprintLines; + o.initialPosition = initialPosition; + o.logGroupName = logGroupName; + o.multilineStartPattern = multilineStartPattern; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MysqlLayerEbsVolume.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MysqlLayerEbsVolume.java index 25c7556e6b3..00f3a6dceea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MysqlLayerEbsVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/MysqlLayerEbsVolume.java @@ -13,56 +13,39 @@ @CustomType public final class MysqlLayerEbsVolume { - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return For PIOPS volumes, the IOPS per disk. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The path to mount the EBS volume on the layer's instances. * */ - private final String mountPoint; + private String mountPoint; /** * @return The number of disks to use for the EBS volume. * */ - private final Integer numberOfDisks; + private Integer numberOfDisks; /** * @return The RAID level to use for the volume. * */ - private final @Nullable String raidLevel; + private @Nullable String raidLevel; /** * @return The size of the volume in gigabytes. * */ - private final Integer size; + private Integer size; /** * @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private MysqlLayerEbsVolume( - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mountPoint") String mountPoint, - @CustomType.Parameter("numberOfDisks") Integer numberOfDisks, - @CustomType.Parameter("raidLevel") @Nullable String raidLevel, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") @Nullable String type) { - this.encrypted = encrypted; - this.iops = iops; - this.mountPoint = mountPoint; - this.numberOfDisks = numberOfDisks; - this.raidLevel = raidLevel; - this.size = size; - this.type = type; - } + private @Nullable String type; + private MysqlLayerEbsVolume() {} public Optional encrypted() { return Optional.ofNullable(this.encrypted); } @@ -116,7 +99,7 @@ public static Builder builder() { public static Builder builder(MysqlLayerEbsVolume defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean encrypted; private @Nullable Integer iops; @@ -125,11 +108,7 @@ public static final class Builder { private @Nullable String raidLevel; private Integer size; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MysqlLayerEbsVolume defaults) { Objects.requireNonNull(defaults); this.encrypted = defaults.encrypted; @@ -141,35 +120,51 @@ public Builder(MysqlLayerEbsVolume defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mountPoint(String mountPoint) { this.mountPoint = Objects.requireNonNull(mountPoint); return this; } + @CustomType.Setter public Builder numberOfDisks(Integer numberOfDisks) { this.numberOfDisks = Objects.requireNonNull(numberOfDisks); return this; } + @CustomType.Setter public Builder raidLevel(@Nullable String raidLevel) { this.raidLevel = raidLevel; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public MysqlLayerEbsVolume build() { - return new MysqlLayerEbsVolume(encrypted, iops, mountPoint, numberOfDisks, raidLevel, size, type); + } + public MysqlLayerEbsVolume build() { + final var o = new MysqlLayerEbsVolume(); + o.encrypted = encrypted; + o.iops = iops; + o.mountPoint = mountPoint; + o.numberOfDisks = numberOfDisks; + o.raidLevel = raidLevel; + o.size = size; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/NodejsAppLayerCloudwatchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/NodejsAppLayerCloudwatchConfiguration.java index 401b84eaa4a..483e07e4584 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/NodejsAppLayerCloudwatchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/NodejsAppLayerCloudwatchConfiguration.java @@ -13,17 +13,10 @@ @CustomType public final class NodejsAppLayerCloudwatchConfiguration { - private final @Nullable Boolean enabled; - private final @Nullable List logStreams; - - @CustomType.Constructor - private NodejsAppLayerCloudwatchConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logStreams") @Nullable List logStreams) { - this.enabled = enabled; - this.logStreams = logStreams; - } + private @Nullable Boolean enabled; + private @Nullable List logStreams; + private NodejsAppLayerCloudwatchConfiguration() {} public Optional enabled() { return Optional.ofNullable(this.enabled); } @@ -38,33 +31,35 @@ public static Builder builder() { public static Builder builder(NodejsAppLayerCloudwatchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List logStreams; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NodejsAppLayerCloudwatchConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logStreams = defaults.logStreams; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logStreams(@Nullable List logStreams) { this.logStreams = logStreams; return this; } public Builder logStreams(NodejsAppLayerCloudwatchConfigurationLogStream... logStreams) { return logStreams(List.of(logStreams)); - } public NodejsAppLayerCloudwatchConfiguration build() { - return new NodejsAppLayerCloudwatchConfiguration(enabled, logStreams); + } + public NodejsAppLayerCloudwatchConfiguration build() { + final var o = new NodejsAppLayerCloudwatchConfiguration(); + o.enabled = enabled; + o.logStreams = logStreams; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/NodejsAppLayerCloudwatchConfigurationLogStream.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/NodejsAppLayerCloudwatchConfigurationLogStream.java index 84b9e121d9e..c86db89564a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/NodejsAppLayerCloudwatchConfigurationLogStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/NodejsAppLayerCloudwatchConfigurationLogStream.java @@ -12,44 +12,19 @@ @CustomType public final class NodejsAppLayerCloudwatchConfigurationLogStream { - private final @Nullable Integer batchCount; - private final @Nullable Integer batchSize; - private final @Nullable Integer bufferDuration; - private final @Nullable String datetimeFormat; - private final @Nullable String encoding; - private final String file; - private final @Nullable String fileFingerprintLines; - private final @Nullable String initialPosition; - private final String logGroupName; - private final @Nullable String multilineStartPattern; - private final @Nullable String timeZone; - - @CustomType.Constructor - private NodejsAppLayerCloudwatchConfigurationLogStream( - @CustomType.Parameter("batchCount") @Nullable Integer batchCount, - @CustomType.Parameter("batchSize") @Nullable Integer batchSize, - @CustomType.Parameter("bufferDuration") @Nullable Integer bufferDuration, - @CustomType.Parameter("datetimeFormat") @Nullable String datetimeFormat, - @CustomType.Parameter("encoding") @Nullable String encoding, - @CustomType.Parameter("file") String file, - @CustomType.Parameter("fileFingerprintLines") @Nullable String fileFingerprintLines, - @CustomType.Parameter("initialPosition") @Nullable String initialPosition, - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("multilineStartPattern") @Nullable String multilineStartPattern, - @CustomType.Parameter("timeZone") @Nullable String timeZone) { - this.batchCount = batchCount; - this.batchSize = batchSize; - this.bufferDuration = bufferDuration; - this.datetimeFormat = datetimeFormat; - this.encoding = encoding; - this.file = file; - this.fileFingerprintLines = fileFingerprintLines; - this.initialPosition = initialPosition; - this.logGroupName = logGroupName; - this.multilineStartPattern = multilineStartPattern; - this.timeZone = timeZone; - } + private @Nullable Integer batchCount; + private @Nullable Integer batchSize; + private @Nullable Integer bufferDuration; + private @Nullable String datetimeFormat; + private @Nullable String encoding; + private String file; + private @Nullable String fileFingerprintLines; + private @Nullable String initialPosition; + private String logGroupName; + private @Nullable String multilineStartPattern; + private @Nullable String timeZone; + private NodejsAppLayerCloudwatchConfigurationLogStream() {} public Optional batchCount() { return Optional.ofNullable(this.batchCount); } @@ -91,7 +66,7 @@ public static Builder builder() { public static Builder builder(NodejsAppLayerCloudwatchConfigurationLogStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer batchCount; private @Nullable Integer batchSize; @@ -104,11 +79,7 @@ public static final class Builder { private String logGroupName; private @Nullable String multilineStartPattern; private @Nullable String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NodejsAppLayerCloudwatchConfigurationLogStream defaults) { Objects.requireNonNull(defaults); this.batchCount = defaults.batchCount; @@ -124,51 +95,75 @@ public Builder(NodejsAppLayerCloudwatchConfigurationLogStream defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder batchCount(@Nullable Integer batchCount) { this.batchCount = batchCount; return this; } + @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { this.batchSize = batchSize; return this; } + @CustomType.Setter public Builder bufferDuration(@Nullable Integer bufferDuration) { this.bufferDuration = bufferDuration; return this; } + @CustomType.Setter public Builder datetimeFormat(@Nullable String datetimeFormat) { this.datetimeFormat = datetimeFormat; return this; } + @CustomType.Setter public Builder encoding(@Nullable String encoding) { this.encoding = encoding; return this; } + @CustomType.Setter public Builder file(String file) { this.file = Objects.requireNonNull(file); return this; } + @CustomType.Setter public Builder fileFingerprintLines(@Nullable String fileFingerprintLines) { this.fileFingerprintLines = fileFingerprintLines; return this; } + @CustomType.Setter public Builder initialPosition(@Nullable String initialPosition) { this.initialPosition = initialPosition; return this; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder multilineStartPattern(@Nullable String multilineStartPattern) { this.multilineStartPattern = multilineStartPattern; return this; } + @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { this.timeZone = timeZone; return this; - } public NodejsAppLayerCloudwatchConfigurationLogStream build() { - return new NodejsAppLayerCloudwatchConfigurationLogStream(batchCount, batchSize, bufferDuration, datetimeFormat, encoding, file, fileFingerprintLines, initialPosition, logGroupName, multilineStartPattern, timeZone); + } + public NodejsAppLayerCloudwatchConfigurationLogStream build() { + final var o = new NodejsAppLayerCloudwatchConfigurationLogStream(); + o.batchCount = batchCount; + o.batchSize = batchSize; + o.bufferDuration = bufferDuration; + o.datetimeFormat = datetimeFormat; + o.encoding = encoding; + o.file = file; + o.fileFingerprintLines = fileFingerprintLines; + o.initialPosition = initialPosition; + o.logGroupName = logGroupName; + o.multilineStartPattern = multilineStartPattern; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/NodejsAppLayerEbsVolume.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/NodejsAppLayerEbsVolume.java index 88025094992..d4e83659eff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/NodejsAppLayerEbsVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/NodejsAppLayerEbsVolume.java @@ -13,56 +13,39 @@ @CustomType public final class NodejsAppLayerEbsVolume { - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return For PIOPS volumes, the IOPS per disk. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The path to mount the EBS volume on the layer's instances. * */ - private final String mountPoint; + private String mountPoint; /** * @return The number of disks to use for the EBS volume. * */ - private final Integer numberOfDisks; + private Integer numberOfDisks; /** * @return The RAID level to use for the volume. * */ - private final @Nullable String raidLevel; + private @Nullable String raidLevel; /** * @return The size of the volume in gigabytes. * */ - private final Integer size; + private Integer size; /** * @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private NodejsAppLayerEbsVolume( - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mountPoint") String mountPoint, - @CustomType.Parameter("numberOfDisks") Integer numberOfDisks, - @CustomType.Parameter("raidLevel") @Nullable String raidLevel, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") @Nullable String type) { - this.encrypted = encrypted; - this.iops = iops; - this.mountPoint = mountPoint; - this.numberOfDisks = numberOfDisks; - this.raidLevel = raidLevel; - this.size = size; - this.type = type; - } + private @Nullable String type; + private NodejsAppLayerEbsVolume() {} public Optional encrypted() { return Optional.ofNullable(this.encrypted); } @@ -116,7 +99,7 @@ public static Builder builder() { public static Builder builder(NodejsAppLayerEbsVolume defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean encrypted; private @Nullable Integer iops; @@ -125,11 +108,7 @@ public static final class Builder { private @Nullable String raidLevel; private Integer size; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NodejsAppLayerEbsVolume defaults) { Objects.requireNonNull(defaults); this.encrypted = defaults.encrypted; @@ -141,35 +120,51 @@ public Builder(NodejsAppLayerEbsVolume defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mountPoint(String mountPoint) { this.mountPoint = Objects.requireNonNull(mountPoint); return this; } + @CustomType.Setter public Builder numberOfDisks(Integer numberOfDisks) { this.numberOfDisks = Objects.requireNonNull(numberOfDisks); return this; } + @CustomType.Setter public Builder raidLevel(@Nullable String raidLevel) { this.raidLevel = raidLevel; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public NodejsAppLayerEbsVolume build() { - return new NodejsAppLayerEbsVolume(encrypted, iops, mountPoint, numberOfDisks, raidLevel, size, type); + } + public NodejsAppLayerEbsVolume build() { + final var o = new NodejsAppLayerEbsVolume(); + o.encrypted = encrypted; + o.iops = iops; + o.mountPoint = mountPoint; + o.numberOfDisks = numberOfDisks; + o.raidLevel = raidLevel; + o.size = size; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/PhpAppLayerCloudwatchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/PhpAppLayerCloudwatchConfiguration.java index a5c60a57c38..8c1449776fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/PhpAppLayerCloudwatchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/PhpAppLayerCloudwatchConfiguration.java @@ -13,17 +13,10 @@ @CustomType public final class PhpAppLayerCloudwatchConfiguration { - private final @Nullable Boolean enabled; - private final @Nullable List logStreams; - - @CustomType.Constructor - private PhpAppLayerCloudwatchConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logStreams") @Nullable List logStreams) { - this.enabled = enabled; - this.logStreams = logStreams; - } + private @Nullable Boolean enabled; + private @Nullable List logStreams; + private PhpAppLayerCloudwatchConfiguration() {} public Optional enabled() { return Optional.ofNullable(this.enabled); } @@ -38,33 +31,35 @@ public static Builder builder() { public static Builder builder(PhpAppLayerCloudwatchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List logStreams; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PhpAppLayerCloudwatchConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logStreams = defaults.logStreams; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logStreams(@Nullable List logStreams) { this.logStreams = logStreams; return this; } public Builder logStreams(PhpAppLayerCloudwatchConfigurationLogStream... logStreams) { return logStreams(List.of(logStreams)); - } public PhpAppLayerCloudwatchConfiguration build() { - return new PhpAppLayerCloudwatchConfiguration(enabled, logStreams); + } + public PhpAppLayerCloudwatchConfiguration build() { + final var o = new PhpAppLayerCloudwatchConfiguration(); + o.enabled = enabled; + o.logStreams = logStreams; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/PhpAppLayerCloudwatchConfigurationLogStream.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/PhpAppLayerCloudwatchConfigurationLogStream.java index 81a462a7e96..fb36dd6d8c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/PhpAppLayerCloudwatchConfigurationLogStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/PhpAppLayerCloudwatchConfigurationLogStream.java @@ -12,44 +12,19 @@ @CustomType public final class PhpAppLayerCloudwatchConfigurationLogStream { - private final @Nullable Integer batchCount; - private final @Nullable Integer batchSize; - private final @Nullable Integer bufferDuration; - private final @Nullable String datetimeFormat; - private final @Nullable String encoding; - private final String file; - private final @Nullable String fileFingerprintLines; - private final @Nullable String initialPosition; - private final String logGroupName; - private final @Nullable String multilineStartPattern; - private final @Nullable String timeZone; - - @CustomType.Constructor - private PhpAppLayerCloudwatchConfigurationLogStream( - @CustomType.Parameter("batchCount") @Nullable Integer batchCount, - @CustomType.Parameter("batchSize") @Nullable Integer batchSize, - @CustomType.Parameter("bufferDuration") @Nullable Integer bufferDuration, - @CustomType.Parameter("datetimeFormat") @Nullable String datetimeFormat, - @CustomType.Parameter("encoding") @Nullable String encoding, - @CustomType.Parameter("file") String file, - @CustomType.Parameter("fileFingerprintLines") @Nullable String fileFingerprintLines, - @CustomType.Parameter("initialPosition") @Nullable String initialPosition, - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("multilineStartPattern") @Nullable String multilineStartPattern, - @CustomType.Parameter("timeZone") @Nullable String timeZone) { - this.batchCount = batchCount; - this.batchSize = batchSize; - this.bufferDuration = bufferDuration; - this.datetimeFormat = datetimeFormat; - this.encoding = encoding; - this.file = file; - this.fileFingerprintLines = fileFingerprintLines; - this.initialPosition = initialPosition; - this.logGroupName = logGroupName; - this.multilineStartPattern = multilineStartPattern; - this.timeZone = timeZone; - } + private @Nullable Integer batchCount; + private @Nullable Integer batchSize; + private @Nullable Integer bufferDuration; + private @Nullable String datetimeFormat; + private @Nullable String encoding; + private String file; + private @Nullable String fileFingerprintLines; + private @Nullable String initialPosition; + private String logGroupName; + private @Nullable String multilineStartPattern; + private @Nullable String timeZone; + private PhpAppLayerCloudwatchConfigurationLogStream() {} public Optional batchCount() { return Optional.ofNullable(this.batchCount); } @@ -91,7 +66,7 @@ public static Builder builder() { public static Builder builder(PhpAppLayerCloudwatchConfigurationLogStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer batchCount; private @Nullable Integer batchSize; @@ -104,11 +79,7 @@ public static final class Builder { private String logGroupName; private @Nullable String multilineStartPattern; private @Nullable String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PhpAppLayerCloudwatchConfigurationLogStream defaults) { Objects.requireNonNull(defaults); this.batchCount = defaults.batchCount; @@ -124,51 +95,75 @@ public Builder(PhpAppLayerCloudwatchConfigurationLogStream defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder batchCount(@Nullable Integer batchCount) { this.batchCount = batchCount; return this; } + @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { this.batchSize = batchSize; return this; } + @CustomType.Setter public Builder bufferDuration(@Nullable Integer bufferDuration) { this.bufferDuration = bufferDuration; return this; } + @CustomType.Setter public Builder datetimeFormat(@Nullable String datetimeFormat) { this.datetimeFormat = datetimeFormat; return this; } + @CustomType.Setter public Builder encoding(@Nullable String encoding) { this.encoding = encoding; return this; } + @CustomType.Setter public Builder file(String file) { this.file = Objects.requireNonNull(file); return this; } + @CustomType.Setter public Builder fileFingerprintLines(@Nullable String fileFingerprintLines) { this.fileFingerprintLines = fileFingerprintLines; return this; } + @CustomType.Setter public Builder initialPosition(@Nullable String initialPosition) { this.initialPosition = initialPosition; return this; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder multilineStartPattern(@Nullable String multilineStartPattern) { this.multilineStartPattern = multilineStartPattern; return this; } + @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { this.timeZone = timeZone; return this; - } public PhpAppLayerCloudwatchConfigurationLogStream build() { - return new PhpAppLayerCloudwatchConfigurationLogStream(batchCount, batchSize, bufferDuration, datetimeFormat, encoding, file, fileFingerprintLines, initialPosition, logGroupName, multilineStartPattern, timeZone); + } + public PhpAppLayerCloudwatchConfigurationLogStream build() { + final var o = new PhpAppLayerCloudwatchConfigurationLogStream(); + o.batchCount = batchCount; + o.batchSize = batchSize; + o.bufferDuration = bufferDuration; + o.datetimeFormat = datetimeFormat; + o.encoding = encoding; + o.file = file; + o.fileFingerprintLines = fileFingerprintLines; + o.initialPosition = initialPosition; + o.logGroupName = logGroupName; + o.multilineStartPattern = multilineStartPattern; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/PhpAppLayerEbsVolume.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/PhpAppLayerEbsVolume.java index f661700ef59..73077ed6907 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/PhpAppLayerEbsVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/PhpAppLayerEbsVolume.java @@ -13,56 +13,39 @@ @CustomType public final class PhpAppLayerEbsVolume { - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return For PIOPS volumes, the IOPS per disk. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The path to mount the EBS volume on the layer's instances. * */ - private final String mountPoint; + private String mountPoint; /** * @return The number of disks to use for the EBS volume. * */ - private final Integer numberOfDisks; + private Integer numberOfDisks; /** * @return The RAID level to use for the volume. * */ - private final @Nullable String raidLevel; + private @Nullable String raidLevel; /** * @return The size of the volume in gigabytes. * */ - private final Integer size; + private Integer size; /** * @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private PhpAppLayerEbsVolume( - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mountPoint") String mountPoint, - @CustomType.Parameter("numberOfDisks") Integer numberOfDisks, - @CustomType.Parameter("raidLevel") @Nullable String raidLevel, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") @Nullable String type) { - this.encrypted = encrypted; - this.iops = iops; - this.mountPoint = mountPoint; - this.numberOfDisks = numberOfDisks; - this.raidLevel = raidLevel; - this.size = size; - this.type = type; - } + private @Nullable String type; + private PhpAppLayerEbsVolume() {} public Optional encrypted() { return Optional.ofNullable(this.encrypted); } @@ -116,7 +99,7 @@ public static Builder builder() { public static Builder builder(PhpAppLayerEbsVolume defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean encrypted; private @Nullable Integer iops; @@ -125,11 +108,7 @@ public static final class Builder { private @Nullable String raidLevel; private Integer size; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PhpAppLayerEbsVolume defaults) { Objects.requireNonNull(defaults); this.encrypted = defaults.encrypted; @@ -141,35 +120,51 @@ public Builder(PhpAppLayerEbsVolume defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mountPoint(String mountPoint) { this.mountPoint = Objects.requireNonNull(mountPoint); return this; } + @CustomType.Setter public Builder numberOfDisks(Integer numberOfDisks) { this.numberOfDisks = Objects.requireNonNull(numberOfDisks); return this; } + @CustomType.Setter public Builder raidLevel(@Nullable String raidLevel) { this.raidLevel = raidLevel; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public PhpAppLayerEbsVolume build() { - return new PhpAppLayerEbsVolume(encrypted, iops, mountPoint, numberOfDisks, raidLevel, size, type); + } + public PhpAppLayerEbsVolume build() { + final var o = new PhpAppLayerEbsVolume(); + o.encrypted = encrypted; + o.iops = iops; + o.mountPoint = mountPoint; + o.numberOfDisks = numberOfDisks; + o.raidLevel = raidLevel; + o.size = size; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/RailsAppLayerCloudwatchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/RailsAppLayerCloudwatchConfiguration.java index 5d6651c99e9..72659c9b629 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/RailsAppLayerCloudwatchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/RailsAppLayerCloudwatchConfiguration.java @@ -13,17 +13,10 @@ @CustomType public final class RailsAppLayerCloudwatchConfiguration { - private final @Nullable Boolean enabled; - private final @Nullable List logStreams; - - @CustomType.Constructor - private RailsAppLayerCloudwatchConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logStreams") @Nullable List logStreams) { - this.enabled = enabled; - this.logStreams = logStreams; - } + private @Nullable Boolean enabled; + private @Nullable List logStreams; + private RailsAppLayerCloudwatchConfiguration() {} public Optional enabled() { return Optional.ofNullable(this.enabled); } @@ -38,33 +31,35 @@ public static Builder builder() { public static Builder builder(RailsAppLayerCloudwatchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List logStreams; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RailsAppLayerCloudwatchConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logStreams = defaults.logStreams; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logStreams(@Nullable List logStreams) { this.logStreams = logStreams; return this; } public Builder logStreams(RailsAppLayerCloudwatchConfigurationLogStream... logStreams) { return logStreams(List.of(logStreams)); - } public RailsAppLayerCloudwatchConfiguration build() { - return new RailsAppLayerCloudwatchConfiguration(enabled, logStreams); + } + public RailsAppLayerCloudwatchConfiguration build() { + final var o = new RailsAppLayerCloudwatchConfiguration(); + o.enabled = enabled; + o.logStreams = logStreams; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/RailsAppLayerCloudwatchConfigurationLogStream.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/RailsAppLayerCloudwatchConfigurationLogStream.java index 59d159d931e..967382ff0f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/RailsAppLayerCloudwatchConfigurationLogStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/RailsAppLayerCloudwatchConfigurationLogStream.java @@ -12,44 +12,19 @@ @CustomType public final class RailsAppLayerCloudwatchConfigurationLogStream { - private final @Nullable Integer batchCount; - private final @Nullable Integer batchSize; - private final @Nullable Integer bufferDuration; - private final @Nullable String datetimeFormat; - private final @Nullable String encoding; - private final String file; - private final @Nullable String fileFingerprintLines; - private final @Nullable String initialPosition; - private final String logGroupName; - private final @Nullable String multilineStartPattern; - private final @Nullable String timeZone; - - @CustomType.Constructor - private RailsAppLayerCloudwatchConfigurationLogStream( - @CustomType.Parameter("batchCount") @Nullable Integer batchCount, - @CustomType.Parameter("batchSize") @Nullable Integer batchSize, - @CustomType.Parameter("bufferDuration") @Nullable Integer bufferDuration, - @CustomType.Parameter("datetimeFormat") @Nullable String datetimeFormat, - @CustomType.Parameter("encoding") @Nullable String encoding, - @CustomType.Parameter("file") String file, - @CustomType.Parameter("fileFingerprintLines") @Nullable String fileFingerprintLines, - @CustomType.Parameter("initialPosition") @Nullable String initialPosition, - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("multilineStartPattern") @Nullable String multilineStartPattern, - @CustomType.Parameter("timeZone") @Nullable String timeZone) { - this.batchCount = batchCount; - this.batchSize = batchSize; - this.bufferDuration = bufferDuration; - this.datetimeFormat = datetimeFormat; - this.encoding = encoding; - this.file = file; - this.fileFingerprintLines = fileFingerprintLines; - this.initialPosition = initialPosition; - this.logGroupName = logGroupName; - this.multilineStartPattern = multilineStartPattern; - this.timeZone = timeZone; - } + private @Nullable Integer batchCount; + private @Nullable Integer batchSize; + private @Nullable Integer bufferDuration; + private @Nullable String datetimeFormat; + private @Nullable String encoding; + private String file; + private @Nullable String fileFingerprintLines; + private @Nullable String initialPosition; + private String logGroupName; + private @Nullable String multilineStartPattern; + private @Nullable String timeZone; + private RailsAppLayerCloudwatchConfigurationLogStream() {} public Optional batchCount() { return Optional.ofNullable(this.batchCount); } @@ -91,7 +66,7 @@ public static Builder builder() { public static Builder builder(RailsAppLayerCloudwatchConfigurationLogStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer batchCount; private @Nullable Integer batchSize; @@ -104,11 +79,7 @@ public static final class Builder { private String logGroupName; private @Nullable String multilineStartPattern; private @Nullable String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RailsAppLayerCloudwatchConfigurationLogStream defaults) { Objects.requireNonNull(defaults); this.batchCount = defaults.batchCount; @@ -124,51 +95,75 @@ public Builder(RailsAppLayerCloudwatchConfigurationLogStream defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder batchCount(@Nullable Integer batchCount) { this.batchCount = batchCount; return this; } + @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { this.batchSize = batchSize; return this; } + @CustomType.Setter public Builder bufferDuration(@Nullable Integer bufferDuration) { this.bufferDuration = bufferDuration; return this; } + @CustomType.Setter public Builder datetimeFormat(@Nullable String datetimeFormat) { this.datetimeFormat = datetimeFormat; return this; } + @CustomType.Setter public Builder encoding(@Nullable String encoding) { this.encoding = encoding; return this; } + @CustomType.Setter public Builder file(String file) { this.file = Objects.requireNonNull(file); return this; } + @CustomType.Setter public Builder fileFingerprintLines(@Nullable String fileFingerprintLines) { this.fileFingerprintLines = fileFingerprintLines; return this; } + @CustomType.Setter public Builder initialPosition(@Nullable String initialPosition) { this.initialPosition = initialPosition; return this; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder multilineStartPattern(@Nullable String multilineStartPattern) { this.multilineStartPattern = multilineStartPattern; return this; } + @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { this.timeZone = timeZone; return this; - } public RailsAppLayerCloudwatchConfigurationLogStream build() { - return new RailsAppLayerCloudwatchConfigurationLogStream(batchCount, batchSize, bufferDuration, datetimeFormat, encoding, file, fileFingerprintLines, initialPosition, logGroupName, multilineStartPattern, timeZone); + } + public RailsAppLayerCloudwatchConfigurationLogStream build() { + final var o = new RailsAppLayerCloudwatchConfigurationLogStream(); + o.batchCount = batchCount; + o.batchSize = batchSize; + o.bufferDuration = bufferDuration; + o.datetimeFormat = datetimeFormat; + o.encoding = encoding; + o.file = file; + o.fileFingerprintLines = fileFingerprintLines; + o.initialPosition = initialPosition; + o.logGroupName = logGroupName; + o.multilineStartPattern = multilineStartPattern; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/RailsAppLayerEbsVolume.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/RailsAppLayerEbsVolume.java index 7a483c21acd..c0b1d2181dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/RailsAppLayerEbsVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/RailsAppLayerEbsVolume.java @@ -13,56 +13,39 @@ @CustomType public final class RailsAppLayerEbsVolume { - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return For PIOPS volumes, the IOPS per disk. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The path to mount the EBS volume on the layer's instances. * */ - private final String mountPoint; + private String mountPoint; /** * @return The number of disks to use for the EBS volume. * */ - private final Integer numberOfDisks; + private Integer numberOfDisks; /** * @return The RAID level to use for the volume. * */ - private final @Nullable String raidLevel; + private @Nullable String raidLevel; /** * @return The size of the volume in gigabytes. * */ - private final Integer size; + private Integer size; /** * @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private RailsAppLayerEbsVolume( - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mountPoint") String mountPoint, - @CustomType.Parameter("numberOfDisks") Integer numberOfDisks, - @CustomType.Parameter("raidLevel") @Nullable String raidLevel, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") @Nullable String type) { - this.encrypted = encrypted; - this.iops = iops; - this.mountPoint = mountPoint; - this.numberOfDisks = numberOfDisks; - this.raidLevel = raidLevel; - this.size = size; - this.type = type; - } + private @Nullable String type; + private RailsAppLayerEbsVolume() {} public Optional encrypted() { return Optional.ofNullable(this.encrypted); } @@ -116,7 +99,7 @@ public static Builder builder() { public static Builder builder(RailsAppLayerEbsVolume defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean encrypted; private @Nullable Integer iops; @@ -125,11 +108,7 @@ public static final class Builder { private @Nullable String raidLevel; private Integer size; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RailsAppLayerEbsVolume defaults) { Objects.requireNonNull(defaults); this.encrypted = defaults.encrypted; @@ -141,35 +120,51 @@ public Builder(RailsAppLayerEbsVolume defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mountPoint(String mountPoint) { this.mountPoint = Objects.requireNonNull(mountPoint); return this; } + @CustomType.Setter public Builder numberOfDisks(Integer numberOfDisks) { this.numberOfDisks = Objects.requireNonNull(numberOfDisks); return this; } + @CustomType.Setter public Builder raidLevel(@Nullable String raidLevel) { this.raidLevel = raidLevel; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public RailsAppLayerEbsVolume build() { - return new RailsAppLayerEbsVolume(encrypted, iops, mountPoint, numberOfDisks, raidLevel, size, type); + } + public RailsAppLayerEbsVolume build() { + final var o = new RailsAppLayerEbsVolume(); + o.encrypted = encrypted; + o.iops = iops; + o.mountPoint = mountPoint; + o.numberOfDisks = numberOfDisks; + o.raidLevel = raidLevel; + o.size = size; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StackCustomCookbooksSource.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StackCustomCookbooksSource.java index a4e0053a324..c2babf30451 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StackCustomCookbooksSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StackCustomCookbooksSource.java @@ -15,49 +15,34 @@ public final class StackCustomCookbooksSource { * @return Password to use when authenticating to the source. The provider cannot perform drift detection of this configuration. * */ - private final @Nullable String password; + private @Nullable String password; /** * @return For sources that are version-aware, the revision to use. * */ - private final @Nullable String revision; + private @Nullable String revision; /** * @return SSH key to use when authenticating to the source. The provider cannot perform drift detection of this configuration. * */ - private final @Nullable String sshKey; + private @Nullable String sshKey; /** * @return The type of source to use. For example, "archive". * */ - private final String type; + private String type; /** * @return The URL where the cookbooks resource can be found. * */ - private final String url; + private String url; /** * @return Username to use when authenticating to the source. * */ - private final @Nullable String username; - - @CustomType.Constructor - private StackCustomCookbooksSource( - @CustomType.Parameter("password") @Nullable String password, - @CustomType.Parameter("revision") @Nullable String revision, - @CustomType.Parameter("sshKey") @Nullable String sshKey, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("url") String url, - @CustomType.Parameter("username") @Nullable String username) { - this.password = password; - this.revision = revision; - this.sshKey = sshKey; - this.type = type; - this.url = url; - this.username = username; - } + private @Nullable String username; + private StackCustomCookbooksSource() {} /** * @return Password to use when authenticating to the source. The provider cannot perform drift detection of this configuration. * @@ -108,7 +93,7 @@ public static Builder builder() { public static Builder builder(StackCustomCookbooksSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String password; private @Nullable String revision; @@ -116,11 +101,7 @@ public static final class Builder { private String type; private String url; private @Nullable String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StackCustomCookbooksSource defaults) { Objects.requireNonNull(defaults); this.password = defaults.password; @@ -131,31 +112,45 @@ public Builder(StackCustomCookbooksSource defaults) { this.username = defaults.username; } + @CustomType.Setter public Builder password(@Nullable String password) { this.password = password; return this; } + @CustomType.Setter public Builder revision(@Nullable String revision) { this.revision = revision; return this; } + @CustomType.Setter public Builder sshKey(@Nullable String sshKey) { this.sshKey = sshKey; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder url(String url) { this.url = Objects.requireNonNull(url); return this; } + @CustomType.Setter public Builder username(@Nullable String username) { this.username = username; return this; - } public StackCustomCookbooksSource build() { - return new StackCustomCookbooksSource(password, revision, sshKey, type, url, username); + } + public StackCustomCookbooksSource build() { + final var o = new StackCustomCookbooksSource(); + o.password = password; + o.revision = revision; + o.sshKey = sshKey; + o.type = type; + o.url = url; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StaticWebLayerCloudwatchConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StaticWebLayerCloudwatchConfiguration.java index 1c13451b8d2..ba76123a239 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StaticWebLayerCloudwatchConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StaticWebLayerCloudwatchConfiguration.java @@ -13,17 +13,10 @@ @CustomType public final class StaticWebLayerCloudwatchConfiguration { - private final @Nullable Boolean enabled; - private final @Nullable List logStreams; - - @CustomType.Constructor - private StaticWebLayerCloudwatchConfiguration( - @CustomType.Parameter("enabled") @Nullable Boolean enabled, - @CustomType.Parameter("logStreams") @Nullable List logStreams) { - this.enabled = enabled; - this.logStreams = logStreams; - } + private @Nullable Boolean enabled; + private @Nullable List logStreams; + private StaticWebLayerCloudwatchConfiguration() {} public Optional enabled() { return Optional.ofNullable(this.enabled); } @@ -38,33 +31,35 @@ public static Builder builder() { public static Builder builder(StaticWebLayerCloudwatchConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; private @Nullable List logStreams; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StaticWebLayerCloudwatchConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; this.logStreams = defaults.logStreams; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; } + @CustomType.Setter public Builder logStreams(@Nullable List logStreams) { this.logStreams = logStreams; return this; } public Builder logStreams(StaticWebLayerCloudwatchConfigurationLogStream... logStreams) { return logStreams(List.of(logStreams)); - } public StaticWebLayerCloudwatchConfiguration build() { - return new StaticWebLayerCloudwatchConfiguration(enabled, logStreams); + } + public StaticWebLayerCloudwatchConfiguration build() { + final var o = new StaticWebLayerCloudwatchConfiguration(); + o.enabled = enabled; + o.logStreams = logStreams; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StaticWebLayerCloudwatchConfigurationLogStream.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StaticWebLayerCloudwatchConfigurationLogStream.java index 825842c9235..634577aca7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StaticWebLayerCloudwatchConfigurationLogStream.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StaticWebLayerCloudwatchConfigurationLogStream.java @@ -12,44 +12,19 @@ @CustomType public final class StaticWebLayerCloudwatchConfigurationLogStream { - private final @Nullable Integer batchCount; - private final @Nullable Integer batchSize; - private final @Nullable Integer bufferDuration; - private final @Nullable String datetimeFormat; - private final @Nullable String encoding; - private final String file; - private final @Nullable String fileFingerprintLines; - private final @Nullable String initialPosition; - private final String logGroupName; - private final @Nullable String multilineStartPattern; - private final @Nullable String timeZone; - - @CustomType.Constructor - private StaticWebLayerCloudwatchConfigurationLogStream( - @CustomType.Parameter("batchCount") @Nullable Integer batchCount, - @CustomType.Parameter("batchSize") @Nullable Integer batchSize, - @CustomType.Parameter("bufferDuration") @Nullable Integer bufferDuration, - @CustomType.Parameter("datetimeFormat") @Nullable String datetimeFormat, - @CustomType.Parameter("encoding") @Nullable String encoding, - @CustomType.Parameter("file") String file, - @CustomType.Parameter("fileFingerprintLines") @Nullable String fileFingerprintLines, - @CustomType.Parameter("initialPosition") @Nullable String initialPosition, - @CustomType.Parameter("logGroupName") String logGroupName, - @CustomType.Parameter("multilineStartPattern") @Nullable String multilineStartPattern, - @CustomType.Parameter("timeZone") @Nullable String timeZone) { - this.batchCount = batchCount; - this.batchSize = batchSize; - this.bufferDuration = bufferDuration; - this.datetimeFormat = datetimeFormat; - this.encoding = encoding; - this.file = file; - this.fileFingerprintLines = fileFingerprintLines; - this.initialPosition = initialPosition; - this.logGroupName = logGroupName; - this.multilineStartPattern = multilineStartPattern; - this.timeZone = timeZone; - } + private @Nullable Integer batchCount; + private @Nullable Integer batchSize; + private @Nullable Integer bufferDuration; + private @Nullable String datetimeFormat; + private @Nullable String encoding; + private String file; + private @Nullable String fileFingerprintLines; + private @Nullable String initialPosition; + private String logGroupName; + private @Nullable String multilineStartPattern; + private @Nullable String timeZone; + private StaticWebLayerCloudwatchConfigurationLogStream() {} public Optional batchCount() { return Optional.ofNullable(this.batchCount); } @@ -91,7 +66,7 @@ public static Builder builder() { public static Builder builder(StaticWebLayerCloudwatchConfigurationLogStream defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer batchCount; private @Nullable Integer batchSize; @@ -104,11 +79,7 @@ public static final class Builder { private String logGroupName; private @Nullable String multilineStartPattern; private @Nullable String timeZone; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StaticWebLayerCloudwatchConfigurationLogStream defaults) { Objects.requireNonNull(defaults); this.batchCount = defaults.batchCount; @@ -124,51 +95,75 @@ public Builder(StaticWebLayerCloudwatchConfigurationLogStream defaults) { this.timeZone = defaults.timeZone; } + @CustomType.Setter public Builder batchCount(@Nullable Integer batchCount) { this.batchCount = batchCount; return this; } + @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { this.batchSize = batchSize; return this; } + @CustomType.Setter public Builder bufferDuration(@Nullable Integer bufferDuration) { this.bufferDuration = bufferDuration; return this; } + @CustomType.Setter public Builder datetimeFormat(@Nullable String datetimeFormat) { this.datetimeFormat = datetimeFormat; return this; } + @CustomType.Setter public Builder encoding(@Nullable String encoding) { this.encoding = encoding; return this; } + @CustomType.Setter public Builder file(String file) { this.file = Objects.requireNonNull(file); return this; } + @CustomType.Setter public Builder fileFingerprintLines(@Nullable String fileFingerprintLines) { this.fileFingerprintLines = fileFingerprintLines; return this; } + @CustomType.Setter public Builder initialPosition(@Nullable String initialPosition) { this.initialPosition = initialPosition; return this; } + @CustomType.Setter public Builder logGroupName(String logGroupName) { this.logGroupName = Objects.requireNonNull(logGroupName); return this; } + @CustomType.Setter public Builder multilineStartPattern(@Nullable String multilineStartPattern) { this.multilineStartPattern = multilineStartPattern; return this; } + @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { this.timeZone = timeZone; return this; - } public StaticWebLayerCloudwatchConfigurationLogStream build() { - return new StaticWebLayerCloudwatchConfigurationLogStream(batchCount, batchSize, bufferDuration, datetimeFormat, encoding, file, fileFingerprintLines, initialPosition, logGroupName, multilineStartPattern, timeZone); + } + public StaticWebLayerCloudwatchConfigurationLogStream build() { + final var o = new StaticWebLayerCloudwatchConfigurationLogStream(); + o.batchCount = batchCount; + o.batchSize = batchSize; + o.bufferDuration = bufferDuration; + o.datetimeFormat = datetimeFormat; + o.encoding = encoding; + o.file = file; + o.fileFingerprintLines = fileFingerprintLines; + o.initialPosition = initialPosition; + o.logGroupName = logGroupName; + o.multilineStartPattern = multilineStartPattern; + o.timeZone = timeZone; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StaticWebLayerEbsVolume.java b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StaticWebLayerEbsVolume.java index 6997e8c6db6..536d5a53d55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StaticWebLayerEbsVolume.java +++ b/sdk/java/src/main/java/com/pulumi/aws/opsworks/outputs/StaticWebLayerEbsVolume.java @@ -13,56 +13,39 @@ @CustomType public final class StaticWebLayerEbsVolume { - private final @Nullable Boolean encrypted; + private @Nullable Boolean encrypted; /** * @return For PIOPS volumes, the IOPS per disk. * */ - private final @Nullable Integer iops; + private @Nullable Integer iops; /** * @return The path to mount the EBS volume on the layer's instances. * */ - private final String mountPoint; + private String mountPoint; /** * @return The number of disks to use for the EBS volume. * */ - private final Integer numberOfDisks; + private Integer numberOfDisks; /** * @return The RAID level to use for the volume. * */ - private final @Nullable String raidLevel; + private @Nullable String raidLevel; /** * @return The size of the volume in gigabytes. * */ - private final Integer size; + private Integer size; /** * @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private StaticWebLayerEbsVolume( - @CustomType.Parameter("encrypted") @Nullable Boolean encrypted, - @CustomType.Parameter("iops") @Nullable Integer iops, - @CustomType.Parameter("mountPoint") String mountPoint, - @CustomType.Parameter("numberOfDisks") Integer numberOfDisks, - @CustomType.Parameter("raidLevel") @Nullable String raidLevel, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("type") @Nullable String type) { - this.encrypted = encrypted; - this.iops = iops; - this.mountPoint = mountPoint; - this.numberOfDisks = numberOfDisks; - this.raidLevel = raidLevel; - this.size = size; - this.type = type; - } + private @Nullable String type; + private StaticWebLayerEbsVolume() {} public Optional encrypted() { return Optional.ofNullable(this.encrypted); } @@ -116,7 +99,7 @@ public static Builder builder() { public static Builder builder(StaticWebLayerEbsVolume defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean encrypted; private @Nullable Integer iops; @@ -125,11 +108,7 @@ public static final class Builder { private @Nullable String raidLevel; private Integer size; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StaticWebLayerEbsVolume defaults) { Objects.requireNonNull(defaults); this.encrypted = defaults.encrypted; @@ -141,35 +120,51 @@ public Builder(StaticWebLayerEbsVolume defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder encrypted(@Nullable Boolean encrypted) { this.encrypted = encrypted; return this; } + @CustomType.Setter public Builder iops(@Nullable Integer iops) { this.iops = iops; return this; } + @CustomType.Setter public Builder mountPoint(String mountPoint) { this.mountPoint = Objects.requireNonNull(mountPoint); return this; } + @CustomType.Setter public Builder numberOfDisks(Integer numberOfDisks) { this.numberOfDisks = Objects.requireNonNull(numberOfDisks); return this; } + @CustomType.Setter public Builder raidLevel(@Nullable String raidLevel) { this.raidLevel = raidLevel; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public StaticWebLayerEbsVolume build() { - return new StaticWebLayerEbsVolume(encrypted, iops, mountPoint, numberOfDisks, raidLevel, size, type); + } + public StaticWebLayerEbsVolume build() { + final var o = new StaticWebLayerEbsVolume(); + o.encrypted = encrypted; + o.iops = iops; + o.mountPoint = mountPoint; + o.numberOfDisks = numberOfDisks; + o.raidLevel = raidLevel; + o.size = size; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetDelegatedAdministratorsDelegatedAdministrator.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetDelegatedAdministratorsDelegatedAdministrator.java index b4672259943..fd47aa57dc9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetDelegatedAdministratorsDelegatedAdministrator.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetDelegatedAdministratorsDelegatedAdministrator.java @@ -13,63 +13,44 @@ public final class GetDelegatedAdministratorsDelegatedAdministrator { * @return The Amazon Resource Name (ARN) of the delegated administrator's account. * */ - private final String arn; + private String arn; /** * @return The date when the account was made a delegated administrator. * */ - private final String delegationEnabledDate; + private String delegationEnabledDate; /** * @return The email address that is associated with the delegated administrator's AWS account. * */ - private final String email; + private String email; /** * @return The unique identifier (ID) of the delegated administrator's account. * */ - private final String id; + private String id; /** * @return The method by which the delegated administrator's account joined the organization. * */ - private final String joinedMethod; + private String joinedMethod; /** * @return The date when the delegated administrator's account became a part of the organization. * */ - private final String joinedTimestamp; + private String joinedTimestamp; /** * @return The friendly name of the delegated administrator's account. * */ - private final String name; + private String name; /** * @return The status of the delegated administrator's account in the organization. * */ - private final String status; - - @CustomType.Constructor - private GetDelegatedAdministratorsDelegatedAdministrator( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("delegationEnabledDate") String delegationEnabledDate, - @CustomType.Parameter("email") String email, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("joinedMethod") String joinedMethod, - @CustomType.Parameter("joinedTimestamp") String joinedTimestamp, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("status") String status) { - this.arn = arn; - this.delegationEnabledDate = delegationEnabledDate; - this.email = email; - this.id = id; - this.joinedMethod = joinedMethod; - this.joinedTimestamp = joinedTimestamp; - this.name = name; - this.status = status; - } + private String status; + private GetDelegatedAdministratorsDelegatedAdministrator() {} /** * @return The Amazon Resource Name (ARN) of the delegated administrator's account. * @@ -134,7 +115,7 @@ public static Builder builder() { public static Builder builder(GetDelegatedAdministratorsDelegatedAdministrator defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String delegationEnabledDate; @@ -144,11 +125,7 @@ public static final class Builder { private String joinedTimestamp; private String name; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDelegatedAdministratorsDelegatedAdministrator defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -161,39 +138,57 @@ public Builder(GetDelegatedAdministratorsDelegatedAdministrator defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder delegationEnabledDate(String delegationEnabledDate) { this.delegationEnabledDate = Objects.requireNonNull(delegationEnabledDate); return this; } + @CustomType.Setter public Builder email(String email) { this.email = Objects.requireNonNull(email); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder joinedMethod(String joinedMethod) { this.joinedMethod = Objects.requireNonNull(joinedMethod); return this; } + @CustomType.Setter public Builder joinedTimestamp(String joinedTimestamp) { this.joinedTimestamp = Objects.requireNonNull(joinedTimestamp); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public GetDelegatedAdministratorsDelegatedAdministrator build() { - return new GetDelegatedAdministratorsDelegatedAdministrator(arn, delegationEnabledDate, email, id, joinedMethod, joinedTimestamp, name, status); + } + public GetDelegatedAdministratorsDelegatedAdministrator build() { + final var o = new GetDelegatedAdministratorsDelegatedAdministrator(); + o.arn = arn; + o.delegationEnabledDate = delegationEnabledDate; + o.email = email; + o.id = id; + o.joinedMethod = joinedMethod; + o.joinedTimestamp = joinedTimestamp; + o.name = name; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetDelegatedAdministratorsResult.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetDelegatedAdministratorsResult.java index 489275d350f..78dedb76ada 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetDelegatedAdministratorsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetDelegatedAdministratorsResult.java @@ -17,24 +17,15 @@ public final class GetDelegatedAdministratorsResult { * @return The list of delegated administrators in your organization, which have the following attributes: * */ - private final List delegatedAdministrators; + private List delegatedAdministrators; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String servicePrincipal; - - @CustomType.Constructor - private GetDelegatedAdministratorsResult( - @CustomType.Parameter("delegatedAdministrators") List delegatedAdministrators, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("servicePrincipal") @Nullable String servicePrincipal) { - this.delegatedAdministrators = delegatedAdministrators; - this.id = id; - this.servicePrincipal = servicePrincipal; - } + private String id; + private @Nullable String servicePrincipal; + private GetDelegatedAdministratorsResult() {} /** * @return The list of delegated administrators in your organization, which have the following attributes: * @@ -60,16 +51,12 @@ public static Builder builder() { public static Builder builder(GetDelegatedAdministratorsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List delegatedAdministrators; private String id; private @Nullable String servicePrincipal; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDelegatedAdministratorsResult defaults) { Objects.requireNonNull(defaults); this.delegatedAdministrators = defaults.delegatedAdministrators; @@ -77,6 +64,7 @@ public Builder(GetDelegatedAdministratorsResult defaults) { this.servicePrincipal = defaults.servicePrincipal; } + @CustomType.Setter public Builder delegatedAdministrators(List delegatedAdministrators) { this.delegatedAdministrators = Objects.requireNonNull(delegatedAdministrators); return this; @@ -84,15 +72,22 @@ public Builder delegatedAdministrators(List delegatedServices; + private List delegatedServices; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetDelegatedServicesResult( - @CustomType.Parameter("accountId") String accountId, - @CustomType.Parameter("delegatedServices") List delegatedServices, - @CustomType.Parameter("id") String id) { - this.accountId = accountId; - this.delegatedServices = delegatedServices; - this.id = id; - } + private String id; + private GetDelegatedServicesResult() {} public String accountId() { return this.accountId; } @@ -58,16 +49,12 @@ public static Builder builder() { public static Builder builder(GetDelegatedServicesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accountId; private List delegatedServices; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDelegatedServicesResult defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; @@ -75,10 +62,12 @@ public Builder(GetDelegatedServicesResult defaults) { this.id = defaults.id; } + @CustomType.Setter public Builder accountId(String accountId) { this.accountId = Objects.requireNonNull(accountId); return this; } + @CustomType.Setter public Builder delegatedServices(List delegatedServices) { this.delegatedServices = Objects.requireNonNull(delegatedServices); return this; @@ -86,11 +75,17 @@ public Builder delegatedServices(List dele public Builder delegatedServices(GetDelegatedServicesDelegatedService... delegatedServices) { return delegatedServices(List.of(delegatedServices)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetDelegatedServicesResult build() { - return new GetDelegatedServicesResult(accountId, delegatedServices, id); + } + public GetDelegatedServicesResult build() { + final var o = new GetDelegatedServicesResult(); + o.accountId = accountId; + o.delegatedServices = delegatedServices; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationAccount.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationAccount.java index 7aeaa170024..895b949a6dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationAccount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationAccount.java @@ -13,42 +13,29 @@ public final class GetOrganizationAccount { * @return ARN of the root * */ - private final String arn; + private String arn; /** * @return Email of the account * */ - private final String email; + private String email; /** * @return Identifier of the root * */ - private final String id; + private String id; /** * @return The name of the policy type * */ - private final String name; + private String name; /** * @return The status of the policy type as it relates to the associated root * */ - private final String status; - - @CustomType.Constructor - private GetOrganizationAccount( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("email") String email, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("status") String status) { - this.arn = arn; - this.email = email; - this.id = id; - this.name = name; - this.status = status; - } + private String status; + private GetOrganizationAccount() {} /** * @return ARN of the root * @@ -92,18 +79,14 @@ public static Builder builder() { public static Builder builder(GetOrganizationAccount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String email; private String id; private String name; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOrganizationAccount defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -113,27 +96,39 @@ public Builder(GetOrganizationAccount defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder email(String email) { this.email = Objects.requireNonNull(email); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public GetOrganizationAccount build() { - return new GetOrganizationAccount(arn, email, id, name, status); + } + public GetOrganizationAccount build() { + final var o = new GetOrganizationAccount(); + o.arn = arn; + o.email = email; + o.id = id; + o.name = name; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationNonMasterAccount.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationNonMasterAccount.java index 5369d290412..174c0762bf0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationNonMasterAccount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationNonMasterAccount.java @@ -13,42 +13,29 @@ public final class GetOrganizationNonMasterAccount { * @return ARN of the root * */ - private final String arn; + private String arn; /** * @return Email of the account * */ - private final String email; + private String email; /** * @return Identifier of the root * */ - private final String id; + private String id; /** * @return The name of the policy type * */ - private final String name; + private String name; /** * @return The status of the policy type as it relates to the associated root * */ - private final String status; - - @CustomType.Constructor - private GetOrganizationNonMasterAccount( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("email") String email, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("status") String status) { - this.arn = arn; - this.email = email; - this.id = id; - this.name = name; - this.status = status; - } + private String status; + private GetOrganizationNonMasterAccount() {} /** * @return ARN of the root * @@ -92,18 +79,14 @@ public static Builder builder() { public static Builder builder(GetOrganizationNonMasterAccount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String email; private String id; private String name; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOrganizationNonMasterAccount defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -113,27 +96,39 @@ public Builder(GetOrganizationNonMasterAccount defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder email(String email) { this.email = Objects.requireNonNull(email); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public GetOrganizationNonMasterAccount build() { - return new GetOrganizationNonMasterAccount(arn, email, id, name, status); + } + public GetOrganizationNonMasterAccount build() { + final var o = new GetOrganizationNonMasterAccount(); + o.arn = arn; + o.email = email; + o.id = id; + o.name = name; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationResult.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationResult.java index fd981395872..b3a840d394e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationResult.java @@ -17,84 +17,59 @@ public final class GetOrganizationResult { * @return List of organization accounts including the master account. For a list excluding the master account, see the `non_master_accounts` attribute. All elements have these attributes: * */ - private final List accounts; + private List accounts; /** * @return ARN of the root * */ - private final String arn; + private String arn; /** * @return A list of AWS service principal names that have integration enabled with your organization. Organization must have `feature_set` set to `ALL`. For additional information, see the [AWS Organizations User Guide](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html). * */ - private final List awsServiceAccessPrincipals; + private List awsServiceAccessPrincipals; /** * @return A list of Organizations policy types that are enabled in the Organization Root. Organization must have `feature_set` set to `ALL`. For additional information about valid policy types (e.g., `SERVICE_CONTROL_POLICY`), see the [AWS Organizations API Reference](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnablePolicyType.html). * */ - private final List enabledPolicyTypes; + private List enabledPolicyTypes; /** * @return The FeatureSet of the organization. * */ - private final String featureSet; + private String featureSet; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The Amazon Resource Name (ARN) of the account that is designated as the master account for the organization. * */ - private final String masterAccountArn; + private String masterAccountArn; /** * @return The email address that is associated with the AWS account that is designated as the master account for the organization. * */ - private final String masterAccountEmail; + private String masterAccountEmail; /** * @return The unique identifier (ID) of the master account of an organization. * */ - private final String masterAccountId; + private String masterAccountId; /** * @return List of organization accounts excluding the master account. For a list including the master account, see the `accounts` attribute. All elements have these attributes: * */ - private final List nonMasterAccounts; + private List nonMasterAccounts; /** * @return List of organization roots. All elements have these attributes: * */ - private final List roots; - - @CustomType.Constructor - private GetOrganizationResult( - @CustomType.Parameter("accounts") List accounts, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("awsServiceAccessPrincipals") List awsServiceAccessPrincipals, - @CustomType.Parameter("enabledPolicyTypes") List enabledPolicyTypes, - @CustomType.Parameter("featureSet") String featureSet, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("masterAccountArn") String masterAccountArn, - @CustomType.Parameter("masterAccountEmail") String masterAccountEmail, - @CustomType.Parameter("masterAccountId") String masterAccountId, - @CustomType.Parameter("nonMasterAccounts") List nonMasterAccounts, - @CustomType.Parameter("roots") List roots) { - this.accounts = accounts; - this.arn = arn; - this.awsServiceAccessPrincipals = awsServiceAccessPrincipals; - this.enabledPolicyTypes = enabledPolicyTypes; - this.featureSet = featureSet; - this.id = id; - this.masterAccountArn = masterAccountArn; - this.masterAccountEmail = masterAccountEmail; - this.masterAccountId = masterAccountId; - this.nonMasterAccounts = nonMasterAccounts; - this.roots = roots; - } + private List roots; + private GetOrganizationResult() {} /** * @return List of organization accounts including the master account. For a list excluding the master account, see the `non_master_accounts` attribute. All elements have these attributes: * @@ -180,7 +155,7 @@ public static Builder builder() { public static Builder builder(GetOrganizationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List accounts; private String arn; @@ -193,11 +168,7 @@ public static final class Builder { private String masterAccountId; private List nonMasterAccounts; private List roots; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOrganizationResult defaults) { Objects.requireNonNull(defaults); this.accounts = defaults.accounts; @@ -213,6 +184,7 @@ public Builder(GetOrganizationResult defaults) { this.roots = defaults.roots; } + @CustomType.Setter public Builder accounts(List accounts) { this.accounts = Objects.requireNonNull(accounts); return this; @@ -220,10 +192,12 @@ public Builder accounts(List accounts) { public Builder accounts(GetOrganizationAccount... accounts) { return accounts(List.of(accounts)); } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder awsServiceAccessPrincipals(List awsServiceAccessPrincipals) { this.awsServiceAccessPrincipals = Objects.requireNonNull(awsServiceAccessPrincipals); return this; @@ -231,6 +205,7 @@ public Builder awsServiceAccessPrincipals(List awsServiceAccessPrincipal public Builder awsServiceAccessPrincipals(String... awsServiceAccessPrincipals) { return awsServiceAccessPrincipals(List.of(awsServiceAccessPrincipals)); } + @CustomType.Setter public Builder enabledPolicyTypes(List enabledPolicyTypes) { this.enabledPolicyTypes = Objects.requireNonNull(enabledPolicyTypes); return this; @@ -238,26 +213,32 @@ public Builder enabledPolicyTypes(List enabledPolicyTypes) { public Builder enabledPolicyTypes(String... enabledPolicyTypes) { return enabledPolicyTypes(List.of(enabledPolicyTypes)); } + @CustomType.Setter public Builder featureSet(String featureSet) { this.featureSet = Objects.requireNonNull(featureSet); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder masterAccountArn(String masterAccountArn) { this.masterAccountArn = Objects.requireNonNull(masterAccountArn); return this; } + @CustomType.Setter public Builder masterAccountEmail(String masterAccountEmail) { this.masterAccountEmail = Objects.requireNonNull(masterAccountEmail); return this; } + @CustomType.Setter public Builder masterAccountId(String masterAccountId) { this.masterAccountId = Objects.requireNonNull(masterAccountId); return this; } + @CustomType.Setter public Builder nonMasterAccounts(List nonMasterAccounts) { this.nonMasterAccounts = Objects.requireNonNull(nonMasterAccounts); return this; @@ -265,14 +246,28 @@ public Builder nonMasterAccounts(List nonMaster public Builder nonMasterAccounts(GetOrganizationNonMasterAccount... nonMasterAccounts) { return nonMasterAccounts(List.of(nonMasterAccounts)); } + @CustomType.Setter public Builder roots(List roots) { this.roots = Objects.requireNonNull(roots); return this; } public Builder roots(GetOrganizationRoot... roots) { return roots(List.of(roots)); - } public GetOrganizationResult build() { - return new GetOrganizationResult(accounts, arn, awsServiceAccessPrincipals, enabledPolicyTypes, featureSet, id, masterAccountArn, masterAccountEmail, masterAccountId, nonMasterAccounts, roots); + } + public GetOrganizationResult build() { + final var o = new GetOrganizationResult(); + o.accounts = accounts; + o.arn = arn; + o.awsServiceAccessPrincipals = awsServiceAccessPrincipals; + o.enabledPolicyTypes = enabledPolicyTypes; + o.featureSet = featureSet; + o.id = id; + o.masterAccountArn = masterAccountArn; + o.masterAccountEmail = masterAccountEmail; + o.masterAccountId = masterAccountId; + o.nonMasterAccounts = nonMasterAccounts; + o.roots = roots; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationRoot.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationRoot.java index 171b3d74393..a8cb692b039 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationRoot.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationRoot.java @@ -15,35 +15,24 @@ public final class GetOrganizationRoot { * @return ARN of the root * */ - private final String arn; + private String arn; /** * @return Identifier of the root * */ - private final String id; + private String id; /** * @return The name of the policy type * */ - private final String name; + private String name; /** * @return List of policy types enabled for this root. All elements have these attributes: * */ - private final List policyTypes; - - @CustomType.Constructor - private GetOrganizationRoot( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("policyTypes") List policyTypes) { - this.arn = arn; - this.id = id; - this.name = name; - this.policyTypes = policyTypes; - } + private List policyTypes; + private GetOrganizationRoot() {} /** * @return ARN of the root * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(GetOrganizationRoot defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; private List policyTypes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOrganizationRoot defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -99,26 +84,36 @@ public Builder(GetOrganizationRoot defaults) { this.policyTypes = defaults.policyTypes; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder policyTypes(List policyTypes) { this.policyTypes = Objects.requireNonNull(policyTypes); return this; } public Builder policyTypes(GetOrganizationRootPolicyType... policyTypes) { return policyTypes(List.of(policyTypes)); - } public GetOrganizationRoot build() { - return new GetOrganizationRoot(arn, id, name, policyTypes); + } + public GetOrganizationRoot build() { + final var o = new GetOrganizationRoot(); + o.arn = arn; + o.id = id; + o.name = name; + o.policyTypes = policyTypes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationRootPolicyType.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationRootPolicyType.java index eaa622b14f3..5ab83dd5adc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationRootPolicyType.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationRootPolicyType.java @@ -13,17 +13,10 @@ public final class GetOrganizationRootPolicyType { * @return The status of the policy type as it relates to the associated root * */ - private final String status; - private final String type; - - @CustomType.Constructor - private GetOrganizationRootPolicyType( - @CustomType.Parameter("status") String status, - @CustomType.Parameter("type") String type) { - this.status = status; - this.type = type; - } + private String status; + private String type; + private GetOrganizationRootPolicyType() {} /** * @return The status of the policy type as it relates to the associated root * @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetOrganizationRootPolicyType defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String status; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOrganizationRootPolicyType defaults) { Objects.requireNonNull(defaults); this.status = defaults.status; this.type = defaults.type; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetOrganizationRootPolicyType build() { - return new GetOrganizationRootPolicyType(status, type); + } + public GetOrganizationRootPolicyType build() { + final var o = new GetOrganizationRootPolicyType(); + o.status = status; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationalUnitsChildren.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationalUnitsChildren.java index 0c615b30781..00a7a50149f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationalUnitsChildren.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationalUnitsChildren.java @@ -13,28 +13,19 @@ public final class GetOrganizationalUnitsChildren { * @return ARN of the organizational unit * */ - private final String arn; + private String arn; /** * @return Parent identifier of the organizational units. * */ - private final String id; + private String id; /** * @return Name of the organizational unit * */ - private final String name; - - @CustomType.Constructor - private GetOrganizationalUnitsChildren( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String name; + private GetOrganizationalUnitsChildren() {} /** * @return ARN of the organizational unit * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetOrganizationalUnitsChildren defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOrganizationalUnitsChildren defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetOrganizationalUnitsChildren defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetOrganizationalUnitsChildren build() { - return new GetOrganizationalUnitsChildren(arn, id, name); + } + public GetOrganizationalUnitsChildren build() { + final var o = new GetOrganizationalUnitsChildren(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationalUnitsResult.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationalUnitsResult.java index 729e0190e42..737f30b1918 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationalUnitsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetOrganizationalUnitsResult.java @@ -15,24 +15,15 @@ public final class GetOrganizationalUnitsResult { * @return List of child organizational units, which have the following attributes: * */ - private final List childrens; + private List childrens; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String parentId; - - @CustomType.Constructor - private GetOrganizationalUnitsResult( - @CustomType.Parameter("childrens") List childrens, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("parentId") String parentId) { - this.childrens = childrens; - this.id = id; - this.parentId = parentId; - } + private String id; + private String parentId; + private GetOrganizationalUnitsResult() {} /** * @return List of child organizational units, which have the following attributes: * @@ -58,16 +49,12 @@ public static Builder builder() { public static Builder builder(GetOrganizationalUnitsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List childrens; private String id; private String parentId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOrganizationalUnitsResult defaults) { Objects.requireNonNull(defaults); this.childrens = defaults.childrens; @@ -75,6 +62,7 @@ public Builder(GetOrganizationalUnitsResult defaults) { this.parentId = defaults.parentId; } + @CustomType.Setter public Builder childrens(List childrens) { this.childrens = Objects.requireNonNull(childrens); return this; @@ -82,15 +70,22 @@ public Builder childrens(List childrens) { public Builder childrens(GetOrganizationalUnitsChildren... childrens) { return childrens(List.of(childrens)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder parentId(String parentId) { this.parentId = Objects.requireNonNull(parentId); return this; - } public GetOrganizationalUnitsResult build() { - return new GetOrganizationalUnitsResult(childrens, id, parentId); + } + public GetOrganizationalUnitsResult build() { + final var o = new GetOrganizationalUnitsResult(); + o.childrens = childrens; + o.id = id; + o.parentId = parentId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetResourceTagsResult.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetResourceTagsResult.java index a730a1c8311..0d758955f7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetResourceTagsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/GetResourceTagsResult.java @@ -14,24 +14,15 @@ public final class GetResourceTagsResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String resourceId; + private String id; + private String resourceId; /** * @return Map of key=value pairs for each tag set on the resource. * */ - private final Map tags; - - @CustomType.Constructor - private GetResourceTagsResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("resourceId") String resourceId, - @CustomType.Parameter("tags") Map tags) { - this.id = id; - this.resourceId = resourceId; - this.tags = tags; - } + private Map tags; + private GetResourceTagsResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -57,16 +48,12 @@ public static Builder builder() { public static Builder builder(GetResourceTagsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String resourceId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResourceTagsResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -74,19 +61,27 @@ public Builder(GetResourceTagsResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder resourceId(String resourceId) { this.resourceId = Objects.requireNonNull(resourceId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetResourceTagsResult build() { - return new GetResourceTagsResult(id, resourceId, tags); + } + public GetResourceTagsResult build() { + final var o = new GetResourceTagsResult(); + o.id = id; + o.resourceId = resourceId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationAccount.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationAccount.java index 79291fb95ec..8ccf9e99574 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationAccount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationAccount.java @@ -15,42 +15,29 @@ public final class OrganizationAccount { * @return ARN of the root * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return Email of the account * */ - private final @Nullable String email; + private @Nullable String email; /** * @return Identifier of the root * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the policy type * */ - private final @Nullable String name; + private @Nullable String name; /** * @return The status of the policy type as it relates to the associated root * */ - private final @Nullable String status; - - @CustomType.Constructor - private OrganizationAccount( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("email") @Nullable String email, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("status") @Nullable String status) { - this.arn = arn; - this.email = email; - this.id = id; - this.name = name; - this.status = status; - } + private @Nullable String status; + private OrganizationAccount() {} /** * @return ARN of the root * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(OrganizationAccount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String email; private @Nullable String id; private @Nullable String name; private @Nullable String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationAccount defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -115,27 +98,39 @@ public Builder(OrganizationAccount defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder email(@Nullable String email) { this.email = email; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; - } public OrganizationAccount build() { - return new OrganizationAccount(arn, email, id, name, status); + } + public OrganizationAccount build() { + final var o = new OrganizationAccount(); + o.arn = arn; + o.email = email; + o.id = id; + o.name = name; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationNonMasterAccount.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationNonMasterAccount.java index 0494c6a88a8..8bc39d5f718 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationNonMasterAccount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationNonMasterAccount.java @@ -15,42 +15,29 @@ public final class OrganizationNonMasterAccount { * @return ARN of the root * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return Email of the account * */ - private final @Nullable String email; + private @Nullable String email; /** * @return Identifier of the root * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the policy type * */ - private final @Nullable String name; + private @Nullable String name; /** * @return The status of the policy type as it relates to the associated root * */ - private final @Nullable String status; - - @CustomType.Constructor - private OrganizationNonMasterAccount( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("email") @Nullable String email, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("status") @Nullable String status) { - this.arn = arn; - this.email = email; - this.id = id; - this.name = name; - this.status = status; - } + private @Nullable String status; + private OrganizationNonMasterAccount() {} /** * @return ARN of the root * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(OrganizationNonMasterAccount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String email; private @Nullable String id; private @Nullable String name; private @Nullable String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationNonMasterAccount defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -115,27 +98,39 @@ public Builder(OrganizationNonMasterAccount defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder email(@Nullable String email) { this.email = email; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; - } public OrganizationNonMasterAccount build() { - return new OrganizationNonMasterAccount(arn, email, id, name, status); + } + public OrganizationNonMasterAccount build() { + final var o = new OrganizationNonMasterAccount(); + o.arn = arn; + o.email = email; + o.id = id; + o.name = name; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationRoot.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationRoot.java index 30bd1fe44df..ee96d2690e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationRoot.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationRoot.java @@ -17,35 +17,24 @@ public final class OrganizationRoot { * @return ARN of the root * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return Identifier of the root * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name of the policy type * */ - private final @Nullable String name; + private @Nullable String name; /** * @return List of policy types enabled for this root. All elements have these attributes: * */ - private final @Nullable List policyTypes; - - @CustomType.Constructor - private OrganizationRoot( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("policyTypes") @Nullable List policyTypes) { - this.arn = arn; - this.id = id; - this.name = name; - this.policyTypes = policyTypes; - } + private @Nullable List policyTypes; + private OrganizationRoot() {} /** * @return ARN of the root * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(OrganizationRoot defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String id; private @Nullable String name; private @Nullable List policyTypes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationRoot defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -101,26 +86,36 @@ public Builder(OrganizationRoot defaults) { this.policyTypes = defaults.policyTypes; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder policyTypes(@Nullable List policyTypes) { this.policyTypes = policyTypes; return this; } public Builder policyTypes(OrganizationRootPolicyType... policyTypes) { return policyTypes(List.of(policyTypes)); - } public OrganizationRoot build() { - return new OrganizationRoot(arn, id, name, policyTypes); + } + public OrganizationRoot build() { + final var o = new OrganizationRoot(); + o.arn = arn; + o.id = id; + o.name = name; + o.policyTypes = policyTypes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationRootPolicyType.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationRootPolicyType.java index f5a2273d417..b961cd464eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationRootPolicyType.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationRootPolicyType.java @@ -15,17 +15,10 @@ public final class OrganizationRootPolicyType { * @return The status of the policy type as it relates to the associated root * */ - private final @Nullable String status; - private final @Nullable String type; - - @CustomType.Constructor - private OrganizationRootPolicyType( - @CustomType.Parameter("status") @Nullable String status, - @CustomType.Parameter("type") @Nullable String type) { - this.status = status; - this.type = type; - } + private @Nullable String status; + private @Nullable String type; + private OrganizationRootPolicyType() {} /** * @return The status of the policy type as it relates to the associated root * @@ -44,30 +37,32 @@ public static Builder builder() { public static Builder builder(OrganizationRootPolicyType defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String status; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationRootPolicyType defaults) { Objects.requireNonNull(defaults); this.status = defaults.status; this.type = defaults.type; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public OrganizationRootPolicyType build() { - return new OrganizationRootPolicyType(status, type); + } + public OrganizationRootPolicyType build() { + final var o = new OrganizationRootPolicyType(); + o.status = status; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationalUnitAccount.java b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationalUnitAccount.java index e5a3adac0d7..44223c8395d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationalUnitAccount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/organizations/outputs/OrganizationalUnitAccount.java @@ -15,35 +15,24 @@ public final class OrganizationalUnitAccount { * @return ARN of the organizational unit * */ - private final @Nullable String arn; + private @Nullable String arn; /** * @return Email of the account * */ - private final @Nullable String email; + private @Nullable String email; /** * @return Identifier of the organization unit * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The name for the organizational unit * */ - private final @Nullable String name; - - @CustomType.Constructor - private OrganizationalUnitAccount( - @CustomType.Parameter("arn") @Nullable String arn, - @CustomType.Parameter("email") @Nullable String email, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("name") @Nullable String name) { - this.arn = arn; - this.email = email; - this.id = id; - this.name = name; - } + private @Nullable String name; + private OrganizationalUnitAccount() {} /** * @return ARN of the organizational unit * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(OrganizationalUnitAccount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; private @Nullable String email; private @Nullable String id; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OrganizationalUnitAccount defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -99,23 +84,33 @@ public Builder(OrganizationalUnitAccount defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; } + @CustomType.Setter public Builder email(@Nullable String email) { this.email = email; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public OrganizationalUnitAccount build() { - return new OrganizationalUnitAccount(arn, email, id, name); + } + public OrganizationalUnitAccount build() { + final var o = new OrganizationalUnitAccount(); + o.arn = arn; + o.email = email; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetAssetResult.java b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetAssetResult.java index 9030bac5bba..5a7917edfc0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetAssetResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetAssetResult.java @@ -10,52 +10,35 @@ @CustomType public final class GetAssetResult { - private final String arn; - private final String assetId; + private String arn; + private String assetId; /** * @return The type of the asset. * */ - private final String assetType; + private String assetType; /** * @return The host ID of the Dedicated Hosts on the asset, if a Dedicated Host is provisioned. * */ - private final String hostId; + private String hostId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The position of an asset in a rack measured in rack units. * */ - private final Integer rackElevation; + private Integer rackElevation; /** * @return The rack ID of the asset. * */ - private final String rackId; - - @CustomType.Constructor - private GetAssetResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("assetId") String assetId, - @CustomType.Parameter("assetType") String assetType, - @CustomType.Parameter("hostId") String hostId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("rackElevation") Integer rackElevation, - @CustomType.Parameter("rackId") String rackId) { - this.arn = arn; - this.assetId = assetId; - this.assetType = assetType; - this.hostId = hostId; - this.id = id; - this.rackElevation = rackElevation; - this.rackId = rackId; - } + private String rackId; + private GetAssetResult() {} public String arn() { return this.arn; } @@ -105,7 +88,7 @@ public static Builder builder() { public static Builder builder(GetAssetResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String assetId; @@ -114,11 +97,7 @@ public static final class Builder { private String id; private Integer rackElevation; private String rackId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAssetResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -130,35 +109,51 @@ public Builder(GetAssetResult defaults) { this.rackId = defaults.rackId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder assetId(String assetId) { this.assetId = Objects.requireNonNull(assetId); return this; } + @CustomType.Setter public Builder assetType(String assetType) { this.assetType = Objects.requireNonNull(assetType); return this; } + @CustomType.Setter public Builder hostId(String hostId) { this.hostId = Objects.requireNonNull(hostId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder rackElevation(Integer rackElevation) { this.rackElevation = Objects.requireNonNull(rackElevation); return this; } + @CustomType.Setter public Builder rackId(String rackId) { this.rackId = Objects.requireNonNull(rackId); return this; - } public GetAssetResult build() { - return new GetAssetResult(arn, assetId, assetType, hostId, id, rackElevation, rackId); + } + public GetAssetResult build() { + final var o = new GetAssetResult(); + o.arn = arn; + o.assetId = assetId; + o.assetType = assetType; + o.hostId = hostId; + o.id = id; + o.rackElevation = rackElevation; + o.rackId = rackId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetAssetsResult.java b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetAssetsResult.java index 5f7f17aa528..772b676f377 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetAssetsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetAssetsResult.java @@ -10,28 +10,19 @@ @CustomType public final class GetAssetsResult { - private final String arn; + private String arn; /** * @return A list of all the subnet ids found. This data source will fail if none are found. * */ - private final List assetIds; + private List assetIds; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetAssetsResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("assetIds") List assetIds, - @CustomType.Parameter("id") String id) { - this.arn = arn; - this.assetIds = assetIds; - this.id = id; - } + private String id; + private GetAssetsResult() {} public String arn() { return this.arn; } @@ -57,16 +48,12 @@ public static Builder builder() { public static Builder builder(GetAssetsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List assetIds; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAssetsResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -74,10 +61,12 @@ public Builder(GetAssetsResult defaults) { this.id = defaults.id; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder assetIds(List assetIds) { this.assetIds = Objects.requireNonNull(assetIds); return this; @@ -85,11 +74,17 @@ public Builder assetIds(List assetIds) { public Builder assetIds(String... assetIds) { return assetIds(List.of(assetIds)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetAssetsResult build() { - return new GetAssetsResult(arn, assetIds, id); + } + public GetAssetsResult build() { + final var o = new GetAssetsResult(); + o.arn = arn; + o.assetIds = assetIds; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostInstanceTypeResult.java b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostInstanceTypeResult.java index 0e590e06f80..73438a35298 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostInstanceTypeResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostInstanceTypeResult.java @@ -11,27 +11,16 @@ @CustomType public final class GetOutpostInstanceTypeResult { - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceType; - private final @Nullable List preferredInstanceTypes; - - @CustomType.Constructor - private GetOutpostInstanceTypeResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceType") String instanceType, - @CustomType.Parameter("preferredInstanceTypes") @Nullable List preferredInstanceTypes) { - this.arn = arn; - this.id = id; - this.instanceType = instanceType; - this.preferredInstanceTypes = preferredInstanceTypes; - } + private String id; + private String instanceType; + private @Nullable List preferredInstanceTypes; + private GetOutpostInstanceTypeResult() {} public String arn() { return this.arn; } @@ -56,17 +45,13 @@ public static Builder builder() { public static Builder builder(GetOutpostInstanceTypeResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String instanceType; private @Nullable List preferredInstanceTypes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOutpostInstanceTypeResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -75,26 +60,36 @@ public Builder(GetOutpostInstanceTypeResult defaults) { this.preferredInstanceTypes = defaults.preferredInstanceTypes; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceType(String instanceType) { this.instanceType = Objects.requireNonNull(instanceType); return this; } + @CustomType.Setter public Builder preferredInstanceTypes(@Nullable List preferredInstanceTypes) { this.preferredInstanceTypes = preferredInstanceTypes; return this; } public Builder preferredInstanceTypes(String... preferredInstanceTypes) { return preferredInstanceTypes(List.of(preferredInstanceTypes)); - } public GetOutpostInstanceTypeResult build() { - return new GetOutpostInstanceTypeResult(arn, id, instanceType, preferredInstanceTypes); + } + public GetOutpostInstanceTypeResult build() { + final var o = new GetOutpostInstanceTypeResult(); + o.arn = arn; + o.id = id; + o.instanceType = instanceType; + o.preferredInstanceTypes = preferredInstanceTypes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostInstanceTypesResult.java b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostInstanceTypesResult.java index 0d56efb2d3a..f7055e205a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostInstanceTypesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostInstanceTypesResult.java @@ -10,28 +10,19 @@ @CustomType public final class GetOutpostInstanceTypesResult { - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of instance types. * */ - private final List instanceTypes; - - @CustomType.Constructor - private GetOutpostInstanceTypesResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceTypes") List instanceTypes) { - this.arn = arn; - this.id = id; - this.instanceTypes = instanceTypes; - } + private List instanceTypes; + private GetOutpostInstanceTypesResult() {} public String arn() { return this.arn; } @@ -57,16 +48,12 @@ public static Builder builder() { public static Builder builder(GetOutpostInstanceTypesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private List instanceTypes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOutpostInstanceTypesResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -74,22 +61,30 @@ public Builder(GetOutpostInstanceTypesResult defaults) { this.instanceTypes = defaults.instanceTypes; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceTypes(List instanceTypes) { this.instanceTypes = Objects.requireNonNull(instanceTypes); return this; } public Builder instanceTypes(String... instanceTypes) { return instanceTypes(List.of(instanceTypes)); - } public GetOutpostInstanceTypesResult build() { - return new GetOutpostInstanceTypesResult(arn, id, instanceTypes); + } + public GetOutpostInstanceTypesResult build() { + final var o = new GetOutpostInstanceTypesResult(); + o.arn = arn; + o.id = id; + o.instanceTypes = instanceTypes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostResult.java b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostResult.java index 906b73c8b4d..603b6abe48b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostResult.java @@ -9,51 +9,32 @@ @CustomType public final class GetOutpostResult { - private final String arn; + private String arn; /** * @return Availability Zone name. * */ - private final String availabilityZone; + private String availabilityZone; /** * @return Availability Zone identifier. * */ - private final String availabilityZoneId; + private String availabilityZoneId; /** * @return Description. * */ - private final String description; - private final String id; - private final String name; - private final String ownerId; + private String description; + private String id; + private String name; + private String ownerId; /** * @return Site identifier. * */ - private final String siteId; - - @CustomType.Constructor - private GetOutpostResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("availabilityZoneId") String availabilityZoneId, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("siteId") String siteId) { - this.arn = arn; - this.availabilityZone = availabilityZone; - this.availabilityZoneId = availabilityZoneId; - this.description = description; - this.id = id; - this.name = name; - this.ownerId = ownerId; - this.siteId = siteId; - } + private String siteId; + private GetOutpostResult() {} public String arn() { return this.arn; } @@ -102,7 +83,7 @@ public static Builder builder() { public static Builder builder(GetOutpostResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String availabilityZone; @@ -112,11 +93,7 @@ public static final class Builder { private String name; private String ownerId; private String siteId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOutpostResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -129,39 +106,57 @@ public Builder(GetOutpostResult defaults) { this.siteId = defaults.siteId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder availabilityZoneId(String availabilityZoneId) { this.availabilityZoneId = Objects.requireNonNull(availabilityZoneId); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder siteId(String siteId) { this.siteId = Objects.requireNonNull(siteId); return this; - } public GetOutpostResult build() { - return new GetOutpostResult(arn, availabilityZone, availabilityZoneId, description, id, name, ownerId, siteId); + } + public GetOutpostResult build() { + final var o = new GetOutpostResult(); + o.arn = arn; + o.availabilityZone = availabilityZone; + o.availabilityZoneId = availabilityZoneId; + o.description = description; + o.id = id; + o.name = name; + o.ownerId = ownerId; + o.siteId = siteId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostsResult.java b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostsResult.java index 5025ac153cd..a3e8b215a77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetOutpostsResult.java @@ -14,40 +14,23 @@ public final class GetOutpostsResult { * @return Set of Amazon Resource Names (ARNs). * */ - private final List arns; - private final String availabilityZone; - private final String availabilityZoneId; + private List arns; + private String availabilityZone; + private String availabilityZoneId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of identifiers. * */ - private final List ids; - private final String ownerId; - private final String siteId; - - @CustomType.Constructor - private GetOutpostsResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("availabilityZoneId") String availabilityZoneId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("siteId") String siteId) { - this.arns = arns; - this.availabilityZone = availabilityZone; - this.availabilityZoneId = availabilityZoneId; - this.id = id; - this.ids = ids; - this.ownerId = ownerId; - this.siteId = siteId; - } + private List ids; + private String ownerId; + private String siteId; + private GetOutpostsResult() {} /** * @return Set of Amazon Resource Names (ARNs). * @@ -89,7 +72,7 @@ public static Builder builder() { public static Builder builder(GetOutpostsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private String availabilityZone; @@ -98,11 +81,7 @@ public static final class Builder { private List ids; private String ownerId; private String siteId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOutpostsResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -114,6 +93,7 @@ public Builder(GetOutpostsResult defaults) { this.siteId = defaults.siteId; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -121,18 +101,22 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder availabilityZoneId(String availabilityZoneId) { this.availabilityZoneId = Objects.requireNonNull(availabilityZoneId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -140,15 +124,26 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder siteId(String siteId) { this.siteId = Objects.requireNonNull(siteId); return this; - } public GetOutpostsResult build() { - return new GetOutpostsResult(arns, availabilityZone, availabilityZoneId, id, ids, ownerId, siteId); + } + public GetOutpostsResult build() { + final var o = new GetOutpostsResult(); + o.arns = arns; + o.availabilityZone = availabilityZone; + o.availabilityZoneId = availabilityZoneId; + o.id = id; + o.ids = ids; + o.ownerId = ownerId; + o.siteId = siteId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetSiteResult.java b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetSiteResult.java index bf49126f7f5..07fb525eb55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetSiteResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetSiteResult.java @@ -13,27 +13,16 @@ public final class GetSiteResult { * @return AWS Account identifier. * */ - private final String accountId; + private String accountId; /** * @return Description. * */ - private final String description; - private final String id; - private final String name; - - @CustomType.Constructor - private GetSiteResult( - @CustomType.Parameter("accountId") String accountId, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.accountId = accountId; - this.description = description; - this.id = id; - this.name = name; - } + private String description; + private String id; + private String name; + private GetSiteResult() {} /** * @return AWS Account identifier. * @@ -62,17 +51,13 @@ public static Builder builder() { public static Builder builder(GetSiteResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accountId; private String description; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSiteResult defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; @@ -81,23 +66,33 @@ public Builder(GetSiteResult defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder accountId(String accountId) { this.accountId = Objects.requireNonNull(accountId); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetSiteResult build() { - return new GetSiteResult(accountId, description, id, name); + } + public GetSiteResult build() { + final var o = new GetSiteResult(); + o.accountId = accountId; + o.description = description; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetSitesResult.java b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetSitesResult.java index 1433bc8a853..fd1c25a302a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetSitesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outposts/outputs/GetSitesResult.java @@ -14,21 +14,14 @@ public final class GetSitesResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of Outposts Site identifiers. * */ - private final List ids; - - @CustomType.Constructor - private GetSitesResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids) { - this.id = id; - this.ids = ids; - } + private List ids; + private GetSitesResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetSitesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private List ids; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSitesResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.ids = defaults.ids; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; } public Builder ids(String... ids) { return ids(List.of(ids)); - } public GetSitesResult build() { - return new GetSitesResult(id, ids); + } + public GetSitesResult build() { + final var o = new GetSitesResult(); + o.id = id; + o.ids = ids; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiBlockDeviceMapping.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiBlockDeviceMapping.java index aa6af03ddb5..3d8b4cd9591 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiBlockDeviceMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiBlockDeviceMapping.java @@ -14,35 +14,24 @@ public final class GetAmiBlockDeviceMapping { * @return The physical name of the device. * */ - private final String deviceName; + private String deviceName; /** * @return Map containing EBS information, if the device is EBS based. Unlike most object attributes, these are accessed directly (e.g., `ebs.volume_size` or `ebs["volume_size"]`) rather than accessed through the first element of a list (e.g., `ebs[0].volume_size`). * */ - private final Map ebs; + private Map ebs; /** * @return Suppresses the specified device included in the block device mapping of the AMI. * */ - private final String noDevice; + private String noDevice; /** * @return The virtual device name (for instance stores). * */ - private final String virtualName; - - @CustomType.Constructor - private GetAmiBlockDeviceMapping( - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("ebs") Map ebs, - @CustomType.Parameter("noDevice") String noDevice, - @CustomType.Parameter("virtualName") String virtualName) { - this.deviceName = deviceName; - this.ebs = ebs; - this.noDevice = noDevice; - this.virtualName = virtualName; - } + private String virtualName; + private GetAmiBlockDeviceMapping() {} /** * @return The physical name of the device. * @@ -79,17 +68,13 @@ public static Builder builder() { public static Builder builder(GetAmiBlockDeviceMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String deviceName; private Map ebs; private String noDevice; private String virtualName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiBlockDeviceMapping defaults) { Objects.requireNonNull(defaults); this.deviceName = defaults.deviceName; @@ -98,23 +83,33 @@ public Builder(GetAmiBlockDeviceMapping defaults) { this.virtualName = defaults.virtualName; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder ebs(Map ebs) { this.ebs = Objects.requireNonNull(ebs); return this; } + @CustomType.Setter public Builder noDevice(String noDevice) { this.noDevice = Objects.requireNonNull(noDevice); return this; } + @CustomType.Setter public Builder virtualName(String virtualName) { this.virtualName = Objects.requireNonNull(virtualName); return this; - } public GetAmiBlockDeviceMapping build() { - return new GetAmiBlockDeviceMapping(deviceName, ebs, noDevice, virtualName); + } + public GetAmiBlockDeviceMapping build() { + final var o = new GetAmiBlockDeviceMapping(); + o.deviceName = deviceName; + o.ebs = ebs; + o.noDevice = noDevice; + o.virtualName = virtualName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiFilter.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiFilter.java index f4beb8bb99b..cc9236f9e24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiFilter.java @@ -14,17 +14,10 @@ public final class GetAmiFilter { * @return The name of the AMI that was provided during image creation. * */ - private final String name; - private final List values; - - @CustomType.Constructor - private GetAmiFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetAmiFilter() {} /** * @return The name of the AMI that was provided during image creation. * @@ -43,33 +36,35 @@ public static Builder builder() { public static Builder builder(GetAmiFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetAmiFilter build() { - return new GetAmiFilter(name, values); + } + public GetAmiFilter build() { + final var o = new GetAmiFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiIdsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiIdsFilter.java index eada95c145b..21cabf9e4ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiIdsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiIdsFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetAmiIdsFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetAmiIdsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetAmiIdsFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetAmiIdsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiIdsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetAmiIdsFilter build() { - return new GetAmiIdsFilter(name, values); + } + public GetAmiIdsFilter build() { + final var o = new GetAmiIdsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiIdsResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiIdsResult.java index b8683e18a90..f9f7b3d1263 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiIdsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiIdsResult.java @@ -14,36 +14,19 @@ @CustomType public final class GetAmiIdsResult { - private final @Nullable List executableUsers; - private final @Nullable List filters; + private @Nullable List executableUsers; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final List ids; - private final @Nullable String nameRegex; - private final List owners; - private final @Nullable Boolean sortAscending; - - @CustomType.Constructor - private GetAmiIdsResult( - @CustomType.Parameter("executableUsers") @Nullable List executableUsers, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids, - @CustomType.Parameter("nameRegex") @Nullable String nameRegex, - @CustomType.Parameter("owners") List owners, - @CustomType.Parameter("sortAscending") @Nullable Boolean sortAscending) { - this.executableUsers = executableUsers; - this.filters = filters; - this.id = id; - this.ids = ids; - this.nameRegex = nameRegex; - this.owners = owners; - this.sortAscending = sortAscending; - } + private String id; + private List ids; + private @Nullable String nameRegex; + private List owners; + private @Nullable Boolean sortAscending; + private GetAmiIdsResult() {} public List executableUsers() { return this.executableUsers == null ? List.of() : this.executableUsers; } @@ -77,7 +60,7 @@ public static Builder builder() { public static Builder builder(GetAmiIdsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List executableUsers; private @Nullable List filters; @@ -86,11 +69,7 @@ public static final class Builder { private @Nullable String nameRegex; private List owners; private @Nullable Boolean sortAscending; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiIdsResult defaults) { Objects.requireNonNull(defaults); this.executableUsers = defaults.executableUsers; @@ -102,6 +81,7 @@ public Builder(GetAmiIdsResult defaults) { this.sortAscending = defaults.sortAscending; } + @CustomType.Setter public Builder executableUsers(@Nullable List executableUsers) { this.executableUsers = executableUsers; return this; @@ -109,6 +89,7 @@ public Builder executableUsers(@Nullable List executableUsers) { public Builder executableUsers(String... executableUsers) { return executableUsers(List.of(executableUsers)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -116,10 +97,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetAmiIdsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; @@ -127,10 +110,12 @@ public Builder ids(List ids) { public Builder ids(String... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder nameRegex(@Nullable String nameRegex) { this.nameRegex = nameRegex; return this; } + @CustomType.Setter public Builder owners(List owners) { this.owners = Objects.requireNonNull(owners); return this; @@ -138,11 +123,21 @@ public Builder owners(List owners) { public Builder owners(String... owners) { return owners(List.of(owners)); } + @CustomType.Setter public Builder sortAscending(@Nullable Boolean sortAscending) { this.sortAscending = sortAscending; return this; - } public GetAmiIdsResult build() { - return new GetAmiIdsResult(executableUsers, filters, id, ids, nameRegex, owners, sortAscending); + } + public GetAmiIdsResult build() { + final var o = new GetAmiIdsResult(); + o.executableUsers = executableUsers; + o.filters = filters; + o.id = id; + o.ids = ids; + o.nameRegex = nameRegex; + o.owners = owners; + o.sortAscending = sortAscending; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiProductCode.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiProductCode.java index 39956771b9e..fea4a6c16a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiProductCode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiProductCode.java @@ -9,17 +9,10 @@ @CustomType public final class GetAmiProductCode { - private final String productCodeId; - private final String productCodeType; - - @CustomType.Constructor - private GetAmiProductCode( - @CustomType.Parameter("productCodeId") String productCodeId, - @CustomType.Parameter("productCodeType") String productCodeType) { - this.productCodeId = productCodeId; - this.productCodeType = productCodeType; - } + private String productCodeId; + private String productCodeType; + private GetAmiProductCode() {} public String productCodeId() { return this.productCodeId; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetAmiProductCode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String productCodeId; private String productCodeType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiProductCode defaults) { Objects.requireNonNull(defaults); this.productCodeId = defaults.productCodeId; this.productCodeType = defaults.productCodeType; } + @CustomType.Setter public Builder productCodeId(String productCodeId) { this.productCodeId = Objects.requireNonNull(productCodeId); return this; } + @CustomType.Setter public Builder productCodeType(String productCodeType) { this.productCodeType = Objects.requireNonNull(productCodeType); return this; - } public GetAmiProductCode build() { - return new GetAmiProductCode(productCodeId, productCodeType); + } + public GetAmiProductCode build() { + final var o = new GetAmiProductCode(); + o.productCodeId = productCodeId; + o.productCodeType = productCodeType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiResult.java index 4e603b0f227..84497b42735 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAmiResult.java @@ -21,262 +21,183 @@ public final class GetAmiResult { * @return The OS architecture of the AMI (ie: `i386` or `x86_64`). * */ - private final String architecture; + private String architecture; /** * @return The ARN of the AMI. * */ - private final String arn; + private String arn; /** * @return Set of objects with block device mappings of the AMI. * */ - private final List blockDeviceMappings; + private List blockDeviceMappings; /** * @return The boot mode of the image. * */ - private final String bootMode; + private String bootMode; /** * @return The date and time the image was created. * */ - private final String creationDate; + private String creationDate; /** * @return The date and time when the image will be deprecated. * */ - private final String deprecationTime; + private String deprecationTime; /** * @return The description of the AMI that was provided during image * creation. * */ - private final String description; + private String description; /** * @return Specifies whether enhanced networking with ENA is enabled. * */ - private final Boolean enaSupport; - private final @Nullable List executableUsers; - private final @Nullable List filters; + private Boolean enaSupport; + private @Nullable List executableUsers; + private @Nullable List filters; /** * @return The hypervisor type of the image. * */ - private final String hypervisor; + private String hypervisor; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The ID of the AMI. Should be the same as the resource `id`. * */ - private final String imageId; + private String imageId; /** * @return The location of the AMI. * */ - private final String imageLocation; + private String imageLocation; /** * @return The AWS account alias (for example, `amazon`, `self`) or * the AWS account ID of the AMI owner. * */ - private final String imageOwnerAlias; + private String imageOwnerAlias; /** * @return The type of image. * */ - private final String imageType; - private final @Nullable Boolean includeDeprecated; + private String imageType; + private @Nullable Boolean includeDeprecated; /** * @return The kernel associated with the image, if any. Only applicable * for machine images. * */ - private final String kernelId; - private final @Nullable Boolean mostRecent; + private String kernelId; + private @Nullable Boolean mostRecent; /** * @return The name of the AMI that was provided during image creation. * */ - private final String name; - private final @Nullable String nameRegex; + private String name; + private @Nullable String nameRegex; /** * @return The AWS account ID of the image owner. * */ - private final String ownerId; - private final @Nullable List owners; + private String ownerId; + private @Nullable List owners; /** * @return The value is Windows for `Windows` AMIs; otherwise blank. * */ - private final String platform; + private String platform; /** * @return The platform details associated with the billing code of the AMI. * */ - private final String platformDetails; + private String platformDetails; /** * @return Any product codes associated with the AMI. * * `product_codes.#.product_code_id` - The product code. * * `product_codes.#.product_code_type` - The type of product code. * */ - private final List productCodes; + private List productCodes; /** * @return `true` if the image has public launch permissions. * */ - private final Boolean public_; + private Boolean public_; /** * @return The RAM disk associated with the image, if any. Only applicable * for machine images. * */ - private final String ramdiskId; + private String ramdiskId; /** * @return The device name of the root device. * */ - private final String rootDeviceName; + private String rootDeviceName; /** * @return The type of root device (ie: `ebs` or `instance-store`). * */ - private final String rootDeviceType; + private String rootDeviceType; /** * @return The snapshot id associated with the root device, if any * (only applies to `ebs` root devices). * */ - private final String rootSnapshotId; + private String rootSnapshotId; /** * @return Specifies whether enhanced networking is enabled. * */ - private final String sriovNetSupport; + private String sriovNetSupport; /** * @return The current state of the AMI. If the state is `available`, the image * is successfully registered and can be used to launch an instance. * */ - private final String state; + private String state; /** * @return Describes a state change. Fields are `UNSET` if not available. * * `state_reason.code` - The reason code for the state change. * * `state_reason.message` - The message for the state change. * */ - private final Map stateReason; + private Map stateReason; /** * @return Any tags assigned to the image. * * `tags.#.key` - The key name of the tag. * * `tags.#.value` - The value of the tag. * */ - private final Map tags; + private Map tags; /** * @return If the image is configured for NitroTPM support, the value is `v2.0`. * */ - private final String tpmSupport; + private String tpmSupport; /** * @return The operation of the Amazon EC2 instance and the billing code that is associated with the AMI. * */ - private final String usageOperation; + private String usageOperation; /** * @return The type of virtualization of the AMI (ie: `hvm` or * `paravirtual`). * */ - private final String virtualizationType; - - @CustomType.Constructor - private GetAmiResult( - @CustomType.Parameter("architecture") String architecture, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("blockDeviceMappings") List blockDeviceMappings, - @CustomType.Parameter("bootMode") String bootMode, - @CustomType.Parameter("creationDate") String creationDate, - @CustomType.Parameter("deprecationTime") String deprecationTime, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("enaSupport") Boolean enaSupport, - @CustomType.Parameter("executableUsers") @Nullable List executableUsers, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("hypervisor") String hypervisor, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("imageId") String imageId, - @CustomType.Parameter("imageLocation") String imageLocation, - @CustomType.Parameter("imageOwnerAlias") String imageOwnerAlias, - @CustomType.Parameter("imageType") String imageType, - @CustomType.Parameter("includeDeprecated") @Nullable Boolean includeDeprecated, - @CustomType.Parameter("kernelId") String kernelId, - @CustomType.Parameter("mostRecent") @Nullable Boolean mostRecent, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nameRegex") @Nullable String nameRegex, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("owners") @Nullable List owners, - @CustomType.Parameter("platform") String platform, - @CustomType.Parameter("platformDetails") String platformDetails, - @CustomType.Parameter("productCodes") List productCodes, - @CustomType.Parameter("public") Boolean public_, - @CustomType.Parameter("ramdiskId") String ramdiskId, - @CustomType.Parameter("rootDeviceName") String rootDeviceName, - @CustomType.Parameter("rootDeviceType") String rootDeviceType, - @CustomType.Parameter("rootSnapshotId") String rootSnapshotId, - @CustomType.Parameter("sriovNetSupport") String sriovNetSupport, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("stateReason") Map stateReason, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("tpmSupport") String tpmSupport, - @CustomType.Parameter("usageOperation") String usageOperation, - @CustomType.Parameter("virtualizationType") String virtualizationType) { - this.architecture = architecture; - this.arn = arn; - this.blockDeviceMappings = blockDeviceMappings; - this.bootMode = bootMode; - this.creationDate = creationDate; - this.deprecationTime = deprecationTime; - this.description = description; - this.enaSupport = enaSupport; - this.executableUsers = executableUsers; - this.filters = filters; - this.hypervisor = hypervisor; - this.id = id; - this.imageId = imageId; - this.imageLocation = imageLocation; - this.imageOwnerAlias = imageOwnerAlias; - this.imageType = imageType; - this.includeDeprecated = includeDeprecated; - this.kernelId = kernelId; - this.mostRecent = mostRecent; - this.name = name; - this.nameRegex = nameRegex; - this.ownerId = ownerId; - this.owners = owners; - this.platform = platform; - this.platformDetails = platformDetails; - this.productCodes = productCodes; - this.public_ = public_; - this.ramdiskId = ramdiskId; - this.rootDeviceName = rootDeviceName; - this.rootDeviceType = rootDeviceType; - this.rootSnapshotId = rootSnapshotId; - this.sriovNetSupport = sriovNetSupport; - this.state = state; - this.stateReason = stateReason; - this.tags = tags; - this.tpmSupport = tpmSupport; - this.usageOperation = usageOperation; - this.virtualizationType = virtualizationType; - } + private String virtualizationType; + private GetAmiResult() {} /** * @return The OS architecture of the AMI (ie: `i386` or `x86_64`). * @@ -540,7 +461,7 @@ public static Builder builder() { public static Builder builder(GetAmiResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String architecture; private String arn; @@ -580,11 +501,7 @@ public static final class Builder { private String tpmSupport; private String usageOperation; private String virtualizationType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAmiResult defaults) { Objects.requireNonNull(defaults); this.architecture = defaults.architecture; @@ -627,14 +544,17 @@ public Builder(GetAmiResult defaults) { this.virtualizationType = defaults.virtualizationType; } + @CustomType.Setter public Builder architecture(String architecture) { this.architecture = Objects.requireNonNull(architecture); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder blockDeviceMappings(List blockDeviceMappings) { this.blockDeviceMappings = Objects.requireNonNull(blockDeviceMappings); return this; @@ -642,26 +562,32 @@ public Builder blockDeviceMappings(List blockDeviceMap public Builder blockDeviceMappings(GetAmiBlockDeviceMapping... blockDeviceMappings) { return blockDeviceMappings(List.of(blockDeviceMappings)); } + @CustomType.Setter public Builder bootMode(String bootMode) { this.bootMode = Objects.requireNonNull(bootMode); return this; } + @CustomType.Setter public Builder creationDate(String creationDate) { this.creationDate = Objects.requireNonNull(creationDate); return this; } + @CustomType.Setter public Builder deprecationTime(String deprecationTime) { this.deprecationTime = Objects.requireNonNull(deprecationTime); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder enaSupport(Boolean enaSupport) { this.enaSupport = Objects.requireNonNull(enaSupport); return this; } + @CustomType.Setter public Builder executableUsers(@Nullable List executableUsers) { this.executableUsers = executableUsers; return this; @@ -669,6 +595,7 @@ public Builder executableUsers(@Nullable List executableUsers) { public Builder executableUsers(String... executableUsers) { return executableUsers(List.of(executableUsers)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -676,54 +603,67 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetAmiFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder hypervisor(String hypervisor) { this.hypervisor = Objects.requireNonNull(hypervisor); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder imageId(String imageId) { this.imageId = Objects.requireNonNull(imageId); return this; } + @CustomType.Setter public Builder imageLocation(String imageLocation) { this.imageLocation = Objects.requireNonNull(imageLocation); return this; } + @CustomType.Setter public Builder imageOwnerAlias(String imageOwnerAlias) { this.imageOwnerAlias = Objects.requireNonNull(imageOwnerAlias); return this; } + @CustomType.Setter public Builder imageType(String imageType) { this.imageType = Objects.requireNonNull(imageType); return this; } + @CustomType.Setter public Builder includeDeprecated(@Nullable Boolean includeDeprecated) { this.includeDeprecated = includeDeprecated; return this; } + @CustomType.Setter public Builder kernelId(String kernelId) { this.kernelId = Objects.requireNonNull(kernelId); return this; } + @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { this.mostRecent = mostRecent; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nameRegex(@Nullable String nameRegex) { this.nameRegex = nameRegex; return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder owners(@Nullable List owners) { this.owners = owners; return this; @@ -731,14 +671,17 @@ public Builder owners(@Nullable List owners) { public Builder owners(String... owners) { return owners(List.of(owners)); } + @CustomType.Setter public Builder platform(String platform) { this.platform = Objects.requireNonNull(platform); return this; } + @CustomType.Setter public Builder platformDetails(String platformDetails) { this.platformDetails = Objects.requireNonNull(platformDetails); return this; } + @CustomType.Setter public Builder productCodes(List productCodes) { this.productCodes = Objects.requireNonNull(productCodes); return this; @@ -746,55 +689,107 @@ public Builder productCodes(List productCodes) { public Builder productCodes(GetAmiProductCode... productCodes) { return productCodes(List.of(productCodes)); } + @CustomType.Setter("public") public Builder public_(Boolean public_) { this.public_ = Objects.requireNonNull(public_); return this; } + @CustomType.Setter public Builder ramdiskId(String ramdiskId) { this.ramdiskId = Objects.requireNonNull(ramdiskId); return this; } + @CustomType.Setter public Builder rootDeviceName(String rootDeviceName) { this.rootDeviceName = Objects.requireNonNull(rootDeviceName); return this; } + @CustomType.Setter public Builder rootDeviceType(String rootDeviceType) { this.rootDeviceType = Objects.requireNonNull(rootDeviceType); return this; } + @CustomType.Setter public Builder rootSnapshotId(String rootSnapshotId) { this.rootSnapshotId = Objects.requireNonNull(rootSnapshotId); return this; } + @CustomType.Setter public Builder sriovNetSupport(String sriovNetSupport) { this.sriovNetSupport = Objects.requireNonNull(sriovNetSupport); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder stateReason(Map stateReason) { this.stateReason = Objects.requireNonNull(stateReason); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder tpmSupport(String tpmSupport) { this.tpmSupport = Objects.requireNonNull(tpmSupport); return this; } + @CustomType.Setter public Builder usageOperation(String usageOperation) { this.usageOperation = Objects.requireNonNull(usageOperation); return this; } + @CustomType.Setter public Builder virtualizationType(String virtualizationType) { this.virtualizationType = Objects.requireNonNull(virtualizationType); return this; - } public GetAmiResult build() { - return new GetAmiResult(architecture, arn, blockDeviceMappings, bootMode, creationDate, deprecationTime, description, enaSupport, executableUsers, filters, hypervisor, id, imageId, imageLocation, imageOwnerAlias, imageType, includeDeprecated, kernelId, mostRecent, name, nameRegex, ownerId, owners, platform, platformDetails, productCodes, public_, ramdiskId, rootDeviceName, rootDeviceType, rootSnapshotId, sriovNetSupport, state, stateReason, tags, tpmSupport, usageOperation, virtualizationType); + } + public GetAmiResult build() { + final var o = new GetAmiResult(); + o.architecture = architecture; + o.arn = arn; + o.blockDeviceMappings = blockDeviceMappings; + o.bootMode = bootMode; + o.creationDate = creationDate; + o.deprecationTime = deprecationTime; + o.description = description; + o.enaSupport = enaSupport; + o.executableUsers = executableUsers; + o.filters = filters; + o.hypervisor = hypervisor; + o.id = id; + o.imageId = imageId; + o.imageLocation = imageLocation; + o.imageOwnerAlias = imageOwnerAlias; + o.imageType = imageType; + o.includeDeprecated = includeDeprecated; + o.kernelId = kernelId; + o.mostRecent = mostRecent; + o.name = name; + o.nameRegex = nameRegex; + o.ownerId = ownerId; + o.owners = owners; + o.platform = platform; + o.platformDetails = platformDetails; + o.productCodes = productCodes; + o.public_ = public_; + o.ramdiskId = ramdiskId; + o.rootDeviceName = rootDeviceName; + o.rootDeviceType = rootDeviceType; + o.rootSnapshotId = rootSnapshotId; + o.sriovNetSupport = sriovNetSupport; + o.state = state; + o.stateReason = stateReason; + o.tags = tags; + o.tpmSupport = tpmSupport; + o.usageOperation = usageOperation; + o.virtualizationType = virtualizationType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetArnResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetArnResult.java index 713530fb94c..a1ea9636925 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetArnResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetArnResult.java @@ -13,54 +13,37 @@ public final class GetArnResult { * @return The [ID](https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html) of the AWS account that owns the resource, without the hyphens. * */ - private final String account; - private final String arn; + private String account; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The partition that the resource is in. * */ - private final String partition; + private String partition; /** * @return The region the resource resides in. * Note that the ARNs for some resources do not require a region, so this component might be omitted. * */ - private final String region; + private String region; /** * @return The content of this part of the ARN varies by service. * It often includes an indicator of the type of resource—for example, an IAM user or Amazon RDS database —followed by a slash (/) or a colon (:), followed by the resource name itself. * */ - private final String resource; + private String resource; /** * @return The [service namespace](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) that identifies the AWS product. * */ - private final String service; - - @CustomType.Constructor - private GetArnResult( - @CustomType.Parameter("account") String account, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("partition") String partition, - @CustomType.Parameter("region") String region, - @CustomType.Parameter("resource") String resource, - @CustomType.Parameter("service") String service) { - this.account = account; - this.arn = arn; - this.id = id; - this.partition = partition; - this.region = region; - this.resource = resource; - this.service = service; - } + private String service; + private GetArnResult() {} /** * @return The [ID](https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html) of the AWS account that owns the resource, without the hyphens. * @@ -116,7 +99,7 @@ public static Builder builder() { public static Builder builder(GetArnResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String account; private String arn; @@ -125,11 +108,7 @@ public static final class Builder { private String region; private String resource; private String service; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetArnResult defaults) { Objects.requireNonNull(defaults); this.account = defaults.account; @@ -141,35 +120,51 @@ public Builder(GetArnResult defaults) { this.service = defaults.service; } + @CustomType.Setter public Builder account(String account) { this.account = Objects.requireNonNull(account); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder partition(String partition) { this.partition = Objects.requireNonNull(partition); return this; } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; } + @CustomType.Setter public Builder resource(String resource) { this.resource = Objects.requireNonNull(resource); return this; } + @CustomType.Setter public Builder service(String service) { this.service = Objects.requireNonNull(service); return this; - } public GetArnResult build() { - return new GetArnResult(account, arn, id, partition, region, resource, service); + } + public GetArnResult build() { + final var o = new GetArnResult(); + o.account = account; + o.arn = arn; + o.id = id; + o.partition = partition; + o.region = region; + o.resource = resource; + o.service = service; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAutoscalingGroupsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAutoscalingGroupsFilter.java index 467a5419c94..e0cba2a5ca7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAutoscalingGroupsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAutoscalingGroupsFilter.java @@ -14,21 +14,14 @@ public final class GetAutoscalingGroupsFilter { * @return The name of the DescribeAutoScalingGroup filter. The recommended values are: `tag-key`, `tag-value`, and `tag:<tag name>` * */ - private final String name; + private String name; /** * @return The value of the filter. * */ - private final List values; - - @CustomType.Constructor - private GetAutoscalingGroupsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetAutoscalingGroupsFilter() {} /** * @return The name of the DescribeAutoScalingGroup filter. The recommended values are: `tag-key`, `tag-value`, and `tag:<tag name>` * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetAutoscalingGroupsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAutoscalingGroupsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetAutoscalingGroupsFilter build() { - return new GetAutoscalingGroupsFilter(name, values); + } + public GetAutoscalingGroupsFilter build() { + final var o = new GetAutoscalingGroupsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAutoscalingGroupsResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAutoscalingGroupsResult.java index 99063b7a1a7..3abf00729f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAutoscalingGroupsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAutoscalingGroupsResult.java @@ -16,31 +16,20 @@ public final class GetAutoscalingGroupsResult { * @return A list of the Autoscaling Groups Arns in the current region. * */ - private final List arns; - private final @Nullable List filters; + private List arns; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A list of the Autoscaling Groups in the current region. * */ - private final List names; - - @CustomType.Constructor - private GetAutoscalingGroupsResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names) { - this.arns = arns; - this.filters = filters; - this.id = id; - this.names = names; - } + private List names; + private GetAutoscalingGroupsResult() {} /** * @return A list of the Autoscaling Groups Arns in the current region. * @@ -73,17 +62,13 @@ public static Builder builder() { public static Builder builder(GetAutoscalingGroupsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private @Nullable List filters; private String id; private List names; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAutoscalingGroupsResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -92,6 +77,7 @@ public Builder(GetAutoscalingGroupsResult defaults) { this.names = defaults.names; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -99,6 +85,7 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -106,18 +93,26 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetAutoscalingGroupsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; } public Builder names(String... names) { return names(List.of(names)); - } public GetAutoscalingGroupsResult build() { - return new GetAutoscalingGroupsResult(arns, filters, id, names); + } + public GetAutoscalingGroupsResult build() { + final var o = new GetAutoscalingGroupsResult(); + o.arns = arns; + o.filters = filters; + o.id = id; + o.names = names; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZoneFilter.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZoneFilter.java index 97aede53dd8..dfb0c38ad4d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZoneFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZoneFilter.java @@ -14,21 +14,14 @@ public final class GetAvailabilityZoneFilter { * @return The name of the filter field. Valid values can be found in the [EC2 DescribeAvailabilityZones API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetAvailabilityZoneFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetAvailabilityZoneFilter() {} /** * @return The name of the filter field. Valid values can be found in the [EC2 DescribeAvailabilityZones API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetAvailabilityZoneFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAvailabilityZoneFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetAvailabilityZoneFilter build() { - return new GetAvailabilityZoneFilter(name, values); + } + public GetAvailabilityZoneFilter build() { + final var o = new GetAvailabilityZoneFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZoneResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZoneResult.java index dce4a12e965..23ad25583f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZoneResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZoneResult.java @@ -14,91 +14,60 @@ @CustomType public final class GetAvailabilityZoneResult { - private final @Nullable Boolean allAvailabilityZones; - private final @Nullable List filters; + private @Nullable Boolean allAvailabilityZones; + private @Nullable List filters; /** * @return For Availability Zones, this is the same value as the Region name. For Local Zones, the name of the associated group, for example `us-west-2-lax-1`. * */ - private final String groupName; + private String groupName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return The part of the AZ name that appears after the region name, uniquely identifying the AZ within its region. * For Availability Zones this is usually a single letter, for example `a` for the `us-west-2a` zone. * For Local and Wavelength Zones this is a longer string, for example `wl1-sfo-wlz-1` for the `us-west-2-wl1-sfo-wlz-1` zone. * */ - private final String nameSuffix; + private String nameSuffix; /** * @return The name of the location from which the address is advertised. * */ - private final String networkBorderGroup; + private String networkBorderGroup; /** * @return For Availability Zones, this always has the value of `opt-in-not-required`. For Local Zones, this is the opt in status. The possible values are `opted-in` and `not-opted-in`. * */ - private final String optInStatus; + private String optInStatus; /** * @return The ID of the zone that handles some of the Local Zone or Wavelength Zone control plane operations, such as API calls. * */ - private final String parentZoneId; + private String parentZoneId; /** * @return The name of the zone that handles some of the Local Zone or Wavelength Zone control plane operations, such as API calls. * */ - private final String parentZoneName; + private String parentZoneName; /** * @return The region where the selected availability zone resides. This is always the region selected on the provider, since this data source searches only within that region. * */ - private final String region; - private final String state; - private final String zoneId; + private String region; + private String state; + private String zoneId; /** * @return The type of zone. Values are `availability-zone`, `local-zone`, and `wavelength-zone`. * */ - private final String zoneType; - - @CustomType.Constructor - private GetAvailabilityZoneResult( - @CustomType.Parameter("allAvailabilityZones") @Nullable Boolean allAvailabilityZones, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("groupName") String groupName, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nameSuffix") String nameSuffix, - @CustomType.Parameter("networkBorderGroup") String networkBorderGroup, - @CustomType.Parameter("optInStatus") String optInStatus, - @CustomType.Parameter("parentZoneId") String parentZoneId, - @CustomType.Parameter("parentZoneName") String parentZoneName, - @CustomType.Parameter("region") String region, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("zoneId") String zoneId, - @CustomType.Parameter("zoneType") String zoneType) { - this.allAvailabilityZones = allAvailabilityZones; - this.filters = filters; - this.groupName = groupName; - this.id = id; - this.name = name; - this.nameSuffix = nameSuffix; - this.networkBorderGroup = networkBorderGroup; - this.optInStatus = optInStatus; - this.parentZoneId = parentZoneId; - this.parentZoneName = parentZoneName; - this.region = region; - this.state = state; - this.zoneId = zoneId; - this.zoneType = zoneType; - } + private String zoneType; + private GetAvailabilityZoneResult() {} public Optional allAvailabilityZones() { return Optional.ofNullable(this.allAvailabilityZones); } @@ -187,7 +156,7 @@ public static Builder builder() { public static Builder builder(GetAvailabilityZoneResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allAvailabilityZones; private @Nullable List filters; @@ -203,11 +172,7 @@ public static final class Builder { private String state; private String zoneId; private String zoneType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAvailabilityZoneResult defaults) { Objects.requireNonNull(defaults); this.allAvailabilityZones = defaults.allAvailabilityZones; @@ -226,10 +191,12 @@ public Builder(GetAvailabilityZoneResult defaults) { this.zoneType = defaults.zoneType; } + @CustomType.Setter public Builder allAvailabilityZones(@Nullable Boolean allAvailabilityZones) { this.allAvailabilityZones = allAvailabilityZones; return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -237,55 +204,83 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetAvailabilityZoneFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder groupName(String groupName) { this.groupName = Objects.requireNonNull(groupName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nameSuffix(String nameSuffix) { this.nameSuffix = Objects.requireNonNull(nameSuffix); return this; } + @CustomType.Setter public Builder networkBorderGroup(String networkBorderGroup) { this.networkBorderGroup = Objects.requireNonNull(networkBorderGroup); return this; } + @CustomType.Setter public Builder optInStatus(String optInStatus) { this.optInStatus = Objects.requireNonNull(optInStatus); return this; } + @CustomType.Setter public Builder parentZoneId(String parentZoneId) { this.parentZoneId = Objects.requireNonNull(parentZoneId); return this; } + @CustomType.Setter public Builder parentZoneName(String parentZoneName) { this.parentZoneName = Objects.requireNonNull(parentZoneName); return this; } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder zoneId(String zoneId) { this.zoneId = Objects.requireNonNull(zoneId); return this; } + @CustomType.Setter public Builder zoneType(String zoneType) { this.zoneType = Objects.requireNonNull(zoneType); return this; - } public GetAvailabilityZoneResult build() { - return new GetAvailabilityZoneResult(allAvailabilityZones, filters, groupName, id, name, nameSuffix, networkBorderGroup, optInStatus, parentZoneId, parentZoneName, region, state, zoneId, zoneType); + } + public GetAvailabilityZoneResult build() { + final var o = new GetAvailabilityZoneResult(); + o.allAvailabilityZones = allAvailabilityZones; + o.filters = filters; + o.groupName = groupName; + o.id = id; + o.name = name; + o.nameSuffix = nameSuffix; + o.networkBorderGroup = networkBorderGroup; + o.optInStatus = optInStatus; + o.parentZoneId = parentZoneId; + o.parentZoneName = parentZoneName; + o.region = region; + o.state = state; + o.zoneId = zoneId; + o.zoneType = zoneType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZonesFilter.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZonesFilter.java index c4178003053..f0b390f0c17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZonesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZonesFilter.java @@ -14,21 +14,14 @@ public final class GetAvailabilityZonesFilter { * @return The name of the filter field. Valid values can be found in the [EC2 DescribeAvailabilityZones API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetAvailabilityZonesFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetAvailabilityZonesFilter() {} /** * @return The name of the filter field. Valid values can be found in the [EC2 DescribeAvailabilityZones API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetAvailabilityZonesFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAvailabilityZonesFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetAvailabilityZonesFilter build() { - return new GetAvailabilityZonesFilter(name, values); + } + public GetAvailabilityZonesFilter build() { + final var o = new GetAvailabilityZonesFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZonesResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZonesResult.java index 55d3f972636..420b58082db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZonesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetAvailabilityZonesResult.java @@ -14,50 +14,29 @@ @CustomType public final class GetAvailabilityZonesResult { - private final @Nullable Boolean allAvailabilityZones; - private final @Nullable List excludeNames; - private final @Nullable List excludeZoneIds; - private final @Nullable List filters; - private final List groupNames; + private @Nullable Boolean allAvailabilityZones; + private @Nullable List excludeNames; + private @Nullable List excludeZoneIds; + private @Nullable List filters; + private List groupNames; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A list of the Availability Zone names available to the account. * */ - private final List names; - private final @Nullable String state; + private List names; + private @Nullable String state; /** * @return A list of the Availability Zone IDs available to the account. * */ - private final List zoneIds; - - @CustomType.Constructor - private GetAvailabilityZonesResult( - @CustomType.Parameter("allAvailabilityZones") @Nullable Boolean allAvailabilityZones, - @CustomType.Parameter("excludeNames") @Nullable List excludeNames, - @CustomType.Parameter("excludeZoneIds") @Nullable List excludeZoneIds, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("groupNames") List groupNames, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names, - @CustomType.Parameter("state") @Nullable String state, - @CustomType.Parameter("zoneIds") List zoneIds) { - this.allAvailabilityZones = allAvailabilityZones; - this.excludeNames = excludeNames; - this.excludeZoneIds = excludeZoneIds; - this.filters = filters; - this.groupNames = groupNames; - this.id = id; - this.names = names; - this.state = state; - this.zoneIds = zoneIds; - } + private List zoneIds; + private GetAvailabilityZonesResult() {} public Optional allAvailabilityZones() { return Optional.ofNullable(this.allAvailabilityZones); } @@ -105,7 +84,7 @@ public static Builder builder() { public static Builder builder(GetAvailabilityZonesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allAvailabilityZones; private @Nullable List excludeNames; @@ -116,11 +95,7 @@ public static final class Builder { private List names; private @Nullable String state; private List zoneIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAvailabilityZonesResult defaults) { Objects.requireNonNull(defaults); this.allAvailabilityZones = defaults.allAvailabilityZones; @@ -134,10 +109,12 @@ public Builder(GetAvailabilityZonesResult defaults) { this.zoneIds = defaults.zoneIds; } + @CustomType.Setter public Builder allAvailabilityZones(@Nullable Boolean allAvailabilityZones) { this.allAvailabilityZones = allAvailabilityZones; return this; } + @CustomType.Setter public Builder excludeNames(@Nullable List excludeNames) { this.excludeNames = excludeNames; return this; @@ -145,6 +122,7 @@ public Builder excludeNames(@Nullable List excludeNames) { public Builder excludeNames(String... excludeNames) { return excludeNames(List.of(excludeNames)); } + @CustomType.Setter public Builder excludeZoneIds(@Nullable List excludeZoneIds) { this.excludeZoneIds = excludeZoneIds; return this; @@ -152,6 +130,7 @@ public Builder excludeZoneIds(@Nullable List excludeZoneIds) { public Builder excludeZoneIds(String... excludeZoneIds) { return excludeZoneIds(List.of(excludeZoneIds)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -159,6 +138,7 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetAvailabilityZonesFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder groupNames(List groupNames) { this.groupNames = Objects.requireNonNull(groupNames); return this; @@ -166,10 +146,12 @@ public Builder groupNames(List groupNames) { public Builder groupNames(String... groupNames) { return groupNames(List.of(groupNames)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; @@ -177,18 +159,31 @@ public Builder names(List names) { public Builder names(String... names) { return names(List.of(names)); } + @CustomType.Setter public Builder state(@Nullable String state) { this.state = state; return this; } + @CustomType.Setter public Builder zoneIds(List zoneIds) { this.zoneIds = Objects.requireNonNull(zoneIds); return this; } public Builder zoneIds(String... zoneIds) { return zoneIds(List.of(zoneIds)); - } public GetAvailabilityZonesResult build() { - return new GetAvailabilityZonesResult(allAvailabilityZones, excludeNames, excludeZoneIds, filters, groupNames, id, names, state, zoneIds); + } + public GetAvailabilityZonesResult build() { + final var o = new GetAvailabilityZonesResult(); + o.allAvailabilityZones = allAvailabilityZones; + o.excludeNames = excludeNames; + o.excludeZoneIds = excludeZoneIds; + o.filters = filters; + o.groupNames = groupNames; + o.id = id; + o.names = names; + o.state = state; + o.zoneIds = zoneIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetBillingServiceAccountResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetBillingServiceAccountResult.java index 34763ebfb76..439dc9946a0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetBillingServiceAccountResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetBillingServiceAccountResult.java @@ -13,21 +13,14 @@ public final class GetBillingServiceAccountResult { * @return The ARN of the AWS billing service account. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetBillingServiceAccountResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id) { - this.arn = arn; - this.id = id; - } + private String id; + private GetBillingServiceAccountResult() {} /** * @return The ARN of the AWS billing service account. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetBillingServiceAccountResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBillingServiceAccountResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.id = defaults.id; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetBillingServiceAccountResult build() { - return new GetBillingServiceAccountResult(arn, id); + } + public GetBillingServiceAccountResult build() { + final var o = new GetBillingServiceAccountResult(); + o.arn = arn; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetCallerIdentityResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetCallerIdentityResult.java index d7dacaede7d..42c2ecebf71 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetCallerIdentityResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetCallerIdentityResult.java @@ -13,35 +13,24 @@ public final class GetCallerIdentityResult { * @return AWS Account ID number of the account that owns or contains the calling entity. * */ - private final String accountId; + private String accountId; /** * @return ARN associated with the calling entity. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Unique identifier of the calling entity. * */ - private final String userId; - - @CustomType.Constructor - private GetCallerIdentityResult( - @CustomType.Parameter("accountId") String accountId, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("userId") String userId) { - this.accountId = accountId; - this.arn = arn; - this.id = id; - this.userId = userId; - } + private String userId; + private GetCallerIdentityResult() {} /** * @return AWS Account ID number of the account that owns or contains the calling entity. * @@ -78,17 +67,13 @@ public static Builder builder() { public static Builder builder(GetCallerIdentityResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accountId; private String arn; private String id; private String userId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCallerIdentityResult defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; @@ -97,23 +82,33 @@ public Builder(GetCallerIdentityResult defaults) { this.userId = defaults.userId; } + @CustomType.Setter public Builder accountId(String accountId) { this.accountId = Objects.requireNonNull(accountId); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder userId(String userId) { this.userId = Objects.requireNonNull(userId); return this; - } public GetCallerIdentityResult build() { - return new GetCallerIdentityResult(accountId, arn, id, userId); + } + public GetCallerIdentityResult build() { + final var o = new GetCallerIdentityResult(); + o.accountId = accountId; + o.arn = arn; + o.id = id; + o.userId = userId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetCanonicalUserIdResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetCanonicalUserIdResult.java index f53eed365bc..49581efd154 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetCanonicalUserIdResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetCanonicalUserIdResult.java @@ -13,21 +13,14 @@ public final class GetCanonicalUserIdResult { * @return The human-friendly name linked to the canonical user ID. The bucket owner's display name. **NOTE:** [This value](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTServiceGET.html) is only included in the response in the US East (N. Virginia), US West (N. California), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), EU (Ireland), and South America (São Paulo) regions. * */ - private final String displayName; + private String displayName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetCanonicalUserIdResult( - @CustomType.Parameter("displayName") String displayName, - @CustomType.Parameter("id") String id) { - this.displayName = displayName; - this.id = id; - } + private String id; + private GetCanonicalUserIdResult() {} /** * @return The human-friendly name linked to the canonical user ID. The bucket owner's display name. **NOTE:** [This value](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTServiceGET.html) is only included in the response in the US East (N. Virginia), US West (N. California), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), EU (Ireland), and South America (São Paulo) regions. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetCanonicalUserIdResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String displayName; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCanonicalUserIdResult defaults) { Objects.requireNonNull(defaults); this.displayName = defaults.displayName; this.id = defaults.id; } + @CustomType.Setter public Builder displayName(String displayName) { this.displayName = Objects.requireNonNull(displayName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetCanonicalUserIdResult build() { - return new GetCanonicalUserIdResult(displayName, id); + } + public GetCanonicalUserIdResult build() { + final var o = new GetCanonicalUserIdResult(); + o.displayName = displayName; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetDefaultTagsResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetDefaultTagsResult.java index b818408b582..711a871f996 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetDefaultTagsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetDefaultTagsResult.java @@ -14,21 +14,14 @@ public final class GetDefaultTagsResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Blocks of default tags set on the provider. See details below. * */ - private final Map tags; - - @CustomType.Constructor - private GetDefaultTagsResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("tags") Map tags) { - this.id = id; - this.tags = tags; - } + private Map tags; + private GetDefaultTagsResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetDefaultTagsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDefaultTagsResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.tags = defaults.tags; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetDefaultTagsResult build() { - return new GetDefaultTagsResult(id, tags); + } + public GetDefaultTagsResult build() { + final var o = new GetDefaultTagsResult(); + o.id = id; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetElasticIpFilter.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetElasticIpFilter.java index 5f5dcbc0cee..d7a728c730c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetElasticIpFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetElasticIpFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetElasticIpFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetElasticIpFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetElasticIpFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetElasticIpFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetElasticIpFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetElasticIpFilter build() { - return new GetElasticIpFilter(name, values); + } + public GetElasticIpFilter build() { + final var o = new GetElasticIpFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetElasticIpResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetElasticIpResult.java index ec2d4ef8570..07044d1b6df 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetElasticIpResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetElasticIpResult.java @@ -17,115 +17,80 @@ public final class GetElasticIpResult { * @return The ID representing the association of the address with an instance in a VPC. * */ - private final String associationId; + private String associationId; /** * @return The carrier IP address. * */ - private final String carrierIp; + private String carrierIp; /** * @return Customer Owned IP. * */ - private final String customerOwnedIp; + private String customerOwnedIp; /** * @return The ID of a Customer Owned IP Pool. For more on customer owned IP addressed check out [Customer-owned IP addresses guide](https://docs.aws.amazon.com/outposts/latest/userguide/outposts-networking-components.html#ip-addressing) * */ - private final String customerOwnedIpv4Pool; + private String customerOwnedIpv4Pool; /** * @return Indicates whether the address is for use in EC2-Classic (standard) or in a VPC (vpc). * */ - private final String domain; - private final @Nullable List filters; + private String domain; + private @Nullable List filters; /** * @return If VPC Elastic IP, the allocation identifier. If EC2-Classic Elastic IP, the public IP address. * */ - private final String id; + private String id; /** * @return The ID of the instance that the address is associated with (if any). * */ - private final String instanceId; + private String instanceId; /** * @return The ID of the network interface. * */ - private final String networkInterfaceId; + private String networkInterfaceId; /** * @return The ID of the AWS account that owns the network interface. * */ - private final String networkInterfaceOwnerId; + private String networkInterfaceOwnerId; /** * @return The Private DNS associated with the Elastic IP address. * */ - private final String privateDns; + private String privateDns; /** * @return The private IP address associated with the Elastic IP address. * */ - private final String privateIp; + private String privateIp; /** * @return Public DNS associated with the Elastic IP address. * */ - private final String publicDns; + private String publicDns; /** * @return Public IP address of Elastic IP. * */ - private final String publicIp; + private String publicIp; /** * @return The ID of an address pool. * */ - private final String publicIpv4Pool; + private String publicIpv4Pool; /** * @return Key-value map of tags associated with Elastic IP. * */ - private final Map tags; - - @CustomType.Constructor - private GetElasticIpResult( - @CustomType.Parameter("associationId") String associationId, - @CustomType.Parameter("carrierIp") String carrierIp, - @CustomType.Parameter("customerOwnedIp") String customerOwnedIp, - @CustomType.Parameter("customerOwnedIpv4Pool") String customerOwnedIpv4Pool, - @CustomType.Parameter("domain") String domain, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceId") String instanceId, - @CustomType.Parameter("networkInterfaceId") String networkInterfaceId, - @CustomType.Parameter("networkInterfaceOwnerId") String networkInterfaceOwnerId, - @CustomType.Parameter("privateDns") String privateDns, - @CustomType.Parameter("privateIp") String privateIp, - @CustomType.Parameter("publicDns") String publicDns, - @CustomType.Parameter("publicIp") String publicIp, - @CustomType.Parameter("publicIpv4Pool") String publicIpv4Pool, - @CustomType.Parameter("tags") Map tags) { - this.associationId = associationId; - this.carrierIp = carrierIp; - this.customerOwnedIp = customerOwnedIp; - this.customerOwnedIpv4Pool = customerOwnedIpv4Pool; - this.domain = domain; - this.filters = filters; - this.id = id; - this.instanceId = instanceId; - this.networkInterfaceId = networkInterfaceId; - this.networkInterfaceOwnerId = networkInterfaceOwnerId; - this.privateDns = privateDns; - this.privateIp = privateIp; - this.publicDns = publicDns; - this.publicIp = publicIp; - this.publicIpv4Pool = publicIpv4Pool; - this.tags = tags; - } + private Map tags; + private GetElasticIpResult() {} /** * @return The ID representing the association of the address with an instance in a VPC. * @@ -242,7 +207,7 @@ public static Builder builder() { public static Builder builder(GetElasticIpResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String associationId; private String carrierIp; @@ -260,11 +225,7 @@ public static final class Builder { private String publicIp; private String publicIpv4Pool; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetElasticIpResult defaults) { Objects.requireNonNull(defaults); this.associationId = defaults.associationId; @@ -285,26 +246,32 @@ public Builder(GetElasticIpResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder associationId(String associationId) { this.associationId = Objects.requireNonNull(associationId); return this; } + @CustomType.Setter public Builder carrierIp(String carrierIp) { this.carrierIp = Objects.requireNonNull(carrierIp); return this; } + @CustomType.Setter public Builder customerOwnedIp(String customerOwnedIp) { this.customerOwnedIp = Objects.requireNonNull(customerOwnedIp); return this; } + @CustomType.Setter public Builder customerOwnedIpv4Pool(String customerOwnedIpv4Pool) { this.customerOwnedIpv4Pool = Objects.requireNonNull(customerOwnedIpv4Pool); return this; } + @CustomType.Setter public Builder domain(String domain) { this.domain = Objects.requireNonNull(domain); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -312,47 +279,75 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetElasticIpFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; } + @CustomType.Setter public Builder networkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = Objects.requireNonNull(networkInterfaceId); return this; } + @CustomType.Setter public Builder networkInterfaceOwnerId(String networkInterfaceOwnerId) { this.networkInterfaceOwnerId = Objects.requireNonNull(networkInterfaceOwnerId); return this; } + @CustomType.Setter public Builder privateDns(String privateDns) { this.privateDns = Objects.requireNonNull(privateDns); return this; } + @CustomType.Setter public Builder privateIp(String privateIp) { this.privateIp = Objects.requireNonNull(privateIp); return this; } + @CustomType.Setter public Builder publicDns(String publicDns) { this.publicDns = Objects.requireNonNull(publicDns); return this; } + @CustomType.Setter public Builder publicIp(String publicIp) { this.publicIp = Objects.requireNonNull(publicIp); return this; } + @CustomType.Setter public Builder publicIpv4Pool(String publicIpv4Pool) { this.publicIpv4Pool = Objects.requireNonNull(publicIpv4Pool); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetElasticIpResult build() { - return new GetElasticIpResult(associationId, carrierIp, customerOwnedIp, customerOwnedIpv4Pool, domain, filters, id, instanceId, networkInterfaceId, networkInterfaceOwnerId, privateDns, privateIp, publicDns, publicIp, publicIpv4Pool, tags); + } + public GetElasticIpResult build() { + final var o = new GetElasticIpResult(); + o.associationId = associationId; + o.carrierIp = carrierIp; + o.customerOwnedIp = customerOwnedIp; + o.customerOwnedIpv4Pool = customerOwnedIpv4Pool; + o.domain = domain; + o.filters = filters; + o.id = id; + o.instanceId = instanceId; + o.networkInterfaceId = networkInterfaceId; + o.networkInterfaceOwnerId = networkInterfaceOwnerId; + o.privateDns = privateDns; + o.privateIp = privateIp; + o.publicDns = publicDns; + o.publicIp = publicIp; + o.publicIpv4Pool = publicIpv4Pool; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetIpRangesResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetIpRangesResult.java index 49313c76397..0924f778682 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetIpRangesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetIpRangesResult.java @@ -17,52 +17,33 @@ public final class GetIpRangesResult { * @return The lexically ordered list of CIDR blocks. * */ - private final List cidrBlocks; + private List cidrBlocks; /** * @return The publication time of the IP ranges (e.g., `2016-08-03-23-46-05`). * */ - private final String createDate; + private String createDate; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The lexically ordered list of IPv6 CIDR blocks. * */ - private final List ipv6CidrBlocks; - private final @Nullable List regions; - private final List services; + private List ipv6CidrBlocks; + private @Nullable List regions; + private List services; /** * @return The publication time of the IP ranges, in Unix epoch time format * (e.g., `1470267965`). * */ - private final Integer syncToken; - private final @Nullable String url; - - @CustomType.Constructor - private GetIpRangesResult( - @CustomType.Parameter("cidrBlocks") List cidrBlocks, - @CustomType.Parameter("createDate") String createDate, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ipv6CidrBlocks") List ipv6CidrBlocks, - @CustomType.Parameter("regions") @Nullable List regions, - @CustomType.Parameter("services") List services, - @CustomType.Parameter("syncToken") Integer syncToken, - @CustomType.Parameter("url") @Nullable String url) { - this.cidrBlocks = cidrBlocks; - this.createDate = createDate; - this.id = id; - this.ipv6CidrBlocks = ipv6CidrBlocks; - this.regions = regions; - this.services = services; - this.syncToken = syncToken; - this.url = url; - } + private Integer syncToken; + private @Nullable String url; + private GetIpRangesResult() {} /** * @return The lexically ordered list of CIDR blocks. * @@ -116,7 +97,7 @@ public static Builder builder() { public static Builder builder(GetIpRangesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List cidrBlocks; private String createDate; @@ -126,11 +107,7 @@ public static final class Builder { private List services; private Integer syncToken; private @Nullable String url; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIpRangesResult defaults) { Objects.requireNonNull(defaults); this.cidrBlocks = defaults.cidrBlocks; @@ -143,6 +120,7 @@ public Builder(GetIpRangesResult defaults) { this.url = defaults.url; } + @CustomType.Setter public Builder cidrBlocks(List cidrBlocks) { this.cidrBlocks = Objects.requireNonNull(cidrBlocks); return this; @@ -150,14 +128,17 @@ public Builder cidrBlocks(List cidrBlocks) { public Builder cidrBlocks(String... cidrBlocks) { return cidrBlocks(List.of(cidrBlocks)); } + @CustomType.Setter public Builder createDate(String createDate) { this.createDate = Objects.requireNonNull(createDate); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ipv6CidrBlocks(List ipv6CidrBlocks) { this.ipv6CidrBlocks = Objects.requireNonNull(ipv6CidrBlocks); return this; @@ -165,6 +146,7 @@ public Builder ipv6CidrBlocks(List ipv6CidrBlocks) { public Builder ipv6CidrBlocks(String... ipv6CidrBlocks) { return ipv6CidrBlocks(List.of(ipv6CidrBlocks)); } + @CustomType.Setter public Builder regions(@Nullable List regions) { this.regions = regions; return this; @@ -172,6 +154,7 @@ public Builder regions(@Nullable List regions) { public Builder regions(String... regions) { return regions(List.of(regions)); } + @CustomType.Setter public Builder services(List services) { this.services = Objects.requireNonNull(services); return this; @@ -179,15 +162,27 @@ public Builder services(List services) { public Builder services(String... services) { return services(List.of(services)); } + @CustomType.Setter public Builder syncToken(Integer syncToken) { this.syncToken = Objects.requireNonNull(syncToken); return this; } + @CustomType.Setter public Builder url(@Nullable String url) { this.url = url; return this; - } public GetIpRangesResult build() { - return new GetIpRangesResult(cidrBlocks, createDate, id, ipv6CidrBlocks, regions, services, syncToken, url); + } + public GetIpRangesResult build() { + final var o = new GetIpRangesResult(); + o.cidrBlocks = cidrBlocks; + o.createDate = createDate; + o.id = id; + o.ipv6CidrBlocks = ipv6CidrBlocks; + o.regions = regions; + o.services = services; + o.syncToken = syncToken; + o.url = url; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetPartitionResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetPartitionResult.java index 6318be9b216..9dc738390a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetPartitionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetPartitionResult.java @@ -13,35 +13,24 @@ public final class GetPartitionResult { * @return Base DNS domain name for the current partition (e.g., `amazonaws.com` in AWS Commercial, `amazonaws.com.cn` in AWS China). * */ - private final String dnsSuffix; + private String dnsSuffix; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Identifier of the current partition (e.g., `aws` in AWS Commercial, `aws-cn` in AWS China). * */ - private final String partition; + private String partition; /** * @return Prefix of service names (e.g., `com.amazonaws` in AWS Commercial, `cn.com.amazonaws` in AWS China). * */ - private final String reverseDnsPrefix; - - @CustomType.Constructor - private GetPartitionResult( - @CustomType.Parameter("dnsSuffix") String dnsSuffix, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("partition") String partition, - @CustomType.Parameter("reverseDnsPrefix") String reverseDnsPrefix) { - this.dnsSuffix = dnsSuffix; - this.id = id; - this.partition = partition; - this.reverseDnsPrefix = reverseDnsPrefix; - } + private String reverseDnsPrefix; + private GetPartitionResult() {} /** * @return Base DNS domain name for the current partition (e.g., `amazonaws.com` in AWS Commercial, `amazonaws.com.cn` in AWS China). * @@ -78,17 +67,13 @@ public static Builder builder() { public static Builder builder(GetPartitionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dnsSuffix; private String id; private String partition; private String reverseDnsPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPartitionResult defaults) { Objects.requireNonNull(defaults); this.dnsSuffix = defaults.dnsSuffix; @@ -97,23 +82,33 @@ public Builder(GetPartitionResult defaults) { this.reverseDnsPrefix = defaults.reverseDnsPrefix; } + @CustomType.Setter public Builder dnsSuffix(String dnsSuffix) { this.dnsSuffix = Objects.requireNonNull(dnsSuffix); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder partition(String partition) { this.partition = Objects.requireNonNull(partition); return this; } + @CustomType.Setter public Builder reverseDnsPrefix(String reverseDnsPrefix) { this.reverseDnsPrefix = Objects.requireNonNull(reverseDnsPrefix); return this; - } public GetPartitionResult build() { - return new GetPartitionResult(dnsSuffix, id, partition, reverseDnsPrefix); + } + public GetPartitionResult build() { + final var o = new GetPartitionResult(); + o.dnsSuffix = dnsSuffix; + o.id = id; + o.partition = partition; + o.reverseDnsPrefix = reverseDnsPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetPrefixListFilter.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetPrefixListFilter.java index ba130a89b20..18d0eb6fd63 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetPrefixListFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetPrefixListFilter.java @@ -14,21 +14,14 @@ public final class GetPrefixListFilter { * @return The name of the filter field. Valid values can be found in the [EC2 DescribePrefixLists API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribePrefixLists.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetPrefixListFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetPrefixListFilter() {} /** * @return The name of the filter field. Valid values can be found in the [EC2 DescribePrefixLists API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribePrefixLists.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetPrefixListFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPrefixListFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetPrefixListFilter build() { - return new GetPrefixListFilter(name, values); + } + public GetPrefixListFilter build() { + final var o = new GetPrefixListFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetPrefixListResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetPrefixListResult.java index dda4c7648ae..73ea92ab014 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetPrefixListResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetPrefixListResult.java @@ -17,34 +17,21 @@ public final class GetPrefixListResult { * @return The list of CIDR blocks for the AWS service associated with the prefix list. * */ - private final List cidrBlocks; - private final @Nullable List filters; + private List cidrBlocks; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the selected prefix list. * */ - private final String name; - private final @Nullable String prefixListId; - - @CustomType.Constructor - private GetPrefixListResult( - @CustomType.Parameter("cidrBlocks") List cidrBlocks, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("prefixListId") @Nullable String prefixListId) { - this.cidrBlocks = cidrBlocks; - this.filters = filters; - this.id = id; - this.name = name; - this.prefixListId = prefixListId; - } + private String name; + private @Nullable String prefixListId; + private GetPrefixListResult() {} /** * @return The list of CIDR blocks for the AWS service associated with the prefix list. * @@ -80,18 +67,14 @@ public static Builder builder() { public static Builder builder(GetPrefixListResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List cidrBlocks; private @Nullable List filters; private String id; private String name; private @Nullable String prefixListId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPrefixListResult defaults) { Objects.requireNonNull(defaults); this.cidrBlocks = defaults.cidrBlocks; @@ -101,6 +84,7 @@ public Builder(GetPrefixListResult defaults) { this.prefixListId = defaults.prefixListId; } + @CustomType.Setter public Builder cidrBlocks(List cidrBlocks) { this.cidrBlocks = Objects.requireNonNull(cidrBlocks); return this; @@ -108,6 +92,7 @@ public Builder cidrBlocks(List cidrBlocks) { public Builder cidrBlocks(String... cidrBlocks) { return cidrBlocks(List.of(cidrBlocks)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -115,19 +100,29 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetPrefixListFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder prefixListId(@Nullable String prefixListId) { this.prefixListId = prefixListId; return this; - } public GetPrefixListResult build() { - return new GetPrefixListResult(cidrBlocks, filters, id, name, prefixListId); + } + public GetPrefixListResult build() { + final var o = new GetPrefixListResult(); + o.cidrBlocks = cidrBlocks; + o.filters = filters; + o.id = id; + o.name = name; + o.prefixListId = prefixListId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetRegionResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetRegionResult.java index f4e9a0d89a6..f844654550f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetRegionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetRegionResult.java @@ -13,35 +13,24 @@ public final class GetRegionResult { * @return The region's description in this format: "Location (Region name)". * */ - private final String description; + private String description; /** * @return The EC2 endpoint for the selected region. * */ - private final String endpoint; + private String endpoint; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the selected region. * */ - private final String name; - - @CustomType.Constructor - private GetRegionResult( - @CustomType.Parameter("description") String description, - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.description = description; - this.endpoint = endpoint; - this.id = id; - this.name = name; - } + private String name; + private GetRegionResult() {} /** * @return The region's description in this format: "Location (Region name)". * @@ -78,17 +67,13 @@ public static Builder builder() { public static Builder builder(GetRegionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String description; private String endpoint; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRegionResult defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; @@ -97,23 +82,33 @@ public Builder(GetRegionResult defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetRegionResult build() { - return new GetRegionResult(description, endpoint, id, name); + } + public GetRegionResult build() { + final var o = new GetRegionResult(); + o.description = description; + o.endpoint = endpoint; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetRegionsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetRegionsFilter.java index 738ebbd8225..2dbb86ae14c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetRegionsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetRegionsFilter.java @@ -14,21 +14,14 @@ public final class GetRegionsFilter { * @return The name of the filter field. Valid values can be found in the [describe-regions AWS CLI Reference][1]. * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetRegionsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetRegionsFilter() {} /** * @return The name of the filter field. Valid values can be found in the [describe-regions AWS CLI Reference][1]. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetRegionsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRegionsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetRegionsFilter build() { - return new GetRegionsFilter(name, values); + } + public GetRegionsFilter build() { + final var o = new GetRegionsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetRegionsResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetRegionsResult.java index 91301c4084a..ecd43c95e65 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetRegionsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetRegionsResult.java @@ -14,31 +14,20 @@ @CustomType public final class GetRegionsResult { - private final @Nullable Boolean allRegions; - private final @Nullable List filters; + private @Nullable Boolean allRegions; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Names of regions that meets the criteria. * */ - private final List names; - - @CustomType.Constructor - private GetRegionsResult( - @CustomType.Parameter("allRegions") @Nullable Boolean allRegions, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names) { - this.allRegions = allRegions; - this.filters = filters; - this.id = id; - this.names = names; - } + private List names; + private GetRegionsResult() {} public Optional allRegions() { return Optional.ofNullable(this.allRegions); } @@ -67,17 +56,13 @@ public static Builder builder() { public static Builder builder(GetRegionsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allRegions; private @Nullable List filters; private String id; private List names; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRegionsResult defaults) { Objects.requireNonNull(defaults); this.allRegions = defaults.allRegions; @@ -86,10 +71,12 @@ public Builder(GetRegionsResult defaults) { this.names = defaults.names; } + @CustomType.Setter public Builder allRegions(@Nullable Boolean allRegions) { this.allRegions = allRegions; return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -97,18 +84,26 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetRegionsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; } public Builder names(String... names) { return names(List.of(names)); - } public GetRegionsResult build() { - return new GetRegionsResult(allRegions, filters, id, names); + } + public GetRegionsResult build() { + final var o = new GetRegionsResult(); + o.allRegions = allRegions; + o.filters = filters; + o.id = id; + o.names = names; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetServiceResult.java b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetServiceResult.java index 0f80876b190..d0051a7ffea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/outputs/GetServiceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/outputs/GetServiceResult.java @@ -10,43 +10,24 @@ @CustomType public final class GetServiceResult { - private final String dnsName; + private String dnsName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String partition; - private final String region; - private final String reverseDnsName; - private final String reverseDnsPrefix; - private final String serviceId; + private String id; + private String partition; + private String region; + private String reverseDnsName; + private String reverseDnsPrefix; + private String serviceId; /** * @return Whether the service is supported in the region's partition. New services may not be listed immediately as supported. * */ - private final Boolean supported; - - @CustomType.Constructor - private GetServiceResult( - @CustomType.Parameter("dnsName") String dnsName, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("partition") String partition, - @CustomType.Parameter("region") String region, - @CustomType.Parameter("reverseDnsName") String reverseDnsName, - @CustomType.Parameter("reverseDnsPrefix") String reverseDnsPrefix, - @CustomType.Parameter("serviceId") String serviceId, - @CustomType.Parameter("supported") Boolean supported) { - this.dnsName = dnsName; - this.id = id; - this.partition = partition; - this.region = region; - this.reverseDnsName = reverseDnsName; - this.reverseDnsPrefix = reverseDnsPrefix; - this.serviceId = serviceId; - this.supported = supported; - } + private Boolean supported; + private GetServiceResult() {} public String dnsName() { return this.dnsName; } @@ -87,7 +68,7 @@ public static Builder builder() { public static Builder builder(GetServiceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dnsName; private String id; @@ -97,11 +78,7 @@ public static final class Builder { private String reverseDnsPrefix; private String serviceId; private Boolean supported; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceResult defaults) { Objects.requireNonNull(defaults); this.dnsName = defaults.dnsName; @@ -114,39 +91,57 @@ public Builder(GetServiceResult defaults) { this.supported = defaults.supported; } + @CustomType.Setter public Builder dnsName(String dnsName) { this.dnsName = Objects.requireNonNull(dnsName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder partition(String partition) { this.partition = Objects.requireNonNull(partition); return this; } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; } + @CustomType.Setter public Builder reverseDnsName(String reverseDnsName) { this.reverseDnsName = Objects.requireNonNull(reverseDnsName); return this; } + @CustomType.Setter public Builder reverseDnsPrefix(String reverseDnsPrefix) { this.reverseDnsPrefix = Objects.requireNonNull(reverseDnsPrefix); return this; } + @CustomType.Setter public Builder serviceId(String serviceId) { this.serviceId = Objects.requireNonNull(serviceId); return this; } + @CustomType.Setter public Builder supported(Boolean supported) { this.supported = Objects.requireNonNull(supported); return this; - } public GetServiceResult build() { - return new GetServiceResult(dnsName, id, partition, region, reverseDnsName, reverseDnsPrefix, serviceId, supported); + } + public GetServiceResult build() { + final var o = new GetServiceResult(); + o.dnsName = dnsName; + o.id = id; + o.partition = partition; + o.region = region; + o.reverseDnsName = reverseDnsName; + o.reverseDnsPrefix = reverseDnsPrefix; + o.serviceId = serviceId; + o.supported = supported; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/pinpoint/outputs/AppCampaignHook.java b/sdk/java/src/main/java/com/pulumi/aws/pinpoint/outputs/AppCampaignHook.java index 85abe37a9bc..192a3d406eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/pinpoint/outputs/AppCampaignHook.java +++ b/sdk/java/src/main/java/com/pulumi/aws/pinpoint/outputs/AppCampaignHook.java @@ -15,28 +15,19 @@ public final class AppCampaignHook { * @return Lambda function name or ARN to be called for delivery. Conflicts with `web_url` * */ - private final @Nullable String lambdaFunctionName; + private @Nullable String lambdaFunctionName; /** * @return What mode Lambda should be invoked in. Valid values for this parameter are `DELIVERY`, `FILTER`. * */ - private final @Nullable String mode; + private @Nullable String mode; /** * @return Web URL to call for hook. If the URL has authentication specified it will be added as authentication to the request. Conflicts with `lambda_function_name` * */ - private final @Nullable String webUrl; - - @CustomType.Constructor - private AppCampaignHook( - @CustomType.Parameter("lambdaFunctionName") @Nullable String lambdaFunctionName, - @CustomType.Parameter("mode") @Nullable String mode, - @CustomType.Parameter("webUrl") @Nullable String webUrl) { - this.lambdaFunctionName = lambdaFunctionName; - this.mode = mode; - this.webUrl = webUrl; - } + private @Nullable String webUrl; + private AppCampaignHook() {} /** * @return Lambda function name or ARN to be called for delivery. Conflicts with `web_url` * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(AppCampaignHook defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String lambdaFunctionName; private @Nullable String mode; private @Nullable String webUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AppCampaignHook defaults) { Objects.requireNonNull(defaults); this.lambdaFunctionName = defaults.lambdaFunctionName; @@ -83,19 +70,27 @@ public Builder(AppCampaignHook defaults) { this.webUrl = defaults.webUrl; } + @CustomType.Setter public Builder lambdaFunctionName(@Nullable String lambdaFunctionName) { this.lambdaFunctionName = lambdaFunctionName; return this; } + @CustomType.Setter public Builder mode(@Nullable String mode) { this.mode = mode; return this; } + @CustomType.Setter public Builder webUrl(@Nullable String webUrl) { this.webUrl = webUrl; return this; - } public AppCampaignHook build() { - return new AppCampaignHook(lambdaFunctionName, mode, webUrl); + } + public AppCampaignHook build() { + final var o = new AppCampaignHook(); + o.lambdaFunctionName = lambdaFunctionName; + o.mode = mode; + o.webUrl = webUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/pinpoint/outputs/AppLimits.java b/sdk/java/src/main/java/com/pulumi/aws/pinpoint/outputs/AppLimits.java index 55959ed9ab8..6a8f31e58e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/pinpoint/outputs/AppLimits.java +++ b/sdk/java/src/main/java/com/pulumi/aws/pinpoint/outputs/AppLimits.java @@ -15,35 +15,24 @@ public final class AppLimits { * @return The maximum number of messages that the campaign can send daily. * */ - private final @Nullable Integer daily; + private @Nullable Integer daily; /** * @return The length of time (in seconds) that the campaign can run before it ends and message deliveries stop. This duration begins at the scheduled start time for the campaign. The minimum value is 60. * */ - private final @Nullable Integer maximumDuration; + private @Nullable Integer maximumDuration; /** * @return The number of messages that the campaign can send per second. The minimum value is 50, and the maximum is 20000. * */ - private final @Nullable Integer messagesPerSecond; + private @Nullable Integer messagesPerSecond; /** * @return The maximum total number of messages that the campaign can send. * */ - private final @Nullable Integer total; - - @CustomType.Constructor - private AppLimits( - @CustomType.Parameter("daily") @Nullable Integer daily, - @CustomType.Parameter("maximumDuration") @Nullable Integer maximumDuration, - @CustomType.Parameter("messagesPerSecond") @Nullable Integer messagesPerSecond, - @CustomType.Parameter("total") @Nullable Integer total) { - this.daily = daily; - this.maximumDuration = maximumDuration; - this.messagesPerSecond = messagesPerSecond; - this.total = total; - } + private @Nullable Integer total; + private AppLimits() {} /** * @return The maximum number of messages that the campaign can send daily. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(AppLimits defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer daily; private @Nullable Integer maximumDuration; private @Nullable Integer messagesPerSecond; private @Nullable Integer total; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AppLimits defaults) { Objects.requireNonNull(defaults); this.daily = defaults.daily; @@ -99,23 +84,33 @@ public Builder(AppLimits defaults) { this.total = defaults.total; } + @CustomType.Setter public Builder daily(@Nullable Integer daily) { this.daily = daily; return this; } + @CustomType.Setter public Builder maximumDuration(@Nullable Integer maximumDuration) { this.maximumDuration = maximumDuration; return this; } + @CustomType.Setter public Builder messagesPerSecond(@Nullable Integer messagesPerSecond) { this.messagesPerSecond = messagesPerSecond; return this; } + @CustomType.Setter public Builder total(@Nullable Integer total) { this.total = total; return this; - } public AppLimits build() { - return new AppLimits(daily, maximumDuration, messagesPerSecond, total); + } + public AppLimits build() { + final var o = new AppLimits(); + o.daily = daily; + o.maximumDuration = maximumDuration; + o.messagesPerSecond = messagesPerSecond; + o.total = total; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/pinpoint/outputs/AppQuietTime.java b/sdk/java/src/main/java/com/pulumi/aws/pinpoint/outputs/AppQuietTime.java index 80b8a258a52..0c19f27258f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/pinpoint/outputs/AppQuietTime.java +++ b/sdk/java/src/main/java/com/pulumi/aws/pinpoint/outputs/AppQuietTime.java @@ -15,21 +15,14 @@ public final class AppQuietTime { * @return The default end time for quiet time in ISO 8601 format. Required if `start` is set * */ - private final @Nullable String end; + private @Nullable String end; /** * @return The default start time for quiet time in ISO 8601 format. Required if `end` is set * */ - private final @Nullable String start; - - @CustomType.Constructor - private AppQuietTime( - @CustomType.Parameter("end") @Nullable String end, - @CustomType.Parameter("start") @Nullable String start) { - this.end = end; - this.start = start; - } + private @Nullable String start; + private AppQuietTime() {} /** * @return The default end time for quiet time in ISO 8601 format. Required if `start` is set * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(AppQuietTime defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String end; private @Nullable String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AppQuietTime defaults) { Objects.requireNonNull(defaults); this.end = defaults.end; this.start = defaults.start; } + @CustomType.Setter public Builder end(@Nullable String end) { this.end = end; return this; } + @CustomType.Setter public Builder start(@Nullable String start) { this.start = start; return this; - } public AppQuietTime build() { - return new AppQuietTime(end, start); + } + public AppQuietTime build() { + final var o = new AppQuietTime(); + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/pricing/outputs/GetProductFilter.java b/sdk/java/src/main/java/com/pulumi/aws/pricing/outputs/GetProductFilter.java index 4773bdf60b1..66b40f0f65c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/pricing/outputs/GetProductFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/pricing/outputs/GetProductFilter.java @@ -13,21 +13,14 @@ public final class GetProductFilter { * @return The product attribute name that you want to filter on. * */ - private final String field; + private String field; /** * @return The product attribute value that you want to filter on. * */ - private final String value; - - @CustomType.Constructor - private GetProductFilter( - @CustomType.Parameter("field") String field, - @CustomType.Parameter("value") String value) { - this.field = field; - this.value = value; - } + private String value; + private GetProductFilter() {} /** * @return The product attribute name that you want to filter on. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetProductFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String field; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetProductFilter defaults) { Objects.requireNonNull(defaults); this.field = defaults.field; this.value = defaults.value; } + @CustomType.Setter public Builder field(String field) { this.field = Objects.requireNonNull(field); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GetProductFilter build() { - return new GetProductFilter(field, value); + } + public GetProductFilter build() { + final var o = new GetProductFilter(); + o.field = field; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/pricing/outputs/GetProductResult.java b/sdk/java/src/main/java/com/pulumi/aws/pricing/outputs/GetProductResult.java index d257b9486a0..2802f50f8c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/pricing/outputs/GetProductResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/pricing/outputs/GetProductResult.java @@ -11,31 +11,20 @@ @CustomType public final class GetProductResult { - private final List filters; + private List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set to the product returned from the API. * */ - private final String result; - private final String serviceCode; - - @CustomType.Constructor - private GetProductResult( - @CustomType.Parameter("filters") List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("result") String result, - @CustomType.Parameter("serviceCode") String serviceCode) { - this.filters = filters; - this.id = id; - this.result = result; - this.serviceCode = serviceCode; - } + private String result; + private String serviceCode; + private GetProductResult() {} public List filters() { return this.filters; } @@ -64,17 +53,13 @@ public static Builder builder() { public static Builder builder(GetProductResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List filters; private String id; private String result; private String serviceCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetProductResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -83,6 +68,7 @@ public Builder(GetProductResult defaults) { this.serviceCode = defaults.serviceCode; } + @CustomType.Setter public Builder filters(List filters) { this.filters = Objects.requireNonNull(filters); return this; @@ -90,19 +76,28 @@ public Builder filters(List filters) { public Builder filters(GetProductFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder result(String result) { this.result = Objects.requireNonNull(result); return this; } + @CustomType.Setter public Builder serviceCode(String serviceCode) { this.serviceCode = Objects.requireNonNull(serviceCode); return this; - } public GetProductResult build() { - return new GetProductResult(filters, id, result, serviceCode); + } + public GetProductResult build() { + final var o = new GetProductResult(); + o.filters = filters; + o.id = id; + o.result = result; + o.serviceCode = serviceCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/qldb/outputs/GetLedgerResult.java b/sdk/java/src/main/java/com/pulumi/aws/qldb/outputs/GetLedgerResult.java index 0c7a1eaf2b8..2c4ba69113c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/qldb/outputs/GetLedgerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/qldb/outputs/GetLedgerResult.java @@ -11,36 +11,19 @@ @CustomType public final class GetLedgerResult { - private final String arn; - private final Boolean deletionProtection; + private String arn; + private Boolean deletionProtection; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String kmsKey; - private final String name; - private final String permissionsMode; - private final Map tags; - - @CustomType.Constructor - private GetLedgerResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("deletionProtection") Boolean deletionProtection, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKey") String kmsKey, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("permissionsMode") String permissionsMode, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.deletionProtection = deletionProtection; - this.id = id; - this.kmsKey = kmsKey; - this.name = name; - this.permissionsMode = permissionsMode; - this.tags = tags; - } + private String id; + private String kmsKey; + private String name; + private String permissionsMode; + private Map tags; + private GetLedgerResult() {} public String arn() { return this.arn; } @@ -74,7 +57,7 @@ public static Builder builder() { public static Builder builder(GetLedgerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private Boolean deletionProtection; @@ -83,11 +66,7 @@ public static final class Builder { private String name; private String permissionsMode; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLedgerResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -99,35 +78,51 @@ public Builder(GetLedgerResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder deletionProtection(Boolean deletionProtection) { this.deletionProtection = Objects.requireNonNull(deletionProtection); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKey(String kmsKey) { this.kmsKey = Objects.requireNonNull(kmsKey); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder permissionsMode(String permissionsMode) { this.permissionsMode = Objects.requireNonNull(permissionsMode); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetLedgerResult build() { - return new GetLedgerResult(arn, deletionProtection, id, kmsKey, name, permissionsMode, tags); + } + public GetLedgerResult build() { + final var o = new GetLedgerResult(); + o.arn = arn; + o.deletionProtection = deletionProtection; + o.id = id; + o.kmsKey = kmsKey; + o.name = name; + o.permissionsMode = permissionsMode; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/qldb/outputs/StreamKinesisConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/qldb/outputs/StreamKinesisConfiguration.java index 4c22f99bbbc..37b8bae1886 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/qldb/outputs/StreamKinesisConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/qldb/outputs/StreamKinesisConfiguration.java @@ -16,21 +16,14 @@ public final class StreamKinesisConfiguration { * @return Enables QLDB to publish multiple data records in a single Kinesis Data Streams record, increasing the number of records sent per API call. Default: `true`. * */ - private final @Nullable Boolean aggregationEnabled; + private @Nullable Boolean aggregationEnabled; /** * @return The Amazon Resource Name (ARN) of the Kinesis Data Streams resource. * */ - private final String streamArn; - - @CustomType.Constructor - private StreamKinesisConfiguration( - @CustomType.Parameter("aggregationEnabled") @Nullable Boolean aggregationEnabled, - @CustomType.Parameter("streamArn") String streamArn) { - this.aggregationEnabled = aggregationEnabled; - this.streamArn = streamArn; - } + private String streamArn; + private StreamKinesisConfiguration() {} /** * @return Enables QLDB to publish multiple data records in a single Kinesis Data Streams record, increasing the number of records sent per API call. Default: `true`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(StreamKinesisConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean aggregationEnabled; private String streamArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StreamKinesisConfiguration defaults) { Objects.requireNonNull(defaults); this.aggregationEnabled = defaults.aggregationEnabled; this.streamArn = defaults.streamArn; } + @CustomType.Setter public Builder aggregationEnabled(@Nullable Boolean aggregationEnabled) { this.aggregationEnabled = aggregationEnabled; return this; } + @CustomType.Setter public Builder streamArn(String streamArn) { this.streamArn = Objects.requireNonNull(streamArn); return this; - } public StreamKinesisConfiguration build() { - return new StreamKinesisConfiguration(aggregationEnabled, streamArn); + } + public StreamKinesisConfiguration build() { + final var o = new StreamKinesisConfiguration(); + o.aggregationEnabled = aggregationEnabled; + o.streamArn = streamArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceCredentials.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceCredentials.java index 7c6b2309057..2527718a170 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceCredentials.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceCredentials.java @@ -17,21 +17,14 @@ public final class DataSourceCredentials { * When the value is not null, the `credential_pair` from the data source in the ARN is used. * */ - private final @Nullable String copySourceArn; + private @Nullable String copySourceArn; /** * @return - Credential pair. See Credential Pair below for more details. * */ - private final @Nullable DataSourceCredentialsCredentialPair credentialPair; - - @CustomType.Constructor - private DataSourceCredentials( - @CustomType.Parameter("copySourceArn") @Nullable String copySourceArn, - @CustomType.Parameter("credentialPair") @Nullable DataSourceCredentialsCredentialPair credentialPair) { - this.copySourceArn = copySourceArn; - this.credentialPair = credentialPair; - } + private @Nullable DataSourceCredentialsCredentialPair credentialPair; + private DataSourceCredentials() {} /** * @return - The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. * When the value is not null, the `credential_pair` from the data source in the ARN is used. @@ -55,30 +48,32 @@ public static Builder builder() { public static Builder builder(DataSourceCredentials defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String copySourceArn; private @Nullable DataSourceCredentialsCredentialPair credentialPair; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceCredentials defaults) { Objects.requireNonNull(defaults); this.copySourceArn = defaults.copySourceArn; this.credentialPair = defaults.credentialPair; } + @CustomType.Setter public Builder copySourceArn(@Nullable String copySourceArn) { this.copySourceArn = copySourceArn; return this; } + @CustomType.Setter public Builder credentialPair(@Nullable DataSourceCredentialsCredentialPair credentialPair) { this.credentialPair = credentialPair; return this; - } public DataSourceCredentials build() { - return new DataSourceCredentials(copySourceArn, credentialPair); + } + public DataSourceCredentials build() { + final var o = new DataSourceCredentials(); + o.copySourceArn = copySourceArn; + o.credentialPair = credentialPair; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceCredentialsCredentialPair.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceCredentialsCredentialPair.java index e92932670c7..a16d17eb0c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceCredentialsCredentialPair.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceCredentialsCredentialPair.java @@ -13,21 +13,14 @@ public final class DataSourceCredentialsCredentialPair { * @return Password, maximum length of 1024 characters. * */ - private final String password; + private String password; /** * @return User name, maximum length of 64 characters. * */ - private final String username; - - @CustomType.Constructor - private DataSourceCredentialsCredentialPair( - @CustomType.Parameter("password") String password, - @CustomType.Parameter("username") String username) { - this.password = password; - this.username = username; - } + private String username; + private DataSourceCredentialsCredentialPair() {} /** * @return Password, maximum length of 1024 characters. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(DataSourceCredentialsCredentialPair defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String password; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceCredentialsCredentialPair defaults) { Objects.requireNonNull(defaults); this.password = defaults.password; this.username = defaults.username; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public DataSourceCredentialsCredentialPair build() { - return new DataSourceCredentialsCredentialPair(password, username); + } + public DataSourceCredentialsCredentialPair build() { + final var o = new DataSourceCredentialsCredentialPair(); + o.password = password; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParameters.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParameters.java index 20e8c9f9c3a..c1b057468e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParameters.java @@ -34,147 +34,104 @@ public final class DataSourceParameters { * @return Parameters for connecting to Amazon Elasticsearch. * */ - private final @Nullable DataSourceParametersAmazonElasticsearch amazonElasticsearch; + private @Nullable DataSourceParametersAmazonElasticsearch amazonElasticsearch; /** * @return Parameters for connecting to Athena. * */ - private final @Nullable DataSourceParametersAthena athena; + private @Nullable DataSourceParametersAthena athena; /** * @return Parameters for connecting to Aurora MySQL. * */ - private final @Nullable DataSourceParametersAurora aurora; + private @Nullable DataSourceParametersAurora aurora; /** * @return Parameters for connecting to Aurora Postgresql. * */ - private final @Nullable DataSourceParametersAuroraPostgresql auroraPostgresql; + private @Nullable DataSourceParametersAuroraPostgresql auroraPostgresql; /** * @return Parameters for connecting to AWS IOT Analytics. * */ - private final @Nullable DataSourceParametersAwsIotAnalytics awsIotAnalytics; + private @Nullable DataSourceParametersAwsIotAnalytics awsIotAnalytics; /** * @return Parameters for connecting to Jira. * */ - private final @Nullable DataSourceParametersJira jira; + private @Nullable DataSourceParametersJira jira; /** * @return Parameters for connecting to MariaDB. * */ - private final @Nullable DataSourceParametersMariaDb mariaDb; + private @Nullable DataSourceParametersMariaDb mariaDb; /** * @return Parameters for connecting to MySQL. * */ - private final @Nullable DataSourceParametersMysql mysql; + private @Nullable DataSourceParametersMysql mysql; /** * @return Parameters for connecting to Oracle. * */ - private final @Nullable DataSourceParametersOracle oracle; + private @Nullable DataSourceParametersOracle oracle; /** * @return Parameters for connecting to Postgresql. * */ - private final @Nullable DataSourceParametersPostgresql postgresql; + private @Nullable DataSourceParametersPostgresql postgresql; /** * @return Parameters for connecting to Presto. * */ - private final @Nullable DataSourceParametersPresto presto; + private @Nullable DataSourceParametersPresto presto; /** * @return Parameters for connecting to RDS. * */ - private final @Nullable DataSourceParametersRds rds; + private @Nullable DataSourceParametersRds rds; /** * @return Parameters for connecting to Redshift. * */ - private final @Nullable DataSourceParametersRedshift redshift; + private @Nullable DataSourceParametersRedshift redshift; /** * @return Parameters for connecting to S3. * */ - private final @Nullable DataSourceParametersS3 s3; + private @Nullable DataSourceParametersS3 s3; /** * @return Parameters for connecting to ServiceNow. * */ - private final @Nullable DataSourceParametersServiceNow serviceNow; + private @Nullable DataSourceParametersServiceNow serviceNow; /** * @return Parameters for connecting to Snowflake. * */ - private final @Nullable DataSourceParametersSnowflake snowflake; + private @Nullable DataSourceParametersSnowflake snowflake; /** * @return Parameters for connecting to Spark. * */ - private final @Nullable DataSourceParametersSpark spark; + private @Nullable DataSourceParametersSpark spark; /** * @return Parameters for connecting to SQL Server. * */ - private final @Nullable DataSourceParametersSqlServer sqlServer; + private @Nullable DataSourceParametersSqlServer sqlServer; /** * @return Parameters for connecting to Teradata. * */ - private final @Nullable DataSourceParametersTeradata teradata; + private @Nullable DataSourceParametersTeradata teradata; /** * @return Parameters for connecting to Twitter. * */ - private final @Nullable DataSourceParametersTwitter twitter; - - @CustomType.Constructor - private DataSourceParameters( - @CustomType.Parameter("amazonElasticsearch") @Nullable DataSourceParametersAmazonElasticsearch amazonElasticsearch, - @CustomType.Parameter("athena") @Nullable DataSourceParametersAthena athena, - @CustomType.Parameter("aurora") @Nullable DataSourceParametersAurora aurora, - @CustomType.Parameter("auroraPostgresql") @Nullable DataSourceParametersAuroraPostgresql auroraPostgresql, - @CustomType.Parameter("awsIotAnalytics") @Nullable DataSourceParametersAwsIotAnalytics awsIotAnalytics, - @CustomType.Parameter("jira") @Nullable DataSourceParametersJira jira, - @CustomType.Parameter("mariaDb") @Nullable DataSourceParametersMariaDb mariaDb, - @CustomType.Parameter("mysql") @Nullable DataSourceParametersMysql mysql, - @CustomType.Parameter("oracle") @Nullable DataSourceParametersOracle oracle, - @CustomType.Parameter("postgresql") @Nullable DataSourceParametersPostgresql postgresql, - @CustomType.Parameter("presto") @Nullable DataSourceParametersPresto presto, - @CustomType.Parameter("rds") @Nullable DataSourceParametersRds rds, - @CustomType.Parameter("redshift") @Nullable DataSourceParametersRedshift redshift, - @CustomType.Parameter("s3") @Nullable DataSourceParametersS3 s3, - @CustomType.Parameter("serviceNow") @Nullable DataSourceParametersServiceNow serviceNow, - @CustomType.Parameter("snowflake") @Nullable DataSourceParametersSnowflake snowflake, - @CustomType.Parameter("spark") @Nullable DataSourceParametersSpark spark, - @CustomType.Parameter("sqlServer") @Nullable DataSourceParametersSqlServer sqlServer, - @CustomType.Parameter("teradata") @Nullable DataSourceParametersTeradata teradata, - @CustomType.Parameter("twitter") @Nullable DataSourceParametersTwitter twitter) { - this.amazonElasticsearch = amazonElasticsearch; - this.athena = athena; - this.aurora = aurora; - this.auroraPostgresql = auroraPostgresql; - this.awsIotAnalytics = awsIotAnalytics; - this.jira = jira; - this.mariaDb = mariaDb; - this.mysql = mysql; - this.oracle = oracle; - this.postgresql = postgresql; - this.presto = presto; - this.rds = rds; - this.redshift = redshift; - this.s3 = s3; - this.serviceNow = serviceNow; - this.snowflake = snowflake; - this.spark = spark; - this.sqlServer = sqlServer; - this.teradata = teradata; - this.twitter = twitter; - } + private @Nullable DataSourceParametersTwitter twitter; + private DataSourceParameters() {} /** * @return Parameters for connecting to Amazon Elasticsearch. * @@ -323,7 +280,7 @@ public static Builder builder() { public static Builder builder(DataSourceParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DataSourceParametersAmazonElasticsearch amazonElasticsearch; private @Nullable DataSourceParametersAthena athena; @@ -345,11 +302,7 @@ public static final class Builder { private @Nullable DataSourceParametersSqlServer sqlServer; private @Nullable DataSourceParametersTeradata teradata; private @Nullable DataSourceParametersTwitter twitter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParameters defaults) { Objects.requireNonNull(defaults); this.amazonElasticsearch = defaults.amazonElasticsearch; @@ -374,87 +327,129 @@ public Builder(DataSourceParameters defaults) { this.twitter = defaults.twitter; } + @CustomType.Setter public Builder amazonElasticsearch(@Nullable DataSourceParametersAmazonElasticsearch amazonElasticsearch) { this.amazonElasticsearch = amazonElasticsearch; return this; } + @CustomType.Setter public Builder athena(@Nullable DataSourceParametersAthena athena) { this.athena = athena; return this; } + @CustomType.Setter public Builder aurora(@Nullable DataSourceParametersAurora aurora) { this.aurora = aurora; return this; } + @CustomType.Setter public Builder auroraPostgresql(@Nullable DataSourceParametersAuroraPostgresql auroraPostgresql) { this.auroraPostgresql = auroraPostgresql; return this; } + @CustomType.Setter public Builder awsIotAnalytics(@Nullable DataSourceParametersAwsIotAnalytics awsIotAnalytics) { this.awsIotAnalytics = awsIotAnalytics; return this; } + @CustomType.Setter public Builder jira(@Nullable DataSourceParametersJira jira) { this.jira = jira; return this; } + @CustomType.Setter public Builder mariaDb(@Nullable DataSourceParametersMariaDb mariaDb) { this.mariaDb = mariaDb; return this; } + @CustomType.Setter public Builder mysql(@Nullable DataSourceParametersMysql mysql) { this.mysql = mysql; return this; } + @CustomType.Setter public Builder oracle(@Nullable DataSourceParametersOracle oracle) { this.oracle = oracle; return this; } + @CustomType.Setter public Builder postgresql(@Nullable DataSourceParametersPostgresql postgresql) { this.postgresql = postgresql; return this; } + @CustomType.Setter public Builder presto(@Nullable DataSourceParametersPresto presto) { this.presto = presto; return this; } + @CustomType.Setter public Builder rds(@Nullable DataSourceParametersRds rds) { this.rds = rds; return this; } + @CustomType.Setter public Builder redshift(@Nullable DataSourceParametersRedshift redshift) { this.redshift = redshift; return this; } + @CustomType.Setter public Builder s3(@Nullable DataSourceParametersS3 s3) { this.s3 = s3; return this; } + @CustomType.Setter public Builder serviceNow(@Nullable DataSourceParametersServiceNow serviceNow) { this.serviceNow = serviceNow; return this; } + @CustomType.Setter public Builder snowflake(@Nullable DataSourceParametersSnowflake snowflake) { this.snowflake = snowflake; return this; } + @CustomType.Setter public Builder spark(@Nullable DataSourceParametersSpark spark) { this.spark = spark; return this; } + @CustomType.Setter public Builder sqlServer(@Nullable DataSourceParametersSqlServer sqlServer) { this.sqlServer = sqlServer; return this; } + @CustomType.Setter public Builder teradata(@Nullable DataSourceParametersTeradata teradata) { this.teradata = teradata; return this; } + @CustomType.Setter public Builder twitter(@Nullable DataSourceParametersTwitter twitter) { this.twitter = twitter; return this; - } public DataSourceParameters build() { - return new DataSourceParameters(amazonElasticsearch, athena, aurora, auroraPostgresql, awsIotAnalytics, jira, mariaDb, mysql, oracle, postgresql, presto, rds, redshift, s3, serviceNow, snowflake, spark, sqlServer, teradata, twitter); + } + public DataSourceParameters build() { + final var o = new DataSourceParameters(); + o.amazonElasticsearch = amazonElasticsearch; + o.athena = athena; + o.aurora = aurora; + o.auroraPostgresql = auroraPostgresql; + o.awsIotAnalytics = awsIotAnalytics; + o.jira = jira; + o.mariaDb = mariaDb; + o.mysql = mysql; + o.oracle = oracle; + o.postgresql = postgresql; + o.presto = presto; + o.rds = rds; + o.redshift = redshift; + o.s3 = s3; + o.serviceNow = serviceNow; + o.snowflake = snowflake; + o.spark = spark; + o.sqlServer = sqlServer; + o.teradata = teradata; + o.twitter = twitter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAmazonElasticsearch.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAmazonElasticsearch.java index 4cd85e8a43f..5c39c937be9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAmazonElasticsearch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAmazonElasticsearch.java @@ -13,13 +13,9 @@ public final class DataSourceParametersAmazonElasticsearch { * @return The OpenSearch domain. * */ - private final String domain; - - @CustomType.Constructor - private DataSourceParametersAmazonElasticsearch(@CustomType.Parameter("domain") String domain) { - this.domain = domain; - } + private String domain; + private DataSourceParametersAmazonElasticsearch() {} /** * @return The OpenSearch domain. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(DataSourceParametersAmazonElasticsearch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String domain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersAmazonElasticsearch defaults) { Objects.requireNonNull(defaults); this.domain = defaults.domain; } + @CustomType.Setter public Builder domain(String domain) { this.domain = Objects.requireNonNull(domain); return this; - } public DataSourceParametersAmazonElasticsearch build() { - return new DataSourceParametersAmazonElasticsearch(domain); + } + public DataSourceParametersAmazonElasticsearch build() { + final var o = new DataSourceParametersAmazonElasticsearch(); + o.domain = domain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAthena.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAthena.java index cc607547c9f..6be4ce460b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAthena.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAthena.java @@ -15,13 +15,9 @@ public final class DataSourceParametersAthena { * @return The work-group to which to connect. * */ - private final @Nullable String workGroup; - - @CustomType.Constructor - private DataSourceParametersAthena(@CustomType.Parameter("workGroup") @Nullable String workGroup) { - this.workGroup = workGroup; - } + private @Nullable String workGroup; + private DataSourceParametersAthena() {} /** * @return The work-group to which to connect. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DataSourceParametersAthena defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String workGroup; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersAthena defaults) { Objects.requireNonNull(defaults); this.workGroup = defaults.workGroup; } + @CustomType.Setter public Builder workGroup(@Nullable String workGroup) { this.workGroup = workGroup; return this; - } public DataSourceParametersAthena build() { - return new DataSourceParametersAthena(workGroup); + } + public DataSourceParametersAthena build() { + final var o = new DataSourceParametersAthena(); + o.workGroup = workGroup; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAurora.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAurora.java index 066986da7a9..221c6d5244c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAurora.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAurora.java @@ -14,28 +14,19 @@ public final class DataSourceParametersAurora { * @return The database to which to connect. * */ - private final String database; + private String database; /** * @return The host to which to connect. * */ - private final String host; + private String host; /** * @return The port to which to connect. * */ - private final Integer port; - - @CustomType.Constructor - private DataSourceParametersAurora( - @CustomType.Parameter("database") String database, - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") Integer port) { - this.database = database; - this.host = host; - this.port = port; - } + private Integer port; + private DataSourceParametersAurora() {} /** * @return The database to which to connect. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(DataSourceParametersAurora defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String database; private String host; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersAurora defaults) { Objects.requireNonNull(defaults); this.database = defaults.database; @@ -82,19 +69,27 @@ public Builder(DataSourceParametersAurora defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder database(String database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public DataSourceParametersAurora build() { - return new DataSourceParametersAurora(database, host, port); + } + public DataSourceParametersAurora build() { + final var o = new DataSourceParametersAurora(); + o.database = database; + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAuroraPostgresql.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAuroraPostgresql.java index 5bfe86cf4ca..8b4bc9a6e94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAuroraPostgresql.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAuroraPostgresql.java @@ -14,28 +14,19 @@ public final class DataSourceParametersAuroraPostgresql { * @return The database to which to connect. * */ - private final String database; + private String database; /** * @return The host to which to connect. * */ - private final String host; + private String host; /** * @return The port to which to connect. * */ - private final Integer port; - - @CustomType.Constructor - private DataSourceParametersAuroraPostgresql( - @CustomType.Parameter("database") String database, - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") Integer port) { - this.database = database; - this.host = host; - this.port = port; - } + private Integer port; + private DataSourceParametersAuroraPostgresql() {} /** * @return The database to which to connect. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(DataSourceParametersAuroraPostgresql defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String database; private String host; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersAuroraPostgresql defaults) { Objects.requireNonNull(defaults); this.database = defaults.database; @@ -82,19 +69,27 @@ public Builder(DataSourceParametersAuroraPostgresql defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder database(String database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public DataSourceParametersAuroraPostgresql build() { - return new DataSourceParametersAuroraPostgresql(database, host, port); + } + public DataSourceParametersAuroraPostgresql build() { + final var o = new DataSourceParametersAuroraPostgresql(); + o.database = database; + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAwsIotAnalytics.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAwsIotAnalytics.java index 71e3c9ba17b..6b1166cf071 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAwsIotAnalytics.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersAwsIotAnalytics.java @@ -13,13 +13,9 @@ public final class DataSourceParametersAwsIotAnalytics { * @return The name of the data set to which to connect. * */ - private final String dataSetName; - - @CustomType.Constructor - private DataSourceParametersAwsIotAnalytics(@CustomType.Parameter("dataSetName") String dataSetName) { - this.dataSetName = dataSetName; - } + private String dataSetName; + private DataSourceParametersAwsIotAnalytics() {} /** * @return The name of the data set to which to connect. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(DataSourceParametersAwsIotAnalytics defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dataSetName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersAwsIotAnalytics defaults) { Objects.requireNonNull(defaults); this.dataSetName = defaults.dataSetName; } + @CustomType.Setter public Builder dataSetName(String dataSetName) { this.dataSetName = Objects.requireNonNull(dataSetName); return this; - } public DataSourceParametersAwsIotAnalytics build() { - return new DataSourceParametersAwsIotAnalytics(dataSetName); + } + public DataSourceParametersAwsIotAnalytics build() { + final var o = new DataSourceParametersAwsIotAnalytics(); + o.dataSetName = dataSetName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersJira.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersJira.java index 7e7c1c1bf2a..75d1a8d309e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersJira.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersJira.java @@ -13,13 +13,9 @@ public final class DataSourceParametersJira { * @return The base URL of the Jira instance's site to which to connect. * */ - private final String siteBaseUrl; - - @CustomType.Constructor - private DataSourceParametersJira(@CustomType.Parameter("siteBaseUrl") String siteBaseUrl) { - this.siteBaseUrl = siteBaseUrl; - } + private String siteBaseUrl; + private DataSourceParametersJira() {} /** * @return The base URL of the Jira instance's site to which to connect. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(DataSourceParametersJira defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String siteBaseUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersJira defaults) { Objects.requireNonNull(defaults); this.siteBaseUrl = defaults.siteBaseUrl; } + @CustomType.Setter public Builder siteBaseUrl(String siteBaseUrl) { this.siteBaseUrl = Objects.requireNonNull(siteBaseUrl); return this; - } public DataSourceParametersJira build() { - return new DataSourceParametersJira(siteBaseUrl); + } + public DataSourceParametersJira build() { + final var o = new DataSourceParametersJira(); + o.siteBaseUrl = siteBaseUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersMariaDb.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersMariaDb.java index 000bea3af13..b2d3214929a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersMariaDb.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersMariaDb.java @@ -14,28 +14,19 @@ public final class DataSourceParametersMariaDb { * @return The database to which to connect. * */ - private final String database; + private String database; /** * @return The host to which to connect. * */ - private final String host; + private String host; /** * @return The port to which to connect. * */ - private final Integer port; - - @CustomType.Constructor - private DataSourceParametersMariaDb( - @CustomType.Parameter("database") String database, - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") Integer port) { - this.database = database; - this.host = host; - this.port = port; - } + private Integer port; + private DataSourceParametersMariaDb() {} /** * @return The database to which to connect. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(DataSourceParametersMariaDb defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String database; private String host; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersMariaDb defaults) { Objects.requireNonNull(defaults); this.database = defaults.database; @@ -82,19 +69,27 @@ public Builder(DataSourceParametersMariaDb defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder database(String database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public DataSourceParametersMariaDb build() { - return new DataSourceParametersMariaDb(database, host, port); + } + public DataSourceParametersMariaDb build() { + final var o = new DataSourceParametersMariaDb(); + o.database = database; + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersMysql.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersMysql.java index 49dfb7ac266..6a5f0b3cd52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersMysql.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersMysql.java @@ -14,28 +14,19 @@ public final class DataSourceParametersMysql { * @return The database to which to connect. * */ - private final String database; + private String database; /** * @return The host to which to connect. * */ - private final String host; + private String host; /** * @return The port to which to connect. * */ - private final Integer port; - - @CustomType.Constructor - private DataSourceParametersMysql( - @CustomType.Parameter("database") String database, - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") Integer port) { - this.database = database; - this.host = host; - this.port = port; - } + private Integer port; + private DataSourceParametersMysql() {} /** * @return The database to which to connect. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(DataSourceParametersMysql defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String database; private String host; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersMysql defaults) { Objects.requireNonNull(defaults); this.database = defaults.database; @@ -82,19 +69,27 @@ public Builder(DataSourceParametersMysql defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder database(String database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public DataSourceParametersMysql build() { - return new DataSourceParametersMysql(database, host, port); + } + public DataSourceParametersMysql build() { + final var o = new DataSourceParametersMysql(); + o.database = database; + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersOracle.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersOracle.java index 74eb4892383..5d5d5e52c89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersOracle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersOracle.java @@ -14,28 +14,19 @@ public final class DataSourceParametersOracle { * @return The database to which to connect. * */ - private final String database; + private String database; /** * @return The host to which to connect. * */ - private final String host; + private String host; /** * @return The port to which to connect. * */ - private final Integer port; - - @CustomType.Constructor - private DataSourceParametersOracle( - @CustomType.Parameter("database") String database, - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") Integer port) { - this.database = database; - this.host = host; - this.port = port; - } + private Integer port; + private DataSourceParametersOracle() {} /** * @return The database to which to connect. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(DataSourceParametersOracle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String database; private String host; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersOracle defaults) { Objects.requireNonNull(defaults); this.database = defaults.database; @@ -82,19 +69,27 @@ public Builder(DataSourceParametersOracle defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder database(String database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public DataSourceParametersOracle build() { - return new DataSourceParametersOracle(database, host, port); + } + public DataSourceParametersOracle build() { + final var o = new DataSourceParametersOracle(); + o.database = database; + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersPostgresql.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersPostgresql.java index a20b3ae6843..1d66046dff6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersPostgresql.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersPostgresql.java @@ -14,28 +14,19 @@ public final class DataSourceParametersPostgresql { * @return The database to which to connect. * */ - private final String database; + private String database; /** * @return The host to which to connect. * */ - private final String host; + private String host; /** * @return The port to which to connect. * */ - private final Integer port; - - @CustomType.Constructor - private DataSourceParametersPostgresql( - @CustomType.Parameter("database") String database, - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") Integer port) { - this.database = database; - this.host = host; - this.port = port; - } + private Integer port; + private DataSourceParametersPostgresql() {} /** * @return The database to which to connect. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(DataSourceParametersPostgresql defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String database; private String host; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersPostgresql defaults) { Objects.requireNonNull(defaults); this.database = defaults.database; @@ -82,19 +69,27 @@ public Builder(DataSourceParametersPostgresql defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder database(String database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public DataSourceParametersPostgresql build() { - return new DataSourceParametersPostgresql(database, host, port); + } + public DataSourceParametersPostgresql build() { + final var o = new DataSourceParametersPostgresql(); + o.database = database; + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersPresto.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersPresto.java index d0935914c54..7b4b38a26a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersPresto.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersPresto.java @@ -14,28 +14,19 @@ public final class DataSourceParametersPresto { * @return The catalog to which to connect. * */ - private final String catalog; + private String catalog; /** * @return The host to which to connect. * */ - private final String host; + private String host; /** * @return The port to which to connect. * */ - private final Integer port; - - @CustomType.Constructor - private DataSourceParametersPresto( - @CustomType.Parameter("catalog") String catalog, - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") Integer port) { - this.catalog = catalog; - this.host = host; - this.port = port; - } + private Integer port; + private DataSourceParametersPresto() {} /** * @return The catalog to which to connect. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(DataSourceParametersPresto defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String catalog; private String host; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersPresto defaults) { Objects.requireNonNull(defaults); this.catalog = defaults.catalog; @@ -82,19 +69,27 @@ public Builder(DataSourceParametersPresto defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder catalog(String catalog) { this.catalog = Objects.requireNonNull(catalog); return this; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public DataSourceParametersPresto build() { - return new DataSourceParametersPresto(catalog, host, port); + } + public DataSourceParametersPresto build() { + final var o = new DataSourceParametersPresto(); + o.catalog = catalog; + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersRds.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersRds.java index 2ec825514e6..45566d7f043 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersRds.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersRds.java @@ -13,21 +13,14 @@ public final class DataSourceParametersRds { * @return The database to which to connect. * */ - private final String database; + private String database; /** * @return The instance ID to which to connect. * */ - private final String instanceId; - - @CustomType.Constructor - private DataSourceParametersRds( - @CustomType.Parameter("database") String database, - @CustomType.Parameter("instanceId") String instanceId) { - this.database = database; - this.instanceId = instanceId; - } + private String instanceId; + private DataSourceParametersRds() {} /** * @return The database to which to connect. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(DataSourceParametersRds defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String database; private String instanceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersRds defaults) { Objects.requireNonNull(defaults); this.database = defaults.database; this.instanceId = defaults.instanceId; } + @CustomType.Setter public Builder database(String database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder instanceId(String instanceId) { this.instanceId = Objects.requireNonNull(instanceId); return this; - } public DataSourceParametersRds build() { - return new DataSourceParametersRds(database, instanceId); + } + public DataSourceParametersRds build() { + final var o = new DataSourceParametersRds(); + o.database = database; + o.instanceId = instanceId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersRedshift.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersRedshift.java index fa74bc35cea..8818c3cc21a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersRedshift.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersRedshift.java @@ -16,35 +16,24 @@ public final class DataSourceParametersRedshift { * @return The ID of the cluster to which to connect. * */ - private final @Nullable String clusterId; + private @Nullable String clusterId; /** * @return The database to which to connect. * */ - private final String database; + private String database; /** * @return The host to which to connect. * */ - private final @Nullable String host; + private @Nullable String host; /** * @return The port to which to connect. * */ - private final @Nullable Integer port; - - @CustomType.Constructor - private DataSourceParametersRedshift( - @CustomType.Parameter("clusterId") @Nullable String clusterId, - @CustomType.Parameter("database") String database, - @CustomType.Parameter("host") @Nullable String host, - @CustomType.Parameter("port") @Nullable Integer port) { - this.clusterId = clusterId; - this.database = database; - this.host = host; - this.port = port; - } + private @Nullable Integer port; + private DataSourceParametersRedshift() {} /** * @return The ID of the cluster to which to connect. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(DataSourceParametersRedshift defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String clusterId; private String database; private @Nullable String host; private @Nullable Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersRedshift defaults) { Objects.requireNonNull(defaults); this.clusterId = defaults.clusterId; @@ -100,23 +85,33 @@ public Builder(DataSourceParametersRedshift defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder clusterId(@Nullable String clusterId) { this.clusterId = clusterId; return this; } + @CustomType.Setter public Builder database(String database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder host(@Nullable String host) { this.host = host; return this; } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; - } public DataSourceParametersRedshift build() { - return new DataSourceParametersRedshift(clusterId, database, host, port); + } + public DataSourceParametersRedshift build() { + final var o = new DataSourceParametersRedshift(); + o.clusterId = clusterId; + o.database = database; + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersS3.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersS3.java index 6ad280c6873..fb9ebecee2c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersS3.java @@ -13,13 +13,9 @@ public final class DataSourceParametersS3 { * @return An object containing the S3 location of the S3 manifest file. * */ - private final DataSourceParametersS3ManifestFileLocation manifestFileLocation; - - @CustomType.Constructor - private DataSourceParametersS3(@CustomType.Parameter("manifestFileLocation") DataSourceParametersS3ManifestFileLocation manifestFileLocation) { - this.manifestFileLocation = manifestFileLocation; - } + private DataSourceParametersS3ManifestFileLocation manifestFileLocation; + private DataSourceParametersS3() {} /** * @return An object containing the S3 location of the S3 manifest file. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(DataSourceParametersS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private DataSourceParametersS3ManifestFileLocation manifestFileLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersS3 defaults) { Objects.requireNonNull(defaults); this.manifestFileLocation = defaults.manifestFileLocation; } + @CustomType.Setter public Builder manifestFileLocation(DataSourceParametersS3ManifestFileLocation manifestFileLocation) { this.manifestFileLocation = Objects.requireNonNull(manifestFileLocation); return this; - } public DataSourceParametersS3 build() { - return new DataSourceParametersS3(manifestFileLocation); + } + public DataSourceParametersS3 build() { + final var o = new DataSourceParametersS3(); + o.manifestFileLocation = manifestFileLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersS3ManifestFileLocation.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersS3ManifestFileLocation.java index 697b10b6921..e60d19b686d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersS3ManifestFileLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersS3ManifestFileLocation.java @@ -13,21 +13,14 @@ public final class DataSourceParametersS3ManifestFileLocation { * @return The name of the bucket that contains the manifest file. * */ - private final String bucket; + private String bucket; /** * @return The key of the manifest file within the bucket. * */ - private final String key; - - @CustomType.Constructor - private DataSourceParametersS3ManifestFileLocation( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("key") String key) { - this.bucket = bucket; - this.key = key; - } + private String key; + private DataSourceParametersS3ManifestFileLocation() {} /** * @return The name of the bucket that contains the manifest file. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(DataSourceParametersS3ManifestFileLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersS3ManifestFileLocation defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.key = defaults.key; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; - } public DataSourceParametersS3ManifestFileLocation build() { - return new DataSourceParametersS3ManifestFileLocation(bucket, key); + } + public DataSourceParametersS3ManifestFileLocation build() { + final var o = new DataSourceParametersS3ManifestFileLocation(); + o.bucket = bucket; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersServiceNow.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersServiceNow.java index 61e78f9c88b..34948277d7b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersServiceNow.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersServiceNow.java @@ -13,13 +13,9 @@ public final class DataSourceParametersServiceNow { * @return The base URL of the Jira instance's site to which to connect. * */ - private final String siteBaseUrl; - - @CustomType.Constructor - private DataSourceParametersServiceNow(@CustomType.Parameter("siteBaseUrl") String siteBaseUrl) { - this.siteBaseUrl = siteBaseUrl; - } + private String siteBaseUrl; + private DataSourceParametersServiceNow() {} /** * @return The base URL of the Jira instance's site to which to connect. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(DataSourceParametersServiceNow defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String siteBaseUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersServiceNow defaults) { Objects.requireNonNull(defaults); this.siteBaseUrl = defaults.siteBaseUrl; } + @CustomType.Setter public Builder siteBaseUrl(String siteBaseUrl) { this.siteBaseUrl = Objects.requireNonNull(siteBaseUrl); return this; - } public DataSourceParametersServiceNow build() { - return new DataSourceParametersServiceNow(siteBaseUrl); + } + public DataSourceParametersServiceNow build() { + final var o = new DataSourceParametersServiceNow(); + o.siteBaseUrl = siteBaseUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersSnowflake.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersSnowflake.java index dd65e0e1bb1..9adee979807 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersSnowflake.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersSnowflake.java @@ -13,28 +13,19 @@ public final class DataSourceParametersSnowflake { * @return The database to which to connect. * */ - private final String database; + private String database; /** * @return The host to which to connect. * */ - private final String host; + private String host; /** * @return The warehouse to which to connect. * */ - private final String warehouse; - - @CustomType.Constructor - private DataSourceParametersSnowflake( - @CustomType.Parameter("database") String database, - @CustomType.Parameter("host") String host, - @CustomType.Parameter("warehouse") String warehouse) { - this.database = database; - this.host = host; - this.warehouse = warehouse; - } + private String warehouse; + private DataSourceParametersSnowflake() {} /** * @return The database to which to connect. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(DataSourceParametersSnowflake defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String database; private String host; private String warehouse; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersSnowflake defaults) { Objects.requireNonNull(defaults); this.database = defaults.database; @@ -81,19 +68,27 @@ public Builder(DataSourceParametersSnowflake defaults) { this.warehouse = defaults.warehouse; } + @CustomType.Setter public Builder database(String database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder warehouse(String warehouse) { this.warehouse = Objects.requireNonNull(warehouse); return this; - } public DataSourceParametersSnowflake build() { - return new DataSourceParametersSnowflake(database, host, warehouse); + } + public DataSourceParametersSnowflake build() { + final var o = new DataSourceParametersSnowflake(); + o.database = database; + o.host = host; + o.warehouse = warehouse; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersSpark.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersSpark.java index 5c18e93f513..456b73071cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersSpark.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersSpark.java @@ -14,21 +14,14 @@ public final class DataSourceParametersSpark { * @return The host to which to connect. * */ - private final String host; + private String host; /** * @return The warehouse to which to connect. * */ - private final Integer port; - - @CustomType.Constructor - private DataSourceParametersSpark( - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") Integer port) { - this.host = host; - this.port = port; - } + private Integer port; + private DataSourceParametersSpark() {} /** * @return The host to which to connect. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(DataSourceParametersSpark defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String host; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersSpark defaults) { Objects.requireNonNull(defaults); this.host = defaults.host; this.port = defaults.port; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public DataSourceParametersSpark build() { - return new DataSourceParametersSpark(host, port); + } + public DataSourceParametersSpark build() { + final var o = new DataSourceParametersSpark(); + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersSqlServer.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersSqlServer.java index 5f586f3c922..2c98ee0b51c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersSqlServer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersSqlServer.java @@ -14,28 +14,19 @@ public final class DataSourceParametersSqlServer { * @return The database to which to connect. * */ - private final String database; + private String database; /** * @return The host to which to connect. * */ - private final String host; + private String host; /** * @return The warehouse to which to connect. * */ - private final Integer port; - - @CustomType.Constructor - private DataSourceParametersSqlServer( - @CustomType.Parameter("database") String database, - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") Integer port) { - this.database = database; - this.host = host; - this.port = port; - } + private Integer port; + private DataSourceParametersSqlServer() {} /** * @return The database to which to connect. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(DataSourceParametersSqlServer defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String database; private String host; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersSqlServer defaults) { Objects.requireNonNull(defaults); this.database = defaults.database; @@ -82,19 +69,27 @@ public Builder(DataSourceParametersSqlServer defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder database(String database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public DataSourceParametersSqlServer build() { - return new DataSourceParametersSqlServer(database, host, port); + } + public DataSourceParametersSqlServer build() { + final var o = new DataSourceParametersSqlServer(); + o.database = database; + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersTeradata.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersTeradata.java index 721c0e2f6cf..497ca8ee14a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersTeradata.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersTeradata.java @@ -14,28 +14,19 @@ public final class DataSourceParametersTeradata { * @return The database to which to connect. * */ - private final String database; + private String database; /** * @return The host to which to connect. * */ - private final String host; + private String host; /** * @return The warehouse to which to connect. * */ - private final Integer port; - - @CustomType.Constructor - private DataSourceParametersTeradata( - @CustomType.Parameter("database") String database, - @CustomType.Parameter("host") String host, - @CustomType.Parameter("port") Integer port) { - this.database = database; - this.host = host; - this.port = port; - } + private Integer port; + private DataSourceParametersTeradata() {} /** * @return The database to which to connect. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(DataSourceParametersTeradata defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String database; private String host; private Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersTeradata defaults) { Objects.requireNonNull(defaults); this.database = defaults.database; @@ -82,19 +69,27 @@ public Builder(DataSourceParametersTeradata defaults) { this.port = defaults.port; } + @CustomType.Setter public Builder database(String database) { this.database = Objects.requireNonNull(database); return this; } + @CustomType.Setter public Builder host(String host) { this.host = Objects.requireNonNull(host); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; - } public DataSourceParametersTeradata build() { - return new DataSourceParametersTeradata(database, host, port); + } + public DataSourceParametersTeradata build() { + final var o = new DataSourceParametersTeradata(); + o.database = database; + o.host = host; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersTwitter.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersTwitter.java index 35c070db173..cbd6f64c734 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersTwitter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceParametersTwitter.java @@ -14,21 +14,14 @@ public final class DataSourceParametersTwitter { * @return The maximum number of rows to query. * */ - private final Integer maxRows; + private Integer maxRows; /** * @return The Twitter query to retrieve the data. * */ - private final String query; - - @CustomType.Constructor - private DataSourceParametersTwitter( - @CustomType.Parameter("maxRows") Integer maxRows, - @CustomType.Parameter("query") String query) { - this.maxRows = maxRows; - this.query = query; - } + private String query; + private DataSourceParametersTwitter() {} /** * @return The maximum number of rows to query. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(DataSourceParametersTwitter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxRows; private String query; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceParametersTwitter defaults) { Objects.requireNonNull(defaults); this.maxRows = defaults.maxRows; this.query = defaults.query; } + @CustomType.Setter public Builder maxRows(Integer maxRows) { this.maxRows = Objects.requireNonNull(maxRows); return this; } + @CustomType.Setter public Builder query(String query) { this.query = Objects.requireNonNull(query); return this; - } public DataSourceParametersTwitter build() { - return new DataSourceParametersTwitter(maxRows, query); + } + public DataSourceParametersTwitter build() { + final var o = new DataSourceParametersTwitter(); + o.maxRows = maxRows; + o.query = query; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourcePermission.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourcePermission.java index 2f1c4038af4..2f10b7885fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourcePermission.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourcePermission.java @@ -14,21 +14,14 @@ public final class DataSourcePermission { * @return Set of IAM actions to grant or revoke permissions on. Max of 16 items. * */ - private final List actions; + private List actions; /** * @return The Amazon Resource Name (ARN) of the principal. * */ - private final String principal; - - @CustomType.Constructor - private DataSourcePermission( - @CustomType.Parameter("actions") List actions, - @CustomType.Parameter("principal") String principal) { - this.actions = actions; - this.principal = principal; - } + private String principal; + private DataSourcePermission() {} /** * @return Set of IAM actions to grant or revoke permissions on. Max of 16 items. * @@ -51,21 +44,18 @@ public static Builder builder() { public static Builder builder(DataSourcePermission defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List actions; private String principal; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourcePermission defaults) { Objects.requireNonNull(defaults); this.actions = defaults.actions; this.principal = defaults.principal; } + @CustomType.Setter public Builder actions(List actions) { this.actions = Objects.requireNonNull(actions); return this; @@ -73,11 +63,16 @@ public Builder actions(List actions) { public Builder actions(String... actions) { return actions(List.of(actions)); } + @CustomType.Setter public Builder principal(String principal) { this.principal = Objects.requireNonNull(principal); return this; - } public DataSourcePermission build() { - return new DataSourcePermission(actions, principal); + } + public DataSourcePermission build() { + final var o = new DataSourcePermission(); + o.actions = actions; + o.principal = principal; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceSslProperties.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceSslProperties.java index 1aaad954799..59090858a70 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceSslProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceSslProperties.java @@ -13,13 +13,9 @@ public final class DataSourceSslProperties { * @return A Boolean option to control whether SSL should be disabled. * */ - private final Boolean disableSsl; - - @CustomType.Constructor - private DataSourceSslProperties(@CustomType.Parameter("disableSsl") Boolean disableSsl) { - this.disableSsl = disableSsl; - } + private Boolean disableSsl; + private DataSourceSslProperties() {} /** * @return A Boolean option to control whether SSL should be disabled. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(DataSourceSslProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean disableSsl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceSslProperties defaults) { Objects.requireNonNull(defaults); this.disableSsl = defaults.disableSsl; } + @CustomType.Setter public Builder disableSsl(Boolean disableSsl) { this.disableSsl = Objects.requireNonNull(disableSsl); return this; - } public DataSourceSslProperties build() { - return new DataSourceSslProperties(disableSsl); + } + public DataSourceSslProperties build() { + final var o = new DataSourceSslProperties(); + o.disableSsl = disableSsl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceVpcConnectionProperties.java b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceVpcConnectionProperties.java index a58f1db2f95..4c3c9aed146 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceVpcConnectionProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/quicksight/outputs/DataSourceVpcConnectionProperties.java @@ -13,13 +13,9 @@ public final class DataSourceVpcConnectionProperties { * @return The Amazon Resource Name (ARN) for the VPC connection. * */ - private final String vpcConnectionArn; - - @CustomType.Constructor - private DataSourceVpcConnectionProperties(@CustomType.Parameter("vpcConnectionArn") String vpcConnectionArn) { - this.vpcConnectionArn = vpcConnectionArn; - } + private String vpcConnectionArn; + private DataSourceVpcConnectionProperties() {} /** * @return The Amazon Resource Name (ARN) for the VPC connection. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(DataSourceVpcConnectionProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String vpcConnectionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DataSourceVpcConnectionProperties defaults) { Objects.requireNonNull(defaults); this.vpcConnectionArn = defaults.vpcConnectionArn; } + @CustomType.Setter public Builder vpcConnectionArn(String vpcConnectionArn) { this.vpcConnectionArn = Objects.requireNonNull(vpcConnectionArn); return this; - } public DataSourceVpcConnectionProperties build() { - return new DataSourceVpcConnectionProperties(vpcConnectionArn); + } + public DataSourceVpcConnectionProperties build() { + final var o = new DataSourceVpcConnectionProperties(); + o.vpcConnectionArn = vpcConnectionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ram/outputs/GetResourceShareFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ram/outputs/GetResourceShareFilter.java index f0345d177f6..d6a44c00d79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ram/outputs/GetResourceShareFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ram/outputs/GetResourceShareFilter.java @@ -14,21 +14,14 @@ public final class GetResourceShareFilter { * @return The name of the tag key to filter on. * */ - private final String name; + private String name; /** * @return The value of the tag key. * */ - private final List values; - - @CustomType.Constructor - private GetResourceShareFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetResourceShareFilter() {} /** * @return The name of the tag key to filter on. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetResourceShareFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResourceShareFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetResourceShareFilter build() { - return new GetResourceShareFilter(name, values); + } + public GetResourceShareFilter build() { + final var o = new GetResourceShareFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ram/outputs/GetResourceShareResult.java b/sdk/java/src/main/java/com/pulumi/aws/ram/outputs/GetResourceShareResult.java index 9286d7a99d6..4f7916979ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ram/outputs/GetResourceShareResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ram/outputs/GetResourceShareResult.java @@ -18,54 +18,33 @@ public final class GetResourceShareResult { * @return The Amazon Resource Name (ARN) of the resource share. * */ - private final String arn; - private final @Nullable List filters; + private String arn; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return The ID of the AWS account that owns the resource share. * */ - private final String owningAccountId; - private final String resourceOwner; - private final @Nullable String resourceShareStatus; + private String owningAccountId; + private String resourceOwner; + private @Nullable String resourceShareStatus; /** * @return The Status of the RAM share. * */ - private final String status; + private String status; /** * @return The Tags attached to the RAM share * */ - private final Map tags; - - @CustomType.Constructor - private GetResourceShareResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("owningAccountId") String owningAccountId, - @CustomType.Parameter("resourceOwner") String resourceOwner, - @CustomType.Parameter("resourceShareStatus") @Nullable String resourceShareStatus, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.filters = filters; - this.id = id; - this.name = name; - this.owningAccountId = owningAccountId; - this.resourceOwner = resourceOwner; - this.resourceShareStatus = resourceShareStatus; - this.status = status; - this.tags = tags; - } + private Map tags; + private GetResourceShareResult() {} /** * @return The Amazon Resource Name (ARN) of the resource share. * @@ -121,7 +100,7 @@ public static Builder builder() { public static Builder builder(GetResourceShareResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable List filters; @@ -132,11 +111,7 @@ public static final class Builder { private @Nullable String resourceShareStatus; private String status; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResourceShareResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -150,10 +125,12 @@ public Builder(GetResourceShareResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -161,35 +138,53 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetResourceShareFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder owningAccountId(String owningAccountId) { this.owningAccountId = Objects.requireNonNull(owningAccountId); return this; } + @CustomType.Setter public Builder resourceOwner(String resourceOwner) { this.resourceOwner = Objects.requireNonNull(resourceOwner); return this; } + @CustomType.Setter public Builder resourceShareStatus(@Nullable String resourceShareStatus) { this.resourceShareStatus = resourceShareStatus; return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetResourceShareResult build() { - return new GetResourceShareResult(arn, filters, id, name, owningAccountId, resourceOwner, resourceShareStatus, status, tags); + } + public GetResourceShareResult build() { + final var o = new GetResourceShareResult(); + o.arn = arn; + o.filters = filters; + o.id = id; + o.name = name; + o.owningAccountId = owningAccountId; + o.resourceOwner = resourceOwner; + o.resourceShareStatus = resourceShareStatus; + o.status = status; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterParameterGroupParameter.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterParameterGroupParameter.java index 57ea862592a..750d4a4f792 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterParameterGroupParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterParameterGroupParameter.java @@ -17,28 +17,19 @@ public final class ClusterParameterGroupParameter { * specify "pending-reboot" here. * */ - private final @Nullable String applyMethod; + private @Nullable String applyMethod; /** * @return The name of the DB parameter. * */ - private final String name; + private String name; /** * @return The value of the DB parameter. * */ - private final String value; - - @CustomType.Constructor - private ClusterParameterGroupParameter( - @CustomType.Parameter("applyMethod") @Nullable String applyMethod, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.applyMethod = applyMethod; - this.name = name; - this.value = value; - } + private String value; + private ClusterParameterGroupParameter() {} /** * @return "immediate" (default), or "pending-reboot". Some * engines can't apply some parameters without a reboot, and you will need to @@ -70,16 +61,12 @@ public static Builder builder() { public static Builder builder(ClusterParameterGroupParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String applyMethod; private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterParameterGroupParameter defaults) { Objects.requireNonNull(defaults); this.applyMethod = defaults.applyMethod; @@ -87,19 +74,27 @@ public Builder(ClusterParameterGroupParameter defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder applyMethod(@Nullable String applyMethod) { this.applyMethod = applyMethod; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ClusterParameterGroupParameter build() { - return new ClusterParameterGroupParameter(applyMethod, name, value); + } + public ClusterParameterGroupParameter build() { + final var o = new ClusterParameterGroupParameter(); + o.applyMethod = applyMethod; + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterRestoreToPointInTime.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterRestoreToPointInTime.java index 51611a0785f..b56552fe68c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterRestoreToPointInTime.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterRestoreToPointInTime.java @@ -16,36 +16,25 @@ public final class ClusterRestoreToPointInTime { * @return Date and time in UTC format to restore the database cluster to. Conflicts with `use_latest_restorable_time`. * */ - private final @Nullable String restoreToTime; + private @Nullable String restoreToTime; /** * @return Type of restore to be performed. * Valid options are `full-copy` (default) and `copy-on-write`. * */ - private final @Nullable String restoreType; + private @Nullable String restoreType; /** * @return The identifier of the source database cluster from which to restore. * */ - private final String sourceClusterIdentifier; + private String sourceClusterIdentifier; /** * @return Set to true to restore the database cluster to the latest restorable backup time. Defaults to false. Conflicts with `restore_to_time`. * */ - private final @Nullable Boolean useLatestRestorableTime; - - @CustomType.Constructor - private ClusterRestoreToPointInTime( - @CustomType.Parameter("restoreToTime") @Nullable String restoreToTime, - @CustomType.Parameter("restoreType") @Nullable String restoreType, - @CustomType.Parameter("sourceClusterIdentifier") String sourceClusterIdentifier, - @CustomType.Parameter("useLatestRestorableTime") @Nullable Boolean useLatestRestorableTime) { - this.restoreToTime = restoreToTime; - this.restoreType = restoreType; - this.sourceClusterIdentifier = sourceClusterIdentifier; - this.useLatestRestorableTime = useLatestRestorableTime; - } + private @Nullable Boolean useLatestRestorableTime; + private ClusterRestoreToPointInTime() {} /** * @return Date and time in UTC format to restore the database cluster to. Conflicts with `use_latest_restorable_time`. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(ClusterRestoreToPointInTime defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String restoreToTime; private @Nullable String restoreType; private String sourceClusterIdentifier; private @Nullable Boolean useLatestRestorableTime; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterRestoreToPointInTime defaults) { Objects.requireNonNull(defaults); this.restoreToTime = defaults.restoreToTime; @@ -102,23 +87,33 @@ public Builder(ClusterRestoreToPointInTime defaults) { this.useLatestRestorableTime = defaults.useLatestRestorableTime; } + @CustomType.Setter public Builder restoreToTime(@Nullable String restoreToTime) { this.restoreToTime = restoreToTime; return this; } + @CustomType.Setter public Builder restoreType(@Nullable String restoreType) { this.restoreType = restoreType; return this; } + @CustomType.Setter public Builder sourceClusterIdentifier(String sourceClusterIdentifier) { this.sourceClusterIdentifier = Objects.requireNonNull(sourceClusterIdentifier); return this; } + @CustomType.Setter public Builder useLatestRestorableTime(@Nullable Boolean useLatestRestorableTime) { this.useLatestRestorableTime = useLatestRestorableTime; return this; - } public ClusterRestoreToPointInTime build() { - return new ClusterRestoreToPointInTime(restoreToTime, restoreType, sourceClusterIdentifier, useLatestRestorableTime); + } + public ClusterRestoreToPointInTime build() { + final var o = new ClusterRestoreToPointInTime(); + o.restoreToTime = restoreToTime; + o.restoreType = restoreType; + o.sourceClusterIdentifier = sourceClusterIdentifier; + o.useLatestRestorableTime = useLatestRestorableTime; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterS3Import.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterS3Import.java index 3e3911345e6..6e800a36d86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterS3Import.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterS3Import.java @@ -15,42 +15,29 @@ public final class ClusterS3Import { * @return The bucket name where your backup is stored * */ - private final String bucketName; + private String bucketName; /** * @return Can be blank, but is the path to your backup * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Role applied to load the data. * */ - private final String ingestionRole; + private String ingestionRole; /** * @return Source engine for the backup * */ - private final String sourceEngine; + private String sourceEngine; /** * @return Version of the source engine used to make the backup * */ - private final String sourceEngineVersion; - - @CustomType.Constructor - private ClusterS3Import( - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("ingestionRole") String ingestionRole, - @CustomType.Parameter("sourceEngine") String sourceEngine, - @CustomType.Parameter("sourceEngineVersion") String sourceEngineVersion) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.ingestionRole = ingestionRole; - this.sourceEngine = sourceEngine; - this.sourceEngineVersion = sourceEngineVersion; - } + private String sourceEngineVersion; + private ClusterS3Import() {} /** * @return The bucket name where your backup is stored * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(ClusterS3Import defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketName; private @Nullable String bucketPrefix; private String ingestionRole; private String sourceEngine; private String sourceEngineVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterS3Import defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -115,27 +98,39 @@ public Builder(ClusterS3Import defaults) { this.sourceEngineVersion = defaults.sourceEngineVersion; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder ingestionRole(String ingestionRole) { this.ingestionRole = Objects.requireNonNull(ingestionRole); return this; } + @CustomType.Setter public Builder sourceEngine(String sourceEngine) { this.sourceEngine = Objects.requireNonNull(sourceEngine); return this; } + @CustomType.Setter public Builder sourceEngineVersion(String sourceEngineVersion) { this.sourceEngineVersion = Objects.requireNonNull(sourceEngineVersion); return this; - } public ClusterS3Import build() { - return new ClusterS3Import(bucketName, bucketPrefix, ingestionRole, sourceEngine, sourceEngineVersion); + } + public ClusterS3Import build() { + final var o = new ClusterS3Import(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.ingestionRole = ingestionRole; + o.sourceEngine = sourceEngine; + o.sourceEngineVersion = sourceEngineVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterScalingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterScalingConfiguration.java index 1c19280ca40..e334e0d3a9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterScalingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterScalingConfiguration.java @@ -17,42 +17,29 @@ public final class ClusterScalingConfiguration { * @return Whether to enable automatic pause. A DB cluster can be paused only when it's idle (it has no connections). If a DB cluster is paused for more than seven days, the DB cluster might be backed up with a snapshot. In this case, the DB cluster is restored when there is a request to connect to it. Defaults to `true`. * */ - private final @Nullable Boolean autoPause; + private @Nullable Boolean autoPause; /** * @return The maximum capacity for an Aurora DB cluster in `serverless` DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `16`. * */ - private final @Nullable Integer maxCapacity; + private @Nullable Integer maxCapacity; /** * @return The minimum capacity for an Aurora DB cluster in `serverless` DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `1`. * */ - private final @Nullable Integer minCapacity; + private @Nullable Integer minCapacity; /** * @return The time, in seconds, before an Aurora DB cluster in serverless mode is paused. Valid values are `300` through `86400`. Defaults to `300`. * */ - private final @Nullable Integer secondsUntilAutoPause; + private @Nullable Integer secondsUntilAutoPause; /** * @return The action to take when the timeout is reached. Valid values: `ForceApplyCapacityChange`, `RollbackCapacityChange`. Defaults to `RollbackCapacityChange`. See [documentation](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html#aurora-serverless.how-it-works.timeout-action). * */ - private final @Nullable String timeoutAction; - - @CustomType.Constructor - private ClusterScalingConfiguration( - @CustomType.Parameter("autoPause") @Nullable Boolean autoPause, - @CustomType.Parameter("maxCapacity") @Nullable Integer maxCapacity, - @CustomType.Parameter("minCapacity") @Nullable Integer minCapacity, - @CustomType.Parameter("secondsUntilAutoPause") @Nullable Integer secondsUntilAutoPause, - @CustomType.Parameter("timeoutAction") @Nullable String timeoutAction) { - this.autoPause = autoPause; - this.maxCapacity = maxCapacity; - this.minCapacity = minCapacity; - this.secondsUntilAutoPause = secondsUntilAutoPause; - this.timeoutAction = timeoutAction; - } + private @Nullable String timeoutAction; + private ClusterScalingConfiguration() {} /** * @return Whether to enable automatic pause. A DB cluster can be paused only when it's idle (it has no connections). If a DB cluster is paused for more than seven days, the DB cluster might be backed up with a snapshot. In this case, the DB cluster is restored when there is a request to connect to it. Defaults to `true`. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(ClusterScalingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean autoPause; private @Nullable Integer maxCapacity; private @Nullable Integer minCapacity; private @Nullable Integer secondsUntilAutoPause; private @Nullable String timeoutAction; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterScalingConfiguration defaults) { Objects.requireNonNull(defaults); this.autoPause = defaults.autoPause; @@ -117,27 +100,39 @@ public Builder(ClusterScalingConfiguration defaults) { this.timeoutAction = defaults.timeoutAction; } + @CustomType.Setter public Builder autoPause(@Nullable Boolean autoPause) { this.autoPause = autoPause; return this; } + @CustomType.Setter public Builder maxCapacity(@Nullable Integer maxCapacity) { this.maxCapacity = maxCapacity; return this; } + @CustomType.Setter public Builder minCapacity(@Nullable Integer minCapacity) { this.minCapacity = minCapacity; return this; } + @CustomType.Setter public Builder secondsUntilAutoPause(@Nullable Integer secondsUntilAutoPause) { this.secondsUntilAutoPause = secondsUntilAutoPause; return this; } + @CustomType.Setter public Builder timeoutAction(@Nullable String timeoutAction) { this.timeoutAction = timeoutAction; return this; - } public ClusterScalingConfiguration build() { - return new ClusterScalingConfiguration(autoPause, maxCapacity, minCapacity, secondsUntilAutoPause, timeoutAction); + } + public ClusterScalingConfiguration build() { + final var o = new ClusterScalingConfiguration(); + o.autoPause = autoPause; + o.maxCapacity = maxCapacity; + o.minCapacity = minCapacity; + o.secondsUntilAutoPause = secondsUntilAutoPause; + o.timeoutAction = timeoutAction; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterServerlessv2ScalingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterServerlessv2ScalingConfiguration.java index 33f0bd3d46e..46e448d80c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterServerlessv2ScalingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ClusterServerlessv2ScalingConfiguration.java @@ -13,21 +13,14 @@ public final class ClusterServerlessv2ScalingConfiguration { * @return The maximum capacity for an Aurora DB cluster in `serverless` DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `16`. * */ - private final Double maxCapacity; + private Double maxCapacity; /** * @return The minimum capacity for an Aurora DB cluster in `serverless` DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `1`. * */ - private final Double minCapacity; - - @CustomType.Constructor - private ClusterServerlessv2ScalingConfiguration( - @CustomType.Parameter("maxCapacity") Double maxCapacity, - @CustomType.Parameter("minCapacity") Double minCapacity) { - this.maxCapacity = maxCapacity; - this.minCapacity = minCapacity; - } + private Double minCapacity; + private ClusterServerlessv2ScalingConfiguration() {} /** * @return The maximum capacity for an Aurora DB cluster in `serverless` DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `16`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ClusterServerlessv2ScalingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Double maxCapacity; private Double minCapacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterServerlessv2ScalingConfiguration defaults) { Objects.requireNonNull(defaults); this.maxCapacity = defaults.maxCapacity; this.minCapacity = defaults.minCapacity; } + @CustomType.Setter public Builder maxCapacity(Double maxCapacity) { this.maxCapacity = Objects.requireNonNull(maxCapacity); return this; } + @CustomType.Setter public Builder minCapacity(Double minCapacity) { this.minCapacity = Objects.requireNonNull(minCapacity); return this; - } public ClusterServerlessv2ScalingConfiguration build() { - return new ClusterServerlessv2ScalingConfiguration(maxCapacity, minCapacity); + } + public ClusterServerlessv2ScalingConfiguration build() { + final var o = new ClusterServerlessv2ScalingConfiguration(); + o.maxCapacity = maxCapacity; + o.minCapacity = minCapacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetCertificateResult.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetCertificateResult.java index b5d9ac2d8e2..dcb9b308829 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetCertificateResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetCertificateResult.java @@ -16,62 +16,41 @@ public final class GetCertificateResult { * @return Amazon Resource Name (ARN) of the certificate. * */ - private final String arn; + private String arn; /** * @return Type of certificate. For example, `CA`. * */ - private final String certificateType; + private String certificateType; /** * @return Boolean whether there is an override for the default certificate identifier. * */ - private final Boolean customerOverride; + private Boolean customerOverride; /** * @return If there is an override for the default certificate identifier, when the override expires. * */ - private final String customerOverrideValidTill; - private final String id; - private final @Nullable Boolean latestValidTill; + private String customerOverrideValidTill; + private String id; + private @Nullable Boolean latestValidTill; /** * @return Thumbprint of the certificate. * */ - private final String thumbprint; + private String thumbprint; /** * @return [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) of certificate starting validity date. * */ - private final String validFrom; + private String validFrom; /** * @return [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) of certificate ending validity date. * */ - private final String validTill; - - @CustomType.Constructor - private GetCertificateResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("certificateType") String certificateType, - @CustomType.Parameter("customerOverride") Boolean customerOverride, - @CustomType.Parameter("customerOverrideValidTill") String customerOverrideValidTill, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("latestValidTill") @Nullable Boolean latestValidTill, - @CustomType.Parameter("thumbprint") String thumbprint, - @CustomType.Parameter("validFrom") String validFrom, - @CustomType.Parameter("validTill") String validTill) { - this.arn = arn; - this.certificateType = certificateType; - this.customerOverride = customerOverride; - this.customerOverrideValidTill = customerOverrideValidTill; - this.id = id; - this.latestValidTill = latestValidTill; - this.thumbprint = thumbprint; - this.validFrom = validFrom; - this.validTill = validTill; - } + private String validTill; + private GetCertificateResult() {} /** * @return Amazon Resource Name (ARN) of the certificate. * @@ -135,7 +114,7 @@ public static Builder builder() { public static Builder builder(GetCertificateResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String certificateType; @@ -146,11 +125,7 @@ public static final class Builder { private String thumbprint; private String validFrom; private String validTill; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCertificateResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -164,43 +139,63 @@ public Builder(GetCertificateResult defaults) { this.validTill = defaults.validTill; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder certificateType(String certificateType) { this.certificateType = Objects.requireNonNull(certificateType); return this; } + @CustomType.Setter public Builder customerOverride(Boolean customerOverride) { this.customerOverride = Objects.requireNonNull(customerOverride); return this; } + @CustomType.Setter public Builder customerOverrideValidTill(String customerOverrideValidTill) { this.customerOverrideValidTill = Objects.requireNonNull(customerOverrideValidTill); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder latestValidTill(@Nullable Boolean latestValidTill) { this.latestValidTill = latestValidTill; return this; } + @CustomType.Setter public Builder thumbprint(String thumbprint) { this.thumbprint = Objects.requireNonNull(thumbprint); return this; } + @CustomType.Setter public Builder validFrom(String validFrom) { this.validFrom = Objects.requireNonNull(validFrom); return this; } + @CustomType.Setter public Builder validTill(String validTill) { this.validTill = Objects.requireNonNull(validTill); return this; - } public GetCertificateResult build() { - return new GetCertificateResult(arn, certificateType, customerOverride, customerOverrideValidTill, id, latestValidTill, thumbprint, validFrom, validTill); + } + public GetCertificateResult build() { + final var o = new GetCertificateResult(); + o.arn = arn; + o.certificateType = certificateType; + o.customerOverride = customerOverride; + o.customerOverrideValidTill = customerOverrideValidTill; + o.id = id; + o.latestValidTill = latestValidTill; + o.thumbprint = thumbprint; + o.validFrom = validFrom; + o.validTill = validTill; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetClusterResult.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetClusterResult.java index cd78708a01c..f30bee605e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetClusterResult.java @@ -13,102 +13,41 @@ @CustomType public final class GetClusterResult { - private final String arn; - private final List availabilityZones; - private final Integer backtrackWindow; - private final Integer backupRetentionPeriod; - private final String clusterIdentifier; - private final List clusterMembers; - private final String clusterResourceId; - private final String databaseName; - private final String dbClusterParameterGroupName; - private final String dbSubnetGroupName; - private final List enabledCloudwatchLogsExports; - private final String endpoint; - private final String engine; - private final String engineVersion; - private final String finalSnapshotIdentifier; - private final String hostedZoneId; - private final Boolean iamDatabaseAuthenticationEnabled; - private final List iamRoles; + private String arn; + private List availabilityZones; + private Integer backtrackWindow; + private Integer backupRetentionPeriod; + private String clusterIdentifier; + private List clusterMembers; + private String clusterResourceId; + private String databaseName; + private String dbClusterParameterGroupName; + private String dbSubnetGroupName; + private List enabledCloudwatchLogsExports; + private String endpoint; + private String engine; + private String engineVersion; + private String finalSnapshotIdentifier; + private String hostedZoneId; + private Boolean iamDatabaseAuthenticationEnabled; + private List iamRoles; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String kmsKeyId; - private final String masterUsername; - private final Integer port; - private final String preferredBackupWindow; - private final String preferredMaintenanceWindow; - private final String readerEndpoint; - private final String replicationSourceIdentifier; - private final Boolean storageEncrypted; - private final Map tags; - private final List vpcSecurityGroupIds; - - @CustomType.Constructor - private GetClusterResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("backtrackWindow") Integer backtrackWindow, - @CustomType.Parameter("backupRetentionPeriod") Integer backupRetentionPeriod, - @CustomType.Parameter("clusterIdentifier") String clusterIdentifier, - @CustomType.Parameter("clusterMembers") List clusterMembers, - @CustomType.Parameter("clusterResourceId") String clusterResourceId, - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("dbClusterParameterGroupName") String dbClusterParameterGroupName, - @CustomType.Parameter("dbSubnetGroupName") String dbSubnetGroupName, - @CustomType.Parameter("enabledCloudwatchLogsExports") List enabledCloudwatchLogsExports, - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("engine") String engine, - @CustomType.Parameter("engineVersion") String engineVersion, - @CustomType.Parameter("finalSnapshotIdentifier") String finalSnapshotIdentifier, - @CustomType.Parameter("hostedZoneId") String hostedZoneId, - @CustomType.Parameter("iamDatabaseAuthenticationEnabled") Boolean iamDatabaseAuthenticationEnabled, - @CustomType.Parameter("iamRoles") List iamRoles, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("masterUsername") String masterUsername, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("preferredBackupWindow") String preferredBackupWindow, - @CustomType.Parameter("preferredMaintenanceWindow") String preferredMaintenanceWindow, - @CustomType.Parameter("readerEndpoint") String readerEndpoint, - @CustomType.Parameter("replicationSourceIdentifier") String replicationSourceIdentifier, - @CustomType.Parameter("storageEncrypted") Boolean storageEncrypted, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcSecurityGroupIds") List vpcSecurityGroupIds) { - this.arn = arn; - this.availabilityZones = availabilityZones; - this.backtrackWindow = backtrackWindow; - this.backupRetentionPeriod = backupRetentionPeriod; - this.clusterIdentifier = clusterIdentifier; - this.clusterMembers = clusterMembers; - this.clusterResourceId = clusterResourceId; - this.databaseName = databaseName; - this.dbClusterParameterGroupName = dbClusterParameterGroupName; - this.dbSubnetGroupName = dbSubnetGroupName; - this.enabledCloudwatchLogsExports = enabledCloudwatchLogsExports; - this.endpoint = endpoint; - this.engine = engine; - this.engineVersion = engineVersion; - this.finalSnapshotIdentifier = finalSnapshotIdentifier; - this.hostedZoneId = hostedZoneId; - this.iamDatabaseAuthenticationEnabled = iamDatabaseAuthenticationEnabled; - this.iamRoles = iamRoles; - this.id = id; - this.kmsKeyId = kmsKeyId; - this.masterUsername = masterUsername; - this.port = port; - this.preferredBackupWindow = preferredBackupWindow; - this.preferredMaintenanceWindow = preferredMaintenanceWindow; - this.readerEndpoint = readerEndpoint; - this.replicationSourceIdentifier = replicationSourceIdentifier; - this.storageEncrypted = storageEncrypted; - this.tags = tags; - this.vpcSecurityGroupIds = vpcSecurityGroupIds; - } + private String id; + private String kmsKeyId; + private String masterUsername; + private Integer port; + private String preferredBackupWindow; + private String preferredMaintenanceWindow; + private String readerEndpoint; + private String replicationSourceIdentifier; + private Boolean storageEncrypted; + private Map tags; + private List vpcSecurityGroupIds; + private GetClusterResult() {} public String arn() { return this.arn; } @@ -208,7 +147,7 @@ public static Builder builder() { public static Builder builder(GetClusterResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List availabilityZones; @@ -239,11 +178,7 @@ public static final class Builder { private Boolean storageEncrypted; private Map tags; private List vpcSecurityGroupIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -277,10 +212,12 @@ public Builder(GetClusterResult defaults) { this.vpcSecurityGroupIds = defaults.vpcSecurityGroupIds; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -288,18 +225,22 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder backtrackWindow(Integer backtrackWindow) { this.backtrackWindow = Objects.requireNonNull(backtrackWindow); return this; } + @CustomType.Setter public Builder backupRetentionPeriod(Integer backupRetentionPeriod) { this.backupRetentionPeriod = Objects.requireNonNull(backupRetentionPeriod); return this; } + @CustomType.Setter public Builder clusterIdentifier(String clusterIdentifier) { this.clusterIdentifier = Objects.requireNonNull(clusterIdentifier); return this; } + @CustomType.Setter public Builder clusterMembers(List clusterMembers) { this.clusterMembers = Objects.requireNonNull(clusterMembers); return this; @@ -307,22 +248,27 @@ public Builder clusterMembers(List clusterMembers) { public Builder clusterMembers(String... clusterMembers) { return clusterMembers(List.of(clusterMembers)); } + @CustomType.Setter public Builder clusterResourceId(String clusterResourceId) { this.clusterResourceId = Objects.requireNonNull(clusterResourceId); return this; } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder dbClusterParameterGroupName(String dbClusterParameterGroupName) { this.dbClusterParameterGroupName = Objects.requireNonNull(dbClusterParameterGroupName); return this; } + @CustomType.Setter public Builder dbSubnetGroupName(String dbSubnetGroupName) { this.dbSubnetGroupName = Objects.requireNonNull(dbSubnetGroupName); return this; } + @CustomType.Setter public Builder enabledCloudwatchLogsExports(List enabledCloudwatchLogsExports) { this.enabledCloudwatchLogsExports = Objects.requireNonNull(enabledCloudwatchLogsExports); return this; @@ -330,30 +276,37 @@ public Builder enabledCloudwatchLogsExports(List enabledCloudwatchLogsEx public Builder enabledCloudwatchLogsExports(String... enabledCloudwatchLogsExports) { return enabledCloudwatchLogsExports(List.of(enabledCloudwatchLogsExports)); } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder engine(String engine) { this.engine = Objects.requireNonNull(engine); return this; } + @CustomType.Setter public Builder engineVersion(String engineVersion) { this.engineVersion = Objects.requireNonNull(engineVersion); return this; } + @CustomType.Setter public Builder finalSnapshotIdentifier(String finalSnapshotIdentifier) { this.finalSnapshotIdentifier = Objects.requireNonNull(finalSnapshotIdentifier); return this; } + @CustomType.Setter public Builder hostedZoneId(String hostedZoneId) { this.hostedZoneId = Objects.requireNonNull(hostedZoneId); return this; } + @CustomType.Setter public Builder iamDatabaseAuthenticationEnabled(Boolean iamDatabaseAuthenticationEnabled) { this.iamDatabaseAuthenticationEnabled = Objects.requireNonNull(iamDatabaseAuthenticationEnabled); return this; } + @CustomType.Setter public Builder iamRoles(List iamRoles) { this.iamRoles = Objects.requireNonNull(iamRoles); return this; @@ -361,54 +314,96 @@ public Builder iamRoles(List iamRoles) { public Builder iamRoles(String... iamRoles) { return iamRoles(List.of(iamRoles)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder masterUsername(String masterUsername) { this.masterUsername = Objects.requireNonNull(masterUsername); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder preferredBackupWindow(String preferredBackupWindow) { this.preferredBackupWindow = Objects.requireNonNull(preferredBackupWindow); return this; } + @CustomType.Setter public Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) { this.preferredMaintenanceWindow = Objects.requireNonNull(preferredMaintenanceWindow); return this; } + @CustomType.Setter public Builder readerEndpoint(String readerEndpoint) { this.readerEndpoint = Objects.requireNonNull(readerEndpoint); return this; } + @CustomType.Setter public Builder replicationSourceIdentifier(String replicationSourceIdentifier) { this.replicationSourceIdentifier = Objects.requireNonNull(replicationSourceIdentifier); return this; } + @CustomType.Setter public Builder storageEncrypted(Boolean storageEncrypted) { this.storageEncrypted = Objects.requireNonNull(storageEncrypted); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcSecurityGroupIds(List vpcSecurityGroupIds) { this.vpcSecurityGroupIds = Objects.requireNonNull(vpcSecurityGroupIds); return this; } public Builder vpcSecurityGroupIds(String... vpcSecurityGroupIds) { return vpcSecurityGroupIds(List.of(vpcSecurityGroupIds)); - } public GetClusterResult build() { - return new GetClusterResult(arn, availabilityZones, backtrackWindow, backupRetentionPeriod, clusterIdentifier, clusterMembers, clusterResourceId, databaseName, dbClusterParameterGroupName, dbSubnetGroupName, enabledCloudwatchLogsExports, endpoint, engine, engineVersion, finalSnapshotIdentifier, hostedZoneId, iamDatabaseAuthenticationEnabled, iamRoles, id, kmsKeyId, masterUsername, port, preferredBackupWindow, preferredMaintenanceWindow, readerEndpoint, replicationSourceIdentifier, storageEncrypted, tags, vpcSecurityGroupIds); + } + public GetClusterResult build() { + final var o = new GetClusterResult(); + o.arn = arn; + o.availabilityZones = availabilityZones; + o.backtrackWindow = backtrackWindow; + o.backupRetentionPeriod = backupRetentionPeriod; + o.clusterIdentifier = clusterIdentifier; + o.clusterMembers = clusterMembers; + o.clusterResourceId = clusterResourceId; + o.databaseName = databaseName; + o.dbClusterParameterGroupName = dbClusterParameterGroupName; + o.dbSubnetGroupName = dbSubnetGroupName; + o.enabledCloudwatchLogsExports = enabledCloudwatchLogsExports; + o.endpoint = endpoint; + o.engine = engine; + o.engineVersion = engineVersion; + o.finalSnapshotIdentifier = finalSnapshotIdentifier; + o.hostedZoneId = hostedZoneId; + o.iamDatabaseAuthenticationEnabled = iamDatabaseAuthenticationEnabled; + o.iamRoles = iamRoles; + o.id = id; + o.kmsKeyId = kmsKeyId; + o.masterUsername = masterUsername; + o.port = port; + o.preferredBackupWindow = preferredBackupWindow; + o.preferredMaintenanceWindow = preferredMaintenanceWindow; + o.readerEndpoint = readerEndpoint; + o.replicationSourceIdentifier = replicationSourceIdentifier; + o.storageEncrypted = storageEncrypted; + o.tags = tags; + o.vpcSecurityGroupIds = vpcSecurityGroupIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetClusterSnapshotResult.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetClusterSnapshotResult.java index 506c76dfbea..63092c3f4fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetClusterSnapshotResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetClusterSnapshotResult.java @@ -19,130 +19,85 @@ public final class GetClusterSnapshotResult { * @return Specifies the allocated storage size in gigabytes (GB). * */ - private final Integer allocatedStorage; + private Integer allocatedStorage; /** * @return List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in. * */ - private final List availabilityZones; + private List availabilityZones; /** * @return Specifies the DB cluster identifier of the DB cluster that this DB cluster snapshot was created from. * */ - private final @Nullable String dbClusterIdentifier; + private @Nullable String dbClusterIdentifier; /** * @return The Amazon Resource Name (ARN) for the DB Cluster Snapshot. * */ - private final String dbClusterSnapshotArn; - private final @Nullable String dbClusterSnapshotIdentifier; + private String dbClusterSnapshotArn; + private @Nullable String dbClusterSnapshotIdentifier; /** * @return Specifies the name of the database engine. * */ - private final String engine; + private String engine; /** * @return Version of the database engine for this DB cluster snapshot. * */ - private final String engineVersion; + private String engineVersion; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable Boolean includePublic; - private final @Nullable Boolean includeShared; + private String id; + private @Nullable Boolean includePublic; + private @Nullable Boolean includeShared; /** * @return If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot. * */ - private final String kmsKeyId; + private String kmsKeyId; /** * @return License model information for the restored DB cluster. * */ - private final String licenseModel; - private final @Nullable Boolean mostRecent; + private String licenseModel; + private @Nullable Boolean mostRecent; /** * @return Port that the DB cluster was listening on at the time of the snapshot. * */ - private final Integer port; + private Integer port; /** * @return Time when the snapshot was taken, in Universal Coordinated Time (UTC). * */ - private final String snapshotCreateTime; - private final @Nullable String snapshotType; - private final String sourceDbClusterSnapshotArn; + private String snapshotCreateTime; + private @Nullable String snapshotType; + private String sourceDbClusterSnapshotArn; /** * @return The status of this DB Cluster Snapshot. * */ - private final String status; + private String status; /** * @return Specifies whether the DB cluster snapshot is encrypted. * */ - private final Boolean storageEncrypted; + private Boolean storageEncrypted; /** * @return A map of tags for the resource. * */ - private final Map tags; + private Map tags; /** * @return The VPC ID associated with the DB cluster snapshot. * */ - private final String vpcId; - - @CustomType.Constructor - private GetClusterSnapshotResult( - @CustomType.Parameter("allocatedStorage") Integer allocatedStorage, - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("dbClusterIdentifier") @Nullable String dbClusterIdentifier, - @CustomType.Parameter("dbClusterSnapshotArn") String dbClusterSnapshotArn, - @CustomType.Parameter("dbClusterSnapshotIdentifier") @Nullable String dbClusterSnapshotIdentifier, - @CustomType.Parameter("engine") String engine, - @CustomType.Parameter("engineVersion") String engineVersion, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("includePublic") @Nullable Boolean includePublic, - @CustomType.Parameter("includeShared") @Nullable Boolean includeShared, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("licenseModel") String licenseModel, - @CustomType.Parameter("mostRecent") @Nullable Boolean mostRecent, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("snapshotCreateTime") String snapshotCreateTime, - @CustomType.Parameter("snapshotType") @Nullable String snapshotType, - @CustomType.Parameter("sourceDbClusterSnapshotArn") String sourceDbClusterSnapshotArn, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("storageEncrypted") Boolean storageEncrypted, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId) { - this.allocatedStorage = allocatedStorage; - this.availabilityZones = availabilityZones; - this.dbClusterIdentifier = dbClusterIdentifier; - this.dbClusterSnapshotArn = dbClusterSnapshotArn; - this.dbClusterSnapshotIdentifier = dbClusterSnapshotIdentifier; - this.engine = engine; - this.engineVersion = engineVersion; - this.id = id; - this.includePublic = includePublic; - this.includeShared = includeShared; - this.kmsKeyId = kmsKeyId; - this.licenseModel = licenseModel; - this.mostRecent = mostRecent; - this.port = port; - this.snapshotCreateTime = snapshotCreateTime; - this.snapshotType = snapshotType; - this.sourceDbClusterSnapshotArn = sourceDbClusterSnapshotArn; - this.status = status; - this.storageEncrypted = storageEncrypted; - this.tags = tags; - this.vpcId = vpcId; - } + private String vpcId; + private GetClusterSnapshotResult() {} /** * @return Specifies the allocated storage size in gigabytes (GB). * @@ -274,7 +229,7 @@ public static Builder builder() { public static Builder builder(GetClusterSnapshotResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer allocatedStorage; private List availabilityZones; @@ -297,11 +252,7 @@ public static final class Builder { private Boolean storageEncrypted; private Map tags; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterSnapshotResult defaults) { Objects.requireNonNull(defaults); this.allocatedStorage = defaults.allocatedStorage; @@ -327,10 +278,12 @@ public Builder(GetClusterSnapshotResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder allocatedStorage(Integer allocatedStorage) { this.allocatedStorage = Objects.requireNonNull(allocatedStorage); return this; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -338,83 +291,125 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder dbClusterIdentifier(@Nullable String dbClusterIdentifier) { this.dbClusterIdentifier = dbClusterIdentifier; return this; } + @CustomType.Setter public Builder dbClusterSnapshotArn(String dbClusterSnapshotArn) { this.dbClusterSnapshotArn = Objects.requireNonNull(dbClusterSnapshotArn); return this; } + @CustomType.Setter public Builder dbClusterSnapshotIdentifier(@Nullable String dbClusterSnapshotIdentifier) { this.dbClusterSnapshotIdentifier = dbClusterSnapshotIdentifier; return this; } + @CustomType.Setter public Builder engine(String engine) { this.engine = Objects.requireNonNull(engine); return this; } + @CustomType.Setter public Builder engineVersion(String engineVersion) { this.engineVersion = Objects.requireNonNull(engineVersion); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder includePublic(@Nullable Boolean includePublic) { this.includePublic = includePublic; return this; } + @CustomType.Setter public Builder includeShared(@Nullable Boolean includeShared) { this.includeShared = includeShared; return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder licenseModel(String licenseModel) { this.licenseModel = Objects.requireNonNull(licenseModel); return this; } + @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { this.mostRecent = mostRecent; return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder snapshotCreateTime(String snapshotCreateTime) { this.snapshotCreateTime = Objects.requireNonNull(snapshotCreateTime); return this; } + @CustomType.Setter public Builder snapshotType(@Nullable String snapshotType) { this.snapshotType = snapshotType; return this; } + @CustomType.Setter public Builder sourceDbClusterSnapshotArn(String sourceDbClusterSnapshotArn) { this.sourceDbClusterSnapshotArn = Objects.requireNonNull(sourceDbClusterSnapshotArn); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder storageEncrypted(Boolean storageEncrypted) { this.storageEncrypted = Objects.requireNonNull(storageEncrypted); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetClusterSnapshotResult build() { - return new GetClusterSnapshotResult(allocatedStorage, availabilityZones, dbClusterIdentifier, dbClusterSnapshotArn, dbClusterSnapshotIdentifier, engine, engineVersion, id, includePublic, includeShared, kmsKeyId, licenseModel, mostRecent, port, snapshotCreateTime, snapshotType, sourceDbClusterSnapshotArn, status, storageEncrypted, tags, vpcId); + } + public GetClusterSnapshotResult build() { + final var o = new GetClusterSnapshotResult(); + o.allocatedStorage = allocatedStorage; + o.availabilityZones = availabilityZones; + o.dbClusterIdentifier = dbClusterIdentifier; + o.dbClusterSnapshotArn = dbClusterSnapshotArn; + o.dbClusterSnapshotIdentifier = dbClusterSnapshotIdentifier; + o.engine = engine; + o.engineVersion = engineVersion; + o.id = id; + o.includePublic = includePublic; + o.includeShared = includeShared; + o.kmsKeyId = kmsKeyId; + o.licenseModel = licenseModel; + o.mostRecent = mostRecent; + o.port = port; + o.snapshotCreateTime = snapshotCreateTime; + o.snapshotType = snapshotType; + o.sourceDbClusterSnapshotArn = sourceDbClusterSnapshotArn; + o.status = status; + o.storageEncrypted = storageEncrypted; + o.tags = tags; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetEngineVersionFilter.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetEngineVersionFilter.java index 21b0d9a4b9a..af4b41a42c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetEngineVersionFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetEngineVersionFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetEngineVersionFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetEngineVersionFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetEngineVersionFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetEngineVersionFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEngineVersionFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetEngineVersionFilter build() { - return new GetEngineVersionFilter(name, values); + } + public GetEngineVersionFilter build() { + final var o = new GetEngineVersionFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetEngineVersionResult.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetEngineVersionResult.java index 18e3c5b0f30..b6e542c6817 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetEngineVersionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetEngineVersionResult.java @@ -17,127 +17,84 @@ public final class GetEngineVersionResult { * @return The default character set for new instances of this engine version. * */ - private final String defaultCharacterSet; - private final String engine; + private String defaultCharacterSet; + private String engine; /** * @return The description of the database engine. * */ - private final String engineDescription; + private String engineDescription; /** * @return Set of log types that the database engine has available for export to CloudWatch Logs. * */ - private final List exportableLogTypes; - private final @Nullable List filters; + private List exportableLogTypes; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String parameterGroupFamily; - private final @Nullable List preferredVersions; + private String id; + private String parameterGroupFamily; + private @Nullable List preferredVersions; /** * @return The status of the DB engine version, either available or deprecated. * */ - private final String status; + private String status; /** * @return Set of the character sets supported by this engine. * */ - private final List supportedCharacterSets; + private List supportedCharacterSets; /** * @return Set of features supported by the DB engine. * */ - private final List supportedFeatureNames; + private List supportedFeatureNames; /** * @return Set of the supported DB engine modes. * */ - private final List supportedModes; + private List supportedModes; /** * @return Set of the time zones supported by this engine. * */ - private final List supportedTimezones; + private List supportedTimezones; /** * @return Indicates whether you can use Aurora global databases with a specific DB engine version. * */ - private final Boolean supportsGlobalDatabases; + private Boolean supportsGlobalDatabases; /** * @return Indicates whether the engine version supports exporting the log types specified by `exportable_log_types` to CloudWatch Logs. * */ - private final Boolean supportsLogExportsToCloudwatch; + private Boolean supportsLogExportsToCloudwatch; /** * @return Indicates whether you can use Aurora parallel query with a specific DB engine version. * */ - private final Boolean supportsParallelQuery; + private Boolean supportsParallelQuery; /** * @return Indicates whether the database engine version supports read replicas. * */ - private final Boolean supportsReadReplica; + private Boolean supportsReadReplica; /** * @return Set of engine versions that this database engine version can be upgraded to. * */ - private final List validUpgradeTargets; - private final String version; + private List validUpgradeTargets; + private String version; /** * @return The description of the database engine version. * */ - private final String versionDescription; - - @CustomType.Constructor - private GetEngineVersionResult( - @CustomType.Parameter("defaultCharacterSet") String defaultCharacterSet, - @CustomType.Parameter("engine") String engine, - @CustomType.Parameter("engineDescription") String engineDescription, - @CustomType.Parameter("exportableLogTypes") List exportableLogTypes, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("parameterGroupFamily") String parameterGroupFamily, - @CustomType.Parameter("preferredVersions") @Nullable List preferredVersions, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("supportedCharacterSets") List supportedCharacterSets, - @CustomType.Parameter("supportedFeatureNames") List supportedFeatureNames, - @CustomType.Parameter("supportedModes") List supportedModes, - @CustomType.Parameter("supportedTimezones") List supportedTimezones, - @CustomType.Parameter("supportsGlobalDatabases") Boolean supportsGlobalDatabases, - @CustomType.Parameter("supportsLogExportsToCloudwatch") Boolean supportsLogExportsToCloudwatch, - @CustomType.Parameter("supportsParallelQuery") Boolean supportsParallelQuery, - @CustomType.Parameter("supportsReadReplica") Boolean supportsReadReplica, - @CustomType.Parameter("validUpgradeTargets") List validUpgradeTargets, - @CustomType.Parameter("version") String version, - @CustomType.Parameter("versionDescription") String versionDescription) { - this.defaultCharacterSet = defaultCharacterSet; - this.engine = engine; - this.engineDescription = engineDescription; - this.exportableLogTypes = exportableLogTypes; - this.filters = filters; - this.id = id; - this.parameterGroupFamily = parameterGroupFamily; - this.preferredVersions = preferredVersions; - this.status = status; - this.supportedCharacterSets = supportedCharacterSets; - this.supportedFeatureNames = supportedFeatureNames; - this.supportedModes = supportedModes; - this.supportedTimezones = supportedTimezones; - this.supportsGlobalDatabases = supportsGlobalDatabases; - this.supportsLogExportsToCloudwatch = supportsLogExportsToCloudwatch; - this.supportsParallelQuery = supportsParallelQuery; - this.supportsReadReplica = supportsReadReplica; - this.validUpgradeTargets = validUpgradeTargets; - this.version = version; - this.versionDescription = versionDescription; - } + private String versionDescription; + private GetEngineVersionResult() {} /** * @return The default character set for new instances of this engine version. * @@ -266,7 +223,7 @@ public static Builder builder() { public static Builder builder(GetEngineVersionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String defaultCharacterSet; private String engine; @@ -288,11 +245,7 @@ public static final class Builder { private List validUpgradeTargets; private String version; private String versionDescription; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEngineVersionResult defaults) { Objects.requireNonNull(defaults); this.defaultCharacterSet = defaults.defaultCharacterSet; @@ -317,18 +270,22 @@ public Builder(GetEngineVersionResult defaults) { this.versionDescription = defaults.versionDescription; } + @CustomType.Setter public Builder defaultCharacterSet(String defaultCharacterSet) { this.defaultCharacterSet = Objects.requireNonNull(defaultCharacterSet); return this; } + @CustomType.Setter public Builder engine(String engine) { this.engine = Objects.requireNonNull(engine); return this; } + @CustomType.Setter public Builder engineDescription(String engineDescription) { this.engineDescription = Objects.requireNonNull(engineDescription); return this; } + @CustomType.Setter public Builder exportableLogTypes(List exportableLogTypes) { this.exportableLogTypes = Objects.requireNonNull(exportableLogTypes); return this; @@ -336,6 +293,7 @@ public Builder exportableLogTypes(List exportableLogTypes) { public Builder exportableLogTypes(String... exportableLogTypes) { return exportableLogTypes(List.of(exportableLogTypes)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -343,14 +301,17 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetEngineVersionFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder parameterGroupFamily(String parameterGroupFamily) { this.parameterGroupFamily = Objects.requireNonNull(parameterGroupFamily); return this; } + @CustomType.Setter public Builder preferredVersions(@Nullable List preferredVersions) { this.preferredVersions = preferredVersions; return this; @@ -358,10 +319,12 @@ public Builder preferredVersions(@Nullable List preferredVersions) { public Builder preferredVersions(String... preferredVersions) { return preferredVersions(List.of(preferredVersions)); } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder supportedCharacterSets(List supportedCharacterSets) { this.supportedCharacterSets = Objects.requireNonNull(supportedCharacterSets); return this; @@ -369,6 +332,7 @@ public Builder supportedCharacterSets(List supportedCharacterSets) { public Builder supportedCharacterSets(String... supportedCharacterSets) { return supportedCharacterSets(List.of(supportedCharacterSets)); } + @CustomType.Setter public Builder supportedFeatureNames(List supportedFeatureNames) { this.supportedFeatureNames = Objects.requireNonNull(supportedFeatureNames); return this; @@ -376,6 +340,7 @@ public Builder supportedFeatureNames(List supportedFeatureNames) { public Builder supportedFeatureNames(String... supportedFeatureNames) { return supportedFeatureNames(List.of(supportedFeatureNames)); } + @CustomType.Setter public Builder supportedModes(List supportedModes) { this.supportedModes = Objects.requireNonNull(supportedModes); return this; @@ -383,6 +348,7 @@ public Builder supportedModes(List supportedModes) { public Builder supportedModes(String... supportedModes) { return supportedModes(List.of(supportedModes)); } + @CustomType.Setter public Builder supportedTimezones(List supportedTimezones) { this.supportedTimezones = Objects.requireNonNull(supportedTimezones); return this; @@ -390,22 +356,27 @@ public Builder supportedTimezones(List supportedTimezones) { public Builder supportedTimezones(String... supportedTimezones) { return supportedTimezones(List.of(supportedTimezones)); } + @CustomType.Setter public Builder supportsGlobalDatabases(Boolean supportsGlobalDatabases) { this.supportsGlobalDatabases = Objects.requireNonNull(supportsGlobalDatabases); return this; } + @CustomType.Setter public Builder supportsLogExportsToCloudwatch(Boolean supportsLogExportsToCloudwatch) { this.supportsLogExportsToCloudwatch = Objects.requireNonNull(supportsLogExportsToCloudwatch); return this; } + @CustomType.Setter public Builder supportsParallelQuery(Boolean supportsParallelQuery) { this.supportsParallelQuery = Objects.requireNonNull(supportsParallelQuery); return this; } + @CustomType.Setter public Builder supportsReadReplica(Boolean supportsReadReplica) { this.supportsReadReplica = Objects.requireNonNull(supportsReadReplica); return this; } + @CustomType.Setter public Builder validUpgradeTargets(List validUpgradeTargets) { this.validUpgradeTargets = Objects.requireNonNull(validUpgradeTargets); return this; @@ -413,15 +384,39 @@ public Builder validUpgradeTargets(List validUpgradeTargets) { public Builder validUpgradeTargets(String... validUpgradeTargets) { return validUpgradeTargets(List.of(validUpgradeTargets)); } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; } + @CustomType.Setter public Builder versionDescription(String versionDescription) { this.versionDescription = Objects.requireNonNull(versionDescription); return this; - } public GetEngineVersionResult build() { - return new GetEngineVersionResult(defaultCharacterSet, engine, engineDescription, exportableLogTypes, filters, id, parameterGroupFamily, preferredVersions, status, supportedCharacterSets, supportedFeatureNames, supportedModes, supportedTimezones, supportsGlobalDatabases, supportsLogExportsToCloudwatch, supportsParallelQuery, supportsReadReplica, validUpgradeTargets, version, versionDescription); + } + public GetEngineVersionResult build() { + final var o = new GetEngineVersionResult(); + o.defaultCharacterSet = defaultCharacterSet; + o.engine = engine; + o.engineDescription = engineDescription; + o.exportableLogTypes = exportableLogTypes; + o.filters = filters; + o.id = id; + o.parameterGroupFamily = parameterGroupFamily; + o.preferredVersions = preferredVersions; + o.status = status; + o.supportedCharacterSets = supportedCharacterSets; + o.supportedFeatureNames = supportedFeatureNames; + o.supportedModes = supportedModes; + o.supportedTimezones = supportedTimezones; + o.supportsGlobalDatabases = supportsGlobalDatabases; + o.supportsLogExportsToCloudwatch = supportsLogExportsToCloudwatch; + o.supportsParallelQuery = supportsParallelQuery; + o.supportsReadReplica = supportsReadReplica; + o.validUpgradeTargets = validUpgradeTargets; + o.version = version; + o.versionDescription = versionDescription; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetEventCategoriesResult.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetEventCategoriesResult.java index 7b0ec08b353..0c964c4befc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetEventCategoriesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetEventCategoriesResult.java @@ -16,24 +16,15 @@ public final class GetEventCategoriesResult { * @return A list of the event categories. * */ - private final List eventCategories; + private List eventCategories; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String sourceType; - - @CustomType.Constructor - private GetEventCategoriesResult( - @CustomType.Parameter("eventCategories") List eventCategories, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("sourceType") @Nullable String sourceType) { - this.eventCategories = eventCategories; - this.id = id; - this.sourceType = sourceType; - } + private String id; + private @Nullable String sourceType; + private GetEventCategoriesResult() {} /** * @return A list of the event categories. * @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(GetEventCategoriesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List eventCategories; private String id; private @Nullable String sourceType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEventCategoriesResult defaults) { Objects.requireNonNull(defaults); this.eventCategories = defaults.eventCategories; @@ -76,6 +63,7 @@ public Builder(GetEventCategoriesResult defaults) { this.sourceType = defaults.sourceType; } + @CustomType.Setter public Builder eventCategories(List eventCategories) { this.eventCategories = Objects.requireNonNull(eventCategories); return this; @@ -83,15 +71,22 @@ public Builder eventCategories(List eventCategories) { public Builder eventCategories(String... eventCategories) { return eventCategories(List.of(eventCategories)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder sourceType(@Nullable String sourceType) { this.sourceType = sourceType; return this; - } public GetEventCategoriesResult build() { - return new GetEventCategoriesResult(eventCategories, id, sourceType); + } + public GetEventCategoriesResult build() { + final var o = new GetEventCategoriesResult(); + o.eventCategories = eventCategories; + o.id = id; + o.sourceType = sourceType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetInstanceResult.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetInstanceResult.java index 9a6ca687c44..790ae8d2230 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetInstanceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetInstanceResult.java @@ -17,279 +17,196 @@ public final class GetInstanceResult { * @return The hostname of the RDS instance. See also `endpoint` and `port`. * */ - private final String address; + private String address; /** * @return Specifies the allocated storage size specified in gigabytes. * */ - private final Integer allocatedStorage; + private Integer allocatedStorage; /** * @return Indicates that minor version patches are applied automatically. * */ - private final Boolean autoMinorVersionUpgrade; + private Boolean autoMinorVersionUpgrade; /** * @return Specifies the name of the Availability Zone the DB instance is located in. * */ - private final String availabilityZone; + private String availabilityZone; /** * @return Specifies the number of days for which automatic DB snapshots are retained. * */ - private final Integer backupRetentionPeriod; + private Integer backupRetentionPeriod; /** * @return Specifies the identifier of the CA certificate for the DB instance. * */ - private final String caCertIdentifier; + private String caCertIdentifier; /** * @return If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of. * */ - private final String dbClusterIdentifier; + private String dbClusterIdentifier; /** * @return The Amazon Resource Name (ARN) for the DB instance. * */ - private final String dbInstanceArn; + private String dbInstanceArn; /** * @return Contains the name of the compute and memory capacity class of the DB instance. * */ - private final String dbInstanceClass; - private final String dbInstanceIdentifier; + private String dbInstanceClass; + private String dbInstanceIdentifier; /** * @return Specifies the port that the DB instance listens on. * */ - private final Integer dbInstancePort; + private Integer dbInstancePort; /** * @return Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB instance was created. This same name is returned for the life of the DB instance. * */ - private final String dbName; + private String dbName; /** * @return Provides the list of DB parameter groups applied to this DB instance. * */ - private final List dbParameterGroups; + private List dbParameterGroups; /** * @return Provides List of DB security groups associated to this DB instance. * */ - private final List dbSecurityGroups; + private List dbSecurityGroups; /** * @return Specifies the name of the subnet group associated with the DB instance. * */ - private final String dbSubnetGroup; + private String dbSubnetGroup; /** * @return List of log types to export to cloudwatch. * */ - private final List enabledCloudwatchLogsExports; + private List enabledCloudwatchLogsExports; /** * @return The connection endpoint in `address:port` format. * */ - private final String endpoint; + private String endpoint; /** * @return Provides the name of the database engine to be used for this DB instance. * */ - private final String engine; + private String engine; /** * @return Indicates the database engine version. * */ - private final String engineVersion; + private String engineVersion; /** * @return The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record). * */ - private final String hostedZoneId; + private String hostedZoneId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Specifies the Provisioned IOPS (I/O operations per second) value. * */ - private final Integer iops; + private Integer iops; /** * @return If StorageEncrypted is true, the KMS key identifier for the encrypted DB instance. * */ - private final String kmsKeyId; + private String kmsKeyId; /** * @return License model information for this DB instance. * */ - private final String licenseModel; + private String licenseModel; /** * @return Contains the master username for the DB instance. * */ - private final String masterUsername; + private String masterUsername; /** * @return The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. * */ - private final Integer monitoringInterval; + private Integer monitoringInterval; /** * @return The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics to CloudWatch Logs. * */ - private final String monitoringRoleArn; + private String monitoringRoleArn; /** * @return Specifies if the DB instance is a Multi-AZ deployment. * */ - private final Boolean multiAz; + private Boolean multiAz; /** * @return Provides the list of option group memberships for this DB instance. * */ - private final List optionGroupMemberships; + private List optionGroupMemberships; /** * @return The database port. * */ - private final Integer port; + private Integer port; /** * @return Specifies the daily time range during which automated backups are created. * */ - private final String preferredBackupWindow; + private String preferredBackupWindow; /** * @return Specifies the weekly time range during which system maintenance can occur in UTC. * */ - private final String preferredMaintenanceWindow; + private String preferredMaintenanceWindow; /** * @return Specifies the accessibility options for the DB instance. * */ - private final Boolean publiclyAccessible; + private Boolean publiclyAccessible; /** * @return The identifier of the source DB that this is a replica of. * */ - private final String replicateSourceDb; + private String replicateSourceDb; /** * @return The RDS Resource ID of this instance. * */ - private final String resourceId; + private String resourceId; /** * @return Specifies whether the DB instance is encrypted. * */ - private final Boolean storageEncrypted; + private Boolean storageEncrypted; /** * @return Specifies the storage type associated with DB instance. * */ - private final String storageType; - private final Map tags; + private String storageType; + private Map tags; /** * @return The time zone of the DB instance. * */ - private final String timezone; + private String timezone; /** * @return Provides a list of VPC security group elements that the DB instance belongs to. * */ - private final List vpcSecurityGroups; - - @CustomType.Constructor - private GetInstanceResult( - @CustomType.Parameter("address") String address, - @CustomType.Parameter("allocatedStorage") Integer allocatedStorage, - @CustomType.Parameter("autoMinorVersionUpgrade") Boolean autoMinorVersionUpgrade, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("backupRetentionPeriod") Integer backupRetentionPeriod, - @CustomType.Parameter("caCertIdentifier") String caCertIdentifier, - @CustomType.Parameter("dbClusterIdentifier") String dbClusterIdentifier, - @CustomType.Parameter("dbInstanceArn") String dbInstanceArn, - @CustomType.Parameter("dbInstanceClass") String dbInstanceClass, - @CustomType.Parameter("dbInstanceIdentifier") String dbInstanceIdentifier, - @CustomType.Parameter("dbInstancePort") Integer dbInstancePort, - @CustomType.Parameter("dbName") String dbName, - @CustomType.Parameter("dbParameterGroups") List dbParameterGroups, - @CustomType.Parameter("dbSecurityGroups") List dbSecurityGroups, - @CustomType.Parameter("dbSubnetGroup") String dbSubnetGroup, - @CustomType.Parameter("enabledCloudwatchLogsExports") List enabledCloudwatchLogsExports, - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("engine") String engine, - @CustomType.Parameter("engineVersion") String engineVersion, - @CustomType.Parameter("hostedZoneId") String hostedZoneId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("iops") Integer iops, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("licenseModel") String licenseModel, - @CustomType.Parameter("masterUsername") String masterUsername, - @CustomType.Parameter("monitoringInterval") Integer monitoringInterval, - @CustomType.Parameter("monitoringRoleArn") String monitoringRoleArn, - @CustomType.Parameter("multiAz") Boolean multiAz, - @CustomType.Parameter("optionGroupMemberships") List optionGroupMemberships, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("preferredBackupWindow") String preferredBackupWindow, - @CustomType.Parameter("preferredMaintenanceWindow") String preferredMaintenanceWindow, - @CustomType.Parameter("publiclyAccessible") Boolean publiclyAccessible, - @CustomType.Parameter("replicateSourceDb") String replicateSourceDb, - @CustomType.Parameter("resourceId") String resourceId, - @CustomType.Parameter("storageEncrypted") Boolean storageEncrypted, - @CustomType.Parameter("storageType") String storageType, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("timezone") String timezone, - @CustomType.Parameter("vpcSecurityGroups") List vpcSecurityGroups) { - this.address = address; - this.allocatedStorage = allocatedStorage; - this.autoMinorVersionUpgrade = autoMinorVersionUpgrade; - this.availabilityZone = availabilityZone; - this.backupRetentionPeriod = backupRetentionPeriod; - this.caCertIdentifier = caCertIdentifier; - this.dbClusterIdentifier = dbClusterIdentifier; - this.dbInstanceArn = dbInstanceArn; - this.dbInstanceClass = dbInstanceClass; - this.dbInstanceIdentifier = dbInstanceIdentifier; - this.dbInstancePort = dbInstancePort; - this.dbName = dbName; - this.dbParameterGroups = dbParameterGroups; - this.dbSecurityGroups = dbSecurityGroups; - this.dbSubnetGroup = dbSubnetGroup; - this.enabledCloudwatchLogsExports = enabledCloudwatchLogsExports; - this.endpoint = endpoint; - this.engine = engine; - this.engineVersion = engineVersion; - this.hostedZoneId = hostedZoneId; - this.id = id; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.licenseModel = licenseModel; - this.masterUsername = masterUsername; - this.monitoringInterval = monitoringInterval; - this.monitoringRoleArn = monitoringRoleArn; - this.multiAz = multiAz; - this.optionGroupMemberships = optionGroupMemberships; - this.port = port; - this.preferredBackupWindow = preferredBackupWindow; - this.preferredMaintenanceWindow = preferredMaintenanceWindow; - this.publiclyAccessible = publiclyAccessible; - this.replicateSourceDb = replicateSourceDb; - this.resourceId = resourceId; - this.storageEncrypted = storageEncrypted; - this.storageType = storageType; - this.tags = tags; - this.timezone = timezone; - this.vpcSecurityGroups = vpcSecurityGroups; - } + private List vpcSecurityGroups; + private GetInstanceResult() {} /** * @return The hostname of the RDS instance. See also `endpoint` and `port`. * @@ -570,7 +487,7 @@ public static Builder builder() { public static Builder builder(GetInstanceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String address; private Integer allocatedStorage; @@ -612,11 +529,7 @@ public static final class Builder { private Map tags; private String timezone; private List vpcSecurityGroups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstanceResult defaults) { Objects.requireNonNull(defaults); this.address = defaults.address; @@ -661,54 +574,67 @@ public Builder(GetInstanceResult defaults) { this.vpcSecurityGroups = defaults.vpcSecurityGroups; } + @CustomType.Setter public Builder address(String address) { this.address = Objects.requireNonNull(address); return this; } + @CustomType.Setter public Builder allocatedStorage(Integer allocatedStorage) { this.allocatedStorage = Objects.requireNonNull(allocatedStorage); return this; } + @CustomType.Setter public Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) { this.autoMinorVersionUpgrade = Objects.requireNonNull(autoMinorVersionUpgrade); return this; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder backupRetentionPeriod(Integer backupRetentionPeriod) { this.backupRetentionPeriod = Objects.requireNonNull(backupRetentionPeriod); return this; } + @CustomType.Setter public Builder caCertIdentifier(String caCertIdentifier) { this.caCertIdentifier = Objects.requireNonNull(caCertIdentifier); return this; } + @CustomType.Setter public Builder dbClusterIdentifier(String dbClusterIdentifier) { this.dbClusterIdentifier = Objects.requireNonNull(dbClusterIdentifier); return this; } + @CustomType.Setter public Builder dbInstanceArn(String dbInstanceArn) { this.dbInstanceArn = Objects.requireNonNull(dbInstanceArn); return this; } + @CustomType.Setter public Builder dbInstanceClass(String dbInstanceClass) { this.dbInstanceClass = Objects.requireNonNull(dbInstanceClass); return this; } + @CustomType.Setter public Builder dbInstanceIdentifier(String dbInstanceIdentifier) { this.dbInstanceIdentifier = Objects.requireNonNull(dbInstanceIdentifier); return this; } + @CustomType.Setter public Builder dbInstancePort(Integer dbInstancePort) { this.dbInstancePort = Objects.requireNonNull(dbInstancePort); return this; } + @CustomType.Setter public Builder dbName(String dbName) { this.dbName = Objects.requireNonNull(dbName); return this; } + @CustomType.Setter public Builder dbParameterGroups(List dbParameterGroups) { this.dbParameterGroups = Objects.requireNonNull(dbParameterGroups); return this; @@ -716,6 +642,7 @@ public Builder dbParameterGroups(List dbParameterGroups) { public Builder dbParameterGroups(String... dbParameterGroups) { return dbParameterGroups(List.of(dbParameterGroups)); } + @CustomType.Setter public Builder dbSecurityGroups(List dbSecurityGroups) { this.dbSecurityGroups = Objects.requireNonNull(dbSecurityGroups); return this; @@ -723,10 +650,12 @@ public Builder dbSecurityGroups(List dbSecurityGroups) { public Builder dbSecurityGroups(String... dbSecurityGroups) { return dbSecurityGroups(List.of(dbSecurityGroups)); } + @CustomType.Setter public Builder dbSubnetGroup(String dbSubnetGroup) { this.dbSubnetGroup = Objects.requireNonNull(dbSubnetGroup); return this; } + @CustomType.Setter public Builder enabledCloudwatchLogsExports(List enabledCloudwatchLogsExports) { this.enabledCloudwatchLogsExports = Objects.requireNonNull(enabledCloudwatchLogsExports); return this; @@ -734,54 +663,67 @@ public Builder enabledCloudwatchLogsExports(List enabledCloudwatchLogsEx public Builder enabledCloudwatchLogsExports(String... enabledCloudwatchLogsExports) { return enabledCloudwatchLogsExports(List.of(enabledCloudwatchLogsExports)); } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder engine(String engine) { this.engine = Objects.requireNonNull(engine); return this; } + @CustomType.Setter public Builder engineVersion(String engineVersion) { this.engineVersion = Objects.requireNonNull(engineVersion); return this; } + @CustomType.Setter public Builder hostedZoneId(String hostedZoneId) { this.hostedZoneId = Objects.requireNonNull(hostedZoneId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder iops(Integer iops) { this.iops = Objects.requireNonNull(iops); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder licenseModel(String licenseModel) { this.licenseModel = Objects.requireNonNull(licenseModel); return this; } + @CustomType.Setter public Builder masterUsername(String masterUsername) { this.masterUsername = Objects.requireNonNull(masterUsername); return this; } + @CustomType.Setter public Builder monitoringInterval(Integer monitoringInterval) { this.monitoringInterval = Objects.requireNonNull(monitoringInterval); return this; } + @CustomType.Setter public Builder monitoringRoleArn(String monitoringRoleArn) { this.monitoringRoleArn = Objects.requireNonNull(monitoringRoleArn); return this; } + @CustomType.Setter public Builder multiAz(Boolean multiAz) { this.multiAz = Objects.requireNonNull(multiAz); return this; } + @CustomType.Setter public Builder optionGroupMemberships(List optionGroupMemberships) { this.optionGroupMemberships = Objects.requireNonNull(optionGroupMemberships); return this; @@ -789,54 +731,107 @@ public Builder optionGroupMemberships(List optionGroupMemberships) { public Builder optionGroupMemberships(String... optionGroupMemberships) { return optionGroupMemberships(List.of(optionGroupMemberships)); } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder preferredBackupWindow(String preferredBackupWindow) { this.preferredBackupWindow = Objects.requireNonNull(preferredBackupWindow); return this; } + @CustomType.Setter public Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) { this.preferredMaintenanceWindow = Objects.requireNonNull(preferredMaintenanceWindow); return this; } + @CustomType.Setter public Builder publiclyAccessible(Boolean publiclyAccessible) { this.publiclyAccessible = Objects.requireNonNull(publiclyAccessible); return this; } + @CustomType.Setter public Builder replicateSourceDb(String replicateSourceDb) { this.replicateSourceDb = Objects.requireNonNull(replicateSourceDb); return this; } + @CustomType.Setter public Builder resourceId(String resourceId) { this.resourceId = Objects.requireNonNull(resourceId); return this; } + @CustomType.Setter public Builder storageEncrypted(Boolean storageEncrypted) { this.storageEncrypted = Objects.requireNonNull(storageEncrypted); return this; } + @CustomType.Setter public Builder storageType(String storageType) { this.storageType = Objects.requireNonNull(storageType); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder timezone(String timezone) { this.timezone = Objects.requireNonNull(timezone); return this; } + @CustomType.Setter public Builder vpcSecurityGroups(List vpcSecurityGroups) { this.vpcSecurityGroups = Objects.requireNonNull(vpcSecurityGroups); return this; } public Builder vpcSecurityGroups(String... vpcSecurityGroups) { return vpcSecurityGroups(List.of(vpcSecurityGroups)); - } public GetInstanceResult build() { - return new GetInstanceResult(address, allocatedStorage, autoMinorVersionUpgrade, availabilityZone, backupRetentionPeriod, caCertIdentifier, dbClusterIdentifier, dbInstanceArn, dbInstanceClass, dbInstanceIdentifier, dbInstancePort, dbName, dbParameterGroups, dbSecurityGroups, dbSubnetGroup, enabledCloudwatchLogsExports, endpoint, engine, engineVersion, hostedZoneId, id, iops, kmsKeyId, licenseModel, masterUsername, monitoringInterval, monitoringRoleArn, multiAz, optionGroupMemberships, port, preferredBackupWindow, preferredMaintenanceWindow, publiclyAccessible, replicateSourceDb, resourceId, storageEncrypted, storageType, tags, timezone, vpcSecurityGroups); + } + public GetInstanceResult build() { + final var o = new GetInstanceResult(); + o.address = address; + o.allocatedStorage = allocatedStorage; + o.autoMinorVersionUpgrade = autoMinorVersionUpgrade; + o.availabilityZone = availabilityZone; + o.backupRetentionPeriod = backupRetentionPeriod; + o.caCertIdentifier = caCertIdentifier; + o.dbClusterIdentifier = dbClusterIdentifier; + o.dbInstanceArn = dbInstanceArn; + o.dbInstanceClass = dbInstanceClass; + o.dbInstanceIdentifier = dbInstanceIdentifier; + o.dbInstancePort = dbInstancePort; + o.dbName = dbName; + o.dbParameterGroups = dbParameterGroups; + o.dbSecurityGroups = dbSecurityGroups; + o.dbSubnetGroup = dbSubnetGroup; + o.enabledCloudwatchLogsExports = enabledCloudwatchLogsExports; + o.endpoint = endpoint; + o.engine = engine; + o.engineVersion = engineVersion; + o.hostedZoneId = hostedZoneId; + o.id = id; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.licenseModel = licenseModel; + o.masterUsername = masterUsername; + o.monitoringInterval = monitoringInterval; + o.monitoringRoleArn = monitoringRoleArn; + o.multiAz = multiAz; + o.optionGroupMemberships = optionGroupMemberships; + o.port = port; + o.preferredBackupWindow = preferredBackupWindow; + o.preferredMaintenanceWindow = preferredMaintenanceWindow; + o.publiclyAccessible = publiclyAccessible; + o.replicateSourceDb = replicateSourceDb; + o.resourceId = resourceId; + o.storageEncrypted = storageEncrypted; + o.storageType = storageType; + o.tags = tags; + o.timezone = timezone; + o.vpcSecurityGroups = vpcSecurityGroups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetOrderableDbInstanceResult.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetOrderableDbInstanceResult.java index 4db15c72e03..d8c94746e54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetOrderableDbInstanceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetOrderableDbInstanceResult.java @@ -14,146 +14,85 @@ @CustomType public final class GetOrderableDbInstanceResult { - private final String availabilityZoneGroup; + private String availabilityZoneGroup; /** * @return Availability zones where the instance is available. * */ - private final List availabilityZones; - private final String engine; - private final String engineVersion; + private List availabilityZones; + private String engine; + private String engineVersion; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceClass; - private final String licenseModel; + private String id; + private String instanceClass; + private String licenseModel; /** * @return Maximum total provisioned IOPS for a DB instance. * */ - private final Integer maxIopsPerDbInstance; + private Integer maxIopsPerDbInstance; /** * @return Maximum provisioned IOPS per GiB for a DB instance. * */ - private final Double maxIopsPerGib; + private Double maxIopsPerGib; /** * @return Maximum storage size for a DB instance. * */ - private final Integer maxStorageSize; + private Integer maxStorageSize; /** * @return Minimum total provisioned IOPS for a DB instance. * */ - private final Integer minIopsPerDbInstance; + private Integer minIopsPerDbInstance; /** * @return Minimum provisioned IOPS per GiB for a DB instance. * */ - private final Double minIopsPerGib; + private Double minIopsPerGib; /** * @return Minimum storage size for a DB instance. * */ - private final Integer minStorageSize; + private Integer minStorageSize; /** * @return Whether a DB instance is Multi-AZ capable. * */ - private final Boolean multiAzCapable; + private Boolean multiAzCapable; /** * @return Whether a DB instance supports RDS on Outposts. * */ - private final Boolean outpostCapable; - private final @Nullable List preferredEngineVersions; - private final @Nullable List preferredInstanceClasses; + private Boolean outpostCapable; + private @Nullable List preferredEngineVersions; + private @Nullable List preferredInstanceClasses; /** * @return Whether a DB instance can have a read replica. * */ - private final Boolean readReplicaCapable; - private final String storageType; + private Boolean readReplicaCapable; + private String storageType; /** * @return A list of the supported DB engine modes. * */ - private final List supportedEngineModes; - private final Boolean supportsEnhancedMonitoring; - private final Boolean supportsGlobalDatabases; - private final Boolean supportsIamDatabaseAuthentication; - private final Boolean supportsIops; - private final Boolean supportsKerberosAuthentication; - private final Boolean supportsPerformanceInsights; - private final Boolean supportsStorageAutoscaling; - private final Boolean supportsStorageEncryption; - private final Boolean vpc; - - @CustomType.Constructor - private GetOrderableDbInstanceResult( - @CustomType.Parameter("availabilityZoneGroup") String availabilityZoneGroup, - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("engine") String engine, - @CustomType.Parameter("engineVersion") String engineVersion, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceClass") String instanceClass, - @CustomType.Parameter("licenseModel") String licenseModel, - @CustomType.Parameter("maxIopsPerDbInstance") Integer maxIopsPerDbInstance, - @CustomType.Parameter("maxIopsPerGib") Double maxIopsPerGib, - @CustomType.Parameter("maxStorageSize") Integer maxStorageSize, - @CustomType.Parameter("minIopsPerDbInstance") Integer minIopsPerDbInstance, - @CustomType.Parameter("minIopsPerGib") Double minIopsPerGib, - @CustomType.Parameter("minStorageSize") Integer minStorageSize, - @CustomType.Parameter("multiAzCapable") Boolean multiAzCapable, - @CustomType.Parameter("outpostCapable") Boolean outpostCapable, - @CustomType.Parameter("preferredEngineVersions") @Nullable List preferredEngineVersions, - @CustomType.Parameter("preferredInstanceClasses") @Nullable List preferredInstanceClasses, - @CustomType.Parameter("readReplicaCapable") Boolean readReplicaCapable, - @CustomType.Parameter("storageType") String storageType, - @CustomType.Parameter("supportedEngineModes") List supportedEngineModes, - @CustomType.Parameter("supportsEnhancedMonitoring") Boolean supportsEnhancedMonitoring, - @CustomType.Parameter("supportsGlobalDatabases") Boolean supportsGlobalDatabases, - @CustomType.Parameter("supportsIamDatabaseAuthentication") Boolean supportsIamDatabaseAuthentication, - @CustomType.Parameter("supportsIops") Boolean supportsIops, - @CustomType.Parameter("supportsKerberosAuthentication") Boolean supportsKerberosAuthentication, - @CustomType.Parameter("supportsPerformanceInsights") Boolean supportsPerformanceInsights, - @CustomType.Parameter("supportsStorageAutoscaling") Boolean supportsStorageAutoscaling, - @CustomType.Parameter("supportsStorageEncryption") Boolean supportsStorageEncryption, - @CustomType.Parameter("vpc") Boolean vpc) { - this.availabilityZoneGroup = availabilityZoneGroup; - this.availabilityZones = availabilityZones; - this.engine = engine; - this.engineVersion = engineVersion; - this.id = id; - this.instanceClass = instanceClass; - this.licenseModel = licenseModel; - this.maxIopsPerDbInstance = maxIopsPerDbInstance; - this.maxIopsPerGib = maxIopsPerGib; - this.maxStorageSize = maxStorageSize; - this.minIopsPerDbInstance = minIopsPerDbInstance; - this.minIopsPerGib = minIopsPerGib; - this.minStorageSize = minStorageSize; - this.multiAzCapable = multiAzCapable; - this.outpostCapable = outpostCapable; - this.preferredEngineVersions = preferredEngineVersions; - this.preferredInstanceClasses = preferredInstanceClasses; - this.readReplicaCapable = readReplicaCapable; - this.storageType = storageType; - this.supportedEngineModes = supportedEngineModes; - this.supportsEnhancedMonitoring = supportsEnhancedMonitoring; - this.supportsGlobalDatabases = supportsGlobalDatabases; - this.supportsIamDatabaseAuthentication = supportsIamDatabaseAuthentication; - this.supportsIops = supportsIops; - this.supportsKerberosAuthentication = supportsKerberosAuthentication; - this.supportsPerformanceInsights = supportsPerformanceInsights; - this.supportsStorageAutoscaling = supportsStorageAutoscaling; - this.supportsStorageEncryption = supportsStorageEncryption; - this.vpc = vpc; - } + private List supportedEngineModes; + private Boolean supportsEnhancedMonitoring; + private Boolean supportsGlobalDatabases; + private Boolean supportsIamDatabaseAuthentication; + private Boolean supportsIops; + private Boolean supportsKerberosAuthentication; + private Boolean supportsPerformanceInsights; + private Boolean supportsStorageAutoscaling; + private Boolean supportsStorageEncryption; + private Boolean vpc; + private GetOrderableDbInstanceResult() {} public String availabilityZoneGroup() { return this.availabilityZoneGroup; } @@ -297,7 +236,7 @@ public static Builder builder() { public static Builder builder(GetOrderableDbInstanceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String availabilityZoneGroup; private List availabilityZones; @@ -328,11 +267,7 @@ public static final class Builder { private Boolean supportsStorageAutoscaling; private Boolean supportsStorageEncryption; private Boolean vpc; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOrderableDbInstanceResult defaults) { Objects.requireNonNull(defaults); this.availabilityZoneGroup = defaults.availabilityZoneGroup; @@ -366,10 +301,12 @@ public Builder(GetOrderableDbInstanceResult defaults) { this.vpc = defaults.vpc; } + @CustomType.Setter public Builder availabilityZoneGroup(String availabilityZoneGroup) { this.availabilityZoneGroup = Objects.requireNonNull(availabilityZoneGroup); return this; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -377,58 +314,72 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder engine(String engine) { this.engine = Objects.requireNonNull(engine); return this; } + @CustomType.Setter public Builder engineVersion(String engineVersion) { this.engineVersion = Objects.requireNonNull(engineVersion); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceClass(String instanceClass) { this.instanceClass = Objects.requireNonNull(instanceClass); return this; } + @CustomType.Setter public Builder licenseModel(String licenseModel) { this.licenseModel = Objects.requireNonNull(licenseModel); return this; } + @CustomType.Setter public Builder maxIopsPerDbInstance(Integer maxIopsPerDbInstance) { this.maxIopsPerDbInstance = Objects.requireNonNull(maxIopsPerDbInstance); return this; } + @CustomType.Setter public Builder maxIopsPerGib(Double maxIopsPerGib) { this.maxIopsPerGib = Objects.requireNonNull(maxIopsPerGib); return this; } + @CustomType.Setter public Builder maxStorageSize(Integer maxStorageSize) { this.maxStorageSize = Objects.requireNonNull(maxStorageSize); return this; } + @CustomType.Setter public Builder minIopsPerDbInstance(Integer minIopsPerDbInstance) { this.minIopsPerDbInstance = Objects.requireNonNull(minIopsPerDbInstance); return this; } + @CustomType.Setter public Builder minIopsPerGib(Double minIopsPerGib) { this.minIopsPerGib = Objects.requireNonNull(minIopsPerGib); return this; } + @CustomType.Setter public Builder minStorageSize(Integer minStorageSize) { this.minStorageSize = Objects.requireNonNull(minStorageSize); return this; } + @CustomType.Setter public Builder multiAzCapable(Boolean multiAzCapable) { this.multiAzCapable = Objects.requireNonNull(multiAzCapable); return this; } + @CustomType.Setter public Builder outpostCapable(Boolean outpostCapable) { this.outpostCapable = Objects.requireNonNull(outpostCapable); return this; } + @CustomType.Setter public Builder preferredEngineVersions(@Nullable List preferredEngineVersions) { this.preferredEngineVersions = preferredEngineVersions; return this; @@ -436,6 +387,7 @@ public Builder preferredEngineVersions(@Nullable List preferredEngineVer public Builder preferredEngineVersions(String... preferredEngineVersions) { return preferredEngineVersions(List.of(preferredEngineVersions)); } + @CustomType.Setter public Builder preferredInstanceClasses(@Nullable List preferredInstanceClasses) { this.preferredInstanceClasses = preferredInstanceClasses; return this; @@ -443,14 +395,17 @@ public Builder preferredInstanceClasses(@Nullable List preferredInstance public Builder preferredInstanceClasses(String... preferredInstanceClasses) { return preferredInstanceClasses(List.of(preferredInstanceClasses)); } + @CustomType.Setter public Builder readReplicaCapable(Boolean readReplicaCapable) { this.readReplicaCapable = Objects.requireNonNull(readReplicaCapable); return this; } + @CustomType.Setter public Builder storageType(String storageType) { this.storageType = Objects.requireNonNull(storageType); return this; } + @CustomType.Setter public Builder supportedEngineModes(List supportedEngineModes) { this.supportedEngineModes = Objects.requireNonNull(supportedEngineModes); return this; @@ -458,43 +413,83 @@ public Builder supportedEngineModes(List supportedEngineModes) { public Builder supportedEngineModes(String... supportedEngineModes) { return supportedEngineModes(List.of(supportedEngineModes)); } + @CustomType.Setter public Builder supportsEnhancedMonitoring(Boolean supportsEnhancedMonitoring) { this.supportsEnhancedMonitoring = Objects.requireNonNull(supportsEnhancedMonitoring); return this; } + @CustomType.Setter public Builder supportsGlobalDatabases(Boolean supportsGlobalDatabases) { this.supportsGlobalDatabases = Objects.requireNonNull(supportsGlobalDatabases); return this; } + @CustomType.Setter public Builder supportsIamDatabaseAuthentication(Boolean supportsIamDatabaseAuthentication) { this.supportsIamDatabaseAuthentication = Objects.requireNonNull(supportsIamDatabaseAuthentication); return this; } + @CustomType.Setter public Builder supportsIops(Boolean supportsIops) { this.supportsIops = Objects.requireNonNull(supportsIops); return this; } + @CustomType.Setter public Builder supportsKerberosAuthentication(Boolean supportsKerberosAuthentication) { this.supportsKerberosAuthentication = Objects.requireNonNull(supportsKerberosAuthentication); return this; } + @CustomType.Setter public Builder supportsPerformanceInsights(Boolean supportsPerformanceInsights) { this.supportsPerformanceInsights = Objects.requireNonNull(supportsPerformanceInsights); return this; } + @CustomType.Setter public Builder supportsStorageAutoscaling(Boolean supportsStorageAutoscaling) { this.supportsStorageAutoscaling = Objects.requireNonNull(supportsStorageAutoscaling); return this; } + @CustomType.Setter public Builder supportsStorageEncryption(Boolean supportsStorageEncryption) { this.supportsStorageEncryption = Objects.requireNonNull(supportsStorageEncryption); return this; } + @CustomType.Setter public Builder vpc(Boolean vpc) { this.vpc = Objects.requireNonNull(vpc); return this; - } public GetOrderableDbInstanceResult build() { - return new GetOrderableDbInstanceResult(availabilityZoneGroup, availabilityZones, engine, engineVersion, id, instanceClass, licenseModel, maxIopsPerDbInstance, maxIopsPerGib, maxStorageSize, minIopsPerDbInstance, minIopsPerGib, minStorageSize, multiAzCapable, outpostCapable, preferredEngineVersions, preferredInstanceClasses, readReplicaCapable, storageType, supportedEngineModes, supportsEnhancedMonitoring, supportsGlobalDatabases, supportsIamDatabaseAuthentication, supportsIops, supportsKerberosAuthentication, supportsPerformanceInsights, supportsStorageAutoscaling, supportsStorageEncryption, vpc); + } + public GetOrderableDbInstanceResult build() { + final var o = new GetOrderableDbInstanceResult(); + o.availabilityZoneGroup = availabilityZoneGroup; + o.availabilityZones = availabilityZones; + o.engine = engine; + o.engineVersion = engineVersion; + o.id = id; + o.instanceClass = instanceClass; + o.licenseModel = licenseModel; + o.maxIopsPerDbInstance = maxIopsPerDbInstance; + o.maxIopsPerGib = maxIopsPerGib; + o.maxStorageSize = maxStorageSize; + o.minIopsPerDbInstance = minIopsPerDbInstance; + o.minIopsPerGib = minIopsPerGib; + o.minStorageSize = minStorageSize; + o.multiAzCapable = multiAzCapable; + o.outpostCapable = outpostCapable; + o.preferredEngineVersions = preferredEngineVersions; + o.preferredInstanceClasses = preferredInstanceClasses; + o.readReplicaCapable = readReplicaCapable; + o.storageType = storageType; + o.supportedEngineModes = supportedEngineModes; + o.supportsEnhancedMonitoring = supportsEnhancedMonitoring; + o.supportsGlobalDatabases = supportsGlobalDatabases; + o.supportsIamDatabaseAuthentication = supportsIamDatabaseAuthentication; + o.supportsIops = supportsIops; + o.supportsKerberosAuthentication = supportsKerberosAuthentication; + o.supportsPerformanceInsights = supportsPerformanceInsights; + o.supportsStorageAutoscaling = supportsStorageAutoscaling; + o.supportsStorageEncryption = supportsStorageEncryption; + o.vpc = vpc; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetProxyAuth.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetProxyAuth.java index 7691ae23b9b..8324acf30ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetProxyAuth.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetProxyAuth.java @@ -9,26 +9,13 @@ @CustomType public final class GetProxyAuth { - private final String authScheme; - private final String description; - private final String iamAuth; - private final String secretArn; - private final String username; - - @CustomType.Constructor - private GetProxyAuth( - @CustomType.Parameter("authScheme") String authScheme, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("iamAuth") String iamAuth, - @CustomType.Parameter("secretArn") String secretArn, - @CustomType.Parameter("username") String username) { - this.authScheme = authScheme; - this.description = description; - this.iamAuth = iamAuth; - this.secretArn = secretArn; - this.username = username; - } + private String authScheme; + private String description; + private String iamAuth; + private String secretArn; + private String username; + private GetProxyAuth() {} public String authScheme() { return this.authScheme; } @@ -52,18 +39,14 @@ public static Builder builder() { public static Builder builder(GetProxyAuth defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String authScheme; private String description; private String iamAuth; private String secretArn; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetProxyAuth defaults) { Objects.requireNonNull(defaults); this.authScheme = defaults.authScheme; @@ -73,27 +56,39 @@ public Builder(GetProxyAuth defaults) { this.username = defaults.username; } + @CustomType.Setter public Builder authScheme(String authScheme) { this.authScheme = Objects.requireNonNull(authScheme); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder iamAuth(String iamAuth) { this.iamAuth = Objects.requireNonNull(iamAuth); return this; } + @CustomType.Setter public Builder secretArn(String secretArn) { this.secretArn = Objects.requireNonNull(secretArn); return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public GetProxyAuth build() { - return new GetProxyAuth(authScheme, description, iamAuth, secretArn, username); + } + public GetProxyAuth build() { + final var o = new GetProxyAuth(); + o.authScheme = authScheme; + o.description = description; + o.iamAuth = iamAuth; + o.secretArn = secretArn; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetProxyResult.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetProxyResult.java index 7faba0ee4e1..79998baac8d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetProxyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetProxyResult.java @@ -17,94 +17,65 @@ public final class GetProxyResult { * @return The ARN of the DB Proxy. * */ - private final String arn; + private String arn; /** * @return The configuration(s) with authorization mechanisms to connect to the associated instance or cluster. * */ - private final List auths; + private List auths; /** * @return Whether the proxy includes detailed information about SQL statements in its logs. * */ - private final Boolean debugLogging; + private Boolean debugLogging; /** * @return The endpoint that you can use to connect to the DB proxy. * */ - private final String endpoint; + private String endpoint; /** * @return The kinds of databases that the proxy can connect to. * */ - private final String engineFamily; + private String engineFamily; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The number of seconds a connection to the proxy can have no activity before the proxy drops the client connection. * */ - private final Integer idleClientTimeout; - private final String name; + private Integer idleClientTimeout; + private String name; /** * @return Indicates whether Transport Layer Security (TLS) encryption is required for connections to the proxy. * */ - private final Boolean requireTls; + private Boolean requireTls; /** * @return The Amazon Resource Name (ARN) for the IAM role that the proxy uses to access Amazon Secrets Manager. * */ - private final String roleArn; + private String roleArn; /** * @return Provides the VPC ID of the DB proxy. * */ - private final String vpcId; + private String vpcId; /** * @return Provides a list of VPC security groups that the proxy belongs to. * */ - private final List vpcSecurityGroupIds; + private List vpcSecurityGroupIds; /** * @return The EC2 subnet IDs for the proxy. * */ - private final List vpcSubnetIds; - - @CustomType.Constructor - private GetProxyResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("auths") List auths, - @CustomType.Parameter("debugLogging") Boolean debugLogging, - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("engineFamily") String engineFamily, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("idleClientTimeout") Integer idleClientTimeout, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("requireTls") Boolean requireTls, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("vpcId") String vpcId, - @CustomType.Parameter("vpcSecurityGroupIds") List vpcSecurityGroupIds, - @CustomType.Parameter("vpcSubnetIds") List vpcSubnetIds) { - this.arn = arn; - this.auths = auths; - this.debugLogging = debugLogging; - this.endpoint = endpoint; - this.engineFamily = engineFamily; - this.id = id; - this.idleClientTimeout = idleClientTimeout; - this.name = name; - this.requireTls = requireTls; - this.roleArn = roleArn; - this.vpcId = vpcId; - this.vpcSecurityGroupIds = vpcSecurityGroupIds; - this.vpcSubnetIds = vpcSubnetIds; - } + private List vpcSubnetIds; + private GetProxyResult() {} /** * @return The ARN of the DB Proxy. * @@ -200,7 +171,7 @@ public static Builder builder() { public static Builder builder(GetProxyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private List auths; @@ -215,11 +186,7 @@ public static final class Builder { private String vpcId; private List vpcSecurityGroupIds; private List vpcSubnetIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetProxyResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -237,10 +204,12 @@ public Builder(GetProxyResult defaults) { this.vpcSubnetIds = defaults.vpcSubnetIds; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder auths(List auths) { this.auths = Objects.requireNonNull(auths); return this; @@ -248,42 +217,52 @@ public Builder auths(List auths) { public Builder auths(GetProxyAuth... auths) { return auths(List.of(auths)); } + @CustomType.Setter public Builder debugLogging(Boolean debugLogging) { this.debugLogging = Objects.requireNonNull(debugLogging); return this; } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder engineFamily(String engineFamily) { this.engineFamily = Objects.requireNonNull(engineFamily); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder idleClientTimeout(Integer idleClientTimeout) { this.idleClientTimeout = Objects.requireNonNull(idleClientTimeout); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder requireTls(Boolean requireTls) { this.requireTls = Objects.requireNonNull(requireTls); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; } + @CustomType.Setter public Builder vpcSecurityGroupIds(List vpcSecurityGroupIds) { this.vpcSecurityGroupIds = Objects.requireNonNull(vpcSecurityGroupIds); return this; @@ -291,14 +270,30 @@ public Builder vpcSecurityGroupIds(List vpcSecurityGroupIds) { public Builder vpcSecurityGroupIds(String... vpcSecurityGroupIds) { return vpcSecurityGroupIds(List.of(vpcSecurityGroupIds)); } + @CustomType.Setter public Builder vpcSubnetIds(List vpcSubnetIds) { this.vpcSubnetIds = Objects.requireNonNull(vpcSubnetIds); return this; } public Builder vpcSubnetIds(String... vpcSubnetIds) { return vpcSubnetIds(List.of(vpcSubnetIds)); - } public GetProxyResult build() { - return new GetProxyResult(arn, auths, debugLogging, endpoint, engineFamily, id, idleClientTimeout, name, requireTls, roleArn, vpcId, vpcSecurityGroupIds, vpcSubnetIds); + } + public GetProxyResult build() { + final var o = new GetProxyResult(); + o.arn = arn; + o.auths = auths; + o.debugLogging = debugLogging; + o.endpoint = endpoint; + o.engineFamily = engineFamily; + o.id = id; + o.idleClientTimeout = idleClientTimeout; + o.name = name; + o.requireTls = requireTls; + o.roleArn = roleArn; + o.vpcId = vpcId; + o.vpcSecurityGroupIds = vpcSecurityGroupIds; + o.vpcSubnetIds = vpcSubnetIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetSnapshotResult.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetSnapshotResult.java index a926d5d91e2..68813d107f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetSnapshotResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetSnapshotResult.java @@ -17,147 +17,96 @@ public final class GetSnapshotResult { * @return Specifies the allocated storage size in gigabytes (GB). * */ - private final Integer allocatedStorage; + private Integer allocatedStorage; /** * @return Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot. * */ - private final String availabilityZone; - private final @Nullable String dbInstanceIdentifier; + private String availabilityZone; + private @Nullable String dbInstanceIdentifier; /** * @return The Amazon Resource Name (ARN) for the DB snapshot. * */ - private final String dbSnapshotArn; - private final @Nullable String dbSnapshotIdentifier; + private String dbSnapshotArn; + private @Nullable String dbSnapshotIdentifier; /** * @return Specifies whether the DB snapshot is encrypted. * */ - private final Boolean encrypted; + private Boolean encrypted; /** * @return Specifies the name of the database engine. * */ - private final String engine; + private String engine; /** * @return Specifies the version of the database engine. * */ - private final String engineVersion; + private String engineVersion; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable Boolean includePublic; - private final @Nullable Boolean includeShared; + private String id; + private @Nullable Boolean includePublic; + private @Nullable Boolean includeShared; /** * @return Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot. * */ - private final Integer iops; + private Integer iops; /** * @return The ARN for the KMS encryption key. * */ - private final String kmsKeyId; + private String kmsKeyId; /** * @return License model information for the restored DB instance. * */ - private final String licenseModel; - private final @Nullable Boolean mostRecent; + private String licenseModel; + private @Nullable Boolean mostRecent; /** * @return Provides the option group name for the DB snapshot. * */ - private final String optionGroupName; - private final Integer port; + private String optionGroupName; + private Integer port; /** * @return Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC). * */ - private final String snapshotCreateTime; - private final @Nullable String snapshotType; + private String snapshotCreateTime; + private @Nullable String snapshotType; /** * @return The DB snapshot Arn that the DB snapshot was copied from. It only has value in case of cross customer or cross region copy. * */ - private final String sourceDbSnapshotIdentifier; + private String sourceDbSnapshotIdentifier; /** * @return The region that the DB snapshot was created in or copied from. * */ - private final String sourceRegion; + private String sourceRegion; /** * @return Specifies the status of this DB snapshot. * */ - private final String status; + private String status; /** * @return Specifies the storage type associated with DB snapshot. * */ - private final String storageType; + private String storageType; /** * @return Specifies the ID of the VPC associated with the DB snapshot. * */ - private final String vpcId; - - @CustomType.Constructor - private GetSnapshotResult( - @CustomType.Parameter("allocatedStorage") Integer allocatedStorage, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("dbInstanceIdentifier") @Nullable String dbInstanceIdentifier, - @CustomType.Parameter("dbSnapshotArn") String dbSnapshotArn, - @CustomType.Parameter("dbSnapshotIdentifier") @Nullable String dbSnapshotIdentifier, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("engine") String engine, - @CustomType.Parameter("engineVersion") String engineVersion, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("includePublic") @Nullable Boolean includePublic, - @CustomType.Parameter("includeShared") @Nullable Boolean includeShared, - @CustomType.Parameter("iops") Integer iops, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("licenseModel") String licenseModel, - @CustomType.Parameter("mostRecent") @Nullable Boolean mostRecent, - @CustomType.Parameter("optionGroupName") String optionGroupName, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("snapshotCreateTime") String snapshotCreateTime, - @CustomType.Parameter("snapshotType") @Nullable String snapshotType, - @CustomType.Parameter("sourceDbSnapshotIdentifier") String sourceDbSnapshotIdentifier, - @CustomType.Parameter("sourceRegion") String sourceRegion, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("storageType") String storageType, - @CustomType.Parameter("vpcId") String vpcId) { - this.allocatedStorage = allocatedStorage; - this.availabilityZone = availabilityZone; - this.dbInstanceIdentifier = dbInstanceIdentifier; - this.dbSnapshotArn = dbSnapshotArn; - this.dbSnapshotIdentifier = dbSnapshotIdentifier; - this.encrypted = encrypted; - this.engine = engine; - this.engineVersion = engineVersion; - this.id = id; - this.includePublic = includePublic; - this.includeShared = includeShared; - this.iops = iops; - this.kmsKeyId = kmsKeyId; - this.licenseModel = licenseModel; - this.mostRecent = mostRecent; - this.optionGroupName = optionGroupName; - this.port = port; - this.snapshotCreateTime = snapshotCreateTime; - this.snapshotType = snapshotType; - this.sourceDbSnapshotIdentifier = sourceDbSnapshotIdentifier; - this.sourceRegion = sourceRegion; - this.status = status; - this.storageType = storageType; - this.vpcId = vpcId; - } + private String vpcId; + private GetSnapshotResult() {} /** * @return Specifies the allocated storage size in gigabytes (GB). * @@ -306,7 +255,7 @@ public static Builder builder() { public static Builder builder(GetSnapshotResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer allocatedStorage; private String availabilityZone; @@ -332,11 +281,7 @@ public static final class Builder { private String status; private String storageType; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSnapshotResult defaults) { Objects.requireNonNull(defaults); this.allocatedStorage = defaults.allocatedStorage; @@ -365,103 +310,153 @@ public Builder(GetSnapshotResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder allocatedStorage(Integer allocatedStorage) { this.allocatedStorage = Objects.requireNonNull(allocatedStorage); return this; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder dbInstanceIdentifier(@Nullable String dbInstanceIdentifier) { this.dbInstanceIdentifier = dbInstanceIdentifier; return this; } + @CustomType.Setter public Builder dbSnapshotArn(String dbSnapshotArn) { this.dbSnapshotArn = Objects.requireNonNull(dbSnapshotArn); return this; } + @CustomType.Setter public Builder dbSnapshotIdentifier(@Nullable String dbSnapshotIdentifier) { this.dbSnapshotIdentifier = dbSnapshotIdentifier; return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder engine(String engine) { this.engine = Objects.requireNonNull(engine); return this; } + @CustomType.Setter public Builder engineVersion(String engineVersion) { this.engineVersion = Objects.requireNonNull(engineVersion); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder includePublic(@Nullable Boolean includePublic) { this.includePublic = includePublic; return this; } + @CustomType.Setter public Builder includeShared(@Nullable Boolean includeShared) { this.includeShared = includeShared; return this; } + @CustomType.Setter public Builder iops(Integer iops) { this.iops = Objects.requireNonNull(iops); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder licenseModel(String licenseModel) { this.licenseModel = Objects.requireNonNull(licenseModel); return this; } + @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { this.mostRecent = mostRecent; return this; } + @CustomType.Setter public Builder optionGroupName(String optionGroupName) { this.optionGroupName = Objects.requireNonNull(optionGroupName); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder snapshotCreateTime(String snapshotCreateTime) { this.snapshotCreateTime = Objects.requireNonNull(snapshotCreateTime); return this; } + @CustomType.Setter public Builder snapshotType(@Nullable String snapshotType) { this.snapshotType = snapshotType; return this; } + @CustomType.Setter public Builder sourceDbSnapshotIdentifier(String sourceDbSnapshotIdentifier) { this.sourceDbSnapshotIdentifier = Objects.requireNonNull(sourceDbSnapshotIdentifier); return this; } + @CustomType.Setter public Builder sourceRegion(String sourceRegion) { this.sourceRegion = Objects.requireNonNull(sourceRegion); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder storageType(String storageType) { this.storageType = Objects.requireNonNull(storageType); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetSnapshotResult build() { - return new GetSnapshotResult(allocatedStorage, availabilityZone, dbInstanceIdentifier, dbSnapshotArn, dbSnapshotIdentifier, encrypted, engine, engineVersion, id, includePublic, includeShared, iops, kmsKeyId, licenseModel, mostRecent, optionGroupName, port, snapshotCreateTime, snapshotType, sourceDbSnapshotIdentifier, sourceRegion, status, storageType, vpcId); + } + public GetSnapshotResult build() { + final var o = new GetSnapshotResult(); + o.allocatedStorage = allocatedStorage; + o.availabilityZone = availabilityZone; + o.dbInstanceIdentifier = dbInstanceIdentifier; + o.dbSnapshotArn = dbSnapshotArn; + o.dbSnapshotIdentifier = dbSnapshotIdentifier; + o.encrypted = encrypted; + o.engine = engine; + o.engineVersion = engineVersion; + o.id = id; + o.includePublic = includePublic; + o.includeShared = includeShared; + o.iops = iops; + o.kmsKeyId = kmsKeyId; + o.licenseModel = licenseModel; + o.mostRecent = mostRecent; + o.optionGroupName = optionGroupName; + o.port = port; + o.snapshotCreateTime = snapshotCreateTime; + o.snapshotType = snapshotType; + o.sourceDbSnapshotIdentifier = sourceDbSnapshotIdentifier; + o.sourceRegion = sourceRegion; + o.status = status; + o.storageType = storageType; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetSubnetGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetSubnetGroupResult.java index 88b03a09066..25ade127ec6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetSubnetGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GetSubnetGroupResult.java @@ -14,52 +14,35 @@ public final class GetSubnetGroupResult { * @return The Amazon Resource Name (ARN) for the DB subnet group. * */ - private final String arn; + private String arn; /** * @return Provides the description of the DB subnet group. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return Provides the status of the DB subnet group. * */ - private final String status; + private String status; /** * @return Contains a list of subnet identifiers. * */ - private final List subnetIds; + private List subnetIds; /** * @return Provides the VPC ID of the subnet group. * */ - private final String vpcId; - - @CustomType.Constructor - private GetSubnetGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.description = description; - this.id = id; - this.name = name; - this.status = status; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private GetSubnetGroupResult() {} /** * @return The Amazon Resource Name (ARN) for the DB subnet group. * @@ -113,7 +96,7 @@ public static Builder builder() { public static Builder builder(GetSubnetGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -122,11 +105,7 @@ public static final class Builder { private String status; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSubnetGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -138,26 +117,32 @@ public Builder(GetSubnetGroupResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -165,11 +150,21 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetSubnetGroupResult build() { - return new GetSubnetGroupResult(arn, description, id, name, status, subnetIds, vpcId); + } + public GetSubnetGroupResult build() { + final var o = new GetSubnetGroupResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.name = name; + o.status = status; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GlobalClusterGlobalClusterMember.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GlobalClusterGlobalClusterMember.java index 767d23f3d5e..d649c3befa6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GlobalClusterGlobalClusterMember.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/GlobalClusterGlobalClusterMember.java @@ -16,21 +16,14 @@ public final class GlobalClusterGlobalClusterMember { * @return Amazon Resource Name (ARN) of member DB Cluster * */ - private final @Nullable String dbClusterArn; + private @Nullable String dbClusterArn; /** * @return Whether the member is the primary DB Cluster * */ - private final @Nullable Boolean isWriter; - - @CustomType.Constructor - private GlobalClusterGlobalClusterMember( - @CustomType.Parameter("dbClusterArn") @Nullable String dbClusterArn, - @CustomType.Parameter("isWriter") @Nullable Boolean isWriter) { - this.dbClusterArn = dbClusterArn; - this.isWriter = isWriter; - } + private @Nullable Boolean isWriter; + private GlobalClusterGlobalClusterMember() {} /** * @return Amazon Resource Name (ARN) of member DB Cluster * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(GlobalClusterGlobalClusterMember defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dbClusterArn; private @Nullable Boolean isWriter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GlobalClusterGlobalClusterMember defaults) { Objects.requireNonNull(defaults); this.dbClusterArn = defaults.dbClusterArn; this.isWriter = defaults.isWriter; } + @CustomType.Setter public Builder dbClusterArn(@Nullable String dbClusterArn) { this.dbClusterArn = dbClusterArn; return this; } + @CustomType.Setter public Builder isWriter(@Nullable Boolean isWriter) { this.isWriter = isWriter; return this; - } public GlobalClusterGlobalClusterMember build() { - return new GlobalClusterGlobalClusterMember(dbClusterArn, isWriter); + } + public GlobalClusterGlobalClusterMember build() { + final var o = new GlobalClusterGlobalClusterMember(); + o.dbClusterArn = dbClusterArn; + o.isWriter = isWriter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/InstanceRestoreToPointInTime.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/InstanceRestoreToPointInTime.java index e4d74091329..503f12adf47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/InstanceRestoreToPointInTime.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/InstanceRestoreToPointInTime.java @@ -16,42 +16,29 @@ public final class InstanceRestoreToPointInTime { * @return The date and time to restore from. Value must be a time in Universal Coordinated Time (UTC) format and must be before the latest restorable time for the DB instance. Cannot be specified with `use_latest_restorable_time`. * */ - private final @Nullable String restoreTime; + private @Nullable String restoreTime; /** * @return The ARN of the automated backup from which to restore. Required if `source_db_instance_identifier` or `source_dbi_resource_id` is not specified. * */ - private final @Nullable String sourceDbInstanceAutomatedBackupsArn; + private @Nullable String sourceDbInstanceAutomatedBackupsArn; /** * @return The identifier of the source DB instance from which to restore. Must match the identifier of an existing DB instance. Required if `source_db_instance_automated_backups_arn` or `source_dbi_resource_id` is not specified. * */ - private final @Nullable String sourceDbInstanceIdentifier; + private @Nullable String sourceDbInstanceIdentifier; /** * @return The resource ID of the source DB instance from which to restore. Required if `source_db_instance_identifier` or `source_db_instance_automated_backups_arn` is not specified. * */ - private final @Nullable String sourceDbiResourceId; + private @Nullable String sourceDbiResourceId; /** * @return A boolean value that indicates whether the DB instance is restored from the latest backup time. Defaults to `false`. Cannot be specified with `restore_time`. * */ - private final @Nullable Boolean useLatestRestorableTime; - - @CustomType.Constructor - private InstanceRestoreToPointInTime( - @CustomType.Parameter("restoreTime") @Nullable String restoreTime, - @CustomType.Parameter("sourceDbInstanceAutomatedBackupsArn") @Nullable String sourceDbInstanceAutomatedBackupsArn, - @CustomType.Parameter("sourceDbInstanceIdentifier") @Nullable String sourceDbInstanceIdentifier, - @CustomType.Parameter("sourceDbiResourceId") @Nullable String sourceDbiResourceId, - @CustomType.Parameter("useLatestRestorableTime") @Nullable Boolean useLatestRestorableTime) { - this.restoreTime = restoreTime; - this.sourceDbInstanceAutomatedBackupsArn = sourceDbInstanceAutomatedBackupsArn; - this.sourceDbInstanceIdentifier = sourceDbInstanceIdentifier; - this.sourceDbiResourceId = sourceDbiResourceId; - this.useLatestRestorableTime = useLatestRestorableTime; - } + private @Nullable Boolean useLatestRestorableTime; + private InstanceRestoreToPointInTime() {} /** * @return The date and time to restore from. Value must be a time in Universal Coordinated Time (UTC) format and must be before the latest restorable time for the DB instance. Cannot be specified with `use_latest_restorable_time`. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(InstanceRestoreToPointInTime defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String restoreTime; private @Nullable String sourceDbInstanceAutomatedBackupsArn; private @Nullable String sourceDbInstanceIdentifier; private @Nullable String sourceDbiResourceId; private @Nullable Boolean useLatestRestorableTime; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceRestoreToPointInTime defaults) { Objects.requireNonNull(defaults); this.restoreTime = defaults.restoreTime; @@ -116,27 +99,39 @@ public Builder(InstanceRestoreToPointInTime defaults) { this.useLatestRestorableTime = defaults.useLatestRestorableTime; } + @CustomType.Setter public Builder restoreTime(@Nullable String restoreTime) { this.restoreTime = restoreTime; return this; } + @CustomType.Setter public Builder sourceDbInstanceAutomatedBackupsArn(@Nullable String sourceDbInstanceAutomatedBackupsArn) { this.sourceDbInstanceAutomatedBackupsArn = sourceDbInstanceAutomatedBackupsArn; return this; } + @CustomType.Setter public Builder sourceDbInstanceIdentifier(@Nullable String sourceDbInstanceIdentifier) { this.sourceDbInstanceIdentifier = sourceDbInstanceIdentifier; return this; } + @CustomType.Setter public Builder sourceDbiResourceId(@Nullable String sourceDbiResourceId) { this.sourceDbiResourceId = sourceDbiResourceId; return this; } + @CustomType.Setter public Builder useLatestRestorableTime(@Nullable Boolean useLatestRestorableTime) { this.useLatestRestorableTime = useLatestRestorableTime; return this; - } public InstanceRestoreToPointInTime build() { - return new InstanceRestoreToPointInTime(restoreTime, sourceDbInstanceAutomatedBackupsArn, sourceDbInstanceIdentifier, sourceDbiResourceId, useLatestRestorableTime); + } + public InstanceRestoreToPointInTime build() { + final var o = new InstanceRestoreToPointInTime(); + o.restoreTime = restoreTime; + o.sourceDbInstanceAutomatedBackupsArn = sourceDbInstanceAutomatedBackupsArn; + o.sourceDbInstanceIdentifier = sourceDbInstanceIdentifier; + o.sourceDbiResourceId = sourceDbiResourceId; + o.useLatestRestorableTime = useLatestRestorableTime; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/InstanceS3Import.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/InstanceS3Import.java index e258758750c..ca41d5d3c4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/InstanceS3Import.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/InstanceS3Import.java @@ -15,42 +15,29 @@ public final class InstanceS3Import { * @return The bucket name where your backup is stored * */ - private final String bucketName; + private String bucketName; /** * @return Can be blank, but is the path to your backup * */ - private final @Nullable String bucketPrefix; + private @Nullable String bucketPrefix; /** * @return Role applied to load the data. * */ - private final String ingestionRole; + private String ingestionRole; /** * @return Source engine for the backup * */ - private final String sourceEngine; + private String sourceEngine; /** * @return Version of the source engine used to make the backup * */ - private final String sourceEngineVersion; - - @CustomType.Constructor - private InstanceS3Import( - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("bucketPrefix") @Nullable String bucketPrefix, - @CustomType.Parameter("ingestionRole") String ingestionRole, - @CustomType.Parameter("sourceEngine") String sourceEngine, - @CustomType.Parameter("sourceEngineVersion") String sourceEngineVersion) { - this.bucketName = bucketName; - this.bucketPrefix = bucketPrefix; - this.ingestionRole = ingestionRole; - this.sourceEngine = sourceEngine; - this.sourceEngineVersion = sourceEngineVersion; - } + private String sourceEngineVersion; + private InstanceS3Import() {} /** * @return The bucket name where your backup is stored * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(InstanceS3Import defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketName; private @Nullable String bucketPrefix; private String ingestionRole; private String sourceEngine; private String sourceEngineVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InstanceS3Import defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -115,27 +98,39 @@ public Builder(InstanceS3Import defaults) { this.sourceEngineVersion = defaults.sourceEngineVersion; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder bucketPrefix(@Nullable String bucketPrefix) { this.bucketPrefix = bucketPrefix; return this; } + @CustomType.Setter public Builder ingestionRole(String ingestionRole) { this.ingestionRole = Objects.requireNonNull(ingestionRole); return this; } + @CustomType.Setter public Builder sourceEngine(String sourceEngine) { this.sourceEngine = Objects.requireNonNull(sourceEngine); return this; } + @CustomType.Setter public Builder sourceEngineVersion(String sourceEngineVersion) { this.sourceEngineVersion = Objects.requireNonNull(sourceEngineVersion); return this; - } public InstanceS3Import build() { - return new InstanceS3Import(bucketName, bucketPrefix, ingestionRole, sourceEngine, sourceEngineVersion); + } + public InstanceS3Import build() { + final var o = new InstanceS3Import(); + o.bucketName = bucketName; + o.bucketPrefix = bucketPrefix; + o.ingestionRole = ingestionRole; + o.sourceEngine = sourceEngine; + o.sourceEngineVersion = sourceEngineVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/OptionGroupOption.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/OptionGroupOption.java index 25a6e10d66e..0b5a862e163 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/OptionGroupOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/OptionGroupOption.java @@ -18,49 +18,34 @@ public final class OptionGroupOption { * @return A list of DB Security Groups for which the option is enabled. * */ - private final @Nullable List dbSecurityGroupMemberships; + private @Nullable List dbSecurityGroupMemberships; /** * @return The Name of the Option (e.g., MEMCACHED). * */ - private final String optionName; + private String optionName; /** * @return A list of option settings to apply. * */ - private final @Nullable List optionSettings; + private @Nullable List optionSettings; /** * @return The Port number when connecting to the Option (e.g., 11211). * */ - private final @Nullable Integer port; + private @Nullable Integer port; /** * @return The version of the option (e.g., 13.1.0.0). * */ - private final @Nullable String version; + private @Nullable String version; /** * @return A list of VPC Security Groups for which the option is enabled. * */ - private final @Nullable List vpcSecurityGroupMemberships; - - @CustomType.Constructor - private OptionGroupOption( - @CustomType.Parameter("dbSecurityGroupMemberships") @Nullable List dbSecurityGroupMemberships, - @CustomType.Parameter("optionName") String optionName, - @CustomType.Parameter("optionSettings") @Nullable List optionSettings, - @CustomType.Parameter("port") @Nullable Integer port, - @CustomType.Parameter("version") @Nullable String version, - @CustomType.Parameter("vpcSecurityGroupMemberships") @Nullable List vpcSecurityGroupMemberships) { - this.dbSecurityGroupMemberships = dbSecurityGroupMemberships; - this.optionName = optionName; - this.optionSettings = optionSettings; - this.port = port; - this.version = version; - this.vpcSecurityGroupMemberships = vpcSecurityGroupMemberships; - } + private @Nullable List vpcSecurityGroupMemberships; + private OptionGroupOption() {} /** * @return A list of DB Security Groups for which the option is enabled. * @@ -111,7 +96,7 @@ public static Builder builder() { public static Builder builder(OptionGroupOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List dbSecurityGroupMemberships; private String optionName; @@ -119,11 +104,7 @@ public static final class Builder { private @Nullable Integer port; private @Nullable String version; private @Nullable List vpcSecurityGroupMemberships; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OptionGroupOption defaults) { Objects.requireNonNull(defaults); this.dbSecurityGroupMemberships = defaults.dbSecurityGroupMemberships; @@ -134,6 +115,7 @@ public Builder(OptionGroupOption defaults) { this.vpcSecurityGroupMemberships = defaults.vpcSecurityGroupMemberships; } + @CustomType.Setter public Builder dbSecurityGroupMemberships(@Nullable List dbSecurityGroupMemberships) { this.dbSecurityGroupMemberships = dbSecurityGroupMemberships; return this; @@ -141,10 +123,12 @@ public Builder dbSecurityGroupMemberships(@Nullable List dbSecurityGroup public Builder dbSecurityGroupMemberships(String... dbSecurityGroupMemberships) { return dbSecurityGroupMemberships(List.of(dbSecurityGroupMemberships)); } + @CustomType.Setter public Builder optionName(String optionName) { this.optionName = Objects.requireNonNull(optionName); return this; } + @CustomType.Setter public Builder optionSettings(@Nullable List optionSettings) { this.optionSettings = optionSettings; return this; @@ -152,22 +136,33 @@ public Builder optionSettings(@Nullable List opt public Builder optionSettings(OptionGroupOptionOptionSetting... optionSettings) { return optionSettings(List.of(optionSettings)); } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; } + @CustomType.Setter public Builder vpcSecurityGroupMemberships(@Nullable List vpcSecurityGroupMemberships) { this.vpcSecurityGroupMemberships = vpcSecurityGroupMemberships; return this; } public Builder vpcSecurityGroupMemberships(String... vpcSecurityGroupMemberships) { return vpcSecurityGroupMemberships(List.of(vpcSecurityGroupMemberships)); - } public OptionGroupOption build() { - return new OptionGroupOption(dbSecurityGroupMemberships, optionName, optionSettings, port, version, vpcSecurityGroupMemberships); + } + public OptionGroupOption build() { + final var o = new OptionGroupOption(); + o.dbSecurityGroupMemberships = dbSecurityGroupMemberships; + o.optionName = optionName; + o.optionSettings = optionSettings; + o.port = port; + o.version = version; + o.vpcSecurityGroupMemberships = vpcSecurityGroupMemberships; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/OptionGroupOptionOptionSetting.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/OptionGroupOptionOptionSetting.java index 1c7e5f402b6..8d9c54b6b68 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/OptionGroupOptionOptionSetting.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/OptionGroupOptionOptionSetting.java @@ -13,21 +13,14 @@ public final class OptionGroupOptionOptionSetting { * @return The Name of the setting. * */ - private final String name; + private String name; /** * @return The Value of the setting. * */ - private final String value; - - @CustomType.Constructor - private OptionGroupOptionOptionSetting( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private OptionGroupOptionOptionSetting() {} /** * @return The Name of the setting. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(OptionGroupOptionOptionSetting defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(OptionGroupOptionOptionSetting defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public OptionGroupOptionOptionSetting build() { - return new OptionGroupOptionOptionSetting(name, value); + } + public OptionGroupOptionOptionSetting build() { + final var o = new OptionGroupOptionOptionSetting(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ParameterGroupParameter.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ParameterGroupParameter.java index 9a93fc9b340..7b707f6a9db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ParameterGroupParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ParameterGroupParameter.java @@ -17,28 +17,19 @@ public final class ParameterGroupParameter { * specify "pending-reboot" here. * */ - private final @Nullable String applyMethod; + private @Nullable String applyMethod; /** * @return The name of the DB parameter. * */ - private final String name; + private String name; /** * @return The value of the DB parameter. * */ - private final String value; - - @CustomType.Constructor - private ParameterGroupParameter( - @CustomType.Parameter("applyMethod") @Nullable String applyMethod, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.applyMethod = applyMethod; - this.name = name; - this.value = value; - } + private String value; + private ParameterGroupParameter() {} /** * @return "immediate" (default), or "pending-reboot". Some * engines can't apply some parameters without a reboot, and you will need to @@ -70,16 +61,12 @@ public static Builder builder() { public static Builder builder(ParameterGroupParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String applyMethod; private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ParameterGroupParameter defaults) { Objects.requireNonNull(defaults); this.applyMethod = defaults.applyMethod; @@ -87,19 +74,27 @@ public Builder(ParameterGroupParameter defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder applyMethod(@Nullable String applyMethod) { this.applyMethod = applyMethod; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ParameterGroupParameter build() { - return new ParameterGroupParameter(applyMethod, name, value); + } + public ParameterGroupParameter build() { + final var o = new ParameterGroupParameter(); + o.applyMethod = applyMethod; + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ProxyAuth.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ProxyAuth.java index 84d6daae0a5..73d3488b688 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ProxyAuth.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ProxyAuth.java @@ -15,42 +15,29 @@ public final class ProxyAuth { * @return The type of authentication that the proxy uses for connections from the proxy to the underlying database. One of `SECRETS`. * */ - private final @Nullable String authScheme; + private @Nullable String authScheme; /** * @return A user-specified description about the authentication used by a proxy to log in as a specific database user. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return Whether to require or disallow AWS Identity and Access Management (IAM) authentication for connections to the proxy. One of `DISABLED`, `REQUIRED`. * */ - private final @Nullable String iamAuth; + private @Nullable String iamAuth; /** * @return The Amazon Resource Name (ARN) representing the secret that the proxy uses to authenticate to the RDS DB instance or Aurora DB cluster. These secrets are stored within Amazon Secrets Manager. * */ - private final @Nullable String secretArn; + private @Nullable String secretArn; /** * @return The name of the database user to which the proxy connects. * */ - private final @Nullable String username; - - @CustomType.Constructor - private ProxyAuth( - @CustomType.Parameter("authScheme") @Nullable String authScheme, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("iamAuth") @Nullable String iamAuth, - @CustomType.Parameter("secretArn") @Nullable String secretArn, - @CustomType.Parameter("username") @Nullable String username) { - this.authScheme = authScheme; - this.description = description; - this.iamAuth = iamAuth; - this.secretArn = secretArn; - this.username = username; - } + private @Nullable String username; + private ProxyAuth() {} /** * @return The type of authentication that the proxy uses for connections from the proxy to the underlying database. One of `SECRETS`. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(ProxyAuth defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String authScheme; private @Nullable String description; private @Nullable String iamAuth; private @Nullable String secretArn; private @Nullable String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProxyAuth defaults) { Objects.requireNonNull(defaults); this.authScheme = defaults.authScheme; @@ -115,27 +98,39 @@ public Builder(ProxyAuth defaults) { this.username = defaults.username; } + @CustomType.Setter public Builder authScheme(@Nullable String authScheme) { this.authScheme = authScheme; return this; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder iamAuth(@Nullable String iamAuth) { this.iamAuth = iamAuth; return this; } + @CustomType.Setter public Builder secretArn(@Nullable String secretArn) { this.secretArn = secretArn; return this; } + @CustomType.Setter public Builder username(@Nullable String username) { this.username = username; return this; - } public ProxyAuth build() { - return new ProxyAuth(authScheme, description, iamAuth, secretArn, username); + } + public ProxyAuth build() { + final var o = new ProxyAuth(); + o.authScheme = authScheme; + o.description = description; + o.iamAuth = iamAuth; + o.secretArn = secretArn; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ProxyDefaultTargetGroupConnectionPoolConfig.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ProxyDefaultTargetGroupConnectionPoolConfig.java index 6ef3e773016..020664caaed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ProxyDefaultTargetGroupConnectionPoolConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/ProxyDefaultTargetGroupConnectionPoolConfig.java @@ -17,42 +17,29 @@ public final class ProxyDefaultTargetGroupConnectionPoolConfig { * @return The number of seconds for a proxy to wait for a connection to become available in the connection pool. Only applies when the proxy has opened its maximum number of connections and all connections are busy with client sessions. * */ - private final @Nullable Integer connectionBorrowTimeout; + private @Nullable Integer connectionBorrowTimeout; /** * @return One or more SQL statements for the proxy to run when opening each new database connection. Typically used with `SET` statements to make sure that each connection has identical settings such as time zone and character set. This setting is empty by default. For multiple statements, use semicolons as the separator. You can also include multiple variables in a single `SET` statement, such as `SET x=1, y=2`. * */ - private final @Nullable String initQuery; + private @Nullable String initQuery; /** * @return The maximum size of the connection pool for each target in a target group. For Aurora MySQL, it is expressed as a percentage of the max_connections setting for the RDS DB instance or Aurora DB cluster used by the target group. * */ - private final @Nullable Integer maxConnectionsPercent; + private @Nullable Integer maxConnectionsPercent; /** * @return Controls how actively the proxy closes idle database connections in the connection pool. A high value enables the proxy to leave a high percentage of idle connections open. A low value causes the proxy to close idle client connections and return the underlying database connections to the connection pool. For Aurora MySQL, it is expressed as a percentage of the max_connections setting for the RDS DB instance or Aurora DB cluster used by the target group. * */ - private final @Nullable Integer maxIdleConnectionsPercent; + private @Nullable Integer maxIdleConnectionsPercent; /** * @return Each item in the list represents a class of SQL operations that normally cause all later statements in a session using a proxy to be pinned to the same underlying database connection. Including an item in the list exempts that class of SQL operations from the pinning behavior. Currently, the only allowed value is `EXCLUDE_VARIABLE_SETS`. * */ - private final @Nullable List sessionPinningFilters; - - @CustomType.Constructor - private ProxyDefaultTargetGroupConnectionPoolConfig( - @CustomType.Parameter("connectionBorrowTimeout") @Nullable Integer connectionBorrowTimeout, - @CustomType.Parameter("initQuery") @Nullable String initQuery, - @CustomType.Parameter("maxConnectionsPercent") @Nullable Integer maxConnectionsPercent, - @CustomType.Parameter("maxIdleConnectionsPercent") @Nullable Integer maxIdleConnectionsPercent, - @CustomType.Parameter("sessionPinningFilters") @Nullable List sessionPinningFilters) { - this.connectionBorrowTimeout = connectionBorrowTimeout; - this.initQuery = initQuery; - this.maxConnectionsPercent = maxConnectionsPercent; - this.maxIdleConnectionsPercent = maxIdleConnectionsPercent; - this.sessionPinningFilters = sessionPinningFilters; - } + private @Nullable List sessionPinningFilters; + private ProxyDefaultTargetGroupConnectionPoolConfig() {} /** * @return The number of seconds for a proxy to wait for a connection to become available in the connection pool. Only applies when the proxy has opened its maximum number of connections and all connections are busy with client sessions. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(ProxyDefaultTargetGroupConnectionPoolConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer connectionBorrowTimeout; private @Nullable String initQuery; private @Nullable Integer maxConnectionsPercent; private @Nullable Integer maxIdleConnectionsPercent; private @Nullable List sessionPinningFilters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProxyDefaultTargetGroupConnectionPoolConfig defaults) { Objects.requireNonNull(defaults); this.connectionBorrowTimeout = defaults.connectionBorrowTimeout; @@ -117,30 +100,42 @@ public Builder(ProxyDefaultTargetGroupConnectionPoolConfig defaults) { this.sessionPinningFilters = defaults.sessionPinningFilters; } + @CustomType.Setter public Builder connectionBorrowTimeout(@Nullable Integer connectionBorrowTimeout) { this.connectionBorrowTimeout = connectionBorrowTimeout; return this; } + @CustomType.Setter public Builder initQuery(@Nullable String initQuery) { this.initQuery = initQuery; return this; } + @CustomType.Setter public Builder maxConnectionsPercent(@Nullable Integer maxConnectionsPercent) { this.maxConnectionsPercent = maxConnectionsPercent; return this; } + @CustomType.Setter public Builder maxIdleConnectionsPercent(@Nullable Integer maxIdleConnectionsPercent) { this.maxIdleConnectionsPercent = maxIdleConnectionsPercent; return this; } + @CustomType.Setter public Builder sessionPinningFilters(@Nullable List sessionPinningFilters) { this.sessionPinningFilters = sessionPinningFilters; return this; } public Builder sessionPinningFilters(String... sessionPinningFilters) { return sessionPinningFilters(List.of(sessionPinningFilters)); - } public ProxyDefaultTargetGroupConnectionPoolConfig build() { - return new ProxyDefaultTargetGroupConnectionPoolConfig(connectionBorrowTimeout, initQuery, maxConnectionsPercent, maxIdleConnectionsPercent, sessionPinningFilters); + } + public ProxyDefaultTargetGroupConnectionPoolConfig build() { + final var o = new ProxyDefaultTargetGroupConnectionPoolConfig(); + o.connectionBorrowTimeout = connectionBorrowTimeout; + o.initQuery = initQuery; + o.maxConnectionsPercent = maxConnectionsPercent; + o.maxIdleConnectionsPercent = maxIdleConnectionsPercent; + o.sessionPinningFilters = sessionPinningFilters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/SecurityGroupIngress.java b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/SecurityGroupIngress.java index e6ff00db0ff..d0534408149 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/SecurityGroupIngress.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rds/outputs/SecurityGroupIngress.java @@ -15,36 +15,25 @@ public final class SecurityGroupIngress { * @return The CIDR block to accept * */ - private final @Nullable String cidr; + private @Nullable String cidr; /** * @return The ID of the security group to authorize * */ - private final @Nullable String securityGroupId; + private @Nullable String securityGroupId; /** * @return The name of the security group to authorize * */ - private final @Nullable String securityGroupName; + private @Nullable String securityGroupName; /** * @return The owner Id of the security group provided * by `security_group_name`. * */ - private final @Nullable String securityGroupOwnerId; - - @CustomType.Constructor - private SecurityGroupIngress( - @CustomType.Parameter("cidr") @Nullable String cidr, - @CustomType.Parameter("securityGroupId") @Nullable String securityGroupId, - @CustomType.Parameter("securityGroupName") @Nullable String securityGroupName, - @CustomType.Parameter("securityGroupOwnerId") @Nullable String securityGroupOwnerId) { - this.cidr = cidr; - this.securityGroupId = securityGroupId; - this.securityGroupName = securityGroupName; - this.securityGroupOwnerId = securityGroupOwnerId; - } + private @Nullable String securityGroupOwnerId; + private SecurityGroupIngress() {} /** * @return The CIDR block to accept * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(SecurityGroupIngress defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cidr; private @Nullable String securityGroupId; private @Nullable String securityGroupName; private @Nullable String securityGroupOwnerId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SecurityGroupIngress defaults) { Objects.requireNonNull(defaults); this.cidr = defaults.cidr; @@ -101,23 +86,33 @@ public Builder(SecurityGroupIngress defaults) { this.securityGroupOwnerId = defaults.securityGroupOwnerId; } + @CustomType.Setter public Builder cidr(@Nullable String cidr) { this.cidr = cidr; return this; } + @CustomType.Setter public Builder securityGroupId(@Nullable String securityGroupId) { this.securityGroupId = securityGroupId; return this; } + @CustomType.Setter public Builder securityGroupName(@Nullable String securityGroupName) { this.securityGroupName = securityGroupName; return this; } + @CustomType.Setter public Builder securityGroupOwnerId(@Nullable String securityGroupOwnerId) { this.securityGroupOwnerId = securityGroupOwnerId; return this; - } public SecurityGroupIngress build() { - return new SecurityGroupIngress(cidr, securityGroupId, securityGroupName, securityGroupOwnerId); + } + public SecurityGroupIngress build() { + final var o = new SecurityGroupIngress(); + o.cidr = cidr; + o.securityGroupId = securityGroupId; + o.securityGroupName = securityGroupName; + o.securityGroupOwnerId = securityGroupOwnerId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ClusterClusterNode.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ClusterClusterNode.java index 393b8b9a32b..5b9cc06db03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ClusterClusterNode.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ClusterClusterNode.java @@ -15,28 +15,19 @@ public final class ClusterClusterNode { * @return Whether the node is a leader node or a compute node * */ - private final @Nullable String nodeRole; + private @Nullable String nodeRole; /** * @return The private IP address of a node within a cluster * */ - private final @Nullable String privateIpAddress; + private @Nullable String privateIpAddress; /** * @return The public IP address of a node within a cluster * */ - private final @Nullable String publicIpAddress; - - @CustomType.Constructor - private ClusterClusterNode( - @CustomType.Parameter("nodeRole") @Nullable String nodeRole, - @CustomType.Parameter("privateIpAddress") @Nullable String privateIpAddress, - @CustomType.Parameter("publicIpAddress") @Nullable String publicIpAddress) { - this.nodeRole = nodeRole; - this.privateIpAddress = privateIpAddress; - this.publicIpAddress = publicIpAddress; - } + private @Nullable String publicIpAddress; + private ClusterClusterNode() {} /** * @return Whether the node is a leader node or a compute node * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ClusterClusterNode defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String nodeRole; private @Nullable String privateIpAddress; private @Nullable String publicIpAddress; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterClusterNode defaults) { Objects.requireNonNull(defaults); this.nodeRole = defaults.nodeRole; @@ -83,19 +70,27 @@ public Builder(ClusterClusterNode defaults) { this.publicIpAddress = defaults.publicIpAddress; } + @CustomType.Setter public Builder nodeRole(@Nullable String nodeRole) { this.nodeRole = nodeRole; return this; } + @CustomType.Setter public Builder privateIpAddress(@Nullable String privateIpAddress) { this.privateIpAddress = privateIpAddress; return this; } + @CustomType.Setter public Builder publicIpAddress(@Nullable String publicIpAddress) { this.publicIpAddress = publicIpAddress; return this; - } public ClusterClusterNode build() { - return new ClusterClusterNode(nodeRole, privateIpAddress, publicIpAddress); + } + public ClusterClusterNode build() { + final var o = new ClusterClusterNode(); + o.nodeRole = nodeRole; + o.privateIpAddress = privateIpAddress; + o.publicIpAddress = publicIpAddress; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ClusterLogging.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ClusterLogging.java index 4c3a1e26df4..3a6aa8c4b32 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ClusterLogging.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ClusterLogging.java @@ -18,42 +18,29 @@ public final class ClusterLogging { * For more information on the permissions required for the bucket, please read the AWS [documentation](http://docs.aws.amazon.com/redshift/latest/mgmt/db-auditing.html#db-auditing-enable-logging) * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return Enables logging information such as queries and connection attempts, for the specified Amazon Redshift cluster. * */ - private final Boolean enable; + private Boolean enable; /** * @return The log destination type. An enum with possible values of `s3` and `cloudwatch`. * */ - private final @Nullable String logDestinationType; + private @Nullable String logDestinationType; /** * @return The collection of exported log types. Log types include the connection log, user log and user activity log. Required when `log_destination_type` is `cloudwatch`. Valid log types are `connectionlog`, `userlog`, and `useractivitylog`. * */ - private final @Nullable List logExports; + private @Nullable List logExports; /** * @return The prefix applied to the log file names. * */ - private final @Nullable String s3KeyPrefix; - - @CustomType.Constructor - private ClusterLogging( - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("enable") Boolean enable, - @CustomType.Parameter("logDestinationType") @Nullable String logDestinationType, - @CustomType.Parameter("logExports") @Nullable List logExports, - @CustomType.Parameter("s3KeyPrefix") @Nullable String s3KeyPrefix) { - this.bucketName = bucketName; - this.enable = enable; - this.logDestinationType = logDestinationType; - this.logExports = logExports; - this.s3KeyPrefix = s3KeyPrefix; - } + private @Nullable String s3KeyPrefix; + private ClusterLogging() {} /** * @return The name of an existing S3 bucket where the log files are to be stored. Must be in the same region as the cluster and the cluster must have read bucket and put object permissions. * For more information on the permissions required for the bucket, please read the AWS [documentation](http://docs.aws.amazon.com/redshift/latest/mgmt/db-auditing.html#db-auditing-enable-logging) @@ -98,18 +85,14 @@ public static Builder builder() { public static Builder builder(ClusterLogging defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketName; private Boolean enable; private @Nullable String logDestinationType; private @Nullable List logExports; private @Nullable String s3KeyPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterLogging defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -119,18 +102,22 @@ public Builder(ClusterLogging defaults) { this.s3KeyPrefix = defaults.s3KeyPrefix; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder enable(Boolean enable) { this.enable = Objects.requireNonNull(enable); return this; } + @CustomType.Setter public Builder logDestinationType(@Nullable String logDestinationType) { this.logDestinationType = logDestinationType; return this; } + @CustomType.Setter public Builder logExports(@Nullable List logExports) { this.logExports = logExports; return this; @@ -138,11 +125,19 @@ public Builder logExports(@Nullable List logExports) { public Builder logExports(String... logExports) { return logExports(List.of(logExports)); } + @CustomType.Setter public Builder s3KeyPrefix(@Nullable String s3KeyPrefix) { this.s3KeyPrefix = s3KeyPrefix; return this; - } public ClusterLogging build() { - return new ClusterLogging(bucketName, enable, logDestinationType, logExports, s3KeyPrefix); + } + public ClusterLogging build() { + final var o = new ClusterLogging(); + o.bucketName = bucketName; + o.enable = enable; + o.logDestinationType = logDestinationType; + o.logExports = logExports; + o.s3KeyPrefix = s3KeyPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ClusterSnapshotCopy.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ClusterSnapshotCopy.java index 607ce3e4051..dd410d0aa81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ClusterSnapshotCopy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ClusterSnapshotCopy.java @@ -16,28 +16,19 @@ public final class ClusterSnapshotCopy { * @return The destination region that you want to copy snapshots to. * */ - private final String destinationRegion; + private String destinationRegion; /** * @return The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region. * */ - private final @Nullable String grantName; + private @Nullable String grantName; /** * @return The number of days to retain automated snapshots in the destination region after they are copied from the source region. Defaults to `7`. * */ - private final @Nullable Integer retentionPeriod; - - @CustomType.Constructor - private ClusterSnapshotCopy( - @CustomType.Parameter("destinationRegion") String destinationRegion, - @CustomType.Parameter("grantName") @Nullable String grantName, - @CustomType.Parameter("retentionPeriod") @Nullable Integer retentionPeriod) { - this.destinationRegion = destinationRegion; - this.grantName = grantName; - this.retentionPeriod = retentionPeriod; - } + private @Nullable Integer retentionPeriod; + private ClusterSnapshotCopy() {} /** * @return The destination region that you want to copy snapshots to. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ClusterSnapshotCopy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String destinationRegion; private @Nullable String grantName; private @Nullable Integer retentionPeriod; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterSnapshotCopy defaults) { Objects.requireNonNull(defaults); this.destinationRegion = defaults.destinationRegion; @@ -84,19 +71,27 @@ public Builder(ClusterSnapshotCopy defaults) { this.retentionPeriod = defaults.retentionPeriod; } + @CustomType.Setter public Builder destinationRegion(String destinationRegion) { this.destinationRegion = Objects.requireNonNull(destinationRegion); return this; } + @CustomType.Setter public Builder grantName(@Nullable String grantName) { this.grantName = grantName; return this; } + @CustomType.Setter public Builder retentionPeriod(@Nullable Integer retentionPeriod) { this.retentionPeriod = retentionPeriod; return this; - } public ClusterSnapshotCopy build() { - return new ClusterSnapshotCopy(destinationRegion, grantName, retentionPeriod); + } + public ClusterSnapshotCopy build() { + final var o = new ClusterSnapshotCopy(); + o.destinationRegion = destinationRegion; + o.grantName = grantName; + o.retentionPeriod = retentionPeriod; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/EndpointAccessVpcEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/EndpointAccessVpcEndpoint.java index 1ee290470ab..f1926284b19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/EndpointAccessVpcEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/EndpointAccessVpcEndpoint.java @@ -17,28 +17,19 @@ public final class EndpointAccessVpcEndpoint { * @return One or more network interfaces of the endpoint. Also known as an interface endpoint. See details below. * */ - private final @Nullable List networkInterfaces; + private @Nullable List networkInterfaces; /** * @return The connection endpoint ID for connecting an Amazon Redshift cluster through the proxy. * */ - private final @Nullable String vpcEndpointId; + private @Nullable String vpcEndpointId; /** * @return The VPC identifier that the endpoint is associated. * */ - private final @Nullable String vpcId; - - @CustomType.Constructor - private EndpointAccessVpcEndpoint( - @CustomType.Parameter("networkInterfaces") @Nullable List networkInterfaces, - @CustomType.Parameter("vpcEndpointId") @Nullable String vpcEndpointId, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.networkInterfaces = networkInterfaces; - this.vpcEndpointId = vpcEndpointId; - this.vpcId = vpcId; - } + private @Nullable String vpcId; + private EndpointAccessVpcEndpoint() {} /** * @return One or more network interfaces of the endpoint. Also known as an interface endpoint. See details below. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(EndpointAccessVpcEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List networkInterfaces; private @Nullable String vpcEndpointId; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointAccessVpcEndpoint defaults) { Objects.requireNonNull(defaults); this.networkInterfaces = defaults.networkInterfaces; @@ -85,6 +72,7 @@ public Builder(EndpointAccessVpcEndpoint defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder networkInterfaces(@Nullable List networkInterfaces) { this.networkInterfaces = networkInterfaces; return this; @@ -92,15 +80,22 @@ public Builder networkInterfaces(@Nullable List dbGroups; - private final @Nullable String dbName; + private @Nullable Boolean autoCreate; + private String clusterIdentifier; + private @Nullable List dbGroups; + private @Nullable String dbName; /** * @return A temporary password that authorizes the user name returned by `db_user` to log on to the database `db_name`. * */ - private final String dbPassword; - private final String dbUser; - private final @Nullable Integer durationSeconds; + private String dbPassword; + private String dbUser; + private @Nullable Integer durationSeconds; /** * @return The date and time the password in `db_password` expires. * */ - private final String expiration; + private String expiration; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetClusterCredentialsResult( - @CustomType.Parameter("autoCreate") @Nullable Boolean autoCreate, - @CustomType.Parameter("clusterIdentifier") String clusterIdentifier, - @CustomType.Parameter("dbGroups") @Nullable List dbGroups, - @CustomType.Parameter("dbName") @Nullable String dbName, - @CustomType.Parameter("dbPassword") String dbPassword, - @CustomType.Parameter("dbUser") String dbUser, - @CustomType.Parameter("durationSeconds") @Nullable Integer durationSeconds, - @CustomType.Parameter("expiration") String expiration, - @CustomType.Parameter("id") String id) { - this.autoCreate = autoCreate; - this.clusterIdentifier = clusterIdentifier; - this.dbGroups = dbGroups; - this.dbName = dbName; - this.dbPassword = dbPassword; - this.dbUser = dbUser; - this.durationSeconds = durationSeconds; - this.expiration = expiration; - this.id = id; - } + private String id; + private GetClusterCredentialsResult() {} public Optional autoCreate() { return Optional.ofNullable(this.autoCreate); } @@ -105,7 +84,7 @@ public static Builder builder() { public static Builder builder(GetClusterCredentialsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean autoCreate; private String clusterIdentifier; @@ -116,11 +95,7 @@ public static final class Builder { private @Nullable Integer durationSeconds; private String expiration; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterCredentialsResult defaults) { Objects.requireNonNull(defaults); this.autoCreate = defaults.autoCreate; @@ -134,14 +109,17 @@ public Builder(GetClusterCredentialsResult defaults) { this.id = defaults.id; } + @CustomType.Setter public Builder autoCreate(@Nullable Boolean autoCreate) { this.autoCreate = autoCreate; return this; } + @CustomType.Setter public Builder clusterIdentifier(String clusterIdentifier) { this.clusterIdentifier = Objects.requireNonNull(clusterIdentifier); return this; } + @CustomType.Setter public Builder dbGroups(@Nullable List dbGroups) { this.dbGroups = dbGroups; return this; @@ -149,31 +127,48 @@ public Builder dbGroups(@Nullable List dbGroups) { public Builder dbGroups(String... dbGroups) { return dbGroups(List.of(dbGroups)); } + @CustomType.Setter public Builder dbName(@Nullable String dbName) { this.dbName = dbName; return this; } + @CustomType.Setter public Builder dbPassword(String dbPassword) { this.dbPassword = Objects.requireNonNull(dbPassword); return this; } + @CustomType.Setter public Builder dbUser(String dbUser) { this.dbUser = Objects.requireNonNull(dbUser); return this; } + @CustomType.Setter public Builder durationSeconds(@Nullable Integer durationSeconds) { this.durationSeconds = durationSeconds; return this; } + @CustomType.Setter public Builder expiration(String expiration) { this.expiration = Objects.requireNonNull(expiration); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetClusterCredentialsResult build() { - return new GetClusterCredentialsResult(autoCreate, clusterIdentifier, dbGroups, dbName, dbPassword, dbUser, durationSeconds, expiration, id); + } + public GetClusterCredentialsResult build() { + final var o = new GetClusterCredentialsResult(); + o.autoCreate = autoCreate; + o.clusterIdentifier = clusterIdentifier; + o.dbGroups = dbGroups; + o.dbName = dbName; + o.dbPassword = dbPassword; + o.dbUser = dbUser; + o.durationSeconds = durationSeconds; + o.expiration = expiration; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetClusterResult.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetClusterResult.java index c209dfe5cbb..97d93f32741 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetClusterResult.java @@ -19,283 +19,200 @@ public final class GetClusterResult { * @return Whether major version upgrades can be applied during maintenance period * */ - private final Boolean allowVersionUpgrade; + private Boolean allowVersionUpgrade; /** * @return The value represents how the cluster is configured to use AQUA. * */ - private final String aquaConfigurationStatus; + private String aquaConfigurationStatus; /** * @return Amazon Resource Name (ARN) of cluster. * */ - private final String arn; + private String arn; /** * @return The backup retention period * */ - private final Integer automatedSnapshotRetentionPeriod; + private Integer automatedSnapshotRetentionPeriod; /** * @return The availability zone of the cluster * */ - private final String availabilityZone; + private String availabilityZone; /** * @return Indicates whether the cluster is able to be relocated to another availability zone. * */ - private final Boolean availabilityZoneRelocationEnabled; + private Boolean availabilityZoneRelocationEnabled; /** * @return The name of the S3 bucket where the log files are to be stored * */ - private final String bucketName; + private String bucketName; /** * @return The cluster identifier * */ - private final String clusterIdentifier; + private String clusterIdentifier; /** * @return The nodes in the cluster. Cluster node blocks are documented below * */ - private final List clusterNodes; + private List clusterNodes; /** * @return The name of the parameter group to be associated with this cluster * */ - private final String clusterParameterGroupName; + private String clusterParameterGroupName; /** * @return The public key for the cluster * */ - private final String clusterPublicKey; + private String clusterPublicKey; /** * @return The cluster revision number * */ - private final String clusterRevisionNumber; + private String clusterRevisionNumber; /** * @return The security groups associated with the cluster * */ - private final List clusterSecurityGroups; + private List clusterSecurityGroups; /** * @return The name of a cluster subnet group to be associated with this cluster * */ - private final String clusterSubnetGroupName; + private String clusterSubnetGroupName; /** * @return The cluster type * */ - private final String clusterType; - private final String clusterVersion; + private String clusterType; + private String clusterVersion; /** * @return The name of the default database in the cluster * */ - private final String databaseName; + private String databaseName; /** * @return ∂The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was created. * */ - private final String defaultIamRoleArn; + private String defaultIamRoleArn; /** * @return The Elastic IP of the cluster * */ - private final String elasticIp; + private String elasticIp; /** * @return Whether cluster logging is enabled * */ - private final Boolean enableLogging; + private Boolean enableLogging; /** * @return Whether the cluster data is encrypted * */ - private final Boolean encrypted; + private Boolean encrypted; /** * @return The cluster endpoint * */ - private final String endpoint; + private String endpoint; /** * @return Whether enhanced VPC routing is enabled * */ - private final Boolean enhancedVpcRouting; + private Boolean enhancedVpcRouting; /** * @return The IAM roles associated to the cluster * */ - private final List iamRoles; + private List iamRoles; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The KMS encryption key associated to the cluster * */ - private final String kmsKeyId; + private String kmsKeyId; /** * @return The log destination type. * */ - private final String logDestinationType; + private String logDestinationType; /** * @return The collection of exported log types. Log types include the connection log, user log and user activity log. * */ - private final List logExports; + private List logExports; /** * @return The name of the maintenance track for the restored cluster. * */ - private final String maintenanceTrackName; + private String maintenanceTrackName; /** * @return (Optional) The default number of days to retain a manual snapshot. * */ - private final Integer manualSnapshotRetentionPeriod; + private Integer manualSnapshotRetentionPeriod; /** * @return Username for the master DB user * */ - private final String masterUsername; + private String masterUsername; /** * @return The cluster node type * */ - private final String nodeType; + private String nodeType; /** * @return The number of nodes in the cluster * */ - private final Integer numberOfNodes; + private Integer numberOfNodes; /** * @return The port the cluster responds on * */ - private final Integer port; + private Integer port; /** * @return The maintenance window * */ - private final String preferredMaintenanceWindow; + private String preferredMaintenanceWindow; /** * @return Whether the cluster is publicly accessible * */ - private final Boolean publiclyAccessible; + private Boolean publiclyAccessible; /** * @return The folder inside the S3 bucket where the log files are stored * */ - private final String s3KeyPrefix; + private String s3KeyPrefix; /** * @return The tags associated to the cluster * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return The VPC Id associated with the cluster * */ - private final String vpcId; + private String vpcId; /** * @return The VPC security group Ids associated with the cluster * */ - private final List vpcSecurityGroupIds; - - @CustomType.Constructor - private GetClusterResult( - @CustomType.Parameter("allowVersionUpgrade") Boolean allowVersionUpgrade, - @CustomType.Parameter("aquaConfigurationStatus") String aquaConfigurationStatus, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("automatedSnapshotRetentionPeriod") Integer automatedSnapshotRetentionPeriod, - @CustomType.Parameter("availabilityZone") String availabilityZone, - @CustomType.Parameter("availabilityZoneRelocationEnabled") Boolean availabilityZoneRelocationEnabled, - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("clusterIdentifier") String clusterIdentifier, - @CustomType.Parameter("clusterNodes") List clusterNodes, - @CustomType.Parameter("clusterParameterGroupName") String clusterParameterGroupName, - @CustomType.Parameter("clusterPublicKey") String clusterPublicKey, - @CustomType.Parameter("clusterRevisionNumber") String clusterRevisionNumber, - @CustomType.Parameter("clusterSecurityGroups") List clusterSecurityGroups, - @CustomType.Parameter("clusterSubnetGroupName") String clusterSubnetGroupName, - @CustomType.Parameter("clusterType") String clusterType, - @CustomType.Parameter("clusterVersion") String clusterVersion, - @CustomType.Parameter("databaseName") String databaseName, - @CustomType.Parameter("defaultIamRoleArn") String defaultIamRoleArn, - @CustomType.Parameter("elasticIp") String elasticIp, - @CustomType.Parameter("enableLogging") Boolean enableLogging, - @CustomType.Parameter("encrypted") Boolean encrypted, - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("enhancedVpcRouting") Boolean enhancedVpcRouting, - @CustomType.Parameter("iamRoles") List iamRoles, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("logDestinationType") String logDestinationType, - @CustomType.Parameter("logExports") List logExports, - @CustomType.Parameter("maintenanceTrackName") String maintenanceTrackName, - @CustomType.Parameter("manualSnapshotRetentionPeriod") Integer manualSnapshotRetentionPeriod, - @CustomType.Parameter("masterUsername") String masterUsername, - @CustomType.Parameter("nodeType") String nodeType, - @CustomType.Parameter("numberOfNodes") Integer numberOfNodes, - @CustomType.Parameter("port") Integer port, - @CustomType.Parameter("preferredMaintenanceWindow") String preferredMaintenanceWindow, - @CustomType.Parameter("publiclyAccessible") Boolean publiclyAccessible, - @CustomType.Parameter("s3KeyPrefix") String s3KeyPrefix, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("vpcId") String vpcId, - @CustomType.Parameter("vpcSecurityGroupIds") List vpcSecurityGroupIds) { - this.allowVersionUpgrade = allowVersionUpgrade; - this.aquaConfigurationStatus = aquaConfigurationStatus; - this.arn = arn; - this.automatedSnapshotRetentionPeriod = automatedSnapshotRetentionPeriod; - this.availabilityZone = availabilityZone; - this.availabilityZoneRelocationEnabled = availabilityZoneRelocationEnabled; - this.bucketName = bucketName; - this.clusterIdentifier = clusterIdentifier; - this.clusterNodes = clusterNodes; - this.clusterParameterGroupName = clusterParameterGroupName; - this.clusterPublicKey = clusterPublicKey; - this.clusterRevisionNumber = clusterRevisionNumber; - this.clusterSecurityGroups = clusterSecurityGroups; - this.clusterSubnetGroupName = clusterSubnetGroupName; - this.clusterType = clusterType; - this.clusterVersion = clusterVersion; - this.databaseName = databaseName; - this.defaultIamRoleArn = defaultIamRoleArn; - this.elasticIp = elasticIp; - this.enableLogging = enableLogging; - this.encrypted = encrypted; - this.endpoint = endpoint; - this.enhancedVpcRouting = enhancedVpcRouting; - this.iamRoles = iamRoles; - this.id = id; - this.kmsKeyId = kmsKeyId; - this.logDestinationType = logDestinationType; - this.logExports = logExports; - this.maintenanceTrackName = maintenanceTrackName; - this.manualSnapshotRetentionPeriod = manualSnapshotRetentionPeriod; - this.masterUsername = masterUsername; - this.nodeType = nodeType; - this.numberOfNodes = numberOfNodes; - this.port = port; - this.preferredMaintenanceWindow = preferredMaintenanceWindow; - this.publiclyAccessible = publiclyAccessible; - this.s3KeyPrefix = s3KeyPrefix; - this.tags = tags; - this.vpcId = vpcId; - this.vpcSecurityGroupIds = vpcSecurityGroupIds; - } + private List vpcSecurityGroupIds; + private GetClusterResult() {} /** * @return Whether major version upgrades can be applied during maintenance period * @@ -580,7 +497,7 @@ public static Builder builder() { public static Builder builder(GetClusterResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean allowVersionUpgrade; private String aquaConfigurationStatus; @@ -622,11 +539,7 @@ public static final class Builder { private @Nullable Map tags; private String vpcId; private List vpcSecurityGroupIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetClusterResult defaults) { Objects.requireNonNull(defaults); this.allowVersionUpgrade = defaults.allowVersionUpgrade; @@ -671,38 +584,47 @@ public Builder(GetClusterResult defaults) { this.vpcSecurityGroupIds = defaults.vpcSecurityGroupIds; } + @CustomType.Setter public Builder allowVersionUpgrade(Boolean allowVersionUpgrade) { this.allowVersionUpgrade = Objects.requireNonNull(allowVersionUpgrade); return this; } + @CustomType.Setter public Builder aquaConfigurationStatus(String aquaConfigurationStatus) { this.aquaConfigurationStatus = Objects.requireNonNull(aquaConfigurationStatus); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder automatedSnapshotRetentionPeriod(Integer automatedSnapshotRetentionPeriod) { this.automatedSnapshotRetentionPeriod = Objects.requireNonNull(automatedSnapshotRetentionPeriod); return this; } + @CustomType.Setter public Builder availabilityZone(String availabilityZone) { this.availabilityZone = Objects.requireNonNull(availabilityZone); return this; } + @CustomType.Setter public Builder availabilityZoneRelocationEnabled(Boolean availabilityZoneRelocationEnabled) { this.availabilityZoneRelocationEnabled = Objects.requireNonNull(availabilityZoneRelocationEnabled); return this; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder clusterIdentifier(String clusterIdentifier) { this.clusterIdentifier = Objects.requireNonNull(clusterIdentifier); return this; } + @CustomType.Setter public Builder clusterNodes(List clusterNodes) { this.clusterNodes = Objects.requireNonNull(clusterNodes); return this; @@ -710,18 +632,22 @@ public Builder clusterNodes(List clusterNodes) { public Builder clusterNodes(GetClusterClusterNode... clusterNodes) { return clusterNodes(List.of(clusterNodes)); } + @CustomType.Setter public Builder clusterParameterGroupName(String clusterParameterGroupName) { this.clusterParameterGroupName = Objects.requireNonNull(clusterParameterGroupName); return this; } + @CustomType.Setter public Builder clusterPublicKey(String clusterPublicKey) { this.clusterPublicKey = Objects.requireNonNull(clusterPublicKey); return this; } + @CustomType.Setter public Builder clusterRevisionNumber(String clusterRevisionNumber) { this.clusterRevisionNumber = Objects.requireNonNull(clusterRevisionNumber); return this; } + @CustomType.Setter public Builder clusterSecurityGroups(List clusterSecurityGroups) { this.clusterSecurityGroups = Objects.requireNonNull(clusterSecurityGroups); return this; @@ -729,46 +655,57 @@ public Builder clusterSecurityGroups(List clusterSecurityGroups) { public Builder clusterSecurityGroups(String... clusterSecurityGroups) { return clusterSecurityGroups(List.of(clusterSecurityGroups)); } + @CustomType.Setter public Builder clusterSubnetGroupName(String clusterSubnetGroupName) { this.clusterSubnetGroupName = Objects.requireNonNull(clusterSubnetGroupName); return this; } + @CustomType.Setter public Builder clusterType(String clusterType) { this.clusterType = Objects.requireNonNull(clusterType); return this; } + @CustomType.Setter public Builder clusterVersion(String clusterVersion) { this.clusterVersion = Objects.requireNonNull(clusterVersion); return this; } + @CustomType.Setter public Builder databaseName(String databaseName) { this.databaseName = Objects.requireNonNull(databaseName); return this; } + @CustomType.Setter public Builder defaultIamRoleArn(String defaultIamRoleArn) { this.defaultIamRoleArn = Objects.requireNonNull(defaultIamRoleArn); return this; } + @CustomType.Setter public Builder elasticIp(String elasticIp) { this.elasticIp = Objects.requireNonNull(elasticIp); return this; } + @CustomType.Setter public Builder enableLogging(Boolean enableLogging) { this.enableLogging = Objects.requireNonNull(enableLogging); return this; } + @CustomType.Setter public Builder encrypted(Boolean encrypted) { this.encrypted = Objects.requireNonNull(encrypted); return this; } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder enhancedVpcRouting(Boolean enhancedVpcRouting) { this.enhancedVpcRouting = Objects.requireNonNull(enhancedVpcRouting); return this; } + @CustomType.Setter public Builder iamRoles(List iamRoles) { this.iamRoles = Objects.requireNonNull(iamRoles); return this; @@ -776,18 +713,22 @@ public Builder iamRoles(List iamRoles) { public Builder iamRoles(String... iamRoles) { return iamRoles(List.of(iamRoles)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder logDestinationType(String logDestinationType) { this.logDestinationType = Objects.requireNonNull(logDestinationType); return this; } + @CustomType.Setter public Builder logExports(List logExports) { this.logExports = Objects.requireNonNull(logExports); return this; @@ -795,58 +736,112 @@ public Builder logExports(List logExports) { public Builder logExports(String... logExports) { return logExports(List.of(logExports)); } + @CustomType.Setter public Builder maintenanceTrackName(String maintenanceTrackName) { this.maintenanceTrackName = Objects.requireNonNull(maintenanceTrackName); return this; } + @CustomType.Setter public Builder manualSnapshotRetentionPeriod(Integer manualSnapshotRetentionPeriod) { this.manualSnapshotRetentionPeriod = Objects.requireNonNull(manualSnapshotRetentionPeriod); return this; } + @CustomType.Setter public Builder masterUsername(String masterUsername) { this.masterUsername = Objects.requireNonNull(masterUsername); return this; } + @CustomType.Setter public Builder nodeType(String nodeType) { this.nodeType = Objects.requireNonNull(nodeType); return this; } + @CustomType.Setter public Builder numberOfNodes(Integer numberOfNodes) { this.numberOfNodes = Objects.requireNonNull(numberOfNodes); return this; } + @CustomType.Setter public Builder port(Integer port) { this.port = Objects.requireNonNull(port); return this; } + @CustomType.Setter public Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) { this.preferredMaintenanceWindow = Objects.requireNonNull(preferredMaintenanceWindow); return this; } + @CustomType.Setter public Builder publiclyAccessible(Boolean publiclyAccessible) { this.publiclyAccessible = Objects.requireNonNull(publiclyAccessible); return this; } + @CustomType.Setter public Builder s3KeyPrefix(String s3KeyPrefix) { this.s3KeyPrefix = Objects.requireNonNull(s3KeyPrefix); return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; } + @CustomType.Setter public Builder vpcSecurityGroupIds(List vpcSecurityGroupIds) { this.vpcSecurityGroupIds = Objects.requireNonNull(vpcSecurityGroupIds); return this; } public Builder vpcSecurityGroupIds(String... vpcSecurityGroupIds) { return vpcSecurityGroupIds(List.of(vpcSecurityGroupIds)); - } public GetClusterResult build() { - return new GetClusterResult(allowVersionUpgrade, aquaConfigurationStatus, arn, automatedSnapshotRetentionPeriod, availabilityZone, availabilityZoneRelocationEnabled, bucketName, clusterIdentifier, clusterNodes, clusterParameterGroupName, clusterPublicKey, clusterRevisionNumber, clusterSecurityGroups, clusterSubnetGroupName, clusterType, clusterVersion, databaseName, defaultIamRoleArn, elasticIp, enableLogging, encrypted, endpoint, enhancedVpcRouting, iamRoles, id, kmsKeyId, logDestinationType, logExports, maintenanceTrackName, manualSnapshotRetentionPeriod, masterUsername, nodeType, numberOfNodes, port, preferredMaintenanceWindow, publiclyAccessible, s3KeyPrefix, tags, vpcId, vpcSecurityGroupIds); + } + public GetClusterResult build() { + final var o = new GetClusterResult(); + o.allowVersionUpgrade = allowVersionUpgrade; + o.aquaConfigurationStatus = aquaConfigurationStatus; + o.arn = arn; + o.automatedSnapshotRetentionPeriod = automatedSnapshotRetentionPeriod; + o.availabilityZone = availabilityZone; + o.availabilityZoneRelocationEnabled = availabilityZoneRelocationEnabled; + o.bucketName = bucketName; + o.clusterIdentifier = clusterIdentifier; + o.clusterNodes = clusterNodes; + o.clusterParameterGroupName = clusterParameterGroupName; + o.clusterPublicKey = clusterPublicKey; + o.clusterRevisionNumber = clusterRevisionNumber; + o.clusterSecurityGroups = clusterSecurityGroups; + o.clusterSubnetGroupName = clusterSubnetGroupName; + o.clusterType = clusterType; + o.clusterVersion = clusterVersion; + o.databaseName = databaseName; + o.defaultIamRoleArn = defaultIamRoleArn; + o.elasticIp = elasticIp; + o.enableLogging = enableLogging; + o.encrypted = encrypted; + o.endpoint = endpoint; + o.enhancedVpcRouting = enhancedVpcRouting; + o.iamRoles = iamRoles; + o.id = id; + o.kmsKeyId = kmsKeyId; + o.logDestinationType = logDestinationType; + o.logExports = logExports; + o.maintenanceTrackName = maintenanceTrackName; + o.manualSnapshotRetentionPeriod = manualSnapshotRetentionPeriod; + o.masterUsername = masterUsername; + o.nodeType = nodeType; + o.numberOfNodes = numberOfNodes; + o.port = port; + o.preferredMaintenanceWindow = preferredMaintenanceWindow; + o.publiclyAccessible = publiclyAccessible; + o.s3KeyPrefix = s3KeyPrefix; + o.tags = tags; + o.vpcId = vpcId; + o.vpcSecurityGroupIds = vpcSecurityGroupIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetOrderableClusterResult.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetOrderableClusterResult.java index 4b7d6a5688f..9f294b05cfb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetOrderableClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetOrderableClusterResult.java @@ -15,33 +15,18 @@ public final class GetOrderableClusterResult { * @return List of Availability Zone names where the Redshit Cluster is available. * */ - private final List availabilityZones; - private final String clusterType; - private final String clusterVersion; + private List availabilityZones; + private String clusterType; + private String clusterVersion; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String nodeType; - private final @Nullable List preferredNodeTypes; - - @CustomType.Constructor - private GetOrderableClusterResult( - @CustomType.Parameter("availabilityZones") List availabilityZones, - @CustomType.Parameter("clusterType") String clusterType, - @CustomType.Parameter("clusterVersion") String clusterVersion, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("nodeType") String nodeType, - @CustomType.Parameter("preferredNodeTypes") @Nullable List preferredNodeTypes) { - this.availabilityZones = availabilityZones; - this.clusterType = clusterType; - this.clusterVersion = clusterVersion; - this.id = id; - this.nodeType = nodeType; - this.preferredNodeTypes = preferredNodeTypes; - } + private String id; + private String nodeType; + private @Nullable List preferredNodeTypes; + private GetOrderableClusterResult() {} /** * @return List of Availability Zone names where the Redshit Cluster is available. * @@ -76,7 +61,7 @@ public static Builder builder() { public static Builder builder(GetOrderableClusterResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List availabilityZones; private String clusterType; @@ -84,11 +69,7 @@ public static final class Builder { private String id; private String nodeType; private @Nullable List preferredNodeTypes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetOrderableClusterResult defaults) { Objects.requireNonNull(defaults); this.availabilityZones = defaults.availabilityZones; @@ -99,6 +80,7 @@ public Builder(GetOrderableClusterResult defaults) { this.preferredNodeTypes = defaults.preferredNodeTypes; } + @CustomType.Setter public Builder availabilityZones(List availabilityZones) { this.availabilityZones = Objects.requireNonNull(availabilityZones); return this; @@ -106,30 +88,43 @@ public Builder availabilityZones(List availabilityZones) { public Builder availabilityZones(String... availabilityZones) { return availabilityZones(List.of(availabilityZones)); } + @CustomType.Setter public Builder clusterType(String clusterType) { this.clusterType = Objects.requireNonNull(clusterType); return this; } + @CustomType.Setter public Builder clusterVersion(String clusterVersion) { this.clusterVersion = Objects.requireNonNull(clusterVersion); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder nodeType(String nodeType) { this.nodeType = Objects.requireNonNull(nodeType); return this; } + @CustomType.Setter public Builder preferredNodeTypes(@Nullable List preferredNodeTypes) { this.preferredNodeTypes = preferredNodeTypes; return this; } public Builder preferredNodeTypes(String... preferredNodeTypes) { return preferredNodeTypes(List.of(preferredNodeTypes)); - } public GetOrderableClusterResult build() { - return new GetOrderableClusterResult(availabilityZones, clusterType, clusterVersion, id, nodeType, preferredNodeTypes); + } + public GetOrderableClusterResult build() { + final var o = new GetOrderableClusterResult(); + o.availabilityZones = availabilityZones; + o.clusterType = clusterType; + o.clusterVersion = clusterVersion; + o.id = id; + o.nodeType = nodeType; + o.preferredNodeTypes = preferredNodeTypes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetServiceAccountResult.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetServiceAccountResult.java index a50aed712d4..629023ee1fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetServiceAccountResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetServiceAccountResult.java @@ -15,24 +15,15 @@ public final class GetServiceAccountResult { * @return The ARN of the AWS Redshift service account in the selected region. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String region; - - @CustomType.Constructor - private GetServiceAccountResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("region") @Nullable String region) { - this.arn = arn; - this.id = id; - this.region = region; - } + private String id; + private @Nullable String region; + private GetServiceAccountResult() {} /** * @return The ARN of the AWS Redshift service account in the selected region. * @@ -58,16 +49,12 @@ public static Builder builder() { public static Builder builder(GetServiceAccountResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private @Nullable String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceAccountResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -75,19 +62,27 @@ public Builder(GetServiceAccountResult defaults) { this.region = defaults.region; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; - } public GetServiceAccountResult build() { - return new GetServiceAccountResult(arn, id, region); + } + public GetServiceAccountResult build() { + final var o = new GetServiceAccountResult(); + o.arn = arn; + o.id = id; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetSubnetGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetSubnetGroupResult.java index 17da1d58d69..c447aaf6b72 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetSubnetGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/GetSubnetGroupResult.java @@ -15,45 +15,30 @@ public final class GetSubnetGroupResult { * @return Amazon Resource Name (ARN) of the Redshift Subnet Group name. * */ - private final String arn; + private String arn; /** * @return The description of the Redshift Subnet group. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return An array of VPC subnet IDs. * */ - private final List subnetIds; + private List subnetIds; /** * @return The tags associated to the Subnet Group * */ - private final Map tags; - - @CustomType.Constructor - private GetSubnetGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.description = description; - this.id = id; - this.name = name; - this.subnetIds = subnetIds; - this.tags = tags; - } + private Map tags; + private GetSubnetGroupResult() {} /** * @return Amazon Resource Name (ARN) of the Redshift Subnet Group name. * @@ -100,7 +85,7 @@ public static Builder builder() { public static Builder builder(GetSubnetGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -108,11 +93,7 @@ public static final class Builder { private String name; private List subnetIds; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSubnetGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -123,22 +104,27 @@ public Builder(GetSubnetGroupResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -146,11 +132,20 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetSubnetGroupResult build() { - return new GetSubnetGroupResult(arn, description, id, name, subnetIds, tags); + } + public GetSubnetGroupResult build() { + final var o = new GetSubnetGroupResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.name = name; + o.subnetIds = subnetIds; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ParameterGroupParameter.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ParameterGroupParameter.java index b34cf461a39..810b11e2031 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ParameterGroupParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ParameterGroupParameter.java @@ -13,21 +13,14 @@ public final class ParameterGroupParameter { * @return The name of the Redshift parameter. * */ - private final String name; + private String name; /** * @return The value of the Redshift parameter. * */ - private final String value; - - @CustomType.Constructor - private ParameterGroupParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private ParameterGroupParameter() {} /** * @return The name of the Redshift parameter. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ParameterGroupParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ParameterGroupParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public ParameterGroupParameter build() { - return new ParameterGroupParameter(name, value); + } + public ParameterGroupParameter build() { + final var o = new ParameterGroupParameter(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetAction.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetAction.java index e71f8184ede..0c10bd9b3ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetAction.java @@ -17,28 +17,19 @@ public final class ScheduledActionTargetAction { * @return An action that runs a `PauseCluster` API operation. Documented below. * */ - private final @Nullable ScheduledActionTargetActionPauseCluster pauseCluster; + private @Nullable ScheduledActionTargetActionPauseCluster pauseCluster; /** * @return An action that runs a `ResizeCluster` API operation. Documented below. * */ - private final @Nullable ScheduledActionTargetActionResizeCluster resizeCluster; + private @Nullable ScheduledActionTargetActionResizeCluster resizeCluster; /** * @return An action that runs a `ResumeCluster` API operation. Documented below. * */ - private final @Nullable ScheduledActionTargetActionResumeCluster resumeCluster; - - @CustomType.Constructor - private ScheduledActionTargetAction( - @CustomType.Parameter("pauseCluster") @Nullable ScheduledActionTargetActionPauseCluster pauseCluster, - @CustomType.Parameter("resizeCluster") @Nullable ScheduledActionTargetActionResizeCluster resizeCluster, - @CustomType.Parameter("resumeCluster") @Nullable ScheduledActionTargetActionResumeCluster resumeCluster) { - this.pauseCluster = pauseCluster; - this.resizeCluster = resizeCluster; - this.resumeCluster = resumeCluster; - } + private @Nullable ScheduledActionTargetActionResumeCluster resumeCluster; + private ScheduledActionTargetAction() {} /** * @return An action that runs a `PauseCluster` API operation. Documented below. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(ScheduledActionTargetAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ScheduledActionTargetActionPauseCluster pauseCluster; private @Nullable ScheduledActionTargetActionResizeCluster resizeCluster; private @Nullable ScheduledActionTargetActionResumeCluster resumeCluster; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScheduledActionTargetAction defaults) { Objects.requireNonNull(defaults); this.pauseCluster = defaults.pauseCluster; @@ -85,19 +72,27 @@ public Builder(ScheduledActionTargetAction defaults) { this.resumeCluster = defaults.resumeCluster; } + @CustomType.Setter public Builder pauseCluster(@Nullable ScheduledActionTargetActionPauseCluster pauseCluster) { this.pauseCluster = pauseCluster; return this; } + @CustomType.Setter public Builder resizeCluster(@Nullable ScheduledActionTargetActionResizeCluster resizeCluster) { this.resizeCluster = resizeCluster; return this; } + @CustomType.Setter public Builder resumeCluster(@Nullable ScheduledActionTargetActionResumeCluster resumeCluster) { this.resumeCluster = resumeCluster; return this; - } public ScheduledActionTargetAction build() { - return new ScheduledActionTargetAction(pauseCluster, resizeCluster, resumeCluster); + } + public ScheduledActionTargetAction build() { + final var o = new ScheduledActionTargetAction(); + o.pauseCluster = pauseCluster; + o.resizeCluster = resizeCluster; + o.resumeCluster = resumeCluster; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetActionPauseCluster.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetActionPauseCluster.java index 9ade496344d..c8e5028e1d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetActionPauseCluster.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetActionPauseCluster.java @@ -13,13 +13,9 @@ public final class ScheduledActionTargetActionPauseCluster { * @return The identifier of the cluster to be resumed. * */ - private final String clusterIdentifier; - - @CustomType.Constructor - private ScheduledActionTargetActionPauseCluster(@CustomType.Parameter("clusterIdentifier") String clusterIdentifier) { - this.clusterIdentifier = clusterIdentifier; - } + private String clusterIdentifier; + private ScheduledActionTargetActionPauseCluster() {} /** * @return The identifier of the cluster to be resumed. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ScheduledActionTargetActionPauseCluster defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String clusterIdentifier; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScheduledActionTargetActionPauseCluster defaults) { Objects.requireNonNull(defaults); this.clusterIdentifier = defaults.clusterIdentifier; } + @CustomType.Setter public Builder clusterIdentifier(String clusterIdentifier) { this.clusterIdentifier = Objects.requireNonNull(clusterIdentifier); return this; - } public ScheduledActionTargetActionPauseCluster build() { - return new ScheduledActionTargetActionPauseCluster(clusterIdentifier); + } + public ScheduledActionTargetActionPauseCluster build() { + final var o = new ScheduledActionTargetActionPauseCluster(); + o.clusterIdentifier = clusterIdentifier; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetActionResizeCluster.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetActionResizeCluster.java index cf7e256e4d7..2b6ce7994cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetActionResizeCluster.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetActionResizeCluster.java @@ -17,42 +17,29 @@ public final class ScheduledActionTargetActionResizeCluster { * @return A boolean value indicating whether the resize operation is using the classic resize process. Default: `false`. * */ - private final @Nullable Boolean classic; + private @Nullable Boolean classic; /** * @return The identifier of the cluster to be resumed. * */ - private final String clusterIdentifier; + private String clusterIdentifier; /** * @return The new cluster type for the specified cluster. * */ - private final @Nullable String clusterType; + private @Nullable String clusterType; /** * @return The new node type for the nodes you are adding. * */ - private final @Nullable String nodeType; + private @Nullable String nodeType; /** * @return The new number of nodes for the cluster. * */ - private final @Nullable Integer numberOfNodes; - - @CustomType.Constructor - private ScheduledActionTargetActionResizeCluster( - @CustomType.Parameter("classic") @Nullable Boolean classic, - @CustomType.Parameter("clusterIdentifier") String clusterIdentifier, - @CustomType.Parameter("clusterType") @Nullable String clusterType, - @CustomType.Parameter("nodeType") @Nullable String nodeType, - @CustomType.Parameter("numberOfNodes") @Nullable Integer numberOfNodes) { - this.classic = classic; - this.clusterIdentifier = clusterIdentifier; - this.clusterType = clusterType; - this.nodeType = nodeType; - this.numberOfNodes = numberOfNodes; - } + private @Nullable Integer numberOfNodes; + private ScheduledActionTargetActionResizeCluster() {} /** * @return A boolean value indicating whether the resize operation is using the classic resize process. Default: `false`. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(ScheduledActionTargetActionResizeCluster defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean classic; private String clusterIdentifier; private @Nullable String clusterType; private @Nullable String nodeType; private @Nullable Integer numberOfNodes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScheduledActionTargetActionResizeCluster defaults) { Objects.requireNonNull(defaults); this.classic = defaults.classic; @@ -117,27 +100,39 @@ public Builder(ScheduledActionTargetActionResizeCluster defaults) { this.numberOfNodes = defaults.numberOfNodes; } + @CustomType.Setter public Builder classic(@Nullable Boolean classic) { this.classic = classic; return this; } + @CustomType.Setter public Builder clusterIdentifier(String clusterIdentifier) { this.clusterIdentifier = Objects.requireNonNull(clusterIdentifier); return this; } + @CustomType.Setter public Builder clusterType(@Nullable String clusterType) { this.clusterType = clusterType; return this; } + @CustomType.Setter public Builder nodeType(@Nullable String nodeType) { this.nodeType = nodeType; return this; } + @CustomType.Setter public Builder numberOfNodes(@Nullable Integer numberOfNodes) { this.numberOfNodes = numberOfNodes; return this; - } public ScheduledActionTargetActionResizeCluster build() { - return new ScheduledActionTargetActionResizeCluster(classic, clusterIdentifier, clusterType, nodeType, numberOfNodes); + } + public ScheduledActionTargetActionResizeCluster build() { + final var o = new ScheduledActionTargetActionResizeCluster(); + o.classic = classic; + o.clusterIdentifier = clusterIdentifier; + o.clusterType = clusterType; + o.nodeType = nodeType; + o.numberOfNodes = numberOfNodes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetActionResumeCluster.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetActionResumeCluster.java index 9cf90dfbeb9..2ef2e5f1195 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetActionResumeCluster.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/ScheduledActionTargetActionResumeCluster.java @@ -13,13 +13,9 @@ public final class ScheduledActionTargetActionResumeCluster { * @return The identifier of the cluster to be resumed. * */ - private final String clusterIdentifier; - - @CustomType.Constructor - private ScheduledActionTargetActionResumeCluster(@CustomType.Parameter("clusterIdentifier") String clusterIdentifier) { - this.clusterIdentifier = clusterIdentifier; - } + private String clusterIdentifier; + private ScheduledActionTargetActionResumeCluster() {} /** * @return The identifier of the cluster to be resumed. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ScheduledActionTargetActionResumeCluster defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String clusterIdentifier; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ScheduledActionTargetActionResumeCluster defaults) { Objects.requireNonNull(defaults); this.clusterIdentifier = defaults.clusterIdentifier; } + @CustomType.Setter public Builder clusterIdentifier(String clusterIdentifier) { this.clusterIdentifier = Objects.requireNonNull(clusterIdentifier); return this; - } public ScheduledActionTargetActionResumeCluster build() { - return new ScheduledActionTargetActionResumeCluster(clusterIdentifier); + } + public ScheduledActionTargetActionResumeCluster build() { + final var o = new ScheduledActionTargetActionResumeCluster(); + o.clusterIdentifier = clusterIdentifier; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/SecurityGroupIngress.java b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/SecurityGroupIngress.java index 1901c4a2219..580ce43606e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/SecurityGroupIngress.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshift/outputs/SecurityGroupIngress.java @@ -15,29 +15,20 @@ public final class SecurityGroupIngress { * @return The CIDR block to accept * */ - private final @Nullable String cidr; + private @Nullable String cidr; /** * @return The name of the security group to authorize * */ - private final @Nullable String securityGroupName; + private @Nullable String securityGroupName; /** * @return The owner Id of the security group provided * by `security_group_name`. * */ - private final @Nullable String securityGroupOwnerId; - - @CustomType.Constructor - private SecurityGroupIngress( - @CustomType.Parameter("cidr") @Nullable String cidr, - @CustomType.Parameter("securityGroupName") @Nullable String securityGroupName, - @CustomType.Parameter("securityGroupOwnerId") @Nullable String securityGroupOwnerId) { - this.cidr = cidr; - this.securityGroupName = securityGroupName; - this.securityGroupOwnerId = securityGroupOwnerId; - } + private @Nullable String securityGroupOwnerId; + private SecurityGroupIngress() {} /** * @return The CIDR block to accept * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(SecurityGroupIngress defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String cidr; private @Nullable String securityGroupName; private @Nullable String securityGroupOwnerId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SecurityGroupIngress defaults) { Objects.requireNonNull(defaults); this.cidr = defaults.cidr; @@ -85,19 +72,27 @@ public Builder(SecurityGroupIngress defaults) { this.securityGroupOwnerId = defaults.securityGroupOwnerId; } + @CustomType.Setter public Builder cidr(@Nullable String cidr) { this.cidr = cidr; return this; } + @CustomType.Setter public Builder securityGroupName(@Nullable String securityGroupName) { this.securityGroupName = securityGroupName; return this; } + @CustomType.Setter public Builder securityGroupOwnerId(@Nullable String securityGroupOwnerId) { this.securityGroupOwnerId = securityGroupOwnerId; return this; - } public SecurityGroupIngress build() { - return new SecurityGroupIngress(cidr, securityGroupName, securityGroupOwnerId); + } + public SecurityGroupIngress build() { + final var o = new SecurityGroupIngress(); + o.cidr = cidr; + o.securityGroupName = securityGroupName; + o.securityGroupOwnerId = securityGroupOwnerId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/redshiftdata/outputs/StatementParameter.java b/sdk/java/src/main/java/com/pulumi/aws/redshiftdata/outputs/StatementParameter.java index 494400524c4..7eb22dfcb40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/redshiftdata/outputs/StatementParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/redshiftdata/outputs/StatementParameter.java @@ -9,17 +9,10 @@ @CustomType public final class StatementParameter { - private final String name; - private final String value; - - @CustomType.Constructor - private StatementParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String name; + private String value; + private StatementParameter() {} public String name() { return this.name; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(StatementParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StatementParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public StatementParameter build() { - return new StatementParameter(name, value); + } + public StatementParameter build() { + final var o = new StatementParameter(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/resourcegroups/outputs/GroupResourceQuery.java b/sdk/java/src/main/java/com/pulumi/aws/resourcegroups/outputs/GroupResourceQuery.java index 37f3e606dc4..ff7d7e5e52b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/resourcegroups/outputs/GroupResourceQuery.java +++ b/sdk/java/src/main/java/com/pulumi/aws/resourcegroups/outputs/GroupResourceQuery.java @@ -15,21 +15,14 @@ public final class GroupResourceQuery { * @return The resource query as a JSON string. * */ - private final String query; + private String query; /** * @return The type of the resource query. Defaults to `TAG_FILTERS_1_0`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private GroupResourceQuery( - @CustomType.Parameter("query") String query, - @CustomType.Parameter("type") @Nullable String type) { - this.query = query; - this.type = type; - } + private @Nullable String type; + private GroupResourceQuery() {} /** * @return The resource query as a JSON string. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GroupResourceQuery defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String query; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupResourceQuery defaults) { Objects.requireNonNull(defaults); this.query = defaults.query; this.type = defaults.type; } + @CustomType.Setter public Builder query(String query) { this.query = Objects.requireNonNull(query); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public GroupResourceQuery build() { - return new GroupResourceQuery(query, type); + } + public GroupResourceQuery build() { + final var o = new GroupResourceQuery(); + o.query = query; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesResourceTagMappingList.java b/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesResourceTagMappingList.java index 143f329380e..f883363420f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesResourceTagMappingList.java +++ b/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesResourceTagMappingList.java @@ -16,28 +16,19 @@ public final class GetResourcesResourceTagMappingList { * @return List of objects with information that shows whether a resource is compliant with the effective tag policy, including details on any noncompliant tag keys. * */ - private final List complianceDetails; + private List complianceDetails; /** * @return ARN of the resource. * */ - private final String resourceArn; + private String resourceArn; /** * @return Map of tags assigned to the resource. * */ - private final Map tags; - - @CustomType.Constructor - private GetResourcesResourceTagMappingList( - @CustomType.Parameter("complianceDetails") List complianceDetails, - @CustomType.Parameter("resourceArn") String resourceArn, - @CustomType.Parameter("tags") Map tags) { - this.complianceDetails = complianceDetails; - this.resourceArn = resourceArn; - this.tags = tags; - } + private Map tags; + private GetResourcesResourceTagMappingList() {} /** * @return List of objects with information that shows whether a resource is compliant with the effective tag policy, including details on any noncompliant tag keys. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(GetResourcesResourceTagMappingList defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List complianceDetails; private String resourceArn; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResourcesResourceTagMappingList defaults) { Objects.requireNonNull(defaults); this.complianceDetails = defaults.complianceDetails; @@ -84,6 +71,7 @@ public Builder(GetResourcesResourceTagMappingList defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder complianceDetails(List complianceDetails) { this.complianceDetails = Objects.requireNonNull(complianceDetails); return this; @@ -91,15 +79,22 @@ public Builder complianceDetails(List tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetResourcesResourceTagMappingList build() { - return new GetResourcesResourceTagMappingList(complianceDetails, resourceArn, tags); + } + public GetResourcesResourceTagMappingList build() { + final var o = new GetResourcesResourceTagMappingList(); + o.complianceDetails = complianceDetails; + o.resourceArn = resourceArn; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesResourceTagMappingListComplianceDetail.java b/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesResourceTagMappingListComplianceDetail.java index 802f0efba20..f68eedd4c7c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesResourceTagMappingListComplianceDetail.java +++ b/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesResourceTagMappingListComplianceDetail.java @@ -17,20 +17,11 @@ public final class GetResourcesResourceTagMappingListComplianceDetail { * * ` non_compliant_keys ` - Set of non-compliant tag keys. * */ - private final Boolean complianceStatus; - private final List keysWithNoncompliantValues; - private final List nonCompliantKeys; - - @CustomType.Constructor - private GetResourcesResourceTagMappingListComplianceDetail( - @CustomType.Parameter("complianceStatus") Boolean complianceStatus, - @CustomType.Parameter("keysWithNoncompliantValues") List keysWithNoncompliantValues, - @CustomType.Parameter("nonCompliantKeys") List nonCompliantKeys) { - this.complianceStatus = complianceStatus; - this.keysWithNoncompliantValues = keysWithNoncompliantValues; - this.nonCompliantKeys = nonCompliantKeys; - } + private Boolean complianceStatus; + private List keysWithNoncompliantValues; + private List nonCompliantKeys; + private GetResourcesResourceTagMappingListComplianceDetail() {} /** * @return Whether the resource is compliant. * * ` keys_with_noncompliant_values ` - Set of tag keys with non-compliant tag values. @@ -54,16 +45,12 @@ public static Builder builder() { public static Builder builder(GetResourcesResourceTagMappingListComplianceDetail defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean complianceStatus; private List keysWithNoncompliantValues; private List nonCompliantKeys; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResourcesResourceTagMappingListComplianceDetail defaults) { Objects.requireNonNull(defaults); this.complianceStatus = defaults.complianceStatus; @@ -71,10 +58,12 @@ public Builder(GetResourcesResourceTagMappingListComplianceDetail defaults) { this.nonCompliantKeys = defaults.nonCompliantKeys; } + @CustomType.Setter public Builder complianceStatus(Boolean complianceStatus) { this.complianceStatus = Objects.requireNonNull(complianceStatus); return this; } + @CustomType.Setter public Builder keysWithNoncompliantValues(List keysWithNoncompliantValues) { this.keysWithNoncompliantValues = Objects.requireNonNull(keysWithNoncompliantValues); return this; @@ -82,14 +71,20 @@ public Builder keysWithNoncompliantValues(List keysWithNoncompliantValue public Builder keysWithNoncompliantValues(String... keysWithNoncompliantValues) { return keysWithNoncompliantValues(List.of(keysWithNoncompliantValues)); } + @CustomType.Setter public Builder nonCompliantKeys(List nonCompliantKeys) { this.nonCompliantKeys = Objects.requireNonNull(nonCompliantKeys); return this; } public Builder nonCompliantKeys(String... nonCompliantKeys) { return nonCompliantKeys(List.of(nonCompliantKeys)); - } public GetResourcesResourceTagMappingListComplianceDetail build() { - return new GetResourcesResourceTagMappingListComplianceDetail(complianceStatus, keysWithNoncompliantValues, nonCompliantKeys); + } + public GetResourcesResourceTagMappingListComplianceDetail build() { + final var o = new GetResourcesResourceTagMappingListComplianceDetail(); + o.complianceStatus = complianceStatus; + o.keysWithNoncompliantValues = keysWithNoncompliantValues; + o.nonCompliantKeys = nonCompliantKeys; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesResult.java b/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesResult.java index 484b007d55c..ff0a46ea5d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesResult.java @@ -15,40 +15,23 @@ @CustomType public final class GetResourcesResult { - private final @Nullable Boolean excludeCompliantResources; + private @Nullable Boolean excludeCompliantResources; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable Boolean includeComplianceDetails; - private final @Nullable List resourceArnLists; + private String id; + private @Nullable Boolean includeComplianceDetails; + private @Nullable List resourceArnLists; /** * @return List of objects matching the search criteria. * */ - private final List resourceTagMappingLists; - private final @Nullable List resourceTypeFilters; - private final @Nullable List tagFilters; - - @CustomType.Constructor - private GetResourcesResult( - @CustomType.Parameter("excludeCompliantResources") @Nullable Boolean excludeCompliantResources, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("includeComplianceDetails") @Nullable Boolean includeComplianceDetails, - @CustomType.Parameter("resourceArnLists") @Nullable List resourceArnLists, - @CustomType.Parameter("resourceTagMappingLists") List resourceTagMappingLists, - @CustomType.Parameter("resourceTypeFilters") @Nullable List resourceTypeFilters, - @CustomType.Parameter("tagFilters") @Nullable List tagFilters) { - this.excludeCompliantResources = excludeCompliantResources; - this.id = id; - this.includeComplianceDetails = includeComplianceDetails; - this.resourceArnLists = resourceArnLists; - this.resourceTagMappingLists = resourceTagMappingLists; - this.resourceTypeFilters = resourceTypeFilters; - this.tagFilters = tagFilters; - } + private List resourceTagMappingLists; + private @Nullable List resourceTypeFilters; + private @Nullable List tagFilters; + private GetResourcesResult() {} public Optional excludeCompliantResources() { return Optional.ofNullable(this.excludeCompliantResources); } @@ -86,7 +69,7 @@ public static Builder builder() { public static Builder builder(GetResourcesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean excludeCompliantResources; private String id; @@ -95,11 +78,7 @@ public static final class Builder { private List resourceTagMappingLists; private @Nullable List resourceTypeFilters; private @Nullable List tagFilters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResourcesResult defaults) { Objects.requireNonNull(defaults); this.excludeCompliantResources = defaults.excludeCompliantResources; @@ -111,18 +90,22 @@ public Builder(GetResourcesResult defaults) { this.tagFilters = defaults.tagFilters; } + @CustomType.Setter public Builder excludeCompliantResources(@Nullable Boolean excludeCompliantResources) { this.excludeCompliantResources = excludeCompliantResources; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder includeComplianceDetails(@Nullable Boolean includeComplianceDetails) { this.includeComplianceDetails = includeComplianceDetails; return this; } + @CustomType.Setter public Builder resourceArnLists(@Nullable List resourceArnLists) { this.resourceArnLists = resourceArnLists; return this; @@ -130,6 +113,7 @@ public Builder resourceArnLists(@Nullable List resourceArnLists) { public Builder resourceArnLists(String... resourceArnLists) { return resourceArnLists(List.of(resourceArnLists)); } + @CustomType.Setter public Builder resourceTagMappingLists(List resourceTagMappingLists) { this.resourceTagMappingLists = Objects.requireNonNull(resourceTagMappingLists); return this; @@ -137,6 +121,7 @@ public Builder resourceTagMappingLists(List public Builder resourceTagMappingLists(GetResourcesResourceTagMappingList... resourceTagMappingLists) { return resourceTagMappingLists(List.of(resourceTagMappingLists)); } + @CustomType.Setter public Builder resourceTypeFilters(@Nullable List resourceTypeFilters) { this.resourceTypeFilters = resourceTypeFilters; return this; @@ -144,14 +129,24 @@ public Builder resourceTypeFilters(@Nullable List resourceTypeFilters) { public Builder resourceTypeFilters(String... resourceTypeFilters) { return resourceTypeFilters(List.of(resourceTypeFilters)); } + @CustomType.Setter public Builder tagFilters(@Nullable List tagFilters) { this.tagFilters = tagFilters; return this; } public Builder tagFilters(GetResourcesTagFilter... tagFilters) { return tagFilters(List.of(tagFilters)); - } public GetResourcesResult build() { - return new GetResourcesResult(excludeCompliantResources, id, includeComplianceDetails, resourceArnLists, resourceTagMappingLists, resourceTypeFilters, tagFilters); + } + public GetResourcesResult build() { + final var o = new GetResourcesResult(); + o.excludeCompliantResources = excludeCompliantResources; + o.id = id; + o.includeComplianceDetails = includeComplianceDetails; + o.resourceArnLists = resourceArnLists; + o.resourceTagMappingLists = resourceTagMappingLists; + o.resourceTypeFilters = resourceTypeFilters; + o.tagFilters = tagFilters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesTagFilter.java b/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesTagFilter.java index 11a06d72fc2..44008592a4e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesTagFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/resourcegroupstaggingapi/outputs/GetResourcesTagFilter.java @@ -15,21 +15,14 @@ public final class GetResourcesTagFilter { * @return One part of a key-value pair that makes up a tag. * */ - private final String key; + private String key; /** * @return The optional part of a key-value pair that make up a tag. * */ - private final @Nullable List values; - - @CustomType.Constructor - private GetResourcesTagFilter( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") @Nullable List values) { - this.key = key; - this.values = values; - } + private @Nullable List values; + private GetResourcesTagFilter() {} /** * @return One part of a key-value pair that makes up a tag. * @@ -52,33 +45,35 @@ public static Builder builder() { public static Builder builder(GetResourcesTagFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private @Nullable List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResourcesTagFilter defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(@Nullable List values) { this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetResourcesTagFilter build() { - return new GetResourcesTagFilter(key, values); + } + public GetResourcesTagFilter build() { + final var o = new GetResourcesTagFilter(); + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rolesanywhere/outputs/TrustAnchorSource.java b/sdk/java/src/main/java/com/pulumi/aws/rolesanywhere/outputs/TrustAnchorSource.java index c587b454b5f..e6e12bc2b08 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rolesanywhere/outputs/TrustAnchorSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rolesanywhere/outputs/TrustAnchorSource.java @@ -14,21 +14,14 @@ public final class TrustAnchorSource { * @return The data denoting the source of trust, documented below * */ - private final TrustAnchorSourceSourceData sourceData; + private TrustAnchorSourceSourceData sourceData; /** * @return The type of the source of trust. Must be either `AWS_ACM_PCA` or `CERTIFICATE_BUNDLE`. * */ - private final String sourceType; - - @CustomType.Constructor - private TrustAnchorSource( - @CustomType.Parameter("sourceData") TrustAnchorSourceSourceData sourceData, - @CustomType.Parameter("sourceType") String sourceType) { - this.sourceData = sourceData; - this.sourceType = sourceType; - } + private String sourceType; + private TrustAnchorSource() {} /** * @return The data denoting the source of trust, documented below * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(TrustAnchorSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private TrustAnchorSourceSourceData sourceData; private String sourceType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TrustAnchorSource defaults) { Objects.requireNonNull(defaults); this.sourceData = defaults.sourceData; this.sourceType = defaults.sourceType; } + @CustomType.Setter public Builder sourceData(TrustAnchorSourceSourceData sourceData) { this.sourceData = Objects.requireNonNull(sourceData); return this; } + @CustomType.Setter public Builder sourceType(String sourceType) { this.sourceType = Objects.requireNonNull(sourceType); return this; - } public TrustAnchorSource build() { - return new TrustAnchorSource(sourceData, sourceType); + } + public TrustAnchorSource build() { + final var o = new TrustAnchorSource(); + o.sourceData = sourceData; + o.sourceType = sourceType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rolesanywhere/outputs/TrustAnchorSourceSourceData.java b/sdk/java/src/main/java/com/pulumi/aws/rolesanywhere/outputs/TrustAnchorSourceSourceData.java index a538cc4dbe0..5dfd96f080b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rolesanywhere/outputs/TrustAnchorSourceSourceData.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rolesanywhere/outputs/TrustAnchorSourceSourceData.java @@ -15,17 +15,10 @@ public final class TrustAnchorSourceSourceData { * @return The ARN of an ACM Private Certificate Authority. * */ - private final @Nullable String acmPcaArn; - private final @Nullable String x509CertificateData; - - @CustomType.Constructor - private TrustAnchorSourceSourceData( - @CustomType.Parameter("acmPcaArn") @Nullable String acmPcaArn, - @CustomType.Parameter("x509CertificateData") @Nullable String x509CertificateData) { - this.acmPcaArn = acmPcaArn; - this.x509CertificateData = x509CertificateData; - } + private @Nullable String acmPcaArn; + private @Nullable String x509CertificateData; + private TrustAnchorSourceSourceData() {} /** * @return The ARN of an ACM Private Certificate Authority. * @@ -44,30 +37,32 @@ public static Builder builder() { public static Builder builder(TrustAnchorSourceSourceData defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String acmPcaArn; private @Nullable String x509CertificateData; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TrustAnchorSourceSourceData defaults) { Objects.requireNonNull(defaults); this.acmPcaArn = defaults.acmPcaArn; this.x509CertificateData = defaults.x509CertificateData; } + @CustomType.Setter public Builder acmPcaArn(@Nullable String acmPcaArn) { this.acmPcaArn = acmPcaArn; return this; } + @CustomType.Setter public Builder x509CertificateData(@Nullable String x509CertificateData) { this.x509CertificateData = x509CertificateData; return this; - } public TrustAnchorSourceSourceData build() { - return new TrustAnchorSourceSourceData(acmPcaArn, x509CertificateData); + } + public TrustAnchorSourceSourceData build() { + final var o = new TrustAnchorSourceSourceData(); + o.acmPcaArn = acmPcaArn; + o.x509CertificateData = x509CertificateData; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetDelegationSetResult.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetDelegationSetResult.java index d9abef6688d..33196372e3b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetDelegationSetResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetDelegationSetResult.java @@ -10,23 +10,12 @@ @CustomType public final class GetDelegationSetResult { - private final String arn; - private final String callerReference; - private final String id; - private final List nameServers; - - @CustomType.Constructor - private GetDelegationSetResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("callerReference") String callerReference, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("nameServers") List nameServers) { - this.arn = arn; - this.callerReference = callerReference; - this.id = id; - this.nameServers = nameServers; - } + private String arn; + private String callerReference; + private String id; + private List nameServers; + private GetDelegationSetResult() {} public String arn() { return this.arn; } @@ -47,17 +36,13 @@ public static Builder builder() { public static Builder builder(GetDelegationSetResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String callerReference; private String id; private List nameServers; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDelegationSetResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -66,26 +51,36 @@ public Builder(GetDelegationSetResult defaults) { this.nameServers = defaults.nameServers; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder callerReference(String callerReference) { this.callerReference = Objects.requireNonNull(callerReference); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder nameServers(List nameServers) { this.nameServers = Objects.requireNonNull(nameServers); return this; } public Builder nameServers(String... nameServers) { return nameServers(List.of(nameServers)); - } public GetDelegationSetResult build() { - return new GetDelegationSetResult(arn, callerReference, id, nameServers); + } + public GetDelegationSetResult build() { + final var o = new GetDelegationSetResult(); + o.arn = arn; + o.callerReference = callerReference; + o.id = id; + o.nameServers = nameServers; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverEndpointFilter.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverEndpointFilter.java index 810baf60662..7402a351ba1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverEndpointFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverEndpointFilter.java @@ -10,17 +10,10 @@ @CustomType public final class GetResolverEndpointFilter { - private final String name; - private final List values; - - @CustomType.Constructor - private GetResolverEndpointFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private String name; + private List values; + private GetResolverEndpointFilter() {} public String name() { return this.name; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(GetResolverEndpointFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResolverEndpointFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetResolverEndpointFilter build() { - return new GetResolverEndpointFilter(name, values); + } + public GetResolverEndpointFilter build() { + final var o = new GetResolverEndpointFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverEndpointResult.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverEndpointResult.java index 8ca9ae08928..a2cf2484d85 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverEndpointResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverEndpointResult.java @@ -13,42 +13,21 @@ @CustomType public final class GetResolverEndpointResult { - private final String arn; - private final String direction; - private final @Nullable List filters; + private String arn; + private String direction; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final List ipAddresses; - private final String name; - private final @Nullable String resolverEndpointId; - private final String status; - private final String vpcId; - - @CustomType.Constructor - private GetResolverEndpointResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("direction") String direction, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ipAddresses") List ipAddresses, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("resolverEndpointId") @Nullable String resolverEndpointId, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("vpcId") String vpcId) { - this.arn = arn; - this.direction = direction; - this.filters = filters; - this.id = id; - this.ipAddresses = ipAddresses; - this.name = name; - this.resolverEndpointId = resolverEndpointId; - this.status = status; - this.vpcId = vpcId; - } + private String id; + private List ipAddresses; + private String name; + private @Nullable String resolverEndpointId; + private String status; + private String vpcId; + private GetResolverEndpointResult() {} public String arn() { return this.arn; } @@ -88,7 +67,7 @@ public static Builder builder() { public static Builder builder(GetResolverEndpointResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String direction; @@ -99,11 +78,7 @@ public static final class Builder { private @Nullable String resolverEndpointId; private String status; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResolverEndpointResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -117,14 +92,17 @@ public Builder(GetResolverEndpointResult defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder direction(String direction) { this.direction = Objects.requireNonNull(direction); return this; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -132,10 +110,12 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetResolverEndpointFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ipAddresses(List ipAddresses) { this.ipAddresses = Objects.requireNonNull(ipAddresses); return this; @@ -143,23 +123,38 @@ public Builder ipAddresses(List ipAddresses) { public Builder ipAddresses(String... ipAddresses) { return ipAddresses(List.of(ipAddresses)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder resolverEndpointId(@Nullable String resolverEndpointId) { this.resolverEndpointId = resolverEndpointId; return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public GetResolverEndpointResult build() { - return new GetResolverEndpointResult(arn, direction, filters, id, ipAddresses, name, resolverEndpointId, status, vpcId); + } + public GetResolverEndpointResult build() { + final var o = new GetResolverEndpointResult(); + o.arn = arn; + o.direction = direction; + o.filters = filters; + o.id = id; + o.ipAddresses = ipAddresses; + o.name = name; + o.resolverEndpointId = resolverEndpointId; + o.status = status; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverRuleResult.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverRuleResult.java index 5c2c8459067..3b4faa1569b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverRuleResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverRuleResult.java @@ -14,58 +14,35 @@ public final class GetResolverRuleResult { * @return The ARN (Amazon Resource Name) for the resolver rule. * */ - private final String arn; - private final String domainName; + private String arn; + private String domainName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return When a rule is shared with another AWS account, the account ID of the account that the rule is shared with. * */ - private final String ownerId; - private final String resolverEndpointId; - private final String resolverRuleId; - private final String ruleType; + private String ownerId; + private String resolverEndpointId; + private String resolverRuleId; + private String ruleType; /** * @return Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account. * Values are `NOT_SHARED`, `SHARED_BY_ME` or `SHARED_WITH_ME` * */ - private final String shareStatus; + private String shareStatus; /** * @return A map of tags assigned to the resolver rule. * */ - private final Map tags; - - @CustomType.Constructor - private GetResolverRuleResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("ownerId") String ownerId, - @CustomType.Parameter("resolverEndpointId") String resolverEndpointId, - @CustomType.Parameter("resolverRuleId") String resolverRuleId, - @CustomType.Parameter("ruleType") String ruleType, - @CustomType.Parameter("shareStatus") String shareStatus, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.domainName = domainName; - this.id = id; - this.name = name; - this.ownerId = ownerId; - this.resolverEndpointId = resolverEndpointId; - this.resolverRuleId = resolverRuleId; - this.ruleType = ruleType; - this.shareStatus = shareStatus; - this.tags = tags; - } + private Map tags; + private GetResolverRuleResult() {} /** * @return The ARN (Amazon Resource Name) for the resolver rule. * @@ -125,7 +102,7 @@ public static Builder builder() { public static Builder builder(GetResolverRuleResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String domainName; @@ -137,11 +114,7 @@ public static final class Builder { private String ruleType; private String shareStatus; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResolverRuleResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -156,47 +129,69 @@ public Builder(GetResolverRuleResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder ownerId(String ownerId) { this.ownerId = Objects.requireNonNull(ownerId); return this; } + @CustomType.Setter public Builder resolverEndpointId(String resolverEndpointId) { this.resolverEndpointId = Objects.requireNonNull(resolverEndpointId); return this; } + @CustomType.Setter public Builder resolverRuleId(String resolverRuleId) { this.resolverRuleId = Objects.requireNonNull(resolverRuleId); return this; } + @CustomType.Setter public Builder ruleType(String ruleType) { this.ruleType = Objects.requireNonNull(ruleType); return this; } + @CustomType.Setter public Builder shareStatus(String shareStatus) { this.shareStatus = Objects.requireNonNull(shareStatus); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetResolverRuleResult build() { - return new GetResolverRuleResult(arn, domainName, id, name, ownerId, resolverEndpointId, resolverRuleId, ruleType, shareStatus, tags); + } + public GetResolverRuleResult build() { + final var o = new GetResolverRuleResult(); + o.arn = arn; + o.domainName = domainName; + o.id = id; + o.name = name; + o.ownerId = ownerId; + o.resolverEndpointId = resolverEndpointId; + o.resolverRuleId = resolverRuleId; + o.ruleType = ruleType; + o.shareStatus = shareStatus; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverRulesResult.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverRulesResult.java index 1b12d42660f..27a967c3227 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverRulesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetResolverRulesResult.java @@ -16,36 +16,19 @@ public final class GetResolverRulesResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String nameRegex; - private final @Nullable String ownerId; - private final @Nullable String resolverEndpointId; + private String id; + private @Nullable String nameRegex; + private @Nullable String ownerId; + private @Nullable String resolverEndpointId; /** * @return The IDs of the matched resolver rules. * */ - private final List resolverRuleIds; - private final @Nullable String ruleType; - private final @Nullable String shareStatus; - - @CustomType.Constructor - private GetResolverRulesResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("nameRegex") @Nullable String nameRegex, - @CustomType.Parameter("ownerId") @Nullable String ownerId, - @CustomType.Parameter("resolverEndpointId") @Nullable String resolverEndpointId, - @CustomType.Parameter("resolverRuleIds") List resolverRuleIds, - @CustomType.Parameter("ruleType") @Nullable String ruleType, - @CustomType.Parameter("shareStatus") @Nullable String shareStatus) { - this.id = id; - this.nameRegex = nameRegex; - this.ownerId = ownerId; - this.resolverEndpointId = resolverEndpointId; - this.resolverRuleIds = resolverRuleIds; - this.ruleType = ruleType; - this.shareStatus = shareStatus; - } + private List resolverRuleIds; + private @Nullable String ruleType; + private @Nullable String shareStatus; + private GetResolverRulesResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -83,7 +66,7 @@ public static Builder builder() { public static Builder builder(GetResolverRulesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private @Nullable String nameRegex; @@ -92,11 +75,7 @@ public static final class Builder { private List resolverRuleIds; private @Nullable String ruleType; private @Nullable String shareStatus; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetResolverRulesResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -108,22 +87,27 @@ public Builder(GetResolverRulesResult defaults) { this.shareStatus = defaults.shareStatus; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder nameRegex(@Nullable String nameRegex) { this.nameRegex = nameRegex; return this; } + @CustomType.Setter public Builder ownerId(@Nullable String ownerId) { this.ownerId = ownerId; return this; } + @CustomType.Setter public Builder resolverEndpointId(@Nullable String resolverEndpointId) { this.resolverEndpointId = resolverEndpointId; return this; } + @CustomType.Setter public Builder resolverRuleIds(List resolverRuleIds) { this.resolverRuleIds = Objects.requireNonNull(resolverRuleIds); return this; @@ -131,15 +115,26 @@ public Builder resolverRuleIds(List resolverRuleIds) { public Builder resolverRuleIds(String... resolverRuleIds) { return resolverRuleIds(List.of(resolverRuleIds)); } + @CustomType.Setter public Builder ruleType(@Nullable String ruleType) { this.ruleType = ruleType; return this; } + @CustomType.Setter public Builder shareStatus(@Nullable String shareStatus) { this.shareStatus = shareStatus; return this; - } public GetResolverRulesResult build() { - return new GetResolverRulesResult(id, nameRegex, ownerId, resolverEndpointId, resolverRuleIds, ruleType, shareStatus); + } + public GetResolverRulesResult build() { + final var o = new GetResolverRulesResult(); + o.id = id; + o.nameRegex = nameRegex; + o.ownerId = ownerId; + o.resolverEndpointId = resolverEndpointId; + o.resolverRuleIds = resolverRuleIds; + o.ruleType = ruleType; + o.shareStatus = shareStatus; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentEndpoint.java index 6e15da9974e..3378f40f81e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentEndpoint.java @@ -15,35 +15,24 @@ public final class GetTrafficPolicyDocumentEndpoint { * @return ID of a rule you want to assign. * */ - private final String id; + private String id; /** * @return Region code for the AWS Region that you created the resource in. * */ - private final @Nullable String region; + private @Nullable String region; /** * @return Type of the rule. * */ - private final @Nullable String type; + private @Nullable String type; /** * @return Value of the `type`. * */ - private final @Nullable String value; - - @CustomType.Constructor - private GetTrafficPolicyDocumentEndpoint( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("region") @Nullable String region, - @CustomType.Parameter("type") @Nullable String type, - @CustomType.Parameter("value") @Nullable String value) { - this.id = id; - this.region = region; - this.type = type; - this.value = value; - } + private @Nullable String value; + private GetTrafficPolicyDocumentEndpoint() {} /** * @return ID of a rule you want to assign. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(GetTrafficPolicyDocumentEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private @Nullable String region; private @Nullable String type; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTrafficPolicyDocumentEndpoint defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -99,23 +84,33 @@ public Builder(GetTrafficPolicyDocumentEndpoint defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public GetTrafficPolicyDocumentEndpoint build() { - return new GetTrafficPolicyDocumentEndpoint(id, region, type, value); + } + public GetTrafficPolicyDocumentEndpoint build() { + final var o = new GetTrafficPolicyDocumentEndpoint(); + o.id = id; + o.region = region; + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentResult.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentResult.java index 8e7a65a63bc..2d5ee29d1af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentResult.java @@ -14,43 +14,24 @@ @CustomType public final class GetTrafficPolicyDocumentResult { - private final @Nullable List endpoints; + private @Nullable List endpoints; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Standard JSON policy document rendered based on the arguments above. * */ - private final String json; - private final @Nullable String recordType; - private final @Nullable List rules; - private final @Nullable String startEndpoint; - private final @Nullable String startRule; - private final @Nullable String version; - - @CustomType.Constructor - private GetTrafficPolicyDocumentResult( - @CustomType.Parameter("endpoints") @Nullable List endpoints, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("json") String json, - @CustomType.Parameter("recordType") @Nullable String recordType, - @CustomType.Parameter("rules") @Nullable List rules, - @CustomType.Parameter("startEndpoint") @Nullable String startEndpoint, - @CustomType.Parameter("startRule") @Nullable String startRule, - @CustomType.Parameter("version") @Nullable String version) { - this.endpoints = endpoints; - this.id = id; - this.json = json; - this.recordType = recordType; - this.rules = rules; - this.startEndpoint = startEndpoint; - this.startRule = startRule; - this.version = version; - } + private String json; + private @Nullable String recordType; + private @Nullable List rules; + private @Nullable String startEndpoint; + private @Nullable String startRule; + private @Nullable String version; + private GetTrafficPolicyDocumentResult() {} public List endpoints() { return this.endpoints == null ? List.of() : this.endpoints; } @@ -91,7 +72,7 @@ public static Builder builder() { public static Builder builder(GetTrafficPolicyDocumentResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List endpoints; private String id; @@ -101,11 +82,7 @@ public static final class Builder { private @Nullable String startEndpoint; private @Nullable String startRule; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTrafficPolicyDocumentResult defaults) { Objects.requireNonNull(defaults); this.endpoints = defaults.endpoints; @@ -118,6 +95,7 @@ public Builder(GetTrafficPolicyDocumentResult defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder endpoints(@Nullable List endpoints) { this.endpoints = endpoints; return this; @@ -125,18 +103,22 @@ public Builder endpoints(@Nullable List endpoi public Builder endpoints(GetTrafficPolicyDocumentEndpoint... endpoints) { return endpoints(List.of(endpoints)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder json(String json) { this.json = Objects.requireNonNull(json); return this; } + @CustomType.Setter public Builder recordType(@Nullable String recordType) { this.recordType = recordType; return this; } + @CustomType.Setter public Builder rules(@Nullable List rules) { this.rules = rules; return this; @@ -144,19 +126,32 @@ public Builder rules(@Nullable List rules) { public Builder rules(GetTrafficPolicyDocumentRule... rules) { return rules(List.of(rules)); } + @CustomType.Setter public Builder startEndpoint(@Nullable String startEndpoint) { this.startEndpoint = startEndpoint; return this; } + @CustomType.Setter public Builder startRule(@Nullable String startRule) { this.startRule = startRule; return this; } + @CustomType.Setter public Builder version(@Nullable String version) { this.version = version; return this; - } public GetTrafficPolicyDocumentResult build() { - return new GetTrafficPolicyDocumentResult(endpoints, id, json, recordType, rules, startEndpoint, startRule, version); + } + public GetTrafficPolicyDocumentResult build() { + final var o = new GetTrafficPolicyDocumentResult(); + o.endpoints = endpoints; + o.id = id; + o.json = json; + o.recordType = recordType; + o.rules = rules; + o.startEndpoint = startEndpoint; + o.startRule = startRule; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRule.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRule.java index fb3793b0cb0..77198c20df2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRule.java @@ -22,63 +22,44 @@ public final class GetTrafficPolicyDocumentRule { * @return Configuration block for when you add a geoproximity rule, you configure Amazon Route 53 to route traffic to your resources based on the geographic location of your resources. Only valid for `geoproximity` type. See below * */ - private final @Nullable List geoProximityLocations; + private @Nullable List geoProximityLocations; /** * @return ID of a rule you want to assign. * */ - private final String id; + private String id; /** * @return Configuration block for when you add a multivalue answer rule, you configure your traffic policy to route traffic approximately randomly to your healthy resources. Only valid for `multivalue` type. See below * */ - private final @Nullable List items; + private @Nullable List items; /** * @return Configuration block for when you add a geolocation rule, you configure your traffic policy to route your traffic based on the geographic location of your users. Only valid for `geo` type. See below * */ - private final @Nullable List locations; + private @Nullable List locations; /** * @return Configuration block for the settings for the rule or endpoint that you want to route traffic to whenever the corresponding resources are available. Only valid for `failover` type. See below * */ - private final @Nullable GetTrafficPolicyDocumentRulePrimary primary; + private @Nullable GetTrafficPolicyDocumentRulePrimary primary; /** * @return Region code for the AWS Region that you created the resource in. * */ - private final @Nullable List regions; + private @Nullable List regions; /** * @return Configuration block for the rule or endpoint that you want to route traffic to whenever the primary resources are not available. Only valid for `failover` type. See below * */ - private final @Nullable GetTrafficPolicyDocumentRuleSecondary secondary; + private @Nullable GetTrafficPolicyDocumentRuleSecondary secondary; /** * @return Type of the rule. * */ - private final @Nullable String type; - - @CustomType.Constructor - private GetTrafficPolicyDocumentRule( - @CustomType.Parameter("geoProximityLocations") @Nullable List geoProximityLocations, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("items") @Nullable List items, - @CustomType.Parameter("locations") @Nullable List locations, - @CustomType.Parameter("primary") @Nullable GetTrafficPolicyDocumentRulePrimary primary, - @CustomType.Parameter("regions") @Nullable List regions, - @CustomType.Parameter("secondary") @Nullable GetTrafficPolicyDocumentRuleSecondary secondary, - @CustomType.Parameter("type") @Nullable String type) { - this.geoProximityLocations = geoProximityLocations; - this.id = id; - this.items = items; - this.locations = locations; - this.primary = primary; - this.regions = regions; - this.secondary = secondary; - this.type = type; - } + private @Nullable String type; + private GetTrafficPolicyDocumentRule() {} /** * @return Configuration block for when you add a geoproximity rule, you configure Amazon Route 53 to route traffic to your resources based on the geographic location of your resources. Only valid for `geoproximity` type. See below * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(GetTrafficPolicyDocumentRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List geoProximityLocations; private String id; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable List regions; private @Nullable GetTrafficPolicyDocumentRuleSecondary secondary; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTrafficPolicyDocumentRule defaults) { Objects.requireNonNull(defaults); this.geoProximityLocations = defaults.geoProximityLocations; @@ -170,6 +147,7 @@ public Builder(GetTrafficPolicyDocumentRule defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder geoProximityLocations(@Nullable List geoProximityLocations) { this.geoProximityLocations = geoProximityLocations; return this; @@ -177,10 +155,12 @@ public Builder geoProximityLocations(@Nullable List items) { this.items = items; return this; @@ -188,6 +168,7 @@ public Builder items(@Nullable List items) { public Builder items(GetTrafficPolicyDocumentRuleItem... items) { return items(List.of(items)); } + @CustomType.Setter public Builder locations(@Nullable List locations) { this.locations = locations; return this; @@ -195,10 +176,12 @@ public Builder locations(@Nullable List lo public Builder locations(GetTrafficPolicyDocumentRuleLocation... locations) { return locations(List.of(locations)); } + @CustomType.Setter public Builder primary(@Nullable GetTrafficPolicyDocumentRulePrimary primary) { this.primary = primary; return this; } + @CustomType.Setter public Builder regions(@Nullable List regions) { this.regions = regions; return this; @@ -206,15 +189,27 @@ public Builder regions(@Nullable List region public Builder regions(GetTrafficPolicyDocumentRuleRegion... regions) { return regions(List.of(regions)); } + @CustomType.Setter public Builder secondary(@Nullable GetTrafficPolicyDocumentRuleSecondary secondary) { this.secondary = secondary; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public GetTrafficPolicyDocumentRule build() { - return new GetTrafficPolicyDocumentRule(geoProximityLocations, id, items, locations, primary, regions, secondary, type); + } + public GetTrafficPolicyDocumentRule build() { + final var o = new GetTrafficPolicyDocumentRule(); + o.geoProximityLocations = geoProximityLocations; + o.id = id; + o.items = items; + o.locations = locations; + o.primary = primary; + o.regions = regions; + o.secondary = secondary; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleGeoProximityLocation.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleGeoProximityLocation.java index d8a05ae060b..db08dabce2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleGeoProximityLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleGeoProximityLocation.java @@ -16,63 +16,44 @@ public final class GetTrafficPolicyDocumentRuleGeoProximityLocation { * @return Specify a value for `bias` if you want to route more traffic to an endpoint from nearby endpoints (positive values) or route less traffic to an endpoint (negative values). * */ - private final @Nullable String bias; + private @Nullable String bias; /** * @return References to an endpoint. * */ - private final @Nullable String endpointReference; + private @Nullable String endpointReference; /** * @return Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints. * */ - private final @Nullable Boolean evaluateTargetHealth; + private @Nullable Boolean evaluateTargetHealth; /** * @return If you want to associate a health check with the endpoint or rule. * */ - private final @Nullable String healthCheck; + private @Nullable String healthCheck; /** * @return Represents the location south (negative) or north (positive) of the equator. Valid values are -90 degrees to 90 degrees. * */ - private final @Nullable String latitude; + private @Nullable String latitude; /** * @return Represents the location west (negative) or east (positive) of the prime meridian. Valid values are -180 degrees to 180 degrees. * */ - private final @Nullable String longitude; + private @Nullable String longitude; /** * @return Region code for the AWS Region that you created the resource in. * */ - private final @Nullable String region; + private @Nullable String region; /** * @return References to a rule. * */ - private final @Nullable String ruleReference; - - @CustomType.Constructor - private GetTrafficPolicyDocumentRuleGeoProximityLocation( - @CustomType.Parameter("bias") @Nullable String bias, - @CustomType.Parameter("endpointReference") @Nullable String endpointReference, - @CustomType.Parameter("evaluateTargetHealth") @Nullable Boolean evaluateTargetHealth, - @CustomType.Parameter("healthCheck") @Nullable String healthCheck, - @CustomType.Parameter("latitude") @Nullable String latitude, - @CustomType.Parameter("longitude") @Nullable String longitude, - @CustomType.Parameter("region") @Nullable String region, - @CustomType.Parameter("ruleReference") @Nullable String ruleReference) { - this.bias = bias; - this.endpointReference = endpointReference; - this.evaluateTargetHealth = evaluateTargetHealth; - this.healthCheck = healthCheck; - this.latitude = latitude; - this.longitude = longitude; - this.region = region; - this.ruleReference = ruleReference; - } + private @Nullable String ruleReference; + private GetTrafficPolicyDocumentRuleGeoProximityLocation() {} /** * @return Specify a value for `bias` if you want to route more traffic to an endpoint from nearby endpoints (positive values) or route less traffic to an endpoint (negative values). * @@ -137,7 +118,7 @@ public static Builder builder() { public static Builder builder(GetTrafficPolicyDocumentRuleGeoProximityLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bias; private @Nullable String endpointReference; @@ -147,11 +128,7 @@ public static final class Builder { private @Nullable String longitude; private @Nullable String region; private @Nullable String ruleReference; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTrafficPolicyDocumentRuleGeoProximityLocation defaults) { Objects.requireNonNull(defaults); this.bias = defaults.bias; @@ -164,39 +141,57 @@ public Builder(GetTrafficPolicyDocumentRuleGeoProximityLocation defaults) { this.ruleReference = defaults.ruleReference; } + @CustomType.Setter public Builder bias(@Nullable String bias) { this.bias = bias; return this; } + @CustomType.Setter public Builder endpointReference(@Nullable String endpointReference) { this.endpointReference = endpointReference; return this; } + @CustomType.Setter public Builder evaluateTargetHealth(@Nullable Boolean evaluateTargetHealth) { this.evaluateTargetHealth = evaluateTargetHealth; return this; } + @CustomType.Setter public Builder healthCheck(@Nullable String healthCheck) { this.healthCheck = healthCheck; return this; } + @CustomType.Setter public Builder latitude(@Nullable String latitude) { this.latitude = latitude; return this; } + @CustomType.Setter public Builder longitude(@Nullable String longitude) { this.longitude = longitude; return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; } + @CustomType.Setter public Builder ruleReference(@Nullable String ruleReference) { this.ruleReference = ruleReference; return this; - } public GetTrafficPolicyDocumentRuleGeoProximityLocation build() { - return new GetTrafficPolicyDocumentRuleGeoProximityLocation(bias, endpointReference, evaluateTargetHealth, healthCheck, latitude, longitude, region, ruleReference); + } + public GetTrafficPolicyDocumentRuleGeoProximityLocation build() { + final var o = new GetTrafficPolicyDocumentRuleGeoProximityLocation(); + o.bias = bias; + o.endpointReference = endpointReference; + o.evaluateTargetHealth = evaluateTargetHealth; + o.healthCheck = healthCheck; + o.latitude = latitude; + o.longitude = longitude; + o.region = region; + o.ruleReference = ruleReference; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleItem.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleItem.java index 19d1810f9d5..51e674818bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleItem.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleItem.java @@ -15,21 +15,14 @@ public final class GetTrafficPolicyDocumentRuleItem { * @return References to an endpoint. * */ - private final @Nullable String endpointReference; + private @Nullable String endpointReference; /** * @return If you want to associate a health check with the endpoint or rule. * */ - private final @Nullable String healthCheck; - - @CustomType.Constructor - private GetTrafficPolicyDocumentRuleItem( - @CustomType.Parameter("endpointReference") @Nullable String endpointReference, - @CustomType.Parameter("healthCheck") @Nullable String healthCheck) { - this.endpointReference = endpointReference; - this.healthCheck = healthCheck; - } + private @Nullable String healthCheck; + private GetTrafficPolicyDocumentRuleItem() {} /** * @return References to an endpoint. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GetTrafficPolicyDocumentRuleItem defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String endpointReference; private @Nullable String healthCheck; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTrafficPolicyDocumentRuleItem defaults) { Objects.requireNonNull(defaults); this.endpointReference = defaults.endpointReference; this.healthCheck = defaults.healthCheck; } + @CustomType.Setter public Builder endpointReference(@Nullable String endpointReference) { this.endpointReference = endpointReference; return this; } + @CustomType.Setter public Builder healthCheck(@Nullable String healthCheck) { this.healthCheck = healthCheck; return this; - } public GetTrafficPolicyDocumentRuleItem build() { - return new GetTrafficPolicyDocumentRuleItem(endpointReference, healthCheck); + } + public GetTrafficPolicyDocumentRuleItem build() { + final var o = new GetTrafficPolicyDocumentRuleItem(); + o.endpointReference = endpointReference; + o.healthCheck = healthCheck; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleLocation.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleLocation.java index ee85ff7a727..fa15ed27642 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleLocation.java @@ -16,63 +16,44 @@ public final class GetTrafficPolicyDocumentRuleLocation { * @return Value of a continent. * */ - private final @Nullable String continent; + private @Nullable String continent; /** * @return Value of a country. * */ - private final @Nullable String country; + private @Nullable String country; /** * @return References to an endpoint. * */ - private final @Nullable String endpointReference; + private @Nullable String endpointReference; /** * @return Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints. * */ - private final @Nullable Boolean evaluateTargetHealth; + private @Nullable Boolean evaluateTargetHealth; /** * @return If you want to associate a health check with the endpoint or rule. * */ - private final @Nullable String healthCheck; + private @Nullable String healthCheck; /** * @return Indicates whether this set of values represents the default location. * */ - private final @Nullable Boolean isDefault; + private @Nullable Boolean isDefault; /** * @return References to a rule. * */ - private final @Nullable String ruleReference; + private @Nullable String ruleReference; /** * @return Value of a subdivision. * */ - private final @Nullable String subdivision; - - @CustomType.Constructor - private GetTrafficPolicyDocumentRuleLocation( - @CustomType.Parameter("continent") @Nullable String continent, - @CustomType.Parameter("country") @Nullable String country, - @CustomType.Parameter("endpointReference") @Nullable String endpointReference, - @CustomType.Parameter("evaluateTargetHealth") @Nullable Boolean evaluateTargetHealth, - @CustomType.Parameter("healthCheck") @Nullable String healthCheck, - @CustomType.Parameter("isDefault") @Nullable Boolean isDefault, - @CustomType.Parameter("ruleReference") @Nullable String ruleReference, - @CustomType.Parameter("subdivision") @Nullable String subdivision) { - this.continent = continent; - this.country = country; - this.endpointReference = endpointReference; - this.evaluateTargetHealth = evaluateTargetHealth; - this.healthCheck = healthCheck; - this.isDefault = isDefault; - this.ruleReference = ruleReference; - this.subdivision = subdivision; - } + private @Nullable String subdivision; + private GetTrafficPolicyDocumentRuleLocation() {} /** * @return Value of a continent. * @@ -137,7 +118,7 @@ public static Builder builder() { public static Builder builder(GetTrafficPolicyDocumentRuleLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String continent; private @Nullable String country; @@ -147,11 +128,7 @@ public static final class Builder { private @Nullable Boolean isDefault; private @Nullable String ruleReference; private @Nullable String subdivision; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTrafficPolicyDocumentRuleLocation defaults) { Objects.requireNonNull(defaults); this.continent = defaults.continent; @@ -164,39 +141,57 @@ public Builder(GetTrafficPolicyDocumentRuleLocation defaults) { this.subdivision = defaults.subdivision; } + @CustomType.Setter public Builder continent(@Nullable String continent) { this.continent = continent; return this; } + @CustomType.Setter public Builder country(@Nullable String country) { this.country = country; return this; } + @CustomType.Setter public Builder endpointReference(@Nullable String endpointReference) { this.endpointReference = endpointReference; return this; } + @CustomType.Setter public Builder evaluateTargetHealth(@Nullable Boolean evaluateTargetHealth) { this.evaluateTargetHealth = evaluateTargetHealth; return this; } + @CustomType.Setter public Builder healthCheck(@Nullable String healthCheck) { this.healthCheck = healthCheck; return this; } + @CustomType.Setter public Builder isDefault(@Nullable Boolean isDefault) { this.isDefault = isDefault; return this; } + @CustomType.Setter public Builder ruleReference(@Nullable String ruleReference) { this.ruleReference = ruleReference; return this; } + @CustomType.Setter public Builder subdivision(@Nullable String subdivision) { this.subdivision = subdivision; return this; - } public GetTrafficPolicyDocumentRuleLocation build() { - return new GetTrafficPolicyDocumentRuleLocation(continent, country, endpointReference, evaluateTargetHealth, healthCheck, isDefault, ruleReference, subdivision); + } + public GetTrafficPolicyDocumentRuleLocation build() { + final var o = new GetTrafficPolicyDocumentRuleLocation(); + o.continent = continent; + o.country = country; + o.endpointReference = endpointReference; + o.evaluateTargetHealth = evaluateTargetHealth; + o.healthCheck = healthCheck; + o.isDefault = isDefault; + o.ruleReference = ruleReference; + o.subdivision = subdivision; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRulePrimary.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRulePrimary.java index 2e657ca7798..b76651b8543 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRulePrimary.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRulePrimary.java @@ -16,35 +16,24 @@ public final class GetTrafficPolicyDocumentRulePrimary { * @return References to an endpoint. * */ - private final @Nullable String endpointReference; + private @Nullable String endpointReference; /** * @return Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints. * */ - private final @Nullable Boolean evaluateTargetHealth; + private @Nullable Boolean evaluateTargetHealth; /** * @return If you want to associate a health check with the endpoint or rule. * */ - private final @Nullable String healthCheck; + private @Nullable String healthCheck; /** * @return References to a rule. * */ - private final @Nullable String ruleReference; - - @CustomType.Constructor - private GetTrafficPolicyDocumentRulePrimary( - @CustomType.Parameter("endpointReference") @Nullable String endpointReference, - @CustomType.Parameter("evaluateTargetHealth") @Nullable Boolean evaluateTargetHealth, - @CustomType.Parameter("healthCheck") @Nullable String healthCheck, - @CustomType.Parameter("ruleReference") @Nullable String ruleReference) { - this.endpointReference = endpointReference; - this.evaluateTargetHealth = evaluateTargetHealth; - this.healthCheck = healthCheck; - this.ruleReference = ruleReference; - } + private @Nullable String ruleReference; + private GetTrafficPolicyDocumentRulePrimary() {} /** * @return References to an endpoint. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(GetTrafficPolicyDocumentRulePrimary defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String endpointReference; private @Nullable Boolean evaluateTargetHealth; private @Nullable String healthCheck; private @Nullable String ruleReference; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTrafficPolicyDocumentRulePrimary defaults) { Objects.requireNonNull(defaults); this.endpointReference = defaults.endpointReference; @@ -100,23 +85,33 @@ public Builder(GetTrafficPolicyDocumentRulePrimary defaults) { this.ruleReference = defaults.ruleReference; } + @CustomType.Setter public Builder endpointReference(@Nullable String endpointReference) { this.endpointReference = endpointReference; return this; } + @CustomType.Setter public Builder evaluateTargetHealth(@Nullable Boolean evaluateTargetHealth) { this.evaluateTargetHealth = evaluateTargetHealth; return this; } + @CustomType.Setter public Builder healthCheck(@Nullable String healthCheck) { this.healthCheck = healthCheck; return this; } + @CustomType.Setter public Builder ruleReference(@Nullable String ruleReference) { this.ruleReference = ruleReference; return this; - } public GetTrafficPolicyDocumentRulePrimary build() { - return new GetTrafficPolicyDocumentRulePrimary(endpointReference, evaluateTargetHealth, healthCheck, ruleReference); + } + public GetTrafficPolicyDocumentRulePrimary build() { + final var o = new GetTrafficPolicyDocumentRulePrimary(); + o.endpointReference = endpointReference; + o.evaluateTargetHealth = evaluateTargetHealth; + o.healthCheck = healthCheck; + o.ruleReference = ruleReference; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleRegion.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleRegion.java index 898f7816733..f9cedb03220 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleRegion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleRegion.java @@ -16,42 +16,29 @@ public final class GetTrafficPolicyDocumentRuleRegion { * @return References to an endpoint. * */ - private final @Nullable String endpointReference; + private @Nullable String endpointReference; /** * @return Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints. * */ - private final @Nullable Boolean evaluateTargetHealth; + private @Nullable Boolean evaluateTargetHealth; /** * @return If you want to associate a health check with the endpoint or rule. * */ - private final @Nullable String healthCheck; + private @Nullable String healthCheck; /** * @return Region code for the AWS Region that you created the resource in. * */ - private final @Nullable String region; + private @Nullable String region; /** * @return References to a rule. * */ - private final @Nullable String ruleReference; - - @CustomType.Constructor - private GetTrafficPolicyDocumentRuleRegion( - @CustomType.Parameter("endpointReference") @Nullable String endpointReference, - @CustomType.Parameter("evaluateTargetHealth") @Nullable Boolean evaluateTargetHealth, - @CustomType.Parameter("healthCheck") @Nullable String healthCheck, - @CustomType.Parameter("region") @Nullable String region, - @CustomType.Parameter("ruleReference") @Nullable String ruleReference) { - this.endpointReference = endpointReference; - this.evaluateTargetHealth = evaluateTargetHealth; - this.healthCheck = healthCheck; - this.region = region; - this.ruleReference = ruleReference; - } + private @Nullable String ruleReference; + private GetTrafficPolicyDocumentRuleRegion() {} /** * @return References to an endpoint. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(GetTrafficPolicyDocumentRuleRegion defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String endpointReference; private @Nullable Boolean evaluateTargetHealth; private @Nullable String healthCheck; private @Nullable String region; private @Nullable String ruleReference; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTrafficPolicyDocumentRuleRegion defaults) { Objects.requireNonNull(defaults); this.endpointReference = defaults.endpointReference; @@ -116,27 +99,39 @@ public Builder(GetTrafficPolicyDocumentRuleRegion defaults) { this.ruleReference = defaults.ruleReference; } + @CustomType.Setter public Builder endpointReference(@Nullable String endpointReference) { this.endpointReference = endpointReference; return this; } + @CustomType.Setter public Builder evaluateTargetHealth(@Nullable Boolean evaluateTargetHealth) { this.evaluateTargetHealth = evaluateTargetHealth; return this; } + @CustomType.Setter public Builder healthCheck(@Nullable String healthCheck) { this.healthCheck = healthCheck; return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; } + @CustomType.Setter public Builder ruleReference(@Nullable String ruleReference) { this.ruleReference = ruleReference; return this; - } public GetTrafficPolicyDocumentRuleRegion build() { - return new GetTrafficPolicyDocumentRuleRegion(endpointReference, evaluateTargetHealth, healthCheck, region, ruleReference); + } + public GetTrafficPolicyDocumentRuleRegion build() { + final var o = new GetTrafficPolicyDocumentRuleRegion(); + o.endpointReference = endpointReference; + o.evaluateTargetHealth = evaluateTargetHealth; + o.healthCheck = healthCheck; + o.region = region; + o.ruleReference = ruleReference; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleSecondary.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleSecondary.java index 01909c14bf2..12b21c2a562 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleSecondary.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetTrafficPolicyDocumentRuleSecondary.java @@ -16,35 +16,24 @@ public final class GetTrafficPolicyDocumentRuleSecondary { * @return References to an endpoint. * */ - private final @Nullable String endpointReference; + private @Nullable String endpointReference; /** * @return Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints. * */ - private final @Nullable Boolean evaluateTargetHealth; + private @Nullable Boolean evaluateTargetHealth; /** * @return If you want to associate a health check with the endpoint or rule. * */ - private final @Nullable String healthCheck; + private @Nullable String healthCheck; /** * @return References to a rule. * */ - private final @Nullable String ruleReference; - - @CustomType.Constructor - private GetTrafficPolicyDocumentRuleSecondary( - @CustomType.Parameter("endpointReference") @Nullable String endpointReference, - @CustomType.Parameter("evaluateTargetHealth") @Nullable Boolean evaluateTargetHealth, - @CustomType.Parameter("healthCheck") @Nullable String healthCheck, - @CustomType.Parameter("ruleReference") @Nullable String ruleReference) { - this.endpointReference = endpointReference; - this.evaluateTargetHealth = evaluateTargetHealth; - this.healthCheck = healthCheck; - this.ruleReference = ruleReference; - } + private @Nullable String ruleReference; + private GetTrafficPolicyDocumentRuleSecondary() {} /** * @return References to an endpoint. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(GetTrafficPolicyDocumentRuleSecondary defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String endpointReference; private @Nullable Boolean evaluateTargetHealth; private @Nullable String healthCheck; private @Nullable String ruleReference; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTrafficPolicyDocumentRuleSecondary defaults) { Objects.requireNonNull(defaults); this.endpointReference = defaults.endpointReference; @@ -100,23 +85,33 @@ public Builder(GetTrafficPolicyDocumentRuleSecondary defaults) { this.ruleReference = defaults.ruleReference; } + @CustomType.Setter public Builder endpointReference(@Nullable String endpointReference) { this.endpointReference = endpointReference; return this; } + @CustomType.Setter public Builder evaluateTargetHealth(@Nullable Boolean evaluateTargetHealth) { this.evaluateTargetHealth = evaluateTargetHealth; return this; } + @CustomType.Setter public Builder healthCheck(@Nullable String healthCheck) { this.healthCheck = healthCheck; return this; } + @CustomType.Setter public Builder ruleReference(@Nullable String ruleReference) { this.ruleReference = ruleReference; return this; - } public GetTrafficPolicyDocumentRuleSecondary build() { - return new GetTrafficPolicyDocumentRuleSecondary(endpointReference, evaluateTargetHealth, healthCheck, ruleReference); + } + public GetTrafficPolicyDocumentRuleSecondary build() { + final var o = new GetTrafficPolicyDocumentRuleSecondary(); + o.endpointReference = endpointReference; + o.evaluateTargetHealth = evaluateTargetHealth; + o.healthCheck = healthCheck; + o.ruleReference = ruleReference; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetZoneResult.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetZoneResult.java index 897b79bbf68..c37ef686ffc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetZoneResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/GetZoneResult.java @@ -19,78 +19,49 @@ public final class GetZoneResult { * @return The Amazon Resource Name (ARN) of the Hosted Zone. * */ - private final String arn; + private String arn; /** * @return Caller Reference of the Hosted Zone. * */ - private final String callerReference; + private String callerReference; /** * @return The comment field of the Hosted Zone. * */ - private final String comment; + private String comment; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The description provided by the service that created the Hosted Zone (e.g., `arn:aws:servicediscovery:us-east-1:1234567890:namespace/ns-xxxxxxxxxxxxxxxx`). * */ - private final String linkedServiceDescription; + private String linkedServiceDescription; /** * @return The service that created the Hosted Zone (e.g., `servicediscovery.amazonaws.com`). * */ - private final String linkedServicePrincipal; - private final String name; + private String linkedServicePrincipal; + private String name; /** * @return The list of DNS name servers for the Hosted Zone. * */ - private final List nameServers; - private final @Nullable Boolean privateZone; + private List nameServers; + private @Nullable Boolean privateZone; /** * @return The number of Record Set in the Hosted Zone. * */ - private final Integer resourceRecordSetCount; - private final Map tags; - private final String vpcId; - private final String zoneId; - - @CustomType.Constructor - private GetZoneResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("callerReference") String callerReference, - @CustomType.Parameter("comment") String comment, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("linkedServiceDescription") String linkedServiceDescription, - @CustomType.Parameter("linkedServicePrincipal") String linkedServicePrincipal, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("nameServers") List nameServers, - @CustomType.Parameter("privateZone") @Nullable Boolean privateZone, - @CustomType.Parameter("resourceRecordSetCount") Integer resourceRecordSetCount, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("vpcId") String vpcId, - @CustomType.Parameter("zoneId") String zoneId) { - this.arn = arn; - this.callerReference = callerReference; - this.comment = comment; - this.id = id; - this.linkedServiceDescription = linkedServiceDescription; - this.linkedServicePrincipal = linkedServicePrincipal; - this.name = name; - this.nameServers = nameServers; - this.privateZone = privateZone; - this.resourceRecordSetCount = resourceRecordSetCount; - this.tags = tags; - this.vpcId = vpcId; - this.zoneId = zoneId; - } + private Integer resourceRecordSetCount; + private Map tags; + private String vpcId; + private String zoneId; + private GetZoneResult() {} /** * @return The Amazon Resource Name (ARN) of the Hosted Zone. * @@ -170,7 +141,7 @@ public static Builder builder() { public static Builder builder(GetZoneResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String callerReference; @@ -185,11 +156,7 @@ public static final class Builder { private Map tags; private String vpcId; private String zoneId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetZoneResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -207,34 +174,42 @@ public Builder(GetZoneResult defaults) { this.zoneId = defaults.zoneId; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder callerReference(String callerReference) { this.callerReference = Objects.requireNonNull(callerReference); return this; } + @CustomType.Setter public Builder comment(String comment) { this.comment = Objects.requireNonNull(comment); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder linkedServiceDescription(String linkedServiceDescription) { this.linkedServiceDescription = Objects.requireNonNull(linkedServiceDescription); return this; } + @CustomType.Setter public Builder linkedServicePrincipal(String linkedServicePrincipal) { this.linkedServicePrincipal = Objects.requireNonNull(linkedServicePrincipal); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder nameServers(List nameServers) { this.nameServers = Objects.requireNonNull(nameServers); return this; @@ -242,27 +217,47 @@ public Builder nameServers(List nameServers) { public Builder nameServers(String... nameServers) { return nameServers(List.of(nameServers)); } + @CustomType.Setter public Builder privateZone(@Nullable Boolean privateZone) { this.privateZone = privateZone; return this; } + @CustomType.Setter public Builder resourceRecordSetCount(Integer resourceRecordSetCount) { this.resourceRecordSetCount = Objects.requireNonNull(resourceRecordSetCount); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; } + @CustomType.Setter public Builder zoneId(String zoneId) { this.zoneId = Objects.requireNonNull(zoneId); return this; - } public GetZoneResult build() { - return new GetZoneResult(arn, callerReference, comment, id, linkedServiceDescription, linkedServicePrincipal, name, nameServers, privateZone, resourceRecordSetCount, tags, vpcId, zoneId); + } + public GetZoneResult build() { + final var o = new GetZoneResult(); + o.arn = arn; + o.callerReference = callerReference; + o.comment = comment; + o.id = id; + o.linkedServiceDescription = linkedServiceDescription; + o.linkedServicePrincipal = linkedServicePrincipal; + o.name = name; + o.nameServers = nameServers; + o.privateZone = privateZone; + o.resourceRecordSetCount = resourceRecordSetCount; + o.tags = tags; + o.vpcId = vpcId; + o.zoneId = zoneId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordAlias.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordAlias.java index 58f05b73fbd..83ef69af6cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordAlias.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordAlias.java @@ -14,28 +14,19 @@ public final class RecordAlias { * @return Set to `true` if you want Route 53 to determine whether to respond to DNS queries using this resource record set by checking the health of the resource record set. Some resources have special requirements, see [related part of documentation](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-values.html#rrsets-values-alias-evaluate-target-health). * */ - private final Boolean evaluateTargetHealth; + private Boolean evaluateTargetHealth; /** * @return DNS domain name for a CloudFront distribution, S3 bucket, ELB, or another resource record set in this hosted zone. * */ - private final String name; + private String name; /** * @return Hosted zone ID for a CloudFront distribution, S3 bucket, ELB, or Route 53 hosted zone. See `resource_elb.zone_id` for example. * */ - private final String zoneId; - - @CustomType.Constructor - private RecordAlias( - @CustomType.Parameter("evaluateTargetHealth") Boolean evaluateTargetHealth, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("zoneId") String zoneId) { - this.evaluateTargetHealth = evaluateTargetHealth; - this.name = name; - this.zoneId = zoneId; - } + private String zoneId; + private RecordAlias() {} /** * @return Set to `true` if you want Route 53 to determine whether to respond to DNS queries using this resource record set by checking the health of the resource record set. Some resources have special requirements, see [related part of documentation](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-values.html#rrsets-values-alias-evaluate-target-health). * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(RecordAlias defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean evaluateTargetHealth; private String name; private String zoneId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RecordAlias defaults) { Objects.requireNonNull(defaults); this.evaluateTargetHealth = defaults.evaluateTargetHealth; @@ -82,19 +69,27 @@ public Builder(RecordAlias defaults) { this.zoneId = defaults.zoneId; } + @CustomType.Setter public Builder evaluateTargetHealth(Boolean evaluateTargetHealth) { this.evaluateTargetHealth = Objects.requireNonNull(evaluateTargetHealth); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder zoneId(String zoneId) { this.zoneId = Objects.requireNonNull(zoneId); return this; - } public RecordAlias build() { - return new RecordAlias(evaluateTargetHealth, name, zoneId); + } + public RecordAlias build() { + final var o = new RecordAlias(); + o.evaluateTargetHealth = evaluateTargetHealth; + o.name = name; + o.zoneId = zoneId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordFailoverRoutingPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordFailoverRoutingPolicy.java index 9dc3028f550..321803eb7d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordFailoverRoutingPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordFailoverRoutingPolicy.java @@ -13,13 +13,9 @@ public final class RecordFailoverRoutingPolicy { * @return `PRIMARY` or `SECONDARY`. A `PRIMARY` record will be served if its healthcheck is passing, otherwise the `SECONDARY` will be served. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring-options.html#dns-failover-failover-rrsets * */ - private final String type; - - @CustomType.Constructor - private RecordFailoverRoutingPolicy(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private RecordFailoverRoutingPolicy() {} /** * @return `PRIMARY` or `SECONDARY`. A `PRIMARY` record will be served if its healthcheck is passing, otherwise the `SECONDARY` will be served. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring-options.html#dns-failover-failover-rrsets * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RecordFailoverRoutingPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RecordFailoverRoutingPolicy defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RecordFailoverRoutingPolicy build() { - return new RecordFailoverRoutingPolicy(type); + } + public RecordFailoverRoutingPolicy build() { + final var o = new RecordFailoverRoutingPolicy(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordGeolocationRoutingPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordGeolocationRoutingPolicy.java index b1278088281..401a47c31bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordGeolocationRoutingPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordGeolocationRoutingPolicy.java @@ -15,28 +15,19 @@ public final class RecordGeolocationRoutingPolicy { * @return A two-letter continent code. See http://docs.aws.amazon.com/Route53/latest/APIReference/API_GetGeoLocation.html for code details. Either `continent` or `country` must be specified. * */ - private final @Nullable String continent; + private @Nullable String continent; /** * @return A two-character country code or `*` to indicate a default resource record set. * */ - private final @Nullable String country; + private @Nullable String country; /** * @return A subdivision code for a country. * */ - private final @Nullable String subdivision; - - @CustomType.Constructor - private RecordGeolocationRoutingPolicy( - @CustomType.Parameter("continent") @Nullable String continent, - @CustomType.Parameter("country") @Nullable String country, - @CustomType.Parameter("subdivision") @Nullable String subdivision) { - this.continent = continent; - this.country = country; - this.subdivision = subdivision; - } + private @Nullable String subdivision; + private RecordGeolocationRoutingPolicy() {} /** * @return A two-letter continent code. See http://docs.aws.amazon.com/Route53/latest/APIReference/API_GetGeoLocation.html for code details. Either `continent` or `country` must be specified. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(RecordGeolocationRoutingPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String continent; private @Nullable String country; private @Nullable String subdivision; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RecordGeolocationRoutingPolicy defaults) { Objects.requireNonNull(defaults); this.continent = defaults.continent; @@ -83,19 +70,27 @@ public Builder(RecordGeolocationRoutingPolicy defaults) { this.subdivision = defaults.subdivision; } + @CustomType.Setter public Builder continent(@Nullable String continent) { this.continent = continent; return this; } + @CustomType.Setter public Builder country(@Nullable String country) { this.country = country; return this; } + @CustomType.Setter public Builder subdivision(@Nullable String subdivision) { this.subdivision = subdivision; return this; - } public RecordGeolocationRoutingPolicy build() { - return new RecordGeolocationRoutingPolicy(continent, country, subdivision); + } + public RecordGeolocationRoutingPolicy build() { + final var o = new RecordGeolocationRoutingPolicy(); + o.continent = continent; + o.country = country; + o.subdivision = subdivision; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordLatencyRoutingPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordLatencyRoutingPolicy.java index 12b0441a876..ad278b695fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordLatencyRoutingPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordLatencyRoutingPolicy.java @@ -13,13 +13,9 @@ public final class RecordLatencyRoutingPolicy { * @return An AWS region from which to measure latency. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-latency * */ - private final String region; - - @CustomType.Constructor - private RecordLatencyRoutingPolicy(@CustomType.Parameter("region") String region) { - this.region = region; - } + private String region; + private RecordLatencyRoutingPolicy() {} /** * @return An AWS region from which to measure latency. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-latency * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RecordLatencyRoutingPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RecordLatencyRoutingPolicy defaults) { Objects.requireNonNull(defaults); this.region = defaults.region; } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; - } public RecordLatencyRoutingPolicy build() { - return new RecordLatencyRoutingPolicy(region); + } + public RecordLatencyRoutingPolicy build() { + final var o = new RecordLatencyRoutingPolicy(); + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordWeightedRoutingPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordWeightedRoutingPolicy.java index 15b38b35da6..eb4b11a9d24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordWeightedRoutingPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/RecordWeightedRoutingPolicy.java @@ -13,13 +13,9 @@ public final class RecordWeightedRoutingPolicy { * @return A numeric value indicating the relative weight of the record. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-weighted. * */ - private final Integer weight; - - @CustomType.Constructor - private RecordWeightedRoutingPolicy(@CustomType.Parameter("weight") Integer weight) { - this.weight = weight; - } + private Integer weight; + private RecordWeightedRoutingPolicy() {} /** * @return A numeric value indicating the relative weight of the record. See http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-weighted. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RecordWeightedRoutingPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer weight; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RecordWeightedRoutingPolicy defaults) { Objects.requireNonNull(defaults); this.weight = defaults.weight; } + @CustomType.Setter public Builder weight(Integer weight) { this.weight = Objects.requireNonNull(weight); return this; - } public RecordWeightedRoutingPolicy build() { - return new RecordWeightedRoutingPolicy(weight); + } + public RecordWeightedRoutingPolicy build() { + final var o = new RecordWeightedRoutingPolicy(); + o.weight = weight; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/ResolverEndpointIpAddress.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/ResolverEndpointIpAddress.java index 09818eacb7a..b5632dc62a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/ResolverEndpointIpAddress.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/ResolverEndpointIpAddress.java @@ -15,24 +15,15 @@ public final class ResolverEndpointIpAddress { * @return The IP address in the subnet that you want to use for DNS queries. * */ - private final @Nullable String ip; - private final @Nullable String ipId; + private @Nullable String ip; + private @Nullable String ipId; /** * @return The ID of the subnet that contains the IP address. * */ - private final String subnetId; - - @CustomType.Constructor - private ResolverEndpointIpAddress( - @CustomType.Parameter("ip") @Nullable String ip, - @CustomType.Parameter("ipId") @Nullable String ipId, - @CustomType.Parameter("subnetId") String subnetId) { - this.ip = ip; - this.ipId = ipId; - this.subnetId = subnetId; - } + private String subnetId; + private ResolverEndpointIpAddress() {} /** * @return The IP address in the subnet that you want to use for DNS queries. * @@ -58,16 +49,12 @@ public static Builder builder() { public static Builder builder(ResolverEndpointIpAddress defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String ip; private @Nullable String ipId; private String subnetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResolverEndpointIpAddress defaults) { Objects.requireNonNull(defaults); this.ip = defaults.ip; @@ -75,19 +62,27 @@ public Builder(ResolverEndpointIpAddress defaults) { this.subnetId = defaults.subnetId; } + @CustomType.Setter public Builder ip(@Nullable String ip) { this.ip = ip; return this; } + @CustomType.Setter public Builder ipId(@Nullable String ipId) { this.ipId = ipId; return this; } + @CustomType.Setter public Builder subnetId(String subnetId) { this.subnetId = Objects.requireNonNull(subnetId); return this; - } public ResolverEndpointIpAddress build() { - return new ResolverEndpointIpAddress(ip, ipId, subnetId); + } + public ResolverEndpointIpAddress build() { + final var o = new ResolverEndpointIpAddress(); + o.ip = ip; + o.ipId = ipId; + o.subnetId = subnetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/ResolverRuleTargetIp.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/ResolverRuleTargetIp.java index 38d4b05305b..5c8c7369085 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/ResolverRuleTargetIp.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/ResolverRuleTargetIp.java @@ -16,21 +16,14 @@ public final class ResolverRuleTargetIp { * @return One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses. * */ - private final String ip; + private String ip; /** * @return The port at `ip` that you want to forward DNS queries to. Default value is `53` * */ - private final @Nullable Integer port; - - @CustomType.Constructor - private ResolverRuleTargetIp( - @CustomType.Parameter("ip") String ip, - @CustomType.Parameter("port") @Nullable Integer port) { - this.ip = ip; - this.port = port; - } + private @Nullable Integer port; + private ResolverRuleTargetIp() {} /** * @return One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ResolverRuleTargetIp defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String ip; private @Nullable Integer port; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResolverRuleTargetIp defaults) { Objects.requireNonNull(defaults); this.ip = defaults.ip; this.port = defaults.port; } + @CustomType.Setter public Builder ip(String ip) { this.ip = Objects.requireNonNull(ip); return this; } + @CustomType.Setter public Builder port(@Nullable Integer port) { this.port = port; return this; - } public ResolverRuleTargetIp build() { - return new ResolverRuleTargetIp(ip, port); + } + public ResolverRuleTargetIp build() { + final var o = new ResolverRuleTargetIp(); + o.ip = ip; + o.port = port; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/ZoneVpc.java b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/ZoneVpc.java index a386096b8b0..b0461e33f84 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/ZoneVpc.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53/outputs/ZoneVpc.java @@ -15,21 +15,14 @@ public final class ZoneVpc { * @return ID of the VPC to associate. * */ - private final String vpcId; + private String vpcId; /** * @return Region of the VPC to associate. Defaults to AWS provider region. * */ - private final @Nullable String vpcRegion; - - @CustomType.Constructor - private ZoneVpc( - @CustomType.Parameter("vpcId") String vpcId, - @CustomType.Parameter("vpcRegion") @Nullable String vpcRegion) { - this.vpcId = vpcId; - this.vpcRegion = vpcRegion; - } + private @Nullable String vpcRegion; + private ZoneVpc() {} /** * @return ID of the VPC to associate. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ZoneVpc defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String vpcId; private @Nullable String vpcRegion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ZoneVpc defaults) { Objects.requireNonNull(defaults); this.vpcId = defaults.vpcId; this.vpcRegion = defaults.vpcRegion; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; } + @CustomType.Setter public Builder vpcRegion(@Nullable String vpcRegion) { this.vpcRegion = vpcRegion; return this; - } public ZoneVpc build() { - return new ZoneVpc(vpcId, vpcRegion); + } + public ZoneVpc build() { + final var o = new ZoneVpc(); + o.vpcId = vpcId; + o.vpcRegion = vpcRegion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainAdminContact.java b/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainAdminContact.java index edf76de3402..37ed20aa9a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainAdminContact.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainAdminContact.java @@ -16,105 +16,74 @@ public final class RegisteredDomainAdminContact { * @return First line of the contact's address. * */ - private final @Nullable String addressLine1; + private @Nullable String addressLine1; /** * @return Second line of contact's address, if any. * */ - private final @Nullable String addressLine2; + private @Nullable String addressLine2; /** * @return The city of the contact's address. * */ - private final @Nullable String city; + private @Nullable String city; /** * @return Indicates whether the contact is a person, company, association, or public organization. See the [AWS API documentation](https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html#Route53Domains-Type-domains_ContactDetail-ContactType) for valid values. * */ - private final @Nullable String contactType; + private @Nullable String contactType; /** * @return Code for the country of the contact's address. See the [AWS API documentation](https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html#Route53Domains-Type-domains_ContactDetail-CountryCode) for valid values. * */ - private final @Nullable String countryCode; + private @Nullable String countryCode; /** * @return Email address of the contact. * */ - private final @Nullable String email; + private @Nullable String email; /** * @return A key-value map of parameters required by certain top-level domains. * */ - private final @Nullable Map extraParams; + private @Nullable Map extraParams; /** * @return Fax number of the contact. Phone number must be specified in the format "+[country dialing code].[number including any area code]". * */ - private final @Nullable String fax; + private @Nullable String fax; /** * @return First name of contact. * */ - private final @Nullable String firstName; + private @Nullable String firstName; /** * @return Last name of contact. * */ - private final @Nullable String lastName; + private @Nullable String lastName; /** * @return Name of the organization for contact types other than `PERSON`. * */ - private final @Nullable String organizationName; + private @Nullable String organizationName; /** * @return The phone number of the contact. Phone number must be specified in the format "+[country dialing code].[number including any area code]". * */ - private final @Nullable String phoneNumber; + private @Nullable String phoneNumber; /** * @return The state or province of the contact's city. * */ - private final @Nullable String state; + private @Nullable String state; /** * @return The zip or postal code of the contact's address. * */ - private final @Nullable String zipCode; - - @CustomType.Constructor - private RegisteredDomainAdminContact( - @CustomType.Parameter("addressLine1") @Nullable String addressLine1, - @CustomType.Parameter("addressLine2") @Nullable String addressLine2, - @CustomType.Parameter("city") @Nullable String city, - @CustomType.Parameter("contactType") @Nullable String contactType, - @CustomType.Parameter("countryCode") @Nullable String countryCode, - @CustomType.Parameter("email") @Nullable String email, - @CustomType.Parameter("extraParams") @Nullable Map extraParams, - @CustomType.Parameter("fax") @Nullable String fax, - @CustomType.Parameter("firstName") @Nullable String firstName, - @CustomType.Parameter("lastName") @Nullable String lastName, - @CustomType.Parameter("organizationName") @Nullable String organizationName, - @CustomType.Parameter("phoneNumber") @Nullable String phoneNumber, - @CustomType.Parameter("state") @Nullable String state, - @CustomType.Parameter("zipCode") @Nullable String zipCode) { - this.addressLine1 = addressLine1; - this.addressLine2 = addressLine2; - this.city = city; - this.contactType = contactType; - this.countryCode = countryCode; - this.email = email; - this.extraParams = extraParams; - this.fax = fax; - this.firstName = firstName; - this.lastName = lastName; - this.organizationName = organizationName; - this.phoneNumber = phoneNumber; - this.state = state; - this.zipCode = zipCode; - } + private @Nullable String zipCode; + private RegisteredDomainAdminContact() {} /** * @return First line of the contact's address. * @@ -221,7 +190,7 @@ public static Builder builder() { public static Builder builder(RegisteredDomainAdminContact defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String addressLine1; private @Nullable String addressLine2; @@ -237,11 +206,7 @@ public static final class Builder { private @Nullable String phoneNumber; private @Nullable String state; private @Nullable String zipCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RegisteredDomainAdminContact defaults) { Objects.requireNonNull(defaults); this.addressLine1 = defaults.addressLine1; @@ -260,63 +225,93 @@ public Builder(RegisteredDomainAdminContact defaults) { this.zipCode = defaults.zipCode; } + @CustomType.Setter public Builder addressLine1(@Nullable String addressLine1) { this.addressLine1 = addressLine1; return this; } + @CustomType.Setter public Builder addressLine2(@Nullable String addressLine2) { this.addressLine2 = addressLine2; return this; } + @CustomType.Setter public Builder city(@Nullable String city) { this.city = city; return this; } + @CustomType.Setter public Builder contactType(@Nullable String contactType) { this.contactType = contactType; return this; } + @CustomType.Setter public Builder countryCode(@Nullable String countryCode) { this.countryCode = countryCode; return this; } + @CustomType.Setter public Builder email(@Nullable String email) { this.email = email; return this; } + @CustomType.Setter public Builder extraParams(@Nullable Map extraParams) { this.extraParams = extraParams; return this; } + @CustomType.Setter public Builder fax(@Nullable String fax) { this.fax = fax; return this; } + @CustomType.Setter public Builder firstName(@Nullable String firstName) { this.firstName = firstName; return this; } + @CustomType.Setter public Builder lastName(@Nullable String lastName) { this.lastName = lastName; return this; } + @CustomType.Setter public Builder organizationName(@Nullable String organizationName) { this.organizationName = organizationName; return this; } + @CustomType.Setter public Builder phoneNumber(@Nullable String phoneNumber) { this.phoneNumber = phoneNumber; return this; } + @CustomType.Setter public Builder state(@Nullable String state) { this.state = state; return this; } + @CustomType.Setter public Builder zipCode(@Nullable String zipCode) { this.zipCode = zipCode; return this; - } public RegisteredDomainAdminContact build() { - return new RegisteredDomainAdminContact(addressLine1, addressLine2, city, contactType, countryCode, email, extraParams, fax, firstName, lastName, organizationName, phoneNumber, state, zipCode); + } + public RegisteredDomainAdminContact build() { + final var o = new RegisteredDomainAdminContact(); + o.addressLine1 = addressLine1; + o.addressLine2 = addressLine2; + o.city = city; + o.contactType = contactType; + o.countryCode = countryCode; + o.email = email; + o.extraParams = extraParams; + o.fax = fax; + o.firstName = firstName; + o.lastName = lastName; + o.organizationName = organizationName; + o.phoneNumber = phoneNumber; + o.state = state; + o.zipCode = zipCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainNameServer.java b/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainNameServer.java index 908f9d61015..b70c2165cf6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainNameServer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainNameServer.java @@ -15,21 +15,14 @@ public final class RegisteredDomainNameServer { * @return Glue IP addresses of a name server. The list can contain only one IPv4 and one IPv6 address. * */ - private final @Nullable List glueIps; + private @Nullable List glueIps; /** * @return The fully qualified host name of the name server. * */ - private final String name; - - @CustomType.Constructor - private RegisteredDomainNameServer( - @CustomType.Parameter("glueIps") @Nullable List glueIps, - @CustomType.Parameter("name") String name) { - this.glueIps = glueIps; - this.name = name; - } + private String name; + private RegisteredDomainNameServer() {} /** * @return Glue IP addresses of a name server. The list can contain only one IPv4 and one IPv6 address. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(RegisteredDomainNameServer defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List glueIps; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RegisteredDomainNameServer defaults) { Objects.requireNonNull(defaults); this.glueIps = defaults.glueIps; this.name = defaults.name; } + @CustomType.Setter public Builder glueIps(@Nullable List glueIps) { this.glueIps = glueIps; return this; @@ -74,11 +64,16 @@ public Builder glueIps(@Nullable List glueIps) { public Builder glueIps(String... glueIps) { return glueIps(List.of(glueIps)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RegisteredDomainNameServer build() { - return new RegisteredDomainNameServer(glueIps, name); + } + public RegisteredDomainNameServer build() { + final var o = new RegisteredDomainNameServer(); + o.glueIps = glueIps; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainRegistrantContact.java b/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainRegistrantContact.java index 5e2feb2addd..5365bc98dda 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainRegistrantContact.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainRegistrantContact.java @@ -16,105 +16,74 @@ public final class RegisteredDomainRegistrantContact { * @return First line of the contact's address. * */ - private final @Nullable String addressLine1; + private @Nullable String addressLine1; /** * @return Second line of contact's address, if any. * */ - private final @Nullable String addressLine2; + private @Nullable String addressLine2; /** * @return The city of the contact's address. * */ - private final @Nullable String city; + private @Nullable String city; /** * @return Indicates whether the contact is a person, company, association, or public organization. See the [AWS API documentation](https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html#Route53Domains-Type-domains_ContactDetail-ContactType) for valid values. * */ - private final @Nullable String contactType; + private @Nullable String contactType; /** * @return Code for the country of the contact's address. See the [AWS API documentation](https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html#Route53Domains-Type-domains_ContactDetail-CountryCode) for valid values. * */ - private final @Nullable String countryCode; + private @Nullable String countryCode; /** * @return Email address of the contact. * */ - private final @Nullable String email; + private @Nullable String email; /** * @return A key-value map of parameters required by certain top-level domains. * */ - private final @Nullable Map extraParams; + private @Nullable Map extraParams; /** * @return Fax number of the contact. Phone number must be specified in the format "+[country dialing code].[number including any area code]". * */ - private final @Nullable String fax; + private @Nullable String fax; /** * @return First name of contact. * */ - private final @Nullable String firstName; + private @Nullable String firstName; /** * @return Last name of contact. * */ - private final @Nullable String lastName; + private @Nullable String lastName; /** * @return Name of the organization for contact types other than `PERSON`. * */ - private final @Nullable String organizationName; + private @Nullable String organizationName; /** * @return The phone number of the contact. Phone number must be specified in the format "+[country dialing code].[number including any area code]". * */ - private final @Nullable String phoneNumber; + private @Nullable String phoneNumber; /** * @return The state or province of the contact's city. * */ - private final @Nullable String state; + private @Nullable String state; /** * @return The zip or postal code of the contact's address. * */ - private final @Nullable String zipCode; - - @CustomType.Constructor - private RegisteredDomainRegistrantContact( - @CustomType.Parameter("addressLine1") @Nullable String addressLine1, - @CustomType.Parameter("addressLine2") @Nullable String addressLine2, - @CustomType.Parameter("city") @Nullable String city, - @CustomType.Parameter("contactType") @Nullable String contactType, - @CustomType.Parameter("countryCode") @Nullable String countryCode, - @CustomType.Parameter("email") @Nullable String email, - @CustomType.Parameter("extraParams") @Nullable Map extraParams, - @CustomType.Parameter("fax") @Nullable String fax, - @CustomType.Parameter("firstName") @Nullable String firstName, - @CustomType.Parameter("lastName") @Nullable String lastName, - @CustomType.Parameter("organizationName") @Nullable String organizationName, - @CustomType.Parameter("phoneNumber") @Nullable String phoneNumber, - @CustomType.Parameter("state") @Nullable String state, - @CustomType.Parameter("zipCode") @Nullable String zipCode) { - this.addressLine1 = addressLine1; - this.addressLine2 = addressLine2; - this.city = city; - this.contactType = contactType; - this.countryCode = countryCode; - this.email = email; - this.extraParams = extraParams; - this.fax = fax; - this.firstName = firstName; - this.lastName = lastName; - this.organizationName = organizationName; - this.phoneNumber = phoneNumber; - this.state = state; - this.zipCode = zipCode; - } + private @Nullable String zipCode; + private RegisteredDomainRegistrantContact() {} /** * @return First line of the contact's address. * @@ -221,7 +190,7 @@ public static Builder builder() { public static Builder builder(RegisteredDomainRegistrantContact defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String addressLine1; private @Nullable String addressLine2; @@ -237,11 +206,7 @@ public static final class Builder { private @Nullable String phoneNumber; private @Nullable String state; private @Nullable String zipCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RegisteredDomainRegistrantContact defaults) { Objects.requireNonNull(defaults); this.addressLine1 = defaults.addressLine1; @@ -260,63 +225,93 @@ public Builder(RegisteredDomainRegistrantContact defaults) { this.zipCode = defaults.zipCode; } + @CustomType.Setter public Builder addressLine1(@Nullable String addressLine1) { this.addressLine1 = addressLine1; return this; } + @CustomType.Setter public Builder addressLine2(@Nullable String addressLine2) { this.addressLine2 = addressLine2; return this; } + @CustomType.Setter public Builder city(@Nullable String city) { this.city = city; return this; } + @CustomType.Setter public Builder contactType(@Nullable String contactType) { this.contactType = contactType; return this; } + @CustomType.Setter public Builder countryCode(@Nullable String countryCode) { this.countryCode = countryCode; return this; } + @CustomType.Setter public Builder email(@Nullable String email) { this.email = email; return this; } + @CustomType.Setter public Builder extraParams(@Nullable Map extraParams) { this.extraParams = extraParams; return this; } + @CustomType.Setter public Builder fax(@Nullable String fax) { this.fax = fax; return this; } + @CustomType.Setter public Builder firstName(@Nullable String firstName) { this.firstName = firstName; return this; } + @CustomType.Setter public Builder lastName(@Nullable String lastName) { this.lastName = lastName; return this; } + @CustomType.Setter public Builder organizationName(@Nullable String organizationName) { this.organizationName = organizationName; return this; } + @CustomType.Setter public Builder phoneNumber(@Nullable String phoneNumber) { this.phoneNumber = phoneNumber; return this; } + @CustomType.Setter public Builder state(@Nullable String state) { this.state = state; return this; } + @CustomType.Setter public Builder zipCode(@Nullable String zipCode) { this.zipCode = zipCode; return this; - } public RegisteredDomainRegistrantContact build() { - return new RegisteredDomainRegistrantContact(addressLine1, addressLine2, city, contactType, countryCode, email, extraParams, fax, firstName, lastName, organizationName, phoneNumber, state, zipCode); + } + public RegisteredDomainRegistrantContact build() { + final var o = new RegisteredDomainRegistrantContact(); + o.addressLine1 = addressLine1; + o.addressLine2 = addressLine2; + o.city = city; + o.contactType = contactType; + o.countryCode = countryCode; + o.email = email; + o.extraParams = extraParams; + o.fax = fax; + o.firstName = firstName; + o.lastName = lastName; + o.organizationName = organizationName; + o.phoneNumber = phoneNumber; + o.state = state; + o.zipCode = zipCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainTechContact.java b/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainTechContact.java index fe7679a57df..332272f0137 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainTechContact.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53domains/outputs/RegisteredDomainTechContact.java @@ -16,105 +16,74 @@ public final class RegisteredDomainTechContact { * @return First line of the contact's address. * */ - private final @Nullable String addressLine1; + private @Nullable String addressLine1; /** * @return Second line of contact's address, if any. * */ - private final @Nullable String addressLine2; + private @Nullable String addressLine2; /** * @return The city of the contact's address. * */ - private final @Nullable String city; + private @Nullable String city; /** * @return Indicates whether the contact is a person, company, association, or public organization. See the [AWS API documentation](https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html#Route53Domains-Type-domains_ContactDetail-ContactType) for valid values. * */ - private final @Nullable String contactType; + private @Nullable String contactType; /** * @return Code for the country of the contact's address. See the [AWS API documentation](https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html#Route53Domains-Type-domains_ContactDetail-CountryCode) for valid values. * */ - private final @Nullable String countryCode; + private @Nullable String countryCode; /** * @return Email address of the contact. * */ - private final @Nullable String email; + private @Nullable String email; /** * @return A key-value map of parameters required by certain top-level domains. * */ - private final @Nullable Map extraParams; + private @Nullable Map extraParams; /** * @return Fax number of the contact. Phone number must be specified in the format "+[country dialing code].[number including any area code]". * */ - private final @Nullable String fax; + private @Nullable String fax; /** * @return First name of contact. * */ - private final @Nullable String firstName; + private @Nullable String firstName; /** * @return Last name of contact. * */ - private final @Nullable String lastName; + private @Nullable String lastName; /** * @return Name of the organization for contact types other than `PERSON`. * */ - private final @Nullable String organizationName; + private @Nullable String organizationName; /** * @return The phone number of the contact. Phone number must be specified in the format "+[country dialing code].[number including any area code]". * */ - private final @Nullable String phoneNumber; + private @Nullable String phoneNumber; /** * @return The state or province of the contact's city. * */ - private final @Nullable String state; + private @Nullable String state; /** * @return The zip or postal code of the contact's address. * */ - private final @Nullable String zipCode; - - @CustomType.Constructor - private RegisteredDomainTechContact( - @CustomType.Parameter("addressLine1") @Nullable String addressLine1, - @CustomType.Parameter("addressLine2") @Nullable String addressLine2, - @CustomType.Parameter("city") @Nullable String city, - @CustomType.Parameter("contactType") @Nullable String contactType, - @CustomType.Parameter("countryCode") @Nullable String countryCode, - @CustomType.Parameter("email") @Nullable String email, - @CustomType.Parameter("extraParams") @Nullable Map extraParams, - @CustomType.Parameter("fax") @Nullable String fax, - @CustomType.Parameter("firstName") @Nullable String firstName, - @CustomType.Parameter("lastName") @Nullable String lastName, - @CustomType.Parameter("organizationName") @Nullable String organizationName, - @CustomType.Parameter("phoneNumber") @Nullable String phoneNumber, - @CustomType.Parameter("state") @Nullable String state, - @CustomType.Parameter("zipCode") @Nullable String zipCode) { - this.addressLine1 = addressLine1; - this.addressLine2 = addressLine2; - this.city = city; - this.contactType = contactType; - this.countryCode = countryCode; - this.email = email; - this.extraParams = extraParams; - this.fax = fax; - this.firstName = firstName; - this.lastName = lastName; - this.organizationName = organizationName; - this.phoneNumber = phoneNumber; - this.state = state; - this.zipCode = zipCode; - } + private @Nullable String zipCode; + private RegisteredDomainTechContact() {} /** * @return First line of the contact's address. * @@ -221,7 +190,7 @@ public static Builder builder() { public static Builder builder(RegisteredDomainTechContact defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String addressLine1; private @Nullable String addressLine2; @@ -237,11 +206,7 @@ public static final class Builder { private @Nullable String phoneNumber; private @Nullable String state; private @Nullable String zipCode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RegisteredDomainTechContact defaults) { Objects.requireNonNull(defaults); this.addressLine1 = defaults.addressLine1; @@ -260,63 +225,93 @@ public Builder(RegisteredDomainTechContact defaults) { this.zipCode = defaults.zipCode; } + @CustomType.Setter public Builder addressLine1(@Nullable String addressLine1) { this.addressLine1 = addressLine1; return this; } + @CustomType.Setter public Builder addressLine2(@Nullable String addressLine2) { this.addressLine2 = addressLine2; return this; } + @CustomType.Setter public Builder city(@Nullable String city) { this.city = city; return this; } + @CustomType.Setter public Builder contactType(@Nullable String contactType) { this.contactType = contactType; return this; } + @CustomType.Setter public Builder countryCode(@Nullable String countryCode) { this.countryCode = countryCode; return this; } + @CustomType.Setter public Builder email(@Nullable String email) { this.email = email; return this; } + @CustomType.Setter public Builder extraParams(@Nullable Map extraParams) { this.extraParams = extraParams; return this; } + @CustomType.Setter public Builder fax(@Nullable String fax) { this.fax = fax; return this; } + @CustomType.Setter public Builder firstName(@Nullable String firstName) { this.firstName = firstName; return this; } + @CustomType.Setter public Builder lastName(@Nullable String lastName) { this.lastName = lastName; return this; } + @CustomType.Setter public Builder organizationName(@Nullable String organizationName) { this.organizationName = organizationName; return this; } + @CustomType.Setter public Builder phoneNumber(@Nullable String phoneNumber) { this.phoneNumber = phoneNumber; return this; } + @CustomType.Setter public Builder state(@Nullable String state) { this.state = state; return this; } + @CustomType.Setter public Builder zipCode(@Nullable String zipCode) { this.zipCode = zipCode; return this; - } public RegisteredDomainTechContact build() { - return new RegisteredDomainTechContact(addressLine1, addressLine2, city, contactType, countryCode, email, extraParams, fax, firstName, lastName, organizationName, phoneNumber, state, zipCode); + } + public RegisteredDomainTechContact build() { + final var o = new RegisteredDomainTechContact(); + o.addressLine1 = addressLine1; + o.addressLine2 = addressLine2; + o.city = city; + o.contactType = contactType; + o.countryCode = countryCode; + o.email = email; + o.extraParams = extraParams; + o.fax = fax; + o.firstName = firstName; + o.lastName = lastName; + o.organizationName = organizationName; + o.phoneNumber = phoneNumber; + o.state = state; + o.zipCode = zipCode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53recoverycontrol/outputs/ClusterClusterEndpoint.java b/sdk/java/src/main/java/com/pulumi/aws/route53recoverycontrol/outputs/ClusterClusterEndpoint.java index 8e8bb5ce513..7c9ca1a9340 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53recoverycontrol/outputs/ClusterClusterEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53recoverycontrol/outputs/ClusterClusterEndpoint.java @@ -15,21 +15,14 @@ public final class ClusterClusterEndpoint { * @return Cluster endpoint. * */ - private final @Nullable String endpoint; + private @Nullable String endpoint; /** * @return Region of the endpoint. * */ - private final @Nullable String region; - - @CustomType.Constructor - private ClusterClusterEndpoint( - @CustomType.Parameter("endpoint") @Nullable String endpoint, - @CustomType.Parameter("region") @Nullable String region) { - this.endpoint = endpoint; - this.region = region; - } + private @Nullable String region; + private ClusterClusterEndpoint() {} /** * @return Cluster endpoint. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ClusterClusterEndpoint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String endpoint; private @Nullable String region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ClusterClusterEndpoint defaults) { Objects.requireNonNull(defaults); this.endpoint = defaults.endpoint; this.region = defaults.region; } + @CustomType.Setter public Builder endpoint(@Nullable String endpoint) { this.endpoint = endpoint; return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; - } public ClusterClusterEndpoint build() { - return new ClusterClusterEndpoint(endpoint, region); + } + public ClusterClusterEndpoint build() { + final var o = new ClusterClusterEndpoint(); + o.endpoint = endpoint; + o.region = region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53recoverycontrol/outputs/SafetyRuleRuleConfig.java b/sdk/java/src/main/java/com/pulumi/aws/route53recoverycontrol/outputs/SafetyRuleRuleConfig.java index 85ebba2ad20..418a61034fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53recoverycontrol/outputs/SafetyRuleRuleConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53recoverycontrol/outputs/SafetyRuleRuleConfig.java @@ -15,28 +15,19 @@ public final class SafetyRuleRuleConfig { * @return Logical negation of the rule. * */ - private final Boolean inverted; + private Boolean inverted; /** * @return Number of controls that must be set when you specify an `ATLEAST` type rule. * */ - private final Integer threshold; + private Integer threshold; /** * @return Rule type. Valid values are `ATLEAST`, `AND`, and `OR`. * */ - private final String type; - - @CustomType.Constructor - private SafetyRuleRuleConfig( - @CustomType.Parameter("inverted") Boolean inverted, - @CustomType.Parameter("threshold") Integer threshold, - @CustomType.Parameter("type") String type) { - this.inverted = inverted; - this.threshold = threshold; - this.type = type; - } + private String type; + private SafetyRuleRuleConfig() {} /** * @return Logical negation of the rule. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(SafetyRuleRuleConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean inverted; private Integer threshold; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SafetyRuleRuleConfig defaults) { Objects.requireNonNull(defaults); this.inverted = defaults.inverted; @@ -83,19 +70,27 @@ public Builder(SafetyRuleRuleConfig defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder inverted(Boolean inverted) { this.inverted = Objects.requireNonNull(inverted); return this; } + @CustomType.Setter public Builder threshold(Integer threshold) { this.threshold = Objects.requireNonNull(threshold); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public SafetyRuleRuleConfig build() { - return new SafetyRuleRuleConfig(inverted, threshold, type); + } + public SafetyRuleRuleConfig build() { + final var o = new SafetyRuleRuleConfig(); + o.inverted = inverted; + o.threshold = threshold; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResource.java b/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResource.java index cb5e9053c16..9fc35c49546 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResource.java @@ -13,35 +13,24 @@ @CustomType public final class ResourceSetResource { - private final @Nullable String componentId; + private @Nullable String componentId; /** * @return Component for DNS/Routing Control Readiness Checks. * */ - private final @Nullable ResourceSetResourceDnsTargetResource dnsTargetResource; + private @Nullable ResourceSetResourceDnsTargetResource dnsTargetResource; /** * @return Recovery group ARN or cell ARN that contains this resource set. * */ - private final @Nullable List readinessScopes; + private @Nullable List readinessScopes; /** * @return ARN of the resource. * */ - private final @Nullable String resourceArn; - - @CustomType.Constructor - private ResourceSetResource( - @CustomType.Parameter("componentId") @Nullable String componentId, - @CustomType.Parameter("dnsTargetResource") @Nullable ResourceSetResourceDnsTargetResource dnsTargetResource, - @CustomType.Parameter("readinessScopes") @Nullable List readinessScopes, - @CustomType.Parameter("resourceArn") @Nullable String resourceArn) { - this.componentId = componentId; - this.dnsTargetResource = dnsTargetResource; - this.readinessScopes = readinessScopes; - this.resourceArn = resourceArn; - } + private @Nullable String resourceArn; + private ResourceSetResource() {} public Optional componentId() { return Optional.ofNullable(this.componentId); } @@ -74,17 +63,13 @@ public static Builder builder() { public static Builder builder(ResourceSetResource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String componentId; private @Nullable ResourceSetResourceDnsTargetResource dnsTargetResource; private @Nullable List readinessScopes; private @Nullable String resourceArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResourceSetResource defaults) { Objects.requireNonNull(defaults); this.componentId = defaults.componentId; @@ -93,14 +78,17 @@ public Builder(ResourceSetResource defaults) { this.resourceArn = defaults.resourceArn; } + @CustomType.Setter public Builder componentId(@Nullable String componentId) { this.componentId = componentId; return this; } + @CustomType.Setter public Builder dnsTargetResource(@Nullable ResourceSetResourceDnsTargetResource dnsTargetResource) { this.dnsTargetResource = dnsTargetResource; return this; } + @CustomType.Setter public Builder readinessScopes(@Nullable List readinessScopes) { this.readinessScopes = readinessScopes; return this; @@ -108,11 +96,18 @@ public Builder readinessScopes(@Nullable List readinessScopes) { public Builder readinessScopes(String... readinessScopes) { return readinessScopes(List.of(readinessScopes)); } + @CustomType.Setter public Builder resourceArn(@Nullable String resourceArn) { this.resourceArn = resourceArn; return this; - } public ResourceSetResource build() { - return new ResourceSetResource(componentId, dnsTargetResource, readinessScopes, resourceArn); + } + public ResourceSetResource build() { + final var o = new ResourceSetResource(); + o.componentId = componentId; + o.dnsTargetResource = dnsTargetResource; + o.readinessScopes = readinessScopes; + o.resourceArn = resourceArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResource.java b/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResource.java index 72a0e481339..9eb3322472e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResource.java @@ -16,42 +16,29 @@ public final class ResourceSetResourceDnsTargetResource { * @return Domain name that is targeted. * */ - private final String domainName; + private String domainName; /** * @return Hosted Zone ARN that contains the DNS record with the provided name of target resource. * */ - private final @Nullable String hostedZoneArn; + private @Nullable String hostedZoneArn; /** * @return Resource record set ID that is targeted. * */ - private final @Nullable String recordSetId; + private @Nullable String recordSetId; /** * @return Type of DNS Record of target resource. * */ - private final @Nullable String recordType; + private @Nullable String recordType; /** * @return Target resource the R53 record specified with the above params points to. * */ - private final @Nullable ResourceSetResourceDnsTargetResourceTargetResource targetResource; - - @CustomType.Constructor - private ResourceSetResourceDnsTargetResource( - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("hostedZoneArn") @Nullable String hostedZoneArn, - @CustomType.Parameter("recordSetId") @Nullable String recordSetId, - @CustomType.Parameter("recordType") @Nullable String recordType, - @CustomType.Parameter("targetResource") @Nullable ResourceSetResourceDnsTargetResourceTargetResource targetResource) { - this.domainName = domainName; - this.hostedZoneArn = hostedZoneArn; - this.recordSetId = recordSetId; - this.recordType = recordType; - this.targetResource = targetResource; - } + private @Nullable ResourceSetResourceDnsTargetResourceTargetResource targetResource; + private ResourceSetResourceDnsTargetResource() {} /** * @return Domain name that is targeted. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ResourceSetResourceDnsTargetResource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String domainName; private @Nullable String hostedZoneArn; private @Nullable String recordSetId; private @Nullable String recordType; private @Nullable ResourceSetResourceDnsTargetResourceTargetResource targetResource; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResourceSetResourceDnsTargetResource defaults) { Objects.requireNonNull(defaults); this.domainName = defaults.domainName; @@ -116,27 +99,39 @@ public Builder(ResourceSetResourceDnsTargetResource defaults) { this.targetResource = defaults.targetResource; } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder hostedZoneArn(@Nullable String hostedZoneArn) { this.hostedZoneArn = hostedZoneArn; return this; } + @CustomType.Setter public Builder recordSetId(@Nullable String recordSetId) { this.recordSetId = recordSetId; return this; } + @CustomType.Setter public Builder recordType(@Nullable String recordType) { this.recordType = recordType; return this; } + @CustomType.Setter public Builder targetResource(@Nullable ResourceSetResourceDnsTargetResourceTargetResource targetResource) { this.targetResource = targetResource; return this; - } public ResourceSetResourceDnsTargetResource build() { - return new ResourceSetResourceDnsTargetResource(domainName, hostedZoneArn, recordSetId, recordType, targetResource); + } + public ResourceSetResourceDnsTargetResource build() { + final var o = new ResourceSetResourceDnsTargetResource(); + o.domainName = domainName; + o.hostedZoneArn = hostedZoneArn; + o.recordSetId = recordSetId; + o.recordType = recordType; + o.targetResource = targetResource; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResourceTargetResource.java b/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResourceTargetResource.java index f1b26f5063b..80bc7e6ce31 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResourceTargetResource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResourceTargetResource.java @@ -16,21 +16,14 @@ public final class ResourceSetResourceDnsTargetResourceTargetResource { * @return NLB resource a DNS Target Resource points to. Required if `r53_resource` is not set. * */ - private final @Nullable ResourceSetResourceDnsTargetResourceTargetResourceNlbResource nlbResource; + private @Nullable ResourceSetResourceDnsTargetResourceTargetResourceNlbResource nlbResource; /** * @return Route53 resource a DNS Target Resource record points to. * */ - private final @Nullable ResourceSetResourceDnsTargetResourceTargetResourceR53Resource r53Resource; - - @CustomType.Constructor - private ResourceSetResourceDnsTargetResourceTargetResource( - @CustomType.Parameter("nlbResource") @Nullable ResourceSetResourceDnsTargetResourceTargetResourceNlbResource nlbResource, - @CustomType.Parameter("r53Resource") @Nullable ResourceSetResourceDnsTargetResourceTargetResourceR53Resource r53Resource) { - this.nlbResource = nlbResource; - this.r53Resource = r53Resource; - } + private @Nullable ResourceSetResourceDnsTargetResourceTargetResourceR53Resource r53Resource; + private ResourceSetResourceDnsTargetResourceTargetResource() {} /** * @return NLB resource a DNS Target Resource points to. Required if `r53_resource` is not set. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ResourceSetResourceDnsTargetResourceTargetResource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ResourceSetResourceDnsTargetResourceTargetResourceNlbResource nlbResource; private @Nullable ResourceSetResourceDnsTargetResourceTargetResourceR53Resource r53Resource; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResourceSetResourceDnsTargetResourceTargetResource defaults) { Objects.requireNonNull(defaults); this.nlbResource = defaults.nlbResource; this.r53Resource = defaults.r53Resource; } + @CustomType.Setter public Builder nlbResource(@Nullable ResourceSetResourceDnsTargetResourceTargetResourceNlbResource nlbResource) { this.nlbResource = nlbResource; return this; } + @CustomType.Setter public Builder r53Resource(@Nullable ResourceSetResourceDnsTargetResourceTargetResourceR53Resource r53Resource) { this.r53Resource = r53Resource; return this; - } public ResourceSetResourceDnsTargetResourceTargetResource build() { - return new ResourceSetResourceDnsTargetResourceTargetResource(nlbResource, r53Resource); + } + public ResourceSetResourceDnsTargetResourceTargetResource build() { + final var o = new ResourceSetResourceDnsTargetResourceTargetResource(); + o.nlbResource = nlbResource; + o.r53Resource = r53Resource; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResourceTargetResourceNlbResource.java b/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResourceTargetResourceNlbResource.java index 1b45d202ebc..0e1e26a4ccb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResourceTargetResourceNlbResource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResourceTargetResourceNlbResource.java @@ -15,13 +15,9 @@ public final class ResourceSetResourceDnsTargetResourceTargetResourceNlbResource * @return NLB resource ARN. * */ - private final @Nullable String arn; - - @CustomType.Constructor - private ResourceSetResourceDnsTargetResourceTargetResourceNlbResource(@CustomType.Parameter("arn") @Nullable String arn) { - this.arn = arn; - } + private @Nullable String arn; + private ResourceSetResourceDnsTargetResourceTargetResourceNlbResource() {} /** * @return NLB resource ARN. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ResourceSetResourceDnsTargetResourceTargetResourceNlbResource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String arn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResourceSetResourceDnsTargetResourceTargetResourceNlbResource defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; } + @CustomType.Setter public Builder arn(@Nullable String arn) { this.arn = arn; return this; - } public ResourceSetResourceDnsTargetResourceTargetResourceNlbResource build() { - return new ResourceSetResourceDnsTargetResourceTargetResourceNlbResource(arn); + } + public ResourceSetResourceDnsTargetResourceTargetResourceNlbResource build() { + final var o = new ResourceSetResourceDnsTargetResourceTargetResourceNlbResource(); + o.arn = arn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResourceTargetResourceR53Resource.java b/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResourceTargetResourceR53Resource.java index 0a7438f8513..42502af204a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResourceTargetResourceR53Resource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/route53recoveryreadiness/outputs/ResourceSetResourceDnsTargetResourceTargetResourceR53Resource.java @@ -15,21 +15,14 @@ public final class ResourceSetResourceDnsTargetResourceTargetResourceR53Resource * @return Domain name that is targeted. * */ - private final @Nullable String domainName; + private @Nullable String domainName; /** * @return Resource record set ID that is targeted. * */ - private final @Nullable String recordSetId; - - @CustomType.Constructor - private ResourceSetResourceDnsTargetResourceTargetResourceR53Resource( - @CustomType.Parameter("domainName") @Nullable String domainName, - @CustomType.Parameter("recordSetId") @Nullable String recordSetId) { - this.domainName = domainName; - this.recordSetId = recordSetId; - } + private @Nullable String recordSetId; + private ResourceSetResourceDnsTargetResourceTargetResourceR53Resource() {} /** * @return Domain name that is targeted. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ResourceSetResourceDnsTargetResourceTargetResourceR53Resource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String domainName; private @Nullable String recordSetId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResourceSetResourceDnsTargetResourceTargetResourceR53Resource defaults) { Objects.requireNonNull(defaults); this.domainName = defaults.domainName; this.recordSetId = defaults.recordSetId; } + @CustomType.Setter public Builder domainName(@Nullable String domainName) { this.domainName = domainName; return this; } + @CustomType.Setter public Builder recordSetId(@Nullable String recordSetId) { this.recordSetId = recordSetId; return this; - } public ResourceSetResourceDnsTargetResourceTargetResourceR53Resource build() { - return new ResourceSetResourceDnsTargetResourceTargetResourceR53Resource(domainName, recordSetId); + } + public ResourceSetResourceDnsTargetResourceTargetResourceR53Resource build() { + final var o = new ResourceSetResourceDnsTargetResourceTargetResourceR53Resource(); + o.domainName = domainName; + o.recordSetId = recordSetId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/rum/outputs/AppMonitorAppMonitorConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/rum/outputs/AppMonitorAppMonitorConfiguration.java index 3678d121ff8..63fe382b849 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/rum/outputs/AppMonitorAppMonitorConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/rum/outputs/AppMonitorAppMonitorConfiguration.java @@ -18,70 +18,49 @@ public final class AppMonitorAppMonitorConfiguration { * @return If you set this to `true`, RUM web client sets two cookies, a session cookie and a user cookie. The cookies allow the RUM web client to collect data relating to the number of users an application has and the behavior of the application across a sequence of events. Cookies are stored in the top-level domain of the current page. * */ - private final @Nullable Boolean allowCookies; + private @Nullable Boolean allowCookies; /** * @return If you set this to `true`, RUM enables X-Ray tracing for the user sessions that RUM samples. RUM adds an X-Ray trace header to allowed HTTP requests. It also records an X-Ray segment for allowed HTTP requests. * */ - private final @Nullable Boolean enableXray; + private @Nullable Boolean enableXray; /** * @return A list of URLs in your website or application to exclude from RUM data collection. * */ - private final @Nullable List excludedPages; + private @Nullable List excludedPages; /** * @return A list of pages in the CloudWatch RUM console that are to be displayed with a "favorite" icon. * */ - private final @Nullable List favoritePages; + private @Nullable List favoritePages; /** * @return The ARN of the guest IAM role that is attached to the Amazon Cognito identity pool that is used to authorize the sending of data to RUM. * */ - private final @Nullable String guestRoleArn; + private @Nullable String guestRoleArn; /** * @return The ID of the Amazon Cognito identity pool that is used to authorize the sending of data to RUM. * */ - private final @Nullable String identityPoolId; + private @Nullable String identityPoolId; /** * @return If this app monitor is to collect data from only certain pages in your application, this structure lists those pages. * */ - private final @Nullable List includedPages; + private @Nullable List includedPages; /** * @return Specifies the percentage of user sessions to use for RUM data collection. Choosing a higher percentage gives you more data but also incurs more costs. The number you specify is the percentage of user sessions that will be used. Default value is `0.1`. * */ - private final @Nullable Double sessionSampleRate; + private @Nullable Double sessionSampleRate; /** * @return An array that lists the types of telemetry data that this app monitor is to collect. Valid values are `errors`, `performance`, and `http`. * */ - private final @Nullable List telemetries; - - @CustomType.Constructor - private AppMonitorAppMonitorConfiguration( - @CustomType.Parameter("allowCookies") @Nullable Boolean allowCookies, - @CustomType.Parameter("enableXray") @Nullable Boolean enableXray, - @CustomType.Parameter("excludedPages") @Nullable List excludedPages, - @CustomType.Parameter("favoritePages") @Nullable List favoritePages, - @CustomType.Parameter("guestRoleArn") @Nullable String guestRoleArn, - @CustomType.Parameter("identityPoolId") @Nullable String identityPoolId, - @CustomType.Parameter("includedPages") @Nullable List includedPages, - @CustomType.Parameter("sessionSampleRate") @Nullable Double sessionSampleRate, - @CustomType.Parameter("telemetries") @Nullable List telemetries) { - this.allowCookies = allowCookies; - this.enableXray = enableXray; - this.excludedPages = excludedPages; - this.favoritePages = favoritePages; - this.guestRoleArn = guestRoleArn; - this.identityPoolId = identityPoolId; - this.includedPages = includedPages; - this.sessionSampleRate = sessionSampleRate; - this.telemetries = telemetries; - } + private @Nullable List telemetries; + private AppMonitorAppMonitorConfiguration() {} /** * @return If you set this to `true`, RUM web client sets two cookies, a session cookie and a user cookie. The cookies allow the RUM web client to collect data relating to the number of users an application has and the behavior of the application across a sequence of events. Cookies are stored in the top-level domain of the current page. * @@ -153,7 +132,7 @@ public static Builder builder() { public static Builder builder(AppMonitorAppMonitorConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean allowCookies; private @Nullable Boolean enableXray; @@ -164,11 +143,7 @@ public static final class Builder { private @Nullable List includedPages; private @Nullable Double sessionSampleRate; private @Nullable List telemetries; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AppMonitorAppMonitorConfiguration defaults) { Objects.requireNonNull(defaults); this.allowCookies = defaults.allowCookies; @@ -182,14 +157,17 @@ public Builder(AppMonitorAppMonitorConfiguration defaults) { this.telemetries = defaults.telemetries; } + @CustomType.Setter public Builder allowCookies(@Nullable Boolean allowCookies) { this.allowCookies = allowCookies; return this; } + @CustomType.Setter public Builder enableXray(@Nullable Boolean enableXray) { this.enableXray = enableXray; return this; } + @CustomType.Setter public Builder excludedPages(@Nullable List excludedPages) { this.excludedPages = excludedPages; return this; @@ -197,6 +175,7 @@ public Builder excludedPages(@Nullable List excludedPages) { public Builder excludedPages(String... excludedPages) { return excludedPages(List.of(excludedPages)); } + @CustomType.Setter public Builder favoritePages(@Nullable List favoritePages) { this.favoritePages = favoritePages; return this; @@ -204,14 +183,17 @@ public Builder favoritePages(@Nullable List favoritePages) { public Builder favoritePages(String... favoritePages) { return favoritePages(List.of(favoritePages)); } + @CustomType.Setter public Builder guestRoleArn(@Nullable String guestRoleArn) { this.guestRoleArn = guestRoleArn; return this; } + @CustomType.Setter public Builder identityPoolId(@Nullable String identityPoolId) { this.identityPoolId = identityPoolId; return this; } + @CustomType.Setter public Builder includedPages(@Nullable List includedPages) { this.includedPages = includedPages; return this; @@ -219,18 +201,31 @@ public Builder includedPages(@Nullable List includedPages) { public Builder includedPages(String... includedPages) { return includedPages(List.of(includedPages)); } + @CustomType.Setter public Builder sessionSampleRate(@Nullable Double sessionSampleRate) { this.sessionSampleRate = sessionSampleRate; return this; } + @CustomType.Setter public Builder telemetries(@Nullable List telemetries) { this.telemetries = telemetries; return this; } public Builder telemetries(String... telemetries) { return telemetries(List.of(telemetries)); - } public AppMonitorAppMonitorConfiguration build() { - return new AppMonitorAppMonitorConfiguration(allowCookies, enableXray, excludedPages, favoritePages, guestRoleArn, identityPoolId, includedPages, sessionSampleRate, telemetries); + } + public AppMonitorAppMonitorConfiguration build() { + final var o = new AppMonitorAppMonitorConfiguration(); + o.allowCookies = allowCookies; + o.enableXray = enableXray; + o.excludedPages = excludedPages; + o.favoritePages = favoritePages; + o.guestRoleArn = guestRoleArn; + o.identityPoolId = identityPoolId; + o.includedPages = includedPages; + o.sessionSampleRate = sessionSampleRate; + o.telemetries = telemetries; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AccessPointPublicAccessBlockConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AccessPointPublicAccessBlockConfiguration.java index 8d500e04da2..6955737703d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AccessPointPublicAccessBlockConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AccessPointPublicAccessBlockConfiguration.java @@ -18,38 +18,27 @@ public final class AccessPointPublicAccessBlockConfiguration { * * PUT Bucket calls fail if the request includes a public ACL. * */ - private final @Nullable Boolean blockPublicAcls; + private @Nullable Boolean blockPublicAcls; /** * @return Whether Amazon S3 should block public bucket policies for buckets in this account. Defaults to `true`. Enabling this setting does not affect existing bucket policies. When set to `true` causes Amazon S3 to: * * Reject calls to PUT Bucket policy if the specified bucket policy allows public access. * */ - private final @Nullable Boolean blockPublicPolicy; + private @Nullable Boolean blockPublicPolicy; /** * @return Whether Amazon S3 should ignore public ACLs for buckets in this account. Defaults to `true`. Enabling this setting does not affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set. When set to `true` causes Amazon S3 to: * * Ignore all public ACLs on buckets in this account and any objects that they contain. * */ - private final @Nullable Boolean ignorePublicAcls; + private @Nullable Boolean ignorePublicAcls; /** * @return Whether Amazon S3 should restrict public bucket policies for buckets in this account. Defaults to `true`. Enabling this setting does not affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked. When set to `true`: * * Only the bucket owner and AWS Services can access buckets with public policies. * */ - private final @Nullable Boolean restrictPublicBuckets; - - @CustomType.Constructor - private AccessPointPublicAccessBlockConfiguration( - @CustomType.Parameter("blockPublicAcls") @Nullable Boolean blockPublicAcls, - @CustomType.Parameter("blockPublicPolicy") @Nullable Boolean blockPublicPolicy, - @CustomType.Parameter("ignorePublicAcls") @Nullable Boolean ignorePublicAcls, - @CustomType.Parameter("restrictPublicBuckets") @Nullable Boolean restrictPublicBuckets) { - this.blockPublicAcls = blockPublicAcls; - this.blockPublicPolicy = blockPublicPolicy; - this.ignorePublicAcls = ignorePublicAcls; - this.restrictPublicBuckets = restrictPublicBuckets; - } + private @Nullable Boolean restrictPublicBuckets; + private AccessPointPublicAccessBlockConfiguration() {} /** * @return Whether Amazon S3 should block public ACLs for buckets in this account. Defaults to `true`. Enabling this setting does not affect existing policies or ACLs. When set to `true` causes the following behavior: * * PUT Bucket acl and PUT Object acl calls fail if the specified ACL is public. @@ -92,17 +81,13 @@ public static Builder builder() { public static Builder builder(AccessPointPublicAccessBlockConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean blockPublicAcls; private @Nullable Boolean blockPublicPolicy; private @Nullable Boolean ignorePublicAcls; private @Nullable Boolean restrictPublicBuckets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AccessPointPublicAccessBlockConfiguration defaults) { Objects.requireNonNull(defaults); this.blockPublicAcls = defaults.blockPublicAcls; @@ -111,23 +96,33 @@ public Builder(AccessPointPublicAccessBlockConfiguration defaults) { this.restrictPublicBuckets = defaults.restrictPublicBuckets; } + @CustomType.Setter public Builder blockPublicAcls(@Nullable Boolean blockPublicAcls) { this.blockPublicAcls = blockPublicAcls; return this; } + @CustomType.Setter public Builder blockPublicPolicy(@Nullable Boolean blockPublicPolicy) { this.blockPublicPolicy = blockPublicPolicy; return this; } + @CustomType.Setter public Builder ignorePublicAcls(@Nullable Boolean ignorePublicAcls) { this.ignorePublicAcls = ignorePublicAcls; return this; } + @CustomType.Setter public Builder restrictPublicBuckets(@Nullable Boolean restrictPublicBuckets) { this.restrictPublicBuckets = restrictPublicBuckets; return this; - } public AccessPointPublicAccessBlockConfiguration build() { - return new AccessPointPublicAccessBlockConfiguration(blockPublicAcls, blockPublicPolicy, ignorePublicAcls, restrictPublicBuckets); + } + public AccessPointPublicAccessBlockConfiguration build() { + final var o = new AccessPointPublicAccessBlockConfiguration(); + o.blockPublicAcls = blockPublicAcls; + o.blockPublicPolicy = blockPublicPolicy; + o.ignorePublicAcls = ignorePublicAcls; + o.restrictPublicBuckets = restrictPublicBuckets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AccessPointVpcConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AccessPointVpcConfiguration.java index ecc703a3199..9da01675622 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AccessPointVpcConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AccessPointVpcConfiguration.java @@ -13,13 +13,9 @@ public final class AccessPointVpcConfiguration { * @return This access point will only allow connections from the specified VPC ID. * */ - private final String vpcId; - - @CustomType.Constructor - private AccessPointVpcConfiguration(@CustomType.Parameter("vpcId") String vpcId) { - this.vpcId = vpcId; - } + private String vpcId; + private AccessPointVpcConfiguration() {} /** * @return This access point will only allow connections from the specified VPC ID. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(AccessPointVpcConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AccessPointVpcConfiguration defaults) { Objects.requireNonNull(defaults); this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public AccessPointVpcConfiguration build() { - return new AccessPointVpcConfiguration(vpcId); + } + public AccessPointVpcConfiguration build() { + final var o = new AccessPointVpcConfiguration(); + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationFilter.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationFilter.java index 141f19d5e0a..885872feb8f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationFilter.java @@ -16,21 +16,14 @@ public final class AnalyticsConfigurationFilter { * @return Object prefix for filtering. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return Set of object tags for filtering. * */ - private final @Nullable Map tags; - - @CustomType.Constructor - private AnalyticsConfigurationFilter( - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.prefix = prefix; - this.tags = tags; - } + private @Nullable Map tags; + private AnalyticsConfigurationFilter() {} /** * @return Object prefix for filtering. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(AnalyticsConfigurationFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String prefix; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsConfigurationFilter defaults) { Objects.requireNonNull(defaults); this.prefix = defaults.prefix; this.tags = defaults.tags; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public AnalyticsConfigurationFilter build() { - return new AnalyticsConfigurationFilter(prefix, tags); + } + public AnalyticsConfigurationFilter build() { + final var o = new AnalyticsConfigurationFilter(); + o.prefix = prefix; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysis.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysis.java index 4ebe9eb9ff9..745aed75b3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysis.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysis.java @@ -13,13 +13,9 @@ public final class AnalyticsConfigurationStorageClassAnalysis { * @return Data export configuration (documented below). * */ - private final AnalyticsConfigurationStorageClassAnalysisDataExport dataExport; - - @CustomType.Constructor - private AnalyticsConfigurationStorageClassAnalysis(@CustomType.Parameter("dataExport") AnalyticsConfigurationStorageClassAnalysisDataExport dataExport) { - this.dataExport = dataExport; - } + private AnalyticsConfigurationStorageClassAnalysisDataExport dataExport; + private AnalyticsConfigurationStorageClassAnalysis() {} /** * @return Data export configuration (documented below). * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(AnalyticsConfigurationStorageClassAnalysis defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private AnalyticsConfigurationStorageClassAnalysisDataExport dataExport; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsConfigurationStorageClassAnalysis defaults) { Objects.requireNonNull(defaults); this.dataExport = defaults.dataExport; } + @CustomType.Setter public Builder dataExport(AnalyticsConfigurationStorageClassAnalysisDataExport dataExport) { this.dataExport = Objects.requireNonNull(dataExport); return this; - } public AnalyticsConfigurationStorageClassAnalysis build() { - return new AnalyticsConfigurationStorageClassAnalysis(dataExport); + } + public AnalyticsConfigurationStorageClassAnalysis build() { + final var o = new AnalyticsConfigurationStorageClassAnalysis(); + o.dataExport = dataExport; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysisDataExport.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysisDataExport.java index 37d68943d6b..7842b875776 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysisDataExport.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysisDataExport.java @@ -16,21 +16,14 @@ public final class AnalyticsConfigurationStorageClassAnalysisDataExport { * @return Specifies the destination for the exported analytics data (documented below). * */ - private final AnalyticsConfigurationStorageClassAnalysisDataExportDestination destination; + private AnalyticsConfigurationStorageClassAnalysisDataExportDestination destination; /** * @return The schema version of exported analytics data. Allowed values: `V_1`. Default value: `V_1`. * */ - private final @Nullable String outputSchemaVersion; - - @CustomType.Constructor - private AnalyticsConfigurationStorageClassAnalysisDataExport( - @CustomType.Parameter("destination") AnalyticsConfigurationStorageClassAnalysisDataExportDestination destination, - @CustomType.Parameter("outputSchemaVersion") @Nullable String outputSchemaVersion) { - this.destination = destination; - this.outputSchemaVersion = outputSchemaVersion; - } + private @Nullable String outputSchemaVersion; + private AnalyticsConfigurationStorageClassAnalysisDataExport() {} /** * @return Specifies the destination for the exported analytics data (documented below). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(AnalyticsConfigurationStorageClassAnalysisDataExport defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private AnalyticsConfigurationStorageClassAnalysisDataExportDestination destination; private @Nullable String outputSchemaVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsConfigurationStorageClassAnalysisDataExport defaults) { Objects.requireNonNull(defaults); this.destination = defaults.destination; this.outputSchemaVersion = defaults.outputSchemaVersion; } + @CustomType.Setter public Builder destination(AnalyticsConfigurationStorageClassAnalysisDataExportDestination destination) { this.destination = Objects.requireNonNull(destination); return this; } + @CustomType.Setter public Builder outputSchemaVersion(@Nullable String outputSchemaVersion) { this.outputSchemaVersion = outputSchemaVersion; return this; - } public AnalyticsConfigurationStorageClassAnalysisDataExport build() { - return new AnalyticsConfigurationStorageClassAnalysisDataExport(destination, outputSchemaVersion); + } + public AnalyticsConfigurationStorageClassAnalysisDataExport build() { + final var o = new AnalyticsConfigurationStorageClassAnalysisDataExport(); + o.destination = destination; + o.outputSchemaVersion = outputSchemaVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysisDataExportDestination.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysisDataExportDestination.java index e268ebd4b72..dd8f541936b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysisDataExportDestination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysisDataExportDestination.java @@ -13,13 +13,9 @@ public final class AnalyticsConfigurationStorageClassAnalysisDataExportDestinati * @return Analytics data export currently only supports an S3 bucket destination (documented below). * */ - private final AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination s3BucketDestination; - - @CustomType.Constructor - private AnalyticsConfigurationStorageClassAnalysisDataExportDestination(@CustomType.Parameter("s3BucketDestination") AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination s3BucketDestination) { - this.s3BucketDestination = s3BucketDestination; - } + private AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination s3BucketDestination; + private AnalyticsConfigurationStorageClassAnalysisDataExportDestination() {} /** * @return Analytics data export currently only supports an S3 bucket destination (documented below). * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(AnalyticsConfigurationStorageClassAnalysisDataExportDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination s3BucketDestination; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsConfigurationStorageClassAnalysisDataExportDestination defaults) { Objects.requireNonNull(defaults); this.s3BucketDestination = defaults.s3BucketDestination; } + @CustomType.Setter public Builder s3BucketDestination(AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination s3BucketDestination) { this.s3BucketDestination = Objects.requireNonNull(s3BucketDestination); return this; - } public AnalyticsConfigurationStorageClassAnalysisDataExportDestination build() { - return new AnalyticsConfigurationStorageClassAnalysisDataExportDestination(s3BucketDestination); + } + public AnalyticsConfigurationStorageClassAnalysisDataExportDestination build() { + final var o = new AnalyticsConfigurationStorageClassAnalysisDataExportDestination(); + o.s3BucketDestination = s3BucketDestination; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination.java index e80ea2e4ca6..4181b02ba2c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination.java @@ -15,35 +15,24 @@ public final class AnalyticsConfigurationStorageClassAnalysisDataExportDestinati * @return The account ID that owns the destination bucket. * */ - private final @Nullable String bucketAccountId; + private @Nullable String bucketAccountId; /** * @return The ARN of the destination bucket. * */ - private final String bucketArn; + private String bucketArn; /** * @return The output format of exported analytics data. Allowed values: `CSV`. Default value: `CSV`. * */ - private final @Nullable String format; + private @Nullable String format; /** * @return Object prefix for filtering. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination( - @CustomType.Parameter("bucketAccountId") @Nullable String bucketAccountId, - @CustomType.Parameter("bucketArn") String bucketArn, - @CustomType.Parameter("format") @Nullable String format, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.bucketAccountId = bucketAccountId; - this.bucketArn = bucketArn; - this.format = format; - this.prefix = prefix; - } + private @Nullable String prefix; + private AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination() {} /** * @return The account ID that owns the destination bucket. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketAccountId; private String bucketArn; private @Nullable String format; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination defaults) { Objects.requireNonNull(defaults); this.bucketAccountId = defaults.bucketAccountId; @@ -99,23 +84,33 @@ public Builder(AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3 this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucketAccountId(@Nullable String bucketAccountId) { this.bucketAccountId = bucketAccountId; return this; } + @CustomType.Setter public Builder bucketArn(String bucketArn) { this.bucketArn = Objects.requireNonNull(bucketArn); return this; } + @CustomType.Setter public Builder format(@Nullable String format) { this.format = format; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination build() { - return new AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination(bucketAccountId, bucketArn, format, prefix); + } + public AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination build() { + final var o = new AnalyticsConfigurationStorageClassAnalysisDataExportDestinationS3BucketDestination(); + o.bucketAccountId = bucketAccountId; + o.bucketArn = bucketArn; + o.format = format; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicy.java index eed511fef71..eee02ec83a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicy.java @@ -16,21 +16,14 @@ public final class BucketAclV2AccessControlPolicy { * @return Set of `grant` configuration blocks documented below. * */ - private final @Nullable List grants; + private @Nullable List grants; /** * @return Configuration block of the bucket owner's display name and ID documented below. * */ - private final BucketAclV2AccessControlPolicyOwner owner; - - @CustomType.Constructor - private BucketAclV2AccessControlPolicy( - @CustomType.Parameter("grants") @Nullable List grants, - @CustomType.Parameter("owner") BucketAclV2AccessControlPolicyOwner owner) { - this.grants = grants; - this.owner = owner; - } + private BucketAclV2AccessControlPolicyOwner owner; + private BucketAclV2AccessControlPolicy() {} /** * @return Set of `grant` configuration blocks documented below. * @@ -53,21 +46,18 @@ public static Builder builder() { public static Builder builder(BucketAclV2AccessControlPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List grants; private BucketAclV2AccessControlPolicyOwner owner; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketAclV2AccessControlPolicy defaults) { Objects.requireNonNull(defaults); this.grants = defaults.grants; this.owner = defaults.owner; } + @CustomType.Setter public Builder grants(@Nullable List grants) { this.grants = grants; return this; @@ -75,11 +65,16 @@ public Builder grants(@Nullable List grants public Builder grants(BucketAclV2AccessControlPolicyGrant... grants) { return grants(List.of(grants)); } + @CustomType.Setter public Builder owner(BucketAclV2AccessControlPolicyOwner owner) { this.owner = Objects.requireNonNull(owner); return this; - } public BucketAclV2AccessControlPolicy build() { - return new BucketAclV2AccessControlPolicy(grants, owner); + } + public BucketAclV2AccessControlPolicy build() { + final var o = new BucketAclV2AccessControlPolicy(); + o.grants = grants; + o.owner = owner; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicyGrant.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicyGrant.java index 0b4d7b24d7f..2385b5a89d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicyGrant.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicyGrant.java @@ -16,21 +16,14 @@ public final class BucketAclV2AccessControlPolicyGrant { * @return Configuration block for the person being granted permissions documented below. * */ - private final @Nullable BucketAclV2AccessControlPolicyGrantGrantee grantee; + private @Nullable BucketAclV2AccessControlPolicyGrantGrantee grantee; /** * @return Logging permissions assigned to the grantee for the bucket. * */ - private final String permission; - - @CustomType.Constructor - private BucketAclV2AccessControlPolicyGrant( - @CustomType.Parameter("grantee") @Nullable BucketAclV2AccessControlPolicyGrantGrantee grantee, - @CustomType.Parameter("permission") String permission) { - this.grantee = grantee; - this.permission = permission; - } + private String permission; + private BucketAclV2AccessControlPolicyGrant() {} /** * @return Configuration block for the person being granted permissions documented below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketAclV2AccessControlPolicyGrant defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketAclV2AccessControlPolicyGrantGrantee grantee; private String permission; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketAclV2AccessControlPolicyGrant defaults) { Objects.requireNonNull(defaults); this.grantee = defaults.grantee; this.permission = defaults.permission; } + @CustomType.Setter public Builder grantee(@Nullable BucketAclV2AccessControlPolicyGrantGrantee grantee) { this.grantee = grantee; return this; } + @CustomType.Setter public Builder permission(String permission) { this.permission = Objects.requireNonNull(permission); return this; - } public BucketAclV2AccessControlPolicyGrant build() { - return new BucketAclV2AccessControlPolicyGrant(grantee, permission); + } + public BucketAclV2AccessControlPolicyGrant build() { + final var o = new BucketAclV2AccessControlPolicyGrant(); + o.grantee = grantee; + o.permission = permission; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicyGrantGrantee.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicyGrantGrantee.java index cd0ece15247..870e14d04e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicyGrantGrantee.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicyGrantGrantee.java @@ -15,42 +15,29 @@ public final class BucketAclV2AccessControlPolicyGrantGrantee { * @return The display name of the owner. * */ - private final @Nullable String displayName; + private @Nullable String displayName; /** * @return Email address of the grantee. See [Regions and Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) for supported AWS regions where this argument can be specified. * */ - private final @Nullable String emailAddress; + private @Nullable String emailAddress; /** * @return The canonical user ID of the grantee. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Type of grantee. Valid values: `CanonicalUser`, `AmazonCustomerByEmail`, `Group`. * */ - private final String type; + private String type; /** * @return URI of the grantee group. * */ - private final @Nullable String uri; - - @CustomType.Constructor - private BucketAclV2AccessControlPolicyGrantGrantee( - @CustomType.Parameter("displayName") @Nullable String displayName, - @CustomType.Parameter("emailAddress") @Nullable String emailAddress, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("uri") @Nullable String uri) { - this.displayName = displayName; - this.emailAddress = emailAddress; - this.id = id; - this.type = type; - this.uri = uri; - } + private @Nullable String uri; + private BucketAclV2AccessControlPolicyGrantGrantee() {} /** * @return The display name of the owner. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(BucketAclV2AccessControlPolicyGrantGrantee defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String displayName; private @Nullable String emailAddress; private @Nullable String id; private String type; private @Nullable String uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketAclV2AccessControlPolicyGrantGrantee defaults) { Objects.requireNonNull(defaults); this.displayName = defaults.displayName; @@ -115,27 +98,39 @@ public Builder(BucketAclV2AccessControlPolicyGrantGrantee defaults) { this.uri = defaults.uri; } + @CustomType.Setter public Builder displayName(@Nullable String displayName) { this.displayName = displayName; return this; } + @CustomType.Setter public Builder emailAddress(@Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder uri(@Nullable String uri) { this.uri = uri; return this; - } public BucketAclV2AccessControlPolicyGrantGrantee build() { - return new BucketAclV2AccessControlPolicyGrantGrantee(displayName, emailAddress, id, type, uri); + } + public BucketAclV2AccessControlPolicyGrantGrantee build() { + final var o = new BucketAclV2AccessControlPolicyGrantGrantee(); + o.displayName = displayName; + o.emailAddress = emailAddress; + o.id = id; + o.type = type; + o.uri = uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicyOwner.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicyOwner.java index aa942402955..dd4b26b6a6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicyOwner.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketAclV2AccessControlPolicyOwner.java @@ -15,21 +15,14 @@ public final class BucketAclV2AccessControlPolicyOwner { * @return The display name of the owner. * */ - private final @Nullable String displayName; + private @Nullable String displayName; /** * @return The ID of the owner. * */ - private final String id; - - @CustomType.Constructor - private BucketAclV2AccessControlPolicyOwner( - @CustomType.Parameter("displayName") @Nullable String displayName, - @CustomType.Parameter("id") String id) { - this.displayName = displayName; - this.id = id; - } + private String id; + private BucketAclV2AccessControlPolicyOwner() {} /** * @return The display name of the owner. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(BucketAclV2AccessControlPolicyOwner defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String displayName; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketAclV2AccessControlPolicyOwner defaults) { Objects.requireNonNull(defaults); this.displayName = defaults.displayName; this.id = defaults.id; } + @CustomType.Setter public Builder displayName(@Nullable String displayName) { this.displayName = displayName; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public BucketAclV2AccessControlPolicyOwner build() { - return new BucketAclV2AccessControlPolicyOwner(displayName, id); + } + public BucketAclV2AccessControlPolicyOwner build() { + final var o = new BucketAclV2AccessControlPolicyOwner(); + o.displayName = displayName; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketCorsConfigurationV2CorsRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketCorsConfigurationV2CorsRule.java index 0299f79c81f..bc4b8ec0478 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketCorsConfigurationV2CorsRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketCorsConfigurationV2CorsRule.java @@ -17,49 +17,34 @@ public final class BucketCorsConfigurationV2CorsRule { * @return Set of Headers that are specified in the `Access-Control-Request-Headers` header. * */ - private final @Nullable List allowedHeaders; + private @Nullable List allowedHeaders; /** * @return Set of HTTP methods that you allow the origin to execute. Valid values are `GET`, `PUT`, `HEAD`, `POST`, and `DELETE`. * */ - private final List allowedMethods; + private List allowedMethods; /** * @return Set of origins you want customers to be able to access the bucket from. * */ - private final List allowedOrigins; + private List allowedOrigins; /** * @return Set of headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript `XMLHttpRequest` object). * */ - private final @Nullable List exposeHeaders; + private @Nullable List exposeHeaders; /** * @return Unique identifier for the rule. The value cannot be longer than 255 characters. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return The time in seconds that your browser is to cache the preflight response for the specified resource. * */ - private final @Nullable Integer maxAgeSeconds; - - @CustomType.Constructor - private BucketCorsConfigurationV2CorsRule( - @CustomType.Parameter("allowedHeaders") @Nullable List allowedHeaders, - @CustomType.Parameter("allowedMethods") List allowedMethods, - @CustomType.Parameter("allowedOrigins") List allowedOrigins, - @CustomType.Parameter("exposeHeaders") @Nullable List exposeHeaders, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("maxAgeSeconds") @Nullable Integer maxAgeSeconds) { - this.allowedHeaders = allowedHeaders; - this.allowedMethods = allowedMethods; - this.allowedOrigins = allowedOrigins; - this.exposeHeaders = exposeHeaders; - this.id = id; - this.maxAgeSeconds = maxAgeSeconds; - } + private @Nullable Integer maxAgeSeconds; + private BucketCorsConfigurationV2CorsRule() {} /** * @return Set of Headers that are specified in the `Access-Control-Request-Headers` header. * @@ -110,7 +95,7 @@ public static Builder builder() { public static Builder builder(BucketCorsConfigurationV2CorsRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List allowedHeaders; private List allowedMethods; @@ -118,11 +103,7 @@ public static final class Builder { private @Nullable List exposeHeaders; private @Nullable String id; private @Nullable Integer maxAgeSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketCorsConfigurationV2CorsRule defaults) { Objects.requireNonNull(defaults); this.allowedHeaders = defaults.allowedHeaders; @@ -133,6 +114,7 @@ public Builder(BucketCorsConfigurationV2CorsRule defaults) { this.maxAgeSeconds = defaults.maxAgeSeconds; } + @CustomType.Setter public Builder allowedHeaders(@Nullable List allowedHeaders) { this.allowedHeaders = allowedHeaders; return this; @@ -140,6 +122,7 @@ public Builder allowedHeaders(@Nullable List allowedHeaders) { public Builder allowedHeaders(String... allowedHeaders) { return allowedHeaders(List.of(allowedHeaders)); } + @CustomType.Setter public Builder allowedMethods(List allowedMethods) { this.allowedMethods = Objects.requireNonNull(allowedMethods); return this; @@ -147,6 +130,7 @@ public Builder allowedMethods(List allowedMethods) { public Builder allowedMethods(String... allowedMethods) { return allowedMethods(List.of(allowedMethods)); } + @CustomType.Setter public Builder allowedOrigins(List allowedOrigins) { this.allowedOrigins = Objects.requireNonNull(allowedOrigins); return this; @@ -154,6 +138,7 @@ public Builder allowedOrigins(List allowedOrigins) { public Builder allowedOrigins(String... allowedOrigins) { return allowedOrigins(List.of(allowedOrigins)); } + @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { this.exposeHeaders = exposeHeaders; return this; @@ -161,15 +146,25 @@ public Builder exposeHeaders(@Nullable List exposeHeaders) { public Builder exposeHeaders(String... exposeHeaders) { return exposeHeaders(List.of(exposeHeaders)); } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder maxAgeSeconds(@Nullable Integer maxAgeSeconds) { this.maxAgeSeconds = maxAgeSeconds; return this; - } public BucketCorsConfigurationV2CorsRule build() { - return new BucketCorsConfigurationV2CorsRule(allowedHeaders, allowedMethods, allowedOrigins, exposeHeaders, id, maxAgeSeconds); + } + public BucketCorsConfigurationV2CorsRule build() { + final var o = new BucketCorsConfigurationV2CorsRule(); + o.allowedHeaders = allowedHeaders; + o.allowedMethods = allowedMethods; + o.allowedOrigins = allowedOrigins; + o.exposeHeaders = exposeHeaders; + o.id = id; + o.maxAgeSeconds = maxAgeSeconds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketCorsRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketCorsRule.java index 925fea74a0e..e7c0094687d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketCorsRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketCorsRule.java @@ -17,42 +17,29 @@ public final class BucketCorsRule { * @return Specifies which headers are allowed. * */ - private final @Nullable List allowedHeaders; + private @Nullable List allowedHeaders; /** * @return Specifies which methods are allowed. Can be `GET`, `PUT`, `POST`, `DELETE` or `HEAD`. * */ - private final List allowedMethods; + private List allowedMethods; /** * @return Specifies which origins are allowed. * */ - private final List allowedOrigins; + private List allowedOrigins; /** * @return Specifies expose header in the response. * */ - private final @Nullable List exposeHeaders; + private @Nullable List exposeHeaders; /** * @return Specifies time in seconds that browser can cache the response for a preflight request. * */ - private final @Nullable Integer maxAgeSeconds; - - @CustomType.Constructor - private BucketCorsRule( - @CustomType.Parameter("allowedHeaders") @Nullable List allowedHeaders, - @CustomType.Parameter("allowedMethods") List allowedMethods, - @CustomType.Parameter("allowedOrigins") List allowedOrigins, - @CustomType.Parameter("exposeHeaders") @Nullable List exposeHeaders, - @CustomType.Parameter("maxAgeSeconds") @Nullable Integer maxAgeSeconds) { - this.allowedHeaders = allowedHeaders; - this.allowedMethods = allowedMethods; - this.allowedOrigins = allowedOrigins; - this.exposeHeaders = exposeHeaders; - this.maxAgeSeconds = maxAgeSeconds; - } + private @Nullable Integer maxAgeSeconds; + private BucketCorsRule() {} /** * @return Specifies which headers are allowed. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(BucketCorsRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List allowedHeaders; private List allowedMethods; private List allowedOrigins; private @Nullable List exposeHeaders; private @Nullable Integer maxAgeSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketCorsRule defaults) { Objects.requireNonNull(defaults); this.allowedHeaders = defaults.allowedHeaders; @@ -117,6 +100,7 @@ public Builder(BucketCorsRule defaults) { this.maxAgeSeconds = defaults.maxAgeSeconds; } + @CustomType.Setter public Builder allowedHeaders(@Nullable List allowedHeaders) { this.allowedHeaders = allowedHeaders; return this; @@ -124,6 +108,7 @@ public Builder allowedHeaders(@Nullable List allowedHeaders) { public Builder allowedHeaders(String... allowedHeaders) { return allowedHeaders(List.of(allowedHeaders)); } + @CustomType.Setter public Builder allowedMethods(List allowedMethods) { this.allowedMethods = Objects.requireNonNull(allowedMethods); return this; @@ -131,6 +116,7 @@ public Builder allowedMethods(List allowedMethods) { public Builder allowedMethods(String... allowedMethods) { return allowedMethods(List.of(allowedMethods)); } + @CustomType.Setter public Builder allowedOrigins(List allowedOrigins) { this.allowedOrigins = Objects.requireNonNull(allowedOrigins); return this; @@ -138,6 +124,7 @@ public Builder allowedOrigins(List allowedOrigins) { public Builder allowedOrigins(String... allowedOrigins) { return allowedOrigins(List.of(allowedOrigins)); } + @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { this.exposeHeaders = exposeHeaders; return this; @@ -145,11 +132,19 @@ public Builder exposeHeaders(@Nullable List exposeHeaders) { public Builder exposeHeaders(String... exposeHeaders) { return exposeHeaders(List.of(exposeHeaders)); } + @CustomType.Setter public Builder maxAgeSeconds(@Nullable Integer maxAgeSeconds) { this.maxAgeSeconds = maxAgeSeconds; return this; - } public BucketCorsRule build() { - return new BucketCorsRule(allowedHeaders, allowedMethods, allowedOrigins, exposeHeaders, maxAgeSeconds); + } + public BucketCorsRule build() { + final var o = new BucketCorsRule(); + o.allowedHeaders = allowedHeaders; + o.allowedMethods = allowedMethods; + o.allowedOrigins = allowedOrigins; + o.exposeHeaders = exposeHeaders; + o.maxAgeSeconds = maxAgeSeconds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketGrant.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketGrant.java index 496f08441d7..02017df6115 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketGrant.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketGrant.java @@ -16,35 +16,24 @@ public final class BucketGrant { * @return Canonical user id to grant for. Used only when `type` is `CanonicalUser`. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return List of permissions to apply for grantee. Valid values are `READ`, `WRITE`, `READ_ACP`, `WRITE_ACP`, `FULL_CONTROL`. * */ - private final List permissions; + private List permissions; /** * @return - Type of grantee to apply for. Valid values are `CanonicalUser` and `Group`. `AmazonCustomerByEmail` is not supported. * */ - private final String type; + private String type; /** * @return Uri address to grant for. Used only when `type` is `Group`. * */ - private final @Nullable String uri; - - @CustomType.Constructor - private BucketGrant( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("permissions") List permissions, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("uri") @Nullable String uri) { - this.id = id; - this.permissions = permissions; - this.type = type; - this.uri = uri; - } + private @Nullable String uri; + private BucketGrant() {} /** * @return Canonical user id to grant for. Used only when `type` is `CanonicalUser`. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(BucketGrant defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private List permissions; private String type; private @Nullable String uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketGrant defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -100,10 +85,12 @@ public Builder(BucketGrant defaults) { this.uri = defaults.uri; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder permissions(List permissions) { this.permissions = Objects.requireNonNull(permissions); return this; @@ -111,15 +98,23 @@ public Builder permissions(List permissions) { public Builder permissions(String... permissions) { return permissions(List.of(permissions)); } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder uri(@Nullable String uri) { this.uri = uri; return this; - } public BucketGrant build() { - return new BucketGrant(id, permissions, type, uri); + } + public BucketGrant build() { + final var o = new BucketGrant(); + o.id = id; + o.permissions = permissions; + o.type = type; + o.uri = uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketIntelligentTieringConfigurationFilter.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketIntelligentTieringConfigurationFilter.java index 209ba1ef34c..89196e42a6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketIntelligentTieringConfigurationFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketIntelligentTieringConfigurationFilter.java @@ -16,21 +16,14 @@ public final class BucketIntelligentTieringConfigurationFilter { * @return An object key name prefix that identifies the subset of objects to which the configuration applies. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return All of these tags must exist in the object's tag set in order for the configuration to apply. * */ - private final @Nullable Map tags; - - @CustomType.Constructor - private BucketIntelligentTieringConfigurationFilter( - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.prefix = prefix; - this.tags = tags; - } + private @Nullable Map tags; + private BucketIntelligentTieringConfigurationFilter() {} /** * @return An object key name prefix that identifies the subset of objects to which the configuration applies. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketIntelligentTieringConfigurationFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String prefix; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketIntelligentTieringConfigurationFilter defaults) { Objects.requireNonNull(defaults); this.prefix = defaults.prefix; this.tags = defaults.tags; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public BucketIntelligentTieringConfigurationFilter build() { - return new BucketIntelligentTieringConfigurationFilter(prefix, tags); + } + public BucketIntelligentTieringConfigurationFilter build() { + final var o = new BucketIntelligentTieringConfigurationFilter(); + o.prefix = prefix; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketIntelligentTieringConfigurationTiering.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketIntelligentTieringConfigurationTiering.java index 9318d36ea24..5d4310551d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketIntelligentTieringConfigurationTiering.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketIntelligentTieringConfigurationTiering.java @@ -14,21 +14,14 @@ public final class BucketIntelligentTieringConfigurationTiering { * @return S3 Intelligent-Tiering access tier. Valid values: `ARCHIVE_ACCESS`, `DEEP_ARCHIVE_ACCESS`. * */ - private final String accessTier; + private String accessTier; /** * @return The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. * */ - private final Integer days; - - @CustomType.Constructor - private BucketIntelligentTieringConfigurationTiering( - @CustomType.Parameter("accessTier") String accessTier, - @CustomType.Parameter("days") Integer days) { - this.accessTier = accessTier; - this.days = days; - } + private Integer days; + private BucketIntelligentTieringConfigurationTiering() {} /** * @return S3 Intelligent-Tiering access tier. Valid values: `ARCHIVE_ACCESS`, `DEEP_ARCHIVE_ACCESS`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(BucketIntelligentTieringConfigurationTiering defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String accessTier; private Integer days; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketIntelligentTieringConfigurationTiering defaults) { Objects.requireNonNull(defaults); this.accessTier = defaults.accessTier; this.days = defaults.days; } + @CustomType.Setter public Builder accessTier(String accessTier) { this.accessTier = Objects.requireNonNull(accessTier); return this; } + @CustomType.Setter public Builder days(Integer days) { this.days = Objects.requireNonNull(days); return this; - } public BucketIntelligentTieringConfigurationTiering build() { - return new BucketIntelligentTieringConfigurationTiering(accessTier, days); + } + public BucketIntelligentTieringConfigurationTiering build() { + final var o = new BucketIntelligentTieringConfigurationTiering(); + o.accessTier = accessTier; + o.days = days; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2Rule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2Rule.java index d25108701d9..4a41f7bf8ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2Rule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2Rule.java @@ -22,32 +22,32 @@ public final class BucketLifecycleConfigurationV2Rule { * @return Configuration block that specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload documented below. * */ - private final @Nullable BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload; + private @Nullable BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload; /** * @return Configuration block that specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker documented below. * */ - private final @Nullable BucketLifecycleConfigurationV2RuleExpiration expiration; + private @Nullable BucketLifecycleConfigurationV2RuleExpiration expiration; /** * @return Configuration block used to identify objects that a Lifecycle Rule applies to documented below. If not specified, the `rule` will default to using `prefix`. * */ - private final @Nullable BucketLifecycleConfigurationV2RuleFilter filter; + private @Nullable BucketLifecycleConfigurationV2RuleFilter filter; /** * @return Unique identifier for the rule. The value cannot be longer than 255 characters. * */ - private final String id; + private String id; /** * @return Configuration block that specifies when noncurrent object versions expire documented below. * */ - private final @Nullable BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration noncurrentVersionExpiration; + private @Nullable BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration noncurrentVersionExpiration; /** * @return Set of configuration blocks that specify the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class documented below. * */ - private final @Nullable List noncurrentVersionTransitions; + private @Nullable List noncurrentVersionTransitions; /** * @return **DEPRECATED** Use `filter` instead. This has been deprecated by Amazon S3. Prefix identifying one or more objects to which the rule applies. Defaults to an empty string (`""`) if `filter` is not specified. * @@ -56,40 +56,19 @@ public final class BucketLifecycleConfigurationV2Rule { * */ @Deprecated /* Use filter instead */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return Whether the rule is currently being applied. Valid values: `Enabled` or `Disabled`. * */ - private final String status; + private String status; /** * @return Set of configuration blocks that specify when an Amazon S3 object transitions to a specified storage class documented below. * */ - private final @Nullable List transitions; - - @CustomType.Constructor - private BucketLifecycleConfigurationV2Rule( - @CustomType.Parameter("abortIncompleteMultipartUpload") @Nullable BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload, - @CustomType.Parameter("expiration") @Nullable BucketLifecycleConfigurationV2RuleExpiration expiration, - @CustomType.Parameter("filter") @Nullable BucketLifecycleConfigurationV2RuleFilter filter, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("noncurrentVersionExpiration") @Nullable BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration noncurrentVersionExpiration, - @CustomType.Parameter("noncurrentVersionTransitions") @Nullable List noncurrentVersionTransitions, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("transitions") @Nullable List transitions) { - this.abortIncompleteMultipartUpload = abortIncompleteMultipartUpload; - this.expiration = expiration; - this.filter = filter; - this.id = id; - this.noncurrentVersionExpiration = noncurrentVersionExpiration; - this.noncurrentVersionTransitions = noncurrentVersionTransitions; - this.prefix = prefix; - this.status = status; - this.transitions = transitions; - } + private @Nullable List transitions; + private BucketLifecycleConfigurationV2Rule() {} /** * @return Configuration block that specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload documented below. * @@ -165,7 +144,7 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationV2Rule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload; private @Nullable BucketLifecycleConfigurationV2RuleExpiration expiration; @@ -176,11 +155,7 @@ public static final class Builder { private @Nullable String prefix; private String status; private @Nullable List transitions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationV2Rule defaults) { Objects.requireNonNull(defaults); this.abortIncompleteMultipartUpload = defaults.abortIncompleteMultipartUpload; @@ -194,26 +169,32 @@ public Builder(BucketLifecycleConfigurationV2Rule defaults) { this.transitions = defaults.transitions; } + @CustomType.Setter public Builder abortIncompleteMultipartUpload(@Nullable BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload) { this.abortIncompleteMultipartUpload = abortIncompleteMultipartUpload; return this; } + @CustomType.Setter public Builder expiration(@Nullable BucketLifecycleConfigurationV2RuleExpiration expiration) { this.expiration = expiration; return this; } + @CustomType.Setter public Builder filter(@Nullable BucketLifecycleConfigurationV2RuleFilter filter) { this.filter = filter; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder noncurrentVersionExpiration(@Nullable BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration noncurrentVersionExpiration) { this.noncurrentVersionExpiration = noncurrentVersionExpiration; return this; } + @CustomType.Setter public Builder noncurrentVersionTransitions(@Nullable List noncurrentVersionTransitions) { this.noncurrentVersionTransitions = noncurrentVersionTransitions; return this; @@ -221,22 +202,36 @@ public Builder noncurrentVersionTransitions(@Nullable List transitions) { this.transitions = transitions; return this; } public Builder transitions(BucketLifecycleConfigurationV2RuleTransition... transitions) { return transitions(List.of(transitions)); - } public BucketLifecycleConfigurationV2Rule build() { - return new BucketLifecycleConfigurationV2Rule(abortIncompleteMultipartUpload, expiration, filter, id, noncurrentVersionExpiration, noncurrentVersionTransitions, prefix, status, transitions); + } + public BucketLifecycleConfigurationV2Rule build() { + final var o = new BucketLifecycleConfigurationV2Rule(); + o.abortIncompleteMultipartUpload = abortIncompleteMultipartUpload; + o.expiration = expiration; + o.filter = filter; + o.id = id; + o.noncurrentVersionExpiration = noncurrentVersionExpiration; + o.noncurrentVersionTransitions = noncurrentVersionTransitions; + o.prefix = prefix; + o.status = status; + o.transitions = transitions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload.java index ca3f2dbb213..557a40b052c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload.java @@ -15,13 +15,9 @@ public final class BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpl * @return The number of days after which Amazon S3 aborts an incomplete multipart upload. * */ - private final @Nullable Integer daysAfterInitiation; - - @CustomType.Constructor - private BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload(@CustomType.Parameter("daysAfterInitiation") @Nullable Integer daysAfterInitiation) { - this.daysAfterInitiation = daysAfterInitiation; - } + private @Nullable Integer daysAfterInitiation; + private BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload() {} /** * @return The number of days after which Amazon S3 aborts an incomplete multipart upload. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer daysAfterInitiation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload defaults) { Objects.requireNonNull(defaults); this.daysAfterInitiation = defaults.daysAfterInitiation; } + @CustomType.Setter public Builder daysAfterInitiation(@Nullable Integer daysAfterInitiation) { this.daysAfterInitiation = daysAfterInitiation; return this; - } public BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload build() { - return new BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload(daysAfterInitiation); + } + public BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload build() { + final var o = new BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload(); + o.daysAfterInitiation = daysAfterInitiation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleExpiration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleExpiration.java index 8a5cfc1d8e0..52823b2251f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleExpiration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleExpiration.java @@ -17,28 +17,19 @@ public final class BucketLifecycleConfigurationV2RuleExpiration { * @return The date the object is to be moved or deleted. Should be in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8). * */ - private final @Nullable String date; + private @Nullable String date; /** * @return The lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer. * */ - private final @Nullable Integer days; + private @Nullable Integer days; /** * @return Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to `true`, the delete marker will be expired; if set to `false` the policy takes no action. * */ - private final @Nullable Boolean expiredObjectDeleteMarker; - - @CustomType.Constructor - private BucketLifecycleConfigurationV2RuleExpiration( - @CustomType.Parameter("date") @Nullable String date, - @CustomType.Parameter("days") @Nullable Integer days, - @CustomType.Parameter("expiredObjectDeleteMarker") @Nullable Boolean expiredObjectDeleteMarker) { - this.date = date; - this.days = days; - this.expiredObjectDeleteMarker = expiredObjectDeleteMarker; - } + private @Nullable Boolean expiredObjectDeleteMarker; + private BucketLifecycleConfigurationV2RuleExpiration() {} /** * @return The date the object is to be moved or deleted. Should be in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8). * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationV2RuleExpiration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String date; private @Nullable Integer days; private @Nullable Boolean expiredObjectDeleteMarker; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationV2RuleExpiration defaults) { Objects.requireNonNull(defaults); this.date = defaults.date; @@ -85,19 +72,27 @@ public Builder(BucketLifecycleConfigurationV2RuleExpiration defaults) { this.expiredObjectDeleteMarker = defaults.expiredObjectDeleteMarker; } + @CustomType.Setter public Builder date(@Nullable String date) { this.date = date; return this; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; } + @CustomType.Setter public Builder expiredObjectDeleteMarker(@Nullable Boolean expiredObjectDeleteMarker) { this.expiredObjectDeleteMarker = expiredObjectDeleteMarker; return this; - } public BucketLifecycleConfigurationV2RuleExpiration build() { - return new BucketLifecycleConfigurationV2RuleExpiration(date, days, expiredObjectDeleteMarker); + } + public BucketLifecycleConfigurationV2RuleExpiration build() { + final var o = new BucketLifecycleConfigurationV2RuleExpiration(); + o.date = date; + o.days = days; + o.expiredObjectDeleteMarker = expiredObjectDeleteMarker; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleFilter.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleFilter.java index 0dcbd35ec26..1604e0a4f3a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleFilter.java @@ -17,42 +17,29 @@ public final class BucketLifecycleConfigurationV2RuleFilter { * @return Configuration block used to apply a logical `AND` to two or more predicates documented below. The Lifecycle Rule will apply to any object matching all the predicates configured inside the `and` block. * */ - private final @Nullable BucketLifecycleConfigurationV2RuleFilterAnd and; + private @Nullable BucketLifecycleConfigurationV2RuleFilterAnd and; /** * @return Minimum object size (in bytes) to which the rule applies. * */ - private final @Nullable String objectSizeGreaterThan; + private @Nullable String objectSizeGreaterThan; /** * @return Maximum object size (in bytes) to which the rule applies. * */ - private final @Nullable String objectSizeLessThan; + private @Nullable String objectSizeLessThan; /** * @return Prefix identifying one or more objects to which the rule applies. Defaults to an empty string (`""`) if not specified. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return A configuration block for specifying a tag key and value documented below. * */ - private final @Nullable BucketLifecycleConfigurationV2RuleFilterTag tag; - - @CustomType.Constructor - private BucketLifecycleConfigurationV2RuleFilter( - @CustomType.Parameter("and") @Nullable BucketLifecycleConfigurationV2RuleFilterAnd and, - @CustomType.Parameter("objectSizeGreaterThan") @Nullable String objectSizeGreaterThan, - @CustomType.Parameter("objectSizeLessThan") @Nullable String objectSizeLessThan, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("tag") @Nullable BucketLifecycleConfigurationV2RuleFilterTag tag) { - this.and = and; - this.objectSizeGreaterThan = objectSizeGreaterThan; - this.objectSizeLessThan = objectSizeLessThan; - this.prefix = prefix; - this.tag = tag; - } + private @Nullable BucketLifecycleConfigurationV2RuleFilterTag tag; + private BucketLifecycleConfigurationV2RuleFilter() {} /** * @return Configuration block used to apply a logical `AND` to two or more predicates documented below. The Lifecycle Rule will apply to any object matching all the predicates configured inside the `and` block. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationV2RuleFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketLifecycleConfigurationV2RuleFilterAnd and; private @Nullable String objectSizeGreaterThan; private @Nullable String objectSizeLessThan; private @Nullable String prefix; private @Nullable BucketLifecycleConfigurationV2RuleFilterTag tag; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationV2RuleFilter defaults) { Objects.requireNonNull(defaults); this.and = defaults.and; @@ -117,27 +100,39 @@ public Builder(BucketLifecycleConfigurationV2RuleFilter defaults) { this.tag = defaults.tag; } + @CustomType.Setter public Builder and(@Nullable BucketLifecycleConfigurationV2RuleFilterAnd and) { this.and = and; return this; } + @CustomType.Setter public Builder objectSizeGreaterThan(@Nullable String objectSizeGreaterThan) { this.objectSizeGreaterThan = objectSizeGreaterThan; return this; } + @CustomType.Setter public Builder objectSizeLessThan(@Nullable String objectSizeLessThan) { this.objectSizeLessThan = objectSizeLessThan; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder tag(@Nullable BucketLifecycleConfigurationV2RuleFilterTag tag) { this.tag = tag; return this; - } public BucketLifecycleConfigurationV2RuleFilter build() { - return new BucketLifecycleConfigurationV2RuleFilter(and, objectSizeGreaterThan, objectSizeLessThan, prefix, tag); + } + public BucketLifecycleConfigurationV2RuleFilter build() { + final var o = new BucketLifecycleConfigurationV2RuleFilter(); + o.and = and; + o.objectSizeGreaterThan = objectSizeGreaterThan; + o.objectSizeLessThan = objectSizeLessThan; + o.prefix = prefix; + o.tag = tag; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleFilterAnd.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleFilterAnd.java index 69c409a0f90..01a494f9d31 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleFilterAnd.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleFilterAnd.java @@ -17,35 +17,24 @@ public final class BucketLifecycleConfigurationV2RuleFilterAnd { * @return Minimum object size to which the rule applies. Value must be at least `0` if specified. * */ - private final @Nullable Integer objectSizeGreaterThan; + private @Nullable Integer objectSizeGreaterThan; /** * @return Maximum object size to which the rule applies. Value must be at least `1` if specified. * */ - private final @Nullable Integer objectSizeLessThan; + private @Nullable Integer objectSizeLessThan; /** * @return Prefix identifying one or more objects to which the rule applies. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply. * */ - private final @Nullable Map tags; - - @CustomType.Constructor - private BucketLifecycleConfigurationV2RuleFilterAnd( - @CustomType.Parameter("objectSizeGreaterThan") @Nullable Integer objectSizeGreaterThan, - @CustomType.Parameter("objectSizeLessThan") @Nullable Integer objectSizeLessThan, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.objectSizeGreaterThan = objectSizeGreaterThan; - this.objectSizeLessThan = objectSizeLessThan; - this.prefix = prefix; - this.tags = tags; - } + private @Nullable Map tags; + private BucketLifecycleConfigurationV2RuleFilterAnd() {} /** * @return Minimum object size to which the rule applies. Value must be at least `0` if specified. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationV2RuleFilterAnd defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer objectSizeGreaterThan; private @Nullable Integer objectSizeLessThan; private @Nullable String prefix; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationV2RuleFilterAnd defaults) { Objects.requireNonNull(defaults); this.objectSizeGreaterThan = defaults.objectSizeGreaterThan; @@ -101,23 +86,33 @@ public Builder(BucketLifecycleConfigurationV2RuleFilterAnd defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder objectSizeGreaterThan(@Nullable Integer objectSizeGreaterThan) { this.objectSizeGreaterThan = objectSizeGreaterThan; return this; } + @CustomType.Setter public Builder objectSizeLessThan(@Nullable Integer objectSizeLessThan) { this.objectSizeLessThan = objectSizeLessThan; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public BucketLifecycleConfigurationV2RuleFilterAnd build() { - return new BucketLifecycleConfigurationV2RuleFilterAnd(objectSizeGreaterThan, objectSizeLessThan, prefix, tags); + } + public BucketLifecycleConfigurationV2RuleFilterAnd build() { + final var o = new BucketLifecycleConfigurationV2RuleFilterAnd(); + o.objectSizeGreaterThan = objectSizeGreaterThan; + o.objectSizeLessThan = objectSizeLessThan; + o.prefix = prefix; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleFilterTag.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleFilterTag.java index 007f7aa9067..bad51ce92e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleFilterTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleFilterTag.java @@ -13,21 +13,14 @@ public final class BucketLifecycleConfigurationV2RuleFilterTag { * @return Name of the object key. * */ - private final String key; + private String key; /** * @return Value of the tag. * */ - private final String value; - - @CustomType.Constructor - private BucketLifecycleConfigurationV2RuleFilterTag( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private BucketLifecycleConfigurationV2RuleFilterTag() {} /** * @return Name of the object key. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationV2RuleFilterTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationV2RuleFilterTag defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public BucketLifecycleConfigurationV2RuleFilterTag build() { - return new BucketLifecycleConfigurationV2RuleFilterTag(key, value); + } + public BucketLifecycleConfigurationV2RuleFilterTag build() { + final var o = new BucketLifecycleConfigurationV2RuleFilterTag(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration.java index 86b961340ad..353ee527088 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration.java @@ -16,21 +16,14 @@ public final class BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration * @return The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer. * */ - private final @Nullable String newerNoncurrentVersions; + private @Nullable String newerNoncurrentVersions; /** * @return The number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer. * */ - private final @Nullable Integer noncurrentDays; - - @CustomType.Constructor - private BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration( - @CustomType.Parameter("newerNoncurrentVersions") @Nullable String newerNoncurrentVersions, - @CustomType.Parameter("noncurrentDays") @Nullable Integer noncurrentDays) { - this.newerNoncurrentVersions = newerNoncurrentVersions; - this.noncurrentDays = noncurrentDays; - } + private @Nullable Integer noncurrentDays; + private BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration() {} /** * @return The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String newerNoncurrentVersions; private @Nullable Integer noncurrentDays; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration defaults) { Objects.requireNonNull(defaults); this.newerNoncurrentVersions = defaults.newerNoncurrentVersions; this.noncurrentDays = defaults.noncurrentDays; } + @CustomType.Setter public Builder newerNoncurrentVersions(@Nullable String newerNoncurrentVersions) { this.newerNoncurrentVersions = newerNoncurrentVersions; return this; } + @CustomType.Setter public Builder noncurrentDays(@Nullable Integer noncurrentDays) { this.noncurrentDays = noncurrentDays; return this; - } public BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration build() { - return new BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration(newerNoncurrentVersions, noncurrentDays); + } + public BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration build() { + final var o = new BucketLifecycleConfigurationV2RuleNoncurrentVersionExpiration(); + o.newerNoncurrentVersions = newerNoncurrentVersions; + o.noncurrentDays = noncurrentDays; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition.java index 8e37b3426a5..1e473fea7b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition.java @@ -16,28 +16,19 @@ public final class BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition * @return The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer. * */ - private final @Nullable String newerNoncurrentVersions; + private @Nullable String newerNoncurrentVersions; /** * @return The number of days an object is noncurrent before Amazon S3 can perform the associated action. * */ - private final @Nullable Integer noncurrentDays; + private @Nullable Integer noncurrentDays; /** * @return The class of storage used to store the object. Valid Values: `GLACIER`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `DEEP_ARCHIVE`, `GLACIER_IR`. * */ - private final String storageClass; - - @CustomType.Constructor - private BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition( - @CustomType.Parameter("newerNoncurrentVersions") @Nullable String newerNoncurrentVersions, - @CustomType.Parameter("noncurrentDays") @Nullable Integer noncurrentDays, - @CustomType.Parameter("storageClass") String storageClass) { - this.newerNoncurrentVersions = newerNoncurrentVersions; - this.noncurrentDays = noncurrentDays; - this.storageClass = storageClass; - } + private String storageClass; + private BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition() {} /** * @return The number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String newerNoncurrentVersions; private @Nullable Integer noncurrentDays; private String storageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition defaults) { Objects.requireNonNull(defaults); this.newerNoncurrentVersions = defaults.newerNoncurrentVersions; @@ -84,19 +71,27 @@ public Builder(BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition def this.storageClass = defaults.storageClass; } + @CustomType.Setter public Builder newerNoncurrentVersions(@Nullable String newerNoncurrentVersions) { this.newerNoncurrentVersions = newerNoncurrentVersions; return this; } + @CustomType.Setter public Builder noncurrentDays(@Nullable Integer noncurrentDays) { this.noncurrentDays = noncurrentDays; return this; } + @CustomType.Setter public Builder storageClass(String storageClass) { this.storageClass = Objects.requireNonNull(storageClass); return this; - } public BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition build() { - return new BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition(newerNoncurrentVersions, noncurrentDays, storageClass); + } + public BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition build() { + final var o = new BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition(); + o.newerNoncurrentVersions = newerNoncurrentVersions; + o.noncurrentDays = noncurrentDays; + o.storageClass = storageClass; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleTransition.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleTransition.java index fc38bfc9580..f4b02e992f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleTransition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleConfigurationV2RuleTransition.java @@ -16,28 +16,19 @@ public final class BucketLifecycleConfigurationV2RuleTransition { * @return The date objects are transitioned to the specified storage class. The date value must be in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) and set to midnight UTC e.g. `2023-01-13T00:00:00Z`. * */ - private final @Nullable String date; + private @Nullable String date; /** * @return The number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. If both `days` and `date` are not specified, defaults to `0`. Valid values depend on `storage_class`, see [Transition objects using Amazon S3 Lifecycle](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-transition-general-considerations.html) for more details. * */ - private final @Nullable Integer days; + private @Nullable Integer days; /** * @return The class of storage used to store the object. Valid Values: `GLACIER`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `DEEP_ARCHIVE`, `GLACIER_IR`. * */ - private final String storageClass; - - @CustomType.Constructor - private BucketLifecycleConfigurationV2RuleTransition( - @CustomType.Parameter("date") @Nullable String date, - @CustomType.Parameter("days") @Nullable Integer days, - @CustomType.Parameter("storageClass") String storageClass) { - this.date = date; - this.days = days; - this.storageClass = storageClass; - } + private String storageClass; + private BucketLifecycleConfigurationV2RuleTransition() {} /** * @return The date objects are transitioned to the specified storage class. The date value must be in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) and set to midnight UTC e.g. `2023-01-13T00:00:00Z`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationV2RuleTransition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String date; private @Nullable Integer days; private String storageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationV2RuleTransition defaults) { Objects.requireNonNull(defaults); this.date = defaults.date; @@ -84,19 +71,27 @@ public Builder(BucketLifecycleConfigurationV2RuleTransition defaults) { this.storageClass = defaults.storageClass; } + @CustomType.Setter public Builder date(@Nullable String date) { this.date = date; return this; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; } + @CustomType.Setter public Builder storageClass(String storageClass) { this.storageClass = Objects.requireNonNull(storageClass); return this; - } public BucketLifecycleConfigurationV2RuleTransition build() { - return new BucketLifecycleConfigurationV2RuleTransition(date, days, storageClass); + } + public BucketLifecycleConfigurationV2RuleTransition build() { + final var o = new BucketLifecycleConfigurationV2RuleTransition(); + o.date = date; + o.days = days; + o.storageClass = storageClass; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRule.java index 5a7554deab3..7c10f9a0c18 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRule.java @@ -23,70 +23,49 @@ public final class BucketLifecycleRule { * @return Specifies the number of days after initiating a multipart upload when the multipart upload must be completed. * */ - private final @Nullable Integer abortIncompleteMultipartUploadDays; + private @Nullable Integer abortIncompleteMultipartUploadDays; /** * @return Specifies lifecycle rule status. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return Specifies a period in the object's expire (documented below). * */ - private final @Nullable BucketLifecycleRuleExpiration expiration; + private @Nullable BucketLifecycleRuleExpiration expiration; /** * @return Unique identifier for the rule. Must be less than or equal to 255 characters in length. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Specifies when noncurrent object versions expire (documented below). * */ - private final @Nullable BucketLifecycleRuleNoncurrentVersionExpiration noncurrentVersionExpiration; + private @Nullable BucketLifecycleRuleNoncurrentVersionExpiration noncurrentVersionExpiration; /** * @return Specifies when noncurrent object versions transitions (documented below). * */ - private final @Nullable List noncurrentVersionTransitions; + private @Nullable List noncurrentVersionTransitions; /** * @return Object key prefix identifying one or more objects to which the rule applies. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return Specifies object tags key and value. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return Specifies a period in the object's transitions (documented below). * */ - private final @Nullable List transitions; - - @CustomType.Constructor - private BucketLifecycleRule( - @CustomType.Parameter("abortIncompleteMultipartUploadDays") @Nullable Integer abortIncompleteMultipartUploadDays, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("expiration") @Nullable BucketLifecycleRuleExpiration expiration, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("noncurrentVersionExpiration") @Nullable BucketLifecycleRuleNoncurrentVersionExpiration noncurrentVersionExpiration, - @CustomType.Parameter("noncurrentVersionTransitions") @Nullable List noncurrentVersionTransitions, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("transitions") @Nullable List transitions) { - this.abortIncompleteMultipartUploadDays = abortIncompleteMultipartUploadDays; - this.enabled = enabled; - this.expiration = expiration; - this.id = id; - this.noncurrentVersionExpiration = noncurrentVersionExpiration; - this.noncurrentVersionTransitions = noncurrentVersionTransitions; - this.prefix = prefix; - this.tags = tags; - this.transitions = transitions; - } + private @Nullable List transitions; + private BucketLifecycleRule() {} /** * @return Specifies the number of days after initiating a multipart upload when the multipart upload must be completed. * @@ -158,7 +137,7 @@ public static Builder builder() { public static Builder builder(BucketLifecycleRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer abortIncompleteMultipartUploadDays; private Boolean enabled; @@ -169,11 +148,7 @@ public static final class Builder { private @Nullable String prefix; private @Nullable Map tags; private @Nullable List transitions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleRule defaults) { Objects.requireNonNull(defaults); this.abortIncompleteMultipartUploadDays = defaults.abortIncompleteMultipartUploadDays; @@ -187,26 +162,32 @@ public Builder(BucketLifecycleRule defaults) { this.transitions = defaults.transitions; } + @CustomType.Setter public Builder abortIncompleteMultipartUploadDays(@Nullable Integer abortIncompleteMultipartUploadDays) { this.abortIncompleteMultipartUploadDays = abortIncompleteMultipartUploadDays; return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder expiration(@Nullable BucketLifecycleRuleExpiration expiration) { this.expiration = expiration; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder noncurrentVersionExpiration(@Nullable BucketLifecycleRuleNoncurrentVersionExpiration noncurrentVersionExpiration) { this.noncurrentVersionExpiration = noncurrentVersionExpiration; return this; } + @CustomType.Setter public Builder noncurrentVersionTransitions(@Nullable List noncurrentVersionTransitions) { this.noncurrentVersionTransitions = noncurrentVersionTransitions; return this; @@ -214,22 +195,36 @@ public Builder noncurrentVersionTransitions(@Nullable List tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder transitions(@Nullable List transitions) { this.transitions = transitions; return this; } public Builder transitions(BucketLifecycleRuleTransition... transitions) { return transitions(List.of(transitions)); - } public BucketLifecycleRule build() { - return new BucketLifecycleRule(abortIncompleteMultipartUploadDays, enabled, expiration, id, noncurrentVersionExpiration, noncurrentVersionTransitions, prefix, tags, transitions); + } + public BucketLifecycleRule build() { + final var o = new BucketLifecycleRule(); + o.abortIncompleteMultipartUploadDays = abortIncompleteMultipartUploadDays; + o.enabled = enabled; + o.expiration = expiration; + o.id = id; + o.noncurrentVersionExpiration = noncurrentVersionExpiration; + o.noncurrentVersionTransitions = noncurrentVersionTransitions; + o.prefix = prefix; + o.tags = tags; + o.transitions = transitions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleExpiration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleExpiration.java index a4d496d5a97..6c4987e5879 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleExpiration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleExpiration.java @@ -17,28 +17,19 @@ public final class BucketLifecycleRuleExpiration { * @return Specifies the date after which you want the corresponding action to take effect. * */ - private final @Nullable String date; + private @Nullable String date; /** * @return Specifies the number of days after object creation when the specific rule action takes effect. * */ - private final @Nullable Integer days; + private @Nullable Integer days; /** * @return On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct Amazon S3 to delete expired object delete markers. This cannot be specified with Days or Date in a Lifecycle Expiration Policy. * */ - private final @Nullable Boolean expiredObjectDeleteMarker; - - @CustomType.Constructor - private BucketLifecycleRuleExpiration( - @CustomType.Parameter("date") @Nullable String date, - @CustomType.Parameter("days") @Nullable Integer days, - @CustomType.Parameter("expiredObjectDeleteMarker") @Nullable Boolean expiredObjectDeleteMarker) { - this.date = date; - this.days = days; - this.expiredObjectDeleteMarker = expiredObjectDeleteMarker; - } + private @Nullable Boolean expiredObjectDeleteMarker; + private BucketLifecycleRuleExpiration() {} /** * @return Specifies the date after which you want the corresponding action to take effect. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(BucketLifecycleRuleExpiration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String date; private @Nullable Integer days; private @Nullable Boolean expiredObjectDeleteMarker; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleRuleExpiration defaults) { Objects.requireNonNull(defaults); this.date = defaults.date; @@ -85,19 +72,27 @@ public Builder(BucketLifecycleRuleExpiration defaults) { this.expiredObjectDeleteMarker = defaults.expiredObjectDeleteMarker; } + @CustomType.Setter public Builder date(@Nullable String date) { this.date = date; return this; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; } + @CustomType.Setter public Builder expiredObjectDeleteMarker(@Nullable Boolean expiredObjectDeleteMarker) { this.expiredObjectDeleteMarker = expiredObjectDeleteMarker; return this; - } public BucketLifecycleRuleExpiration build() { - return new BucketLifecycleRuleExpiration(date, days, expiredObjectDeleteMarker); + } + public BucketLifecycleRuleExpiration build() { + final var o = new BucketLifecycleRuleExpiration(); + o.date = date; + o.days = days; + o.expiredObjectDeleteMarker = expiredObjectDeleteMarker; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleNoncurrentVersionExpiration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleNoncurrentVersionExpiration.java index 4fe06e6c342..e53c9b4f3f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleNoncurrentVersionExpiration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleNoncurrentVersionExpiration.java @@ -15,13 +15,9 @@ public final class BucketLifecycleRuleNoncurrentVersionExpiration { * @return Specifies the number of days noncurrent object versions expire. * */ - private final @Nullable Integer days; - - @CustomType.Constructor - private BucketLifecycleRuleNoncurrentVersionExpiration(@CustomType.Parameter("days") @Nullable Integer days) { - this.days = days; - } + private @Nullable Integer days; + private BucketLifecycleRuleNoncurrentVersionExpiration() {} /** * @return Specifies the number of days noncurrent object versions expire. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(BucketLifecycleRuleNoncurrentVersionExpiration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer days; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleRuleNoncurrentVersionExpiration defaults) { Objects.requireNonNull(defaults); this.days = defaults.days; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; - } public BucketLifecycleRuleNoncurrentVersionExpiration build() { - return new BucketLifecycleRuleNoncurrentVersionExpiration(days); + } + public BucketLifecycleRuleNoncurrentVersionExpiration build() { + final var o = new BucketLifecycleRuleNoncurrentVersionExpiration(); + o.days = days; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleNoncurrentVersionTransition.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleNoncurrentVersionTransition.java index 880260570c9..f0648c69a3d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleNoncurrentVersionTransition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleNoncurrentVersionTransition.java @@ -16,21 +16,14 @@ public final class BucketLifecycleRuleNoncurrentVersionTransition { * @return Specifies the number of days noncurrent object versions transition. * */ - private final @Nullable Integer days; + private @Nullable Integer days; /** * @return Specifies the Amazon S3 [storage class](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Transition.html#AmazonS3-Type-Transition-StorageClass) to which you want the object to transition. * */ - private final String storageClass; - - @CustomType.Constructor - private BucketLifecycleRuleNoncurrentVersionTransition( - @CustomType.Parameter("days") @Nullable Integer days, - @CustomType.Parameter("storageClass") String storageClass) { - this.days = days; - this.storageClass = storageClass; - } + private String storageClass; + private BucketLifecycleRuleNoncurrentVersionTransition() {} /** * @return Specifies the number of days noncurrent object versions transition. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketLifecycleRuleNoncurrentVersionTransition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer days; private String storageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleRuleNoncurrentVersionTransition defaults) { Objects.requireNonNull(defaults); this.days = defaults.days; this.storageClass = defaults.storageClass; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; } + @CustomType.Setter public Builder storageClass(String storageClass) { this.storageClass = Objects.requireNonNull(storageClass); return this; - } public BucketLifecycleRuleNoncurrentVersionTransition build() { - return new BucketLifecycleRuleNoncurrentVersionTransition(days, storageClass); + } + public BucketLifecycleRuleNoncurrentVersionTransition build() { + final var o = new BucketLifecycleRuleNoncurrentVersionTransition(); + o.days = days; + o.storageClass = storageClass; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleTransition.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleTransition.java index 7c99d7126a3..67b0d1b0ce9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleTransition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLifecycleRuleTransition.java @@ -16,28 +16,19 @@ public final class BucketLifecycleRuleTransition { * @return Specifies the date after which you want the corresponding action to take effect. * */ - private final @Nullable String date; + private @Nullable String date; /** * @return Specifies the number of days after object creation when the specific rule action takes effect. * */ - private final @Nullable Integer days; + private @Nullable Integer days; /** * @return Specifies the Amazon S3 [storage class](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Transition.html#AmazonS3-Type-Transition-StorageClass) to which you want the object to transition. * */ - private final String storageClass; - - @CustomType.Constructor - private BucketLifecycleRuleTransition( - @CustomType.Parameter("date") @Nullable String date, - @CustomType.Parameter("days") @Nullable Integer days, - @CustomType.Parameter("storageClass") String storageClass) { - this.date = date; - this.days = days; - this.storageClass = storageClass; - } + private String storageClass; + private BucketLifecycleRuleTransition() {} /** * @return Specifies the date after which you want the corresponding action to take effect. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(BucketLifecycleRuleTransition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String date; private @Nullable Integer days; private String storageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleRuleTransition defaults) { Objects.requireNonNull(defaults); this.date = defaults.date; @@ -84,19 +71,27 @@ public Builder(BucketLifecycleRuleTransition defaults) { this.storageClass = defaults.storageClass; } + @CustomType.Setter public Builder date(@Nullable String date) { this.date = date; return this; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; } + @CustomType.Setter public Builder storageClass(String storageClass) { this.storageClass = Objects.requireNonNull(storageClass); return this; - } public BucketLifecycleRuleTransition build() { - return new BucketLifecycleRuleTransition(date, days, storageClass); + } + public BucketLifecycleRuleTransition build() { + final var o = new BucketLifecycleRuleTransition(); + o.date = date; + o.days = days; + o.storageClass = storageClass; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLogging.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLogging.java index 0566d2c5ef7..107ac8f79db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLogging.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLogging.java @@ -15,21 +15,14 @@ public final class BucketLogging { * @return The name of the bucket that will receive the log objects. * */ - private final String targetBucket; + private String targetBucket; /** * @return To specify a key prefix for log objects. * */ - private final @Nullable String targetPrefix; - - @CustomType.Constructor - private BucketLogging( - @CustomType.Parameter("targetBucket") String targetBucket, - @CustomType.Parameter("targetPrefix") @Nullable String targetPrefix) { - this.targetBucket = targetBucket; - this.targetPrefix = targetPrefix; - } + private @Nullable String targetPrefix; + private BucketLogging() {} /** * @return The name of the bucket that will receive the log objects. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(BucketLogging defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String targetBucket; private @Nullable String targetPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLogging defaults) { Objects.requireNonNull(defaults); this.targetBucket = defaults.targetBucket; this.targetPrefix = defaults.targetPrefix; } + @CustomType.Setter public Builder targetBucket(String targetBucket) { this.targetBucket = Objects.requireNonNull(targetBucket); return this; } + @CustomType.Setter public Builder targetPrefix(@Nullable String targetPrefix) { this.targetPrefix = targetPrefix; return this; - } public BucketLogging build() { - return new BucketLogging(targetBucket, targetPrefix); + } + public BucketLogging build() { + final var o = new BucketLogging(); + o.targetBucket = targetBucket; + o.targetPrefix = targetPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLoggingV2TargetGrant.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLoggingV2TargetGrant.java index eff14d2334b..a91004c5c45 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLoggingV2TargetGrant.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLoggingV2TargetGrant.java @@ -14,21 +14,14 @@ public final class BucketLoggingV2TargetGrant { * @return A configuration block for the person being granted permissions documented below. * */ - private final BucketLoggingV2TargetGrantGrantee grantee; + private BucketLoggingV2TargetGrantGrantee grantee; /** * @return Logging permissions assigned to the grantee for the bucket. Valid values: `FULL_CONTROL`, `READ`, `WRITE`. * */ - private final String permission; - - @CustomType.Constructor - private BucketLoggingV2TargetGrant( - @CustomType.Parameter("grantee") BucketLoggingV2TargetGrantGrantee grantee, - @CustomType.Parameter("permission") String permission) { - this.grantee = grantee; - this.permission = permission; - } + private String permission; + private BucketLoggingV2TargetGrant() {} /** * @return A configuration block for the person being granted permissions documented below. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(BucketLoggingV2TargetGrant defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private BucketLoggingV2TargetGrantGrantee grantee; private String permission; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLoggingV2TargetGrant defaults) { Objects.requireNonNull(defaults); this.grantee = defaults.grantee; this.permission = defaults.permission; } + @CustomType.Setter public Builder grantee(BucketLoggingV2TargetGrantGrantee grantee) { this.grantee = Objects.requireNonNull(grantee); return this; } + @CustomType.Setter public Builder permission(String permission) { this.permission = Objects.requireNonNull(permission); return this; - } public BucketLoggingV2TargetGrant build() { - return new BucketLoggingV2TargetGrant(grantee, permission); + } + public BucketLoggingV2TargetGrant build() { + final var o = new BucketLoggingV2TargetGrant(); + o.grantee = grantee; + o.permission = permission; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLoggingV2TargetGrantGrantee.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLoggingV2TargetGrantGrantee.java index 187ca6c26bf..3a18a5568d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLoggingV2TargetGrantGrantee.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketLoggingV2TargetGrantGrantee.java @@ -11,42 +11,29 @@ @CustomType public final class BucketLoggingV2TargetGrantGrantee { - private final @Nullable String displayName; + private @Nullable String displayName; /** * @return Email address of the grantee. See [Regions and Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) for supported AWS regions where this argument can be specified. * */ - private final @Nullable String emailAddress; + private @Nullable String emailAddress; /** * @return The canonical user ID of the grantee. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Type of grantee. Valid values: `CanonicalUser`, `AmazonCustomerByEmail`, `Group`. * */ - private final String type; + private String type; /** * @return URI of the grantee group. * */ - private final @Nullable String uri; - - @CustomType.Constructor - private BucketLoggingV2TargetGrantGrantee( - @CustomType.Parameter("displayName") @Nullable String displayName, - @CustomType.Parameter("emailAddress") @Nullable String emailAddress, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("uri") @Nullable String uri) { - this.displayName = displayName; - this.emailAddress = emailAddress; - this.id = id; - this.type = type; - this.uri = uri; - } + private @Nullable String uri; + private BucketLoggingV2TargetGrantGrantee() {} public Optional displayName() { return Optional.ofNullable(this.displayName); } @@ -86,18 +73,14 @@ public static Builder builder() { public static Builder builder(BucketLoggingV2TargetGrantGrantee defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String displayName; private @Nullable String emailAddress; private @Nullable String id; private String type; private @Nullable String uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLoggingV2TargetGrantGrantee defaults) { Objects.requireNonNull(defaults); this.displayName = defaults.displayName; @@ -107,27 +90,39 @@ public Builder(BucketLoggingV2TargetGrantGrantee defaults) { this.uri = defaults.uri; } + @CustomType.Setter public Builder displayName(@Nullable String displayName) { this.displayName = displayName; return this; } + @CustomType.Setter public Builder emailAddress(@Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder uri(@Nullable String uri) { this.uri = uri; return this; - } public BucketLoggingV2TargetGrantGrantee build() { - return new BucketLoggingV2TargetGrantGrantee(displayName, emailAddress, id, type, uri); + } + public BucketLoggingV2TargetGrantGrantee build() { + final var o = new BucketLoggingV2TargetGrantGrantee(); + o.displayName = displayName; + o.emailAddress = emailAddress; + o.id = id; + o.type = type; + o.uri = uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketMetricFilter.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketMetricFilter.java index cfad61aba97..31b4df409c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketMetricFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketMetricFilter.java @@ -16,21 +16,14 @@ public final class BucketMetricFilter { * @return Object prefix for filtering (singular). * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return Object tags for filtering (up to 10). * */ - private final @Nullable Map tags; - - @CustomType.Constructor - private BucketMetricFilter( - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.prefix = prefix; - this.tags = tags; - } + private @Nullable Map tags; + private BucketMetricFilter() {} /** * @return Object prefix for filtering (singular). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketMetricFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String prefix; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketMetricFilter defaults) { Objects.requireNonNull(defaults); this.prefix = defaults.prefix; this.tags = defaults.tags; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public BucketMetricFilter build() { - return new BucketMetricFilter(prefix, tags); + } + public BucketMetricFilter build() { + final var o = new BucketMetricFilter(); + o.prefix = prefix; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketNotificationLambdaFunction.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketNotificationLambdaFunction.java index 97bcfd28ac2..d6ad9ce23fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketNotificationLambdaFunction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketNotificationLambdaFunction.java @@ -16,42 +16,29 @@ public final class BucketNotificationLambdaFunction { * @return [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications. * */ - private final List events; + private List events; /** * @return Object key name prefix. * */ - private final @Nullable String filterPrefix; + private @Nullable String filterPrefix; /** * @return Object key name suffix. * */ - private final @Nullable String filterSuffix; + private @Nullable String filterSuffix; /** * @return Unique identifier for each of the notification configurations. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Lambda function ARN. * */ - private final @Nullable String lambdaFunctionArn; - - @CustomType.Constructor - private BucketNotificationLambdaFunction( - @CustomType.Parameter("events") List events, - @CustomType.Parameter("filterPrefix") @Nullable String filterPrefix, - @CustomType.Parameter("filterSuffix") @Nullable String filterSuffix, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("lambdaFunctionArn") @Nullable String lambdaFunctionArn) { - this.events = events; - this.filterPrefix = filterPrefix; - this.filterSuffix = filterSuffix; - this.id = id; - this.lambdaFunctionArn = lambdaFunctionArn; - } + private @Nullable String lambdaFunctionArn; + private BucketNotificationLambdaFunction() {} /** * @return [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(BucketNotificationLambdaFunction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List events; private @Nullable String filterPrefix; private @Nullable String filterSuffix; private @Nullable String id; private @Nullable String lambdaFunctionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketNotificationLambdaFunction defaults) { Objects.requireNonNull(defaults); this.events = defaults.events; @@ -116,6 +99,7 @@ public Builder(BucketNotificationLambdaFunction defaults) { this.lambdaFunctionArn = defaults.lambdaFunctionArn; } + @CustomType.Setter public Builder events(List events) { this.events = Objects.requireNonNull(events); return this; @@ -123,23 +107,34 @@ public Builder events(List events) { public Builder events(String... events) { return events(List.of(events)); } + @CustomType.Setter public Builder filterPrefix(@Nullable String filterPrefix) { this.filterPrefix = filterPrefix; return this; } + @CustomType.Setter public Builder filterSuffix(@Nullable String filterSuffix) { this.filterSuffix = filterSuffix; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder lambdaFunctionArn(@Nullable String lambdaFunctionArn) { this.lambdaFunctionArn = lambdaFunctionArn; return this; - } public BucketNotificationLambdaFunction build() { - return new BucketNotificationLambdaFunction(events, filterPrefix, filterSuffix, id, lambdaFunctionArn); + } + public BucketNotificationLambdaFunction build() { + final var o = new BucketNotificationLambdaFunction(); + o.events = events; + o.filterPrefix = filterPrefix; + o.filterSuffix = filterSuffix; + o.id = id; + o.lambdaFunctionArn = lambdaFunctionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketNotificationQueue.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketNotificationQueue.java index 01fc41460b7..b6891dd1686 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketNotificationQueue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketNotificationQueue.java @@ -16,42 +16,29 @@ public final class BucketNotificationQueue { * @return [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications. * */ - private final List events; + private List events; /** * @return Object key name prefix. * */ - private final @Nullable String filterPrefix; + private @Nullable String filterPrefix; /** * @return Object key name suffix. * */ - private final @Nullable String filterSuffix; + private @Nullable String filterSuffix; /** * @return Unique identifier for each of the notification configurations. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return SQS queue ARN. * */ - private final String queueArn; - - @CustomType.Constructor - private BucketNotificationQueue( - @CustomType.Parameter("events") List events, - @CustomType.Parameter("filterPrefix") @Nullable String filterPrefix, - @CustomType.Parameter("filterSuffix") @Nullable String filterSuffix, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("queueArn") String queueArn) { - this.events = events; - this.filterPrefix = filterPrefix; - this.filterSuffix = filterSuffix; - this.id = id; - this.queueArn = queueArn; - } + private String queueArn; + private BucketNotificationQueue() {} /** * @return [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(BucketNotificationQueue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List events; private @Nullable String filterPrefix; private @Nullable String filterSuffix; private @Nullable String id; private String queueArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketNotificationQueue defaults) { Objects.requireNonNull(defaults); this.events = defaults.events; @@ -116,6 +99,7 @@ public Builder(BucketNotificationQueue defaults) { this.queueArn = defaults.queueArn; } + @CustomType.Setter public Builder events(List events) { this.events = Objects.requireNonNull(events); return this; @@ -123,23 +107,34 @@ public Builder events(List events) { public Builder events(String... events) { return events(List.of(events)); } + @CustomType.Setter public Builder filterPrefix(@Nullable String filterPrefix) { this.filterPrefix = filterPrefix; return this; } + @CustomType.Setter public Builder filterSuffix(@Nullable String filterSuffix) { this.filterSuffix = filterSuffix; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder queueArn(String queueArn) { this.queueArn = Objects.requireNonNull(queueArn); return this; - } public BucketNotificationQueue build() { - return new BucketNotificationQueue(events, filterPrefix, filterSuffix, id, queueArn); + } + public BucketNotificationQueue build() { + final var o = new BucketNotificationQueue(); + o.events = events; + o.filterPrefix = filterPrefix; + o.filterSuffix = filterSuffix; + o.id = id; + o.queueArn = queueArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketNotificationTopic.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketNotificationTopic.java index c4406434bd9..bb3e0a3fc39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketNotificationTopic.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketNotificationTopic.java @@ -16,42 +16,29 @@ public final class BucketNotificationTopic { * @return [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications. * */ - private final List events; + private List events; /** * @return Object key name prefix. * */ - private final @Nullable String filterPrefix; + private @Nullable String filterPrefix; /** * @return Object key name suffix. * */ - private final @Nullable String filterSuffix; + private @Nullable String filterSuffix; /** * @return Unique identifier for each of the notification configurations. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return SNS topic ARN. * */ - private final String topicArn; - - @CustomType.Constructor - private BucketNotificationTopic( - @CustomType.Parameter("events") List events, - @CustomType.Parameter("filterPrefix") @Nullable String filterPrefix, - @CustomType.Parameter("filterSuffix") @Nullable String filterSuffix, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("topicArn") String topicArn) { - this.events = events; - this.filterPrefix = filterPrefix; - this.filterSuffix = filterSuffix; - this.id = id; - this.topicArn = topicArn; - } + private String topicArn; + private BucketNotificationTopic() {} /** * @return [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(BucketNotificationTopic defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List events; private @Nullable String filterPrefix; private @Nullable String filterSuffix; private @Nullable String id; private String topicArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketNotificationTopic defaults) { Objects.requireNonNull(defaults); this.events = defaults.events; @@ -116,6 +99,7 @@ public Builder(BucketNotificationTopic defaults) { this.topicArn = defaults.topicArn; } + @CustomType.Setter public Builder events(List events) { this.events = Objects.requireNonNull(events); return this; @@ -123,23 +107,34 @@ public Builder events(List events) { public Builder events(String... events) { return events(List.of(events)); } + @CustomType.Setter public Builder filterPrefix(@Nullable String filterPrefix) { this.filterPrefix = filterPrefix; return this; } + @CustomType.Setter public Builder filterSuffix(@Nullable String filterSuffix) { this.filterSuffix = filterSuffix; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder topicArn(String topicArn) { this.topicArn = Objects.requireNonNull(topicArn); return this; - } public BucketNotificationTopic build() { - return new BucketNotificationTopic(events, filterPrefix, filterSuffix, id, topicArn); + } + public BucketNotificationTopic build() { + final var o = new BucketNotificationTopic(); + o.events = events; + o.filterPrefix = filterPrefix; + o.filterSuffix = filterSuffix; + o.id = id; + o.topicArn = topicArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfiguration.java index 30cb291fe8c..8f001e6e708 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfiguration.java @@ -16,21 +16,14 @@ public final class BucketObjectLockConfiguration { * @return Indicates whether this bucket has an Object Lock configuration enabled. Valid value is `Enabled`. * */ - private final String objectLockEnabled; + private String objectLockEnabled; /** * @return The Object Lock rule in place for this bucket. * */ - private final @Nullable BucketObjectLockConfigurationRule rule; - - @CustomType.Constructor - private BucketObjectLockConfiguration( - @CustomType.Parameter("objectLockEnabled") String objectLockEnabled, - @CustomType.Parameter("rule") @Nullable BucketObjectLockConfigurationRule rule) { - this.objectLockEnabled = objectLockEnabled; - this.rule = rule; - } + private @Nullable BucketObjectLockConfigurationRule rule; + private BucketObjectLockConfiguration() {} /** * @return Indicates whether this bucket has an Object Lock configuration enabled. Valid value is `Enabled`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketObjectLockConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String objectLockEnabled; private @Nullable BucketObjectLockConfigurationRule rule; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketObjectLockConfiguration defaults) { Objects.requireNonNull(defaults); this.objectLockEnabled = defaults.objectLockEnabled; this.rule = defaults.rule; } + @CustomType.Setter public Builder objectLockEnabled(String objectLockEnabled) { this.objectLockEnabled = Objects.requireNonNull(objectLockEnabled); return this; } + @CustomType.Setter public Builder rule(@Nullable BucketObjectLockConfigurationRule rule) { this.rule = rule; return this; - } public BucketObjectLockConfiguration build() { - return new BucketObjectLockConfiguration(objectLockEnabled, rule); + } + public BucketObjectLockConfiguration build() { + final var o = new BucketObjectLockConfiguration(); + o.objectLockEnabled = objectLockEnabled; + o.rule = rule; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationRule.java index 5fea0344b75..70dd4fe753c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationRule.java @@ -13,13 +13,9 @@ public final class BucketObjectLockConfigurationRule { * @return The default retention period that you want to apply to new objects placed in this bucket. * */ - private final BucketObjectLockConfigurationRuleDefaultRetention defaultRetention; - - @CustomType.Constructor - private BucketObjectLockConfigurationRule(@CustomType.Parameter("defaultRetention") BucketObjectLockConfigurationRuleDefaultRetention defaultRetention) { - this.defaultRetention = defaultRetention; - } + private BucketObjectLockConfigurationRuleDefaultRetention defaultRetention; + private BucketObjectLockConfigurationRule() {} /** * @return The default retention period that you want to apply to new objects placed in this bucket. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketObjectLockConfigurationRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private BucketObjectLockConfigurationRuleDefaultRetention defaultRetention; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketObjectLockConfigurationRule defaults) { Objects.requireNonNull(defaults); this.defaultRetention = defaults.defaultRetention; } + @CustomType.Setter public Builder defaultRetention(BucketObjectLockConfigurationRuleDefaultRetention defaultRetention) { this.defaultRetention = Objects.requireNonNull(defaultRetention); return this; - } public BucketObjectLockConfigurationRule build() { - return new BucketObjectLockConfigurationRule(defaultRetention); + } + public BucketObjectLockConfigurationRule build() { + final var o = new BucketObjectLockConfigurationRule(); + o.defaultRetention = defaultRetention; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationRuleDefaultRetention.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationRuleDefaultRetention.java index 4b14d94a3b6..b9573dc3f78 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationRuleDefaultRetention.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationRuleDefaultRetention.java @@ -16,28 +16,19 @@ public final class BucketObjectLockConfigurationRuleDefaultRetention { * @return The number of days that you want to specify for the default retention period. * */ - private final @Nullable Integer days; + private @Nullable Integer days; /** * @return The default Object Lock retention mode you want to apply to new objects placed in this bucket. Valid values are `GOVERNANCE` and `COMPLIANCE`. * */ - private final String mode; + private String mode; /** * @return The number of years that you want to specify for the default retention period. * */ - private final @Nullable Integer years; - - @CustomType.Constructor - private BucketObjectLockConfigurationRuleDefaultRetention( - @CustomType.Parameter("days") @Nullable Integer days, - @CustomType.Parameter("mode") String mode, - @CustomType.Parameter("years") @Nullable Integer years) { - this.days = days; - this.mode = mode; - this.years = years; - } + private @Nullable Integer years; + private BucketObjectLockConfigurationRuleDefaultRetention() {} /** * @return The number of days that you want to specify for the default retention period. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(BucketObjectLockConfigurationRuleDefaultRetention defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer days; private String mode; private @Nullable Integer years; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketObjectLockConfigurationRuleDefaultRetention defaults) { Objects.requireNonNull(defaults); this.days = defaults.days; @@ -84,19 +71,27 @@ public Builder(BucketObjectLockConfigurationRuleDefaultRetention defaults) { this.years = defaults.years; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; } + @CustomType.Setter public Builder mode(String mode) { this.mode = Objects.requireNonNull(mode); return this; } + @CustomType.Setter public Builder years(@Nullable Integer years) { this.years = years; return this; - } public BucketObjectLockConfigurationRuleDefaultRetention build() { - return new BucketObjectLockConfigurationRuleDefaultRetention(days, mode, years); + } + public BucketObjectLockConfigurationRuleDefaultRetention build() { + final var o = new BucketObjectLockConfigurationRuleDefaultRetention(); + o.days = days; + o.mode = mode; + o.years = years; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationV2Rule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationV2Rule.java index dd3ff8f4ee7..4bdadf420c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationV2Rule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationV2Rule.java @@ -13,13 +13,9 @@ public final class BucketObjectLockConfigurationV2Rule { * @return A configuration block for specifying the default Object Lock retention settings for new objects placed in the specified bucket detailed below. * */ - private final BucketObjectLockConfigurationV2RuleDefaultRetention defaultRetention; - - @CustomType.Constructor - private BucketObjectLockConfigurationV2Rule(@CustomType.Parameter("defaultRetention") BucketObjectLockConfigurationV2RuleDefaultRetention defaultRetention) { - this.defaultRetention = defaultRetention; - } + private BucketObjectLockConfigurationV2RuleDefaultRetention defaultRetention; + private BucketObjectLockConfigurationV2Rule() {} /** * @return A configuration block for specifying the default Object Lock retention settings for new objects placed in the specified bucket detailed below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketObjectLockConfigurationV2Rule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private BucketObjectLockConfigurationV2RuleDefaultRetention defaultRetention; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketObjectLockConfigurationV2Rule defaults) { Objects.requireNonNull(defaults); this.defaultRetention = defaults.defaultRetention; } + @CustomType.Setter public Builder defaultRetention(BucketObjectLockConfigurationV2RuleDefaultRetention defaultRetention) { this.defaultRetention = Objects.requireNonNull(defaultRetention); return this; - } public BucketObjectLockConfigurationV2Rule build() { - return new BucketObjectLockConfigurationV2Rule(defaultRetention); + } + public BucketObjectLockConfigurationV2Rule build() { + final var o = new BucketObjectLockConfigurationV2Rule(); + o.defaultRetention = defaultRetention; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationV2RuleDefaultRetention.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationV2RuleDefaultRetention.java index 0aca0168b21..ebbad57db3d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationV2RuleDefaultRetention.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketObjectLockConfigurationV2RuleDefaultRetention.java @@ -16,28 +16,19 @@ public final class BucketObjectLockConfigurationV2RuleDefaultRetention { * @return The number of days that you want to specify for the default retention period. * */ - private final @Nullable Integer days; + private @Nullable Integer days; /** * @return The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Valid values: `COMPLIANCE`, `GOVERNANCE`. * */ - private final @Nullable String mode; + private @Nullable String mode; /** * @return The number of years that you want to specify for the default retention period. * */ - private final @Nullable Integer years; - - @CustomType.Constructor - private BucketObjectLockConfigurationV2RuleDefaultRetention( - @CustomType.Parameter("days") @Nullable Integer days, - @CustomType.Parameter("mode") @Nullable String mode, - @CustomType.Parameter("years") @Nullable Integer years) { - this.days = days; - this.mode = mode; - this.years = years; - } + private @Nullable Integer years; + private BucketObjectLockConfigurationV2RuleDefaultRetention() {} /** * @return The number of days that you want to specify for the default retention period. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(BucketObjectLockConfigurationV2RuleDefaultRetention defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer days; private @Nullable String mode; private @Nullable Integer years; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketObjectLockConfigurationV2RuleDefaultRetention defaults) { Objects.requireNonNull(defaults); this.days = defaults.days; @@ -84,19 +71,27 @@ public Builder(BucketObjectLockConfigurationV2RuleDefaultRetention defaults) { this.years = defaults.years; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; } + @CustomType.Setter public Builder mode(@Nullable String mode) { this.mode = mode; return this; } + @CustomType.Setter public Builder years(@Nullable Integer years) { this.years = years; return this; - } public BucketObjectLockConfigurationV2RuleDefaultRetention build() { - return new BucketObjectLockConfigurationV2RuleDefaultRetention(days, mode, years); + } + public BucketObjectLockConfigurationV2RuleDefaultRetention build() { + final var o = new BucketObjectLockConfigurationV2RuleDefaultRetention(); + o.days = days; + o.mode = mode; + o.years = years; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketOwnershipControlsRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketOwnershipControlsRule.java index 2856f342585..5bb05d30d39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketOwnershipControlsRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketOwnershipControlsRule.java @@ -13,13 +13,9 @@ public final class BucketOwnershipControlsRule { * @return Object ownership. Valid values: `BucketOwnerPreferred`, `ObjectWriter` or `BucketOwnerEnforced` * */ - private final String objectOwnership; - - @CustomType.Constructor - private BucketOwnershipControlsRule(@CustomType.Parameter("objectOwnership") String objectOwnership) { - this.objectOwnership = objectOwnership; - } + private String objectOwnership; + private BucketOwnershipControlsRule() {} /** * @return Object ownership. Valid values: `BucketOwnerPreferred`, `ObjectWriter` or `BucketOwnerEnforced` * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketOwnershipControlsRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String objectOwnership; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketOwnershipControlsRule defaults) { Objects.requireNonNull(defaults); this.objectOwnership = defaults.objectOwnership; } + @CustomType.Setter public Builder objectOwnership(String objectOwnership) { this.objectOwnership = Objects.requireNonNull(objectOwnership); return this; - } public BucketOwnershipControlsRule build() { - return new BucketOwnershipControlsRule(objectOwnership); + } + public BucketOwnershipControlsRule build() { + final var o = new BucketOwnershipControlsRule(); + o.objectOwnership = objectOwnership; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRule.java index 11b78e732de..1359a31620c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRule.java @@ -21,27 +21,27 @@ public final class BucketReplicationConfigRule { * @return Whether delete markers are replicated. This argument is only valid with V2 replication configurations (i.e., when `filter` is used)documented below. * */ - private final @Nullable BucketReplicationConfigRuleDeleteMarkerReplication deleteMarkerReplication; + private @Nullable BucketReplicationConfigRuleDeleteMarkerReplication deleteMarkerReplication; /** * @return Specifies the destination for the rule documented below. * */ - private final BucketReplicationConfigRuleDestination destination; + private BucketReplicationConfigRuleDestination destination; /** * @return Replicate existing objects in the source bucket according to the rule configurations documented below. * */ - private final @Nullable BucketReplicationConfigRuleExistingObjectReplication existingObjectReplication; + private @Nullable BucketReplicationConfigRuleExistingObjectReplication existingObjectReplication; /** * @return Filter that identifies subset of objects to which the replication rule applies documented below. If not specified, the `rule` will default to using `prefix`. * */ - private final @Nullable BucketReplicationConfigRuleFilter filter; + private @Nullable BucketReplicationConfigRuleFilter filter; /** * @return Unique identifier for the rule. Must be less than or equal to 255 characters in length. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Object key name prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. Defaults to an empty string (`""`) if `filter` is not specified. * @@ -50,45 +50,24 @@ public final class BucketReplicationConfigRule { * */ @Deprecated /* Use filter instead */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return The priority associated with the rule. Priority should only be set if `filter` is configured. If not provided, defaults to `0`. Priority must be unique between multiple rules. * */ - private final @Nullable Integer priority; + private @Nullable Integer priority; /** * @return Specifies special object selection criteria documented below. * */ - private final @Nullable BucketReplicationConfigRuleSourceSelectionCriteria sourceSelectionCriteria; + private @Nullable BucketReplicationConfigRuleSourceSelectionCriteria sourceSelectionCriteria; /** * @return The status of the rule. Either `"Enabled"` or `"Disabled"`. The rule is ignored if status is not "Enabled". * */ - private final String status; - - @CustomType.Constructor - private BucketReplicationConfigRule( - @CustomType.Parameter("deleteMarkerReplication") @Nullable BucketReplicationConfigRuleDeleteMarkerReplication deleteMarkerReplication, - @CustomType.Parameter("destination") BucketReplicationConfigRuleDestination destination, - @CustomType.Parameter("existingObjectReplication") @Nullable BucketReplicationConfigRuleExistingObjectReplication existingObjectReplication, - @CustomType.Parameter("filter") @Nullable BucketReplicationConfigRuleFilter filter, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("priority") @Nullable Integer priority, - @CustomType.Parameter("sourceSelectionCriteria") @Nullable BucketReplicationConfigRuleSourceSelectionCriteria sourceSelectionCriteria, - @CustomType.Parameter("status") String status) { - this.deleteMarkerReplication = deleteMarkerReplication; - this.destination = destination; - this.existingObjectReplication = existingObjectReplication; - this.filter = filter; - this.id = id; - this.prefix = prefix; - this.priority = priority; - this.sourceSelectionCriteria = sourceSelectionCriteria; - this.status = status; - } + private String status; + private BucketReplicationConfigRule() {} /** * @return Whether delete markers are replicated. This argument is only valid with V2 replication configurations (i.e., when `filter` is used)documented below. * @@ -164,7 +143,7 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketReplicationConfigRuleDeleteMarkerReplication deleteMarkerReplication; private BucketReplicationConfigRuleDestination destination; @@ -175,11 +154,7 @@ public static final class Builder { private @Nullable Integer priority; private @Nullable BucketReplicationConfigRuleSourceSelectionCriteria sourceSelectionCriteria; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRule defaults) { Objects.requireNonNull(defaults); this.deleteMarkerReplication = defaults.deleteMarkerReplication; @@ -193,43 +168,63 @@ public Builder(BucketReplicationConfigRule defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder deleteMarkerReplication(@Nullable BucketReplicationConfigRuleDeleteMarkerReplication deleteMarkerReplication) { this.deleteMarkerReplication = deleteMarkerReplication; return this; } + @CustomType.Setter public Builder destination(BucketReplicationConfigRuleDestination destination) { this.destination = Objects.requireNonNull(destination); return this; } + @CustomType.Setter public Builder existingObjectReplication(@Nullable BucketReplicationConfigRuleExistingObjectReplication existingObjectReplication) { this.existingObjectReplication = existingObjectReplication; return this; } + @CustomType.Setter public Builder filter(@Nullable BucketReplicationConfigRuleFilter filter) { this.filter = filter; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder priority(@Nullable Integer priority) { this.priority = priority; return this; } + @CustomType.Setter public Builder sourceSelectionCriteria(@Nullable BucketReplicationConfigRuleSourceSelectionCriteria sourceSelectionCriteria) { this.sourceSelectionCriteria = sourceSelectionCriteria; return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public BucketReplicationConfigRule build() { - return new BucketReplicationConfigRule(deleteMarkerReplication, destination, existingObjectReplication, filter, id, prefix, priority, sourceSelectionCriteria, status); + } + public BucketReplicationConfigRule build() { + final var o = new BucketReplicationConfigRule(); + o.deleteMarkerReplication = deleteMarkerReplication; + o.destination = destination; + o.existingObjectReplication = existingObjectReplication; + o.filter = filter; + o.id = id; + o.prefix = prefix; + o.priority = priority; + o.sourceSelectionCriteria = sourceSelectionCriteria; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDeleteMarkerReplication.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDeleteMarkerReplication.java index 5b6c4b7a4ab..9d02b7dc107 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDeleteMarkerReplication.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDeleteMarkerReplication.java @@ -13,13 +13,9 @@ public final class BucketReplicationConfigRuleDeleteMarkerReplication { * @return Whether delete markers should be replicated. Either `"Enabled"` or `"Disabled"`. * */ - private final String status; - - @CustomType.Constructor - private BucketReplicationConfigRuleDeleteMarkerReplication(@CustomType.Parameter("status") String status) { - this.status = status; - } + private String status; + private BucketReplicationConfigRuleDeleteMarkerReplication() {} /** * @return Whether delete markers should be replicated. Either `"Enabled"` or `"Disabled"`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleDeleteMarkerReplication defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleDeleteMarkerReplication defaults) { Objects.requireNonNull(defaults); this.status = defaults.status; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public BucketReplicationConfigRuleDeleteMarkerReplication build() { - return new BucketReplicationConfigRuleDeleteMarkerReplication(status); + } + public BucketReplicationConfigRuleDeleteMarkerReplication build() { + final var o = new BucketReplicationConfigRuleDeleteMarkerReplication(); + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestination.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestination.java index 50a9c28c90e..d7e0dee452e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestination.java @@ -19,56 +19,39 @@ public final class BucketReplicationConfigRuleDestination { * @return A configuration block that specifies the overrides to use for object owners on replication documented below. Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same AWS account that owns the source object. Must be used in conjunction with `account` owner override configuration. * */ - private final @Nullable BucketReplicationConfigRuleDestinationAccessControlTranslation accessControlTranslation; + private @Nullable BucketReplicationConfigRuleDestinationAccessControlTranslation accessControlTranslation; /** * @return The Account ID to specify the replica ownership. Must be used in conjunction with `access_control_translation` override configuration. * */ - private final @Nullable String account; + private @Nullable String account; /** * @return The ARN of the S3 bucket where you want Amazon S3 to store replicas of the objects identified by the rule. * */ - private final String bucket; + private String bucket; /** * @return A configuration block that provides information about encryption documented below. If `source_selection_criteria` is specified, you must specify this element. * */ - private final @Nullable BucketReplicationConfigRuleDestinationEncryptionConfiguration encryptionConfiguration; + private @Nullable BucketReplicationConfigRuleDestinationEncryptionConfiguration encryptionConfiguration; /** * @return A configuration block that specifies replication metrics-related settings enabling replication metrics and events documented below. * */ - private final @Nullable BucketReplicationConfigRuleDestinationMetrics metrics; + private @Nullable BucketReplicationConfigRuleDestinationMetrics metrics; /** * @return A configuration block that specifies S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated documented below. Replication Time Control must be used in conjunction with `metrics`. * */ - private final @Nullable BucketReplicationConfigRuleDestinationReplicationTime replicationTime; + private @Nullable BucketReplicationConfigRuleDestinationReplicationTime replicationTime; /** * @return The [storage class](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Destination.html#AmazonS3-Type-Destination-StorageClass) used to store the object. By default, Amazon S3 uses the storage class of the source object to create the object replica. * */ - private final @Nullable String storageClass; - - @CustomType.Constructor - private BucketReplicationConfigRuleDestination( - @CustomType.Parameter("accessControlTranslation") @Nullable BucketReplicationConfigRuleDestinationAccessControlTranslation accessControlTranslation, - @CustomType.Parameter("account") @Nullable String account, - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("encryptionConfiguration") @Nullable BucketReplicationConfigRuleDestinationEncryptionConfiguration encryptionConfiguration, - @CustomType.Parameter("metrics") @Nullable BucketReplicationConfigRuleDestinationMetrics metrics, - @CustomType.Parameter("replicationTime") @Nullable BucketReplicationConfigRuleDestinationReplicationTime replicationTime, - @CustomType.Parameter("storageClass") @Nullable String storageClass) { - this.accessControlTranslation = accessControlTranslation; - this.account = account; - this.bucket = bucket; - this.encryptionConfiguration = encryptionConfiguration; - this.metrics = metrics; - this.replicationTime = replicationTime; - this.storageClass = storageClass; - } + private @Nullable String storageClass; + private BucketReplicationConfigRuleDestination() {} /** * @return A configuration block that specifies the overrides to use for object owners on replication documented below. Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same AWS account that owns the source object. Must be used in conjunction with `account` owner override configuration. * @@ -126,7 +109,7 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketReplicationConfigRuleDestinationAccessControlTranslation accessControlTranslation; private @Nullable String account; @@ -135,11 +118,7 @@ public static final class Builder { private @Nullable BucketReplicationConfigRuleDestinationMetrics metrics; private @Nullable BucketReplicationConfigRuleDestinationReplicationTime replicationTime; private @Nullable String storageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleDestination defaults) { Objects.requireNonNull(defaults); this.accessControlTranslation = defaults.accessControlTranslation; @@ -151,35 +130,51 @@ public Builder(BucketReplicationConfigRuleDestination defaults) { this.storageClass = defaults.storageClass; } + @CustomType.Setter public Builder accessControlTranslation(@Nullable BucketReplicationConfigRuleDestinationAccessControlTranslation accessControlTranslation) { this.accessControlTranslation = accessControlTranslation; return this; } + @CustomType.Setter public Builder account(@Nullable String account) { this.account = account; return this; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder encryptionConfiguration(@Nullable BucketReplicationConfigRuleDestinationEncryptionConfiguration encryptionConfiguration) { this.encryptionConfiguration = encryptionConfiguration; return this; } + @CustomType.Setter public Builder metrics(@Nullable BucketReplicationConfigRuleDestinationMetrics metrics) { this.metrics = metrics; return this; } + @CustomType.Setter public Builder replicationTime(@Nullable BucketReplicationConfigRuleDestinationReplicationTime replicationTime) { this.replicationTime = replicationTime; return this; } + @CustomType.Setter public Builder storageClass(@Nullable String storageClass) { this.storageClass = storageClass; return this; - } public BucketReplicationConfigRuleDestination build() { - return new BucketReplicationConfigRuleDestination(accessControlTranslation, account, bucket, encryptionConfiguration, metrics, replicationTime, storageClass); + } + public BucketReplicationConfigRuleDestination build() { + final var o = new BucketReplicationConfigRuleDestination(); + o.accessControlTranslation = accessControlTranslation; + o.account = account; + o.bucket = bucket; + o.encryptionConfiguration = encryptionConfiguration; + o.metrics = metrics; + o.replicationTime = replicationTime; + o.storageClass = storageClass; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationAccessControlTranslation.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationAccessControlTranslation.java index b9ad2bb0313..e45f9efa1bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationAccessControlTranslation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationAccessControlTranslation.java @@ -13,13 +13,9 @@ public final class BucketReplicationConfigRuleDestinationAccessControlTranslatio * @return Specifies the replica ownership. For default and valid values, see [PUT bucket replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) in the Amazon S3 API Reference. Valid values: `Destination`. * */ - private final String owner; - - @CustomType.Constructor - private BucketReplicationConfigRuleDestinationAccessControlTranslation(@CustomType.Parameter("owner") String owner) { - this.owner = owner; - } + private String owner; + private BucketReplicationConfigRuleDestinationAccessControlTranslation() {} /** * @return Specifies the replica ownership. For default and valid values, see [PUT bucket replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) in the Amazon S3 API Reference. Valid values: `Destination`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleDestinationAccessControlTranslation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String owner; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleDestinationAccessControlTranslation defaults) { Objects.requireNonNull(defaults); this.owner = defaults.owner; } + @CustomType.Setter public Builder owner(String owner) { this.owner = Objects.requireNonNull(owner); return this; - } public BucketReplicationConfigRuleDestinationAccessControlTranslation build() { - return new BucketReplicationConfigRuleDestinationAccessControlTranslation(owner); + } + public BucketReplicationConfigRuleDestinationAccessControlTranslation build() { + final var o = new BucketReplicationConfigRuleDestinationAccessControlTranslation(); + o.owner = owner; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationEncryptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationEncryptionConfiguration.java index 1e0b0fa8761..e938796916b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationEncryptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationEncryptionConfiguration.java @@ -13,13 +13,9 @@ public final class BucketReplicationConfigRuleDestinationEncryptionConfiguration * @return The ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. * */ - private final String replicaKmsKeyId; - - @CustomType.Constructor - private BucketReplicationConfigRuleDestinationEncryptionConfiguration(@CustomType.Parameter("replicaKmsKeyId") String replicaKmsKeyId) { - this.replicaKmsKeyId = replicaKmsKeyId; - } + private String replicaKmsKeyId; + private BucketReplicationConfigRuleDestinationEncryptionConfiguration() {} /** * @return The ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleDestinationEncryptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String replicaKmsKeyId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleDestinationEncryptionConfiguration defaults) { Objects.requireNonNull(defaults); this.replicaKmsKeyId = defaults.replicaKmsKeyId; } + @CustomType.Setter public Builder replicaKmsKeyId(String replicaKmsKeyId) { this.replicaKmsKeyId = Objects.requireNonNull(replicaKmsKeyId); return this; - } public BucketReplicationConfigRuleDestinationEncryptionConfiguration build() { - return new BucketReplicationConfigRuleDestinationEncryptionConfiguration(replicaKmsKeyId); + } + public BucketReplicationConfigRuleDestinationEncryptionConfiguration build() { + final var o = new BucketReplicationConfigRuleDestinationEncryptionConfiguration(); + o.replicaKmsKeyId = replicaKmsKeyId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationMetrics.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationMetrics.java index 7bc183990f0..1f88f7f7a4c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationMetrics.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationMetrics.java @@ -16,21 +16,14 @@ public final class BucketReplicationConfigRuleDestinationMetrics { * @return A configuration block that specifies the time threshold for emitting the `s3:Replication:OperationMissedThreshold` event documented below. * */ - private final @Nullable BucketReplicationConfigRuleDestinationMetricsEventThreshold eventThreshold; + private @Nullable BucketReplicationConfigRuleDestinationMetricsEventThreshold eventThreshold; /** * @return The status of the Destination Metrics. Either `"Enabled"` or `"Disabled"`. * */ - private final String status; - - @CustomType.Constructor - private BucketReplicationConfigRuleDestinationMetrics( - @CustomType.Parameter("eventThreshold") @Nullable BucketReplicationConfigRuleDestinationMetricsEventThreshold eventThreshold, - @CustomType.Parameter("status") String status) { - this.eventThreshold = eventThreshold; - this.status = status; - } + private String status; + private BucketReplicationConfigRuleDestinationMetrics() {} /** * @return A configuration block that specifies the time threshold for emitting the `s3:Replication:OperationMissedThreshold` event documented below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleDestinationMetrics defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketReplicationConfigRuleDestinationMetricsEventThreshold eventThreshold; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleDestinationMetrics defaults) { Objects.requireNonNull(defaults); this.eventThreshold = defaults.eventThreshold; this.status = defaults.status; } + @CustomType.Setter public Builder eventThreshold(@Nullable BucketReplicationConfigRuleDestinationMetricsEventThreshold eventThreshold) { this.eventThreshold = eventThreshold; return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public BucketReplicationConfigRuleDestinationMetrics build() { - return new BucketReplicationConfigRuleDestinationMetrics(eventThreshold, status); + } + public BucketReplicationConfigRuleDestinationMetrics build() { + final var o = new BucketReplicationConfigRuleDestinationMetrics(); + o.eventThreshold = eventThreshold; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationMetricsEventThreshold.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationMetricsEventThreshold.java index d4f85a4ca00..7b973e02398 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationMetricsEventThreshold.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationMetricsEventThreshold.java @@ -13,13 +13,9 @@ public final class BucketReplicationConfigRuleDestinationMetricsEventThreshold { * @return Time in minutes. Valid values: `15`. * */ - private final Integer minutes; - - @CustomType.Constructor - private BucketReplicationConfigRuleDestinationMetricsEventThreshold(@CustomType.Parameter("minutes") Integer minutes) { - this.minutes = minutes; - } + private Integer minutes; + private BucketReplicationConfigRuleDestinationMetricsEventThreshold() {} /** * @return Time in minutes. Valid values: `15`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleDestinationMetricsEventThreshold defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer minutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleDestinationMetricsEventThreshold defaults) { Objects.requireNonNull(defaults); this.minutes = defaults.minutes; } + @CustomType.Setter public Builder minutes(Integer minutes) { this.minutes = Objects.requireNonNull(minutes); return this; - } public BucketReplicationConfigRuleDestinationMetricsEventThreshold build() { - return new BucketReplicationConfigRuleDestinationMetricsEventThreshold(minutes); + } + public BucketReplicationConfigRuleDestinationMetricsEventThreshold build() { + final var o = new BucketReplicationConfigRuleDestinationMetricsEventThreshold(); + o.minutes = minutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationReplicationTime.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationReplicationTime.java index 307ddd98c85..bf10a1bdc9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationReplicationTime.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationReplicationTime.java @@ -14,21 +14,14 @@ public final class BucketReplicationConfigRuleDestinationReplicationTime { * @return The status of the Replication Time Control. Either `"Enabled"` or `"Disabled"`. * */ - private final String status; + private String status; /** * @return A configuration block specifying the time by which replication should be complete for all objects and operations on objects documented below. * */ - private final BucketReplicationConfigRuleDestinationReplicationTimeTime time; - - @CustomType.Constructor - private BucketReplicationConfigRuleDestinationReplicationTime( - @CustomType.Parameter("status") String status, - @CustomType.Parameter("time") BucketReplicationConfigRuleDestinationReplicationTimeTime time) { - this.status = status; - this.time = time; - } + private BucketReplicationConfigRuleDestinationReplicationTimeTime time; + private BucketReplicationConfigRuleDestinationReplicationTime() {} /** * @return The status of the Replication Time Control. Either `"Enabled"` or `"Disabled"`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleDestinationReplicationTime defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String status; private BucketReplicationConfigRuleDestinationReplicationTimeTime time; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleDestinationReplicationTime defaults) { Objects.requireNonNull(defaults); this.status = defaults.status; this.time = defaults.time; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder time(BucketReplicationConfigRuleDestinationReplicationTimeTime time) { this.time = Objects.requireNonNull(time); return this; - } public BucketReplicationConfigRuleDestinationReplicationTime build() { - return new BucketReplicationConfigRuleDestinationReplicationTime(status, time); + } + public BucketReplicationConfigRuleDestinationReplicationTime build() { + final var o = new BucketReplicationConfigRuleDestinationReplicationTime(); + o.status = status; + o.time = time; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationReplicationTimeTime.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationReplicationTimeTime.java index bfce4ed7745..f7e20a0b183 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationReplicationTimeTime.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleDestinationReplicationTimeTime.java @@ -13,13 +13,9 @@ public final class BucketReplicationConfigRuleDestinationReplicationTimeTime { * @return Time in minutes. Valid values: `15`. * */ - private final Integer minutes; - - @CustomType.Constructor - private BucketReplicationConfigRuleDestinationReplicationTimeTime(@CustomType.Parameter("minutes") Integer minutes) { - this.minutes = minutes; - } + private Integer minutes; + private BucketReplicationConfigRuleDestinationReplicationTimeTime() {} /** * @return Time in minutes. Valid values: `15`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleDestinationReplicationTimeTime defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer minutes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleDestinationReplicationTimeTime defaults) { Objects.requireNonNull(defaults); this.minutes = defaults.minutes; } + @CustomType.Setter public Builder minutes(Integer minutes) { this.minutes = Objects.requireNonNull(minutes); return this; - } public BucketReplicationConfigRuleDestinationReplicationTimeTime build() { - return new BucketReplicationConfigRuleDestinationReplicationTimeTime(minutes); + } + public BucketReplicationConfigRuleDestinationReplicationTimeTime build() { + final var o = new BucketReplicationConfigRuleDestinationReplicationTimeTime(); + o.minutes = minutes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleExistingObjectReplication.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleExistingObjectReplication.java index e48a1fd973a..984e5546796 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleExistingObjectReplication.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleExistingObjectReplication.java @@ -13,13 +13,9 @@ public final class BucketReplicationConfigRuleExistingObjectReplication { * @return Whether the existing objects should be replicated. Either `"Enabled"` or `"Disabled"`. * */ - private final String status; - - @CustomType.Constructor - private BucketReplicationConfigRuleExistingObjectReplication(@CustomType.Parameter("status") String status) { - this.status = status; - } + private String status; + private BucketReplicationConfigRuleExistingObjectReplication() {} /** * @return Whether the existing objects should be replicated. Either `"Enabled"` or `"Disabled"`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleExistingObjectReplication defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleExistingObjectReplication defaults) { Objects.requireNonNull(defaults); this.status = defaults.status; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public BucketReplicationConfigRuleExistingObjectReplication build() { - return new BucketReplicationConfigRuleExistingObjectReplication(status); + } + public BucketReplicationConfigRuleExistingObjectReplication build() { + final var o = new BucketReplicationConfigRuleExistingObjectReplication(); + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleFilter.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleFilter.java index 9ddf4897ea0..88d02615f39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleFilter.java @@ -17,28 +17,19 @@ public final class BucketReplicationConfigRuleFilter { * @return A configuration block for specifying rule filters. This element is required only if you specify more than one filter. See and below for more details. * */ - private final @Nullable BucketReplicationConfigRuleFilterAnd and; + private @Nullable BucketReplicationConfigRuleFilterAnd and; /** * @return An object key name prefix that identifies subset of objects to which the rule applies. Must be less than or equal to 1024 characters in length. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return A configuration block for specifying a tag key and value documented below. * */ - private final @Nullable BucketReplicationConfigRuleFilterTag tag; - - @CustomType.Constructor - private BucketReplicationConfigRuleFilter( - @CustomType.Parameter("and") @Nullable BucketReplicationConfigRuleFilterAnd and, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("tag") @Nullable BucketReplicationConfigRuleFilterTag tag) { - this.and = and; - this.prefix = prefix; - this.tag = tag; - } + private @Nullable BucketReplicationConfigRuleFilterTag tag; + private BucketReplicationConfigRuleFilter() {} /** * @return A configuration block for specifying rule filters. This element is required only if you specify more than one filter. See and below for more details. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketReplicationConfigRuleFilterAnd and; private @Nullable String prefix; private @Nullable BucketReplicationConfigRuleFilterTag tag; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleFilter defaults) { Objects.requireNonNull(defaults); this.and = defaults.and; @@ -85,19 +72,27 @@ public Builder(BucketReplicationConfigRuleFilter defaults) { this.tag = defaults.tag; } + @CustomType.Setter public Builder and(@Nullable BucketReplicationConfigRuleFilterAnd and) { this.and = and; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder tag(@Nullable BucketReplicationConfigRuleFilterTag tag) { this.tag = tag; return this; - } public BucketReplicationConfigRuleFilter build() { - return new BucketReplicationConfigRuleFilter(and, prefix, tag); + } + public BucketReplicationConfigRuleFilter build() { + final var o = new BucketReplicationConfigRuleFilter(); + o.and = and; + o.prefix = prefix; + o.tag = tag; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleFilterAnd.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleFilterAnd.java index b8d02f639f3..9fdf4be87f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleFilterAnd.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleFilterAnd.java @@ -16,21 +16,14 @@ public final class BucketReplicationConfigRuleFilterAnd { * @return An object key name prefix that identifies subset of objects to which the rule applies. Must be less than or equal to 1024 characters in length. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return A map of tags (key and value pairs) that identifies a subset of objects to which the rule applies. The rule applies only to objects having all the tags in its tagset. * */ - private final @Nullable Map tags; - - @CustomType.Constructor - private BucketReplicationConfigRuleFilterAnd( - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.prefix = prefix; - this.tags = tags; - } + private @Nullable Map tags; + private BucketReplicationConfigRuleFilterAnd() {} /** * @return An object key name prefix that identifies subset of objects to which the rule applies. Must be less than or equal to 1024 characters in length. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleFilterAnd defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String prefix; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleFilterAnd defaults) { Objects.requireNonNull(defaults); this.prefix = defaults.prefix; this.tags = defaults.tags; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public BucketReplicationConfigRuleFilterAnd build() { - return new BucketReplicationConfigRuleFilterAnd(prefix, tags); + } + public BucketReplicationConfigRuleFilterAnd build() { + final var o = new BucketReplicationConfigRuleFilterAnd(); + o.prefix = prefix; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleFilterTag.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleFilterTag.java index 85d9fc202fc..8bd7de7c776 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleFilterTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleFilterTag.java @@ -13,21 +13,14 @@ public final class BucketReplicationConfigRuleFilterTag { * @return Name of the object key. * */ - private final String key; + private String key; /** * @return Value of the tag. * */ - private final String value; - - @CustomType.Constructor - private BucketReplicationConfigRuleFilterTag( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private BucketReplicationConfigRuleFilterTag() {} /** * @return Name of the object key. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleFilterTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleFilterTag defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public BucketReplicationConfigRuleFilterTag build() { - return new BucketReplicationConfigRuleFilterTag(key, value); + } + public BucketReplicationConfigRuleFilterTag build() { + final var o = new BucketReplicationConfigRuleFilterTag(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleSourceSelectionCriteria.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleSourceSelectionCriteria.java index 6661304fe4f..24e67582033 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleSourceSelectionCriteria.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleSourceSelectionCriteria.java @@ -16,21 +16,14 @@ public final class BucketReplicationConfigRuleSourceSelectionCriteria { * @return A configuration block that you can specify for selections for modifications on replicas. Amazon S3 doesn't replicate replica modifications by default. In the latest version of replication configuration (when `filter` is specified), you can specify this element and set the status to `Enabled` to replicate modifications on replicas. * */ - private final @Nullable BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications replicaModifications; + private @Nullable BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications replicaModifications; /** * @return A configuration block for filter information for the selection of Amazon S3 objects encrypted with AWS KMS. If specified, `replica_kms_key_id` in `destination` `encryption_configuration` must be specified as well. * */ - private final @Nullable BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects sseKmsEncryptedObjects; - - @CustomType.Constructor - private BucketReplicationConfigRuleSourceSelectionCriteria( - @CustomType.Parameter("replicaModifications") @Nullable BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications replicaModifications, - @CustomType.Parameter("sseKmsEncryptedObjects") @Nullable BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects sseKmsEncryptedObjects) { - this.replicaModifications = replicaModifications; - this.sseKmsEncryptedObjects = sseKmsEncryptedObjects; - } + private @Nullable BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects sseKmsEncryptedObjects; + private BucketReplicationConfigRuleSourceSelectionCriteria() {} /** * @return A configuration block that you can specify for selections for modifications on replicas. Amazon S3 doesn't replicate replica modifications by default. In the latest version of replication configuration (when `filter` is specified), you can specify this element and set the status to `Enabled` to replicate modifications on replicas. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleSourceSelectionCriteria defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications replicaModifications; private @Nullable BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects sseKmsEncryptedObjects; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleSourceSelectionCriteria defaults) { Objects.requireNonNull(defaults); this.replicaModifications = defaults.replicaModifications; this.sseKmsEncryptedObjects = defaults.sseKmsEncryptedObjects; } + @CustomType.Setter public Builder replicaModifications(@Nullable BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications replicaModifications) { this.replicaModifications = replicaModifications; return this; } + @CustomType.Setter public Builder sseKmsEncryptedObjects(@Nullable BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects sseKmsEncryptedObjects) { this.sseKmsEncryptedObjects = sseKmsEncryptedObjects; return this; - } public BucketReplicationConfigRuleSourceSelectionCriteria build() { - return new BucketReplicationConfigRuleSourceSelectionCriteria(replicaModifications, sseKmsEncryptedObjects); + } + public BucketReplicationConfigRuleSourceSelectionCriteria build() { + final var o = new BucketReplicationConfigRuleSourceSelectionCriteria(); + o.replicaModifications = replicaModifications; + o.sseKmsEncryptedObjects = sseKmsEncryptedObjects; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications.java index 51d11ceaf86..ef2b7e16631 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications.java @@ -13,13 +13,9 @@ public final class BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModi * @return Whether the existing objects should be replicated. Either `"Enabled"` or `"Disabled"`. * */ - private final String status; - - @CustomType.Constructor - private BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications(@CustomType.Parameter("status") String status) { - this.status = status; - } + private String status; + private BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications() {} /** * @return Whether the existing objects should be replicated. Either `"Enabled"` or `"Disabled"`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications defaults) { Objects.requireNonNull(defaults); this.status = defaults.status; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications build() { - return new BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications(status); + } + public BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications build() { + final var o = new BucketReplicationConfigRuleSourceSelectionCriteriaReplicaModifications(); + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects.java index f6595934eac..7df80c0107b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects.java @@ -13,13 +13,9 @@ public final class BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncry * @return Whether the existing objects should be replicated. Either `"Enabled"` or `"Disabled"`. * */ - private final String status; - - @CustomType.Constructor - private BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects(@CustomType.Parameter("status") String status) { - this.status = status; - } + private String status; + private BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects() {} /** * @return Whether the existing objects should be replicated. Either `"Enabled"` or `"Disabled"`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects defaults) { Objects.requireNonNull(defaults); this.status = defaults.status; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects build() { - return new BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects(status); + } + public BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects build() { + final var o = new BucketReplicationConfigRuleSourceSelectionCriteriaSseKmsEncryptedObjects(); + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfiguration.java index 1a74e4f6838..fda7a3a227e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfiguration.java @@ -15,21 +15,14 @@ public final class BucketReplicationConfiguration { * @return The ARN of the IAM role for Amazon S3 to assume when replicating the objects. * */ - private final String role; + private String role; /** * @return Specifies the rules managing the replication (documented below). * */ - private final List rules; - - @CustomType.Constructor - private BucketReplicationConfiguration( - @CustomType.Parameter("role") String role, - @CustomType.Parameter("rules") List rules) { - this.role = role; - this.rules = rules; - } + private List rules; + private BucketReplicationConfiguration() {} /** * @return The ARN of the IAM role for Amazon S3 to assume when replicating the objects. * @@ -52,33 +45,35 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String role; private List rules; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfiguration defaults) { Objects.requireNonNull(defaults); this.role = defaults.role; this.rules = defaults.rules; } + @CustomType.Setter public Builder role(String role) { this.role = Objects.requireNonNull(role); return this; } + @CustomType.Setter public Builder rules(List rules) { this.rules = Objects.requireNonNull(rules); return this; } public Builder rules(BucketReplicationConfigurationRule... rules) { return rules(List.of(rules)); - } public BucketReplicationConfiguration build() { - return new BucketReplicationConfiguration(role, rules); + } + public BucketReplicationConfiguration build() { + final var o = new BucketReplicationConfiguration(); + o.role = role; + o.rules = rules; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRule.java index 457786e826a..95d7b17d104 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRule.java @@ -19,63 +19,44 @@ public final class BucketReplicationConfigurationRule { * @return Whether delete markers are replicated. The only valid value is `Enabled`. To disable, omit this argument. This argument is only valid with V2 replication configurations (i.e., when `filter` is used). * */ - private final @Nullable String deleteMarkerReplicationStatus; + private @Nullable String deleteMarkerReplicationStatus; /** * @return Specifies the destination for the rule (documented below). * */ - private final BucketReplicationConfigurationRuleDestination destination; + private BucketReplicationConfigurationRuleDestination destination; /** * @return Filter that identifies subset of objects to which the replication rule applies (documented below). * */ - private final @Nullable BucketReplicationConfigurationRuleFilter filter; + private @Nullable BucketReplicationConfigurationRuleFilter filter; /** * @return Unique identifier for the rule. Must be less than or equal to 255 characters in length. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Object keyname prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return The priority associated with the rule. Priority should only be set if `filter` is configured. If not provided, defaults to `0`. Priority must be unique between multiple rules. * */ - private final @Nullable Integer priority; + private @Nullable Integer priority; /** * @return Specifies special object selection criteria (documented below). * */ - private final @Nullable BucketReplicationConfigurationRuleSourceSelectionCriteria sourceSelectionCriteria; + private @Nullable BucketReplicationConfigurationRuleSourceSelectionCriteria sourceSelectionCriteria; /** * @return The status of the rule. Either `Enabled` or `Disabled`. The rule is ignored if status is not Enabled. * */ - private final String status; - - @CustomType.Constructor - private BucketReplicationConfigurationRule( - @CustomType.Parameter("deleteMarkerReplicationStatus") @Nullable String deleteMarkerReplicationStatus, - @CustomType.Parameter("destination") BucketReplicationConfigurationRuleDestination destination, - @CustomType.Parameter("filter") @Nullable BucketReplicationConfigurationRuleFilter filter, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("priority") @Nullable Integer priority, - @CustomType.Parameter("sourceSelectionCriteria") @Nullable BucketReplicationConfigurationRuleSourceSelectionCriteria sourceSelectionCriteria, - @CustomType.Parameter("status") String status) { - this.deleteMarkerReplicationStatus = deleteMarkerReplicationStatus; - this.destination = destination; - this.filter = filter; - this.id = id; - this.prefix = prefix; - this.priority = priority; - this.sourceSelectionCriteria = sourceSelectionCriteria; - this.status = status; - } + private String status; + private BucketReplicationConfigurationRule() {} /** * @return Whether delete markers are replicated. The only valid value is `Enabled`. To disable, omit this argument. This argument is only valid with V2 replication configurations (i.e., when `filter` is used). * @@ -140,7 +121,7 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigurationRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deleteMarkerReplicationStatus; private BucketReplicationConfigurationRuleDestination destination; @@ -150,11 +131,7 @@ public static final class Builder { private @Nullable Integer priority; private @Nullable BucketReplicationConfigurationRuleSourceSelectionCriteria sourceSelectionCriteria; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigurationRule defaults) { Objects.requireNonNull(defaults); this.deleteMarkerReplicationStatus = defaults.deleteMarkerReplicationStatus; @@ -167,39 +144,57 @@ public Builder(BucketReplicationConfigurationRule defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder deleteMarkerReplicationStatus(@Nullable String deleteMarkerReplicationStatus) { this.deleteMarkerReplicationStatus = deleteMarkerReplicationStatus; return this; } + @CustomType.Setter public Builder destination(BucketReplicationConfigurationRuleDestination destination) { this.destination = Objects.requireNonNull(destination); return this; } + @CustomType.Setter public Builder filter(@Nullable BucketReplicationConfigurationRuleFilter filter) { this.filter = filter; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder priority(@Nullable Integer priority) { this.priority = priority; return this; } + @CustomType.Setter public Builder sourceSelectionCriteria(@Nullable BucketReplicationConfigurationRuleSourceSelectionCriteria sourceSelectionCriteria) { this.sourceSelectionCriteria = sourceSelectionCriteria; return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public BucketReplicationConfigurationRule build() { - return new BucketReplicationConfigurationRule(deleteMarkerReplicationStatus, destination, filter, id, prefix, priority, sourceSelectionCriteria, status); + } + public BucketReplicationConfigurationRule build() { + final var o = new BucketReplicationConfigurationRule(); + o.deleteMarkerReplicationStatus = deleteMarkerReplicationStatus; + o.destination = destination; + o.filter = filter; + o.id = id; + o.prefix = prefix; + o.priority = priority; + o.sourceSelectionCriteria = sourceSelectionCriteria; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestination.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestination.java index 9c72944b1e8..0cfa8230f9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestination.java @@ -18,57 +18,40 @@ public final class BucketReplicationConfigurationRuleDestination { * @return Specifies the overrides to use for object owners on replication. Must be used in conjunction with `account_id` owner override configuration. * */ - private final @Nullable BucketReplicationConfigurationRuleDestinationAccessControlTranslation accessControlTranslation; + private @Nullable BucketReplicationConfigurationRuleDestinationAccessControlTranslation accessControlTranslation; /** * @return The Account ID to use for overriding the object owner on replication. Must be used in conjunction with `access_control_translation` override configuration. * */ - private final @Nullable String accountId; + private @Nullable String accountId; /** * @return The ARN of the S3 bucket where you want Amazon S3 to store replicas of the object identified by the rule. * */ - private final String bucket; + private String bucket; /** * @return Enables replication metrics (required for S3 RTC) (documented below). * */ - private final @Nullable BucketReplicationConfigurationRuleDestinationMetrics metrics; + private @Nullable BucketReplicationConfigurationRuleDestinationMetrics metrics; /** * @return Destination KMS encryption key ARN for SSE-KMS replication. Must be used in conjunction with * `sse_kms_encrypted_objects` source selection criteria. * */ - private final @Nullable String replicaKmsKeyId; + private @Nullable String replicaKmsKeyId; /** * @return Enables S3 Replication Time Control (S3 RTC) (documented below). * */ - private final @Nullable BucketReplicationConfigurationRuleDestinationReplicationTime replicationTime; + private @Nullable BucketReplicationConfigurationRuleDestinationReplicationTime replicationTime; /** * @return The [storage class](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Destination.html#AmazonS3-Type-Destination-StorageClass) used to store the object. By default, Amazon S3 uses the storage class of the source object to create the object replica. * */ - private final @Nullable String storageClass; - - @CustomType.Constructor - private BucketReplicationConfigurationRuleDestination( - @CustomType.Parameter("accessControlTranslation") @Nullable BucketReplicationConfigurationRuleDestinationAccessControlTranslation accessControlTranslation, - @CustomType.Parameter("accountId") @Nullable String accountId, - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("metrics") @Nullable BucketReplicationConfigurationRuleDestinationMetrics metrics, - @CustomType.Parameter("replicaKmsKeyId") @Nullable String replicaKmsKeyId, - @CustomType.Parameter("replicationTime") @Nullable BucketReplicationConfigurationRuleDestinationReplicationTime replicationTime, - @CustomType.Parameter("storageClass") @Nullable String storageClass) { - this.accessControlTranslation = accessControlTranslation; - this.accountId = accountId; - this.bucket = bucket; - this.metrics = metrics; - this.replicaKmsKeyId = replicaKmsKeyId; - this.replicationTime = replicationTime; - this.storageClass = storageClass; - } + private @Nullable String storageClass; + private BucketReplicationConfigurationRuleDestination() {} /** * @return Specifies the overrides to use for object owners on replication. Must be used in conjunction with `account_id` owner override configuration. * @@ -127,7 +110,7 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigurationRuleDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketReplicationConfigurationRuleDestinationAccessControlTranslation accessControlTranslation; private @Nullable String accountId; @@ -136,11 +119,7 @@ public static final class Builder { private @Nullable String replicaKmsKeyId; private @Nullable BucketReplicationConfigurationRuleDestinationReplicationTime replicationTime; private @Nullable String storageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigurationRuleDestination defaults) { Objects.requireNonNull(defaults); this.accessControlTranslation = defaults.accessControlTranslation; @@ -152,35 +131,51 @@ public Builder(BucketReplicationConfigurationRuleDestination defaults) { this.storageClass = defaults.storageClass; } + @CustomType.Setter public Builder accessControlTranslation(@Nullable BucketReplicationConfigurationRuleDestinationAccessControlTranslation accessControlTranslation) { this.accessControlTranslation = accessControlTranslation; return this; } + @CustomType.Setter public Builder accountId(@Nullable String accountId) { this.accountId = accountId; return this; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder metrics(@Nullable BucketReplicationConfigurationRuleDestinationMetrics metrics) { this.metrics = metrics; return this; } + @CustomType.Setter public Builder replicaKmsKeyId(@Nullable String replicaKmsKeyId) { this.replicaKmsKeyId = replicaKmsKeyId; return this; } + @CustomType.Setter public Builder replicationTime(@Nullable BucketReplicationConfigurationRuleDestinationReplicationTime replicationTime) { this.replicationTime = replicationTime; return this; } + @CustomType.Setter public Builder storageClass(@Nullable String storageClass) { this.storageClass = storageClass; return this; - } public BucketReplicationConfigurationRuleDestination build() { - return new BucketReplicationConfigurationRuleDestination(accessControlTranslation, accountId, bucket, metrics, replicaKmsKeyId, replicationTime, storageClass); + } + public BucketReplicationConfigurationRuleDestination build() { + final var o = new BucketReplicationConfigurationRuleDestination(); + o.accessControlTranslation = accessControlTranslation; + o.accountId = accountId; + o.bucket = bucket; + o.metrics = metrics; + o.replicaKmsKeyId = replicaKmsKeyId; + o.replicationTime = replicationTime; + o.storageClass = storageClass; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestinationAccessControlTranslation.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestinationAccessControlTranslation.java index 65a120bc0e2..f5c68628f8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestinationAccessControlTranslation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestinationAccessControlTranslation.java @@ -13,13 +13,9 @@ public final class BucketReplicationConfigurationRuleDestinationAccessControlTra * @return The override value for the owner on replicated objects. Currently only `Destination` is supported. * */ - private final String owner; - - @CustomType.Constructor - private BucketReplicationConfigurationRuleDestinationAccessControlTranslation(@CustomType.Parameter("owner") String owner) { - this.owner = owner; - } + private String owner; + private BucketReplicationConfigurationRuleDestinationAccessControlTranslation() {} /** * @return The override value for the owner on replicated objects. Currently only `Destination` is supported. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigurationRuleDestinationAccessControlTranslation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String owner; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigurationRuleDestinationAccessControlTranslation defaults) { Objects.requireNonNull(defaults); this.owner = defaults.owner; } + @CustomType.Setter public Builder owner(String owner) { this.owner = Objects.requireNonNull(owner); return this; - } public BucketReplicationConfigurationRuleDestinationAccessControlTranslation build() { - return new BucketReplicationConfigurationRuleDestinationAccessControlTranslation(owner); + } + public BucketReplicationConfigurationRuleDestinationAccessControlTranslation build() { + final var o = new BucketReplicationConfigurationRuleDestinationAccessControlTranslation(); + o.owner = owner; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestinationMetrics.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestinationMetrics.java index b7ede172e05..021bf738e51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestinationMetrics.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestinationMetrics.java @@ -16,21 +16,14 @@ public final class BucketReplicationConfigurationRuleDestinationMetrics { * @return Threshold within which objects are to be replicated. The only valid value is `15`. * */ - private final @Nullable Integer minutes; + private @Nullable Integer minutes; /** * @return The status of replication metrics. Either `Enabled` or `Disabled`. * */ - private final @Nullable String status; - - @CustomType.Constructor - private BucketReplicationConfigurationRuleDestinationMetrics( - @CustomType.Parameter("minutes") @Nullable Integer minutes, - @CustomType.Parameter("status") @Nullable String status) { - this.minutes = minutes; - this.status = status; - } + private @Nullable String status; + private BucketReplicationConfigurationRuleDestinationMetrics() {} /** * @return Threshold within which objects are to be replicated. The only valid value is `15`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigurationRuleDestinationMetrics defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer minutes; private @Nullable String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigurationRuleDestinationMetrics defaults) { Objects.requireNonNull(defaults); this.minutes = defaults.minutes; this.status = defaults.status; } + @CustomType.Setter public Builder minutes(@Nullable Integer minutes) { this.minutes = minutes; return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; - } public BucketReplicationConfigurationRuleDestinationMetrics build() { - return new BucketReplicationConfigurationRuleDestinationMetrics(minutes, status); + } + public BucketReplicationConfigurationRuleDestinationMetrics build() { + final var o = new BucketReplicationConfigurationRuleDestinationMetrics(); + o.minutes = minutes; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestinationReplicationTime.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestinationReplicationTime.java index 4602f3ed3bc..d835ce85a63 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestinationReplicationTime.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleDestinationReplicationTime.java @@ -16,21 +16,14 @@ public final class BucketReplicationConfigurationRuleDestinationReplicationTime * @return Threshold within which objects are to be replicated. The only valid value is `15`. * */ - private final @Nullable Integer minutes; + private @Nullable Integer minutes; /** * @return The status of RTC. Either `Enabled` or `Disabled`. * */ - private final @Nullable String status; - - @CustomType.Constructor - private BucketReplicationConfigurationRuleDestinationReplicationTime( - @CustomType.Parameter("minutes") @Nullable Integer minutes, - @CustomType.Parameter("status") @Nullable String status) { - this.minutes = minutes; - this.status = status; - } + private @Nullable String status; + private BucketReplicationConfigurationRuleDestinationReplicationTime() {} /** * @return Threshold within which objects are to be replicated. The only valid value is `15`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigurationRuleDestinationReplicationTime defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer minutes; private @Nullable String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigurationRuleDestinationReplicationTime defaults) { Objects.requireNonNull(defaults); this.minutes = defaults.minutes; this.status = defaults.status; } + @CustomType.Setter public Builder minutes(@Nullable Integer minutes) { this.minutes = minutes; return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; - } public BucketReplicationConfigurationRuleDestinationReplicationTime build() { - return new BucketReplicationConfigurationRuleDestinationReplicationTime(minutes, status); + } + public BucketReplicationConfigurationRuleDestinationReplicationTime build() { + final var o = new BucketReplicationConfigurationRuleDestinationReplicationTime(); + o.minutes = minutes; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleFilter.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleFilter.java index b5a781acf4a..4cf74b701ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleFilter.java @@ -16,22 +16,15 @@ public final class BucketReplicationConfigurationRuleFilter { * @return Object keyname prefix that identifies subset of objects to which the rule applies. Must be less than or equal to 1024 characters in length. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return A map of tags that identifies subset of objects to which the rule applies. * The rule applies only to objects having all the tags in its tagset. * */ - private final @Nullable Map tags; - - @CustomType.Constructor - private BucketReplicationConfigurationRuleFilter( - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.prefix = prefix; - this.tags = tags; - } + private @Nullable Map tags; + private BucketReplicationConfigurationRuleFilter() {} /** * @return Object keyname prefix that identifies subset of objects to which the rule applies. Must be less than or equal to 1024 characters in length. * @@ -55,30 +48,32 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigurationRuleFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String prefix; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigurationRuleFilter defaults) { Objects.requireNonNull(defaults); this.prefix = defaults.prefix; this.tags = defaults.tags; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public BucketReplicationConfigurationRuleFilter build() { - return new BucketReplicationConfigurationRuleFilter(prefix, tags); + } + public BucketReplicationConfigurationRuleFilter build() { + final var o = new BucketReplicationConfigurationRuleFilter(); + o.prefix = prefix; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleSourceSelectionCriteria.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleSourceSelectionCriteria.java index 7631ad2cf09..cd6791daa3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleSourceSelectionCriteria.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleSourceSelectionCriteria.java @@ -16,13 +16,9 @@ public final class BucketReplicationConfigurationRuleSourceSelectionCriteria { * in `destination` must be specified as well. * */ - private final @Nullable BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects sseKmsEncryptedObjects; - - @CustomType.Constructor - private BucketReplicationConfigurationRuleSourceSelectionCriteria(@CustomType.Parameter("sseKmsEncryptedObjects") @Nullable BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects sseKmsEncryptedObjects) { - this.sseKmsEncryptedObjects = sseKmsEncryptedObjects; - } + private @Nullable BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects sseKmsEncryptedObjects; + private BucketReplicationConfigurationRuleSourceSelectionCriteria() {} /** * @return Match SSE-KMS encrypted objects (documented below). If specified, `replica_kms_key_id` * in `destination` must be specified as well. @@ -39,24 +35,24 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigurationRuleSourceSelectionCriteria defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects sseKmsEncryptedObjects; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigurationRuleSourceSelectionCriteria defaults) { Objects.requireNonNull(defaults); this.sseKmsEncryptedObjects = defaults.sseKmsEncryptedObjects; } + @CustomType.Setter public Builder sseKmsEncryptedObjects(@Nullable BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects sseKmsEncryptedObjects) { this.sseKmsEncryptedObjects = sseKmsEncryptedObjects; return this; - } public BucketReplicationConfigurationRuleSourceSelectionCriteria build() { - return new BucketReplicationConfigurationRuleSourceSelectionCriteria(sseKmsEncryptedObjects); + } + public BucketReplicationConfigurationRuleSourceSelectionCriteria build() { + final var o = new BucketReplicationConfigurationRuleSourceSelectionCriteria(); + o.sseKmsEncryptedObjects = sseKmsEncryptedObjects; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects.java index d584b32d8e7..4bbf9215e2d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects.java @@ -13,13 +13,9 @@ public final class BucketReplicationConfigurationRuleSourceSelectionCriteriaSseK * @return Boolean which indicates if this criteria is enabled. * */ - private final Boolean enabled; - - @CustomType.Constructor - private BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects(@CustomType.Parameter("enabled") Boolean enabled) { - this.enabled = enabled; - } + private Boolean enabled; + private BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects() {} /** * @return Boolean which indicates if this criteria is enabled. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects build() { - return new BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects(enabled); + } + public BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects build() { + final var o = new BucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObjects(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfiguration.java index d612b5517af..d66770021a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfiguration.java @@ -13,13 +13,9 @@ public final class BucketServerSideEncryptionConfiguration { * @return A single object for server-side encryption by default configuration. (documented below) * */ - private final BucketServerSideEncryptionConfigurationRule rule; - - @CustomType.Constructor - private BucketServerSideEncryptionConfiguration(@CustomType.Parameter("rule") BucketServerSideEncryptionConfigurationRule rule) { - this.rule = rule; - } + private BucketServerSideEncryptionConfigurationRule rule; + private BucketServerSideEncryptionConfiguration() {} /** * @return A single object for server-side encryption by default configuration. (documented below) * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketServerSideEncryptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private BucketServerSideEncryptionConfigurationRule rule; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketServerSideEncryptionConfiguration defaults) { Objects.requireNonNull(defaults); this.rule = defaults.rule; } + @CustomType.Setter public Builder rule(BucketServerSideEncryptionConfigurationRule rule) { this.rule = Objects.requireNonNull(rule); return this; - } public BucketServerSideEncryptionConfiguration build() { - return new BucketServerSideEncryptionConfiguration(rule); + } + public BucketServerSideEncryptionConfiguration build() { + final var o = new BucketServerSideEncryptionConfiguration(); + o.rule = rule; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationRule.java index 641719ba9d0..68bd6367676 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationRule.java @@ -16,21 +16,14 @@ public final class BucketServerSideEncryptionConfigurationRule { * @return A single object for setting server-side encryption by default. (documented below) * */ - private final BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault applyServerSideEncryptionByDefault; + private BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault applyServerSideEncryptionByDefault; /** * @return Whether or not to use [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) for SSE-KMS. * */ - private final @Nullable Boolean bucketKeyEnabled; - - @CustomType.Constructor - private BucketServerSideEncryptionConfigurationRule( - @CustomType.Parameter("applyServerSideEncryptionByDefault") BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault applyServerSideEncryptionByDefault, - @CustomType.Parameter("bucketKeyEnabled") @Nullable Boolean bucketKeyEnabled) { - this.applyServerSideEncryptionByDefault = applyServerSideEncryptionByDefault; - this.bucketKeyEnabled = bucketKeyEnabled; - } + private @Nullable Boolean bucketKeyEnabled; + private BucketServerSideEncryptionConfigurationRule() {} /** * @return A single object for setting server-side encryption by default. (documented below) * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketServerSideEncryptionConfigurationRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault applyServerSideEncryptionByDefault; private @Nullable Boolean bucketKeyEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketServerSideEncryptionConfigurationRule defaults) { Objects.requireNonNull(defaults); this.applyServerSideEncryptionByDefault = defaults.applyServerSideEncryptionByDefault; this.bucketKeyEnabled = defaults.bucketKeyEnabled; } + @CustomType.Setter public Builder applyServerSideEncryptionByDefault(BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault applyServerSideEncryptionByDefault) { this.applyServerSideEncryptionByDefault = Objects.requireNonNull(applyServerSideEncryptionByDefault); return this; } + @CustomType.Setter public Builder bucketKeyEnabled(@Nullable Boolean bucketKeyEnabled) { this.bucketKeyEnabled = bucketKeyEnabled; return this; - } public BucketServerSideEncryptionConfigurationRule build() { - return new BucketServerSideEncryptionConfigurationRule(applyServerSideEncryptionByDefault, bucketKeyEnabled); + } + public BucketServerSideEncryptionConfigurationRule build() { + final var o = new BucketServerSideEncryptionConfigurationRule(); + o.applyServerSideEncryptionByDefault = applyServerSideEncryptionByDefault; + o.bucketKeyEnabled = bucketKeyEnabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault.java index be3825fcdd6..8542f9abd0f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault.java @@ -15,21 +15,14 @@ public final class BucketServerSideEncryptionConfigurationRuleApplyServerSideEnc * @return The AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of `sse_algorithm` as `aws:kms`. The default `aws/s3` AWS KMS master key is used if this element is absent while the `sse_algorithm` is `aws:kms`. * */ - private final @Nullable String kmsMasterKeyId; + private @Nullable String kmsMasterKeyId; /** * @return The server-side encryption algorithm to use. Valid values are `AES256` and `aws:kms` * */ - private final String sseAlgorithm; - - @CustomType.Constructor - private BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault( - @CustomType.Parameter("kmsMasterKeyId") @Nullable String kmsMasterKeyId, - @CustomType.Parameter("sseAlgorithm") String sseAlgorithm) { - this.kmsMasterKeyId = kmsMasterKeyId; - this.sseAlgorithm = sseAlgorithm; - } + private String sseAlgorithm; + private BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault() {} /** * @return The AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of `sse_algorithm` as `aws:kms`. The default `aws/s3` AWS KMS master key is used if this element is absent while the `sse_algorithm` is `aws:kms`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsMasterKeyId; private String sseAlgorithm; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault defaults) { Objects.requireNonNull(defaults); this.kmsMasterKeyId = defaults.kmsMasterKeyId; this.sseAlgorithm = defaults.sseAlgorithm; } + @CustomType.Setter public Builder kmsMasterKeyId(@Nullable String kmsMasterKeyId) { this.kmsMasterKeyId = kmsMasterKeyId; return this; } + @CustomType.Setter public Builder sseAlgorithm(String sseAlgorithm) { this.sseAlgorithm = Objects.requireNonNull(sseAlgorithm); return this; - } public BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault build() { - return new BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault(kmsMasterKeyId, sseAlgorithm); + } + public BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault build() { + final var o = new BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault(); + o.kmsMasterKeyId = kmsMasterKeyId; + o.sseAlgorithm = sseAlgorithm; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationV2Rule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationV2Rule.java index c395dd4d437..286d076bb36 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationV2Rule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationV2Rule.java @@ -16,21 +16,14 @@ public final class BucketServerSideEncryptionConfigurationV2Rule { * @return A single object for setting server-side encryption by default documented below * */ - private final @Nullable BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault applyServerSideEncryptionByDefault; + private @Nullable BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault applyServerSideEncryptionByDefault; /** * @return Whether or not to use [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) for SSE-KMS. * */ - private final @Nullable Boolean bucketKeyEnabled; - - @CustomType.Constructor - private BucketServerSideEncryptionConfigurationV2Rule( - @CustomType.Parameter("applyServerSideEncryptionByDefault") @Nullable BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault applyServerSideEncryptionByDefault, - @CustomType.Parameter("bucketKeyEnabled") @Nullable Boolean bucketKeyEnabled) { - this.applyServerSideEncryptionByDefault = applyServerSideEncryptionByDefault; - this.bucketKeyEnabled = bucketKeyEnabled; - } + private @Nullable Boolean bucketKeyEnabled; + private BucketServerSideEncryptionConfigurationV2Rule() {} /** * @return A single object for setting server-side encryption by default documented below * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketServerSideEncryptionConfigurationV2Rule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault applyServerSideEncryptionByDefault; private @Nullable Boolean bucketKeyEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketServerSideEncryptionConfigurationV2Rule defaults) { Objects.requireNonNull(defaults); this.applyServerSideEncryptionByDefault = defaults.applyServerSideEncryptionByDefault; this.bucketKeyEnabled = defaults.bucketKeyEnabled; } + @CustomType.Setter public Builder applyServerSideEncryptionByDefault(@Nullable BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault applyServerSideEncryptionByDefault) { this.applyServerSideEncryptionByDefault = applyServerSideEncryptionByDefault; return this; } + @CustomType.Setter public Builder bucketKeyEnabled(@Nullable Boolean bucketKeyEnabled) { this.bucketKeyEnabled = bucketKeyEnabled; return this; - } public BucketServerSideEncryptionConfigurationV2Rule build() { - return new BucketServerSideEncryptionConfigurationV2Rule(applyServerSideEncryptionByDefault, bucketKeyEnabled); + } + public BucketServerSideEncryptionConfigurationV2Rule build() { + final var o = new BucketServerSideEncryptionConfigurationV2Rule(); + o.applyServerSideEncryptionByDefault = applyServerSideEncryptionByDefault; + o.bucketKeyEnabled = bucketKeyEnabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault.java index a54a3cde9bb..9ca368c279f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault.java @@ -15,21 +15,14 @@ public final class BucketServerSideEncryptionConfigurationV2RuleApplyServerSideE * @return The AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of `sse_algorithm` as `aws:kms`. The default `aws/s3` AWS KMS master key is used if this element is absent while the `sse_algorithm` is `aws:kms`. * */ - private final @Nullable String kmsMasterKeyId; + private @Nullable String kmsMasterKeyId; /** * @return The server-side encryption algorithm to use. Valid values are `AES256` and `aws:kms` * */ - private final String sseAlgorithm; - - @CustomType.Constructor - private BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault( - @CustomType.Parameter("kmsMasterKeyId") @Nullable String kmsMasterKeyId, - @CustomType.Parameter("sseAlgorithm") String sseAlgorithm) { - this.kmsMasterKeyId = kmsMasterKeyId; - this.sseAlgorithm = sseAlgorithm; - } + private String sseAlgorithm; + private BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault() {} /** * @return The AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of `sse_algorithm` as `aws:kms`. The default `aws/s3` AWS KMS master key is used if this element is absent while the `sse_algorithm` is `aws:kms`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsMasterKeyId; private String sseAlgorithm; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault defaults) { Objects.requireNonNull(defaults); this.kmsMasterKeyId = defaults.kmsMasterKeyId; this.sseAlgorithm = defaults.sseAlgorithm; } + @CustomType.Setter public Builder kmsMasterKeyId(@Nullable String kmsMasterKeyId) { this.kmsMasterKeyId = kmsMasterKeyId; return this; } + @CustomType.Setter public Builder sseAlgorithm(String sseAlgorithm) { this.sseAlgorithm = Objects.requireNonNull(sseAlgorithm); return this; - } public BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault build() { - return new BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault(kmsMasterKeyId, sseAlgorithm); + } + public BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault build() { + final var o = new BucketServerSideEncryptionConfigurationV2RuleApplyServerSideEncryptionByDefault(); + o.kmsMasterKeyId = kmsMasterKeyId; + o.sseAlgorithm = sseAlgorithm; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2CorsRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2CorsRule.java index 0f8f48ed2b7..4dc27477c78 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2CorsRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2CorsRule.java @@ -17,42 +17,29 @@ public final class BucketV2CorsRule { * @return List of headers allowed. * */ - private final @Nullable List allowedHeaders; + private @Nullable List allowedHeaders; /** * @return One or more HTTP methods that you allow the origin to execute. Can be `GET`, `PUT`, `POST`, `DELETE` or `HEAD`. * */ - private final List allowedMethods; + private List allowedMethods; /** * @return One or more origins you want customers to be able to access the bucket from. * */ - private final List allowedOrigins; + private List allowedOrigins; /** * @return One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript `XMLHttpRequest` object). * */ - private final @Nullable List exposeHeaders; + private @Nullable List exposeHeaders; /** * @return Specifies time in seconds that browser can cache the response for a preflight request. * */ - private final @Nullable Integer maxAgeSeconds; - - @CustomType.Constructor - private BucketV2CorsRule( - @CustomType.Parameter("allowedHeaders") @Nullable List allowedHeaders, - @CustomType.Parameter("allowedMethods") List allowedMethods, - @CustomType.Parameter("allowedOrigins") List allowedOrigins, - @CustomType.Parameter("exposeHeaders") @Nullable List exposeHeaders, - @CustomType.Parameter("maxAgeSeconds") @Nullable Integer maxAgeSeconds) { - this.allowedHeaders = allowedHeaders; - this.allowedMethods = allowedMethods; - this.allowedOrigins = allowedOrigins; - this.exposeHeaders = exposeHeaders; - this.maxAgeSeconds = maxAgeSeconds; - } + private @Nullable Integer maxAgeSeconds; + private BucketV2CorsRule() {} /** * @return List of headers allowed. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(BucketV2CorsRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List allowedHeaders; private List allowedMethods; private List allowedOrigins; private @Nullable List exposeHeaders; private @Nullable Integer maxAgeSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2CorsRule defaults) { Objects.requireNonNull(defaults); this.allowedHeaders = defaults.allowedHeaders; @@ -117,6 +100,7 @@ public Builder(BucketV2CorsRule defaults) { this.maxAgeSeconds = defaults.maxAgeSeconds; } + @CustomType.Setter public Builder allowedHeaders(@Nullable List allowedHeaders) { this.allowedHeaders = allowedHeaders; return this; @@ -124,6 +108,7 @@ public Builder allowedHeaders(@Nullable List allowedHeaders) { public Builder allowedHeaders(String... allowedHeaders) { return allowedHeaders(List.of(allowedHeaders)); } + @CustomType.Setter public Builder allowedMethods(List allowedMethods) { this.allowedMethods = Objects.requireNonNull(allowedMethods); return this; @@ -131,6 +116,7 @@ public Builder allowedMethods(List allowedMethods) { public Builder allowedMethods(String... allowedMethods) { return allowedMethods(List.of(allowedMethods)); } + @CustomType.Setter public Builder allowedOrigins(List allowedOrigins) { this.allowedOrigins = Objects.requireNonNull(allowedOrigins); return this; @@ -138,6 +124,7 @@ public Builder allowedOrigins(List allowedOrigins) { public Builder allowedOrigins(String... allowedOrigins) { return allowedOrigins(List.of(allowedOrigins)); } + @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { this.exposeHeaders = exposeHeaders; return this; @@ -145,11 +132,19 @@ public Builder exposeHeaders(@Nullable List exposeHeaders) { public Builder exposeHeaders(String... exposeHeaders) { return exposeHeaders(List.of(exposeHeaders)); } + @CustomType.Setter public Builder maxAgeSeconds(@Nullable Integer maxAgeSeconds) { this.maxAgeSeconds = maxAgeSeconds; return this; - } public BucketV2CorsRule build() { - return new BucketV2CorsRule(allowedHeaders, allowedMethods, allowedOrigins, exposeHeaders, maxAgeSeconds); + } + public BucketV2CorsRule build() { + final var o = new BucketV2CorsRule(); + o.allowedHeaders = allowedHeaders; + o.allowedMethods = allowedMethods; + o.allowedOrigins = allowedOrigins; + o.exposeHeaders = exposeHeaders; + o.maxAgeSeconds = maxAgeSeconds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2Grant.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2Grant.java index 0ffe350d6c5..7a153c81a5a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2Grant.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2Grant.java @@ -16,35 +16,24 @@ public final class BucketV2Grant { * @return Canonical user id to grant for. Used only when `type` is `CanonicalUser`. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return List of permissions to apply for grantee. Valid values are `READ`, `WRITE`, `READ_ACP`, `WRITE_ACP`, `FULL_CONTROL`. * */ - private final List permissions; + private List permissions; /** * @return Type of grantee to apply for. Valid values are `CanonicalUser` and `Group`. `AmazonCustomerByEmail` is not supported. * */ - private final String type; + private String type; /** * @return Uri address to grant for. Used only when `type` is `Group`. * */ - private final @Nullable String uri; - - @CustomType.Constructor - private BucketV2Grant( - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("permissions") List permissions, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("uri") @Nullable String uri) { - this.id = id; - this.permissions = permissions; - this.type = type; - this.uri = uri; - } + private @Nullable String uri; + private BucketV2Grant() {} /** * @return Canonical user id to grant for. Used only when `type` is `CanonicalUser`. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(BucketV2Grant defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String id; private List permissions; private String type; private @Nullable String uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2Grant defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -100,10 +85,12 @@ public Builder(BucketV2Grant defaults) { this.uri = defaults.uri; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder permissions(List permissions) { this.permissions = Objects.requireNonNull(permissions); return this; @@ -111,15 +98,23 @@ public Builder permissions(List permissions) { public Builder permissions(String... permissions) { return permissions(List.of(permissions)); } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder uri(@Nullable String uri) { this.uri = uri; return this; - } public BucketV2Grant build() { - return new BucketV2Grant(id, permissions, type, uri); + } + public BucketV2Grant build() { + final var o = new BucketV2Grant(); + o.id = id; + o.permissions = permissions; + o.type = type; + o.uri = uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRule.java index 1f9233024de..d34868133b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRule.java @@ -23,70 +23,49 @@ public final class BucketV2LifecycleRule { * @return Specifies the number of days after initiating a multipart upload when the multipart upload must be completed. * */ - private final @Nullable Integer abortIncompleteMultipartUploadDays; + private @Nullable Integer abortIncompleteMultipartUploadDays; /** * @return Specifies lifecycle rule status. * */ - private final Boolean enabled; + private Boolean enabled; /** * @return Specifies a period in the object's expire. See Expiration below for details. * */ - private final @Nullable List expirations; + private @Nullable List expirations; /** * @return Unique identifier for the rule. Must be less than or equal to 255 characters in length. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Specifies when noncurrent object versions expire. See Noncurrent Version Expiration below for details. * */ - private final @Nullable List noncurrentVersionExpirations; + private @Nullable List noncurrentVersionExpirations; /** * @return Specifies when noncurrent object versions transitions. See Noncurrent Version Transition below for details. * */ - private final @Nullable List noncurrentVersionTransitions; + private @Nullable List noncurrentVersionTransitions; /** * @return Object key prefix identifying one or more objects to which the rule applies. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return Specifies object tags key and value. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return Specifies a period in the object's transitions. See Transition below for details. * */ - private final @Nullable List transitions; - - @CustomType.Constructor - private BucketV2LifecycleRule( - @CustomType.Parameter("abortIncompleteMultipartUploadDays") @Nullable Integer abortIncompleteMultipartUploadDays, - @CustomType.Parameter("enabled") Boolean enabled, - @CustomType.Parameter("expirations") @Nullable List expirations, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("noncurrentVersionExpirations") @Nullable List noncurrentVersionExpirations, - @CustomType.Parameter("noncurrentVersionTransitions") @Nullable List noncurrentVersionTransitions, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("transitions") @Nullable List transitions) { - this.abortIncompleteMultipartUploadDays = abortIncompleteMultipartUploadDays; - this.enabled = enabled; - this.expirations = expirations; - this.id = id; - this.noncurrentVersionExpirations = noncurrentVersionExpirations; - this.noncurrentVersionTransitions = noncurrentVersionTransitions; - this.prefix = prefix; - this.tags = tags; - this.transitions = transitions; - } + private @Nullable List transitions; + private BucketV2LifecycleRule() {} /** * @return Specifies the number of days after initiating a multipart upload when the multipart upload must be completed. * @@ -158,7 +137,7 @@ public static Builder builder() { public static Builder builder(BucketV2LifecycleRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer abortIncompleteMultipartUploadDays; private Boolean enabled; @@ -169,11 +148,7 @@ public static final class Builder { private @Nullable String prefix; private @Nullable Map tags; private @Nullable List transitions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2LifecycleRule defaults) { Objects.requireNonNull(defaults); this.abortIncompleteMultipartUploadDays = defaults.abortIncompleteMultipartUploadDays; @@ -187,14 +162,17 @@ public Builder(BucketV2LifecycleRule defaults) { this.transitions = defaults.transitions; } + @CustomType.Setter public Builder abortIncompleteMultipartUploadDays(@Nullable Integer abortIncompleteMultipartUploadDays) { this.abortIncompleteMultipartUploadDays = abortIncompleteMultipartUploadDays; return this; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; } + @CustomType.Setter public Builder expirations(@Nullable List expirations) { this.expirations = expirations; return this; @@ -202,10 +180,12 @@ public Builder expirations(@Nullable List expir public Builder expirations(BucketV2LifecycleRuleExpiration... expirations) { return expirations(List.of(expirations)); } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder noncurrentVersionExpirations(@Nullable List noncurrentVersionExpirations) { this.noncurrentVersionExpirations = noncurrentVersionExpirations; return this; @@ -213,6 +193,7 @@ public Builder noncurrentVersionExpirations(@Nullable List noncurrentVersionTransitions) { this.noncurrentVersionTransitions = noncurrentVersionTransitions; return this; @@ -220,22 +201,36 @@ public Builder noncurrentVersionTransitions(@Nullable List tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder transitions(@Nullable List transitions) { this.transitions = transitions; return this; } public Builder transitions(BucketV2LifecycleRuleTransition... transitions) { return transitions(List.of(transitions)); - } public BucketV2LifecycleRule build() { - return new BucketV2LifecycleRule(abortIncompleteMultipartUploadDays, enabled, expirations, id, noncurrentVersionExpirations, noncurrentVersionTransitions, prefix, tags, transitions); + } + public BucketV2LifecycleRule build() { + final var o = new BucketV2LifecycleRule(); + o.abortIncompleteMultipartUploadDays = abortIncompleteMultipartUploadDays; + o.enabled = enabled; + o.expirations = expirations; + o.id = id; + o.noncurrentVersionExpirations = noncurrentVersionExpirations; + o.noncurrentVersionTransitions = noncurrentVersionTransitions; + o.prefix = prefix; + o.tags = tags; + o.transitions = transitions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleExpiration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleExpiration.java index be967f85a4b..36a1f7f27dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleExpiration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleExpiration.java @@ -17,28 +17,19 @@ public final class BucketV2LifecycleRuleExpiration { * @return Specifies the date after which you want the corresponding action to take effect. * */ - private final @Nullable String date; + private @Nullable String date; /** * @return Specifies the number of days after object creation when the specific rule action takes effect. * */ - private final @Nullable Integer days; + private @Nullable Integer days; /** * @return On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct Amazon S3 to delete expired object delete markers. This cannot be specified with Days or Date in a Lifecycle Expiration Policy. * */ - private final @Nullable Boolean expiredObjectDeleteMarker; - - @CustomType.Constructor - private BucketV2LifecycleRuleExpiration( - @CustomType.Parameter("date") @Nullable String date, - @CustomType.Parameter("days") @Nullable Integer days, - @CustomType.Parameter("expiredObjectDeleteMarker") @Nullable Boolean expiredObjectDeleteMarker) { - this.date = date; - this.days = days; - this.expiredObjectDeleteMarker = expiredObjectDeleteMarker; - } + private @Nullable Boolean expiredObjectDeleteMarker; + private BucketV2LifecycleRuleExpiration() {} /** * @return Specifies the date after which you want the corresponding action to take effect. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(BucketV2LifecycleRuleExpiration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String date; private @Nullable Integer days; private @Nullable Boolean expiredObjectDeleteMarker; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2LifecycleRuleExpiration defaults) { Objects.requireNonNull(defaults); this.date = defaults.date; @@ -85,19 +72,27 @@ public Builder(BucketV2LifecycleRuleExpiration defaults) { this.expiredObjectDeleteMarker = defaults.expiredObjectDeleteMarker; } + @CustomType.Setter public Builder date(@Nullable String date) { this.date = date; return this; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; } + @CustomType.Setter public Builder expiredObjectDeleteMarker(@Nullable Boolean expiredObjectDeleteMarker) { this.expiredObjectDeleteMarker = expiredObjectDeleteMarker; return this; - } public BucketV2LifecycleRuleExpiration build() { - return new BucketV2LifecycleRuleExpiration(date, days, expiredObjectDeleteMarker); + } + public BucketV2LifecycleRuleExpiration build() { + final var o = new BucketV2LifecycleRuleExpiration(); + o.date = date; + o.days = days; + o.expiredObjectDeleteMarker = expiredObjectDeleteMarker; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleNoncurrentVersionExpiration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleNoncurrentVersionExpiration.java index f040393a670..85c4eecb6de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleNoncurrentVersionExpiration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleNoncurrentVersionExpiration.java @@ -15,13 +15,9 @@ public final class BucketV2LifecycleRuleNoncurrentVersionExpiration { * @return Specifies the number of days noncurrent object versions expire. * */ - private final @Nullable Integer days; - - @CustomType.Constructor - private BucketV2LifecycleRuleNoncurrentVersionExpiration(@CustomType.Parameter("days") @Nullable Integer days) { - this.days = days; - } + private @Nullable Integer days; + private BucketV2LifecycleRuleNoncurrentVersionExpiration() {} /** * @return Specifies the number of days noncurrent object versions expire. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(BucketV2LifecycleRuleNoncurrentVersionExpiration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer days; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2LifecycleRuleNoncurrentVersionExpiration defaults) { Objects.requireNonNull(defaults); this.days = defaults.days; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; - } public BucketV2LifecycleRuleNoncurrentVersionExpiration build() { - return new BucketV2LifecycleRuleNoncurrentVersionExpiration(days); + } + public BucketV2LifecycleRuleNoncurrentVersionExpiration build() { + final var o = new BucketV2LifecycleRuleNoncurrentVersionExpiration(); + o.days = days; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleNoncurrentVersionTransition.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleNoncurrentVersionTransition.java index 453a388d9a0..915b3a324ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleNoncurrentVersionTransition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleNoncurrentVersionTransition.java @@ -16,21 +16,14 @@ public final class BucketV2LifecycleRuleNoncurrentVersionTransition { * @return Specifies the number of days noncurrent object versions transition. * */ - private final @Nullable Integer days; + private @Nullable Integer days; /** * @return Specifies the Amazon S3 [storage class](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Transition.html#AmazonS3-Type-Transition-StorageClass) to which you want the object to transition. * */ - private final String storageClass; - - @CustomType.Constructor - private BucketV2LifecycleRuleNoncurrentVersionTransition( - @CustomType.Parameter("days") @Nullable Integer days, - @CustomType.Parameter("storageClass") String storageClass) { - this.days = days; - this.storageClass = storageClass; - } + private String storageClass; + private BucketV2LifecycleRuleNoncurrentVersionTransition() {} /** * @return Specifies the number of days noncurrent object versions transition. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketV2LifecycleRuleNoncurrentVersionTransition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer days; private String storageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2LifecycleRuleNoncurrentVersionTransition defaults) { Objects.requireNonNull(defaults); this.days = defaults.days; this.storageClass = defaults.storageClass; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; } + @CustomType.Setter public Builder storageClass(String storageClass) { this.storageClass = Objects.requireNonNull(storageClass); return this; - } public BucketV2LifecycleRuleNoncurrentVersionTransition build() { - return new BucketV2LifecycleRuleNoncurrentVersionTransition(days, storageClass); + } + public BucketV2LifecycleRuleNoncurrentVersionTransition build() { + final var o = new BucketV2LifecycleRuleNoncurrentVersionTransition(); + o.days = days; + o.storageClass = storageClass; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleTransition.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleTransition.java index 3ef42572460..9bb954ca6d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleTransition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2LifecycleRuleTransition.java @@ -16,28 +16,19 @@ public final class BucketV2LifecycleRuleTransition { * @return Specifies the date after which you want the corresponding action to take effect. * */ - private final @Nullable String date; + private @Nullable String date; /** * @return Specifies the number of days after object creation when the specific rule action takes effect. * */ - private final @Nullable Integer days; + private @Nullable Integer days; /** * @return Specifies the Amazon S3 [storage class](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Transition.html#AmazonS3-Type-Transition-StorageClass) to which you want the object to transition. * */ - private final String storageClass; - - @CustomType.Constructor - private BucketV2LifecycleRuleTransition( - @CustomType.Parameter("date") @Nullable String date, - @CustomType.Parameter("days") @Nullable Integer days, - @CustomType.Parameter("storageClass") String storageClass) { - this.date = date; - this.days = days; - this.storageClass = storageClass; - } + private String storageClass; + private BucketV2LifecycleRuleTransition() {} /** * @return Specifies the date after which you want the corresponding action to take effect. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(BucketV2LifecycleRuleTransition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String date; private @Nullable Integer days; private String storageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2LifecycleRuleTransition defaults) { Objects.requireNonNull(defaults); this.date = defaults.date; @@ -84,19 +71,27 @@ public Builder(BucketV2LifecycleRuleTransition defaults) { this.storageClass = defaults.storageClass; } + @CustomType.Setter public Builder date(@Nullable String date) { this.date = date; return this; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; } + @CustomType.Setter public Builder storageClass(String storageClass) { this.storageClass = Objects.requireNonNull(storageClass); return this; - } public BucketV2LifecycleRuleTransition build() { - return new BucketV2LifecycleRuleTransition(date, days, storageClass); + } + public BucketV2LifecycleRuleTransition build() { + final var o = new BucketV2LifecycleRuleTransition(); + o.date = date; + o.days = days; + o.storageClass = storageClass; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2Logging.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2Logging.java index 3b12c320908..0c510213c2d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2Logging.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2Logging.java @@ -15,21 +15,14 @@ public final class BucketV2Logging { * @return The name of the bucket that will receive the log objects. * */ - private final String targetBucket; + private String targetBucket; /** * @return To specify a key prefix for log objects. * */ - private final @Nullable String targetPrefix; - - @CustomType.Constructor - private BucketV2Logging( - @CustomType.Parameter("targetBucket") String targetBucket, - @CustomType.Parameter("targetPrefix") @Nullable String targetPrefix) { - this.targetBucket = targetBucket; - this.targetPrefix = targetPrefix; - } + private @Nullable String targetPrefix; + private BucketV2Logging() {} /** * @return The name of the bucket that will receive the log objects. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(BucketV2Logging defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String targetBucket; private @Nullable String targetPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2Logging defaults) { Objects.requireNonNull(defaults); this.targetBucket = defaults.targetBucket; this.targetPrefix = defaults.targetPrefix; } + @CustomType.Setter public Builder targetBucket(String targetBucket) { this.targetBucket = Objects.requireNonNull(targetBucket); return this; } + @CustomType.Setter public Builder targetPrefix(@Nullable String targetPrefix) { this.targetPrefix = targetPrefix; return this; - } public BucketV2Logging build() { - return new BucketV2Logging(targetBucket, targetPrefix); + } + public BucketV2Logging build() { + final var o = new BucketV2Logging(); + o.targetBucket = targetBucket; + o.targetPrefix = targetPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ObjectLockConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ObjectLockConfiguration.java index 2c7d44f4f80..03d884c0395 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ObjectLockConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ObjectLockConfiguration.java @@ -21,7 +21,7 @@ public final class BucketV2ObjectLockConfiguration { * */ @Deprecated /* Use the top-level parameter object_lock_enabled instead */ - private final @Nullable String objectLockEnabled; + private @Nullable String objectLockEnabled; /** * @return The Object Lock rule in place for this bucket (documented below). * @@ -30,16 +30,9 @@ public final class BucketV2ObjectLockConfiguration { * */ @Deprecated /* Use the aws_s3_bucket_object_lock_configuration resource instead */ - private final @Nullable List rules; - - @CustomType.Constructor - private BucketV2ObjectLockConfiguration( - @CustomType.Parameter("objectLockEnabled") @Nullable String objectLockEnabled, - @CustomType.Parameter("rules") @Nullable List rules) { - this.objectLockEnabled = objectLockEnabled; - this.rules = rules; - } + private @Nullable List rules; + private BucketV2ObjectLockConfiguration() {} /** * @return Indicates whether this bucket has an Object Lock configuration enabled. Valid value is `Enabled`. Use the top-level argument `object_lock_enabled` instead. * @@ -70,33 +63,35 @@ public static Builder builder() { public static Builder builder(BucketV2ObjectLockConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String objectLockEnabled; private @Nullable List rules; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2ObjectLockConfiguration defaults) { Objects.requireNonNull(defaults); this.objectLockEnabled = defaults.objectLockEnabled; this.rules = defaults.rules; } + @CustomType.Setter public Builder objectLockEnabled(@Nullable String objectLockEnabled) { this.objectLockEnabled = objectLockEnabled; return this; } + @CustomType.Setter public Builder rules(@Nullable List rules) { this.rules = rules; return this; } public Builder rules(BucketV2ObjectLockConfigurationRule... rules) { return rules(List.of(rules)); - } public BucketV2ObjectLockConfiguration build() { - return new BucketV2ObjectLockConfiguration(objectLockEnabled, rules); + } + public BucketV2ObjectLockConfiguration build() { + final var o = new BucketV2ObjectLockConfiguration(); + o.objectLockEnabled = objectLockEnabled; + o.rules = rules; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ObjectLockConfigurationRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ObjectLockConfigurationRule.java index 6d9fec873c4..af40a4f4ac0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ObjectLockConfigurationRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ObjectLockConfigurationRule.java @@ -14,13 +14,9 @@ public final class BucketV2ObjectLockConfigurationRule { * @return The default retention period that you want to apply to new objects placed in this bucket (documented below). * */ - private final List defaultRetentions; - - @CustomType.Constructor - private BucketV2ObjectLockConfigurationRule(@CustomType.Parameter("defaultRetentions") List defaultRetentions) { - this.defaultRetentions = defaultRetentions; - } + private List defaultRetentions; + private BucketV2ObjectLockConfigurationRule() {} /** * @return The default retention period that you want to apply to new objects placed in this bucket (documented below). * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(BucketV2ObjectLockConfigurationRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List defaultRetentions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2ObjectLockConfigurationRule defaults) { Objects.requireNonNull(defaults); this.defaultRetentions = defaults.defaultRetentions; } + @CustomType.Setter public Builder defaultRetentions(List defaultRetentions) { this.defaultRetentions = Objects.requireNonNull(defaultRetentions); return this; } public Builder defaultRetentions(BucketV2ObjectLockConfigurationRuleDefaultRetention... defaultRetentions) { return defaultRetentions(List.of(defaultRetentions)); - } public BucketV2ObjectLockConfigurationRule build() { - return new BucketV2ObjectLockConfigurationRule(defaultRetentions); + } + public BucketV2ObjectLockConfigurationRule build() { + final var o = new BucketV2ObjectLockConfigurationRule(); + o.defaultRetentions = defaultRetentions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ObjectLockConfigurationRuleDefaultRetention.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ObjectLockConfigurationRuleDefaultRetention.java index 9e62906cdcb..26a0b1c0bcb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ObjectLockConfigurationRuleDefaultRetention.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ObjectLockConfigurationRuleDefaultRetention.java @@ -16,28 +16,19 @@ public final class BucketV2ObjectLockConfigurationRuleDefaultRetention { * @return The number of days that you want to specify for the default retention period. * */ - private final @Nullable Integer days; + private @Nullable Integer days; /** * @return The default Object Lock retention mode you want to apply to new objects placed in this bucket. Valid values are `GOVERNANCE` and `COMPLIANCE`. * */ - private final String mode; + private String mode; /** * @return The number of years that you want to specify for the default retention period. * */ - private final @Nullable Integer years; - - @CustomType.Constructor - private BucketV2ObjectLockConfigurationRuleDefaultRetention( - @CustomType.Parameter("days") @Nullable Integer days, - @CustomType.Parameter("mode") String mode, - @CustomType.Parameter("years") @Nullable Integer years) { - this.days = days; - this.mode = mode; - this.years = years; - } + private @Nullable Integer years; + private BucketV2ObjectLockConfigurationRuleDefaultRetention() {} /** * @return The number of days that you want to specify for the default retention period. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(BucketV2ObjectLockConfigurationRuleDefaultRetention defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer days; private String mode; private @Nullable Integer years; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2ObjectLockConfigurationRuleDefaultRetention defaults) { Objects.requireNonNull(defaults); this.days = defaults.days; @@ -84,19 +71,27 @@ public Builder(BucketV2ObjectLockConfigurationRuleDefaultRetention defaults) { this.years = defaults.years; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; } + @CustomType.Setter public Builder mode(String mode) { this.mode = Objects.requireNonNull(mode); return this; } + @CustomType.Setter public Builder years(@Nullable Integer years) { this.years = years; return this; - } public BucketV2ObjectLockConfigurationRuleDefaultRetention build() { - return new BucketV2ObjectLockConfigurationRuleDefaultRetention(days, mode, years); + } + public BucketV2ObjectLockConfigurationRuleDefaultRetention build() { + final var o = new BucketV2ObjectLockConfigurationRuleDefaultRetention(); + o.days = days; + o.mode = mode; + o.years = years; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfiguration.java index 676a40e3bd2..150df1427aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfiguration.java @@ -15,21 +15,14 @@ public final class BucketV2ReplicationConfiguration { * @return The ARN of the IAM role for Amazon S3 to assume when replicating the objects. * */ - private final String role; + private String role; /** * @return Specifies the rules managing the replication (documented below). * */ - private final List rules; - - @CustomType.Constructor - private BucketV2ReplicationConfiguration( - @CustomType.Parameter("role") String role, - @CustomType.Parameter("rules") List rules) { - this.role = role; - this.rules = rules; - } + private List rules; + private BucketV2ReplicationConfiguration() {} /** * @return The ARN of the IAM role for Amazon S3 to assume when replicating the objects. * @@ -52,33 +45,35 @@ public static Builder builder() { public static Builder builder(BucketV2ReplicationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String role; private List rules; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2ReplicationConfiguration defaults) { Objects.requireNonNull(defaults); this.role = defaults.role; this.rules = defaults.rules; } + @CustomType.Setter public Builder role(String role) { this.role = Objects.requireNonNull(role); return this; } + @CustomType.Setter public Builder rules(List rules) { this.rules = Objects.requireNonNull(rules); return this; } public Builder rules(BucketV2ReplicationConfigurationRule... rules) { return rules(List.of(rules)); - } public BucketV2ReplicationConfiguration build() { - return new BucketV2ReplicationConfiguration(role, rules); + } + public BucketV2ReplicationConfiguration build() { + final var o = new BucketV2ReplicationConfiguration(); + o.role = role; + o.rules = rules; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfigurationRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfigurationRule.java index 1b913db122b..56af07452d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfigurationRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfigurationRule.java @@ -20,63 +20,44 @@ public final class BucketV2ReplicationConfigurationRule { * @return Whether delete markers are replicated. The only valid value is `Enabled`. To disable, omit this argument. This argument is only valid with V2 replication configurations (i.e., when `filter` is used). * */ - private final @Nullable String deleteMarkerReplicationStatus; + private @Nullable String deleteMarkerReplicationStatus; /** * @return Specifies the destination for the rule (documented below). * */ - private final List destinations; + private List destinations; /** * @return Filter that identifies subset of objects to which the replication rule applies (documented below). * */ - private final @Nullable List filters; + private @Nullable List filters; /** * @return Unique identifier for the rule. Must be less than or equal to 255 characters in length. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return Object keyname prefix identifying one or more objects to which the rule applies. Must be less than or equal to 1024 characters in length. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return The priority associated with the rule. Priority should only be set if `filter` is configured. If not provided, defaults to `0`. Priority must be unique between multiple rules. * */ - private final @Nullable Integer priority; + private @Nullable Integer priority; /** * @return Specifies special object selection criteria (documented below). * */ - private final @Nullable List sourceSelectionCriterias; + private @Nullable List sourceSelectionCriterias; /** * @return The status of the rule. Either `Enabled` or `Disabled`. The rule is ignored if status is not Enabled. * */ - private final String status; - - @CustomType.Constructor - private BucketV2ReplicationConfigurationRule( - @CustomType.Parameter("deleteMarkerReplicationStatus") @Nullable String deleteMarkerReplicationStatus, - @CustomType.Parameter("destinations") List destinations, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("priority") @Nullable Integer priority, - @CustomType.Parameter("sourceSelectionCriterias") @Nullable List sourceSelectionCriterias, - @CustomType.Parameter("status") String status) { - this.deleteMarkerReplicationStatus = deleteMarkerReplicationStatus; - this.destinations = destinations; - this.filters = filters; - this.id = id; - this.prefix = prefix; - this.priority = priority; - this.sourceSelectionCriterias = sourceSelectionCriterias; - this.status = status; - } + private String status; + private BucketV2ReplicationConfigurationRule() {} /** * @return Whether delete markers are replicated. The only valid value is `Enabled`. To disable, omit this argument. This argument is only valid with V2 replication configurations (i.e., when `filter` is used). * @@ -141,7 +122,7 @@ public static Builder builder() { public static Builder builder(BucketV2ReplicationConfigurationRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deleteMarkerReplicationStatus; private List destinations; @@ -151,11 +132,7 @@ public static final class Builder { private @Nullable Integer priority; private @Nullable List sourceSelectionCriterias; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2ReplicationConfigurationRule defaults) { Objects.requireNonNull(defaults); this.deleteMarkerReplicationStatus = defaults.deleteMarkerReplicationStatus; @@ -168,10 +145,12 @@ public Builder(BucketV2ReplicationConfigurationRule defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder deleteMarkerReplicationStatus(@Nullable String deleteMarkerReplicationStatus) { this.deleteMarkerReplicationStatus = deleteMarkerReplicationStatus; return this; } + @CustomType.Setter public Builder destinations(List destinations) { this.destinations = Objects.requireNonNull(destinations); return this; @@ -179,6 +158,7 @@ public Builder destinations(List filters) { this.filters = filters; return this; @@ -186,18 +166,22 @@ public Builder filters(@Nullable List sourceSelectionCriterias) { this.sourceSelectionCriterias = sourceSelectionCriterias; return this; @@ -205,11 +189,22 @@ public Builder sourceSelectionCriterias(@Nullable List accessControlTranslations; + private @Nullable List accessControlTranslations; /** * @return The Account ID to use for overriding the object owner on replication. Must be used in conjunction with `access_control_translation` override configuration. * */ - private final @Nullable String accountId; + private @Nullable String accountId; /** * @return The ARN of the S3 bucket where you want Amazon S3 to store replicas of the object identified by the rule. * */ - private final String bucket; + private String bucket; /** * @return Enables replication metrics (required for S3 RTC) (documented below). * */ - private final @Nullable List metrics; + private @Nullable List metrics; /** * @return Destination KMS encryption key ARN for SSE-KMS replication. Must be used in conjunction with * `sse_kms_encrypted_objects` source selection criteria. * */ - private final @Nullable String replicaKmsKeyId; + private @Nullable String replicaKmsKeyId; /** * @return Enables S3 Replication Time Control (S3 RTC) (documented below). * */ - private final @Nullable List replicationTimes; + private @Nullable List replicationTimes; /** * @return The [storage class](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Destination.html#AmazonS3-Type-Destination-StorageClass) used to store the object. By default, Amazon S3 uses the storage class of the source object to create the object replica. * */ - private final @Nullable String storageClass; - - @CustomType.Constructor - private BucketV2ReplicationConfigurationRuleDestination( - @CustomType.Parameter("accessControlTranslations") @Nullable List accessControlTranslations, - @CustomType.Parameter("accountId") @Nullable String accountId, - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("metrics") @Nullable List metrics, - @CustomType.Parameter("replicaKmsKeyId") @Nullable String replicaKmsKeyId, - @CustomType.Parameter("replicationTimes") @Nullable List replicationTimes, - @CustomType.Parameter("storageClass") @Nullable String storageClass) { - this.accessControlTranslations = accessControlTranslations; - this.accountId = accountId; - this.bucket = bucket; - this.metrics = metrics; - this.replicaKmsKeyId = replicaKmsKeyId; - this.replicationTimes = replicationTimes; - this.storageClass = storageClass; - } + private @Nullable String storageClass; + private BucketV2ReplicationConfigurationRuleDestination() {} /** * @return Specifies the overrides to use for object owners on replication. Must be used in conjunction with `account_id` owner override configuration. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(BucketV2ReplicationConfigurationRuleDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List accessControlTranslations; private @Nullable String accountId; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable String replicaKmsKeyId; private @Nullable List replicationTimes; private @Nullable String storageClass; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2ReplicationConfigurationRuleDestination defaults) { Objects.requireNonNull(defaults); this.accessControlTranslations = defaults.accessControlTranslations; @@ -153,6 +132,7 @@ public Builder(BucketV2ReplicationConfigurationRuleDestination defaults) { this.storageClass = defaults.storageClass; } + @CustomType.Setter public Builder accessControlTranslations(@Nullable List accessControlTranslations) { this.accessControlTranslations = accessControlTranslations; return this; @@ -160,14 +140,17 @@ public Builder accessControlTranslations(@Nullable List metrics) { this.metrics = metrics; return this; @@ -175,10 +158,12 @@ public Builder metrics(@Nullable List replicationTimes) { this.replicationTimes = replicationTimes; return this; @@ -186,11 +171,21 @@ public Builder replicationTimes(@Nullable List tags; - - @CustomType.Constructor - private BucketV2ReplicationConfigurationRuleFilter( - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.prefix = prefix; - this.tags = tags; - } + private @Nullable Map tags; + private BucketV2ReplicationConfigurationRuleFilter() {} /** * @return Object keyname prefix that identifies subset of objects to which the rule applies. Must be less than or equal to 1024 characters in length. * @@ -55,30 +48,32 @@ public static Builder builder() { public static Builder builder(BucketV2ReplicationConfigurationRuleFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String prefix; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2ReplicationConfigurationRuleFilter defaults) { Objects.requireNonNull(defaults); this.prefix = defaults.prefix; this.tags = defaults.tags; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public BucketV2ReplicationConfigurationRuleFilter build() { - return new BucketV2ReplicationConfigurationRuleFilter(prefix, tags); + } + public BucketV2ReplicationConfigurationRuleFilter build() { + final var o = new BucketV2ReplicationConfigurationRuleFilter(); + o.prefix = prefix; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfigurationRuleSourceSelectionCriteria.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfigurationRuleSourceSelectionCriteria.java index 5cdf79275af..e14e18dddc7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfigurationRuleSourceSelectionCriteria.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfigurationRuleSourceSelectionCriteria.java @@ -16,13 +16,9 @@ public final class BucketV2ReplicationConfigurationRuleSourceSelectionCriteria { * in `destination` must be specified as well. * */ - private final @Nullable List sseKmsEncryptedObjects; - - @CustomType.Constructor - private BucketV2ReplicationConfigurationRuleSourceSelectionCriteria(@CustomType.Parameter("sseKmsEncryptedObjects") @Nullable List sseKmsEncryptedObjects) { - this.sseKmsEncryptedObjects = sseKmsEncryptedObjects; - } + private @Nullable List sseKmsEncryptedObjects; + private BucketV2ReplicationConfigurationRuleSourceSelectionCriteria() {} /** * @return Match SSE-KMS encrypted objects (documented below). If specified, `replica_kms_key_id` * in `destination` must be specified as well. @@ -39,27 +35,27 @@ public static Builder builder() { public static Builder builder(BucketV2ReplicationConfigurationRuleSourceSelectionCriteria defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List sseKmsEncryptedObjects; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2ReplicationConfigurationRuleSourceSelectionCriteria defaults) { Objects.requireNonNull(defaults); this.sseKmsEncryptedObjects = defaults.sseKmsEncryptedObjects; } + @CustomType.Setter public Builder sseKmsEncryptedObjects(@Nullable List sseKmsEncryptedObjects) { this.sseKmsEncryptedObjects = sseKmsEncryptedObjects; return this; } public Builder sseKmsEncryptedObjects(BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject... sseKmsEncryptedObjects) { return sseKmsEncryptedObjects(List.of(sseKmsEncryptedObjects)); - } public BucketV2ReplicationConfigurationRuleSourceSelectionCriteria build() { - return new BucketV2ReplicationConfigurationRuleSourceSelectionCriteria(sseKmsEncryptedObjects); + } + public BucketV2ReplicationConfigurationRuleSourceSelectionCriteria build() { + final var o = new BucketV2ReplicationConfigurationRuleSourceSelectionCriteria(); + o.sseKmsEncryptedObjects = sseKmsEncryptedObjects; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject.java index c233d680218..1ac934815ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject.java @@ -13,13 +13,9 @@ public final class BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSs * @return Boolean which indicates if this criteria is enabled. * */ - private final Boolean enabled; - - @CustomType.Constructor - private BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject(@CustomType.Parameter("enabled") Boolean enabled) { - this.enabled = enabled; - } + private Boolean enabled; + private BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject() {} /** * @return Boolean which indicates if this criteria is enabled. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(Boolean enabled) { this.enabled = Objects.requireNonNull(enabled); return this; - } public BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject build() { - return new BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject(enabled); + } + public BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject build() { + final var o = new BucketV2ReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ServerSideEncryptionConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ServerSideEncryptionConfiguration.java index 94d125910f6..c29fe33bd97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ServerSideEncryptionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ServerSideEncryptionConfiguration.java @@ -14,13 +14,9 @@ public final class BucketV2ServerSideEncryptionConfiguration { * @return A single object for server-side encryption by default configuration. (documented below) * */ - private final List rules; - - @CustomType.Constructor - private BucketV2ServerSideEncryptionConfiguration(@CustomType.Parameter("rules") List rules) { - this.rules = rules; - } + private List rules; + private BucketV2ServerSideEncryptionConfiguration() {} /** * @return A single object for server-side encryption by default configuration. (documented below) * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(BucketV2ServerSideEncryptionConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List rules; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2ServerSideEncryptionConfiguration defaults) { Objects.requireNonNull(defaults); this.rules = defaults.rules; } + @CustomType.Setter public Builder rules(List rules) { this.rules = Objects.requireNonNull(rules); return this; } public Builder rules(BucketV2ServerSideEncryptionConfigurationRule... rules) { return rules(List.of(rules)); - } public BucketV2ServerSideEncryptionConfiguration build() { - return new BucketV2ServerSideEncryptionConfiguration(rules); + } + public BucketV2ServerSideEncryptionConfiguration build() { + final var o = new BucketV2ServerSideEncryptionConfiguration(); + o.rules = rules; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ServerSideEncryptionConfigurationRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ServerSideEncryptionConfigurationRule.java index 7f96ed71420..9a8eb061bcc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ServerSideEncryptionConfigurationRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketV2ServerSideEncryptionConfigurationRule.java @@ -17,21 +17,14 @@ public final class BucketV2ServerSideEncryptionConfigurationRule { * @return A single object for setting server-side encryption by default. (documented below) * */ - private final List applyServerSideEncryptionByDefaults; + private List applyServerSideEncryptionByDefaults; /** * @return Whether or not to use [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) for SSE-KMS. * */ - private final @Nullable Boolean bucketKeyEnabled; - - @CustomType.Constructor - private BucketV2ServerSideEncryptionConfigurationRule( - @CustomType.Parameter("applyServerSideEncryptionByDefaults") List applyServerSideEncryptionByDefaults, - @CustomType.Parameter("bucketKeyEnabled") @Nullable Boolean bucketKeyEnabled) { - this.applyServerSideEncryptionByDefaults = applyServerSideEncryptionByDefaults; - this.bucketKeyEnabled = bucketKeyEnabled; - } + private @Nullable Boolean bucketKeyEnabled; + private BucketV2ServerSideEncryptionConfigurationRule() {} /** * @return A single object for setting server-side encryption by default. (documented below) * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(BucketV2ServerSideEncryptionConfigurationRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List applyServerSideEncryptionByDefaults; private @Nullable Boolean bucketKeyEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketV2ServerSideEncryptionConfigurationRule defaults) { Objects.requireNonNull(defaults); this.applyServerSideEncryptionByDefaults = defaults.applyServerSideEncryptionByDefaults; this.bucketKeyEnabled = defaults.bucketKeyEnabled; } + @CustomType.Setter public Builder applyServerSideEncryptionByDefaults(List applyServerSideEncryptionByDefaults) { this.applyServerSideEncryptionByDefaults = Objects.requireNonNull(applyServerSideEncryptionByDefaults); return this; @@ -76,11 +66,16 @@ public Builder applyServerSideEncryptionByDefaults(List> routingRules; - - @CustomType.Constructor - private BucketWebsite( - @CustomType.Parameter("errorDocument") @Nullable String errorDocument, - @CustomType.Parameter("indexDocument") @Nullable String indexDocument, - @CustomType.Parameter("redirectAllRequestsTo") @Nullable String redirectAllRequestsTo, - @CustomType.Parameter("routingRules") @Nullable Either> routingRules) { - this.errorDocument = errorDocument; - this.indexDocument = indexDocument; - this.redirectAllRequestsTo = redirectAllRequestsTo; - this.routingRules = routingRules; - } + private @Nullable Either> routingRules; + private BucketWebsite() {} /** * @return An absolute path to the document to return in case of a 4XX error. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(BucketWebsite defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String errorDocument; private @Nullable String indexDocument; private @Nullable String redirectAllRequestsTo; private @Nullable Either> routingRules; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketWebsite defaults) { Objects.requireNonNull(defaults); this.errorDocument = defaults.errorDocument; @@ -103,23 +88,33 @@ public Builder(BucketWebsite defaults) { this.routingRules = defaults.routingRules; } + @CustomType.Setter public Builder errorDocument(@Nullable String errorDocument) { this.errorDocument = errorDocument; return this; } + @CustomType.Setter public Builder indexDocument(@Nullable String indexDocument) { this.indexDocument = indexDocument; return this; } + @CustomType.Setter public Builder redirectAllRequestsTo(@Nullable String redirectAllRequestsTo) { this.redirectAllRequestsTo = redirectAllRequestsTo; return this; } + @CustomType.Setter public Builder routingRules(@Nullable Either> routingRules) { this.routingRules = routingRules; return this; - } public BucketWebsite build() { - return new BucketWebsite(errorDocument, indexDocument, redirectAllRequestsTo, routingRules); + } + public BucketWebsite build() { + final var o = new BucketWebsite(); + o.errorDocument = errorDocument; + o.indexDocument = indexDocument; + o.redirectAllRequestsTo = redirectAllRequestsTo; + o.routingRules = routingRules; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2ErrorDocument.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2ErrorDocument.java index 04d7f290b0b..eedde08244b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2ErrorDocument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2ErrorDocument.java @@ -13,13 +13,9 @@ public final class BucketWebsiteConfigurationV2ErrorDocument { * @return The object key name to use when a 4XX class error occurs. * */ - private final String key; - - @CustomType.Constructor - private BucketWebsiteConfigurationV2ErrorDocument(@CustomType.Parameter("key") String key) { - this.key = key; - } + private String key; + private BucketWebsiteConfigurationV2ErrorDocument() {} /** * @return The object key name to use when a 4XX class error occurs. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketWebsiteConfigurationV2ErrorDocument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketWebsiteConfigurationV2ErrorDocument defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; - } public BucketWebsiteConfigurationV2ErrorDocument build() { - return new BucketWebsiteConfigurationV2ErrorDocument(key); + } + public BucketWebsiteConfigurationV2ErrorDocument build() { + final var o = new BucketWebsiteConfigurationV2ErrorDocument(); + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2IndexDocument.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2IndexDocument.java index 61058ba5883..38fba7d0164 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2IndexDocument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2IndexDocument.java @@ -15,13 +15,9 @@ public final class BucketWebsiteConfigurationV2IndexDocument { * The suffix must not be empty and must not include a slash character. * */ - private final String suffix; - - @CustomType.Constructor - private BucketWebsiteConfigurationV2IndexDocument(@CustomType.Parameter("suffix") String suffix) { - this.suffix = suffix; - } + private String suffix; + private BucketWebsiteConfigurationV2IndexDocument() {} /** * @return A suffix that is appended to a request that is for a directory on the website endpoint. * For example, if the suffix is `index.html` and you make a request to `samplebucket/images/`, the data that is returned will be for the object with the key name `images/index.html`. @@ -39,24 +35,24 @@ public static Builder builder() { public static Builder builder(BucketWebsiteConfigurationV2IndexDocument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String suffix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketWebsiteConfigurationV2IndexDocument defaults) { Objects.requireNonNull(defaults); this.suffix = defaults.suffix; } + @CustomType.Setter public Builder suffix(String suffix) { this.suffix = Objects.requireNonNull(suffix); return this; - } public BucketWebsiteConfigurationV2IndexDocument build() { - return new BucketWebsiteConfigurationV2IndexDocument(suffix); + } + public BucketWebsiteConfigurationV2IndexDocument build() { + final var o = new BucketWebsiteConfigurationV2IndexDocument(); + o.suffix = suffix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RedirectAllRequestsTo.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RedirectAllRequestsTo.java index 42c43efd8b9..c4ca0bae85e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RedirectAllRequestsTo.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RedirectAllRequestsTo.java @@ -15,21 +15,14 @@ public final class BucketWebsiteConfigurationV2RedirectAllRequestsTo { * @return Name of the host where requests are redirected. * */ - private final String hostName; + private String hostName; /** * @return Protocol to use when redirecting requests. The default is the protocol that is used in the original request. Valid values: `http`, `https`. * */ - private final @Nullable String protocol; - - @CustomType.Constructor - private BucketWebsiteConfigurationV2RedirectAllRequestsTo( - @CustomType.Parameter("hostName") String hostName, - @CustomType.Parameter("protocol") @Nullable String protocol) { - this.hostName = hostName; - this.protocol = protocol; - } + private @Nullable String protocol; + private BucketWebsiteConfigurationV2RedirectAllRequestsTo() {} /** * @return Name of the host where requests are redirected. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(BucketWebsiteConfigurationV2RedirectAllRequestsTo defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String hostName; private @Nullable String protocol; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketWebsiteConfigurationV2RedirectAllRequestsTo defaults) { Objects.requireNonNull(defaults); this.hostName = defaults.hostName; this.protocol = defaults.protocol; } + @CustomType.Setter public Builder hostName(String hostName) { this.hostName = Objects.requireNonNull(hostName); return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; - } public BucketWebsiteConfigurationV2RedirectAllRequestsTo build() { - return new BucketWebsiteConfigurationV2RedirectAllRequestsTo(hostName, protocol); + } + public BucketWebsiteConfigurationV2RedirectAllRequestsTo build() { + final var o = new BucketWebsiteConfigurationV2RedirectAllRequestsTo(); + o.hostName = hostName; + o.protocol = protocol; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RoutingRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RoutingRule.java index aeb5adbad14..af3df5a09f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RoutingRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RoutingRule.java @@ -16,21 +16,14 @@ public final class BucketWebsiteConfigurationV2RoutingRule { * @return A configuration block for describing a condition that must be met for the specified redirect to apply detailed below. * */ - private final @Nullable BucketWebsiteConfigurationV2RoutingRuleCondition condition; + private @Nullable BucketWebsiteConfigurationV2RoutingRuleCondition condition; /** * @return A configuration block for redirect information detailed below. * */ - private final BucketWebsiteConfigurationV2RoutingRuleRedirect redirect; - - @CustomType.Constructor - private BucketWebsiteConfigurationV2RoutingRule( - @CustomType.Parameter("condition") @Nullable BucketWebsiteConfigurationV2RoutingRuleCondition condition, - @CustomType.Parameter("redirect") BucketWebsiteConfigurationV2RoutingRuleRedirect redirect) { - this.condition = condition; - this.redirect = redirect; - } + private BucketWebsiteConfigurationV2RoutingRuleRedirect redirect; + private BucketWebsiteConfigurationV2RoutingRule() {} /** * @return A configuration block for describing a condition that must be met for the specified redirect to apply detailed below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketWebsiteConfigurationV2RoutingRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketWebsiteConfigurationV2RoutingRuleCondition condition; private BucketWebsiteConfigurationV2RoutingRuleRedirect redirect; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketWebsiteConfigurationV2RoutingRule defaults) { Objects.requireNonNull(defaults); this.condition = defaults.condition; this.redirect = defaults.redirect; } + @CustomType.Setter public Builder condition(@Nullable BucketWebsiteConfigurationV2RoutingRuleCondition condition) { this.condition = condition; return this; } + @CustomType.Setter public Builder redirect(BucketWebsiteConfigurationV2RoutingRuleRedirect redirect) { this.redirect = Objects.requireNonNull(redirect); return this; - } public BucketWebsiteConfigurationV2RoutingRule build() { - return new BucketWebsiteConfigurationV2RoutingRule(condition, redirect); + } + public BucketWebsiteConfigurationV2RoutingRule build() { + final var o = new BucketWebsiteConfigurationV2RoutingRule(); + o.condition = condition; + o.redirect = redirect; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RoutingRuleCondition.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RoutingRuleCondition.java index 4f11a451ec6..fd24ce2b6b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RoutingRuleCondition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RoutingRuleCondition.java @@ -15,21 +15,14 @@ public final class BucketWebsiteConfigurationV2RoutingRuleCondition { * @return The HTTP error code when the redirect is applied. If specified with `key_prefix_equals`, then both must be true for the redirect to be applied. * */ - private final @Nullable String httpErrorCodeReturnedEquals; + private @Nullable String httpErrorCodeReturnedEquals; /** * @return The object key name prefix when the redirect is applied. If specified with `http_error_code_returned_equals`, then both must be true for the redirect to be applied. * */ - private final @Nullable String keyPrefixEquals; - - @CustomType.Constructor - private BucketWebsiteConfigurationV2RoutingRuleCondition( - @CustomType.Parameter("httpErrorCodeReturnedEquals") @Nullable String httpErrorCodeReturnedEquals, - @CustomType.Parameter("keyPrefixEquals") @Nullable String keyPrefixEquals) { - this.httpErrorCodeReturnedEquals = httpErrorCodeReturnedEquals; - this.keyPrefixEquals = keyPrefixEquals; - } + private @Nullable String keyPrefixEquals; + private BucketWebsiteConfigurationV2RoutingRuleCondition() {} /** * @return The HTTP error code when the redirect is applied. If specified with `key_prefix_equals`, then both must be true for the redirect to be applied. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(BucketWebsiteConfigurationV2RoutingRuleCondition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String httpErrorCodeReturnedEquals; private @Nullable String keyPrefixEquals; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketWebsiteConfigurationV2RoutingRuleCondition defaults) { Objects.requireNonNull(defaults); this.httpErrorCodeReturnedEquals = defaults.httpErrorCodeReturnedEquals; this.keyPrefixEquals = defaults.keyPrefixEquals; } + @CustomType.Setter public Builder httpErrorCodeReturnedEquals(@Nullable String httpErrorCodeReturnedEquals) { this.httpErrorCodeReturnedEquals = httpErrorCodeReturnedEquals; return this; } + @CustomType.Setter public Builder keyPrefixEquals(@Nullable String keyPrefixEquals) { this.keyPrefixEquals = keyPrefixEquals; return this; - } public BucketWebsiteConfigurationV2RoutingRuleCondition build() { - return new BucketWebsiteConfigurationV2RoutingRuleCondition(httpErrorCodeReturnedEquals, keyPrefixEquals); + } + public BucketWebsiteConfigurationV2RoutingRuleCondition build() { + final var o = new BucketWebsiteConfigurationV2RoutingRuleCondition(); + o.httpErrorCodeReturnedEquals = httpErrorCodeReturnedEquals; + o.keyPrefixEquals = keyPrefixEquals; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RoutingRuleRedirect.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RoutingRuleRedirect.java index 4a9b0817bc0..3d18706f886 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RoutingRuleRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/BucketWebsiteConfigurationV2RoutingRuleRedirect.java @@ -15,42 +15,29 @@ public final class BucketWebsiteConfigurationV2RoutingRuleRedirect { * @return The host name to use in the redirect request. * */ - private final @Nullable String hostName; + private @Nullable String hostName; /** * @return The HTTP redirect code to use on the response. * */ - private final @Nullable String httpRedirectCode; + private @Nullable String httpRedirectCode; /** * @return Protocol to use when redirecting requests. The default is the protocol that is used in the original request. Valid values: `http`, `https`. * */ - private final @Nullable String protocol; + private @Nullable String protocol; /** * @return The object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix `docs/` (objects in the `docs/` folder) to `documents/`, you can set a `condition` block with `key_prefix_equals` set to `docs/` and in the `redirect` set `replace_key_prefix_with` to `/documents`. * */ - private final @Nullable String replaceKeyPrefixWith; + private @Nullable String replaceKeyPrefixWith; /** * @return The specific object key to use in the redirect request. For example, redirect request to `error.html`. * */ - private final @Nullable String replaceKeyWith; - - @CustomType.Constructor - private BucketWebsiteConfigurationV2RoutingRuleRedirect( - @CustomType.Parameter("hostName") @Nullable String hostName, - @CustomType.Parameter("httpRedirectCode") @Nullable String httpRedirectCode, - @CustomType.Parameter("protocol") @Nullable String protocol, - @CustomType.Parameter("replaceKeyPrefixWith") @Nullable String replaceKeyPrefixWith, - @CustomType.Parameter("replaceKeyWith") @Nullable String replaceKeyWith) { - this.hostName = hostName; - this.httpRedirectCode = httpRedirectCode; - this.protocol = protocol; - this.replaceKeyPrefixWith = replaceKeyPrefixWith; - this.replaceKeyWith = replaceKeyWith; - } + private @Nullable String replaceKeyWith; + private BucketWebsiteConfigurationV2RoutingRuleRedirect() {} /** * @return The host name to use in the redirect request. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(BucketWebsiteConfigurationV2RoutingRuleRedirect defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String hostName; private @Nullable String httpRedirectCode; private @Nullable String protocol; private @Nullable String replaceKeyPrefixWith; private @Nullable String replaceKeyWith; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketWebsiteConfigurationV2RoutingRuleRedirect defaults) { Objects.requireNonNull(defaults); this.hostName = defaults.hostName; @@ -115,27 +98,39 @@ public Builder(BucketWebsiteConfigurationV2RoutingRuleRedirect defaults) { this.replaceKeyWith = defaults.replaceKeyWith; } + @CustomType.Setter public Builder hostName(@Nullable String hostName) { this.hostName = hostName; return this; } + @CustomType.Setter public Builder httpRedirectCode(@Nullable String httpRedirectCode) { this.httpRedirectCode = httpRedirectCode; return this; } + @CustomType.Setter public Builder protocol(@Nullable String protocol) { this.protocol = protocol; return this; } + @CustomType.Setter public Builder replaceKeyPrefixWith(@Nullable String replaceKeyPrefixWith) { this.replaceKeyPrefixWith = replaceKeyPrefixWith; return this; } + @CustomType.Setter public Builder replaceKeyWith(@Nullable String replaceKeyWith) { this.replaceKeyWith = replaceKeyWith; return this; - } public BucketWebsiteConfigurationV2RoutingRuleRedirect build() { - return new BucketWebsiteConfigurationV2RoutingRuleRedirect(hostName, httpRedirectCode, protocol, replaceKeyPrefixWith, replaceKeyWith); + } + public BucketWebsiteConfigurationV2RoutingRuleRedirect build() { + final var o = new BucketWebsiteConfigurationV2RoutingRuleRedirect(); + o.hostName = hostName; + o.httpRedirectCode = httpRedirectCode; + o.protocol = protocol; + o.replaceKeyPrefixWith = replaceKeyPrefixWith; + o.replaceKeyWith = replaceKeyWith; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetAccountPublicAccessBlockResult.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetAccountPublicAccessBlockResult.java index f0c0680c02b..6c5f963121b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetAccountPublicAccessBlockResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetAccountPublicAccessBlockResult.java @@ -12,49 +12,34 @@ @CustomType public final class GetAccountPublicAccessBlockResult { - private final @Nullable String accountId; + private @Nullable String accountId; /** * @return Whether or not Amazon S3 should block public ACLs for buckets in this account is enabled. Returns as `true` or `false`. * */ - private final Boolean blockPublicAcls; + private Boolean blockPublicAcls; /** * @return Whether or not Amazon S3 should block public bucket policies for buckets in this account is enabled. Returns as `true` or `false`. * */ - private final Boolean blockPublicPolicy; + private Boolean blockPublicPolicy; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Whether or not Amazon S3 should ignore public ACLs for buckets in this account is enabled. Returns as `true` or `false`. * */ - private final Boolean ignorePublicAcls; + private Boolean ignorePublicAcls; /** * @return Whether or not Amazon S3 should restrict public bucket policies for buckets in this account is enabled. Returns as `true` or `false`. * */ - private final Boolean restrictPublicBuckets; - - @CustomType.Constructor - private GetAccountPublicAccessBlockResult( - @CustomType.Parameter("accountId") @Nullable String accountId, - @CustomType.Parameter("blockPublicAcls") Boolean blockPublicAcls, - @CustomType.Parameter("blockPublicPolicy") Boolean blockPublicPolicy, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ignorePublicAcls") Boolean ignorePublicAcls, - @CustomType.Parameter("restrictPublicBuckets") Boolean restrictPublicBuckets) { - this.accountId = accountId; - this.blockPublicAcls = blockPublicAcls; - this.blockPublicPolicy = blockPublicPolicy; - this.id = id; - this.ignorePublicAcls = ignorePublicAcls; - this.restrictPublicBuckets = restrictPublicBuckets; - } + private Boolean restrictPublicBuckets; + private GetAccountPublicAccessBlockResult() {} public Optional accountId() { return Optional.ofNullable(this.accountId); } @@ -101,7 +86,7 @@ public static Builder builder() { public static Builder builder(GetAccountPublicAccessBlockResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accountId; private Boolean blockPublicAcls; @@ -109,11 +94,7 @@ public static final class Builder { private String id; private Boolean ignorePublicAcls; private Boolean restrictPublicBuckets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetAccountPublicAccessBlockResult defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; @@ -124,31 +105,45 @@ public Builder(GetAccountPublicAccessBlockResult defaults) { this.restrictPublicBuckets = defaults.restrictPublicBuckets; } + @CustomType.Setter public Builder accountId(@Nullable String accountId) { this.accountId = accountId; return this; } + @CustomType.Setter public Builder blockPublicAcls(Boolean blockPublicAcls) { this.blockPublicAcls = Objects.requireNonNull(blockPublicAcls); return this; } + @CustomType.Setter public Builder blockPublicPolicy(Boolean blockPublicPolicy) { this.blockPublicPolicy = Objects.requireNonNull(blockPublicPolicy); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ignorePublicAcls(Boolean ignorePublicAcls) { this.ignorePublicAcls = Objects.requireNonNull(ignorePublicAcls); return this; } + @CustomType.Setter public Builder restrictPublicBuckets(Boolean restrictPublicBuckets) { this.restrictPublicBuckets = Objects.requireNonNull(restrictPublicBuckets); return this; - } public GetAccountPublicAccessBlockResult build() { - return new GetAccountPublicAccessBlockResult(accountId, blockPublicAcls, blockPublicPolicy, id, ignorePublicAcls, restrictPublicBuckets); + } + public GetAccountPublicAccessBlockResult build() { + final var o = new GetAccountPublicAccessBlockResult(); + o.accountId = accountId; + o.blockPublicAcls = blockPublicAcls; + o.blockPublicPolicy = blockPublicPolicy; + o.id = id; + o.ignorePublicAcls = ignorePublicAcls; + o.restrictPublicBuckets = restrictPublicBuckets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketObjectResult.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketObjectResult.java index e6a4260a144..39a63e7a720 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketObjectResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketObjectResult.java @@ -18,183 +18,128 @@ public final class GetBucketObjectResult { * @return Object data (see **limitations above** to understand cases in which this field is actually available) * */ - private final String body; + private String body; /** * @deprecated * Use the aws_s3_object data source instead * */ @Deprecated /* Use the aws_s3_object data source instead */ - private final String bucket; + private String bucket; /** * @return (Optional) Whether or not to use [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) for SSE-KMS. * */ - private final Boolean bucketKeyEnabled; + private Boolean bucketKeyEnabled; /** * @return Specifies caching behavior along the request/reply chain. * */ - private final String cacheControl; + private String cacheControl; /** * @return Specifies presentational information for the object. * */ - private final String contentDisposition; + private String contentDisposition; /** * @return Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. * */ - private final String contentEncoding; + private String contentEncoding; /** * @return The language the content is in. * */ - private final String contentLanguage; + private String contentLanguage; /** * @return Size of the body in bytes. * */ - private final Integer contentLength; + private Integer contentLength; /** * @return A standard MIME type describing the format of the object data. * */ - private final String contentType; + private String contentType; /** * @return [ETag](https://en.wikipedia.org/wiki/HTTP_ETag) generated for the object (an MD5 sum of the object content in case it's not encrypted) * */ - private final String etag; + private String etag; /** * @return If the object expiration is configured (see [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html)), the field includes this header. It includes the expiry-date and rule-id key value pairs providing object expiration information. The value of the rule-id is URL encoded. * */ - private final String expiration; + private String expiration; /** * @return The date and time at which the object is no longer cacheable. * */ - private final String expires; + private String expires; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String key; + private String id; + private String key; /** * @return Last modified date of the object in RFC1123 format (e.g., `Mon, 02 Jan 2006 15:04:05 MST`) * */ - private final String lastModified; + private String lastModified; /** * @return A map of metadata stored with the object in S3 * */ - private final Map metadata; + private Map metadata; /** * @return Indicates whether this object has an active [legal hold](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html#object-lock-legal-holds). This field is only returned if you have permission to view an object's legal hold status. * */ - private final String objectLockLegalHoldStatus; + private String objectLockLegalHoldStatus; /** * @return The object lock [retention mode](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html#object-lock-retention-modes) currently in place for this object. * */ - private final String objectLockMode; + private String objectLockMode; /** * @return The date and time when this object's object lock will expire. * */ - private final String objectLockRetainUntilDate; - private final @Nullable String range; + private String objectLockRetainUntilDate; + private @Nullable String range; /** * @return If the object is stored using server-side encryption (KMS or Amazon S3-managed encryption key), this field includes the chosen encryption and algorithm used. * */ - private final String serverSideEncryption; + private String serverSideEncryption; /** * @return If present, specifies the ID of the Key Management Service (KMS) master encryption key that was used for the object. * */ - private final String sseKmsKeyId; + private String sseKmsKeyId; /** * @return [Storage class](http://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) information of the object. Available for all objects except for `Standard` storage class objects. * */ - private final String storageClass; + private String storageClass; /** * @return A map of tags assigned to the object. * */ - private final Map tags; + private Map tags; /** * @return The latest version ID of the object returned. * */ - private final String versionId; + private String versionId; /** * @return If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata. * */ - private final String websiteRedirectLocation; - - @CustomType.Constructor - private GetBucketObjectResult( - @CustomType.Parameter("body") String body, - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("bucketKeyEnabled") Boolean bucketKeyEnabled, - @CustomType.Parameter("cacheControl") String cacheControl, - @CustomType.Parameter("contentDisposition") String contentDisposition, - @CustomType.Parameter("contentEncoding") String contentEncoding, - @CustomType.Parameter("contentLanguage") String contentLanguage, - @CustomType.Parameter("contentLength") Integer contentLength, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("etag") String etag, - @CustomType.Parameter("expiration") String expiration, - @CustomType.Parameter("expires") String expires, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("lastModified") String lastModified, - @CustomType.Parameter("metadata") Map metadata, - @CustomType.Parameter("objectLockLegalHoldStatus") String objectLockLegalHoldStatus, - @CustomType.Parameter("objectLockMode") String objectLockMode, - @CustomType.Parameter("objectLockRetainUntilDate") String objectLockRetainUntilDate, - @CustomType.Parameter("range") @Nullable String range, - @CustomType.Parameter("serverSideEncryption") String serverSideEncryption, - @CustomType.Parameter("sseKmsKeyId") String sseKmsKeyId, - @CustomType.Parameter("storageClass") String storageClass, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("versionId") String versionId, - @CustomType.Parameter("websiteRedirectLocation") String websiteRedirectLocation) { - this.body = body; - this.bucket = bucket; - this.bucketKeyEnabled = bucketKeyEnabled; - this.cacheControl = cacheControl; - this.contentDisposition = contentDisposition; - this.contentEncoding = contentEncoding; - this.contentLanguage = contentLanguage; - this.contentLength = contentLength; - this.contentType = contentType; - this.etag = etag; - this.expiration = expiration; - this.expires = expires; - this.id = id; - this.key = key; - this.lastModified = lastModified; - this.metadata = metadata; - this.objectLockLegalHoldStatus = objectLockLegalHoldStatus; - this.objectLockMode = objectLockMode; - this.objectLockRetainUntilDate = objectLockRetainUntilDate; - this.range = range; - this.serverSideEncryption = serverSideEncryption; - this.sseKmsKeyId = sseKmsKeyId; - this.storageClass = storageClass; - this.tags = tags; - this.versionId = versionId; - this.websiteRedirectLocation = websiteRedirectLocation; - } + private String websiteRedirectLocation; + private GetBucketObjectResult() {} /** * @return Object data (see **limitations above** to understand cases in which this field is actually available) * @@ -379,7 +324,7 @@ public static Builder builder() { public static Builder builder(GetBucketObjectResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String body; private String bucket; @@ -407,11 +352,7 @@ public static final class Builder { private Map tags; private String versionId; private String websiteRedirectLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBucketObjectResult defaults) { Objects.requireNonNull(defaults); this.body = defaults.body; @@ -442,111 +383,165 @@ public Builder(GetBucketObjectResult defaults) { this.websiteRedirectLocation = defaults.websiteRedirectLocation; } + @CustomType.Setter public Builder body(String body) { this.body = Objects.requireNonNull(body); return this; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder bucketKeyEnabled(Boolean bucketKeyEnabled) { this.bucketKeyEnabled = Objects.requireNonNull(bucketKeyEnabled); return this; } + @CustomType.Setter public Builder cacheControl(String cacheControl) { this.cacheControl = Objects.requireNonNull(cacheControl); return this; } + @CustomType.Setter public Builder contentDisposition(String contentDisposition) { this.contentDisposition = Objects.requireNonNull(contentDisposition); return this; } + @CustomType.Setter public Builder contentEncoding(String contentEncoding) { this.contentEncoding = Objects.requireNonNull(contentEncoding); return this; } + @CustomType.Setter public Builder contentLanguage(String contentLanguage) { this.contentLanguage = Objects.requireNonNull(contentLanguage); return this; } + @CustomType.Setter public Builder contentLength(Integer contentLength) { this.contentLength = Objects.requireNonNull(contentLength); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder etag(String etag) { this.etag = Objects.requireNonNull(etag); return this; } + @CustomType.Setter public Builder expiration(String expiration) { this.expiration = Objects.requireNonNull(expiration); return this; } + @CustomType.Setter public Builder expires(String expires) { this.expires = Objects.requireNonNull(expires); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder lastModified(String lastModified) { this.lastModified = Objects.requireNonNull(lastModified); return this; } + @CustomType.Setter public Builder metadata(Map metadata) { this.metadata = Objects.requireNonNull(metadata); return this; } + @CustomType.Setter public Builder objectLockLegalHoldStatus(String objectLockLegalHoldStatus) { this.objectLockLegalHoldStatus = Objects.requireNonNull(objectLockLegalHoldStatus); return this; } + @CustomType.Setter public Builder objectLockMode(String objectLockMode) { this.objectLockMode = Objects.requireNonNull(objectLockMode); return this; } + @CustomType.Setter public Builder objectLockRetainUntilDate(String objectLockRetainUntilDate) { this.objectLockRetainUntilDate = Objects.requireNonNull(objectLockRetainUntilDate); return this; } + @CustomType.Setter public Builder range(@Nullable String range) { this.range = range; return this; } + @CustomType.Setter public Builder serverSideEncryption(String serverSideEncryption) { this.serverSideEncryption = Objects.requireNonNull(serverSideEncryption); return this; } + @CustomType.Setter public Builder sseKmsKeyId(String sseKmsKeyId) { this.sseKmsKeyId = Objects.requireNonNull(sseKmsKeyId); return this; } + @CustomType.Setter public Builder storageClass(String storageClass) { this.storageClass = Objects.requireNonNull(storageClass); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder versionId(String versionId) { this.versionId = Objects.requireNonNull(versionId); return this; } + @CustomType.Setter public Builder websiteRedirectLocation(String websiteRedirectLocation) { this.websiteRedirectLocation = Objects.requireNonNull(websiteRedirectLocation); return this; - } public GetBucketObjectResult build() { - return new GetBucketObjectResult(body, bucket, bucketKeyEnabled, cacheControl, contentDisposition, contentEncoding, contentLanguage, contentLength, contentType, etag, expiration, expires, id, key, lastModified, metadata, objectLockLegalHoldStatus, objectLockMode, objectLockRetainUntilDate, range, serverSideEncryption, sseKmsKeyId, storageClass, tags, versionId, websiteRedirectLocation); + } + public GetBucketObjectResult build() { + final var o = new GetBucketObjectResult(); + o.body = body; + o.bucket = bucket; + o.bucketKeyEnabled = bucketKeyEnabled; + o.cacheControl = cacheControl; + o.contentDisposition = contentDisposition; + o.contentEncoding = contentEncoding; + o.contentLanguage = contentLanguage; + o.contentLength = contentLength; + o.contentType = contentType; + o.etag = etag; + o.expiration = expiration; + o.expires = expires; + o.id = id; + o.key = key; + o.lastModified = lastModified; + o.metadata = metadata; + o.objectLockLegalHoldStatus = objectLockLegalHoldStatus; + o.objectLockMode = objectLockMode; + o.objectLockRetainUntilDate = objectLockRetainUntilDate; + o.range = range; + o.serverSideEncryption = serverSideEncryption; + o.sseKmsKeyId = sseKmsKeyId; + o.storageClass = storageClass; + o.tags = tags; + o.versionId = versionId; + o.websiteRedirectLocation = websiteRedirectLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketObjectsResult.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketObjectsResult.java index 561de5b1bc9..bc7bb9f4674 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketObjectsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketObjectsResult.java @@ -20,60 +20,35 @@ public final class GetBucketObjectsResult { * */ @Deprecated /* Use the aws_s3_objects data source instead */ - private final String bucket; + private String bucket; /** * @return List of any keys between `prefix` and the next occurrence of `delimiter` (i.e., similar to subdirectories of the `prefix` "directory"); the list is only returned when you specify `delimiter` * */ - private final List commonPrefixes; - private final @Nullable String delimiter; - private final @Nullable String encodingType; - private final @Nullable Boolean fetchOwner; + private List commonPrefixes; + private @Nullable String delimiter; + private @Nullable String encodingType; + private @Nullable Boolean fetchOwner; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return List of strings representing object keys * */ - private final List keys; - private final @Nullable Integer maxKeys; + private List keys; + private @Nullable Integer maxKeys; /** * @return List of strings representing object owner IDs (see `fetch_owner` above) * */ - private final List owners; - private final @Nullable String prefix; - private final @Nullable String startAfter; - - @CustomType.Constructor - private GetBucketObjectsResult( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("commonPrefixes") List commonPrefixes, - @CustomType.Parameter("delimiter") @Nullable String delimiter, - @CustomType.Parameter("encodingType") @Nullable String encodingType, - @CustomType.Parameter("fetchOwner") @Nullable Boolean fetchOwner, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("keys") List keys, - @CustomType.Parameter("maxKeys") @Nullable Integer maxKeys, - @CustomType.Parameter("owners") List owners, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("startAfter") @Nullable String startAfter) { - this.bucket = bucket; - this.commonPrefixes = commonPrefixes; - this.delimiter = delimiter; - this.encodingType = encodingType; - this.fetchOwner = fetchOwner; - this.id = id; - this.keys = keys; - this.maxKeys = maxKeys; - this.owners = owners; - this.prefix = prefix; - this.startAfter = startAfter; - } + private List owners; + private @Nullable String prefix; + private @Nullable String startAfter; + private GetBucketObjectsResult() {} /** * @deprecated * Use the aws_s3_objects data source instead @@ -137,7 +112,7 @@ public static Builder builder() { public static Builder builder(GetBucketObjectsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private List commonPrefixes; @@ -150,11 +125,7 @@ public static final class Builder { private List owners; private @Nullable String prefix; private @Nullable String startAfter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBucketObjectsResult defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -170,10 +141,12 @@ public Builder(GetBucketObjectsResult defaults) { this.startAfter = defaults.startAfter; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder commonPrefixes(List commonPrefixes) { this.commonPrefixes = Objects.requireNonNull(commonPrefixes); return this; @@ -181,22 +154,27 @@ public Builder commonPrefixes(List commonPrefixes) { public Builder commonPrefixes(String... commonPrefixes) { return commonPrefixes(List.of(commonPrefixes)); } + @CustomType.Setter public Builder delimiter(@Nullable String delimiter) { this.delimiter = delimiter; return this; } + @CustomType.Setter public Builder encodingType(@Nullable String encodingType) { this.encodingType = encodingType; return this; } + @CustomType.Setter public Builder fetchOwner(@Nullable Boolean fetchOwner) { this.fetchOwner = fetchOwner; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder keys(List keys) { this.keys = Objects.requireNonNull(keys); return this; @@ -204,10 +182,12 @@ public Builder keys(List keys) { public Builder keys(String... keys) { return keys(List.of(keys)); } + @CustomType.Setter public Builder maxKeys(@Nullable Integer maxKeys) { this.maxKeys = maxKeys; return this; } + @CustomType.Setter public Builder owners(List owners) { this.owners = Objects.requireNonNull(owners); return this; @@ -215,15 +195,30 @@ public Builder owners(List owners) { public Builder owners(String... owners) { return owners(List.of(owners)); } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder startAfter(@Nullable String startAfter) { this.startAfter = startAfter; return this; - } public GetBucketObjectsResult build() { - return new GetBucketObjectsResult(bucket, commonPrefixes, delimiter, encodingType, fetchOwner, id, keys, maxKeys, owners, prefix, startAfter); + } + public GetBucketObjectsResult build() { + final var o = new GetBucketObjectsResult(); + o.bucket = bucket; + o.commonPrefixes = commonPrefixes; + o.delimiter = delimiter; + o.encodingType = encodingType; + o.fetchOwner = fetchOwner; + o.id = id; + o.keys = keys; + o.maxKeys = maxKeys; + o.owners = owners; + o.prefix = prefix; + o.startAfter = startAfter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketPolicyResult.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketPolicyResult.java index 8efa9d5929e..b9a35cb5351 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketPolicyResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketPolicyResult.java @@ -9,28 +9,19 @@ @CustomType public final class GetBucketPolicyResult { - private final String bucket; + private String bucket; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return IAM bucket policy. * */ - private final String policy; - - @CustomType.Constructor - private GetBucketPolicyResult( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("policy") String policy) { - this.bucket = bucket; - this.id = id; - this.policy = policy; - } + private String policy; + private GetBucketPolicyResult() {} public String bucket() { return this.bucket; } @@ -56,16 +47,12 @@ public static Builder builder() { public static Builder builder(GetBucketPolicyResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String id; private String policy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBucketPolicyResult defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -73,19 +60,27 @@ public Builder(GetBucketPolicyResult defaults) { this.policy = defaults.policy; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder policy(String policy) { this.policy = Objects.requireNonNull(policy); return this; - } public GetBucketPolicyResult build() { - return new GetBucketPolicyResult(bucket, id, policy); + } + public GetBucketPolicyResult build() { + final var o = new GetBucketPolicyResult(); + o.bucket = bucket; + o.id = id; + o.policy = policy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketResult.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketResult.java index cf7038e8b85..a1b96429ef0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetBucketResult.java @@ -13,66 +13,45 @@ public final class GetBucketResult { * @return The ARN of the bucket. Will be of format `arn:aws:s3:::bucketname`. * */ - private final String arn; - private final String bucket; + private String arn; + private String bucket; /** * @return The bucket domain name. Will be of format `bucketname.s3.amazonaws.com`. * */ - private final String bucketDomainName; + private String bucketDomainName; /** * @return The bucket region-specific domain name. The bucket domain name including the region name, please refer [here](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) for format. Note: The AWS CloudFront allows specifying S3 region-specific endpoint when creating S3 origin, it will prevent [redirect issues](https://forums.aws.amazon.com/thread.jspa?threadID=216814) from CloudFront to S3 Origin URL. * */ - private final String bucketRegionalDomainName; + private String bucketRegionalDomainName; /** * @return The [Route 53 Hosted Zone ID](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_website_region_endpoints) for this bucket's region. * */ - private final String hostedZoneId; + private String hostedZoneId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The AWS region this bucket resides in. * */ - private final String region; + private String region; /** * @return The domain of the website endpoint, if the bucket is configured with a website. If not, this will be an empty string. This is used to create Route 53 alias records. * */ - private final String websiteDomain; + private String websiteDomain; /** * @return The website endpoint, if the bucket is configured with a website. If not, this will be an empty string. * */ - private final String websiteEndpoint; - - @CustomType.Constructor - private GetBucketResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("bucketDomainName") String bucketDomainName, - @CustomType.Parameter("bucketRegionalDomainName") String bucketRegionalDomainName, - @CustomType.Parameter("hostedZoneId") String hostedZoneId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("region") String region, - @CustomType.Parameter("websiteDomain") String websiteDomain, - @CustomType.Parameter("websiteEndpoint") String websiteEndpoint) { - this.arn = arn; - this.bucket = bucket; - this.bucketDomainName = bucketDomainName; - this.bucketRegionalDomainName = bucketRegionalDomainName; - this.hostedZoneId = hostedZoneId; - this.id = id; - this.region = region; - this.websiteDomain = websiteDomain; - this.websiteEndpoint = websiteEndpoint; - } + private String websiteEndpoint; + private GetBucketResult() {} /** * @return The ARN of the bucket. Will be of format `arn:aws:s3:::bucketname`. * @@ -140,7 +119,7 @@ public static Builder builder() { public static Builder builder(GetBucketResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String bucket; @@ -151,11 +130,7 @@ public static final class Builder { private String region; private String websiteDomain; private String websiteEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBucketResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -169,43 +144,63 @@ public Builder(GetBucketResult defaults) { this.websiteEndpoint = defaults.websiteEndpoint; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder bucketDomainName(String bucketDomainName) { this.bucketDomainName = Objects.requireNonNull(bucketDomainName); return this; } + @CustomType.Setter public Builder bucketRegionalDomainName(String bucketRegionalDomainName) { this.bucketRegionalDomainName = Objects.requireNonNull(bucketRegionalDomainName); return this; } + @CustomType.Setter public Builder hostedZoneId(String hostedZoneId) { this.hostedZoneId = Objects.requireNonNull(hostedZoneId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; } + @CustomType.Setter public Builder websiteDomain(String websiteDomain) { this.websiteDomain = Objects.requireNonNull(websiteDomain); return this; } + @CustomType.Setter public Builder websiteEndpoint(String websiteEndpoint) { this.websiteEndpoint = Objects.requireNonNull(websiteEndpoint); return this; - } public GetBucketResult build() { - return new GetBucketResult(arn, bucket, bucketDomainName, bucketRegionalDomainName, hostedZoneId, id, region, websiteDomain, websiteEndpoint); + } + public GetBucketResult build() { + final var o = new GetBucketResult(); + o.arn = arn; + o.bucket = bucket; + o.bucketDomainName = bucketDomainName; + o.bucketRegionalDomainName = bucketRegionalDomainName; + o.hostedZoneId = hostedZoneId; + o.id = id; + o.region = region; + o.websiteDomain = websiteDomain; + o.websiteEndpoint = websiteEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetCanonicalUserIdResult.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetCanonicalUserIdResult.java index 0270af3ce65..5c89a944f3b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetCanonicalUserIdResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetCanonicalUserIdResult.java @@ -13,21 +13,14 @@ public final class GetCanonicalUserIdResult { * @return The human-friendly name linked to the canonical user ID. The bucket owner's display name. **NOTE:** [This value](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTServiceGET.html) is only included in the response in the US East (N. Virginia), US West (N. California), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), EU (Ireland), and South America (São Paulo) regions. * */ - private final String displayName; + private String displayName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetCanonicalUserIdResult( - @CustomType.Parameter("displayName") String displayName, - @CustomType.Parameter("id") String id) { - this.displayName = displayName; - this.id = id; - } + private String id; + private GetCanonicalUserIdResult() {} /** * @return The human-friendly name linked to the canonical user ID. The bucket owner's display name. **NOTE:** [This value](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTServiceGET.html) is only included in the response in the US East (N. Virginia), US West (N. California), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), EU (Ireland), and South America (São Paulo) regions. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetCanonicalUserIdResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String displayName; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetCanonicalUserIdResult defaults) { Objects.requireNonNull(defaults); this.displayName = defaults.displayName; this.id = defaults.id; } + @CustomType.Setter public Builder displayName(String displayName) { this.displayName = Objects.requireNonNull(displayName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetCanonicalUserIdResult build() { - return new GetCanonicalUserIdResult(displayName, id); + } + public GetCanonicalUserIdResult build() { + final var o = new GetCanonicalUserIdResult(); + o.displayName = displayName; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetObjectResult.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetObjectResult.java index 907ab05a895..f5dea999501 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetObjectResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetObjectResult.java @@ -18,177 +18,122 @@ public final class GetObjectResult { * @return Object data (see **limitations above** to understand cases in which this field is actually available) * */ - private final String body; - private final String bucket; + private String body; + private String bucket; /** * @return (Optional) Whether or not to use [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) for SSE-KMS. * */ - private final Boolean bucketKeyEnabled; + private Boolean bucketKeyEnabled; /** * @return Specifies caching behavior along the request/reply chain. * */ - private final String cacheControl; + private String cacheControl; /** * @return Specifies presentational information for the object. * */ - private final String contentDisposition; + private String contentDisposition; /** * @return Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. * */ - private final String contentEncoding; + private String contentEncoding; /** * @return The language the content is in. * */ - private final String contentLanguage; + private String contentLanguage; /** * @return Size of the body in bytes. * */ - private final Integer contentLength; + private Integer contentLength; /** * @return A standard MIME type describing the format of the object data. * */ - private final String contentType; + private String contentType; /** * @return [ETag](https://en.wikipedia.org/wiki/HTTP_ETag) generated for the object (an MD5 sum of the object content in case it's not encrypted) * */ - private final String etag; + private String etag; /** * @return If the object expiration is configured (see [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html)), the field includes this header. It includes the expiry-date and rule-id key value pairs providing object expiration information. The value of the rule-id is URL encoded. * */ - private final String expiration; + private String expiration; /** * @return The date and time at which the object is no longer cacheable. * */ - private final String expires; + private String expires; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String key; + private String id; + private String key; /** * @return Last modified date of the object in RFC1123 format (e.g., `Mon, 02 Jan 2006 15:04:05 MST`) * */ - private final String lastModified; + private String lastModified; /** * @return A map of metadata stored with the object in S3 * */ - private final Map metadata; + private Map metadata; /** * @return Indicates whether this object has an active [legal hold](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html#object-lock-legal-holds). This field is only returned if you have permission to view an object's legal hold status. * */ - private final String objectLockLegalHoldStatus; + private String objectLockLegalHoldStatus; /** * @return The object lock [retention mode](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html#object-lock-retention-modes) currently in place for this object. * */ - private final String objectLockMode; + private String objectLockMode; /** * @return The date and time when this object's object lock will expire. * */ - private final String objectLockRetainUntilDate; - private final @Nullable String range; + private String objectLockRetainUntilDate; + private @Nullable String range; /** * @return If the object is stored using server-side encryption (KMS or Amazon S3-managed encryption key), this field includes the chosen encryption and algorithm used. * */ - private final String serverSideEncryption; + private String serverSideEncryption; /** * @return If present, specifies the ID of the Key Management Service (KMS) master encryption key that was used for the object. * */ - private final String sseKmsKeyId; + private String sseKmsKeyId; /** * @return [Storage class](http://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) information of the object. Available for all objects except for `Standard` storage class objects. * */ - private final String storageClass; + private String storageClass; /** * @return A map of tags assigned to the object. * */ - private final Map tags; + private Map tags; /** * @return The latest version ID of the object returned. * */ - private final String versionId; + private String versionId; /** * @return If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata. * */ - private final String websiteRedirectLocation; - - @CustomType.Constructor - private GetObjectResult( - @CustomType.Parameter("body") String body, - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("bucketKeyEnabled") Boolean bucketKeyEnabled, - @CustomType.Parameter("cacheControl") String cacheControl, - @CustomType.Parameter("contentDisposition") String contentDisposition, - @CustomType.Parameter("contentEncoding") String contentEncoding, - @CustomType.Parameter("contentLanguage") String contentLanguage, - @CustomType.Parameter("contentLength") Integer contentLength, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("etag") String etag, - @CustomType.Parameter("expiration") String expiration, - @CustomType.Parameter("expires") String expires, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("lastModified") String lastModified, - @CustomType.Parameter("metadata") Map metadata, - @CustomType.Parameter("objectLockLegalHoldStatus") String objectLockLegalHoldStatus, - @CustomType.Parameter("objectLockMode") String objectLockMode, - @CustomType.Parameter("objectLockRetainUntilDate") String objectLockRetainUntilDate, - @CustomType.Parameter("range") @Nullable String range, - @CustomType.Parameter("serverSideEncryption") String serverSideEncryption, - @CustomType.Parameter("sseKmsKeyId") String sseKmsKeyId, - @CustomType.Parameter("storageClass") String storageClass, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("versionId") String versionId, - @CustomType.Parameter("websiteRedirectLocation") String websiteRedirectLocation) { - this.body = body; - this.bucket = bucket; - this.bucketKeyEnabled = bucketKeyEnabled; - this.cacheControl = cacheControl; - this.contentDisposition = contentDisposition; - this.contentEncoding = contentEncoding; - this.contentLanguage = contentLanguage; - this.contentLength = contentLength; - this.contentType = contentType; - this.etag = etag; - this.expiration = expiration; - this.expires = expires; - this.id = id; - this.key = key; - this.lastModified = lastModified; - this.metadata = metadata; - this.objectLockLegalHoldStatus = objectLockLegalHoldStatus; - this.objectLockMode = objectLockMode; - this.objectLockRetainUntilDate = objectLockRetainUntilDate; - this.range = range; - this.serverSideEncryption = serverSideEncryption; - this.sseKmsKeyId = sseKmsKeyId; - this.storageClass = storageClass; - this.tags = tags; - this.versionId = versionId; - this.websiteRedirectLocation = websiteRedirectLocation; - } + private String websiteRedirectLocation; + private GetObjectResult() {} /** * @return Object data (see **limitations above** to understand cases in which this field is actually available) * @@ -367,7 +312,7 @@ public static Builder builder() { public static Builder builder(GetObjectResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String body; private String bucket; @@ -395,11 +340,7 @@ public static final class Builder { private Map tags; private String versionId; private String websiteRedirectLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetObjectResult defaults) { Objects.requireNonNull(defaults); this.body = defaults.body; @@ -430,111 +371,165 @@ public Builder(GetObjectResult defaults) { this.websiteRedirectLocation = defaults.websiteRedirectLocation; } + @CustomType.Setter public Builder body(String body) { this.body = Objects.requireNonNull(body); return this; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder bucketKeyEnabled(Boolean bucketKeyEnabled) { this.bucketKeyEnabled = Objects.requireNonNull(bucketKeyEnabled); return this; } + @CustomType.Setter public Builder cacheControl(String cacheControl) { this.cacheControl = Objects.requireNonNull(cacheControl); return this; } + @CustomType.Setter public Builder contentDisposition(String contentDisposition) { this.contentDisposition = Objects.requireNonNull(contentDisposition); return this; } + @CustomType.Setter public Builder contentEncoding(String contentEncoding) { this.contentEncoding = Objects.requireNonNull(contentEncoding); return this; } + @CustomType.Setter public Builder contentLanguage(String contentLanguage) { this.contentLanguage = Objects.requireNonNull(contentLanguage); return this; } + @CustomType.Setter public Builder contentLength(Integer contentLength) { this.contentLength = Objects.requireNonNull(contentLength); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder etag(String etag) { this.etag = Objects.requireNonNull(etag); return this; } + @CustomType.Setter public Builder expiration(String expiration) { this.expiration = Objects.requireNonNull(expiration); return this; } + @CustomType.Setter public Builder expires(String expires) { this.expires = Objects.requireNonNull(expires); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder lastModified(String lastModified) { this.lastModified = Objects.requireNonNull(lastModified); return this; } + @CustomType.Setter public Builder metadata(Map metadata) { this.metadata = Objects.requireNonNull(metadata); return this; } + @CustomType.Setter public Builder objectLockLegalHoldStatus(String objectLockLegalHoldStatus) { this.objectLockLegalHoldStatus = Objects.requireNonNull(objectLockLegalHoldStatus); return this; } + @CustomType.Setter public Builder objectLockMode(String objectLockMode) { this.objectLockMode = Objects.requireNonNull(objectLockMode); return this; } + @CustomType.Setter public Builder objectLockRetainUntilDate(String objectLockRetainUntilDate) { this.objectLockRetainUntilDate = Objects.requireNonNull(objectLockRetainUntilDate); return this; } + @CustomType.Setter public Builder range(@Nullable String range) { this.range = range; return this; } + @CustomType.Setter public Builder serverSideEncryption(String serverSideEncryption) { this.serverSideEncryption = Objects.requireNonNull(serverSideEncryption); return this; } + @CustomType.Setter public Builder sseKmsKeyId(String sseKmsKeyId) { this.sseKmsKeyId = Objects.requireNonNull(sseKmsKeyId); return this; } + @CustomType.Setter public Builder storageClass(String storageClass) { this.storageClass = Objects.requireNonNull(storageClass); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder versionId(String versionId) { this.versionId = Objects.requireNonNull(versionId); return this; } + @CustomType.Setter public Builder websiteRedirectLocation(String websiteRedirectLocation) { this.websiteRedirectLocation = Objects.requireNonNull(websiteRedirectLocation); return this; - } public GetObjectResult build() { - return new GetObjectResult(body, bucket, bucketKeyEnabled, cacheControl, contentDisposition, contentEncoding, contentLanguage, contentLength, contentType, etag, expiration, expires, id, key, lastModified, metadata, objectLockLegalHoldStatus, objectLockMode, objectLockRetainUntilDate, range, serverSideEncryption, sseKmsKeyId, storageClass, tags, versionId, websiteRedirectLocation); + } + public GetObjectResult build() { + final var o = new GetObjectResult(); + o.body = body; + o.bucket = bucket; + o.bucketKeyEnabled = bucketKeyEnabled; + o.cacheControl = cacheControl; + o.contentDisposition = contentDisposition; + o.contentEncoding = contentEncoding; + o.contentLanguage = contentLanguage; + o.contentLength = contentLength; + o.contentType = contentType; + o.etag = etag; + o.expiration = expiration; + o.expires = expires; + o.id = id; + o.key = key; + o.lastModified = lastModified; + o.metadata = metadata; + o.objectLockLegalHoldStatus = objectLockLegalHoldStatus; + o.objectLockMode = objectLockMode; + o.objectLockRetainUntilDate = objectLockRetainUntilDate; + o.range = range; + o.serverSideEncryption = serverSideEncryption; + o.sseKmsKeyId = sseKmsKeyId; + o.storageClass = storageClass; + o.tags = tags; + o.versionId = versionId; + o.websiteRedirectLocation = websiteRedirectLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetObjectsResult.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetObjectsResult.java index 083497e7b1b..3c612b3b200 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetObjectsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/GetObjectsResult.java @@ -14,60 +14,35 @@ @CustomType public final class GetObjectsResult { - private final String bucket; + private String bucket; /** * @return List of any keys between `prefix` and the next occurrence of `delimiter` (i.e., similar to subdirectories of the `prefix` "directory"); the list is only returned when you specify `delimiter` * */ - private final List commonPrefixes; - private final @Nullable String delimiter; - private final @Nullable String encodingType; - private final @Nullable Boolean fetchOwner; + private List commonPrefixes; + private @Nullable String delimiter; + private @Nullable String encodingType; + private @Nullable Boolean fetchOwner; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return List of strings representing object keys * */ - private final List keys; - private final @Nullable Integer maxKeys; + private List keys; + private @Nullable Integer maxKeys; /** * @return List of strings representing object owner IDs (see `fetch_owner` above) * */ - private final List owners; - private final @Nullable String prefix; - private final @Nullable String startAfter; - - @CustomType.Constructor - private GetObjectsResult( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("commonPrefixes") List commonPrefixes, - @CustomType.Parameter("delimiter") @Nullable String delimiter, - @CustomType.Parameter("encodingType") @Nullable String encodingType, - @CustomType.Parameter("fetchOwner") @Nullable Boolean fetchOwner, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("keys") List keys, - @CustomType.Parameter("maxKeys") @Nullable Integer maxKeys, - @CustomType.Parameter("owners") List owners, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("startAfter") @Nullable String startAfter) { - this.bucket = bucket; - this.commonPrefixes = commonPrefixes; - this.delimiter = delimiter; - this.encodingType = encodingType; - this.fetchOwner = fetchOwner; - this.id = id; - this.keys = keys; - this.maxKeys = maxKeys; - this.owners = owners; - this.prefix = prefix; - this.startAfter = startAfter; - } + private List owners; + private @Nullable String prefix; + private @Nullable String startAfter; + private GetObjectsResult() {} public String bucket() { return this.bucket; } @@ -125,7 +100,7 @@ public static Builder builder() { public static Builder builder(GetObjectsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private List commonPrefixes; @@ -138,11 +113,7 @@ public static final class Builder { private List owners; private @Nullable String prefix; private @Nullable String startAfter; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetObjectsResult defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -158,10 +129,12 @@ public Builder(GetObjectsResult defaults) { this.startAfter = defaults.startAfter; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder commonPrefixes(List commonPrefixes) { this.commonPrefixes = Objects.requireNonNull(commonPrefixes); return this; @@ -169,22 +142,27 @@ public Builder commonPrefixes(List commonPrefixes) { public Builder commonPrefixes(String... commonPrefixes) { return commonPrefixes(List.of(commonPrefixes)); } + @CustomType.Setter public Builder delimiter(@Nullable String delimiter) { this.delimiter = delimiter; return this; } + @CustomType.Setter public Builder encodingType(@Nullable String encodingType) { this.encodingType = encodingType; return this; } + @CustomType.Setter public Builder fetchOwner(@Nullable Boolean fetchOwner) { this.fetchOwner = fetchOwner; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder keys(List keys) { this.keys = Objects.requireNonNull(keys); return this; @@ -192,10 +170,12 @@ public Builder keys(List keys) { public Builder keys(String... keys) { return keys(List.of(keys)); } + @CustomType.Setter public Builder maxKeys(@Nullable Integer maxKeys) { this.maxKeys = maxKeys; return this; } + @CustomType.Setter public Builder owners(List owners) { this.owners = Objects.requireNonNull(owners); return this; @@ -203,15 +183,30 @@ public Builder owners(List owners) { public Builder owners(String... owners) { return owners(List.of(owners)); } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder startAfter(@Nullable String startAfter) { this.startAfter = startAfter; return this; - } public GetObjectsResult build() { - return new GetObjectsResult(bucket, commonPrefixes, delimiter, encodingType, fetchOwner, id, keys, maxKeys, owners, prefix, startAfter); + } + public GetObjectsResult build() { + final var o = new GetObjectsResult(); + o.bucket = bucket; + o.commonPrefixes = commonPrefixes; + o.delimiter = delimiter; + o.encodingType = encodingType; + o.fetchOwner = fetchOwner; + o.id = id; + o.keys = keys; + o.maxKeys = maxKeys; + o.owners = owners; + o.prefix = prefix; + o.startAfter = startAfter; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestination.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestination.java index d1671fbab19..956e272aa0a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestination.java @@ -13,13 +13,9 @@ public final class InventoryDestination { * @return The S3 bucket configuration where inventory results are published (documented below). * */ - private final InventoryDestinationBucket bucket; - - @CustomType.Constructor - private InventoryDestination(@CustomType.Parameter("bucket") InventoryDestinationBucket bucket) { - this.bucket = bucket; - } + private InventoryDestinationBucket bucket; + private InventoryDestination() {} /** * @return The S3 bucket configuration where inventory results are published (documented below). * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(InventoryDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private InventoryDestinationBucket bucket; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InventoryDestination defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; } + @CustomType.Setter public Builder bucket(InventoryDestinationBucket bucket) { this.bucket = Objects.requireNonNull(bucket); return this; - } public InventoryDestination build() { - return new InventoryDestination(bucket); + } + public InventoryDestination build() { + final var o = new InventoryDestination(); + o.bucket = bucket; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucket.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucket.java index 466b6ef49f4..05310cc67a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucket.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucket.java @@ -16,42 +16,29 @@ public final class InventoryDestinationBucket { * @return The ID of the account that owns the destination bucket. Recommended to be set to prevent problems if the destination bucket ownership changes. * */ - private final @Nullable String accountId; + private @Nullable String accountId; /** * @return The Amazon S3 bucket ARN of the destination. * */ - private final String bucketArn; + private String bucketArn; /** * @return Contains the type of server-side encryption to use to encrypt the inventory (documented below). * */ - private final @Nullable InventoryDestinationBucketEncryption encryption; + private @Nullable InventoryDestinationBucketEncryption encryption; /** * @return Specifies the output format of the inventory results. Can be `CSV`, [`ORC`](https://orc.apache.org/) or [`Parquet`](https://parquet.apache.org/). * */ - private final String format; + private String format; /** * @return The prefix that is prepended to all inventory results. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private InventoryDestinationBucket( - @CustomType.Parameter("accountId") @Nullable String accountId, - @CustomType.Parameter("bucketArn") String bucketArn, - @CustomType.Parameter("encryption") @Nullable InventoryDestinationBucketEncryption encryption, - @CustomType.Parameter("format") String format, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.accountId = accountId; - this.bucketArn = bucketArn; - this.encryption = encryption; - this.format = format; - this.prefix = prefix; - } + private @Nullable String prefix; + private InventoryDestinationBucket() {} /** * @return The ID of the account that owns the destination bucket. Recommended to be set to prevent problems if the destination bucket ownership changes. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(InventoryDestinationBucket defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String accountId; private String bucketArn; private @Nullable InventoryDestinationBucketEncryption encryption; private String format; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InventoryDestinationBucket defaults) { Objects.requireNonNull(defaults); this.accountId = defaults.accountId; @@ -116,27 +99,39 @@ public Builder(InventoryDestinationBucket defaults) { this.prefix = defaults.prefix; } + @CustomType.Setter public Builder accountId(@Nullable String accountId) { this.accountId = accountId; return this; } + @CustomType.Setter public Builder bucketArn(String bucketArn) { this.bucketArn = Objects.requireNonNull(bucketArn); return this; } + @CustomType.Setter public Builder encryption(@Nullable InventoryDestinationBucketEncryption encryption) { this.encryption = encryption; return this; } + @CustomType.Setter public Builder format(String format) { this.format = Objects.requireNonNull(format); return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public InventoryDestinationBucket build() { - return new InventoryDestinationBucket(accountId, bucketArn, encryption, format, prefix); + } + public InventoryDestinationBucket build() { + final var o = new InventoryDestinationBucket(); + o.accountId = accountId; + o.bucketArn = bucketArn; + o.encryption = encryption; + o.format = format; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucketEncryption.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucketEncryption.java index 8500c09ada4..3c36ff4a676 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucketEncryption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucketEncryption.java @@ -16,21 +16,14 @@ public final class InventoryDestinationBucketEncryption { * @return Specifies to use server-side encryption with AWS KMS-managed keys to encrypt the inventory file (documented below). * */ - private final @Nullable InventoryDestinationBucketEncryptionSseKms sseKms; + private @Nullable InventoryDestinationBucketEncryptionSseKms sseKms; /** * @return Specifies to use server-side encryption with Amazon S3-managed keys (SSE-S3) to encrypt the inventory file. * */ - private final @Nullable InventoryDestinationBucketEncryptionSseS3 sseS3; - - @CustomType.Constructor - private InventoryDestinationBucketEncryption( - @CustomType.Parameter("sseKms") @Nullable InventoryDestinationBucketEncryptionSseKms sseKms, - @CustomType.Parameter("sseS3") @Nullable InventoryDestinationBucketEncryptionSseS3 sseS3) { - this.sseKms = sseKms; - this.sseS3 = sseS3; - } + private @Nullable InventoryDestinationBucketEncryptionSseS3 sseS3; + private InventoryDestinationBucketEncryption() {} /** * @return Specifies to use server-side encryption with AWS KMS-managed keys to encrypt the inventory file (documented below). * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(InventoryDestinationBucketEncryption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable InventoryDestinationBucketEncryptionSseKms sseKms; private @Nullable InventoryDestinationBucketEncryptionSseS3 sseS3; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InventoryDestinationBucketEncryption defaults) { Objects.requireNonNull(defaults); this.sseKms = defaults.sseKms; this.sseS3 = defaults.sseS3; } + @CustomType.Setter public Builder sseKms(@Nullable InventoryDestinationBucketEncryptionSseKms sseKms) { this.sseKms = sseKms; return this; } + @CustomType.Setter public Builder sseS3(@Nullable InventoryDestinationBucketEncryptionSseS3 sseS3) { this.sseS3 = sseS3; return this; - } public InventoryDestinationBucketEncryption build() { - return new InventoryDestinationBucketEncryption(sseKms, sseS3); + } + public InventoryDestinationBucketEncryption build() { + final var o = new InventoryDestinationBucketEncryption(); + o.sseKms = sseKms; + o.sseS3 = sseS3; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucketEncryptionSseKms.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucketEncryptionSseKms.java index f10beb4e3eb..e5e62e78ddb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucketEncryptionSseKms.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucketEncryptionSseKms.java @@ -13,13 +13,9 @@ public final class InventoryDestinationBucketEncryptionSseKms { * @return The ARN of the KMS customer master key (CMK) used to encrypt the inventory file. * */ - private final String keyId; - - @CustomType.Constructor - private InventoryDestinationBucketEncryptionSseKms(@CustomType.Parameter("keyId") String keyId) { - this.keyId = keyId; - } + private String keyId; + private InventoryDestinationBucketEncryptionSseKms() {} /** * @return The ARN of the KMS customer master key (CMK) used to encrypt the inventory file. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(InventoryDestinationBucketEncryptionSseKms defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String keyId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InventoryDestinationBucketEncryptionSseKms defaults) { Objects.requireNonNull(defaults); this.keyId = defaults.keyId; } + @CustomType.Setter public Builder keyId(String keyId) { this.keyId = Objects.requireNonNull(keyId); return this; - } public InventoryDestinationBucketEncryptionSseKms build() { - return new InventoryDestinationBucketEncryptionSseKms(keyId); + } + public InventoryDestinationBucketEncryptionSseKms build() { + final var o = new InventoryDestinationBucketEncryptionSseKms(); + o.keyId = keyId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucketEncryptionSseS3.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucketEncryptionSseS3.java index 10d9d52d151..bc413e0961f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucketEncryptionSseS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryDestinationBucketEncryptionSseS3.java @@ -8,10 +8,7 @@ @CustomType public final class InventoryDestinationBucketEncryptionSseS3 { - @CustomType.Constructor - private InventoryDestinationBucketEncryptionSseS3() { - } - + private InventoryDestinationBucketEncryptionSseS3() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(InventoryDestinationBucketEncryptionSseS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InventoryDestinationBucketEncryptionSseS3 defaults) { Objects.requireNonNull(defaults); } + public InventoryDestinationBucketEncryptionSseS3 build() { - return new InventoryDestinationBucketEncryptionSseS3(); + final var o = new InventoryDestinationBucketEncryptionSseS3(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryFilter.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryFilter.java index e9aff80cff6..01be64448e5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventoryFilter.java @@ -15,13 +15,9 @@ public final class InventoryFilter { * @return The prefix that an object must have to be included in the inventory results. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private InventoryFilter(@CustomType.Parameter("prefix") @Nullable String prefix) { - this.prefix = prefix; - } + private @Nullable String prefix; + private InventoryFilter() {} /** * @return The prefix that an object must have to be included in the inventory results. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(InventoryFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InventoryFilter defaults) { Objects.requireNonNull(defaults); this.prefix = defaults.prefix; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public InventoryFilter build() { - return new InventoryFilter(prefix); + } + public InventoryFilter build() { + final var o = new InventoryFilter(); + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventorySchedule.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventorySchedule.java index bf46daf03ae..0439ddef7ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventorySchedule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/InventorySchedule.java @@ -13,13 +13,9 @@ public final class InventorySchedule { * @return Specifies how frequently inventory results are produced. Valid values: `Daily`, `Weekly`. * */ - private final String frequency; - - @CustomType.Constructor - private InventorySchedule(@CustomType.Parameter("frequency") String frequency) { - this.frequency = frequency; - } + private String frequency; + private InventorySchedule() {} /** * @return Specifies how frequently inventory results are produced. Valid values: `Daily`, `Weekly`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(InventorySchedule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String frequency; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InventorySchedule defaults) { Objects.requireNonNull(defaults); this.frequency = defaults.frequency; } + @CustomType.Setter public Builder frequency(String frequency) { this.frequency = Objects.requireNonNull(frequency); return this; - } public InventorySchedule build() { - return new InventorySchedule(frequency); + } + public InventorySchedule build() { + final var o = new InventorySchedule(); + o.frequency = frequency; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/ObjectCopyGrant.java b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/ObjectCopyGrant.java index a30bbb17ffb..08b388f0a87 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/ObjectCopyGrant.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/outputs/ObjectCopyGrant.java @@ -16,42 +16,29 @@ public final class ObjectCopyGrant { * @return Email address of the grantee. Used only when `type` is `AmazonCustomerByEmail`. * */ - private final @Nullable String email; + private @Nullable String email; /** * @return The canonical user ID of the grantee. Used only when `type` is `CanonicalUser`. * */ - private final @Nullable String id; + private @Nullable String id; /** * @return List of permissions to grant to grantee. Valid values are `READ`, `READ_ACP`, `WRITE_ACP`, `FULL_CONTROL`. * */ - private final List permissions; + private List permissions; /** * @return - Type of grantee. Valid values are `CanonicalUser`, `Group`, and `AmazonCustomerByEmail`. * */ - private final String type; + private String type; /** * @return URI of the grantee group. Used only when `type` is `Group`. * */ - private final @Nullable String uri; - - @CustomType.Constructor - private ObjectCopyGrant( - @CustomType.Parameter("email") @Nullable String email, - @CustomType.Parameter("id") @Nullable String id, - @CustomType.Parameter("permissions") List permissions, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("uri") @Nullable String uri) { - this.email = email; - this.id = id; - this.permissions = permissions; - this.type = type; - this.uri = uri; - } + private @Nullable String uri; + private ObjectCopyGrant() {} /** * @return Email address of the grantee. Used only when `type` is `AmazonCustomerByEmail`. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ObjectCopyGrant defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String email; private @Nullable String id; private List permissions; private String type; private @Nullable String uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ObjectCopyGrant defaults) { Objects.requireNonNull(defaults); this.email = defaults.email; @@ -116,14 +99,17 @@ public Builder(ObjectCopyGrant defaults) { this.uri = defaults.uri; } + @CustomType.Setter public Builder email(@Nullable String email) { this.email = email; return this; } + @CustomType.Setter public Builder id(@Nullable String id) { this.id = id; return this; } + @CustomType.Setter public Builder permissions(List permissions) { this.permissions = Objects.requireNonNull(permissions); return this; @@ -131,15 +117,24 @@ public Builder permissions(List permissions) { public Builder permissions(String... permissions) { return permissions(List.of(permissions)); } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder uri(@Nullable String uri) { this.uri = uri; return this; - } public ObjectCopyGrant build() { - return new ObjectCopyGrant(email, id, permissions, type, uri); + } + public ObjectCopyGrant build() { + final var o = new ObjectCopyGrant(); + o.email = email; + o.id = id; + o.permissions = permissions; + o.type = type; + o.uri = uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRule.java b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRule.java index f9df74cb46a..6933bd9053c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRule.java @@ -18,42 +18,29 @@ public final class BucketLifecycleConfigurationRule { * @return Configuration block containing settings for abort incomplete multipart upload. * */ - private final @Nullable BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload; + private @Nullable BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload; /** * @return Configuration block containing settings for expiration of objects. * */ - private final @Nullable BucketLifecycleConfigurationRuleExpiration expiration; + private @Nullable BucketLifecycleConfigurationRuleExpiration expiration; /** * @return Configuration block containing settings for filtering. * */ - private final @Nullable BucketLifecycleConfigurationRuleFilter filter; + private @Nullable BucketLifecycleConfigurationRuleFilter filter; /** * @return Unique identifier for the rule. * */ - private final String id; + private String id; /** * @return Status of the rule. Valid values: `Enabled` and `Disabled`. Defaults to `Enabled`. * */ - private final @Nullable String status; - - @CustomType.Constructor - private BucketLifecycleConfigurationRule( - @CustomType.Parameter("abortIncompleteMultipartUpload") @Nullable BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload, - @CustomType.Parameter("expiration") @Nullable BucketLifecycleConfigurationRuleExpiration expiration, - @CustomType.Parameter("filter") @Nullable BucketLifecycleConfigurationRuleFilter filter, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("status") @Nullable String status) { - this.abortIncompleteMultipartUpload = abortIncompleteMultipartUpload; - this.expiration = expiration; - this.filter = filter; - this.id = id; - this.status = status; - } + private @Nullable String status; + private BucketLifecycleConfigurationRule() {} /** * @return Configuration block containing settings for abort incomplete multipart upload. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload; private @Nullable BucketLifecycleConfigurationRuleExpiration expiration; private @Nullable BucketLifecycleConfigurationRuleFilter filter; private String id; private @Nullable String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationRule defaults) { Objects.requireNonNull(defaults); this.abortIncompleteMultipartUpload = defaults.abortIncompleteMultipartUpload; @@ -118,27 +101,39 @@ public Builder(BucketLifecycleConfigurationRule defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder abortIncompleteMultipartUpload(@Nullable BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload) { this.abortIncompleteMultipartUpload = abortIncompleteMultipartUpload; return this; } + @CustomType.Setter public Builder expiration(@Nullable BucketLifecycleConfigurationRuleExpiration expiration) { this.expiration = expiration; return this; } + @CustomType.Setter public Builder filter(@Nullable BucketLifecycleConfigurationRuleFilter filter) { this.filter = filter; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; - } public BucketLifecycleConfigurationRule build() { - return new BucketLifecycleConfigurationRule(abortIncompleteMultipartUpload, expiration, filter, id, status); + } + public BucketLifecycleConfigurationRule build() { + final var o = new BucketLifecycleConfigurationRule(); + o.abortIncompleteMultipartUpload = abortIncompleteMultipartUpload; + o.expiration = expiration; + o.filter = filter; + o.id = id; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload.java b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload.java index 9935710a313..4d2fb8c07b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload.java @@ -13,13 +13,9 @@ public final class BucketLifecycleConfigurationRuleAbortIncompleteMultipartUploa * @return Number of days after which Amazon S3 aborts an incomplete multipart upload. * */ - private final Integer daysAfterInitiation; - - @CustomType.Constructor - private BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload(@CustomType.Parameter("daysAfterInitiation") Integer daysAfterInitiation) { - this.daysAfterInitiation = daysAfterInitiation; - } + private Integer daysAfterInitiation; + private BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload() {} /** * @return Number of days after which Amazon S3 aborts an incomplete multipart upload. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer daysAfterInitiation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload defaults) { Objects.requireNonNull(defaults); this.daysAfterInitiation = defaults.daysAfterInitiation; } + @CustomType.Setter public Builder daysAfterInitiation(Integer daysAfterInitiation) { this.daysAfterInitiation = Objects.requireNonNull(daysAfterInitiation); return this; - } public BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload build() { - return new BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload(daysAfterInitiation); + } + public BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload build() { + final var o = new BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload(); + o.daysAfterInitiation = daysAfterInitiation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRuleExpiration.java b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRuleExpiration.java index f5a6315a4fc..4eb06f99f1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRuleExpiration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRuleExpiration.java @@ -17,28 +17,19 @@ public final class BucketLifecycleConfigurationRuleExpiration { * @return Date the object is to be deleted. Should be in `YYYY-MM-DD` date format, e.g., `2020-09-30`. * */ - private final @Nullable String date; + private @Nullable String date; /** * @return Number of days before the object is to be deleted. * */ - private final @Nullable Integer days; + private @Nullable Integer days; /** * @return Enable to remove a delete marker with no noncurrent versions. Cannot be specified with `date` or `days`. * */ - private final @Nullable Boolean expiredObjectDeleteMarker; - - @CustomType.Constructor - private BucketLifecycleConfigurationRuleExpiration( - @CustomType.Parameter("date") @Nullable String date, - @CustomType.Parameter("days") @Nullable Integer days, - @CustomType.Parameter("expiredObjectDeleteMarker") @Nullable Boolean expiredObjectDeleteMarker) { - this.date = date; - this.days = days; - this.expiredObjectDeleteMarker = expiredObjectDeleteMarker; - } + private @Nullable Boolean expiredObjectDeleteMarker; + private BucketLifecycleConfigurationRuleExpiration() {} /** * @return Date the object is to be deleted. Should be in `YYYY-MM-DD` date format, e.g., `2020-09-30`. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationRuleExpiration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String date; private @Nullable Integer days; private @Nullable Boolean expiredObjectDeleteMarker; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationRuleExpiration defaults) { Objects.requireNonNull(defaults); this.date = defaults.date; @@ -85,19 +72,27 @@ public Builder(BucketLifecycleConfigurationRuleExpiration defaults) { this.expiredObjectDeleteMarker = defaults.expiredObjectDeleteMarker; } + @CustomType.Setter public Builder date(@Nullable String date) { this.date = date; return this; } + @CustomType.Setter public Builder days(@Nullable Integer days) { this.days = days; return this; } + @CustomType.Setter public Builder expiredObjectDeleteMarker(@Nullable Boolean expiredObjectDeleteMarker) { this.expiredObjectDeleteMarker = expiredObjectDeleteMarker; return this; - } public BucketLifecycleConfigurationRuleExpiration build() { - return new BucketLifecycleConfigurationRuleExpiration(date, days, expiredObjectDeleteMarker); + } + public BucketLifecycleConfigurationRuleExpiration build() { + final var o = new BucketLifecycleConfigurationRuleExpiration(); + o.date = date; + o.days = days; + o.expiredObjectDeleteMarker = expiredObjectDeleteMarker; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRuleFilter.java b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRuleFilter.java index 6ec26b5011c..3a0a012bfc6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRuleFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/BucketLifecycleConfigurationRuleFilter.java @@ -16,21 +16,14 @@ public final class BucketLifecycleConfigurationRuleFilter { * @return Object prefix for rule filtering. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return Key-value map of object tags for rule filtering. * */ - private final @Nullable Map tags; - - @CustomType.Constructor - private BucketLifecycleConfigurationRuleFilter( - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("tags") @Nullable Map tags) { - this.prefix = prefix; - this.tags = tags; - } + private @Nullable Map tags; + private BucketLifecycleConfigurationRuleFilter() {} /** * @return Object prefix for rule filtering. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(BucketLifecycleConfigurationRuleFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String prefix; private @Nullable Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(BucketLifecycleConfigurationRuleFilter defaults) { Objects.requireNonNull(defaults); this.prefix = defaults.prefix; this.tags = defaults.tags; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; - } public BucketLifecycleConfigurationRuleFilter build() { - return new BucketLifecycleConfigurationRuleFilter(prefix, tags); + } + public BucketLifecycleConfigurationRuleFilter build() { + final var o = new BucketLifecycleConfigurationRuleFilter(); + o.prefix = prefix; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointDetails.java b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointDetails.java index 43c99212b31..0cae7466992 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointDetails.java @@ -14,20 +14,11 @@ @CustomType public final class MultiRegionAccessPointDetails { - private final String name; - private final @Nullable MultiRegionAccessPointDetailsPublicAccessBlock publicAccessBlock; - private final List regions; - - @CustomType.Constructor - private MultiRegionAccessPointDetails( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("publicAccessBlock") @Nullable MultiRegionAccessPointDetailsPublicAccessBlock publicAccessBlock, - @CustomType.Parameter("regions") List regions) { - this.name = name; - this.publicAccessBlock = publicAccessBlock; - this.regions = regions; - } + private String name; + private @Nullable MultiRegionAccessPointDetailsPublicAccessBlock publicAccessBlock; + private List regions; + private MultiRegionAccessPointDetails() {} public String name() { return this.name; } @@ -45,16 +36,12 @@ public static Builder builder() { public static Builder builder(MultiRegionAccessPointDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private @Nullable MultiRegionAccessPointDetailsPublicAccessBlock publicAccessBlock; private List regions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MultiRegionAccessPointDetails defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -62,22 +49,30 @@ public Builder(MultiRegionAccessPointDetails defaults) { this.regions = defaults.regions; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder publicAccessBlock(@Nullable MultiRegionAccessPointDetailsPublicAccessBlock publicAccessBlock) { this.publicAccessBlock = publicAccessBlock; return this; } + @CustomType.Setter public Builder regions(List regions) { this.regions = Objects.requireNonNull(regions); return this; } public Builder regions(MultiRegionAccessPointDetailsRegion... regions) { return regions(List.of(regions)); - } public MultiRegionAccessPointDetails build() { - return new MultiRegionAccessPointDetails(name, publicAccessBlock, regions); + } + public MultiRegionAccessPointDetails build() { + final var o = new MultiRegionAccessPointDetails(); + o.name = name; + o.publicAccessBlock = publicAccessBlock; + o.regions = regions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointDetailsPublicAccessBlock.java b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointDetailsPublicAccessBlock.java index 1b7833e6e40..0dd39922659 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointDetailsPublicAccessBlock.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointDetailsPublicAccessBlock.java @@ -11,23 +11,12 @@ @CustomType public final class MultiRegionAccessPointDetailsPublicAccessBlock { - private final @Nullable Boolean blockPublicAcls; - private final @Nullable Boolean blockPublicPolicy; - private final @Nullable Boolean ignorePublicAcls; - private final @Nullable Boolean restrictPublicBuckets; - - @CustomType.Constructor - private MultiRegionAccessPointDetailsPublicAccessBlock( - @CustomType.Parameter("blockPublicAcls") @Nullable Boolean blockPublicAcls, - @CustomType.Parameter("blockPublicPolicy") @Nullable Boolean blockPublicPolicy, - @CustomType.Parameter("ignorePublicAcls") @Nullable Boolean ignorePublicAcls, - @CustomType.Parameter("restrictPublicBuckets") @Nullable Boolean restrictPublicBuckets) { - this.blockPublicAcls = blockPublicAcls; - this.blockPublicPolicy = blockPublicPolicy; - this.ignorePublicAcls = ignorePublicAcls; - this.restrictPublicBuckets = restrictPublicBuckets; - } + private @Nullable Boolean blockPublicAcls; + private @Nullable Boolean blockPublicPolicy; + private @Nullable Boolean ignorePublicAcls; + private @Nullable Boolean restrictPublicBuckets; + private MultiRegionAccessPointDetailsPublicAccessBlock() {} public Optional blockPublicAcls() { return Optional.ofNullable(this.blockPublicAcls); } @@ -48,17 +37,13 @@ public static Builder builder() { public static Builder builder(MultiRegionAccessPointDetailsPublicAccessBlock defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean blockPublicAcls; private @Nullable Boolean blockPublicPolicy; private @Nullable Boolean ignorePublicAcls; private @Nullable Boolean restrictPublicBuckets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MultiRegionAccessPointDetailsPublicAccessBlock defaults) { Objects.requireNonNull(defaults); this.blockPublicAcls = defaults.blockPublicAcls; @@ -67,23 +52,33 @@ public Builder(MultiRegionAccessPointDetailsPublicAccessBlock defaults) { this.restrictPublicBuckets = defaults.restrictPublicBuckets; } + @CustomType.Setter public Builder blockPublicAcls(@Nullable Boolean blockPublicAcls) { this.blockPublicAcls = blockPublicAcls; return this; } + @CustomType.Setter public Builder blockPublicPolicy(@Nullable Boolean blockPublicPolicy) { this.blockPublicPolicy = blockPublicPolicy; return this; } + @CustomType.Setter public Builder ignorePublicAcls(@Nullable Boolean ignorePublicAcls) { this.ignorePublicAcls = ignorePublicAcls; return this; } + @CustomType.Setter public Builder restrictPublicBuckets(@Nullable Boolean restrictPublicBuckets) { this.restrictPublicBuckets = restrictPublicBuckets; return this; - } public MultiRegionAccessPointDetailsPublicAccessBlock build() { - return new MultiRegionAccessPointDetailsPublicAccessBlock(blockPublicAcls, blockPublicPolicy, ignorePublicAcls, restrictPublicBuckets); + } + public MultiRegionAccessPointDetailsPublicAccessBlock build() { + final var o = new MultiRegionAccessPointDetailsPublicAccessBlock(); + o.blockPublicAcls = blockPublicAcls; + o.blockPublicPolicy = blockPublicPolicy; + o.ignorePublicAcls = ignorePublicAcls; + o.restrictPublicBuckets = restrictPublicBuckets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointDetailsRegion.java b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointDetailsRegion.java index 07584519654..fc4550dec65 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointDetailsRegion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointDetailsRegion.java @@ -9,13 +9,9 @@ @CustomType public final class MultiRegionAccessPointDetailsRegion { - private final String bucket; - - @CustomType.Constructor - private MultiRegionAccessPointDetailsRegion(@CustomType.Parameter("bucket") String bucket) { - this.bucket = bucket; - } + private String bucket; + private MultiRegionAccessPointDetailsRegion() {} public String bucket() { return this.bucket; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(MultiRegionAccessPointDetailsRegion defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MultiRegionAccessPointDetailsRegion defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; - } public MultiRegionAccessPointDetailsRegion build() { - return new MultiRegionAccessPointDetailsRegion(bucket); + } + public MultiRegionAccessPointDetailsRegion build() { + final var o = new MultiRegionAccessPointDetailsRegion(); + o.bucket = bucket; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointPolicyDetails.java b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointPolicyDetails.java index 7d714cebb5f..f9e054b6ae8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointPolicyDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/MultiRegionAccessPointPolicyDetails.java @@ -13,21 +13,14 @@ public final class MultiRegionAccessPointPolicyDetails { * @return The name of the Multi-Region Access Point. * */ - private final String name; + private String name; /** * @return A valid JSON document that specifies the policy that you want to associate with this Multi-Region Access Point. Once applied, the policy can be edited, but not deleted. For more information, see the documentation on [Multi-Region Access Point Permissions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/MultiRegionAccessPointPermissions.html). * */ - private final String policy; - - @CustomType.Constructor - private MultiRegionAccessPointPolicyDetails( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("policy") String policy) { - this.name = name; - this.policy = policy; - } + private String policy; + private MultiRegionAccessPointPolicyDetails() {} /** * @return The name of the Multi-Region Access Point. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(MultiRegionAccessPointPolicyDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String policy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MultiRegionAccessPointPolicyDetails defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.policy = defaults.policy; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder policy(String policy) { this.policy = Objects.requireNonNull(policy); return this; - } public MultiRegionAccessPointPolicyDetails build() { - return new MultiRegionAccessPointPolicyDetails(name, policy); + } + public MultiRegionAccessPointPolicyDetails build() { + final var o = new MultiRegionAccessPointPolicyDetails(); + o.name = name; + o.policy = policy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfiguration.java index 6faf0d3de6e..850c563eea3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfiguration.java @@ -18,35 +18,24 @@ public final class ObjectLambdaAccessPointConfiguration { * @return Allowed features. Valid values: `GetObject-Range`, `GetObject-PartNumber`. * */ - private final @Nullable List allowedFeatures; + private @Nullable List allowedFeatures; /** * @return Whether or not the CloudWatch metrics configuration is enabled. * */ - private final @Nullable Boolean cloudWatchMetricsEnabled; + private @Nullable Boolean cloudWatchMetricsEnabled; /** * @return Standard access point associated with the Object Lambda Access Point. * */ - private final String supportingAccessPoint; + private String supportingAccessPoint; /** * @return List of transformation configurations for the Object Lambda Access Point. See Transformation Configuration below for more details. * */ - private final List transformationConfigurations; - - @CustomType.Constructor - private ObjectLambdaAccessPointConfiguration( - @CustomType.Parameter("allowedFeatures") @Nullable List allowedFeatures, - @CustomType.Parameter("cloudWatchMetricsEnabled") @Nullable Boolean cloudWatchMetricsEnabled, - @CustomType.Parameter("supportingAccessPoint") String supportingAccessPoint, - @CustomType.Parameter("transformationConfigurations") List transformationConfigurations) { - this.allowedFeatures = allowedFeatures; - this.cloudWatchMetricsEnabled = cloudWatchMetricsEnabled; - this.supportingAccessPoint = supportingAccessPoint; - this.transformationConfigurations = transformationConfigurations; - } + private List transformationConfigurations; + private ObjectLambdaAccessPointConfiguration() {} /** * @return Allowed features. Valid values: `GetObject-Range`, `GetObject-PartNumber`. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(ObjectLambdaAccessPointConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List allowedFeatures; private @Nullable Boolean cloudWatchMetricsEnabled; private String supportingAccessPoint; private List transformationConfigurations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ObjectLambdaAccessPointConfiguration defaults) { Objects.requireNonNull(defaults); this.allowedFeatures = defaults.allowedFeatures; @@ -102,6 +87,7 @@ public Builder(ObjectLambdaAccessPointConfiguration defaults) { this.transformationConfigurations = defaults.transformationConfigurations; } + @CustomType.Setter public Builder allowedFeatures(@Nullable List allowedFeatures) { this.allowedFeatures = allowedFeatures; return this; @@ -109,22 +95,31 @@ public Builder allowedFeatures(@Nullable List allowedFeatures) { public Builder allowedFeatures(String... allowedFeatures) { return allowedFeatures(List.of(allowedFeatures)); } + @CustomType.Setter public Builder cloudWatchMetricsEnabled(@Nullable Boolean cloudWatchMetricsEnabled) { this.cloudWatchMetricsEnabled = cloudWatchMetricsEnabled; return this; } + @CustomType.Setter public Builder supportingAccessPoint(String supportingAccessPoint) { this.supportingAccessPoint = Objects.requireNonNull(supportingAccessPoint); return this; } + @CustomType.Setter public Builder transformationConfigurations(List transformationConfigurations) { this.transformationConfigurations = Objects.requireNonNull(transformationConfigurations); return this; } public Builder transformationConfigurations(ObjectLambdaAccessPointConfigurationTransformationConfiguration... transformationConfigurations) { return transformationConfigurations(List.of(transformationConfigurations)); - } public ObjectLambdaAccessPointConfiguration build() { - return new ObjectLambdaAccessPointConfiguration(allowedFeatures, cloudWatchMetricsEnabled, supportingAccessPoint, transformationConfigurations); + } + public ObjectLambdaAccessPointConfiguration build() { + final var o = new ObjectLambdaAccessPointConfiguration(); + o.allowedFeatures = allowedFeatures; + o.cloudWatchMetricsEnabled = cloudWatchMetricsEnabled; + o.supportingAccessPoint = supportingAccessPoint; + o.transformationConfigurations = transformationConfigurations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfigurationTransformationConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfigurationTransformationConfiguration.java index 5a6b03acbbf..1ca40fc73b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfigurationTransformationConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfigurationTransformationConfiguration.java @@ -15,21 +15,14 @@ public final class ObjectLambdaAccessPointConfigurationTransformationConfigurati * @return The actions of an Object Lambda Access Point configuration. Valid values: `GetObject`. * */ - private final List actions; + private List actions; /** * @return The content transformation of an Object Lambda Access Point configuration. See Content Transformation below for more details. * */ - private final ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation contentTransformation; - - @CustomType.Constructor - private ObjectLambdaAccessPointConfigurationTransformationConfiguration( - @CustomType.Parameter("actions") List actions, - @CustomType.Parameter("contentTransformation") ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation contentTransformation) { - this.actions = actions; - this.contentTransformation = contentTransformation; - } + private ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation contentTransformation; + private ObjectLambdaAccessPointConfigurationTransformationConfiguration() {} /** * @return The actions of an Object Lambda Access Point configuration. Valid values: `GetObject`. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(ObjectLambdaAccessPointConfigurationTransformationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List actions; private ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation contentTransformation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ObjectLambdaAccessPointConfigurationTransformationConfiguration defaults) { Objects.requireNonNull(defaults); this.actions = defaults.actions; this.contentTransformation = defaults.contentTransformation; } + @CustomType.Setter public Builder actions(List actions) { this.actions = Objects.requireNonNull(actions); return this; @@ -74,11 +64,16 @@ public Builder actions(List actions) { public Builder actions(String... actions) { return actions(List.of(actions)); } + @CustomType.Setter public Builder contentTransformation(ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation contentTransformation) { this.contentTransformation = Objects.requireNonNull(contentTransformation); return this; - } public ObjectLambdaAccessPointConfigurationTransformationConfiguration build() { - return new ObjectLambdaAccessPointConfigurationTransformationConfiguration(actions, contentTransformation); + } + public ObjectLambdaAccessPointConfigurationTransformationConfiguration build() { + final var o = new ObjectLambdaAccessPointConfigurationTransformationConfiguration(); + o.actions = actions; + o.contentTransformation = contentTransformation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation.java index 26a5c458e61..de72e1ae938 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation.java @@ -13,13 +13,9 @@ public final class ObjectLambdaAccessPointConfigurationTransformationConfigurati * @return Configuration for an AWS Lambda function. See AWS Lambda below for more details. * */ - private final ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda awsLambda; - - @CustomType.Constructor - private ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation(@CustomType.Parameter("awsLambda") ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda awsLambda) { - this.awsLambda = awsLambda; - } + private ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda awsLambda; + private ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation() {} /** * @return Configuration for an AWS Lambda function. See AWS Lambda below for more details. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda awsLambda; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation defaults) { Objects.requireNonNull(defaults); this.awsLambda = defaults.awsLambda; } + @CustomType.Setter public Builder awsLambda(ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda awsLambda) { this.awsLambda = Objects.requireNonNull(awsLambda); return this; - } public ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation build() { - return new ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation(awsLambda); + } + public ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation build() { + final var o = new ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformation(); + o.awsLambda = awsLambda; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda.java b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda.java index b4d03159d48..1fb9232c0ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3control/outputs/ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda.java @@ -15,21 +15,14 @@ public final class ObjectLambdaAccessPointConfigurationTransformationConfigurati * @return The Amazon Resource Name (ARN) of the AWS Lambda function. * */ - private final String functionArn; + private String functionArn; /** * @return Additional JSON that provides supplemental data to the Lambda function used to transform objects. * */ - private final @Nullable String functionPayload; - - @CustomType.Constructor - private ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda( - @CustomType.Parameter("functionArn") String functionArn, - @CustomType.Parameter("functionPayload") @Nullable String functionPayload) { - this.functionArn = functionArn; - this.functionPayload = functionPayload; - } + private @Nullable String functionPayload; + private ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda() {} /** * @return The Amazon Resource Name (ARN) of the AWS Lambda function. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String functionArn; private @Nullable String functionPayload; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda defaults) { Objects.requireNonNull(defaults); this.functionArn = defaults.functionArn; this.functionPayload = defaults.functionPayload; } + @CustomType.Setter public Builder functionArn(String functionArn) { this.functionArn = Objects.requireNonNull(functionArn); return this; } + @CustomType.Setter public Builder functionPayload(@Nullable String functionPayload) { this.functionPayload = functionPayload; return this; - } public ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda build() { - return new ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda(functionArn, functionPayload); + } + public ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda build() { + final var o = new ObjectLambdaAccessPointConfigurationTransformationConfigurationContentTransformationAwsLambda(); + o.functionArn = functionArn; + o.functionPayload = functionPayload; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3outposts/outputs/EndpointNetworkInterface.java b/sdk/java/src/main/java/com/pulumi/aws/s3outposts/outputs/EndpointNetworkInterface.java index 1479629b67d..631fa4158ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3outposts/outputs/EndpointNetworkInterface.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3outposts/outputs/EndpointNetworkInterface.java @@ -15,13 +15,9 @@ public final class EndpointNetworkInterface { * @return Identifier of the Elastic Network Interface (ENI). * */ - private final @Nullable String networkInterfaceId; - - @CustomType.Constructor - private EndpointNetworkInterface(@CustomType.Parameter("networkInterfaceId") @Nullable String networkInterfaceId) { - this.networkInterfaceId = networkInterfaceId; - } + private @Nullable String networkInterfaceId; + private EndpointNetworkInterface() {} /** * @return Identifier of the Elastic Network Interface (ENI). * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(EndpointNetworkInterface defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String networkInterfaceId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointNetworkInterface defaults) { Objects.requireNonNull(defaults); this.networkInterfaceId = defaults.networkInterfaceId; } + @CustomType.Setter public Builder networkInterfaceId(@Nullable String networkInterfaceId) { this.networkInterfaceId = networkInterfaceId; return this; - } public EndpointNetworkInterface build() { - return new EndpointNetworkInterface(networkInterfaceId); + } + public EndpointNetworkInterface build() { + final var o = new EndpointNetworkInterface(); + o.networkInterfaceId = networkInterfaceId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppImageConfigKernelGatewayImageConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppImageConfigKernelGatewayImageConfig.java index c4e5c8abc6b..1fdb53a66e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppImageConfigKernelGatewayImageConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppImageConfigKernelGatewayImageConfig.java @@ -16,21 +16,14 @@ public final class AppImageConfigKernelGatewayImageConfig { * @return The URL where the Git repository is located. See File System Config details below. * */ - private final @Nullable AppImageConfigKernelGatewayImageConfigFileSystemConfig fileSystemConfig; + private @Nullable AppImageConfigKernelGatewayImageConfigFileSystemConfig fileSystemConfig; /** * @return The default branch for the Git repository. See Kernel Spec details below. * */ - private final AppImageConfigKernelGatewayImageConfigKernelSpec kernelSpec; - - @CustomType.Constructor - private AppImageConfigKernelGatewayImageConfig( - @CustomType.Parameter("fileSystemConfig") @Nullable AppImageConfigKernelGatewayImageConfigFileSystemConfig fileSystemConfig, - @CustomType.Parameter("kernelSpec") AppImageConfigKernelGatewayImageConfigKernelSpec kernelSpec) { - this.fileSystemConfig = fileSystemConfig; - this.kernelSpec = kernelSpec; - } + private AppImageConfigKernelGatewayImageConfigKernelSpec kernelSpec; + private AppImageConfigKernelGatewayImageConfig() {} /** * @return The URL where the Git repository is located. See File System Config details below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(AppImageConfigKernelGatewayImageConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable AppImageConfigKernelGatewayImageConfigFileSystemConfig fileSystemConfig; private AppImageConfigKernelGatewayImageConfigKernelSpec kernelSpec; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AppImageConfigKernelGatewayImageConfig defaults) { Objects.requireNonNull(defaults); this.fileSystemConfig = defaults.fileSystemConfig; this.kernelSpec = defaults.kernelSpec; } + @CustomType.Setter public Builder fileSystemConfig(@Nullable AppImageConfigKernelGatewayImageConfigFileSystemConfig fileSystemConfig) { this.fileSystemConfig = fileSystemConfig; return this; } + @CustomType.Setter public Builder kernelSpec(AppImageConfigKernelGatewayImageConfigKernelSpec kernelSpec) { this.kernelSpec = Objects.requireNonNull(kernelSpec); return this; - } public AppImageConfigKernelGatewayImageConfig build() { - return new AppImageConfigKernelGatewayImageConfig(fileSystemConfig, kernelSpec); + } + public AppImageConfigKernelGatewayImageConfig build() { + final var o = new AppImageConfigKernelGatewayImageConfig(); + o.fileSystemConfig = fileSystemConfig; + o.kernelSpec = kernelSpec; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppImageConfigKernelGatewayImageConfigFileSystemConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppImageConfigKernelGatewayImageConfigFileSystemConfig.java index 1fdcadc1ea0..990b0617d06 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppImageConfigKernelGatewayImageConfigFileSystemConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppImageConfigKernelGatewayImageConfigFileSystemConfig.java @@ -16,28 +16,19 @@ public final class AppImageConfigKernelGatewayImageConfigFileSystemConfig { * @return The default POSIX group ID (GID). If not specified, defaults to `100`. Valid values are `0` and `100`. * */ - private final @Nullable Integer defaultGid; + private @Nullable Integer defaultGid; /** * @return The default POSIX user ID (UID). If not specified, defaults to `1000`. Valid values are `0` and `1000`. * */ - private final @Nullable Integer defaultUid; + private @Nullable Integer defaultUid; /** * @return The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to `/home/sagemaker-user`. * */ - private final @Nullable String mountPath; - - @CustomType.Constructor - private AppImageConfigKernelGatewayImageConfigFileSystemConfig( - @CustomType.Parameter("defaultGid") @Nullable Integer defaultGid, - @CustomType.Parameter("defaultUid") @Nullable Integer defaultUid, - @CustomType.Parameter("mountPath") @Nullable String mountPath) { - this.defaultGid = defaultGid; - this.defaultUid = defaultUid; - this.mountPath = mountPath; - } + private @Nullable String mountPath; + private AppImageConfigKernelGatewayImageConfigFileSystemConfig() {} /** * @return The default POSIX group ID (GID). If not specified, defaults to `100`. Valid values are `0` and `100`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(AppImageConfigKernelGatewayImageConfigFileSystemConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer defaultGid; private @Nullable Integer defaultUid; private @Nullable String mountPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AppImageConfigKernelGatewayImageConfigFileSystemConfig defaults) { Objects.requireNonNull(defaults); this.defaultGid = defaults.defaultGid; @@ -84,19 +71,27 @@ public Builder(AppImageConfigKernelGatewayImageConfigFileSystemConfig defaults) this.mountPath = defaults.mountPath; } + @CustomType.Setter public Builder defaultGid(@Nullable Integer defaultGid) { this.defaultGid = defaultGid; return this; } + @CustomType.Setter public Builder defaultUid(@Nullable Integer defaultUid) { this.defaultUid = defaultUid; return this; } + @CustomType.Setter public Builder mountPath(@Nullable String mountPath) { this.mountPath = mountPath; return this; - } public AppImageConfigKernelGatewayImageConfigFileSystemConfig build() { - return new AppImageConfigKernelGatewayImageConfigFileSystemConfig(defaultGid, defaultUid, mountPath); + } + public AppImageConfigKernelGatewayImageConfigFileSystemConfig build() { + final var o = new AppImageConfigKernelGatewayImageConfigFileSystemConfig(); + o.defaultGid = defaultGid; + o.defaultUid = defaultUid; + o.mountPath = mountPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppImageConfigKernelGatewayImageConfigKernelSpec.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppImageConfigKernelGatewayImageConfigKernelSpec.java index b10fe4cee35..b196c266722 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppImageConfigKernelGatewayImageConfigKernelSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppImageConfigKernelGatewayImageConfigKernelSpec.java @@ -15,21 +15,14 @@ public final class AppImageConfigKernelGatewayImageConfigKernelSpec { * @return The display name of the kernel. * */ - private final @Nullable String displayName; + private @Nullable String displayName; /** * @return The name of the kernel. * */ - private final String name; - - @CustomType.Constructor - private AppImageConfigKernelGatewayImageConfigKernelSpec( - @CustomType.Parameter("displayName") @Nullable String displayName, - @CustomType.Parameter("name") String name) { - this.displayName = displayName; - this.name = name; - } + private String name; + private AppImageConfigKernelGatewayImageConfigKernelSpec() {} /** * @return The display name of the kernel. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(AppImageConfigKernelGatewayImageConfigKernelSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String displayName; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AppImageConfigKernelGatewayImageConfigKernelSpec defaults) { Objects.requireNonNull(defaults); this.displayName = defaults.displayName; this.name = defaults.name; } + @CustomType.Setter public Builder displayName(@Nullable String displayName) { this.displayName = displayName; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public AppImageConfigKernelGatewayImageConfigKernelSpec build() { - return new AppImageConfigKernelGatewayImageConfigKernelSpec(displayName, name); + } + public AppImageConfigKernelGatewayImageConfigKernelSpec build() { + final var o = new AppImageConfigKernelGatewayImageConfigKernelSpec(); + o.displayName = displayName; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppResourceSpec.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppResourceSpec.java index 41fdb2930d2..ede1cfd0cfb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppResourceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/AppResourceSpec.java @@ -15,35 +15,24 @@ public final class AppResourceSpec { * @return The instance type that the image version runs on. For valid values see [SageMaker Instance Types](https://docs.aws.amazon.com/sagemaker/latest/dg/notebooks-available-instance-types.html). * */ - private final @Nullable String instanceType; + private @Nullable String instanceType; /** * @return The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. * */ - private final @Nullable String lifecycleConfigArn; + private @Nullable String lifecycleConfigArn; /** * @return The ARN of the SageMaker image that the image version belongs to. * */ - private final @Nullable String sagemakerImageArn; + private @Nullable String sagemakerImageArn; /** * @return The ARN of the image version created on the instance. * */ - private final @Nullable String sagemakerImageVersionArn; - - @CustomType.Constructor - private AppResourceSpec( - @CustomType.Parameter("instanceType") @Nullable String instanceType, - @CustomType.Parameter("lifecycleConfigArn") @Nullable String lifecycleConfigArn, - @CustomType.Parameter("sagemakerImageArn") @Nullable String sagemakerImageArn, - @CustomType.Parameter("sagemakerImageVersionArn") @Nullable String sagemakerImageVersionArn) { - this.instanceType = instanceType; - this.lifecycleConfigArn = lifecycleConfigArn; - this.sagemakerImageArn = sagemakerImageArn; - this.sagemakerImageVersionArn = sagemakerImageVersionArn; - } + private @Nullable String sagemakerImageVersionArn; + private AppResourceSpec() {} /** * @return The instance type that the image version runs on. For valid values see [SageMaker Instance Types](https://docs.aws.amazon.com/sagemaker/latest/dg/notebooks-available-instance-types.html). * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(AppResourceSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String instanceType; private @Nullable String lifecycleConfigArn; private @Nullable String sagemakerImageArn; private @Nullable String sagemakerImageVersionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AppResourceSpec defaults) { Objects.requireNonNull(defaults); this.instanceType = defaults.instanceType; @@ -99,23 +84,33 @@ public Builder(AppResourceSpec defaults) { this.sagemakerImageVersionArn = defaults.sagemakerImageVersionArn; } + @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { this.instanceType = instanceType; return this; } + @CustomType.Setter public Builder lifecycleConfigArn(@Nullable String lifecycleConfigArn) { this.lifecycleConfigArn = lifecycleConfigArn; return this; } + @CustomType.Setter public Builder sagemakerImageArn(@Nullable String sagemakerImageArn) { this.sagemakerImageArn = sagemakerImageArn; return this; } + @CustomType.Setter public Builder sagemakerImageVersionArn(@Nullable String sagemakerImageVersionArn) { this.sagemakerImageVersionArn = sagemakerImageVersionArn; return this; - } public AppResourceSpec build() { - return new AppResourceSpec(instanceType, lifecycleConfigArn, sagemakerImageArn, sagemakerImageVersionArn); + } + public AppResourceSpec build() { + final var o = new AppResourceSpec(); + o.instanceType = instanceType; + o.lifecycleConfigArn = lifecycleConfigArn; + o.sagemakerImageArn = sagemakerImageArn; + o.sagemakerImageVersionArn = sagemakerImageVersionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/CodeRepositoryGitConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/CodeRepositoryGitConfig.java index dd17a61e44b..fb45d998a2e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/CodeRepositoryGitConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/CodeRepositoryGitConfig.java @@ -15,28 +15,19 @@ public final class CodeRepositoryGitConfig { * @return The default branch for the Git repository. * */ - private final @Nullable String branch; + private @Nullable String branch; /** * @return The URL where the Git repository is located. * */ - private final String repositoryUrl; + private String repositoryUrl; /** * @return The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label of AWSCURRENT and must be in the following format: `{"username": UserName, "password": Password}` * */ - private final @Nullable String secretArn; - - @CustomType.Constructor - private CodeRepositoryGitConfig( - @CustomType.Parameter("branch") @Nullable String branch, - @CustomType.Parameter("repositoryUrl") String repositoryUrl, - @CustomType.Parameter("secretArn") @Nullable String secretArn) { - this.branch = branch; - this.repositoryUrl = repositoryUrl; - this.secretArn = secretArn; - } + private @Nullable String secretArn; + private CodeRepositoryGitConfig() {} /** * @return The default branch for the Git repository. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(CodeRepositoryGitConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String branch; private String repositoryUrl; private @Nullable String secretArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CodeRepositoryGitConfig defaults) { Objects.requireNonNull(defaults); this.branch = defaults.branch; @@ -83,19 +70,27 @@ public Builder(CodeRepositoryGitConfig defaults) { this.secretArn = defaults.secretArn; } + @CustomType.Setter public Builder branch(@Nullable String branch) { this.branch = branch; return this; } + @CustomType.Setter public Builder repositoryUrl(String repositoryUrl) { this.repositoryUrl = Objects.requireNonNull(repositoryUrl); return this; } + @CustomType.Setter public Builder secretArn(@Nullable String secretArn) { this.secretArn = secretArn; return this; - } public CodeRepositoryGitConfig build() { - return new CodeRepositoryGitConfig(branch, repositoryUrl, secretArn); + } + public CodeRepositoryGitConfig build() { + final var o = new CodeRepositoryGitConfig(); + o.branch = branch; + o.repositoryUrl = repositoryUrl; + o.secretArn = secretArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DeviceDevice.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DeviceDevice.java index 54ce9539e18..75ef4ead0b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DeviceDevice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DeviceDevice.java @@ -15,28 +15,19 @@ public final class DeviceDevice { * @return A description for the device. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return The name of the device. * */ - private final String deviceName; + private String deviceName; /** * @return Amazon Web Services Internet of Things (IoT) object name. * */ - private final @Nullable String iotThingName; - - @CustomType.Constructor - private DeviceDevice( - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("deviceName") String deviceName, - @CustomType.Parameter("iotThingName") @Nullable String iotThingName) { - this.description = description; - this.deviceName = deviceName; - this.iotThingName = iotThingName; - } + private @Nullable String iotThingName; + private DeviceDevice() {} /** * @return A description for the device. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(DeviceDevice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String description; private String deviceName; private @Nullable String iotThingName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeviceDevice defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; @@ -83,19 +70,27 @@ public Builder(DeviceDevice defaults) { this.iotThingName = defaults.iotThingName; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder deviceName(String deviceName) { this.deviceName = Objects.requireNonNull(deviceName); return this; } + @CustomType.Setter public Builder iotThingName(@Nullable String iotThingName) { this.iotThingName = iotThingName; return this; - } public DeviceDevice build() { - return new DeviceDevice(description, deviceName, iotThingName); + } + public DeviceDevice build() { + final var o = new DeviceDevice(); + o.description = description; + o.deviceName = deviceName; + o.iotThingName = iotThingName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DeviceFleetOutputConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DeviceFleetOutputConfig.java index a2be650e509..a554c1792b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DeviceFleetOutputConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DeviceFleetOutputConfig.java @@ -15,21 +15,14 @@ public final class DeviceFleetOutputConfig { * @return The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return The Amazon Simple Storage (S3) bucker URI. * */ - private final String s3OutputLocation; - - @CustomType.Constructor - private DeviceFleetOutputConfig( - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("s3OutputLocation") String s3OutputLocation) { - this.kmsKeyId = kmsKeyId; - this.s3OutputLocation = s3OutputLocation; - } + private String s3OutputLocation; + private DeviceFleetOutputConfig() {} /** * @return The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(DeviceFleetOutputConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsKeyId; private String s3OutputLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DeviceFleetOutputConfig defaults) { Objects.requireNonNull(defaults); this.kmsKeyId = defaults.kmsKeyId; this.s3OutputLocation = defaults.s3OutputLocation; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder s3OutputLocation(String s3OutputLocation) { this.s3OutputLocation = Objects.requireNonNull(s3OutputLocation); return this; - } public DeviceFleetOutputConfig build() { - return new DeviceFleetOutputConfig(kmsKeyId, s3OutputLocation); + } + public DeviceFleetOutputConfig build() { + final var o = new DeviceFleetOutputConfig(); + o.kmsKeyId = kmsKeyId; + o.s3OutputLocation = s3OutputLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettings.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettings.java index 0411f42081d..d456655945b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettings.java @@ -20,49 +20,34 @@ public final class DomainDefaultUserSettings { * @return The execution role ARN for the user. * */ - private final String executionRole; + private String executionRole; /** * @return The Jupyter server's app settings. See Jupyter Server App Settings below. * */ - private final @Nullable DomainDefaultUserSettingsJupyterServerAppSettings jupyterServerAppSettings; + private @Nullable DomainDefaultUserSettingsJupyterServerAppSettings jupyterServerAppSettings; /** * @return The kernel gateway app settings. See Kernel Gateway App Settings below. * */ - private final @Nullable DomainDefaultUserSettingsKernelGatewayAppSettings kernelGatewayAppSettings; + private @Nullable DomainDefaultUserSettingsKernelGatewayAppSettings kernelGatewayAppSettings; /** * @return The security groups. * */ - private final @Nullable List securityGroups; + private @Nullable List securityGroups; /** * @return The sharing settings. See Sharing Settings below. * */ - private final @Nullable DomainDefaultUserSettingsSharingSettings sharingSettings; + private @Nullable DomainDefaultUserSettingsSharingSettings sharingSettings; /** * @return The TensorBoard app settings. See TensorBoard App Settings below. * */ - private final @Nullable DomainDefaultUserSettingsTensorBoardAppSettings tensorBoardAppSettings; - - @CustomType.Constructor - private DomainDefaultUserSettings( - @CustomType.Parameter("executionRole") String executionRole, - @CustomType.Parameter("jupyterServerAppSettings") @Nullable DomainDefaultUserSettingsJupyterServerAppSettings jupyterServerAppSettings, - @CustomType.Parameter("kernelGatewayAppSettings") @Nullable DomainDefaultUserSettingsKernelGatewayAppSettings kernelGatewayAppSettings, - @CustomType.Parameter("securityGroups") @Nullable List securityGroups, - @CustomType.Parameter("sharingSettings") @Nullable DomainDefaultUserSettingsSharingSettings sharingSettings, - @CustomType.Parameter("tensorBoardAppSettings") @Nullable DomainDefaultUserSettingsTensorBoardAppSettings tensorBoardAppSettings) { - this.executionRole = executionRole; - this.jupyterServerAppSettings = jupyterServerAppSettings; - this.kernelGatewayAppSettings = kernelGatewayAppSettings; - this.securityGroups = securityGroups; - this.sharingSettings = sharingSettings; - this.tensorBoardAppSettings = tensorBoardAppSettings; - } + private @Nullable DomainDefaultUserSettingsTensorBoardAppSettings tensorBoardAppSettings; + private DomainDefaultUserSettings() {} /** * @return The execution role ARN for the user. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(DomainDefaultUserSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String executionRole; private @Nullable DomainDefaultUserSettingsJupyterServerAppSettings jupyterServerAppSettings; @@ -121,11 +106,7 @@ public static final class Builder { private @Nullable List securityGroups; private @Nullable DomainDefaultUserSettingsSharingSettings sharingSettings; private @Nullable DomainDefaultUserSettingsTensorBoardAppSettings tensorBoardAppSettings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainDefaultUserSettings defaults) { Objects.requireNonNull(defaults); this.executionRole = defaults.executionRole; @@ -136,18 +117,22 @@ public Builder(DomainDefaultUserSettings defaults) { this.tensorBoardAppSettings = defaults.tensorBoardAppSettings; } + @CustomType.Setter public Builder executionRole(String executionRole) { this.executionRole = Objects.requireNonNull(executionRole); return this; } + @CustomType.Setter public Builder jupyterServerAppSettings(@Nullable DomainDefaultUserSettingsJupyterServerAppSettings jupyterServerAppSettings) { this.jupyterServerAppSettings = jupyterServerAppSettings; return this; } + @CustomType.Setter public Builder kernelGatewayAppSettings(@Nullable DomainDefaultUserSettingsKernelGatewayAppSettings kernelGatewayAppSettings) { this.kernelGatewayAppSettings = kernelGatewayAppSettings; return this; } + @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { this.securityGroups = securityGroups; return this; @@ -155,15 +140,25 @@ public Builder securityGroups(@Nullable List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder sharingSettings(@Nullable DomainDefaultUserSettingsSharingSettings sharingSettings) { this.sharingSettings = sharingSettings; return this; } + @CustomType.Setter public Builder tensorBoardAppSettings(@Nullable DomainDefaultUserSettingsTensorBoardAppSettings tensorBoardAppSettings) { this.tensorBoardAppSettings = tensorBoardAppSettings; return this; - } public DomainDefaultUserSettings build() { - return new DomainDefaultUserSettings(executionRole, jupyterServerAppSettings, kernelGatewayAppSettings, securityGroups, sharingSettings, tensorBoardAppSettings); + } + public DomainDefaultUserSettings build() { + final var o = new DomainDefaultUserSettings(); + o.executionRole = executionRole; + o.jupyterServerAppSettings = jupyterServerAppSettings; + o.kernelGatewayAppSettings = kernelGatewayAppSettings; + o.securityGroups = securityGroups; + o.sharingSettings = sharingSettings; + o.tensorBoardAppSettings = tensorBoardAppSettings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsJupyterServerAppSettings.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsJupyterServerAppSettings.java index 268fd2be6dd..b05562a4eb1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsJupyterServerAppSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsJupyterServerAppSettings.java @@ -17,21 +17,14 @@ public final class DomainDefaultUserSettingsJupyterServerAppSettings { * @return The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. * */ - private final @Nullable DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaultResourceSpec; + private @Nullable DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaultResourceSpec; /** * @return The Amazon Resource Name (ARN) of the Lifecycle Configurations. * */ - private final @Nullable List lifecycleConfigArns; - - @CustomType.Constructor - private DomainDefaultUserSettingsJupyterServerAppSettings( - @CustomType.Parameter("defaultResourceSpec") @Nullable DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaultResourceSpec, - @CustomType.Parameter("lifecycleConfigArns") @Nullable List lifecycleConfigArns) { - this.defaultResourceSpec = defaultResourceSpec; - this.lifecycleConfigArns = lifecycleConfigArns; - } + private @Nullable List lifecycleConfigArns; + private DomainDefaultUserSettingsJupyterServerAppSettings() {} /** * @return The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(DomainDefaultUserSettingsJupyterServerAppSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaultResourceSpec; private @Nullable List lifecycleConfigArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainDefaultUserSettingsJupyterServerAppSettings defaults) { Objects.requireNonNull(defaults); this.defaultResourceSpec = defaults.defaultResourceSpec; this.lifecycleConfigArns = defaults.lifecycleConfigArns; } + @CustomType.Setter public Builder defaultResourceSpec(@Nullable DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaultResourceSpec) { this.defaultResourceSpec = defaultResourceSpec; return this; } + @CustomType.Setter public Builder lifecycleConfigArns(@Nullable List lifecycleConfigArns) { this.lifecycleConfigArns = lifecycleConfigArns; return this; } public Builder lifecycleConfigArns(String... lifecycleConfigArns) { return lifecycleConfigArns(List.of(lifecycleConfigArns)); - } public DomainDefaultUserSettingsJupyterServerAppSettings build() { - return new DomainDefaultUserSettingsJupyterServerAppSettings(defaultResourceSpec, lifecycleConfigArns); + } + public DomainDefaultUserSettingsJupyterServerAppSettings build() { + final var o = new DomainDefaultUserSettingsJupyterServerAppSettings(); + o.defaultResourceSpec = defaultResourceSpec; + o.lifecycleConfigArns = lifecycleConfigArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec.java index 1054252041e..770e278e306 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec.java @@ -15,35 +15,24 @@ public final class DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResou * @return The instance type that the image version runs on.. For valid values see [SageMaker Instance Types](https://docs.aws.amazon.com/sagemaker/latest/dg/notebooks-available-instance-types.html). * */ - private final @Nullable String instanceType; + private @Nullable String instanceType; /** * @return The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. * */ - private final @Nullable String lifecycleConfigArn; + private @Nullable String lifecycleConfigArn; /** * @return The ARN of the SageMaker image that the image version belongs to. * */ - private final @Nullable String sagemakerImageArn; + private @Nullable String sagemakerImageArn; /** * @return The ARN of the image version created on the instance. * */ - private final @Nullable String sagemakerImageVersionArn; - - @CustomType.Constructor - private DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec( - @CustomType.Parameter("instanceType") @Nullable String instanceType, - @CustomType.Parameter("lifecycleConfigArn") @Nullable String lifecycleConfigArn, - @CustomType.Parameter("sagemakerImageArn") @Nullable String sagemakerImageArn, - @CustomType.Parameter("sagemakerImageVersionArn") @Nullable String sagemakerImageVersionArn) { - this.instanceType = instanceType; - this.lifecycleConfigArn = lifecycleConfigArn; - this.sagemakerImageArn = sagemakerImageArn; - this.sagemakerImageVersionArn = sagemakerImageVersionArn; - } + private @Nullable String sagemakerImageVersionArn; + private DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec() {} /** * @return The instance type that the image version runs on.. For valid values see [SageMaker Instance Types](https://docs.aws.amazon.com/sagemaker/latest/dg/notebooks-available-instance-types.html). * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String instanceType; private @Nullable String lifecycleConfigArn; private @Nullable String sagemakerImageArn; private @Nullable String sagemakerImageVersionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaults) { Objects.requireNonNull(defaults); this.instanceType = defaults.instanceType; @@ -99,23 +84,33 @@ public Builder(DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceS this.sagemakerImageVersionArn = defaults.sagemakerImageVersionArn; } + @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { this.instanceType = instanceType; return this; } + @CustomType.Setter public Builder lifecycleConfigArn(@Nullable String lifecycleConfigArn) { this.lifecycleConfigArn = lifecycleConfigArn; return this; } + @CustomType.Setter public Builder sagemakerImageArn(@Nullable String sagemakerImageArn) { this.sagemakerImageArn = sagemakerImageArn; return this; } + @CustomType.Setter public Builder sagemakerImageVersionArn(@Nullable String sagemakerImageVersionArn) { this.sagemakerImageVersionArn = sagemakerImageVersionArn; return this; - } public DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec build() { - return new DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec(instanceType, lifecycleConfigArn, sagemakerImageArn, sagemakerImageVersionArn); + } + public DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec build() { + final var o = new DomainDefaultUserSettingsJupyterServerAppSettingsDefaultResourceSpec(); + o.instanceType = instanceType; + o.lifecycleConfigArn = lifecycleConfigArn; + o.sagemakerImageArn = sagemakerImageArn; + o.sagemakerImageVersionArn = sagemakerImageVersionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsKernelGatewayAppSettings.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsKernelGatewayAppSettings.java index ad44da43770..ffd3ff895c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsKernelGatewayAppSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsKernelGatewayAppSettings.java @@ -18,28 +18,19 @@ public final class DomainDefaultUserSettingsKernelGatewayAppSettings { * @return A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. * */ - private final @Nullable List customImages; + private @Nullable List customImages; /** * @return The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. * */ - private final @Nullable DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec defaultResourceSpec; + private @Nullable DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec defaultResourceSpec; /** * @return The Amazon Resource Name (ARN) of the Lifecycle Configurations. * */ - private final @Nullable List lifecycleConfigArns; - - @CustomType.Constructor - private DomainDefaultUserSettingsKernelGatewayAppSettings( - @CustomType.Parameter("customImages") @Nullable List customImages, - @CustomType.Parameter("defaultResourceSpec") @Nullable DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec defaultResourceSpec, - @CustomType.Parameter("lifecycleConfigArns") @Nullable List lifecycleConfigArns) { - this.customImages = customImages; - this.defaultResourceSpec = defaultResourceSpec; - this.lifecycleConfigArns = lifecycleConfigArns; - } + private @Nullable List lifecycleConfigArns; + private DomainDefaultUserSettingsKernelGatewayAppSettings() {} /** * @return A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(DomainDefaultUserSettingsKernelGatewayAppSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List customImages; private @Nullable DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec defaultResourceSpec; private @Nullable List lifecycleConfigArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainDefaultUserSettingsKernelGatewayAppSettings defaults) { Objects.requireNonNull(defaults); this.customImages = defaults.customImages; @@ -86,6 +73,7 @@ public Builder(DomainDefaultUserSettingsKernelGatewayAppSettings defaults) { this.lifecycleConfigArns = defaults.lifecycleConfigArns; } + @CustomType.Setter public Builder customImages(@Nullable List customImages) { this.customImages = customImages; return this; @@ -93,18 +81,25 @@ public Builder customImages(@Nullable List lifecycleConfigArns) { this.lifecycleConfigArns = lifecycleConfigArns; return this; } public Builder lifecycleConfigArns(String... lifecycleConfigArns) { return lifecycleConfigArns(List.of(lifecycleConfigArns)); - } public DomainDefaultUserSettingsKernelGatewayAppSettings build() { - return new DomainDefaultUserSettingsKernelGatewayAppSettings(customImages, defaultResourceSpec, lifecycleConfigArns); + } + public DomainDefaultUserSettingsKernelGatewayAppSettings build() { + final var o = new DomainDefaultUserSettingsKernelGatewayAppSettings(); + o.customImages = customImages; + o.defaultResourceSpec = defaultResourceSpec; + o.lifecycleConfigArns = lifecycleConfigArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage.java index 22a1e501d01..2bb09fcffae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage.java @@ -16,28 +16,19 @@ public final class DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage * @return The name of the App Image Config. * */ - private final String appImageConfigName; + private String appImageConfigName; /** * @return The name of the Custom Image. * */ - private final String imageName; + private String imageName; /** * @return The version number of the Custom Image. * */ - private final @Nullable Integer imageVersionNumber; - - @CustomType.Constructor - private DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage( - @CustomType.Parameter("appImageConfigName") String appImageConfigName, - @CustomType.Parameter("imageName") String imageName, - @CustomType.Parameter("imageVersionNumber") @Nullable Integer imageVersionNumber) { - this.appImageConfigName = appImageConfigName; - this.imageName = imageName; - this.imageVersionNumber = imageVersionNumber; - } + private @Nullable Integer imageVersionNumber; + private DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage() {} /** * @return The name of the App Image Config. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String appImageConfigName; private String imageName; private @Nullable Integer imageVersionNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage defaults) { Objects.requireNonNull(defaults); this.appImageConfigName = defaults.appImageConfigName; @@ -84,19 +71,27 @@ public Builder(DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage defa this.imageVersionNumber = defaults.imageVersionNumber; } + @CustomType.Setter public Builder appImageConfigName(String appImageConfigName) { this.appImageConfigName = Objects.requireNonNull(appImageConfigName); return this; } + @CustomType.Setter public Builder imageName(String imageName) { this.imageName = Objects.requireNonNull(imageName); return this; } + @CustomType.Setter public Builder imageVersionNumber(@Nullable Integer imageVersionNumber) { this.imageVersionNumber = imageVersionNumber; return this; - } public DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage build() { - return new DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage(appImageConfigName, imageName, imageVersionNumber); + } + public DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage build() { + final var o = new DomainDefaultUserSettingsKernelGatewayAppSettingsCustomImage(); + o.appImageConfigName = appImageConfigName; + o.imageName = imageName; + o.imageVersionNumber = imageVersionNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec.java index 6962736c862..ba1355df7f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec.java @@ -15,35 +15,24 @@ public final class DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResou * @return The instance type that the image version runs on.. For valid values see [SageMaker Instance Types](https://docs.aws.amazon.com/sagemaker/latest/dg/notebooks-available-instance-types.html). * */ - private final @Nullable String instanceType; + private @Nullable String instanceType; /** * @return The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. * */ - private final @Nullable String lifecycleConfigArn; + private @Nullable String lifecycleConfigArn; /** * @return The ARN of the SageMaker image that the image version belongs to. * */ - private final @Nullable String sagemakerImageArn; + private @Nullable String sagemakerImageArn; /** * @return The ARN of the image version created on the instance. * */ - private final @Nullable String sagemakerImageVersionArn; - - @CustomType.Constructor - private DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec( - @CustomType.Parameter("instanceType") @Nullable String instanceType, - @CustomType.Parameter("lifecycleConfigArn") @Nullable String lifecycleConfigArn, - @CustomType.Parameter("sagemakerImageArn") @Nullable String sagemakerImageArn, - @CustomType.Parameter("sagemakerImageVersionArn") @Nullable String sagemakerImageVersionArn) { - this.instanceType = instanceType; - this.lifecycleConfigArn = lifecycleConfigArn; - this.sagemakerImageArn = sagemakerImageArn; - this.sagemakerImageVersionArn = sagemakerImageVersionArn; - } + private @Nullable String sagemakerImageVersionArn; + private DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec() {} /** * @return The instance type that the image version runs on.. For valid values see [SageMaker Instance Types](https://docs.aws.amazon.com/sagemaker/latest/dg/notebooks-available-instance-types.html). * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String instanceType; private @Nullable String lifecycleConfigArn; private @Nullable String sagemakerImageArn; private @Nullable String sagemakerImageVersionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec defaults) { Objects.requireNonNull(defaults); this.instanceType = defaults.instanceType; @@ -99,23 +84,33 @@ public Builder(DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceS this.sagemakerImageVersionArn = defaults.sagemakerImageVersionArn; } + @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { this.instanceType = instanceType; return this; } + @CustomType.Setter public Builder lifecycleConfigArn(@Nullable String lifecycleConfigArn) { this.lifecycleConfigArn = lifecycleConfigArn; return this; } + @CustomType.Setter public Builder sagemakerImageArn(@Nullable String sagemakerImageArn) { this.sagemakerImageArn = sagemakerImageArn; return this; } + @CustomType.Setter public Builder sagemakerImageVersionArn(@Nullable String sagemakerImageVersionArn) { this.sagemakerImageVersionArn = sagemakerImageVersionArn; return this; - } public DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec build() { - return new DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec(instanceType, lifecycleConfigArn, sagemakerImageArn, sagemakerImageVersionArn); + } + public DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec build() { + final var o = new DomainDefaultUserSettingsKernelGatewayAppSettingsDefaultResourceSpec(); + o.instanceType = instanceType; + o.lifecycleConfigArn = lifecycleConfigArn; + o.sagemakerImageArn = sagemakerImageArn; + o.sagemakerImageVersionArn = sagemakerImageVersionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsSharingSettings.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsSharingSettings.java index 41ef86491cd..29abcf234ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsSharingSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsSharingSettings.java @@ -15,28 +15,19 @@ public final class DomainDefaultUserSettingsSharingSettings { * @return Whether to include the notebook cell output when sharing the notebook. The default is `Disabled`. Valid values are `Allowed` and `Disabled`. * */ - private final @Nullable String notebookOutputOption; + private @Nullable String notebookOutputOption; /** * @return When `notebook_output_option` is Allowed, the AWS Key Management Service (KMS) encryption key ID used to encrypt the notebook cell output in the Amazon S3 bucket. * */ - private final @Nullable String s3KmsKeyId; + private @Nullable String s3KmsKeyId; /** * @return When `notebook_output_option` is Allowed, the Amazon S3 bucket used to save the notebook cell output. * */ - private final @Nullable String s3OutputPath; - - @CustomType.Constructor - private DomainDefaultUserSettingsSharingSettings( - @CustomType.Parameter("notebookOutputOption") @Nullable String notebookOutputOption, - @CustomType.Parameter("s3KmsKeyId") @Nullable String s3KmsKeyId, - @CustomType.Parameter("s3OutputPath") @Nullable String s3OutputPath) { - this.notebookOutputOption = notebookOutputOption; - this.s3KmsKeyId = s3KmsKeyId; - this.s3OutputPath = s3OutputPath; - } + private @Nullable String s3OutputPath; + private DomainDefaultUserSettingsSharingSettings() {} /** * @return Whether to include the notebook cell output when sharing the notebook. The default is `Disabled`. Valid values are `Allowed` and `Disabled`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(DomainDefaultUserSettingsSharingSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String notebookOutputOption; private @Nullable String s3KmsKeyId; private @Nullable String s3OutputPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainDefaultUserSettingsSharingSettings defaults) { Objects.requireNonNull(defaults); this.notebookOutputOption = defaults.notebookOutputOption; @@ -83,19 +70,27 @@ public Builder(DomainDefaultUserSettingsSharingSettings defaults) { this.s3OutputPath = defaults.s3OutputPath; } + @CustomType.Setter public Builder notebookOutputOption(@Nullable String notebookOutputOption) { this.notebookOutputOption = notebookOutputOption; return this; } + @CustomType.Setter public Builder s3KmsKeyId(@Nullable String s3KmsKeyId) { this.s3KmsKeyId = s3KmsKeyId; return this; } + @CustomType.Setter public Builder s3OutputPath(@Nullable String s3OutputPath) { this.s3OutputPath = s3OutputPath; return this; - } public DomainDefaultUserSettingsSharingSettings build() { - return new DomainDefaultUserSettingsSharingSettings(notebookOutputOption, s3KmsKeyId, s3OutputPath); + } + public DomainDefaultUserSettingsSharingSettings build() { + final var o = new DomainDefaultUserSettingsSharingSettings(); + o.notebookOutputOption = notebookOutputOption; + o.s3KmsKeyId = s3KmsKeyId; + o.s3OutputPath = s3OutputPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsTensorBoardAppSettings.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsTensorBoardAppSettings.java index 7ebb9869cc0..60cca557a17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsTensorBoardAppSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsTensorBoardAppSettings.java @@ -15,13 +15,9 @@ public final class DomainDefaultUserSettingsTensorBoardAppSettings { * @return The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. * */ - private final @Nullable DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaultResourceSpec; - - @CustomType.Constructor - private DomainDefaultUserSettingsTensorBoardAppSettings(@CustomType.Parameter("defaultResourceSpec") @Nullable DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaultResourceSpec) { - this.defaultResourceSpec = defaultResourceSpec; - } + private @Nullable DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaultResourceSpec; + private DomainDefaultUserSettingsTensorBoardAppSettings() {} /** * @return The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DomainDefaultUserSettingsTensorBoardAppSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaultResourceSpec; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainDefaultUserSettingsTensorBoardAppSettings defaults) { Objects.requireNonNull(defaults); this.defaultResourceSpec = defaults.defaultResourceSpec; } + @CustomType.Setter public Builder defaultResourceSpec(@Nullable DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaultResourceSpec) { this.defaultResourceSpec = defaultResourceSpec; return this; - } public DomainDefaultUserSettingsTensorBoardAppSettings build() { - return new DomainDefaultUserSettingsTensorBoardAppSettings(defaultResourceSpec); + } + public DomainDefaultUserSettingsTensorBoardAppSettings build() { + final var o = new DomainDefaultUserSettingsTensorBoardAppSettings(); + o.defaultResourceSpec = defaultResourceSpec; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec.java index 7b500582634..b15c4ad5f55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec.java @@ -15,35 +15,24 @@ public final class DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourc * @return The instance type that the image version runs on.. For valid values see [SageMaker Instance Types](https://docs.aws.amazon.com/sagemaker/latest/dg/notebooks-available-instance-types.html). * */ - private final @Nullable String instanceType; + private @Nullable String instanceType; /** * @return The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. * */ - private final @Nullable String lifecycleConfigArn; + private @Nullable String lifecycleConfigArn; /** * @return The ARN of the SageMaker image that the image version belongs to. * */ - private final @Nullable String sagemakerImageArn; + private @Nullable String sagemakerImageArn; /** * @return The ARN of the image version created on the instance. * */ - private final @Nullable String sagemakerImageVersionArn; - - @CustomType.Constructor - private DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec( - @CustomType.Parameter("instanceType") @Nullable String instanceType, - @CustomType.Parameter("lifecycleConfigArn") @Nullable String lifecycleConfigArn, - @CustomType.Parameter("sagemakerImageArn") @Nullable String sagemakerImageArn, - @CustomType.Parameter("sagemakerImageVersionArn") @Nullable String sagemakerImageVersionArn) { - this.instanceType = instanceType; - this.lifecycleConfigArn = lifecycleConfigArn; - this.sagemakerImageArn = sagemakerImageArn; - this.sagemakerImageVersionArn = sagemakerImageVersionArn; - } + private @Nullable String sagemakerImageVersionArn; + private DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec() {} /** * @return The instance type that the image version runs on.. For valid values see [SageMaker Instance Types](https://docs.aws.amazon.com/sagemaker/latest/dg/notebooks-available-instance-types.html). * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String instanceType; private @Nullable String lifecycleConfigArn; private @Nullable String sagemakerImageArn; private @Nullable String sagemakerImageVersionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaults) { Objects.requireNonNull(defaults); this.instanceType = defaults.instanceType; @@ -99,23 +84,33 @@ public Builder(DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpe this.sagemakerImageVersionArn = defaults.sagemakerImageVersionArn; } + @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { this.instanceType = instanceType; return this; } + @CustomType.Setter public Builder lifecycleConfigArn(@Nullable String lifecycleConfigArn) { this.lifecycleConfigArn = lifecycleConfigArn; return this; } + @CustomType.Setter public Builder sagemakerImageArn(@Nullable String sagemakerImageArn) { this.sagemakerImageArn = sagemakerImageArn; return this; } + @CustomType.Setter public Builder sagemakerImageVersionArn(@Nullable String sagemakerImageVersionArn) { this.sagemakerImageVersionArn = sagemakerImageVersionArn; return this; - } public DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec build() { - return new DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec(instanceType, lifecycleConfigArn, sagemakerImageArn, sagemakerImageVersionArn); + } + public DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec build() { + final var o = new DomainDefaultUserSettingsTensorBoardAppSettingsDefaultResourceSpec(); + o.instanceType = instanceType; + o.lifecycleConfigArn = lifecycleConfigArn; + o.sagemakerImageArn = sagemakerImageArn; + o.sagemakerImageVersionArn = sagemakerImageVersionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainRetentionPolicy.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainRetentionPolicy.java index d3de363e49e..0284f0418c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainRetentionPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/DomainRetentionPolicy.java @@ -15,13 +15,9 @@ public final class DomainRetentionPolicy { * @return The retention policy for data stored on an Amazon Elastic File System (EFS) volume. Valid values are `Retain` or `Delete`. Default value is `Retain`. * */ - private final @Nullable String homeEfsFileSystem; - - @CustomType.Constructor - private DomainRetentionPolicy(@CustomType.Parameter("homeEfsFileSystem") @Nullable String homeEfsFileSystem) { - this.homeEfsFileSystem = homeEfsFileSystem; - } + private @Nullable String homeEfsFileSystem; + private DomainRetentionPolicy() {} /** * @return The retention policy for data stored on an Amazon Elastic File System (EFS) volume. Valid values are `Retain` or `Delete`. Default value is `Retain`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(DomainRetentionPolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String homeEfsFileSystem; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DomainRetentionPolicy defaults) { Objects.requireNonNull(defaults); this.homeEfsFileSystem = defaults.homeEfsFileSystem; } + @CustomType.Setter public Builder homeEfsFileSystem(@Nullable String homeEfsFileSystem) { this.homeEfsFileSystem = homeEfsFileSystem; return this; - } public DomainRetentionPolicy build() { - return new DomainRetentionPolicy(homeEfsFileSystem); + } + public DomainRetentionPolicy build() { + final var o = new DomainRetentionPolicy(); + o.homeEfsFileSystem = homeEfsFileSystem; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfig.java index 80f83832d27..f573beeb20d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfig.java @@ -16,21 +16,14 @@ public final class EndpointConfigurationAsyncInferenceConfig { * @return Configures the behavior of the client used by Amazon SageMaker to interact with the model container during asynchronous inference. * */ - private final @Nullable EndpointConfigurationAsyncInferenceConfigClientConfig clientConfig; + private @Nullable EndpointConfigurationAsyncInferenceConfigClientConfig clientConfig; /** * @return Specifies the configuration for asynchronous inference invocation outputs. * */ - private final EndpointConfigurationAsyncInferenceConfigOutputConfig outputConfig; - - @CustomType.Constructor - private EndpointConfigurationAsyncInferenceConfig( - @CustomType.Parameter("clientConfig") @Nullable EndpointConfigurationAsyncInferenceConfigClientConfig clientConfig, - @CustomType.Parameter("outputConfig") EndpointConfigurationAsyncInferenceConfigOutputConfig outputConfig) { - this.clientConfig = clientConfig; - this.outputConfig = outputConfig; - } + private EndpointConfigurationAsyncInferenceConfigOutputConfig outputConfig; + private EndpointConfigurationAsyncInferenceConfig() {} /** * @return Configures the behavior of the client used by Amazon SageMaker to interact with the model container during asynchronous inference. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(EndpointConfigurationAsyncInferenceConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable EndpointConfigurationAsyncInferenceConfigClientConfig clientConfig; private EndpointConfigurationAsyncInferenceConfigOutputConfig outputConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointConfigurationAsyncInferenceConfig defaults) { Objects.requireNonNull(defaults); this.clientConfig = defaults.clientConfig; this.outputConfig = defaults.outputConfig; } + @CustomType.Setter public Builder clientConfig(@Nullable EndpointConfigurationAsyncInferenceConfigClientConfig clientConfig) { this.clientConfig = clientConfig; return this; } + @CustomType.Setter public Builder outputConfig(EndpointConfigurationAsyncInferenceConfigOutputConfig outputConfig) { this.outputConfig = Objects.requireNonNull(outputConfig); return this; - } public EndpointConfigurationAsyncInferenceConfig build() { - return new EndpointConfigurationAsyncInferenceConfig(clientConfig, outputConfig); + } + public EndpointConfigurationAsyncInferenceConfig build() { + final var o = new EndpointConfigurationAsyncInferenceConfig(); + o.clientConfig = clientConfig; + o.outputConfig = outputConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfigClientConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfigClientConfig.java index 1f56a543787..ed17e556c51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfigClientConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfigClientConfig.java @@ -15,13 +15,9 @@ public final class EndpointConfigurationAsyncInferenceConfigClientConfig { * @return The maximum number of concurrent requests sent by the SageMaker client to the model container. If no value is provided, Amazon SageMaker will choose an optimal value for you. * */ - private final @Nullable Integer maxConcurrentInvocationsPerInstance; - - @CustomType.Constructor - private EndpointConfigurationAsyncInferenceConfigClientConfig(@CustomType.Parameter("maxConcurrentInvocationsPerInstance") @Nullable Integer maxConcurrentInvocationsPerInstance) { - this.maxConcurrentInvocationsPerInstance = maxConcurrentInvocationsPerInstance; - } + private @Nullable Integer maxConcurrentInvocationsPerInstance; + private EndpointConfigurationAsyncInferenceConfigClientConfig() {} /** * @return The maximum number of concurrent requests sent by the SageMaker client to the model container. If no value is provided, Amazon SageMaker will choose an optimal value for you. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(EndpointConfigurationAsyncInferenceConfigClientConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer maxConcurrentInvocationsPerInstance; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointConfigurationAsyncInferenceConfigClientConfig defaults) { Objects.requireNonNull(defaults); this.maxConcurrentInvocationsPerInstance = defaults.maxConcurrentInvocationsPerInstance; } + @CustomType.Setter public Builder maxConcurrentInvocationsPerInstance(@Nullable Integer maxConcurrentInvocationsPerInstance) { this.maxConcurrentInvocationsPerInstance = maxConcurrentInvocationsPerInstance; return this; - } public EndpointConfigurationAsyncInferenceConfigClientConfig build() { - return new EndpointConfigurationAsyncInferenceConfigClientConfig(maxConcurrentInvocationsPerInstance); + } + public EndpointConfigurationAsyncInferenceConfigClientConfig build() { + final var o = new EndpointConfigurationAsyncInferenceConfigClientConfig(); + o.maxConcurrentInvocationsPerInstance = maxConcurrentInvocationsPerInstance; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfigOutputConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfigOutputConfig.java index 9bf9bcdcd26..904e3aabd70 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfigOutputConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfigOutputConfig.java @@ -16,28 +16,19 @@ public final class EndpointConfigurationAsyncInferenceConfigOutputConfig { * @return The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the asynchronous inference output in Amazon S3. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return Specifies the configuration for notifications of inference results for asynchronous inference. * */ - private final @Nullable EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig notificationConfig; + private @Nullable EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig notificationConfig; /** * @return The Amazon S3 location to upload inference responses to. * */ - private final String s3OutputPath; - - @CustomType.Constructor - private EndpointConfigurationAsyncInferenceConfigOutputConfig( - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("notificationConfig") @Nullable EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig notificationConfig, - @CustomType.Parameter("s3OutputPath") String s3OutputPath) { - this.kmsKeyId = kmsKeyId; - this.notificationConfig = notificationConfig; - this.s3OutputPath = s3OutputPath; - } + private String s3OutputPath; + private EndpointConfigurationAsyncInferenceConfigOutputConfig() {} /** * @return The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the asynchronous inference output in Amazon S3. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(EndpointConfigurationAsyncInferenceConfigOutputConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsKeyId; private @Nullable EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig notificationConfig; private String s3OutputPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointConfigurationAsyncInferenceConfigOutputConfig defaults) { Objects.requireNonNull(defaults); this.kmsKeyId = defaults.kmsKeyId; @@ -84,19 +71,27 @@ public Builder(EndpointConfigurationAsyncInferenceConfigOutputConfig defaults) { this.s3OutputPath = defaults.s3OutputPath; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder notificationConfig(@Nullable EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig notificationConfig) { this.notificationConfig = notificationConfig; return this; } + @CustomType.Setter public Builder s3OutputPath(String s3OutputPath) { this.s3OutputPath = Objects.requireNonNull(s3OutputPath); return this; - } public EndpointConfigurationAsyncInferenceConfigOutputConfig build() { - return new EndpointConfigurationAsyncInferenceConfigOutputConfig(kmsKeyId, notificationConfig, s3OutputPath); + } + public EndpointConfigurationAsyncInferenceConfigOutputConfig build() { + final var o = new EndpointConfigurationAsyncInferenceConfigOutputConfig(); + o.kmsKeyId = kmsKeyId; + o.notificationConfig = notificationConfig; + o.s3OutputPath = s3OutputPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig.java index e438529731c..abdf26ff55e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig.java @@ -15,21 +15,14 @@ public final class EndpointConfigurationAsyncInferenceConfigOutputConfigNotifica * @return Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure. * */ - private final @Nullable String errorTopic; + private @Nullable String errorTopic; /** * @return Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success. * */ - private final @Nullable String successTopic; - - @CustomType.Constructor - private EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig( - @CustomType.Parameter("errorTopic") @Nullable String errorTopic, - @CustomType.Parameter("successTopic") @Nullable String successTopic) { - this.errorTopic = errorTopic; - this.successTopic = successTopic; - } + private @Nullable String successTopic; + private EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig() {} /** * @return Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String errorTopic; private @Nullable String successTopic; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig defaults) { Objects.requireNonNull(defaults); this.errorTopic = defaults.errorTopic; this.successTopic = defaults.successTopic; } + @CustomType.Setter public Builder errorTopic(@Nullable String errorTopic) { this.errorTopic = errorTopic; return this; } + @CustomType.Setter public Builder successTopic(@Nullable String successTopic) { this.successTopic = successTopic; return this; - } public EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig build() { - return new EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig(errorTopic, successTopic); + } + public EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig build() { + final var o = new EndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig(); + o.errorTopic = errorTopic; + o.successTopic = successTopic; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationDataCaptureConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationDataCaptureConfig.java index 8c3e77fa391..13398f4ef36 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationDataCaptureConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationDataCaptureConfig.java @@ -20,49 +20,34 @@ public final class EndpointConfigurationDataCaptureConfig { * @return The content type headers to capture. Fields are documented below. * */ - private final @Nullable EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader captureContentTypeHeader; + private @Nullable EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader captureContentTypeHeader; /** * @return Specifies what data to capture. Fields are documented below. * */ - private final List captureOptions; + private List captureOptions; /** * @return The URL for S3 location where the captured data is stored. * */ - private final String destinationS3Uri; + private String destinationS3Uri; /** * @return Flag to enable data capture. Defaults to `false`. * */ - private final @Nullable Boolean enableCapture; + private @Nullable Boolean enableCapture; /** * @return Portion of data to capture. Should be between 0 and 100. * */ - private final Integer initialSamplingPercentage; + private Integer initialSamplingPercentage; /** * @return The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the asynchronous inference output in Amazon S3. * */ - private final @Nullable String kmsKeyId; - - @CustomType.Constructor - private EndpointConfigurationDataCaptureConfig( - @CustomType.Parameter("captureContentTypeHeader") @Nullable EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader captureContentTypeHeader, - @CustomType.Parameter("captureOptions") List captureOptions, - @CustomType.Parameter("destinationS3Uri") String destinationS3Uri, - @CustomType.Parameter("enableCapture") @Nullable Boolean enableCapture, - @CustomType.Parameter("initialSamplingPercentage") Integer initialSamplingPercentage, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId) { - this.captureContentTypeHeader = captureContentTypeHeader; - this.captureOptions = captureOptions; - this.destinationS3Uri = destinationS3Uri; - this.enableCapture = enableCapture; - this.initialSamplingPercentage = initialSamplingPercentage; - this.kmsKeyId = kmsKeyId; - } + private @Nullable String kmsKeyId; + private EndpointConfigurationDataCaptureConfig() {} /** * @return The content type headers to capture. Fields are documented below. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(EndpointConfigurationDataCaptureConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader captureContentTypeHeader; private List captureOptions; @@ -121,11 +106,7 @@ public static final class Builder { private @Nullable Boolean enableCapture; private Integer initialSamplingPercentage; private @Nullable String kmsKeyId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointConfigurationDataCaptureConfig defaults) { Objects.requireNonNull(defaults); this.captureContentTypeHeader = defaults.captureContentTypeHeader; @@ -136,10 +117,12 @@ public Builder(EndpointConfigurationDataCaptureConfig defaults) { this.kmsKeyId = defaults.kmsKeyId; } + @CustomType.Setter public Builder captureContentTypeHeader(@Nullable EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader captureContentTypeHeader) { this.captureContentTypeHeader = captureContentTypeHeader; return this; } + @CustomType.Setter public Builder captureOptions(List captureOptions) { this.captureOptions = Objects.requireNonNull(captureOptions); return this; @@ -147,23 +130,35 @@ public Builder captureOptions(List csvContentTypes; + private @Nullable List csvContentTypes; /** * @return The JSON content type headers to capture. * */ - private final @Nullable List jsonContentTypes; - - @CustomType.Constructor - private EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader( - @CustomType.Parameter("csvContentTypes") @Nullable List csvContentTypes, - @CustomType.Parameter("jsonContentTypes") @Nullable List jsonContentTypes) { - this.csvContentTypes = csvContentTypes; - this.jsonContentTypes = jsonContentTypes; - } + private @Nullable List jsonContentTypes; + private EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader() {} /** * @return The CSV content type headers to capture. * @@ -52,21 +45,18 @@ public static Builder builder() { public static Builder builder(EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List csvContentTypes; private @Nullable List jsonContentTypes; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader defaults) { Objects.requireNonNull(defaults); this.csvContentTypes = defaults.csvContentTypes; this.jsonContentTypes = defaults.jsonContentTypes; } + @CustomType.Setter public Builder csvContentTypes(@Nullable List csvContentTypes) { this.csvContentTypes = csvContentTypes; return this; @@ -74,14 +64,19 @@ public Builder csvContentTypes(@Nullable List csvContentTypes) { public Builder csvContentTypes(String... csvContentTypes) { return csvContentTypes(List.of(csvContentTypes)); } + @CustomType.Setter public Builder jsonContentTypes(@Nullable List jsonContentTypes) { this.jsonContentTypes = jsonContentTypes; return this; } public Builder jsonContentTypes(String... jsonContentTypes) { return jsonContentTypes(List.of(jsonContentTypes)); - } public EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader build() { - return new EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader(csvContentTypes, jsonContentTypes); + } + public EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader build() { + final var o = new EndpointConfigurationDataCaptureConfigCaptureContentTypeHeader(); + o.csvContentTypes = csvContentTypes; + o.jsonContentTypes = jsonContentTypes; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationDataCaptureConfigCaptureOption.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationDataCaptureConfigCaptureOption.java index 9ead1f4b753..85f3508dbf1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationDataCaptureConfigCaptureOption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationDataCaptureConfigCaptureOption.java @@ -13,13 +13,9 @@ public final class EndpointConfigurationDataCaptureConfigCaptureOption { * @return Specifies the data to be captured. Should be one of `Input` or `Output`. * */ - private final String captureMode; - - @CustomType.Constructor - private EndpointConfigurationDataCaptureConfigCaptureOption(@CustomType.Parameter("captureMode") String captureMode) { - this.captureMode = captureMode; - } + private String captureMode; + private EndpointConfigurationDataCaptureConfigCaptureOption() {} /** * @return Specifies the data to be captured. Should be one of `Input` or `Output`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(EndpointConfigurationDataCaptureConfigCaptureOption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String captureMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointConfigurationDataCaptureConfigCaptureOption defaults) { Objects.requireNonNull(defaults); this.captureMode = defaults.captureMode; } + @CustomType.Setter public Builder captureMode(String captureMode) { this.captureMode = Objects.requireNonNull(captureMode); return this; - } public EndpointConfigurationDataCaptureConfigCaptureOption build() { - return new EndpointConfigurationDataCaptureConfigCaptureOption(captureMode); + } + public EndpointConfigurationDataCaptureConfigCaptureOption build() { + final var o = new EndpointConfigurationDataCaptureConfigCaptureOption(); + o.captureMode = captureMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationProductionVariant.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationProductionVariant.java index 449ee94a3c3..e6487d499f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationProductionVariant.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationProductionVariant.java @@ -18,56 +18,39 @@ public final class EndpointConfigurationProductionVariant { * @return The size of the Elastic Inference (EI) instance to use for the production variant. * */ - private final @Nullable String acceleratorType; + private @Nullable String acceleratorType; /** * @return Initial number of instances used for auto-scaling. * */ - private final @Nullable Integer initialInstanceCount; + private @Nullable Integer initialInstanceCount; /** * @return Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. If unspecified, it defaults to `1.0`. * */ - private final @Nullable Double initialVariantWeight; + private @Nullable Double initialVariantWeight; /** * @return The type of instance to start. * */ - private final @Nullable String instanceType; + private @Nullable String instanceType; /** * @return The name of the model to use. * */ - private final String modelName; + private String modelName; /** * @return Specifies configuration for how an endpoint performs asynchronous inference. * */ - private final @Nullable EndpointConfigurationProductionVariantServerlessConfig serverlessConfig; + private @Nullable EndpointConfigurationProductionVariantServerlessConfig serverlessConfig; /** * @return The name of the variant. If omitted, this provider will assign a random, unique name. * */ - private final @Nullable String variantName; - - @CustomType.Constructor - private EndpointConfigurationProductionVariant( - @CustomType.Parameter("acceleratorType") @Nullable String acceleratorType, - @CustomType.Parameter("initialInstanceCount") @Nullable Integer initialInstanceCount, - @CustomType.Parameter("initialVariantWeight") @Nullable Double initialVariantWeight, - @CustomType.Parameter("instanceType") @Nullable String instanceType, - @CustomType.Parameter("modelName") String modelName, - @CustomType.Parameter("serverlessConfig") @Nullable EndpointConfigurationProductionVariantServerlessConfig serverlessConfig, - @CustomType.Parameter("variantName") @Nullable String variantName) { - this.acceleratorType = acceleratorType; - this.initialInstanceCount = initialInstanceCount; - this.initialVariantWeight = initialVariantWeight; - this.instanceType = instanceType; - this.modelName = modelName; - this.serverlessConfig = serverlessConfig; - this.variantName = variantName; - } + private @Nullable String variantName; + private EndpointConfigurationProductionVariant() {} /** * @return The size of the Elastic Inference (EI) instance to use for the production variant. * @@ -125,7 +108,7 @@ public static Builder builder() { public static Builder builder(EndpointConfigurationProductionVariant defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String acceleratorType; private @Nullable Integer initialInstanceCount; @@ -134,11 +117,7 @@ public static final class Builder { private String modelName; private @Nullable EndpointConfigurationProductionVariantServerlessConfig serverlessConfig; private @Nullable String variantName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointConfigurationProductionVariant defaults) { Objects.requireNonNull(defaults); this.acceleratorType = defaults.acceleratorType; @@ -150,35 +129,51 @@ public Builder(EndpointConfigurationProductionVariant defaults) { this.variantName = defaults.variantName; } + @CustomType.Setter public Builder acceleratorType(@Nullable String acceleratorType) { this.acceleratorType = acceleratorType; return this; } + @CustomType.Setter public Builder initialInstanceCount(@Nullable Integer initialInstanceCount) { this.initialInstanceCount = initialInstanceCount; return this; } + @CustomType.Setter public Builder initialVariantWeight(@Nullable Double initialVariantWeight) { this.initialVariantWeight = initialVariantWeight; return this; } + @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { this.instanceType = instanceType; return this; } + @CustomType.Setter public Builder modelName(String modelName) { this.modelName = Objects.requireNonNull(modelName); return this; } + @CustomType.Setter public Builder serverlessConfig(@Nullable EndpointConfigurationProductionVariantServerlessConfig serverlessConfig) { this.serverlessConfig = serverlessConfig; return this; } + @CustomType.Setter public Builder variantName(@Nullable String variantName) { this.variantName = variantName; return this; - } public EndpointConfigurationProductionVariant build() { - return new EndpointConfigurationProductionVariant(acceleratorType, initialInstanceCount, initialVariantWeight, instanceType, modelName, serverlessConfig, variantName); + } + public EndpointConfigurationProductionVariant build() { + final var o = new EndpointConfigurationProductionVariant(); + o.acceleratorType = acceleratorType; + o.initialInstanceCount = initialInstanceCount; + o.initialVariantWeight = initialVariantWeight; + o.instanceType = instanceType; + o.modelName = modelName; + o.serverlessConfig = serverlessConfig; + o.variantName = variantName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationProductionVariantServerlessConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationProductionVariantServerlessConfig.java index d0e3f3bb849..efd65de416f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationProductionVariantServerlessConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointConfigurationProductionVariantServerlessConfig.java @@ -13,21 +13,14 @@ public final class EndpointConfigurationProductionVariantServerlessConfig { * @return The maximum number of concurrent invocations your serverless endpoint can process. Valid values are between `1` and `200`. * */ - private final Integer maxConcurrency; + private Integer maxConcurrency; /** * @return The memory size of your serverless endpoint. Valid values are in 1 GB increments: `1024` MB, `2048` MB, `3072` MB, `4096` MB, `5120` MB, or `6144` MB. * */ - private final Integer memorySizeInMb; - - @CustomType.Constructor - private EndpointConfigurationProductionVariantServerlessConfig( - @CustomType.Parameter("maxConcurrency") Integer maxConcurrency, - @CustomType.Parameter("memorySizeInMb") Integer memorySizeInMb) { - this.maxConcurrency = maxConcurrency; - this.memorySizeInMb = memorySizeInMb; - } + private Integer memorySizeInMb; + private EndpointConfigurationProductionVariantServerlessConfig() {} /** * @return The maximum number of concurrent invocations your serverless endpoint can process. Valid values are between `1` and `200`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(EndpointConfigurationProductionVariantServerlessConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer maxConcurrency; private Integer memorySizeInMb; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointConfigurationProductionVariantServerlessConfig defaults) { Objects.requireNonNull(defaults); this.maxConcurrency = defaults.maxConcurrency; this.memorySizeInMb = defaults.memorySizeInMb; } + @CustomType.Setter public Builder maxConcurrency(Integer maxConcurrency) { this.maxConcurrency = Objects.requireNonNull(maxConcurrency); return this; } + @CustomType.Setter public Builder memorySizeInMb(Integer memorySizeInMb) { this.memorySizeInMb = Objects.requireNonNull(memorySizeInMb); return this; - } public EndpointConfigurationProductionVariantServerlessConfig build() { - return new EndpointConfigurationProductionVariantServerlessConfig(maxConcurrency, memorySizeInMb); + } + public EndpointConfigurationProductionVariantServerlessConfig build() { + final var o = new EndpointConfigurationProductionVariantServerlessConfig(); + o.maxConcurrency = maxConcurrency; + o.memorySizeInMb = memorySizeInMb; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfig.java index a7adb6595df..29b5a27b8ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfig.java @@ -16,21 +16,14 @@ public final class EndpointDeploymentConfig { * @return Automatic rollback configuration for handling endpoint deployment failures and recovery. See Auto Rollback Configuration. * */ - private final @Nullable EndpointDeploymentConfigAutoRollbackConfiguration autoRollbackConfiguration; + private @Nullable EndpointDeploymentConfigAutoRollbackConfiguration autoRollbackConfiguration; /** * @return Update policy for a blue/green deployment. If this update policy is specified, SageMaker creates a new fleet during the deployment while maintaining the old fleet. See Blue Green Update Config. * */ - private final EndpointDeploymentConfigBlueGreenUpdatePolicy blueGreenUpdatePolicy; - - @CustomType.Constructor - private EndpointDeploymentConfig( - @CustomType.Parameter("autoRollbackConfiguration") @Nullable EndpointDeploymentConfigAutoRollbackConfiguration autoRollbackConfiguration, - @CustomType.Parameter("blueGreenUpdatePolicy") EndpointDeploymentConfigBlueGreenUpdatePolicy blueGreenUpdatePolicy) { - this.autoRollbackConfiguration = autoRollbackConfiguration; - this.blueGreenUpdatePolicy = blueGreenUpdatePolicy; - } + private EndpointDeploymentConfigBlueGreenUpdatePolicy blueGreenUpdatePolicy; + private EndpointDeploymentConfig() {} /** * @return Automatic rollback configuration for handling endpoint deployment failures and recovery. See Auto Rollback Configuration. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(EndpointDeploymentConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable EndpointDeploymentConfigAutoRollbackConfiguration autoRollbackConfiguration; private EndpointDeploymentConfigBlueGreenUpdatePolicy blueGreenUpdatePolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointDeploymentConfig defaults) { Objects.requireNonNull(defaults); this.autoRollbackConfiguration = defaults.autoRollbackConfiguration; this.blueGreenUpdatePolicy = defaults.blueGreenUpdatePolicy; } + @CustomType.Setter public Builder autoRollbackConfiguration(@Nullable EndpointDeploymentConfigAutoRollbackConfiguration autoRollbackConfiguration) { this.autoRollbackConfiguration = autoRollbackConfiguration; return this; } + @CustomType.Setter public Builder blueGreenUpdatePolicy(EndpointDeploymentConfigBlueGreenUpdatePolicy blueGreenUpdatePolicy) { this.blueGreenUpdatePolicy = Objects.requireNonNull(blueGreenUpdatePolicy); return this; - } public EndpointDeploymentConfig build() { - return new EndpointDeploymentConfig(autoRollbackConfiguration, blueGreenUpdatePolicy); + } + public EndpointDeploymentConfig build() { + final var o = new EndpointDeploymentConfig(); + o.autoRollbackConfiguration = autoRollbackConfiguration; + o.blueGreenUpdatePolicy = blueGreenUpdatePolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigAutoRollbackConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigAutoRollbackConfiguration.java index 2e1631f7814..c621cbfe150 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigAutoRollbackConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigAutoRollbackConfiguration.java @@ -15,13 +15,9 @@ public final class EndpointDeploymentConfigAutoRollbackConfiguration { * @return List of CloudWatch alarms in your account that are configured to monitor metrics on an endpoint. If any alarms are tripped during a deployment, SageMaker rolls back the deployment. See Alarms. * */ - private final @Nullable List alarms; - - @CustomType.Constructor - private EndpointDeploymentConfigAutoRollbackConfiguration(@CustomType.Parameter("alarms") @Nullable List alarms) { - this.alarms = alarms; - } + private @Nullable List alarms; + private EndpointDeploymentConfigAutoRollbackConfiguration() {} /** * @return List of CloudWatch alarms in your account that are configured to monitor metrics on an endpoint. If any alarms are tripped during a deployment, SageMaker rolls back the deployment. See Alarms. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(EndpointDeploymentConfigAutoRollbackConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List alarms; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointDeploymentConfigAutoRollbackConfiguration defaults) { Objects.requireNonNull(defaults); this.alarms = defaults.alarms; } + @CustomType.Setter public Builder alarms(@Nullable List alarms) { this.alarms = alarms; return this; } public Builder alarms(EndpointDeploymentConfigAutoRollbackConfigurationAlarm... alarms) { return alarms(List.of(alarms)); - } public EndpointDeploymentConfigAutoRollbackConfiguration build() { - return new EndpointDeploymentConfigAutoRollbackConfiguration(alarms); + } + public EndpointDeploymentConfigAutoRollbackConfiguration build() { + final var o = new EndpointDeploymentConfigAutoRollbackConfiguration(); + o.alarms = alarms; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigAutoRollbackConfigurationAlarm.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigAutoRollbackConfigurationAlarm.java index 4d9659f0a3f..54ed9de82bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigAutoRollbackConfigurationAlarm.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigAutoRollbackConfigurationAlarm.java @@ -13,13 +13,9 @@ public final class EndpointDeploymentConfigAutoRollbackConfigurationAlarm { * @return The name of a CloudWatch alarm in your account. * */ - private final String alarmName; - - @CustomType.Constructor - private EndpointDeploymentConfigAutoRollbackConfigurationAlarm(@CustomType.Parameter("alarmName") String alarmName) { - this.alarmName = alarmName; - } + private String alarmName; + private EndpointDeploymentConfigAutoRollbackConfigurationAlarm() {} /** * @return The name of a CloudWatch alarm in your account. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(EndpointDeploymentConfigAutoRollbackConfigurationAlarm defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String alarmName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointDeploymentConfigAutoRollbackConfigurationAlarm defaults) { Objects.requireNonNull(defaults); this.alarmName = defaults.alarmName; } + @CustomType.Setter public Builder alarmName(String alarmName) { this.alarmName = Objects.requireNonNull(alarmName); return this; - } public EndpointDeploymentConfigAutoRollbackConfigurationAlarm build() { - return new EndpointDeploymentConfigAutoRollbackConfigurationAlarm(alarmName); + } + public EndpointDeploymentConfigAutoRollbackConfigurationAlarm build() { + final var o = new EndpointDeploymentConfigAutoRollbackConfigurationAlarm(); + o.alarmName = alarmName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicy.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicy.java index 768648028b0..05d08494eb5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicy.java @@ -16,28 +16,19 @@ public final class EndpointDeploymentConfigBlueGreenUpdatePolicy { * @return Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting time specified in `termination_wait_in_seconds` and `wait_interval_in_seconds`. Valid values are between `600` and `14400`. * */ - private final @Nullable Integer maximumExecutionTimeoutInSeconds; + private @Nullable Integer maximumExecutionTimeoutInSeconds; /** * @return Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is `0`. Valid values are between `0` and `3600`. * */ - private final @Nullable Integer terminationWaitInSeconds; + private @Nullable Integer terminationWaitInSeconds; /** * @return Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment. See Traffic Routing Configuration. * */ - private final EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration trafficRoutingConfiguration; - - @CustomType.Constructor - private EndpointDeploymentConfigBlueGreenUpdatePolicy( - @CustomType.Parameter("maximumExecutionTimeoutInSeconds") @Nullable Integer maximumExecutionTimeoutInSeconds, - @CustomType.Parameter("terminationWaitInSeconds") @Nullable Integer terminationWaitInSeconds, - @CustomType.Parameter("trafficRoutingConfiguration") EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration trafficRoutingConfiguration) { - this.maximumExecutionTimeoutInSeconds = maximumExecutionTimeoutInSeconds; - this.terminationWaitInSeconds = terminationWaitInSeconds; - this.trafficRoutingConfiguration = trafficRoutingConfiguration; - } + private EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration trafficRoutingConfiguration; + private EndpointDeploymentConfigBlueGreenUpdatePolicy() {} /** * @return Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting time specified in `termination_wait_in_seconds` and `wait_interval_in_seconds`. Valid values are between `600` and `14400`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(EndpointDeploymentConfigBlueGreenUpdatePolicy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer maximumExecutionTimeoutInSeconds; private @Nullable Integer terminationWaitInSeconds; private EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration trafficRoutingConfiguration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointDeploymentConfigBlueGreenUpdatePolicy defaults) { Objects.requireNonNull(defaults); this.maximumExecutionTimeoutInSeconds = defaults.maximumExecutionTimeoutInSeconds; @@ -84,19 +71,27 @@ public Builder(EndpointDeploymentConfigBlueGreenUpdatePolicy defaults) { this.trafficRoutingConfiguration = defaults.trafficRoutingConfiguration; } + @CustomType.Setter public Builder maximumExecutionTimeoutInSeconds(@Nullable Integer maximumExecutionTimeoutInSeconds) { this.maximumExecutionTimeoutInSeconds = maximumExecutionTimeoutInSeconds; return this; } + @CustomType.Setter public Builder terminationWaitInSeconds(@Nullable Integer terminationWaitInSeconds) { this.terminationWaitInSeconds = terminationWaitInSeconds; return this; } + @CustomType.Setter public Builder trafficRoutingConfiguration(EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration trafficRoutingConfiguration) { this.trafficRoutingConfiguration = Objects.requireNonNull(trafficRoutingConfiguration); return this; - } public EndpointDeploymentConfigBlueGreenUpdatePolicy build() { - return new EndpointDeploymentConfigBlueGreenUpdatePolicy(maximumExecutionTimeoutInSeconds, terminationWaitInSeconds, trafficRoutingConfiguration); + } + public EndpointDeploymentConfigBlueGreenUpdatePolicy build() { + final var o = new EndpointDeploymentConfigBlueGreenUpdatePolicy(); + o.maximumExecutionTimeoutInSeconds = maximumExecutionTimeoutInSeconds; + o.terminationWaitInSeconds = terminationWaitInSeconds; + o.trafficRoutingConfiguration = trafficRoutingConfiguration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration.java index f05672a9476..4b35785199b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration.java @@ -18,35 +18,24 @@ public final class EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingCo * @return Batch size for the first step to turn on traffic on the new endpoint fleet. Value must be less than or equal to 50% of the variant's total instance count. See Canary Size. * */ - private final @Nullable EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize canarySize; + private @Nullable EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize canarySize; /** * @return Batch size for each step to turn on traffic on the new endpoint fleet. Value must be 10-50% of the variant's total instance count. See Linear Step Size. * */ - private final @Nullable EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize linearStepSize; + private @Nullable EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize linearStepSize; /** * @return Specifies the endpoint capacity type. Valid values are: `INSTANCE_COUNT`, or `CAPACITY_PERCENT`. * */ - private final String type; + private String type; /** * @return The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet. Valid values are between `0` and `3600`. * */ - private final Integer waitIntervalInSeconds; - - @CustomType.Constructor - private EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration( - @CustomType.Parameter("canarySize") @Nullable EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize canarySize, - @CustomType.Parameter("linearStepSize") @Nullable EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize linearStepSize, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("waitIntervalInSeconds") Integer waitIntervalInSeconds) { - this.canarySize = canarySize; - this.linearStepSize = linearStepSize; - this.type = type; - this.waitIntervalInSeconds = waitIntervalInSeconds; - } + private Integer waitIntervalInSeconds; + private EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration() {} /** * @return Batch size for the first step to turn on traffic on the new endpoint fleet. Value must be less than or equal to 50% of the variant's total instance count. See Canary Size. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize canarySize; private @Nullable EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize linearStepSize; private String type; private Integer waitIntervalInSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration defaults) { Objects.requireNonNull(defaults); this.canarySize = defaults.canarySize; @@ -102,23 +87,33 @@ public Builder(EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfig this.waitIntervalInSeconds = defaults.waitIntervalInSeconds; } + @CustomType.Setter public Builder canarySize(@Nullable EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize canarySize) { this.canarySize = canarySize; return this; } + @CustomType.Setter public Builder linearStepSize(@Nullable EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize linearStepSize) { this.linearStepSize = linearStepSize; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder waitIntervalInSeconds(Integer waitIntervalInSeconds) { this.waitIntervalInSeconds = Objects.requireNonNull(waitIntervalInSeconds); return this; - } public EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration build() { - return new EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration(canarySize, linearStepSize, type, waitIntervalInSeconds); + } + public EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration build() { + final var o = new EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration(); + o.canarySize = canarySize; + o.linearStepSize = linearStepSize; + o.type = type; + o.waitIntervalInSeconds = waitIntervalInSeconds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize.java index e7728c54baf..7363c26f5f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize.java @@ -14,21 +14,14 @@ public final class EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingCo * @return Specifies the endpoint capacity type. Valid values are: `INSTANCE_COUNT`, or `CAPACITY_PERCENT`. * */ - private final String type; + private String type; /** * @return Defines the capacity size, either as a number of instances or a capacity percentage. * */ - private final Integer value; - - @CustomType.Constructor - private EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") Integer value) { - this.type = type; - this.value = value; - } + private Integer value; + private EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize() {} /** * @return Specifies the endpoint capacity type. Valid values are: `INSTANCE_COUNT`, or `CAPACITY_PERCENT`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.value = defaults.value; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize build() { - return new EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize(type, value); + } + public EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize build() { + final var o = new EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize(); + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize.java index 6c4189387f3..6a1d6f4c23a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize.java @@ -14,21 +14,14 @@ public final class EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingCo * @return Specifies the endpoint capacity type. Valid values are: `INSTANCE_COUNT`, or `CAPACITY_PERCENT`. * */ - private final String type; + private String type; /** * @return Defines the capacity size, either as a number of instances or a capacity percentage. * */ - private final Integer value; - - @CustomType.Constructor - private EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") Integer value) { - this.type = type; - this.value = value; - } + private Integer value; + private EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize() {} /** * @return Specifies the endpoint capacity type. Valid values are: `INSTANCE_COUNT`, or `CAPACITY_PERCENT`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.value = defaults.value; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize build() { - return new EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize(type, value); + } + public EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize build() { + final var o = new EndpointDeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize(); + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupFeatureDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupFeatureDefinition.java index 1ed87d75933..89c1e8a666f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupFeatureDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupFeatureDefinition.java @@ -15,21 +15,14 @@ public final class FeatureGroupFeatureDefinition { * @return The name of a feature. `feature_name` cannot be any of the following: `is_deleted`, `write_time`, `api_invocation_time`. * */ - private final @Nullable String featureName; + private @Nullable String featureName; /** * @return The value type of a feature. Valid values are `Integral`, `Fractional`, or `String`. * */ - private final @Nullable String featureType; - - @CustomType.Constructor - private FeatureGroupFeatureDefinition( - @CustomType.Parameter("featureName") @Nullable String featureName, - @CustomType.Parameter("featureType") @Nullable String featureType) { - this.featureName = featureName; - this.featureType = featureType; - } + private @Nullable String featureType; + private FeatureGroupFeatureDefinition() {} /** * @return The name of a feature. `feature_name` cannot be any of the following: `is_deleted`, `write_time`, `api_invocation_time`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FeatureGroupFeatureDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String featureName; private @Nullable String featureType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FeatureGroupFeatureDefinition defaults) { Objects.requireNonNull(defaults); this.featureName = defaults.featureName; this.featureType = defaults.featureType; } + @CustomType.Setter public Builder featureName(@Nullable String featureName) { this.featureName = featureName; return this; } + @CustomType.Setter public Builder featureType(@Nullable String featureType) { this.featureType = featureType; return this; - } public FeatureGroupFeatureDefinition build() { - return new FeatureGroupFeatureDefinition(featureName, featureType); + } + public FeatureGroupFeatureDefinition build() { + final var o = new FeatureGroupFeatureDefinition(); + o.featureName = featureName; + o.featureType = featureType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOfflineStoreConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOfflineStoreConfig.java index 7fabc06fc3d..c03a997dfc8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOfflineStoreConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOfflineStoreConfig.java @@ -17,28 +17,19 @@ public final class FeatureGroupOfflineStoreConfig { * @return The meta data of the Glue table that is autogenerated when an OfflineStore is created. See Data Catalog Config Below. * */ - private final @Nullable FeatureGroupOfflineStoreConfigDataCatalogConfig dataCatalogConfig; + private @Nullable FeatureGroupOfflineStoreConfigDataCatalogConfig dataCatalogConfig; /** * @return Set to `true` to turn Online Store On. * */ - private final @Nullable Boolean disableGlueTableCreation; + private @Nullable Boolean disableGlueTableCreation; /** * @return The Amazon Simple Storage (Amazon S3) location of OfflineStore. See S3 Storage Config Below. * */ - private final FeatureGroupOfflineStoreConfigS3StorageConfig s3StorageConfig; - - @CustomType.Constructor - private FeatureGroupOfflineStoreConfig( - @CustomType.Parameter("dataCatalogConfig") @Nullable FeatureGroupOfflineStoreConfigDataCatalogConfig dataCatalogConfig, - @CustomType.Parameter("disableGlueTableCreation") @Nullable Boolean disableGlueTableCreation, - @CustomType.Parameter("s3StorageConfig") FeatureGroupOfflineStoreConfigS3StorageConfig s3StorageConfig) { - this.dataCatalogConfig = dataCatalogConfig; - this.disableGlueTableCreation = disableGlueTableCreation; - this.s3StorageConfig = s3StorageConfig; - } + private FeatureGroupOfflineStoreConfigS3StorageConfig s3StorageConfig; + private FeatureGroupOfflineStoreConfig() {} /** * @return The meta data of the Glue table that is autogenerated when an OfflineStore is created. See Data Catalog Config Below. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(FeatureGroupOfflineStoreConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FeatureGroupOfflineStoreConfigDataCatalogConfig dataCatalogConfig; private @Nullable Boolean disableGlueTableCreation; private FeatureGroupOfflineStoreConfigS3StorageConfig s3StorageConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FeatureGroupOfflineStoreConfig defaults) { Objects.requireNonNull(defaults); this.dataCatalogConfig = defaults.dataCatalogConfig; @@ -85,19 +72,27 @@ public Builder(FeatureGroupOfflineStoreConfig defaults) { this.s3StorageConfig = defaults.s3StorageConfig; } + @CustomType.Setter public Builder dataCatalogConfig(@Nullable FeatureGroupOfflineStoreConfigDataCatalogConfig dataCatalogConfig) { this.dataCatalogConfig = dataCatalogConfig; return this; } + @CustomType.Setter public Builder disableGlueTableCreation(@Nullable Boolean disableGlueTableCreation) { this.disableGlueTableCreation = disableGlueTableCreation; return this; } + @CustomType.Setter public Builder s3StorageConfig(FeatureGroupOfflineStoreConfigS3StorageConfig s3StorageConfig) { this.s3StorageConfig = Objects.requireNonNull(s3StorageConfig); return this; - } public FeatureGroupOfflineStoreConfig build() { - return new FeatureGroupOfflineStoreConfig(dataCatalogConfig, disableGlueTableCreation, s3StorageConfig); + } + public FeatureGroupOfflineStoreConfig build() { + final var o = new FeatureGroupOfflineStoreConfig(); + o.dataCatalogConfig = dataCatalogConfig; + o.disableGlueTableCreation = disableGlueTableCreation; + o.s3StorageConfig = s3StorageConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOfflineStoreConfigDataCatalogConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOfflineStoreConfigDataCatalogConfig.java index 80751fa0c28..5bd4b2acd7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOfflineStoreConfigDataCatalogConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOfflineStoreConfigDataCatalogConfig.java @@ -15,28 +15,19 @@ public final class FeatureGroupOfflineStoreConfigDataCatalogConfig { * @return The name of the Glue table catalog. * */ - private final @Nullable String catalog; + private @Nullable String catalog; /** * @return The name of the Glue table database. * */ - private final @Nullable String database; + private @Nullable String database; /** * @return The name of the Glue table. * */ - private final @Nullable String tableName; - - @CustomType.Constructor - private FeatureGroupOfflineStoreConfigDataCatalogConfig( - @CustomType.Parameter("catalog") @Nullable String catalog, - @CustomType.Parameter("database") @Nullable String database, - @CustomType.Parameter("tableName") @Nullable String tableName) { - this.catalog = catalog; - this.database = database; - this.tableName = tableName; - } + private @Nullable String tableName; + private FeatureGroupOfflineStoreConfigDataCatalogConfig() {} /** * @return The name of the Glue table catalog. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(FeatureGroupOfflineStoreConfigDataCatalogConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String catalog; private @Nullable String database; private @Nullable String tableName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FeatureGroupOfflineStoreConfigDataCatalogConfig defaults) { Objects.requireNonNull(defaults); this.catalog = defaults.catalog; @@ -83,19 +70,27 @@ public Builder(FeatureGroupOfflineStoreConfigDataCatalogConfig defaults) { this.tableName = defaults.tableName; } + @CustomType.Setter public Builder catalog(@Nullable String catalog) { this.catalog = catalog; return this; } + @CustomType.Setter public Builder database(@Nullable String database) { this.database = database; return this; } + @CustomType.Setter public Builder tableName(@Nullable String tableName) { this.tableName = tableName; return this; - } public FeatureGroupOfflineStoreConfigDataCatalogConfig build() { - return new FeatureGroupOfflineStoreConfigDataCatalogConfig(catalog, database, tableName); + } + public FeatureGroupOfflineStoreConfigDataCatalogConfig build() { + final var o = new FeatureGroupOfflineStoreConfigDataCatalogConfig(); + o.catalog = catalog; + o.database = database; + o.tableName = tableName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOfflineStoreConfigS3StorageConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOfflineStoreConfigS3StorageConfig.java index 04ee15bfd0c..42bde8ab098 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOfflineStoreConfigS3StorageConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOfflineStoreConfigS3StorageConfig.java @@ -15,21 +15,14 @@ public final class FeatureGroupOfflineStoreConfigS3StorageConfig { * @return The ID of the AWS Key Management Service (AWS KMS) key that SageMaker Feature Store uses to encrypt the Amazon S3 objects at rest using Amazon S3 server-side encryption. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return The S3 URI, or location in Amazon S3, of OfflineStore. * */ - private final String s3Uri; - - @CustomType.Constructor - private FeatureGroupOfflineStoreConfigS3StorageConfig( - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("s3Uri") String s3Uri) { - this.kmsKeyId = kmsKeyId; - this.s3Uri = s3Uri; - } + private String s3Uri; + private FeatureGroupOfflineStoreConfigS3StorageConfig() {} /** * @return The ID of the AWS Key Management Service (AWS KMS) key that SageMaker Feature Store uses to encrypt the Amazon S3 objects at rest using Amazon S3 server-side encryption. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FeatureGroupOfflineStoreConfigS3StorageConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsKeyId; private String s3Uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FeatureGroupOfflineStoreConfigS3StorageConfig defaults) { Objects.requireNonNull(defaults); this.kmsKeyId = defaults.kmsKeyId; this.s3Uri = defaults.s3Uri; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder s3Uri(String s3Uri) { this.s3Uri = Objects.requireNonNull(s3Uri); return this; - } public FeatureGroupOfflineStoreConfigS3StorageConfig build() { - return new FeatureGroupOfflineStoreConfigS3StorageConfig(kmsKeyId, s3Uri); + } + public FeatureGroupOfflineStoreConfigS3StorageConfig build() { + final var o = new FeatureGroupOfflineStoreConfigS3StorageConfig(); + o.kmsKeyId = kmsKeyId; + o.s3Uri = s3Uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOnlineStoreConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOnlineStoreConfig.java index 74b962715d9..40fc8880a7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOnlineStoreConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOnlineStoreConfig.java @@ -16,21 +16,14 @@ public final class FeatureGroupOnlineStoreConfig { * @return Set to `true` to disable the automatic creation of an AWS Glue table when configuring an OfflineStore. * */ - private final @Nullable Boolean enableOnlineStore; + private @Nullable Boolean enableOnlineStore; /** * @return Security config for at-rest encryption of your OnlineStore. See Security Config Below. * */ - private final @Nullable FeatureGroupOnlineStoreConfigSecurityConfig securityConfig; - - @CustomType.Constructor - private FeatureGroupOnlineStoreConfig( - @CustomType.Parameter("enableOnlineStore") @Nullable Boolean enableOnlineStore, - @CustomType.Parameter("securityConfig") @Nullable FeatureGroupOnlineStoreConfigSecurityConfig securityConfig) { - this.enableOnlineStore = enableOnlineStore; - this.securityConfig = securityConfig; - } + private @Nullable FeatureGroupOnlineStoreConfigSecurityConfig securityConfig; + private FeatureGroupOnlineStoreConfig() {} /** * @return Set to `true` to disable the automatic creation of an AWS Glue table when configuring an OfflineStore. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(FeatureGroupOnlineStoreConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enableOnlineStore; private @Nullable FeatureGroupOnlineStoreConfigSecurityConfig securityConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FeatureGroupOnlineStoreConfig defaults) { Objects.requireNonNull(defaults); this.enableOnlineStore = defaults.enableOnlineStore; this.securityConfig = defaults.securityConfig; } + @CustomType.Setter public Builder enableOnlineStore(@Nullable Boolean enableOnlineStore) { this.enableOnlineStore = enableOnlineStore; return this; } + @CustomType.Setter public Builder securityConfig(@Nullable FeatureGroupOnlineStoreConfigSecurityConfig securityConfig) { this.securityConfig = securityConfig; return this; - } public FeatureGroupOnlineStoreConfig build() { - return new FeatureGroupOnlineStoreConfig(enableOnlineStore, securityConfig); + } + public FeatureGroupOnlineStoreConfig build() { + final var o = new FeatureGroupOnlineStoreConfig(); + o.enableOnlineStore = enableOnlineStore; + o.securityConfig = securityConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOnlineStoreConfigSecurityConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOnlineStoreConfigSecurityConfig.java index 59c0d2c41b6..4ac9dba80fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOnlineStoreConfigSecurityConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FeatureGroupOnlineStoreConfigSecurityConfig.java @@ -15,13 +15,9 @@ public final class FeatureGroupOnlineStoreConfigSecurityConfig { * @return The ID of the AWS Key Management Service (AWS KMS) key that SageMaker Feature Store uses to encrypt the Amazon S3 objects at rest using Amazon S3 server-side encryption. * */ - private final @Nullable String kmsKeyId; - - @CustomType.Constructor - private FeatureGroupOnlineStoreConfigSecurityConfig(@CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - } + private @Nullable String kmsKeyId; + private FeatureGroupOnlineStoreConfigSecurityConfig() {} /** * @return The ID of the AWS Key Management Service (AWS KMS) key that SageMaker Feature Store uses to encrypt the Amazon S3 objects at rest using Amazon S3 server-side encryption. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FeatureGroupOnlineStoreConfigSecurityConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsKeyId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FeatureGroupOnlineStoreConfigSecurityConfig defaults) { Objects.requireNonNull(defaults); this.kmsKeyId = defaults.kmsKeyId; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; - } public FeatureGroupOnlineStoreConfigSecurityConfig build() { - return new FeatureGroupOnlineStoreConfigSecurityConfig(kmsKeyId); + } + public FeatureGroupOnlineStoreConfigSecurityConfig build() { + final var o = new FeatureGroupOnlineStoreConfigSecurityConfig(); + o.kmsKeyId = kmsKeyId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopActivationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopActivationConfig.java index 9115b81f60f..2a0c2adea17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopActivationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopActivationConfig.java @@ -15,13 +15,9 @@ public final class FlowDefinitionHumanLoopActivationConfig { * @return defines under what conditions SageMaker creates a human loop. See Human Loop Activation Conditions Config details below. * */ - private final @Nullable FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig humanLoopActivationConditionsConfig; - - @CustomType.Constructor - private FlowDefinitionHumanLoopActivationConfig(@CustomType.Parameter("humanLoopActivationConditionsConfig") @Nullable FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig humanLoopActivationConditionsConfig) { - this.humanLoopActivationConditionsConfig = humanLoopActivationConditionsConfig; - } + private @Nullable FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig humanLoopActivationConditionsConfig; + private FlowDefinitionHumanLoopActivationConfig() {} /** * @return defines under what conditions SageMaker creates a human loop. See Human Loop Activation Conditions Config details below. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FlowDefinitionHumanLoopActivationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig humanLoopActivationConditionsConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDefinitionHumanLoopActivationConfig defaults) { Objects.requireNonNull(defaults); this.humanLoopActivationConditionsConfig = defaults.humanLoopActivationConditionsConfig; } + @CustomType.Setter public Builder humanLoopActivationConditionsConfig(@Nullable FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig humanLoopActivationConditionsConfig) { this.humanLoopActivationConditionsConfig = humanLoopActivationConditionsConfig; return this; - } public FlowDefinitionHumanLoopActivationConfig build() { - return new FlowDefinitionHumanLoopActivationConfig(humanLoopActivationConditionsConfig); + } + public FlowDefinitionHumanLoopActivationConfig build() { + final var o = new FlowDefinitionHumanLoopActivationConfig(); + o.humanLoopActivationConditionsConfig = humanLoopActivationConditionsConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig.java index c9404a93a16..09c8d93812a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig.java @@ -13,13 +13,9 @@ public final class FlowDefinitionHumanLoopActivationConfigHumanLoopActivationCon * @return A JSON expressing use-case specific conditions declaratively. If any condition is matched, atomic tasks are created against the configured work team. For more information about how to structure the JSON, see [JSON Schema for Human Loop Activation Conditions in Amazon Augmented AI](https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-human-fallback-conditions-json-schema.html). * */ - private final String humanLoopActivationConditions; - - @CustomType.Constructor - private FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig(@CustomType.Parameter("humanLoopActivationConditions") String humanLoopActivationConditions) { - this.humanLoopActivationConditions = humanLoopActivationConditions; - } + private String humanLoopActivationConditions; + private FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig() {} /** * @return A JSON expressing use-case specific conditions declaratively. If any condition is matched, atomic tasks are created against the configured work team. For more information about how to structure the JSON, see [JSON Schema for Human Loop Activation Conditions in Amazon Augmented AI](https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-human-fallback-conditions-json-schema.html). * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String humanLoopActivationConditions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig defaults) { Objects.requireNonNull(defaults); this.humanLoopActivationConditions = defaults.humanLoopActivationConditions; } + @CustomType.Setter public Builder humanLoopActivationConditions(String humanLoopActivationConditions) { this.humanLoopActivationConditions = Objects.requireNonNull(humanLoopActivationConditions); return this; - } public FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig build() { - return new FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig(humanLoopActivationConditions); + } + public FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig build() { + final var o = new FlowDefinitionHumanLoopActivationConfigHumanLoopActivationConditionsConfig(); + o.humanLoopActivationConditions = humanLoopActivationConditions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopConfig.java index c36d382f97f..caaab07deaa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopConfig.java @@ -18,70 +18,49 @@ public final class FlowDefinitionHumanLoopConfig { * @return The Amazon Resource Name (ARN) of the human task user interface. * */ - private final String humanTaskUiArn; + private String humanTaskUiArn; /** * @return Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. See Public Workforce Task Price details below. * */ - private final @Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice publicWorkforceTaskPrice; + private @Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice publicWorkforceTaskPrice; /** * @return The length of time that a task remains available for review by human workers. Valid value range between `1` and `864000`. * */ - private final @Nullable Integer taskAvailabilityLifetimeInSeconds; + private @Nullable Integer taskAvailabilityLifetimeInSeconds; /** * @return The number of distinct workers who will perform the same task on each object. Valid value range between `1` and `3`. * */ - private final Integer taskCount; + private Integer taskCount; /** * @return A description for the human worker task. * */ - private final String taskDescription; + private String taskDescription; /** * @return An array of keywords used to describe the task so that workers can discover the task. * */ - private final @Nullable List taskKeywords; + private @Nullable List taskKeywords; /** * @return The amount of time that a worker has to complete a task. The default value is `3600` seconds. * */ - private final @Nullable Integer taskTimeLimitInSeconds; + private @Nullable Integer taskTimeLimitInSeconds; /** * @return A title for the human worker task. * */ - private final String taskTitle; + private String taskTitle; /** * @return The Amazon Resource Name (ARN) of the human task user interface. Amazon Resource Name (ARN) of a team of workers. For Public workforces see [AWS Docs](https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-management-public.html). * */ - private final String workteamArn; - - @CustomType.Constructor - private FlowDefinitionHumanLoopConfig( - @CustomType.Parameter("humanTaskUiArn") String humanTaskUiArn, - @CustomType.Parameter("publicWorkforceTaskPrice") @Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice publicWorkforceTaskPrice, - @CustomType.Parameter("taskAvailabilityLifetimeInSeconds") @Nullable Integer taskAvailabilityLifetimeInSeconds, - @CustomType.Parameter("taskCount") Integer taskCount, - @CustomType.Parameter("taskDescription") String taskDescription, - @CustomType.Parameter("taskKeywords") @Nullable List taskKeywords, - @CustomType.Parameter("taskTimeLimitInSeconds") @Nullable Integer taskTimeLimitInSeconds, - @CustomType.Parameter("taskTitle") String taskTitle, - @CustomType.Parameter("workteamArn") String workteamArn) { - this.humanTaskUiArn = humanTaskUiArn; - this.publicWorkforceTaskPrice = publicWorkforceTaskPrice; - this.taskAvailabilityLifetimeInSeconds = taskAvailabilityLifetimeInSeconds; - this.taskCount = taskCount; - this.taskDescription = taskDescription; - this.taskKeywords = taskKeywords; - this.taskTimeLimitInSeconds = taskTimeLimitInSeconds; - this.taskTitle = taskTitle; - this.workteamArn = workteamArn; - } + private String workteamArn; + private FlowDefinitionHumanLoopConfig() {} /** * @return The Amazon Resource Name (ARN) of the human task user interface. * @@ -153,7 +132,7 @@ public static Builder builder() { public static Builder builder(FlowDefinitionHumanLoopConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String humanTaskUiArn; private @Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice publicWorkforceTaskPrice; @@ -164,11 +143,7 @@ public static final class Builder { private @Nullable Integer taskTimeLimitInSeconds; private String taskTitle; private String workteamArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDefinitionHumanLoopConfig defaults) { Objects.requireNonNull(defaults); this.humanTaskUiArn = defaults.humanTaskUiArn; @@ -182,26 +157,32 @@ public Builder(FlowDefinitionHumanLoopConfig defaults) { this.workteamArn = defaults.workteamArn; } + @CustomType.Setter public Builder humanTaskUiArn(String humanTaskUiArn) { this.humanTaskUiArn = Objects.requireNonNull(humanTaskUiArn); return this; } + @CustomType.Setter public Builder publicWorkforceTaskPrice(@Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice publicWorkforceTaskPrice) { this.publicWorkforceTaskPrice = publicWorkforceTaskPrice; return this; } + @CustomType.Setter public Builder taskAvailabilityLifetimeInSeconds(@Nullable Integer taskAvailabilityLifetimeInSeconds) { this.taskAvailabilityLifetimeInSeconds = taskAvailabilityLifetimeInSeconds; return this; } + @CustomType.Setter public Builder taskCount(Integer taskCount) { this.taskCount = Objects.requireNonNull(taskCount); return this; } + @CustomType.Setter public Builder taskDescription(String taskDescription) { this.taskDescription = Objects.requireNonNull(taskDescription); return this; } + @CustomType.Setter public Builder taskKeywords(@Nullable List taskKeywords) { this.taskKeywords = taskKeywords; return this; @@ -209,19 +190,33 @@ public Builder taskKeywords(@Nullable List taskKeywords) { public Builder taskKeywords(String... taskKeywords) { return taskKeywords(List.of(taskKeywords)); } + @CustomType.Setter public Builder taskTimeLimitInSeconds(@Nullable Integer taskTimeLimitInSeconds) { this.taskTimeLimitInSeconds = taskTimeLimitInSeconds; return this; } + @CustomType.Setter public Builder taskTitle(String taskTitle) { this.taskTitle = Objects.requireNonNull(taskTitle); return this; } + @CustomType.Setter public Builder workteamArn(String workteamArn) { this.workteamArn = Objects.requireNonNull(workteamArn); return this; - } public FlowDefinitionHumanLoopConfig build() { - return new FlowDefinitionHumanLoopConfig(humanTaskUiArn, publicWorkforceTaskPrice, taskAvailabilityLifetimeInSeconds, taskCount, taskDescription, taskKeywords, taskTimeLimitInSeconds, taskTitle, workteamArn); + } + public FlowDefinitionHumanLoopConfig build() { + final var o = new FlowDefinitionHumanLoopConfig(); + o.humanTaskUiArn = humanTaskUiArn; + o.publicWorkforceTaskPrice = publicWorkforceTaskPrice; + o.taskAvailabilityLifetimeInSeconds = taskAvailabilityLifetimeInSeconds; + o.taskCount = taskCount; + o.taskDescription = taskDescription; + o.taskKeywords = taskKeywords; + o.taskTimeLimitInSeconds = taskTimeLimitInSeconds; + o.taskTitle = taskTitle; + o.workteamArn = workteamArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice.java index 22333171ba7..668d480cd97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice.java @@ -15,13 +15,9 @@ public final class FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice { * @return Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars. See Amount In Usd details below. * */ - private final @Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd amountInUsd; - - @CustomType.Constructor - private FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice(@CustomType.Parameter("amountInUsd") @Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd amountInUsd) { - this.amountInUsd = amountInUsd; - } + private @Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd amountInUsd; + private FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice() {} /** * @return Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars. See Amount In Usd details below. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd amountInUsd; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice defaults) { Objects.requireNonNull(defaults); this.amountInUsd = defaults.amountInUsd; } + @CustomType.Setter public Builder amountInUsd(@Nullable FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd amountInUsd) { this.amountInUsd = amountInUsd; return this; - } public FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice build() { - return new FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice(amountInUsd); + } + public FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice build() { + final var o = new FlowDefinitionHumanLoopConfigPublicWorkforceTaskPrice(); + o.amountInUsd = amountInUsd; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd.java index 96bf2f2829f..f815f32efd3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd.java @@ -15,28 +15,19 @@ public final class FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountIn * @return The fractional portion, in cents, of the amount. Valid value range between `0` and `99`. * */ - private final @Nullable Integer cents; + private @Nullable Integer cents; /** * @return The whole number of dollars in the amount. Valid value range between `0` and `2`. * */ - private final @Nullable Integer dollars; + private @Nullable Integer dollars; /** * @return Fractions of a cent, in tenths. Valid value range between `0` and `9`. * */ - private final @Nullable Integer tenthFractionsOfACent; - - @CustomType.Constructor - private FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd( - @CustomType.Parameter("cents") @Nullable Integer cents, - @CustomType.Parameter("dollars") @Nullable Integer dollars, - @CustomType.Parameter("tenthFractionsOfACent") @Nullable Integer tenthFractionsOfACent) { - this.cents = cents; - this.dollars = dollars; - this.tenthFractionsOfACent = tenthFractionsOfACent; - } + private @Nullable Integer tenthFractionsOfACent; + private FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd() {} /** * @return The fractional portion, in cents, of the amount. Valid value range between `0` and `99`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer cents; private @Nullable Integer dollars; private @Nullable Integer tenthFractionsOfACent; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd defaults) { Objects.requireNonNull(defaults); this.cents = defaults.cents; @@ -83,19 +70,27 @@ public Builder(FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd this.tenthFractionsOfACent = defaults.tenthFractionsOfACent; } + @CustomType.Setter public Builder cents(@Nullable Integer cents) { this.cents = cents; return this; } + @CustomType.Setter public Builder dollars(@Nullable Integer dollars) { this.dollars = dollars; return this; } + @CustomType.Setter public Builder tenthFractionsOfACent(@Nullable Integer tenthFractionsOfACent) { this.tenthFractionsOfACent = tenthFractionsOfACent; return this; - } public FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd build() { - return new FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd(cents, dollars, tenthFractionsOfACent); + } + public FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd build() { + final var o = new FlowDefinitionHumanLoopConfigPublicWorkforceTaskPriceAmountInUsd(); + o.cents = cents; + o.dollars = dollars; + o.tenthFractionsOfACent = tenthFractionsOfACent; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopRequestSource.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopRequestSource.java index a8be6c7dea1..0b171911c55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopRequestSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionHumanLoopRequestSource.java @@ -13,13 +13,9 @@ public final class FlowDefinitionHumanLoopRequestSource { * @return Specifies whether Amazon Rekognition or Amazon Textract are used as the integration source. Valid values are: `AWS/Rekognition/DetectModerationLabels/Image/V3` and `AWS/Textract/AnalyzeDocument/Forms/V1`. * */ - private final String awsManagedHumanLoopRequestSource; - - @CustomType.Constructor - private FlowDefinitionHumanLoopRequestSource(@CustomType.Parameter("awsManagedHumanLoopRequestSource") String awsManagedHumanLoopRequestSource) { - this.awsManagedHumanLoopRequestSource = awsManagedHumanLoopRequestSource; - } + private String awsManagedHumanLoopRequestSource; + private FlowDefinitionHumanLoopRequestSource() {} /** * @return Specifies whether Amazon Rekognition or Amazon Textract are used as the integration source. Valid values are: `AWS/Rekognition/DetectModerationLabels/Image/V3` and `AWS/Textract/AnalyzeDocument/Forms/V1`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(FlowDefinitionHumanLoopRequestSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String awsManagedHumanLoopRequestSource; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDefinitionHumanLoopRequestSource defaults) { Objects.requireNonNull(defaults); this.awsManagedHumanLoopRequestSource = defaults.awsManagedHumanLoopRequestSource; } + @CustomType.Setter public Builder awsManagedHumanLoopRequestSource(String awsManagedHumanLoopRequestSource) { this.awsManagedHumanLoopRequestSource = Objects.requireNonNull(awsManagedHumanLoopRequestSource); return this; - } public FlowDefinitionHumanLoopRequestSource build() { - return new FlowDefinitionHumanLoopRequestSource(awsManagedHumanLoopRequestSource); + } + public FlowDefinitionHumanLoopRequestSource build() { + final var o = new FlowDefinitionHumanLoopRequestSource(); + o.awsManagedHumanLoopRequestSource = awsManagedHumanLoopRequestSource; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionOutputConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionOutputConfig.java index 16eb1d2fd33..fa6d2c6ecf0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionOutputConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/FlowDefinitionOutputConfig.java @@ -15,21 +15,14 @@ public final class FlowDefinitionOutputConfig { * @return The Amazon Key Management Service (KMS) key ARN for server-side encryption. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return The Amazon S3 path where the object containing human output will be made available. * */ - private final String s3OutputPath; - - @CustomType.Constructor - private FlowDefinitionOutputConfig( - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("s3OutputPath") String s3OutputPath) { - this.kmsKeyId = kmsKeyId; - this.s3OutputPath = s3OutputPath; - } + private String s3OutputPath; + private FlowDefinitionOutputConfig() {} /** * @return The Amazon Key Management Service (KMS) key ARN for server-side encryption. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(FlowDefinitionOutputConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsKeyId; private String s3OutputPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FlowDefinitionOutputConfig defaults) { Objects.requireNonNull(defaults); this.kmsKeyId = defaults.kmsKeyId; this.s3OutputPath = defaults.s3OutputPath; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder s3OutputPath(String s3OutputPath) { this.s3OutputPath = Objects.requireNonNull(s3OutputPath); return this; - } public FlowDefinitionOutputConfig build() { - return new FlowDefinitionOutputConfig(kmsKeyId, s3OutputPath); + } + public FlowDefinitionOutputConfig build() { + final var o = new FlowDefinitionOutputConfig(); + o.kmsKeyId = kmsKeyId; + o.s3OutputPath = s3OutputPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/GetPrebuiltEcrImageResult.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/GetPrebuiltEcrImageResult.java index 8580cef90f3..43ae394bacf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/GetPrebuiltEcrImageResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/GetPrebuiltEcrImageResult.java @@ -11,44 +11,27 @@ @CustomType public final class GetPrebuiltEcrImageResult { - private final @Nullable String dnsSuffix; + private @Nullable String dnsSuffix; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String imageTag; - private final @Nullable String region; + private String id; + private @Nullable String imageTag; + private @Nullable String region; /** * @return The account ID containing the image. For example, `469771592824`. * */ - private final String registryId; + private String registryId; /** * @return The Docker image URL. For example, `341280168497.dkr.ecr.ca-central-1.amazonaws.com/sagemaker-sparkml-serving:2.4`. * */ - private final String registryPath; - private final String repositoryName; - - @CustomType.Constructor - private GetPrebuiltEcrImageResult( - @CustomType.Parameter("dnsSuffix") @Nullable String dnsSuffix, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("imageTag") @Nullable String imageTag, - @CustomType.Parameter("region") @Nullable String region, - @CustomType.Parameter("registryId") String registryId, - @CustomType.Parameter("registryPath") String registryPath, - @CustomType.Parameter("repositoryName") String repositoryName) { - this.dnsSuffix = dnsSuffix; - this.id = id; - this.imageTag = imageTag; - this.region = region; - this.registryId = registryId; - this.registryPath = registryPath; - this.repositoryName = repositoryName; - } + private String registryPath; + private String repositoryName; + private GetPrebuiltEcrImageResult() {} public Optional dnsSuffix() { return Optional.ofNullable(this.dnsSuffix); } @@ -90,7 +73,7 @@ public static Builder builder() { public static Builder builder(GetPrebuiltEcrImageResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dnsSuffix; private String id; @@ -99,11 +82,7 @@ public static final class Builder { private String registryId; private String registryPath; private String repositoryName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPrebuiltEcrImageResult defaults) { Objects.requireNonNull(defaults); this.dnsSuffix = defaults.dnsSuffix; @@ -115,35 +94,51 @@ public Builder(GetPrebuiltEcrImageResult defaults) { this.repositoryName = defaults.repositoryName; } + @CustomType.Setter public Builder dnsSuffix(@Nullable String dnsSuffix) { this.dnsSuffix = dnsSuffix; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder imageTag(@Nullable String imageTag) { this.imageTag = imageTag; return this; } + @CustomType.Setter public Builder region(@Nullable String region) { this.region = region; return this; } + @CustomType.Setter public Builder registryId(String registryId) { this.registryId = Objects.requireNonNull(registryId); return this; } + @CustomType.Setter public Builder registryPath(String registryPath) { this.registryPath = Objects.requireNonNull(registryPath); return this; } + @CustomType.Setter public Builder repositoryName(String repositoryName) { this.repositoryName = Objects.requireNonNull(repositoryName); return this; - } public GetPrebuiltEcrImageResult build() { - return new GetPrebuiltEcrImageResult(dnsSuffix, id, imageTag, region, registryId, registryPath, repositoryName); + } + public GetPrebuiltEcrImageResult build() { + final var o = new GetPrebuiltEcrImageResult(); + o.dnsSuffix = dnsSuffix; + o.id = id; + o.imageTag = imageTag; + o.region = region; + o.registryId = registryId; + o.registryPath = registryPath; + o.repositoryName = repositoryName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/HumanTaskUIUiTemplate.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/HumanTaskUIUiTemplate.java index bd07050f667..6a9517c4bfc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/HumanTaskUIUiTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/HumanTaskUIUiTemplate.java @@ -15,28 +15,19 @@ public final class HumanTaskUIUiTemplate { * @return The content of the Liquid template for the worker user interface. * */ - private final @Nullable String content; + private @Nullable String content; /** * @return The SHA-256 digest of the contents of the template. * */ - private final @Nullable String contentSha256; + private @Nullable String contentSha256; /** * @return The URL for the user interface template. * */ - private final @Nullable String url; - - @CustomType.Constructor - private HumanTaskUIUiTemplate( - @CustomType.Parameter("content") @Nullable String content, - @CustomType.Parameter("contentSha256") @Nullable String contentSha256, - @CustomType.Parameter("url") @Nullable String url) { - this.content = content; - this.contentSha256 = contentSha256; - this.url = url; - } + private @Nullable String url; + private HumanTaskUIUiTemplate() {} /** * @return The content of the Liquid template for the worker user interface. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(HumanTaskUIUiTemplate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String content; private @Nullable String contentSha256; private @Nullable String url; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(HumanTaskUIUiTemplate defaults) { Objects.requireNonNull(defaults); this.content = defaults.content; @@ -83,19 +70,27 @@ public Builder(HumanTaskUIUiTemplate defaults) { this.url = defaults.url; } + @CustomType.Setter public Builder content(@Nullable String content) { this.content = content; return this; } + @CustomType.Setter public Builder contentSha256(@Nullable String contentSha256) { this.contentSha256 = contentSha256; return this; } + @CustomType.Setter public Builder url(@Nullable String url) { this.url = url; return this; - } public HumanTaskUIUiTemplate build() { - return new HumanTaskUIUiTemplate(content, contentSha256, url); + } + public HumanTaskUIUiTemplate build() { + final var o = new HumanTaskUIUiTemplate(); + o.content = content; + o.contentSha256 = contentSha256; + o.url = url; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelContainer.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelContainer.java index 11f0683cc4c..f550021de21 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelContainer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelContainer.java @@ -17,50 +17,35 @@ public final class ModelContainer { * @return The DNS host name for the container. * */ - private final @Nullable String containerHostname; + private @Nullable String containerHostname; /** * @return Environment variables for the Docker container. * A list of key value pairs. * */ - private final @Nullable Map environment; + private @Nullable Map environment; /** * @return The registry path where the inference code image is stored in Amazon ECR. * */ - private final String image; + private String image; /** * @return Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). For more information see [Using a Private Docker Registry for Real-Time Inference Containers](https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-containers-inference-private.html). see Image Config. * */ - private final @Nullable ModelContainerImageConfig imageConfig; + private @Nullable ModelContainerImageConfig imageConfig; /** * @return The container hosts value `SingleModel/MultiModel`. The default value is `SingleModel`. * */ - private final @Nullable String mode; + private @Nullable String mode; /** * @return The URL for the S3 location where model artifacts are stored. * */ - private final @Nullable String modelDataUrl; - - @CustomType.Constructor - private ModelContainer( - @CustomType.Parameter("containerHostname") @Nullable String containerHostname, - @CustomType.Parameter("environment") @Nullable Map environment, - @CustomType.Parameter("image") String image, - @CustomType.Parameter("imageConfig") @Nullable ModelContainerImageConfig imageConfig, - @CustomType.Parameter("mode") @Nullable String mode, - @CustomType.Parameter("modelDataUrl") @Nullable String modelDataUrl) { - this.containerHostname = containerHostname; - this.environment = environment; - this.image = image; - this.imageConfig = imageConfig; - this.mode = mode; - this.modelDataUrl = modelDataUrl; - } + private @Nullable String modelDataUrl; + private ModelContainer() {} /** * @return The DNS host name for the container. * @@ -112,7 +97,7 @@ public static Builder builder() { public static Builder builder(ModelContainer defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String containerHostname; private @Nullable Map environment; @@ -120,11 +105,7 @@ public static final class Builder { private @Nullable ModelContainerImageConfig imageConfig; private @Nullable String mode; private @Nullable String modelDataUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ModelContainer defaults) { Objects.requireNonNull(defaults); this.containerHostname = defaults.containerHostname; @@ -135,31 +116,45 @@ public Builder(ModelContainer defaults) { this.modelDataUrl = defaults.modelDataUrl; } + @CustomType.Setter public Builder containerHostname(@Nullable String containerHostname) { this.containerHostname = containerHostname; return this; } + @CustomType.Setter public Builder environment(@Nullable Map environment) { this.environment = environment; return this; } + @CustomType.Setter public Builder image(String image) { this.image = Objects.requireNonNull(image); return this; } + @CustomType.Setter public Builder imageConfig(@Nullable ModelContainerImageConfig imageConfig) { this.imageConfig = imageConfig; return this; } + @CustomType.Setter public Builder mode(@Nullable String mode) { this.mode = mode; return this; } + @CustomType.Setter public Builder modelDataUrl(@Nullable String modelDataUrl) { this.modelDataUrl = modelDataUrl; return this; - } public ModelContainer build() { - return new ModelContainer(containerHostname, environment, image, imageConfig, mode, modelDataUrl); + } + public ModelContainer build() { + final var o = new ModelContainer(); + o.containerHostname = containerHostname; + o.environment = environment; + o.image = image; + o.imageConfig = imageConfig; + o.mode = mode; + o.modelDataUrl = modelDataUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelContainerImageConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelContainerImageConfig.java index 1bd30b925cd..d600b0bc040 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelContainerImageConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelContainerImageConfig.java @@ -16,21 +16,14 @@ public final class ModelContainerImageConfig { * @return Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). Allowed values are: `Platform` and `Vpc`. * */ - private final String repositoryAccessMode; + private String repositoryAccessMode; /** * @return Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc as the value for the RepositoryAccessMode field, and the private Docker registry where the model image is hosted requires authentication. see Repository Auth Config. * */ - private final @Nullable ModelContainerImageConfigRepositoryAuthConfig repositoryAuthConfig; - - @CustomType.Constructor - private ModelContainerImageConfig( - @CustomType.Parameter("repositoryAccessMode") String repositoryAccessMode, - @CustomType.Parameter("repositoryAuthConfig") @Nullable ModelContainerImageConfigRepositoryAuthConfig repositoryAuthConfig) { - this.repositoryAccessMode = repositoryAccessMode; - this.repositoryAuthConfig = repositoryAuthConfig; - } + private @Nullable ModelContainerImageConfigRepositoryAuthConfig repositoryAuthConfig; + private ModelContainerImageConfig() {} /** * @return Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). Allowed values are: `Platform` and `Vpc`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ModelContainerImageConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String repositoryAccessMode; private @Nullable ModelContainerImageConfigRepositoryAuthConfig repositoryAuthConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ModelContainerImageConfig defaults) { Objects.requireNonNull(defaults); this.repositoryAccessMode = defaults.repositoryAccessMode; this.repositoryAuthConfig = defaults.repositoryAuthConfig; } + @CustomType.Setter public Builder repositoryAccessMode(String repositoryAccessMode) { this.repositoryAccessMode = Objects.requireNonNull(repositoryAccessMode); return this; } + @CustomType.Setter public Builder repositoryAuthConfig(@Nullable ModelContainerImageConfigRepositoryAuthConfig repositoryAuthConfig) { this.repositoryAuthConfig = repositoryAuthConfig; return this; - } public ModelContainerImageConfig build() { - return new ModelContainerImageConfig(repositoryAccessMode, repositoryAuthConfig); + } + public ModelContainerImageConfig build() { + final var o = new ModelContainerImageConfig(); + o.repositoryAccessMode = repositoryAccessMode; + o.repositoryAuthConfig = repositoryAuthConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelContainerImageConfigRepositoryAuthConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelContainerImageConfigRepositoryAuthConfig.java index a642ae723aa..bf5cc345f0e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelContainerImageConfigRepositoryAuthConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelContainerImageConfigRepositoryAuthConfig.java @@ -13,13 +13,9 @@ public final class ModelContainerImageConfigRepositoryAuthConfig { * @return The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted. For information about how to create an AWS Lambda function, see [Create a Lambda function with the console](https://docs.aws.amazon.com/lambda/latest/dg/getting-started-create-function.html) in the _AWS Lambda Developer Guide_. * */ - private final String repositoryCredentialsProviderArn; - - @CustomType.Constructor - private ModelContainerImageConfigRepositoryAuthConfig(@CustomType.Parameter("repositoryCredentialsProviderArn") String repositoryCredentialsProviderArn) { - this.repositoryCredentialsProviderArn = repositoryCredentialsProviderArn; - } + private String repositoryCredentialsProviderArn; + private ModelContainerImageConfigRepositoryAuthConfig() {} /** * @return The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted. For information about how to create an AWS Lambda function, see [Create a Lambda function with the console](https://docs.aws.amazon.com/lambda/latest/dg/getting-started-create-function.html) in the _AWS Lambda Developer Guide_. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ModelContainerImageConfigRepositoryAuthConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String repositoryCredentialsProviderArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ModelContainerImageConfigRepositoryAuthConfig defaults) { Objects.requireNonNull(defaults); this.repositoryCredentialsProviderArn = defaults.repositoryCredentialsProviderArn; } + @CustomType.Setter public Builder repositoryCredentialsProviderArn(String repositoryCredentialsProviderArn) { this.repositoryCredentialsProviderArn = Objects.requireNonNull(repositoryCredentialsProviderArn); return this; - } public ModelContainerImageConfigRepositoryAuthConfig build() { - return new ModelContainerImageConfigRepositoryAuthConfig(repositoryCredentialsProviderArn); + } + public ModelContainerImageConfigRepositoryAuthConfig build() { + final var o = new ModelContainerImageConfigRepositoryAuthConfig(); + o.repositoryCredentialsProviderArn = repositoryCredentialsProviderArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelInferenceExecutionConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelInferenceExecutionConfig.java index 649c1257dc0..e9bb5d47a11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelInferenceExecutionConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelInferenceExecutionConfig.java @@ -13,13 +13,9 @@ public final class ModelInferenceExecutionConfig { * @return The container hosts value `SingleModel/MultiModel`. The default value is `SingleModel`. * */ - private final String mode; - - @CustomType.Constructor - private ModelInferenceExecutionConfig(@CustomType.Parameter("mode") String mode) { - this.mode = mode; - } + private String mode; + private ModelInferenceExecutionConfig() {} /** * @return The container hosts value `SingleModel/MultiModel`. The default value is `SingleModel`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ModelInferenceExecutionConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String mode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ModelInferenceExecutionConfig defaults) { Objects.requireNonNull(defaults); this.mode = defaults.mode; } + @CustomType.Setter public Builder mode(String mode) { this.mode = Objects.requireNonNull(mode); return this; - } public ModelInferenceExecutionConfig build() { - return new ModelInferenceExecutionConfig(mode); + } + public ModelInferenceExecutionConfig build() { + final var o = new ModelInferenceExecutionConfig(); + o.mode = mode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelPrimaryContainer.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelPrimaryContainer.java index 6b457163723..964b06249a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelPrimaryContainer.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelPrimaryContainer.java @@ -17,50 +17,35 @@ public final class ModelPrimaryContainer { * @return The DNS host name for the container. * */ - private final @Nullable String containerHostname; + private @Nullable String containerHostname; /** * @return Environment variables for the Docker container. * A list of key value pairs. * */ - private final @Nullable Map environment; + private @Nullable Map environment; /** * @return The registry path where the inference code image is stored in Amazon ECR. * */ - private final String image; + private String image; /** * @return Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). For more information see [Using a Private Docker Registry for Real-Time Inference Containers](https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-containers-inference-private.html). see Image Config. * */ - private final @Nullable ModelPrimaryContainerImageConfig imageConfig; + private @Nullable ModelPrimaryContainerImageConfig imageConfig; /** * @return The container hosts value `SingleModel/MultiModel`. The default value is `SingleModel`. * */ - private final @Nullable String mode; + private @Nullable String mode; /** * @return The URL for the S3 location where model artifacts are stored. * */ - private final @Nullable String modelDataUrl; - - @CustomType.Constructor - private ModelPrimaryContainer( - @CustomType.Parameter("containerHostname") @Nullable String containerHostname, - @CustomType.Parameter("environment") @Nullable Map environment, - @CustomType.Parameter("image") String image, - @CustomType.Parameter("imageConfig") @Nullable ModelPrimaryContainerImageConfig imageConfig, - @CustomType.Parameter("mode") @Nullable String mode, - @CustomType.Parameter("modelDataUrl") @Nullable String modelDataUrl) { - this.containerHostname = containerHostname; - this.environment = environment; - this.image = image; - this.imageConfig = imageConfig; - this.mode = mode; - this.modelDataUrl = modelDataUrl; - } + private @Nullable String modelDataUrl; + private ModelPrimaryContainer() {} /** * @return The DNS host name for the container. * @@ -112,7 +97,7 @@ public static Builder builder() { public static Builder builder(ModelPrimaryContainer defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String containerHostname; private @Nullable Map environment; @@ -120,11 +105,7 @@ public static final class Builder { private @Nullable ModelPrimaryContainerImageConfig imageConfig; private @Nullable String mode; private @Nullable String modelDataUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ModelPrimaryContainer defaults) { Objects.requireNonNull(defaults); this.containerHostname = defaults.containerHostname; @@ -135,31 +116,45 @@ public Builder(ModelPrimaryContainer defaults) { this.modelDataUrl = defaults.modelDataUrl; } + @CustomType.Setter public Builder containerHostname(@Nullable String containerHostname) { this.containerHostname = containerHostname; return this; } + @CustomType.Setter public Builder environment(@Nullable Map environment) { this.environment = environment; return this; } + @CustomType.Setter public Builder image(String image) { this.image = Objects.requireNonNull(image); return this; } + @CustomType.Setter public Builder imageConfig(@Nullable ModelPrimaryContainerImageConfig imageConfig) { this.imageConfig = imageConfig; return this; } + @CustomType.Setter public Builder mode(@Nullable String mode) { this.mode = mode; return this; } + @CustomType.Setter public Builder modelDataUrl(@Nullable String modelDataUrl) { this.modelDataUrl = modelDataUrl; return this; - } public ModelPrimaryContainer build() { - return new ModelPrimaryContainer(containerHostname, environment, image, imageConfig, mode, modelDataUrl); + } + public ModelPrimaryContainer build() { + final var o = new ModelPrimaryContainer(); + o.containerHostname = containerHostname; + o.environment = environment; + o.image = image; + o.imageConfig = imageConfig; + o.mode = mode; + o.modelDataUrl = modelDataUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelPrimaryContainerImageConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelPrimaryContainerImageConfig.java index a0c3b5bf321..b7d3cd928c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelPrimaryContainerImageConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelPrimaryContainerImageConfig.java @@ -16,21 +16,14 @@ public final class ModelPrimaryContainerImageConfig { * @return Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). Allowed values are: `Platform` and `Vpc`. * */ - private final String repositoryAccessMode; + private String repositoryAccessMode; /** * @return Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc as the value for the RepositoryAccessMode field, and the private Docker registry where the model image is hosted requires authentication. see Repository Auth Config. * */ - private final @Nullable ModelPrimaryContainerImageConfigRepositoryAuthConfig repositoryAuthConfig; - - @CustomType.Constructor - private ModelPrimaryContainerImageConfig( - @CustomType.Parameter("repositoryAccessMode") String repositoryAccessMode, - @CustomType.Parameter("repositoryAuthConfig") @Nullable ModelPrimaryContainerImageConfigRepositoryAuthConfig repositoryAuthConfig) { - this.repositoryAccessMode = repositoryAccessMode; - this.repositoryAuthConfig = repositoryAuthConfig; - } + private @Nullable ModelPrimaryContainerImageConfigRepositoryAuthConfig repositoryAuthConfig; + private ModelPrimaryContainerImageConfig() {} /** * @return Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). Allowed values are: `Platform` and `Vpc`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(ModelPrimaryContainerImageConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String repositoryAccessMode; private @Nullable ModelPrimaryContainerImageConfigRepositoryAuthConfig repositoryAuthConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ModelPrimaryContainerImageConfig defaults) { Objects.requireNonNull(defaults); this.repositoryAccessMode = defaults.repositoryAccessMode; this.repositoryAuthConfig = defaults.repositoryAuthConfig; } + @CustomType.Setter public Builder repositoryAccessMode(String repositoryAccessMode) { this.repositoryAccessMode = Objects.requireNonNull(repositoryAccessMode); return this; } + @CustomType.Setter public Builder repositoryAuthConfig(@Nullable ModelPrimaryContainerImageConfigRepositoryAuthConfig repositoryAuthConfig) { this.repositoryAuthConfig = repositoryAuthConfig; return this; - } public ModelPrimaryContainerImageConfig build() { - return new ModelPrimaryContainerImageConfig(repositoryAccessMode, repositoryAuthConfig); + } + public ModelPrimaryContainerImageConfig build() { + final var o = new ModelPrimaryContainerImageConfig(); + o.repositoryAccessMode = repositoryAccessMode; + o.repositoryAuthConfig = repositoryAuthConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelPrimaryContainerImageConfigRepositoryAuthConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelPrimaryContainerImageConfigRepositoryAuthConfig.java index 2256958ddcb..8de053d38b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelPrimaryContainerImageConfigRepositoryAuthConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelPrimaryContainerImageConfigRepositoryAuthConfig.java @@ -13,13 +13,9 @@ public final class ModelPrimaryContainerImageConfigRepositoryAuthConfig { * @return The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted. For information about how to create an AWS Lambda function, see [Create a Lambda function with the console](https://docs.aws.amazon.com/lambda/latest/dg/getting-started-create-function.html) in the _AWS Lambda Developer Guide_. * */ - private final String repositoryCredentialsProviderArn; - - @CustomType.Constructor - private ModelPrimaryContainerImageConfigRepositoryAuthConfig(@CustomType.Parameter("repositoryCredentialsProviderArn") String repositoryCredentialsProviderArn) { - this.repositoryCredentialsProviderArn = repositoryCredentialsProviderArn; - } + private String repositoryCredentialsProviderArn; + private ModelPrimaryContainerImageConfigRepositoryAuthConfig() {} /** * @return The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted. For information about how to create an AWS Lambda function, see [Create a Lambda function with the console](https://docs.aws.amazon.com/lambda/latest/dg/getting-started-create-function.html) in the _AWS Lambda Developer Guide_. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(ModelPrimaryContainerImageConfigRepositoryAuthConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String repositoryCredentialsProviderArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ModelPrimaryContainerImageConfigRepositoryAuthConfig defaults) { Objects.requireNonNull(defaults); this.repositoryCredentialsProviderArn = defaults.repositoryCredentialsProviderArn; } + @CustomType.Setter public Builder repositoryCredentialsProviderArn(String repositoryCredentialsProviderArn) { this.repositoryCredentialsProviderArn = Objects.requireNonNull(repositoryCredentialsProviderArn); return this; - } public ModelPrimaryContainerImageConfigRepositoryAuthConfig build() { - return new ModelPrimaryContainerImageConfigRepositoryAuthConfig(repositoryCredentialsProviderArn); + } + public ModelPrimaryContainerImageConfigRepositoryAuthConfig build() { + final var o = new ModelPrimaryContainerImageConfigRepositoryAuthConfig(); + o.repositoryCredentialsProviderArn = repositoryCredentialsProviderArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelVpcConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelVpcConfig.java index 67d4f0438d6..f7cf2a20bf0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelVpcConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ModelVpcConfig.java @@ -10,17 +10,10 @@ @CustomType public final class ModelVpcConfig { - private final List securityGroupIds; - private final List subnets; - - @CustomType.Constructor - private ModelVpcConfig( - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnets") List subnets) { - this.securityGroupIds = securityGroupIds; - this.subnets = subnets; - } + private List securityGroupIds; + private List subnets; + private ModelVpcConfig() {} public List securityGroupIds() { return this.securityGroupIds; } @@ -35,21 +28,18 @@ public static Builder builder() { public static Builder builder(ModelVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List securityGroupIds; private List subnets; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ModelVpcConfig defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; this.subnets = defaults.subnets; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -57,14 +47,19 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnets(List subnets) { this.subnets = Objects.requireNonNull(subnets); return this; } public Builder subnets(String... subnets) { return subnets(List.of(subnets)); - } public ModelVpcConfig build() { - return new ModelVpcConfig(securityGroupIds, subnets); + } + public ModelVpcConfig build() { + final var o = new ModelVpcConfig(); + o.securityGroupIds = securityGroupIds; + o.subnets = subnets; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/NotebookInstanceInstanceMetadataServiceConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/NotebookInstanceInstanceMetadataServiceConfiguration.java index 8258581cf59..ef0615b4335 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/NotebookInstanceInstanceMetadataServiceConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/NotebookInstanceInstanceMetadataServiceConfiguration.java @@ -15,13 +15,9 @@ public final class NotebookInstanceInstanceMetadataServiceConfiguration { * @return Indicates the minimum IMDS version that the notebook instance supports. When passed "1" is passed. This means that both IMDSv1 and IMDSv2 are supported. Valid values are `1` and `2`. * */ - private final @Nullable String minimumInstanceMetadataServiceVersion; - - @CustomType.Constructor - private NotebookInstanceInstanceMetadataServiceConfiguration(@CustomType.Parameter("minimumInstanceMetadataServiceVersion") @Nullable String minimumInstanceMetadataServiceVersion) { - this.minimumInstanceMetadataServiceVersion = minimumInstanceMetadataServiceVersion; - } + private @Nullable String minimumInstanceMetadataServiceVersion; + private NotebookInstanceInstanceMetadataServiceConfiguration() {} /** * @return Indicates the minimum IMDS version that the notebook instance supports. When passed "1" is passed. This means that both IMDSv1 and IMDSv2 are supported. Valid values are `1` and `2`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(NotebookInstanceInstanceMetadataServiceConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String minimumInstanceMetadataServiceVersion; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NotebookInstanceInstanceMetadataServiceConfiguration defaults) { Objects.requireNonNull(defaults); this.minimumInstanceMetadataServiceVersion = defaults.minimumInstanceMetadataServiceVersion; } + @CustomType.Setter public Builder minimumInstanceMetadataServiceVersion(@Nullable String minimumInstanceMetadataServiceVersion) { this.minimumInstanceMetadataServiceVersion = minimumInstanceMetadataServiceVersion; return this; - } public NotebookInstanceInstanceMetadataServiceConfiguration build() { - return new NotebookInstanceInstanceMetadataServiceConfiguration(minimumInstanceMetadataServiceVersion); + } + public NotebookInstanceInstanceMetadataServiceConfiguration build() { + final var o = new NotebookInstanceInstanceMetadataServiceConfiguration(); + o.minimumInstanceMetadataServiceVersion = minimumInstanceMetadataServiceVersion; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ProjectServiceCatalogProvisioningDetails.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ProjectServiceCatalogProvisioningDetails.java index da2e1c3232b..597f25876b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ProjectServiceCatalogProvisioningDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ProjectServiceCatalogProvisioningDetails.java @@ -17,35 +17,24 @@ public final class ProjectServiceCatalogProvisioningDetails { * @return The path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. * */ - private final @Nullable String pathId; + private @Nullable String pathId; /** * @return The ID of the product to provision. * */ - private final String productId; + private String productId; /** * @return The ID of the provisioning artifact. * */ - private final @Nullable String provisioningArtifactId; + private @Nullable String provisioningArtifactId; /** * @return A list of key value pairs that you specify when you provision a product. See Provisioning Parameter below. * */ - private final @Nullable List provisioningParameters; - - @CustomType.Constructor - private ProjectServiceCatalogProvisioningDetails( - @CustomType.Parameter("pathId") @Nullable String pathId, - @CustomType.Parameter("productId") String productId, - @CustomType.Parameter("provisioningArtifactId") @Nullable String provisioningArtifactId, - @CustomType.Parameter("provisioningParameters") @Nullable List provisioningParameters) { - this.pathId = pathId; - this.productId = productId; - this.provisioningArtifactId = provisioningArtifactId; - this.provisioningParameters = provisioningParameters; - } + private @Nullable List provisioningParameters; + private ProjectServiceCatalogProvisioningDetails() {} /** * @return The path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(ProjectServiceCatalogProvisioningDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String pathId; private String productId; private @Nullable String provisioningArtifactId; private @Nullable List provisioningParameters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProjectServiceCatalogProvisioningDetails defaults) { Objects.requireNonNull(defaults); this.pathId = defaults.pathId; @@ -101,26 +86,36 @@ public Builder(ProjectServiceCatalogProvisioningDetails defaults) { this.provisioningParameters = defaults.provisioningParameters; } + @CustomType.Setter public Builder pathId(@Nullable String pathId) { this.pathId = pathId; return this; } + @CustomType.Setter public Builder productId(String productId) { this.productId = Objects.requireNonNull(productId); return this; } + @CustomType.Setter public Builder provisioningArtifactId(@Nullable String provisioningArtifactId) { this.provisioningArtifactId = provisioningArtifactId; return this; } + @CustomType.Setter public Builder provisioningParameters(@Nullable List provisioningParameters) { this.provisioningParameters = provisioningParameters; return this; } public Builder provisioningParameters(ProjectServiceCatalogProvisioningDetailsProvisioningParameter... provisioningParameters) { return provisioningParameters(List.of(provisioningParameters)); - } public ProjectServiceCatalogProvisioningDetails build() { - return new ProjectServiceCatalogProvisioningDetails(pathId, productId, provisioningArtifactId, provisioningParameters); + } + public ProjectServiceCatalogProvisioningDetails build() { + final var o = new ProjectServiceCatalogProvisioningDetails(); + o.pathId = pathId; + o.productId = productId; + o.provisioningArtifactId = provisioningArtifactId; + o.provisioningParameters = provisioningParameters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ProjectServiceCatalogProvisioningDetailsProvisioningParameter.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ProjectServiceCatalogProvisioningDetailsProvisioningParameter.java index 146e69c6772..83a3cb6a7b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ProjectServiceCatalogProvisioningDetailsProvisioningParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/ProjectServiceCatalogProvisioningDetailsProvisioningParameter.java @@ -15,21 +15,14 @@ public final class ProjectServiceCatalogProvisioningDetailsProvisioningParameter * @return The key that identifies a provisioning parameter. * */ - private final String key; + private String key; /** * @return The value of the provisioning parameter. * */ - private final @Nullable String value; - - @CustomType.Constructor - private ProjectServiceCatalogProvisioningDetailsProvisioningParameter( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") @Nullable String value) { - this.key = key; - this.value = value; - } + private @Nullable String value; + private ProjectServiceCatalogProvisioningDetailsProvisioningParameter() {} /** * @return The key that identifies a provisioning parameter. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ProjectServiceCatalogProvisioningDetailsProvisioningParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProjectServiceCatalogProvisioningDetailsProvisioningParameter defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public ProjectServiceCatalogProvisioningDetailsProvisioningParameter build() { - return new ProjectServiceCatalogProvisioningDetailsProvisioningParameter(key, value); + } + public ProjectServiceCatalogProvisioningDetailsProvisioningParameter build() { + final var o = new ProjectServiceCatalogProvisioningDetailsProvisioningParameter(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettings.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettings.java index bfa98719a03..b8fad558958 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettings.java @@ -20,49 +20,34 @@ public final class UserProfileUserSettings { * @return The execution role ARN for the user. * */ - private final String executionRole; + private String executionRole; /** * @return The Jupyter server's app settings. See Jupyter Server App Settings below. * */ - private final @Nullable UserProfileUserSettingsJupyterServerAppSettings jupyterServerAppSettings; + private @Nullable UserProfileUserSettingsJupyterServerAppSettings jupyterServerAppSettings; /** * @return The kernel gateway app settings. See Kernel Gateway App Settings below. * */ - private final @Nullable UserProfileUserSettingsKernelGatewayAppSettings kernelGatewayAppSettings; + private @Nullable UserProfileUserSettingsKernelGatewayAppSettings kernelGatewayAppSettings; /** * @return The security groups. * */ - private final @Nullable List securityGroups; + private @Nullable List securityGroups; /** * @return The sharing settings. See Sharing Settings below. * */ - private final @Nullable UserProfileUserSettingsSharingSettings sharingSettings; + private @Nullable UserProfileUserSettingsSharingSettings sharingSettings; /** * @return The TensorBoard app settings. See TensorBoard App Settings below. * */ - private final @Nullable UserProfileUserSettingsTensorBoardAppSettings tensorBoardAppSettings; - - @CustomType.Constructor - private UserProfileUserSettings( - @CustomType.Parameter("executionRole") String executionRole, - @CustomType.Parameter("jupyterServerAppSettings") @Nullable UserProfileUserSettingsJupyterServerAppSettings jupyterServerAppSettings, - @CustomType.Parameter("kernelGatewayAppSettings") @Nullable UserProfileUserSettingsKernelGatewayAppSettings kernelGatewayAppSettings, - @CustomType.Parameter("securityGroups") @Nullable List securityGroups, - @CustomType.Parameter("sharingSettings") @Nullable UserProfileUserSettingsSharingSettings sharingSettings, - @CustomType.Parameter("tensorBoardAppSettings") @Nullable UserProfileUserSettingsTensorBoardAppSettings tensorBoardAppSettings) { - this.executionRole = executionRole; - this.jupyterServerAppSettings = jupyterServerAppSettings; - this.kernelGatewayAppSettings = kernelGatewayAppSettings; - this.securityGroups = securityGroups; - this.sharingSettings = sharingSettings; - this.tensorBoardAppSettings = tensorBoardAppSettings; - } + private @Nullable UserProfileUserSettingsTensorBoardAppSettings tensorBoardAppSettings; + private UserProfileUserSettings() {} /** * @return The execution role ARN for the user. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(UserProfileUserSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String executionRole; private @Nullable UserProfileUserSettingsJupyterServerAppSettings jupyterServerAppSettings; @@ -121,11 +106,7 @@ public static final class Builder { private @Nullable List securityGroups; private @Nullable UserProfileUserSettingsSharingSettings sharingSettings; private @Nullable UserProfileUserSettingsTensorBoardAppSettings tensorBoardAppSettings; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserProfileUserSettings defaults) { Objects.requireNonNull(defaults); this.executionRole = defaults.executionRole; @@ -136,18 +117,22 @@ public Builder(UserProfileUserSettings defaults) { this.tensorBoardAppSettings = defaults.tensorBoardAppSettings; } + @CustomType.Setter public Builder executionRole(String executionRole) { this.executionRole = Objects.requireNonNull(executionRole); return this; } + @CustomType.Setter public Builder jupyterServerAppSettings(@Nullable UserProfileUserSettingsJupyterServerAppSettings jupyterServerAppSettings) { this.jupyterServerAppSettings = jupyterServerAppSettings; return this; } + @CustomType.Setter public Builder kernelGatewayAppSettings(@Nullable UserProfileUserSettingsKernelGatewayAppSettings kernelGatewayAppSettings) { this.kernelGatewayAppSettings = kernelGatewayAppSettings; return this; } + @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { this.securityGroups = securityGroups; return this; @@ -155,15 +140,25 @@ public Builder securityGroups(@Nullable List securityGroups) { public Builder securityGroups(String... securityGroups) { return securityGroups(List.of(securityGroups)); } + @CustomType.Setter public Builder sharingSettings(@Nullable UserProfileUserSettingsSharingSettings sharingSettings) { this.sharingSettings = sharingSettings; return this; } + @CustomType.Setter public Builder tensorBoardAppSettings(@Nullable UserProfileUserSettingsTensorBoardAppSettings tensorBoardAppSettings) { this.tensorBoardAppSettings = tensorBoardAppSettings; return this; - } public UserProfileUserSettings build() { - return new UserProfileUserSettings(executionRole, jupyterServerAppSettings, kernelGatewayAppSettings, securityGroups, sharingSettings, tensorBoardAppSettings); + } + public UserProfileUserSettings build() { + final var o = new UserProfileUserSettings(); + o.executionRole = executionRole; + o.jupyterServerAppSettings = jupyterServerAppSettings; + o.kernelGatewayAppSettings = kernelGatewayAppSettings; + o.securityGroups = securityGroups; + o.sharingSettings = sharingSettings; + o.tensorBoardAppSettings = tensorBoardAppSettings; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsJupyterServerAppSettings.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsJupyterServerAppSettings.java index 25fb3aa5aa3..de23819b6a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsJupyterServerAppSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsJupyterServerAppSettings.java @@ -16,21 +16,14 @@ public final class UserProfileUserSettingsJupyterServerAppSettings { * @return The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. * */ - private final UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaultResourceSpec; + private UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaultResourceSpec; /** * @return The Amazon Resource Name (ARN) of the Lifecycle Configurations. * */ - private final @Nullable List lifecycleConfigArns; - - @CustomType.Constructor - private UserProfileUserSettingsJupyterServerAppSettings( - @CustomType.Parameter("defaultResourceSpec") UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaultResourceSpec, - @CustomType.Parameter("lifecycleConfigArns") @Nullable List lifecycleConfigArns) { - this.defaultResourceSpec = defaultResourceSpec; - this.lifecycleConfigArns = lifecycleConfigArns; - } + private @Nullable List lifecycleConfigArns; + private UserProfileUserSettingsJupyterServerAppSettings() {} /** * @return The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(UserProfileUserSettingsJupyterServerAppSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaultResourceSpec; private @Nullable List lifecycleConfigArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserProfileUserSettingsJupyterServerAppSettings defaults) { Objects.requireNonNull(defaults); this.defaultResourceSpec = defaults.defaultResourceSpec; this.lifecycleConfigArns = defaults.lifecycleConfigArns; } + @CustomType.Setter public Builder defaultResourceSpec(UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaultResourceSpec) { this.defaultResourceSpec = Objects.requireNonNull(defaultResourceSpec); return this; } + @CustomType.Setter public Builder lifecycleConfigArns(@Nullable List lifecycleConfigArns) { this.lifecycleConfigArns = lifecycleConfigArns; return this; } public Builder lifecycleConfigArns(String... lifecycleConfigArns) { return lifecycleConfigArns(List.of(lifecycleConfigArns)); - } public UserProfileUserSettingsJupyterServerAppSettings build() { - return new UserProfileUserSettingsJupyterServerAppSettings(defaultResourceSpec, lifecycleConfigArns); + } + public UserProfileUserSettingsJupyterServerAppSettings build() { + final var o = new UserProfileUserSettingsJupyterServerAppSettings(); + o.defaultResourceSpec = defaultResourceSpec; + o.lifecycleConfigArns = lifecycleConfigArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec.java index 92a02826d7f..9e7c36a60f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec.java @@ -15,35 +15,24 @@ public final class UserProfileUserSettingsJupyterServerAppSettingsDefaultResourc * @return The instance type. * */ - private final @Nullable String instanceType; + private @Nullable String instanceType; /** * @return The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. * */ - private final @Nullable String lifecycleConfigArn; + private @Nullable String lifecycleConfigArn; /** * @return The Amazon Resource Name (ARN) of the SageMaker image created on the instance. * */ - private final @Nullable String sagemakerImageArn; + private @Nullable String sagemakerImageArn; /** * @return The ARN of the image version created on the instance. * */ - private final @Nullable String sagemakerImageVersionArn; - - @CustomType.Constructor - private UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec( - @CustomType.Parameter("instanceType") @Nullable String instanceType, - @CustomType.Parameter("lifecycleConfigArn") @Nullable String lifecycleConfigArn, - @CustomType.Parameter("sagemakerImageArn") @Nullable String sagemakerImageArn, - @CustomType.Parameter("sagemakerImageVersionArn") @Nullable String sagemakerImageVersionArn) { - this.instanceType = instanceType; - this.lifecycleConfigArn = lifecycleConfigArn; - this.sagemakerImageArn = sagemakerImageArn; - this.sagemakerImageVersionArn = sagemakerImageVersionArn; - } + private @Nullable String sagemakerImageVersionArn; + private UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec() {} /** * @return The instance type. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String instanceType; private @Nullable String lifecycleConfigArn; private @Nullable String sagemakerImageArn; private @Nullable String sagemakerImageVersionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec defaults) { Objects.requireNonNull(defaults); this.instanceType = defaults.instanceType; @@ -99,23 +84,33 @@ public Builder(UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpe this.sagemakerImageVersionArn = defaults.sagemakerImageVersionArn; } + @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { this.instanceType = instanceType; return this; } + @CustomType.Setter public Builder lifecycleConfigArn(@Nullable String lifecycleConfigArn) { this.lifecycleConfigArn = lifecycleConfigArn; return this; } + @CustomType.Setter public Builder sagemakerImageArn(@Nullable String sagemakerImageArn) { this.sagemakerImageArn = sagemakerImageArn; return this; } + @CustomType.Setter public Builder sagemakerImageVersionArn(@Nullable String sagemakerImageVersionArn) { this.sagemakerImageVersionArn = sagemakerImageVersionArn; return this; - } public UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec build() { - return new UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec(instanceType, lifecycleConfigArn, sagemakerImageArn, sagemakerImageVersionArn); + } + public UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec build() { + final var o = new UserProfileUserSettingsJupyterServerAppSettingsDefaultResourceSpec(); + o.instanceType = instanceType; + o.lifecycleConfigArn = lifecycleConfigArn; + o.sagemakerImageArn = sagemakerImageArn; + o.sagemakerImageVersionArn = sagemakerImageVersionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsKernelGatewayAppSettings.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsKernelGatewayAppSettings.java index 2fd29f1dcbe..e1ce1bad6ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsKernelGatewayAppSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsKernelGatewayAppSettings.java @@ -17,28 +17,19 @@ public final class UserProfileUserSettingsKernelGatewayAppSettings { * @return A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. * */ - private final @Nullable List customImages; + private @Nullable List customImages; /** * @return The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. * */ - private final UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec defaultResourceSpec; + private UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec defaultResourceSpec; /** * @return The Amazon Resource Name (ARN) of the Lifecycle Configurations. * */ - private final @Nullable List lifecycleConfigArns; - - @CustomType.Constructor - private UserProfileUserSettingsKernelGatewayAppSettings( - @CustomType.Parameter("customImages") @Nullable List customImages, - @CustomType.Parameter("defaultResourceSpec") UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec defaultResourceSpec, - @CustomType.Parameter("lifecycleConfigArns") @Nullable List lifecycleConfigArns) { - this.customImages = customImages; - this.defaultResourceSpec = defaultResourceSpec; - this.lifecycleConfigArns = lifecycleConfigArns; - } + private @Nullable List lifecycleConfigArns; + private UserProfileUserSettingsKernelGatewayAppSettings() {} /** * @return A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(UserProfileUserSettingsKernelGatewayAppSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List customImages; private UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec defaultResourceSpec; private @Nullable List lifecycleConfigArns; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserProfileUserSettingsKernelGatewayAppSettings defaults) { Objects.requireNonNull(defaults); this.customImages = defaults.customImages; @@ -85,6 +72,7 @@ public Builder(UserProfileUserSettingsKernelGatewayAppSettings defaults) { this.lifecycleConfigArns = defaults.lifecycleConfigArns; } + @CustomType.Setter public Builder customImages(@Nullable List customImages) { this.customImages = customImages; return this; @@ -92,18 +80,25 @@ public Builder customImages(@Nullable List lifecycleConfigArns) { this.lifecycleConfigArns = lifecycleConfigArns; return this; } public Builder lifecycleConfigArns(String... lifecycleConfigArns) { return lifecycleConfigArns(List.of(lifecycleConfigArns)); - } public UserProfileUserSettingsKernelGatewayAppSettings build() { - return new UserProfileUserSettingsKernelGatewayAppSettings(customImages, defaultResourceSpec, lifecycleConfigArns); + } + public UserProfileUserSettingsKernelGatewayAppSettings build() { + final var o = new UserProfileUserSettingsKernelGatewayAppSettings(); + o.customImages = customImages; + o.defaultResourceSpec = defaultResourceSpec; + o.lifecycleConfigArns = lifecycleConfigArns; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsKernelGatewayAppSettingsCustomImage.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsKernelGatewayAppSettingsCustomImage.java index b770c3328c6..cb95cced2ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsKernelGatewayAppSettingsCustomImage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsKernelGatewayAppSettingsCustomImage.java @@ -16,28 +16,19 @@ public final class UserProfileUserSettingsKernelGatewayAppSettingsCustomImage { * @return The name of the App Image Config. * */ - private final String appImageConfigName; + private String appImageConfigName; /** * @return The name of the Custom Image. * */ - private final String imageName; + private String imageName; /** * @return The version number of the Custom Image. * */ - private final @Nullable Integer imageVersionNumber; - - @CustomType.Constructor - private UserProfileUserSettingsKernelGatewayAppSettingsCustomImage( - @CustomType.Parameter("appImageConfigName") String appImageConfigName, - @CustomType.Parameter("imageName") String imageName, - @CustomType.Parameter("imageVersionNumber") @Nullable Integer imageVersionNumber) { - this.appImageConfigName = appImageConfigName; - this.imageName = imageName; - this.imageVersionNumber = imageVersionNumber; - } + private @Nullable Integer imageVersionNumber; + private UserProfileUserSettingsKernelGatewayAppSettingsCustomImage() {} /** * @return The name of the App Image Config. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(UserProfileUserSettingsKernelGatewayAppSettingsCustomImage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String appImageConfigName; private String imageName; private @Nullable Integer imageVersionNumber; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserProfileUserSettingsKernelGatewayAppSettingsCustomImage defaults) { Objects.requireNonNull(defaults); this.appImageConfigName = defaults.appImageConfigName; @@ -84,19 +71,27 @@ public Builder(UserProfileUserSettingsKernelGatewayAppSettingsCustomImage defaul this.imageVersionNumber = defaults.imageVersionNumber; } + @CustomType.Setter public Builder appImageConfigName(String appImageConfigName) { this.appImageConfigName = Objects.requireNonNull(appImageConfigName); return this; } + @CustomType.Setter public Builder imageName(String imageName) { this.imageName = Objects.requireNonNull(imageName); return this; } + @CustomType.Setter public Builder imageVersionNumber(@Nullable Integer imageVersionNumber) { this.imageVersionNumber = imageVersionNumber; return this; - } public UserProfileUserSettingsKernelGatewayAppSettingsCustomImage build() { - return new UserProfileUserSettingsKernelGatewayAppSettingsCustomImage(appImageConfigName, imageName, imageVersionNumber); + } + public UserProfileUserSettingsKernelGatewayAppSettingsCustomImage build() { + final var o = new UserProfileUserSettingsKernelGatewayAppSettingsCustomImage(); + o.appImageConfigName = appImageConfigName; + o.imageName = imageName; + o.imageVersionNumber = imageVersionNumber; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec.java index 85b8f8e5ec3..a54364b234b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec.java @@ -15,35 +15,24 @@ public final class UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourc * @return The instance type. * */ - private final @Nullable String instanceType; + private @Nullable String instanceType; /** * @return The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. * */ - private final @Nullable String lifecycleConfigArn; + private @Nullable String lifecycleConfigArn; /** * @return The Amazon Resource Name (ARN) of the SageMaker image created on the instance. * */ - private final @Nullable String sagemakerImageArn; + private @Nullable String sagemakerImageArn; /** * @return The ARN of the image version created on the instance. * */ - private final @Nullable String sagemakerImageVersionArn; - - @CustomType.Constructor - private UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec( - @CustomType.Parameter("instanceType") @Nullable String instanceType, - @CustomType.Parameter("lifecycleConfigArn") @Nullable String lifecycleConfigArn, - @CustomType.Parameter("sagemakerImageArn") @Nullable String sagemakerImageArn, - @CustomType.Parameter("sagemakerImageVersionArn") @Nullable String sagemakerImageVersionArn) { - this.instanceType = instanceType; - this.lifecycleConfigArn = lifecycleConfigArn; - this.sagemakerImageArn = sagemakerImageArn; - this.sagemakerImageVersionArn = sagemakerImageVersionArn; - } + private @Nullable String sagemakerImageVersionArn; + private UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec() {} /** * @return The instance type. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String instanceType; private @Nullable String lifecycleConfigArn; private @Nullable String sagemakerImageArn; private @Nullable String sagemakerImageVersionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec defaults) { Objects.requireNonNull(defaults); this.instanceType = defaults.instanceType; @@ -99,23 +84,33 @@ public Builder(UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpe this.sagemakerImageVersionArn = defaults.sagemakerImageVersionArn; } + @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { this.instanceType = instanceType; return this; } + @CustomType.Setter public Builder lifecycleConfigArn(@Nullable String lifecycleConfigArn) { this.lifecycleConfigArn = lifecycleConfigArn; return this; } + @CustomType.Setter public Builder sagemakerImageArn(@Nullable String sagemakerImageArn) { this.sagemakerImageArn = sagemakerImageArn; return this; } + @CustomType.Setter public Builder sagemakerImageVersionArn(@Nullable String sagemakerImageVersionArn) { this.sagemakerImageVersionArn = sagemakerImageVersionArn; return this; - } public UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec build() { - return new UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec(instanceType, lifecycleConfigArn, sagemakerImageArn, sagemakerImageVersionArn); + } + public UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec build() { + final var o = new UserProfileUserSettingsKernelGatewayAppSettingsDefaultResourceSpec(); + o.instanceType = instanceType; + o.lifecycleConfigArn = lifecycleConfigArn; + o.sagemakerImageArn = sagemakerImageArn; + o.sagemakerImageVersionArn = sagemakerImageVersionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsSharingSettings.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsSharingSettings.java index 3dfe0410ac2..c025a2d33bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsSharingSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsSharingSettings.java @@ -15,28 +15,19 @@ public final class UserProfileUserSettingsSharingSettings { * @return Whether to include the notebook cell output when sharing the notebook. The default is `Disabled`. Valid values are `Allowed` and `Disabled`. * */ - private final @Nullable String notebookOutputOption; + private @Nullable String notebookOutputOption; /** * @return When `notebook_output_option` is Allowed, the AWS Key Management Service (KMS) encryption key ID used to encrypt the notebook cell output in the Amazon S3 bucket. * */ - private final @Nullable String s3KmsKeyId; + private @Nullable String s3KmsKeyId; /** * @return When `notebook_output_option` is Allowed, the Amazon S3 bucket used to save the notebook cell output. * */ - private final @Nullable String s3OutputPath; - - @CustomType.Constructor - private UserProfileUserSettingsSharingSettings( - @CustomType.Parameter("notebookOutputOption") @Nullable String notebookOutputOption, - @CustomType.Parameter("s3KmsKeyId") @Nullable String s3KmsKeyId, - @CustomType.Parameter("s3OutputPath") @Nullable String s3OutputPath) { - this.notebookOutputOption = notebookOutputOption; - this.s3KmsKeyId = s3KmsKeyId; - this.s3OutputPath = s3OutputPath; - } + private @Nullable String s3OutputPath; + private UserProfileUserSettingsSharingSettings() {} /** * @return Whether to include the notebook cell output when sharing the notebook. The default is `Disabled`. Valid values are `Allowed` and `Disabled`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserProfileUserSettingsSharingSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String notebookOutputOption; private @Nullable String s3KmsKeyId; private @Nullable String s3OutputPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserProfileUserSettingsSharingSettings defaults) { Objects.requireNonNull(defaults); this.notebookOutputOption = defaults.notebookOutputOption; @@ -83,19 +70,27 @@ public Builder(UserProfileUserSettingsSharingSettings defaults) { this.s3OutputPath = defaults.s3OutputPath; } + @CustomType.Setter public Builder notebookOutputOption(@Nullable String notebookOutputOption) { this.notebookOutputOption = notebookOutputOption; return this; } + @CustomType.Setter public Builder s3KmsKeyId(@Nullable String s3KmsKeyId) { this.s3KmsKeyId = s3KmsKeyId; return this; } + @CustomType.Setter public Builder s3OutputPath(@Nullable String s3OutputPath) { this.s3OutputPath = s3OutputPath; return this; - } public UserProfileUserSettingsSharingSettings build() { - return new UserProfileUserSettingsSharingSettings(notebookOutputOption, s3KmsKeyId, s3OutputPath); + } + public UserProfileUserSettingsSharingSettings build() { + final var o = new UserProfileUserSettingsSharingSettings(); + o.notebookOutputOption = notebookOutputOption; + o.s3KmsKeyId = s3KmsKeyId; + o.s3OutputPath = s3OutputPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsTensorBoardAppSettings.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsTensorBoardAppSettings.java index 4ede303e548..2a4fcdeaa04 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsTensorBoardAppSettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsTensorBoardAppSettings.java @@ -13,13 +13,9 @@ public final class UserProfileUserSettingsTensorBoardAppSettings { * @return The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. * */ - private final UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaultResourceSpec; - - @CustomType.Constructor - private UserProfileUserSettingsTensorBoardAppSettings(@CustomType.Parameter("defaultResourceSpec") UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaultResourceSpec) { - this.defaultResourceSpec = defaultResourceSpec; - } + private UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaultResourceSpec; + private UserProfileUserSettingsTensorBoardAppSettings() {} /** * @return The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(UserProfileUserSettingsTensorBoardAppSettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaultResourceSpec; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserProfileUserSettingsTensorBoardAppSettings defaults) { Objects.requireNonNull(defaults); this.defaultResourceSpec = defaults.defaultResourceSpec; } + @CustomType.Setter public Builder defaultResourceSpec(UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaultResourceSpec) { this.defaultResourceSpec = Objects.requireNonNull(defaultResourceSpec); return this; - } public UserProfileUserSettingsTensorBoardAppSettings build() { - return new UserProfileUserSettingsTensorBoardAppSettings(defaultResourceSpec); + } + public UserProfileUserSettingsTensorBoardAppSettings build() { + final var o = new UserProfileUserSettingsTensorBoardAppSettings(); + o.defaultResourceSpec = defaultResourceSpec; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec.java index de6e80c0c95..42d951520c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec.java @@ -15,35 +15,24 @@ public final class UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceS * @return The instance type. * */ - private final @Nullable String instanceType; + private @Nullable String instanceType; /** * @return The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource. * */ - private final @Nullable String lifecycleConfigArn; + private @Nullable String lifecycleConfigArn; /** * @return The Amazon Resource Name (ARN) of the SageMaker image created on the instance. * */ - private final @Nullable String sagemakerImageArn; + private @Nullable String sagemakerImageArn; /** * @return The ARN of the image version created on the instance. * */ - private final @Nullable String sagemakerImageVersionArn; - - @CustomType.Constructor - private UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec( - @CustomType.Parameter("instanceType") @Nullable String instanceType, - @CustomType.Parameter("lifecycleConfigArn") @Nullable String lifecycleConfigArn, - @CustomType.Parameter("sagemakerImageArn") @Nullable String sagemakerImageArn, - @CustomType.Parameter("sagemakerImageVersionArn") @Nullable String sagemakerImageVersionArn) { - this.instanceType = instanceType; - this.lifecycleConfigArn = lifecycleConfigArn; - this.sagemakerImageArn = sagemakerImageArn; - this.sagemakerImageVersionArn = sagemakerImageVersionArn; - } + private @Nullable String sagemakerImageVersionArn; + private UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec() {} /** * @return The instance type. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String instanceType; private @Nullable String lifecycleConfigArn; private @Nullable String sagemakerImageArn; private @Nullable String sagemakerImageVersionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec defaults) { Objects.requireNonNull(defaults); this.instanceType = defaults.instanceType; @@ -99,23 +84,33 @@ public Builder(UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec this.sagemakerImageVersionArn = defaults.sagemakerImageVersionArn; } + @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { this.instanceType = instanceType; return this; } + @CustomType.Setter public Builder lifecycleConfigArn(@Nullable String lifecycleConfigArn) { this.lifecycleConfigArn = lifecycleConfigArn; return this; } + @CustomType.Setter public Builder sagemakerImageArn(@Nullable String sagemakerImageArn) { this.sagemakerImageArn = sagemakerImageArn; return this; } + @CustomType.Setter public Builder sagemakerImageVersionArn(@Nullable String sagemakerImageVersionArn) { this.sagemakerImageVersionArn = sagemakerImageVersionArn; return this; - } public UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec build() { - return new UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec(instanceType, lifecycleConfigArn, sagemakerImageArn, sagemakerImageVersionArn); + } + public UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec build() { + final var o = new UserProfileUserSettingsTensorBoardAppSettingsDefaultResourceSpec(); + o.instanceType = instanceType; + o.lifecycleConfigArn = lifecycleConfigArn; + o.sagemakerImageArn = sagemakerImageArn; + o.sagemakerImageVersionArn = sagemakerImageVersionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkforceCognitoConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkforceCognitoConfig.java index acf5d57612f..6cd5111efd4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkforceCognitoConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkforceCognitoConfig.java @@ -13,21 +13,14 @@ public final class WorkforceCognitoConfig { * @return The OIDC IdP client ID used to configure your private workforce. * */ - private final String clientId; + private String clientId; /** * @return The id for your Amazon Cognito user pool. * */ - private final String userPool; - - @CustomType.Constructor - private WorkforceCognitoConfig( - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("userPool") String userPool) { - this.clientId = clientId; - this.userPool = userPool; - } + private String userPool; + private WorkforceCognitoConfig() {} /** * @return The OIDC IdP client ID used to configure your private workforce. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WorkforceCognitoConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String clientId; private String userPool; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkforceCognitoConfig defaults) { Objects.requireNonNull(defaults); this.clientId = defaults.clientId; this.userPool = defaults.userPool; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder userPool(String userPool) { this.userPool = Objects.requireNonNull(userPool); return this; - } public WorkforceCognitoConfig build() { - return new WorkforceCognitoConfig(clientId, userPool); + } + public WorkforceCognitoConfig build() { + final var o = new WorkforceCognitoConfig(); + o.clientId = clientId; + o.userPool = userPool; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkforceOidcConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkforceOidcConfig.java index 60f10dc53ee..c04317d8d78 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkforceOidcConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkforceOidcConfig.java @@ -13,63 +13,44 @@ public final class WorkforceOidcConfig { * @return The OIDC IdP authorization endpoint used to configure your private workforce. * */ - private final String authorizationEndpoint; + private String authorizationEndpoint; /** * @return The OIDC IdP client ID used to configure your private workforce. * */ - private final String clientId; + private String clientId; /** * @return The OIDC IdP client secret used to configure your private workforce. * */ - private final String clientSecret; + private String clientSecret; /** * @return The OIDC IdP issuer used to configure your private workforce. * */ - private final String issuer; + private String issuer; /** * @return The OIDC IdP JSON Web Key Set (Jwks) URI used to configure your private workforce. * */ - private final String jwksUri; + private String jwksUri; /** * @return The OIDC IdP logout endpoint used to configure your private workforce. * */ - private final String logoutEndpoint; + private String logoutEndpoint; /** * @return The OIDC IdP token endpoint used to configure your private workforce. * */ - private final String tokenEndpoint; + private String tokenEndpoint; /** * @return The OIDC IdP user information endpoint used to configure your private workforce. * */ - private final String userInfoEndpoint; - - @CustomType.Constructor - private WorkforceOidcConfig( - @CustomType.Parameter("authorizationEndpoint") String authorizationEndpoint, - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("clientSecret") String clientSecret, - @CustomType.Parameter("issuer") String issuer, - @CustomType.Parameter("jwksUri") String jwksUri, - @CustomType.Parameter("logoutEndpoint") String logoutEndpoint, - @CustomType.Parameter("tokenEndpoint") String tokenEndpoint, - @CustomType.Parameter("userInfoEndpoint") String userInfoEndpoint) { - this.authorizationEndpoint = authorizationEndpoint; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.issuer = issuer; - this.jwksUri = jwksUri; - this.logoutEndpoint = logoutEndpoint; - this.tokenEndpoint = tokenEndpoint; - this.userInfoEndpoint = userInfoEndpoint; - } + private String userInfoEndpoint; + private WorkforceOidcConfig() {} /** * @return The OIDC IdP authorization endpoint used to configure your private workforce. * @@ -134,7 +115,7 @@ public static Builder builder() { public static Builder builder(WorkforceOidcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String authorizationEndpoint; private String clientId; @@ -144,11 +125,7 @@ public static final class Builder { private String logoutEndpoint; private String tokenEndpoint; private String userInfoEndpoint; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkforceOidcConfig defaults) { Objects.requireNonNull(defaults); this.authorizationEndpoint = defaults.authorizationEndpoint; @@ -161,39 +138,57 @@ public Builder(WorkforceOidcConfig defaults) { this.userInfoEndpoint = defaults.userInfoEndpoint; } + @CustomType.Setter public Builder authorizationEndpoint(String authorizationEndpoint) { this.authorizationEndpoint = Objects.requireNonNull(authorizationEndpoint); return this; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder clientSecret(String clientSecret) { this.clientSecret = Objects.requireNonNull(clientSecret); return this; } + @CustomType.Setter public Builder issuer(String issuer) { this.issuer = Objects.requireNonNull(issuer); return this; } + @CustomType.Setter public Builder jwksUri(String jwksUri) { this.jwksUri = Objects.requireNonNull(jwksUri); return this; } + @CustomType.Setter public Builder logoutEndpoint(String logoutEndpoint) { this.logoutEndpoint = Objects.requireNonNull(logoutEndpoint); return this; } + @CustomType.Setter public Builder tokenEndpoint(String tokenEndpoint) { this.tokenEndpoint = Objects.requireNonNull(tokenEndpoint); return this; } + @CustomType.Setter public Builder userInfoEndpoint(String userInfoEndpoint) { this.userInfoEndpoint = Objects.requireNonNull(userInfoEndpoint); return this; - } public WorkforceOidcConfig build() { - return new WorkforceOidcConfig(authorizationEndpoint, clientId, clientSecret, issuer, jwksUri, logoutEndpoint, tokenEndpoint, userInfoEndpoint); + } + public WorkforceOidcConfig build() { + final var o = new WorkforceOidcConfig(); + o.authorizationEndpoint = authorizationEndpoint; + o.clientId = clientId; + o.clientSecret = clientSecret; + o.issuer = issuer; + o.jwksUri = jwksUri; + o.logoutEndpoint = logoutEndpoint; + o.tokenEndpoint = tokenEndpoint; + o.userInfoEndpoint = userInfoEndpoint; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkforceSourceIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkforceSourceIpConfig.java index 7bcdb081d2f..e57524a070e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkforceSourceIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkforceSourceIpConfig.java @@ -14,13 +14,9 @@ public final class WorkforceSourceIpConfig { * @return A list of up to 10 CIDR values. * */ - private final List cidrs; - - @CustomType.Constructor - private WorkforceSourceIpConfig(@CustomType.Parameter("cidrs") List cidrs) { - this.cidrs = cidrs; - } + private List cidrs; + private WorkforceSourceIpConfig() {} /** * @return A list of up to 10 CIDR values. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WorkforceSourceIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List cidrs; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkforceSourceIpConfig defaults) { Objects.requireNonNull(defaults); this.cidrs = defaults.cidrs; } + @CustomType.Setter public Builder cidrs(List cidrs) { this.cidrs = Objects.requireNonNull(cidrs); return this; } public Builder cidrs(String... cidrs) { return cidrs(List.of(cidrs)); - } public WorkforceSourceIpConfig build() { - return new WorkforceSourceIpConfig(cidrs); + } + public WorkforceSourceIpConfig build() { + final var o = new WorkforceSourceIpConfig(); + o.cidrs = cidrs; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamMemberDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamMemberDefinition.java index 9e241557c0c..88201f59a42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamMemberDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamMemberDefinition.java @@ -16,21 +16,14 @@ public final class WorkteamMemberDefinition { * @return The Amazon Cognito user group that is part of the work team. See Cognito Member Definition details below. * */ - private final @Nullable WorkteamMemberDefinitionCognitoMemberDefinition cognitoMemberDefinition; + private @Nullable WorkteamMemberDefinitionCognitoMemberDefinition cognitoMemberDefinition; /** * @return A list user groups that exist in your OIDC Identity Provider (IdP). One to ten groups can be used to create a single private work team. See Cognito Member Definition details below. * */ - private final @Nullable WorkteamMemberDefinitionOidcMemberDefinition oidcMemberDefinition; - - @CustomType.Constructor - private WorkteamMemberDefinition( - @CustomType.Parameter("cognitoMemberDefinition") @Nullable WorkteamMemberDefinitionCognitoMemberDefinition cognitoMemberDefinition, - @CustomType.Parameter("oidcMemberDefinition") @Nullable WorkteamMemberDefinitionOidcMemberDefinition oidcMemberDefinition) { - this.cognitoMemberDefinition = cognitoMemberDefinition; - this.oidcMemberDefinition = oidcMemberDefinition; - } + private @Nullable WorkteamMemberDefinitionOidcMemberDefinition oidcMemberDefinition; + private WorkteamMemberDefinition() {} /** * @return The Amazon Cognito user group that is part of the work team. See Cognito Member Definition details below. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WorkteamMemberDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WorkteamMemberDefinitionCognitoMemberDefinition cognitoMemberDefinition; private @Nullable WorkteamMemberDefinitionOidcMemberDefinition oidcMemberDefinition; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkteamMemberDefinition defaults) { Objects.requireNonNull(defaults); this.cognitoMemberDefinition = defaults.cognitoMemberDefinition; this.oidcMemberDefinition = defaults.oidcMemberDefinition; } + @CustomType.Setter public Builder cognitoMemberDefinition(@Nullable WorkteamMemberDefinitionCognitoMemberDefinition cognitoMemberDefinition) { this.cognitoMemberDefinition = cognitoMemberDefinition; return this; } + @CustomType.Setter public Builder oidcMemberDefinition(@Nullable WorkteamMemberDefinitionOidcMemberDefinition oidcMemberDefinition) { this.oidcMemberDefinition = oidcMemberDefinition; return this; - } public WorkteamMemberDefinition build() { - return new WorkteamMemberDefinition(cognitoMemberDefinition, oidcMemberDefinition); + } + public WorkteamMemberDefinition build() { + final var o = new WorkteamMemberDefinition(); + o.cognitoMemberDefinition = cognitoMemberDefinition; + o.oidcMemberDefinition = oidcMemberDefinition; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamMemberDefinitionCognitoMemberDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamMemberDefinitionCognitoMemberDefinition.java index 74a8f2916f4..5995ee9b9e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamMemberDefinitionCognitoMemberDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamMemberDefinitionCognitoMemberDefinition.java @@ -13,28 +13,19 @@ public final class WorkteamMemberDefinitionCognitoMemberDefinition { * @return An identifier for an application client. You must create the app client ID using Amazon Cognito. * */ - private final String clientId; + private String clientId; /** * @return An identifier for a user group. * */ - private final String userGroup; + private String userGroup; /** * @return An identifier for a user pool. The user pool must be in the same region as the service that you are calling. * */ - private final String userPool; - - @CustomType.Constructor - private WorkteamMemberDefinitionCognitoMemberDefinition( - @CustomType.Parameter("clientId") String clientId, - @CustomType.Parameter("userGroup") String userGroup, - @CustomType.Parameter("userPool") String userPool) { - this.clientId = clientId; - this.userGroup = userGroup; - this.userPool = userPool; - } + private String userPool; + private WorkteamMemberDefinitionCognitoMemberDefinition() {} /** * @return An identifier for an application client. You must create the app client ID using Amazon Cognito. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WorkteamMemberDefinitionCognitoMemberDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String clientId; private String userGroup; private String userPool; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkteamMemberDefinitionCognitoMemberDefinition defaults) { Objects.requireNonNull(defaults); this.clientId = defaults.clientId; @@ -81,19 +68,27 @@ public Builder(WorkteamMemberDefinitionCognitoMemberDefinition defaults) { this.userPool = defaults.userPool; } + @CustomType.Setter public Builder clientId(String clientId) { this.clientId = Objects.requireNonNull(clientId); return this; } + @CustomType.Setter public Builder userGroup(String userGroup) { this.userGroup = Objects.requireNonNull(userGroup); return this; } + @CustomType.Setter public Builder userPool(String userPool) { this.userPool = Objects.requireNonNull(userPool); return this; - } public WorkteamMemberDefinitionCognitoMemberDefinition build() { - return new WorkteamMemberDefinitionCognitoMemberDefinition(clientId, userGroup, userPool); + } + public WorkteamMemberDefinitionCognitoMemberDefinition build() { + final var o = new WorkteamMemberDefinitionCognitoMemberDefinition(); + o.clientId = clientId; + o.userGroup = userGroup; + o.userPool = userPool; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamMemberDefinitionOidcMemberDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamMemberDefinitionOidcMemberDefinition.java index ec7f623ae2a..aacb2da1677 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamMemberDefinitionOidcMemberDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamMemberDefinitionOidcMemberDefinition.java @@ -14,13 +14,9 @@ public final class WorkteamMemberDefinitionOidcMemberDefinition { * @return A list of comma separated strings that identifies user groups in your OIDC IdP. Each user group is made up of a group of private workers. * */ - private final List groups; - - @CustomType.Constructor - private WorkteamMemberDefinitionOidcMemberDefinition(@CustomType.Parameter("groups") List groups) { - this.groups = groups; - } + private List groups; + private WorkteamMemberDefinitionOidcMemberDefinition() {} /** * @return A list of comma separated strings that identifies user groups in your OIDC IdP. Each user group is made up of a group of private workers. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WorkteamMemberDefinitionOidcMemberDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List groups; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkteamMemberDefinitionOidcMemberDefinition defaults) { Objects.requireNonNull(defaults); this.groups = defaults.groups; } + @CustomType.Setter public Builder groups(List groups) { this.groups = Objects.requireNonNull(groups); return this; } public Builder groups(String... groups) { return groups(List.of(groups)); - } public WorkteamMemberDefinitionOidcMemberDefinition build() { - return new WorkteamMemberDefinitionOidcMemberDefinition(groups); + } + public WorkteamMemberDefinitionOidcMemberDefinition build() { + final var o = new WorkteamMemberDefinitionOidcMemberDefinition(); + o.groups = groups; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamNotificationConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamNotificationConfiguration.java index 6c8f5bc290c..dc6a2195ae2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamNotificationConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sagemaker/outputs/WorkteamNotificationConfiguration.java @@ -15,13 +15,9 @@ public final class WorkteamNotificationConfiguration { * @return The ARN for the SNS topic to which notifications should be published. * */ - private final @Nullable String notificationTopicArn; - - @CustomType.Constructor - private WorkteamNotificationConfiguration(@CustomType.Parameter("notificationTopicArn") @Nullable String notificationTopicArn) { - this.notificationTopicArn = notificationTopicArn; - } + private @Nullable String notificationTopicArn; + private WorkteamNotificationConfiguration() {} /** * @return The ARN for the SNS topic to which notifications should be published. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(WorkteamNotificationConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String notificationTopicArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkteamNotificationConfiguration defaults) { Objects.requireNonNull(defaults); this.notificationTopicArn = defaults.notificationTopicArn; } + @CustomType.Setter public Builder notificationTopicArn(@Nullable String notificationTopicArn) { this.notificationTopicArn = notificationTopicArn; return this; - } public WorkteamNotificationConfiguration build() { - return new WorkteamNotificationConfiguration(notificationTopicArn); + } + public WorkteamNotificationConfiguration build() { + final var o = new WorkteamNotificationConfiguration(); + o.notificationTopicArn = notificationTopicArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetRandomPasswordResult.java b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetRandomPasswordResult.java index 4432e9ccc9c..df57ac13204 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetRandomPasswordResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetRandomPasswordResult.java @@ -13,49 +13,26 @@ @CustomType public final class GetRandomPasswordResult { - private final @Nullable String excludeCharacters; - private final @Nullable Boolean excludeLowercase; - private final @Nullable Boolean excludeNumbers; - private final @Nullable Boolean excludePunctuation; - private final @Nullable Boolean excludeUppercase; + private @Nullable String excludeCharacters; + private @Nullable Boolean excludeLowercase; + private @Nullable Boolean excludeNumbers; + private @Nullable Boolean excludePunctuation; + private @Nullable Boolean excludeUppercase; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable Boolean includeSpace; - private final @Nullable Integer passwordLength; + private String id; + private @Nullable Boolean includeSpace; + private @Nullable Integer passwordLength; /** * @return The random password. * */ - private final String randomPassword; - private final @Nullable Boolean requireEachIncludedType; - - @CustomType.Constructor - private GetRandomPasswordResult( - @CustomType.Parameter("excludeCharacters") @Nullable String excludeCharacters, - @CustomType.Parameter("excludeLowercase") @Nullable Boolean excludeLowercase, - @CustomType.Parameter("excludeNumbers") @Nullable Boolean excludeNumbers, - @CustomType.Parameter("excludePunctuation") @Nullable Boolean excludePunctuation, - @CustomType.Parameter("excludeUppercase") @Nullable Boolean excludeUppercase, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("includeSpace") @Nullable Boolean includeSpace, - @CustomType.Parameter("passwordLength") @Nullable Integer passwordLength, - @CustomType.Parameter("randomPassword") String randomPassword, - @CustomType.Parameter("requireEachIncludedType") @Nullable Boolean requireEachIncludedType) { - this.excludeCharacters = excludeCharacters; - this.excludeLowercase = excludeLowercase; - this.excludeNumbers = excludeNumbers; - this.excludePunctuation = excludePunctuation; - this.excludeUppercase = excludeUppercase; - this.id = id; - this.includeSpace = includeSpace; - this.passwordLength = passwordLength; - this.randomPassword = randomPassword; - this.requireEachIncludedType = requireEachIncludedType; - } + private String randomPassword; + private @Nullable Boolean requireEachIncludedType; + private GetRandomPasswordResult() {} public Optional excludeCharacters() { return Optional.ofNullable(this.excludeCharacters); } @@ -102,7 +79,7 @@ public static Builder builder() { public static Builder builder(GetRandomPasswordResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String excludeCharacters; private @Nullable Boolean excludeLowercase; @@ -114,11 +91,7 @@ public static final class Builder { private @Nullable Integer passwordLength; private String randomPassword; private @Nullable Boolean requireEachIncludedType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRandomPasswordResult defaults) { Objects.requireNonNull(defaults); this.excludeCharacters = defaults.excludeCharacters; @@ -133,47 +106,69 @@ public Builder(GetRandomPasswordResult defaults) { this.requireEachIncludedType = defaults.requireEachIncludedType; } + @CustomType.Setter public Builder excludeCharacters(@Nullable String excludeCharacters) { this.excludeCharacters = excludeCharacters; return this; } + @CustomType.Setter public Builder excludeLowercase(@Nullable Boolean excludeLowercase) { this.excludeLowercase = excludeLowercase; return this; } + @CustomType.Setter public Builder excludeNumbers(@Nullable Boolean excludeNumbers) { this.excludeNumbers = excludeNumbers; return this; } + @CustomType.Setter public Builder excludePunctuation(@Nullable Boolean excludePunctuation) { this.excludePunctuation = excludePunctuation; return this; } + @CustomType.Setter public Builder excludeUppercase(@Nullable Boolean excludeUppercase) { this.excludeUppercase = excludeUppercase; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder includeSpace(@Nullable Boolean includeSpace) { this.includeSpace = includeSpace; return this; } + @CustomType.Setter public Builder passwordLength(@Nullable Integer passwordLength) { this.passwordLength = passwordLength; return this; } + @CustomType.Setter public Builder randomPassword(String randomPassword) { this.randomPassword = Objects.requireNonNull(randomPassword); return this; } + @CustomType.Setter public Builder requireEachIncludedType(@Nullable Boolean requireEachIncludedType) { this.requireEachIncludedType = requireEachIncludedType; return this; - } public GetRandomPasswordResult build() { - return new GetRandomPasswordResult(excludeCharacters, excludeLowercase, excludeNumbers, excludePunctuation, excludeUppercase, id, includeSpace, passwordLength, randomPassword, requireEachIncludedType); + } + public GetRandomPasswordResult build() { + final var o = new GetRandomPasswordResult(); + o.excludeCharacters = excludeCharacters; + o.excludeLowercase = excludeLowercase; + o.excludeNumbers = excludeNumbers; + o.excludePunctuation = excludePunctuation; + o.excludeUppercase = excludeUppercase; + o.id = id; + o.includeSpace = includeSpace; + o.passwordLength = passwordLength; + o.randomPassword = randomPassword; + o.requireEachIncludedType = requireEachIncludedType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretResult.java b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretResult.java index f93e282695c..cae5244a8cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretResult.java @@ -17,28 +17,28 @@ public final class GetSecretResult { * @return The Amazon Resource Name (ARN) of the secret. * */ - private final String arn; + private String arn; /** * @return A description of the secret. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The Key Management Service (KMS) Customer Master Key (CMK) associated with the secret. * */ - private final String kmsKeyId; - private final String name; + private String kmsKeyId; + private String name; /** * @return The resource-based policy document that's attached to the secret. * */ - private final String policy; + private String policy; /** * @return Whether rotation is enabled or not. * @@ -47,7 +47,7 @@ public final class GetSecretResult { * */ @Deprecated /* Use the aws_secretsmanager_secret_rotation data source instead */ - private final Boolean rotationEnabled; + private Boolean rotationEnabled; /** * @return Rotation Lambda function Amazon Resource Name (ARN) if rotation is enabled. * @@ -56,7 +56,7 @@ public final class GetSecretResult { * */ @Deprecated /* Use the aws_secretsmanager_secret_rotation data source instead */ - private final String rotationLambdaArn; + private String rotationLambdaArn; /** * @return Rotation rules if rotation is enabled. * @@ -65,37 +65,14 @@ public final class GetSecretResult { * */ @Deprecated /* Use the aws_secretsmanager_secret_rotation data source instead */ - private final List rotationRules; + private List rotationRules; /** * @return Tags of the secret. * */ - private final Map tags; - - @CustomType.Constructor - private GetSecretResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("kmsKeyId") String kmsKeyId, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("policy") String policy, - @CustomType.Parameter("rotationEnabled") Boolean rotationEnabled, - @CustomType.Parameter("rotationLambdaArn") String rotationLambdaArn, - @CustomType.Parameter("rotationRules") List rotationRules, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.description = description; - this.id = id; - this.kmsKeyId = kmsKeyId; - this.name = name; - this.policy = policy; - this.rotationEnabled = rotationEnabled; - this.rotationLambdaArn = rotationLambdaArn; - this.rotationRules = rotationRules; - this.tags = tags; - } + private Map tags; + private GetSecretResult() {} /** * @return The Amazon Resource Name (ARN) of the secret. * @@ -182,7 +159,7 @@ public static Builder builder() { public static Builder builder(GetSecretResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -194,11 +171,7 @@ public static final class Builder { private String rotationLambdaArn; private List rotationRules; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecretResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -213,38 +186,47 @@ public Builder(GetSecretResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder kmsKeyId(String kmsKeyId) { this.kmsKeyId = Objects.requireNonNull(kmsKeyId); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder policy(String policy) { this.policy = Objects.requireNonNull(policy); return this; } + @CustomType.Setter public Builder rotationEnabled(Boolean rotationEnabled) { this.rotationEnabled = Objects.requireNonNull(rotationEnabled); return this; } + @CustomType.Setter public Builder rotationLambdaArn(String rotationLambdaArn) { this.rotationLambdaArn = Objects.requireNonNull(rotationLambdaArn); return this; } + @CustomType.Setter public Builder rotationRules(List rotationRules) { this.rotationRules = Objects.requireNonNull(rotationRules); return this; @@ -252,11 +234,24 @@ public Builder rotationRules(List rotationRules) { public Builder rotationRules(GetSecretRotationRule... rotationRules) { return rotationRules(List.of(rotationRules)); } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetSecretResult build() { - return new GetSecretResult(arn, description, id, kmsKeyId, name, policy, rotationEnabled, rotationLambdaArn, rotationRules, tags); + } + public GetSecretResult build() { + final var o = new GetSecretResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.kmsKeyId = kmsKeyId; + o.name = name; + o.policy = policy; + o.rotationEnabled = rotationEnabled; + o.rotationLambdaArn = rotationLambdaArn; + o.rotationRules = rotationRules; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretRotationResult.java b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretRotationResult.java index f1796309c78..31825a4827c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretRotationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretRotationResult.java @@ -16,38 +16,25 @@ public final class GetSecretRotationResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The ARN of the secret. * */ - private final Boolean rotationEnabled; + private Boolean rotationEnabled; /** * @return The decrypted part of the protected secret information that was originally provided as a string. * */ - private final String rotationLambdaArn; + private String rotationLambdaArn; /** * @return The decrypted part of the protected secret information that was originally provided as a binary. Base64 encoded. * */ - private final List rotationRules; - private final String secretId; - - @CustomType.Constructor - private GetSecretRotationResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("rotationEnabled") Boolean rotationEnabled, - @CustomType.Parameter("rotationLambdaArn") String rotationLambdaArn, - @CustomType.Parameter("rotationRules") List rotationRules, - @CustomType.Parameter("secretId") String secretId) { - this.id = id; - this.rotationEnabled = rotationEnabled; - this.rotationLambdaArn = rotationLambdaArn; - this.rotationRules = rotationRules; - this.secretId = secretId; - } + private List rotationRules; + private String secretId; + private GetSecretRotationResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -87,18 +74,14 @@ public static Builder builder() { public static Builder builder(GetSecretRotationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private Boolean rotationEnabled; private String rotationLambdaArn; private List rotationRules; private String secretId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecretRotationResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -108,18 +91,22 @@ public Builder(GetSecretRotationResult defaults) { this.secretId = defaults.secretId; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder rotationEnabled(Boolean rotationEnabled) { this.rotationEnabled = Objects.requireNonNull(rotationEnabled); return this; } + @CustomType.Setter public Builder rotationLambdaArn(String rotationLambdaArn) { this.rotationLambdaArn = Objects.requireNonNull(rotationLambdaArn); return this; } + @CustomType.Setter public Builder rotationRules(List rotationRules) { this.rotationRules = Objects.requireNonNull(rotationRules); return this; @@ -127,11 +114,19 @@ public Builder rotationRules(List rotationRules) public Builder rotationRules(GetSecretRotationRotationRule... rotationRules) { return rotationRules(List.of(rotationRules)); } + @CustomType.Setter public Builder secretId(String secretId) { this.secretId = Objects.requireNonNull(secretId); return this; - } public GetSecretRotationResult build() { - return new GetSecretRotationResult(id, rotationEnabled, rotationLambdaArn, rotationRules, secretId); + } + public GetSecretRotationResult build() { + final var o = new GetSecretRotationResult(); + o.id = id; + o.rotationEnabled = rotationEnabled; + o.rotationLambdaArn = rotationLambdaArn; + o.rotationRules = rotationRules; + o.secretId = secretId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretRotationRotationRule.java b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretRotationRotationRule.java index 86fcf3af292..399a07a6366 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretRotationRotationRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretRotationRotationRule.java @@ -9,13 +9,9 @@ @CustomType public final class GetSecretRotationRotationRule { - private final Integer automaticallyAfterDays; - - @CustomType.Constructor - private GetSecretRotationRotationRule(@CustomType.Parameter("automaticallyAfterDays") Integer automaticallyAfterDays) { - this.automaticallyAfterDays = automaticallyAfterDays; - } + private Integer automaticallyAfterDays; + private GetSecretRotationRotationRule() {} public Integer automaticallyAfterDays() { return this.automaticallyAfterDays; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetSecretRotationRotationRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer automaticallyAfterDays; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecretRotationRotationRule defaults) { Objects.requireNonNull(defaults); this.automaticallyAfterDays = defaults.automaticallyAfterDays; } + @CustomType.Setter public Builder automaticallyAfterDays(Integer automaticallyAfterDays) { this.automaticallyAfterDays = Objects.requireNonNull(automaticallyAfterDays); return this; - } public GetSecretRotationRotationRule build() { - return new GetSecretRotationRotationRule(automaticallyAfterDays); + } + public GetSecretRotationRotationRule build() { + final var o = new GetSecretRotationRotationRule(); + o.automaticallyAfterDays = automaticallyAfterDays; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretRotationRule.java b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretRotationRule.java index 5d5983c2be3..92e95125562 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretRotationRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretRotationRule.java @@ -9,13 +9,9 @@ @CustomType public final class GetSecretRotationRule { - private final Integer automaticallyAfterDays; - - @CustomType.Constructor - private GetSecretRotationRule(@CustomType.Parameter("automaticallyAfterDays") Integer automaticallyAfterDays) { - this.automaticallyAfterDays = automaticallyAfterDays; - } + private Integer automaticallyAfterDays; + private GetSecretRotationRule() {} public Integer automaticallyAfterDays() { return this.automaticallyAfterDays; } @@ -27,24 +23,24 @@ public static Builder builder() { public static Builder builder(GetSecretRotationRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer automaticallyAfterDays; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecretRotationRule defaults) { Objects.requireNonNull(defaults); this.automaticallyAfterDays = defaults.automaticallyAfterDays; } + @CustomType.Setter public Builder automaticallyAfterDays(Integer automaticallyAfterDays) { this.automaticallyAfterDays = Objects.requireNonNull(automaticallyAfterDays); return this; - } public GetSecretRotationRule build() { - return new GetSecretRotationRule(automaticallyAfterDays); + } + public GetSecretRotationRule build() { + final var o = new GetSecretRotationRule(); + o.automaticallyAfterDays = automaticallyAfterDays; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretVersionResult.java b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretVersionResult.java index 7a2aa64305e..ac0f7d98da0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretVersionResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretVersionResult.java @@ -16,51 +16,32 @@ public final class GetSecretVersionResult { * @return The ARN of the secret. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The decrypted part of the protected secret information that was originally provided as a binary. * */ - private final String secretBinary; - private final String secretId; + private String secretBinary; + private String secretId; /** * @return The decrypted part of the protected secret information that was originally provided as a string. * */ - private final String secretString; + private String secretString; /** * @return The unique identifier of this version of the secret. * */ - private final String versionId; - private final @Nullable String versionStage; - private final List versionStages; - - @CustomType.Constructor - private GetSecretVersionResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("secretBinary") String secretBinary, - @CustomType.Parameter("secretId") String secretId, - @CustomType.Parameter("secretString") String secretString, - @CustomType.Parameter("versionId") String versionId, - @CustomType.Parameter("versionStage") @Nullable String versionStage, - @CustomType.Parameter("versionStages") List versionStages) { - this.arn = arn; - this.id = id; - this.secretBinary = secretBinary; - this.secretId = secretId; - this.secretString = secretString; - this.versionId = versionId; - this.versionStage = versionStage; - this.versionStages = versionStages; - } + private String versionId; + private @Nullable String versionStage; + private List versionStages; + private GetSecretVersionResult() {} /** * @return The ARN of the secret. * @@ -113,7 +94,7 @@ public static Builder builder() { public static Builder builder(GetSecretVersionResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; @@ -123,11 +104,7 @@ public static final class Builder { private String versionId; private @Nullable String versionStage; private List versionStages; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecretVersionResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -140,42 +117,60 @@ public Builder(GetSecretVersionResult defaults) { this.versionStages = defaults.versionStages; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder secretBinary(String secretBinary) { this.secretBinary = Objects.requireNonNull(secretBinary); return this; } + @CustomType.Setter public Builder secretId(String secretId) { this.secretId = Objects.requireNonNull(secretId); return this; } + @CustomType.Setter public Builder secretString(String secretString) { this.secretString = Objects.requireNonNull(secretString); return this; } + @CustomType.Setter public Builder versionId(String versionId) { this.versionId = Objects.requireNonNull(versionId); return this; } + @CustomType.Setter public Builder versionStage(@Nullable String versionStage) { this.versionStage = versionStage; return this; } + @CustomType.Setter public Builder versionStages(List versionStages) { this.versionStages = Objects.requireNonNull(versionStages); return this; } public Builder versionStages(String... versionStages) { return versionStages(List.of(versionStages)); - } public GetSecretVersionResult build() { - return new GetSecretVersionResult(arn, id, secretBinary, secretId, secretString, versionId, versionStage, versionStages); + } + public GetSecretVersionResult build() { + final var o = new GetSecretVersionResult(); + o.arn = arn; + o.id = id; + o.secretBinary = secretBinary; + o.secretId = secretId; + o.secretString = secretString; + o.versionId = versionId; + o.versionStage = versionStage; + o.versionStages = versionStages; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretsFilter.java index bc57b3a3ca0..0b6c2c76477 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretsFilter.java @@ -14,21 +14,14 @@ public final class GetSecretsFilter { * @return The name of the filter field. Valid values can be found in the [Secrets Manager ListSecrets API Reference](https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_ListSecrets.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetSecretsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetSecretsFilter() {} /** * @return The name of the filter field. Valid values can be found in the [Secrets Manager ListSecrets API Reference](https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_ListSecrets.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetSecretsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecretsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetSecretsFilter build() { - return new GetSecretsFilter(name, values); + } + public GetSecretsFilter build() { + final var o = new GetSecretsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretsResult.java b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretsResult.java index 66b83c6755e..a3930f7808a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/GetSecretsResult.java @@ -16,31 +16,20 @@ public final class GetSecretsResult { * @return Set of ARNs of the matched Secrets Manager secrets. * */ - private final List arns; - private final @Nullable List filters; + private List arns; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of names of the matched Secrets Manager secrets. * */ - private final List names; - - @CustomType.Constructor - private GetSecretsResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names) { - this.arns = arns; - this.filters = filters; - this.id = id; - this.names = names; - } + private List names; + private GetSecretsResult() {} /** * @return Set of ARNs of the matched Secrets Manager secrets. * @@ -73,17 +62,13 @@ public static Builder builder() { public static Builder builder(GetSecretsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private @Nullable List filters; private String id; private List names; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSecretsResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -92,6 +77,7 @@ public Builder(GetSecretsResult defaults) { this.names = defaults.names; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -99,6 +85,7 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -106,18 +93,26 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetSecretsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; } public Builder names(String... names) { return names(List.of(names)); - } public GetSecretsResult build() { - return new GetSecretsResult(arns, filters, id, names); + } + public GetSecretsResult build() { + final var o = new GetSecretsResult(); + o.arns = arns; + o.filters = filters; + o.id = id; + o.names = names; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/SecretReplica.java b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/SecretReplica.java index cd9b182c2d1..d9d3a2669e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/SecretReplica.java +++ b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/SecretReplica.java @@ -15,42 +15,29 @@ public final class SecretReplica { * @return ARN, Key ID, or Alias of the AWS KMS key within the region secret is replicated to. If one is not specified, then Secrets Manager defaults to using the AWS account's default KMS key (`aws/secretsmanager`) in the region or creates one for use if non-existent. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return Date that you last accessed the secret in the Region. * */ - private final @Nullable String lastAccessedDate; + private @Nullable String lastAccessedDate; /** * @return Region for replicating the secret. * */ - private final String region; + private String region; /** * @return Status can be `InProgress`, `Failed`, or `InSync`. * */ - private final @Nullable String status; + private @Nullable String status; /** * @return Message such as `Replication succeeded` or `Secret with this name already exists in this region`. * */ - private final @Nullable String statusMessage; - - @CustomType.Constructor - private SecretReplica( - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("lastAccessedDate") @Nullable String lastAccessedDate, - @CustomType.Parameter("region") String region, - @CustomType.Parameter("status") @Nullable String status, - @CustomType.Parameter("statusMessage") @Nullable String statusMessage) { - this.kmsKeyId = kmsKeyId; - this.lastAccessedDate = lastAccessedDate; - this.region = region; - this.status = status; - this.statusMessage = statusMessage; - } + private @Nullable String statusMessage; + private SecretReplica() {} /** * @return ARN, Key ID, or Alias of the AWS KMS key within the region secret is replicated to. If one is not specified, then Secrets Manager defaults to using the AWS account's default KMS key (`aws/secretsmanager`) in the region or creates one for use if non-existent. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(SecretReplica defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String kmsKeyId; private @Nullable String lastAccessedDate; private String region; private @Nullable String status; private @Nullable String statusMessage; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SecretReplica defaults) { Objects.requireNonNull(defaults); this.kmsKeyId = defaults.kmsKeyId; @@ -115,27 +98,39 @@ public Builder(SecretReplica defaults) { this.statusMessage = defaults.statusMessage; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder lastAccessedDate(@Nullable String lastAccessedDate) { this.lastAccessedDate = lastAccessedDate; return this; } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; } + @CustomType.Setter public Builder status(@Nullable String status) { this.status = status; return this; } + @CustomType.Setter public Builder statusMessage(@Nullable String statusMessage) { this.statusMessage = statusMessage; return this; - } public SecretReplica build() { - return new SecretReplica(kmsKeyId, lastAccessedDate, region, status, statusMessage); + } + public SecretReplica build() { + final var o = new SecretReplica(); + o.kmsKeyId = kmsKeyId; + o.lastAccessedDate = lastAccessedDate; + o.region = region; + o.status = status; + o.statusMessage = statusMessage; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/SecretRotationRotationRules.java b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/SecretRotationRotationRules.java index f12a34d954d..297213568a0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/SecretRotationRotationRules.java +++ b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/SecretRotationRotationRules.java @@ -13,13 +13,9 @@ public final class SecretRotationRotationRules { * @return Specifies the number of days between automatic scheduled rotations of the secret. * */ - private final Integer automaticallyAfterDays; - - @CustomType.Constructor - private SecretRotationRotationRules(@CustomType.Parameter("automaticallyAfterDays") Integer automaticallyAfterDays) { - this.automaticallyAfterDays = automaticallyAfterDays; - } + private Integer automaticallyAfterDays; + private SecretRotationRotationRules() {} /** * @return Specifies the number of days between automatic scheduled rotations of the secret. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(SecretRotationRotationRules defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer automaticallyAfterDays; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SecretRotationRotationRules defaults) { Objects.requireNonNull(defaults); this.automaticallyAfterDays = defaults.automaticallyAfterDays; } + @CustomType.Setter public Builder automaticallyAfterDays(Integer automaticallyAfterDays) { this.automaticallyAfterDays = Objects.requireNonNull(automaticallyAfterDays); return this; - } public SecretRotationRotationRules build() { - return new SecretRotationRotationRules(automaticallyAfterDays); + } + public SecretRotationRotationRules build() { + final var o = new SecretRotationRotationRules(); + o.automaticallyAfterDays = automaticallyAfterDays; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/SecretRotationRules.java b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/SecretRotationRules.java index 6758e974013..04155d4b72e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/SecretRotationRules.java +++ b/sdk/java/src/main/java/com/pulumi/aws/secretsmanager/outputs/SecretRotationRules.java @@ -13,13 +13,9 @@ public final class SecretRotationRules { * @return Specifies the number of days between automatic scheduled rotations of the secret. * */ - private final Integer automaticallyAfterDays; - - @CustomType.Constructor - private SecretRotationRules(@CustomType.Parameter("automaticallyAfterDays") Integer automaticallyAfterDays) { - this.automaticallyAfterDays = automaticallyAfterDays; - } + private Integer automaticallyAfterDays; + private SecretRotationRules() {} /** * @return Specifies the number of days between automatic scheduled rotations of the secret. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(SecretRotationRules defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer automaticallyAfterDays; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SecretRotationRules defaults) { Objects.requireNonNull(defaults); this.automaticallyAfterDays = defaults.automaticallyAfterDays; } + @CustomType.Setter public Builder automaticallyAfterDays(Integer automaticallyAfterDays) { this.automaticallyAfterDays = Objects.requireNonNull(automaticallyAfterDays); return this; - } public SecretRotationRules build() { - return new SecretRotationRules(automaticallyAfterDays); + } + public SecretRotationRules build() { + final var o = new SecretRotationRules(); + o.automaticallyAfterDays = automaticallyAfterDays; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFilters.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFilters.java index 0f1d5c54f1a..26a1e5e772f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFilters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFilters.java @@ -102,623 +102,444 @@ public final class InsightFilters { * @return AWS account ID that a finding is generated in. See String_Filter below for more details. * */ - private final @Nullable List awsAccountIds; + private @Nullable List awsAccountIds; /** * @return The name of the findings provider (company) that owns the solution (product) that generates findings. See String_Filter below for more details. * */ - private final @Nullable List companyNames; + private @Nullable List companyNames; /** * @return Exclusive to findings that are generated as the result of a check run against a specific rule in a supported standard, such as CIS AWS Foundations. Contains security standard-related finding details. See String Filter below for more details. * */ - private final @Nullable List complianceStatuses; + private @Nullable List complianceStatuses; /** * @return A finding's confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify. Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means 100 percent confidence. See Number Filter below for more details. * */ - private final @Nullable List confidences; + private @Nullable List confidences; /** * @return An ISO8601-formatted timestamp that indicates when the security-findings provider captured the potential security issue that a finding captured. See Date Filter below for more details. * */ - private final @Nullable List createdAts; + private @Nullable List createdAts; /** * @return The level of importance assigned to the resources associated with the finding. A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources. See Number Filter below for more details. * */ - private final @Nullable List criticalities; + private @Nullable List criticalities; /** * @return A finding's description. See String Filter below for more details. * */ - private final @Nullable List descriptions; + private @Nullable List descriptions; /** * @return The finding provider value for the finding confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify. Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means 100 percent confidence. See Number Filter below for more details. * */ - private final @Nullable List findingProviderFieldsConfidences; + private @Nullable List findingProviderFieldsConfidences; /** * @return The finding provider value for the level of importance assigned to the resources associated with the findings. A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources. See Number Filter below for more details. * */ - private final @Nullable List findingProviderFieldsCriticalities; + private @Nullable List findingProviderFieldsCriticalities; /** * @return The finding identifier of a related finding that is identified by the finding provider. See String Filter below for more details. * */ - private final @Nullable List findingProviderFieldsRelatedFindingsIds; + private @Nullable List findingProviderFieldsRelatedFindingsIds; /** * @return The ARN of the solution that generated a related finding that is identified by the finding provider. See String Filter below for more details. * */ - private final @Nullable List findingProviderFieldsRelatedFindingsProductArns; + private @Nullable List findingProviderFieldsRelatedFindingsProductArns; /** * @return The finding provider value for the severity label. See String Filter below for more details. * */ - private final @Nullable List findingProviderFieldsSeverityLabels; + private @Nullable List findingProviderFieldsSeverityLabels; /** * @return The finding provider's original value for the severity. See String Filter below for more details. * */ - private final @Nullable List findingProviderFieldsSeverityOriginals; + private @Nullable List findingProviderFieldsSeverityOriginals; /** * @return One or more finding types that the finding provider assigned to the finding. Uses the format of `namespace/category/classifier` that classify a finding. Valid namespace values include: `Software and Configuration Checks`, `TTPs`, `Effects`, `Unusual Behaviors`, and `Sensitive Data Identifications`. See String Filter below for more details. * */ - private final @Nullable List findingProviderFieldsTypes; + private @Nullable List findingProviderFieldsTypes; /** * @return An ISO8601-formatted timestamp that indicates when the security-findings provider first observed the potential security issue that a finding captured. See Date Filter below for more details. * */ - private final @Nullable List firstObservedAts; + private @Nullable List firstObservedAts; /** * @return The identifier for the solution-specific component (a discrete unit of logic) that generated a finding. See String Filter below for more details. * */ - private final @Nullable List generatorIds; + private @Nullable List generatorIds; /** * @return The security findings provider-specific identifier for a finding. See String Filter below for more details. * */ - private final @Nullable List ids; + private @Nullable List ids; /** * @return A keyword for a finding. See Keyword Filter below for more details. * */ - private final @Nullable List keywords; + private @Nullable List keywords; /** * @return An ISO8601-formatted timestamp that indicates when the security-findings provider most recently observed the potential security issue that a finding captured. See Date Filter below for more details. * */ - private final @Nullable List lastObservedAts; + private @Nullable List lastObservedAts; /** * @return The name of the malware that was observed. See String Filter below for more details. * */ - private final @Nullable List malwareNames; + private @Nullable List malwareNames; /** * @return The filesystem path of the malware that was observed. See String Filter below for more details. * */ - private final @Nullable List malwarePaths; + private @Nullable List malwarePaths; /** * @return The state of the malware that was observed. See String Filter below for more details. * */ - private final @Nullable List malwareStates; + private @Nullable List malwareStates; /** * @return The type of the malware that was observed. See String Filter below for more details. * */ - private final @Nullable List malwareTypes; + private @Nullable List malwareTypes; /** * @return The destination domain of network-related information about a finding. See String Filter below for more details. * */ - private final @Nullable List networkDestinationDomains; + private @Nullable List networkDestinationDomains; /** * @return The destination IPv4 address of network-related information about a finding. See Ip Filter below for more details. * */ - private final @Nullable List networkDestinationIpv4s; + private @Nullable List networkDestinationIpv4s; /** * @return The destination IPv6 address of network-related information about a finding. See Ip Filter below for more details. * */ - private final @Nullable List networkDestinationIpv6s; + private @Nullable List networkDestinationIpv6s; /** * @return The destination port of network-related information about a finding. See Number Filter below for more details. * */ - private final @Nullable List networkDestinationPorts; + private @Nullable List networkDestinationPorts; /** * @return Indicates the direction of network traffic associated with a finding. See String Filter below for more details. * */ - private final @Nullable List networkDirections; + private @Nullable List networkDirections; /** * @return The protocol of network-related information about a finding. See String Filter below for more details. * */ - private final @Nullable List networkProtocols; + private @Nullable List networkProtocols; /** * @return The source domain of network-related information about a finding. See String Filter below for more details. * */ - private final @Nullable List networkSourceDomains; + private @Nullable List networkSourceDomains; /** * @return The source IPv4 address of network-related information about a finding. See Ip Filter below for more details. * */ - private final @Nullable List networkSourceIpv4s; + private @Nullable List networkSourceIpv4s; /** * @return The source IPv6 address of network-related information about a finding. See Ip Filter below for more details. * */ - private final @Nullable List networkSourceIpv6s; + private @Nullable List networkSourceIpv6s; /** * @return The source media access control (MAC) address of network-related information about a finding. See String Filter below for more details. * */ - private final @Nullable List networkSourceMacs; + private @Nullable List networkSourceMacs; /** * @return The source port of network-related information about a finding. See Number Filter below for more details. * */ - private final @Nullable List networkSourcePorts; + private @Nullable List networkSourcePorts; /** * @return The text of a note. See String Filter below for more details. * */ - private final @Nullable List noteTexts; + private @Nullable List noteTexts; /** * @return The timestamp of when the note was updated. See Date Filter below for more details. * */ - private final @Nullable List noteUpdatedAts; + private @Nullable List noteUpdatedAts; /** * @return The principal that created a note. See String Filter below for more details. * */ - private final @Nullable List noteUpdatedBies; + private @Nullable List noteUpdatedBies; /** * @return The date/time that the process was launched. See Date Filter below for more details. * */ - private final @Nullable List processLaunchedAts; + private @Nullable List processLaunchedAts; /** * @return The name of the process. See String Filter below for more details. * */ - private final @Nullable List processNames; + private @Nullable List processNames; /** * @return The parent process ID. See Number Filter below for more details. * */ - private final @Nullable List processParentPids; + private @Nullable List processParentPids; /** * @return The path to the process executable. See String Filter below for more details. * */ - private final @Nullable List processPaths; + private @Nullable List processPaths; /** * @return The process ID. See Number Filter below for more details. * */ - private final @Nullable List processPids; + private @Nullable List processPids; /** * @return The date/time that the process was terminated. See Date Filter below for more details. * */ - private final @Nullable List processTerminatedAts; + private @Nullable List processTerminatedAts; /** * @return The ARN generated by Security Hub that uniquely identifies a third-party company (security findings provider) after this provider's product (solution that generates findings) is registered with Security Hub. See String Filter below for more details. * */ - private final @Nullable List productArns; + private @Nullable List productArns; /** * @return A data type where security-findings providers can include additional solution-specific details that aren't part of the defined `AwsSecurityFinding` format. See Map Filter below for more details. * */ - private final @Nullable List productFields; + private @Nullable List productFields; /** * @return The name of the solution (product) that generates findings. See String Filter below for more details. * */ - private final @Nullable List productNames; + private @Nullable List productNames; /** * @return The recommendation of what to do about the issue described in a finding. See String Filter below for more details. * */ - private final @Nullable List recommendationTexts; + private @Nullable List recommendationTexts; /** * @return The updated record state for the finding. See String Filter below for more details. * */ - private final @Nullable List recordStates; + private @Nullable List recordStates; /** * @return The solution-generated identifier for a related finding. See String Filter below for more details. * */ - private final @Nullable List relatedFindingsIds; + private @Nullable List relatedFindingsIds; /** * @return The ARN of the solution that generated a related finding. See String Filter below for more details. * */ - private final @Nullable List relatedFindingsProductArns; + private @Nullable List relatedFindingsProductArns; /** * @return The IAM profile ARN of the instance. See String Filter below for more details. * */ - private final @Nullable List resourceAwsEc2InstanceIamInstanceProfileArns; + private @Nullable List resourceAwsEc2InstanceIamInstanceProfileArns; /** * @return The Amazon Machine Image (AMI) ID of the instance. See String Filter below for more details. * */ - private final @Nullable List resourceAwsEc2InstanceImageIds; + private @Nullable List resourceAwsEc2InstanceImageIds; /** * @return The IPv4 addresses associated with the instance. See Ip Filter below for more details. * */ - private final @Nullable List resourceAwsEc2InstanceIpv4Addresses; + private @Nullable List resourceAwsEc2InstanceIpv4Addresses; /** * @return The IPv6 addresses associated with the instance. See Ip Filter below for more details. * */ - private final @Nullable List resourceAwsEc2InstanceIpv6Addresses; + private @Nullable List resourceAwsEc2InstanceIpv6Addresses; /** * @return The key name associated with the instance. See String Filter below for more details. * */ - private final @Nullable List resourceAwsEc2InstanceKeyNames; + private @Nullable List resourceAwsEc2InstanceKeyNames; /** * @return The date and time the instance was launched. See Date Filter below for more details. * */ - private final @Nullable List resourceAwsEc2InstanceLaunchedAts; + private @Nullable List resourceAwsEc2InstanceLaunchedAts; /** * @return The identifier of the subnet that the instance was launched in. See String Filter below for more details. * */ - private final @Nullable List resourceAwsEc2InstanceSubnetIds; + private @Nullable List resourceAwsEc2InstanceSubnetIds; /** * @return The instance type of the instance. See String Filter below for more details. * */ - private final @Nullable List resourceAwsEc2InstanceTypes; + private @Nullable List resourceAwsEc2InstanceTypes; /** * @return The identifier of the VPC that the instance was launched in. See String Filter below for more details. * */ - private final @Nullable List resourceAwsEc2InstanceVpcIds; + private @Nullable List resourceAwsEc2InstanceVpcIds; /** * @return The creation date/time of the IAM access key related to a finding. See Date Filter below for more details. * */ - private final @Nullable List resourceAwsIamAccessKeyCreatedAts; + private @Nullable List resourceAwsIamAccessKeyCreatedAts; /** * @return The status of the IAM access key related to a finding. See String Filter below for more details. * */ - private final @Nullable List resourceAwsIamAccessKeyStatuses; + private @Nullable List resourceAwsIamAccessKeyStatuses; /** * @return The user associated with the IAM access key related to a finding. See String Filter below for more details. * */ - private final @Nullable List resourceAwsIamAccessKeyUserNames; + private @Nullable List resourceAwsIamAccessKeyUserNames; /** * @return The canonical user ID of the owner of the S3 bucket. See String Filter below for more details. * */ - private final @Nullable List resourceAwsS3BucketOwnerIds; + private @Nullable List resourceAwsS3BucketOwnerIds; /** * @return The display name of the owner of the S3 bucket. See String Filter below for more details. * */ - private final @Nullable List resourceAwsS3BucketOwnerNames; + private @Nullable List resourceAwsS3BucketOwnerNames; /** * @return The identifier of the image related to a finding. See String Filter below for more details. * */ - private final @Nullable List resourceContainerImageIds; + private @Nullable List resourceContainerImageIds; /** * @return The name of the image related to a finding. See String Filter below for more details. * */ - private final @Nullable List resourceContainerImageNames; + private @Nullable List resourceContainerImageNames; /** * @return The date/time that the container was started. See Date Filter below for more details. * */ - private final @Nullable List resourceContainerLaunchedAts; + private @Nullable List resourceContainerLaunchedAts; /** * @return The name of the container related to a finding. See String Filter below for more details. * */ - private final @Nullable List resourceContainerNames; + private @Nullable List resourceContainerNames; /** * @return The details of a resource that doesn't have a specific subfield for the resource type defined. See Map Filter below for more details. * */ - private final @Nullable List resourceDetailsOthers; + private @Nullable List resourceDetailsOthers; /** * @return The canonical identifier for the given resource type. See String Filter below for more details. * */ - private final @Nullable List resourceIds; + private @Nullable List resourceIds; /** * @return The canonical AWS partition name that the Region is assigned to. See String Filter below for more details. * */ - private final @Nullable List resourcePartitions; + private @Nullable List resourcePartitions; /** * @return The canonical AWS external Region name where this resource is located. See String Filter below for more details. * */ - private final @Nullable List resourceRegions; + private @Nullable List resourceRegions; /** * @return A list of AWS tags associated with a resource at the time the finding was processed. See Map Filter below for more details. * */ - private final @Nullable List resourceTags; + private @Nullable List resourceTags; /** * @return Specifies the type of the resource that details are provided for. See String Filter below for more details. * */ - private final @Nullable List resourceTypes; + private @Nullable List resourceTypes; /** * @return The label of a finding's severity. See String Filter below for more details. * */ - private final @Nullable List severityLabels; + private @Nullable List severityLabels; /** * @return A URL that links to a page about the current finding in the security-findings provider's solution. See String Filter below for more details. * */ - private final @Nullable List sourceUrls; + private @Nullable List sourceUrls; /** * @return The category of a threat intelligence indicator. See String Filter below for more details. * */ - private final @Nullable List threatIntelIndicatorCategories; + private @Nullable List threatIntelIndicatorCategories; /** * @return The date/time of the last observation of a threat intelligence indicator. See Date Filter below for more details. * */ - private final @Nullable List threatIntelIndicatorLastObservedAts; + private @Nullable List threatIntelIndicatorLastObservedAts; /** * @return The URL for more details from the source of the threat intelligence. See String Filter below for more details. * */ - private final @Nullable List threatIntelIndicatorSourceUrls; + private @Nullable List threatIntelIndicatorSourceUrls; /** * @return The source of the threat intelligence. See String Filter below for more details. * */ - private final @Nullable List threatIntelIndicatorSources; + private @Nullable List threatIntelIndicatorSources; /** * @return The type of a threat intelligence indicator. See String Filter below for more details. * */ - private final @Nullable List threatIntelIndicatorTypes; + private @Nullable List threatIntelIndicatorTypes; /** * @return The value of a threat intelligence indicator. See String Filter below for more details. * */ - private final @Nullable List threatIntelIndicatorValues; + private @Nullable List threatIntelIndicatorValues; /** * @return A finding's title. See String Filter below for more details. * */ - private final @Nullable List titles; + private @Nullable List titles; /** * @return A finding type in the format of `namespace/category/classifier` that classifies a finding. See String Filter below for more details. * */ - private final @Nullable List types; + private @Nullable List types; /** * @return An ISO8601-formatted timestamp that indicates when the security-findings provider last updated the finding record. See Date Filter below for more details. * */ - private final @Nullable List updatedAts; + private @Nullable List updatedAts; /** * @return A list of name/value string pairs associated with the finding. These are custom, user-defined fields added to a finding. See Map Filter below for more details. * */ - private final @Nullable List userDefinedValues; + private @Nullable List userDefinedValues; /** * @return The veracity of a finding. See String Filter below for more details. * */ - private final @Nullable List verificationStates; + private @Nullable List verificationStates; /** * @return The status of the investigation into a finding. See Workflow Status Filter below for more details. * */ - private final @Nullable List workflowStatuses; - - @CustomType.Constructor - private InsightFilters( - @CustomType.Parameter("awsAccountIds") @Nullable List awsAccountIds, - @CustomType.Parameter("companyNames") @Nullable List companyNames, - @CustomType.Parameter("complianceStatuses") @Nullable List complianceStatuses, - @CustomType.Parameter("confidences") @Nullable List confidences, - @CustomType.Parameter("createdAts") @Nullable List createdAts, - @CustomType.Parameter("criticalities") @Nullable List criticalities, - @CustomType.Parameter("descriptions") @Nullable List descriptions, - @CustomType.Parameter("findingProviderFieldsConfidences") @Nullable List findingProviderFieldsConfidences, - @CustomType.Parameter("findingProviderFieldsCriticalities") @Nullable List findingProviderFieldsCriticalities, - @CustomType.Parameter("findingProviderFieldsRelatedFindingsIds") @Nullable List findingProviderFieldsRelatedFindingsIds, - @CustomType.Parameter("findingProviderFieldsRelatedFindingsProductArns") @Nullable List findingProviderFieldsRelatedFindingsProductArns, - @CustomType.Parameter("findingProviderFieldsSeverityLabels") @Nullable List findingProviderFieldsSeverityLabels, - @CustomType.Parameter("findingProviderFieldsSeverityOriginals") @Nullable List findingProviderFieldsSeverityOriginals, - @CustomType.Parameter("findingProviderFieldsTypes") @Nullable List findingProviderFieldsTypes, - @CustomType.Parameter("firstObservedAts") @Nullable List firstObservedAts, - @CustomType.Parameter("generatorIds") @Nullable List generatorIds, - @CustomType.Parameter("ids") @Nullable List ids, - @CustomType.Parameter("keywords") @Nullable List keywords, - @CustomType.Parameter("lastObservedAts") @Nullable List lastObservedAts, - @CustomType.Parameter("malwareNames") @Nullable List malwareNames, - @CustomType.Parameter("malwarePaths") @Nullable List malwarePaths, - @CustomType.Parameter("malwareStates") @Nullable List malwareStates, - @CustomType.Parameter("malwareTypes") @Nullable List malwareTypes, - @CustomType.Parameter("networkDestinationDomains") @Nullable List networkDestinationDomains, - @CustomType.Parameter("networkDestinationIpv4s") @Nullable List networkDestinationIpv4s, - @CustomType.Parameter("networkDestinationIpv6s") @Nullable List networkDestinationIpv6s, - @CustomType.Parameter("networkDestinationPorts") @Nullable List networkDestinationPorts, - @CustomType.Parameter("networkDirections") @Nullable List networkDirections, - @CustomType.Parameter("networkProtocols") @Nullable List networkProtocols, - @CustomType.Parameter("networkSourceDomains") @Nullable List networkSourceDomains, - @CustomType.Parameter("networkSourceIpv4s") @Nullable List networkSourceIpv4s, - @CustomType.Parameter("networkSourceIpv6s") @Nullable List networkSourceIpv6s, - @CustomType.Parameter("networkSourceMacs") @Nullable List networkSourceMacs, - @CustomType.Parameter("networkSourcePorts") @Nullable List networkSourcePorts, - @CustomType.Parameter("noteTexts") @Nullable List noteTexts, - @CustomType.Parameter("noteUpdatedAts") @Nullable List noteUpdatedAts, - @CustomType.Parameter("noteUpdatedBies") @Nullable List noteUpdatedBies, - @CustomType.Parameter("processLaunchedAts") @Nullable List processLaunchedAts, - @CustomType.Parameter("processNames") @Nullable List processNames, - @CustomType.Parameter("processParentPids") @Nullable List processParentPids, - @CustomType.Parameter("processPaths") @Nullable List processPaths, - @CustomType.Parameter("processPids") @Nullable List processPids, - @CustomType.Parameter("processTerminatedAts") @Nullable List processTerminatedAts, - @CustomType.Parameter("productArns") @Nullable List productArns, - @CustomType.Parameter("productFields") @Nullable List productFields, - @CustomType.Parameter("productNames") @Nullable List productNames, - @CustomType.Parameter("recommendationTexts") @Nullable List recommendationTexts, - @CustomType.Parameter("recordStates") @Nullable List recordStates, - @CustomType.Parameter("relatedFindingsIds") @Nullable List relatedFindingsIds, - @CustomType.Parameter("relatedFindingsProductArns") @Nullable List relatedFindingsProductArns, - @CustomType.Parameter("resourceAwsEc2InstanceIamInstanceProfileArns") @Nullable List resourceAwsEc2InstanceIamInstanceProfileArns, - @CustomType.Parameter("resourceAwsEc2InstanceImageIds") @Nullable List resourceAwsEc2InstanceImageIds, - @CustomType.Parameter("resourceAwsEc2InstanceIpv4Addresses") @Nullable List resourceAwsEc2InstanceIpv4Addresses, - @CustomType.Parameter("resourceAwsEc2InstanceIpv6Addresses") @Nullable List resourceAwsEc2InstanceIpv6Addresses, - @CustomType.Parameter("resourceAwsEc2InstanceKeyNames") @Nullable List resourceAwsEc2InstanceKeyNames, - @CustomType.Parameter("resourceAwsEc2InstanceLaunchedAts") @Nullable List resourceAwsEc2InstanceLaunchedAts, - @CustomType.Parameter("resourceAwsEc2InstanceSubnetIds") @Nullable List resourceAwsEc2InstanceSubnetIds, - @CustomType.Parameter("resourceAwsEc2InstanceTypes") @Nullable List resourceAwsEc2InstanceTypes, - @CustomType.Parameter("resourceAwsEc2InstanceVpcIds") @Nullable List resourceAwsEc2InstanceVpcIds, - @CustomType.Parameter("resourceAwsIamAccessKeyCreatedAts") @Nullable List resourceAwsIamAccessKeyCreatedAts, - @CustomType.Parameter("resourceAwsIamAccessKeyStatuses") @Nullable List resourceAwsIamAccessKeyStatuses, - @CustomType.Parameter("resourceAwsIamAccessKeyUserNames") @Nullable List resourceAwsIamAccessKeyUserNames, - @CustomType.Parameter("resourceAwsS3BucketOwnerIds") @Nullable List resourceAwsS3BucketOwnerIds, - @CustomType.Parameter("resourceAwsS3BucketOwnerNames") @Nullable List resourceAwsS3BucketOwnerNames, - @CustomType.Parameter("resourceContainerImageIds") @Nullable List resourceContainerImageIds, - @CustomType.Parameter("resourceContainerImageNames") @Nullable List resourceContainerImageNames, - @CustomType.Parameter("resourceContainerLaunchedAts") @Nullable List resourceContainerLaunchedAts, - @CustomType.Parameter("resourceContainerNames") @Nullable List resourceContainerNames, - @CustomType.Parameter("resourceDetailsOthers") @Nullable List resourceDetailsOthers, - @CustomType.Parameter("resourceIds") @Nullable List resourceIds, - @CustomType.Parameter("resourcePartitions") @Nullable List resourcePartitions, - @CustomType.Parameter("resourceRegions") @Nullable List resourceRegions, - @CustomType.Parameter("resourceTags") @Nullable List resourceTags, - @CustomType.Parameter("resourceTypes") @Nullable List resourceTypes, - @CustomType.Parameter("severityLabels") @Nullable List severityLabels, - @CustomType.Parameter("sourceUrls") @Nullable List sourceUrls, - @CustomType.Parameter("threatIntelIndicatorCategories") @Nullable List threatIntelIndicatorCategories, - @CustomType.Parameter("threatIntelIndicatorLastObservedAts") @Nullable List threatIntelIndicatorLastObservedAts, - @CustomType.Parameter("threatIntelIndicatorSourceUrls") @Nullable List threatIntelIndicatorSourceUrls, - @CustomType.Parameter("threatIntelIndicatorSources") @Nullable List threatIntelIndicatorSources, - @CustomType.Parameter("threatIntelIndicatorTypes") @Nullable List threatIntelIndicatorTypes, - @CustomType.Parameter("threatIntelIndicatorValues") @Nullable List threatIntelIndicatorValues, - @CustomType.Parameter("titles") @Nullable List titles, - @CustomType.Parameter("types") @Nullable List types, - @CustomType.Parameter("updatedAts") @Nullable List updatedAts, - @CustomType.Parameter("userDefinedValues") @Nullable List userDefinedValues, - @CustomType.Parameter("verificationStates") @Nullable List verificationStates, - @CustomType.Parameter("workflowStatuses") @Nullable List workflowStatuses) { - this.awsAccountIds = awsAccountIds; - this.companyNames = companyNames; - this.complianceStatuses = complianceStatuses; - this.confidences = confidences; - this.createdAts = createdAts; - this.criticalities = criticalities; - this.descriptions = descriptions; - this.findingProviderFieldsConfidences = findingProviderFieldsConfidences; - this.findingProviderFieldsCriticalities = findingProviderFieldsCriticalities; - this.findingProviderFieldsRelatedFindingsIds = findingProviderFieldsRelatedFindingsIds; - this.findingProviderFieldsRelatedFindingsProductArns = findingProviderFieldsRelatedFindingsProductArns; - this.findingProviderFieldsSeverityLabels = findingProviderFieldsSeverityLabels; - this.findingProviderFieldsSeverityOriginals = findingProviderFieldsSeverityOriginals; - this.findingProviderFieldsTypes = findingProviderFieldsTypes; - this.firstObservedAts = firstObservedAts; - this.generatorIds = generatorIds; - this.ids = ids; - this.keywords = keywords; - this.lastObservedAts = lastObservedAts; - this.malwareNames = malwareNames; - this.malwarePaths = malwarePaths; - this.malwareStates = malwareStates; - this.malwareTypes = malwareTypes; - this.networkDestinationDomains = networkDestinationDomains; - this.networkDestinationIpv4s = networkDestinationIpv4s; - this.networkDestinationIpv6s = networkDestinationIpv6s; - this.networkDestinationPorts = networkDestinationPorts; - this.networkDirections = networkDirections; - this.networkProtocols = networkProtocols; - this.networkSourceDomains = networkSourceDomains; - this.networkSourceIpv4s = networkSourceIpv4s; - this.networkSourceIpv6s = networkSourceIpv6s; - this.networkSourceMacs = networkSourceMacs; - this.networkSourcePorts = networkSourcePorts; - this.noteTexts = noteTexts; - this.noteUpdatedAts = noteUpdatedAts; - this.noteUpdatedBies = noteUpdatedBies; - this.processLaunchedAts = processLaunchedAts; - this.processNames = processNames; - this.processParentPids = processParentPids; - this.processPaths = processPaths; - this.processPids = processPids; - this.processTerminatedAts = processTerminatedAts; - this.productArns = productArns; - this.productFields = productFields; - this.productNames = productNames; - this.recommendationTexts = recommendationTexts; - this.recordStates = recordStates; - this.relatedFindingsIds = relatedFindingsIds; - this.relatedFindingsProductArns = relatedFindingsProductArns; - this.resourceAwsEc2InstanceIamInstanceProfileArns = resourceAwsEc2InstanceIamInstanceProfileArns; - this.resourceAwsEc2InstanceImageIds = resourceAwsEc2InstanceImageIds; - this.resourceAwsEc2InstanceIpv4Addresses = resourceAwsEc2InstanceIpv4Addresses; - this.resourceAwsEc2InstanceIpv6Addresses = resourceAwsEc2InstanceIpv6Addresses; - this.resourceAwsEc2InstanceKeyNames = resourceAwsEc2InstanceKeyNames; - this.resourceAwsEc2InstanceLaunchedAts = resourceAwsEc2InstanceLaunchedAts; - this.resourceAwsEc2InstanceSubnetIds = resourceAwsEc2InstanceSubnetIds; - this.resourceAwsEc2InstanceTypes = resourceAwsEc2InstanceTypes; - this.resourceAwsEc2InstanceVpcIds = resourceAwsEc2InstanceVpcIds; - this.resourceAwsIamAccessKeyCreatedAts = resourceAwsIamAccessKeyCreatedAts; - this.resourceAwsIamAccessKeyStatuses = resourceAwsIamAccessKeyStatuses; - this.resourceAwsIamAccessKeyUserNames = resourceAwsIamAccessKeyUserNames; - this.resourceAwsS3BucketOwnerIds = resourceAwsS3BucketOwnerIds; - this.resourceAwsS3BucketOwnerNames = resourceAwsS3BucketOwnerNames; - this.resourceContainerImageIds = resourceContainerImageIds; - this.resourceContainerImageNames = resourceContainerImageNames; - this.resourceContainerLaunchedAts = resourceContainerLaunchedAts; - this.resourceContainerNames = resourceContainerNames; - this.resourceDetailsOthers = resourceDetailsOthers; - this.resourceIds = resourceIds; - this.resourcePartitions = resourcePartitions; - this.resourceRegions = resourceRegions; - this.resourceTags = resourceTags; - this.resourceTypes = resourceTypes; - this.severityLabels = severityLabels; - this.sourceUrls = sourceUrls; - this.threatIntelIndicatorCategories = threatIntelIndicatorCategories; - this.threatIntelIndicatorLastObservedAts = threatIntelIndicatorLastObservedAts; - this.threatIntelIndicatorSourceUrls = threatIntelIndicatorSourceUrls; - this.threatIntelIndicatorSources = threatIntelIndicatorSources; - this.threatIntelIndicatorTypes = threatIntelIndicatorTypes; - this.threatIntelIndicatorValues = threatIntelIndicatorValues; - this.titles = titles; - this.types = types; - this.updatedAts = updatedAts; - this.userDefinedValues = userDefinedValues; - this.verificationStates = verificationStates; - this.workflowStatuses = workflowStatuses; - } + private @Nullable List workflowStatuses; + private InsightFilters() {} /** * @return AWS account ID that a finding is generated in. See String_Filter below for more details. * @@ -1343,7 +1164,7 @@ public static Builder builder() { public static Builder builder(InsightFilters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List awsAccountIds; private @Nullable List companyNames; @@ -1433,11 +1254,7 @@ public static final class Builder { private @Nullable List userDefinedValues; private @Nullable List verificationStates; private @Nullable List workflowStatuses; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFilters defaults) { Objects.requireNonNull(defaults); this.awsAccountIds = defaults.awsAccountIds; @@ -1530,6 +1347,7 @@ public Builder(InsightFilters defaults) { this.workflowStatuses = defaults.workflowStatuses; } + @CustomType.Setter public Builder awsAccountIds(@Nullable List awsAccountIds) { this.awsAccountIds = awsAccountIds; return this; @@ -1537,6 +1355,7 @@ public Builder awsAccountIds(@Nullable List awsAccou public Builder awsAccountIds(InsightFiltersAwsAccountId... awsAccountIds) { return awsAccountIds(List.of(awsAccountIds)); } + @CustomType.Setter public Builder companyNames(@Nullable List companyNames) { this.companyNames = companyNames; return this; @@ -1544,6 +1363,7 @@ public Builder companyNames(@Nullable List companyNam public Builder companyNames(InsightFiltersCompanyName... companyNames) { return companyNames(List.of(companyNames)); } + @CustomType.Setter public Builder complianceStatuses(@Nullable List complianceStatuses) { this.complianceStatuses = complianceStatuses; return this; @@ -1551,6 +1371,7 @@ public Builder complianceStatuses(@Nullable List public Builder complianceStatuses(InsightFiltersComplianceStatus... complianceStatuses) { return complianceStatuses(List.of(complianceStatuses)); } + @CustomType.Setter public Builder confidences(@Nullable List confidences) { this.confidences = confidences; return this; @@ -1558,6 +1379,7 @@ public Builder confidences(@Nullable List confidences) public Builder confidences(InsightFiltersConfidence... confidences) { return confidences(List.of(confidences)); } + @CustomType.Setter public Builder createdAts(@Nullable List createdAts) { this.createdAts = createdAts; return this; @@ -1565,6 +1387,7 @@ public Builder createdAts(@Nullable List createdAts) { public Builder createdAts(InsightFiltersCreatedAt... createdAts) { return createdAts(List.of(createdAts)); } + @CustomType.Setter public Builder criticalities(@Nullable List criticalities) { this.criticalities = criticalities; return this; @@ -1572,6 +1395,7 @@ public Builder criticalities(@Nullable List criticali public Builder criticalities(InsightFiltersCriticality... criticalities) { return criticalities(List.of(criticalities)); } + @CustomType.Setter public Builder descriptions(@Nullable List descriptions) { this.descriptions = descriptions; return this; @@ -1579,6 +1403,7 @@ public Builder descriptions(@Nullable List descriptio public Builder descriptions(InsightFiltersDescription... descriptions) { return descriptions(List.of(descriptions)); } + @CustomType.Setter public Builder findingProviderFieldsConfidences(@Nullable List findingProviderFieldsConfidences) { this.findingProviderFieldsConfidences = findingProviderFieldsConfidences; return this; @@ -1586,6 +1411,7 @@ public Builder findingProviderFieldsConfidences(@Nullable List findingProviderFieldsCriticalities) { this.findingProviderFieldsCriticalities = findingProviderFieldsCriticalities; return this; @@ -1593,6 +1419,7 @@ public Builder findingProviderFieldsCriticalities(@Nullable List findingProviderFieldsRelatedFindingsIds) { this.findingProviderFieldsRelatedFindingsIds = findingProviderFieldsRelatedFindingsIds; return this; @@ -1600,6 +1427,7 @@ public Builder findingProviderFieldsRelatedFindingsIds(@Nullable List findingProviderFieldsRelatedFindingsProductArns) { this.findingProviderFieldsRelatedFindingsProductArns = findingProviderFieldsRelatedFindingsProductArns; return this; @@ -1607,6 +1435,7 @@ public Builder findingProviderFieldsRelatedFindingsProductArns(@Nullable List findingProviderFieldsSeverityLabels) { this.findingProviderFieldsSeverityLabels = findingProviderFieldsSeverityLabels; return this; @@ -1614,6 +1443,7 @@ public Builder findingProviderFieldsSeverityLabels(@Nullable List findingProviderFieldsSeverityOriginals) { this.findingProviderFieldsSeverityOriginals = findingProviderFieldsSeverityOriginals; return this; @@ -1621,6 +1451,7 @@ public Builder findingProviderFieldsSeverityOriginals(@Nullable List findingProviderFieldsTypes) { this.findingProviderFieldsTypes = findingProviderFieldsTypes; return this; @@ -1628,6 +1459,7 @@ public Builder findingProviderFieldsTypes(@Nullable List firstObservedAts) { this.firstObservedAts = firstObservedAts; return this; @@ -1635,6 +1467,7 @@ public Builder firstObservedAts(@Nullable List fi public Builder firstObservedAts(InsightFiltersFirstObservedAt... firstObservedAts) { return firstObservedAts(List.of(firstObservedAts)); } + @CustomType.Setter public Builder generatorIds(@Nullable List generatorIds) { this.generatorIds = generatorIds; return this; @@ -1642,6 +1475,7 @@ public Builder generatorIds(@Nullable List generatorI public Builder generatorIds(InsightFiltersGeneratorId... generatorIds) { return generatorIds(List.of(generatorIds)); } + @CustomType.Setter public Builder ids(@Nullable List ids) { this.ids = ids; return this; @@ -1649,6 +1483,7 @@ public Builder ids(@Nullable List ids) { public Builder ids(InsightFiltersId... ids) { return ids(List.of(ids)); } + @CustomType.Setter public Builder keywords(@Nullable List keywords) { this.keywords = keywords; return this; @@ -1656,6 +1491,7 @@ public Builder keywords(@Nullable List keywords) { public Builder keywords(InsightFiltersKeyword... keywords) { return keywords(List.of(keywords)); } + @CustomType.Setter public Builder lastObservedAts(@Nullable List lastObservedAts) { this.lastObservedAts = lastObservedAts; return this; @@ -1663,6 +1499,7 @@ public Builder lastObservedAts(@Nullable List last public Builder lastObservedAts(InsightFiltersLastObservedAt... lastObservedAts) { return lastObservedAts(List.of(lastObservedAts)); } + @CustomType.Setter public Builder malwareNames(@Nullable List malwareNames) { this.malwareNames = malwareNames; return this; @@ -1670,6 +1507,7 @@ public Builder malwareNames(@Nullable List malwareNam public Builder malwareNames(InsightFiltersMalwareName... malwareNames) { return malwareNames(List.of(malwareNames)); } + @CustomType.Setter public Builder malwarePaths(@Nullable List malwarePaths) { this.malwarePaths = malwarePaths; return this; @@ -1677,6 +1515,7 @@ public Builder malwarePaths(@Nullable List malwarePat public Builder malwarePaths(InsightFiltersMalwarePath... malwarePaths) { return malwarePaths(List.of(malwarePaths)); } + @CustomType.Setter public Builder malwareStates(@Nullable List malwareStates) { this.malwareStates = malwareStates; return this; @@ -1684,6 +1523,7 @@ public Builder malwareStates(@Nullable List malwareS public Builder malwareStates(InsightFiltersMalwareState... malwareStates) { return malwareStates(List.of(malwareStates)); } + @CustomType.Setter public Builder malwareTypes(@Nullable List malwareTypes) { this.malwareTypes = malwareTypes; return this; @@ -1691,6 +1531,7 @@ public Builder malwareTypes(@Nullable List malwareTyp public Builder malwareTypes(InsightFiltersMalwareType... malwareTypes) { return malwareTypes(List.of(malwareTypes)); } + @CustomType.Setter public Builder networkDestinationDomains(@Nullable List networkDestinationDomains) { this.networkDestinationDomains = networkDestinationDomains; return this; @@ -1698,6 +1539,7 @@ public Builder networkDestinationDomains(@Nullable List networkDestinationIpv4s) { this.networkDestinationIpv4s = networkDestinationIpv4s; return this; @@ -1705,6 +1547,7 @@ public Builder networkDestinationIpv4s(@Nullable List networkDestinationIpv6s) { this.networkDestinationIpv6s = networkDestinationIpv6s; return this; @@ -1712,6 +1555,7 @@ public Builder networkDestinationIpv6s(@Nullable List networkDestinationPorts) { this.networkDestinationPorts = networkDestinationPorts; return this; @@ -1719,6 +1563,7 @@ public Builder networkDestinationPorts(@Nullable List networkDirections) { this.networkDirections = networkDirections; return this; @@ -1726,6 +1571,7 @@ public Builder networkDirections(@Nullable List public Builder networkDirections(InsightFiltersNetworkDirection... networkDirections) { return networkDirections(List.of(networkDirections)); } + @CustomType.Setter public Builder networkProtocols(@Nullable List networkProtocols) { this.networkProtocols = networkProtocols; return this; @@ -1733,6 +1579,7 @@ public Builder networkProtocols(@Nullable List ne public Builder networkProtocols(InsightFiltersNetworkProtocol... networkProtocols) { return networkProtocols(List.of(networkProtocols)); } + @CustomType.Setter public Builder networkSourceDomains(@Nullable List networkSourceDomains) { this.networkSourceDomains = networkSourceDomains; return this; @@ -1740,6 +1587,7 @@ public Builder networkSourceDomains(@Nullable List networkSourceIpv4s) { this.networkSourceIpv4s = networkSourceIpv4s; return this; @@ -1747,6 +1595,7 @@ public Builder networkSourceIpv4s(@Nullable List networkSourceIpv6s) { this.networkSourceIpv6s = networkSourceIpv6s; return this; @@ -1754,6 +1603,7 @@ public Builder networkSourceIpv6s(@Nullable List networkSourceMacs) { this.networkSourceMacs = networkSourceMacs; return this; @@ -1761,6 +1611,7 @@ public Builder networkSourceMacs(@Nullable List public Builder networkSourceMacs(InsightFiltersNetworkSourceMac... networkSourceMacs) { return networkSourceMacs(List.of(networkSourceMacs)); } + @CustomType.Setter public Builder networkSourcePorts(@Nullable List networkSourcePorts) { this.networkSourcePorts = networkSourcePorts; return this; @@ -1768,6 +1619,7 @@ public Builder networkSourcePorts(@Nullable List noteTexts) { this.noteTexts = noteTexts; return this; @@ -1775,6 +1627,7 @@ public Builder noteTexts(@Nullable List noteTexts) { public Builder noteTexts(InsightFiltersNoteText... noteTexts) { return noteTexts(List.of(noteTexts)); } + @CustomType.Setter public Builder noteUpdatedAts(@Nullable List noteUpdatedAts) { this.noteUpdatedAts = noteUpdatedAts; return this; @@ -1782,6 +1635,7 @@ public Builder noteUpdatedAts(@Nullable List noteUp public Builder noteUpdatedAts(InsightFiltersNoteUpdatedAt... noteUpdatedAts) { return noteUpdatedAts(List.of(noteUpdatedAts)); } + @CustomType.Setter public Builder noteUpdatedBies(@Nullable List noteUpdatedBies) { this.noteUpdatedBies = noteUpdatedBies; return this; @@ -1789,6 +1643,7 @@ public Builder noteUpdatedBies(@Nullable List noteU public Builder noteUpdatedBies(InsightFiltersNoteUpdatedBy... noteUpdatedBies) { return noteUpdatedBies(List.of(noteUpdatedBies)); } + @CustomType.Setter public Builder processLaunchedAts(@Nullable List processLaunchedAts) { this.processLaunchedAts = processLaunchedAts; return this; @@ -1796,6 +1651,7 @@ public Builder processLaunchedAts(@Nullable List processNames) { this.processNames = processNames; return this; @@ -1803,6 +1659,7 @@ public Builder processNames(@Nullable List processNam public Builder processNames(InsightFiltersProcessName... processNames) { return processNames(List.of(processNames)); } + @CustomType.Setter public Builder processParentPids(@Nullable List processParentPids) { this.processParentPids = processParentPids; return this; @@ -1810,6 +1667,7 @@ public Builder processParentPids(@Nullable List public Builder processParentPids(InsightFiltersProcessParentPid... processParentPids) { return processParentPids(List.of(processParentPids)); } + @CustomType.Setter public Builder processPaths(@Nullable List processPaths) { this.processPaths = processPaths; return this; @@ -1817,6 +1675,7 @@ public Builder processPaths(@Nullable List processPat public Builder processPaths(InsightFiltersProcessPath... processPaths) { return processPaths(List.of(processPaths)); } + @CustomType.Setter public Builder processPids(@Nullable List processPids) { this.processPids = processPids; return this; @@ -1824,6 +1683,7 @@ public Builder processPids(@Nullable List processPids) public Builder processPids(InsightFiltersProcessPid... processPids) { return processPids(List.of(processPids)); } + @CustomType.Setter public Builder processTerminatedAts(@Nullable List processTerminatedAts) { this.processTerminatedAts = processTerminatedAts; return this; @@ -1831,6 +1691,7 @@ public Builder processTerminatedAts(@Nullable List productArns) { this.productArns = productArns; return this; @@ -1838,6 +1699,7 @@ public Builder productArns(@Nullable List productArns) public Builder productArns(InsightFiltersProductArn... productArns) { return productArns(List.of(productArns)); } + @CustomType.Setter public Builder productFields(@Nullable List productFields) { this.productFields = productFields; return this; @@ -1845,6 +1707,7 @@ public Builder productFields(@Nullable List productF public Builder productFields(InsightFiltersProductField... productFields) { return productFields(List.of(productFields)); } + @CustomType.Setter public Builder productNames(@Nullable List productNames) { this.productNames = productNames; return this; @@ -1852,6 +1715,7 @@ public Builder productNames(@Nullable List productNam public Builder productNames(InsightFiltersProductName... productNames) { return productNames(List.of(productNames)); } + @CustomType.Setter public Builder recommendationTexts(@Nullable List recommendationTexts) { this.recommendationTexts = recommendationTexts; return this; @@ -1859,6 +1723,7 @@ public Builder recommendationTexts(@Nullable List recordStates) { this.recordStates = recordStates; return this; @@ -1866,6 +1731,7 @@ public Builder recordStates(@Nullable List recordStat public Builder recordStates(InsightFiltersRecordState... recordStates) { return recordStates(List.of(recordStates)); } + @CustomType.Setter public Builder relatedFindingsIds(@Nullable List relatedFindingsIds) { this.relatedFindingsIds = relatedFindingsIds; return this; @@ -1873,6 +1739,7 @@ public Builder relatedFindingsIds(@Nullable List relatedFindingsProductArns) { this.relatedFindingsProductArns = relatedFindingsProductArns; return this; @@ -1880,6 +1747,7 @@ public Builder relatedFindingsProductArns(@Nullable List resourceAwsEc2InstanceIamInstanceProfileArns) { this.resourceAwsEc2InstanceIamInstanceProfileArns = resourceAwsEc2InstanceIamInstanceProfileArns; return this; @@ -1887,6 +1755,7 @@ public Builder resourceAwsEc2InstanceIamInstanceProfileArns(@Nullable List resourceAwsEc2InstanceImageIds) { this.resourceAwsEc2InstanceImageIds = resourceAwsEc2InstanceImageIds; return this; @@ -1894,6 +1763,7 @@ public Builder resourceAwsEc2InstanceImageIds(@Nullable List resourceAwsEc2InstanceIpv4Addresses) { this.resourceAwsEc2InstanceIpv4Addresses = resourceAwsEc2InstanceIpv4Addresses; return this; @@ -1901,6 +1771,7 @@ public Builder resourceAwsEc2InstanceIpv4Addresses(@Nullable List resourceAwsEc2InstanceIpv6Addresses) { this.resourceAwsEc2InstanceIpv6Addresses = resourceAwsEc2InstanceIpv6Addresses; return this; @@ -1908,6 +1779,7 @@ public Builder resourceAwsEc2InstanceIpv6Addresses(@Nullable List resourceAwsEc2InstanceKeyNames) { this.resourceAwsEc2InstanceKeyNames = resourceAwsEc2InstanceKeyNames; return this; @@ -1915,6 +1787,7 @@ public Builder resourceAwsEc2InstanceKeyNames(@Nullable List resourceAwsEc2InstanceLaunchedAts) { this.resourceAwsEc2InstanceLaunchedAts = resourceAwsEc2InstanceLaunchedAts; return this; @@ -1922,6 +1795,7 @@ public Builder resourceAwsEc2InstanceLaunchedAts(@Nullable List resourceAwsEc2InstanceSubnetIds) { this.resourceAwsEc2InstanceSubnetIds = resourceAwsEc2InstanceSubnetIds; return this; @@ -1929,6 +1803,7 @@ public Builder resourceAwsEc2InstanceSubnetIds(@Nullable List resourceAwsEc2InstanceTypes) { this.resourceAwsEc2InstanceTypes = resourceAwsEc2InstanceTypes; return this; @@ -1936,6 +1811,7 @@ public Builder resourceAwsEc2InstanceTypes(@Nullable List resourceAwsEc2InstanceVpcIds) { this.resourceAwsEc2InstanceVpcIds = resourceAwsEc2InstanceVpcIds; return this; @@ -1943,6 +1819,7 @@ public Builder resourceAwsEc2InstanceVpcIds(@Nullable List resourceAwsIamAccessKeyCreatedAts) { this.resourceAwsIamAccessKeyCreatedAts = resourceAwsIamAccessKeyCreatedAts; return this; @@ -1950,6 +1827,7 @@ public Builder resourceAwsIamAccessKeyCreatedAts(@Nullable List resourceAwsIamAccessKeyStatuses) { this.resourceAwsIamAccessKeyStatuses = resourceAwsIamAccessKeyStatuses; return this; @@ -1957,6 +1835,7 @@ public Builder resourceAwsIamAccessKeyStatuses(@Nullable List resourceAwsIamAccessKeyUserNames) { this.resourceAwsIamAccessKeyUserNames = resourceAwsIamAccessKeyUserNames; return this; @@ -1964,6 +1843,7 @@ public Builder resourceAwsIamAccessKeyUserNames(@Nullable List resourceAwsS3BucketOwnerIds) { this.resourceAwsS3BucketOwnerIds = resourceAwsS3BucketOwnerIds; return this; @@ -1971,6 +1851,7 @@ public Builder resourceAwsS3BucketOwnerIds(@Nullable List resourceAwsS3BucketOwnerNames) { this.resourceAwsS3BucketOwnerNames = resourceAwsS3BucketOwnerNames; return this; @@ -1978,6 +1859,7 @@ public Builder resourceAwsS3BucketOwnerNames(@Nullable List resourceContainerImageIds) { this.resourceContainerImageIds = resourceContainerImageIds; return this; @@ -1985,6 +1867,7 @@ public Builder resourceContainerImageIds(@Nullable List resourceContainerImageNames) { this.resourceContainerImageNames = resourceContainerImageNames; return this; @@ -1992,6 +1875,7 @@ public Builder resourceContainerImageNames(@Nullable List resourceContainerLaunchedAts) { this.resourceContainerLaunchedAts = resourceContainerLaunchedAts; return this; @@ -1999,6 +1883,7 @@ public Builder resourceContainerLaunchedAts(@Nullable List resourceContainerNames) { this.resourceContainerNames = resourceContainerNames; return this; @@ -2006,6 +1891,7 @@ public Builder resourceContainerNames(@Nullable List resourceDetailsOthers) { this.resourceDetailsOthers = resourceDetailsOthers; return this; @@ -2013,6 +1899,7 @@ public Builder resourceDetailsOthers(@Nullable List resourceIds) { this.resourceIds = resourceIds; return this; @@ -2020,6 +1907,7 @@ public Builder resourceIds(@Nullable List resourceIds) public Builder resourceIds(InsightFiltersResourceId... resourceIds) { return resourceIds(List.of(resourceIds)); } + @CustomType.Setter public Builder resourcePartitions(@Nullable List resourcePartitions) { this.resourcePartitions = resourcePartitions; return this; @@ -2027,6 +1915,7 @@ public Builder resourcePartitions(@Nullable List resourceRegions) { this.resourceRegions = resourceRegions; return this; @@ -2034,6 +1923,7 @@ public Builder resourceRegions(@Nullable List reso public Builder resourceRegions(InsightFiltersResourceRegion... resourceRegions) { return resourceRegions(List.of(resourceRegions)); } + @CustomType.Setter public Builder resourceTags(@Nullable List resourceTags) { this.resourceTags = resourceTags; return this; @@ -2041,6 +1931,7 @@ public Builder resourceTags(@Nullable List resourceTa public Builder resourceTags(InsightFiltersResourceTag... resourceTags) { return resourceTags(List.of(resourceTags)); } + @CustomType.Setter public Builder resourceTypes(@Nullable List resourceTypes) { this.resourceTypes = resourceTypes; return this; @@ -2048,6 +1939,7 @@ public Builder resourceTypes(@Nullable List resource public Builder resourceTypes(InsightFiltersResourceType... resourceTypes) { return resourceTypes(List.of(resourceTypes)); } + @CustomType.Setter public Builder severityLabels(@Nullable List severityLabels) { this.severityLabels = severityLabels; return this; @@ -2055,6 +1947,7 @@ public Builder severityLabels(@Nullable List severi public Builder severityLabels(InsightFiltersSeverityLabel... severityLabels) { return severityLabels(List.of(severityLabels)); } + @CustomType.Setter public Builder sourceUrls(@Nullable List sourceUrls) { this.sourceUrls = sourceUrls; return this; @@ -2062,6 +1955,7 @@ public Builder sourceUrls(@Nullable List sourceUrls) { public Builder sourceUrls(InsightFiltersSourceUrl... sourceUrls) { return sourceUrls(List.of(sourceUrls)); } + @CustomType.Setter public Builder threatIntelIndicatorCategories(@Nullable List threatIntelIndicatorCategories) { this.threatIntelIndicatorCategories = threatIntelIndicatorCategories; return this; @@ -2069,6 +1963,7 @@ public Builder threatIntelIndicatorCategories(@Nullable List threatIntelIndicatorLastObservedAts) { this.threatIntelIndicatorLastObservedAts = threatIntelIndicatorLastObservedAts; return this; @@ -2076,6 +1971,7 @@ public Builder threatIntelIndicatorLastObservedAts(@Nullable List threatIntelIndicatorSourceUrls) { this.threatIntelIndicatorSourceUrls = threatIntelIndicatorSourceUrls; return this; @@ -2083,6 +1979,7 @@ public Builder threatIntelIndicatorSourceUrls(@Nullable List threatIntelIndicatorSources) { this.threatIntelIndicatorSources = threatIntelIndicatorSources; return this; @@ -2090,6 +1987,7 @@ public Builder threatIntelIndicatorSources(@Nullable List threatIntelIndicatorTypes) { this.threatIntelIndicatorTypes = threatIntelIndicatorTypes; return this; @@ -2097,6 +1995,7 @@ public Builder threatIntelIndicatorTypes(@Nullable List threatIntelIndicatorValues) { this.threatIntelIndicatorValues = threatIntelIndicatorValues; return this; @@ -2104,6 +2003,7 @@ public Builder threatIntelIndicatorValues(@Nullable List titles) { this.titles = titles; return this; @@ -2111,6 +2011,7 @@ public Builder titles(@Nullable List titles) { public Builder titles(InsightFiltersTitle... titles) { return titles(List.of(titles)); } + @CustomType.Setter public Builder types(@Nullable List types) { this.types = types; return this; @@ -2118,6 +2019,7 @@ public Builder types(@Nullable List types) { public Builder types(InsightFiltersType... types) { return types(List.of(types)); } + @CustomType.Setter public Builder updatedAts(@Nullable List updatedAts) { this.updatedAts = updatedAts; return this; @@ -2125,6 +2027,7 @@ public Builder updatedAts(@Nullable List updatedAts) { public Builder updatedAts(InsightFiltersUpdatedAt... updatedAts) { return updatedAts(List.of(updatedAts)); } + @CustomType.Setter public Builder userDefinedValues(@Nullable List userDefinedValues) { this.userDefinedValues = userDefinedValues; return this; @@ -2132,6 +2035,7 @@ public Builder userDefinedValues(@Nullable List public Builder userDefinedValues(InsightFiltersUserDefinedValue... userDefinedValues) { return userDefinedValues(List.of(userDefinedValues)); } + @CustomType.Setter public Builder verificationStates(@Nullable List verificationStates) { this.verificationStates = verificationStates; return this; @@ -2139,14 +2043,105 @@ public Builder verificationStates(@Nullable List workflowStatuses) { this.workflowStatuses = workflowStatuses; return this; } public Builder workflowStatuses(InsightFiltersWorkflowStatus... workflowStatuses) { return workflowStatuses(List.of(workflowStatuses)); - } public InsightFilters build() { - return new InsightFilters(awsAccountIds, companyNames, complianceStatuses, confidences, createdAts, criticalities, descriptions, findingProviderFieldsConfidences, findingProviderFieldsCriticalities, findingProviderFieldsRelatedFindingsIds, findingProviderFieldsRelatedFindingsProductArns, findingProviderFieldsSeverityLabels, findingProviderFieldsSeverityOriginals, findingProviderFieldsTypes, firstObservedAts, generatorIds, ids, keywords, lastObservedAts, malwareNames, malwarePaths, malwareStates, malwareTypes, networkDestinationDomains, networkDestinationIpv4s, networkDestinationIpv6s, networkDestinationPorts, networkDirections, networkProtocols, networkSourceDomains, networkSourceIpv4s, networkSourceIpv6s, networkSourceMacs, networkSourcePorts, noteTexts, noteUpdatedAts, noteUpdatedBies, processLaunchedAts, processNames, processParentPids, processPaths, processPids, processTerminatedAts, productArns, productFields, productNames, recommendationTexts, recordStates, relatedFindingsIds, relatedFindingsProductArns, resourceAwsEc2InstanceIamInstanceProfileArns, resourceAwsEc2InstanceImageIds, resourceAwsEc2InstanceIpv4Addresses, resourceAwsEc2InstanceIpv6Addresses, resourceAwsEc2InstanceKeyNames, resourceAwsEc2InstanceLaunchedAts, resourceAwsEc2InstanceSubnetIds, resourceAwsEc2InstanceTypes, resourceAwsEc2InstanceVpcIds, resourceAwsIamAccessKeyCreatedAts, resourceAwsIamAccessKeyStatuses, resourceAwsIamAccessKeyUserNames, resourceAwsS3BucketOwnerIds, resourceAwsS3BucketOwnerNames, resourceContainerImageIds, resourceContainerImageNames, resourceContainerLaunchedAts, resourceContainerNames, resourceDetailsOthers, resourceIds, resourcePartitions, resourceRegions, resourceTags, resourceTypes, severityLabels, sourceUrls, threatIntelIndicatorCategories, threatIntelIndicatorLastObservedAts, threatIntelIndicatorSourceUrls, threatIntelIndicatorSources, threatIntelIndicatorTypes, threatIntelIndicatorValues, titles, types, updatedAts, userDefinedValues, verificationStates, workflowStatuses); + } + public InsightFilters build() { + final var o = new InsightFilters(); + o.awsAccountIds = awsAccountIds; + o.companyNames = companyNames; + o.complianceStatuses = complianceStatuses; + o.confidences = confidences; + o.createdAts = createdAts; + o.criticalities = criticalities; + o.descriptions = descriptions; + o.findingProviderFieldsConfidences = findingProviderFieldsConfidences; + o.findingProviderFieldsCriticalities = findingProviderFieldsCriticalities; + o.findingProviderFieldsRelatedFindingsIds = findingProviderFieldsRelatedFindingsIds; + o.findingProviderFieldsRelatedFindingsProductArns = findingProviderFieldsRelatedFindingsProductArns; + o.findingProviderFieldsSeverityLabels = findingProviderFieldsSeverityLabels; + o.findingProviderFieldsSeverityOriginals = findingProviderFieldsSeverityOriginals; + o.findingProviderFieldsTypes = findingProviderFieldsTypes; + o.firstObservedAts = firstObservedAts; + o.generatorIds = generatorIds; + o.ids = ids; + o.keywords = keywords; + o.lastObservedAts = lastObservedAts; + o.malwareNames = malwareNames; + o.malwarePaths = malwarePaths; + o.malwareStates = malwareStates; + o.malwareTypes = malwareTypes; + o.networkDestinationDomains = networkDestinationDomains; + o.networkDestinationIpv4s = networkDestinationIpv4s; + o.networkDestinationIpv6s = networkDestinationIpv6s; + o.networkDestinationPorts = networkDestinationPorts; + o.networkDirections = networkDirections; + o.networkProtocols = networkProtocols; + o.networkSourceDomains = networkSourceDomains; + o.networkSourceIpv4s = networkSourceIpv4s; + o.networkSourceIpv6s = networkSourceIpv6s; + o.networkSourceMacs = networkSourceMacs; + o.networkSourcePorts = networkSourcePorts; + o.noteTexts = noteTexts; + o.noteUpdatedAts = noteUpdatedAts; + o.noteUpdatedBies = noteUpdatedBies; + o.processLaunchedAts = processLaunchedAts; + o.processNames = processNames; + o.processParentPids = processParentPids; + o.processPaths = processPaths; + o.processPids = processPids; + o.processTerminatedAts = processTerminatedAts; + o.productArns = productArns; + o.productFields = productFields; + o.productNames = productNames; + o.recommendationTexts = recommendationTexts; + o.recordStates = recordStates; + o.relatedFindingsIds = relatedFindingsIds; + o.relatedFindingsProductArns = relatedFindingsProductArns; + o.resourceAwsEc2InstanceIamInstanceProfileArns = resourceAwsEc2InstanceIamInstanceProfileArns; + o.resourceAwsEc2InstanceImageIds = resourceAwsEc2InstanceImageIds; + o.resourceAwsEc2InstanceIpv4Addresses = resourceAwsEc2InstanceIpv4Addresses; + o.resourceAwsEc2InstanceIpv6Addresses = resourceAwsEc2InstanceIpv6Addresses; + o.resourceAwsEc2InstanceKeyNames = resourceAwsEc2InstanceKeyNames; + o.resourceAwsEc2InstanceLaunchedAts = resourceAwsEc2InstanceLaunchedAts; + o.resourceAwsEc2InstanceSubnetIds = resourceAwsEc2InstanceSubnetIds; + o.resourceAwsEc2InstanceTypes = resourceAwsEc2InstanceTypes; + o.resourceAwsEc2InstanceVpcIds = resourceAwsEc2InstanceVpcIds; + o.resourceAwsIamAccessKeyCreatedAts = resourceAwsIamAccessKeyCreatedAts; + o.resourceAwsIamAccessKeyStatuses = resourceAwsIamAccessKeyStatuses; + o.resourceAwsIamAccessKeyUserNames = resourceAwsIamAccessKeyUserNames; + o.resourceAwsS3BucketOwnerIds = resourceAwsS3BucketOwnerIds; + o.resourceAwsS3BucketOwnerNames = resourceAwsS3BucketOwnerNames; + o.resourceContainerImageIds = resourceContainerImageIds; + o.resourceContainerImageNames = resourceContainerImageNames; + o.resourceContainerLaunchedAts = resourceContainerLaunchedAts; + o.resourceContainerNames = resourceContainerNames; + o.resourceDetailsOthers = resourceDetailsOthers; + o.resourceIds = resourceIds; + o.resourcePartitions = resourcePartitions; + o.resourceRegions = resourceRegions; + o.resourceTags = resourceTags; + o.resourceTypes = resourceTypes; + o.severityLabels = severityLabels; + o.sourceUrls = sourceUrls; + o.threatIntelIndicatorCategories = threatIntelIndicatorCategories; + o.threatIntelIndicatorLastObservedAts = threatIntelIndicatorLastObservedAts; + o.threatIntelIndicatorSourceUrls = threatIntelIndicatorSourceUrls; + o.threatIntelIndicatorSources = threatIntelIndicatorSources; + o.threatIntelIndicatorTypes = threatIntelIndicatorTypes; + o.threatIntelIndicatorValues = threatIntelIndicatorValues; + o.titles = titles; + o.types = types; + o.updatedAts = updatedAts; + o.userDefinedValues = userDefinedValues; + o.verificationStates = verificationStates; + o.workflowStatuses = workflowStatuses; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersAwsAccountId.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersAwsAccountId.java index 7d782b9e8fc..42f2a6286e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersAwsAccountId.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersAwsAccountId.java @@ -13,21 +13,14 @@ public final class InsightFiltersAwsAccountId { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersAwsAccountId( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersAwsAccountId() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersAwsAccountId defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersAwsAccountId defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersAwsAccountId build() { - return new InsightFiltersAwsAccountId(comparison, value); + } + public InsightFiltersAwsAccountId build() { + final var o = new InsightFiltersAwsAccountId(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCompanyName.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCompanyName.java index 487faeb8996..d6f20ca56fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCompanyName.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCompanyName.java @@ -13,21 +13,14 @@ public final class InsightFiltersCompanyName { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersCompanyName( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersCompanyName() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersCompanyName defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersCompanyName defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersCompanyName build() { - return new InsightFiltersCompanyName(comparison, value); + } + public InsightFiltersCompanyName build() { + final var o = new InsightFiltersCompanyName(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersComplianceStatus.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersComplianceStatus.java index 048acce42ff..5fd4950f16b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersComplianceStatus.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersComplianceStatus.java @@ -13,21 +13,14 @@ public final class InsightFiltersComplianceStatus { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersComplianceStatus( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersComplianceStatus() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersComplianceStatus defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersComplianceStatus defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersComplianceStatus build() { - return new InsightFiltersComplianceStatus(comparison, value); + } + public InsightFiltersComplianceStatus build() { + final var o = new InsightFiltersComplianceStatus(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersConfidence.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersConfidence.java index ee4b1bae6d9..600946339c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersConfidence.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersConfidence.java @@ -15,28 +15,19 @@ public final class InsightFiltersConfidence { * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String eq; + private @Nullable String eq; /** * @return The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String gte; + private @Nullable String gte; /** * @return The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String lte; - - @CustomType.Constructor - private InsightFiltersConfidence( - @CustomType.Parameter("eq") @Nullable String eq, - @CustomType.Parameter("gte") @Nullable String gte, - @CustomType.Parameter("lte") @Nullable String lte) { - this.eq = eq; - this.gte = gte; - this.lte = lte; - } + private @Nullable String lte; + private InsightFiltersConfidence() {} /** * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersConfidence defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String eq; private @Nullable String gte; private @Nullable String lte; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersConfidence defaults) { Objects.requireNonNull(defaults); this.eq = defaults.eq; @@ -83,19 +70,27 @@ public Builder(InsightFiltersConfidence defaults) { this.lte = defaults.lte; } + @CustomType.Setter public Builder eq(@Nullable String eq) { this.eq = eq; return this; } + @CustomType.Setter public Builder gte(@Nullable String gte) { this.gte = gte; return this; } + @CustomType.Setter public Builder lte(@Nullable String lte) { this.lte = lte; return this; - } public InsightFiltersConfidence build() { - return new InsightFiltersConfidence(eq, gte, lte); + } + public InsightFiltersConfidence build() { + final var o = new InsightFiltersConfidence(); + o.eq = eq; + o.gte = gte; + o.lte = lte; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCreatedAt.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCreatedAt.java index 4ad1c404806..8b50bc6aba5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCreatedAt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCreatedAt.java @@ -16,28 +16,19 @@ public final class InsightFiltersCreatedAt { * @return A configuration block of the date range for the date filter. See date_range below for more details. * */ - private final @Nullable InsightFiltersCreatedAtDateRange dateRange; + private @Nullable InsightFiltersCreatedAtDateRange dateRange; /** * @return An end date for the date filter. Required with `start` if `date_range` is not specified. * */ - private final @Nullable String end; + private @Nullable String end; /** * @return A start date for the date filter. Required with `end` if `date_range` is not specified. * */ - private final @Nullable String start; - - @CustomType.Constructor - private InsightFiltersCreatedAt( - @CustomType.Parameter("dateRange") @Nullable InsightFiltersCreatedAtDateRange dateRange, - @CustomType.Parameter("end") @Nullable String end, - @CustomType.Parameter("start") @Nullable String start) { - this.dateRange = dateRange; - this.end = end; - this.start = start; - } + private @Nullable String start; + private InsightFiltersCreatedAt() {} /** * @return A configuration block of the date range for the date filter. See date_range below for more details. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersCreatedAt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable InsightFiltersCreatedAtDateRange dateRange; private @Nullable String end; private @Nullable String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersCreatedAt defaults) { Objects.requireNonNull(defaults); this.dateRange = defaults.dateRange; @@ -84,19 +71,27 @@ public Builder(InsightFiltersCreatedAt defaults) { this.start = defaults.start; } + @CustomType.Setter public Builder dateRange(@Nullable InsightFiltersCreatedAtDateRange dateRange) { this.dateRange = dateRange; return this; } + @CustomType.Setter public Builder end(@Nullable String end) { this.end = end; return this; } + @CustomType.Setter public Builder start(@Nullable String start) { this.start = start; return this; - } public InsightFiltersCreatedAt build() { - return new InsightFiltersCreatedAt(dateRange, end, start); + } + public InsightFiltersCreatedAt build() { + final var o = new InsightFiltersCreatedAt(); + o.dateRange = dateRange; + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCreatedAtDateRange.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCreatedAtDateRange.java index c1efd8825d3..55cebf5e6a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCreatedAtDateRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCreatedAtDateRange.java @@ -14,21 +14,14 @@ public final class InsightFiltersCreatedAtDateRange { * @return A date range unit for the date filter. Valid values: `DAYS`. * */ - private final String unit; + private String unit; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final Integer value; - - @CustomType.Constructor - private InsightFiltersCreatedAtDateRange( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private InsightFiltersCreatedAtDateRange() {} /** * @return A date range unit for the date filter. Valid values: `DAYS`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersCreatedAtDateRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersCreatedAtDateRange defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersCreatedAtDateRange build() { - return new InsightFiltersCreatedAtDateRange(unit, value); + } + public InsightFiltersCreatedAtDateRange build() { + final var o = new InsightFiltersCreatedAtDateRange(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCriticality.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCriticality.java index 11ffd7b10c0..6f0d3e18038 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCriticality.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersCriticality.java @@ -15,28 +15,19 @@ public final class InsightFiltersCriticality { * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String eq; + private @Nullable String eq; /** * @return The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String gte; + private @Nullable String gte; /** * @return The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String lte; - - @CustomType.Constructor - private InsightFiltersCriticality( - @CustomType.Parameter("eq") @Nullable String eq, - @CustomType.Parameter("gte") @Nullable String gte, - @CustomType.Parameter("lte") @Nullable String lte) { - this.eq = eq; - this.gte = gte; - this.lte = lte; - } + private @Nullable String lte; + private InsightFiltersCriticality() {} /** * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersCriticality defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String eq; private @Nullable String gte; private @Nullable String lte; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersCriticality defaults) { Objects.requireNonNull(defaults); this.eq = defaults.eq; @@ -83,19 +70,27 @@ public Builder(InsightFiltersCriticality defaults) { this.lte = defaults.lte; } + @CustomType.Setter public Builder eq(@Nullable String eq) { this.eq = eq; return this; } + @CustomType.Setter public Builder gte(@Nullable String gte) { this.gte = gte; return this; } + @CustomType.Setter public Builder lte(@Nullable String lte) { this.lte = lte; return this; - } public InsightFiltersCriticality build() { - return new InsightFiltersCriticality(eq, gte, lte); + } + public InsightFiltersCriticality build() { + final var o = new InsightFiltersCriticality(); + o.eq = eq; + o.gte = gte; + o.lte = lte; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersDescription.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersDescription.java index caacc5ca038..8246fa6ba5b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersDescription.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersDescription.java @@ -13,21 +13,14 @@ public final class InsightFiltersDescription { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersDescription( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersDescription() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersDescription defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersDescription defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersDescription build() { - return new InsightFiltersDescription(comparison, value); + } + public InsightFiltersDescription build() { + final var o = new InsightFiltersDescription(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsConfidence.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsConfidence.java index a7fb0a8cabc..7c10c58a728 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsConfidence.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsConfidence.java @@ -15,28 +15,19 @@ public final class InsightFiltersFindingProviderFieldsConfidence { * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String eq; + private @Nullable String eq; /** * @return The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String gte; + private @Nullable String gte; /** * @return The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String lte; - - @CustomType.Constructor - private InsightFiltersFindingProviderFieldsConfidence( - @CustomType.Parameter("eq") @Nullable String eq, - @CustomType.Parameter("gte") @Nullable String gte, - @CustomType.Parameter("lte") @Nullable String lte) { - this.eq = eq; - this.gte = gte; - this.lte = lte; - } + private @Nullable String lte; + private InsightFiltersFindingProviderFieldsConfidence() {} /** * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersFindingProviderFieldsConfidence defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String eq; private @Nullable String gte; private @Nullable String lte; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersFindingProviderFieldsConfidence defaults) { Objects.requireNonNull(defaults); this.eq = defaults.eq; @@ -83,19 +70,27 @@ public Builder(InsightFiltersFindingProviderFieldsConfidence defaults) { this.lte = defaults.lte; } + @CustomType.Setter public Builder eq(@Nullable String eq) { this.eq = eq; return this; } + @CustomType.Setter public Builder gte(@Nullable String gte) { this.gte = gte; return this; } + @CustomType.Setter public Builder lte(@Nullable String lte) { this.lte = lte; return this; - } public InsightFiltersFindingProviderFieldsConfidence build() { - return new InsightFiltersFindingProviderFieldsConfidence(eq, gte, lte); + } + public InsightFiltersFindingProviderFieldsConfidence build() { + final var o = new InsightFiltersFindingProviderFieldsConfidence(); + o.eq = eq; + o.gte = gte; + o.lte = lte; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsCriticality.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsCriticality.java index aa2aa7ab111..a1c5302d02d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsCriticality.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsCriticality.java @@ -15,28 +15,19 @@ public final class InsightFiltersFindingProviderFieldsCriticality { * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String eq; + private @Nullable String eq; /** * @return The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String gte; + private @Nullable String gte; /** * @return The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String lte; - - @CustomType.Constructor - private InsightFiltersFindingProviderFieldsCriticality( - @CustomType.Parameter("eq") @Nullable String eq, - @CustomType.Parameter("gte") @Nullable String gte, - @CustomType.Parameter("lte") @Nullable String lte) { - this.eq = eq; - this.gte = gte; - this.lte = lte; - } + private @Nullable String lte; + private InsightFiltersFindingProviderFieldsCriticality() {} /** * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersFindingProviderFieldsCriticality defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String eq; private @Nullable String gte; private @Nullable String lte; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersFindingProviderFieldsCriticality defaults) { Objects.requireNonNull(defaults); this.eq = defaults.eq; @@ -83,19 +70,27 @@ public Builder(InsightFiltersFindingProviderFieldsCriticality defaults) { this.lte = defaults.lte; } + @CustomType.Setter public Builder eq(@Nullable String eq) { this.eq = eq; return this; } + @CustomType.Setter public Builder gte(@Nullable String gte) { this.gte = gte; return this; } + @CustomType.Setter public Builder lte(@Nullable String lte) { this.lte = lte; return this; - } public InsightFiltersFindingProviderFieldsCriticality build() { - return new InsightFiltersFindingProviderFieldsCriticality(eq, gte, lte); + } + public InsightFiltersFindingProviderFieldsCriticality build() { + final var o = new InsightFiltersFindingProviderFieldsCriticality(); + o.eq = eq; + o.gte = gte; + o.lte = lte; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsRelatedFindingsId.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsRelatedFindingsId.java index f87d17bc595..9f2ea28f5ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsRelatedFindingsId.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsRelatedFindingsId.java @@ -13,21 +13,14 @@ public final class InsightFiltersFindingProviderFieldsRelatedFindingsId { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersFindingProviderFieldsRelatedFindingsId( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersFindingProviderFieldsRelatedFindingsId() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersFindingProviderFieldsRelatedFindingsId defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersFindingProviderFieldsRelatedFindingsId defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersFindingProviderFieldsRelatedFindingsId build() { - return new InsightFiltersFindingProviderFieldsRelatedFindingsId(comparison, value); + } + public InsightFiltersFindingProviderFieldsRelatedFindingsId build() { + final var o = new InsightFiltersFindingProviderFieldsRelatedFindingsId(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsRelatedFindingsProductArn.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsRelatedFindingsProductArn.java index 6044828ca39..044f7d96e11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsRelatedFindingsProductArn.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsRelatedFindingsProductArn.java @@ -13,21 +13,14 @@ public final class InsightFiltersFindingProviderFieldsRelatedFindingsProductArn * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersFindingProviderFieldsRelatedFindingsProductArn( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersFindingProviderFieldsRelatedFindingsProductArn() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersFindingProviderFieldsRelatedFindingsProductArn defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersFindingProviderFieldsRelatedFindingsProductArn defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersFindingProviderFieldsRelatedFindingsProductArn build() { - return new InsightFiltersFindingProviderFieldsRelatedFindingsProductArn(comparison, value); + } + public InsightFiltersFindingProviderFieldsRelatedFindingsProductArn build() { + final var o = new InsightFiltersFindingProviderFieldsRelatedFindingsProductArn(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsSeverityLabel.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsSeverityLabel.java index 9fbb5f97b87..0dd2c193c6f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsSeverityLabel.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsSeverityLabel.java @@ -13,21 +13,14 @@ public final class InsightFiltersFindingProviderFieldsSeverityLabel { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersFindingProviderFieldsSeverityLabel( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersFindingProviderFieldsSeverityLabel() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersFindingProviderFieldsSeverityLabel defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersFindingProviderFieldsSeverityLabel defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersFindingProviderFieldsSeverityLabel build() { - return new InsightFiltersFindingProviderFieldsSeverityLabel(comparison, value); + } + public InsightFiltersFindingProviderFieldsSeverityLabel build() { + final var o = new InsightFiltersFindingProviderFieldsSeverityLabel(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsSeverityOriginal.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsSeverityOriginal.java index ecb184544e6..091ad0e5fa9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsSeverityOriginal.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsSeverityOriginal.java @@ -13,21 +13,14 @@ public final class InsightFiltersFindingProviderFieldsSeverityOriginal { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersFindingProviderFieldsSeverityOriginal( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersFindingProviderFieldsSeverityOriginal() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersFindingProviderFieldsSeverityOriginal defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersFindingProviderFieldsSeverityOriginal defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersFindingProviderFieldsSeverityOriginal build() { - return new InsightFiltersFindingProviderFieldsSeverityOriginal(comparison, value); + } + public InsightFiltersFindingProviderFieldsSeverityOriginal build() { + final var o = new InsightFiltersFindingProviderFieldsSeverityOriginal(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsType.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsType.java index dadd3bf03dd..96f0c372ba1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsType.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFindingProviderFieldsType.java @@ -13,21 +13,14 @@ public final class InsightFiltersFindingProviderFieldsType { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersFindingProviderFieldsType( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersFindingProviderFieldsType() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersFindingProviderFieldsType defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersFindingProviderFieldsType defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersFindingProviderFieldsType build() { - return new InsightFiltersFindingProviderFieldsType(comparison, value); + } + public InsightFiltersFindingProviderFieldsType build() { + final var o = new InsightFiltersFindingProviderFieldsType(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFirstObservedAt.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFirstObservedAt.java index 8feebd0682d..cbfd0331538 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFirstObservedAt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFirstObservedAt.java @@ -16,28 +16,19 @@ public final class InsightFiltersFirstObservedAt { * @return A configuration block of the date range for the date filter. See date_range below for more details. * */ - private final @Nullable InsightFiltersFirstObservedAtDateRange dateRange; + private @Nullable InsightFiltersFirstObservedAtDateRange dateRange; /** * @return An end date for the date filter. Required with `start` if `date_range` is not specified. * */ - private final @Nullable String end; + private @Nullable String end; /** * @return A start date for the date filter. Required with `end` if `date_range` is not specified. * */ - private final @Nullable String start; - - @CustomType.Constructor - private InsightFiltersFirstObservedAt( - @CustomType.Parameter("dateRange") @Nullable InsightFiltersFirstObservedAtDateRange dateRange, - @CustomType.Parameter("end") @Nullable String end, - @CustomType.Parameter("start") @Nullable String start) { - this.dateRange = dateRange; - this.end = end; - this.start = start; - } + private @Nullable String start; + private InsightFiltersFirstObservedAt() {} /** * @return A configuration block of the date range for the date filter. See date_range below for more details. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersFirstObservedAt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable InsightFiltersFirstObservedAtDateRange dateRange; private @Nullable String end; private @Nullable String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersFirstObservedAt defaults) { Objects.requireNonNull(defaults); this.dateRange = defaults.dateRange; @@ -84,19 +71,27 @@ public Builder(InsightFiltersFirstObservedAt defaults) { this.start = defaults.start; } + @CustomType.Setter public Builder dateRange(@Nullable InsightFiltersFirstObservedAtDateRange dateRange) { this.dateRange = dateRange; return this; } + @CustomType.Setter public Builder end(@Nullable String end) { this.end = end; return this; } + @CustomType.Setter public Builder start(@Nullable String start) { this.start = start; return this; - } public InsightFiltersFirstObservedAt build() { - return new InsightFiltersFirstObservedAt(dateRange, end, start); + } + public InsightFiltersFirstObservedAt build() { + final var o = new InsightFiltersFirstObservedAt(); + o.dateRange = dateRange; + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFirstObservedAtDateRange.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFirstObservedAtDateRange.java index c8f179bdc89..2447fa9ce89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFirstObservedAtDateRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersFirstObservedAtDateRange.java @@ -14,21 +14,14 @@ public final class InsightFiltersFirstObservedAtDateRange { * @return A date range unit for the date filter. Valid values: `DAYS`. * */ - private final String unit; + private String unit; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final Integer value; - - @CustomType.Constructor - private InsightFiltersFirstObservedAtDateRange( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private InsightFiltersFirstObservedAtDateRange() {} /** * @return A date range unit for the date filter. Valid values: `DAYS`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersFirstObservedAtDateRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersFirstObservedAtDateRange defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersFirstObservedAtDateRange build() { - return new InsightFiltersFirstObservedAtDateRange(unit, value); + } + public InsightFiltersFirstObservedAtDateRange build() { + final var o = new InsightFiltersFirstObservedAtDateRange(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersGeneratorId.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersGeneratorId.java index e33ec706105..f536b4eced5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersGeneratorId.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersGeneratorId.java @@ -13,21 +13,14 @@ public final class InsightFiltersGeneratorId { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersGeneratorId( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersGeneratorId() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersGeneratorId defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersGeneratorId defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersGeneratorId build() { - return new InsightFiltersGeneratorId(comparison, value); + } + public InsightFiltersGeneratorId build() { + final var o = new InsightFiltersGeneratorId(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersId.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersId.java index 2f8801e9278..4d844fe98ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersId.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersId.java @@ -13,21 +13,14 @@ public final class InsightFiltersId { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersId( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersId() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersId defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersId defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersId build() { - return new InsightFiltersId(comparison, value); + } + public InsightFiltersId build() { + final var o = new InsightFiltersId(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersKeyword.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersKeyword.java index cd9e66f36b9..97923593b66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersKeyword.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersKeyword.java @@ -13,13 +13,9 @@ public final class InsightFiltersKeyword { * @return A value for the keyword. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersKeyword(@CustomType.Parameter("value") String value) { - this.value = value; - } + private String value; + private InsightFiltersKeyword() {} /** * @return A value for the keyword. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(InsightFiltersKeyword defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersKeyword defaults) { Objects.requireNonNull(defaults); this.value = defaults.value; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersKeyword build() { - return new InsightFiltersKeyword(value); + } + public InsightFiltersKeyword build() { + final var o = new InsightFiltersKeyword(); + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersLastObservedAt.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersLastObservedAt.java index d41a09b9f35..4eab704e464 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersLastObservedAt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersLastObservedAt.java @@ -16,28 +16,19 @@ public final class InsightFiltersLastObservedAt { * @return A configuration block of the date range for the date filter. See date_range below for more details. * */ - private final @Nullable InsightFiltersLastObservedAtDateRange dateRange; + private @Nullable InsightFiltersLastObservedAtDateRange dateRange; /** * @return An end date for the date filter. Required with `start` if `date_range` is not specified. * */ - private final @Nullable String end; + private @Nullable String end; /** * @return A start date for the date filter. Required with `end` if `date_range` is not specified. * */ - private final @Nullable String start; - - @CustomType.Constructor - private InsightFiltersLastObservedAt( - @CustomType.Parameter("dateRange") @Nullable InsightFiltersLastObservedAtDateRange dateRange, - @CustomType.Parameter("end") @Nullable String end, - @CustomType.Parameter("start") @Nullable String start) { - this.dateRange = dateRange; - this.end = end; - this.start = start; - } + private @Nullable String start; + private InsightFiltersLastObservedAt() {} /** * @return A configuration block of the date range for the date filter. See date_range below for more details. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersLastObservedAt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable InsightFiltersLastObservedAtDateRange dateRange; private @Nullable String end; private @Nullable String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersLastObservedAt defaults) { Objects.requireNonNull(defaults); this.dateRange = defaults.dateRange; @@ -84,19 +71,27 @@ public Builder(InsightFiltersLastObservedAt defaults) { this.start = defaults.start; } + @CustomType.Setter public Builder dateRange(@Nullable InsightFiltersLastObservedAtDateRange dateRange) { this.dateRange = dateRange; return this; } + @CustomType.Setter public Builder end(@Nullable String end) { this.end = end; return this; } + @CustomType.Setter public Builder start(@Nullable String start) { this.start = start; return this; - } public InsightFiltersLastObservedAt build() { - return new InsightFiltersLastObservedAt(dateRange, end, start); + } + public InsightFiltersLastObservedAt build() { + final var o = new InsightFiltersLastObservedAt(); + o.dateRange = dateRange; + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersLastObservedAtDateRange.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersLastObservedAtDateRange.java index 53fdb27dda1..3211e7ba1c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersLastObservedAtDateRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersLastObservedAtDateRange.java @@ -14,21 +14,14 @@ public final class InsightFiltersLastObservedAtDateRange { * @return A date range unit for the date filter. Valid values: `DAYS`. * */ - private final String unit; + private String unit; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final Integer value; - - @CustomType.Constructor - private InsightFiltersLastObservedAtDateRange( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private InsightFiltersLastObservedAtDateRange() {} /** * @return A date range unit for the date filter. Valid values: `DAYS`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersLastObservedAtDateRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersLastObservedAtDateRange defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersLastObservedAtDateRange build() { - return new InsightFiltersLastObservedAtDateRange(unit, value); + } + public InsightFiltersLastObservedAtDateRange build() { + final var o = new InsightFiltersLastObservedAtDateRange(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwareName.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwareName.java index c9dd3427e9e..dc07bf206c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwareName.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwareName.java @@ -13,21 +13,14 @@ public final class InsightFiltersMalwareName { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersMalwareName( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersMalwareName() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersMalwareName defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersMalwareName defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersMalwareName build() { - return new InsightFiltersMalwareName(comparison, value); + } + public InsightFiltersMalwareName build() { + final var o = new InsightFiltersMalwareName(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwarePath.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwarePath.java index 0398152d366..d3c9b0b24b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwarePath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwarePath.java @@ -13,21 +13,14 @@ public final class InsightFiltersMalwarePath { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersMalwarePath( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersMalwarePath() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersMalwarePath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersMalwarePath defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersMalwarePath build() { - return new InsightFiltersMalwarePath(comparison, value); + } + public InsightFiltersMalwarePath build() { + final var o = new InsightFiltersMalwarePath(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwareState.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwareState.java index 5b3b7b531e3..4764c2c1526 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwareState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwareState.java @@ -13,21 +13,14 @@ public final class InsightFiltersMalwareState { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersMalwareState( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersMalwareState() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersMalwareState defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersMalwareState defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersMalwareState build() { - return new InsightFiltersMalwareState(comparison, value); + } + public InsightFiltersMalwareState build() { + final var o = new InsightFiltersMalwareState(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwareType.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwareType.java index fe19a684531..4e67158db8b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwareType.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersMalwareType.java @@ -13,21 +13,14 @@ public final class InsightFiltersMalwareType { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersMalwareType( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersMalwareType() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersMalwareType defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersMalwareType defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersMalwareType build() { - return new InsightFiltersMalwareType(comparison, value); + } + public InsightFiltersMalwareType build() { + final var o = new InsightFiltersMalwareType(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationDomain.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationDomain.java index 8b33e8064cb..d4c3c684e09 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationDomain.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationDomain.java @@ -13,21 +13,14 @@ public final class InsightFiltersNetworkDestinationDomain { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersNetworkDestinationDomain( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersNetworkDestinationDomain() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersNetworkDestinationDomain defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNetworkDestinationDomain defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersNetworkDestinationDomain build() { - return new InsightFiltersNetworkDestinationDomain(comparison, value); + } + public InsightFiltersNetworkDestinationDomain build() { + final var o = new InsightFiltersNetworkDestinationDomain(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationIpv4.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationIpv4.java index bd27f0c8226..cddd99f8b61 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationIpv4.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationIpv4.java @@ -13,13 +13,9 @@ public final class InsightFiltersNetworkDestinationIpv4 { * @return A finding's CIDR value. * */ - private final String cidr; - - @CustomType.Constructor - private InsightFiltersNetworkDestinationIpv4(@CustomType.Parameter("cidr") String cidr) { - this.cidr = cidr; - } + private String cidr; + private InsightFiltersNetworkDestinationIpv4() {} /** * @return A finding's CIDR value. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(InsightFiltersNetworkDestinationIpv4 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cidr; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNetworkDestinationIpv4 defaults) { Objects.requireNonNull(defaults); this.cidr = defaults.cidr; } + @CustomType.Setter public Builder cidr(String cidr) { this.cidr = Objects.requireNonNull(cidr); return this; - } public InsightFiltersNetworkDestinationIpv4 build() { - return new InsightFiltersNetworkDestinationIpv4(cidr); + } + public InsightFiltersNetworkDestinationIpv4 build() { + final var o = new InsightFiltersNetworkDestinationIpv4(); + o.cidr = cidr; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationIpv6.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationIpv6.java index 0bcbc78c2c5..cc11a9e8cdc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationIpv6.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationIpv6.java @@ -13,13 +13,9 @@ public final class InsightFiltersNetworkDestinationIpv6 { * @return A finding's CIDR value. * */ - private final String cidr; - - @CustomType.Constructor - private InsightFiltersNetworkDestinationIpv6(@CustomType.Parameter("cidr") String cidr) { - this.cidr = cidr; - } + private String cidr; + private InsightFiltersNetworkDestinationIpv6() {} /** * @return A finding's CIDR value. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(InsightFiltersNetworkDestinationIpv6 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cidr; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNetworkDestinationIpv6 defaults) { Objects.requireNonNull(defaults); this.cidr = defaults.cidr; } + @CustomType.Setter public Builder cidr(String cidr) { this.cidr = Objects.requireNonNull(cidr); return this; - } public InsightFiltersNetworkDestinationIpv6 build() { - return new InsightFiltersNetworkDestinationIpv6(cidr); + } + public InsightFiltersNetworkDestinationIpv6 build() { + final var o = new InsightFiltersNetworkDestinationIpv6(); + o.cidr = cidr; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationPort.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationPort.java index 36da865c983..391cd691f07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationPort.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDestinationPort.java @@ -15,28 +15,19 @@ public final class InsightFiltersNetworkDestinationPort { * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String eq; + private @Nullable String eq; /** * @return The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String gte; + private @Nullable String gte; /** * @return The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String lte; - - @CustomType.Constructor - private InsightFiltersNetworkDestinationPort( - @CustomType.Parameter("eq") @Nullable String eq, - @CustomType.Parameter("gte") @Nullable String gte, - @CustomType.Parameter("lte") @Nullable String lte) { - this.eq = eq; - this.gte = gte; - this.lte = lte; - } + private @Nullable String lte; + private InsightFiltersNetworkDestinationPort() {} /** * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersNetworkDestinationPort defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String eq; private @Nullable String gte; private @Nullable String lte; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNetworkDestinationPort defaults) { Objects.requireNonNull(defaults); this.eq = defaults.eq; @@ -83,19 +70,27 @@ public Builder(InsightFiltersNetworkDestinationPort defaults) { this.lte = defaults.lte; } + @CustomType.Setter public Builder eq(@Nullable String eq) { this.eq = eq; return this; } + @CustomType.Setter public Builder gte(@Nullable String gte) { this.gte = gte; return this; } + @CustomType.Setter public Builder lte(@Nullable String lte) { this.lte = lte; return this; - } public InsightFiltersNetworkDestinationPort build() { - return new InsightFiltersNetworkDestinationPort(eq, gte, lte); + } + public InsightFiltersNetworkDestinationPort build() { + final var o = new InsightFiltersNetworkDestinationPort(); + o.eq = eq; + o.gte = gte; + o.lte = lte; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDirection.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDirection.java index bae63dcb098..27deeb62c21 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDirection.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkDirection.java @@ -13,21 +13,14 @@ public final class InsightFiltersNetworkDirection { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersNetworkDirection( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersNetworkDirection() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersNetworkDirection defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNetworkDirection defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersNetworkDirection build() { - return new InsightFiltersNetworkDirection(comparison, value); + } + public InsightFiltersNetworkDirection build() { + final var o = new InsightFiltersNetworkDirection(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkProtocol.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkProtocol.java index df36af77b49..1f09fdd598b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkProtocol.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkProtocol.java @@ -13,21 +13,14 @@ public final class InsightFiltersNetworkProtocol { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersNetworkProtocol( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersNetworkProtocol() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersNetworkProtocol defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNetworkProtocol defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersNetworkProtocol build() { - return new InsightFiltersNetworkProtocol(comparison, value); + } + public InsightFiltersNetworkProtocol build() { + final var o = new InsightFiltersNetworkProtocol(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceDomain.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceDomain.java index 7bce175fb96..41b3b66c8e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceDomain.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceDomain.java @@ -13,21 +13,14 @@ public final class InsightFiltersNetworkSourceDomain { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersNetworkSourceDomain( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersNetworkSourceDomain() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersNetworkSourceDomain defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNetworkSourceDomain defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersNetworkSourceDomain build() { - return new InsightFiltersNetworkSourceDomain(comparison, value); + } + public InsightFiltersNetworkSourceDomain build() { + final var o = new InsightFiltersNetworkSourceDomain(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceIpv4.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceIpv4.java index 51abb844060..75aa803b6ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceIpv4.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceIpv4.java @@ -13,13 +13,9 @@ public final class InsightFiltersNetworkSourceIpv4 { * @return A finding's CIDR value. * */ - private final String cidr; - - @CustomType.Constructor - private InsightFiltersNetworkSourceIpv4(@CustomType.Parameter("cidr") String cidr) { - this.cidr = cidr; - } + private String cidr; + private InsightFiltersNetworkSourceIpv4() {} /** * @return A finding's CIDR value. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(InsightFiltersNetworkSourceIpv4 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cidr; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNetworkSourceIpv4 defaults) { Objects.requireNonNull(defaults); this.cidr = defaults.cidr; } + @CustomType.Setter public Builder cidr(String cidr) { this.cidr = Objects.requireNonNull(cidr); return this; - } public InsightFiltersNetworkSourceIpv4 build() { - return new InsightFiltersNetworkSourceIpv4(cidr); + } + public InsightFiltersNetworkSourceIpv4 build() { + final var o = new InsightFiltersNetworkSourceIpv4(); + o.cidr = cidr; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceIpv6.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceIpv6.java index 42ed09978ac..a466d440cb8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceIpv6.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceIpv6.java @@ -13,13 +13,9 @@ public final class InsightFiltersNetworkSourceIpv6 { * @return A finding's CIDR value. * */ - private final String cidr; - - @CustomType.Constructor - private InsightFiltersNetworkSourceIpv6(@CustomType.Parameter("cidr") String cidr) { - this.cidr = cidr; - } + private String cidr; + private InsightFiltersNetworkSourceIpv6() {} /** * @return A finding's CIDR value. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(InsightFiltersNetworkSourceIpv6 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cidr; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNetworkSourceIpv6 defaults) { Objects.requireNonNull(defaults); this.cidr = defaults.cidr; } + @CustomType.Setter public Builder cidr(String cidr) { this.cidr = Objects.requireNonNull(cidr); return this; - } public InsightFiltersNetworkSourceIpv6 build() { - return new InsightFiltersNetworkSourceIpv6(cidr); + } + public InsightFiltersNetworkSourceIpv6 build() { + final var o = new InsightFiltersNetworkSourceIpv6(); + o.cidr = cidr; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceMac.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceMac.java index a91c186d8bf..1a1d531d398 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceMac.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourceMac.java @@ -13,21 +13,14 @@ public final class InsightFiltersNetworkSourceMac { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersNetworkSourceMac( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersNetworkSourceMac() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersNetworkSourceMac defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNetworkSourceMac defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersNetworkSourceMac build() { - return new InsightFiltersNetworkSourceMac(comparison, value); + } + public InsightFiltersNetworkSourceMac build() { + final var o = new InsightFiltersNetworkSourceMac(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourcePort.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourcePort.java index d9e4963b98d..7d4f65a0fbb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourcePort.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNetworkSourcePort.java @@ -15,28 +15,19 @@ public final class InsightFiltersNetworkSourcePort { * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String eq; + private @Nullable String eq; /** * @return The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String gte; + private @Nullable String gte; /** * @return The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String lte; - - @CustomType.Constructor - private InsightFiltersNetworkSourcePort( - @CustomType.Parameter("eq") @Nullable String eq, - @CustomType.Parameter("gte") @Nullable String gte, - @CustomType.Parameter("lte") @Nullable String lte) { - this.eq = eq; - this.gte = gte; - this.lte = lte; - } + private @Nullable String lte; + private InsightFiltersNetworkSourcePort() {} /** * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersNetworkSourcePort defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String eq; private @Nullable String gte; private @Nullable String lte; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNetworkSourcePort defaults) { Objects.requireNonNull(defaults); this.eq = defaults.eq; @@ -83,19 +70,27 @@ public Builder(InsightFiltersNetworkSourcePort defaults) { this.lte = defaults.lte; } + @CustomType.Setter public Builder eq(@Nullable String eq) { this.eq = eq; return this; } + @CustomType.Setter public Builder gte(@Nullable String gte) { this.gte = gte; return this; } + @CustomType.Setter public Builder lte(@Nullable String lte) { this.lte = lte; return this; - } public InsightFiltersNetworkSourcePort build() { - return new InsightFiltersNetworkSourcePort(eq, gte, lte); + } + public InsightFiltersNetworkSourcePort build() { + final var o = new InsightFiltersNetworkSourcePort(); + o.eq = eq; + o.gte = gte; + o.lte = lte; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteText.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteText.java index e53e38a7b3c..8d61971120b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteText.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteText.java @@ -13,21 +13,14 @@ public final class InsightFiltersNoteText { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersNoteText( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersNoteText() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersNoteText defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNoteText defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersNoteText build() { - return new InsightFiltersNoteText(comparison, value); + } + public InsightFiltersNoteText build() { + final var o = new InsightFiltersNoteText(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteUpdatedAt.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteUpdatedAt.java index 252d4685700..ef26dd13b77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteUpdatedAt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteUpdatedAt.java @@ -16,28 +16,19 @@ public final class InsightFiltersNoteUpdatedAt { * @return A configuration block of the date range for the date filter. See date_range below for more details. * */ - private final @Nullable InsightFiltersNoteUpdatedAtDateRange dateRange; + private @Nullable InsightFiltersNoteUpdatedAtDateRange dateRange; /** * @return An end date for the date filter. Required with `start` if `date_range` is not specified. * */ - private final @Nullable String end; + private @Nullable String end; /** * @return A start date for the date filter. Required with `end` if `date_range` is not specified. * */ - private final @Nullable String start; - - @CustomType.Constructor - private InsightFiltersNoteUpdatedAt( - @CustomType.Parameter("dateRange") @Nullable InsightFiltersNoteUpdatedAtDateRange dateRange, - @CustomType.Parameter("end") @Nullable String end, - @CustomType.Parameter("start") @Nullable String start) { - this.dateRange = dateRange; - this.end = end; - this.start = start; - } + private @Nullable String start; + private InsightFiltersNoteUpdatedAt() {} /** * @return A configuration block of the date range for the date filter. See date_range below for more details. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersNoteUpdatedAt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable InsightFiltersNoteUpdatedAtDateRange dateRange; private @Nullable String end; private @Nullable String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNoteUpdatedAt defaults) { Objects.requireNonNull(defaults); this.dateRange = defaults.dateRange; @@ -84,19 +71,27 @@ public Builder(InsightFiltersNoteUpdatedAt defaults) { this.start = defaults.start; } + @CustomType.Setter public Builder dateRange(@Nullable InsightFiltersNoteUpdatedAtDateRange dateRange) { this.dateRange = dateRange; return this; } + @CustomType.Setter public Builder end(@Nullable String end) { this.end = end; return this; } + @CustomType.Setter public Builder start(@Nullable String start) { this.start = start; return this; - } public InsightFiltersNoteUpdatedAt build() { - return new InsightFiltersNoteUpdatedAt(dateRange, end, start); + } + public InsightFiltersNoteUpdatedAt build() { + final var o = new InsightFiltersNoteUpdatedAt(); + o.dateRange = dateRange; + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteUpdatedAtDateRange.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteUpdatedAtDateRange.java index bf2ee8370c9..8f19f9377a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteUpdatedAtDateRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteUpdatedAtDateRange.java @@ -14,21 +14,14 @@ public final class InsightFiltersNoteUpdatedAtDateRange { * @return A date range unit for the date filter. Valid values: `DAYS`. * */ - private final String unit; + private String unit; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final Integer value; - - @CustomType.Constructor - private InsightFiltersNoteUpdatedAtDateRange( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private InsightFiltersNoteUpdatedAtDateRange() {} /** * @return A date range unit for the date filter. Valid values: `DAYS`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersNoteUpdatedAtDateRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNoteUpdatedAtDateRange defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersNoteUpdatedAtDateRange build() { - return new InsightFiltersNoteUpdatedAtDateRange(unit, value); + } + public InsightFiltersNoteUpdatedAtDateRange build() { + final var o = new InsightFiltersNoteUpdatedAtDateRange(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteUpdatedBy.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteUpdatedBy.java index 58658a5ad25..68f16ac57e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteUpdatedBy.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersNoteUpdatedBy.java @@ -13,21 +13,14 @@ public final class InsightFiltersNoteUpdatedBy { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersNoteUpdatedBy( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersNoteUpdatedBy() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersNoteUpdatedBy defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersNoteUpdatedBy defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersNoteUpdatedBy build() { - return new InsightFiltersNoteUpdatedBy(comparison, value); + } + public InsightFiltersNoteUpdatedBy build() { + final var o = new InsightFiltersNoteUpdatedBy(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessLaunchedAt.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessLaunchedAt.java index b89a8895e2d..159cfc44cf2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessLaunchedAt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessLaunchedAt.java @@ -16,28 +16,19 @@ public final class InsightFiltersProcessLaunchedAt { * @return A configuration block of the date range for the date filter. See date_range below for more details. * */ - private final @Nullable InsightFiltersProcessLaunchedAtDateRange dateRange; + private @Nullable InsightFiltersProcessLaunchedAtDateRange dateRange; /** * @return An end date for the date filter. Required with `start` if `date_range` is not specified. * */ - private final @Nullable String end; + private @Nullable String end; /** * @return A start date for the date filter. Required with `end` if `date_range` is not specified. * */ - private final @Nullable String start; - - @CustomType.Constructor - private InsightFiltersProcessLaunchedAt( - @CustomType.Parameter("dateRange") @Nullable InsightFiltersProcessLaunchedAtDateRange dateRange, - @CustomType.Parameter("end") @Nullable String end, - @CustomType.Parameter("start") @Nullable String start) { - this.dateRange = dateRange; - this.end = end; - this.start = start; - } + private @Nullable String start; + private InsightFiltersProcessLaunchedAt() {} /** * @return A configuration block of the date range for the date filter. See date_range below for more details. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersProcessLaunchedAt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable InsightFiltersProcessLaunchedAtDateRange dateRange; private @Nullable String end; private @Nullable String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersProcessLaunchedAt defaults) { Objects.requireNonNull(defaults); this.dateRange = defaults.dateRange; @@ -84,19 +71,27 @@ public Builder(InsightFiltersProcessLaunchedAt defaults) { this.start = defaults.start; } + @CustomType.Setter public Builder dateRange(@Nullable InsightFiltersProcessLaunchedAtDateRange dateRange) { this.dateRange = dateRange; return this; } + @CustomType.Setter public Builder end(@Nullable String end) { this.end = end; return this; } + @CustomType.Setter public Builder start(@Nullable String start) { this.start = start; return this; - } public InsightFiltersProcessLaunchedAt build() { - return new InsightFiltersProcessLaunchedAt(dateRange, end, start); + } + public InsightFiltersProcessLaunchedAt build() { + final var o = new InsightFiltersProcessLaunchedAt(); + o.dateRange = dateRange; + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessLaunchedAtDateRange.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessLaunchedAtDateRange.java index 9fc495a7687..e7707060b91 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessLaunchedAtDateRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessLaunchedAtDateRange.java @@ -14,21 +14,14 @@ public final class InsightFiltersProcessLaunchedAtDateRange { * @return A date range unit for the date filter. Valid values: `DAYS`. * */ - private final String unit; + private String unit; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final Integer value; - - @CustomType.Constructor - private InsightFiltersProcessLaunchedAtDateRange( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private InsightFiltersProcessLaunchedAtDateRange() {} /** * @return A date range unit for the date filter. Valid values: `DAYS`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersProcessLaunchedAtDateRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersProcessLaunchedAtDateRange defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersProcessLaunchedAtDateRange build() { - return new InsightFiltersProcessLaunchedAtDateRange(unit, value); + } + public InsightFiltersProcessLaunchedAtDateRange build() { + final var o = new InsightFiltersProcessLaunchedAtDateRange(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessName.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessName.java index 391a5454602..cfdfbdf83cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessName.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessName.java @@ -13,21 +13,14 @@ public final class InsightFiltersProcessName { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersProcessName( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersProcessName() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersProcessName defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersProcessName defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersProcessName build() { - return new InsightFiltersProcessName(comparison, value); + } + public InsightFiltersProcessName build() { + final var o = new InsightFiltersProcessName(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessParentPid.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessParentPid.java index 2821c1dc15d..e45a5deb763 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessParentPid.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessParentPid.java @@ -15,28 +15,19 @@ public final class InsightFiltersProcessParentPid { * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String eq; + private @Nullable String eq; /** * @return The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String gte; + private @Nullable String gte; /** * @return The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String lte; - - @CustomType.Constructor - private InsightFiltersProcessParentPid( - @CustomType.Parameter("eq") @Nullable String eq, - @CustomType.Parameter("gte") @Nullable String gte, - @CustomType.Parameter("lte") @Nullable String lte) { - this.eq = eq; - this.gte = gte; - this.lte = lte; - } + private @Nullable String lte; + private InsightFiltersProcessParentPid() {} /** * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersProcessParentPid defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String eq; private @Nullable String gte; private @Nullable String lte; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersProcessParentPid defaults) { Objects.requireNonNull(defaults); this.eq = defaults.eq; @@ -83,19 +70,27 @@ public Builder(InsightFiltersProcessParentPid defaults) { this.lte = defaults.lte; } + @CustomType.Setter public Builder eq(@Nullable String eq) { this.eq = eq; return this; } + @CustomType.Setter public Builder gte(@Nullable String gte) { this.gte = gte; return this; } + @CustomType.Setter public Builder lte(@Nullable String lte) { this.lte = lte; return this; - } public InsightFiltersProcessParentPid build() { - return new InsightFiltersProcessParentPid(eq, gte, lte); + } + public InsightFiltersProcessParentPid build() { + final var o = new InsightFiltersProcessParentPid(); + o.eq = eq; + o.gte = gte; + o.lte = lte; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessPath.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessPath.java index c0d5b752284..79f23927be1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessPath.java @@ -13,21 +13,14 @@ public final class InsightFiltersProcessPath { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersProcessPath( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersProcessPath() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersProcessPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersProcessPath defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersProcessPath build() { - return new InsightFiltersProcessPath(comparison, value); + } + public InsightFiltersProcessPath build() { + final var o = new InsightFiltersProcessPath(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessPid.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessPid.java index 72ab8978c00..93520093a75 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessPid.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessPid.java @@ -15,28 +15,19 @@ public final class InsightFiltersProcessPid { * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String eq; + private @Nullable String eq; /** * @return The greater-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String gte; + private @Nullable String gte; /** * @return The less-than-equal condition to be applied to a single field when querying for findings, provided as a String. * */ - private final @Nullable String lte; - - @CustomType.Constructor - private InsightFiltersProcessPid( - @CustomType.Parameter("eq") @Nullable String eq, - @CustomType.Parameter("gte") @Nullable String gte, - @CustomType.Parameter("lte") @Nullable String lte) { - this.eq = eq; - this.gte = gte; - this.lte = lte; - } + private @Nullable String lte; + private InsightFiltersProcessPid() {} /** * @return The equal-to condition to be applied to a single field when querying for findings, provided as a String. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersProcessPid defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String eq; private @Nullable String gte; private @Nullable String lte; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersProcessPid defaults) { Objects.requireNonNull(defaults); this.eq = defaults.eq; @@ -83,19 +70,27 @@ public Builder(InsightFiltersProcessPid defaults) { this.lte = defaults.lte; } + @CustomType.Setter public Builder eq(@Nullable String eq) { this.eq = eq; return this; } + @CustomType.Setter public Builder gte(@Nullable String gte) { this.gte = gte; return this; } + @CustomType.Setter public Builder lte(@Nullable String lte) { this.lte = lte; return this; - } public InsightFiltersProcessPid build() { - return new InsightFiltersProcessPid(eq, gte, lte); + } + public InsightFiltersProcessPid build() { + final var o = new InsightFiltersProcessPid(); + o.eq = eq; + o.gte = gte; + o.lte = lte; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessTerminatedAt.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessTerminatedAt.java index f3e8db626aa..afc1852d10b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessTerminatedAt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessTerminatedAt.java @@ -16,28 +16,19 @@ public final class InsightFiltersProcessTerminatedAt { * @return A configuration block of the date range for the date filter. See date_range below for more details. * */ - private final @Nullable InsightFiltersProcessTerminatedAtDateRange dateRange; + private @Nullable InsightFiltersProcessTerminatedAtDateRange dateRange; /** * @return An end date for the date filter. Required with `start` if `date_range` is not specified. * */ - private final @Nullable String end; + private @Nullable String end; /** * @return A start date for the date filter. Required with `end` if `date_range` is not specified. * */ - private final @Nullable String start; - - @CustomType.Constructor - private InsightFiltersProcessTerminatedAt( - @CustomType.Parameter("dateRange") @Nullable InsightFiltersProcessTerminatedAtDateRange dateRange, - @CustomType.Parameter("end") @Nullable String end, - @CustomType.Parameter("start") @Nullable String start) { - this.dateRange = dateRange; - this.end = end; - this.start = start; - } + private @Nullable String start; + private InsightFiltersProcessTerminatedAt() {} /** * @return A configuration block of the date range for the date filter. See date_range below for more details. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersProcessTerminatedAt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable InsightFiltersProcessTerminatedAtDateRange dateRange; private @Nullable String end; private @Nullable String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersProcessTerminatedAt defaults) { Objects.requireNonNull(defaults); this.dateRange = defaults.dateRange; @@ -84,19 +71,27 @@ public Builder(InsightFiltersProcessTerminatedAt defaults) { this.start = defaults.start; } + @CustomType.Setter public Builder dateRange(@Nullable InsightFiltersProcessTerminatedAtDateRange dateRange) { this.dateRange = dateRange; return this; } + @CustomType.Setter public Builder end(@Nullable String end) { this.end = end; return this; } + @CustomType.Setter public Builder start(@Nullable String start) { this.start = start; return this; - } public InsightFiltersProcessTerminatedAt build() { - return new InsightFiltersProcessTerminatedAt(dateRange, end, start); + } + public InsightFiltersProcessTerminatedAt build() { + final var o = new InsightFiltersProcessTerminatedAt(); + o.dateRange = dateRange; + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessTerminatedAtDateRange.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessTerminatedAtDateRange.java index a5c9a309d00..cc1c9e925f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessTerminatedAtDateRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProcessTerminatedAtDateRange.java @@ -14,21 +14,14 @@ public final class InsightFiltersProcessTerminatedAtDateRange { * @return A date range unit for the date filter. Valid values: `DAYS`. * */ - private final String unit; + private String unit; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final Integer value; - - @CustomType.Constructor - private InsightFiltersProcessTerminatedAtDateRange( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private InsightFiltersProcessTerminatedAtDateRange() {} /** * @return A date range unit for the date filter. Valid values: `DAYS`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersProcessTerminatedAtDateRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersProcessTerminatedAtDateRange defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersProcessTerminatedAtDateRange build() { - return new InsightFiltersProcessTerminatedAtDateRange(unit, value); + } + public InsightFiltersProcessTerminatedAtDateRange build() { + final var o = new InsightFiltersProcessTerminatedAtDateRange(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProductArn.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProductArn.java index c3bc6ee6a4a..1118041ace0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProductArn.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProductArn.java @@ -13,21 +13,14 @@ public final class InsightFiltersProductArn { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersProductArn( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersProductArn() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersProductArn defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersProductArn defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersProductArn build() { - return new InsightFiltersProductArn(comparison, value); + } + public InsightFiltersProductArn build() { + final var o = new InsightFiltersProductArn(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProductField.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProductField.java index 9290b5812b0..02c7294d5ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProductField.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProductField.java @@ -13,28 +13,19 @@ public final class InsightFiltersProductField { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return The key of the map filter. For example, for `ResourceTags`, `Key` identifies the name of the tag. For `UserDefinedFields`, `Key` is the name of the field. * */ - private final String key; + private String key; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersProductField( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.key = key; - this.value = value; - } + private String value; + private InsightFiltersProductField() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersProductField defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersProductField defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; @@ -81,19 +68,27 @@ public Builder(InsightFiltersProductField defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersProductField build() { - return new InsightFiltersProductField(comparison, key, value); + } + public InsightFiltersProductField build() { + final var o = new InsightFiltersProductField(); + o.comparison = comparison; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProductName.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProductName.java index 6657d2202c4..2970adff8d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProductName.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersProductName.java @@ -13,21 +13,14 @@ public final class InsightFiltersProductName { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersProductName( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersProductName() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersProductName defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersProductName defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersProductName build() { - return new InsightFiltersProductName(comparison, value); + } + public InsightFiltersProductName build() { + final var o = new InsightFiltersProductName(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRecommendationText.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRecommendationText.java index e95864b9fd5..ab6dca096a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRecommendationText.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRecommendationText.java @@ -13,21 +13,14 @@ public final class InsightFiltersRecommendationText { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersRecommendationText( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersRecommendationText() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersRecommendationText defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersRecommendationText defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersRecommendationText build() { - return new InsightFiltersRecommendationText(comparison, value); + } + public InsightFiltersRecommendationText build() { + final var o = new InsightFiltersRecommendationText(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRecordState.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRecordState.java index 8f8959f0429..e907c6e11da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRecordState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRecordState.java @@ -13,21 +13,14 @@ public final class InsightFiltersRecordState { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersRecordState( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersRecordState() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersRecordState defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersRecordState defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersRecordState build() { - return new InsightFiltersRecordState(comparison, value); + } + public InsightFiltersRecordState build() { + final var o = new InsightFiltersRecordState(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRelatedFindingsId.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRelatedFindingsId.java index 7f9b9009827..6b46719cd50 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRelatedFindingsId.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRelatedFindingsId.java @@ -13,21 +13,14 @@ public final class InsightFiltersRelatedFindingsId { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersRelatedFindingsId( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersRelatedFindingsId() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersRelatedFindingsId defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersRelatedFindingsId defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersRelatedFindingsId build() { - return new InsightFiltersRelatedFindingsId(comparison, value); + } + public InsightFiltersRelatedFindingsId build() { + final var o = new InsightFiltersRelatedFindingsId(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRelatedFindingsProductArn.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRelatedFindingsProductArn.java index f2d7b0d552e..fbe0635b793 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRelatedFindingsProductArn.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersRelatedFindingsProductArn.java @@ -13,21 +13,14 @@ public final class InsightFiltersRelatedFindingsProductArn { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersRelatedFindingsProductArn( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersRelatedFindingsProductArn() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersRelatedFindingsProductArn defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersRelatedFindingsProductArn defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersRelatedFindingsProductArn build() { - return new InsightFiltersRelatedFindingsProductArn(comparison, value); + } + public InsightFiltersRelatedFindingsProductArn build() { + final var o = new InsightFiltersRelatedFindingsProductArn(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn.java index 95b851f0dbf..45f8b861505 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn build() { - return new InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn(comparison, value); + } + public InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn build() { + final var o = new InsightFiltersResourceAwsEc2InstanceIamInstanceProfileArn(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceImageId.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceImageId.java index cf430941554..121629c3d3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceImageId.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceImageId.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceAwsEc2InstanceImageId { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceAwsEc2InstanceImageId( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceAwsEc2InstanceImageId() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsEc2InstanceImageId defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsEc2InstanceImageId defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceAwsEc2InstanceImageId build() { - return new InsightFiltersResourceAwsEc2InstanceImageId(comparison, value); + } + public InsightFiltersResourceAwsEc2InstanceImageId build() { + final var o = new InsightFiltersResourceAwsEc2InstanceImageId(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceIpv4Address.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceIpv4Address.java index 84d17f48b51..4626e1bf614 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceIpv4Address.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceIpv4Address.java @@ -13,13 +13,9 @@ public final class InsightFiltersResourceAwsEc2InstanceIpv4Address { * @return A finding's CIDR value. * */ - private final String cidr; - - @CustomType.Constructor - private InsightFiltersResourceAwsEc2InstanceIpv4Address(@CustomType.Parameter("cidr") String cidr) { - this.cidr = cidr; - } + private String cidr; + private InsightFiltersResourceAwsEc2InstanceIpv4Address() {} /** * @return A finding's CIDR value. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsEc2InstanceIpv4Address defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cidr; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsEc2InstanceIpv4Address defaults) { Objects.requireNonNull(defaults); this.cidr = defaults.cidr; } + @CustomType.Setter public Builder cidr(String cidr) { this.cidr = Objects.requireNonNull(cidr); return this; - } public InsightFiltersResourceAwsEc2InstanceIpv4Address build() { - return new InsightFiltersResourceAwsEc2InstanceIpv4Address(cidr); + } + public InsightFiltersResourceAwsEc2InstanceIpv4Address build() { + final var o = new InsightFiltersResourceAwsEc2InstanceIpv4Address(); + o.cidr = cidr; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceIpv6Address.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceIpv6Address.java index 207e87a8233..be10ce14a8f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceIpv6Address.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceIpv6Address.java @@ -13,13 +13,9 @@ public final class InsightFiltersResourceAwsEc2InstanceIpv6Address { * @return A finding's CIDR value. * */ - private final String cidr; - - @CustomType.Constructor - private InsightFiltersResourceAwsEc2InstanceIpv6Address(@CustomType.Parameter("cidr") String cidr) { - this.cidr = cidr; - } + private String cidr; + private InsightFiltersResourceAwsEc2InstanceIpv6Address() {} /** * @return A finding's CIDR value. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsEc2InstanceIpv6Address defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String cidr; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsEc2InstanceIpv6Address defaults) { Objects.requireNonNull(defaults); this.cidr = defaults.cidr; } + @CustomType.Setter public Builder cidr(String cidr) { this.cidr = Objects.requireNonNull(cidr); return this; - } public InsightFiltersResourceAwsEc2InstanceIpv6Address build() { - return new InsightFiltersResourceAwsEc2InstanceIpv6Address(cidr); + } + public InsightFiltersResourceAwsEc2InstanceIpv6Address build() { + final var o = new InsightFiltersResourceAwsEc2InstanceIpv6Address(); + o.cidr = cidr; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceKeyName.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceKeyName.java index 31f4be74b8b..37710c697ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceKeyName.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceKeyName.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceAwsEc2InstanceKeyName { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceAwsEc2InstanceKeyName( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceAwsEc2InstanceKeyName() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsEc2InstanceKeyName defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsEc2InstanceKeyName defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceAwsEc2InstanceKeyName build() { - return new InsightFiltersResourceAwsEc2InstanceKeyName(comparison, value); + } + public InsightFiltersResourceAwsEc2InstanceKeyName build() { + final var o = new InsightFiltersResourceAwsEc2InstanceKeyName(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceLaunchedAt.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceLaunchedAt.java index eaae3cfc00c..84ef0e9ac46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceLaunchedAt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceLaunchedAt.java @@ -16,28 +16,19 @@ public final class InsightFiltersResourceAwsEc2InstanceLaunchedAt { * @return A configuration block of the date range for the date filter. See date_range below for more details. * */ - private final @Nullable InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange dateRange; + private @Nullable InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange dateRange; /** * @return An end date for the date filter. Required with `start` if `date_range` is not specified. * */ - private final @Nullable String end; + private @Nullable String end; /** * @return A start date for the date filter. Required with `end` if `date_range` is not specified. * */ - private final @Nullable String start; - - @CustomType.Constructor - private InsightFiltersResourceAwsEc2InstanceLaunchedAt( - @CustomType.Parameter("dateRange") @Nullable InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange dateRange, - @CustomType.Parameter("end") @Nullable String end, - @CustomType.Parameter("start") @Nullable String start) { - this.dateRange = dateRange; - this.end = end; - this.start = start; - } + private @Nullable String start; + private InsightFiltersResourceAwsEc2InstanceLaunchedAt() {} /** * @return A configuration block of the date range for the date filter. See date_range below for more details. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsEc2InstanceLaunchedAt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange dateRange; private @Nullable String end; private @Nullable String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsEc2InstanceLaunchedAt defaults) { Objects.requireNonNull(defaults); this.dateRange = defaults.dateRange; @@ -84,19 +71,27 @@ public Builder(InsightFiltersResourceAwsEc2InstanceLaunchedAt defaults) { this.start = defaults.start; } + @CustomType.Setter public Builder dateRange(@Nullable InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange dateRange) { this.dateRange = dateRange; return this; } + @CustomType.Setter public Builder end(@Nullable String end) { this.end = end; return this; } + @CustomType.Setter public Builder start(@Nullable String start) { this.start = start; return this; - } public InsightFiltersResourceAwsEc2InstanceLaunchedAt build() { - return new InsightFiltersResourceAwsEc2InstanceLaunchedAt(dateRange, end, start); + } + public InsightFiltersResourceAwsEc2InstanceLaunchedAt build() { + final var o = new InsightFiltersResourceAwsEc2InstanceLaunchedAt(); + o.dateRange = dateRange; + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange.java index 119e9a4816d..ae7b702444f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange.java @@ -14,21 +14,14 @@ public final class InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange { * @return A date range unit for the date filter. Valid values: `DAYS`. * */ - private final String unit; + private String unit; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final Integer value; - - @CustomType.Constructor - private InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange() {} /** * @return A date range unit for the date filter. Valid values: `DAYS`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange build() { - return new InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange(unit, value); + } + public InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange build() { + final var o = new InsightFiltersResourceAwsEc2InstanceLaunchedAtDateRange(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceSubnetId.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceSubnetId.java index 4f8602041f2..0c170e7ec72 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceSubnetId.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceSubnetId.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceAwsEc2InstanceSubnetId { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceAwsEc2InstanceSubnetId( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceAwsEc2InstanceSubnetId() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsEc2InstanceSubnetId defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsEc2InstanceSubnetId defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceAwsEc2InstanceSubnetId build() { - return new InsightFiltersResourceAwsEc2InstanceSubnetId(comparison, value); + } + public InsightFiltersResourceAwsEc2InstanceSubnetId build() { + final var o = new InsightFiltersResourceAwsEc2InstanceSubnetId(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceType.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceType.java index 6003d772859..5ebd643983a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceType.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceType.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceAwsEc2InstanceType { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceAwsEc2InstanceType( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceAwsEc2InstanceType() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsEc2InstanceType defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsEc2InstanceType defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceAwsEc2InstanceType build() { - return new InsightFiltersResourceAwsEc2InstanceType(comparison, value); + } + public InsightFiltersResourceAwsEc2InstanceType build() { + final var o = new InsightFiltersResourceAwsEc2InstanceType(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceVpcId.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceVpcId.java index a562d1ab3e1..c083a838356 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceVpcId.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsEc2InstanceVpcId.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceAwsEc2InstanceVpcId { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceAwsEc2InstanceVpcId( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceAwsEc2InstanceVpcId() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsEc2InstanceVpcId defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsEc2InstanceVpcId defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceAwsEc2InstanceVpcId build() { - return new InsightFiltersResourceAwsEc2InstanceVpcId(comparison, value); + } + public InsightFiltersResourceAwsEc2InstanceVpcId build() { + final var o = new InsightFiltersResourceAwsEc2InstanceVpcId(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyCreatedAt.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyCreatedAt.java index 2ddc4fc09d9..d5ffb9229aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyCreatedAt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyCreatedAt.java @@ -16,28 +16,19 @@ public final class InsightFiltersResourceAwsIamAccessKeyCreatedAt { * @return A configuration block of the date range for the date filter. See date_range below for more details. * */ - private final @Nullable InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange dateRange; + private @Nullable InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange dateRange; /** * @return An end date for the date filter. Required with `start` if `date_range` is not specified. * */ - private final @Nullable String end; + private @Nullable String end; /** * @return A start date for the date filter. Required with `end` if `date_range` is not specified. * */ - private final @Nullable String start; - - @CustomType.Constructor - private InsightFiltersResourceAwsIamAccessKeyCreatedAt( - @CustomType.Parameter("dateRange") @Nullable InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange dateRange, - @CustomType.Parameter("end") @Nullable String end, - @CustomType.Parameter("start") @Nullable String start) { - this.dateRange = dateRange; - this.end = end; - this.start = start; - } + private @Nullable String start; + private InsightFiltersResourceAwsIamAccessKeyCreatedAt() {} /** * @return A configuration block of the date range for the date filter. See date_range below for more details. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsIamAccessKeyCreatedAt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange dateRange; private @Nullable String end; private @Nullable String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsIamAccessKeyCreatedAt defaults) { Objects.requireNonNull(defaults); this.dateRange = defaults.dateRange; @@ -84,19 +71,27 @@ public Builder(InsightFiltersResourceAwsIamAccessKeyCreatedAt defaults) { this.start = defaults.start; } + @CustomType.Setter public Builder dateRange(@Nullable InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange dateRange) { this.dateRange = dateRange; return this; } + @CustomType.Setter public Builder end(@Nullable String end) { this.end = end; return this; } + @CustomType.Setter public Builder start(@Nullable String start) { this.start = start; return this; - } public InsightFiltersResourceAwsIamAccessKeyCreatedAt build() { - return new InsightFiltersResourceAwsIamAccessKeyCreatedAt(dateRange, end, start); + } + public InsightFiltersResourceAwsIamAccessKeyCreatedAt build() { + final var o = new InsightFiltersResourceAwsIamAccessKeyCreatedAt(); + o.dateRange = dateRange; + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange.java index f71b71298e4..bf08d16240d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange.java @@ -14,21 +14,14 @@ public final class InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange { * @return A date range unit for the date filter. Valid values: `DAYS`. * */ - private final String unit; + private String unit; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final Integer value; - - @CustomType.Constructor - private InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange() {} /** * @return A date range unit for the date filter. Valid values: `DAYS`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange build() { - return new InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange(unit, value); + } + public InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange build() { + final var o = new InsightFiltersResourceAwsIamAccessKeyCreatedAtDateRange(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyStatus.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyStatus.java index b2aa8bcbf31..9a08f0a7072 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyStatus.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyStatus.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceAwsIamAccessKeyStatus { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceAwsIamAccessKeyStatus( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceAwsIamAccessKeyStatus() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsIamAccessKeyStatus defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsIamAccessKeyStatus defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceAwsIamAccessKeyStatus build() { - return new InsightFiltersResourceAwsIamAccessKeyStatus(comparison, value); + } + public InsightFiltersResourceAwsIamAccessKeyStatus build() { + final var o = new InsightFiltersResourceAwsIamAccessKeyStatus(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyUserName.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyUserName.java index 104b9fe6ce3..596afb51f48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyUserName.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsIamAccessKeyUserName.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceAwsIamAccessKeyUserName { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceAwsIamAccessKeyUserName( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceAwsIamAccessKeyUserName() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsIamAccessKeyUserName defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsIamAccessKeyUserName defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceAwsIamAccessKeyUserName build() { - return new InsightFiltersResourceAwsIamAccessKeyUserName(comparison, value); + } + public InsightFiltersResourceAwsIamAccessKeyUserName build() { + final var o = new InsightFiltersResourceAwsIamAccessKeyUserName(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsS3BucketOwnerId.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsS3BucketOwnerId.java index f4df66d57d2..9f10739cbab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsS3BucketOwnerId.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsS3BucketOwnerId.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceAwsS3BucketOwnerId { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceAwsS3BucketOwnerId( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceAwsS3BucketOwnerId() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsS3BucketOwnerId defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsS3BucketOwnerId defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceAwsS3BucketOwnerId build() { - return new InsightFiltersResourceAwsS3BucketOwnerId(comparison, value); + } + public InsightFiltersResourceAwsS3BucketOwnerId build() { + final var o = new InsightFiltersResourceAwsS3BucketOwnerId(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsS3BucketOwnerName.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsS3BucketOwnerName.java index e25fee1c53e..73c20d7ef22 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsS3BucketOwnerName.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceAwsS3BucketOwnerName.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceAwsS3BucketOwnerName { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceAwsS3BucketOwnerName( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceAwsS3BucketOwnerName() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceAwsS3BucketOwnerName defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceAwsS3BucketOwnerName defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceAwsS3BucketOwnerName build() { - return new InsightFiltersResourceAwsS3BucketOwnerName(comparison, value); + } + public InsightFiltersResourceAwsS3BucketOwnerName build() { + final var o = new InsightFiltersResourceAwsS3BucketOwnerName(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerImageId.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerImageId.java index a3def1c75bf..fb727db017a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerImageId.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerImageId.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceContainerImageId { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceContainerImageId( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceContainerImageId() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceContainerImageId defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceContainerImageId defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceContainerImageId build() { - return new InsightFiltersResourceContainerImageId(comparison, value); + } + public InsightFiltersResourceContainerImageId build() { + final var o = new InsightFiltersResourceContainerImageId(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerImageName.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerImageName.java index 519992eda47..7d8750ac76a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerImageName.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerImageName.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceContainerImageName { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceContainerImageName( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceContainerImageName() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceContainerImageName defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceContainerImageName defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceContainerImageName build() { - return new InsightFiltersResourceContainerImageName(comparison, value); + } + public InsightFiltersResourceContainerImageName build() { + final var o = new InsightFiltersResourceContainerImageName(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerLaunchedAt.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerLaunchedAt.java index 22689842c46..48dc1fb91a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerLaunchedAt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerLaunchedAt.java @@ -16,28 +16,19 @@ public final class InsightFiltersResourceContainerLaunchedAt { * @return A configuration block of the date range for the date filter. See date_range below for more details. * */ - private final @Nullable InsightFiltersResourceContainerLaunchedAtDateRange dateRange; + private @Nullable InsightFiltersResourceContainerLaunchedAtDateRange dateRange; /** * @return An end date for the date filter. Required with `start` if `date_range` is not specified. * */ - private final @Nullable String end; + private @Nullable String end; /** * @return A start date for the date filter. Required with `end` if `date_range` is not specified. * */ - private final @Nullable String start; - - @CustomType.Constructor - private InsightFiltersResourceContainerLaunchedAt( - @CustomType.Parameter("dateRange") @Nullable InsightFiltersResourceContainerLaunchedAtDateRange dateRange, - @CustomType.Parameter("end") @Nullable String end, - @CustomType.Parameter("start") @Nullable String start) { - this.dateRange = dateRange; - this.end = end; - this.start = start; - } + private @Nullable String start; + private InsightFiltersResourceContainerLaunchedAt() {} /** * @return A configuration block of the date range for the date filter. See date_range below for more details. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceContainerLaunchedAt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable InsightFiltersResourceContainerLaunchedAtDateRange dateRange; private @Nullable String end; private @Nullable String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceContainerLaunchedAt defaults) { Objects.requireNonNull(defaults); this.dateRange = defaults.dateRange; @@ -84,19 +71,27 @@ public Builder(InsightFiltersResourceContainerLaunchedAt defaults) { this.start = defaults.start; } + @CustomType.Setter public Builder dateRange(@Nullable InsightFiltersResourceContainerLaunchedAtDateRange dateRange) { this.dateRange = dateRange; return this; } + @CustomType.Setter public Builder end(@Nullable String end) { this.end = end; return this; } + @CustomType.Setter public Builder start(@Nullable String start) { this.start = start; return this; - } public InsightFiltersResourceContainerLaunchedAt build() { - return new InsightFiltersResourceContainerLaunchedAt(dateRange, end, start); + } + public InsightFiltersResourceContainerLaunchedAt build() { + final var o = new InsightFiltersResourceContainerLaunchedAt(); + o.dateRange = dateRange; + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerLaunchedAtDateRange.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerLaunchedAtDateRange.java index 7e072a123d6..3d04968b5fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerLaunchedAtDateRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerLaunchedAtDateRange.java @@ -14,21 +14,14 @@ public final class InsightFiltersResourceContainerLaunchedAtDateRange { * @return A date range unit for the date filter. Valid values: `DAYS`. * */ - private final String unit; + private String unit; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final Integer value; - - @CustomType.Constructor - private InsightFiltersResourceContainerLaunchedAtDateRange( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private InsightFiltersResourceContainerLaunchedAtDateRange() {} /** * @return A date range unit for the date filter. Valid values: `DAYS`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceContainerLaunchedAtDateRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceContainerLaunchedAtDateRange defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceContainerLaunchedAtDateRange build() { - return new InsightFiltersResourceContainerLaunchedAtDateRange(unit, value); + } + public InsightFiltersResourceContainerLaunchedAtDateRange build() { + final var o = new InsightFiltersResourceContainerLaunchedAtDateRange(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerName.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerName.java index c457c0aa698..cd915a16ad8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerName.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceContainerName.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceContainerName { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceContainerName( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceContainerName() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceContainerName defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceContainerName defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceContainerName build() { - return new InsightFiltersResourceContainerName(comparison, value); + } + public InsightFiltersResourceContainerName build() { + final var o = new InsightFiltersResourceContainerName(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceDetailsOther.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceDetailsOther.java index c0b51e3c7f0..4739791519b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceDetailsOther.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceDetailsOther.java @@ -13,28 +13,19 @@ public final class InsightFiltersResourceDetailsOther { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return The key of the map filter. For example, for `ResourceTags`, `Key` identifies the name of the tag. For `UserDefinedFields`, `Key` is the name of the field. * */ - private final String key; + private String key; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceDetailsOther( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.key = key; - this.value = value; - } + private String value; + private InsightFiltersResourceDetailsOther() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceDetailsOther defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceDetailsOther defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; @@ -81,19 +68,27 @@ public Builder(InsightFiltersResourceDetailsOther defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceDetailsOther build() { - return new InsightFiltersResourceDetailsOther(comparison, key, value); + } + public InsightFiltersResourceDetailsOther build() { + final var o = new InsightFiltersResourceDetailsOther(); + o.comparison = comparison; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceId.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceId.java index c40082b9e82..abcf9a25b3e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceId.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceId.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceId { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceId( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceId() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceId defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceId defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceId build() { - return new InsightFiltersResourceId(comparison, value); + } + public InsightFiltersResourceId build() { + final var o = new InsightFiltersResourceId(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourcePartition.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourcePartition.java index 2826628823b..90e75299587 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourcePartition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourcePartition.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourcePartition { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourcePartition( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourcePartition() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourcePartition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourcePartition defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourcePartition build() { - return new InsightFiltersResourcePartition(comparison, value); + } + public InsightFiltersResourcePartition build() { + final var o = new InsightFiltersResourcePartition(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceRegion.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceRegion.java index 129155e94ce..d637cf4cc85 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceRegion.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceRegion.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceRegion { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceRegion( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceRegion() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceRegion defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceRegion defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceRegion build() { - return new InsightFiltersResourceRegion(comparison, value); + } + public InsightFiltersResourceRegion build() { + final var o = new InsightFiltersResourceRegion(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceTag.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceTag.java index dfaac45bea5..92c8f08c59c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceTag.java @@ -13,28 +13,19 @@ public final class InsightFiltersResourceTag { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return The key of the map filter. For example, for `ResourceTags`, `Key` identifies the name of the tag. For `UserDefinedFields`, `Key` is the name of the field. * */ - private final String key; + private String key; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceTag( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.key = key; - this.value = value; - } + private String value; + private InsightFiltersResourceTag() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceTag defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; @@ -81,19 +68,27 @@ public Builder(InsightFiltersResourceTag defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceTag build() { - return new InsightFiltersResourceTag(comparison, key, value); + } + public InsightFiltersResourceTag build() { + final var o = new InsightFiltersResourceTag(); + o.comparison = comparison; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceType.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceType.java index dc45824fcab..477271c148d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceType.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersResourceType.java @@ -13,21 +13,14 @@ public final class InsightFiltersResourceType { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersResourceType( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersResourceType() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersResourceType defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersResourceType defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersResourceType build() { - return new InsightFiltersResourceType(comparison, value); + } + public InsightFiltersResourceType build() { + final var o = new InsightFiltersResourceType(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersSeverityLabel.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersSeverityLabel.java index 07f48296a89..5a36c2a44ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersSeverityLabel.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersSeverityLabel.java @@ -13,21 +13,14 @@ public final class InsightFiltersSeverityLabel { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersSeverityLabel( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersSeverityLabel() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersSeverityLabel defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersSeverityLabel defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersSeverityLabel build() { - return new InsightFiltersSeverityLabel(comparison, value); + } + public InsightFiltersSeverityLabel build() { + final var o = new InsightFiltersSeverityLabel(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersSourceUrl.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersSourceUrl.java index 7497259d588..16440905307 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersSourceUrl.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersSourceUrl.java @@ -13,21 +13,14 @@ public final class InsightFiltersSourceUrl { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersSourceUrl( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersSourceUrl() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersSourceUrl defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersSourceUrl defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersSourceUrl build() { - return new InsightFiltersSourceUrl(comparison, value); + } + public InsightFiltersSourceUrl build() { + final var o = new InsightFiltersSourceUrl(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorCategory.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorCategory.java index c8e638f29b6..6a3da1bba37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorCategory.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorCategory.java @@ -13,21 +13,14 @@ public final class InsightFiltersThreatIntelIndicatorCategory { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersThreatIntelIndicatorCategory( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersThreatIntelIndicatorCategory() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersThreatIntelIndicatorCategory defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersThreatIntelIndicatorCategory defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersThreatIntelIndicatorCategory build() { - return new InsightFiltersThreatIntelIndicatorCategory(comparison, value); + } + public InsightFiltersThreatIntelIndicatorCategory build() { + final var o = new InsightFiltersThreatIntelIndicatorCategory(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorLastObservedAt.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorLastObservedAt.java index fa488cf0e47..1d37d511caf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorLastObservedAt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorLastObservedAt.java @@ -16,28 +16,19 @@ public final class InsightFiltersThreatIntelIndicatorLastObservedAt { * @return A configuration block of the date range for the date filter. See date_range below for more details. * */ - private final @Nullable InsightFiltersThreatIntelIndicatorLastObservedAtDateRange dateRange; + private @Nullable InsightFiltersThreatIntelIndicatorLastObservedAtDateRange dateRange; /** * @return An end date for the date filter. Required with `start` if `date_range` is not specified. * */ - private final @Nullable String end; + private @Nullable String end; /** * @return A start date for the date filter. Required with `end` if `date_range` is not specified. * */ - private final @Nullable String start; - - @CustomType.Constructor - private InsightFiltersThreatIntelIndicatorLastObservedAt( - @CustomType.Parameter("dateRange") @Nullable InsightFiltersThreatIntelIndicatorLastObservedAtDateRange dateRange, - @CustomType.Parameter("end") @Nullable String end, - @CustomType.Parameter("start") @Nullable String start) { - this.dateRange = dateRange; - this.end = end; - this.start = start; - } + private @Nullable String start; + private InsightFiltersThreatIntelIndicatorLastObservedAt() {} /** * @return A configuration block of the date range for the date filter. See date_range below for more details. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersThreatIntelIndicatorLastObservedAt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable InsightFiltersThreatIntelIndicatorLastObservedAtDateRange dateRange; private @Nullable String end; private @Nullable String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersThreatIntelIndicatorLastObservedAt defaults) { Objects.requireNonNull(defaults); this.dateRange = defaults.dateRange; @@ -84,19 +71,27 @@ public Builder(InsightFiltersThreatIntelIndicatorLastObservedAt defaults) { this.start = defaults.start; } + @CustomType.Setter public Builder dateRange(@Nullable InsightFiltersThreatIntelIndicatorLastObservedAtDateRange dateRange) { this.dateRange = dateRange; return this; } + @CustomType.Setter public Builder end(@Nullable String end) { this.end = end; return this; } + @CustomType.Setter public Builder start(@Nullable String start) { this.start = start; return this; - } public InsightFiltersThreatIntelIndicatorLastObservedAt build() { - return new InsightFiltersThreatIntelIndicatorLastObservedAt(dateRange, end, start); + } + public InsightFiltersThreatIntelIndicatorLastObservedAt build() { + final var o = new InsightFiltersThreatIntelIndicatorLastObservedAt(); + o.dateRange = dateRange; + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorLastObservedAtDateRange.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorLastObservedAtDateRange.java index 26efe77c7a2..af13bb20e47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorLastObservedAtDateRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorLastObservedAtDateRange.java @@ -14,21 +14,14 @@ public final class InsightFiltersThreatIntelIndicatorLastObservedAtDateRange { * @return A date range unit for the date filter. Valid values: `DAYS`. * */ - private final String unit; + private String unit; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final Integer value; - - @CustomType.Constructor - private InsightFiltersThreatIntelIndicatorLastObservedAtDateRange( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private InsightFiltersThreatIntelIndicatorLastObservedAtDateRange() {} /** * @return A date range unit for the date filter. Valid values: `DAYS`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersThreatIntelIndicatorLastObservedAtDateRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersThreatIntelIndicatorLastObservedAtDateRange defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersThreatIntelIndicatorLastObservedAtDateRange build() { - return new InsightFiltersThreatIntelIndicatorLastObservedAtDateRange(unit, value); + } + public InsightFiltersThreatIntelIndicatorLastObservedAtDateRange build() { + final var o = new InsightFiltersThreatIntelIndicatorLastObservedAtDateRange(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorSource.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorSource.java index fccc8ed950e..0bcf758d928 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorSource.java @@ -13,21 +13,14 @@ public final class InsightFiltersThreatIntelIndicatorSource { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersThreatIntelIndicatorSource( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersThreatIntelIndicatorSource() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersThreatIntelIndicatorSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersThreatIntelIndicatorSource defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersThreatIntelIndicatorSource build() { - return new InsightFiltersThreatIntelIndicatorSource(comparison, value); + } + public InsightFiltersThreatIntelIndicatorSource build() { + final var o = new InsightFiltersThreatIntelIndicatorSource(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorSourceUrl.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorSourceUrl.java index d39471d7d9f..0d333bbea86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorSourceUrl.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorSourceUrl.java @@ -13,21 +13,14 @@ public final class InsightFiltersThreatIntelIndicatorSourceUrl { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersThreatIntelIndicatorSourceUrl( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersThreatIntelIndicatorSourceUrl() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersThreatIntelIndicatorSourceUrl defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersThreatIntelIndicatorSourceUrl defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersThreatIntelIndicatorSourceUrl build() { - return new InsightFiltersThreatIntelIndicatorSourceUrl(comparison, value); + } + public InsightFiltersThreatIntelIndicatorSourceUrl build() { + final var o = new InsightFiltersThreatIntelIndicatorSourceUrl(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorType.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorType.java index cb85a1a270e..abb3496e573 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorType.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorType.java @@ -13,21 +13,14 @@ public final class InsightFiltersThreatIntelIndicatorType { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersThreatIntelIndicatorType( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersThreatIntelIndicatorType() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersThreatIntelIndicatorType defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersThreatIntelIndicatorType defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersThreatIntelIndicatorType build() { - return new InsightFiltersThreatIntelIndicatorType(comparison, value); + } + public InsightFiltersThreatIntelIndicatorType build() { + final var o = new InsightFiltersThreatIntelIndicatorType(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorValue.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorValue.java index b367b331495..f647f2f2f07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorValue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersThreatIntelIndicatorValue.java @@ -13,21 +13,14 @@ public final class InsightFiltersThreatIntelIndicatorValue { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersThreatIntelIndicatorValue( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersThreatIntelIndicatorValue() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersThreatIntelIndicatorValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersThreatIntelIndicatorValue defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersThreatIntelIndicatorValue build() { - return new InsightFiltersThreatIntelIndicatorValue(comparison, value); + } + public InsightFiltersThreatIntelIndicatorValue build() { + final var o = new InsightFiltersThreatIntelIndicatorValue(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersTitle.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersTitle.java index 470995a16b8..83c9f141c3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersTitle.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersTitle.java @@ -13,21 +13,14 @@ public final class InsightFiltersTitle { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersTitle( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersTitle() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersTitle defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersTitle defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersTitle build() { - return new InsightFiltersTitle(comparison, value); + } + public InsightFiltersTitle build() { + final var o = new InsightFiltersTitle(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersType.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersType.java index dbd466578a6..a7b4cf3fbbb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersType.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersType.java @@ -13,21 +13,14 @@ public final class InsightFiltersType { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersType( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersType() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersType defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersType defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersType build() { - return new InsightFiltersType(comparison, value); + } + public InsightFiltersType build() { + final var o = new InsightFiltersType(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersUpdatedAt.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersUpdatedAt.java index 4541a92bf54..55ce0b54328 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersUpdatedAt.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersUpdatedAt.java @@ -16,28 +16,19 @@ public final class InsightFiltersUpdatedAt { * @return A configuration block of the date range for the date filter. See date_range below for more details. * */ - private final @Nullable InsightFiltersUpdatedAtDateRange dateRange; + private @Nullable InsightFiltersUpdatedAtDateRange dateRange; /** * @return An end date for the date filter. Required with `start` if `date_range` is not specified. * */ - private final @Nullable String end; + private @Nullable String end; /** * @return A start date for the date filter. Required with `end` if `date_range` is not specified. * */ - private final @Nullable String start; - - @CustomType.Constructor - private InsightFiltersUpdatedAt( - @CustomType.Parameter("dateRange") @Nullable InsightFiltersUpdatedAtDateRange dateRange, - @CustomType.Parameter("end") @Nullable String end, - @CustomType.Parameter("start") @Nullable String start) { - this.dateRange = dateRange; - this.end = end; - this.start = start; - } + private @Nullable String start; + private InsightFiltersUpdatedAt() {} /** * @return A configuration block of the date range for the date filter. See date_range below for more details. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersUpdatedAt defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable InsightFiltersUpdatedAtDateRange dateRange; private @Nullable String end; private @Nullable String start; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersUpdatedAt defaults) { Objects.requireNonNull(defaults); this.dateRange = defaults.dateRange; @@ -84,19 +71,27 @@ public Builder(InsightFiltersUpdatedAt defaults) { this.start = defaults.start; } + @CustomType.Setter public Builder dateRange(@Nullable InsightFiltersUpdatedAtDateRange dateRange) { this.dateRange = dateRange; return this; } + @CustomType.Setter public Builder end(@Nullable String end) { this.end = end; return this; } + @CustomType.Setter public Builder start(@Nullable String start) { this.start = start; return this; - } public InsightFiltersUpdatedAt build() { - return new InsightFiltersUpdatedAt(dateRange, end, start); + } + public InsightFiltersUpdatedAt build() { + final var o = new InsightFiltersUpdatedAt(); + o.dateRange = dateRange; + o.end = end; + o.start = start; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersUpdatedAtDateRange.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersUpdatedAtDateRange.java index 9080c882e50..975b1a122e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersUpdatedAtDateRange.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersUpdatedAtDateRange.java @@ -14,21 +14,14 @@ public final class InsightFiltersUpdatedAtDateRange { * @return A date range unit for the date filter. Valid values: `DAYS`. * */ - private final String unit; + private String unit; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final Integer value; - - @CustomType.Constructor - private InsightFiltersUpdatedAtDateRange( - @CustomType.Parameter("unit") String unit, - @CustomType.Parameter("value") Integer value) { - this.unit = unit; - this.value = value; - } + private Integer value; + private InsightFiltersUpdatedAtDateRange() {} /** * @return A date range unit for the date filter. Valid values: `DAYS`. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersUpdatedAtDateRange defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String unit; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersUpdatedAtDateRange defaults) { Objects.requireNonNull(defaults); this.unit = defaults.unit; this.value = defaults.value; } + @CustomType.Setter public Builder unit(String unit) { this.unit = Objects.requireNonNull(unit); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersUpdatedAtDateRange build() { - return new InsightFiltersUpdatedAtDateRange(unit, value); + } + public InsightFiltersUpdatedAtDateRange build() { + final var o = new InsightFiltersUpdatedAtDateRange(); + o.unit = unit; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersUserDefinedValue.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersUserDefinedValue.java index f65c132c89c..66825436fd0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersUserDefinedValue.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersUserDefinedValue.java @@ -13,28 +13,19 @@ public final class InsightFiltersUserDefinedValue { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return The key of the map filter. For example, for `ResourceTags`, `Key` identifies the name of the tag. For `UserDefinedFields`, `Key` is the name of the field. * */ - private final String key; + private String key; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersUserDefinedValue( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.key = key; - this.value = value; - } + private String value; + private InsightFiltersUserDefinedValue() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(InsightFiltersUserDefinedValue defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersUserDefinedValue defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; @@ -81,19 +68,27 @@ public Builder(InsightFiltersUserDefinedValue defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersUserDefinedValue build() { - return new InsightFiltersUserDefinedValue(comparison, key, value); + } + public InsightFiltersUserDefinedValue build() { + final var o = new InsightFiltersUserDefinedValue(); + o.comparison = comparison; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersVerificationState.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersVerificationState.java index c9dbe1e205d..6798aa72bab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersVerificationState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersVerificationState.java @@ -13,21 +13,14 @@ public final class InsightFiltersVerificationState { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersVerificationState( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersVerificationState() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersVerificationState defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersVerificationState defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersVerificationState build() { - return new InsightFiltersVerificationState(comparison, value); + } + public InsightFiltersVerificationState build() { + final var o = new InsightFiltersVerificationState(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersWorkflowStatus.java b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersWorkflowStatus.java index 20234299669..4ef9cd8f0d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersWorkflowStatus.java +++ b/sdk/java/src/main/java/com/pulumi/aws/securityhub/outputs/InsightFiltersWorkflowStatus.java @@ -13,21 +13,14 @@ public final class InsightFiltersWorkflowStatus { * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * */ - private final String comparison; + private String comparison; /** * @return A date range value for the date filter, provided as an Integer. * */ - private final String value; - - @CustomType.Constructor - private InsightFiltersWorkflowStatus( - @CustomType.Parameter("comparison") String comparison, - @CustomType.Parameter("value") String value) { - this.comparison = comparison; - this.value = value; - } + private String value; + private InsightFiltersWorkflowStatus() {} /** * @return The condition to apply to a string value when querying for findings. Valid values include: `EQUALS` and `NOT_EQUALS`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(InsightFiltersWorkflowStatus defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparison; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(InsightFiltersWorkflowStatus defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.value = defaults.value; } + @CustomType.Setter public Builder comparison(String comparison) { this.comparison = Objects.requireNonNull(comparison); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public InsightFiltersWorkflowStatus build() { - return new InsightFiltersWorkflowStatus(comparison, value); + } + public InsightFiltersWorkflowStatus build() { + final var o = new InsightFiltersWorkflowStatus(); + o.comparison = comparison; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/serverlessrepository/outputs/GetApplicationResult.java b/sdk/java/src/main/java/com/pulumi/aws/serverlessrepository/outputs/GetApplicationResult.java index f5e478f168d..8d3934d9a60 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/serverlessrepository/outputs/GetApplicationResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/serverlessrepository/outputs/GetApplicationResult.java @@ -14,52 +14,35 @@ public final class GetApplicationResult { * @return The ARN of the application. * */ - private final String applicationId; + private String applicationId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the application. * */ - private final String name; + private String name; /** * @return A list of capabilities describing the permissions needed to deploy the application. * */ - private final List requiredCapabilities; - private final String semanticVersion; + private List requiredCapabilities; + private String semanticVersion; /** * @return A URL pointing to the source code of the application version. * */ - private final String sourceCodeUrl; + private String sourceCodeUrl; /** * @return A URL pointing to the Cloud Formation template for the application version. * */ - private final String templateUrl; - - @CustomType.Constructor - private GetApplicationResult( - @CustomType.Parameter("applicationId") String applicationId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("requiredCapabilities") List requiredCapabilities, - @CustomType.Parameter("semanticVersion") String semanticVersion, - @CustomType.Parameter("sourceCodeUrl") String sourceCodeUrl, - @CustomType.Parameter("templateUrl") String templateUrl) { - this.applicationId = applicationId; - this.id = id; - this.name = name; - this.requiredCapabilities = requiredCapabilities; - this.semanticVersion = semanticVersion; - this.sourceCodeUrl = sourceCodeUrl; - this.templateUrl = templateUrl; - } + private String templateUrl; + private GetApplicationResult() {} /** * @return The ARN of the application. * @@ -113,7 +96,7 @@ public static Builder builder() { public static Builder builder(GetApplicationResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String applicationId; private String id; @@ -122,11 +105,7 @@ public static final class Builder { private String semanticVersion; private String sourceCodeUrl; private String templateUrl; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetApplicationResult defaults) { Objects.requireNonNull(defaults); this.applicationId = defaults.applicationId; @@ -138,18 +117,22 @@ public Builder(GetApplicationResult defaults) { this.templateUrl = defaults.templateUrl; } + @CustomType.Setter public Builder applicationId(String applicationId) { this.applicationId = Objects.requireNonNull(applicationId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder requiredCapabilities(List requiredCapabilities) { this.requiredCapabilities = Objects.requireNonNull(requiredCapabilities); return this; @@ -157,19 +140,31 @@ public Builder requiredCapabilities(List requiredCapabilities) { public Builder requiredCapabilities(String... requiredCapabilities) { return requiredCapabilities(List.of(requiredCapabilities)); } + @CustomType.Setter public Builder semanticVersion(String semanticVersion) { this.semanticVersion = Objects.requireNonNull(semanticVersion); return this; } + @CustomType.Setter public Builder sourceCodeUrl(String sourceCodeUrl) { this.sourceCodeUrl = Objects.requireNonNull(sourceCodeUrl); return this; } + @CustomType.Setter public Builder templateUrl(String templateUrl) { this.templateUrl = Objects.requireNonNull(templateUrl); return this; - } public GetApplicationResult build() { - return new GetApplicationResult(applicationId, id, name, requiredCapabilities, semanticVersion, sourceCodeUrl, templateUrl); + } + public GetApplicationResult build() { + final var o = new GetApplicationResult(); + o.applicationId = applicationId; + o.id = id; + o.name = name; + o.requiredCapabilities = requiredCapabilities; + o.semanticVersion = semanticVersion; + o.sourceCodeUrl = sourceCodeUrl; + o.templateUrl = templateUrl; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetConstraintResult.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetConstraintResult.java index 91a1a768566..41e60e50779 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetConstraintResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetConstraintResult.java @@ -11,66 +11,45 @@ @CustomType public final class GetConstraintResult { - private final @Nullable String acceptLanguage; + private @Nullable String acceptLanguage; /** * @return Description of the constraint. * */ - private final String description; - private final String id; + private String description; + private String id; /** * @return Owner of the constraint. * */ - private final String owner; + private String owner; /** * @return Constraint parameters in JSON format. * */ - private final String parameters; + private String parameters; /** * @return Portfolio identifier. * */ - private final String portfolioId; + private String portfolioId; /** * @return Product identifier. * */ - private final String productId; + private String productId; /** * @return Constraint status. * */ - private final String status; + private String status; /** * @return Type of constraint. Valid values are `LAUNCH`, `NOTIFICATION`, `RESOURCE_UPDATE`, `STACKSET`, and `TEMPLATE`. * */ - private final String type; - - @CustomType.Constructor - private GetConstraintResult( - @CustomType.Parameter("acceptLanguage") @Nullable String acceptLanguage, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("owner") String owner, - @CustomType.Parameter("parameters") String parameters, - @CustomType.Parameter("portfolioId") String portfolioId, - @CustomType.Parameter("productId") String productId, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("type") String type) { - this.acceptLanguage = acceptLanguage; - this.description = description; - this.id = id; - this.owner = owner; - this.parameters = parameters; - this.portfolioId = portfolioId; - this.productId = productId; - this.status = status; - this.type = type; - } + private String type; + private GetConstraintResult() {} public Optional acceptLanguage() { return Optional.ofNullable(this.acceptLanguage); } @@ -134,7 +113,7 @@ public static Builder builder() { public static Builder builder(GetConstraintResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String acceptLanguage; private String description; @@ -145,11 +124,7 @@ public static final class Builder { private String productId; private String status; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetConstraintResult defaults) { Objects.requireNonNull(defaults); this.acceptLanguage = defaults.acceptLanguage; @@ -163,43 +138,63 @@ public Builder(GetConstraintResult defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder acceptLanguage(@Nullable String acceptLanguage) { this.acceptLanguage = acceptLanguage; return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder owner(String owner) { this.owner = Objects.requireNonNull(owner); return this; } + @CustomType.Setter public Builder parameters(String parameters) { this.parameters = Objects.requireNonNull(parameters); return this; } + @CustomType.Setter public Builder portfolioId(String portfolioId) { this.portfolioId = Objects.requireNonNull(portfolioId); return this; } + @CustomType.Setter public Builder productId(String productId) { this.productId = Objects.requireNonNull(productId); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetConstraintResult build() { - return new GetConstraintResult(acceptLanguage, description, id, owner, parameters, portfolioId, productId, status, type); + } + public GetConstraintResult build() { + final var o = new GetConstraintResult(); + o.acceptLanguage = acceptLanguage; + o.description = description; + o.id = id; + o.owner = owner; + o.parameters = parameters; + o.portfolioId = portfolioId; + o.productId = productId; + o.status = status; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetLaunchPathsResult.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetLaunchPathsResult.java index 09ec4c3e239..8614eb289fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetLaunchPathsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetLaunchPathsResult.java @@ -13,31 +13,20 @@ @CustomType public final class GetLaunchPathsResult { - private final @Nullable String acceptLanguage; + private @Nullable String acceptLanguage; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String productId; + private String id; + private String productId; /** * @return Block with information about the launch path. See details below. * */ - private final List summaries; - - @CustomType.Constructor - private GetLaunchPathsResult( - @CustomType.Parameter("acceptLanguage") @Nullable String acceptLanguage, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("productId") String productId, - @CustomType.Parameter("summaries") List summaries) { - this.acceptLanguage = acceptLanguage; - this.id = id; - this.productId = productId; - this.summaries = summaries; - } + private List summaries; + private GetLaunchPathsResult() {} public Optional acceptLanguage() { return Optional.ofNullable(this.acceptLanguage); } @@ -66,17 +55,13 @@ public static Builder builder() { public static Builder builder(GetLaunchPathsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String acceptLanguage; private String id; private String productId; private List summaries; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchPathsResult defaults) { Objects.requireNonNull(defaults); this.acceptLanguage = defaults.acceptLanguage; @@ -85,26 +70,36 @@ public Builder(GetLaunchPathsResult defaults) { this.summaries = defaults.summaries; } + @CustomType.Setter public Builder acceptLanguage(@Nullable String acceptLanguage) { this.acceptLanguage = acceptLanguage; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder productId(String productId) { this.productId = Objects.requireNonNull(productId); return this; } + @CustomType.Setter public Builder summaries(List summaries) { this.summaries = Objects.requireNonNull(summaries); return this; } public Builder summaries(GetLaunchPathsSummary... summaries) { return summaries(List.of(summaries)); - } public GetLaunchPathsResult build() { - return new GetLaunchPathsResult(acceptLanguage, id, productId, summaries); + } + public GetLaunchPathsResult build() { + final var o = new GetLaunchPathsResult(); + o.acceptLanguage = acceptLanguage; + o.id = id; + o.productId = productId; + o.summaries = summaries; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetLaunchPathsSummary.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetLaunchPathsSummary.java index d0cd584bca1..c13bd598603 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetLaunchPathsSummary.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetLaunchPathsSummary.java @@ -16,35 +16,24 @@ public final class GetLaunchPathsSummary { * @return Block for constraints on the portfolio-product relationship. See details below. * */ - private final List constraintSummaries; + private List constraintSummaries; /** * @return Name of the portfolio to which the path was assigned. * */ - private final String name; + private String name; /** * @return Identifier of the product path. * */ - private final String pathId; + private String pathId; /** * @return Tags associated with this product path. * */ - private final Map tags; - - @CustomType.Constructor - private GetLaunchPathsSummary( - @CustomType.Parameter("constraintSummaries") List constraintSummaries, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("pathId") String pathId, - @CustomType.Parameter("tags") Map tags) { - this.constraintSummaries = constraintSummaries; - this.name = name; - this.pathId = pathId; - this.tags = tags; - } + private Map tags; + private GetLaunchPathsSummary() {} /** * @return Block for constraints on the portfolio-product relationship. See details below. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(GetLaunchPathsSummary defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List constraintSummaries; private String name; private String pathId; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchPathsSummary defaults) { Objects.requireNonNull(defaults); this.constraintSummaries = defaults.constraintSummaries; @@ -100,6 +85,7 @@ public Builder(GetLaunchPathsSummary defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder constraintSummaries(List constraintSummaries) { this.constraintSummaries = Objects.requireNonNull(constraintSummaries); return this; @@ -107,19 +93,28 @@ public Builder constraintSummaries(List public Builder constraintSummaries(GetLaunchPathsSummaryConstraintSummary... constraintSummaries) { return constraintSummaries(List.of(constraintSummaries)); } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder pathId(String pathId) { this.pathId = Objects.requireNonNull(pathId); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetLaunchPathsSummary build() { - return new GetLaunchPathsSummary(constraintSummaries, name, pathId, tags); + } + public GetLaunchPathsSummary build() { + final var o = new GetLaunchPathsSummary(); + o.constraintSummaries = constraintSummaries; + o.name = name; + o.pathId = pathId; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetLaunchPathsSummaryConstraintSummary.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetLaunchPathsSummaryConstraintSummary.java index 46f06c2cd3d..c77068379bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetLaunchPathsSummaryConstraintSummary.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetLaunchPathsSummaryConstraintSummary.java @@ -13,21 +13,14 @@ public final class GetLaunchPathsSummaryConstraintSummary { * @return Description of the constraint. * */ - private final String description; + private String description; /** * @return Type of constraint. Valid values are `LAUNCH`, `NOTIFICATION`, `STACKSET`, and `TEMPLATE`. * */ - private final String type; - - @CustomType.Constructor - private GetLaunchPathsSummaryConstraintSummary( - @CustomType.Parameter("description") String description, - @CustomType.Parameter("type") String type) { - this.description = description; - this.type = type; - } + private String type; + private GetLaunchPathsSummaryConstraintSummary() {} /** * @return Description of the constraint. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(GetLaunchPathsSummaryConstraintSummary defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String description; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLaunchPathsSummaryConstraintSummary defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; this.type = defaults.type; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetLaunchPathsSummaryConstraintSummary build() { - return new GetLaunchPathsSummaryConstraintSummary(description, type); + } + public GetLaunchPathsSummaryConstraintSummary build() { + final var o = new GetLaunchPathsSummaryConstraintSummary(); + o.description = description; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetPortfolioConstraintsDetail.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetPortfolioConstraintsDetail.java index 1cfb61bcb89..bf86b4bc4f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetPortfolioConstraintsDetail.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetPortfolioConstraintsDetail.java @@ -13,45 +13,30 @@ public final class GetPortfolioConstraintsDetail { * @return Identifier of the constraint. * */ - private final String constraintId; + private String constraintId; /** * @return Description of the constraint. * */ - private final String description; - private final String owner; + private String description; + private String owner; /** * @return Portfolio identifier. * */ - private final String portfolioId; + private String portfolioId; /** * @return Product identifier. * */ - private final String productId; + private String productId; /** * @return Type of constraint. Valid values are `LAUNCH`, `NOTIFICATION`, `STACKSET`, and `TEMPLATE`. * */ - private final String type; - - @CustomType.Constructor - private GetPortfolioConstraintsDetail( - @CustomType.Parameter("constraintId") String constraintId, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("owner") String owner, - @CustomType.Parameter("portfolioId") String portfolioId, - @CustomType.Parameter("productId") String productId, - @CustomType.Parameter("type") String type) { - this.constraintId = constraintId; - this.description = description; - this.owner = owner; - this.portfolioId = portfolioId; - this.productId = productId; - this.type = type; - } + private String type; + private GetPortfolioConstraintsDetail() {} /** * @return Identifier of the constraint. * @@ -98,7 +83,7 @@ public static Builder builder() { public static Builder builder(GetPortfolioConstraintsDetail defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String constraintId; private String description; @@ -106,11 +91,7 @@ public static final class Builder { private String portfolioId; private String productId; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPortfolioConstraintsDetail defaults) { Objects.requireNonNull(defaults); this.constraintId = defaults.constraintId; @@ -121,31 +102,45 @@ public Builder(GetPortfolioConstraintsDetail defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder constraintId(String constraintId) { this.constraintId = Objects.requireNonNull(constraintId); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder owner(String owner) { this.owner = Objects.requireNonNull(owner); return this; } + @CustomType.Setter public Builder portfolioId(String portfolioId) { this.portfolioId = Objects.requireNonNull(portfolioId); return this; } + @CustomType.Setter public Builder productId(String productId) { this.productId = Objects.requireNonNull(productId); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetPortfolioConstraintsDetail build() { - return new GetPortfolioConstraintsDetail(constraintId, description, owner, portfolioId, productId, type); + } + public GetPortfolioConstraintsDetail build() { + final var o = new GetPortfolioConstraintsDetail(); + o.constraintId = constraintId; + o.description = description; + o.owner = owner; + o.portfolioId = portfolioId; + o.productId = productId; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetPortfolioConstraintsResult.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetPortfolioConstraintsResult.java index b3f07c9755a..29b090b2e25 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetPortfolioConstraintsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetPortfolioConstraintsResult.java @@ -13,42 +13,29 @@ @CustomType public final class GetPortfolioConstraintsResult { - private final @Nullable String acceptLanguage; + private @Nullable String acceptLanguage; /** * @return List of information about the constraints. See details below. * */ - private final List details; + private List details; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Identifier of the portfolio the product resides in. The constraint applies only to the instance of the product that lives within this portfolio. * */ - private final String portfolioId; + private String portfolioId; /** * @return Identifier of the product the constraint applies to. A constraint applies to a specific instance of a product within a certain portfolio. * */ - private final @Nullable String productId; - - @CustomType.Constructor - private GetPortfolioConstraintsResult( - @CustomType.Parameter("acceptLanguage") @Nullable String acceptLanguage, - @CustomType.Parameter("details") List details, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("portfolioId") String portfolioId, - @CustomType.Parameter("productId") @Nullable String productId) { - this.acceptLanguage = acceptLanguage; - this.details = details; - this.id = id; - this.portfolioId = portfolioId; - this.productId = productId; - } + private @Nullable String productId; + private GetPortfolioConstraintsResult() {} public Optional acceptLanguage() { return Optional.ofNullable(this.acceptLanguage); } @@ -88,18 +75,14 @@ public static Builder builder() { public static Builder builder(GetPortfolioConstraintsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String acceptLanguage; private List details; private String id; private String portfolioId; private @Nullable String productId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPortfolioConstraintsResult defaults) { Objects.requireNonNull(defaults); this.acceptLanguage = defaults.acceptLanguage; @@ -109,10 +92,12 @@ public Builder(GetPortfolioConstraintsResult defaults) { this.productId = defaults.productId; } + @CustomType.Setter public Builder acceptLanguage(@Nullable String acceptLanguage) { this.acceptLanguage = acceptLanguage; return this; } + @CustomType.Setter public Builder details(List details) { this.details = Objects.requireNonNull(details); return this; @@ -120,19 +105,29 @@ public Builder details(List details) { public Builder details(GetPortfolioConstraintsDetail... details) { return details(List.of(details)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder portfolioId(String portfolioId) { this.portfolioId = Objects.requireNonNull(portfolioId); return this; } + @CustomType.Setter public Builder productId(@Nullable String productId) { this.productId = productId; return this; - } public GetPortfolioConstraintsResult build() { - return new GetPortfolioConstraintsResult(acceptLanguage, details, id, portfolioId, productId); + } + public GetPortfolioConstraintsResult build() { + final var o = new GetPortfolioConstraintsResult(); + o.acceptLanguage = acceptLanguage; + o.details = details; + o.id = id; + o.portfolioId = portfolioId; + o.productId = productId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetPortfolioResult.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetPortfolioResult.java index e97dc8d644b..7ce26306812 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetPortfolioResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetPortfolioResult.java @@ -12,59 +12,40 @@ @CustomType public final class GetPortfolioResult { - private final @Nullable String acceptLanguage; + private @Nullable String acceptLanguage; /** * @return Portfolio ARN. * */ - private final String arn; + private String arn; /** * @return Time the portfolio was created. * */ - private final String createdTime; + private String createdTime; /** * @return Description of the portfolio * */ - private final String description; - private final String id; + private String description; + private String id; /** * @return Portfolio name. * */ - private final String name; + private String name; /** * @return Name of the person or organization who owns the portfolio. * */ - private final String providerName; + private String providerName; /** * @return Tags applied to the portfolio. * */ - private final Map tags; - - @CustomType.Constructor - private GetPortfolioResult( - @CustomType.Parameter("acceptLanguage") @Nullable String acceptLanguage, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createdTime") String createdTime, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("providerName") String providerName, - @CustomType.Parameter("tags") Map tags) { - this.acceptLanguage = acceptLanguage; - this.arn = arn; - this.createdTime = createdTime; - this.description = description; - this.id = id; - this.name = name; - this.providerName = providerName; - this.tags = tags; - } + private Map tags; + private GetPortfolioResult() {} public Optional acceptLanguage() { return Optional.ofNullable(this.acceptLanguage); } @@ -121,7 +102,7 @@ public static Builder builder() { public static Builder builder(GetPortfolioResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String acceptLanguage; private String arn; @@ -131,11 +112,7 @@ public static final class Builder { private String name; private String providerName; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPortfolioResult defaults) { Objects.requireNonNull(defaults); this.acceptLanguage = defaults.acceptLanguage; @@ -148,39 +125,57 @@ public Builder(GetPortfolioResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder acceptLanguage(@Nullable String acceptLanguage) { this.acceptLanguage = acceptLanguage; return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createdTime(String createdTime) { this.createdTime = Objects.requireNonNull(createdTime); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder providerName(String providerName) { this.providerName = Objects.requireNonNull(providerName); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetPortfolioResult build() { - return new GetPortfolioResult(acceptLanguage, arn, createdTime, description, id, name, providerName, tags); + } + public GetPortfolioResult build() { + final var o = new GetPortfolioResult(); + o.acceptLanguage = acceptLanguage; + o.arn = arn; + o.createdTime = createdTime; + o.description = description; + o.id = id; + o.name = name; + o.providerName = providerName; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetProductResult.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetProductResult.java index eb83ac25afe..7fe0f3a4458 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetProductResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/GetProductResult.java @@ -13,108 +13,75 @@ @CustomType public final class GetProductResult { - private final @Nullable String acceptLanguage; + private @Nullable String acceptLanguage; /** * @return ARN of the product. * */ - private final String arn; + private String arn; /** * @return Time when the product was created. * */ - private final String createdTime; + private String createdTime; /** * @return Description of the product. * */ - private final String description; + private String description; /** * @return Distributor (i.e., vendor) of the product. * */ - private final String distributor; + private String distributor; /** * @return Whether the product has a default path. * */ - private final Boolean hasDefaultPath; - private final String id; + private Boolean hasDefaultPath; + private String id; /** * @return Name of the product. * */ - private final String name; + private String name; /** * @return Owner of the product. * */ - private final String owner; + private String owner; /** * @return Status of the product. * */ - private final String status; + private String status; /** * @return Support information about the product. * */ - private final String supportDescription; + private String supportDescription; /** * @return Contact email for product support. * */ - private final String supportEmail; + private String supportEmail; /** * @return Contact URL for product support. * */ - private final String supportUrl; + private String supportUrl; /** * @return Tags to apply to the product. * */ - private final Map tags; + private Map tags; /** * @return Type of product. * */ - private final String type; - - @CustomType.Constructor - private GetProductResult( - @CustomType.Parameter("acceptLanguage") @Nullable String acceptLanguage, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createdTime") String createdTime, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("distributor") String distributor, - @CustomType.Parameter("hasDefaultPath") Boolean hasDefaultPath, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("owner") String owner, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("supportDescription") String supportDescription, - @CustomType.Parameter("supportEmail") String supportEmail, - @CustomType.Parameter("supportUrl") String supportUrl, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("type") String type) { - this.acceptLanguage = acceptLanguage; - this.arn = arn; - this.createdTime = createdTime; - this.description = description; - this.distributor = distributor; - this.hasDefaultPath = hasDefaultPath; - this.id = id; - this.name = name; - this.owner = owner; - this.status = status; - this.supportDescription = supportDescription; - this.supportEmail = supportEmail; - this.supportUrl = supportUrl; - this.tags = tags; - this.type = type; - } + private String type; + private GetProductResult() {} public Optional acceptLanguage() { return Optional.ofNullable(this.acceptLanguage); } @@ -220,7 +187,7 @@ public static Builder builder() { public static Builder builder(GetProductResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String acceptLanguage; private String arn; @@ -237,11 +204,7 @@ public static final class Builder { private String supportUrl; private Map tags; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetProductResult defaults) { Objects.requireNonNull(defaults); this.acceptLanguage = defaults.acceptLanguage; @@ -261,67 +224,99 @@ public Builder(GetProductResult defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder acceptLanguage(@Nullable String acceptLanguage) { this.acceptLanguage = acceptLanguage; return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createdTime(String createdTime) { this.createdTime = Objects.requireNonNull(createdTime); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder distributor(String distributor) { this.distributor = Objects.requireNonNull(distributor); return this; } + @CustomType.Setter public Builder hasDefaultPath(Boolean hasDefaultPath) { this.hasDefaultPath = Objects.requireNonNull(hasDefaultPath); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder owner(String owner) { this.owner = Objects.requireNonNull(owner); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder supportDescription(String supportDescription) { this.supportDescription = Objects.requireNonNull(supportDescription); return this; } + @CustomType.Setter public Builder supportEmail(String supportEmail) { this.supportEmail = Objects.requireNonNull(supportEmail); return this; } + @CustomType.Setter public Builder supportUrl(String supportUrl) { this.supportUrl = Objects.requireNonNull(supportUrl); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetProductResult build() { - return new GetProductResult(acceptLanguage, arn, createdTime, description, distributor, hasDefaultPath, id, name, owner, status, supportDescription, supportEmail, supportUrl, tags, type); + } + public GetProductResult build() { + final var o = new GetProductResult(); + o.acceptLanguage = acceptLanguage; + o.arn = arn; + o.createdTime = createdTime; + o.description = description; + o.distributor = distributor; + o.hasDefaultPath = hasDefaultPath; + o.id = id; + o.name = name; + o.owner = owner; + o.status = status; + o.supportDescription = supportDescription; + o.supportEmail = supportEmail; + o.supportUrl = supportUrl; + o.tags = tags; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProductProvisioningArtifactParameters.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProductProvisioningArtifactParameters.java index 622fdf7a0ee..d8d336cfb5d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProductProvisioningArtifactParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProductProvisioningArtifactParameters.java @@ -16,49 +16,34 @@ public final class ProductProvisioningArtifactParameters { * @return Description of the provisioning artifact (i.e., version), including how it differs from the previous provisioning artifact. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return Whether AWS Service Catalog stops validating the specified provisioning artifact template even if it is invalid. * */ - private final @Nullable Boolean disableTemplateValidation; + private @Nullable Boolean disableTemplateValidation; /** * @return Name of the provisioning artifact (for example, `v1`, `v2beta`). No spaces are allowed. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Template source as the physical ID of the resource that contains the template. Currently only supports CloudFormation stack ARN. Specify the physical ID as `arn:[partition]:cloudformation:[region]:[account ID]:stack/[stack name]/[resource ID]`. * */ - private final @Nullable String templatePhysicalId; + private @Nullable String templatePhysicalId; /** * @return Template source as URL of the CloudFormation template in Amazon S3. * */ - private final @Nullable String templateUrl; + private @Nullable String templateUrl; /** * @return Type of provisioning artifact. Valid values: `CLOUD_FORMATION_TEMPLATE`, `MARKETPLACE_AMI`, `MARKETPLACE_CAR` (Marketplace Clusters and AWS Resources). * */ - private final @Nullable String type; - - @CustomType.Constructor - private ProductProvisioningArtifactParameters( - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("disableTemplateValidation") @Nullable Boolean disableTemplateValidation, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("templatePhysicalId") @Nullable String templatePhysicalId, - @CustomType.Parameter("templateUrl") @Nullable String templateUrl, - @CustomType.Parameter("type") @Nullable String type) { - this.description = description; - this.disableTemplateValidation = disableTemplateValidation; - this.name = name; - this.templatePhysicalId = templatePhysicalId; - this.templateUrl = templateUrl; - this.type = type; - } + private @Nullable String type; + private ProductProvisioningArtifactParameters() {} /** * @return Description of the provisioning artifact (i.e., version), including how it differs from the previous provisioning artifact. * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(ProductProvisioningArtifactParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String description; private @Nullable Boolean disableTemplateValidation; @@ -117,11 +102,7 @@ public static final class Builder { private @Nullable String templatePhysicalId; private @Nullable String templateUrl; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProductProvisioningArtifactParameters defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; @@ -132,31 +113,45 @@ public Builder(ProductProvisioningArtifactParameters defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder disableTemplateValidation(@Nullable Boolean disableTemplateValidation) { this.disableTemplateValidation = disableTemplateValidation; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder templatePhysicalId(@Nullable String templatePhysicalId) { this.templatePhysicalId = templatePhysicalId; return this; } + @CustomType.Setter public Builder templateUrl(@Nullable String templateUrl) { this.templateUrl = templateUrl; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public ProductProvisioningArtifactParameters build() { - return new ProductProvisioningArtifactParameters(description, disableTemplateValidation, name, templatePhysicalId, templateUrl, type); + } + public ProductProvisioningArtifactParameters build() { + final var o = new ProductProvisioningArtifactParameters(); + o.description = description; + o.disableTemplateValidation = disableTemplateValidation; + o.name = name; + o.templatePhysicalId = templatePhysicalId; + o.templateUrl = templateUrl; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProvisionedProductOutput.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProvisionedProductOutput.java index 129865508fb..85a662adb8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProvisionedProductOutput.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProvisionedProductOutput.java @@ -15,28 +15,19 @@ public final class ProvisionedProductOutput { * @return The description of the output. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return Parameter key. * */ - private final @Nullable String key; + private @Nullable String key; /** * @return Parameter value. * */ - private final @Nullable String value; - - @CustomType.Constructor - private ProvisionedProductOutput( - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("key") @Nullable String key, - @CustomType.Parameter("value") @Nullable String value) { - this.description = description; - this.key = key; - this.value = value; - } + private @Nullable String value; + private ProvisionedProductOutput() {} /** * @return The description of the output. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(ProvisionedProductOutput defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String description; private @Nullable String key; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProvisionedProductOutput defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; @@ -83,19 +70,27 @@ public Builder(ProvisionedProductOutput defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @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; - } public ProvisionedProductOutput build() { - return new ProvisionedProductOutput(description, key, value); + } + public ProvisionedProductOutput build() { + final var o = new ProvisionedProductOutput(); + o.description = description; + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProvisionedProductProvisioningParameter.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProvisionedProductProvisioningParameter.java index 13c9c2178b5..4804870af86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProvisionedProductProvisioningParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProvisionedProductProvisioningParameter.java @@ -16,28 +16,19 @@ public final class ProvisionedProductProvisioningParameter { * @return Parameter key. * */ - private final String key; + private String key; /** * @return Whether to ignore `value` and keep the previous parameter value. Ignored when initially provisioning a product. * */ - private final @Nullable Boolean usePreviousValue; + private @Nullable Boolean usePreviousValue; /** * @return Parameter value. * */ - private final @Nullable String value; - - @CustomType.Constructor - private ProvisionedProductProvisioningParameter( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("usePreviousValue") @Nullable Boolean usePreviousValue, - @CustomType.Parameter("value") @Nullable String value) { - this.key = key; - this.usePreviousValue = usePreviousValue; - this.value = value; - } + private @Nullable String value; + private ProvisionedProductProvisioningParameter() {} /** * @return Parameter key. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ProvisionedProductProvisioningParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private @Nullable Boolean usePreviousValue; private @Nullable String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProvisionedProductProvisioningParameter defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,19 +71,27 @@ public Builder(ProvisionedProductProvisioningParameter defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder usePreviousValue(@Nullable Boolean usePreviousValue) { this.usePreviousValue = usePreviousValue; return this; } + @CustomType.Setter public Builder value(@Nullable String value) { this.value = value; return this; - } public ProvisionedProductProvisioningParameter build() { - return new ProvisionedProductProvisioningParameter(key, usePreviousValue, value); + } + public ProvisionedProductProvisioningParameter build() { + final var o = new ProvisionedProductProvisioningParameter(); + o.key = key; + o.usePreviousValue = usePreviousValue; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProvisionedProductStackSetProvisioningPreferences.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProvisionedProductStackSetProvisioningPreferences.java index b25e9332269..101f8bc2b05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProvisionedProductStackSetProvisioningPreferences.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ProvisionedProductStackSetProvisioningPreferences.java @@ -17,49 +17,34 @@ public final class ProvisionedProductStackSetProvisioningPreferences { * @return One or more AWS accounts that will have access to the provisioned product. The AWS accounts specified should be within the list of accounts in the STACKSET constraint. To get the list of accounts in the STACKSET constraint, use the `aws_servicecatalog_provisioning_parameters` data source. If no values are specified, the default value is all accounts from the STACKSET constraint. * */ - private final @Nullable List accounts; + private @Nullable List accounts; /** * @return Number of accounts, per region, for which this operation can fail before AWS Service Catalog stops the operation in that region. If the operation is stopped in a region, AWS Service Catalog doesn't attempt the operation in any subsequent regions. You must specify either `failure_tolerance_count` or `failure_tolerance_percentage`, but not both. The default value is 0 if no value is specified. * */ - private final @Nullable Integer failureToleranceCount; + private @Nullable Integer failureToleranceCount; /** * @return Percentage of accounts, per region, for which this stack operation can fail before AWS Service Catalog stops the operation in that region. If the operation is stopped in a region, AWS Service Catalog doesn't attempt the operation in any subsequent regions. When calculating the number of accounts based on the specified percentage, AWS Service Catalog rounds down to the next whole number. You must specify either `failure_tolerance_count` or `failure_tolerance_percentage`, but not both. * */ - private final @Nullable Integer failureTolerancePercentage; + private @Nullable Integer failureTolerancePercentage; /** * @return Maximum number of accounts in which to perform this operation at one time. This is dependent on the value of `failure_tolerance_count`. `max_concurrency_count` is at most one more than the `failure_tolerance_count`. Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. You must specify either `max_concurrency_count` or `max_concurrency_percentage`, but not both. * */ - private final @Nullable Integer maxConcurrencyCount; + private @Nullable Integer maxConcurrencyCount; /** * @return Maximum percentage of accounts in which to perform this operation at one time. When calculating the number of accounts based on the specified percentage, AWS Service Catalog rounds down to the next whole number. This is true except in cases where rounding down would result is zero. In this case, AWS Service Catalog sets the number as 1 instead. Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. You must specify either `max_concurrency_count` or `max_concurrency_percentage`, but not both. * */ - private final @Nullable Integer maxConcurrencyPercentage; + private @Nullable Integer maxConcurrencyPercentage; /** * @return One or more AWS Regions where the provisioned product will be available. The specified regions should be within the list of regions from the STACKSET constraint. To get the list of regions in the STACKSET constraint, use the `aws_servicecatalog_provisioning_parameters` data source. If no values are specified, the default value is all regions from the STACKSET constraint. * */ - private final @Nullable List regions; - - @CustomType.Constructor - private ProvisionedProductStackSetProvisioningPreferences( - @CustomType.Parameter("accounts") @Nullable List accounts, - @CustomType.Parameter("failureToleranceCount") @Nullable Integer failureToleranceCount, - @CustomType.Parameter("failureTolerancePercentage") @Nullable Integer failureTolerancePercentage, - @CustomType.Parameter("maxConcurrencyCount") @Nullable Integer maxConcurrencyCount, - @CustomType.Parameter("maxConcurrencyPercentage") @Nullable Integer maxConcurrencyPercentage, - @CustomType.Parameter("regions") @Nullable List regions) { - this.accounts = accounts; - this.failureToleranceCount = failureToleranceCount; - this.failureTolerancePercentage = failureTolerancePercentage; - this.maxConcurrencyCount = maxConcurrencyCount; - this.maxConcurrencyPercentage = maxConcurrencyPercentage; - this.regions = regions; - } + private @Nullable List regions; + private ProvisionedProductStackSetProvisioningPreferences() {} /** * @return One or more AWS accounts that will have access to the provisioned product. The AWS accounts specified should be within the list of accounts in the STACKSET constraint. To get the list of accounts in the STACKSET constraint, use the `aws_servicecatalog_provisioning_parameters` data source. If no values are specified, the default value is all accounts from the STACKSET constraint. * @@ -110,7 +95,7 @@ public static Builder builder() { public static Builder builder(ProvisionedProductStackSetProvisioningPreferences defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List accounts; private @Nullable Integer failureToleranceCount; @@ -118,11 +103,7 @@ public static final class Builder { private @Nullable Integer maxConcurrencyCount; private @Nullable Integer maxConcurrencyPercentage; private @Nullable List regions; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ProvisionedProductStackSetProvisioningPreferences defaults) { Objects.requireNonNull(defaults); this.accounts = defaults.accounts; @@ -133,6 +114,7 @@ public Builder(ProvisionedProductStackSetProvisioningPreferences defaults) { this.regions = defaults.regions; } + @CustomType.Setter public Builder accounts(@Nullable List accounts) { this.accounts = accounts; return this; @@ -140,30 +122,43 @@ public Builder accounts(@Nullable List accounts) { public Builder accounts(String... accounts) { return accounts(List.of(accounts)); } + @CustomType.Setter public Builder failureToleranceCount(@Nullable Integer failureToleranceCount) { this.failureToleranceCount = failureToleranceCount; return this; } + @CustomType.Setter public Builder failureTolerancePercentage(@Nullable Integer failureTolerancePercentage) { this.failureTolerancePercentage = failureTolerancePercentage; return this; } + @CustomType.Setter public Builder maxConcurrencyCount(@Nullable Integer maxConcurrencyCount) { this.maxConcurrencyCount = maxConcurrencyCount; return this; } + @CustomType.Setter public Builder maxConcurrencyPercentage(@Nullable Integer maxConcurrencyPercentage) { this.maxConcurrencyPercentage = maxConcurrencyPercentage; return this; } + @CustomType.Setter public Builder regions(@Nullable List regions) { this.regions = regions; return this; } public Builder regions(String... regions) { return regions(List.of(regions)); - } public ProvisionedProductStackSetProvisioningPreferences build() { - return new ProvisionedProductStackSetProvisioningPreferences(accounts, failureToleranceCount, failureTolerancePercentage, maxConcurrencyCount, maxConcurrencyPercentage, regions); + } + public ProvisionedProductStackSetProvisioningPreferences build() { + final var o = new ProvisionedProductStackSetProvisioningPreferences(); + o.accounts = accounts; + o.failureToleranceCount = failureToleranceCount; + o.failureTolerancePercentage = failureTolerancePercentage; + o.maxConcurrencyCount = maxConcurrencyCount; + o.maxConcurrencyPercentage = maxConcurrencyPercentage; + o.regions = regions; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ServiceActionDefinition.java b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ServiceActionDefinition.java index b2a6c003ae9..14b0d4bb406 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ServiceActionDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicecatalog/outputs/ServiceActionDefinition.java @@ -15,42 +15,29 @@ public final class ServiceActionDefinition { * @return ARN of the role that performs the self-service actions on your behalf. For example, `arn:aws:iam::12345678910:role/ActionRole`. To reuse the provisioned product launch role, set to `LAUNCH_ROLE`. * */ - private final @Nullable String assumeRole; + private @Nullable String assumeRole; /** * @return Name of the SSM document. For example, `AWS-RestartEC2Instance`. If you are using a shared SSM document, you must provide the ARN instead of the name. * */ - private final String name; + private String name; /** * @return List of parameters in JSON format. For example: `[{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}]` or `[{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}]`. * */ - private final @Nullable String parameters; + private @Nullable String parameters; /** * @return Service action definition type. Valid value is `SSM_AUTOMATION`. Default is `SSM_AUTOMATION`. * */ - private final @Nullable String type; + private @Nullable String type; /** * @return SSM document version. For example, `1`. * */ - private final String version; - - @CustomType.Constructor - private ServiceActionDefinition( - @CustomType.Parameter("assumeRole") @Nullable String assumeRole, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("parameters") @Nullable String parameters, - @CustomType.Parameter("type") @Nullable String type, - @CustomType.Parameter("version") String version) { - this.assumeRole = assumeRole; - this.name = name; - this.parameters = parameters; - this.type = type; - this.version = version; - } + private String version; + private ServiceActionDefinition() {} /** * @return ARN of the role that performs the self-service actions on your behalf. For example, `arn:aws:iam::12345678910:role/ActionRole`. To reuse the provisioned product launch role, set to `LAUNCH_ROLE`. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(ServiceActionDefinition defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String assumeRole; private String name; private @Nullable String parameters; private @Nullable String type; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceActionDefinition defaults) { Objects.requireNonNull(defaults); this.assumeRole = defaults.assumeRole; @@ -115,27 +98,39 @@ public Builder(ServiceActionDefinition defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder assumeRole(@Nullable String assumeRole) { this.assumeRole = assumeRole; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder parameters(@Nullable String parameters) { this.parameters = parameters; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public ServiceActionDefinition build() { - return new ServiceActionDefinition(assumeRole, name, parameters, type, version); + } + public ServiceActionDefinition build() { + final var o = new ServiceActionDefinition(); + o.assumeRole = assumeRole; + o.name = name; + o.parameters = parameters; + o.type = type; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetDnsNamespaceResult.java b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetDnsNamespaceResult.java index 9689cbf7d46..f28601305f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetDnsNamespaceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetDnsNamespaceResult.java @@ -14,48 +14,31 @@ public final class GetDnsNamespaceResult { * @return The Amazon Resource Name (ARN) of the namespace. * */ - private final String arn; + private String arn; /** * @return A description of the namespace. * */ - private final String description; + private String description; /** * @return The ID for the hosted zone that Amazon Route 53 creates when you create a namespace. * */ - private final String hostedZone; + private String hostedZone; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return A map of tags for the resource. * */ - private final Map tags; - private final String type; - - @CustomType.Constructor - private GetDnsNamespaceResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("hostedZone") String hostedZone, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("type") String type) { - this.arn = arn; - this.description = description; - this.hostedZone = hostedZone; - this.id = id; - this.name = name; - this.tags = tags; - this.type = type; - } + private Map tags; + private String type; + private GetDnsNamespaceResult() {} /** * @return The Amazon Resource Name (ARN) of the namespace. * @@ -105,7 +88,7 @@ public static Builder builder() { public static Builder builder(GetDnsNamespaceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -114,11 +97,7 @@ public static final class Builder { private String name; private Map tags; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDnsNamespaceResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -130,35 +109,51 @@ public Builder(GetDnsNamespaceResult defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder hostedZone(String hostedZone) { this.hostedZone = Objects.requireNonNull(hostedZone); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetDnsNamespaceResult build() { - return new GetDnsNamespaceResult(arn, description, hostedZone, id, name, tags, type); + } + public GetDnsNamespaceResult build() { + final var o = new GetDnsNamespaceResult(); + o.arn = arn; + o.description = description; + o.hostedZone = hostedZone; + o.id = id; + o.name = name; + o.tags = tags; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetHttpNamespaceResult.java b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetHttpNamespaceResult.java index d66d95d5e8f..5c12872d31e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetHttpNamespaceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetHttpNamespaceResult.java @@ -14,45 +14,30 @@ public final class GetHttpNamespaceResult { * @return The ARN that Amazon Route 53 assigns to the namespace when you create it. * */ - private final String arn; + private String arn; /** * @return The description that you specify for the namespace when you create it. * */ - private final String description; + private String description; /** * @return The name of an HTTP namespace. * */ - private final String httpName; + private String httpName; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return A map of tags for the resource. * */ - private final Map tags; - - @CustomType.Constructor - private GetHttpNamespaceResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("httpName") String httpName, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.description = description; - this.httpName = httpName; - this.id = id; - this.name = name; - this.tags = tags; - } + private Map tags; + private GetHttpNamespaceResult() {} /** * @return The ARN that Amazon Route 53 assigns to the namespace when you create it. * @@ -99,7 +84,7 @@ public static Builder builder() { public static Builder builder(GetHttpNamespaceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -107,11 +92,7 @@ public static final class Builder { private String id; private String name; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetHttpNamespaceResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -122,31 +103,45 @@ public Builder(GetHttpNamespaceResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder httpName(String httpName) { this.httpName = Objects.requireNonNull(httpName); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetHttpNamespaceResult build() { - return new GetHttpNamespaceResult(arn, description, httpName, id, name, tags); + } + public GetHttpNamespaceResult build() { + final var o = new GetHttpNamespaceResult(); + o.arn = arn; + o.description = description; + o.httpName = httpName; + o.id = id; + o.name = name; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceDnsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceDnsConfig.java index cec2ece3907..0c2368b2081 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceDnsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceDnsConfig.java @@ -15,28 +15,19 @@ public final class GetServiceDnsConfig { * @return An array that contains one DnsRecord object for each resource record set. * */ - private final List dnsRecords; + private List dnsRecords; /** * @return The ID of the namespace that the service belongs to. * */ - private final String namespaceId; + private String namespaceId; /** * @return The routing policy that you want to apply to all records that Route 53 creates when you register an instance and specify the service. Valid Values: MULTIVALUE, WEIGHTED * */ - private final String routingPolicy; - - @CustomType.Constructor - private GetServiceDnsConfig( - @CustomType.Parameter("dnsRecords") List dnsRecords, - @CustomType.Parameter("namespaceId") String namespaceId, - @CustomType.Parameter("routingPolicy") String routingPolicy) { - this.dnsRecords = dnsRecords; - this.namespaceId = namespaceId; - this.routingPolicy = routingPolicy; - } + private String routingPolicy; + private GetServiceDnsConfig() {} /** * @return An array that contains one DnsRecord object for each resource record set. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(GetServiceDnsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List dnsRecords; private String namespaceId; private String routingPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceDnsConfig defaults) { Objects.requireNonNull(defaults); this.dnsRecords = defaults.dnsRecords; @@ -83,6 +70,7 @@ public Builder(GetServiceDnsConfig defaults) { this.routingPolicy = defaults.routingPolicy; } + @CustomType.Setter public Builder dnsRecords(List dnsRecords) { this.dnsRecords = Objects.requireNonNull(dnsRecords); return this; @@ -90,15 +78,22 @@ public Builder dnsRecords(List dnsRecords) { public Builder dnsRecords(GetServiceDnsConfigDnsRecord... dnsRecords) { return dnsRecords(List.of(dnsRecords)); } + @CustomType.Setter public Builder namespaceId(String namespaceId) { this.namespaceId = Objects.requireNonNull(namespaceId); return this; } + @CustomType.Setter public Builder routingPolicy(String routingPolicy) { this.routingPolicy = Objects.requireNonNull(routingPolicy); return this; - } public GetServiceDnsConfig build() { - return new GetServiceDnsConfig(dnsRecords, namespaceId, routingPolicy); + } + public GetServiceDnsConfig build() { + final var o = new GetServiceDnsConfig(); + o.dnsRecords = dnsRecords; + o.namespaceId = namespaceId; + o.routingPolicy = routingPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceDnsConfigDnsRecord.java b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceDnsConfigDnsRecord.java index 94140ef1627..e0f27407c23 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceDnsConfigDnsRecord.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceDnsConfigDnsRecord.java @@ -14,21 +14,14 @@ public final class GetServiceDnsConfigDnsRecord { * @return The amount of time, in seconds, that you want DNS resolvers to cache the settings for this resource record set. * */ - private final Integer ttl; + private Integer ttl; /** * @return The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy. Valid Values: HTTP, HTTPS, TCP * */ - private final String type; - - @CustomType.Constructor - private GetServiceDnsConfigDnsRecord( - @CustomType.Parameter("ttl") Integer ttl, - @CustomType.Parameter("type") String type) { - this.ttl = ttl; - this.type = type; - } + private String type; + private GetServiceDnsConfigDnsRecord() {} /** * @return The amount of time, in seconds, that you want DNS resolvers to cache the settings for this resource record set. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(GetServiceDnsConfigDnsRecord defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer ttl; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceDnsConfigDnsRecord defaults) { Objects.requireNonNull(defaults); this.ttl = defaults.ttl; this.type = defaults.type; } + @CustomType.Setter public Builder ttl(Integer ttl) { this.ttl = Objects.requireNonNull(ttl); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetServiceDnsConfigDnsRecord build() { - return new GetServiceDnsConfigDnsRecord(ttl, type); + } + public GetServiceDnsConfigDnsRecord build() { + final var o = new GetServiceDnsConfigDnsRecord(); + o.ttl = ttl; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceHealthCheckConfig.java b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceHealthCheckConfig.java index 2206ed826ec..1cc4a1ca467 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceHealthCheckConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceHealthCheckConfig.java @@ -14,28 +14,19 @@ public final class GetServiceHealthCheckConfig { * @return The number of 30-second intervals that you want service discovery to wait before it changes the health status of a service instance. Maximum value of 10. * */ - private final Integer failureThreshold; + private Integer failureThreshold; /** * @return The path that you want Route 53 to request when performing health checks. Route 53 automatically adds the DNS name for the service. If you don't specify a value, the default value is /. * */ - private final String resourcePath; + private String resourcePath; /** * @return The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy. Valid Values: HTTP, HTTPS, TCP * */ - private final String type; - - @CustomType.Constructor - private GetServiceHealthCheckConfig( - @CustomType.Parameter("failureThreshold") Integer failureThreshold, - @CustomType.Parameter("resourcePath") String resourcePath, - @CustomType.Parameter("type") String type) { - this.failureThreshold = failureThreshold; - this.resourcePath = resourcePath; - this.type = type; - } + private String type; + private GetServiceHealthCheckConfig() {} /** * @return The number of 30-second intervals that you want service discovery to wait before it changes the health status of a service instance. Maximum value of 10. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetServiceHealthCheckConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer failureThreshold; private String resourcePath; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceHealthCheckConfig defaults) { Objects.requireNonNull(defaults); this.failureThreshold = defaults.failureThreshold; @@ -82,19 +69,27 @@ public Builder(GetServiceHealthCheckConfig defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder failureThreshold(Integer failureThreshold) { this.failureThreshold = Objects.requireNonNull(failureThreshold); return this; } + @CustomType.Setter public Builder resourcePath(String resourcePath) { this.resourcePath = Objects.requireNonNull(resourcePath); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public GetServiceHealthCheckConfig build() { - return new GetServiceHealthCheckConfig(failureThreshold, resourcePath, type); + } + public GetServiceHealthCheckConfig build() { + final var o = new GetServiceHealthCheckConfig(); + o.failureThreshold = failureThreshold; + o.resourcePath = resourcePath; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceHealthCheckCustomConfig.java b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceHealthCheckCustomConfig.java index c132de5de18..afe54c37d35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceHealthCheckCustomConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceHealthCheckCustomConfig.java @@ -13,13 +13,9 @@ public final class GetServiceHealthCheckCustomConfig { * @return The number of 30-second intervals that you want service discovery to wait before it changes the health status of a service instance. Maximum value of 10. * */ - private final Integer failureThreshold; - - @CustomType.Constructor - private GetServiceHealthCheckCustomConfig(@CustomType.Parameter("failureThreshold") Integer failureThreshold) { - this.failureThreshold = failureThreshold; - } + private Integer failureThreshold; + private GetServiceHealthCheckCustomConfig() {} /** * @return The number of 30-second intervals that you want service discovery to wait before it changes the health status of a service instance. Maximum value of 10. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetServiceHealthCheckCustomConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer failureThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceHealthCheckCustomConfig defaults) { Objects.requireNonNull(defaults); this.failureThreshold = defaults.failureThreshold; } + @CustomType.Setter public Builder failureThreshold(Integer failureThreshold) { this.failureThreshold = Objects.requireNonNull(failureThreshold); return this; - } public GetServiceHealthCheckCustomConfig build() { - return new GetServiceHealthCheckCustomConfig(failureThreshold); + } + public GetServiceHealthCheckCustomConfig build() { + final var o = new GetServiceHealthCheckCustomConfig(); + o.failureThreshold = failureThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceResult.java b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceResult.java index f4d26eb504e..e97710273a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/GetServiceResult.java @@ -19,73 +19,50 @@ public final class GetServiceResult { * @return The ARN of the service. * */ - private final String arn; + private String arn; /** * @return The description of the service. * */ - private final String description; + private String description; /** * @return A complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance. * */ - private final List dnsConfigs; + private List dnsConfigs; /** * @return A complex type that contains settings for an optional health check. Only for Public DNS namespaces. * */ - private final List healthCheckConfigs; + private List healthCheckConfigs; /** * @return A complex type that contains settings for ECS managed health checks. * */ - private final List healthCheckCustomConfigs; + private List healthCheckCustomConfigs; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return The ID of the namespace to use for DNS configuration. * */ - private final String namespaceId; + private String namespaceId; /** * @return A map of tags to assign to the service. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. * */ - private final Map tagsAll; - - @CustomType.Constructor - private GetServiceResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("dnsConfigs") List dnsConfigs, - @CustomType.Parameter("healthCheckConfigs") List healthCheckConfigs, - @CustomType.Parameter("healthCheckCustomConfigs") List healthCheckCustomConfigs, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("namespaceId") String namespaceId, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("tagsAll") Map tagsAll) { - this.arn = arn; - this.description = description; - this.dnsConfigs = dnsConfigs; - this.healthCheckConfigs = healthCheckConfigs; - this.healthCheckCustomConfigs = healthCheckCustomConfigs; - this.id = id; - this.name = name; - this.namespaceId = namespaceId; - this.tags = tags; - this.tagsAll = tagsAll; - } + private Map tagsAll; + private GetServiceResult() {} /** * @return The ARN of the service. * @@ -160,7 +137,7 @@ public static Builder builder() { public static Builder builder(GetServiceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -172,11 +149,7 @@ public static final class Builder { private String namespaceId; private @Nullable Map tags; private Map tagsAll; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -191,14 +164,17 @@ public Builder(GetServiceResult defaults) { this.tagsAll = defaults.tagsAll; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder dnsConfigs(List dnsConfigs) { this.dnsConfigs = Objects.requireNonNull(dnsConfigs); return this; @@ -206,6 +182,7 @@ public Builder dnsConfigs(List dnsConfigs) { public Builder dnsConfigs(GetServiceDnsConfig... dnsConfigs) { return dnsConfigs(List.of(dnsConfigs)); } + @CustomType.Setter public Builder healthCheckConfigs(List healthCheckConfigs) { this.healthCheckConfigs = Objects.requireNonNull(healthCheckConfigs); return this; @@ -213,6 +190,7 @@ public Builder healthCheckConfigs(List healthCheckC public Builder healthCheckConfigs(GetServiceHealthCheckConfig... healthCheckConfigs) { return healthCheckConfigs(List.of(healthCheckConfigs)); } + @CustomType.Setter public Builder healthCheckCustomConfigs(List healthCheckCustomConfigs) { this.healthCheckCustomConfigs = Objects.requireNonNull(healthCheckCustomConfigs); return this; @@ -220,27 +198,44 @@ public Builder healthCheckCustomConfigs(List public Builder healthCheckCustomConfigs(GetServiceHealthCheckCustomConfig... healthCheckCustomConfigs) { return healthCheckCustomConfigs(List.of(healthCheckCustomConfigs)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder namespaceId(String namespaceId) { this.namespaceId = Objects.requireNonNull(namespaceId); return this; } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder tagsAll(Map tagsAll) { this.tagsAll = Objects.requireNonNull(tagsAll); return this; - } public GetServiceResult build() { - return new GetServiceResult(arn, description, dnsConfigs, healthCheckConfigs, healthCheckCustomConfigs, id, name, namespaceId, tags, tagsAll); + } + public GetServiceResult build() { + final var o = new GetServiceResult(); + o.arn = arn; + o.description = description; + o.dnsConfigs = dnsConfigs; + o.healthCheckConfigs = healthCheckConfigs; + o.healthCheckCustomConfigs = healthCheckCustomConfigs; + o.id = id; + o.name = name; + o.namespaceId = namespaceId; + o.tags = tags; + o.tagsAll = tagsAll; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceDnsConfig.java b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceDnsConfig.java index 983523f2955..72334ac869f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceDnsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceDnsConfig.java @@ -17,28 +17,19 @@ public final class ServiceDnsConfig { * @return An array that contains one DnsRecord object for each resource record set. * */ - private final List dnsRecords; + private List dnsRecords; /** * @return The ID of the namespace to use for DNS configuration. * */ - private final String namespaceId; + private String namespaceId; /** * @return The routing policy that you want to apply to all records that Route 53 creates when you register an instance and specify the service. Valid Values: MULTIVALUE, WEIGHTED * */ - private final @Nullable String routingPolicy; - - @CustomType.Constructor - private ServiceDnsConfig( - @CustomType.Parameter("dnsRecords") List dnsRecords, - @CustomType.Parameter("namespaceId") String namespaceId, - @CustomType.Parameter("routingPolicy") @Nullable String routingPolicy) { - this.dnsRecords = dnsRecords; - this.namespaceId = namespaceId; - this.routingPolicy = routingPolicy; - } + private @Nullable String routingPolicy; + private ServiceDnsConfig() {} /** * @return An array that contains one DnsRecord object for each resource record set. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(ServiceDnsConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List dnsRecords; private String namespaceId; private @Nullable String routingPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceDnsConfig defaults) { Objects.requireNonNull(defaults); this.dnsRecords = defaults.dnsRecords; @@ -85,6 +72,7 @@ public Builder(ServiceDnsConfig defaults) { this.routingPolicy = defaults.routingPolicy; } + @CustomType.Setter public Builder dnsRecords(List dnsRecords) { this.dnsRecords = Objects.requireNonNull(dnsRecords); return this; @@ -92,15 +80,22 @@ public Builder dnsRecords(List dnsRecords) { public Builder dnsRecords(ServiceDnsConfigDnsRecord... dnsRecords) { return dnsRecords(List.of(dnsRecords)); } + @CustomType.Setter public Builder namespaceId(String namespaceId) { this.namespaceId = Objects.requireNonNull(namespaceId); return this; } + @CustomType.Setter public Builder routingPolicy(@Nullable String routingPolicy) { this.routingPolicy = routingPolicy; return this; - } public ServiceDnsConfig build() { - return new ServiceDnsConfig(dnsRecords, namespaceId, routingPolicy); + } + public ServiceDnsConfig build() { + final var o = new ServiceDnsConfig(); + o.dnsRecords = dnsRecords; + o.namespaceId = namespaceId; + o.routingPolicy = routingPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceDnsConfigDnsRecord.java b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceDnsConfigDnsRecord.java index c607631771d..07a2e9553c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceDnsConfigDnsRecord.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceDnsConfigDnsRecord.java @@ -14,21 +14,14 @@ public final class ServiceDnsConfigDnsRecord { * @return The amount of time, in seconds, that you want DNS resolvers to cache the settings for this resource record set. * */ - private final Integer ttl; + private Integer ttl; /** * @return The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy. Valid Values: HTTP, HTTPS, TCP * */ - private final String type; - - @CustomType.Constructor - private ServiceDnsConfigDnsRecord( - @CustomType.Parameter("ttl") Integer ttl, - @CustomType.Parameter("type") String type) { - this.ttl = ttl; - this.type = type; - } + private String type; + private ServiceDnsConfigDnsRecord() {} /** * @return The amount of time, in seconds, that you want DNS resolvers to cache the settings for this resource record set. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(ServiceDnsConfigDnsRecord defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer ttl; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceDnsConfigDnsRecord defaults) { Objects.requireNonNull(defaults); this.ttl = defaults.ttl; this.type = defaults.type; } + @CustomType.Setter public Builder ttl(Integer ttl) { this.ttl = Objects.requireNonNull(ttl); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ServiceDnsConfigDnsRecord build() { - return new ServiceDnsConfigDnsRecord(ttl, type); + } + public ServiceDnsConfigDnsRecord build() { + final var o = new ServiceDnsConfigDnsRecord(); + o.ttl = ttl; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceHealthCheckConfig.java b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceHealthCheckConfig.java index 3c0ef42d4b1..a118b3ca6d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceHealthCheckConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceHealthCheckConfig.java @@ -16,28 +16,19 @@ public final class ServiceHealthCheckConfig { * @return The number of 30-second intervals that you want service discovery to wait before it changes the health status of a service instance. Maximum value of 10. * */ - private final @Nullable Integer failureThreshold; + private @Nullable Integer failureThreshold; /** * @return The path that you want Route 53 to request when performing health checks. Route 53 automatically adds the DNS name for the service. If you don't specify a value, the default value is /. * */ - private final @Nullable String resourcePath; + private @Nullable String resourcePath; /** * @return The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy. Valid Values: HTTP, HTTPS, TCP * */ - private final @Nullable String type; - - @CustomType.Constructor - private ServiceHealthCheckConfig( - @CustomType.Parameter("failureThreshold") @Nullable Integer failureThreshold, - @CustomType.Parameter("resourcePath") @Nullable String resourcePath, - @CustomType.Parameter("type") @Nullable String type) { - this.failureThreshold = failureThreshold; - this.resourcePath = resourcePath; - this.type = type; - } + private @Nullable String type; + private ServiceHealthCheckConfig() {} /** * @return The number of 30-second intervals that you want service discovery to wait before it changes the health status of a service instance. Maximum value of 10. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ServiceHealthCheckConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer failureThreshold; private @Nullable String resourcePath; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceHealthCheckConfig defaults) { Objects.requireNonNull(defaults); this.failureThreshold = defaults.failureThreshold; @@ -84,19 +71,27 @@ public Builder(ServiceHealthCheckConfig defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder failureThreshold(@Nullable Integer failureThreshold) { this.failureThreshold = failureThreshold; return this; } + @CustomType.Setter public Builder resourcePath(@Nullable String resourcePath) { this.resourcePath = resourcePath; return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public ServiceHealthCheckConfig build() { - return new ServiceHealthCheckConfig(failureThreshold, resourcePath, type); + } + public ServiceHealthCheckConfig build() { + final var o = new ServiceHealthCheckConfig(); + o.failureThreshold = failureThreshold; + o.resourcePath = resourcePath; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceHealthCheckCustomConfig.java b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceHealthCheckCustomConfig.java index 1cce466d1f8..487c7c4666d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceHealthCheckCustomConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicediscovery/outputs/ServiceHealthCheckCustomConfig.java @@ -15,13 +15,9 @@ public final class ServiceHealthCheckCustomConfig { * @return The number of 30-second intervals that you want service discovery to wait before it changes the health status of a service instance. Maximum value of 10. * */ - private final @Nullable Integer failureThreshold; - - @CustomType.Constructor - private ServiceHealthCheckCustomConfig(@CustomType.Parameter("failureThreshold") @Nullable Integer failureThreshold) { - this.failureThreshold = failureThreshold; - } + private @Nullable Integer failureThreshold; + private ServiceHealthCheckCustomConfig() {} /** * @return The number of 30-second intervals that you want service discovery to wait before it changes the health status of a service instance. Maximum value of 10. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ServiceHealthCheckCustomConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer failureThreshold; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServiceHealthCheckCustomConfig defaults) { Objects.requireNonNull(defaults); this.failureThreshold = defaults.failureThreshold; } + @CustomType.Setter public Builder failureThreshold(@Nullable Integer failureThreshold) { this.failureThreshold = failureThreshold; return this; - } public ServiceHealthCheckCustomConfig build() { - return new ServiceHealthCheckCustomConfig(failureThreshold); + } + public ServiceHealthCheckCustomConfig build() { + final var o = new ServiceHealthCheckCustomConfig(); + o.failureThreshold = failureThreshold; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicequotas/outputs/GetServiceQuotaResult.java b/sdk/java/src/main/java/com/pulumi/aws/servicequotas/outputs/GetServiceQuotaResult.java index b313428b02d..6903de5e3f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicequotas/outputs/GetServiceQuotaResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicequotas/outputs/GetServiceQuotaResult.java @@ -15,65 +15,42 @@ public final class GetServiceQuotaResult { * @return Whether the service quota is adjustable. * */ - private final Boolean adjustable; + private Boolean adjustable; /** * @return Amazon Resource Name (ARN) of the service quota. * */ - private final String arn; + private String arn; /** * @return Default value of the service quota. * */ - private final Double defaultValue; + private Double defaultValue; /** * @return Whether the service quota is global for the AWS account. * */ - private final Boolean globalQuota; + private Boolean globalQuota; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String quotaCode; - private final String quotaName; - private final String serviceCode; + private String id; + private String quotaCode; + private String quotaName; + private String serviceCode; /** * @return Name of the service. * */ - private final String serviceName; + private String serviceName; /** * @return Current value of the service quota. * */ - private final Double value; - - @CustomType.Constructor - private GetServiceQuotaResult( - @CustomType.Parameter("adjustable") Boolean adjustable, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("defaultValue") Double defaultValue, - @CustomType.Parameter("globalQuota") Boolean globalQuota, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("quotaCode") String quotaCode, - @CustomType.Parameter("quotaName") String quotaName, - @CustomType.Parameter("serviceCode") String serviceCode, - @CustomType.Parameter("serviceName") String serviceName, - @CustomType.Parameter("value") Double value) { - this.adjustable = adjustable; - this.arn = arn; - this.defaultValue = defaultValue; - this.globalQuota = globalQuota; - this.id = id; - this.quotaCode = quotaCode; - this.quotaName = quotaName; - this.serviceCode = serviceCode; - this.serviceName = serviceName; - this.value = value; - } + private Double value; + private GetServiceQuotaResult() {} /** * @return Whether the service quota is adjustable. * @@ -140,7 +117,7 @@ public static Builder builder() { public static Builder builder(GetServiceQuotaResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean adjustable; private String arn; @@ -152,11 +129,7 @@ public static final class Builder { private String serviceCode; private String serviceName; private Double value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceQuotaResult defaults) { Objects.requireNonNull(defaults); this.adjustable = defaults.adjustable; @@ -171,47 +144,69 @@ public Builder(GetServiceQuotaResult defaults) { this.value = defaults.value; } + @CustomType.Setter public Builder adjustable(Boolean adjustable) { this.adjustable = Objects.requireNonNull(adjustable); return this; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder defaultValue(Double defaultValue) { this.defaultValue = Objects.requireNonNull(defaultValue); return this; } + @CustomType.Setter public Builder globalQuota(Boolean globalQuota) { this.globalQuota = Objects.requireNonNull(globalQuota); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder quotaCode(String quotaCode) { this.quotaCode = Objects.requireNonNull(quotaCode); return this; } + @CustomType.Setter public Builder quotaName(String quotaName) { this.quotaName = Objects.requireNonNull(quotaName); return this; } + @CustomType.Setter public Builder serviceCode(String serviceCode) { this.serviceCode = Objects.requireNonNull(serviceCode); return this; } + @CustomType.Setter public Builder serviceName(String serviceName) { this.serviceName = Objects.requireNonNull(serviceName); return this; } + @CustomType.Setter public Builder value(Double value) { this.value = Objects.requireNonNull(value); return this; - } public GetServiceQuotaResult build() { - return new GetServiceQuotaResult(adjustable, arn, defaultValue, globalQuota, id, quotaCode, quotaName, serviceCode, serviceName, value); + } + public GetServiceQuotaResult build() { + final var o = new GetServiceQuotaResult(); + o.adjustable = adjustable; + o.arn = arn; + o.defaultValue = defaultValue; + o.globalQuota = globalQuota; + o.id = id; + o.quotaCode = quotaCode; + o.quotaName = quotaName; + o.serviceCode = serviceCode; + o.serviceName = serviceName; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/servicequotas/outputs/GetServiceResult.java b/sdk/java/src/main/java/com/pulumi/aws/servicequotas/outputs/GetServiceResult.java index ea8e96cea47..c5a2119182f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/servicequotas/outputs/GetServiceResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/servicequotas/outputs/GetServiceResult.java @@ -13,24 +13,15 @@ public final class GetServiceResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Code of the service. * */ - private final String serviceCode; - private final String serviceName; - - @CustomType.Constructor - private GetServiceResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("serviceCode") String serviceCode, - @CustomType.Parameter("serviceName") String serviceName) { - this.id = id; - this.serviceCode = serviceCode; - this.serviceName = serviceName; - } + private String serviceCode; + private String serviceName; + private GetServiceResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -56,16 +47,12 @@ public static Builder builder() { public static Builder builder(GetServiceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String serviceCode; private String serviceName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServiceResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -73,19 +60,27 @@ public Builder(GetServiceResult defaults) { this.serviceName = defaults.serviceName; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder serviceCode(String serviceCode) { this.serviceCode = Objects.requireNonNull(serviceCode); return this; } + @CustomType.Setter public Builder serviceName(String serviceName) { this.serviceName = Objects.requireNonNull(serviceName); return this; - } public GetServiceResult build() { - return new GetServiceResult(id, serviceCode, serviceName); + } + public GetServiceResult build() { + final var o = new GetServiceResult(); + o.id = id; + o.serviceCode = serviceCode; + o.serviceName = serviceName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfgurationSetDeliveryOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfgurationSetDeliveryOptions.java index 0d54d8eabde..e1807b8cb4d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfgurationSetDeliveryOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfgurationSetDeliveryOptions.java @@ -15,13 +15,9 @@ public final class ConfgurationSetDeliveryOptions { * @return Whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is `Require`, messages are only delivered if a TLS connection can be established. If the value is `Optional`, messages can be delivered in plain text if a TLS connection can't be established. Valid values: `Require` or `Optional`. Defaults to `Optional`. * */ - private final @Nullable String tlsPolicy; - - @CustomType.Constructor - private ConfgurationSetDeliveryOptions(@CustomType.Parameter("tlsPolicy") @Nullable String tlsPolicy) { - this.tlsPolicy = tlsPolicy; - } + private @Nullable String tlsPolicy; + private ConfgurationSetDeliveryOptions() {} /** * @return Whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is `Require`, messages are only delivered if a TLS connection can be established. If the value is `Optional`, messages can be delivered in plain text if a TLS connection can't be established. Valid values: `Require` or `Optional`. Defaults to `Optional`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ConfgurationSetDeliveryOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String tlsPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConfgurationSetDeliveryOptions defaults) { Objects.requireNonNull(defaults); this.tlsPolicy = defaults.tlsPolicy; } + @CustomType.Setter public Builder tlsPolicy(@Nullable String tlsPolicy) { this.tlsPolicy = tlsPolicy; return this; - } public ConfgurationSetDeliveryOptions build() { - return new ConfgurationSetDeliveryOptions(tlsPolicy); + } + public ConfgurationSetDeliveryOptions build() { + final var o = new ConfgurationSetDeliveryOptions(); + o.tlsPolicy = tlsPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfgurationSetTrackingOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfgurationSetTrackingOptions.java index c471ddaf3af..28309ee1826 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfgurationSetTrackingOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfgurationSetTrackingOptions.java @@ -15,13 +15,9 @@ public final class ConfgurationSetTrackingOptions { * @return Custom subdomain that is used to redirect email recipients to the Amazon SES event tracking domain. * */ - private final @Nullable String customRedirectDomain; - - @CustomType.Constructor - private ConfgurationSetTrackingOptions(@CustomType.Parameter("customRedirectDomain") @Nullable String customRedirectDomain) { - this.customRedirectDomain = customRedirectDomain; - } + private @Nullable String customRedirectDomain; + private ConfgurationSetTrackingOptions() {} /** * @return Custom subdomain that is used to redirect email recipients to the Amazon SES event tracking domain. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ConfgurationSetTrackingOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String customRedirectDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConfgurationSetTrackingOptions defaults) { Objects.requireNonNull(defaults); this.customRedirectDomain = defaults.customRedirectDomain; } + @CustomType.Setter public Builder customRedirectDomain(@Nullable String customRedirectDomain) { this.customRedirectDomain = customRedirectDomain; return this; - } public ConfgurationSetTrackingOptions build() { - return new ConfgurationSetTrackingOptions(customRedirectDomain); + } + public ConfgurationSetTrackingOptions build() { + final var o = new ConfgurationSetTrackingOptions(); + o.customRedirectDomain = customRedirectDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfigurationSetDeliveryOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfigurationSetDeliveryOptions.java index 4415931e730..ef780462775 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfigurationSetDeliveryOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfigurationSetDeliveryOptions.java @@ -15,13 +15,9 @@ public final class ConfigurationSetDeliveryOptions { * @return Whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is `Require`, messages are only delivered if a TLS connection can be established. If the value is `Optional`, messages can be delivered in plain text if a TLS connection can't be established. Valid values: `Require` or `Optional`. Defaults to `Optional`. * */ - private final @Nullable String tlsPolicy; - - @CustomType.Constructor - private ConfigurationSetDeliveryOptions(@CustomType.Parameter("tlsPolicy") @Nullable String tlsPolicy) { - this.tlsPolicy = tlsPolicy; - } + private @Nullable String tlsPolicy; + private ConfigurationSetDeliveryOptions() {} /** * @return Whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is `Require`, messages are only delivered if a TLS connection can be established. If the value is `Optional`, messages can be delivered in plain text if a TLS connection can't be established. Valid values: `Require` or `Optional`. Defaults to `Optional`. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ConfigurationSetDeliveryOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String tlsPolicy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConfigurationSetDeliveryOptions defaults) { Objects.requireNonNull(defaults); this.tlsPolicy = defaults.tlsPolicy; } + @CustomType.Setter public Builder tlsPolicy(@Nullable String tlsPolicy) { this.tlsPolicy = tlsPolicy; return this; - } public ConfigurationSetDeliveryOptions build() { - return new ConfigurationSetDeliveryOptions(tlsPolicy); + } + public ConfigurationSetDeliveryOptions build() { + final var o = new ConfigurationSetDeliveryOptions(); + o.tlsPolicy = tlsPolicy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfigurationSetTrackingOptions.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfigurationSetTrackingOptions.java index c31dde0eee6..85bdc6d7d3b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfigurationSetTrackingOptions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ConfigurationSetTrackingOptions.java @@ -15,13 +15,9 @@ public final class ConfigurationSetTrackingOptions { * @return Custom subdomain that is used to redirect email recipients to the Amazon SES event tracking domain. * */ - private final @Nullable String customRedirectDomain; - - @CustomType.Constructor - private ConfigurationSetTrackingOptions(@CustomType.Parameter("customRedirectDomain") @Nullable String customRedirectDomain) { - this.customRedirectDomain = customRedirectDomain; - } + private @Nullable String customRedirectDomain; + private ConfigurationSetTrackingOptions() {} /** * @return Custom subdomain that is used to redirect email recipients to the Amazon SES event tracking domain. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ConfigurationSetTrackingOptions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String customRedirectDomain; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ConfigurationSetTrackingOptions defaults) { Objects.requireNonNull(defaults); this.customRedirectDomain = defaults.customRedirectDomain; } + @CustomType.Setter public Builder customRedirectDomain(@Nullable String customRedirectDomain) { this.customRedirectDomain = customRedirectDomain; return this; - } public ConfigurationSetTrackingOptions build() { - return new ConfigurationSetTrackingOptions(customRedirectDomain); + } + public ConfigurationSetTrackingOptions build() { + final var o = new ConfigurationSetTrackingOptions(); + o.customRedirectDomain = customRedirectDomain; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/EventDestinationCloudwatchDestination.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/EventDestinationCloudwatchDestination.java index b877156f643..9580a48bc9b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/EventDestinationCloudwatchDestination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/EventDestinationCloudwatchDestination.java @@ -13,28 +13,19 @@ public final class EventDestinationCloudwatchDestination { * @return The default value for the event * */ - private final String defaultValue; + private String defaultValue; /** * @return The name for the dimension * */ - private final String dimensionName; + private String dimensionName; /** * @return The source for the value. May be any of `"messageTag"`, `"emailHeader"` or `"linkTag"`. * */ - private final String valueSource; - - @CustomType.Constructor - private EventDestinationCloudwatchDestination( - @CustomType.Parameter("defaultValue") String defaultValue, - @CustomType.Parameter("dimensionName") String dimensionName, - @CustomType.Parameter("valueSource") String valueSource) { - this.defaultValue = defaultValue; - this.dimensionName = dimensionName; - this.valueSource = valueSource; - } + private String valueSource; + private EventDestinationCloudwatchDestination() {} /** * @return The default value for the event * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(EventDestinationCloudwatchDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String defaultValue; private String dimensionName; private String valueSource; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventDestinationCloudwatchDestination defaults) { Objects.requireNonNull(defaults); this.defaultValue = defaults.defaultValue; @@ -81,19 +68,27 @@ public Builder(EventDestinationCloudwatchDestination defaults) { this.valueSource = defaults.valueSource; } + @CustomType.Setter public Builder defaultValue(String defaultValue) { this.defaultValue = Objects.requireNonNull(defaultValue); return this; } + @CustomType.Setter public Builder dimensionName(String dimensionName) { this.dimensionName = Objects.requireNonNull(dimensionName); return this; } + @CustomType.Setter public Builder valueSource(String valueSource) { this.valueSource = Objects.requireNonNull(valueSource); return this; - } public EventDestinationCloudwatchDestination build() { - return new EventDestinationCloudwatchDestination(defaultValue, dimensionName, valueSource); + } + public EventDestinationCloudwatchDestination build() { + final var o = new EventDestinationCloudwatchDestination(); + o.defaultValue = defaultValue; + o.dimensionName = dimensionName; + o.valueSource = valueSource; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/EventDestinationKinesisDestination.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/EventDestinationKinesisDestination.java index d919891c141..4b535e9ee03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/EventDestinationKinesisDestination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/EventDestinationKinesisDestination.java @@ -13,21 +13,14 @@ public final class EventDestinationKinesisDestination { * @return The ARN of the role that has permissions to access the Kinesis Stream * */ - private final String roleArn; + private String roleArn; /** * @return The ARN of the Kinesis Stream * */ - private final String streamArn; - - @CustomType.Constructor - private EventDestinationKinesisDestination( - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("streamArn") String streamArn) { - this.roleArn = roleArn; - this.streamArn = streamArn; - } + private String streamArn; + private EventDestinationKinesisDestination() {} /** * @return The ARN of the role that has permissions to access the Kinesis Stream * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(EventDestinationKinesisDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String roleArn; private String streamArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventDestinationKinesisDestination defaults) { Objects.requireNonNull(defaults); this.roleArn = defaults.roleArn; this.streamArn = defaults.streamArn; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder streamArn(String streamArn) { this.streamArn = Objects.requireNonNull(streamArn); return this; - } public EventDestinationKinesisDestination build() { - return new EventDestinationKinesisDestination(roleArn, streamArn); + } + public EventDestinationKinesisDestination build() { + final var o = new EventDestinationKinesisDestination(); + o.roleArn = roleArn; + o.streamArn = streamArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/EventDestinationSnsDestination.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/EventDestinationSnsDestination.java index d8a2bd314ef..2d83040c592 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/EventDestinationSnsDestination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/EventDestinationSnsDestination.java @@ -13,13 +13,9 @@ public final class EventDestinationSnsDestination { * @return The ARN of the SNS topic * */ - private final String topicArn; - - @CustomType.Constructor - private EventDestinationSnsDestination(@CustomType.Parameter("topicArn") String topicArn) { - this.topicArn = topicArn; - } + private String topicArn; + private EventDestinationSnsDestination() {} /** * @return The ARN of the SNS topic * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(EventDestinationSnsDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String topicArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(EventDestinationSnsDestination defaults) { Objects.requireNonNull(defaults); this.topicArn = defaults.topicArn; } + @CustomType.Setter public Builder topicArn(String topicArn) { this.topicArn = Objects.requireNonNull(topicArn); return this; - } public EventDestinationSnsDestination build() { - return new EventDestinationSnsDestination(topicArn); + } + public EventDestinationSnsDestination build() { + final var o = new EventDestinationSnsDestination(); + o.topicArn = topicArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/GetActiveReceiptRuleSetResult.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/GetActiveReceiptRuleSetResult.java index 9a5ddaf7d32..cd796c1f4a0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/GetActiveReceiptRuleSetResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/GetActiveReceiptRuleSetResult.java @@ -13,28 +13,19 @@ public final class GetActiveReceiptRuleSetResult { * @return The SES receipt rule set ARN. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the rule set * */ - private final String ruleSetName; - - @CustomType.Constructor - private GetActiveReceiptRuleSetResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ruleSetName") String ruleSetName) { - this.arn = arn; - this.id = id; - this.ruleSetName = ruleSetName; - } + private String ruleSetName; + private GetActiveReceiptRuleSetResult() {} /** * @return The SES receipt rule set ARN. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetActiveReceiptRuleSetResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String ruleSetName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetActiveReceiptRuleSetResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetActiveReceiptRuleSetResult defaults) { this.ruleSetName = defaults.ruleSetName; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ruleSetName(String ruleSetName) { this.ruleSetName = Objects.requireNonNull(ruleSetName); return this; - } public GetActiveReceiptRuleSetResult build() { - return new GetActiveReceiptRuleSetResult(arn, id, ruleSetName); + } + public GetActiveReceiptRuleSetResult build() { + final var o = new GetActiveReceiptRuleSetResult(); + o.arn = arn; + o.id = id; + o.ruleSetName = ruleSetName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/GetDomainIdentityResult.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/GetDomainIdentityResult.java index 2a29dac8c88..732b0584802 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/GetDomainIdentityResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/GetDomainIdentityResult.java @@ -13,35 +13,24 @@ public final class GetDomainIdentityResult { * @return The ARN of the domain identity. * */ - private final String arn; + private String arn; /** * @return The name of the domain * */ - private final String domain; + private String domain; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorized SES to act on their behalf. * */ - private final String verificationToken; - - @CustomType.Constructor - private GetDomainIdentityResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("domain") String domain, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("verificationToken") String verificationToken) { - this.arn = arn; - this.domain = domain; - this.id = id; - this.verificationToken = verificationToken; - } + private String verificationToken; + private GetDomainIdentityResult() {} /** * @return The ARN of the domain identity. * @@ -78,17 +67,13 @@ public static Builder builder() { public static Builder builder(GetDomainIdentityResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String domain; private String id; private String verificationToken; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDomainIdentityResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -97,23 +82,33 @@ public Builder(GetDomainIdentityResult defaults) { this.verificationToken = defaults.verificationToken; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder domain(String domain) { this.domain = Objects.requireNonNull(domain); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder verificationToken(String verificationToken) { this.verificationToken = Objects.requireNonNull(verificationToken); return this; - } public GetDomainIdentityResult build() { - return new GetDomainIdentityResult(arn, domain, id, verificationToken); + } + public GetDomainIdentityResult build() { + final var o = new GetDomainIdentityResult(); + o.arn = arn; + o.domain = domain; + o.id = id; + o.verificationToken = verificationToken; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/GetEmailIdentityResult.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/GetEmailIdentityResult.java index f601ede38d4..d6a3e6e226a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/GetEmailIdentityResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/GetEmailIdentityResult.java @@ -13,28 +13,19 @@ public final class GetEmailIdentityResult { * @return The ARN of the email identity. * */ - private final String arn; + private String arn; /** * @return The email identity. * */ - private final String email; + private String email; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetEmailIdentityResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("email") String email, - @CustomType.Parameter("id") String id) { - this.arn = arn; - this.email = email; - this.id = id; - } + private String id; + private GetEmailIdentityResult() {} /** * @return The ARN of the email identity. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(GetEmailIdentityResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String email; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetEmailIdentityResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,19 +68,27 @@ public Builder(GetEmailIdentityResult defaults) { this.id = defaults.id; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder email(String email) { this.email = Objects.requireNonNull(email); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetEmailIdentityResult build() { - return new GetEmailIdentityResult(arn, email, id); + } + public GetEmailIdentityResult build() { + final var o = new GetEmailIdentityResult(); + o.arn = arn; + o.email = email; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleAddHeaderAction.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleAddHeaderAction.java index cf2c38175c0..39e414c9e30 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleAddHeaderAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleAddHeaderAction.java @@ -14,28 +14,19 @@ public final class ReceiptRuleAddHeaderAction { * @return The name of the header to add * */ - private final String headerName; + private String headerName; /** * @return The value of the header to add * */ - private final String headerValue; + private String headerValue; /** * @return The position of the action in the receipt rule * */ - private final Integer position; - - @CustomType.Constructor - private ReceiptRuleAddHeaderAction( - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("headerValue") String headerValue, - @CustomType.Parameter("position") Integer position) { - this.headerName = headerName; - this.headerValue = headerValue; - this.position = position; - } + private Integer position; + private ReceiptRuleAddHeaderAction() {} /** * @return The name of the header to add * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(ReceiptRuleAddHeaderAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String headerName; private String headerValue; private Integer position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReceiptRuleAddHeaderAction defaults) { Objects.requireNonNull(defaults); this.headerName = defaults.headerName; @@ -82,19 +69,27 @@ public Builder(ReceiptRuleAddHeaderAction defaults) { this.position = defaults.position; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder headerValue(String headerValue) { this.headerValue = Objects.requireNonNull(headerValue); return this; } + @CustomType.Setter public Builder position(Integer position) { this.position = Objects.requireNonNull(position); return this; - } public ReceiptRuleAddHeaderAction build() { - return new ReceiptRuleAddHeaderAction(headerName, headerValue, position); + } + public ReceiptRuleAddHeaderAction build() { + final var o = new ReceiptRuleAddHeaderAction(); + o.headerName = headerName; + o.headerValue = headerValue; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleBounceAction.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleBounceAction.java index 2675a4a009b..5b5d31161c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleBounceAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleBounceAction.java @@ -16,49 +16,34 @@ public final class ReceiptRuleBounceAction { * @return The message to send * */ - private final String message; + private String message; /** * @return The position of the action in the receipt rule * */ - private final Integer position; + private Integer position; /** * @return The email address of the sender * */ - private final String sender; + private String sender; /** * @return The RFC 5321 SMTP reply code * */ - private final String smtpReplyCode; + private String smtpReplyCode; /** * @return The RFC 3463 SMTP enhanced status code * */ - private final @Nullable String statusCode; + private @Nullable String statusCode; /** * @return The ARN of an SNS topic to notify * */ - private final @Nullable String topicArn; - - @CustomType.Constructor - private ReceiptRuleBounceAction( - @CustomType.Parameter("message") String message, - @CustomType.Parameter("position") Integer position, - @CustomType.Parameter("sender") String sender, - @CustomType.Parameter("smtpReplyCode") String smtpReplyCode, - @CustomType.Parameter("statusCode") @Nullable String statusCode, - @CustomType.Parameter("topicArn") @Nullable String topicArn) { - this.message = message; - this.position = position; - this.sender = sender; - this.smtpReplyCode = smtpReplyCode; - this.statusCode = statusCode; - this.topicArn = topicArn; - } + private @Nullable String topicArn; + private ReceiptRuleBounceAction() {} /** * @return The message to send * @@ -109,7 +94,7 @@ public static Builder builder() { public static Builder builder(ReceiptRuleBounceAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String message; private Integer position; @@ -117,11 +102,7 @@ public static final class Builder { private String smtpReplyCode; private @Nullable String statusCode; private @Nullable String topicArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReceiptRuleBounceAction defaults) { Objects.requireNonNull(defaults); this.message = defaults.message; @@ -132,31 +113,45 @@ public Builder(ReceiptRuleBounceAction defaults) { this.topicArn = defaults.topicArn; } + @CustomType.Setter public Builder message(String message) { this.message = Objects.requireNonNull(message); return this; } + @CustomType.Setter public Builder position(Integer position) { this.position = Objects.requireNonNull(position); return this; } + @CustomType.Setter public Builder sender(String sender) { this.sender = Objects.requireNonNull(sender); return this; } + @CustomType.Setter public Builder smtpReplyCode(String smtpReplyCode) { this.smtpReplyCode = Objects.requireNonNull(smtpReplyCode); return this; } + @CustomType.Setter public Builder statusCode(@Nullable String statusCode) { this.statusCode = statusCode; return this; } + @CustomType.Setter public Builder topicArn(@Nullable String topicArn) { this.topicArn = topicArn; return this; - } public ReceiptRuleBounceAction build() { - return new ReceiptRuleBounceAction(message, position, sender, smtpReplyCode, statusCode, topicArn); + } + public ReceiptRuleBounceAction build() { + final var o = new ReceiptRuleBounceAction(); + o.message = message; + o.position = position; + o.sender = sender; + o.smtpReplyCode = smtpReplyCode; + o.statusCode = statusCode; + o.topicArn = topicArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleLambdaAction.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleLambdaAction.java index a8d3dacba2e..c2702c35031 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleLambdaAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleLambdaAction.java @@ -16,35 +16,24 @@ public final class ReceiptRuleLambdaAction { * @return The ARN of the Lambda function to invoke * */ - private final String functionArn; + private String functionArn; /** * @return `Event` or `RequestResponse` * */ - private final @Nullable String invocationType; + private @Nullable String invocationType; /** * @return The position of the action in the receipt rule * */ - private final Integer position; + private Integer position; /** * @return The ARN of an SNS topic to notify * */ - private final @Nullable String topicArn; - - @CustomType.Constructor - private ReceiptRuleLambdaAction( - @CustomType.Parameter("functionArn") String functionArn, - @CustomType.Parameter("invocationType") @Nullable String invocationType, - @CustomType.Parameter("position") Integer position, - @CustomType.Parameter("topicArn") @Nullable String topicArn) { - this.functionArn = functionArn; - this.invocationType = invocationType; - this.position = position; - this.topicArn = topicArn; - } + private @Nullable String topicArn; + private ReceiptRuleLambdaAction() {} /** * @return The ARN of the Lambda function to invoke * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ReceiptRuleLambdaAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String functionArn; private @Nullable String invocationType; private Integer position; private @Nullable String topicArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReceiptRuleLambdaAction defaults) { Objects.requireNonNull(defaults); this.functionArn = defaults.functionArn; @@ -100,23 +85,33 @@ public Builder(ReceiptRuleLambdaAction defaults) { this.topicArn = defaults.topicArn; } + @CustomType.Setter public Builder functionArn(String functionArn) { this.functionArn = Objects.requireNonNull(functionArn); return this; } + @CustomType.Setter public Builder invocationType(@Nullable String invocationType) { this.invocationType = invocationType; return this; } + @CustomType.Setter public Builder position(Integer position) { this.position = Objects.requireNonNull(position); return this; } + @CustomType.Setter public Builder topicArn(@Nullable String topicArn) { this.topicArn = topicArn; return this; - } public ReceiptRuleLambdaAction build() { - return new ReceiptRuleLambdaAction(functionArn, invocationType, position, topicArn); + } + public ReceiptRuleLambdaAction build() { + final var o = new ReceiptRuleLambdaAction(); + o.functionArn = functionArn; + o.invocationType = invocationType; + o.position = position; + o.topicArn = topicArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleS3Action.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleS3Action.java index aeee8145acc..7218a5218fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleS3Action.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleS3Action.java @@ -16,42 +16,29 @@ public final class ReceiptRuleS3Action { * @return The name of the S3 bucket * */ - private final String bucketName; + private String bucketName; /** * @return The ARN of the KMS key * */ - private final @Nullable String kmsKeyArn; + private @Nullable String kmsKeyArn; /** * @return The key prefix of the S3 bucket * */ - private final @Nullable String objectKeyPrefix; + private @Nullable String objectKeyPrefix; /** * @return The position of the action in the receipt rule * */ - private final Integer position; + private Integer position; /** * @return The ARN of an SNS topic to notify * */ - private final @Nullable String topicArn; - - @CustomType.Constructor - private ReceiptRuleS3Action( - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("kmsKeyArn") @Nullable String kmsKeyArn, - @CustomType.Parameter("objectKeyPrefix") @Nullable String objectKeyPrefix, - @CustomType.Parameter("position") Integer position, - @CustomType.Parameter("topicArn") @Nullable String topicArn) { - this.bucketName = bucketName; - this.kmsKeyArn = kmsKeyArn; - this.objectKeyPrefix = objectKeyPrefix; - this.position = position; - this.topicArn = topicArn; - } + private @Nullable String topicArn; + private ReceiptRuleS3Action() {} /** * @return The name of the S3 bucket * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ReceiptRuleS3Action defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketName; private @Nullable String kmsKeyArn; private @Nullable String objectKeyPrefix; private Integer position; private @Nullable String topicArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReceiptRuleS3Action defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -116,27 +99,39 @@ public Builder(ReceiptRuleS3Action defaults) { this.topicArn = defaults.topicArn; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder kmsKeyArn(@Nullable String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; return this; } + @CustomType.Setter public Builder objectKeyPrefix(@Nullable String objectKeyPrefix) { this.objectKeyPrefix = objectKeyPrefix; return this; } + @CustomType.Setter public Builder position(Integer position) { this.position = Objects.requireNonNull(position); return this; } + @CustomType.Setter public Builder topicArn(@Nullable String topicArn) { this.topicArn = topicArn; return this; - } public ReceiptRuleS3Action build() { - return new ReceiptRuleS3Action(bucketName, kmsKeyArn, objectKeyPrefix, position, topicArn); + } + public ReceiptRuleS3Action build() { + final var o = new ReceiptRuleS3Action(); + o.bucketName = bucketName; + o.kmsKeyArn = kmsKeyArn; + o.objectKeyPrefix = objectKeyPrefix; + o.position = position; + o.topicArn = topicArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleSnsAction.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleSnsAction.java index c2cdc39deb0..27b9b189d4c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleSnsAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleSnsAction.java @@ -16,28 +16,19 @@ public final class ReceiptRuleSnsAction { * @return The encoding to use for the email within the Amazon SNS notification. Default value is `UTF-8`. * */ - private final @Nullable String encoding; + private @Nullable String encoding; /** * @return The position of the action in the receipt rule * */ - private final Integer position; + private Integer position; /** * @return The ARN of an SNS topic to notify * */ - private final String topicArn; - - @CustomType.Constructor - private ReceiptRuleSnsAction( - @CustomType.Parameter("encoding") @Nullable String encoding, - @CustomType.Parameter("position") Integer position, - @CustomType.Parameter("topicArn") String topicArn) { - this.encoding = encoding; - this.position = position; - this.topicArn = topicArn; - } + private String topicArn; + private ReceiptRuleSnsAction() {} /** * @return The encoding to use for the email within the Amazon SNS notification. Default value is `UTF-8`. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ReceiptRuleSnsAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String encoding; private Integer position; private String topicArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReceiptRuleSnsAction defaults) { Objects.requireNonNull(defaults); this.encoding = defaults.encoding; @@ -84,19 +71,27 @@ public Builder(ReceiptRuleSnsAction defaults) { this.topicArn = defaults.topicArn; } + @CustomType.Setter public Builder encoding(@Nullable String encoding) { this.encoding = encoding; return this; } + @CustomType.Setter public Builder position(Integer position) { this.position = Objects.requireNonNull(position); return this; } + @CustomType.Setter public Builder topicArn(String topicArn) { this.topicArn = Objects.requireNonNull(topicArn); return this; - } public ReceiptRuleSnsAction build() { - return new ReceiptRuleSnsAction(encoding, position, topicArn); + } + public ReceiptRuleSnsAction build() { + final var o = new ReceiptRuleSnsAction(); + o.encoding = encoding; + o.position = position; + o.topicArn = topicArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleStopAction.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleStopAction.java index 564b15997fc..fef28a9efe4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleStopAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleStopAction.java @@ -16,28 +16,19 @@ public final class ReceiptRuleStopAction { * @return The position of the action in the receipt rule * */ - private final Integer position; + private Integer position; /** * @return The scope to apply. The only acceptable value is `RuleSet`. * */ - private final String scope; + private String scope; /** * @return The ARN of an SNS topic to notify * */ - private final @Nullable String topicArn; - - @CustomType.Constructor - private ReceiptRuleStopAction( - @CustomType.Parameter("position") Integer position, - @CustomType.Parameter("scope") String scope, - @CustomType.Parameter("topicArn") @Nullable String topicArn) { - this.position = position; - this.scope = scope; - this.topicArn = topicArn; - } + private @Nullable String topicArn; + private ReceiptRuleStopAction() {} /** * @return The position of the action in the receipt rule * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ReceiptRuleStopAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer position; private String scope; private @Nullable String topicArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReceiptRuleStopAction defaults) { Objects.requireNonNull(defaults); this.position = defaults.position; @@ -84,19 +71,27 @@ public Builder(ReceiptRuleStopAction defaults) { this.topicArn = defaults.topicArn; } + @CustomType.Setter public Builder position(Integer position) { this.position = Objects.requireNonNull(position); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; } + @CustomType.Setter public Builder topicArn(@Nullable String topicArn) { this.topicArn = topicArn; return this; - } public ReceiptRuleStopAction build() { - return new ReceiptRuleStopAction(position, scope, topicArn); + } + public ReceiptRuleStopAction build() { + final var o = new ReceiptRuleStopAction(); + o.position = position; + o.scope = scope; + o.topicArn = topicArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleWorkmailAction.java b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleWorkmailAction.java index 21ec0bb64af..e71a32887dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleWorkmailAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ses/outputs/ReceiptRuleWorkmailAction.java @@ -16,28 +16,19 @@ public final class ReceiptRuleWorkmailAction { * @return The ARN of the WorkMail organization * */ - private final String organizationArn; + private String organizationArn; /** * @return The position of the action in the receipt rule * */ - private final Integer position; + private Integer position; /** * @return The ARN of an SNS topic to notify * */ - private final @Nullable String topicArn; - - @CustomType.Constructor - private ReceiptRuleWorkmailAction( - @CustomType.Parameter("organizationArn") String organizationArn, - @CustomType.Parameter("position") Integer position, - @CustomType.Parameter("topicArn") @Nullable String topicArn) { - this.organizationArn = organizationArn; - this.position = position; - this.topicArn = topicArn; - } + private @Nullable String topicArn; + private ReceiptRuleWorkmailAction() {} /** * @return The ARN of the WorkMail organization * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(ReceiptRuleWorkmailAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String organizationArn; private Integer position; private @Nullable String topicArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ReceiptRuleWorkmailAction defaults) { Objects.requireNonNull(defaults); this.organizationArn = defaults.organizationArn; @@ -84,19 +71,27 @@ public Builder(ReceiptRuleWorkmailAction defaults) { this.topicArn = defaults.topicArn; } + @CustomType.Setter public Builder organizationArn(String organizationArn) { this.organizationArn = Objects.requireNonNull(organizationArn); return this; } + @CustomType.Setter public Builder position(Integer position) { this.position = Objects.requireNonNull(position); return this; } + @CustomType.Setter public Builder topicArn(@Nullable String topicArn) { this.topicArn = topicArn; return this; - } public ReceiptRuleWorkmailAction build() { - return new ReceiptRuleWorkmailAction(organizationArn, position, topicArn); + } + public ReceiptRuleWorkmailAction build() { + final var o = new ReceiptRuleWorkmailAction(); + o.organizationArn = organizationArn; + o.position = position; + o.topicArn = topicArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/GetActivityResult.java b/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/GetActivityResult.java index 96b99608541..2361371d23c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/GetActivityResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/GetActivityResult.java @@ -9,31 +9,20 @@ @CustomType public final class GetActivityResult { - private final String arn; + private String arn; /** * @return The date the activity was created. * */ - private final String creationDate; + private String creationDate; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetActivityResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("creationDate") String creationDate, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.creationDate = creationDate; - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetActivityResult() {} public String arn() { return this.arn; } @@ -62,17 +51,13 @@ public static Builder builder() { public static Builder builder(GetActivityResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String creationDate; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetActivityResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -81,23 +66,33 @@ public Builder(GetActivityResult defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder creationDate(String creationDate) { this.creationDate = Objects.requireNonNull(creationDate); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetActivityResult build() { - return new GetActivityResult(arn, creationDate, id, name); + } + public GetActivityResult build() { + final var o = new GetActivityResult(); + o.arn = arn; + o.creationDate = creationDate; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/GetStateMachineResult.java b/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/GetStateMachineResult.java index fe5ff51a5fc..0b2fd607882 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/GetStateMachineResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/GetStateMachineResult.java @@ -13,52 +13,35 @@ public final class GetStateMachineResult { * @return Set to the arn of the state function. * */ - private final String arn; + private String arn; /** * @return The date the state machine was created. * */ - private final String creationDate; + private String creationDate; /** * @return Set to the state machine definition. * */ - private final String definition; + private String definition; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return Set to the role_arn used by the state function. * */ - private final String roleArn; + private String roleArn; /** * @return Set to the current status of the state machine. * */ - private final String status; - - @CustomType.Constructor - private GetStateMachineResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("creationDate") String creationDate, - @CustomType.Parameter("definition") String definition, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("roleArn") String roleArn, - @CustomType.Parameter("status") String status) { - this.arn = arn; - this.creationDate = creationDate; - this.definition = definition; - this.id = id; - this.name = name; - this.roleArn = roleArn; - this.status = status; - } + private String status; + private GetStateMachineResult() {} /** * @return Set to the arn of the state function. * @@ -112,7 +95,7 @@ public static Builder builder() { public static Builder builder(GetStateMachineResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String creationDate; @@ -121,11 +104,7 @@ public static final class Builder { private String name; private String roleArn; private String status; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetStateMachineResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -137,35 +116,51 @@ public Builder(GetStateMachineResult defaults) { this.status = defaults.status; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder creationDate(String creationDate) { this.creationDate = Objects.requireNonNull(creationDate); return this; } + @CustomType.Setter public Builder definition(String definition) { this.definition = Objects.requireNonNull(definition); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder roleArn(String roleArn) { this.roleArn = Objects.requireNonNull(roleArn); return this; } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; - } public GetStateMachineResult build() { - return new GetStateMachineResult(arn, creationDate, definition, id, name, roleArn, status); + } + public GetStateMachineResult build() { + final var o = new GetStateMachineResult(); + o.arn = arn; + o.creationDate = creationDate; + o.definition = definition; + o.id = id; + o.name = name; + o.roleArn = roleArn; + o.status = status; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/StateMachineLoggingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/StateMachineLoggingConfiguration.java index ba994f64ed9..0e82ff74a30 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/StateMachineLoggingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/StateMachineLoggingConfiguration.java @@ -16,28 +16,19 @@ public final class StateMachineLoggingConfiguration { * @return Determines whether execution data is included in your log. When set to `false`, data is excluded. * */ - private final @Nullable Boolean includeExecutionData; + private @Nullable Boolean includeExecutionData; /** * @return Defines which category of execution history events are logged. Valid values: `ALL`, `ERROR`, `FATAL`, `OFF` * */ - private final @Nullable String level; + private @Nullable String level; /** * @return Amazon Resource Name (ARN) of a CloudWatch log group. Make sure the State Machine has the correct IAM policies for logging. The ARN must end with `:*` * */ - private final @Nullable String logDestination; - - @CustomType.Constructor - private StateMachineLoggingConfiguration( - @CustomType.Parameter("includeExecutionData") @Nullable Boolean includeExecutionData, - @CustomType.Parameter("level") @Nullable String level, - @CustomType.Parameter("logDestination") @Nullable String logDestination) { - this.includeExecutionData = includeExecutionData; - this.level = level; - this.logDestination = logDestination; - } + private @Nullable String logDestination; + private StateMachineLoggingConfiguration() {} /** * @return Determines whether execution data is included in your log. When set to `false`, data is excluded. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(StateMachineLoggingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean includeExecutionData; private @Nullable String level; private @Nullable String logDestination; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StateMachineLoggingConfiguration defaults) { Objects.requireNonNull(defaults); this.includeExecutionData = defaults.includeExecutionData; @@ -84,19 +71,27 @@ public Builder(StateMachineLoggingConfiguration defaults) { this.logDestination = defaults.logDestination; } + @CustomType.Setter public Builder includeExecutionData(@Nullable Boolean includeExecutionData) { this.includeExecutionData = includeExecutionData; return this; } + @CustomType.Setter public Builder level(@Nullable String level) { this.level = level; return this; } + @CustomType.Setter public Builder logDestination(@Nullable String logDestination) { this.logDestination = logDestination; return this; - } public StateMachineLoggingConfiguration build() { - return new StateMachineLoggingConfiguration(includeExecutionData, level, logDestination); + } + public StateMachineLoggingConfiguration build() { + final var o = new StateMachineLoggingConfiguration(); + o.includeExecutionData = includeExecutionData; + o.level = level; + o.logDestination = logDestination; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/StateMachineTracingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/StateMachineTracingConfiguration.java index 94270a7d151..46c20a2924b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/StateMachineTracingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sfn/outputs/StateMachineTracingConfiguration.java @@ -15,13 +15,9 @@ public final class StateMachineTracingConfiguration { * @return When set to `true`, AWS X-Ray tracing is enabled. Make sure the State Machine has the correct IAM policies for logging. See the [AWS Step Functions Developer Guide](https://docs.aws.amazon.com/step-functions/latest/dg/xray-iam.html) for details. * */ - private final @Nullable Boolean enabled; - - @CustomType.Constructor - private StateMachineTracingConfiguration(@CustomType.Parameter("enabled") @Nullable Boolean enabled) { - this.enabled = enabled; - } + private @Nullable Boolean enabled; + private StateMachineTracingConfiguration() {} /** * @return When set to `true`, AWS X-Ray tracing is enabled. Make sure the State Machine has the correct IAM policies for logging. See the [AWS Step Functions Developer Guide](https://docs.aws.amazon.com/step-functions/latest/dg/xray-iam.html) for details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(StateMachineTracingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(StateMachineTracingConfiguration defaults) { Objects.requireNonNull(defaults); this.enabled = defaults.enabled; } + @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { this.enabled = enabled; return this; - } public StateMachineTracingConfiguration build() { - return new StateMachineTracingConfiguration(enabled); + } + public StateMachineTracingConfiguration build() { + final var o = new StateMachineTracingConfiguration(); + o.enabled = enabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobResult.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobResult.java index 1f869afdebc..0ec8a462cf8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobResult.java @@ -17,122 +17,85 @@ public final class GetSigningJobResult { * @return Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the signing job was completed. * */ - private final String completedAt; + private String completedAt; /** * @return Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the signing job was created. * */ - private final String createdAt; + private String createdAt; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String jobId; + private String id; + private String jobId; /** * @return The IAM entity that initiated the signing job. * */ - private final String jobInvoker; + private String jobInvoker; /** * @return The AWS account ID of the job owner. * */ - private final String jobOwner; + private String jobOwner; /** * @return A human-readable name for the signing platform associated with the signing job. * */ - private final String platformDisplayName; + private String platformDisplayName; /** * @return The platform to which your signed code image will be distributed. * */ - private final String platformId; + private String platformId; /** * @return The name of the profile that initiated the signing operation. * */ - private final String profileName; + private String profileName; /** * @return The version of the signing profile used to initiate the signing job. * */ - private final String profileVersion; + private String profileVersion; /** * @return The IAM principal that requested the signing job. * */ - private final String requestedBy; + private String requestedBy; /** * @return A revocation record if the signature generated by the signing job has been revoked. Contains a timestamp and the ID of the IAM entity that revoked the signature. * */ - private final List revocationRecords; + private List revocationRecords; /** * @return The time when the signature of a signing job expires. * */ - private final String signatureExpiresAt; + private String signatureExpiresAt; /** * @return Name of the S3 bucket where the signed code image is saved by code signing. * */ - private final List signedObjects; + private List signedObjects; /** * @return The object that contains the name of your S3 bucket or your raw code. * */ - private final List sources; + private List sources; /** * @return Status of the signing job. * */ - private final String status; + private String status; /** * @return String value that contains the status reason. * */ - private final String statusReason; - - @CustomType.Constructor - private GetSigningJobResult( - @CustomType.Parameter("completedAt") String completedAt, - @CustomType.Parameter("createdAt") String createdAt, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("jobId") String jobId, - @CustomType.Parameter("jobInvoker") String jobInvoker, - @CustomType.Parameter("jobOwner") String jobOwner, - @CustomType.Parameter("platformDisplayName") String platformDisplayName, - @CustomType.Parameter("platformId") String platformId, - @CustomType.Parameter("profileName") String profileName, - @CustomType.Parameter("profileVersion") String profileVersion, - @CustomType.Parameter("requestedBy") String requestedBy, - @CustomType.Parameter("revocationRecords") List revocationRecords, - @CustomType.Parameter("signatureExpiresAt") String signatureExpiresAt, - @CustomType.Parameter("signedObjects") List signedObjects, - @CustomType.Parameter("sources") List sources, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("statusReason") String statusReason) { - this.completedAt = completedAt; - this.createdAt = createdAt; - this.id = id; - this.jobId = jobId; - this.jobInvoker = jobInvoker; - this.jobOwner = jobOwner; - this.platformDisplayName = platformDisplayName; - this.platformId = platformId; - this.profileName = profileName; - this.profileVersion = profileVersion; - this.requestedBy = requestedBy; - this.revocationRecords = revocationRecords; - this.signatureExpiresAt = signatureExpiresAt; - this.signedObjects = signedObjects; - this.sources = sources; - this.status = status; - this.statusReason = statusReason; - } + private String statusReason; + private GetSigningJobResult() {} /** * @return Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the signing job was completed. * @@ -256,7 +219,7 @@ public static Builder builder() { public static Builder builder(GetSigningJobResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String completedAt; private String createdAt; @@ -275,11 +238,7 @@ public static final class Builder { private List sources; private String status; private String statusReason; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSigningJobResult defaults) { Objects.requireNonNull(defaults); this.completedAt = defaults.completedAt; @@ -301,50 +260,62 @@ public Builder(GetSigningJobResult defaults) { this.statusReason = defaults.statusReason; } + @CustomType.Setter public Builder completedAt(String completedAt) { this.completedAt = Objects.requireNonNull(completedAt); return this; } + @CustomType.Setter public Builder createdAt(String createdAt) { this.createdAt = Objects.requireNonNull(createdAt); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder jobId(String jobId) { this.jobId = Objects.requireNonNull(jobId); return this; } + @CustomType.Setter public Builder jobInvoker(String jobInvoker) { this.jobInvoker = Objects.requireNonNull(jobInvoker); return this; } + @CustomType.Setter public Builder jobOwner(String jobOwner) { this.jobOwner = Objects.requireNonNull(jobOwner); return this; } + @CustomType.Setter public Builder platformDisplayName(String platformDisplayName) { this.platformDisplayName = Objects.requireNonNull(platformDisplayName); return this; } + @CustomType.Setter public Builder platformId(String platformId) { this.platformId = Objects.requireNonNull(platformId); return this; } + @CustomType.Setter public Builder profileName(String profileName) { this.profileName = Objects.requireNonNull(profileName); return this; } + @CustomType.Setter public Builder profileVersion(String profileVersion) { this.profileVersion = Objects.requireNonNull(profileVersion); return this; } + @CustomType.Setter public Builder requestedBy(String requestedBy) { this.requestedBy = Objects.requireNonNull(requestedBy); return this; } + @CustomType.Setter public Builder revocationRecords(List revocationRecords) { this.revocationRecords = Objects.requireNonNull(revocationRecords); return this; @@ -352,10 +323,12 @@ public Builder revocationRecords(List revocationR public Builder revocationRecords(GetSigningJobRevocationRecord... revocationRecords) { return revocationRecords(List.of(revocationRecords)); } + @CustomType.Setter public Builder signatureExpiresAt(String signatureExpiresAt) { this.signatureExpiresAt = Objects.requireNonNull(signatureExpiresAt); return this; } + @CustomType.Setter public Builder signedObjects(List signedObjects) { this.signedObjects = Objects.requireNonNull(signedObjects); return this; @@ -363,6 +336,7 @@ public Builder signedObjects(List signedObjects) { public Builder signedObjects(GetSigningJobSignedObject... signedObjects) { return signedObjects(List.of(signedObjects)); } + @CustomType.Setter public Builder sources(List sources) { this.sources = Objects.requireNonNull(sources); return this; @@ -370,15 +344,36 @@ public Builder sources(List sources) { public Builder sources(GetSigningJobSource... sources) { return sources(List.of(sources)); } + @CustomType.Setter public Builder status(String status) { this.status = Objects.requireNonNull(status); return this; } + @CustomType.Setter public Builder statusReason(String statusReason) { this.statusReason = Objects.requireNonNull(statusReason); return this; - } public GetSigningJobResult build() { - return new GetSigningJobResult(completedAt, createdAt, id, jobId, jobInvoker, jobOwner, platformDisplayName, platformId, profileName, profileVersion, requestedBy, revocationRecords, signatureExpiresAt, signedObjects, sources, status, statusReason); + } + public GetSigningJobResult build() { + final var o = new GetSigningJobResult(); + o.completedAt = completedAt; + o.createdAt = createdAt; + o.id = id; + o.jobId = jobId; + o.jobInvoker = jobInvoker; + o.jobOwner = jobOwner; + o.platformDisplayName = platformDisplayName; + o.platformId = platformId; + o.profileName = profileName; + o.profileVersion = profileVersion; + o.requestedBy = requestedBy; + o.revocationRecords = revocationRecords; + o.signatureExpiresAt = signatureExpiresAt; + o.signedObjects = signedObjects; + o.sources = sources; + o.status = status; + o.statusReason = statusReason; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobRevocationRecord.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobRevocationRecord.java index 442b5b04126..6c243e341db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobRevocationRecord.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobRevocationRecord.java @@ -9,20 +9,11 @@ @CustomType public final class GetSigningJobRevocationRecord { - private final String reason; - private final String revokedAt; - private final String revokedBy; - - @CustomType.Constructor - private GetSigningJobRevocationRecord( - @CustomType.Parameter("reason") String reason, - @CustomType.Parameter("revokedAt") String revokedAt, - @CustomType.Parameter("revokedBy") String revokedBy) { - this.reason = reason; - this.revokedAt = revokedAt; - this.revokedBy = revokedBy; - } + private String reason; + private String revokedAt; + private String revokedBy; + private GetSigningJobRevocationRecord() {} public String reason() { return this.reason; } @@ -40,16 +31,12 @@ public static Builder builder() { public static Builder builder(GetSigningJobRevocationRecord defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String reason; private String revokedAt; private String revokedBy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSigningJobRevocationRecord defaults) { Objects.requireNonNull(defaults); this.reason = defaults.reason; @@ -57,19 +44,27 @@ public Builder(GetSigningJobRevocationRecord defaults) { this.revokedBy = defaults.revokedBy; } + @CustomType.Setter public Builder reason(String reason) { this.reason = Objects.requireNonNull(reason); return this; } + @CustomType.Setter public Builder revokedAt(String revokedAt) { this.revokedAt = Objects.requireNonNull(revokedAt); return this; } + @CustomType.Setter public Builder revokedBy(String revokedBy) { this.revokedBy = Objects.requireNonNull(revokedBy); return this; - } public GetSigningJobRevocationRecord build() { - return new GetSigningJobRevocationRecord(reason, revokedAt, revokedBy); + } + public GetSigningJobRevocationRecord build() { + final var o = new GetSigningJobRevocationRecord(); + o.reason = reason; + o.revokedAt = revokedAt; + o.revokedBy = revokedBy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSignedObject.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSignedObject.java index 646fb7b25b0..02d5d59af27 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSignedObject.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSignedObject.java @@ -10,13 +10,9 @@ @CustomType public final class GetSigningJobSignedObject { - private final List s3s; - - @CustomType.Constructor - private GetSigningJobSignedObject(@CustomType.Parameter("s3s") List s3s) { - this.s3s = s3s; - } + private List s3s; + private GetSigningJobSignedObject() {} public List s3s() { return this.s3s; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(GetSigningJobSignedObject defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List s3s; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSigningJobSignedObject defaults) { Objects.requireNonNull(defaults); this.s3s = defaults.s3s; } + @CustomType.Setter public Builder s3s(List s3s) { this.s3s = Objects.requireNonNull(s3s); return this; } public Builder s3s(GetSigningJobSignedObjectS3... s3s) { return s3s(List.of(s3s)); - } public GetSigningJobSignedObject build() { - return new GetSigningJobSignedObject(s3s); + } + public GetSigningJobSignedObject build() { + final var o = new GetSigningJobSignedObject(); + o.s3s = s3s; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSignedObjectS3.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSignedObjectS3.java index 0b8d2a5ebd8..f59d7e3b234 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSignedObjectS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSignedObjectS3.java @@ -9,17 +9,10 @@ @CustomType public final class GetSigningJobSignedObjectS3 { - private final String bucket; - private final String key; - - @CustomType.Constructor - private GetSigningJobSignedObjectS3( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("key") String key) { - this.bucket = bucket; - this.key = key; - } + private String bucket; + private String key; + private GetSigningJobSignedObjectS3() {} public String bucket() { return this.bucket; } @@ -34,30 +27,32 @@ public static Builder builder() { public static Builder builder(GetSigningJobSignedObjectS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSigningJobSignedObjectS3 defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.key = defaults.key; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; - } public GetSigningJobSignedObjectS3 build() { - return new GetSigningJobSignedObjectS3(bucket, key); + } + public GetSigningJobSignedObjectS3 build() { + final var o = new GetSigningJobSignedObjectS3(); + o.bucket = bucket; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSource.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSource.java index 213d2384fe5..7ca4eebda55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSource.java @@ -10,13 +10,9 @@ @CustomType public final class GetSigningJobSource { - private final List s3s; - - @CustomType.Constructor - private GetSigningJobSource(@CustomType.Parameter("s3s") List s3s) { - this.s3s = s3s; - } + private List s3s; + private GetSigningJobSource() {} public List s3s() { return this.s3s; } @@ -28,27 +24,27 @@ public static Builder builder() { public static Builder builder(GetSigningJobSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List s3s; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSigningJobSource defaults) { Objects.requireNonNull(defaults); this.s3s = defaults.s3s; } + @CustomType.Setter public Builder s3s(List s3s) { this.s3s = Objects.requireNonNull(s3s); return this; } public Builder s3s(GetSigningJobSourceS3... s3s) { return s3s(List.of(s3s)); - } public GetSigningJobSource build() { - return new GetSigningJobSource(s3s); + } + public GetSigningJobSource build() { + final var o = new GetSigningJobSource(); + o.s3s = s3s; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSourceS3.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSourceS3.java index 87f868685d6..6a00743bb69 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSourceS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningJobSourceS3.java @@ -9,20 +9,11 @@ @CustomType public final class GetSigningJobSourceS3 { - private final String bucket; - private final String key; - private final String version; - - @CustomType.Constructor - private GetSigningJobSourceS3( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("version") String version) { - this.bucket = bucket; - this.key = key; - this.version = version; - } + private String bucket; + private String key; + private String version; + private GetSigningJobSourceS3() {} public String bucket() { return this.bucket; } @@ -40,16 +31,12 @@ public static Builder builder() { public static Builder builder(GetSigningJobSourceS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String key; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSigningJobSourceS3 defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -57,19 +44,27 @@ public Builder(GetSigningJobSourceS3 defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public GetSigningJobSourceS3 build() { - return new GetSigningJobSourceS3(bucket, key, version); + } + public GetSigningJobSourceS3 build() { + final var o = new GetSigningJobSourceS3(); + o.bucket = bucket; + o.key = key; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningProfileResult.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningProfileResult.java index 8930aecda3d..fb735b26eb5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningProfileResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningProfileResult.java @@ -17,80 +17,55 @@ public final class GetSigningProfileResult { * @return The Amazon Resource Name (ARN) for the signing profile. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return A human-readable name for the signing platform associated with the signing profile. * */ - private final String platformDisplayName; + private String platformDisplayName; /** * @return The ID of the platform that is used by the target signing profile. * */ - private final String platformId; + private String platformId; /** * @return Revocation information for a signing profile. * */ - private final List revocationRecords; + private List revocationRecords; /** * @return The validity period for a signing job. * */ - private final List signatureValidityPeriods; + private List signatureValidityPeriods; /** * @return The status of the target signing profile. * */ - private final String status; + private String status; /** * @return A list of tags associated with the signing profile. * */ - private final Map tags; + private Map tags; /** * @return The current version of the signing profile. * */ - private final String version; + private String version; /** * @return The signing profile ARN, including the profile version. * */ - private final String versionArn; - - @CustomType.Constructor - private GetSigningProfileResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("platformDisplayName") String platformDisplayName, - @CustomType.Parameter("platformId") String platformId, - @CustomType.Parameter("revocationRecords") List revocationRecords, - @CustomType.Parameter("signatureValidityPeriods") List signatureValidityPeriods, - @CustomType.Parameter("status") String status, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("version") String version, - @CustomType.Parameter("versionArn") String versionArn) { - this.arn = arn; - this.id = id; - this.name = name; - this.platformDisplayName = platformDisplayName; - this.platformId = platformId; - this.revocationRecords = revocationRecords; - this.signatureValidityPeriods = signatureValidityPeriods; - this.status = status; - this.tags = tags; - this.version = version; - this.versionArn = versionArn; - } + private String versionArn; + private GetSigningProfileResult() {} /** * @return The Amazon Resource Name (ARN) for the signing profile. * @@ -172,7 +147,7 @@ public static Builder builder() { public static Builder builder(GetSigningProfileResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; @@ -185,11 +160,7 @@ public static final class Builder { private Map tags; private String version; private String versionArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSigningProfileResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -205,26 +176,32 @@ public Builder(GetSigningProfileResult defaults) { this.versionArn = defaults.versionArn; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder platformDisplayName(String platformDisplayName) { this.platformDisplayName = Objects.requireNonNull(platformDisplayName); return this; } + @CustomType.Setter public Builder platformId(String platformId) { this.platformId = Objects.requireNonNull(platformId); return this; } + @CustomType.Setter public Builder revocationRecords(List revocationRecords) { this.revocationRecords = Objects.requireNonNull(revocationRecords); return this; @@ -232,6 +209,7 @@ public Builder revocationRecords(List revocat public Builder revocationRecords(GetSigningProfileRevocationRecord... revocationRecords) { return revocationRecords(List.of(revocationRecords)); } + @CustomType.Setter public Builder signatureValidityPeriods(List signatureValidityPeriods) { this.signatureValidityPeriods = Objects.requireNonNull(signatureValidityPeriods); return this; @@ -239,23 +217,40 @@ public Builder signatureValidityPeriods(List tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; } + @CustomType.Setter public Builder versionArn(String versionArn) { this.versionArn = Objects.requireNonNull(versionArn); return this; - } public GetSigningProfileResult build() { - return new GetSigningProfileResult(arn, id, name, platformDisplayName, platformId, revocationRecords, signatureValidityPeriods, status, tags, version, versionArn); + } + public GetSigningProfileResult build() { + final var o = new GetSigningProfileResult(); + o.arn = arn; + o.id = id; + o.name = name; + o.platformDisplayName = platformDisplayName; + o.platformId = platformId; + o.revocationRecords = revocationRecords; + o.signatureValidityPeriods = signatureValidityPeriods; + o.status = status; + o.tags = tags; + o.version = version; + o.versionArn = versionArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningProfileRevocationRecord.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningProfileRevocationRecord.java index a6999200eaa..4f7a4abc831 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningProfileRevocationRecord.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningProfileRevocationRecord.java @@ -9,20 +9,11 @@ @CustomType public final class GetSigningProfileRevocationRecord { - private final String revocationEffectiveFrom; - private final String revokedAt; - private final String revokedBy; - - @CustomType.Constructor - private GetSigningProfileRevocationRecord( - @CustomType.Parameter("revocationEffectiveFrom") String revocationEffectiveFrom, - @CustomType.Parameter("revokedAt") String revokedAt, - @CustomType.Parameter("revokedBy") String revokedBy) { - this.revocationEffectiveFrom = revocationEffectiveFrom; - this.revokedAt = revokedAt; - this.revokedBy = revokedBy; - } + private String revocationEffectiveFrom; + private String revokedAt; + private String revokedBy; + private GetSigningProfileRevocationRecord() {} public String revocationEffectiveFrom() { return this.revocationEffectiveFrom; } @@ -40,16 +31,12 @@ public static Builder builder() { public static Builder builder(GetSigningProfileRevocationRecord defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String revocationEffectiveFrom; private String revokedAt; private String revokedBy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSigningProfileRevocationRecord defaults) { Objects.requireNonNull(defaults); this.revocationEffectiveFrom = defaults.revocationEffectiveFrom; @@ -57,19 +44,27 @@ public Builder(GetSigningProfileRevocationRecord defaults) { this.revokedBy = defaults.revokedBy; } + @CustomType.Setter public Builder revocationEffectiveFrom(String revocationEffectiveFrom) { this.revocationEffectiveFrom = Objects.requireNonNull(revocationEffectiveFrom); return this; } + @CustomType.Setter public Builder revokedAt(String revokedAt) { this.revokedAt = Objects.requireNonNull(revokedAt); return this; } + @CustomType.Setter public Builder revokedBy(String revokedBy) { this.revokedBy = Objects.requireNonNull(revokedBy); return this; - } public GetSigningProfileRevocationRecord build() { - return new GetSigningProfileRevocationRecord(revocationEffectiveFrom, revokedAt, revokedBy); + } + public GetSigningProfileRevocationRecord build() { + final var o = new GetSigningProfileRevocationRecord(); + o.revocationEffectiveFrom = revocationEffectiveFrom; + o.revokedAt = revokedAt; + o.revokedBy = revokedBy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningProfileSignatureValidityPeriod.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningProfileSignatureValidityPeriod.java index ee468592e6d..864e3a05589 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningProfileSignatureValidityPeriod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/GetSigningProfileSignatureValidityPeriod.java @@ -10,17 +10,10 @@ @CustomType public final class GetSigningProfileSignatureValidityPeriod { - private final String type; - private final Integer value; - - @CustomType.Constructor - private GetSigningProfileSignatureValidityPeriod( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") Integer value) { - this.type = type; - this.value = value; - } + private String type; + private Integer value; + private GetSigningProfileSignatureValidityPeriod() {} public String type() { return this.type; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(GetSigningProfileSignatureValidityPeriod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSigningProfileSignatureValidityPeriod defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.value = defaults.value; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public GetSigningProfileSignatureValidityPeriod build() { - return new GetSigningProfileSignatureValidityPeriod(type, value); + } + public GetSigningProfileSignatureValidityPeriod build() { + final var o = new GetSigningProfileSignatureValidityPeriod(); + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobDestination.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobDestination.java index e035e3c8ed4..8b3ee42d7e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobDestination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobDestination.java @@ -13,13 +13,9 @@ public final class SigningJobDestination { * @return A configuration block describing the S3 Destination object: See S3 Destination below for details. * */ - private final SigningJobDestinationS3 s3; - - @CustomType.Constructor - private SigningJobDestination(@CustomType.Parameter("s3") SigningJobDestinationS3 s3) { - this.s3 = s3; - } + private SigningJobDestinationS3 s3; + private SigningJobDestination() {} /** * @return A configuration block describing the S3 Destination object: See S3 Destination below for details. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(SigningJobDestination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private SigningJobDestinationS3 s3; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SigningJobDestination defaults) { Objects.requireNonNull(defaults); this.s3 = defaults.s3; } + @CustomType.Setter public Builder s3(SigningJobDestinationS3 s3) { this.s3 = Objects.requireNonNull(s3); return this; - } public SigningJobDestination build() { - return new SigningJobDestination(s3); + } + public SigningJobDestination build() { + final var o = new SigningJobDestination(); + o.s3 = s3; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobDestinationS3.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobDestinationS3.java index 45c96a1e79e..cc878ab325c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobDestinationS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobDestinationS3.java @@ -15,21 +15,14 @@ public final class SigningJobDestinationS3 { * @return Name of the S3 bucket. * */ - private final String bucket; + private String bucket; /** * @return An Amazon S3 object key prefix that you can use to limit signed objects keys to begin with the specified prefix. * */ - private final @Nullable String prefix; - - @CustomType.Constructor - private SigningJobDestinationS3( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("prefix") @Nullable String prefix) { - this.bucket = bucket; - this.prefix = prefix; - } + private @Nullable String prefix; + private SigningJobDestinationS3() {} /** * @return Name of the S3 bucket. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SigningJobDestinationS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private @Nullable String prefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SigningJobDestinationS3 defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.prefix = defaults.prefix; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; - } public SigningJobDestinationS3 build() { - return new SigningJobDestinationS3(bucket, prefix); + } + public SigningJobDestinationS3 build() { + final var o = new SigningJobDestinationS3(); + o.bucket = bucket; + o.prefix = prefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobRevocationRecord.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobRevocationRecord.java index f052db77e5b..bddb082c8ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobRevocationRecord.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobRevocationRecord.java @@ -11,20 +11,11 @@ @CustomType public final class SigningJobRevocationRecord { - private final @Nullable String reason; - private final @Nullable String revokedAt; - private final @Nullable String revokedBy; - - @CustomType.Constructor - private SigningJobRevocationRecord( - @CustomType.Parameter("reason") @Nullable String reason, - @CustomType.Parameter("revokedAt") @Nullable String revokedAt, - @CustomType.Parameter("revokedBy") @Nullable String revokedBy) { - this.reason = reason; - this.revokedAt = revokedAt; - this.revokedBy = revokedBy; - } + private @Nullable String reason; + private @Nullable String revokedAt; + private @Nullable String revokedBy; + private SigningJobRevocationRecord() {} public Optional reason() { return Optional.ofNullable(this.reason); } @@ -42,16 +33,12 @@ public static Builder builder() { public static Builder builder(SigningJobRevocationRecord defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String reason; private @Nullable String revokedAt; private @Nullable String revokedBy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SigningJobRevocationRecord defaults) { Objects.requireNonNull(defaults); this.reason = defaults.reason; @@ -59,19 +46,27 @@ public Builder(SigningJobRevocationRecord defaults) { this.revokedBy = defaults.revokedBy; } + @CustomType.Setter public Builder reason(@Nullable String reason) { this.reason = reason; return this; } + @CustomType.Setter public Builder revokedAt(@Nullable String revokedAt) { this.revokedAt = revokedAt; return this; } + @CustomType.Setter public Builder revokedBy(@Nullable String revokedBy) { this.revokedBy = revokedBy; return this; - } public SigningJobRevocationRecord build() { - return new SigningJobRevocationRecord(reason, revokedAt, revokedBy); + } + public SigningJobRevocationRecord build() { + final var o = new SigningJobRevocationRecord(); + o.reason = reason; + o.revokedAt = revokedAt; + o.revokedBy = revokedBy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSignedObject.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSignedObject.java index bc3663eef45..6a90f7be0f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSignedObject.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSignedObject.java @@ -15,13 +15,9 @@ public final class SigningJobSignedObject { * @return A configuration block describing the S3 Destination object: See S3 Destination below for details. * */ - private final @Nullable List s3s; - - @CustomType.Constructor - private SigningJobSignedObject(@CustomType.Parameter("s3s") @Nullable List s3s) { - this.s3s = s3s; - } + private @Nullable List s3s; + private SigningJobSignedObject() {} /** * @return A configuration block describing the S3 Destination object: See S3 Destination below for details. * @@ -37,27 +33,27 @@ public static Builder builder() { public static Builder builder(SigningJobSignedObject defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List s3s; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SigningJobSignedObject defaults) { Objects.requireNonNull(defaults); this.s3s = defaults.s3s; } + @CustomType.Setter public Builder s3s(@Nullable List s3s) { this.s3s = s3s; return this; } public Builder s3s(SigningJobSignedObjectS3... s3s) { return s3s(List.of(s3s)); - } public SigningJobSignedObject build() { - return new SigningJobSignedObject(s3s); + } + public SigningJobSignedObject build() { + final var o = new SigningJobSignedObject(); + o.s3s = s3s; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSignedObjectS3.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSignedObjectS3.java index e61cc1e713d..7caef67b039 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSignedObjectS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSignedObjectS3.java @@ -15,21 +15,14 @@ public final class SigningJobSignedObjectS3 { * @return Name of the S3 bucket. * */ - private final @Nullable String bucket; + private @Nullable String bucket; /** * @return Key name of the object that contains your unsigned code. * */ - private final @Nullable String key; - - @CustomType.Constructor - private SigningJobSignedObjectS3( - @CustomType.Parameter("bucket") @Nullable String bucket, - @CustomType.Parameter("key") @Nullable String key) { - this.bucket = bucket; - this.key = key; - } + private @Nullable String key; + private SigningJobSignedObjectS3() {} /** * @return Name of the S3 bucket. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(SigningJobSignedObjectS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucket; private @Nullable String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SigningJobSignedObjectS3 defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.key = defaults.key; } + @CustomType.Setter public Builder bucket(@Nullable String bucket) { this.bucket = bucket; return this; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; - } public SigningJobSignedObjectS3 build() { - return new SigningJobSignedObjectS3(bucket, key); + } + public SigningJobSignedObjectS3 build() { + final var o = new SigningJobSignedObjectS3(); + o.bucket = bucket; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSource.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSource.java index b49c7cbdfba..45343604de9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSource.java @@ -13,13 +13,9 @@ public final class SigningJobSource { * @return A configuration block describing the S3 Destination object: See S3 Destination below for details. * */ - private final SigningJobSourceS3 s3; - - @CustomType.Constructor - private SigningJobSource(@CustomType.Parameter("s3") SigningJobSourceS3 s3) { - this.s3 = s3; - } + private SigningJobSourceS3 s3; + private SigningJobSource() {} /** * @return A configuration block describing the S3 Destination object: See S3 Destination below for details. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(SigningJobSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private SigningJobSourceS3 s3; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SigningJobSource defaults) { Objects.requireNonNull(defaults); this.s3 = defaults.s3; } + @CustomType.Setter public Builder s3(SigningJobSourceS3 s3) { this.s3 = Objects.requireNonNull(s3); return this; - } public SigningJobSource build() { - return new SigningJobSource(s3); + } + public SigningJobSource build() { + final var o = new SigningJobSource(); + o.s3 = s3; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSourceS3.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSourceS3.java index 18c2073cf5c..4a418e9e8d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSourceS3.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningJobSourceS3.java @@ -13,28 +13,19 @@ public final class SigningJobSourceS3 { * @return Name of the S3 bucket. * */ - private final String bucket; + private String bucket; /** * @return Key name of the object that contains your unsigned code. * */ - private final String key; + private String key; /** * @return Version of your source image in your version enabled S3 bucket. * */ - private final String version; - - @CustomType.Constructor - private SigningJobSourceS3( - @CustomType.Parameter("bucket") String bucket, - @CustomType.Parameter("key") String key, - @CustomType.Parameter("version") String version) { - this.bucket = bucket; - this.key = key; - this.version = version; - } + private String version; + private SigningJobSourceS3() {} /** * @return Name of the S3 bucket. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(SigningJobSourceS3 defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucket; private String key; private String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SigningJobSourceS3 defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; @@ -81,19 +68,27 @@ public Builder(SigningJobSourceS3 defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder bucket(String bucket) { this.bucket = Objects.requireNonNull(bucket); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder version(String version) { this.version = Objects.requireNonNull(version); return this; - } public SigningJobSourceS3 build() { - return new SigningJobSourceS3(bucket, key, version); + } + public SigningJobSourceS3 build() { + final var o = new SigningJobSourceS3(); + o.bucket = bucket; + o.key = key; + o.version = version; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningProfileRevocationRecord.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningProfileRevocationRecord.java index 7fd578dfd36..36d1b9ab887 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningProfileRevocationRecord.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningProfileRevocationRecord.java @@ -11,20 +11,11 @@ @CustomType public final class SigningProfileRevocationRecord { - private final @Nullable String revocationEffectiveFrom; - private final @Nullable String revokedAt; - private final @Nullable String revokedBy; - - @CustomType.Constructor - private SigningProfileRevocationRecord( - @CustomType.Parameter("revocationEffectiveFrom") @Nullable String revocationEffectiveFrom, - @CustomType.Parameter("revokedAt") @Nullable String revokedAt, - @CustomType.Parameter("revokedBy") @Nullable String revokedBy) { - this.revocationEffectiveFrom = revocationEffectiveFrom; - this.revokedAt = revokedAt; - this.revokedBy = revokedBy; - } + private @Nullable String revocationEffectiveFrom; + private @Nullable String revokedAt; + private @Nullable String revokedBy; + private SigningProfileRevocationRecord() {} public Optional revocationEffectiveFrom() { return Optional.ofNullable(this.revocationEffectiveFrom); } @@ -42,16 +33,12 @@ public static Builder builder() { public static Builder builder(SigningProfileRevocationRecord defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String revocationEffectiveFrom; private @Nullable String revokedAt; private @Nullable String revokedBy; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SigningProfileRevocationRecord defaults) { Objects.requireNonNull(defaults); this.revocationEffectiveFrom = defaults.revocationEffectiveFrom; @@ -59,19 +46,27 @@ public Builder(SigningProfileRevocationRecord defaults) { this.revokedBy = defaults.revokedBy; } + @CustomType.Setter public Builder revocationEffectiveFrom(@Nullable String revocationEffectiveFrom) { this.revocationEffectiveFrom = revocationEffectiveFrom; return this; } + @CustomType.Setter public Builder revokedAt(@Nullable String revokedAt) { this.revokedAt = revokedAt; return this; } + @CustomType.Setter public Builder revokedBy(@Nullable String revokedBy) { this.revokedBy = revokedBy; return this; - } public SigningProfileRevocationRecord build() { - return new SigningProfileRevocationRecord(revocationEffectiveFrom, revokedAt, revokedBy); + } + public SigningProfileRevocationRecord build() { + final var o = new SigningProfileRevocationRecord(); + o.revocationEffectiveFrom = revocationEffectiveFrom; + o.revokedAt = revokedAt; + o.revokedBy = revokedBy; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningProfileSignatureValidityPeriod.java b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningProfileSignatureValidityPeriod.java index dde956ff069..91b6972ec82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningProfileSignatureValidityPeriod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/signer/outputs/SigningProfileSignatureValidityPeriod.java @@ -10,17 +10,10 @@ @CustomType public final class SigningProfileSignatureValidityPeriod { - private final String type; - private final Integer value; - - @CustomType.Constructor - private SigningProfileSignatureValidityPeriod( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") Integer value) { - this.type = type; - this.value = value; - } + private String type; + private Integer value; + private SigningProfileSignatureValidityPeriod() {} public String type() { return this.type; } @@ -35,30 +28,32 @@ public static Builder builder() { public static Builder builder(SigningProfileSignatureValidityPeriod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private Integer value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SigningProfileSignatureValidityPeriod defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.value = defaults.value; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(Integer value) { this.value = Objects.requireNonNull(value); return this; - } public SigningProfileSignatureValidityPeriod build() { - return new SigningProfileSignatureValidityPeriod(type, value); + } + public SigningProfileSignatureValidityPeriod build() { + final var o = new SigningProfileSignatureValidityPeriod(); + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sns/outputs/GetTopicResult.java b/sdk/java/src/main/java/com/pulumi/aws/sns/outputs/GetTopicResult.java index f2b29447c3c..de4e231749b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sns/outputs/GetTopicResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sns/outputs/GetTopicResult.java @@ -13,24 +13,15 @@ public final class GetTopicResult { * @return Amazon Resource Name (ARN) of the found topic, suitable for referencing in other resources that support SNS topics. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetTopicResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetTopicResult() {} /** * @return Amazon Resource Name (ARN) of the found topic, suitable for referencing in other resources that support SNS topics. * @@ -56,16 +47,12 @@ public static Builder builder() { public static Builder builder(GetTopicResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetTopicResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -73,19 +60,27 @@ public Builder(GetTopicResult defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetTopicResult build() { - return new GetTopicResult(arn, id, name); + } + public GetTopicResult build() { + final var o = new GetTopicResult(); + o.arn = arn; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/sqs/outputs/GetQueueResult.java b/sdk/java/src/main/java/com/pulumi/aws/sqs/outputs/GetQueueResult.java index 47c25a811ee..d32a550f6fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/sqs/outputs/GetQueueResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/sqs/outputs/GetQueueResult.java @@ -14,38 +14,25 @@ public final class GetQueueResult { * @return The Amazon Resource Name (ARN) of the queue. * */ - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return A map of tags for the resource. * */ - private final Map tags; + private Map tags; /** * @return The URL of the queue. * */ - private final String url; - - @CustomType.Constructor - private GetQueueResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("url") String url) { - this.arn = arn; - this.id = id; - this.name = name; - this.tags = tags; - this.url = url; - } + private String url; + private GetQueueResult() {} /** * @return The Amazon Resource Name (ARN) of the queue. * @@ -85,18 +72,14 @@ public static Builder builder() { public static Builder builder(GetQueueResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; private String name; private Map tags; private String url; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetQueueResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -106,27 +89,39 @@ public Builder(GetQueueResult defaults) { this.url = defaults.url; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder url(String url) { this.url = Objects.requireNonNull(url); return this; - } public GetQueueResult build() { - return new GetQueueResult(arn, id, name, tags, url); + } + public GetQueueResult build() { + final var o = new GetQueueResult(); + o.arn = arn; + o.id = id; + o.name = name; + o.tags = tags; + o.url = url; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/AssociationOutputLocation.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/AssociationOutputLocation.java index 6c054ae3181..cf1505fa60e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/AssociationOutputLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/AssociationOutputLocation.java @@ -15,28 +15,19 @@ public final class AssociationOutputLocation { * @return The S3 bucket name. * */ - private final String s3BucketName; + private String s3BucketName; /** * @return The S3 bucket prefix. Results stored in the root if not configured. * */ - private final @Nullable String s3KeyPrefix; + private @Nullable String s3KeyPrefix; /** * @return The S3 bucket region. * */ - private final @Nullable String s3Region; - - @CustomType.Constructor - private AssociationOutputLocation( - @CustomType.Parameter("s3BucketName") String s3BucketName, - @CustomType.Parameter("s3KeyPrefix") @Nullable String s3KeyPrefix, - @CustomType.Parameter("s3Region") @Nullable String s3Region) { - this.s3BucketName = s3BucketName; - this.s3KeyPrefix = s3KeyPrefix; - this.s3Region = s3Region; - } + private @Nullable String s3Region; + private AssociationOutputLocation() {} /** * @return The S3 bucket name. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(AssociationOutputLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String s3BucketName; private @Nullable String s3KeyPrefix; private @Nullable String s3Region; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AssociationOutputLocation defaults) { Objects.requireNonNull(defaults); this.s3BucketName = defaults.s3BucketName; @@ -83,19 +70,27 @@ public Builder(AssociationOutputLocation defaults) { this.s3Region = defaults.s3Region; } + @CustomType.Setter public Builder s3BucketName(String s3BucketName) { this.s3BucketName = Objects.requireNonNull(s3BucketName); return this; } + @CustomType.Setter public Builder s3KeyPrefix(@Nullable String s3KeyPrefix) { this.s3KeyPrefix = s3KeyPrefix; return this; } + @CustomType.Setter public Builder s3Region(@Nullable String s3Region) { this.s3Region = s3Region; return this; - } public AssociationOutputLocation build() { - return new AssociationOutputLocation(s3BucketName, s3KeyPrefix, s3Region); + } + public AssociationOutputLocation build() { + final var o = new AssociationOutputLocation(); + o.s3BucketName = s3BucketName; + o.s3KeyPrefix = s3KeyPrefix; + o.s3Region = s3Region; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/AssociationTarget.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/AssociationTarget.java index 7966cf10214..75403a867ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/AssociationTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/AssociationTarget.java @@ -14,21 +14,14 @@ public final class AssociationTarget { * @return Either `InstanceIds` or `tag:Tag Name` to specify an EC2 tag. * */ - private final String key; + private String key; /** * @return A list of instance IDs or tag values. AWS currently limits this list size to one value. * */ - private final List values; - - @CustomType.Constructor - private AssociationTarget( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") List values) { - this.key = key; - this.values = values; - } + private List values; + private AssociationTarget() {} /** * @return Either `InstanceIds` or `tag:Tag Name` to specify an EC2 tag. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(AssociationTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AssociationTarget defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public AssociationTarget build() { - return new AssociationTarget(key, values); + } + public AssociationTarget build() { + final var o = new AssociationTarget(); + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/DocumentAttachmentsSource.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/DocumentAttachmentsSource.java index 462835c146c..40f3e574613 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/DocumentAttachmentsSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/DocumentAttachmentsSource.java @@ -16,28 +16,19 @@ public final class DocumentAttachmentsSource { * @return The key describing the location of an attachment to a document. Valid key types include: `SourceUrl` and `S3FileUrl` * */ - private final String key; + private String key; /** * @return The name of the document attachment file * */ - private final @Nullable String name; + private @Nullable String name; /** * @return The value describing the location of an attachment to a document * */ - private final List values; - - @CustomType.Constructor - private DocumentAttachmentsSource( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("values") List values) { - this.key = key; - this.name = name; - this.values = values; - } + private List values; + private DocumentAttachmentsSource() {} /** * @return The key describing the location of an attachment to a document. Valid key types include: `SourceUrl` and `S3FileUrl` * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(DocumentAttachmentsSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private @Nullable String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DocumentAttachmentsSource defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; @@ -84,22 +71,30 @@ public Builder(DocumentAttachmentsSource defaults) { this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public DocumentAttachmentsSource build() { - return new DocumentAttachmentsSource(key, name, values); + } + public DocumentAttachmentsSource build() { + final var o = new DocumentAttachmentsSource(); + o.key = key; + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/DocumentParameter.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/DocumentParameter.java index 0b75124c421..800a25374a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/DocumentParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/DocumentParameter.java @@ -11,31 +11,20 @@ @CustomType public final class DocumentParameter { - private final @Nullable String defaultValue; + private @Nullable String defaultValue; /** * @return The description of the document. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return The name of the document. * */ - private final @Nullable String name; - private final @Nullable String type; - - @CustomType.Constructor - private DocumentParameter( - @CustomType.Parameter("defaultValue") @Nullable String defaultValue, - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("type") @Nullable String type) { - this.defaultValue = defaultValue; - this.description = description; - this.name = name; - this.type = type; - } + private @Nullable String name; + private @Nullable String type; + private DocumentParameter() {} public Optional defaultValue() { return Optional.ofNullable(this.defaultValue); } @@ -64,17 +53,13 @@ public static Builder builder() { public static Builder builder(DocumentParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String defaultValue; private @Nullable String description; private @Nullable String name; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DocumentParameter defaults) { Objects.requireNonNull(defaults); this.defaultValue = defaults.defaultValue; @@ -83,23 +68,33 @@ public Builder(DocumentParameter defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder defaultValue(@Nullable String defaultValue) { this.defaultValue = defaultValue; return this; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; 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; - } public DocumentParameter build() { - return new DocumentParameter(defaultValue, description, name, type); + } + public DocumentParameter build() { + final var o = new DocumentParameter(); + o.defaultValue = defaultValue; + o.description = description; + o.name = name; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetDocumentResult.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetDocumentResult.java index 92012bf6c60..5cf62b0a628 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetDocumentResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetDocumentResult.java @@ -15,44 +15,27 @@ public final class GetDocumentResult { * @return The ARN of the document. If the document is an AWS managed document, this value will be set to the name of the document instead. * */ - private final String arn; + private String arn; /** * @return The contents of the document. * */ - private final String content; - private final @Nullable String documentFormat; + private String content; + private @Nullable String documentFormat; /** * @return The type of the document. * */ - private final String documentType; - private final @Nullable String documentVersion; + private String documentType; + private @Nullable String documentVersion; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetDocumentResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("content") String content, - @CustomType.Parameter("documentFormat") @Nullable String documentFormat, - @CustomType.Parameter("documentType") String documentType, - @CustomType.Parameter("documentVersion") @Nullable String documentVersion, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.arn = arn; - this.content = content; - this.documentFormat = documentFormat; - this.documentType = documentType; - this.documentVersion = documentVersion; - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetDocumentResult() {} /** * @return The ARN of the document. If the document is an AWS managed document, this value will be set to the name of the document instead. * @@ -98,7 +81,7 @@ public static Builder builder() { public static Builder builder(GetDocumentResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String content; @@ -107,11 +90,7 @@ public static final class Builder { private @Nullable String documentVersion; private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDocumentResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -123,35 +102,51 @@ public Builder(GetDocumentResult defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder documentFormat(@Nullable String documentFormat) { this.documentFormat = documentFormat; return this; } + @CustomType.Setter public Builder documentType(String documentType) { this.documentType = Objects.requireNonNull(documentType); return this; } + @CustomType.Setter public Builder documentVersion(@Nullable String documentVersion) { this.documentVersion = documentVersion; return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetDocumentResult build() { - return new GetDocumentResult(arn, content, documentFormat, documentType, documentVersion, id, name); + } + public GetDocumentResult build() { + final var o = new GetDocumentResult(); + o.arn = arn; + o.content = content; + o.documentFormat = documentFormat; + o.documentType = documentType; + o.documentVersion = documentVersion; + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetInstancesFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetInstancesFilter.java index 66322e5e1b2..2e584eb5e1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetInstancesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetInstancesFilter.java @@ -14,21 +14,14 @@ public final class GetInstancesFilter { * @return The name of the filter field. Valid values can be found in the [SSM InstanceInformationStringFilter API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_InstanceInformationStringFilter.html). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetInstancesFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetInstancesFilter() {} /** * @return The name of the filter field. Valid values can be found in the [SSM InstanceInformationStringFilter API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_InstanceInformationStringFilter.html). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetInstancesFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstancesFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetInstancesFilter build() { - return new GetInstancesFilter(name, values); + } + public GetInstancesFilter build() { + final var o = new GetInstancesFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetInstancesResult.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetInstancesResult.java index a31f55c3c95..ddf8e90296a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetInstancesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetInstancesResult.java @@ -12,28 +12,19 @@ @CustomType public final class GetInstancesResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of instance IDs of the matched SSM managed instances. * */ - private final List ids; - - @CustomType.Constructor - private GetInstancesResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids) { - this.filters = filters; - this.id = id; - this.ids = ids; - } + private List ids; + private GetInstancesResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(GetInstancesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstancesResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -76,6 +63,7 @@ public Builder(GetInstancesResult defaults) { this.ids = defaults.ids; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -83,18 +71,25 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetInstancesFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; } public Builder ids(String... ids) { return ids(List.of(ids)); - } public GetInstancesResult build() { - return new GetInstancesResult(filters, id, ids); + } + public GetInstancesResult build() { + final var o = new GetInstancesResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetMaintenanceWindowsFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetMaintenanceWindowsFilter.java index 43f668ddf21..81df64c5ca2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetMaintenanceWindowsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetMaintenanceWindowsFilter.java @@ -14,21 +14,14 @@ public final class GetMaintenanceWindowsFilter { * @return The name of the filter field. Valid values can be found in the [SSM DescribeMaintenanceWindows API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_DescribeMaintenanceWindows.html#API_DescribeMaintenanceWindows_RequestSyntax). * */ - private final String name; + private String name; /** * @return Set of values that are accepted for the given filter field. Results will be selected if any given value matches. * */ - private final List values; - - @CustomType.Constructor - private GetMaintenanceWindowsFilter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private GetMaintenanceWindowsFilter() {} /** * @return The name of the filter field. Valid values can be found in the [SSM DescribeMaintenanceWindows API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_DescribeMaintenanceWindows.html#API_DescribeMaintenanceWindows_RequestSyntax). * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetMaintenanceWindowsFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMaintenanceWindowsFilter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetMaintenanceWindowsFilter build() { - return new GetMaintenanceWindowsFilter(name, values); + } + public GetMaintenanceWindowsFilter build() { + final var o = new GetMaintenanceWindowsFilter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetMaintenanceWindowsResult.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetMaintenanceWindowsResult.java index e753221c6b4..0f2cbe09618 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetMaintenanceWindowsResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetMaintenanceWindowsResult.java @@ -12,28 +12,19 @@ @CustomType public final class GetMaintenanceWindowsResult { - private final @Nullable List filters; + private @Nullable List filters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return List of window IDs of the matched SSM maintenance windows. * */ - private final List ids; - - @CustomType.Constructor - private GetMaintenanceWindowsResult( - @CustomType.Parameter("filters") @Nullable List filters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ids") List ids) { - this.filters = filters; - this.id = id; - this.ids = ids; - } + private List ids; + private GetMaintenanceWindowsResult() {} public List filters() { return this.filters == null ? List.of() : this.filters; } @@ -59,16 +50,12 @@ public static Builder builder() { public static Builder builder(GetMaintenanceWindowsResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List filters; private String id; private List ids; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetMaintenanceWindowsResult defaults) { Objects.requireNonNull(defaults); this.filters = defaults.filters; @@ -76,6 +63,7 @@ public Builder(GetMaintenanceWindowsResult defaults) { this.ids = defaults.ids; } + @CustomType.Setter public Builder filters(@Nullable List filters) { this.filters = filters; return this; @@ -83,18 +71,25 @@ public Builder filters(@Nullable List filters) { public Builder filters(GetMaintenanceWindowsFilter... filters) { return filters(List.of(filters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ids(List ids) { this.ids = Objects.requireNonNull(ids); return this; } public Builder ids(String... ids) { return ids(List.of(ids)); - } public GetMaintenanceWindowsResult build() { - return new GetMaintenanceWindowsResult(filters, id, ids); + } + public GetMaintenanceWindowsResult build() { + final var o = new GetMaintenanceWindowsResult(); + o.filters = filters; + o.id = id; + o.ids = ids; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetParameterResult.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetParameterResult.java index 94ab2acde87..b01625912dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetParameterResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetParameterResult.java @@ -13,36 +13,19 @@ @CustomType public final class GetParameterResult { - private final String arn; + private String arn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - private final String type; - private final String value; - private final Integer version; - private final @Nullable Boolean withDecryption; - - @CustomType.Constructor - private GetParameterResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") String value, - @CustomType.Parameter("version") Integer version, - @CustomType.Parameter("withDecryption") @Nullable Boolean withDecryption) { - this.arn = arn; - this.id = id; - this.name = name; - this.type = type; - this.value = value; - this.version = version; - this.withDecryption = withDecryption; - } + private String id; + private String name; + private String type; + private String value; + private Integer version; + private @Nullable Boolean withDecryption; + private GetParameterResult() {} public String arn() { return this.arn; } @@ -76,7 +59,7 @@ public static Builder builder() { public static Builder builder(GetParameterResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String id; @@ -85,11 +68,7 @@ public static final class Builder { private String value; private Integer version; private @Nullable Boolean withDecryption; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetParameterResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -101,35 +80,51 @@ public Builder(GetParameterResult defaults) { this.withDecryption = defaults.withDecryption; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; } + @CustomType.Setter public Builder version(Integer version) { this.version = Objects.requireNonNull(version); return this; } + @CustomType.Setter public Builder withDecryption(@Nullable Boolean withDecryption) { this.withDecryption = withDecryption; return this; - } public GetParameterResult build() { - return new GetParameterResult(arn, id, name, type, value, version, withDecryption); + } + public GetParameterResult build() { + final var o = new GetParameterResult(); + o.arn = arn; + o.id = id; + o.name = name; + o.type = type; + o.value = value; + o.version = version; + o.withDecryption = withDecryption; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetParametersByPathResult.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetParametersByPathResult.java index 141a88b2830..68c96e55000 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetParametersByPathResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetParametersByPathResult.java @@ -13,39 +13,20 @@ @CustomType public final class GetParametersByPathResult { - private final List arns; + private List arns; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final List names; - private final String path; - private final @Nullable Boolean recursive; - private final List types; - private final List values; - private final @Nullable Boolean withDecryption; - - @CustomType.Constructor - private GetParametersByPathResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("names") List names, - @CustomType.Parameter("path") String path, - @CustomType.Parameter("recursive") @Nullable Boolean recursive, - @CustomType.Parameter("types") List types, - @CustomType.Parameter("values") List values, - @CustomType.Parameter("withDecryption") @Nullable Boolean withDecryption) { - this.arns = arns; - this.id = id; - this.names = names; - this.path = path; - this.recursive = recursive; - this.types = types; - this.values = values; - this.withDecryption = withDecryption; - } + private String id; + private List names; + private String path; + private @Nullable Boolean recursive; + private List types; + private List values; + private @Nullable Boolean withDecryption; + private GetParametersByPathResult() {} public List arns() { return this.arns; } @@ -82,7 +63,7 @@ public static Builder builder() { public static Builder builder(GetParametersByPathResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private String id; @@ -92,11 +73,7 @@ public static final class Builder { private List types; private List values; private @Nullable Boolean withDecryption; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetParametersByPathResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -109,6 +86,7 @@ public Builder(GetParametersByPathResult defaults) { this.withDecryption = defaults.withDecryption; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -116,10 +94,12 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder names(List names) { this.names = Objects.requireNonNull(names); return this; @@ -127,14 +107,17 @@ public Builder names(List names) { public Builder names(String... names) { return names(List.of(names)); } + @CustomType.Setter public Builder path(String path) { this.path = Objects.requireNonNull(path); return this; } + @CustomType.Setter public Builder recursive(@Nullable Boolean recursive) { this.recursive = recursive; return this; } + @CustomType.Setter public Builder types(List types) { this.types = Objects.requireNonNull(types); return this; @@ -142,6 +125,7 @@ public Builder types(List types) { public Builder types(String... types) { return types(List.of(types)); } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; @@ -149,11 +133,22 @@ public Builder values(List values) { public Builder values(String... values) { return values(List.of(values)); } + @CustomType.Setter public Builder withDecryption(@Nullable Boolean withDecryption) { this.withDecryption = withDecryption; return this; - } public GetParametersByPathResult build() { - return new GetParametersByPathResult(arns, id, names, path, recursive, types, values, withDecryption); + } + public GetParametersByPathResult build() { + final var o = new GetParametersByPathResult(); + o.arns = arns; + o.id = id; + o.names = names; + o.path = path; + o.recursive = recursive; + o.types = types; + o.values = values; + o.withDecryption = withDecryption; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineApprovalRule.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineApprovalRule.java index a8e8a9ceee5..591ff73fbda 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineApprovalRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineApprovalRule.java @@ -17,42 +17,29 @@ public final class GetPatchBaselineApprovalRule { * @return The number of days after the release date of each patch matched by the rule the patch is marked as approved in the patch baseline. * */ - private final Integer approveAfterDays; + private Integer approveAfterDays; /** * @return The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Date is formatted as `YYYY-MM-DD`. Conflicts with `approve_after_days` * */ - private final String approveUntilDate; + private String approveUntilDate; /** * @return The compliance level for patches approved by this rule. * */ - private final String complianceLevel; + private String complianceLevel; /** * @return Boolean enabling the application of non-security updates. * */ - private final Boolean enableNonSecurity; + private Boolean enableNonSecurity; /** * @return The patch filter group that defines the criteria for the rule. * */ - private final List patchFilters; - - @CustomType.Constructor - private GetPatchBaselineApprovalRule( - @CustomType.Parameter("approveAfterDays") Integer approveAfterDays, - @CustomType.Parameter("approveUntilDate") String approveUntilDate, - @CustomType.Parameter("complianceLevel") String complianceLevel, - @CustomType.Parameter("enableNonSecurity") Boolean enableNonSecurity, - @CustomType.Parameter("patchFilters") List patchFilters) { - this.approveAfterDays = approveAfterDays; - this.approveUntilDate = approveUntilDate; - this.complianceLevel = complianceLevel; - this.enableNonSecurity = enableNonSecurity; - this.patchFilters = patchFilters; - } + private List patchFilters; + private GetPatchBaselineApprovalRule() {} /** * @return The number of days after the release date of each patch matched by the rule the patch is marked as approved in the patch baseline. * @@ -96,18 +83,14 @@ public static Builder builder() { public static Builder builder(GetPatchBaselineApprovalRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer approveAfterDays; private String approveUntilDate; private String complianceLevel; private Boolean enableNonSecurity; private List patchFilters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPatchBaselineApprovalRule defaults) { Objects.requireNonNull(defaults); this.approveAfterDays = defaults.approveAfterDays; @@ -117,30 +100,42 @@ public Builder(GetPatchBaselineApprovalRule defaults) { this.patchFilters = defaults.patchFilters; } + @CustomType.Setter public Builder approveAfterDays(Integer approveAfterDays) { this.approveAfterDays = Objects.requireNonNull(approveAfterDays); return this; } + @CustomType.Setter public Builder approveUntilDate(String approveUntilDate) { this.approveUntilDate = Objects.requireNonNull(approveUntilDate); return this; } + @CustomType.Setter public Builder complianceLevel(String complianceLevel) { this.complianceLevel = Objects.requireNonNull(complianceLevel); return this; } + @CustomType.Setter public Builder enableNonSecurity(Boolean enableNonSecurity) { this.enableNonSecurity = Objects.requireNonNull(enableNonSecurity); return this; } + @CustomType.Setter public Builder patchFilters(List patchFilters) { this.patchFilters = Objects.requireNonNull(patchFilters); return this; } public Builder patchFilters(GetPatchBaselineApprovalRulePatchFilter... patchFilters) { return patchFilters(List.of(patchFilters)); - } public GetPatchBaselineApprovalRule build() { - return new GetPatchBaselineApprovalRule(approveAfterDays, approveUntilDate, complianceLevel, enableNonSecurity, patchFilters); + } + public GetPatchBaselineApprovalRule build() { + final var o = new GetPatchBaselineApprovalRule(); + o.approveAfterDays = approveAfterDays; + o.approveUntilDate = approveUntilDate; + o.complianceLevel = complianceLevel; + o.enableNonSecurity = enableNonSecurity; + o.patchFilters = patchFilters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineApprovalRulePatchFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineApprovalRulePatchFilter.java index 5db21ef8af0..80384489b23 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineApprovalRulePatchFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineApprovalRulePatchFilter.java @@ -14,21 +14,14 @@ public final class GetPatchBaselineApprovalRulePatchFilter { * @return The key for the filter. * */ - private final String key; + private String key; /** * @return The value for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetPatchBaselineApprovalRulePatchFilter( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") List values) { - this.key = key; - this.values = values; - } + private List values; + private GetPatchBaselineApprovalRulePatchFilter() {} /** * @return The key for the filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetPatchBaselineApprovalRulePatchFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPatchBaselineApprovalRulePatchFilter defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetPatchBaselineApprovalRulePatchFilter build() { - return new GetPatchBaselineApprovalRulePatchFilter(key, values); + } + public GetPatchBaselineApprovalRulePatchFilter build() { + final var o = new GetPatchBaselineApprovalRulePatchFilter(); + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineGlobalFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineGlobalFilter.java index 29106144668..47abc4e1942 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineGlobalFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineGlobalFilter.java @@ -14,21 +14,14 @@ public final class GetPatchBaselineGlobalFilter { * @return The key for the filter. * */ - private final String key; + private String key; /** * @return The value for the filter. * */ - private final List values; - - @CustomType.Constructor - private GetPatchBaselineGlobalFilter( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") List values) { - this.key = key; - this.values = values; - } + private List values; + private GetPatchBaselineGlobalFilter() {} /** * @return The key for the filter. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(GetPatchBaselineGlobalFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPatchBaselineGlobalFilter defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public GetPatchBaselineGlobalFilter build() { - return new GetPatchBaselineGlobalFilter(key, values); + } + public GetPatchBaselineGlobalFilter build() { + final var o = new GetPatchBaselineGlobalFilter(); + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineResult.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineResult.java index 4076e1c4141..c9c1f767d45 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineResult.java @@ -20,96 +20,63 @@ public final class GetPatchBaselineResult { * @return A list of rules used to include patches in the baseline. * */ - private final List approvalRules; + private List approvalRules; /** * @return A list of explicitly approved patches for the baseline. * */ - private final List approvedPatches; + private List approvedPatches; /** * @return The compliance level for approved patches. * */ - private final String approvedPatchesComplianceLevel; + private String approvedPatchesComplianceLevel; /** * @return Indicates whether the list of approved patches includes non-security updates that should be applied to the instances. * */ - private final Boolean approvedPatchesEnableNonSecurity; - private final @Nullable Boolean defaultBaseline; + private Boolean approvedPatchesEnableNonSecurity; + private @Nullable Boolean defaultBaseline; /** * @return The description of the baseline. * */ - private final String description; + private String description; /** * @return A set of global filters used to exclude patches from the baseline. * */ - private final List globalFilters; + private List globalFilters; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name specified to identify the patch source. * */ - private final String name; - private final @Nullable String namePrefix; - private final @Nullable String operatingSystem; - private final String owner; + private String name; + private @Nullable String namePrefix; + private @Nullable String operatingSystem; + private String owner; /** * @return A list of rejected patches. * */ - private final List rejectedPatches; + private List rejectedPatches; /** * @return The action specified to take on patches included in the `rejected_patches` list. * */ - private final String rejectedPatchesAction; + private String rejectedPatchesAction; /** * @return Information about the patches to use to update the managed nodes, including target operating systems and source repositories. * */ - private final List sources; - - @CustomType.Constructor - private GetPatchBaselineResult( - @CustomType.Parameter("approvalRules") List approvalRules, - @CustomType.Parameter("approvedPatches") List approvedPatches, - @CustomType.Parameter("approvedPatchesComplianceLevel") String approvedPatchesComplianceLevel, - @CustomType.Parameter("approvedPatchesEnableNonSecurity") Boolean approvedPatchesEnableNonSecurity, - @CustomType.Parameter("defaultBaseline") @Nullable Boolean defaultBaseline, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("globalFilters") List globalFilters, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("namePrefix") @Nullable String namePrefix, - @CustomType.Parameter("operatingSystem") @Nullable String operatingSystem, - @CustomType.Parameter("owner") String owner, - @CustomType.Parameter("rejectedPatches") List rejectedPatches, - @CustomType.Parameter("rejectedPatchesAction") String rejectedPatchesAction, - @CustomType.Parameter("sources") List sources) { - this.approvalRules = approvalRules; - this.approvedPatches = approvedPatches; - this.approvedPatchesComplianceLevel = approvedPatchesComplianceLevel; - this.approvedPatchesEnableNonSecurity = approvedPatchesEnableNonSecurity; - this.defaultBaseline = defaultBaseline; - this.description = description; - this.globalFilters = globalFilters; - this.id = id; - this.name = name; - this.namePrefix = namePrefix; - this.operatingSystem = operatingSystem; - this.owner = owner; - this.rejectedPatches = rejectedPatches; - this.rejectedPatchesAction = rejectedPatchesAction; - this.sources = sources; - } + private List sources; + private GetPatchBaselineResult() {} /** * @return A list of rules used to include patches in the baseline. * @@ -207,7 +174,7 @@ public static Builder builder() { public static Builder builder(GetPatchBaselineResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List approvalRules; private List approvedPatches; @@ -224,11 +191,7 @@ public static final class Builder { private List rejectedPatches; private String rejectedPatchesAction; private List sources; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPatchBaselineResult defaults) { Objects.requireNonNull(defaults); this.approvalRules = defaults.approvalRules; @@ -248,6 +211,7 @@ public Builder(GetPatchBaselineResult defaults) { this.sources = defaults.sources; } + @CustomType.Setter public Builder approvalRules(List approvalRules) { this.approvalRules = Objects.requireNonNull(approvalRules); return this; @@ -255,6 +219,7 @@ public Builder approvalRules(List approvalRules) { public Builder approvalRules(GetPatchBaselineApprovalRule... approvalRules) { return approvalRules(List.of(approvalRules)); } + @CustomType.Setter public Builder approvedPatches(List approvedPatches) { this.approvedPatches = Objects.requireNonNull(approvedPatches); return this; @@ -262,22 +227,27 @@ public Builder approvedPatches(List approvedPatches) { public Builder approvedPatches(String... approvedPatches) { return approvedPatches(List.of(approvedPatches)); } + @CustomType.Setter public Builder approvedPatchesComplianceLevel(String approvedPatchesComplianceLevel) { this.approvedPatchesComplianceLevel = Objects.requireNonNull(approvedPatchesComplianceLevel); return this; } + @CustomType.Setter public Builder approvedPatchesEnableNonSecurity(Boolean approvedPatchesEnableNonSecurity) { this.approvedPatchesEnableNonSecurity = Objects.requireNonNull(approvedPatchesEnableNonSecurity); return this; } + @CustomType.Setter public Builder defaultBaseline(@Nullable Boolean defaultBaseline) { this.defaultBaseline = defaultBaseline; return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder globalFilters(List globalFilters) { this.globalFilters = Objects.requireNonNull(globalFilters); return this; @@ -285,26 +255,32 @@ public Builder globalFilters(List globalFilters) { public Builder globalFilters(GetPatchBaselineGlobalFilter... globalFilters) { return globalFilters(List.of(globalFilters)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder namePrefix(@Nullable String namePrefix) { this.namePrefix = namePrefix; return this; } + @CustomType.Setter public Builder operatingSystem(@Nullable String operatingSystem) { this.operatingSystem = operatingSystem; return this; } + @CustomType.Setter public Builder owner(String owner) { this.owner = Objects.requireNonNull(owner); return this; } + @CustomType.Setter public Builder rejectedPatches(List rejectedPatches) { this.rejectedPatches = Objects.requireNonNull(rejectedPatches); return this; @@ -312,18 +288,37 @@ public Builder rejectedPatches(List rejectedPatches) { public Builder rejectedPatches(String... rejectedPatches) { return rejectedPatches(List.of(rejectedPatches)); } + @CustomType.Setter public Builder rejectedPatchesAction(String rejectedPatchesAction) { this.rejectedPatchesAction = Objects.requireNonNull(rejectedPatchesAction); return this; } + @CustomType.Setter public Builder sources(List sources) { this.sources = Objects.requireNonNull(sources); return this; } public Builder sources(GetPatchBaselineSource... sources) { return sources(List.of(sources)); - } public GetPatchBaselineResult build() { - return new GetPatchBaselineResult(approvalRules, approvedPatches, approvedPatchesComplianceLevel, approvedPatchesEnableNonSecurity, defaultBaseline, description, globalFilters, id, name, namePrefix, operatingSystem, owner, rejectedPatches, rejectedPatchesAction, sources); + } + public GetPatchBaselineResult build() { + final var o = new GetPatchBaselineResult(); + o.approvalRules = approvalRules; + o.approvedPatches = approvedPatches; + o.approvedPatchesComplianceLevel = approvedPatchesComplianceLevel; + o.approvedPatchesEnableNonSecurity = approvedPatchesEnableNonSecurity; + o.defaultBaseline = defaultBaseline; + o.description = description; + o.globalFilters = globalFilters; + o.id = id; + o.name = name; + o.namePrefix = namePrefix; + o.operatingSystem = operatingSystem; + o.owner = owner; + o.rejectedPatches = rejectedPatches; + o.rejectedPatchesAction = rejectedPatchesAction; + o.sources = sources; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineSource.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineSource.java index 2a1305d019c..5f4435e5da2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/GetPatchBaselineSource.java @@ -14,28 +14,19 @@ public final class GetPatchBaselineSource { * @return The value of the yum repo configuration. * */ - private final String configuration; + private String configuration; /** * @return The name specified to identify the patch source. * */ - private final String name; + private String name; /** * @return The specific operating system versions a patch repository applies to. * */ - private final List products; - - @CustomType.Constructor - private GetPatchBaselineSource( - @CustomType.Parameter("configuration") String configuration, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("products") List products) { - this.configuration = configuration; - this.name = name; - this.products = products; - } + private List products; + private GetPatchBaselineSource() {} /** * @return The value of the yum repo configuration. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetPatchBaselineSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String configuration; private String name; private List products; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPatchBaselineSource defaults) { Objects.requireNonNull(defaults); this.configuration = defaults.configuration; @@ -82,22 +69,30 @@ public Builder(GetPatchBaselineSource defaults) { this.products = defaults.products; } + @CustomType.Setter public Builder configuration(String configuration) { this.configuration = Objects.requireNonNull(configuration); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder products(List products) { this.products = Objects.requireNonNull(products); return this; } public Builder products(String... products) { return products(List.of(products)); - } public GetPatchBaselineSource build() { - return new GetPatchBaselineSource(configuration, name, products); + } + public GetPatchBaselineSource build() { + final var o = new GetPatchBaselineSource(); + o.configuration = configuration; + o.name = name; + o.products = products; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTargetTarget.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTargetTarget.java index 45e39681e81..bb4ddb4508d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTargetTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTargetTarget.java @@ -10,17 +10,10 @@ @CustomType public final class MaintenanceWindowTargetTarget { - private final String key; - private final List values; - - @CustomType.Constructor - private MaintenanceWindowTargetTarget( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") List values) { - this.key = key; - this.values = values; - } + private String key; + private List values; + private MaintenanceWindowTargetTarget() {} public String key() { return this.key; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(MaintenanceWindowTargetTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MaintenanceWindowTargetTarget defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public MaintenanceWindowTargetTarget build() { - return new MaintenanceWindowTargetTarget(key, values); + } + public MaintenanceWindowTargetTarget build() { + final var o = new MaintenanceWindowTargetTarget(); + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTarget.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTarget.java index 974a8c6fcd6..9808e46910c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTarget.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTarget.java @@ -10,21 +10,14 @@ @CustomType public final class MaintenanceWindowTaskTarget { - private final String key; + private String key; /** * @return The array of strings. * */ - private final List values; - - @CustomType.Constructor - private MaintenanceWindowTaskTarget( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") List values) { - this.key = key; - this.values = values; - } + private List values; + private MaintenanceWindowTaskTarget() {} public String key() { return this.key; } @@ -43,33 +36,35 @@ public static Builder builder() { public static Builder builder(MaintenanceWindowTaskTarget defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MaintenanceWindowTaskTarget defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public MaintenanceWindowTaskTarget build() { - return new MaintenanceWindowTaskTarget(key, values); + } + public MaintenanceWindowTaskTarget build() { + final var o = new MaintenanceWindowTaskTarget(); + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParameters.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParameters.java index 8febb98a9e1..53d4045d066 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParameters.java @@ -18,35 +18,24 @@ public final class MaintenanceWindowTaskTaskInvocationParameters { * @return The parameters for an AUTOMATION task type. Documented below. * */ - private final @Nullable MaintenanceWindowTaskTaskInvocationParametersAutomationParameters automationParameters; + private @Nullable MaintenanceWindowTaskTaskInvocationParametersAutomationParameters automationParameters; /** * @return The parameters for a LAMBDA task type. Documented below. * */ - private final @Nullable MaintenanceWindowTaskTaskInvocationParametersLambdaParameters lambdaParameters; + private @Nullable MaintenanceWindowTaskTaskInvocationParametersLambdaParameters lambdaParameters; /** * @return The parameters for a RUN_COMMAND task type. Documented below. * */ - private final @Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters runCommandParameters; + private @Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters runCommandParameters; /** * @return The parameters for a STEP_FUNCTIONS task type. Documented below. * */ - private final @Nullable MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters stepFunctionsParameters; - - @CustomType.Constructor - private MaintenanceWindowTaskTaskInvocationParameters( - @CustomType.Parameter("automationParameters") @Nullable MaintenanceWindowTaskTaskInvocationParametersAutomationParameters automationParameters, - @CustomType.Parameter("lambdaParameters") @Nullable MaintenanceWindowTaskTaskInvocationParametersLambdaParameters lambdaParameters, - @CustomType.Parameter("runCommandParameters") @Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters runCommandParameters, - @CustomType.Parameter("stepFunctionsParameters") @Nullable MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters stepFunctionsParameters) { - this.automationParameters = automationParameters; - this.lambdaParameters = lambdaParameters; - this.runCommandParameters = runCommandParameters; - this.stepFunctionsParameters = stepFunctionsParameters; - } + private @Nullable MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters stepFunctionsParameters; + private MaintenanceWindowTaskTaskInvocationParameters() {} /** * @return The parameters for an AUTOMATION task type. Documented below. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(MaintenanceWindowTaskTaskInvocationParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable MaintenanceWindowTaskTaskInvocationParametersAutomationParameters automationParameters; private @Nullable MaintenanceWindowTaskTaskInvocationParametersLambdaParameters lambdaParameters; private @Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters runCommandParameters; private @Nullable MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters stepFunctionsParameters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MaintenanceWindowTaskTaskInvocationParameters defaults) { Objects.requireNonNull(defaults); this.automationParameters = defaults.automationParameters; @@ -102,23 +87,33 @@ public Builder(MaintenanceWindowTaskTaskInvocationParameters defaults) { this.stepFunctionsParameters = defaults.stepFunctionsParameters; } + @CustomType.Setter public Builder automationParameters(@Nullable MaintenanceWindowTaskTaskInvocationParametersAutomationParameters automationParameters) { this.automationParameters = automationParameters; return this; } + @CustomType.Setter public Builder lambdaParameters(@Nullable MaintenanceWindowTaskTaskInvocationParametersLambdaParameters lambdaParameters) { this.lambdaParameters = lambdaParameters; return this; } + @CustomType.Setter public Builder runCommandParameters(@Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters runCommandParameters) { this.runCommandParameters = runCommandParameters; return this; } + @CustomType.Setter public Builder stepFunctionsParameters(@Nullable MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters stepFunctionsParameters) { this.stepFunctionsParameters = stepFunctionsParameters; return this; - } public MaintenanceWindowTaskTaskInvocationParameters build() { - return new MaintenanceWindowTaskTaskInvocationParameters(automationParameters, lambdaParameters, runCommandParameters, stepFunctionsParameters); + } + public MaintenanceWindowTaskTaskInvocationParameters build() { + final var o = new MaintenanceWindowTaskTaskInvocationParameters(); + o.automationParameters = automationParameters; + o.lambdaParameters = lambdaParameters; + o.runCommandParameters = runCommandParameters; + o.stepFunctionsParameters = stepFunctionsParameters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersAutomationParameters.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersAutomationParameters.java index 4d0045e35f9..6c88a952ffb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersAutomationParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersAutomationParameters.java @@ -17,21 +17,14 @@ public final class MaintenanceWindowTaskTaskInvocationParametersAutomationParame * @return The version of an Automation document to use during task execution. * */ - private final @Nullable String documentVersion; + private @Nullable String documentVersion; /** * @return The parameters for the RUN_COMMAND task execution. Documented below. * */ - private final @Nullable List parameters; - - @CustomType.Constructor - private MaintenanceWindowTaskTaskInvocationParametersAutomationParameters( - @CustomType.Parameter("documentVersion") @Nullable String documentVersion, - @CustomType.Parameter("parameters") @Nullable List parameters) { - this.documentVersion = documentVersion; - this.parameters = parameters; - } + private @Nullable List parameters; + private MaintenanceWindowTaskTaskInvocationParametersAutomationParameters() {} /** * @return The version of an Automation document to use during task execution. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(MaintenanceWindowTaskTaskInvocationParametersAutomationParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String documentVersion; private @Nullable List parameters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MaintenanceWindowTaskTaskInvocationParametersAutomationParameters defaults) { Objects.requireNonNull(defaults); this.documentVersion = defaults.documentVersion; this.parameters = defaults.parameters; } + @CustomType.Setter public Builder documentVersion(@Nullable String documentVersion) { this.documentVersion = documentVersion; return this; } + @CustomType.Setter public Builder parameters(@Nullable List parameters) { this.parameters = parameters; return this; } public Builder parameters(MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter... parameters) { return parameters(List.of(parameters)); - } public MaintenanceWindowTaskTaskInvocationParametersAutomationParameters build() { - return new MaintenanceWindowTaskTaskInvocationParametersAutomationParameters(documentVersion, parameters); + } + public MaintenanceWindowTaskTaskInvocationParametersAutomationParameters build() { + final var o = new MaintenanceWindowTaskTaskInvocationParametersAutomationParameters(); + o.documentVersion = documentVersion; + o.parameters = parameters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter.java index 580af89e67e..8e788889ae0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter.java @@ -14,21 +14,14 @@ public final class MaintenanceWindowTaskTaskInvocationParametersAutomationParame * @return The parameter name. * */ - private final String name; + private String name; /** * @return The array of strings. * */ - private final List values; - - @CustomType.Constructor - private MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter() {} /** * @return The parameter name. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter build() { - return new MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter(name, values); + } + public MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter build() { + final var o = new MaintenanceWindowTaskTaskInvocationParametersAutomationParametersParameter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersLambdaParameters.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersLambdaParameters.java index 8bcd490fd24..c040b63fa36 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersLambdaParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersLambdaParameters.java @@ -15,28 +15,19 @@ public final class MaintenanceWindowTaskTaskInvocationParametersLambdaParameters * @return Pass client-specific information to the Lambda function that you are invoking. * */ - private final @Nullable String clientContext; + private @Nullable String clientContext; /** * @return JSON to provide to your Lambda function as input. * */ - private final @Nullable String payload; + private @Nullable String payload; /** * @return Specify a Lambda function version or alias name. * */ - private final @Nullable String qualifier; - - @CustomType.Constructor - private MaintenanceWindowTaskTaskInvocationParametersLambdaParameters( - @CustomType.Parameter("clientContext") @Nullable String clientContext, - @CustomType.Parameter("payload") @Nullable String payload, - @CustomType.Parameter("qualifier") @Nullable String qualifier) { - this.clientContext = clientContext; - this.payload = payload; - this.qualifier = qualifier; - } + private @Nullable String qualifier; + private MaintenanceWindowTaskTaskInvocationParametersLambdaParameters() {} /** * @return Pass client-specific information to the Lambda function that you are invoking. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(MaintenanceWindowTaskTaskInvocationParametersLambdaParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String clientContext; private @Nullable String payload; private @Nullable String qualifier; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MaintenanceWindowTaskTaskInvocationParametersLambdaParameters defaults) { Objects.requireNonNull(defaults); this.clientContext = defaults.clientContext; @@ -83,19 +70,27 @@ public Builder(MaintenanceWindowTaskTaskInvocationParametersLambdaParameters def this.qualifier = defaults.qualifier; } + @CustomType.Setter public Builder clientContext(@Nullable String clientContext) { this.clientContext = clientContext; return this; } + @CustomType.Setter public Builder payload(@Nullable String payload) { this.payload = payload; return this; } + @CustomType.Setter public Builder qualifier(@Nullable String qualifier) { this.qualifier = qualifier; return this; - } public MaintenanceWindowTaskTaskInvocationParametersLambdaParameters build() { - return new MaintenanceWindowTaskTaskInvocationParametersLambdaParameters(clientContext, payload, qualifier); + } + public MaintenanceWindowTaskTaskInvocationParametersLambdaParameters build() { + final var o = new MaintenanceWindowTaskTaskInvocationParametersLambdaParameters(); + o.clientContext = clientContext; + o.payload = payload; + o.qualifier = qualifier; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters.java index 792fb94339e..7987f700522 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters.java @@ -20,84 +20,59 @@ public final class MaintenanceWindowTaskTaskInvocationParametersRunCommandParame * @return Configuration options for sending command output to CloudWatch Logs. Documented below. * */ - private final @Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfig cloudwatchConfig; + private @Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfig cloudwatchConfig; /** * @return Information about the command(s) to execute. * */ - private final @Nullable String comment; + private @Nullable String comment; /** * @return The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated. * */ - private final @Nullable String documentHash; + private @Nullable String documentHash; /** * @return SHA-256 or SHA-1. SHA-1 hashes have been deprecated. Valid values: `Sha256` and `Sha1` * */ - private final @Nullable String documentHashType; + private @Nullable String documentHashType; /** * @return The version of an Automation document to use during task execution. * */ - private final @Nullable String documentVersion; + private @Nullable String documentVersion; /** * @return Configurations for sending notifications about command status changes on a per-instance basis. Documented below. * */ - private final @Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig notificationConfig; + private @Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig notificationConfig; /** * @return The name of the Amazon S3 bucket. * */ - private final @Nullable String outputS3Bucket; + private @Nullable String outputS3Bucket; /** * @return The Amazon S3 bucket subfolder. * */ - private final @Nullable String outputS3KeyPrefix; + private @Nullable String outputS3KeyPrefix; /** * @return The parameters for the RUN_COMMAND task execution. Documented below. * */ - private final @Nullable List parameters; + private @Nullable List parameters; /** * @return The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks. * */ - private final @Nullable String serviceRoleArn; + private @Nullable String serviceRoleArn; /** * @return If this time is reached and the command has not already started executing, it doesn't run. * */ - private final @Nullable Integer timeoutSeconds; - - @CustomType.Constructor - private MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters( - @CustomType.Parameter("cloudwatchConfig") @Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfig cloudwatchConfig, - @CustomType.Parameter("comment") @Nullable String comment, - @CustomType.Parameter("documentHash") @Nullable String documentHash, - @CustomType.Parameter("documentHashType") @Nullable String documentHashType, - @CustomType.Parameter("documentVersion") @Nullable String documentVersion, - @CustomType.Parameter("notificationConfig") @Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig notificationConfig, - @CustomType.Parameter("outputS3Bucket") @Nullable String outputS3Bucket, - @CustomType.Parameter("outputS3KeyPrefix") @Nullable String outputS3KeyPrefix, - @CustomType.Parameter("parameters") @Nullable List parameters, - @CustomType.Parameter("serviceRoleArn") @Nullable String serviceRoleArn, - @CustomType.Parameter("timeoutSeconds") @Nullable Integer timeoutSeconds) { - this.cloudwatchConfig = cloudwatchConfig; - this.comment = comment; - this.documentHash = documentHash; - this.documentHashType = documentHashType; - this.documentVersion = documentVersion; - this.notificationConfig = notificationConfig; - this.outputS3Bucket = outputS3Bucket; - this.outputS3KeyPrefix = outputS3KeyPrefix; - this.parameters = parameters; - this.serviceRoleArn = serviceRoleArn; - this.timeoutSeconds = timeoutSeconds; - } + private @Nullable Integer timeoutSeconds; + private MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters() {} /** * @return Configuration options for sending command output to CloudWatch Logs. Documented below. * @@ -183,7 +158,7 @@ public static Builder builder() { public static Builder builder(MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfig cloudwatchConfig; private @Nullable String comment; @@ -196,11 +171,7 @@ public static final class Builder { private @Nullable List parameters; private @Nullable String serviceRoleArn; private @Nullable Integer timeoutSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters defaults) { Objects.requireNonNull(defaults); this.cloudwatchConfig = defaults.cloudwatchConfig; @@ -216,38 +187,47 @@ public Builder(MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters this.timeoutSeconds = defaults.timeoutSeconds; } + @CustomType.Setter public Builder cloudwatchConfig(@Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersCloudwatchConfig cloudwatchConfig) { this.cloudwatchConfig = cloudwatchConfig; return this; } + @CustomType.Setter public Builder comment(@Nullable String comment) { this.comment = comment; return this; } + @CustomType.Setter public Builder documentHash(@Nullable String documentHash) { this.documentHash = documentHash; return this; } + @CustomType.Setter public Builder documentHashType(@Nullable String documentHashType) { this.documentHashType = documentHashType; return this; } + @CustomType.Setter public Builder documentVersion(@Nullable String documentVersion) { this.documentVersion = documentVersion; return this; } + @CustomType.Setter public Builder notificationConfig(@Nullable MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig notificationConfig) { this.notificationConfig = notificationConfig; return this; } + @CustomType.Setter public Builder outputS3Bucket(@Nullable String outputS3Bucket) { this.outputS3Bucket = outputS3Bucket; return this; } + @CustomType.Setter public Builder outputS3KeyPrefix(@Nullable String outputS3KeyPrefix) { this.outputS3KeyPrefix = outputS3KeyPrefix; return this; } + @CustomType.Setter public Builder parameters(@Nullable List parameters) { this.parameters = parameters; return this; @@ -255,15 +235,30 @@ public Builder parameters(@Nullable List notificationEvents; + private @Nullable List notificationEvents; /** * @return When specified with `Command`, receive notification when the status of a command changes. When specified with `Invocation`, for commands sent to multiple instances, receive notification on a per-instance basis when the status of a command changes. Valid values: `Command` and `Invocation` * */ - private final @Nullable String notificationType; - - @CustomType.Constructor - private MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig( - @CustomType.Parameter("notificationArn") @Nullable String notificationArn, - @CustomType.Parameter("notificationEvents") @Nullable List notificationEvents, - @CustomType.Parameter("notificationType") @Nullable String notificationType) { - this.notificationArn = notificationArn; - this.notificationEvents = notificationEvents; - this.notificationType = notificationType; - } + private @Nullable String notificationType; + private MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig() {} /** * @return An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic. Run Command pushes notifications about command status changes to this topic. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String notificationArn; private @Nullable List notificationEvents; private @Nullable String notificationType; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig defaults) { Objects.requireNonNull(defaults); this.notificationArn = defaults.notificationArn; @@ -84,10 +71,12 @@ public Builder(MaintenanceWindowTaskTaskInvocationParametersRunCommandParameters this.notificationType = defaults.notificationType; } + @CustomType.Setter public Builder notificationArn(@Nullable String notificationArn) { this.notificationArn = notificationArn; return this; } + @CustomType.Setter public Builder notificationEvents(@Nullable List notificationEvents) { this.notificationEvents = notificationEvents; return this; @@ -95,11 +84,17 @@ public Builder notificationEvents(@Nullable List notificationEvents) { public Builder notificationEvents(String... notificationEvents) { return notificationEvents(List.of(notificationEvents)); } + @CustomType.Setter public Builder notificationType(@Nullable String notificationType) { this.notificationType = notificationType; return this; - } public MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig build() { - return new MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig(notificationArn, notificationEvents, notificationType); + } + public MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig build() { + final var o = new MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersNotificationConfig(); + o.notificationArn = notificationArn; + o.notificationEvents = notificationEvents; + o.notificationType = notificationType; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter.java index 9c06f6519bd..e486feef1a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter.java @@ -14,21 +14,14 @@ public final class MaintenanceWindowTaskTaskInvocationParametersRunCommandParame * @return The parameter name. * */ - private final String name; + private String name; /** * @return The array of strings. * */ - private final List values; - - @CustomType.Constructor - private MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("values") List values) { - this.name = name; - this.values = values; - } + private List values; + private MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter() {} /** * @return The parameter name. * @@ -51,33 +44,35 @@ public static Builder builder() { public static Builder builder(MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.values = defaults.values; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter build() { - return new MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter(name, values); + } + public MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter build() { + final var o = new MaintenanceWindowTaskTaskInvocationParametersRunCommandParametersParameter(); + o.name = name; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters.java index bf43f2f2d5d..1cd01243674 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters.java @@ -15,21 +15,14 @@ public final class MaintenanceWindowTaskTaskInvocationParametersStepFunctionsPar * @return The inputs for the STEP_FUNCTION task. * */ - private final @Nullable String input; + private @Nullable String input; /** * @return The name of the STEP_FUNCTION task. * */ - private final @Nullable String name; - - @CustomType.Constructor - private MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters( - @CustomType.Parameter("input") @Nullable String input, - @CustomType.Parameter("name") @Nullable String name) { - this.input = input; - this.name = name; - } + private @Nullable String name; + private MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters() {} /** * @return The inputs for the STEP_FUNCTION task. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String input; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters defaults) { Objects.requireNonNull(defaults); this.input = defaults.input; this.name = defaults.name; } + @CustomType.Setter public Builder input(@Nullable String input) { this.input = input; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters build() { - return new MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters(input, name); + } + public MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters build() { + final var o = new MaintenanceWindowTaskTaskInvocationParametersStepFunctionsParameters(); + o.input = input; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineApprovalRule.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineApprovalRule.java index 0347024e54b..b565d0a9842 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineApprovalRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineApprovalRule.java @@ -19,42 +19,29 @@ public final class PatchBaselineApprovalRule { * @return The number of days after the release date of each patch matched by the rule the patch is marked as approved in the patch baseline. Valid Range: 0 to 100. Conflicts with `approve_until_date` * */ - private final @Nullable Integer approveAfterDays; + private @Nullable Integer approveAfterDays; /** * @return The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically. Date is formatted as `YYYY-MM-DD`. Conflicts with `approve_after_days` * */ - private final @Nullable String approveUntilDate; + private @Nullable String approveUntilDate; /** * @return Defines the compliance level for patches approved by this rule. Valid compliance levels include the following: `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`, `INFORMATIONAL`, `UNSPECIFIED`. The default value is `UNSPECIFIED`. * */ - private final @Nullable String complianceLevel; + private @Nullable String complianceLevel; /** * @return Boolean enabling the application of non-security updates. The default value is 'false'. Valid for Linux instances only. * */ - private final @Nullable Boolean enableNonSecurity; + private @Nullable Boolean enableNonSecurity; /** * @return The patch filter group that defines the criteria for the rule. Up to 5 patch filters can be specified per approval rule using Key/Value pairs. Valid combinations of these Keys and the `operating_system` value can be found in the [SSM DescribePatchProperties API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_DescribePatchProperties.html). Valid Values are exact values for the patch property given as the key, or a wildcard `*`, which matches all values. * */ - private final List patchFilters; - - @CustomType.Constructor - private PatchBaselineApprovalRule( - @CustomType.Parameter("approveAfterDays") @Nullable Integer approveAfterDays, - @CustomType.Parameter("approveUntilDate") @Nullable String approveUntilDate, - @CustomType.Parameter("complianceLevel") @Nullable String complianceLevel, - @CustomType.Parameter("enableNonSecurity") @Nullable Boolean enableNonSecurity, - @CustomType.Parameter("patchFilters") List patchFilters) { - this.approveAfterDays = approveAfterDays; - this.approveUntilDate = approveUntilDate; - this.complianceLevel = complianceLevel; - this.enableNonSecurity = enableNonSecurity; - this.patchFilters = patchFilters; - } + private List patchFilters; + private PatchBaselineApprovalRule() {} /** * @return The number of days after the release date of each patch matched by the rule the patch is marked as approved in the patch baseline. Valid Range: 0 to 100. Conflicts with `approve_until_date` * @@ -98,18 +85,14 @@ public static Builder builder() { public static Builder builder(PatchBaselineApprovalRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer approveAfterDays; private @Nullable String approveUntilDate; private @Nullable String complianceLevel; private @Nullable Boolean enableNonSecurity; private List patchFilters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PatchBaselineApprovalRule defaults) { Objects.requireNonNull(defaults); this.approveAfterDays = defaults.approveAfterDays; @@ -119,30 +102,42 @@ public Builder(PatchBaselineApprovalRule defaults) { this.patchFilters = defaults.patchFilters; } + @CustomType.Setter public Builder approveAfterDays(@Nullable Integer approveAfterDays) { this.approveAfterDays = approveAfterDays; return this; } + @CustomType.Setter public Builder approveUntilDate(@Nullable String approveUntilDate) { this.approveUntilDate = approveUntilDate; return this; } + @CustomType.Setter public Builder complianceLevel(@Nullable String complianceLevel) { this.complianceLevel = complianceLevel; return this; } + @CustomType.Setter public Builder enableNonSecurity(@Nullable Boolean enableNonSecurity) { this.enableNonSecurity = enableNonSecurity; return this; } + @CustomType.Setter public Builder patchFilters(List patchFilters) { this.patchFilters = Objects.requireNonNull(patchFilters); return this; } public Builder patchFilters(PatchBaselineApprovalRulePatchFilter... patchFilters) { return patchFilters(List.of(patchFilters)); - } public PatchBaselineApprovalRule build() { - return new PatchBaselineApprovalRule(approveAfterDays, approveUntilDate, complianceLevel, enableNonSecurity, patchFilters); + } + public PatchBaselineApprovalRule build() { + final var o = new PatchBaselineApprovalRule(); + o.approveAfterDays = approveAfterDays; + o.approveUntilDate = approveUntilDate; + o.complianceLevel = complianceLevel; + o.enableNonSecurity = enableNonSecurity; + o.patchFilters = patchFilters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineApprovalRulePatchFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineApprovalRulePatchFilter.java index dc71d4359c1..84c1fbe8b57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineApprovalRulePatchFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineApprovalRulePatchFilter.java @@ -10,17 +10,10 @@ @CustomType public final class PatchBaselineApprovalRulePatchFilter { - private final String key; - private final List values; - - @CustomType.Constructor - private PatchBaselineApprovalRulePatchFilter( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") List values) { - this.key = key; - this.values = values; - } + private String key; + private List values; + private PatchBaselineApprovalRulePatchFilter() {} public String key() { return this.key; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(PatchBaselineApprovalRulePatchFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PatchBaselineApprovalRulePatchFilter defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public PatchBaselineApprovalRulePatchFilter build() { - return new PatchBaselineApprovalRulePatchFilter(key, values); + } + public PatchBaselineApprovalRulePatchFilter build() { + final var o = new PatchBaselineApprovalRulePatchFilter(); + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineGlobalFilter.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineGlobalFilter.java index 483c203a0e9..429ea2e5da9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineGlobalFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineGlobalFilter.java @@ -10,17 +10,10 @@ @CustomType public final class PatchBaselineGlobalFilter { - private final String key; - private final List values; - - @CustomType.Constructor - private PatchBaselineGlobalFilter( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("values") List values) { - this.key = key; - this.values = values; - } + private String key; + private List values; + private PatchBaselineGlobalFilter() {} public String key() { return this.key; } @@ -35,33 +28,35 @@ public static Builder builder() { public static Builder builder(PatchBaselineGlobalFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private List values; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PatchBaselineGlobalFilter defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.values = defaults.values; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder values(List values) { this.values = Objects.requireNonNull(values); return this; } public Builder values(String... values) { return values(List.of(values)); - } public PatchBaselineGlobalFilter build() { - return new PatchBaselineGlobalFilter(key, values); + } + public PatchBaselineGlobalFilter build() { + final var o = new PatchBaselineGlobalFilter(); + o.key = key; + o.values = values; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineSource.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineSource.java index a3cd3164769..f807b7e990d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineSource.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/PatchBaselineSource.java @@ -14,28 +14,19 @@ public final class PatchBaselineSource { * @return The value of the yum repo configuration. For information about other options available for your yum repository configuration, see the [`dnf.conf` documentation](https://man7.org/linux/man-pages/man5/dnf.conf.5.html) * */ - private final String configuration; + private String configuration; /** * @return The name specified to identify the patch source. * */ - private final String name; + private String name; /** * @return The specific operating system versions a patch repository applies to, such as `"Ubuntu16.04"`, `"AmazonLinux2016.09"`, `"RedhatEnterpriseLinux7.2"` or `"Suse12.7"`. For lists of supported product values, see [PatchFilter](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_PatchFilter.html). * */ - private final List products; - - @CustomType.Constructor - private PatchBaselineSource( - @CustomType.Parameter("configuration") String configuration, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("products") List products) { - this.configuration = configuration; - this.name = name; - this.products = products; - } + private List products; + private PatchBaselineSource() {} /** * @return The value of the yum repo configuration. For information about other options available for your yum repository configuration, see the [`dnf.conf` documentation](https://man7.org/linux/man-pages/man5/dnf.conf.5.html) * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(PatchBaselineSource defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String configuration; private String name; private List products; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(PatchBaselineSource defaults) { Objects.requireNonNull(defaults); this.configuration = defaults.configuration; @@ -82,22 +69,30 @@ public Builder(PatchBaselineSource defaults) { this.products = defaults.products; } + @CustomType.Setter public Builder configuration(String configuration) { this.configuration = Objects.requireNonNull(configuration); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder products(List products) { this.products = Objects.requireNonNull(products); return this; } public Builder products(String... products) { return products(List.of(products)); - } public PatchBaselineSource build() { - return new PatchBaselineSource(configuration, name, products); + } + public PatchBaselineSource build() { + final var o = new PatchBaselineSource(); + o.configuration = configuration; + o.name = name; + o.products = products; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/ResourceDataSyncS3Destination.java b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/ResourceDataSyncS3Destination.java index d6c66211e50..2fcf27ef6e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/ResourceDataSyncS3Destination.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssm/outputs/ResourceDataSyncS3Destination.java @@ -15,42 +15,29 @@ public final class ResourceDataSyncS3Destination { * @return Name of S3 bucket where the aggregated data is stored. * */ - private final String bucketName; + private String bucketName; /** * @return ARN of an encryption key for a destination in Amazon S3. * */ - private final @Nullable String kmsKeyArn; + private @Nullable String kmsKeyArn; /** * @return Prefix for the bucket. * */ - private final @Nullable String prefix; + private @Nullable String prefix; /** * @return Region with the bucket targeted by the Resource Data Sync. * */ - private final String region; + private String region; /** * @return A supported sync format. Only JsonSerDe is currently supported. Defaults to JsonSerDe. * */ - private final @Nullable String syncFormat; - - @CustomType.Constructor - private ResourceDataSyncS3Destination( - @CustomType.Parameter("bucketName") String bucketName, - @CustomType.Parameter("kmsKeyArn") @Nullable String kmsKeyArn, - @CustomType.Parameter("prefix") @Nullable String prefix, - @CustomType.Parameter("region") String region, - @CustomType.Parameter("syncFormat") @Nullable String syncFormat) { - this.bucketName = bucketName; - this.kmsKeyArn = kmsKeyArn; - this.prefix = prefix; - this.region = region; - this.syncFormat = syncFormat; - } + private @Nullable String syncFormat; + private ResourceDataSyncS3Destination() {} /** * @return Name of S3 bucket where the aggregated data is stored. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(ResourceDataSyncS3Destination defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bucketName; private @Nullable String kmsKeyArn; private @Nullable String prefix; private String region; private @Nullable String syncFormat; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ResourceDataSyncS3Destination defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -115,27 +98,39 @@ public Builder(ResourceDataSyncS3Destination defaults) { this.syncFormat = defaults.syncFormat; } + @CustomType.Setter public Builder bucketName(String bucketName) { this.bucketName = Objects.requireNonNull(bucketName); return this; } + @CustomType.Setter public Builder kmsKeyArn(@Nullable String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; return this; } + @CustomType.Setter public Builder prefix(@Nullable String prefix) { this.prefix = prefix; return this; } + @CustomType.Setter public Builder region(String region) { this.region = Objects.requireNonNull(region); return this; } + @CustomType.Setter public Builder syncFormat(@Nullable String syncFormat) { this.syncFormat = syncFormat; return this; - } public ResourceDataSyncS3Destination build() { - return new ResourceDataSyncS3Destination(bucketName, kmsKeyArn, prefix, region, syncFormat); + } + public ResourceDataSyncS3Destination build() { + final var o = new ResourceDataSyncS3Destination(); + o.bucketName = bucketName; + o.kmsKeyArn = kmsKeyArn; + o.prefix = prefix; + o.region = region; + o.syncFormat = syncFormat; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssoadmin/outputs/GetInstancesResult.java b/sdk/java/src/main/java/com/pulumi/aws/ssoadmin/outputs/GetInstancesResult.java index a3bb3839dbd..d303249429f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssoadmin/outputs/GetInstancesResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssoadmin/outputs/GetInstancesResult.java @@ -14,28 +14,19 @@ public final class GetInstancesResult { * @return Set of Amazon Resource Names (ARNs) of the SSO Instances. * */ - private final List arns; + private List arns; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return Set of identifiers of the identity stores connected to the SSO Instances. * */ - private final List identityStoreIds; - - @CustomType.Constructor - private GetInstancesResult( - @CustomType.Parameter("arns") List arns, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("identityStoreIds") List identityStoreIds) { - this.arns = arns; - this.id = id; - this.identityStoreIds = identityStoreIds; - } + private List identityStoreIds; + private GetInstancesResult() {} /** * @return Set of Amazon Resource Names (ARNs) of the SSO Instances. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(GetInstancesResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List arns; private String id; private List identityStoreIds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetInstancesResult defaults) { Objects.requireNonNull(defaults); this.arns = defaults.arns; @@ -82,6 +69,7 @@ public Builder(GetInstancesResult defaults) { this.identityStoreIds = defaults.identityStoreIds; } + @CustomType.Setter public Builder arns(List arns) { this.arns = Objects.requireNonNull(arns); return this; @@ -89,18 +77,25 @@ public Builder arns(List arns) { public Builder arns(String... arns) { return arns(List.of(arns)); } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder identityStoreIds(List identityStoreIds) { this.identityStoreIds = Objects.requireNonNull(identityStoreIds); return this; } public Builder identityStoreIds(String... identityStoreIds) { return identityStoreIds(List.of(identityStoreIds)); - } public GetInstancesResult build() { - return new GetInstancesResult(arns, id, identityStoreIds); + } + public GetInstancesResult build() { + final var o = new GetInstancesResult(); + o.arns = arns; + o.id = id; + o.identityStoreIds = identityStoreIds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/ssoadmin/outputs/GetPermissionSetResult.java b/sdk/java/src/main/java/com/pulumi/aws/ssoadmin/outputs/GetPermissionSetResult.java index bc5ac3dc9ac..898e057aa5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ssoadmin/outputs/GetPermissionSetResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ssoadmin/outputs/GetPermissionSetResult.java @@ -10,58 +10,37 @@ @CustomType public final class GetPermissionSetResult { - private final String arn; - private final String createdDate; + private String arn; + private String createdDate; /** * @return The description of the Permission Set. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String instanceArn; - private final String name; + private String id; + private String instanceArn; + private String name; /** * @return The relay state URL used to redirect users within the application during the federation authentication process. * */ - private final String relayState; + private String relayState; /** * @return The length of time that the application user sessions are valid in the ISO-8601 standard. * */ - private final String sessionDuration; + private String sessionDuration; /** * @return Key-value map of resource tags. * */ - private final Map tags; - - @CustomType.Constructor - private GetPermissionSetResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("createdDate") String createdDate, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("instanceArn") String instanceArn, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("relayState") String relayState, - @CustomType.Parameter("sessionDuration") String sessionDuration, - @CustomType.Parameter("tags") Map tags) { - this.arn = arn; - this.createdDate = createdDate; - this.description = description; - this.id = id; - this.instanceArn = instanceArn; - this.name = name; - this.relayState = relayState; - this.sessionDuration = sessionDuration; - this.tags = tags; - } + private Map tags; + private GetPermissionSetResult() {} public String arn() { return this.arn; } @@ -117,7 +96,7 @@ public static Builder builder() { public static Builder builder(GetPermissionSetResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String createdDate; @@ -128,11 +107,7 @@ public static final class Builder { private String relayState; private String sessionDuration; private Map tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetPermissionSetResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -146,43 +121,63 @@ public Builder(GetPermissionSetResult defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder createdDate(String createdDate) { this.createdDate = Objects.requireNonNull(createdDate); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder instanceArn(String instanceArn) { this.instanceArn = Objects.requireNonNull(instanceArn); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder relayState(String relayState) { this.relayState = Objects.requireNonNull(relayState); return this; } + @CustomType.Setter public Builder sessionDuration(String sessionDuration) { this.sessionDuration = Objects.requireNonNull(sessionDuration); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; - } public GetPermissionSetResult build() { - return new GetPermissionSetResult(arn, createdDate, description, id, instanceArn, name, relayState, sessionDuration, tags); + } + public GetPermissionSetResult build() { + final var o = new GetPermissionSetResult(); + o.arn = arn; + o.createdDate = createdDate; + o.description = description; + o.id = id; + o.instanceArn = instanceArn; + o.name = name; + o.relayState = relayState; + o.sessionDuration = sessionDuration; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/FileSystemAssociationCacheAttributes.java b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/FileSystemAssociationCacheAttributes.java index c7b40a4afe0..af692085296 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/FileSystemAssociationCacheAttributes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/FileSystemAssociationCacheAttributes.java @@ -17,13 +17,9 @@ public final class FileSystemAssociationCacheAttributes { * to first refresh that directory's contents from the Amazon S3 bucket. Valid Values: `0` or `300` to `2592000` seconds (5 minutes to 30 days). Defaults to `0` * */ - private final @Nullable Integer cacheStaleTimeoutInSeconds; - - @CustomType.Constructor - private FileSystemAssociationCacheAttributes(@CustomType.Parameter("cacheStaleTimeoutInSeconds") @Nullable Integer cacheStaleTimeoutInSeconds) { - this.cacheStaleTimeoutInSeconds = cacheStaleTimeoutInSeconds; - } + private @Nullable Integer cacheStaleTimeoutInSeconds; + private FileSystemAssociationCacheAttributes() {} /** * @return Refreshes a file share's cache by using Time To Live (TTL). * TTL is the length of time since the last refresh after which access to the directory would cause the file gateway @@ -41,24 +37,24 @@ public static Builder builder() { public static Builder builder(FileSystemAssociationCacheAttributes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer cacheStaleTimeoutInSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FileSystemAssociationCacheAttributes defaults) { Objects.requireNonNull(defaults); this.cacheStaleTimeoutInSeconds = defaults.cacheStaleTimeoutInSeconds; } + @CustomType.Setter public Builder cacheStaleTimeoutInSeconds(@Nullable Integer cacheStaleTimeoutInSeconds) { this.cacheStaleTimeoutInSeconds = cacheStaleTimeoutInSeconds; return this; - } public FileSystemAssociationCacheAttributes build() { - return new FileSystemAssociationCacheAttributes(cacheStaleTimeoutInSeconds); + } + public FileSystemAssociationCacheAttributes build() { + final var o = new FileSystemAssociationCacheAttributes(); + o.cacheStaleTimeoutInSeconds = cacheStaleTimeoutInSeconds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GatewayGatewayNetworkInterface.java b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GatewayGatewayNetworkInterface.java index 9676f8bbd4d..11c930ee26b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GatewayGatewayNetworkInterface.java +++ b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GatewayGatewayNetworkInterface.java @@ -15,13 +15,9 @@ public final class GatewayGatewayNetworkInterface { * @return The Internet Protocol version 4 (IPv4) address of the interface. * */ - private final @Nullable String ipv4Address; - - @CustomType.Constructor - private GatewayGatewayNetworkInterface(@CustomType.Parameter("ipv4Address") @Nullable String ipv4Address) { - this.ipv4Address = ipv4Address; - } + private @Nullable String ipv4Address; + private GatewayGatewayNetworkInterface() {} /** * @return The Internet Protocol version 4 (IPv4) address of the interface. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(GatewayGatewayNetworkInterface defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String ipv4Address; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayGatewayNetworkInterface defaults) { Objects.requireNonNull(defaults); this.ipv4Address = defaults.ipv4Address; } + @CustomType.Setter public Builder ipv4Address(@Nullable String ipv4Address) { this.ipv4Address = ipv4Address; return this; - } public GatewayGatewayNetworkInterface build() { - return new GatewayGatewayNetworkInterface(ipv4Address); + } + public GatewayGatewayNetworkInterface build() { + final var o = new GatewayGatewayNetworkInterface(); + o.ipv4Address = ipv4Address; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GatewayMaintenanceStartTime.java b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GatewayMaintenanceStartTime.java index 7e012503e9b..9a264132b6a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GatewayMaintenanceStartTime.java +++ b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GatewayMaintenanceStartTime.java @@ -16,35 +16,24 @@ public final class GatewayMaintenanceStartTime { * @return The day of the month component of the maintenance start time represented as an ordinal number from 1 to 28, where 1 represents the first day of the month and 28 represents the last day of the month. * */ - private final @Nullable String dayOfMonth; + private @Nullable String dayOfMonth; /** * @return The day of the week component of the maintenance start time week represented as an ordinal number from 0 to 6, where 0 represents Sunday and 6 Saturday. * */ - private final @Nullable String dayOfWeek; + private @Nullable String dayOfWeek; /** * @return The hour component of the maintenance start time represented as _hh_, where _hh_ is the hour (00 to 23). The hour of the day is in the time zone of the gateway. * */ - private final Integer hourOfDay; + private Integer hourOfDay; /** * @return The minute component of the maintenance start time represented as _mm_, where _mm_ is the minute (00 to 59). The minute of the hour is in the time zone of the gateway. * */ - private final @Nullable Integer minuteOfHour; - - @CustomType.Constructor - private GatewayMaintenanceStartTime( - @CustomType.Parameter("dayOfMonth") @Nullable String dayOfMonth, - @CustomType.Parameter("dayOfWeek") @Nullable String dayOfWeek, - @CustomType.Parameter("hourOfDay") Integer hourOfDay, - @CustomType.Parameter("minuteOfHour") @Nullable Integer minuteOfHour) { - this.dayOfMonth = dayOfMonth; - this.dayOfWeek = dayOfWeek; - this.hourOfDay = hourOfDay; - this.minuteOfHour = minuteOfHour; - } + private @Nullable Integer minuteOfHour; + private GatewayMaintenanceStartTime() {} /** * @return The day of the month component of the maintenance start time represented as an ordinal number from 1 to 28, where 1 represents the first day of the month and 28 represents the last day of the month. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(GatewayMaintenanceStartTime defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String dayOfMonth; private @Nullable String dayOfWeek; private Integer hourOfDay; private @Nullable Integer minuteOfHour; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewayMaintenanceStartTime defaults) { Objects.requireNonNull(defaults); this.dayOfMonth = defaults.dayOfMonth; @@ -100,23 +85,33 @@ public Builder(GatewayMaintenanceStartTime defaults) { this.minuteOfHour = defaults.minuteOfHour; } + @CustomType.Setter public Builder dayOfMonth(@Nullable String dayOfMonth) { this.dayOfMonth = dayOfMonth; return this; } + @CustomType.Setter public Builder dayOfWeek(@Nullable String dayOfWeek) { this.dayOfWeek = dayOfWeek; return this; } + @CustomType.Setter public Builder hourOfDay(Integer hourOfDay) { this.hourOfDay = Objects.requireNonNull(hourOfDay); return this; } + @CustomType.Setter public Builder minuteOfHour(@Nullable Integer minuteOfHour) { this.minuteOfHour = minuteOfHour; return this; - } public GatewayMaintenanceStartTime build() { - return new GatewayMaintenanceStartTime(dayOfMonth, dayOfWeek, hourOfDay, minuteOfHour); + } + public GatewayMaintenanceStartTime build() { + final var o = new GatewayMaintenanceStartTime(); + o.dayOfMonth = dayOfMonth; + o.dayOfWeek = dayOfWeek; + o.hourOfDay = hourOfDay; + o.minuteOfHour = minuteOfHour; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GatewaySmbActiveDirectorySettings.java b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GatewaySmbActiveDirectorySettings.java index 4e6b501b4aa..436fbf6e201 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GatewaySmbActiveDirectorySettings.java +++ b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GatewaySmbActiveDirectorySettings.java @@ -13,58 +13,41 @@ @CustomType public final class GatewaySmbActiveDirectorySettings { - private final @Nullable String activeDirectoryStatus; + private @Nullable String activeDirectoryStatus; /** * @return List of IPv4 addresses, NetBIOS names, or host names of your domain server. * If you need to specify the port number include it after the colon (“:”). For example, `mydc.mydomain.com:389`. * */ - private final @Nullable List domainControllers; + private @Nullable List domainControllers; /** * @return The name of the domain that you want the gateway to join. * */ - private final String domainName; + private String domainName; /** * @return The organizational unit (OU) is a container in an Active Directory that can hold users, groups, * computers, and other OUs and this parameter specifies the OU that the gateway will join within the AD domain. * */ - private final @Nullable String organizationalUnit; + private @Nullable String organizationalUnit; /** * @return The password of the user who has permission to add the gateway to the Active Directory domain. * */ - private final String password; + private String password; /** * @return Specifies the time in seconds, in which the JoinDomain operation must complete. The default is `20` seconds. * */ - private final @Nullable Integer timeoutInSeconds; + private @Nullable Integer timeoutInSeconds; /** * @return The user name of user who has permission to add the gateway to the Active Directory domain. * */ - private final String username; - - @CustomType.Constructor - private GatewaySmbActiveDirectorySettings( - @CustomType.Parameter("activeDirectoryStatus") @Nullable String activeDirectoryStatus, - @CustomType.Parameter("domainControllers") @Nullable List domainControllers, - @CustomType.Parameter("domainName") String domainName, - @CustomType.Parameter("organizationalUnit") @Nullable String organizationalUnit, - @CustomType.Parameter("password") String password, - @CustomType.Parameter("timeoutInSeconds") @Nullable Integer timeoutInSeconds, - @CustomType.Parameter("username") String username) { - this.activeDirectoryStatus = activeDirectoryStatus; - this.domainControllers = domainControllers; - this.domainName = domainName; - this.organizationalUnit = organizationalUnit; - this.password = password; - this.timeoutInSeconds = timeoutInSeconds; - this.username = username; - } + private String username; + private GatewaySmbActiveDirectorySettings() {} public Optional activeDirectoryStatus() { return Optional.ofNullable(this.activeDirectoryStatus); } @@ -120,7 +103,7 @@ public static Builder builder() { public static Builder builder(GatewaySmbActiveDirectorySettings defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String activeDirectoryStatus; private @Nullable List domainControllers; @@ -129,11 +112,7 @@ public static final class Builder { private String password; private @Nullable Integer timeoutInSeconds; private String username; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GatewaySmbActiveDirectorySettings defaults) { Objects.requireNonNull(defaults); this.activeDirectoryStatus = defaults.activeDirectoryStatus; @@ -145,10 +124,12 @@ public Builder(GatewaySmbActiveDirectorySettings defaults) { this.username = defaults.username; } + @CustomType.Setter public Builder activeDirectoryStatus(@Nullable String activeDirectoryStatus) { this.activeDirectoryStatus = activeDirectoryStatus; return this; } + @CustomType.Setter public Builder domainControllers(@Nullable List domainControllers) { this.domainControllers = domainControllers; return this; @@ -156,27 +137,41 @@ public Builder domainControllers(@Nullable List domainControllers) { public Builder domainControllers(String... domainControllers) { return domainControllers(List.of(domainControllers)); } + @CustomType.Setter public Builder domainName(String domainName) { this.domainName = Objects.requireNonNull(domainName); return this; } + @CustomType.Setter public Builder organizationalUnit(@Nullable String organizationalUnit) { this.organizationalUnit = organizationalUnit; return this; } + @CustomType.Setter public Builder password(String password) { this.password = Objects.requireNonNull(password); return this; } + @CustomType.Setter public Builder timeoutInSeconds(@Nullable Integer timeoutInSeconds) { this.timeoutInSeconds = timeoutInSeconds; return this; } + @CustomType.Setter public Builder username(String username) { this.username = Objects.requireNonNull(username); return this; - } public GatewaySmbActiveDirectorySettings build() { - return new GatewaySmbActiveDirectorySettings(activeDirectoryStatus, domainControllers, domainName, organizationalUnit, password, timeoutInSeconds, username); + } + public GatewaySmbActiveDirectorySettings build() { + final var o = new GatewaySmbActiveDirectorySettings(); + o.activeDirectoryStatus = activeDirectoryStatus; + o.domainControllers = domainControllers; + o.domainName = domainName; + o.organizationalUnit = organizationalUnit; + o.password = password; + o.timeoutInSeconds = timeoutInSeconds; + o.username = username; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GetLocalDiskResult.java b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GetLocalDiskResult.java index eef364a176a..39f8dc1700c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GetLocalDiskResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/GetLocalDiskResult.java @@ -13,30 +13,17 @@ public final class GetLocalDiskResult { * @return The disk identifierE.g., `pci-0000:03:00.0-scsi-0:0:0:0` * */ - private final String diskId; - private final String diskNode; - private final String diskPath; - private final String gatewayArn; + private String diskId; + private String diskNode; + private String diskPath; + private String gatewayArn; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - - @CustomType.Constructor - private GetLocalDiskResult( - @CustomType.Parameter("diskId") String diskId, - @CustomType.Parameter("diskNode") String diskNode, - @CustomType.Parameter("diskPath") String diskPath, - @CustomType.Parameter("gatewayArn") String gatewayArn, - @CustomType.Parameter("id") String id) { - this.diskId = diskId; - this.diskNode = diskNode; - this.diskPath = diskPath; - this.gatewayArn = gatewayArn; - this.id = id; - } + private String id; + private GetLocalDiskResult() {} /** * @return The disk identifierE.g., `pci-0000:03:00.0-scsi-0:0:0:0` * @@ -68,18 +55,14 @@ public static Builder builder() { public static Builder builder(GetLocalDiskResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String diskId; private String diskNode; private String diskPath; private String gatewayArn; private String id; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetLocalDiskResult defaults) { Objects.requireNonNull(defaults); this.diskId = defaults.diskId; @@ -89,27 +72,39 @@ public Builder(GetLocalDiskResult defaults) { this.id = defaults.id; } + @CustomType.Setter public Builder diskId(String diskId) { this.diskId = Objects.requireNonNull(diskId); return this; } + @CustomType.Setter public Builder diskNode(String diskNode) { this.diskNode = Objects.requireNonNull(diskNode); return this; } + @CustomType.Setter public Builder diskPath(String diskPath) { this.diskPath = Objects.requireNonNull(diskPath); return this; } + @CustomType.Setter public Builder gatewayArn(String gatewayArn) { this.gatewayArn = Objects.requireNonNull(gatewayArn); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; - } public GetLocalDiskResult build() { - return new GetLocalDiskResult(diskId, diskNode, diskPath, gatewayArn, id); + } + public GetLocalDiskResult build() { + final var o = new GetLocalDiskResult(); + o.diskId = diskId; + o.diskNode = diskNode; + o.diskPath = diskPath; + o.gatewayArn = gatewayArn; + o.id = id; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/NfsFileShareCacheAttributes.java b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/NfsFileShareCacheAttributes.java index 7fe56a36b44..851adff3bc7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/NfsFileShareCacheAttributes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/NfsFileShareCacheAttributes.java @@ -17,13 +17,9 @@ public final class NfsFileShareCacheAttributes { * to first refresh that directory's contents from the Amazon S3 bucket. Valid Values: 300 to 2,592,000 seconds (5 minutes to 30 days) * */ - private final @Nullable Integer cacheStaleTimeoutInSeconds; - - @CustomType.Constructor - private NfsFileShareCacheAttributes(@CustomType.Parameter("cacheStaleTimeoutInSeconds") @Nullable Integer cacheStaleTimeoutInSeconds) { - this.cacheStaleTimeoutInSeconds = cacheStaleTimeoutInSeconds; - } + private @Nullable Integer cacheStaleTimeoutInSeconds; + private NfsFileShareCacheAttributes() {} /** * @return Refreshes a file share's cache by using Time To Live (TTL). * TTL is the length of time since the last refresh after which access to the directory would cause the file gateway @@ -41,24 +37,24 @@ public static Builder builder() { public static Builder builder(NfsFileShareCacheAttributes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer cacheStaleTimeoutInSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NfsFileShareCacheAttributes defaults) { Objects.requireNonNull(defaults); this.cacheStaleTimeoutInSeconds = defaults.cacheStaleTimeoutInSeconds; } + @CustomType.Setter public Builder cacheStaleTimeoutInSeconds(@Nullable Integer cacheStaleTimeoutInSeconds) { this.cacheStaleTimeoutInSeconds = cacheStaleTimeoutInSeconds; return this; - } public NfsFileShareCacheAttributes build() { - return new NfsFileShareCacheAttributes(cacheStaleTimeoutInSeconds); + } + public NfsFileShareCacheAttributes build() { + final var o = new NfsFileShareCacheAttributes(); + o.cacheStaleTimeoutInSeconds = cacheStaleTimeoutInSeconds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/NfsFileShareNfsFileShareDefaults.java b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/NfsFileShareNfsFileShareDefaults.java index d1f200aeb52..ac5711563bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/NfsFileShareNfsFileShareDefaults.java +++ b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/NfsFileShareNfsFileShareDefaults.java @@ -15,35 +15,24 @@ public final class NfsFileShareNfsFileShareDefaults { * @return The Unix directory mode in the string form "nnnn". Defaults to `"0777"`. * */ - private final @Nullable String directoryMode; + private @Nullable String directoryMode; /** * @return The Unix file mode in the string form "nnnn". Defaults to `"0666"`. * */ - private final @Nullable String fileMode; + private @Nullable String fileMode; /** * @return The default group ID for the file share (unless the files have another group ID specified). Defaults to `65534` (`nfsnobody`). Valid values: `0` through `4294967294`. * */ - private final @Nullable String groupId; + private @Nullable String groupId; /** * @return The default owner ID for the file share (unless the files have another owner ID specified). Defaults to `65534` (`nfsnobody`). Valid values: `0` through `4294967294`. * */ - private final @Nullable String ownerId; - - @CustomType.Constructor - private NfsFileShareNfsFileShareDefaults( - @CustomType.Parameter("directoryMode") @Nullable String directoryMode, - @CustomType.Parameter("fileMode") @Nullable String fileMode, - @CustomType.Parameter("groupId") @Nullable String groupId, - @CustomType.Parameter("ownerId") @Nullable String ownerId) { - this.directoryMode = directoryMode; - this.fileMode = fileMode; - this.groupId = groupId; - this.ownerId = ownerId; - } + private @Nullable String ownerId; + private NfsFileShareNfsFileShareDefaults() {} /** * @return The Unix directory mode in the string form "nnnn". Defaults to `"0777"`. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(NfsFileShareNfsFileShareDefaults defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String directoryMode; private @Nullable String fileMode; private @Nullable String groupId; private @Nullable String ownerId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(NfsFileShareNfsFileShareDefaults defaults) { Objects.requireNonNull(defaults); this.directoryMode = defaults.directoryMode; @@ -99,23 +84,33 @@ public Builder(NfsFileShareNfsFileShareDefaults defaults) { this.ownerId = defaults.ownerId; } + @CustomType.Setter public Builder directoryMode(@Nullable String directoryMode) { this.directoryMode = directoryMode; return this; } + @CustomType.Setter public Builder fileMode(@Nullable String fileMode) { this.fileMode = fileMode; return this; } + @CustomType.Setter public Builder groupId(@Nullable String groupId) { this.groupId = groupId; return this; } + @CustomType.Setter public Builder ownerId(@Nullable String ownerId) { this.ownerId = ownerId; return this; - } public NfsFileShareNfsFileShareDefaults build() { - return new NfsFileShareNfsFileShareDefaults(directoryMode, fileMode, groupId, ownerId); + } + public NfsFileShareNfsFileShareDefaults build() { + final var o = new NfsFileShareNfsFileShareDefaults(); + o.directoryMode = directoryMode; + o.fileMode = fileMode; + o.groupId = groupId; + o.ownerId = ownerId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/SmbFileShareCacheAttributes.java b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/SmbFileShareCacheAttributes.java index 95c332a422e..4276e125efa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/SmbFileShareCacheAttributes.java +++ b/sdk/java/src/main/java/com/pulumi/aws/storagegateway/outputs/SmbFileShareCacheAttributes.java @@ -17,13 +17,9 @@ public final class SmbFileShareCacheAttributes { * to first refresh that directory's contents from the Amazon S3 bucket. Valid Values: 300 to 2,592,000 seconds (5 minutes to 30 days) * */ - private final @Nullable Integer cacheStaleTimeoutInSeconds; - - @CustomType.Constructor - private SmbFileShareCacheAttributes(@CustomType.Parameter("cacheStaleTimeoutInSeconds") @Nullable Integer cacheStaleTimeoutInSeconds) { - this.cacheStaleTimeoutInSeconds = cacheStaleTimeoutInSeconds; - } + private @Nullable Integer cacheStaleTimeoutInSeconds; + private SmbFileShareCacheAttributes() {} /** * @return Refreshes a file share's cache by using Time To Live (TTL). * TTL is the length of time since the last refresh after which access to the directory would cause the file gateway @@ -41,24 +37,24 @@ public static Builder builder() { public static Builder builder(SmbFileShareCacheAttributes defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer cacheStaleTimeoutInSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SmbFileShareCacheAttributes defaults) { Objects.requireNonNull(defaults); this.cacheStaleTimeoutInSeconds = defaults.cacheStaleTimeoutInSeconds; } + @CustomType.Setter public Builder cacheStaleTimeoutInSeconds(@Nullable Integer cacheStaleTimeoutInSeconds) { this.cacheStaleTimeoutInSeconds = cacheStaleTimeoutInSeconds; return this; - } public SmbFileShareCacheAttributes build() { - return new SmbFileShareCacheAttributes(cacheStaleTimeoutInSeconds); + } + public SmbFileShareCacheAttributes build() { + final var o = new SmbFileShareCacheAttributes(); + o.cacheStaleTimeoutInSeconds = cacheStaleTimeoutInSeconds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryArtifactConfig.java b/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryArtifactConfig.java index 3cb0db1abe4..d13f33c1353 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryArtifactConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryArtifactConfig.java @@ -15,13 +15,9 @@ public final class CanaryArtifactConfig { * @return Configuration of the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3. See S3 Encryption. * */ - private final @Nullable CanaryArtifactConfigS3Encryption s3Encryption; - - @CustomType.Constructor - private CanaryArtifactConfig(@CustomType.Parameter("s3Encryption") @Nullable CanaryArtifactConfigS3Encryption s3Encryption) { - this.s3Encryption = s3Encryption; - } + private @Nullable CanaryArtifactConfigS3Encryption s3Encryption; + private CanaryArtifactConfig() {} /** * @return Configuration of the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3. See S3 Encryption. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(CanaryArtifactConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable CanaryArtifactConfigS3Encryption s3Encryption; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CanaryArtifactConfig defaults) { Objects.requireNonNull(defaults); this.s3Encryption = defaults.s3Encryption; } + @CustomType.Setter public Builder s3Encryption(@Nullable CanaryArtifactConfigS3Encryption s3Encryption) { this.s3Encryption = s3Encryption; return this; - } public CanaryArtifactConfig build() { - return new CanaryArtifactConfig(s3Encryption); + } + public CanaryArtifactConfig build() { + final var o = new CanaryArtifactConfig(); + o.s3Encryption = s3Encryption; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryArtifactConfigS3Encryption.java b/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryArtifactConfigS3Encryption.java index d153e6bf54e..c52a5795add 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryArtifactConfigS3Encryption.java +++ b/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryArtifactConfigS3Encryption.java @@ -15,21 +15,14 @@ public final class CanaryArtifactConfigS3Encryption { * @return The encryption method to use for artifacts created by this canary. Valid values are: `SSE_S3` and `SSE_KMS`. * */ - private final @Nullable String encryptionMode; + private @Nullable String encryptionMode; /** * @return The ARN of the customer-managed KMS key to use, if you specify `SSE_KMS` for `encryption_mode`. * */ - private final @Nullable String kmsKeyArn; - - @CustomType.Constructor - private CanaryArtifactConfigS3Encryption( - @CustomType.Parameter("encryptionMode") @Nullable String encryptionMode, - @CustomType.Parameter("kmsKeyArn") @Nullable String kmsKeyArn) { - this.encryptionMode = encryptionMode; - this.kmsKeyArn = kmsKeyArn; - } + private @Nullable String kmsKeyArn; + private CanaryArtifactConfigS3Encryption() {} /** * @return The encryption method to use for artifacts created by this canary. Valid values are: `SSE_S3` and `SSE_KMS`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(CanaryArtifactConfigS3Encryption defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String encryptionMode; private @Nullable String kmsKeyArn; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CanaryArtifactConfigS3Encryption defaults) { Objects.requireNonNull(defaults); this.encryptionMode = defaults.encryptionMode; this.kmsKeyArn = defaults.kmsKeyArn; } + @CustomType.Setter public Builder encryptionMode(@Nullable String encryptionMode) { this.encryptionMode = encryptionMode; return this; } + @CustomType.Setter public Builder kmsKeyArn(@Nullable String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; return this; - } public CanaryArtifactConfigS3Encryption build() { - return new CanaryArtifactConfigS3Encryption(encryptionMode, kmsKeyArn); + } + public CanaryArtifactConfigS3Encryption build() { + final var o = new CanaryArtifactConfigS3Encryption(); + o.encryptionMode = encryptionMode; + o.kmsKeyArn = kmsKeyArn; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryRunConfig.java b/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryRunConfig.java index 1ca6966ea94..28bea795958 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryRunConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryRunConfig.java @@ -18,35 +18,24 @@ public final class CanaryRunConfig { * @return Whether this canary is to use active AWS X-Ray tracing when it runs. You can enable active tracing only for canaries that use version syn-nodejs-2.0 or later for their canary runtime. * */ - private final @Nullable Boolean activeTracing; + private @Nullable Boolean activeTracing; /** * @return Map of environment variables that are accessible from the canary during execution. Please see [AWS Docs](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime) for variables reserved for Lambda. * */ - private final @Nullable Map environmentVariables; + private @Nullable Map environmentVariables; /** * @return Maximum amount of memory available to the canary while it is running, in MB. The value you specify must be a multiple of 64. * */ - private final @Nullable Integer memoryInMb; + private @Nullable Integer memoryInMb; /** * @return Number of seconds the canary is allowed to run before it must stop. If you omit this field, the frequency of the canary is used, up to a maximum of 840 (14 minutes). * */ - private final @Nullable Integer timeoutInSeconds; - - @CustomType.Constructor - private CanaryRunConfig( - @CustomType.Parameter("activeTracing") @Nullable Boolean activeTracing, - @CustomType.Parameter("environmentVariables") @Nullable Map environmentVariables, - @CustomType.Parameter("memoryInMb") @Nullable Integer memoryInMb, - @CustomType.Parameter("timeoutInSeconds") @Nullable Integer timeoutInSeconds) { - this.activeTracing = activeTracing; - this.environmentVariables = environmentVariables; - this.memoryInMb = memoryInMb; - this.timeoutInSeconds = timeoutInSeconds; - } + private @Nullable Integer timeoutInSeconds; + private CanaryRunConfig() {} /** * @return Whether this canary is to use active AWS X-Ray tracing when it runs. You can enable active tracing only for canaries that use version syn-nodejs-2.0 or later for their canary runtime. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(CanaryRunConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean activeTracing; private @Nullable Map environmentVariables; private @Nullable Integer memoryInMb; private @Nullable Integer timeoutInSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CanaryRunConfig defaults) { Objects.requireNonNull(defaults); this.activeTracing = defaults.activeTracing; @@ -102,23 +87,33 @@ public Builder(CanaryRunConfig defaults) { this.timeoutInSeconds = defaults.timeoutInSeconds; } + @CustomType.Setter public Builder activeTracing(@Nullable Boolean activeTracing) { this.activeTracing = activeTracing; return this; } + @CustomType.Setter public Builder environmentVariables(@Nullable Map environmentVariables) { this.environmentVariables = environmentVariables; return this; } + @CustomType.Setter public Builder memoryInMb(@Nullable Integer memoryInMb) { this.memoryInMb = memoryInMb; return this; } + @CustomType.Setter public Builder timeoutInSeconds(@Nullable Integer timeoutInSeconds) { this.timeoutInSeconds = timeoutInSeconds; return this; - } public CanaryRunConfig build() { - return new CanaryRunConfig(activeTracing, environmentVariables, memoryInMb, timeoutInSeconds); + } + public CanaryRunConfig build() { + final var o = new CanaryRunConfig(); + o.activeTracing = activeTracing; + o.environmentVariables = environmentVariables; + o.memoryInMb = memoryInMb; + o.timeoutInSeconds = timeoutInSeconds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanarySchedule.java b/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanarySchedule.java index 772536c2815..6c80958a08f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanarySchedule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanarySchedule.java @@ -16,21 +16,14 @@ public final class CanarySchedule { * @return Duration in seconds, for the canary to continue making regular runs according to the schedule in the Expression value. * */ - private final @Nullable Integer durationInSeconds; + private @Nullable Integer durationInSeconds; /** * @return Rate expression or cron expression that defines how often the canary is to run. For rate expression, the syntax is `rate(number unit)`. _unit_ can be `minute`, `minutes`, or `hour`. For cron expression, the syntax is `cron(expression)`. For more information about the syntax for cron expressions, see [Scheduling canary runs using cron](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_cron.html). * */ - private final String expression; - - @CustomType.Constructor - private CanarySchedule( - @CustomType.Parameter("durationInSeconds") @Nullable Integer durationInSeconds, - @CustomType.Parameter("expression") String expression) { - this.durationInSeconds = durationInSeconds; - this.expression = expression; - } + private String expression; + private CanarySchedule() {} /** * @return Duration in seconds, for the canary to continue making regular runs according to the schedule in the Expression value. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(CanarySchedule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Integer durationInSeconds; private String expression; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CanarySchedule defaults) { Objects.requireNonNull(defaults); this.durationInSeconds = defaults.durationInSeconds; this.expression = defaults.expression; } + @CustomType.Setter public Builder durationInSeconds(@Nullable Integer durationInSeconds) { this.durationInSeconds = durationInSeconds; return this; } + @CustomType.Setter public Builder expression(String expression) { this.expression = Objects.requireNonNull(expression); return this; - } public CanarySchedule build() { - return new CanarySchedule(durationInSeconds, expression); + } + public CanarySchedule build() { + final var o = new CanarySchedule(); + o.durationInSeconds = durationInSeconds; + o.expression = expression; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryTimeline.java b/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryTimeline.java index 4100baa8973..c2dc7b85387 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryTimeline.java +++ b/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryTimeline.java @@ -15,35 +15,24 @@ public final class CanaryTimeline { * @return Date and time the canary was created. * */ - private final @Nullable String created; + private @Nullable String created; /** * @return Date and time the canary was most recently modified. * */ - private final @Nullable String lastModified; + private @Nullable String lastModified; /** * @return Date and time that the canary's most recent run started. * */ - private final @Nullable String lastStarted; + private @Nullable String lastStarted; /** * @return Date and time that the canary's most recent run ended. * */ - private final @Nullable String lastStopped; - - @CustomType.Constructor - private CanaryTimeline( - @CustomType.Parameter("created") @Nullable String created, - @CustomType.Parameter("lastModified") @Nullable String lastModified, - @CustomType.Parameter("lastStarted") @Nullable String lastStarted, - @CustomType.Parameter("lastStopped") @Nullable String lastStopped) { - this.created = created; - this.lastModified = lastModified; - this.lastStarted = lastStarted; - this.lastStopped = lastStopped; - } + private @Nullable String lastStopped; + private CanaryTimeline() {} /** * @return Date and time the canary was created. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(CanaryTimeline defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String created; private @Nullable String lastModified; private @Nullable String lastStarted; private @Nullable String lastStopped; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CanaryTimeline defaults) { Objects.requireNonNull(defaults); this.created = defaults.created; @@ -99,23 +84,33 @@ public Builder(CanaryTimeline defaults) { this.lastStopped = defaults.lastStopped; } + @CustomType.Setter public Builder created(@Nullable String created) { this.created = created; return this; } + @CustomType.Setter public Builder lastModified(@Nullable String lastModified) { this.lastModified = lastModified; return this; } + @CustomType.Setter public Builder lastStarted(@Nullable String lastStarted) { this.lastStarted = lastStarted; return this; } + @CustomType.Setter public Builder lastStopped(@Nullable String lastStopped) { this.lastStopped = lastStopped; return this; - } public CanaryTimeline build() { - return new CanaryTimeline(created, lastModified, lastStarted, lastStopped); + } + public CanaryTimeline build() { + final var o = new CanaryTimeline(); + o.created = created; + o.lastModified = lastModified; + o.lastStarted = lastStarted; + o.lastStopped = lastStopped; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryVpcConfig.java b/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryVpcConfig.java index 66b1c51ca8b..037145d7c6d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryVpcConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/synthetics/outputs/CanaryVpcConfig.java @@ -16,28 +16,19 @@ public final class CanaryVpcConfig { * @return IDs of the security groups for this canary. * */ - private final @Nullable List securityGroupIds; + private @Nullable List securityGroupIds; /** * @return IDs of the subnets where this canary is to run. * */ - private final @Nullable List subnetIds; + private @Nullable List subnetIds; /** * @return ID of the VPC where this canary is to run. * */ - private final @Nullable String vpcId; - - @CustomType.Constructor - private CanaryVpcConfig( - @CustomType.Parameter("securityGroupIds") @Nullable List securityGroupIds, - @CustomType.Parameter("subnetIds") @Nullable List subnetIds, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private @Nullable String vpcId; + private CanaryVpcConfig() {} /** * @return IDs of the security groups for this canary. * @@ -67,16 +58,12 @@ public static Builder builder() { public static Builder builder(CanaryVpcConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List securityGroupIds; private @Nullable List subnetIds; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(CanaryVpcConfig defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; @@ -84,6 +71,7 @@ public Builder(CanaryVpcConfig defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder securityGroupIds(@Nullable List securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; @@ -91,6 +79,7 @@ public Builder securityGroupIds(@Nullable List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(@Nullable List subnetIds) { this.subnetIds = subnetIds; return this; @@ -98,11 +87,17 @@ public Builder subnetIds(@Nullable List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(@Nullable String vpcId) { this.vpcId = vpcId; return this; - } public CanaryVpcConfig build() { - return new CanaryVpcConfig(securityGroupIds, subnetIds, vpcId); + } + public CanaryVpcConfig build() { + final var o = new CanaryVpcConfig(); + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableMagneticStoreWriteProperties.java b/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableMagneticStoreWriteProperties.java index 2660acb2d02..1d09913f81b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableMagneticStoreWriteProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableMagneticStoreWriteProperties.java @@ -16,21 +16,14 @@ public final class TableMagneticStoreWriteProperties { * @return A flag to enable magnetic store writes. * */ - private final @Nullable Boolean enableMagneticStoreWrites; + private @Nullable Boolean enableMagneticStoreWrites; /** * @return The location to write error reports for records rejected asynchronously during magnetic store writes. See Magnetic Store Rejected Data Location below for more details. * */ - private final @Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation magneticStoreRejectedDataLocation; - - @CustomType.Constructor - private TableMagneticStoreWriteProperties( - @CustomType.Parameter("enableMagneticStoreWrites") @Nullable Boolean enableMagneticStoreWrites, - @CustomType.Parameter("magneticStoreRejectedDataLocation") @Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation magneticStoreRejectedDataLocation) { - this.enableMagneticStoreWrites = enableMagneticStoreWrites; - this.magneticStoreRejectedDataLocation = magneticStoreRejectedDataLocation; - } + private @Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation magneticStoreRejectedDataLocation; + private TableMagneticStoreWriteProperties() {} /** * @return A flag to enable magnetic store writes. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(TableMagneticStoreWriteProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean enableMagneticStoreWrites; private @Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation magneticStoreRejectedDataLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableMagneticStoreWriteProperties defaults) { Objects.requireNonNull(defaults); this.enableMagneticStoreWrites = defaults.enableMagneticStoreWrites; this.magneticStoreRejectedDataLocation = defaults.magneticStoreRejectedDataLocation; } + @CustomType.Setter public Builder enableMagneticStoreWrites(@Nullable Boolean enableMagneticStoreWrites) { this.enableMagneticStoreWrites = enableMagneticStoreWrites; return this; } + @CustomType.Setter public Builder magneticStoreRejectedDataLocation(@Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation magneticStoreRejectedDataLocation) { this.magneticStoreRejectedDataLocation = magneticStoreRejectedDataLocation; return this; - } public TableMagneticStoreWriteProperties build() { - return new TableMagneticStoreWriteProperties(enableMagneticStoreWrites, magneticStoreRejectedDataLocation); + } + public TableMagneticStoreWriteProperties build() { + final var o = new TableMagneticStoreWriteProperties(); + o.enableMagneticStoreWrites = enableMagneticStoreWrites; + o.magneticStoreRejectedDataLocation = magneticStoreRejectedDataLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation.java b/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation.java index a1d66bdcc8a..5dd8d928f92 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation.java @@ -15,13 +15,9 @@ public final class TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLoc * @return Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes. See S3 Configuration below for more details. * */ - private final @Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration s3Configuration; - - @CustomType.Constructor - private TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation(@CustomType.Parameter("s3Configuration") @Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration s3Configuration) { - this.s3Configuration = s3Configuration; - } + private @Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration s3Configuration; + private TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation() {} /** * @return Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes. See S3 Configuration below for more details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration s3Configuration; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation defaults) { Objects.requireNonNull(defaults); this.s3Configuration = defaults.s3Configuration; } + @CustomType.Setter public Builder s3Configuration(@Nullable TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration s3Configuration) { this.s3Configuration = s3Configuration; return this; - } public TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation build() { - return new TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation(s3Configuration); + } + public TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation build() { + final var o = new TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocation(); + o.s3Configuration = s3Configuration; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration.java b/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration.java index 35bdbaa5cd3..7ea0b338807 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration.java @@ -15,35 +15,24 @@ public final class TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLoc * @return Bucket name of the customer S3 bucket. * */ - private final @Nullable String bucketName; + private @Nullable String bucketName; /** * @return Encryption option for the customer s3 location. Options are S3 server side encryption with an S3-managed key or KMS managed key. Valid values are `SSE_KMS` and `SSE_S3`. * */ - private final @Nullable String encryptionOption; + private @Nullable String encryptionOption; /** * @return KMS key arn for the customer s3 location when encrypting with a KMS managed key. * */ - private final @Nullable String kmsKeyId; + private @Nullable String kmsKeyId; /** * @return Object key prefix for the customer S3 location. * */ - private final @Nullable String objectKeyPrefix; - - @CustomType.Constructor - private TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration( - @CustomType.Parameter("bucketName") @Nullable String bucketName, - @CustomType.Parameter("encryptionOption") @Nullable String encryptionOption, - @CustomType.Parameter("kmsKeyId") @Nullable String kmsKeyId, - @CustomType.Parameter("objectKeyPrefix") @Nullable String objectKeyPrefix) { - this.bucketName = bucketName; - this.encryptionOption = encryptionOption; - this.kmsKeyId = kmsKeyId; - this.objectKeyPrefix = objectKeyPrefix; - } + private @Nullable String objectKeyPrefix; + private TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration() {} /** * @return Bucket name of the customer S3 bucket. * @@ -80,17 +69,13 @@ public static Builder builder() { public static Builder builder(TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucketName; private @Nullable String encryptionOption; private @Nullable String kmsKeyId; private @Nullable String objectKeyPrefix; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration defaults) { Objects.requireNonNull(defaults); this.bucketName = defaults.bucketName; @@ -99,23 +84,33 @@ public Builder(TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocatio this.objectKeyPrefix = defaults.objectKeyPrefix; } + @CustomType.Setter public Builder bucketName(@Nullable String bucketName) { this.bucketName = bucketName; return this; } + @CustomType.Setter public Builder encryptionOption(@Nullable String encryptionOption) { this.encryptionOption = encryptionOption; return this; } + @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } + @CustomType.Setter public Builder objectKeyPrefix(@Nullable String objectKeyPrefix) { this.objectKeyPrefix = objectKeyPrefix; return this; - } public TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration build() { - return new TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration(bucketName, encryptionOption, kmsKeyId, objectKeyPrefix); + } + public TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration build() { + final var o = new TableMagneticStoreWritePropertiesMagneticStoreRejectedDataLocationS3Configuration(); + o.bucketName = bucketName; + o.encryptionOption = encryptionOption; + o.kmsKeyId = kmsKeyId; + o.objectKeyPrefix = objectKeyPrefix; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableRetentionProperties.java b/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableRetentionProperties.java index 84d915132ec..bc306f7d8e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableRetentionProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/timestreamwrite/outputs/TableRetentionProperties.java @@ -13,21 +13,14 @@ public final class TableRetentionProperties { * @return The duration for which data must be stored in the magnetic store. Minimum value of 1. Maximum value of 73000. * */ - private final Integer magneticStoreRetentionPeriodInDays; + private Integer magneticStoreRetentionPeriodInDays; /** * @return The duration for which data must be stored in the memory store. Minimum value of 1. Maximum value of 8766. * */ - private final Integer memoryStoreRetentionPeriodInHours; - - @CustomType.Constructor - private TableRetentionProperties( - @CustomType.Parameter("magneticStoreRetentionPeriodInDays") Integer magneticStoreRetentionPeriodInDays, - @CustomType.Parameter("memoryStoreRetentionPeriodInHours") Integer memoryStoreRetentionPeriodInHours) { - this.magneticStoreRetentionPeriodInDays = magneticStoreRetentionPeriodInDays; - this.memoryStoreRetentionPeriodInHours = memoryStoreRetentionPeriodInHours; - } + private Integer memoryStoreRetentionPeriodInHours; + private TableRetentionProperties() {} /** * @return The duration for which data must be stored in the magnetic store. Minimum value of 1. Maximum value of 73000. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(TableRetentionProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer magneticStoreRetentionPeriodInDays; private Integer memoryStoreRetentionPeriodInHours; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(TableRetentionProperties defaults) { Objects.requireNonNull(defaults); this.magneticStoreRetentionPeriodInDays = defaults.magneticStoreRetentionPeriodInDays; this.memoryStoreRetentionPeriodInHours = defaults.memoryStoreRetentionPeriodInHours; } + @CustomType.Setter public Builder magneticStoreRetentionPeriodInDays(Integer magneticStoreRetentionPeriodInDays) { this.magneticStoreRetentionPeriodInDays = Objects.requireNonNull(magneticStoreRetentionPeriodInDays); return this; } + @CustomType.Setter public Builder memoryStoreRetentionPeriodInHours(Integer memoryStoreRetentionPeriodInHours) { this.memoryStoreRetentionPeriodInHours = Objects.requireNonNull(memoryStoreRetentionPeriodInHours); return this; - } public TableRetentionProperties build() { - return new TableRetentionProperties(magneticStoreRetentionPeriodInDays, memoryStoreRetentionPeriodInHours); + } + public TableRetentionProperties build() { + final var o = new TableRetentionProperties(); + o.magneticStoreRetentionPeriodInDays = magneticStoreRetentionPeriodInDays; + o.memoryStoreRetentionPeriodInHours = memoryStoreRetentionPeriodInHours; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transcribe/outputs/LanguageModelInputDataConfig.java b/sdk/java/src/main/java/com/pulumi/aws/transcribe/outputs/LanguageModelInputDataConfig.java index cbda5d384ed..bd6bad3249d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transcribe/outputs/LanguageModelInputDataConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transcribe/outputs/LanguageModelInputDataConfig.java @@ -15,28 +15,19 @@ public final class LanguageModelInputDataConfig { * @return IAM role with access to S3 bucket. * */ - private final String dataAccessRoleArn; + private String dataAccessRoleArn; /** * @return S3 URI where training data is located. * */ - private final String s3Uri; + private String s3Uri; /** * @return S3 URI where tuning data is located. * */ - private final @Nullable String tuningDataS3Uri; - - @CustomType.Constructor - private LanguageModelInputDataConfig( - @CustomType.Parameter("dataAccessRoleArn") String dataAccessRoleArn, - @CustomType.Parameter("s3Uri") String s3Uri, - @CustomType.Parameter("tuningDataS3Uri") @Nullable String tuningDataS3Uri) { - this.dataAccessRoleArn = dataAccessRoleArn; - this.s3Uri = s3Uri; - this.tuningDataS3Uri = tuningDataS3Uri; - } + private @Nullable String tuningDataS3Uri; + private LanguageModelInputDataConfig() {} /** * @return IAM role with access to S3 bucket. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(LanguageModelInputDataConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dataAccessRoleArn; private String s3Uri; private @Nullable String tuningDataS3Uri; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(LanguageModelInputDataConfig defaults) { Objects.requireNonNull(defaults); this.dataAccessRoleArn = defaults.dataAccessRoleArn; @@ -83,19 +70,27 @@ public Builder(LanguageModelInputDataConfig defaults) { this.tuningDataS3Uri = defaults.tuningDataS3Uri; } + @CustomType.Setter public Builder dataAccessRoleArn(String dataAccessRoleArn) { this.dataAccessRoleArn = Objects.requireNonNull(dataAccessRoleArn); return this; } + @CustomType.Setter public Builder s3Uri(String s3Uri) { this.s3Uri = Objects.requireNonNull(s3Uri); return this; } + @CustomType.Setter public Builder tuningDataS3Uri(@Nullable String tuningDataS3Uri) { this.tuningDataS3Uri = tuningDataS3Uri; return this; - } public LanguageModelInputDataConfig build() { - return new LanguageModelInputDataConfig(dataAccessRoleArn, s3Uri, tuningDataS3Uri); + } + public LanguageModelInputDataConfig build() { + final var o = new LanguageModelInputDataConfig(); + o.dataAccessRoleArn = dataAccessRoleArn; + o.s3Uri = s3Uri; + o.tuningDataS3Uri = tuningDataS3Uri; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/AccessHomeDirectoryMapping.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/AccessHomeDirectoryMapping.java index c6c152521c9..ce6682e41f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/AccessHomeDirectoryMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/AccessHomeDirectoryMapping.java @@ -13,21 +13,14 @@ public final class AccessHomeDirectoryMapping { * @return Represents an entry and a target. * */ - private final String entry; + private String entry; /** * @return Represents the map target. * */ - private final String target; - - @CustomType.Constructor - private AccessHomeDirectoryMapping( - @CustomType.Parameter("entry") String entry, - @CustomType.Parameter("target") String target) { - this.entry = entry; - this.target = target; - } + private String target; + private AccessHomeDirectoryMapping() {} /** * @return Represents an entry and a target. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(AccessHomeDirectoryMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String entry; private String target; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AccessHomeDirectoryMapping defaults) { Objects.requireNonNull(defaults); this.entry = defaults.entry; this.target = defaults.target; } + @CustomType.Setter public Builder entry(String entry) { this.entry = Objects.requireNonNull(entry); return this; } + @CustomType.Setter public Builder target(String target) { this.target = Objects.requireNonNull(target); return this; - } public AccessHomeDirectoryMapping build() { - return new AccessHomeDirectoryMapping(entry, target); + } + public AccessHomeDirectoryMapping build() { + final var o = new AccessHomeDirectoryMapping(); + o.entry = entry; + o.target = target; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/AccessPosixProfile.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/AccessPosixProfile.java index 20f18d0ca60..c6992a34160 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/AccessPosixProfile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/AccessPosixProfile.java @@ -15,28 +15,19 @@ public final class AccessPosixProfile { * @return The POSIX group ID used for all EFS operations by this user. * */ - private final Integer gid; + private Integer gid; /** * @return The secondary POSIX group IDs used for all EFS operations by this user. * */ - private final @Nullable List secondaryGids; + private @Nullable List secondaryGids; /** * @return The POSIX user ID used for all EFS operations by this user. * */ - private final Integer uid; - - @CustomType.Constructor - private AccessPosixProfile( - @CustomType.Parameter("gid") Integer gid, - @CustomType.Parameter("secondaryGids") @Nullable List secondaryGids, - @CustomType.Parameter("uid") Integer uid) { - this.gid = gid; - this.secondaryGids = secondaryGids; - this.uid = uid; - } + private Integer uid; + private AccessPosixProfile() {} /** * @return The POSIX group ID used for all EFS operations by this user. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(AccessPosixProfile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer gid; private @Nullable List secondaryGids; private Integer uid; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(AccessPosixProfile defaults) { Objects.requireNonNull(defaults); this.gid = defaults.gid; @@ -83,10 +70,12 @@ public Builder(AccessPosixProfile defaults) { this.uid = defaults.uid; } + @CustomType.Setter public Builder gid(Integer gid) { this.gid = Objects.requireNonNull(gid); return this; } + @CustomType.Setter public Builder secondaryGids(@Nullable List secondaryGids) { this.secondaryGids = secondaryGids; return this; @@ -94,11 +83,17 @@ public Builder secondaryGids(@Nullable List secondaryGids) { public Builder secondaryGids(Integer... secondaryGids) { return secondaryGids(List.of(secondaryGids)); } + @CustomType.Setter public Builder uid(Integer uid) { this.uid = Objects.requireNonNull(uid); return this; - } public AccessPosixProfile build() { - return new AccessPosixProfile(gid, secondaryGids, uid); + } + public AccessPosixProfile build() { + final var o = new AccessPosixProfile(); + o.gid = gid; + o.secondaryGids = secondaryGids; + o.uid = uid; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/GetServerResult.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/GetServerResult.java index 9dcd047ab93..7dc31ccfd0f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/GetServerResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/GetServerResult.java @@ -14,94 +14,65 @@ public final class GetServerResult { * @return Amazon Resource Name (ARN) of Transfer Server. * */ - private final String arn; + private String arn; /** * @return The ARN of any certificate. * */ - private final String certificate; + private String certificate; /** * @return The domain of the storage system that is used for file transfers. * */ - private final String domain; + private String domain; /** * @return The endpoint of the Transfer Server (e.g., `s-12345678.server.transfer.REGION.amazonaws.com`). * */ - private final String endpoint; + private String endpoint; /** * @return The type of endpoint that the server is connected to. * */ - private final String endpointType; + private String endpointType; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The mode of authentication enabled for this service. The default value is `SERVICE_MANAGED`, which allows you to store and access SFTP user credentials within the service. `API_GATEWAY` indicates that user authentication requires a call to an API Gateway endpoint URL provided by you to integrate an identity provider of your choice. * */ - private final String identityProviderType; + private String identityProviderType; /** * @return Amazon Resource Name (ARN) of the IAM role used to authenticate the user account with an `identity_provider_type` of `API_GATEWAY`. * */ - private final String invocationRole; + private String invocationRole; /** * @return Amazon Resource Name (ARN) of an IAM role that allows the service to write your SFTP users’ activity to your Amazon CloudWatch logs for monitoring and auditing purposes. * */ - private final String loggingRole; + private String loggingRole; /** * @return The file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. * */ - private final List protocols; + private List protocols; /** * @return The name of the security policy that is attached to the server. * */ - private final String securityPolicyName; - private final String serverId; + private String securityPolicyName; + private String serverId; /** * @return URL of the service endpoint used to authenticate users with an `identity_provider_type` of `API_GATEWAY`. * */ - private final String url; - - @CustomType.Constructor - private GetServerResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("certificate") String certificate, - @CustomType.Parameter("domain") String domain, - @CustomType.Parameter("endpoint") String endpoint, - @CustomType.Parameter("endpointType") String endpointType, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("identityProviderType") String identityProviderType, - @CustomType.Parameter("invocationRole") String invocationRole, - @CustomType.Parameter("loggingRole") String loggingRole, - @CustomType.Parameter("protocols") List protocols, - @CustomType.Parameter("securityPolicyName") String securityPolicyName, - @CustomType.Parameter("serverId") String serverId, - @CustomType.Parameter("url") String url) { - this.arn = arn; - this.certificate = certificate; - this.domain = domain; - this.endpoint = endpoint; - this.endpointType = endpointType; - this.id = id; - this.identityProviderType = identityProviderType; - this.invocationRole = invocationRole; - this.loggingRole = loggingRole; - this.protocols = protocols; - this.securityPolicyName = securityPolicyName; - this.serverId = serverId; - this.url = url; - } + private String url; + private GetServerResult() {} /** * @return Amazon Resource Name (ARN) of Transfer Server. * @@ -197,7 +168,7 @@ public static Builder builder() { public static Builder builder(GetServerResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String certificate; @@ -212,11 +183,7 @@ public static final class Builder { private String securityPolicyName; private String serverId; private String url; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetServerResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -234,42 +201,52 @@ public Builder(GetServerResult defaults) { this.url = defaults.url; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder certificate(String certificate) { this.certificate = Objects.requireNonNull(certificate); return this; } + @CustomType.Setter public Builder domain(String domain) { this.domain = Objects.requireNonNull(domain); return this; } + @CustomType.Setter public Builder endpoint(String endpoint) { this.endpoint = Objects.requireNonNull(endpoint); return this; } + @CustomType.Setter public Builder endpointType(String endpointType) { this.endpointType = Objects.requireNonNull(endpointType); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder identityProviderType(String identityProviderType) { this.identityProviderType = Objects.requireNonNull(identityProviderType); return this; } + @CustomType.Setter public Builder invocationRole(String invocationRole) { this.invocationRole = Objects.requireNonNull(invocationRole); return this; } + @CustomType.Setter public Builder loggingRole(String loggingRole) { this.loggingRole = Objects.requireNonNull(loggingRole); return this; } + @CustomType.Setter public Builder protocols(List protocols) { this.protocols = Objects.requireNonNull(protocols); return this; @@ -277,19 +254,37 @@ public Builder protocols(List protocols) { public Builder protocols(String... protocols) { return protocols(List.of(protocols)); } + @CustomType.Setter public Builder securityPolicyName(String securityPolicyName) { this.securityPolicyName = Objects.requireNonNull(securityPolicyName); return this; } + @CustomType.Setter public Builder serverId(String serverId) { this.serverId = Objects.requireNonNull(serverId); return this; } + @CustomType.Setter public Builder url(String url) { this.url = Objects.requireNonNull(url); return this; - } public GetServerResult build() { - return new GetServerResult(arn, certificate, domain, endpoint, endpointType, id, identityProviderType, invocationRole, loggingRole, protocols, securityPolicyName, serverId, url); + } + public GetServerResult build() { + final var o = new GetServerResult(); + o.arn = arn; + o.certificate = certificate; + o.domain = domain; + o.endpoint = endpoint; + o.endpointType = endpointType; + o.id = id; + o.identityProviderType = identityProviderType; + o.invocationRole = invocationRole; + o.loggingRole = loggingRole; + o.protocols = protocols; + o.securityPolicyName = securityPolicyName; + o.serverId = serverId; + o.url = url; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/ServerEndpointDetails.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/ServerEndpointDetails.java index f219acf5feb..961da193b39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/ServerEndpointDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/ServerEndpointDetails.java @@ -16,42 +16,29 @@ public final class ServerEndpointDetails { * @return A list of address allocation IDs that are required to attach an Elastic IP address to your SFTP server's endpoint. This property can only be used when `endpoint_type` is set to `VPC`. * */ - private final @Nullable List addressAllocationIds; + private @Nullable List addressAllocationIds; /** * @return A list of security groups IDs that are available to attach to your server's endpoint. If no security groups are specified, the VPC's default security groups are automatically assigned to your endpoint. This property can only be used when `endpoint_type` is set to `VPC`. * */ - private final @Nullable List securityGroupIds; + private @Nullable List securityGroupIds; /** * @return A list of subnet IDs that are required to host your SFTP server endpoint in your VPC. This property can only be used when `endpoint_type` is set to `VPC`. * */ - private final @Nullable List subnetIds; + private @Nullable List subnetIds; /** * @return The ID of the VPC endpoint. This property can only be used when `endpoint_type` is set to `VPC_ENDPOINT` * */ - private final @Nullable String vpcEndpointId; + private @Nullable String vpcEndpointId; /** * @return The VPC ID of the virtual private cloud in which the SFTP server's endpoint will be hosted. This property can only be used when `endpoint_type` is set to `VPC`. * */ - private final @Nullable String vpcId; - - @CustomType.Constructor - private ServerEndpointDetails( - @CustomType.Parameter("addressAllocationIds") @Nullable List addressAllocationIds, - @CustomType.Parameter("securityGroupIds") @Nullable List securityGroupIds, - @CustomType.Parameter("subnetIds") @Nullable List subnetIds, - @CustomType.Parameter("vpcEndpointId") @Nullable String vpcEndpointId, - @CustomType.Parameter("vpcId") @Nullable String vpcId) { - this.addressAllocationIds = addressAllocationIds; - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcEndpointId = vpcEndpointId; - this.vpcId = vpcId; - } + private @Nullable String vpcId; + private ServerEndpointDetails() {} /** * @return A list of address allocation IDs that are required to attach an Elastic IP address to your SFTP server's endpoint. This property can only be used when `endpoint_type` is set to `VPC`. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(ServerEndpointDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List addressAllocationIds; private @Nullable List securityGroupIds; private @Nullable List subnetIds; private @Nullable String vpcEndpointId; private @Nullable String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServerEndpointDetails defaults) { Objects.requireNonNull(defaults); this.addressAllocationIds = defaults.addressAllocationIds; @@ -116,6 +99,7 @@ public Builder(ServerEndpointDetails defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder addressAllocationIds(@Nullable List addressAllocationIds) { this.addressAllocationIds = addressAllocationIds; return this; @@ -123,6 +107,7 @@ public Builder addressAllocationIds(@Nullable List addressAllocationIds) public Builder addressAllocationIds(String... addressAllocationIds) { return addressAllocationIds(List.of(addressAllocationIds)); } + @CustomType.Setter public Builder securityGroupIds(@Nullable List securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; @@ -130,6 +115,7 @@ public Builder securityGroupIds(@Nullable List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(@Nullable List subnetIds) { this.subnetIds = subnetIds; return this; @@ -137,15 +123,24 @@ public Builder subnetIds(@Nullable List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcEndpointId(@Nullable String vpcEndpointId) { this.vpcEndpointId = vpcEndpointId; return this; } + @CustomType.Setter public Builder vpcId(@Nullable String vpcId) { this.vpcId = vpcId; return this; - } public ServerEndpointDetails build() { - return new ServerEndpointDetails(addressAllocationIds, securityGroupIds, subnetIds, vpcEndpointId, vpcId); + } + public ServerEndpointDetails build() { + final var o = new ServerEndpointDetails(); + o.addressAllocationIds = addressAllocationIds; + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcEndpointId = vpcEndpointId; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/ServerWorkflowDetails.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/ServerWorkflowDetails.java index 43f3cb5f6db..007b38748ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/ServerWorkflowDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/ServerWorkflowDetails.java @@ -15,13 +15,9 @@ public final class ServerWorkflowDetails { * @return A trigger that starts a workflow: the workflow begins to execute after a file is uploaded. See Workflow Detail below. * */ - private final @Nullable ServerWorkflowDetailsOnUpload onUpload; - - @CustomType.Constructor - private ServerWorkflowDetails(@CustomType.Parameter("onUpload") @Nullable ServerWorkflowDetailsOnUpload onUpload) { - this.onUpload = onUpload; - } + private @Nullable ServerWorkflowDetailsOnUpload onUpload; + private ServerWorkflowDetails() {} /** * @return A trigger that starts a workflow: the workflow begins to execute after a file is uploaded. See Workflow Detail below. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(ServerWorkflowDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable ServerWorkflowDetailsOnUpload onUpload; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServerWorkflowDetails defaults) { Objects.requireNonNull(defaults); this.onUpload = defaults.onUpload; } + @CustomType.Setter public Builder onUpload(@Nullable ServerWorkflowDetailsOnUpload onUpload) { this.onUpload = onUpload; return this; - } public ServerWorkflowDetails build() { - return new ServerWorkflowDetails(onUpload); + } + public ServerWorkflowDetails build() { + final var o = new ServerWorkflowDetails(); + o.onUpload = onUpload; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/ServerWorkflowDetailsOnUpload.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/ServerWorkflowDetailsOnUpload.java index a0ed80b44fd..b5531386423 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/ServerWorkflowDetailsOnUpload.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/ServerWorkflowDetailsOnUpload.java @@ -13,21 +13,14 @@ public final class ServerWorkflowDetailsOnUpload { * @return Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources. * */ - private final String executionRole; + private String executionRole; /** * @return A unique identifier for the workflow. * */ - private final String workflowId; - - @CustomType.Constructor - private ServerWorkflowDetailsOnUpload( - @CustomType.Parameter("executionRole") String executionRole, - @CustomType.Parameter("workflowId") String workflowId) { - this.executionRole = executionRole; - this.workflowId = workflowId; - } + private String workflowId; + private ServerWorkflowDetailsOnUpload() {} /** * @return Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(ServerWorkflowDetailsOnUpload defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String executionRole; private String workflowId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ServerWorkflowDetailsOnUpload defaults) { Objects.requireNonNull(defaults); this.executionRole = defaults.executionRole; this.workflowId = defaults.workflowId; } + @CustomType.Setter public Builder executionRole(String executionRole) { this.executionRole = Objects.requireNonNull(executionRole); return this; } + @CustomType.Setter public Builder workflowId(String workflowId) { this.workflowId = Objects.requireNonNull(workflowId); return this; - } public ServerWorkflowDetailsOnUpload build() { - return new ServerWorkflowDetailsOnUpload(executionRole, workflowId); + } + public ServerWorkflowDetailsOnUpload build() { + final var o = new ServerWorkflowDetailsOnUpload(); + o.executionRole = executionRole; + o.workflowId = workflowId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/UserHomeDirectoryMapping.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/UserHomeDirectoryMapping.java index 53872aa376c..90cb08ec2d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/UserHomeDirectoryMapping.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/UserHomeDirectoryMapping.java @@ -13,21 +13,14 @@ public final class UserHomeDirectoryMapping { * @return Represents an entry and a target. * */ - private final String entry; + private String entry; /** * @return Represents the map target. * */ - private final String target; - - @CustomType.Constructor - private UserHomeDirectoryMapping( - @CustomType.Parameter("entry") String entry, - @CustomType.Parameter("target") String target) { - this.entry = entry; - this.target = target; - } + private String target; + private UserHomeDirectoryMapping() {} /** * @return Represents an entry and a target. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(UserHomeDirectoryMapping defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String entry; private String target; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserHomeDirectoryMapping defaults) { Objects.requireNonNull(defaults); this.entry = defaults.entry; this.target = defaults.target; } + @CustomType.Setter public Builder entry(String entry) { this.entry = Objects.requireNonNull(entry); return this; } + @CustomType.Setter public Builder target(String target) { this.target = Objects.requireNonNull(target); return this; - } public UserHomeDirectoryMapping build() { - return new UserHomeDirectoryMapping(entry, target); + } + public UserHomeDirectoryMapping build() { + final var o = new UserHomeDirectoryMapping(); + o.entry = entry; + o.target = target; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/UserPosixProfile.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/UserPosixProfile.java index 0ddc82de829..606923bbb2f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/UserPosixProfile.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/UserPosixProfile.java @@ -15,28 +15,19 @@ public final class UserPosixProfile { * @return The POSIX group ID used for all EFS operations by this user. * */ - private final Integer gid; + private Integer gid; /** * @return The secondary POSIX group IDs used for all EFS operations by this user. * */ - private final @Nullable List secondaryGids; + private @Nullable List secondaryGids; /** * @return The POSIX user ID used for all EFS operations by this user. * */ - private final Integer uid; - - @CustomType.Constructor - private UserPosixProfile( - @CustomType.Parameter("gid") Integer gid, - @CustomType.Parameter("secondaryGids") @Nullable List secondaryGids, - @CustomType.Parameter("uid") Integer uid) { - this.gid = gid; - this.secondaryGids = secondaryGids; - this.uid = uid; - } + private Integer uid; + private UserPosixProfile() {} /** * @return The POSIX group ID used for all EFS operations by this user. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(UserPosixProfile defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer gid; private @Nullable List secondaryGids; private Integer uid; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(UserPosixProfile defaults) { Objects.requireNonNull(defaults); this.gid = defaults.gid; @@ -83,10 +70,12 @@ public Builder(UserPosixProfile defaults) { this.uid = defaults.uid; } + @CustomType.Setter public Builder gid(Integer gid) { this.gid = Objects.requireNonNull(gid); return this; } + @CustomType.Setter public Builder secondaryGids(@Nullable List secondaryGids) { this.secondaryGids = secondaryGids; return this; @@ -94,11 +83,17 @@ public Builder secondaryGids(@Nullable List secondaryGids) { public Builder secondaryGids(Integer... secondaryGids) { return secondaryGids(List.of(secondaryGids)); } + @CustomType.Setter public Builder uid(Integer uid) { this.uid = Objects.requireNonNull(uid); return this; - } public UserPosixProfile build() { - return new UserPosixProfile(gid, secondaryGids, uid); + } + public UserPosixProfile build() { + final var o = new UserPosixProfile(); + o.gid = gid; + o.secondaryGids = secondaryGids; + o.uid = uid; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStep.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStep.java index 158967f24f9..3ecc708fa73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStep.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStep.java @@ -19,42 +19,29 @@ public final class WorkflowOnExceptionStep { * @return Details for a step that performs a file copy. See Copy Step Details below. * */ - private final @Nullable WorkflowOnExceptionStepCopyStepDetails copyStepDetails; + private @Nullable WorkflowOnExceptionStepCopyStepDetails copyStepDetails; /** * @return Details for a step that invokes a lambda function. * */ - private final @Nullable WorkflowOnExceptionStepCustomStepDetails customStepDetails; + private @Nullable WorkflowOnExceptionStepCustomStepDetails customStepDetails; /** * @return Details for a step that deletes the file. * */ - private final @Nullable WorkflowOnExceptionStepDeleteStepDetails deleteStepDetails; + private @Nullable WorkflowOnExceptionStepDeleteStepDetails deleteStepDetails; /** * @return Details for a step that creates one or more tags. * */ - private final @Nullable WorkflowOnExceptionStepTagStepDetails tagStepDetails; + private @Nullable WorkflowOnExceptionStepTagStepDetails tagStepDetails; /** * @return One of the following step types are supported. `COPY`, `CUSTOM`, `DELETE`, and `TAG`. * */ - private final String type; - - @CustomType.Constructor - private WorkflowOnExceptionStep( - @CustomType.Parameter("copyStepDetails") @Nullable WorkflowOnExceptionStepCopyStepDetails copyStepDetails, - @CustomType.Parameter("customStepDetails") @Nullable WorkflowOnExceptionStepCustomStepDetails customStepDetails, - @CustomType.Parameter("deleteStepDetails") @Nullable WorkflowOnExceptionStepDeleteStepDetails deleteStepDetails, - @CustomType.Parameter("tagStepDetails") @Nullable WorkflowOnExceptionStepTagStepDetails tagStepDetails, - @CustomType.Parameter("type") String type) { - this.copyStepDetails = copyStepDetails; - this.customStepDetails = customStepDetails; - this.deleteStepDetails = deleteStepDetails; - this.tagStepDetails = tagStepDetails; - this.type = type; - } + private String type; + private WorkflowOnExceptionStep() {} /** * @return Details for a step that performs a file copy. See Copy Step Details below. * @@ -98,18 +85,14 @@ public static Builder builder() { public static Builder builder(WorkflowOnExceptionStep defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WorkflowOnExceptionStepCopyStepDetails copyStepDetails; private @Nullable WorkflowOnExceptionStepCustomStepDetails customStepDetails; private @Nullable WorkflowOnExceptionStepDeleteStepDetails deleteStepDetails; private @Nullable WorkflowOnExceptionStepTagStepDetails tagStepDetails; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowOnExceptionStep defaults) { Objects.requireNonNull(defaults); this.copyStepDetails = defaults.copyStepDetails; @@ -119,27 +102,39 @@ public Builder(WorkflowOnExceptionStep defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder copyStepDetails(@Nullable WorkflowOnExceptionStepCopyStepDetails copyStepDetails) { this.copyStepDetails = copyStepDetails; return this; } + @CustomType.Setter public Builder customStepDetails(@Nullable WorkflowOnExceptionStepCustomStepDetails customStepDetails) { this.customStepDetails = customStepDetails; return this; } + @CustomType.Setter public Builder deleteStepDetails(@Nullable WorkflowOnExceptionStepDeleteStepDetails deleteStepDetails) { this.deleteStepDetails = deleteStepDetails; return this; } + @CustomType.Setter public Builder tagStepDetails(@Nullable WorkflowOnExceptionStepTagStepDetails tagStepDetails) { this.tagStepDetails = tagStepDetails; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WorkflowOnExceptionStep build() { - return new WorkflowOnExceptionStep(copyStepDetails, customStepDetails, deleteStepDetails, tagStepDetails, type); + } + public WorkflowOnExceptionStep build() { + final var o = new WorkflowOnExceptionStep(); + o.copyStepDetails = copyStepDetails; + o.customStepDetails = customStepDetails; + o.deleteStepDetails = deleteStepDetails; + o.tagStepDetails = tagStepDetails; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetails.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetails.java index cf1e4452a3b..ed1a3ad28b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetails.java @@ -16,35 +16,24 @@ public final class WorkflowOnExceptionStepCopyStepDetails { * @return Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. * */ - private final @Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation destinationFileLocation; + private @Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation destinationFileLocation; /** * @return The name of the step, used as an identifier. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return A flag that indicates whether or not to overwrite an existing file of the same name. The default is `FALSE`. Valid values are `TRUE` and `FALSE`. * */ - private final @Nullable String overwriteExisting; + private @Nullable String overwriteExisting; /** * @return Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. * */ - private final @Nullable String sourceFileLocation; - - @CustomType.Constructor - private WorkflowOnExceptionStepCopyStepDetails( - @CustomType.Parameter("destinationFileLocation") @Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation destinationFileLocation, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("overwriteExisting") @Nullable String overwriteExisting, - @CustomType.Parameter("sourceFileLocation") @Nullable String sourceFileLocation) { - this.destinationFileLocation = destinationFileLocation; - this.name = name; - this.overwriteExisting = overwriteExisting; - this.sourceFileLocation = sourceFileLocation; - } + private @Nullable String sourceFileLocation; + private WorkflowOnExceptionStepCopyStepDetails() {} /** * @return Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(WorkflowOnExceptionStepCopyStepDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation destinationFileLocation; private @Nullable String name; private @Nullable String overwriteExisting; private @Nullable String sourceFileLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowOnExceptionStepCopyStepDetails defaults) { Objects.requireNonNull(defaults); this.destinationFileLocation = defaults.destinationFileLocation; @@ -100,23 +85,33 @@ public Builder(WorkflowOnExceptionStepCopyStepDetails defaults) { this.sourceFileLocation = defaults.sourceFileLocation; } + @CustomType.Setter public Builder destinationFileLocation(@Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation destinationFileLocation) { this.destinationFileLocation = destinationFileLocation; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder overwriteExisting(@Nullable String overwriteExisting) { this.overwriteExisting = overwriteExisting; return this; } + @CustomType.Setter public Builder sourceFileLocation(@Nullable String sourceFileLocation) { this.sourceFileLocation = sourceFileLocation; return this; - } public WorkflowOnExceptionStepCopyStepDetails build() { - return new WorkflowOnExceptionStepCopyStepDetails(destinationFileLocation, name, overwriteExisting, sourceFileLocation); + } + public WorkflowOnExceptionStepCopyStepDetails build() { + final var o = new WorkflowOnExceptionStepCopyStepDetails(); + o.destinationFileLocation = destinationFileLocation; + o.name = name; + o.overwriteExisting = overwriteExisting; + o.sourceFileLocation = sourceFileLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation.java index 7c9ec6ffcba..04fcd584545 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation.java @@ -16,21 +16,14 @@ public final class WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation * @return Specifies the details for the EFS file being copied. * */ - private final @Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation efsFileLocation; + private @Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation efsFileLocation; /** * @return Specifies the details for the S3 file being copied. * */ - private final @Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation s3FileLocation; - - @CustomType.Constructor - private WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation( - @CustomType.Parameter("efsFileLocation") @Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation efsFileLocation, - @CustomType.Parameter("s3FileLocation") @Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation s3FileLocation) { - this.efsFileLocation = efsFileLocation; - this.s3FileLocation = s3FileLocation; - } + private @Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation s3FileLocation; + private WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation() {} /** * @return Specifies the details for the EFS file being copied. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation efsFileLocation; private @Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation s3FileLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation defaults) { Objects.requireNonNull(defaults); this.efsFileLocation = defaults.efsFileLocation; this.s3FileLocation = defaults.s3FileLocation; } + @CustomType.Setter public Builder efsFileLocation(@Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation efsFileLocation) { this.efsFileLocation = efsFileLocation; return this; } + @CustomType.Setter public Builder s3FileLocation(@Nullable WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation s3FileLocation) { this.s3FileLocation = s3FileLocation; return this; - } public WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation build() { - return new WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation(efsFileLocation, s3FileLocation); + } + public WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation build() { + final var o = new WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation(); + o.efsFileLocation = efsFileLocation; + o.s3FileLocation = s3FileLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation.java index bb8144d3ecd..ffba48d965f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation.java @@ -15,21 +15,14 @@ public final class WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation * @return The ID of the file system, assigned by Amazon EFS. * */ - private final @Nullable String fileSystemId; + private @Nullable String fileSystemId; /** * @return The pathname for the folder being used by a workflow. * */ - private final @Nullable String path; - - @CustomType.Constructor - private WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation( - @CustomType.Parameter("fileSystemId") @Nullable String fileSystemId, - @CustomType.Parameter("path") @Nullable String path) { - this.fileSystemId = fileSystemId; - this.path = path; - } + private @Nullable String path; + private WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation() {} /** * @return The ID of the file system, assigned by Amazon EFS. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String fileSystemId; private @Nullable String path; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation defaults) { Objects.requireNonNull(defaults); this.fileSystemId = defaults.fileSystemId; this.path = defaults.path; } + @CustomType.Setter public Builder fileSystemId(@Nullable String fileSystemId) { this.fileSystemId = fileSystemId; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; - } public WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation build() { - return new WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation(fileSystemId, path); + } + public WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation build() { + final var o = new WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationEfsFileLocation(); + o.fileSystemId = fileSystemId; + o.path = path; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation.java index 89e3fadefa1..4a3641abd2c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation.java @@ -15,21 +15,14 @@ public final class WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocation * @return Specifies the S3 bucket for the customer input file. * */ - private final @Nullable String bucket; + private @Nullable String bucket; /** * @return The name assigned to the tag that you create. * */ - private final @Nullable String key; - - @CustomType.Constructor - private WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation( - @CustomType.Parameter("bucket") @Nullable String bucket, - @CustomType.Parameter("key") @Nullable String key) { - this.bucket = bucket; - this.key = key; - } + private @Nullable String key; + private WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation() {} /** * @return Specifies the S3 bucket for the customer input file. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucket; private @Nullable String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.key = defaults.key; } + @CustomType.Setter public Builder bucket(@Nullable String bucket) { this.bucket = bucket; return this; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; - } public WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation build() { - return new WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation(bucket, key); + } + public WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation build() { + final var o = new WorkflowOnExceptionStepCopyStepDetailsDestinationFileLocationS3FileLocation(); + o.bucket = bucket; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCustomStepDetails.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCustomStepDetails.java index 9163def4cda..7f162a6839f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCustomStepDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepCustomStepDetails.java @@ -16,35 +16,24 @@ public final class WorkflowOnExceptionStepCustomStepDetails { * @return The name of the step, used as an identifier. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. * */ - private final @Nullable String sourceFileLocation; + private @Nullable String sourceFileLocation; /** * @return The ARN for the lambda function that is being called. * */ - private final @Nullable String target; + private @Nullable String target; /** * @return Timeout, in seconds, for the step. * */ - private final @Nullable Integer timeoutSeconds; - - @CustomType.Constructor - private WorkflowOnExceptionStepCustomStepDetails( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("sourceFileLocation") @Nullable String sourceFileLocation, - @CustomType.Parameter("target") @Nullable String target, - @CustomType.Parameter("timeoutSeconds") @Nullable Integer timeoutSeconds) { - this.name = name; - this.sourceFileLocation = sourceFileLocation; - this.target = target; - this.timeoutSeconds = timeoutSeconds; - } + private @Nullable Integer timeoutSeconds; + private WorkflowOnExceptionStepCustomStepDetails() {} /** * @return The name of the step, used as an identifier. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(WorkflowOnExceptionStepCustomStepDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String sourceFileLocation; private @Nullable String target; private @Nullable Integer timeoutSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowOnExceptionStepCustomStepDetails defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -100,23 +85,33 @@ public Builder(WorkflowOnExceptionStepCustomStepDetails defaults) { this.timeoutSeconds = defaults.timeoutSeconds; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder sourceFileLocation(@Nullable String sourceFileLocation) { this.sourceFileLocation = sourceFileLocation; return this; } + @CustomType.Setter public Builder target(@Nullable String target) { this.target = target; return this; } + @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; - } public WorkflowOnExceptionStepCustomStepDetails build() { - return new WorkflowOnExceptionStepCustomStepDetails(name, sourceFileLocation, target, timeoutSeconds); + } + public WorkflowOnExceptionStepCustomStepDetails build() { + final var o = new WorkflowOnExceptionStepCustomStepDetails(); + o.name = name; + o.sourceFileLocation = sourceFileLocation; + o.target = target; + o.timeoutSeconds = timeoutSeconds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepDeleteStepDetails.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepDeleteStepDetails.java index 417c787bc2a..ff5d42f4d3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepDeleteStepDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepDeleteStepDetails.java @@ -15,21 +15,14 @@ public final class WorkflowOnExceptionStepDeleteStepDetails { * @return The name of the step, used as an identifier. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. * */ - private final @Nullable String sourceFileLocation; - - @CustomType.Constructor - private WorkflowOnExceptionStepDeleteStepDetails( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("sourceFileLocation") @Nullable String sourceFileLocation) { - this.name = name; - this.sourceFileLocation = sourceFileLocation; - } + private @Nullable String sourceFileLocation; + private WorkflowOnExceptionStepDeleteStepDetails() {} /** * @return The name of the step, used as an identifier. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(WorkflowOnExceptionStepDeleteStepDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String sourceFileLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowOnExceptionStepDeleteStepDetails defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.sourceFileLocation = defaults.sourceFileLocation; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder sourceFileLocation(@Nullable String sourceFileLocation) { this.sourceFileLocation = sourceFileLocation; return this; - } public WorkflowOnExceptionStepDeleteStepDetails build() { - return new WorkflowOnExceptionStepDeleteStepDetails(name, sourceFileLocation); + } + public WorkflowOnExceptionStepDeleteStepDetails build() { + final var o = new WorkflowOnExceptionStepDeleteStepDetails(); + o.name = name; + o.sourceFileLocation = sourceFileLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepTagStepDetails.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepTagStepDetails.java index bb73dcc3b48..58f57c0c3a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepTagStepDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepTagStepDetails.java @@ -17,28 +17,19 @@ public final class WorkflowOnExceptionStepTagStepDetails { * @return The name of the step, used as an identifier. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. * */ - private final @Nullable String sourceFileLocation; + private @Nullable String sourceFileLocation; /** * @return Array that contains from 1 to 10 key/value pairs. See S3 Tags below. * */ - private final @Nullable List tags; - - @CustomType.Constructor - private WorkflowOnExceptionStepTagStepDetails( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("sourceFileLocation") @Nullable String sourceFileLocation, - @CustomType.Parameter("tags") @Nullable List tags) { - this.name = name; - this.sourceFileLocation = sourceFileLocation; - this.tags = tags; - } + private @Nullable List tags; + private WorkflowOnExceptionStepTagStepDetails() {} /** * @return The name of the step, used as an identifier. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(WorkflowOnExceptionStepTagStepDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String sourceFileLocation; private @Nullable List tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowOnExceptionStepTagStepDetails defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -85,22 +72,30 @@ public Builder(WorkflowOnExceptionStepTagStepDetails defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder sourceFileLocation(@Nullable String sourceFileLocation) { this.sourceFileLocation = sourceFileLocation; return this; } + @CustomType.Setter public Builder tags(@Nullable List tags) { this.tags = tags; return this; } public Builder tags(WorkflowOnExceptionStepTagStepDetailsTag... tags) { return tags(List.of(tags)); - } public WorkflowOnExceptionStepTagStepDetails build() { - return new WorkflowOnExceptionStepTagStepDetails(name, sourceFileLocation, tags); + } + public WorkflowOnExceptionStepTagStepDetails build() { + final var o = new WorkflowOnExceptionStepTagStepDetails(); + o.name = name; + o.sourceFileLocation = sourceFileLocation; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepTagStepDetailsTag.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepTagStepDetailsTag.java index 434a258ddd6..eb5ad6adf46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepTagStepDetailsTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowOnExceptionStepTagStepDetailsTag.java @@ -13,21 +13,14 @@ public final class WorkflowOnExceptionStepTagStepDetailsTag { * @return The name assigned to the tag that you create. * */ - private final String key; + private String key; /** * @return The value that corresponds to the key. * */ - private final String value; - - @CustomType.Constructor - private WorkflowOnExceptionStepTagStepDetailsTag( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private WorkflowOnExceptionStepTagStepDetailsTag() {} /** * @return The name assigned to the tag that you create. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WorkflowOnExceptionStepTagStepDetailsTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowOnExceptionStepTagStepDetailsTag defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public WorkflowOnExceptionStepTagStepDetailsTag build() { - return new WorkflowOnExceptionStepTagStepDetailsTag(key, value); + } + public WorkflowOnExceptionStepTagStepDetailsTag build() { + final var o = new WorkflowOnExceptionStepTagStepDetailsTag(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStep.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStep.java index 8a593ff3e79..c80dd6ca93c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStep.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStep.java @@ -19,42 +19,29 @@ public final class WorkflowStep { * @return Details for a step that performs a file copy. See Copy Step Details below. * */ - private final @Nullable WorkflowStepCopyStepDetails copyStepDetails; + private @Nullable WorkflowStepCopyStepDetails copyStepDetails; /** * @return Details for a step that invokes a lambda function. * */ - private final @Nullable WorkflowStepCustomStepDetails customStepDetails; + private @Nullable WorkflowStepCustomStepDetails customStepDetails; /** * @return Details for a step that deletes the file. * */ - private final @Nullable WorkflowStepDeleteStepDetails deleteStepDetails; + private @Nullable WorkflowStepDeleteStepDetails deleteStepDetails; /** * @return Details for a step that creates one or more tags. * */ - private final @Nullable WorkflowStepTagStepDetails tagStepDetails; + private @Nullable WorkflowStepTagStepDetails tagStepDetails; /** * @return One of the following step types are supported. `COPY`, `CUSTOM`, `DELETE`, and `TAG`. * */ - private final String type; - - @CustomType.Constructor - private WorkflowStep( - @CustomType.Parameter("copyStepDetails") @Nullable WorkflowStepCopyStepDetails copyStepDetails, - @CustomType.Parameter("customStepDetails") @Nullable WorkflowStepCustomStepDetails customStepDetails, - @CustomType.Parameter("deleteStepDetails") @Nullable WorkflowStepDeleteStepDetails deleteStepDetails, - @CustomType.Parameter("tagStepDetails") @Nullable WorkflowStepTagStepDetails tagStepDetails, - @CustomType.Parameter("type") String type) { - this.copyStepDetails = copyStepDetails; - this.customStepDetails = customStepDetails; - this.deleteStepDetails = deleteStepDetails; - this.tagStepDetails = tagStepDetails; - this.type = type; - } + private String type; + private WorkflowStep() {} /** * @return Details for a step that performs a file copy. See Copy Step Details below. * @@ -98,18 +85,14 @@ public static Builder builder() { public static Builder builder(WorkflowStep defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WorkflowStepCopyStepDetails copyStepDetails; private @Nullable WorkflowStepCustomStepDetails customStepDetails; private @Nullable WorkflowStepDeleteStepDetails deleteStepDetails; private @Nullable WorkflowStepTagStepDetails tagStepDetails; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowStep defaults) { Objects.requireNonNull(defaults); this.copyStepDetails = defaults.copyStepDetails; @@ -119,27 +102,39 @@ public Builder(WorkflowStep defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder copyStepDetails(@Nullable WorkflowStepCopyStepDetails copyStepDetails) { this.copyStepDetails = copyStepDetails; return this; } + @CustomType.Setter public Builder customStepDetails(@Nullable WorkflowStepCustomStepDetails customStepDetails) { this.customStepDetails = customStepDetails; return this; } + @CustomType.Setter public Builder deleteStepDetails(@Nullable WorkflowStepDeleteStepDetails deleteStepDetails) { this.deleteStepDetails = deleteStepDetails; return this; } + @CustomType.Setter public Builder tagStepDetails(@Nullable WorkflowStepTagStepDetails tagStepDetails) { this.tagStepDetails = tagStepDetails; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WorkflowStep build() { - return new WorkflowStep(copyStepDetails, customStepDetails, deleteStepDetails, tagStepDetails, type); + } + public WorkflowStep build() { + final var o = new WorkflowStep(); + o.copyStepDetails = copyStepDetails; + o.customStepDetails = customStepDetails; + o.deleteStepDetails = deleteStepDetails; + o.tagStepDetails = tagStepDetails; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetails.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetails.java index 3d62c1cd62d..f9f7fc5d9ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetails.java @@ -16,35 +16,24 @@ public final class WorkflowStepCopyStepDetails { * @return Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. * */ - private final @Nullable WorkflowStepCopyStepDetailsDestinationFileLocation destinationFileLocation; + private @Nullable WorkflowStepCopyStepDetailsDestinationFileLocation destinationFileLocation; /** * @return The name of the step, used as an identifier. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return A flag that indicates whether or not to overwrite an existing file of the same name. The default is `FALSE`. Valid values are `TRUE` and `FALSE`. * */ - private final @Nullable String overwriteExisting; + private @Nullable String overwriteExisting; /** * @return Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. * */ - private final @Nullable String sourceFileLocation; - - @CustomType.Constructor - private WorkflowStepCopyStepDetails( - @CustomType.Parameter("destinationFileLocation") @Nullable WorkflowStepCopyStepDetailsDestinationFileLocation destinationFileLocation, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("overwriteExisting") @Nullable String overwriteExisting, - @CustomType.Parameter("sourceFileLocation") @Nullable String sourceFileLocation) { - this.destinationFileLocation = destinationFileLocation; - this.name = name; - this.overwriteExisting = overwriteExisting; - this.sourceFileLocation = sourceFileLocation; - } + private @Nullable String sourceFileLocation; + private WorkflowStepCopyStepDetails() {} /** * @return Specifies the location for the file being copied. Use ${Transfer:username} in this field to parametrize the destination prefix by username. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(WorkflowStepCopyStepDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WorkflowStepCopyStepDetailsDestinationFileLocation destinationFileLocation; private @Nullable String name; private @Nullable String overwriteExisting; private @Nullable String sourceFileLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowStepCopyStepDetails defaults) { Objects.requireNonNull(defaults); this.destinationFileLocation = defaults.destinationFileLocation; @@ -100,23 +85,33 @@ public Builder(WorkflowStepCopyStepDetails defaults) { this.sourceFileLocation = defaults.sourceFileLocation; } + @CustomType.Setter public Builder destinationFileLocation(@Nullable WorkflowStepCopyStepDetailsDestinationFileLocation destinationFileLocation) { this.destinationFileLocation = destinationFileLocation; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder overwriteExisting(@Nullable String overwriteExisting) { this.overwriteExisting = overwriteExisting; return this; } + @CustomType.Setter public Builder sourceFileLocation(@Nullable String sourceFileLocation) { this.sourceFileLocation = sourceFileLocation; return this; - } public WorkflowStepCopyStepDetails build() { - return new WorkflowStepCopyStepDetails(destinationFileLocation, name, overwriteExisting, sourceFileLocation); + } + public WorkflowStepCopyStepDetails build() { + final var o = new WorkflowStepCopyStepDetails(); + o.destinationFileLocation = destinationFileLocation; + o.name = name; + o.overwriteExisting = overwriteExisting; + o.sourceFileLocation = sourceFileLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetailsDestinationFileLocation.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetailsDestinationFileLocation.java index d9c283edb01..8844cfeaa95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetailsDestinationFileLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetailsDestinationFileLocation.java @@ -16,21 +16,14 @@ public final class WorkflowStepCopyStepDetailsDestinationFileLocation { * @return Specifies the details for the EFS file being copied. * */ - private final @Nullable WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation efsFileLocation; + private @Nullable WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation efsFileLocation; /** * @return Specifies the details for the S3 file being copied. * */ - private final @Nullable WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation s3FileLocation; - - @CustomType.Constructor - private WorkflowStepCopyStepDetailsDestinationFileLocation( - @CustomType.Parameter("efsFileLocation") @Nullable WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation efsFileLocation, - @CustomType.Parameter("s3FileLocation") @Nullable WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation s3FileLocation) { - this.efsFileLocation = efsFileLocation; - this.s3FileLocation = s3FileLocation; - } + private @Nullable WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation s3FileLocation; + private WorkflowStepCopyStepDetailsDestinationFileLocation() {} /** * @return Specifies the details for the EFS file being copied. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WorkflowStepCopyStepDetailsDestinationFileLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation efsFileLocation; private @Nullable WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation s3FileLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowStepCopyStepDetailsDestinationFileLocation defaults) { Objects.requireNonNull(defaults); this.efsFileLocation = defaults.efsFileLocation; this.s3FileLocation = defaults.s3FileLocation; } + @CustomType.Setter public Builder efsFileLocation(@Nullable WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation efsFileLocation) { this.efsFileLocation = efsFileLocation; return this; } + @CustomType.Setter public Builder s3FileLocation(@Nullable WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation s3FileLocation) { this.s3FileLocation = s3FileLocation; return this; - } public WorkflowStepCopyStepDetailsDestinationFileLocation build() { - return new WorkflowStepCopyStepDetailsDestinationFileLocation(efsFileLocation, s3FileLocation); + } + public WorkflowStepCopyStepDetailsDestinationFileLocation build() { + final var o = new WorkflowStepCopyStepDetailsDestinationFileLocation(); + o.efsFileLocation = efsFileLocation; + o.s3FileLocation = s3FileLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation.java index 2c212a75df4..71cfe2e4a2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation.java @@ -15,21 +15,14 @@ public final class WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLoca * @return The ID of the file system, assigned by Amazon EFS. * */ - private final @Nullable String fileSystemId; + private @Nullable String fileSystemId; /** * @return The pathname for the folder being used by a workflow. * */ - private final @Nullable String path; - - @CustomType.Constructor - private WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation( - @CustomType.Parameter("fileSystemId") @Nullable String fileSystemId, - @CustomType.Parameter("path") @Nullable String path) { - this.fileSystemId = fileSystemId; - this.path = path; - } + private @Nullable String path; + private WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation() {} /** * @return The ID of the file system, assigned by Amazon EFS. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String fileSystemId; private @Nullable String path; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation defaults) { Objects.requireNonNull(defaults); this.fileSystemId = defaults.fileSystemId; this.path = defaults.path; } + @CustomType.Setter public Builder fileSystemId(@Nullable String fileSystemId) { this.fileSystemId = fileSystemId; return this; } + @CustomType.Setter public Builder path(@Nullable String path) { this.path = path; return this; - } public WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation build() { - return new WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation(fileSystemId, path); + } + public WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation build() { + final var o = new WorkflowStepCopyStepDetailsDestinationFileLocationEfsFileLocation(); + o.fileSystemId = fileSystemId; + o.path = path; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation.java index 813f65d487c..053508c319f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation.java @@ -15,21 +15,14 @@ public final class WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocat * @return Specifies the S3 bucket for the customer input file. * */ - private final @Nullable String bucket; + private @Nullable String bucket; /** * @return The name assigned to the tag that you create. * */ - private final @Nullable String key; - - @CustomType.Constructor - private WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation( - @CustomType.Parameter("bucket") @Nullable String bucket, - @CustomType.Parameter("key") @Nullable String key) { - this.bucket = bucket; - this.key = key; - } + private @Nullable String key; + private WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation() {} /** * @return Specifies the S3 bucket for the customer input file. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bucket; private @Nullable String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation defaults) { Objects.requireNonNull(defaults); this.bucket = defaults.bucket; this.key = defaults.key; } + @CustomType.Setter public Builder bucket(@Nullable String bucket) { this.bucket = bucket; return this; } + @CustomType.Setter public Builder key(@Nullable String key) { this.key = key; return this; - } public WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation build() { - return new WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation(bucket, key); + } + public WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation build() { + final var o = new WorkflowStepCopyStepDetailsDestinationFileLocationS3FileLocation(); + o.bucket = bucket; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCustomStepDetails.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCustomStepDetails.java index 86f4310a9dd..25754f233ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCustomStepDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepCustomStepDetails.java @@ -16,35 +16,24 @@ public final class WorkflowStepCustomStepDetails { * @return The name of the step, used as an identifier. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. * */ - private final @Nullable String sourceFileLocation; + private @Nullable String sourceFileLocation; /** * @return The ARN for the lambda function that is being called. * */ - private final @Nullable String target; + private @Nullable String target; /** * @return Timeout, in seconds, for the step. * */ - private final @Nullable Integer timeoutSeconds; - - @CustomType.Constructor - private WorkflowStepCustomStepDetails( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("sourceFileLocation") @Nullable String sourceFileLocation, - @CustomType.Parameter("target") @Nullable String target, - @CustomType.Parameter("timeoutSeconds") @Nullable Integer timeoutSeconds) { - this.name = name; - this.sourceFileLocation = sourceFileLocation; - this.target = target; - this.timeoutSeconds = timeoutSeconds; - } + private @Nullable Integer timeoutSeconds; + private WorkflowStepCustomStepDetails() {} /** * @return The name of the step, used as an identifier. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(WorkflowStepCustomStepDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String sourceFileLocation; private @Nullable String target; private @Nullable Integer timeoutSeconds; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowStepCustomStepDetails defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -100,23 +85,33 @@ public Builder(WorkflowStepCustomStepDetails defaults) { this.timeoutSeconds = defaults.timeoutSeconds; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder sourceFileLocation(@Nullable String sourceFileLocation) { this.sourceFileLocation = sourceFileLocation; return this; } + @CustomType.Setter public Builder target(@Nullable String target) { this.target = target; return this; } + @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; - } public WorkflowStepCustomStepDetails build() { - return new WorkflowStepCustomStepDetails(name, sourceFileLocation, target, timeoutSeconds); + } + public WorkflowStepCustomStepDetails build() { + final var o = new WorkflowStepCustomStepDetails(); + o.name = name; + o.sourceFileLocation = sourceFileLocation; + o.target = target; + o.timeoutSeconds = timeoutSeconds; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepDeleteStepDetails.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepDeleteStepDetails.java index 578390cc154..79ece0ad8d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepDeleteStepDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepDeleteStepDetails.java @@ -15,21 +15,14 @@ public final class WorkflowStepDeleteStepDetails { * @return The name of the step, used as an identifier. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. * */ - private final @Nullable String sourceFileLocation; - - @CustomType.Constructor - private WorkflowStepDeleteStepDetails( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("sourceFileLocation") @Nullable String sourceFileLocation) { - this.name = name; - this.sourceFileLocation = sourceFileLocation; - } + private @Nullable String sourceFileLocation; + private WorkflowStepDeleteStepDetails() {} /** * @return The name of the step, used as an identifier. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(WorkflowStepDeleteStepDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String sourceFileLocation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowStepDeleteStepDetails defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.sourceFileLocation = defaults.sourceFileLocation; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder sourceFileLocation(@Nullable String sourceFileLocation) { this.sourceFileLocation = sourceFileLocation; return this; - } public WorkflowStepDeleteStepDetails build() { - return new WorkflowStepDeleteStepDetails(name, sourceFileLocation); + } + public WorkflowStepDeleteStepDetails build() { + final var o = new WorkflowStepDeleteStepDetails(); + o.name = name; + o.sourceFileLocation = sourceFileLocation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepTagStepDetails.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepTagStepDetails.java index ce17abdbd5a..577cafb9ca4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepTagStepDetails.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepTagStepDetails.java @@ -17,28 +17,19 @@ public final class WorkflowStepTagStepDetails { * @return The name of the step, used as an identifier. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return Specifies which file to use as input to the workflow step: either the output from the previous step, or the originally uploaded file for the workflow. Enter ${previous.file} to use the previous file as the input. In this case, this workflow step uses the output file from the previous workflow step as input. This is the default value. Enter ${original.file} to use the originally-uploaded file location as input for this step. * */ - private final @Nullable String sourceFileLocation; + private @Nullable String sourceFileLocation; /** * @return Array that contains from 1 to 10 key/value pairs. See S3 Tags below. * */ - private final @Nullable List tags; - - @CustomType.Constructor - private WorkflowStepTagStepDetails( - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("sourceFileLocation") @Nullable String sourceFileLocation, - @CustomType.Parameter("tags") @Nullable List tags) { - this.name = name; - this.sourceFileLocation = sourceFileLocation; - this.tags = tags; - } + private @Nullable List tags; + private WorkflowStepTagStepDetails() {} /** * @return The name of the step, used as an identifier. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(WorkflowStepTagStepDetails defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String name; private @Nullable String sourceFileLocation; private @Nullable List tags; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowStepTagStepDetails defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; @@ -85,22 +72,30 @@ public Builder(WorkflowStepTagStepDetails defaults) { this.tags = defaults.tags; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder sourceFileLocation(@Nullable String sourceFileLocation) { this.sourceFileLocation = sourceFileLocation; return this; } + @CustomType.Setter public Builder tags(@Nullable List tags) { this.tags = tags; return this; } public Builder tags(WorkflowStepTagStepDetailsTag... tags) { return tags(List.of(tags)); - } public WorkflowStepTagStepDetails build() { - return new WorkflowStepTagStepDetails(name, sourceFileLocation, tags); + } + public WorkflowStepTagStepDetails build() { + final var o = new WorkflowStepTagStepDetails(); + o.name = name; + o.sourceFileLocation = sourceFileLocation; + o.tags = tags; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepTagStepDetailsTag.java b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepTagStepDetailsTag.java index d3b09bf42aa..32e9486ca2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepTagStepDetailsTag.java +++ b/sdk/java/src/main/java/com/pulumi/aws/transfer/outputs/WorkflowStepTagStepDetailsTag.java @@ -13,21 +13,14 @@ public final class WorkflowStepTagStepDetailsTag { * @return The name assigned to the tag that you create. * */ - private final String key; + private String key; /** * @return The value that corresponds to the key. * */ - private final String value; - - @CustomType.Constructor - private WorkflowStepTagStepDetailsTag( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("value") String value) { - this.key = key; - this.value = value; - } + private String value; + private WorkflowStepTagStepDetailsTag() {} /** * @return The name assigned to the tag that you create. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WorkflowStepTagStepDetailsTag defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkflowStepTagStepDetailsTag defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.value = defaults.value; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public WorkflowStepTagStepDetailsTag build() { - return new WorkflowStepTagStepDetailsTag(key, value); + } + public WorkflowStepTagStepDetailsTag build() { + final var o = new WorkflowStepTagStepDetailsTag(); + o.key = key; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/ByteMatchSetByteMatchTuple.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/ByteMatchSetByteMatchTuple.java index f1a3f420cdb..fd19d3b2cc1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/ByteMatchSetByteMatchTuple.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/ByteMatchSetByteMatchTuple.java @@ -16,7 +16,7 @@ public final class ByteMatchSetByteMatchTuple { * @return The part of a web request that you want to search, such as a specified header or a query string. * */ - private final ByteMatchSetByteMatchTupleFieldToMatch fieldToMatch; + private ByteMatchSetByteMatchTupleFieldToMatch fieldToMatch; /** * @return Within the portion of a web request that you want to search * (for example, in the query string, if any), specify where you want to search. @@ -25,14 +25,14 @@ public final class ByteMatchSetByteMatchTuple { * for all supported values. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return The value that you want to search for within the field specified by `field_to_match`, e.g., `badrefer1`. * See [docs](https://docs.aws.amazon.com/waf/latest/APIReference/API_waf_ByteMatchTuple.html) * for all supported values. * */ - private final @Nullable String targetString; + private @Nullable String targetString; /** * @return Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. * If you specify a transformation, AWS WAF performs the transformation on `target_string` before inspecting a request for a match. @@ -41,20 +41,9 @@ public final class ByteMatchSetByteMatchTuple { * for all supported values. * */ - private final String textTransformation; - - @CustomType.Constructor - private ByteMatchSetByteMatchTuple( - @CustomType.Parameter("fieldToMatch") ByteMatchSetByteMatchTupleFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("targetString") @Nullable String targetString, - @CustomType.Parameter("textTransformation") String textTransformation) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.targetString = targetString; - this.textTransformation = textTransformation; - } + private String textTransformation; + private ByteMatchSetByteMatchTuple() {} /** * @return The part of a web request that you want to search, such as a specified header or a query string. * @@ -101,17 +90,13 @@ public static Builder builder() { public static Builder builder(ByteMatchSetByteMatchTuple defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private ByteMatchSetByteMatchTupleFieldToMatch fieldToMatch; private String positionalConstraint; private @Nullable String targetString; private String textTransformation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ByteMatchSetByteMatchTuple defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -120,23 +105,33 @@ public Builder(ByteMatchSetByteMatchTuple defaults) { this.textTransformation = defaults.textTransformation; } + @CustomType.Setter public Builder fieldToMatch(ByteMatchSetByteMatchTupleFieldToMatch fieldToMatch) { this.fieldToMatch = Objects.requireNonNull(fieldToMatch); return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder targetString(@Nullable String targetString) { this.targetString = targetString; return this; } + @CustomType.Setter public Builder textTransformation(String textTransformation) { this.textTransformation = Objects.requireNonNull(textTransformation); return this; - } public ByteMatchSetByteMatchTuple build() { - return new ByteMatchSetByteMatchTuple(fieldToMatch, positionalConstraint, targetString, textTransformation); + } + public ByteMatchSetByteMatchTuple build() { + final var o = new ByteMatchSetByteMatchTuple(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.targetString = targetString; + o.textTransformation = textTransformation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/ByteMatchSetByteMatchTupleFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/ByteMatchSetByteMatchTupleFieldToMatch.java index 2ef9f7e624a..c6e362ee0cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/ByteMatchSetByteMatchTupleFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/ByteMatchSetByteMatchTupleFieldToMatch.java @@ -16,7 +16,7 @@ public final class ByteMatchSetByteMatchTupleFieldToMatch { * If `type` is any other value, omit this field. * */ - private final @Nullable String data; + private @Nullable String data; /** * @return The part of the web request that you want AWS WAF to search for a specified string. * e.g., `HEADER`, `METHOD` or `BODY`. @@ -24,16 +24,9 @@ public final class ByteMatchSetByteMatchTupleFieldToMatch { * for all supported values. * */ - private final String type; - - @CustomType.Constructor - private ByteMatchSetByteMatchTupleFieldToMatch( - @CustomType.Parameter("data") @Nullable String data, - @CustomType.Parameter("type") String type) { - this.data = data; - this.type = type; - } + private String type; + private ByteMatchSetByteMatchTupleFieldToMatch() {} /** * @return When `type` is `HEADER`, enter the name of the header that you want to search, e.g., `User-Agent` or `Referer`. * If `type` is any other value, omit this field. @@ -60,30 +53,32 @@ public static Builder builder() { public static Builder builder(ByteMatchSetByteMatchTupleFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ByteMatchSetByteMatchTupleFieldToMatch defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; this.type = defaults.type; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ByteMatchSetByteMatchTupleFieldToMatch build() { - return new ByteMatchSetByteMatchTupleFieldToMatch(data, type); + } + public ByteMatchSetByteMatchTupleFieldToMatch build() { + final var o = new ByteMatchSetByteMatchTupleFieldToMatch(); + o.data = data; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GeoMatchSetGeoMatchConstraint.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GeoMatchSetGeoMatchConstraint.java index f3563d35855..7b3d3dd4a45 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GeoMatchSetGeoMatchConstraint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GeoMatchSetGeoMatchConstraint.java @@ -13,23 +13,16 @@ public final class GeoMatchSetGeoMatchConstraint { * @return The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value. * */ - private final String type; + private String type; /** * @return The country that you want AWS WAF to search for. * This is the two-letter country code, e.g., `US`, `CA`, `RU`, `CN`, etc. * See [docs](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchConstraint.html) for all supported values. * */ - private final String value; - - @CustomType.Constructor - private GeoMatchSetGeoMatchConstraint( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") String value) { - this.type = type; - this.value = value; - } + private String value; + private GeoMatchSetGeoMatchConstraint() {} /** * @return The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value. * @@ -54,30 +47,32 @@ public static Builder builder() { public static Builder builder(GeoMatchSetGeoMatchConstraint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GeoMatchSetGeoMatchConstraint defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.value = defaults.value; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GeoMatchSetGeoMatchConstraint build() { - return new GeoMatchSetGeoMatchConstraint(type, value); + } + public GeoMatchSetGeoMatchConstraint build() { + final var o = new GeoMatchSetGeoMatchConstraint(); + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetIpsetResult.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetIpsetResult.java index 7ade3180deb..0601712fd2c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetIpsetResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetIpsetResult.java @@ -13,17 +13,10 @@ public final class GetIpsetResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetIpsetResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetIpsetResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetIpsetResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIpsetResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.name = defaults.name; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetIpsetResult build() { - return new GetIpsetResult(id, name); + } + public GetIpsetResult build() { + final var o = new GetIpsetResult(); + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetRateBasedRuleResult.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetRateBasedRuleResult.java index fb0ff91e795..550126c4144 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetRateBasedRuleResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetRateBasedRuleResult.java @@ -13,17 +13,10 @@ public final class GetRateBasedRuleResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetRateBasedRuleResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetRateBasedRuleResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetRateBasedRuleResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRateBasedRuleResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.name = defaults.name; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetRateBasedRuleResult build() { - return new GetRateBasedRuleResult(id, name); + } + public GetRateBasedRuleResult build() { + final var o = new GetRateBasedRuleResult(); + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetRuleResult.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetRuleResult.java index 2c43373cc5b..0c2206a4651 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetRuleResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetRuleResult.java @@ -13,17 +13,10 @@ public final class GetRuleResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetRuleResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetRuleResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetRuleResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRuleResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.name = defaults.name; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetRuleResult build() { - return new GetRuleResult(id, name); + } + public GetRuleResult build() { + final var o = new GetRuleResult(); + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetSubscribedRuleGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetSubscribedRuleGroupResult.java index 140a0d52cba..5168c080309 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetSubscribedRuleGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetSubscribedRuleGroupResult.java @@ -15,20 +15,11 @@ public final class GetSubscribedRuleGroupResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String metricName; - private final @Nullable String name; - - @CustomType.Constructor - private GetSubscribedRuleGroupResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("metricName") @Nullable String metricName, - @CustomType.Parameter("name") @Nullable String name) { - this.id = id; - this.metricName = metricName; - this.name = name; - } + private String id; + private @Nullable String metricName; + private @Nullable String name; + private GetSubscribedRuleGroupResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -50,16 +41,12 @@ public static Builder builder() { public static Builder builder(GetSubscribedRuleGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private @Nullable String metricName; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSubscribedRuleGroupResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -67,19 +54,27 @@ public Builder(GetSubscribedRuleGroupResult defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder metricName(@Nullable String metricName) { this.metricName = metricName; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public GetSubscribedRuleGroupResult build() { - return new GetSubscribedRuleGroupResult(id, metricName, name); + } + public GetSubscribedRuleGroupResult build() { + final var o = new GetSubscribedRuleGroupResult(); + o.id = id; + o.metricName = metricName; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetWebAclResult.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetWebAclResult.java index 75568667bc6..5e90d14ee56 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetWebAclResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/GetWebAclResult.java @@ -13,17 +13,10 @@ public final class GetWebAclResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetWebAclResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetWebAclResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetWebAclResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetWebAclResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.name = defaults.name; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetWebAclResult build() { - return new GetWebAclResult(id, name); + } + public GetWebAclResult build() { + final var o = new GetWebAclResult(); + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/IpSetIpSetDescriptor.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/IpSetIpSetDescriptor.java index 3f9d2bdc011..80295901582 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/IpSetIpSetDescriptor.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/IpSetIpSetDescriptor.java @@ -13,21 +13,14 @@ public final class IpSetIpSetDescriptor { * @return Type of the IP address - `IPV4` or `IPV6`. * */ - private final String type; + private String type; /** * @return An IPv4 or IPv6 address specified via CIDR notationE.g., `192.0.2.44/32` or `1111:0000:0000:0000:0000:0000:0000:0000/64` * */ - private final String value; - - @CustomType.Constructor - private IpSetIpSetDescriptor( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") String value) { - this.type = type; - this.value = value; - } + private String value; + private IpSetIpSetDescriptor() {} /** * @return Type of the IP address - `IPV4` or `IPV6`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(IpSetIpSetDescriptor defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IpSetIpSetDescriptor defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.value = defaults.value; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public IpSetIpSetDescriptor build() { - return new IpSetIpSetDescriptor(type, value); + } + public IpSetIpSetDescriptor build() { + final var o = new IpSetIpSetDescriptor(); + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RateBasedRulePredicate.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RateBasedRulePredicate.java index 5c476761514..06450496922 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RateBasedRulePredicate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RateBasedRulePredicate.java @@ -14,7 +14,7 @@ public final class RateBasedRulePredicate { * @return A unique identifier for a predicate in the rule, such as Byte Match Set ID or IPSet ID. * */ - private final String dataId; + private String dataId; /** * @return Set this to `false` if you want to allow, block, or count requests * based on the settings in the specified `ByteMatchSet`, `IPSet`, `SqlInjectionMatchSet`, `XssMatchSet`, or `SizeConstraintSet`. @@ -22,23 +22,14 @@ public final class RateBasedRulePredicate { * If set to `true`, AWS WAF will allow, block, or count requests based on all IP addresses _except_ `192.0.2.44`. * */ - private final Boolean negated; + private Boolean negated; /** * @return The type of predicate in a rule. Valid values: `ByteMatch`, `GeoMatch`, `IPMatch`, `RegexMatch`, `SizeConstraint`, `SqlInjectionMatch`, or `XssMatch`. * */ - private final String type; - - @CustomType.Constructor - private RateBasedRulePredicate( - @CustomType.Parameter("dataId") String dataId, - @CustomType.Parameter("negated") Boolean negated, - @CustomType.Parameter("type") String type) { - this.dataId = dataId; - this.negated = negated; - this.type = type; - } + private String type; + private RateBasedRulePredicate() {} /** * @return A unique identifier for a predicate in the rule, such as Byte Match Set ID or IPSet ID. * @@ -71,16 +62,12 @@ public static Builder builder() { public static Builder builder(RateBasedRulePredicate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dataId; private Boolean negated; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RateBasedRulePredicate defaults) { Objects.requireNonNull(defaults); this.dataId = defaults.dataId; @@ -88,19 +75,27 @@ public Builder(RateBasedRulePredicate defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder dataId(String dataId) { this.dataId = Objects.requireNonNull(dataId); return this; } + @CustomType.Setter public Builder negated(Boolean negated) { this.negated = Objects.requireNonNull(negated); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RateBasedRulePredicate build() { - return new RateBasedRulePredicate(dataId, negated, type); + } + public RateBasedRulePredicate build() { + final var o = new RateBasedRulePredicate(); + o.dataId = dataId; + o.negated = negated; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RegexMatchSetRegexMatchTuple.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RegexMatchSetRegexMatchTuple.java index 80cae5688b0..1a7bc2a6295 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RegexMatchSetRegexMatchTuple.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RegexMatchSetRegexMatchTuple.java @@ -14,12 +14,12 @@ public final class RegexMatchSetRegexMatchTuple { * @return The part of a web request that you want to search, such as a specified header or a query string. * */ - private final RegexMatchSetRegexMatchTupleFieldToMatch fieldToMatch; + private RegexMatchSetRegexMatchTupleFieldToMatch fieldToMatch; /** * @return The ID of a `WAF Regex Pattern Set`. * */ - private final String regexPatternSetId; + private String regexPatternSetId; /** * @return Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. * e.g. `CMD_LINE`, `HTML_ENTITY_DECODE` or `NONE`. @@ -27,18 +27,9 @@ public final class RegexMatchSetRegexMatchTuple { * for all supported values. * */ - private final String textTransformation; - - @CustomType.Constructor - private RegexMatchSetRegexMatchTuple( - @CustomType.Parameter("fieldToMatch") RegexMatchSetRegexMatchTupleFieldToMatch fieldToMatch, - @CustomType.Parameter("regexPatternSetId") String regexPatternSetId, - @CustomType.Parameter("textTransformation") String textTransformation) { - this.fieldToMatch = fieldToMatch; - this.regexPatternSetId = regexPatternSetId; - this.textTransformation = textTransformation; - } + private String textTransformation; + private RegexMatchSetRegexMatchTuple() {} /** * @return The part of a web request that you want to search, such as a specified header or a query string. * @@ -71,16 +62,12 @@ public static Builder builder() { public static Builder builder(RegexMatchSetRegexMatchTuple defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RegexMatchSetRegexMatchTupleFieldToMatch fieldToMatch; private String regexPatternSetId; private String textTransformation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RegexMatchSetRegexMatchTuple defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -88,19 +75,27 @@ public Builder(RegexMatchSetRegexMatchTuple defaults) { this.textTransformation = defaults.textTransformation; } + @CustomType.Setter public Builder fieldToMatch(RegexMatchSetRegexMatchTupleFieldToMatch fieldToMatch) { this.fieldToMatch = Objects.requireNonNull(fieldToMatch); return this; } + @CustomType.Setter public Builder regexPatternSetId(String regexPatternSetId) { this.regexPatternSetId = Objects.requireNonNull(regexPatternSetId); return this; } + @CustomType.Setter public Builder textTransformation(String textTransformation) { this.textTransformation = Objects.requireNonNull(textTransformation); return this; - } public RegexMatchSetRegexMatchTuple build() { - return new RegexMatchSetRegexMatchTuple(fieldToMatch, regexPatternSetId, textTransformation); + } + public RegexMatchSetRegexMatchTuple build() { + final var o = new RegexMatchSetRegexMatchTuple(); + o.fieldToMatch = fieldToMatch; + o.regexPatternSetId = regexPatternSetId; + o.textTransformation = textTransformation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RegexMatchSetRegexMatchTupleFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RegexMatchSetRegexMatchTupleFieldToMatch.java index f4ae626e9f3..e160d073839 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RegexMatchSetRegexMatchTupleFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RegexMatchSetRegexMatchTupleFieldToMatch.java @@ -16,7 +16,7 @@ public final class RegexMatchSetRegexMatchTupleFieldToMatch { * If `type` is any other value, omit this field. * */ - private final @Nullable String data; + private @Nullable String data; /** * @return The part of the web request that you want AWS WAF to search for a specified string. * e.g., `HEADER`, `METHOD` or `BODY`. @@ -24,16 +24,9 @@ public final class RegexMatchSetRegexMatchTupleFieldToMatch { * for all supported values. * */ - private final String type; - - @CustomType.Constructor - private RegexMatchSetRegexMatchTupleFieldToMatch( - @CustomType.Parameter("data") @Nullable String data, - @CustomType.Parameter("type") String type) { - this.data = data; - this.type = type; - } + private String type; + private RegexMatchSetRegexMatchTupleFieldToMatch() {} /** * @return When `type` is `HEADER`, enter the name of the header that you want to search, e.g., `User-Agent` or `Referer`. * If `type` is any other value, omit this field. @@ -60,30 +53,32 @@ public static Builder builder() { public static Builder builder(RegexMatchSetRegexMatchTupleFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RegexMatchSetRegexMatchTupleFieldToMatch defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; this.type = defaults.type; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RegexMatchSetRegexMatchTupleFieldToMatch build() { - return new RegexMatchSetRegexMatchTupleFieldToMatch(data, type); + } + public RegexMatchSetRegexMatchTupleFieldToMatch build() { + final var o = new RegexMatchSetRegexMatchTupleFieldToMatch(); + o.data = data; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RuleGroupActivatedRule.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RuleGroupActivatedRule.java index 7ea96ea9ff0..f2b726d411a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RuleGroupActivatedRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RuleGroupActivatedRule.java @@ -17,35 +17,24 @@ public final class RuleGroupActivatedRule { * @return Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. * */ - private final RuleGroupActivatedRuleAction action; + private RuleGroupActivatedRuleAction action; /** * @return Specifies the order in which the rules are evaluated. Rules with a lower value are evaluated before rules with a higher value. * */ - private final Integer priority; + private Integer priority; /** * @return The ID of a `waf_rule` * */ - private final String ruleId; + private String ruleId; /** * @return The rule type, either `REGULAR`, `RATE_BASED`, or `GROUP`. Defaults to `REGULAR`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private RuleGroupActivatedRule( - @CustomType.Parameter("action") RuleGroupActivatedRuleAction action, - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("ruleId") String ruleId, - @CustomType.Parameter("type") @Nullable String type) { - this.action = action; - this.priority = priority; - this.ruleId = ruleId; - this.type = type; - } + private @Nullable String type; + private RuleGroupActivatedRule() {} /** * @return Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(RuleGroupActivatedRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RuleGroupActivatedRuleAction action; private Integer priority; private String ruleId; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupActivatedRule defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -101,23 +86,33 @@ public Builder(RuleGroupActivatedRule defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder action(RuleGroupActivatedRuleAction action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder ruleId(String ruleId) { this.ruleId = Objects.requireNonNull(ruleId); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public RuleGroupActivatedRule build() { - return new RuleGroupActivatedRule(action, priority, ruleId, type); + } + public RuleGroupActivatedRule build() { + final var o = new RuleGroupActivatedRule(); + o.action = action; + o.priority = priority; + o.ruleId = ruleId; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RuleGroupActivatedRuleAction.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RuleGroupActivatedRuleAction.java index 90af1c17d8b..be255d8c68f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RuleGroupActivatedRuleAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RuleGroupActivatedRuleAction.java @@ -13,13 +13,9 @@ public final class RuleGroupActivatedRuleAction { * @return The rule type, either `REGULAR`, `RATE_BASED`, or `GROUP`. Defaults to `REGULAR`. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupActivatedRuleAction(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private RuleGroupActivatedRuleAction() {} /** * @return The rule type, either `REGULAR`, `RATE_BASED`, or `GROUP`. Defaults to `REGULAR`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupActivatedRuleAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupActivatedRuleAction defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupActivatedRuleAction build() { - return new RuleGroupActivatedRuleAction(type); + } + public RuleGroupActivatedRuleAction build() { + final var o = new RuleGroupActivatedRuleAction(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RulePredicate.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RulePredicate.java index 1361b8bfc30..13954d46d6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RulePredicate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/RulePredicate.java @@ -14,7 +14,7 @@ public final class RulePredicate { * @return A unique identifier for a predicate in the rule, such as Byte Match Set ID or IPSet ID. * */ - private final String dataId; + private String dataId; /** * @return Set this to `false` if you want to allow, block, or count requests * based on the settings in the specified `waf_byte_match_set`, `waf_ipset`, `aws.waf.SizeConstraintSet`, `aws.waf.SqlInjectionMatchSet` or `aws.waf.XssMatchSet`. @@ -22,23 +22,14 @@ public final class RulePredicate { * If set to `true`, AWS WAF will allow, block, or count requests based on all IP addresses except `192.0.2.44`. * */ - private final Boolean negated; + private Boolean negated; /** * @return The type of predicate in a rule. Valid values: `ByteMatch`, `GeoMatch`, `IPMatch`, `RegexMatch`, `SizeConstraint`, `SqlInjectionMatch`, or `XssMatch`. * */ - private final String type; - - @CustomType.Constructor - private RulePredicate( - @CustomType.Parameter("dataId") String dataId, - @CustomType.Parameter("negated") Boolean negated, - @CustomType.Parameter("type") String type) { - this.dataId = dataId; - this.negated = negated; - this.type = type; - } + private String type; + private RulePredicate() {} /** * @return A unique identifier for a predicate in the rule, such as Byte Match Set ID or IPSet ID. * @@ -71,16 +62,12 @@ public static Builder builder() { public static Builder builder(RulePredicate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dataId; private Boolean negated; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RulePredicate defaults) { Objects.requireNonNull(defaults); this.dataId = defaults.dataId; @@ -88,19 +75,27 @@ public Builder(RulePredicate defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder dataId(String dataId) { this.dataId = Objects.requireNonNull(dataId); return this; } + @CustomType.Setter public Builder negated(Boolean negated) { this.negated = Objects.requireNonNull(negated); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RulePredicate build() { - return new RulePredicate(dataId, negated, type); + } + public RulePredicate build() { + final var o = new RulePredicate(); + o.dataId = dataId; + o.negated = negated; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SizeConstraintSetSizeConstraint.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SizeConstraintSetSizeConstraint.java index d92e5801d0e..5ec4efa11a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SizeConstraintSetSizeConstraint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SizeConstraintSetSizeConstraint.java @@ -17,18 +17,18 @@ public final class SizeConstraintSetSizeConstraint { * See [docs](https://docs.aws.amazon.com/waf/latest/APIReference/API_wafRegional_SizeConstraint.html) for all supported values. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Specifies where in a web request to look for the size constraint. * */ - private final SizeConstraintSetSizeConstraintFieldToMatch fieldToMatch; + private SizeConstraintSetSizeConstraintFieldToMatch fieldToMatch; /** * @return The size in bytes that you want to compare against the size of the specified `field_to_match`. * Valid values are between 0 - 21474836480 bytes (0 - 20 GB). * */ - private final Integer size; + private Integer size; /** * @return Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. * If you specify a transformation, AWS WAF performs the transformation on `field_to_match` before inspecting a request for a match. @@ -38,20 +38,9 @@ public final class SizeConstraintSetSizeConstraint { * **Note:** if you choose `BODY` as `type`, you must choose `NONE` because CloudFront forwards only the first 8192 bytes for inspection. * */ - private final String textTransformation; - - @CustomType.Constructor - private SizeConstraintSetSizeConstraint( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") SizeConstraintSetSizeConstraintFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformation") String textTransformation) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformation = textTransformation; - } + private String textTransformation; + private SizeConstraintSetSizeConstraint() {} /** * @return The type of comparison you want to perform. * e.g., `EQ`, `NE`, `LT`, `GT`. @@ -96,17 +85,13 @@ public static Builder builder() { public static Builder builder(SizeConstraintSetSizeConstraint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private SizeConstraintSetSizeConstraintFieldToMatch fieldToMatch; private Integer size; private String textTransformation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SizeConstraintSetSizeConstraint defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -115,23 +100,33 @@ public Builder(SizeConstraintSetSizeConstraint defaults) { this.textTransformation = defaults.textTransformation; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(SizeConstraintSetSizeConstraintFieldToMatch fieldToMatch) { this.fieldToMatch = Objects.requireNonNull(fieldToMatch); return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformation(String textTransformation) { this.textTransformation = Objects.requireNonNull(textTransformation); return this; - } public SizeConstraintSetSizeConstraint build() { - return new SizeConstraintSetSizeConstraint(comparisonOperator, fieldToMatch, size, textTransformation); + } + public SizeConstraintSetSizeConstraint build() { + final var o = new SizeConstraintSetSizeConstraint(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformation = textTransformation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SizeConstraintSetSizeConstraintFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SizeConstraintSetSizeConstraintFieldToMatch.java index 99a8fb025fc..02c7fda2d90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SizeConstraintSetSizeConstraintFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SizeConstraintSetSizeConstraintFieldToMatch.java @@ -16,7 +16,7 @@ public final class SizeConstraintSetSizeConstraintFieldToMatch { * If `type` is any other value, omit this field. * */ - private final @Nullable String data; + private @Nullable String data; /** * @return The part of the web request that you want AWS WAF to search for a specified string. * e.g., `HEADER`, `METHOD` or `BODY`. @@ -24,16 +24,9 @@ public final class SizeConstraintSetSizeConstraintFieldToMatch { * for all supported values. * */ - private final String type; - - @CustomType.Constructor - private SizeConstraintSetSizeConstraintFieldToMatch( - @CustomType.Parameter("data") @Nullable String data, - @CustomType.Parameter("type") String type) { - this.data = data; - this.type = type; - } + private String type; + private SizeConstraintSetSizeConstraintFieldToMatch() {} /** * @return When `type` is `HEADER`, enter the name of the header that you want to search, e.g., `User-Agent` or `Referer`. * If `type` is any other value, omit this field. @@ -60,30 +53,32 @@ public static Builder builder() { public static Builder builder(SizeConstraintSetSizeConstraintFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SizeConstraintSetSizeConstraintFieldToMatch defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; this.type = defaults.type; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public SizeConstraintSetSizeConstraintFieldToMatch build() { - return new SizeConstraintSetSizeConstraintFieldToMatch(data, type); + } + public SizeConstraintSetSizeConstraintFieldToMatch build() { + final var o = new SizeConstraintSetSizeConstraintFieldToMatch(); + o.data = data; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SqlInjectionMatchSetSqlInjectionMatchTuple.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SqlInjectionMatchSetSqlInjectionMatchTuple.java index 2f3d8b5c4b1..033fbe76440 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SqlInjectionMatchSetSqlInjectionMatchTuple.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SqlInjectionMatchSetSqlInjectionMatchTuple.java @@ -14,7 +14,7 @@ public final class SqlInjectionMatchSetSqlInjectionMatchTuple { * @return Specifies where in a web request to look for snippets of malicious SQL code. * */ - private final SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch fieldToMatch; + private SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch fieldToMatch; /** * @return Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. * If you specify a transformation, AWS WAF performs the transformation on `field_to_match` before inspecting a request for a match. @@ -23,16 +23,9 @@ public final class SqlInjectionMatchSetSqlInjectionMatchTuple { * for all supported values. * */ - private final String textTransformation; - - @CustomType.Constructor - private SqlInjectionMatchSetSqlInjectionMatchTuple( - @CustomType.Parameter("fieldToMatch") SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformation") String textTransformation) { - this.fieldToMatch = fieldToMatch; - this.textTransformation = textTransformation; - } + private String textTransformation; + private SqlInjectionMatchSetSqlInjectionMatchTuple() {} /** * @return Specifies where in a web request to look for snippets of malicious SQL code. * @@ -59,30 +52,32 @@ public static Builder builder() { public static Builder builder(SqlInjectionMatchSetSqlInjectionMatchTuple defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch fieldToMatch; private String textTransformation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SqlInjectionMatchSetSqlInjectionMatchTuple defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformation = defaults.textTransformation; } + @CustomType.Setter public Builder fieldToMatch(SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch fieldToMatch) { this.fieldToMatch = Objects.requireNonNull(fieldToMatch); return this; } + @CustomType.Setter public Builder textTransformation(String textTransformation) { this.textTransformation = Objects.requireNonNull(textTransformation); return this; - } public SqlInjectionMatchSetSqlInjectionMatchTuple build() { - return new SqlInjectionMatchSetSqlInjectionMatchTuple(fieldToMatch, textTransformation); + } + public SqlInjectionMatchSetSqlInjectionMatchTuple build() { + final var o = new SqlInjectionMatchSetSqlInjectionMatchTuple(); + o.fieldToMatch = fieldToMatch; + o.textTransformation = textTransformation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch.java index 381697a079c..90c4f338ad4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch.java @@ -16,7 +16,7 @@ public final class SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch { * If `type` is any other value, omit this field. * */ - private final @Nullable String data; + private @Nullable String data; /** * @return The part of the web request that you want AWS WAF to search for a specified string. * e.g., `HEADER`, `METHOD` or `BODY`. @@ -24,16 +24,9 @@ public final class SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch { * for all supported values. * */ - private final String type; - - @CustomType.Constructor - private SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch( - @CustomType.Parameter("data") @Nullable String data, - @CustomType.Parameter("type") String type) { - this.data = data; - this.type = type; - } + private String type; + private SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch() {} /** * @return When `type` is `HEADER`, enter the name of the header that you want to search, e.g., `User-Agent` or `Referer`. * If `type` is any other value, omit this field. @@ -60,30 +53,32 @@ public static Builder builder() { public static Builder builder(SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; this.type = defaults.type; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch build() { - return new SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch(data, type); + } + public SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch build() { + final var o = new SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch(); + o.data = data; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclDefaultAction.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclDefaultAction.java index e59218b5a11..369c1fe575b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclDefaultAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclDefaultAction.java @@ -13,13 +13,9 @@ public final class WebAclDefaultAction { * @return The rule type, either `REGULAR`, as defined by [Rule](http://docs.aws.amazon.com/waf/latest/APIReference/API_Rule.html), `RATE_BASED`, as defined by [RateBasedRule](http://docs.aws.amazon.com/waf/latest/APIReference/API_RateBasedRule.html), or `GROUP`, as defined by [RuleGroup](https://docs.aws.amazon.com/waf/latest/APIReference/API_RuleGroup.html). The default is REGULAR. If you add a RATE_BASED rule, you need to set `type` as `RATE_BASED`. If you add a GROUP rule, you need to set `type` as `GROUP`. * */ - private final String type; - - @CustomType.Constructor - private WebAclDefaultAction(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private WebAclDefaultAction() {} /** * @return The rule type, either `REGULAR`, as defined by [Rule](http://docs.aws.amazon.com/waf/latest/APIReference/API_Rule.html), `RATE_BASED`, as defined by [RateBasedRule](http://docs.aws.amazon.com/waf/latest/APIReference/API_RateBasedRule.html), or `GROUP`, as defined by [RuleGroup](https://docs.aws.amazon.com/waf/latest/APIReference/API_RuleGroup.html). The default is REGULAR. If you add a RATE_BASED rule, you need to set `type` as `RATE_BASED`. If you add a GROUP rule, you need to set `type` as `GROUP`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclDefaultAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclDefaultAction defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclDefaultAction build() { - return new WebAclDefaultAction(type); + } + public WebAclDefaultAction build() { + final var o = new WebAclDefaultAction(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclLoggingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclLoggingConfiguration.java index 22f2e3dcab0..22d105b700b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclLoggingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclLoggingConfiguration.java @@ -16,21 +16,14 @@ public final class WebAclLoggingConfiguration { * @return Amazon Resource Name (ARN) of Kinesis Firehose Delivery Stream * */ - private final String logDestination; + private String logDestination; /** * @return Configuration block containing parts of the request that you want redacted from the logs. Detailed below. * */ - private final @Nullable WebAclLoggingConfigurationRedactedFields redactedFields; - - @CustomType.Constructor - private WebAclLoggingConfiguration( - @CustomType.Parameter("logDestination") String logDestination, - @CustomType.Parameter("redactedFields") @Nullable WebAclLoggingConfigurationRedactedFields redactedFields) { - this.logDestination = logDestination; - this.redactedFields = redactedFields; - } + private @Nullable WebAclLoggingConfigurationRedactedFields redactedFields; + private WebAclLoggingConfiguration() {} /** * @return Amazon Resource Name (ARN) of Kinesis Firehose Delivery Stream * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclLoggingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String logDestination; private @Nullable WebAclLoggingConfigurationRedactedFields redactedFields; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclLoggingConfiguration defaults) { Objects.requireNonNull(defaults); this.logDestination = defaults.logDestination; this.redactedFields = defaults.redactedFields; } + @CustomType.Setter public Builder logDestination(String logDestination) { this.logDestination = Objects.requireNonNull(logDestination); return this; } + @CustomType.Setter public Builder redactedFields(@Nullable WebAclLoggingConfigurationRedactedFields redactedFields) { this.redactedFields = redactedFields; return this; - } public WebAclLoggingConfiguration build() { - return new WebAclLoggingConfiguration(logDestination, redactedFields); + } + public WebAclLoggingConfiguration build() { + final var o = new WebAclLoggingConfiguration(); + o.logDestination = logDestination; + o.redactedFields = redactedFields; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclLoggingConfigurationRedactedFields.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclLoggingConfigurationRedactedFields.java index af3d2e9fcd0..5818a617bb9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclLoggingConfigurationRedactedFields.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclLoggingConfigurationRedactedFields.java @@ -14,13 +14,9 @@ public final class WebAclLoggingConfigurationRedactedFields { * @return Set of configuration blocks for fields to redact. Detailed below. * */ - private final List fieldToMatches; - - @CustomType.Constructor - private WebAclLoggingConfigurationRedactedFields(@CustomType.Parameter("fieldToMatches") List fieldToMatches) { - this.fieldToMatches = fieldToMatches; - } + private List fieldToMatches; + private WebAclLoggingConfigurationRedactedFields() {} /** * @return Set of configuration blocks for fields to redact. Detailed below. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclLoggingConfigurationRedactedFields defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List fieldToMatches; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclLoggingConfigurationRedactedFields defaults) { Objects.requireNonNull(defaults); this.fieldToMatches = defaults.fieldToMatches; } + @CustomType.Setter public Builder fieldToMatches(List fieldToMatches) { this.fieldToMatches = Objects.requireNonNull(fieldToMatches); return this; } public Builder fieldToMatches(WebAclLoggingConfigurationRedactedFieldsFieldToMatch... fieldToMatches) { return fieldToMatches(List.of(fieldToMatches)); - } public WebAclLoggingConfigurationRedactedFields build() { - return new WebAclLoggingConfigurationRedactedFields(fieldToMatches); + } + public WebAclLoggingConfigurationRedactedFields build() { + final var o = new WebAclLoggingConfigurationRedactedFields(); + o.fieldToMatches = fieldToMatches; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclLoggingConfigurationRedactedFieldsFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclLoggingConfigurationRedactedFieldsFieldToMatch.java index 57589ae11bc..5a0dcedb2c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclLoggingConfigurationRedactedFieldsFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclLoggingConfigurationRedactedFieldsFieldToMatch.java @@ -15,21 +15,14 @@ public final class WebAclLoggingConfigurationRedactedFieldsFieldToMatch { * @return When the value of `type` is `HEADER`, enter the name of the header that you want the WAF to search, for example, `User-Agent` or `Referer`. If the value of `type` is any other value, omit `data`. * */ - private final @Nullable String data; + private @Nullable String data; /** * @return The rule type, either `REGULAR`, as defined by [Rule](http://docs.aws.amazon.com/waf/latest/APIReference/API_Rule.html), `RATE_BASED`, as defined by [RateBasedRule](http://docs.aws.amazon.com/waf/latest/APIReference/API_RateBasedRule.html), or `GROUP`, as defined by [RuleGroup](https://docs.aws.amazon.com/waf/latest/APIReference/API_RuleGroup.html). The default is REGULAR. If you add a RATE_BASED rule, you need to set `type` as `RATE_BASED`. If you add a GROUP rule, you need to set `type` as `GROUP`. * */ - private final String type; - - @CustomType.Constructor - private WebAclLoggingConfigurationRedactedFieldsFieldToMatch( - @CustomType.Parameter("data") @Nullable String data, - @CustomType.Parameter("type") String type) { - this.data = data; - this.type = type; - } + private String type; + private WebAclLoggingConfigurationRedactedFieldsFieldToMatch() {} /** * @return When the value of `type` is `HEADER`, enter the name of the header that you want the WAF to search, for example, `User-Agent` or `Referer`. If the value of `type` is any other value, omit `data`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(WebAclLoggingConfigurationRedactedFieldsFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclLoggingConfigurationRedactedFieldsFieldToMatch defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; this.type = defaults.type; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclLoggingConfigurationRedactedFieldsFieldToMatch build() { - return new WebAclLoggingConfigurationRedactedFieldsFieldToMatch(data, type); + } + public WebAclLoggingConfigurationRedactedFieldsFieldToMatch build() { + final var o = new WebAclLoggingConfigurationRedactedFieldsFieldToMatch(); + o.data = data; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclRule.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclRule.java index 8c076f38a9e..ed3e4307b25 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclRule.java @@ -18,43 +18,30 @@ public final class WebAclRule { * @return The action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if `type` is `GROUP`. * */ - private final @Nullable WebAclRuleAction action; + private @Nullable WebAclRuleAction action; /** * @return Override the action that a group requests CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Only used if `type` is `GROUP`. * */ - private final @Nullable WebAclRuleOverrideAction overrideAction; + private @Nullable WebAclRuleOverrideAction overrideAction; /** * @return Specifies the order in which the rules in a WebACL are evaluated. * Rules with a lower value are evaluated before rules with a higher value. * */ - private final Integer priority; + private Integer priority; /** * @return ID of the associated WAF (Global) rule (e.g. `aws.waf.Rule`). WAF (Regional) rules cannot be used. * */ - private final String ruleId; + private String ruleId; /** * @return The rule type, either `REGULAR`, as defined by [Rule](http://docs.aws.amazon.com/waf/latest/APIReference/API_Rule.html), `RATE_BASED`, as defined by [RateBasedRule](http://docs.aws.amazon.com/waf/latest/APIReference/API_RateBasedRule.html), or `GROUP`, as defined by [RuleGroup](https://docs.aws.amazon.com/waf/latest/APIReference/API_RuleGroup.html). The default is REGULAR. If you add a RATE_BASED rule, you need to set `type` as `RATE_BASED`. If you add a GROUP rule, you need to set `type` as `GROUP`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private WebAclRule( - @CustomType.Parameter("action") @Nullable WebAclRuleAction action, - @CustomType.Parameter("overrideAction") @Nullable WebAclRuleOverrideAction overrideAction, - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("ruleId") String ruleId, - @CustomType.Parameter("type") @Nullable String type) { - this.action = action; - this.overrideAction = overrideAction; - this.priority = priority; - this.ruleId = ruleId; - this.type = type; - } + private @Nullable String type; + private WebAclRule() {} /** * @return The action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if `type` is `GROUP`. * @@ -99,18 +86,14 @@ public static Builder builder() { public static Builder builder(WebAclRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleAction action; private @Nullable WebAclRuleOverrideAction overrideAction; private Integer priority; private String ruleId; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRule defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -120,27 +103,39 @@ public Builder(WebAclRule defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder action(@Nullable WebAclRuleAction action) { this.action = action; return this; } + @CustomType.Setter public Builder overrideAction(@Nullable WebAclRuleOverrideAction overrideAction) { this.overrideAction = overrideAction; return this; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder ruleId(String ruleId) { this.ruleId = Objects.requireNonNull(ruleId); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public WebAclRule build() { - return new WebAclRule(action, overrideAction, priority, ruleId, type); + } + public WebAclRule build() { + final var o = new WebAclRule(); + o.action = action; + o.overrideAction = overrideAction; + o.priority = priority; + o.ruleId = ruleId; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclRuleAction.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclRuleAction.java index 587b4237885..a22a6f63d8b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclRuleAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclRuleAction.java @@ -13,13 +13,9 @@ public final class WebAclRuleAction { * @return The rule type, either `REGULAR`, as defined by [Rule](http://docs.aws.amazon.com/waf/latest/APIReference/API_Rule.html), `RATE_BASED`, as defined by [RateBasedRule](http://docs.aws.amazon.com/waf/latest/APIReference/API_RateBasedRule.html), or `GROUP`, as defined by [RuleGroup](https://docs.aws.amazon.com/waf/latest/APIReference/API_RuleGroup.html). The default is REGULAR. If you add a RATE_BASED rule, you need to set `type` as `RATE_BASED`. If you add a GROUP rule, you need to set `type` as `GROUP`. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleAction(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private WebAclRuleAction() {} /** * @return The rule type, either `REGULAR`, as defined by [Rule](http://docs.aws.amazon.com/waf/latest/APIReference/API_Rule.html), `RATE_BASED`, as defined by [RateBasedRule](http://docs.aws.amazon.com/waf/latest/APIReference/API_RateBasedRule.html), or `GROUP`, as defined by [RuleGroup](https://docs.aws.amazon.com/waf/latest/APIReference/API_RuleGroup.html). The default is REGULAR. If you add a RATE_BASED rule, you need to set `type` as `RATE_BASED`. If you add a GROUP rule, you need to set `type` as `GROUP`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleAction defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleAction build() { - return new WebAclRuleAction(type); + } + public WebAclRuleAction build() { + final var o = new WebAclRuleAction(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclRuleOverrideAction.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclRuleOverrideAction.java index 9ff4234de64..4b73f37a98a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclRuleOverrideAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/WebAclRuleOverrideAction.java @@ -13,13 +13,9 @@ public final class WebAclRuleOverrideAction { * @return The rule type, either `REGULAR`, as defined by [Rule](http://docs.aws.amazon.com/waf/latest/APIReference/API_Rule.html), `RATE_BASED`, as defined by [RateBasedRule](http://docs.aws.amazon.com/waf/latest/APIReference/API_RateBasedRule.html), or `GROUP`, as defined by [RuleGroup](https://docs.aws.amazon.com/waf/latest/APIReference/API_RuleGroup.html). The default is REGULAR. If you add a RATE_BASED rule, you need to set `type` as `RATE_BASED`. If you add a GROUP rule, you need to set `type` as `GROUP`. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleOverrideAction(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private WebAclRuleOverrideAction() {} /** * @return The rule type, either `REGULAR`, as defined by [Rule](http://docs.aws.amazon.com/waf/latest/APIReference/API_Rule.html), `RATE_BASED`, as defined by [RateBasedRule](http://docs.aws.amazon.com/waf/latest/APIReference/API_RateBasedRule.html), or `GROUP`, as defined by [RuleGroup](https://docs.aws.amazon.com/waf/latest/APIReference/API_RuleGroup.html). The default is REGULAR. If you add a RATE_BASED rule, you need to set `type` as `RATE_BASED`. If you add a GROUP rule, you need to set `type` as `GROUP`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleOverrideAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleOverrideAction defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleOverrideAction build() { - return new WebAclRuleOverrideAction(type); + } + public WebAclRuleOverrideAction build() { + final var o = new WebAclRuleOverrideAction(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/XssMatchSetXssMatchTuple.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/XssMatchSetXssMatchTuple.java index d238db28a7a..e268a66334e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/XssMatchSetXssMatchTuple.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/XssMatchSetXssMatchTuple.java @@ -14,7 +14,7 @@ public final class XssMatchSetXssMatchTuple { * @return Specifies where in a web request to look for cross-site scripting attacks. * */ - private final XssMatchSetXssMatchTupleFieldToMatch fieldToMatch; + private XssMatchSetXssMatchTupleFieldToMatch fieldToMatch; /** * @return Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. * If you specify a transformation, AWS WAF performs the transformation on `target_string` before inspecting a request for a match. @@ -23,16 +23,9 @@ public final class XssMatchSetXssMatchTuple { * for all supported values. * */ - private final String textTransformation; - - @CustomType.Constructor - private XssMatchSetXssMatchTuple( - @CustomType.Parameter("fieldToMatch") XssMatchSetXssMatchTupleFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformation") String textTransformation) { - this.fieldToMatch = fieldToMatch; - this.textTransformation = textTransformation; - } + private String textTransformation; + private XssMatchSetXssMatchTuple() {} /** * @return Specifies where in a web request to look for cross-site scripting attacks. * @@ -59,30 +52,32 @@ public static Builder builder() { public static Builder builder(XssMatchSetXssMatchTuple defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private XssMatchSetXssMatchTupleFieldToMatch fieldToMatch; private String textTransformation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(XssMatchSetXssMatchTuple defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformation = defaults.textTransformation; } + @CustomType.Setter public Builder fieldToMatch(XssMatchSetXssMatchTupleFieldToMatch fieldToMatch) { this.fieldToMatch = Objects.requireNonNull(fieldToMatch); return this; } + @CustomType.Setter public Builder textTransformation(String textTransformation) { this.textTransformation = Objects.requireNonNull(textTransformation); return this; - } public XssMatchSetXssMatchTuple build() { - return new XssMatchSetXssMatchTuple(fieldToMatch, textTransformation); + } + public XssMatchSetXssMatchTuple build() { + final var o = new XssMatchSetXssMatchTuple(); + o.fieldToMatch = fieldToMatch; + o.textTransformation = textTransformation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/XssMatchSetXssMatchTupleFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/XssMatchSetXssMatchTupleFieldToMatch.java index 095ab73802f..39a5e6b8537 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/XssMatchSetXssMatchTupleFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/waf/outputs/XssMatchSetXssMatchTupleFieldToMatch.java @@ -16,7 +16,7 @@ public final class XssMatchSetXssMatchTupleFieldToMatch { * If `type` is any other value, omit this field. * */ - private final @Nullable String data; + private @Nullable String data; /** * @return The part of the web request that you want AWS WAF to search for a specified string. * e.g., `HEADER`, `METHOD` or `BODY`. @@ -24,16 +24,9 @@ public final class XssMatchSetXssMatchTupleFieldToMatch { * for all supported values. * */ - private final String type; - - @CustomType.Constructor - private XssMatchSetXssMatchTupleFieldToMatch( - @CustomType.Parameter("data") @Nullable String data, - @CustomType.Parameter("type") String type) { - this.data = data; - this.type = type; - } + private String type; + private XssMatchSetXssMatchTupleFieldToMatch() {} /** * @return When `type` is `HEADER`, enter the name of the header that you want to search, e.g., `User-Agent` or `Referer`. * If `type` is any other value, omit this field. @@ -60,30 +53,32 @@ public static Builder builder() { public static Builder builder(XssMatchSetXssMatchTupleFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(XssMatchSetXssMatchTupleFieldToMatch defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; this.type = defaults.type; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public XssMatchSetXssMatchTupleFieldToMatch build() { - return new XssMatchSetXssMatchTupleFieldToMatch(data, type); + } + public XssMatchSetXssMatchTupleFieldToMatch build() { + final var o = new XssMatchSetXssMatchTupleFieldToMatch(); + o.data = data; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/ByteMatchSetByteMatchTuple.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/ByteMatchSetByteMatchTuple.java index f7c89f57115..92273dccd14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/ByteMatchSetByteMatchTuple.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/ByteMatchSetByteMatchTuple.java @@ -16,35 +16,24 @@ public final class ByteMatchSetByteMatchTuple { * @return Settings for the ByteMatchTuple. FieldToMatch documented below. * */ - private final ByteMatchSetByteMatchTupleFieldToMatch fieldToMatch; + private ByteMatchSetByteMatchTupleFieldToMatch fieldToMatch; /** * @return Within the portion of a web request that you want to search. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return The value that you want AWS WAF to search for. The maximum length of the value is 50 bytes. * */ - private final @Nullable String targetString; + private @Nullable String targetString; /** * @return The formatting way for web request. * */ - private final String textTransformation; - - @CustomType.Constructor - private ByteMatchSetByteMatchTuple( - @CustomType.Parameter("fieldToMatch") ByteMatchSetByteMatchTupleFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("targetString") @Nullable String targetString, - @CustomType.Parameter("textTransformation") String textTransformation) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.targetString = targetString; - this.textTransformation = textTransformation; - } + private String textTransformation; + private ByteMatchSetByteMatchTuple() {} /** * @return Settings for the ByteMatchTuple. FieldToMatch documented below. * @@ -81,17 +70,13 @@ public static Builder builder() { public static Builder builder(ByteMatchSetByteMatchTuple defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private ByteMatchSetByteMatchTupleFieldToMatch fieldToMatch; private String positionalConstraint; private @Nullable String targetString; private String textTransformation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ByteMatchSetByteMatchTuple defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -100,23 +85,33 @@ public Builder(ByteMatchSetByteMatchTuple defaults) { this.textTransformation = defaults.textTransformation; } + @CustomType.Setter public Builder fieldToMatch(ByteMatchSetByteMatchTupleFieldToMatch fieldToMatch) { this.fieldToMatch = Objects.requireNonNull(fieldToMatch); return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder targetString(@Nullable String targetString) { this.targetString = targetString; return this; } + @CustomType.Setter public Builder textTransformation(String textTransformation) { this.textTransformation = Objects.requireNonNull(textTransformation); return this; - } public ByteMatchSetByteMatchTuple build() { - return new ByteMatchSetByteMatchTuple(fieldToMatch, positionalConstraint, targetString, textTransformation); + } + public ByteMatchSetByteMatchTuple build() { + final var o = new ByteMatchSetByteMatchTuple(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.targetString = targetString; + o.textTransformation = textTransformation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/ByteMatchSetByteMatchTupleFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/ByteMatchSetByteMatchTupleFieldToMatch.java index c33be6cdc60..3e7e88fc7ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/ByteMatchSetByteMatchTupleFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/ByteMatchSetByteMatchTupleFieldToMatch.java @@ -15,21 +15,14 @@ public final class ByteMatchSetByteMatchTupleFieldToMatch { * @return When the value of Type is HEADER, enter the name of the header that you want AWS WAF to search, for example, User-Agent or Referer. If the value of Type is any other value, omit Data. * */ - private final @Nullable String data; + private @Nullable String data; /** * @return The part of the web request that you want AWS WAF to search for a specified string. * */ - private final String type; - - @CustomType.Constructor - private ByteMatchSetByteMatchTupleFieldToMatch( - @CustomType.Parameter("data") @Nullable String data, - @CustomType.Parameter("type") String type) { - this.data = data; - this.type = type; - } + private String type; + private ByteMatchSetByteMatchTupleFieldToMatch() {} /** * @return When the value of Type is HEADER, enter the name of the header that you want AWS WAF to search, for example, User-Agent or Referer. If the value of Type is any other value, omit Data. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(ByteMatchSetByteMatchTupleFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(ByteMatchSetByteMatchTupleFieldToMatch defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; this.type = defaults.type; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public ByteMatchSetByteMatchTupleFieldToMatch build() { - return new ByteMatchSetByteMatchTupleFieldToMatch(data, type); + } + public ByteMatchSetByteMatchTupleFieldToMatch build() { + final var o = new ByteMatchSetByteMatchTupleFieldToMatch(); + o.data = data; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GeoMatchSetGeoMatchConstraint.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GeoMatchSetGeoMatchConstraint.java index f2fb39a7269..504a63b3a4f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GeoMatchSetGeoMatchConstraint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GeoMatchSetGeoMatchConstraint.java @@ -13,23 +13,16 @@ public final class GeoMatchSetGeoMatchConstraint { * @return The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value. * */ - private final String type; + private String type; /** * @return The country that you want AWS WAF to search for. * This is the two-letter country code, e.g., `US`, `CA`, `RU`, `CN`, etc. * See [docs](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchConstraint.html) for all supported values. * */ - private final String value; - - @CustomType.Constructor - private GeoMatchSetGeoMatchConstraint( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") String value) { - this.type = type; - this.value = value; - } + private String value; + private GeoMatchSetGeoMatchConstraint() {} /** * @return The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value. * @@ -54,30 +47,32 @@ public static Builder builder() { public static Builder builder(GeoMatchSetGeoMatchConstraint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GeoMatchSetGeoMatchConstraint defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.value = defaults.value; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public GeoMatchSetGeoMatchConstraint build() { - return new GeoMatchSetGeoMatchConstraint(type, value); + } + public GeoMatchSetGeoMatchConstraint build() { + final var o = new GeoMatchSetGeoMatchConstraint(); + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetIpsetResult.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetIpsetResult.java index 1331a6fe996..dfd37014563 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetIpsetResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetIpsetResult.java @@ -13,17 +13,10 @@ public final class GetIpsetResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetIpsetResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetIpsetResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetIpsetResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIpsetResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.name = defaults.name; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetIpsetResult build() { - return new GetIpsetResult(id, name); + } + public GetIpsetResult build() { + final var o = new GetIpsetResult(); + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetRateBasedModResult.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetRateBasedModResult.java index 548f1ae5160..30a100a82cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetRateBasedModResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetRateBasedModResult.java @@ -13,17 +13,10 @@ public final class GetRateBasedModResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetRateBasedModResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetRateBasedModResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetRateBasedModResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRateBasedModResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.name = defaults.name; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetRateBasedModResult build() { - return new GetRateBasedModResult(id, name); + } + public GetRateBasedModResult build() { + final var o = new GetRateBasedModResult(); + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetRuleResult.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetRuleResult.java index 4c081ddc867..6c7b8eaf216 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetRuleResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetRuleResult.java @@ -13,17 +13,10 @@ public final class GetRuleResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetRuleResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetRuleResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetRuleResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRuleResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.name = defaults.name; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetRuleResult build() { - return new GetRuleResult(id, name); + } + public GetRuleResult build() { + final var o = new GetRuleResult(); + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetSubscribedRuleGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetSubscribedRuleGroupResult.java index 45a5d08e920..7814b4eae38 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetSubscribedRuleGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetSubscribedRuleGroupResult.java @@ -15,20 +15,11 @@ public final class GetSubscribedRuleGroupResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final @Nullable String metricName; - private final @Nullable String name; - - @CustomType.Constructor - private GetSubscribedRuleGroupResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("metricName") @Nullable String metricName, - @CustomType.Parameter("name") @Nullable String name) { - this.id = id; - this.metricName = metricName; - this.name = name; - } + private String id; + private @Nullable String metricName; + private @Nullable String name; + private GetSubscribedRuleGroupResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -50,16 +41,12 @@ public static Builder builder() { public static Builder builder(GetSubscribedRuleGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private @Nullable String metricName; private @Nullable String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetSubscribedRuleGroupResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; @@ -67,19 +54,27 @@ public Builder(GetSubscribedRuleGroupResult defaults) { this.name = defaults.name; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder metricName(@Nullable String metricName) { this.metricName = metricName; return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; - } public GetSubscribedRuleGroupResult build() { - return new GetSubscribedRuleGroupResult(id, metricName, name); + } + public GetSubscribedRuleGroupResult build() { + final var o = new GetSubscribedRuleGroupResult(); + o.id = id; + o.metricName = metricName; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetWebAclResult.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetWebAclResult.java index 60b29adf273..4d802c96515 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetWebAclResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/GetWebAclResult.java @@ -13,17 +13,10 @@ public final class GetWebAclResult { * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - - @CustomType.Constructor - private GetWebAclResult( - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name) { - this.id = id; - this.name = name; - } + private String id; + private String name; + private GetWebAclResult() {} /** * @return The provider-assigned unique ID for this managed resource. * @@ -42,30 +35,32 @@ public static Builder builder() { public static Builder builder(GetWebAclResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String id; private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetWebAclResult defaults) { Objects.requireNonNull(defaults); this.id = defaults.id; this.name = defaults.name; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetWebAclResult build() { - return new GetWebAclResult(id, name); + } + public GetWebAclResult build() { + final var o = new GetWebAclResult(); + o.id = id; + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/IpSetIpSetDescriptor.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/IpSetIpSetDescriptor.java index 1cbabcbf590..41f2781118c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/IpSetIpSetDescriptor.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/IpSetIpSetDescriptor.java @@ -13,21 +13,14 @@ public final class IpSetIpSetDescriptor { * @return The string like IPV4 or IPV6. * */ - private final String type; + private String type; /** * @return The CIDR notation. * */ - private final String value; - - @CustomType.Constructor - private IpSetIpSetDescriptor( - @CustomType.Parameter("type") String type, - @CustomType.Parameter("value") String value) { - this.type = type; - this.value = value; - } + private String value; + private IpSetIpSetDescriptor() {} /** * @return The string like IPV4 or IPV6. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(IpSetIpSetDescriptor defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IpSetIpSetDescriptor defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; this.value = defaults.value; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public IpSetIpSetDescriptor build() { - return new IpSetIpSetDescriptor(type, value); + } + public IpSetIpSetDescriptor build() { + final var o = new IpSetIpSetDescriptor(); + o.type = type; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RateBasedRulePredicate.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RateBasedRulePredicate.java index 997e687d153..d0a154ddd30 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RateBasedRulePredicate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RateBasedRulePredicate.java @@ -14,7 +14,7 @@ public final class RateBasedRulePredicate { * @return A unique identifier for a predicate in the rule, such as Byte Match Set ID or IPSet ID. * */ - private final String dataId; + private String dataId; /** * @return Set this to `false` if you want to allow, block, or count requests * based on the settings in the specified `ByteMatchSet`, `IPSet`, `SqlInjectionMatchSet`, `XssMatchSet`, or `SizeConstraintSet`. @@ -22,23 +22,14 @@ public final class RateBasedRulePredicate { * If set to `true`, AWS WAF will allow, block, or count requests based on all IP addresses _except_ `192.0.2.44`. * */ - private final Boolean negated; + private Boolean negated; /** * @return The type of predicate in a rule. Valid values: `ByteMatch`, `GeoMatch`, `IPMatch`, `RegexMatch`, `SizeConstraint`, `SqlInjectionMatch`, or `XssMatch`. * */ - private final String type; - - @CustomType.Constructor - private RateBasedRulePredicate( - @CustomType.Parameter("dataId") String dataId, - @CustomType.Parameter("negated") Boolean negated, - @CustomType.Parameter("type") String type) { - this.dataId = dataId; - this.negated = negated; - this.type = type; - } + private String type; + private RateBasedRulePredicate() {} /** * @return A unique identifier for a predicate in the rule, such as Byte Match Set ID or IPSet ID. * @@ -71,16 +62,12 @@ public static Builder builder() { public static Builder builder(RateBasedRulePredicate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dataId; private Boolean negated; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RateBasedRulePredicate defaults) { Objects.requireNonNull(defaults); this.dataId = defaults.dataId; @@ -88,19 +75,27 @@ public Builder(RateBasedRulePredicate defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder dataId(String dataId) { this.dataId = Objects.requireNonNull(dataId); return this; } + @CustomType.Setter public Builder negated(Boolean negated) { this.negated = Objects.requireNonNull(negated); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RateBasedRulePredicate build() { - return new RateBasedRulePredicate(dataId, negated, type); + } + public RateBasedRulePredicate build() { + final var o = new RateBasedRulePredicate(); + o.dataId = dataId; + o.negated = negated; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RegexMatchSetRegexMatchTuple.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RegexMatchSetRegexMatchTuple.java index 0166fac3adf..ed3d7c70f97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RegexMatchSetRegexMatchTuple.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RegexMatchSetRegexMatchTuple.java @@ -14,12 +14,12 @@ public final class RegexMatchSetRegexMatchTuple { * @return The part of a web request that you want to search, such as a specified header or a query string. * */ - private final RegexMatchSetRegexMatchTupleFieldToMatch fieldToMatch; + private RegexMatchSetRegexMatchTupleFieldToMatch fieldToMatch; /** * @return The ID of a `WAF Regex Pattern Set`. * */ - private final String regexPatternSetId; + private String regexPatternSetId; /** * @return Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. * e.g. `CMD_LINE`, `HTML_ENTITY_DECODE` or `NONE`. @@ -27,18 +27,9 @@ public final class RegexMatchSetRegexMatchTuple { * for all supported values. * */ - private final String textTransformation; - - @CustomType.Constructor - private RegexMatchSetRegexMatchTuple( - @CustomType.Parameter("fieldToMatch") RegexMatchSetRegexMatchTupleFieldToMatch fieldToMatch, - @CustomType.Parameter("regexPatternSetId") String regexPatternSetId, - @CustomType.Parameter("textTransformation") String textTransformation) { - this.fieldToMatch = fieldToMatch; - this.regexPatternSetId = regexPatternSetId; - this.textTransformation = textTransformation; - } + private String textTransformation; + private RegexMatchSetRegexMatchTuple() {} /** * @return The part of a web request that you want to search, such as a specified header or a query string. * @@ -71,16 +62,12 @@ public static Builder builder() { public static Builder builder(RegexMatchSetRegexMatchTuple defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RegexMatchSetRegexMatchTupleFieldToMatch fieldToMatch; private String regexPatternSetId; private String textTransformation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RegexMatchSetRegexMatchTuple defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -88,19 +75,27 @@ public Builder(RegexMatchSetRegexMatchTuple defaults) { this.textTransformation = defaults.textTransformation; } + @CustomType.Setter public Builder fieldToMatch(RegexMatchSetRegexMatchTupleFieldToMatch fieldToMatch) { this.fieldToMatch = Objects.requireNonNull(fieldToMatch); return this; } + @CustomType.Setter public Builder regexPatternSetId(String regexPatternSetId) { this.regexPatternSetId = Objects.requireNonNull(regexPatternSetId); return this; } + @CustomType.Setter public Builder textTransformation(String textTransformation) { this.textTransformation = Objects.requireNonNull(textTransformation); return this; - } public RegexMatchSetRegexMatchTuple build() { - return new RegexMatchSetRegexMatchTuple(fieldToMatch, regexPatternSetId, textTransformation); + } + public RegexMatchSetRegexMatchTuple build() { + final var o = new RegexMatchSetRegexMatchTuple(); + o.fieldToMatch = fieldToMatch; + o.regexPatternSetId = regexPatternSetId; + o.textTransformation = textTransformation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RegexMatchSetRegexMatchTupleFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RegexMatchSetRegexMatchTupleFieldToMatch.java index 6adc8c58fbf..09f5d948b1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RegexMatchSetRegexMatchTupleFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RegexMatchSetRegexMatchTupleFieldToMatch.java @@ -16,7 +16,7 @@ public final class RegexMatchSetRegexMatchTupleFieldToMatch { * If `type` is any other value, omit this field. * */ - private final @Nullable String data; + private @Nullable String data; /** * @return The part of the web request that you want AWS WAF to search for a specified string. * e.g., `HEADER`, `METHOD` or `BODY`. @@ -24,16 +24,9 @@ public final class RegexMatchSetRegexMatchTupleFieldToMatch { * for all supported values. * */ - private final String type; - - @CustomType.Constructor - private RegexMatchSetRegexMatchTupleFieldToMatch( - @CustomType.Parameter("data") @Nullable String data, - @CustomType.Parameter("type") String type) { - this.data = data; - this.type = type; - } + private String type; + private RegexMatchSetRegexMatchTupleFieldToMatch() {} /** * @return When `type` is `HEADER`, enter the name of the header that you want to search, e.g., `User-Agent` or `Referer`. * If `type` is any other value, omit this field. @@ -60,30 +53,32 @@ public static Builder builder() { public static Builder builder(RegexMatchSetRegexMatchTupleFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RegexMatchSetRegexMatchTupleFieldToMatch defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; this.type = defaults.type; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RegexMatchSetRegexMatchTupleFieldToMatch build() { - return new RegexMatchSetRegexMatchTupleFieldToMatch(data, type); + } + public RegexMatchSetRegexMatchTupleFieldToMatch build() { + final var o = new RegexMatchSetRegexMatchTupleFieldToMatch(); + o.data = data; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RuleGroupActivatedRule.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RuleGroupActivatedRule.java index 0ee488e0569..e8a7a80f1d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RuleGroupActivatedRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RuleGroupActivatedRule.java @@ -17,35 +17,24 @@ public final class RuleGroupActivatedRule { * @return Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. * */ - private final RuleGroupActivatedRuleAction action; + private RuleGroupActivatedRuleAction action; /** * @return Specifies the order in which the rules are evaluated. Rules with a lower value are evaluated before rules with a higher value. * */ - private final Integer priority; + private Integer priority; /** * @return The ID of a `waf_regional_rule` * */ - private final String ruleId; + private String ruleId; /** * @return The rule type, either `REGULAR`, `RATE_BASED`, or `GROUP`. Defaults to `REGULAR`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private RuleGroupActivatedRule( - @CustomType.Parameter("action") RuleGroupActivatedRuleAction action, - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("ruleId") String ruleId, - @CustomType.Parameter("type") @Nullable String type) { - this.action = action; - this.priority = priority; - this.ruleId = ruleId; - this.type = type; - } + private @Nullable String type; + private RuleGroupActivatedRule() {} /** * @return Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. * @@ -82,17 +71,13 @@ public static Builder builder() { public static Builder builder(RuleGroupActivatedRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RuleGroupActivatedRuleAction action; private Integer priority; private String ruleId; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupActivatedRule defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -101,23 +86,33 @@ public Builder(RuleGroupActivatedRule defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder action(RuleGroupActivatedRuleAction action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder ruleId(String ruleId) { this.ruleId = Objects.requireNonNull(ruleId); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public RuleGroupActivatedRule build() { - return new RuleGroupActivatedRule(action, priority, ruleId, type); + } + public RuleGroupActivatedRule build() { + final var o = new RuleGroupActivatedRule(); + o.action = action; + o.priority = priority; + o.ruleId = ruleId; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RuleGroupActivatedRuleAction.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RuleGroupActivatedRuleAction.java index 2bb23b772e0..3054c402cda 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RuleGroupActivatedRuleAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RuleGroupActivatedRuleAction.java @@ -13,13 +13,9 @@ public final class RuleGroupActivatedRuleAction { * @return The rule type, either `REGULAR`, `RATE_BASED`, or `GROUP`. Defaults to `REGULAR`. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupActivatedRuleAction(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private RuleGroupActivatedRuleAction() {} /** * @return The rule type, either `REGULAR`, `RATE_BASED`, or `GROUP`. Defaults to `REGULAR`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupActivatedRuleAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupActivatedRuleAction defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupActivatedRuleAction build() { - return new RuleGroupActivatedRuleAction(type); + } + public RuleGroupActivatedRuleAction build() { + final var o = new RuleGroupActivatedRuleAction(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RulePredicate.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RulePredicate.java index 53e06f85fef..e2514ac6693 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RulePredicate.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/RulePredicate.java @@ -10,20 +10,11 @@ @CustomType public final class RulePredicate { - private final String dataId; - private final Boolean negated; - private final String type; - - @CustomType.Constructor - private RulePredicate( - @CustomType.Parameter("dataId") String dataId, - @CustomType.Parameter("negated") Boolean negated, - @CustomType.Parameter("type") String type) { - this.dataId = dataId; - this.negated = negated; - this.type = type; - } + private String dataId; + private Boolean negated; + private String type; + private RulePredicate() {} public String dataId() { return this.dataId; } @@ -41,16 +32,12 @@ public static Builder builder() { public static Builder builder(RulePredicate defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String dataId; private Boolean negated; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RulePredicate defaults) { Objects.requireNonNull(defaults); this.dataId = defaults.dataId; @@ -58,19 +45,27 @@ public Builder(RulePredicate defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder dataId(String dataId) { this.dataId = Objects.requireNonNull(dataId); return this; } + @CustomType.Setter public Builder negated(Boolean negated) { this.negated = Objects.requireNonNull(negated); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RulePredicate build() { - return new RulePredicate(dataId, negated, type); + } + public RulePredicate build() { + final var o = new RulePredicate(); + o.dataId = dataId; + o.negated = negated; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SizeConstraintSetSizeConstraint.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SizeConstraintSetSizeConstraint.java index 1a4218c06cb..2f625017b73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SizeConstraintSetSizeConstraint.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SizeConstraintSetSizeConstraint.java @@ -17,18 +17,18 @@ public final class SizeConstraintSetSizeConstraint { * See [docs](https://docs.aws.amazon.com/waf/latest/APIReference/API_wafRegional_SizeConstraint.html) for all supported values. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Specifies where in a web request to look for the size constraint. * */ - private final SizeConstraintSetSizeConstraintFieldToMatch fieldToMatch; + private SizeConstraintSetSizeConstraintFieldToMatch fieldToMatch; /** * @return The size in bytes that you want to compare against the size of the specified `field_to_match`. * Valid values are between 0 - 21474836480 bytes (0 - 20 GB). * */ - private final Integer size; + private Integer size; /** * @return Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. * If you specify a transformation, AWS WAF performs the transformation on `field_to_match` before inspecting a request for a match. @@ -38,20 +38,9 @@ public final class SizeConstraintSetSizeConstraint { * **Note:** if you choose `BODY` as `type`, you must choose `NONE` because CloudFront forwards only the first 8192 bytes for inspection. * */ - private final String textTransformation; - - @CustomType.Constructor - private SizeConstraintSetSizeConstraint( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") SizeConstraintSetSizeConstraintFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformation") String textTransformation) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformation = textTransformation; - } + private String textTransformation; + private SizeConstraintSetSizeConstraint() {} /** * @return The type of comparison you want to perform. * e.g., `EQ`, `NE`, `LT`, `GT`. @@ -96,17 +85,13 @@ public static Builder builder() { public static Builder builder(SizeConstraintSetSizeConstraint defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private SizeConstraintSetSizeConstraintFieldToMatch fieldToMatch; private Integer size; private String textTransformation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SizeConstraintSetSizeConstraint defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -115,23 +100,33 @@ public Builder(SizeConstraintSetSizeConstraint defaults) { this.textTransformation = defaults.textTransformation; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(SizeConstraintSetSizeConstraintFieldToMatch fieldToMatch) { this.fieldToMatch = Objects.requireNonNull(fieldToMatch); return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformation(String textTransformation) { this.textTransformation = Objects.requireNonNull(textTransformation); return this; - } public SizeConstraintSetSizeConstraint build() { - return new SizeConstraintSetSizeConstraint(comparisonOperator, fieldToMatch, size, textTransformation); + } + public SizeConstraintSetSizeConstraint build() { + final var o = new SizeConstraintSetSizeConstraint(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformation = textTransformation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SizeConstraintSetSizeConstraintFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SizeConstraintSetSizeConstraintFieldToMatch.java index 71315a971be..b10027db1c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SizeConstraintSetSizeConstraintFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SizeConstraintSetSizeConstraintFieldToMatch.java @@ -16,7 +16,7 @@ public final class SizeConstraintSetSizeConstraintFieldToMatch { * If `type` is any other value, omit this field. * */ - private final @Nullable String data; + private @Nullable String data; /** * @return The part of the web request that you want AWS WAF to search for a specified string. * e.g., `HEADER`, `METHOD` or `BODY`. @@ -24,16 +24,9 @@ public final class SizeConstraintSetSizeConstraintFieldToMatch { * for all supported values. * */ - private final String type; - - @CustomType.Constructor - private SizeConstraintSetSizeConstraintFieldToMatch( - @CustomType.Parameter("data") @Nullable String data, - @CustomType.Parameter("type") String type) { - this.data = data; - this.type = type; - } + private String type; + private SizeConstraintSetSizeConstraintFieldToMatch() {} /** * @return When `type` is `HEADER`, enter the name of the header that you want to search, e.g., `User-Agent` or `Referer`. * If `type` is any other value, omit this field. @@ -60,30 +53,32 @@ public static Builder builder() { public static Builder builder(SizeConstraintSetSizeConstraintFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SizeConstraintSetSizeConstraintFieldToMatch defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; this.type = defaults.type; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public SizeConstraintSetSizeConstraintFieldToMatch build() { - return new SizeConstraintSetSizeConstraintFieldToMatch(data, type); + } + public SizeConstraintSetSizeConstraintFieldToMatch build() { + final var o = new SizeConstraintSetSizeConstraintFieldToMatch(); + o.data = data; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SqlInjectionMatchSetSqlInjectionMatchTuple.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SqlInjectionMatchSetSqlInjectionMatchTuple.java index eb4f46cadc1..1fc90e649c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SqlInjectionMatchSetSqlInjectionMatchTuple.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SqlInjectionMatchSetSqlInjectionMatchTuple.java @@ -14,7 +14,7 @@ public final class SqlInjectionMatchSetSqlInjectionMatchTuple { * @return Specifies where in a web request to look for snippets of malicious SQL code. * */ - private final SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch fieldToMatch; + private SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch fieldToMatch; /** * @return Text transformations used to eliminate unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. * If you specify a transformation, AWS WAF performs the transformation on `field_to_match` before inspecting a request for a match. @@ -23,16 +23,9 @@ public final class SqlInjectionMatchSetSqlInjectionMatchTuple { * for all supported values. * */ - private final String textTransformation; - - @CustomType.Constructor - private SqlInjectionMatchSetSqlInjectionMatchTuple( - @CustomType.Parameter("fieldToMatch") SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformation") String textTransformation) { - this.fieldToMatch = fieldToMatch; - this.textTransformation = textTransformation; - } + private String textTransformation; + private SqlInjectionMatchSetSqlInjectionMatchTuple() {} /** * @return Specifies where in a web request to look for snippets of malicious SQL code. * @@ -59,30 +52,32 @@ public static Builder builder() { public static Builder builder(SqlInjectionMatchSetSqlInjectionMatchTuple defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch fieldToMatch; private String textTransformation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SqlInjectionMatchSetSqlInjectionMatchTuple defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformation = defaults.textTransformation; } + @CustomType.Setter public Builder fieldToMatch(SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch fieldToMatch) { this.fieldToMatch = Objects.requireNonNull(fieldToMatch); return this; } + @CustomType.Setter public Builder textTransformation(String textTransformation) { this.textTransformation = Objects.requireNonNull(textTransformation); return this; - } public SqlInjectionMatchSetSqlInjectionMatchTuple build() { - return new SqlInjectionMatchSetSqlInjectionMatchTuple(fieldToMatch, textTransformation); + } + public SqlInjectionMatchSetSqlInjectionMatchTuple build() { + final var o = new SqlInjectionMatchSetSqlInjectionMatchTuple(); + o.fieldToMatch = fieldToMatch; + o.textTransformation = textTransformation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch.java index 008ccc81334..0461e090ac8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch.java @@ -16,7 +16,7 @@ public final class SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch { * If `type` is any other value, omit this field. * */ - private final @Nullable String data; + private @Nullable String data; /** * @return The part of the web request that you want AWS WAF to search for a specified string. * e.g., `HEADER`, `METHOD` or `BODY`. @@ -24,16 +24,9 @@ public final class SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch { * for all supported values. * */ - private final String type; - - @CustomType.Constructor - private SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch( - @CustomType.Parameter("data") @Nullable String data, - @CustomType.Parameter("type") String type) { - this.data = data; - this.type = type; - } + private String type; + private SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch() {} /** * @return When `type` is `HEADER`, enter the name of the header that you want to search, e.g., `User-Agent` or `Referer`. * If `type` is any other value, omit this field. @@ -60,30 +53,32 @@ public static Builder builder() { public static Builder builder(SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; this.type = defaults.type; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch build() { - return new SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch(data, type); + } + public SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch build() { + final var o = new SqlInjectionMatchSetSqlInjectionMatchTupleFieldToMatch(); + o.data = data; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclDefaultAction.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclDefaultAction.java index 44f016da64b..bde47587766 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclDefaultAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclDefaultAction.java @@ -13,13 +13,9 @@ public final class WebAclDefaultAction { * @return Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for `action` are `ALLOW`, `BLOCK` or `COUNT`. Valid values for `override_action` are `COUNT` and `NONE`. * */ - private final String type; - - @CustomType.Constructor - private WebAclDefaultAction(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private WebAclDefaultAction() {} /** * @return Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for `action` are `ALLOW`, `BLOCK` or `COUNT`. Valid values for `override_action` are `COUNT` and `NONE`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclDefaultAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclDefaultAction defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclDefaultAction build() { - return new WebAclDefaultAction(type); + } + public WebAclDefaultAction build() { + final var o = new WebAclDefaultAction(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclLoggingConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclLoggingConfiguration.java index b7cac9c4565..c558ae3bf26 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclLoggingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclLoggingConfiguration.java @@ -16,21 +16,14 @@ public final class WebAclLoggingConfiguration { * @return Amazon Resource Name (ARN) of Kinesis Firehose Delivery Stream * */ - private final String logDestination; + private String logDestination; /** * @return Configuration block containing parts of the request that you want redacted from the logs. Detailed below. * */ - private final @Nullable WebAclLoggingConfigurationRedactedFields redactedFields; - - @CustomType.Constructor - private WebAclLoggingConfiguration( - @CustomType.Parameter("logDestination") String logDestination, - @CustomType.Parameter("redactedFields") @Nullable WebAclLoggingConfigurationRedactedFields redactedFields) { - this.logDestination = logDestination; - this.redactedFields = redactedFields; - } + private @Nullable WebAclLoggingConfigurationRedactedFields redactedFields; + private WebAclLoggingConfiguration() {} /** * @return Amazon Resource Name (ARN) of Kinesis Firehose Delivery Stream * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclLoggingConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String logDestination; private @Nullable WebAclLoggingConfigurationRedactedFields redactedFields; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclLoggingConfiguration defaults) { Objects.requireNonNull(defaults); this.logDestination = defaults.logDestination; this.redactedFields = defaults.redactedFields; } + @CustomType.Setter public Builder logDestination(String logDestination) { this.logDestination = Objects.requireNonNull(logDestination); return this; } + @CustomType.Setter public Builder redactedFields(@Nullable WebAclLoggingConfigurationRedactedFields redactedFields) { this.redactedFields = redactedFields; return this; - } public WebAclLoggingConfiguration build() { - return new WebAclLoggingConfiguration(logDestination, redactedFields); + } + public WebAclLoggingConfiguration build() { + final var o = new WebAclLoggingConfiguration(); + o.logDestination = logDestination; + o.redactedFields = redactedFields; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclLoggingConfigurationRedactedFields.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclLoggingConfigurationRedactedFields.java index c53cb60b6de..fb669d03ab2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclLoggingConfigurationRedactedFields.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclLoggingConfigurationRedactedFields.java @@ -14,13 +14,9 @@ public final class WebAclLoggingConfigurationRedactedFields { * @return Set of configuration blocks for fields to redact. Detailed below. * */ - private final List fieldToMatches; - - @CustomType.Constructor - private WebAclLoggingConfigurationRedactedFields(@CustomType.Parameter("fieldToMatches") List fieldToMatches) { - this.fieldToMatches = fieldToMatches; - } + private List fieldToMatches; + private WebAclLoggingConfigurationRedactedFields() {} /** * @return Set of configuration blocks for fields to redact. Detailed below. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclLoggingConfigurationRedactedFields defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List fieldToMatches; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclLoggingConfigurationRedactedFields defaults) { Objects.requireNonNull(defaults); this.fieldToMatches = defaults.fieldToMatches; } + @CustomType.Setter public Builder fieldToMatches(List fieldToMatches) { this.fieldToMatches = Objects.requireNonNull(fieldToMatches); return this; } public Builder fieldToMatches(WebAclLoggingConfigurationRedactedFieldsFieldToMatch... fieldToMatches) { return fieldToMatches(List.of(fieldToMatches)); - } public WebAclLoggingConfigurationRedactedFields build() { - return new WebAclLoggingConfigurationRedactedFields(fieldToMatches); + } + public WebAclLoggingConfigurationRedactedFields build() { + final var o = new WebAclLoggingConfigurationRedactedFields(); + o.fieldToMatches = fieldToMatches; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclLoggingConfigurationRedactedFieldsFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclLoggingConfigurationRedactedFieldsFieldToMatch.java index 86789144c9e..926f60918f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclLoggingConfigurationRedactedFieldsFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclLoggingConfigurationRedactedFieldsFieldToMatch.java @@ -15,21 +15,14 @@ public final class WebAclLoggingConfigurationRedactedFieldsFieldToMatch { * @return When the value of `type` is `HEADER`, enter the name of the header that you want the WAF to search, for example, `User-Agent` or `Referer`. If the value of `type` is any other value, omit `data`. * */ - private final @Nullable String data; + private @Nullable String data; /** * @return Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for `action` are `ALLOW`, `BLOCK` or `COUNT`. Valid values for `override_action` are `COUNT` and `NONE`. * */ - private final String type; - - @CustomType.Constructor - private WebAclLoggingConfigurationRedactedFieldsFieldToMatch( - @CustomType.Parameter("data") @Nullable String data, - @CustomType.Parameter("type") String type) { - this.data = data; - this.type = type; - } + private String type; + private WebAclLoggingConfigurationRedactedFieldsFieldToMatch() {} /** * @return When the value of `type` is `HEADER`, enter the name of the header that you want the WAF to search, for example, `User-Agent` or `Referer`. If the value of `type` is any other value, omit `data`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(WebAclLoggingConfigurationRedactedFieldsFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclLoggingConfigurationRedactedFieldsFieldToMatch defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; this.type = defaults.type; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclLoggingConfigurationRedactedFieldsFieldToMatch build() { - return new WebAclLoggingConfigurationRedactedFieldsFieldToMatch(data, type); + } + public WebAclLoggingConfigurationRedactedFieldsFieldToMatch build() { + final var o = new WebAclLoggingConfigurationRedactedFieldsFieldToMatch(); + o.data = data; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclRule.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclRule.java index e23d5bdf90c..2dc43f42daa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclRule.java @@ -18,43 +18,30 @@ public final class WebAclRule { * @return Configuration block of the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if `type` is `GROUP`. Detailed below. * */ - private final @Nullable WebAclRuleAction action; + private @Nullable WebAclRuleAction action; /** * @return Configuration block of the override the action that a group requests CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Only used if `type` is `GROUP`. Detailed below. * */ - private final @Nullable WebAclRuleOverrideAction overrideAction; + private @Nullable WebAclRuleOverrideAction overrideAction; /** * @return Specifies the order in which the rules in a WebACL are evaluated. * Rules with a lower value are evaluated before rules with a higher value. * */ - private final Integer priority; + private Integer priority; /** * @return ID of the associated WAF (Regional) rule (e.g. `aws.wafregional.Rule`). WAF (Global) rules cannot be used. * */ - private final String ruleId; + private String ruleId; /** * @return Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for `action` are `ALLOW`, `BLOCK` or `COUNT`. Valid values for `override_action` are `COUNT` and `NONE`. * */ - private final @Nullable String type; - - @CustomType.Constructor - private WebAclRule( - @CustomType.Parameter("action") @Nullable WebAclRuleAction action, - @CustomType.Parameter("overrideAction") @Nullable WebAclRuleOverrideAction overrideAction, - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("ruleId") String ruleId, - @CustomType.Parameter("type") @Nullable String type) { - this.action = action; - this.overrideAction = overrideAction; - this.priority = priority; - this.ruleId = ruleId; - this.type = type; - } + private @Nullable String type; + private WebAclRule() {} /** * @return Configuration block of the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if `type` is `GROUP`. Detailed below. * @@ -99,18 +86,14 @@ public static Builder builder() { public static Builder builder(WebAclRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleAction action; private @Nullable WebAclRuleOverrideAction overrideAction; private Integer priority; private String ruleId; private @Nullable String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRule defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -120,27 +103,39 @@ public Builder(WebAclRule defaults) { this.type = defaults.type; } + @CustomType.Setter public Builder action(@Nullable WebAclRuleAction action) { this.action = action; return this; } + @CustomType.Setter public Builder overrideAction(@Nullable WebAclRuleOverrideAction overrideAction) { this.overrideAction = overrideAction; return this; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder ruleId(String ruleId) { this.ruleId = Objects.requireNonNull(ruleId); return this; } + @CustomType.Setter public Builder type(@Nullable String type) { this.type = type; return this; - } public WebAclRule build() { - return new WebAclRule(action, overrideAction, priority, ruleId, type); + } + public WebAclRule build() { + final var o = new WebAclRule(); + o.action = action; + o.overrideAction = overrideAction; + o.priority = priority; + o.ruleId = ruleId; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclRuleAction.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclRuleAction.java index cf57633b256..ff2d9b1c260 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclRuleAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclRuleAction.java @@ -13,13 +13,9 @@ public final class WebAclRuleAction { * @return Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for `action` are `ALLOW`, `BLOCK` or `COUNT`. Valid values for `override_action` are `COUNT` and `NONE`. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleAction(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private WebAclRuleAction() {} /** * @return Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for `action` are `ALLOW`, `BLOCK` or `COUNT`. Valid values for `override_action` are `COUNT` and `NONE`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleAction defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleAction build() { - return new WebAclRuleAction(type); + } + public WebAclRuleAction build() { + final var o = new WebAclRuleAction(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclRuleOverrideAction.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclRuleOverrideAction.java index 731aec5bce8..1cad666e671 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclRuleOverrideAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/WebAclRuleOverrideAction.java @@ -13,13 +13,9 @@ public final class WebAclRuleOverrideAction { * @return Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for `action` are `ALLOW`, `BLOCK` or `COUNT`. Valid values for `override_action` are `COUNT` and `NONE`. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleOverrideAction(@CustomType.Parameter("type") String type) { - this.type = type; - } + private String type; + private WebAclRuleOverrideAction() {} /** * @return Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for `action` are `ALLOW`, `BLOCK` or `COUNT`. Valid values for `override_action` are `COUNT` and `NONE`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleOverrideAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleOverrideAction defaults) { Objects.requireNonNull(defaults); this.type = defaults.type; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleOverrideAction build() { - return new WebAclRuleOverrideAction(type); + } + public WebAclRuleOverrideAction build() { + final var o = new WebAclRuleOverrideAction(); + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/XssMatchSetXssMatchTuple.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/XssMatchSetXssMatchTuple.java index 414ec1a3a1b..ce21420882e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/XssMatchSetXssMatchTuple.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/XssMatchSetXssMatchTuple.java @@ -14,21 +14,14 @@ public final class XssMatchSetXssMatchTuple { * @return Specifies where in a web request to look for cross-site scripting attacks. * */ - private final XssMatchSetXssMatchTupleFieldToMatch fieldToMatch; + private XssMatchSetXssMatchTupleFieldToMatch fieldToMatch; /** * @return Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks. * */ - private final String textTransformation; - - @CustomType.Constructor - private XssMatchSetXssMatchTuple( - @CustomType.Parameter("fieldToMatch") XssMatchSetXssMatchTupleFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformation") String textTransformation) { - this.fieldToMatch = fieldToMatch; - this.textTransformation = textTransformation; - } + private String textTransformation; + private XssMatchSetXssMatchTuple() {} /** * @return Specifies where in a web request to look for cross-site scripting attacks. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(XssMatchSetXssMatchTuple defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private XssMatchSetXssMatchTupleFieldToMatch fieldToMatch; private String textTransformation; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(XssMatchSetXssMatchTuple defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformation = defaults.textTransformation; } + @CustomType.Setter public Builder fieldToMatch(XssMatchSetXssMatchTupleFieldToMatch fieldToMatch) { this.fieldToMatch = Objects.requireNonNull(fieldToMatch); return this; } + @CustomType.Setter public Builder textTransformation(String textTransformation) { this.textTransformation = Objects.requireNonNull(textTransformation); return this; - } public XssMatchSetXssMatchTuple build() { - return new XssMatchSetXssMatchTuple(fieldToMatch, textTransformation); + } + public XssMatchSetXssMatchTuple build() { + final var o = new XssMatchSetXssMatchTuple(); + o.fieldToMatch = fieldToMatch; + o.textTransformation = textTransformation; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/XssMatchSetXssMatchTupleFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/XssMatchSetXssMatchTupleFieldToMatch.java index 252be01134f..8544c38726f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/XssMatchSetXssMatchTupleFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafregional/outputs/XssMatchSetXssMatchTupleFieldToMatch.java @@ -15,21 +15,14 @@ public final class XssMatchSetXssMatchTupleFieldToMatch { * @return When the value of `type` is `HEADER`, enter the name of the header that you want the WAF to search, for example, `User-Agent` or `Referer`. If the value of `type` is any other value, omit `data`. * */ - private final @Nullable String data; + private @Nullable String data; /** * @return The part of the web request that you want AWS WAF to search for a specified stringE.g., `HEADER` or `METHOD` * */ - private final String type; - - @CustomType.Constructor - private XssMatchSetXssMatchTupleFieldToMatch( - @CustomType.Parameter("data") @Nullable String data, - @CustomType.Parameter("type") String type) { - this.data = data; - this.type = type; - } + private String type; + private XssMatchSetXssMatchTupleFieldToMatch() {} /** * @return When the value of `type` is `HEADER`, enter the name of the header that you want the WAF to search, for example, `User-Agent` or `Referer`. If the value of `type` is any other value, omit `data`. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(XssMatchSetXssMatchTupleFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String data; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(XssMatchSetXssMatchTupleFieldToMatch defaults) { Objects.requireNonNull(defaults); this.data = defaults.data; this.type = defaults.type; } + @CustomType.Setter public Builder data(@Nullable String data) { this.data = data; return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public XssMatchSetXssMatchTupleFieldToMatch build() { - return new XssMatchSetXssMatchTupleFieldToMatch(data, type); + } + public XssMatchSetXssMatchTupleFieldToMatch build() { + final var o = new XssMatchSetXssMatchTupleFieldToMatch(); + o.data = data; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetIpSetResult.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetIpSetResult.java index 328fbb8f729..b78594e2d7a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetIpSetResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetIpSetResult.java @@ -14,48 +14,31 @@ public final class GetIpSetResult { * @return An array of strings that specify one or more IP addresses or blocks of IP addresses in Classless Inter-Domain Routing (CIDR) notation. * */ - private final List addresses; + private List addresses; /** * @return The Amazon Resource Name (ARN) of the entity. * */ - private final String arn; + private String arn; /** * @return The description of the set that helps with identification. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The IP address version of the set. * */ - private final String ipAddressVersion; - private final String name; - private final String scope; - - @CustomType.Constructor - private GetIpSetResult( - @CustomType.Parameter("addresses") List addresses, - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ipAddressVersion") String ipAddressVersion, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("scope") String scope) { - this.addresses = addresses; - this.arn = arn; - this.description = description; - this.id = id; - this.ipAddressVersion = ipAddressVersion; - this.name = name; - this.scope = scope; - } + private String ipAddressVersion; + private String name; + private String scope; + private GetIpSetResult() {} /** * @return An array of strings that specify one or more IP addresses or blocks of IP addresses in Classless Inter-Domain Routing (CIDR) notation. * @@ -105,7 +88,7 @@ public static Builder builder() { public static Builder builder(GetIpSetResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List addresses; private String arn; @@ -114,11 +97,7 @@ public static final class Builder { private String ipAddressVersion; private String name; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetIpSetResult defaults) { Objects.requireNonNull(defaults); this.addresses = defaults.addresses; @@ -130,6 +109,7 @@ public Builder(GetIpSetResult defaults) { this.scope = defaults.scope; } + @CustomType.Setter public Builder addresses(List addresses) { this.addresses = Objects.requireNonNull(addresses); return this; @@ -137,31 +117,46 @@ public Builder addresses(List addresses) { public Builder addresses(String... addresses) { return addresses(List.of(addresses)); } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ipAddressVersion(String ipAddressVersion) { this.ipAddressVersion = Objects.requireNonNull(ipAddressVersion); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public GetIpSetResult build() { - return new GetIpSetResult(addresses, arn, description, id, ipAddressVersion, name, scope); + } + public GetIpSetResult build() { + final var o = new GetIpSetResult(); + o.addresses = addresses; + o.arn = arn; + o.description = description; + o.id = id; + o.ipAddressVersion = ipAddressVersion; + o.name = name; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetRegexPatternSetRegularExpression.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetRegexPatternSetRegularExpression.java index 831aca065fc..53cec8dee52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetRegexPatternSetRegularExpression.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetRegexPatternSetRegularExpression.java @@ -13,13 +13,9 @@ public final class GetRegexPatternSetRegularExpression { * @return (Required) The string representing the regular expression, see the AWS WAF [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-regex-pattern-set-creating.html) for more information. * */ - private final String regexString; - - @CustomType.Constructor - private GetRegexPatternSetRegularExpression(@CustomType.Parameter("regexString") String regexString) { - this.regexString = regexString; - } + private String regexString; + private GetRegexPatternSetRegularExpression() {} /** * @return (Required) The string representing the regular expression, see the AWS WAF [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-regex-pattern-set-creating.html) for more information. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetRegexPatternSetRegularExpression defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String regexString; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRegexPatternSetRegularExpression defaults) { Objects.requireNonNull(defaults); this.regexString = defaults.regexString; } + @CustomType.Setter public Builder regexString(String regexString) { this.regexString = Objects.requireNonNull(regexString); return this; - } public GetRegexPatternSetRegularExpression build() { - return new GetRegexPatternSetRegularExpression(regexString); + } + public GetRegexPatternSetRegularExpression build() { + final var o = new GetRegexPatternSetRegularExpression(); + o.regexString = regexString; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetRegexPatternSetResult.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetRegexPatternSetResult.java index f11951ea267..d111a470ce2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetRegexPatternSetResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetRegexPatternSetResult.java @@ -15,41 +15,26 @@ public final class GetRegexPatternSetResult { * @return The Amazon Resource Name (ARN) of the entity. * */ - private final String arn; + private String arn; /** * @return The description of the set that helps with identification. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; + private String id; + private String name; /** * @return One or more blocks of regular expression patterns that AWS WAF is searching for. See Regular Expression below for details. * */ - private final List regularExpressions; - private final String scope; - - @CustomType.Constructor - private GetRegexPatternSetResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("regularExpressions") List regularExpressions, - @CustomType.Parameter("scope") String scope) { - this.arn = arn; - this.description = description; - this.id = id; - this.name = name; - this.regularExpressions = regularExpressions; - this.scope = scope; - } + private List regularExpressions; + private String scope; + private GetRegexPatternSetResult() {} /** * @return The Amazon Resource Name (ARN) of the entity. * @@ -92,7 +77,7 @@ public static Builder builder() { public static Builder builder(GetRegexPatternSetResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; @@ -100,11 +85,7 @@ public static final class Builder { private String name; private List regularExpressions; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRegexPatternSetResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -115,22 +96,27 @@ public Builder(GetRegexPatternSetResult defaults) { this.scope = defaults.scope; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder regularExpressions(List regularExpressions) { this.regularExpressions = Objects.requireNonNull(regularExpressions); return this; @@ -138,11 +124,20 @@ public Builder regularExpressions(List regu public Builder regularExpressions(GetRegexPatternSetRegularExpression... regularExpressions) { return regularExpressions(List.of(regularExpressions)); } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public GetRegexPatternSetResult build() { - return new GetRegexPatternSetResult(arn, description, id, name, regularExpressions, scope); + } + public GetRegexPatternSetResult build() { + final var o = new GetRegexPatternSetResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.name = name; + o.regularExpressions = regularExpressions; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetRuleGroupResult.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetRuleGroupResult.java index c8cf61440a3..9048a720f61 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetRuleGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetRuleGroupResult.java @@ -13,34 +13,21 @@ public final class GetRuleGroupResult { * @return The Amazon Resource Name (ARN) of the entity. * */ - private final String arn; + private String arn; /** * @return The description of the rule group that helps with identification. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - private final String scope; - - @CustomType.Constructor - private GetRuleGroupResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("scope") String scope) { - this.arn = arn; - this.description = description; - this.id = id; - this.name = name; - this.scope = scope; - } + private String id; + private String name; + private String scope; + private GetRuleGroupResult() {} /** * @return The Amazon Resource Name (ARN) of the entity. * @@ -76,18 +63,14 @@ public static Builder builder() { public static Builder builder(GetRuleGroupResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; private String id; private String name; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetRuleGroupResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -97,27 +80,39 @@ public Builder(GetRuleGroupResult defaults) { this.scope = defaults.scope; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public GetRuleGroupResult build() { - return new GetRuleGroupResult(arn, description, id, name, scope); + } + public GetRuleGroupResult build() { + final var o = new GetRuleGroupResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.name = name; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetWebAclResult.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetWebAclResult.java index a2e33a0de68..7edb3224709 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetWebAclResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/GetWebAclResult.java @@ -13,34 +13,21 @@ public final class GetWebAclResult { * @return The Amazon Resource Name (ARN) of the entity. * */ - private final String arn; + private String arn; /** * @return The description of the WebACL that helps with identification. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; - private final String name; - private final String scope; - - @CustomType.Constructor - private GetWebAclResult( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("scope") String scope) { - this.arn = arn; - this.description = description; - this.id = id; - this.name = name; - this.scope = scope; - } + private String id; + private String name; + private String scope; + private GetWebAclResult() {} /** * @return The Amazon Resource Name (ARN) of the entity. * @@ -76,18 +63,14 @@ public static Builder builder() { public static Builder builder(GetWebAclResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private String description; private String id; private String name; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetWebAclResult defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -97,27 +80,39 @@ public Builder(GetWebAclResult defaults) { this.scope = defaults.scope; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public GetWebAclResult build() { - return new GetWebAclResult(arn, description, id, name, scope); + } + public GetWebAclResult build() { + final var o = new GetWebAclResult(); + o.arn = arn; + o.description = description; + o.id = id; + o.name = name; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RegexPatternSetRegularExpression.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RegexPatternSetRegularExpression.java index 04e520bce0d..cf370e8ba99 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RegexPatternSetRegularExpression.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RegexPatternSetRegularExpression.java @@ -13,13 +13,9 @@ public final class RegexPatternSetRegularExpression { * @return The string representing the regular expression, see the AWS WAF [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-regex-pattern-set-creating.html) for more information. * */ - private final String regexString; - - @CustomType.Constructor - private RegexPatternSetRegularExpression(@CustomType.Parameter("regexString") String regexString) { - this.regexString = regexString; - } + private String regexString; + private RegexPatternSetRegularExpression() {} /** * @return The string representing the regular expression, see the AWS WAF [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/waf-regex-pattern-set-creating.html) for more information. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RegexPatternSetRegularExpression defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String regexString; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RegexPatternSetRegularExpression defaults) { Objects.requireNonNull(defaults); this.regexString = defaults.regexString; } + @CustomType.Setter public Builder regexString(String regexString) { this.regexString = Objects.requireNonNull(regexString); return this; - } public RegexPatternSetRegularExpression build() { - return new RegexPatternSetRegularExpression(regexString); + } + public RegexPatternSetRegularExpression build() { + final var o = new RegexPatternSetRegularExpression(); + o.regexString = regexString; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupCustomResponseBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupCustomResponseBody.java index 2ce72671e84..72d6f2ba257 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupCustomResponseBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupCustomResponseBody.java @@ -13,28 +13,19 @@ public final class RuleGroupCustomResponseBody { * @return The payload of the custom response. * */ - private final String content; + private String content; /** * @return The type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. * */ - private final String contentType; + private String contentType; /** * @return A unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the Custom Response block. * */ - private final String key; - - @CustomType.Constructor - private RuleGroupCustomResponseBody( - @CustomType.Parameter("content") String content, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("key") String key) { - this.content = content; - this.contentType = contentType; - this.key = key; - } + private String key; + private RuleGroupCustomResponseBody() {} /** * @return The payload of the custom response. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupCustomResponseBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String content; private String contentType; private String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupCustomResponseBody defaults) { Objects.requireNonNull(defaults); this.content = defaults.content; @@ -81,19 +68,27 @@ public Builder(RuleGroupCustomResponseBody defaults) { this.key = defaults.key; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; - } public RuleGroupCustomResponseBody build() { - return new RuleGroupCustomResponseBody(content, contentType, key); + } + public RuleGroupCustomResponseBody build() { + final var o = new RuleGroupCustomResponseBody(); + o.content = content; + o.contentType = contentType; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRule.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRule.java index 5b8e62ea659..5f944576e38 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRule.java @@ -20,49 +20,34 @@ public final class RuleGroupRule { * @return The action that AWS WAF should take on a web request when it matches the rule's statement. Settings at the `aws.wafv2.WebAcl` level can override the rule action setting. See Action below for details. * */ - private final RuleGroupRuleAction action; + private RuleGroupRuleAction action; /** * @return A friendly name of the rule. * */ - private final String name; + private String name; /** * @return If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first. * */ - private final Integer priority; + private Integer priority; /** * @return Labels to apply to web requests that match the rule match statement. See Rule Label below for details. * */ - private final @Nullable List ruleLabels; + private @Nullable List ruleLabels; /** * @return The AWS WAF processing statement for the rule, for example `byte_match_statement` or `geo_match_statement`. See Statement below for details. * */ - private final RuleGroupRuleStatement statement; + private RuleGroupRuleStatement statement; /** * @return Defines and enables Amazon CloudWatch metrics and web request sample collection. See Visibility Configuration below for details. * */ - private final RuleGroupRuleVisibilityConfig visibilityConfig; - - @CustomType.Constructor - private RuleGroupRule( - @CustomType.Parameter("action") RuleGroupRuleAction action, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("ruleLabels") @Nullable List ruleLabels, - @CustomType.Parameter("statement") RuleGroupRuleStatement statement, - @CustomType.Parameter("visibilityConfig") RuleGroupRuleVisibilityConfig visibilityConfig) { - this.action = action; - this.name = name; - this.priority = priority; - this.ruleLabels = ruleLabels; - this.statement = statement; - this.visibilityConfig = visibilityConfig; - } + private RuleGroupRuleVisibilityConfig visibilityConfig; + private RuleGroupRule() {} /** * @return The action that AWS WAF should take on a web request when it matches the rule's statement. Settings at the `aws.wafv2.WebAcl` level can override the rule action setting. See Action below for details. * @@ -113,7 +98,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private RuleGroupRuleAction action; private String name; @@ -121,11 +106,7 @@ public static final class Builder { private @Nullable List ruleLabels; private RuleGroupRuleStatement statement; private RuleGroupRuleVisibilityConfig visibilityConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRule defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -136,18 +117,22 @@ public Builder(RuleGroupRule defaults) { this.visibilityConfig = defaults.visibilityConfig; } + @CustomType.Setter public Builder action(RuleGroupRuleAction action) { this.action = Objects.requireNonNull(action); return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder ruleLabels(@Nullable List ruleLabels) { this.ruleLabels = ruleLabels; return this; @@ -155,15 +140,25 @@ public Builder ruleLabels(@Nullable List ruleLabels) { public Builder ruleLabels(RuleGroupRuleRuleLabel... ruleLabels) { return ruleLabels(List.of(ruleLabels)); } + @CustomType.Setter public Builder statement(RuleGroupRuleStatement statement) { this.statement = Objects.requireNonNull(statement); return this; } + @CustomType.Setter public Builder visibilityConfig(RuleGroupRuleVisibilityConfig visibilityConfig) { this.visibilityConfig = Objects.requireNonNull(visibilityConfig); return this; - } public RuleGroupRule build() { - return new RuleGroupRule(action, name, priority, ruleLabels, statement, visibilityConfig); + } + public RuleGroupRule build() { + final var o = new RuleGroupRule(); + o.action = action; + o.name = name; + o.priority = priority; + o.ruleLabels = ruleLabels; + o.statement = statement; + o.visibilityConfig = visibilityConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleAction.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleAction.java index 4718bb8ae58..f6f7049c49e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleAction.java @@ -17,28 +17,19 @@ public final class RuleGroupRuleAction { * @return Instructs AWS WAF to allow the web request. See Allow below for details. * */ - private final @Nullable RuleGroupRuleActionAllow allow; + private @Nullable RuleGroupRuleActionAllow allow; /** * @return Instructs AWS WAF to block the web request. See Block below for details. * */ - private final @Nullable RuleGroupRuleActionBlock block; + private @Nullable RuleGroupRuleActionBlock block; /** * @return Instructs AWS WAF to count the web request and allow it. See Count below for details. * */ - private final @Nullable RuleGroupRuleActionCount count; - - @CustomType.Constructor - private RuleGroupRuleAction( - @CustomType.Parameter("allow") @Nullable RuleGroupRuleActionAllow allow, - @CustomType.Parameter("block") @Nullable RuleGroupRuleActionBlock block, - @CustomType.Parameter("count") @Nullable RuleGroupRuleActionCount count) { - this.allow = allow; - this.block = block; - this.count = count; - } + private @Nullable RuleGroupRuleActionCount count; + private RuleGroupRuleAction() {} /** * @return Instructs AWS WAF to allow the web request. See Allow below for details. * @@ -68,16 +59,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleActionAllow allow; private @Nullable RuleGroupRuleActionBlock block; private @Nullable RuleGroupRuleActionCount count; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleAction defaults) { Objects.requireNonNull(defaults); this.allow = defaults.allow; @@ -85,19 +72,27 @@ public Builder(RuleGroupRuleAction defaults) { this.count = defaults.count; } + @CustomType.Setter public Builder allow(@Nullable RuleGroupRuleActionAllow allow) { this.allow = allow; return this; } + @CustomType.Setter public Builder block(@Nullable RuleGroupRuleActionBlock block) { this.block = block; return this; } + @CustomType.Setter public Builder count(@Nullable RuleGroupRuleActionCount count) { this.count = count; return this; - } public RuleGroupRuleAction build() { - return new RuleGroupRuleAction(allow, block, count); + } + public RuleGroupRuleAction build() { + final var o = new RuleGroupRuleAction(); + o.allow = allow; + o.block = block; + o.count = count; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionAllow.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionAllow.java index cfb87479a08..edebf41a700 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionAllow.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionAllow.java @@ -15,13 +15,9 @@ public final class RuleGroupRuleActionAllow { * @return Defines custom handling for the web request. See Custom Request Handling below for details. * */ - private final @Nullable RuleGroupRuleActionAllowCustomRequestHandling customRequestHandling; - - @CustomType.Constructor - private RuleGroupRuleActionAllow(@CustomType.Parameter("customRequestHandling") @Nullable RuleGroupRuleActionAllowCustomRequestHandling customRequestHandling) { - this.customRequestHandling = customRequestHandling; - } + private @Nullable RuleGroupRuleActionAllowCustomRequestHandling customRequestHandling; + private RuleGroupRuleActionAllow() {} /** * @return Defines custom handling for the web request. See Custom Request Handling below for details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleActionAllow defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleActionAllowCustomRequestHandling customRequestHandling; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleActionAllow defaults) { Objects.requireNonNull(defaults); this.customRequestHandling = defaults.customRequestHandling; } + @CustomType.Setter public Builder customRequestHandling(@Nullable RuleGroupRuleActionAllowCustomRequestHandling customRequestHandling) { this.customRequestHandling = customRequestHandling; return this; - } public RuleGroupRuleActionAllow build() { - return new RuleGroupRuleActionAllow(customRequestHandling); + } + public RuleGroupRuleActionAllow build() { + final var o = new RuleGroupRuleActionAllow(); + o.customRequestHandling = customRequestHandling; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionAllowCustomRequestHandling.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionAllowCustomRequestHandling.java index 8bd02f85693..283258b5f35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionAllowCustomRequestHandling.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionAllowCustomRequestHandling.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleActionAllowCustomRequestHandling { * @return The `insert_header` blocks used to define HTTP headers added to the request. See Custom HTTP Header below for details. * */ - private final List insertHeaders; - - @CustomType.Constructor - private RuleGroupRuleActionAllowCustomRequestHandling(@CustomType.Parameter("insertHeaders") List insertHeaders) { - this.insertHeaders = insertHeaders; - } + private List insertHeaders; + private RuleGroupRuleActionAllowCustomRequestHandling() {} /** * @return The `insert_header` blocks used to define HTTP headers added to the request. See Custom HTTP Header below for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleActionAllowCustomRequestHandling defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List insertHeaders; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleActionAllowCustomRequestHandling defaults) { Objects.requireNonNull(defaults); this.insertHeaders = defaults.insertHeaders; } + @CustomType.Setter public Builder insertHeaders(List insertHeaders) { this.insertHeaders = Objects.requireNonNull(insertHeaders); return this; } public Builder insertHeaders(RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader... insertHeaders) { return insertHeaders(List.of(insertHeaders)); - } public RuleGroupRuleActionAllowCustomRequestHandling build() { - return new RuleGroupRuleActionAllowCustomRequestHandling(insertHeaders); + } + public RuleGroupRuleActionAllowCustomRequestHandling build() { + final var o = new RuleGroupRuleActionAllowCustomRequestHandling(); + o.insertHeaders = insertHeaders; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader.java index 83b59012471..4814689defb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader { * @return The label string. * */ - private final String name; + private String name; /** * @return The value of the custom header. * */ - private final String value; - - @CustomType.Constructor - private RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader() {} /** * @return The label string. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader build() { - return new RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader(name, value); + } + public RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader build() { + final var o = new RuleGroupRuleActionAllowCustomRequestHandlingInsertHeader(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionBlock.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionBlock.java index f5933d003dc..a6d0eb9d83f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionBlock.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionBlock.java @@ -15,13 +15,9 @@ public final class RuleGroupRuleActionBlock { * @return Defines a custom response for the web request. See Custom Response below for details. * */ - private final @Nullable RuleGroupRuleActionBlockCustomResponse customResponse; - - @CustomType.Constructor - private RuleGroupRuleActionBlock(@CustomType.Parameter("customResponse") @Nullable RuleGroupRuleActionBlockCustomResponse customResponse) { - this.customResponse = customResponse; - } + private @Nullable RuleGroupRuleActionBlockCustomResponse customResponse; + private RuleGroupRuleActionBlock() {} /** * @return Defines a custom response for the web request. See Custom Response below for details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleActionBlock defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleActionBlockCustomResponse customResponse; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleActionBlock defaults) { Objects.requireNonNull(defaults); this.customResponse = defaults.customResponse; } + @CustomType.Setter public Builder customResponse(@Nullable RuleGroupRuleActionBlockCustomResponse customResponse) { this.customResponse = customResponse; return this; - } public RuleGroupRuleActionBlock build() { - return new RuleGroupRuleActionBlock(customResponse); + } + public RuleGroupRuleActionBlock build() { + final var o = new RuleGroupRuleActionBlock(); + o.customResponse = customResponse; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionBlockCustomResponse.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionBlockCustomResponse.java index 984de2dbfce..1ce06579937 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionBlockCustomResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionBlockCustomResponse.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleActionBlockCustomResponse { * @return References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. * */ - private final @Nullable String customResponseBodyKey; + private @Nullable String customResponseBodyKey; /** * @return The HTTP status code to return to the client. * */ - private final Integer responseCode; + private Integer responseCode; /** * @return The `response_header` blocks used to define the HTTP response headers added to the response. See Custom HTTP Header below for details. * */ - private final @Nullable List responseHeaders; - - @CustomType.Constructor - private RuleGroupRuleActionBlockCustomResponse( - @CustomType.Parameter("customResponseBodyKey") @Nullable String customResponseBodyKey, - @CustomType.Parameter("responseCode") Integer responseCode, - @CustomType.Parameter("responseHeaders") @Nullable List responseHeaders) { - this.customResponseBodyKey = customResponseBodyKey; - this.responseCode = responseCode; - this.responseHeaders = responseHeaders; - } + private @Nullable List responseHeaders; + private RuleGroupRuleActionBlockCustomResponse() {} /** * @return References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleActionBlockCustomResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String customResponseBodyKey; private Integer responseCode; private @Nullable List responseHeaders; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleActionBlockCustomResponse defaults) { Objects.requireNonNull(defaults); this.customResponseBodyKey = defaults.customResponseBodyKey; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleActionBlockCustomResponse defaults) { this.responseHeaders = defaults.responseHeaders; } + @CustomType.Setter public Builder customResponseBodyKey(@Nullable String customResponseBodyKey) { this.customResponseBodyKey = customResponseBodyKey; return this; } + @CustomType.Setter public Builder responseCode(Integer responseCode) { this.responseCode = Objects.requireNonNull(responseCode); return this; } + @CustomType.Setter public Builder responseHeaders(@Nullable List responseHeaders) { this.responseHeaders = responseHeaders; return this; } public Builder responseHeaders(RuleGroupRuleActionBlockCustomResponseResponseHeader... responseHeaders) { return responseHeaders(List.of(responseHeaders)); - } public RuleGroupRuleActionBlockCustomResponse build() { - return new RuleGroupRuleActionBlockCustomResponse(customResponseBodyKey, responseCode, responseHeaders); + } + public RuleGroupRuleActionBlockCustomResponse build() { + final var o = new RuleGroupRuleActionBlockCustomResponse(); + o.customResponseBodyKey = customResponseBodyKey; + o.responseCode = responseCode; + o.responseHeaders = responseHeaders; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionBlockCustomResponseResponseHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionBlockCustomResponseResponseHeader.java index 3b1d15648b1..e2e45493da9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionBlockCustomResponseResponseHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionBlockCustomResponseResponseHeader.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleActionBlockCustomResponseResponseHeader { * @return The label string. * */ - private final String name; + private String name; /** * @return The value of the custom header. * */ - private final String value; - - @CustomType.Constructor - private RuleGroupRuleActionBlockCustomResponseResponseHeader( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private RuleGroupRuleActionBlockCustomResponseResponseHeader() {} /** * @return The label string. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleActionBlockCustomResponseResponseHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleActionBlockCustomResponseResponseHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public RuleGroupRuleActionBlockCustomResponseResponseHeader build() { - return new RuleGroupRuleActionBlockCustomResponseResponseHeader(name, value); + } + public RuleGroupRuleActionBlockCustomResponseResponseHeader build() { + final var o = new RuleGroupRuleActionBlockCustomResponseResponseHeader(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionCount.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionCount.java index 4c633805112..bc31ddf6e77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionCount.java @@ -15,13 +15,9 @@ public final class RuleGroupRuleActionCount { * @return Defines custom handling for the web request. See Custom Request Handling below for details. * */ - private final @Nullable RuleGroupRuleActionCountCustomRequestHandling customRequestHandling; - - @CustomType.Constructor - private RuleGroupRuleActionCount(@CustomType.Parameter("customRequestHandling") @Nullable RuleGroupRuleActionCountCustomRequestHandling customRequestHandling) { - this.customRequestHandling = customRequestHandling; - } + private @Nullable RuleGroupRuleActionCountCustomRequestHandling customRequestHandling; + private RuleGroupRuleActionCount() {} /** * @return Defines custom handling for the web request. See Custom Request Handling below for details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleActionCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleActionCountCustomRequestHandling customRequestHandling; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleActionCount defaults) { Objects.requireNonNull(defaults); this.customRequestHandling = defaults.customRequestHandling; } + @CustomType.Setter public Builder customRequestHandling(@Nullable RuleGroupRuleActionCountCustomRequestHandling customRequestHandling) { this.customRequestHandling = customRequestHandling; return this; - } public RuleGroupRuleActionCount build() { - return new RuleGroupRuleActionCount(customRequestHandling); + } + public RuleGroupRuleActionCount build() { + final var o = new RuleGroupRuleActionCount(); + o.customRequestHandling = customRequestHandling; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionCountCustomRequestHandling.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionCountCustomRequestHandling.java index 987bfa77b4a..bf95d15bfb6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionCountCustomRequestHandling.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionCountCustomRequestHandling.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleActionCountCustomRequestHandling { * @return The `insert_header` blocks used to define HTTP headers added to the request. See Custom HTTP Header below for details. * */ - private final List insertHeaders; - - @CustomType.Constructor - private RuleGroupRuleActionCountCustomRequestHandling(@CustomType.Parameter("insertHeaders") List insertHeaders) { - this.insertHeaders = insertHeaders; - } + private List insertHeaders; + private RuleGroupRuleActionCountCustomRequestHandling() {} /** * @return The `insert_header` blocks used to define HTTP headers added to the request. See Custom HTTP Header below for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleActionCountCustomRequestHandling defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List insertHeaders; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleActionCountCustomRequestHandling defaults) { Objects.requireNonNull(defaults); this.insertHeaders = defaults.insertHeaders; } + @CustomType.Setter public Builder insertHeaders(List insertHeaders) { this.insertHeaders = Objects.requireNonNull(insertHeaders); return this; } public Builder insertHeaders(RuleGroupRuleActionCountCustomRequestHandlingInsertHeader... insertHeaders) { return insertHeaders(List.of(insertHeaders)); - } public RuleGroupRuleActionCountCustomRequestHandling build() { - return new RuleGroupRuleActionCountCustomRequestHandling(insertHeaders); + } + public RuleGroupRuleActionCountCustomRequestHandling build() { + final var o = new RuleGroupRuleActionCountCustomRequestHandling(); + o.insertHeaders = insertHeaders; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionCountCustomRequestHandlingInsertHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionCountCustomRequestHandlingInsertHeader.java index 50674a4583a..b3c4fb59d10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionCountCustomRequestHandlingInsertHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleActionCountCustomRequestHandlingInsertHeader.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleActionCountCustomRequestHandlingInsertHeader { * @return The label string. * */ - private final String name; + private String name; /** * @return The value of the custom header. * */ - private final String value; - - @CustomType.Constructor - private RuleGroupRuleActionCountCustomRequestHandlingInsertHeader( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private RuleGroupRuleActionCountCustomRequestHandlingInsertHeader() {} /** * @return The label string. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleActionCountCustomRequestHandlingInsertHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleActionCountCustomRequestHandlingInsertHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public RuleGroupRuleActionCountCustomRequestHandlingInsertHeader build() { - return new RuleGroupRuleActionCountCustomRequestHandlingInsertHeader(name, value); + } + public RuleGroupRuleActionCountCustomRequestHandlingInsertHeader build() { + final var o = new RuleGroupRuleActionCountCustomRequestHandlingInsertHeader(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleRuleLabel.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleRuleLabel.java index 37ecaea488d..2181ff042ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleRuleLabel.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleRuleLabel.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleRuleLabel { * @return The label string. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleRuleLabel(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleRuleLabel() {} /** * @return The label string. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleRuleLabel defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleRuleLabel defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleRuleLabel build() { - return new RuleGroupRuleRuleLabel(name); + } + public RuleGroupRuleRuleLabel build() { + final var o = new RuleGroupRuleRuleLabel(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatement.java index 75a23ee8f36..2834ba86f8a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatement.java @@ -25,84 +25,59 @@ public final class RuleGroupRuleStatement { * @return A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatement andStatement; + private @Nullable RuleGroupRuleStatementAndStatement andStatement; /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementLabelMatchStatement labelMatchStatement; /** * @return A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatement notStatement; + private @Nullable RuleGroupRuleStatementNotStatement notStatement; /** * @return A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatement orStatement; + private @Nullable RuleGroupRuleStatementOrStatement orStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatement( - @CustomType.Parameter("andStatement") @Nullable RuleGroupRuleStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable RuleGroupRuleStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable RuleGroupRuleStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatement() {} /** * @return A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatement andStatement; private @Nullable RuleGroupRuleStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(RuleGroupRuleStatement defaults) { this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable RuleGroupRuleStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable RuleGroupRuleStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable RuleGroupRuleStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatement build() { - return new RuleGroupRuleStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatement build() { + final var o = new RuleGroupRuleStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatement.java index 6721a9d0790..d7236543f35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatement.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleStatementAndStatement { * @return The statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private RuleGroupRuleStatementAndStatement() {} /** * @return The statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(RuleGroupRuleStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public RuleGroupRuleStatementAndStatement build() { - return new RuleGroupRuleStatementAndStatement(statements); + } + public RuleGroupRuleStatementAndStatement build() { + final var o = new RuleGroupRuleStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatement.java index 632783411bb..0f10e447558 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatement.java @@ -25,84 +25,59 @@ public final class RuleGroupRuleStatementAndStatementStatement { * @return A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatement andStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatement andStatement; /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatement notStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatement notStatement; /** * @return A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatement orStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatement orStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatement( - @CustomType.Parameter("andStatement") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatementAndStatementStatement() {} /** * @return A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatement andStatement; private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(RuleGroupRuleStatementAndStatementStatement defaults) { this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatementAndStatementStatement build() { - return new RuleGroupRuleStatementAndStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatementAndStatementStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatement.java index f51a4be72d7..7827f0eec03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatement { * @return The statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private RuleGroupRuleStatementAndStatementStatementAndStatement() {} /** * @return The statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(RuleGroupRuleStatementAndStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public RuleGroupRuleStatementAndStatementStatementAndStatement build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatement(statements); + } + public RuleGroupRuleStatementAndStatementStatementAndStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatement.java index 71e4fba610b..2b0abbf3dcd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatement() {} /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatement this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatement build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement.java index 681a45d926b..28b95719171 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementB this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 7326917cb8a..52db578cb52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementB this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 66e3b36023a..d8e7587b4f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index bce8af3bd5d..a5b6115ba3e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 903ba265dfb..735d42b1433 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index f90286a6959..17fe06eb5df 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 50f9db6a10a..cac74bf2677 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 0d8e50874df..7fb2245bf39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 307b790ba7e..03556a47dd2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index ba806241256..0fe35619e97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java index 4d763bc2df7..b9a96b14977 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index da09e17027e..2c0e1fc39f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java index b1e8a52498b..62163205689 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 3eba36cc9b8..ec5ff274e34 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementI this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java index 8e07994cea6..e3e5ad9d133 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index f2b86fb13ec..1926f24c9e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementR this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index ff93eadce82..e17b14eae70 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementR this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index eb977d2c248..44f4f2e4c94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 638f6cc4a05..7ace02a530e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index de231ce2b74..7accbb17469 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index cf749d3375a..9b017001d3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 66cfbee2929..85db01c4731 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 245a09a432f..7311fcc9315 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 4437a6d6e56..1baa44fa923 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index b7802eb058d..5672b8ff9c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java index b3dfb45a669..d2b9b9a7d9a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index b978f1b4541..1fc19ea32e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index b79578735f0..d1f0da7e00b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 994b4e8495b..ec5b9ab857c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 27532b66cf0..c90a94d3868 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index b270e7bb010..6a269184f95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 769bd30f097..8fdfe6fc494 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index d9829a31e1c..77eaca98800 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 113ada81699..64f866569f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 26a45ef1b10..3838730ccc4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java index 7fc1a1eccdb..8b8b0261a3b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 9e5e83f55cb..08248481df0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 90a871ae9b0..b0e279deed1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 18975464b5b..140b09df253 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 7270fa5c42f..7be4727aac6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 66528fba670..ac011cb78c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 8d7be3fe857..059b494bb08 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index e5ca424892d..6b152429115 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 00636e42755..fe8b1ca4b88 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 34641564c99..d1edfbb3816 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement.java index 944609c136b..5f60f6db122 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 79fa22aefb4..178a1d22084 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementX this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 4bb1b7b300f..502be310f74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 6a5d5afce33..5d8b57bde19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index e9fafb25881..bfba9abc4c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 653b6d01085..31caf265392 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index b92a7e2a40b..c0d6b42e269 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index d39ef830e3f..62c624f05fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index aea20781214..8997175c320 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 85052968733..fc8fcba6fc7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementAndStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatement.java index bcf18651f58..d588ff0ce42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementAndStatementStatementByteMatchStatement * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatement def this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementByteMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 725be0ed658..0a935e7bddd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementByteMatchStatement * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFiel this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 868fdf53430..190c2e4e477 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 4e78545d909..16721f61f2d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 7fff223f014..88e6c6d6c1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 884af8e7722..998b4471b6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index ebb6c3d3985..a1398531653 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementByteMatchStatement * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 5fdb539f782..3a145040696 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementByteMatchStatement * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index cc1fd8e7621..63bafba802f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation.java index fba51f8881f..becb95993b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementByteMatchStatement * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementGeoMatchStatement.java index ab701f243bd..bb9060e7b0b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementAndStatementStatementGeoMatchStatement * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementAndStatementStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementAndStatementStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementAndStatementStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 2d0ffd59c64..34b2de0fc86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementAndStatementStatementGeoMatchStatementF * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement.java index a767e0a58da..0d489bddb2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementAndStatementStatementIpSetReferenceStat * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index ab688faeefa..57366d49c08 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementAndStatementStatementIpSetReferenceStat * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatemen this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementLabelMatchStatement.java index 6b7a7ed4451..b6b164bb9c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementAndStatementStatementLabelMatchStatemen * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementAndStatementStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementAndStatementStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementAndStatementStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatement.java index e8de3825175..20532c8b54e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatement { * @return The statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private RuleGroupRuleStatementAndStatementStatementNotStatement() {} /** * @return The statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(RuleGroupRuleStatementAndStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public RuleGroupRuleStatementAndStatementStatementNotStatement build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatement(statements); + } + public RuleGroupRuleStatementAndStatementStatementNotStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatement.java index 014aebe4553..8e4e27a5bb6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatement() {} /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatement this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatement build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement.java index c0dd993ad81..aaa82b8bba3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementB this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index c9eb7b53841..c1b4e3333b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementB this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 53404864a7d..0cad25eb78a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 8815bb68794..8c28b9e4e5d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 19fe0dfa477..1f37b051bf1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index b5503216e21..6955412de60 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 4b5a6f09439..e8bca15ba76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index af87377f8d6..43d639657f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 1f0c42e44db..7d0c042c768 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 4d69bd81765..d1612dbdbd8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java index 0ea95c936bd..f7b06fabe37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index cc33b7f8a22..c257ff8d03f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java index 5fb9b9e3357..a0401013a94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index d7eb9244053..92c7034ff6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementI this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java index 177a16dfacd..28555ce2051 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 2454be67f16..142fa03ca9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementR this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index dd5f51a563e..1742bd2fcb7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementR this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 2f142b455b4..6474c66e3a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 3aa5e969460..95b51c2bab9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 9a1e1f15078..7d6d6e21c8d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 91c7e4cd9e4..b7f4b867b24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 3774482d103..e3b021e0bc2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index c5b47c37e52..cb5c33cb963 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index f4aec38ace9..2ecdfb6ca98 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index ca7e8b825a1..610360eb8a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java index 3221badbf13..8f35829aae1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 01382d82f22..f61ef7ffaca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 4352700c357..613a59e4a8e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 3a66c7edb80..03583bad435 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index ece3c6f0f8f..c0ab11344c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index eace7d5d67c..26cd92882fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 8cf19f230e3..9edc0355771 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 1e01d7a410e..513f7c1d6f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index d8bb5c064f4..97cc4baf824 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index f06d0f3621b..b9e983143e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java index 10e93b7d6b8..136076a043a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 78bafd72492..59627718330 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 471be06ddc6..63e65b7dc1a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 15369dccb02..c68e33febbf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 69b82496aa7..3e3ab9e8f45 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 6c426c6d87f..0b46071ce20 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index ac64125b37c..ab3e7da8d1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index ddd9d7c8a36..4e915481ba5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 13c7c7320dc..d70321bc788 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index e3d1cd1e9bb..73855137065 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement.java index 2c5a056cee3..8333843b13f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 8834b2dd0d2..6d3096dbe32 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementX this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 10cbda4cd30..843549dfae4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 609fe545509..062a8c73f5d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index a144e6ea106..334038a5e90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 67ba10f2d83..51b7ace74f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 20a56b5d85e..37db28057c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 4b8a700ccc4..baacf597f95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 746fd027868..bd987063114 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 1894c2da788..3827f24e40e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementNotStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatement.java index 73d87d15b2d..3a00908dfc7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatement { * @return The statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private RuleGroupRuleStatementAndStatementStatementOrStatement() {} /** * @return The statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(RuleGroupRuleStatementAndStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public RuleGroupRuleStatementAndStatementStatementOrStatement build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatement(statements); + } + public RuleGroupRuleStatementAndStatementStatementOrStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatement.java index 8af1710211c..49c8d6fca38 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatement() {} /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatement d this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatement build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement.java index 58a8a562841..cbca83d46e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementBy this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 8b47e49b932..10fc765b2d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementBy this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 90a29ee4ad5..29db5cc6279 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index bf628396d55..84f6ae80e3d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 87d5495b171..ca66e6b6ab8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 8e4b562c7eb..06682193799 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 7fa39bffb38..87641b41d72 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index aedef18c58a..b8e6a454eea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 0df57183ed1..cd84d36e849 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 4c5f7c78758..2599fd3a698 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java index 60604d43f0f..62a08a07794 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 18dce83eb84..f5f95d0b616 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java index f55789c6622..c9227813096 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 1de32689959..f9e3a7a2466 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementIp this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java index 90bc2072b44..64289d184a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index c3d31b8e6e2..fd004d52e5f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRe this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 06ce31d07fd..ce6f9b28d0e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRe this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 6f009eaaf6d..f7ccc5cf7a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 511da3b7055..2f427851fcd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 77c1e6b49ad..ca55fea23a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 03581305858..28bd0de62f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 4a32bd1e7d8..76f39857245 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index d8f2b738d98..216b88b6778 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index b1a322b94bf..f48fa2b5da4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index f94f14d0058..8a0d5b1d373 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java index 10624007206..1f13fda4da3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSi this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index dfcf37da187..cd414e48d7b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSi this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index f1e67a40da6..b923ae272b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 5bd317c09bb..3307ffa0eaa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 9d45d7a3371..e3733be6841 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 5c48b83108e..bb673eadf14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index a5b8d893150..b765ef5463d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 837445fda61..c0a215a903d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index f3593be75d5..cea101d6c70 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index e1ad9bbb964..480cad0ebce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java index ccfde7d0c25..37a2b5a2b47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index ac62486f458..dad3648174e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSq this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 368830e66a8..44d2cd7bcc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index fb2f4dd6aab..b525848a09d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index d4e0fa99426..ace79e8ecae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 9f3192b19bf..ec0dfdb89c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 05cf96eb708..2de6c46df7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 3f3aa5b3d46..d2550b569ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index d68f3100c69..2bb887f7617 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 77a62348430..6eaeb26f68d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement.java index 85bc9e1f709..169b3fb2b6f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 3b6edff8beb..1a17a5efab5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXs this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 829478f9b19..5371f878ed7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index bcb74fe2431..8e78b41b749 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 747caf9dfc2..28b275cd6ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 9b2e33950d1..4e5a4c729e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index f888e6da5f2..81a8cbef5c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 0f4a141d0c9..ebc71b15d33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index f071a36e189..6fb66147e8f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index e5c5fbfdc6a..69f5ee9904a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementOrStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 2261bd30833..3cf4855562f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementAndStatementStatementRegexPatternSetRef * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index efc0fcd69bb..da0ebcc60b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementRegexPatternSetRef * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 0b6f8a809cc..e9bcb372320 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 471cebc65a7..3369387edb7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 1d704a1c046..1adf15fdab2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index e76392434f7..49b49f41424 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 4e90c546b46..ecd75e40af7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementRegexPatternSetRef * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 33ce57134d1..ff83486ac77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementRegexPatternSetRef * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index fd077d88f42..292f9ccedf2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 2556e76c6f5..4bd3ca201a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementRegexPatternSetRef * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement.java index 277a36ebea0..897bff2f54c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementAndStatementStatementSizeConstraintStat * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index ec123c08c93..9482c7da2f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementSizeConstraintStat * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 2b3f5e87667..02367de9d05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 12a52ecebfe..53c1bda5acb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index ba4545b58dd..4772849fc39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 8ff96a7efc6..888b8c5f482 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index f09fd3f1d6f..586052d92ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementSizeConstraintStat * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index cb512cf621a..6d9334d068d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementSizeConstraintStat * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 77052f0d831..5de26993687 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index ebc32373c40..83691ad98e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementSizeConstraintStat * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatement.java index 211800afaa8..b1b82a77ea3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementAndStatementStatementSqliMatchStatement * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 216c750d90c..e3f22e412f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementSqliMatchStatement * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFiel this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 6bb32d3b7af..9c2da3f868c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index df8da8777d1..1ca77ebfe3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 4bf97076458..08e8f21d984 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 5432d754a19..aa769fb9bbe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 48a06b2e37d..3e93bee13d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementSqliMatchStatement * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index c0d65478067..9551a11c902 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementSqliMatchStatement * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 4cc74bc2936..1ef1de14d99 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 42435c64565..907cf745b11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementSqliMatchStatement * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatement.java index 3808046035b..301abfac675 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementAndStatementStatementXssMatchStatement * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementAndStatementStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementAndStatementStatementXssMatchStatement build() { - return new RuleGroupRuleStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementAndStatementStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 2f969b786cc..639322e6b44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementAndStatementStatementXssMatchStatementF * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementField this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 2c385b7192b..56363ccb85a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index ac147c0125a..850c9ae6a4f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 486c269b230..90def82dec5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index dd0964d9991..85e113b06ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 861814d6af5..dc22d6153d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementXssMatchStatementF * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 89627189c34..641d788ed67 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementAndStatementStatementXssMatchStatementF * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index ef31cc621b5..6dfb469dc28 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation.java index 37022bc534f..b772376837a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementAndStatementStatementXssMatchStatementT * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatement.java index b2cb22e62d1..6dd6c686862 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementByteMatchStatement { * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementByteMatchStatement defaults) { this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementByteMatchStatement build() { - return new RuleGroupRuleStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatch.java index 8613c3b3984..9d0698d0ae0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementByteMatchStatementFieldToMatch { * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementByteMatchStatementFieldToMatch defaults) { this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 150b80b4a05..821303e88d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchBody.java index 5f94cedd3fd..0e71fc16499 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod.java index c583776348f..3feff656bad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString.java index b2bed149a3a..0b6f4bc0ef0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader.java index ad9c578060c..5d4a529236f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHea * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index f800388c4f7..c0dd0177690 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQue * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath.java index 7aa76e197f1..0ee4a0849b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementTextTransformation.java index 10ef6f695d1..38073df6819 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementByteMatchStatementTextTransformation { * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementGeoMatchStatement.java index 7c1973ac642..ea05d0dfbec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementGeoMatchStatement { * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig.java index fc902e75e6b..e972fd01264 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig { * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementIpSetReferenceStatement.java index f7e513cdb43..27a13d57b01 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementIpSetReferenceStatement { * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 9012814f29c..24c383ba754 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIp * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConf this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementLabelMatchStatement.java index ec2c2d0dcec..1d35b1064e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementLabelMatchStatement { * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatement.java index 1590a017da7..bba5aaa75f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatement.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleStatementNotStatement { * @return The statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private RuleGroupRuleStatementNotStatement() {} /** * @return The statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(RuleGroupRuleStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public RuleGroupRuleStatementNotStatement build() { - return new RuleGroupRuleStatementNotStatement(statements); + } + public RuleGroupRuleStatementNotStatement build() { + final var o = new RuleGroupRuleStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatement.java index 638bcfc0325..3bdb8cedddb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatement.java @@ -25,84 +25,59 @@ public final class RuleGroupRuleStatementNotStatementStatement { * @return A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatement andStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatement andStatement; /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatement notStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatement notStatement; /** * @return A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatement orStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatement orStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatement( - @CustomType.Parameter("andStatement") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatementNotStatementStatement() {} /** * @return A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatement andStatement; private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(RuleGroupRuleStatementNotStatementStatement defaults) { this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatementNotStatementStatement build() { - return new RuleGroupRuleStatementNotStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatementNotStatementStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatement.java index 2cbb05878d5..ad35902c7fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatement { * @return The statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private RuleGroupRuleStatementNotStatementStatementAndStatement() {} /** * @return The statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(RuleGroupRuleStatementNotStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public RuleGroupRuleStatementNotStatementStatementAndStatement build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatement(statements); + } + public RuleGroupRuleStatementNotStatementStatementAndStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatement.java index 0673508627a..16335946a15 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatement() {} /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatement this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatement build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement.java index d5885ae29d2..e6c34d111a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementB this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index d0a2765f8e1..b4a7893c63b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementB this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index c585c036fdd..b7e414e20aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 647c7574980..0f1e2460e58 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 619e7db9703..3c2d0a77254 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 46e38e41624..acbb44485f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 3991c998b3b..11dfa995756 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 96ed697f65d..f3db5519ed2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 11a8f66d8ed..a9a601bdccc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index cb965120b73..15c9bcde608 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java index 47ab77501de..71e83eec13f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index a280405b778..885b1a93365 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java index ba25e64b958..caf75b0a337 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 9dd712a6f8d..86da576025d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementI this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java index a018088508b..849e51cb2a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index f5ca86f5f31..5792b0a4421 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementR this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index f02be262bfb..6666dceb705 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementR this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 8ab7c6c1aa5..31f85b783e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index dfd0fe140bf..16d83d78378 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 0b2b0e2a846..7a9a76136f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index da65cf3d388..a90988610dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index b5eccfb1770..e364b0372c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index f60d5e5f88a..612d9deb29f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 419e68f2717..a0a6f498c1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index ba52c8c1bae..0be43d0ca84 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java index 5fcb61df266..3a114874bff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index f39fdfc1a1a..154650d5c0d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 16a0f01e922..e33d7f3869f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 88131eda8ec..24996d4ec66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index a4f249c21af..a338b911bc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 9bab0f3a13b..925c29ea74e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 65c9158623b..d7063a9e97b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 1f13c10ce49..84e91d2c660 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 42c183e2919..cce89f6382a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 3a1c4227b90..93cb10dcc5a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java index 8a07b62a64f..158d35afb75 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index be295d60c4d..0c4efcbfac9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 693b1716596..8e48ad9bde8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index a557db8e4fb..941ca1ebf9a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 9909a6cc03a..5faa46f9b72 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index c1e43a67dc8..ddf0da0c449 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 4de3ae3ab61..400ffe0aa45 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index e982b397956..ccf95403877 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index b07748ab113..b3d487eca98 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 8d484930ad1..64eb23ac280 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement.java index 690d35df502..e72f04b485a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 7a7792f9fcd..d7c0f95433e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementX this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 897a16e31aa..d6688652c29 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 0fa615c754a..669377440fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 574ce9a8092..efc5e6c65c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index c4a45264ced..d2b331cf9de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index c996ae64895..f05c196020e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 9af264501bc..b6a4ec18a1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 5a393ec9e34..59805126fbd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 65b95b366d1..3ebaf55d490 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementAndStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatement.java index 29470a98e0c..aae23a18596 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementNotStatementStatementByteMatchStatement * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatement def this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementByteMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch.java index ac07dc91cb8..e8085af3609 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementByteMatchStatement * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFiel this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 7b7f3162a17..247380e7648 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 246a64532a7..3415e641ee8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 12fc93148ab..fda8a0b97f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 252f22ec300..5db924c3c34 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index ab9af58d51d..3a42d6e60d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementByteMatchStatement * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index a102662a109..ad77d8751fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementByteMatchStatement * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 85272b38f13..f81dc7a89d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation.java index eadad4ef4ee..88ab6da637c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementByteMatchStatement * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementGeoMatchStatement.java index 29fd48cba1c..563f513c9af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementNotStatementStatementGeoMatchStatement * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementNotStatementStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementNotStatementStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementNotStatementStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index e45e47f2ae3..0fabaded7b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementNotStatementStatementGeoMatchStatementF * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement.java index 45e2831a3c1..c13a4ade545 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementNotStatementStatementIpSetReferenceStat * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 1b846f834d3..466949ad2ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementNotStatementStatementIpSetReferenceStat * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatemen this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementLabelMatchStatement.java index 2b21b47053b..071a13696f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementNotStatementStatementLabelMatchStatemen * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementNotStatementStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementNotStatementStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementNotStatementStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatement.java index 1d3866970e9..7a4bc2ce6c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatement { * @return The statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private RuleGroupRuleStatementNotStatementStatementNotStatement() {} /** * @return The statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(RuleGroupRuleStatementNotStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public RuleGroupRuleStatementNotStatementStatementNotStatement build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatement(statements); + } + public RuleGroupRuleStatementNotStatementStatementNotStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatement.java index e7873286c85..d9aea7932b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatement() {} /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatement this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatement build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement.java index a0169710580..82f0287a14b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementB this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 545337bc634..75c81e78ff7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementB this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 45345bed043..e2736245bf2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index fc94b557fd2..cbba7949cf8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index c09522d6500..f1846617e9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index e0d9844fe70..90aa7c0794d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index c5dc1a9dcc7..10d5b9d82eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 83b1f887dd4..2fe24d61856 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index d50f7ed7536..69560d7da0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 1d091a39359..190c5797566 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java index 8dae1bfc4bf..1e7e18d5fc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 276e5464adf..d28eccec03f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java index 3f5205fa733..1c864a52af8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 76dc57d030a..275d9584352 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementI this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java index b6d9b21a9ca..dd414df3395 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 8912ebc6837..fee55976b0e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementR this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index bdb8a65ba4a..d6b3e1e021a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementR this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index d922450fb5a..6fe1800454b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 62434bd7ea7..e43b2dcfe05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 24221357def..c4c9dfbe55e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 47d97210446..fa0da59357c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index d993a858c97..c2de433a153 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index f28be53d5c1..5c87ef8b8b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 2d24b80208c..a57d9c38a79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 3b1bfd603c7..0007454048f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java index 3f31a4527c3..b109470e1ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 6dfe8d340ad..3f6af0ec310 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 3de659ee2c2..94a49df49c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 5468e459511..17f4fe5eef3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 81c23b67cc9..9f12a054823 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 98063617904..d043fe2cc3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 0a9ce1ec166..2cec17a60f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index df2ae6e0706..5c308eba0b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index ae9541ca4fa..92c389e5fdd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index c3f7f2b3560..d5793f47c78 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java index 824bff22f78..32ea431839e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index b3fe07995d2..c39dcb2b1d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index dbe5b7f2a69..80212ee0ca4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 2e3b3d6f604..de86f83066f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 49153ff43e9..b602727f9c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 892d3d87bfb..32fffdc9ad5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 6868124f65c..684567fdbad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index b086685fd2d..fc4600c41c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 92cd815ae7b..517096fa0b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index da9f7e88ff9..6334f41adce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement.java index f220fe905b8..452c71b401a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index bb9e6d3eb71..abc2a4f5d93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementX this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index a6ce056e3d4..1031d91ce56 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index a6bf0922f64..5dac3836d6b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 88b56aa1fe5..2be9058b4b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index c1866c2bd45..633c0586040 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 50d903a2906..756cb6f0235 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index b60550b134d..f44a7304f0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 31fce4cfb7f..94b3f7d91cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 73202042a25..bc19ef2ebac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementNotStatementStatem * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatement.java index 1958a9d5d57..adc3f725d13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatement { * @return The statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private RuleGroupRuleStatementNotStatementStatementOrStatement() {} /** * @return The statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(RuleGroupRuleStatementNotStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public RuleGroupRuleStatementNotStatementStatementOrStatement build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatement(statements); + } + public RuleGroupRuleStatementNotStatementStatementOrStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatement.java index 68117796301..28b86ae4a21 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatement() {} /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatement d this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatement build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement.java index b0a7732d3d4..0117318ece1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementBy this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 78bc9035237..c5baf6cf120 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementBy this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 7f545405706..5fedcbdb00b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 1bfec302b8b..e7609d8c2f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 15023d932ae..9a2f1c40c4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index b74f5df1fea..e701c5eab6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 80c1ababef2..641182b81c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 345a78ac23f..e0517963c4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 7941b8e01fb..ec993b5b7ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 7eece07987a..a3a2b7f311a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java index f50f7e3f9fe..63724417554 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 372dd336160..e5c62ed4be3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java index cc3abcaa5ae..f4c009535fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index bd503f9fb63..e2e7da374a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementIp this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java index 0a2996f1f70..b27cb009c37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 2f835308bca..ab8c47b8bdb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRe this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 555b78e5610..1eed356771c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRe this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 5f49229df24..268cd9d1e1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 05fcfad034e..d7dd9bfac9f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 1ef3a99d7d5..fde652f5d61 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 1ded3ff281f..8804ce03f3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index c8f50032b26..9c6d69b67e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index a519db11f02..8832b68a532 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index b0febb2596a..1b163975a8a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 7ca5a345a8a..cb5ab14defc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java index 0e990b8d7b4..9006ddecea3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSi this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index f791e6643a5..b7c88da2eca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSi this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 567dc1d5112..05b3285c980 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index ae0d35b2c79..b60620fd355 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 22a65300523..266021b85bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 5538ce902a7..2b99418b33c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index b59bf74bd01..d24d29f74ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index e5781252fe7..f2f11e9dbb1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 75b3a3cc41b..20fbec3f127 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index e28d6f6bdc9..3e431183e17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java index 0e994673f23..e5d4d147b5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index bf00b4855a8..cca84fd3c10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSq this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index e7b2779e08a..b913c8628e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 053068a064a..25c08e08906 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index dc521bf014b..d28751339b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 4e6330f903f..61cb8a6044e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index bc6015885c7..00a20ced59d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 4e7f6d3188f..f333cafe619 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 238a9b4e080..6b70650467d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index f715c3e0613..d540ac5ee32 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement.java index 3270790dd53..e2406c8432a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index e1698f0a215..d1ae5f4d31f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXs this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 67df70f0c4a..f3f9367a9f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index fa7252fc141..b4814648392 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 997a6e1d699..018b57ec5b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index a9b2c40ec7b..d4e03c484ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index c33a858b57d..1607d6a705f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index a592933396f..5571f9d624a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 99a5f8f0b2e..057186a592f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 8387529e530..da97a793397 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementOrStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 5736ef1ef6f..d4fd7182b0b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementNotStatementStatementRegexPatternSetRef * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 905c22797bc..e0272aa876c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementRegexPatternSetRef * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 4ad05a4afb0..5fd2e943c02 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 6ba86465b77..7652bebc7fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 05df71864a3..a7b0ac921d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 3b731b7e60d..d148eb704fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 6fbd64cb98d..dd239a19c97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementRegexPatternSetRef * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index dea2621a693..32de1551a71 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementRegexPatternSetRef * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 39a11de70ba..274cb1a3c75 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 9c243b48255..22b3166a249 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementRegexPatternSetRef * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement.java index 761eb89a724..75b3505dd0a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementNotStatementStatementSizeConstraintStat * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 9edcf9d6939..042f6ac28a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementSizeConstraintStat * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 018c238fefa..3f2b0298b54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 5f1f8cfd197..33d25b37174 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index ee30a7ab7d0..3fcfe130f13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index d576ac8972a..e5af13099b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index e95edd8acc7..043dd5828fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementSizeConstraintStat * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index a90fae68c50..34d05c70a67 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementSizeConstraintStat * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index e0dcd74267f..4a5476bd78c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 2c9d561e37a..a4b92a1c60e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementSizeConstraintStat * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatement.java index 86201c491a2..9dfdea691bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementNotStatementStatementSqliMatchStatement * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index f1ea2f89c35..029c9b2a878 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementSqliMatchStatement * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFiel this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 1bd10b947e3..e26d16ad784 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 64b212f603c..235967e28e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 794029a8f07..622233c58c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 6cace68425f..a196a4fc08b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 0f0b654a795..2b591fb50a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementSqliMatchStatement * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 8be1b3d570c..b78bfda67b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementSqliMatchStatement * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index dd8535a2c2b..2a6d745f43e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation.java index 51265e6dad6..d88c339f6a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementSqliMatchStatement * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatement.java index 0fcc8b687ef..7857a2857c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementNotStatementStatementXssMatchStatement * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementNotStatementStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementNotStatementStatementXssMatchStatement build() { - return new RuleGroupRuleStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementNotStatementStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch.java index a841b4753a4..a76e7613dff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementNotStatementStatementXssMatchStatementF * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementField this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 47093fac9f0..757b2ac6892 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index fc0a45c93f6..98b5337614b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 17762bfcbb3..1e8971039d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 6a81f51b2ba..715ad260123 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 032263b3312..803fd607457 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementXssMatchStatementF * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index ca830fc4015..a53b6ea15c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementNotStatementStatementXssMatchStatementF * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 084ecebef4f..9b6c7cf5f0a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation.java index 4cb728339ec..448de7fd76d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementNotStatementStatementXssMatchStatementT * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatement.java index 95f69c2ce89..ace8ad44f4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatement.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleStatementOrStatement { * @return The statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private RuleGroupRuleStatementOrStatement() {} /** * @return The statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(RuleGroupRuleStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public RuleGroupRuleStatementOrStatement build() { - return new RuleGroupRuleStatementOrStatement(statements); + } + public RuleGroupRuleStatementOrStatement build() { + final var o = new RuleGroupRuleStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatement.java index 78e205e1eb1..d4b505cf930 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatement.java @@ -25,84 +25,59 @@ public final class RuleGroupRuleStatementOrStatementStatement { * @return A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatement andStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatement andStatement; /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return A logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatement notStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatement notStatement; /** * @return A logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatement orStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatement orStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatement( - @CustomType.Parameter("andStatement") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatementOrStatementStatement() {} /** * @return A logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatement andStatement; private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(RuleGroupRuleStatementOrStatementStatement defaults) { this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatementOrStatementStatement build() { - return new RuleGroupRuleStatementOrStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatementOrStatementStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatement.java index 7b63ddc1ad9..78cd947e042 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatement { * @return The statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private RuleGroupRuleStatementOrStatementStatementAndStatement() {} /** * @return The statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(RuleGroupRuleStatementOrStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public RuleGroupRuleStatementOrStatementStatementAndStatement build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatement(statements); + } + public RuleGroupRuleStatementOrStatementStatementAndStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatement.java index 6a46d58c22d..7fb0402fc44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatement() {} /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatement d this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatement build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement.java index 9a08eb2a8ce..43a04cdd27c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementBy this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 62134a8e300..eedd8ee6ac2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementBy this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index c4da0bbe6c0..4d0de32a07f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 8b69f782700..4793f9e8528 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 308c129a43b..a2c34669b0e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 8d8dbe869e6..625e33f2676 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 4ae38ef6ec3..c5e0cdab7c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 51768814e51..82a24e4f5c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 33ffb0857e1..7c41740c653 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 40f5a7f60f2..c97a0960af6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java index 44f7695df87..9df9f99a6f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 5d05e635442..2c8b3c2d6ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java index c9c759eabf4..c6c97c08d2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 352898447e1..01576f8aacf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementIp this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java index 1f11ffd2e36..6ee9394baa1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 285d5e8ca0d..718730ff45c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRe this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index b46981b6e1f..aeaa84d867a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRe this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 33701013ebb..8e301df158e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 85043646567..ff3af39533b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index ece49cb0a9e..1524c2ba61c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index d8fe4e78187..7351ead28d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 97d053b05f7..98c8f8aa1ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 09d2c32ba3f..0b80ddd920e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index c8f100005a2..8725c056e04 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index daeca1d1b90..ac8e9ddf464 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java index 2c7ae2de420..ac64f177d4e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSi this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 48ac66a3412..9ce8116c725 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSi this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 1aade626586..df8724ae77b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 2571107f777..5c7e5eae938 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index a05341c0300..a09b938b4e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 46edaf4a85b..5eadb62fd77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index b0bd83b8345..8eb0d6cd32a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index aba2e548775..aa8e8f5df74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 41b14b00555..4986dca4af5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 5ee70935587..da37c946b2c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java index 8a2835d598d..832643fd742 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index bc3954edf42..085ecd40b43 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSq this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index ec064a182cf..b8e5e575494 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index a733df2affb..1da459b24fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 0125697e8a4..07ccb09a4fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index c3115c632bc..fbe6586e69e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 38f4bb5f3f3..e045de85b6b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 7f7db77d3e8..a355d5c17b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index db11daac718..61f21862628 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index b6368b5c66a..ccb19c44a07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement.java index 385538b66af..ef419817ef6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 6bd173fc3a2..aa7bb4c0df2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXs this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index bc14e89a7de..2ba996cc14e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 2e233d0bc76..0db6e03f8bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 09aa2ff27d3..11935d24239 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 80f90926ead..506a41575b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 022ffb85881..984dec9dc4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index bd8f82c6f75..c5516b8cd29 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index b14ba480818..1dff2ffd514 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index a3d0471fb57..7d55e761816 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementAndStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatement.java index 33e78aa4a8a..0262d0317ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementOrStatementStatementByteMatchStatement * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatement defa this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementByteMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 90714494761..1742db702e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementByteMatchStatementF * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementField this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index f961f01cc29..210005584a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index fd0d8b225f3..13100434382 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 08601a24efb..ad80a53e005 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 138ab53b3e3..9ad97c8f7b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 250415c0a94..2b69fff16c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementByteMatchStatementF * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 9218ef057ff..453d8621a68 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementByteMatchStatementF * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index ef4d9fb0374..0f5fc10aa4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation.java index 345fa8d3c5c..ffaa3fdb454 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementByteMatchStatementT * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementGeoMatchStatement.java index a20530bf20e..eb37ee2ecd5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementOrStatementStatementGeoMatchStatement { * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementOrStatementStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementOrStatementStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementOrStatementStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index c8182002222..75a8b944824 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementOrStatementStatementGeoMatchStatementFo * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement.java index 3b6ae3825e4..114837c08cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementOrStatementStatementIpSetReferenceState * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 699ecf1bd7c..2203cbd1430 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementOrStatementStatementIpSetReferenceState * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatement this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementLabelMatchStatement.java index c063f2967b5..6f76169ff4e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementOrStatementStatementLabelMatchStatement * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementOrStatementStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementOrStatementStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementOrStatementStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatement.java index 9f6fe9f4fa8..6a7f6a0fec9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatement { * @return The statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private RuleGroupRuleStatementOrStatementStatementNotStatement() {} /** * @return The statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(RuleGroupRuleStatementOrStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public RuleGroupRuleStatementOrStatementStatementNotStatement build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatement(statements); + } + public RuleGroupRuleStatementOrStatementStatementNotStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatement.java index 1df687a4e07..3285bc541fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatement() {} /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatement d this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatement build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement.java index cd43e836919..b31324351af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementBy this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 90217f5be8d..4f1e90e6d9b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementBy this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 4347adf2322..5c11dbc80c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 0d831db5a35..50c8c571b03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 65d53489fcf..861f2b52294 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index a8a196dda61..2d4e5bc847e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 1ae0afc2a56..63431dd8c6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index f5bf7e1a276..ee5724c1c8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index e5d5ca71017..6d44889eeab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index f824d270a5d..ca37a85606c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java index 697ac6ab622..cbc14e8b9b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 333b1027276..f26a125696c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java index 89e88dc0e6b..14c4f41a173 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index a57f839b868..9379860b858 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementIp this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java index c828928b08c..dffd165fce1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index f4c938c753f..2c563ec77b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRe this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index cf70d6d34cc..7d518badb5b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRe this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 61ce68a7d55..98665d107a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 79ce270848c..c254ac42345 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 402dfd84b59..68ce9bcb4b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 64276379332..37e49aaf76c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 6e322d880a1..57c9af45b74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index a412bd200af..39c7f4c7510 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 88d18be646f..afa5bda9794 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index d5ccd043e8d..836d4a24707 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java index b1baa4cd904..813bd0b83c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSi this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 298ada2afb4..a019d86834c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSi this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 1bb538f0f14..73f4799621a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 18eb304a39b..b15c351e6d3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index ffe4a42aab0..85d9199b95f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index ef9966743a6..02ccae01c0b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 4bb41ab8e12..d2406b489a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index d211f6b8281..d962cf6c083 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 564eac1b340..2d98f203aaa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index fa5a43aa650..b9aeacb4513 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java index ffc02fe05a0..75faf56d307 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 474b4384457..5aaac04d4df 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSq this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index f19b65f25cf..e5033261f46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 38a30a15804..926f33db45d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 59415d69340..7a09550a577 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 16f5e7cc383..2ea13657761 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index ddccf537be2..3bfb2b10fd9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index cd6f0e67cbf..e7e73c92450 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 9a4f5014b34..9702cb9c8b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index 2b24cd36da5..b267f307c82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement.java index 67b8783d7d4..f03a462619c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index a9333a41e82..bc93870ddc5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXs this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 10e7f5aa53e..658274a9933 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 5aed989a2d4..69c6a27a7ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 7521cbf8917..07867949e59 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 7cc7751a275..49652dcf8c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 7a87bca029c..5c6001671d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index a2695a1c78f..b1cca548004 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index cf8f52b5164..f5ab3c3f37c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 0e90468d27a..f0d6a127cad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementNotStatementStateme * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatement.java index 7ba6613be52..630b12784c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatement { * @return The statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private RuleGroupRuleStatementOrStatementStatementOrStatement() {} /** * @return The statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(RuleGroupRuleStatementOrStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public RuleGroupRuleStatementOrStatementStatementOrStatement build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatement(statements); + } + public RuleGroupRuleStatementOrStatementStatementOrStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatement.java index dc0fda5399b..854e9e8bafa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return A rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return A rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return A rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatement() {} /** * @return A rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatement de this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatement build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement.java index 5ede21f8c76..05e213c9267 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 23b3099a2c7..b904d37f604 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 3734f210153..d31819db35f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 1c6def916ec..8eba54e4665 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 104605e2d59..6062844064c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index e41e9758727..86ccbb09bb0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 6104ee7b313..f11a38a2155 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 09560391003..d2bbea6f908 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index cba437a2312..d9e264286d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index a7b995fc328..aced553605b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java index 7924215f660..edfbf30fdd9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return An array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 4c36bc5254e..c0daf78c4d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java index 2a02e0b4b83..bcf7490bf8a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 6d8feb33c4d..941d28d002f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - The name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java index b2c2e22c25f..ca6f45c8d1c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The string to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return The string to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index fdab068b328..a67e6737cbd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementReg this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 6d2385466d6..1ce8f66bedb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementReg this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 121aa5b7f55..92853925d9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index b95d03a0384..10160c9a6d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 8da2a2b8a58..a30d91950b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index dc9a4c67083..4d1937ed7c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 8889d6cdf21..4957283dc27 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index f24467accc7..8df3a5b332d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 1a9c0246734..98a65f0311d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 5cf62a4f999..5f5ac84a6f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java index d990b785007..d3677c3e828 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSiz this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 0298981368b..1155301e532 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSiz this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index daf1a3fcf4a..025c3dc550c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 6cd67183996..06b086920c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index fcf1a64d8c1..6139a4bf2d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 61eca587278..61d7f55191f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index cb1423515bf..ab09f2e3594 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 6c0a976cd0a..dd80add0665 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index b6353118672..54606c9d411 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index f4ec438933e..fbff1cc2b10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java index fc82b0a3456..5bb43ce31b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index 65ff309bd85..abeea916054 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSql this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 49a69afaa0d..d32d4cda957 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 5f492ecbb30..25863062231 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index cd8d1a0b6e5..e73c6b249a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 6a9e73f31f5..631b45a09f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 99d8c160f84..110a38c8e24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 15c45048ff9..72fa6a62fe6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 3671774ce37..3916daf9c76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 9a604c3bcf8..3495909bb39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement.java index 304d9f0a1f8..410e2fce57f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 31d5055f36a..eae5980e5a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXss this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index f4123efe526..f5f52a3164c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index f10c806faa0..a1947e6f6a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index a90ab5bc598..7d7e6b23bd0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 21be6d31e45..b1dee8ff1cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 242a48205e7..a834da1e497 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index f712c1587fd..ae57913cd0e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 4043120292d..e5ea0ca6e8b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 799334a15ad..32f59b256be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementOrStatementStatemen * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement.java index fd9b77e7ae5..47e344f2c45 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementOrStatementStatementRegexPatternSetRefe * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenc this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index d952425c6ec..cb73295b3cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementRegexPatternSetRefe * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenc this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index f46aab5aff8..b1956a53c8d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 813510d8496..9393a761c00 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 175b6fcf8a5..8709ead47fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 3e63bf11bdd..951f2f9d902 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 6fb474278df..9d50647935c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementRegexPatternSetRefe * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 5d665e6cceb..e553a3a64a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementRegexPatternSetRefe * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 3222526c395..3de72fe210a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 4f28ef40734..03a01918c27 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementRegexPatternSetRefe * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement.java index 81b8b0a9461..a59f4690c76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementOrStatementStatementSizeConstraintState * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 8d0aff2d55d..3f25185f07a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementSizeConstraintState * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatement this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 72698967852..c7a84790b7c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 12cbef518ba..60f6dc94bb6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index df42fd3ef76..06329fa262b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 02d21ff9d80..d73c8bc7f1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index f24bbf77612..afdc3f126db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementSizeConstraintState * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 5432ad579e8..e81229ba41b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementSizeConstraintState * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index a63123b4460..66e492b81f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index ff0581c4e4a..e899bfc9a90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementSizeConstraintState * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatement.java index ea4827f910a..a27602efef7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementOrStatementStatementSqliMatchStatement * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index e86ceeb1359..a33edb853c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementSqliMatchStatementF * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementField this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 2582dd25d48..c653531807b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 33c071ce731..a8ac8289726 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 5bbd19813ad..0a4bbd37d86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index c40aa177885..37251d1b0e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 085a99594a3..c2646b78cb5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementSqliMatchStatementF * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 2bea4dbea1b..a6919699fbd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementSqliMatchStatementF * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index b76eb0d7c04..19c0d2ece14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation.java index e1fe7c8a41c..f1d8fd13a89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementSqliMatchStatementT * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatement.java index b6b228b0e58..e1f0f0c67f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementOrStatementStatementXssMatchStatement { * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementOrStatementStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementOrStatementStatementXssMatchStatement build() { - return new RuleGroupRuleStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementOrStatementStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 20bc6654955..1784af10171 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementOrStatementStatementXssMatchStatementFi * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldT this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index ffbae903c03..5a625d5db6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index c8d84672b35..a75bc05bbc4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index a31cba73e36..99ddc72d28b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 2d7ab7b4bb1..6cfae069827 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index a0aee9e7043..b701396e791 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementXssMatchStatementFi * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index b3ad9f651e9..06a88d5bdee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementOrStatementStatementXssMatchStatementFi * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 1c14a96557c..5ce6b7fd67d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation.java index 1e76a982da4..3d9f62484fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementOrStatementStatementXssMatchStatementTe * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatement.java index d6d99045fdc..67470ae8d81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class RuleGroupRuleStatementRegexPatternSetReferenceStatement { * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatement defaults) this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementRegexPatternSetReferenceStatement build() { - return new RuleGroupRuleStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementRegexPatternSetReferenceStatement build() { + final var o = new RuleGroupRuleStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch.java index f2e2f09551a..b79fa23f294 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldT * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMat this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 14e54814e4f..2291c79bf63 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 99e698c3e0c..4b245a29ea6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 820ae5b8f7e..cf35403bcd8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 722cbf733ff..4786cbe36f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 23a77ffa255..a9a2768cde1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldT * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 04952cbecae..f53ee7593bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldT * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index f5fe28c58ca..1ef7eaf50fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation.java index 13f67418ce6..d941e57de77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTr * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatement.java index 15432361bff..6489cc6e02e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class RuleGroupRuleStatementSizeConstraintStatement { * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return The size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementSizeConstraintStatement() {} /** * @return The operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(RuleGroupRuleStatementSizeConstraintStatement defaults) { this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementSizeConstraintStatement build() { - return new RuleGroupRuleStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public RuleGroupRuleStatementSizeConstraintStatement build() { + final var o = new RuleGroupRuleStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatch.java index 33f168ef5fe..87af77390b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementSizeConstraintStatementFieldToMatch { * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatch default this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementSizeConstraintStatementFieldToMatch build() { - return new RuleGroupRuleStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementSizeConstraintStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 897e7a82dca..1606963b61d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody.java index ea500b7f52c..f001acaa875 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod.java index d1124d4f662..03b62c9ebfb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString.java index 2e835251a83..e354ed25bf9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 64308e9b0c8..26b920f5504 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSing * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index cae07f20aa9..765405a4688 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSing * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath.java index 98eebb42982..857f80ff462 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementTextTransformation.java index f8c302fce2d..252a5b5419f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementSizeConstraintStatementTextTransformati * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementSizeConstraintStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementSizeConstraintStatementTextTransformation build() { - return new RuleGroupRuleStatementSizeConstraintStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementSizeConstraintStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatement.java index 2f2e4e1f009..1afb1e26f1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementSqliMatchStatement { * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementSqliMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementSqliMatchStatement build() { - return new RuleGroupRuleStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementSqliMatchStatement build() { + final var o = new RuleGroupRuleStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatch.java index 058cd8d78a2..a19eb3341ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementSqliMatchStatementFieldToMatch { * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatch defaults) { this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementSqliMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementSqliMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 1c69a259975..f8efaa490f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody.java index 40ff0256ceb..0f2ee0e8139 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod.java index b8b2c5a97db..c21b79b10b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString.java index 006db49586b..495117b1cfe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader.java index 8e9b483a32f..dc7e6a8f472 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHea * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index bcf65778457..437cee924c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQue * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath.java index db1a0e83900..a6f7510ed0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementTextTransformation.java index 037c05be20e..d979307fb95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementSqliMatchStatementTextTransformation { * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementSqliMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementSqliMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementSqliMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementSqliMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatement.java index b9b2ddc0717..909fa91f188 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class RuleGroupRuleStatementXssMatchStatement { * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private RuleGroupRuleStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private RuleGroupRuleStatementXssMatchStatement() {} /** * @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(RuleGroupRuleStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public RuleGroupRuleStatementXssMatchStatement build() { - return new RuleGroupRuleStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public RuleGroupRuleStatementXssMatchStatement build() { + final var o = new RuleGroupRuleStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatch.java index ec2465b6722..66364119a2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class RuleGroupRuleStatementXssMatchStatementFieldToMatch { * @return Inspect all query arguments. * */ - private final @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchBody body; + private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private RuleGroupRuleStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath uriPath; + private RuleGroupRuleStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(RuleGroupRuleStatementXssMatchStatementFieldToMatch defaults) { this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public RuleGroupRuleStatementXssMatchStatementFieldToMatch build() { - return new RuleGroupRuleStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public RuleGroupRuleStatementXssMatchStatementFieldToMatch build() { + final var o = new RuleGroupRuleStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments.java index f4ad36fee9d..cc9de79448e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new RuleGroupRuleStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchBody.java index 7d72cd16431..43399a13282 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private RuleGroupRuleStatementXssMatchStatementFieldToMatchBody() { - } - + private RuleGroupRuleStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementXssMatchStatementFieldToMatchBody build() { - return new RuleGroupRuleStatementXssMatchStatementFieldToMatchBody(); + final var o = new RuleGroupRuleStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod.java index bc08b5ead99..98ecdb6c0ed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod() { - } - + private RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod build() { - return new RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod(); + final var o = new RuleGroupRuleStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString.java index 158ebe23373..a6d10f8ae55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString() { - } - + private RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString build() { - return new RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new RuleGroupRuleStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader.java index 9f4bc06f1c4..7d48f053c30 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHead * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 33b13acfb65..6d4150ce775 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQuer * @return The name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return The name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new RuleGroupRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath.java index ff820c0e74d..ac18da619bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath() { - } - + private RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath build() { - return new RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new RuleGroupRuleStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementTextTransformation.java index e1870177b4c..fd4da057f26 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class RuleGroupRuleStatementXssMatchStatementTextTransformation { * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return The transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private RuleGroupRuleStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private RuleGroupRuleStatementXssMatchStatementTextTransformation() {} /** * @return The relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public RuleGroupRuleStatementXssMatchStatementTextTransformation build() { - return new RuleGroupRuleStatementXssMatchStatementTextTransformation(priority, type); + } + public RuleGroupRuleStatementXssMatchStatementTextTransformation build() { + final var o = new RuleGroupRuleStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleVisibilityConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleVisibilityConfig.java index 84326ca533f..ee841c7a07c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleVisibilityConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupRuleVisibilityConfig.java @@ -14,28 +14,19 @@ public final class RuleGroupRuleVisibilityConfig { * @return A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). * */ - private final Boolean cloudwatchMetricsEnabled; + private Boolean cloudwatchMetricsEnabled; /** * @return A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. * */ - private final String metricName; + private String metricName; /** * @return A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. * */ - private final Boolean sampledRequestsEnabled; - - @CustomType.Constructor - private RuleGroupRuleVisibilityConfig( - @CustomType.Parameter("cloudwatchMetricsEnabled") Boolean cloudwatchMetricsEnabled, - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("sampledRequestsEnabled") Boolean sampledRequestsEnabled) { - this.cloudwatchMetricsEnabled = cloudwatchMetricsEnabled; - this.metricName = metricName; - this.sampledRequestsEnabled = sampledRequestsEnabled; - } + private Boolean sampledRequestsEnabled; + private RuleGroupRuleVisibilityConfig() {} /** * @return A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(RuleGroupRuleVisibilityConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean cloudwatchMetricsEnabled; private String metricName; private Boolean sampledRequestsEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupRuleVisibilityConfig defaults) { Objects.requireNonNull(defaults); this.cloudwatchMetricsEnabled = defaults.cloudwatchMetricsEnabled; @@ -82,19 +69,27 @@ public Builder(RuleGroupRuleVisibilityConfig defaults) { this.sampledRequestsEnabled = defaults.sampledRequestsEnabled; } + @CustomType.Setter public Builder cloudwatchMetricsEnabled(Boolean cloudwatchMetricsEnabled) { this.cloudwatchMetricsEnabled = Objects.requireNonNull(cloudwatchMetricsEnabled); return this; } + @CustomType.Setter public Builder metricName(String metricName) { this.metricName = Objects.requireNonNull(metricName); return this; } + @CustomType.Setter public Builder sampledRequestsEnabled(Boolean sampledRequestsEnabled) { this.sampledRequestsEnabled = Objects.requireNonNull(sampledRequestsEnabled); return this; - } public RuleGroupRuleVisibilityConfig build() { - return new RuleGroupRuleVisibilityConfig(cloudwatchMetricsEnabled, metricName, sampledRequestsEnabled); + } + public RuleGroupRuleVisibilityConfig build() { + final var o = new RuleGroupRuleVisibilityConfig(); + o.cloudwatchMetricsEnabled = cloudwatchMetricsEnabled; + o.metricName = metricName; + o.sampledRequestsEnabled = sampledRequestsEnabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupVisibilityConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupVisibilityConfig.java index ef3a51230d9..77621118ba6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupVisibilityConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/RuleGroupVisibilityConfig.java @@ -14,28 +14,19 @@ public final class RuleGroupVisibilityConfig { * @return A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). * */ - private final Boolean cloudwatchMetricsEnabled; + private Boolean cloudwatchMetricsEnabled; /** * @return A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. * */ - private final String metricName; + private String metricName; /** * @return A boolean indicating whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. * */ - private final Boolean sampledRequestsEnabled; - - @CustomType.Constructor - private RuleGroupVisibilityConfig( - @CustomType.Parameter("cloudwatchMetricsEnabled") Boolean cloudwatchMetricsEnabled, - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("sampledRequestsEnabled") Boolean sampledRequestsEnabled) { - this.cloudwatchMetricsEnabled = cloudwatchMetricsEnabled; - this.metricName = metricName; - this.sampledRequestsEnabled = sampledRequestsEnabled; - } + private Boolean sampledRequestsEnabled; + private RuleGroupVisibilityConfig() {} /** * @return A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(RuleGroupVisibilityConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean cloudwatchMetricsEnabled; private String metricName; private Boolean sampledRequestsEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(RuleGroupVisibilityConfig defaults) { Objects.requireNonNull(defaults); this.cloudwatchMetricsEnabled = defaults.cloudwatchMetricsEnabled; @@ -82,19 +69,27 @@ public Builder(RuleGroupVisibilityConfig defaults) { this.sampledRequestsEnabled = defaults.sampledRequestsEnabled; } + @CustomType.Setter public Builder cloudwatchMetricsEnabled(Boolean cloudwatchMetricsEnabled) { this.cloudwatchMetricsEnabled = Objects.requireNonNull(cloudwatchMetricsEnabled); return this; } + @CustomType.Setter public Builder metricName(String metricName) { this.metricName = Objects.requireNonNull(metricName); return this; } + @CustomType.Setter public Builder sampledRequestsEnabled(Boolean sampledRequestsEnabled) { this.sampledRequestsEnabled = Objects.requireNonNull(sampledRequestsEnabled); return this; - } public RuleGroupVisibilityConfig build() { - return new RuleGroupVisibilityConfig(cloudwatchMetricsEnabled, metricName, sampledRequestsEnabled); + } + public RuleGroupVisibilityConfig build() { + final var o = new RuleGroupVisibilityConfig(); + o.cloudwatchMetricsEnabled = cloudwatchMetricsEnabled; + o.metricName = metricName; + o.sampledRequestsEnabled = sampledRequestsEnabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclCustomResponseBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclCustomResponseBody.java index 76c48fcfce1..172eb78454b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclCustomResponseBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclCustomResponseBody.java @@ -13,28 +13,19 @@ public final class WebAclCustomResponseBody { * @return Payload of the custom response. * */ - private final String content; + private String content; /** * @return Type of content in the payload that you are defining in the `content` argument. Valid values are `TEXT_PLAIN`, `TEXT_HTML`, or `APPLICATION_JSON`. * */ - private final String contentType; + private String contentType; /** * @return Unique key identifying the custom response body. This is referenced by the `custom_response_body_key` argument in the Custom Response block. * */ - private final String key; - - @CustomType.Constructor - private WebAclCustomResponseBody( - @CustomType.Parameter("content") String content, - @CustomType.Parameter("contentType") String contentType, - @CustomType.Parameter("key") String key) { - this.content = content; - this.contentType = contentType; - this.key = key; - } + private String key; + private WebAclCustomResponseBody() {} /** * @return Payload of the custom response. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclCustomResponseBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String content; private String contentType; private String key; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclCustomResponseBody defaults) { Objects.requireNonNull(defaults); this.content = defaults.content; @@ -81,19 +68,27 @@ public Builder(WebAclCustomResponseBody defaults) { this.key = defaults.key; } + @CustomType.Setter public Builder content(String content) { this.content = Objects.requireNonNull(content); return this; } + @CustomType.Setter public Builder contentType(String contentType) { this.contentType = Objects.requireNonNull(contentType); return this; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; - } public WebAclCustomResponseBody build() { - return new WebAclCustomResponseBody(content, contentType, key); + } + public WebAclCustomResponseBody build() { + final var o = new WebAclCustomResponseBody(); + o.content = content; + o.contentType = contentType; + o.key = key; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultAction.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultAction.java index e2fe0738897..bbecabc8284 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultAction.java @@ -16,21 +16,14 @@ public final class WebAclDefaultAction { * @return Specifies that AWS WAF should allow requests by default. See Allow below for details. * */ - private final @Nullable WebAclDefaultActionAllow allow; + private @Nullable WebAclDefaultActionAllow allow; /** * @return Specifies that AWS WAF should block requests by default. See Block below for details. * */ - private final @Nullable WebAclDefaultActionBlock block; - - @CustomType.Constructor - private WebAclDefaultAction( - @CustomType.Parameter("allow") @Nullable WebAclDefaultActionAllow allow, - @CustomType.Parameter("block") @Nullable WebAclDefaultActionBlock block) { - this.allow = allow; - this.block = block; - } + private @Nullable WebAclDefaultActionBlock block; + private WebAclDefaultAction() {} /** * @return Specifies that AWS WAF should allow requests by default. See Allow below for details. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclDefaultAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclDefaultActionAllow allow; private @Nullable WebAclDefaultActionBlock block; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclDefaultAction defaults) { Objects.requireNonNull(defaults); this.allow = defaults.allow; this.block = defaults.block; } + @CustomType.Setter public Builder allow(@Nullable WebAclDefaultActionAllow allow) { this.allow = allow; return this; } + @CustomType.Setter public Builder block(@Nullable WebAclDefaultActionBlock block) { this.block = block; return this; - } public WebAclDefaultAction build() { - return new WebAclDefaultAction(allow, block); + } + public WebAclDefaultAction build() { + final var o = new WebAclDefaultAction(); + o.allow = allow; + o.block = block; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionAllow.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionAllow.java index 3a01f062a5c..987a6a033bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionAllow.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionAllow.java @@ -15,13 +15,9 @@ public final class WebAclDefaultActionAllow { * @return Defines custom handling for the web request. See Custom Request Handling below for details. * */ - private final @Nullable WebAclDefaultActionAllowCustomRequestHandling customRequestHandling; - - @CustomType.Constructor - private WebAclDefaultActionAllow(@CustomType.Parameter("customRequestHandling") @Nullable WebAclDefaultActionAllowCustomRequestHandling customRequestHandling) { - this.customRequestHandling = customRequestHandling; - } + private @Nullable WebAclDefaultActionAllowCustomRequestHandling customRequestHandling; + private WebAclDefaultActionAllow() {} /** * @return Defines custom handling for the web request. See Custom Request Handling below for details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(WebAclDefaultActionAllow defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclDefaultActionAllowCustomRequestHandling customRequestHandling; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclDefaultActionAllow defaults) { Objects.requireNonNull(defaults); this.customRequestHandling = defaults.customRequestHandling; } + @CustomType.Setter public Builder customRequestHandling(@Nullable WebAclDefaultActionAllowCustomRequestHandling customRequestHandling) { this.customRequestHandling = customRequestHandling; return this; - } public WebAclDefaultActionAllow build() { - return new WebAclDefaultActionAllow(customRequestHandling); + } + public WebAclDefaultActionAllow build() { + final var o = new WebAclDefaultActionAllow(); + o.customRequestHandling = customRequestHandling; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionAllowCustomRequestHandling.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionAllowCustomRequestHandling.java index ae64b7fa649..e421925560b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionAllowCustomRequestHandling.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionAllowCustomRequestHandling.java @@ -14,13 +14,9 @@ public final class WebAclDefaultActionAllowCustomRequestHandling { * @return The `insert_header` blocks used to define HTTP headers added to the request. See Custom HTTP Header below for details. * */ - private final List insertHeaders; - - @CustomType.Constructor - private WebAclDefaultActionAllowCustomRequestHandling(@CustomType.Parameter("insertHeaders") List insertHeaders) { - this.insertHeaders = insertHeaders; - } + private List insertHeaders; + private WebAclDefaultActionAllowCustomRequestHandling() {} /** * @return The `insert_header` blocks used to define HTTP headers added to the request. See Custom HTTP Header below for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclDefaultActionAllowCustomRequestHandling defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List insertHeaders; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclDefaultActionAllowCustomRequestHandling defaults) { Objects.requireNonNull(defaults); this.insertHeaders = defaults.insertHeaders; } + @CustomType.Setter public Builder insertHeaders(List insertHeaders) { this.insertHeaders = Objects.requireNonNull(insertHeaders); return this; } public Builder insertHeaders(WebAclDefaultActionAllowCustomRequestHandlingInsertHeader... insertHeaders) { return insertHeaders(List.of(insertHeaders)); - } public WebAclDefaultActionAllowCustomRequestHandling build() { - return new WebAclDefaultActionAllowCustomRequestHandling(insertHeaders); + } + public WebAclDefaultActionAllowCustomRequestHandling build() { + final var o = new WebAclDefaultActionAllowCustomRequestHandling(); + o.insertHeaders = insertHeaders; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionAllowCustomRequestHandlingInsertHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionAllowCustomRequestHandlingInsertHeader.java index 1589dadb9f1..0709d5e46dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionAllowCustomRequestHandlingInsertHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionAllowCustomRequestHandlingInsertHeader.java @@ -13,21 +13,14 @@ public final class WebAclDefaultActionAllowCustomRequestHandlingInsertHeader { * @return Label string. * */ - private final String name; + private String name; /** * @return Value of the custom header. * */ - private final String value; - - @CustomType.Constructor - private WebAclDefaultActionAllowCustomRequestHandlingInsertHeader( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private WebAclDefaultActionAllowCustomRequestHandlingInsertHeader() {} /** * @return Label string. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclDefaultActionAllowCustomRequestHandlingInsertHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclDefaultActionAllowCustomRequestHandlingInsertHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public WebAclDefaultActionAllowCustomRequestHandlingInsertHeader build() { - return new WebAclDefaultActionAllowCustomRequestHandlingInsertHeader(name, value); + } + public WebAclDefaultActionAllowCustomRequestHandlingInsertHeader build() { + final var o = new WebAclDefaultActionAllowCustomRequestHandlingInsertHeader(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionBlock.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionBlock.java index 2234b7211ae..9d4754284e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionBlock.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionBlock.java @@ -15,13 +15,9 @@ public final class WebAclDefaultActionBlock { * @return Defines a custom response for the web request. See Custom Response below for details. * */ - private final @Nullable WebAclDefaultActionBlockCustomResponse customResponse; - - @CustomType.Constructor - private WebAclDefaultActionBlock(@CustomType.Parameter("customResponse") @Nullable WebAclDefaultActionBlockCustomResponse customResponse) { - this.customResponse = customResponse; - } + private @Nullable WebAclDefaultActionBlockCustomResponse customResponse; + private WebAclDefaultActionBlock() {} /** * @return Defines a custom response for the web request. See Custom Response below for details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(WebAclDefaultActionBlock defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclDefaultActionBlockCustomResponse customResponse; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclDefaultActionBlock defaults) { Objects.requireNonNull(defaults); this.customResponse = defaults.customResponse; } + @CustomType.Setter public Builder customResponse(@Nullable WebAclDefaultActionBlockCustomResponse customResponse) { this.customResponse = customResponse; return this; - } public WebAclDefaultActionBlock build() { - return new WebAclDefaultActionBlock(customResponse); + } + public WebAclDefaultActionBlock build() { + final var o = new WebAclDefaultActionBlock(); + o.customResponse = customResponse; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionBlockCustomResponse.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionBlockCustomResponse.java index 2619170b060..6b154ca7c37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionBlockCustomResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionBlockCustomResponse.java @@ -18,28 +18,19 @@ public final class WebAclDefaultActionBlockCustomResponse { * @return References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. * */ - private final @Nullable String customResponseBodyKey; + private @Nullable String customResponseBodyKey; /** * @return The HTTP status code to return to the client. * */ - private final Integer responseCode; + private Integer responseCode; /** * @return The `response_header` blocks used to define the HTTP response headers added to the response. See Custom HTTP Header below for details. * */ - private final @Nullable List responseHeaders; - - @CustomType.Constructor - private WebAclDefaultActionBlockCustomResponse( - @CustomType.Parameter("customResponseBodyKey") @Nullable String customResponseBodyKey, - @CustomType.Parameter("responseCode") Integer responseCode, - @CustomType.Parameter("responseHeaders") @Nullable List responseHeaders) { - this.customResponseBodyKey = customResponseBodyKey; - this.responseCode = responseCode; - this.responseHeaders = responseHeaders; - } + private @Nullable List responseHeaders; + private WebAclDefaultActionBlockCustomResponse() {} /** * @return References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclDefaultActionBlockCustomResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String customResponseBodyKey; private Integer responseCode; private @Nullable List responseHeaders; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclDefaultActionBlockCustomResponse defaults) { Objects.requireNonNull(defaults); this.customResponseBodyKey = defaults.customResponseBodyKey; @@ -86,22 +73,30 @@ public Builder(WebAclDefaultActionBlockCustomResponse defaults) { this.responseHeaders = defaults.responseHeaders; } + @CustomType.Setter public Builder customResponseBodyKey(@Nullable String customResponseBodyKey) { this.customResponseBodyKey = customResponseBodyKey; return this; } + @CustomType.Setter public Builder responseCode(Integer responseCode) { this.responseCode = Objects.requireNonNull(responseCode); return this; } + @CustomType.Setter public Builder responseHeaders(@Nullable List responseHeaders) { this.responseHeaders = responseHeaders; return this; } public Builder responseHeaders(WebAclDefaultActionBlockCustomResponseResponseHeader... responseHeaders) { return responseHeaders(List.of(responseHeaders)); - } public WebAclDefaultActionBlockCustomResponse build() { - return new WebAclDefaultActionBlockCustomResponse(customResponseBodyKey, responseCode, responseHeaders); + } + public WebAclDefaultActionBlockCustomResponse build() { + final var o = new WebAclDefaultActionBlockCustomResponse(); + o.customResponseBodyKey = customResponseBodyKey; + o.responseCode = responseCode; + o.responseHeaders = responseHeaders; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionBlockCustomResponseResponseHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionBlockCustomResponseResponseHeader.java index b55eb746c02..259e6847e9b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionBlockCustomResponseResponseHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclDefaultActionBlockCustomResponseResponseHeader.java @@ -13,21 +13,14 @@ public final class WebAclDefaultActionBlockCustomResponseResponseHeader { * @return Label string. * */ - private final String name; + private String name; /** * @return Value of the custom header. * */ - private final String value; - - @CustomType.Constructor - private WebAclDefaultActionBlockCustomResponseResponseHeader( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private WebAclDefaultActionBlockCustomResponseResponseHeader() {} /** * @return Label string. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclDefaultActionBlockCustomResponseResponseHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclDefaultActionBlockCustomResponseResponseHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public WebAclDefaultActionBlockCustomResponseResponseHeader build() { - return new WebAclDefaultActionBlockCustomResponseResponseHeader(name, value); + } + public WebAclDefaultActionBlockCustomResponseResponseHeader build() { + final var o = new WebAclDefaultActionBlockCustomResponseResponseHeader(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclLoggingConfigurationLoggingFilter.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclLoggingConfigurationLoggingFilter.java index 40a9634dcb3..e6a46092d00 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclLoggingConfigurationLoggingFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclLoggingConfigurationLoggingFilter.java @@ -15,21 +15,14 @@ public final class WebAclLoggingConfigurationLoggingFilter { * @return Default handling for logs that don't match any of the specified filtering conditions. Valid values: `KEEP` or `DROP`. * */ - private final String defaultBehavior; + private String defaultBehavior; /** * @return Filter(s) that you want to apply to the logs. See Filter below for more details. * */ - private final List filters; - - @CustomType.Constructor - private WebAclLoggingConfigurationLoggingFilter( - @CustomType.Parameter("defaultBehavior") String defaultBehavior, - @CustomType.Parameter("filters") List filters) { - this.defaultBehavior = defaultBehavior; - this.filters = filters; - } + private List filters; + private WebAclLoggingConfigurationLoggingFilter() {} /** * @return Default handling for logs that don't match any of the specified filtering conditions. Valid values: `KEEP` or `DROP`. * @@ -52,33 +45,35 @@ public static Builder builder() { public static Builder builder(WebAclLoggingConfigurationLoggingFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String defaultBehavior; private List filters; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclLoggingConfigurationLoggingFilter defaults) { Objects.requireNonNull(defaults); this.defaultBehavior = defaults.defaultBehavior; this.filters = defaults.filters; } + @CustomType.Setter public Builder defaultBehavior(String defaultBehavior) { this.defaultBehavior = Objects.requireNonNull(defaultBehavior); return this; } + @CustomType.Setter public Builder filters(List filters) { this.filters = Objects.requireNonNull(filters); return this; } public Builder filters(WebAclLoggingConfigurationLoggingFilterFilter... filters) { return filters(List.of(filters)); - } public WebAclLoggingConfigurationLoggingFilter build() { - return new WebAclLoggingConfigurationLoggingFilter(defaultBehavior, filters); + } + public WebAclLoggingConfigurationLoggingFilter build() { + final var o = new WebAclLoggingConfigurationLoggingFilter(); + o.defaultBehavior = defaultBehavior; + o.filters = filters; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclLoggingConfigurationLoggingFilterFilter.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclLoggingConfigurationLoggingFilterFilter.java index a7c7e714de2..28cb4300acb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclLoggingConfigurationLoggingFilterFilter.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclLoggingConfigurationLoggingFilterFilter.java @@ -15,28 +15,19 @@ public final class WebAclLoggingConfigurationLoggingFilterFilter { * @return How to handle logs that satisfy the filter's conditions and requirement. Valid values: `KEEP` or `DROP`. * */ - private final String behavior; + private String behavior; /** * @return Match condition(s) for the filter. See Condition below for more details. * */ - private final List conditions; + private List conditions; /** * @return Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition. Valid values: `MEETS_ALL` or `MEETS_ANY`. * */ - private final String requirement; - - @CustomType.Constructor - private WebAclLoggingConfigurationLoggingFilterFilter( - @CustomType.Parameter("behavior") String behavior, - @CustomType.Parameter("conditions") List conditions, - @CustomType.Parameter("requirement") String requirement) { - this.behavior = behavior; - this.conditions = conditions; - this.requirement = requirement; - } + private String requirement; + private WebAclLoggingConfigurationLoggingFilterFilter() {} /** * @return How to handle logs that satisfy the filter's conditions and requirement. Valid values: `KEEP` or `DROP`. * @@ -66,16 +57,12 @@ public static Builder builder() { public static Builder builder(WebAclLoggingConfigurationLoggingFilterFilter defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String behavior; private List conditions; private String requirement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclLoggingConfigurationLoggingFilterFilter defaults) { Objects.requireNonNull(defaults); this.behavior = defaults.behavior; @@ -83,10 +70,12 @@ public Builder(WebAclLoggingConfigurationLoggingFilterFilter defaults) { this.requirement = defaults.requirement; } + @CustomType.Setter public Builder behavior(String behavior) { this.behavior = Objects.requireNonNull(behavior); return this; } + @CustomType.Setter public Builder conditions(List conditions) { this.conditions = Objects.requireNonNull(conditions); return this; @@ -94,11 +83,17 @@ public Builder conditions(List ruleLabels; + private @Nullable List ruleLabels; /** * @return The AWS WAF processing statement for the rule, for example `byte_match_statement` or `geo_match_statement`. See Statement below for details. * */ - private final WebAclRuleStatement statement; + private WebAclRuleStatement statement; /** * @return Defines and enables Amazon CloudWatch metrics and web request sample collection. See Visibility Configuration below for details. * */ - private final WebAclRuleVisibilityConfig visibilityConfig; - - @CustomType.Constructor - private WebAclRule( - @CustomType.Parameter("action") @Nullable WebAclRuleAction action, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("overrideAction") @Nullable WebAclRuleOverrideAction overrideAction, - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("ruleLabels") @Nullable List ruleLabels, - @CustomType.Parameter("statement") WebAclRuleStatement statement, - @CustomType.Parameter("visibilityConfig") WebAclRuleVisibilityConfig visibilityConfig) { - this.action = action; - this.name = name; - this.overrideAction = overrideAction; - this.priority = priority; - this.ruleLabels = ruleLabels; - this.statement = statement; - this.visibilityConfig = visibilityConfig; - } + private WebAclRuleVisibilityConfig visibilityConfig; + private WebAclRule() {} /** * @return Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See Action below for details. * @@ -129,7 +112,7 @@ public static Builder builder() { public static Builder builder(WebAclRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleAction action; private String name; @@ -138,11 +121,7 @@ public static final class Builder { private @Nullable List ruleLabels; private WebAclRuleStatement statement; private WebAclRuleVisibilityConfig visibilityConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRule defaults) { Objects.requireNonNull(defaults); this.action = defaults.action; @@ -154,22 +133,27 @@ public Builder(WebAclRule defaults) { this.visibilityConfig = defaults.visibilityConfig; } + @CustomType.Setter public Builder action(@Nullable WebAclRuleAction action) { this.action = action; return this; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder overrideAction(@Nullable WebAclRuleOverrideAction overrideAction) { this.overrideAction = overrideAction; return this; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder ruleLabels(@Nullable List ruleLabels) { this.ruleLabels = ruleLabels; return this; @@ -177,15 +161,26 @@ public Builder ruleLabels(@Nullable List ruleLabels) { public Builder ruleLabels(WebAclRuleRuleLabel... ruleLabels) { return ruleLabels(List.of(ruleLabels)); } + @CustomType.Setter public Builder statement(WebAclRuleStatement statement) { this.statement = Objects.requireNonNull(statement); return this; } + @CustomType.Setter public Builder visibilityConfig(WebAclRuleVisibilityConfig visibilityConfig) { this.visibilityConfig = Objects.requireNonNull(visibilityConfig); return this; - } public WebAclRule build() { - return new WebAclRule(action, name, overrideAction, priority, ruleLabels, statement, visibilityConfig); + } + public WebAclRule build() { + final var o = new WebAclRule(); + o.action = action; + o.name = name; + o.overrideAction = overrideAction; + o.priority = priority; + o.ruleLabels = ruleLabels; + o.statement = statement; + o.visibilityConfig = visibilityConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleAction.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleAction.java index d2e6be1bbce..548dc27bf63 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleAction.java @@ -18,35 +18,24 @@ public final class WebAclRuleAction { * @return Instructs AWS WAF to allow the web request. See Allow below for details. * */ - private final @Nullable WebAclRuleActionAllow allow; + private @Nullable WebAclRuleActionAllow allow; /** * @return Instructs AWS WAF to block the web request. See Block below for details. * */ - private final @Nullable WebAclRuleActionBlock block; + private @Nullable WebAclRuleActionBlock block; /** * @return Instructs AWS WAF to run a Captcha check against the web request. See Captcha below for details. * */ - private final @Nullable WebAclRuleActionCaptcha captcha; + private @Nullable WebAclRuleActionCaptcha captcha; /** * @return Instructs AWS WAF to count the web request and allow it. See Count below for details. * */ - private final @Nullable WebAclRuleActionCount count; - - @CustomType.Constructor - private WebAclRuleAction( - @CustomType.Parameter("allow") @Nullable WebAclRuleActionAllow allow, - @CustomType.Parameter("block") @Nullable WebAclRuleActionBlock block, - @CustomType.Parameter("captcha") @Nullable WebAclRuleActionCaptcha captcha, - @CustomType.Parameter("count") @Nullable WebAclRuleActionCount count) { - this.allow = allow; - this.block = block; - this.captcha = captcha; - this.count = count; - } + private @Nullable WebAclRuleActionCount count; + private WebAclRuleAction() {} /** * @return Instructs AWS WAF to allow the web request. See Allow below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleActionAllow allow; private @Nullable WebAclRuleActionBlock block; private @Nullable WebAclRuleActionCaptcha captcha; private @Nullable WebAclRuleActionCount count; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleAction defaults) { Objects.requireNonNull(defaults); this.allow = defaults.allow; @@ -102,23 +87,33 @@ public Builder(WebAclRuleAction defaults) { this.count = defaults.count; } + @CustomType.Setter public Builder allow(@Nullable WebAclRuleActionAllow allow) { this.allow = allow; return this; } + @CustomType.Setter public Builder block(@Nullable WebAclRuleActionBlock block) { this.block = block; return this; } + @CustomType.Setter public Builder captcha(@Nullable WebAclRuleActionCaptcha captcha) { this.captcha = captcha; return this; } + @CustomType.Setter public Builder count(@Nullable WebAclRuleActionCount count) { this.count = count; return this; - } public WebAclRuleAction build() { - return new WebAclRuleAction(allow, block, captcha, count); + } + public WebAclRuleAction build() { + final var o = new WebAclRuleAction(); + o.allow = allow; + o.block = block; + o.captcha = captcha; + o.count = count; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionAllow.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionAllow.java index 12e69ae2d06..ded3ed07f02 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionAllow.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionAllow.java @@ -15,13 +15,9 @@ public final class WebAclRuleActionAllow { * @return Defines custom handling for the web request. See Custom Request Handling below for details. * */ - private final @Nullable WebAclRuleActionAllowCustomRequestHandling customRequestHandling; - - @CustomType.Constructor - private WebAclRuleActionAllow(@CustomType.Parameter("customRequestHandling") @Nullable WebAclRuleActionAllowCustomRequestHandling customRequestHandling) { - this.customRequestHandling = customRequestHandling; - } + private @Nullable WebAclRuleActionAllowCustomRequestHandling customRequestHandling; + private WebAclRuleActionAllow() {} /** * @return Defines custom handling for the web request. See Custom Request Handling below for details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleActionAllow defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleActionAllowCustomRequestHandling customRequestHandling; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleActionAllow defaults) { Objects.requireNonNull(defaults); this.customRequestHandling = defaults.customRequestHandling; } + @CustomType.Setter public Builder customRequestHandling(@Nullable WebAclRuleActionAllowCustomRequestHandling customRequestHandling) { this.customRequestHandling = customRequestHandling; return this; - } public WebAclRuleActionAllow build() { - return new WebAclRuleActionAllow(customRequestHandling); + } + public WebAclRuleActionAllow build() { + final var o = new WebAclRuleActionAllow(); + o.customRequestHandling = customRequestHandling; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionAllowCustomRequestHandling.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionAllowCustomRequestHandling.java index 80ed8c576f3..e53b5398036 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionAllowCustomRequestHandling.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionAllowCustomRequestHandling.java @@ -14,13 +14,9 @@ public final class WebAclRuleActionAllowCustomRequestHandling { * @return The `insert_header` blocks used to define HTTP headers added to the request. See Custom HTTP Header below for details. * */ - private final List insertHeaders; - - @CustomType.Constructor - private WebAclRuleActionAllowCustomRequestHandling(@CustomType.Parameter("insertHeaders") List insertHeaders) { - this.insertHeaders = insertHeaders; - } + private List insertHeaders; + private WebAclRuleActionAllowCustomRequestHandling() {} /** * @return The `insert_header` blocks used to define HTTP headers added to the request. See Custom HTTP Header below for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleActionAllowCustomRequestHandling defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List insertHeaders; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleActionAllowCustomRequestHandling defaults) { Objects.requireNonNull(defaults); this.insertHeaders = defaults.insertHeaders; } + @CustomType.Setter public Builder insertHeaders(List insertHeaders) { this.insertHeaders = Objects.requireNonNull(insertHeaders); return this; } public Builder insertHeaders(WebAclRuleActionAllowCustomRequestHandlingInsertHeader... insertHeaders) { return insertHeaders(List.of(insertHeaders)); - } public WebAclRuleActionAllowCustomRequestHandling build() { - return new WebAclRuleActionAllowCustomRequestHandling(insertHeaders); + } + public WebAclRuleActionAllowCustomRequestHandling build() { + final var o = new WebAclRuleActionAllowCustomRequestHandling(); + o.insertHeaders = insertHeaders; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionAllowCustomRequestHandlingInsertHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionAllowCustomRequestHandlingInsertHeader.java index 05f65b35ac4..cbce79ffb13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionAllowCustomRequestHandlingInsertHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionAllowCustomRequestHandlingInsertHeader.java @@ -13,21 +13,14 @@ public final class WebAclRuleActionAllowCustomRequestHandlingInsertHeader { * @return Label string. * */ - private final String name; + private String name; /** * @return Value of the custom header. * */ - private final String value; - - @CustomType.Constructor - private WebAclRuleActionAllowCustomRequestHandlingInsertHeader( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private WebAclRuleActionAllowCustomRequestHandlingInsertHeader() {} /** * @return Label string. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleActionAllowCustomRequestHandlingInsertHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleActionAllowCustomRequestHandlingInsertHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public WebAclRuleActionAllowCustomRequestHandlingInsertHeader build() { - return new WebAclRuleActionAllowCustomRequestHandlingInsertHeader(name, value); + } + public WebAclRuleActionAllowCustomRequestHandlingInsertHeader build() { + final var o = new WebAclRuleActionAllowCustomRequestHandlingInsertHeader(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionBlock.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionBlock.java index 9faab09b980..ded3e30a4a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionBlock.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionBlock.java @@ -15,13 +15,9 @@ public final class WebAclRuleActionBlock { * @return Defines a custom response for the web request. See Custom Response below for details. * */ - private final @Nullable WebAclRuleActionBlockCustomResponse customResponse; - - @CustomType.Constructor - private WebAclRuleActionBlock(@CustomType.Parameter("customResponse") @Nullable WebAclRuleActionBlockCustomResponse customResponse) { - this.customResponse = customResponse; - } + private @Nullable WebAclRuleActionBlockCustomResponse customResponse; + private WebAclRuleActionBlock() {} /** * @return Defines a custom response for the web request. See Custom Response below for details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleActionBlock defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleActionBlockCustomResponse customResponse; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleActionBlock defaults) { Objects.requireNonNull(defaults); this.customResponse = defaults.customResponse; } + @CustomType.Setter public Builder customResponse(@Nullable WebAclRuleActionBlockCustomResponse customResponse) { this.customResponse = customResponse; return this; - } public WebAclRuleActionBlock build() { - return new WebAclRuleActionBlock(customResponse); + } + public WebAclRuleActionBlock build() { + final var o = new WebAclRuleActionBlock(); + o.customResponse = customResponse; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionBlockCustomResponse.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionBlockCustomResponse.java index d8531c72e74..7a7eae6b146 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionBlockCustomResponse.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionBlockCustomResponse.java @@ -18,28 +18,19 @@ public final class WebAclRuleActionBlockCustomResponse { * @return References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. * */ - private final @Nullable String customResponseBodyKey; + private @Nullable String customResponseBodyKey; /** * @return The HTTP status code to return to the client. * */ - private final Integer responseCode; + private Integer responseCode; /** * @return The `response_header` blocks used to define the HTTP response headers added to the response. See Custom HTTP Header below for details. * */ - private final @Nullable List responseHeaders; - - @CustomType.Constructor - private WebAclRuleActionBlockCustomResponse( - @CustomType.Parameter("customResponseBodyKey") @Nullable String customResponseBodyKey, - @CustomType.Parameter("responseCode") Integer responseCode, - @CustomType.Parameter("responseHeaders") @Nullable List responseHeaders) { - this.customResponseBodyKey = customResponseBodyKey; - this.responseCode = responseCode; - this.responseHeaders = responseHeaders; - } + private @Nullable List responseHeaders; + private WebAclRuleActionBlockCustomResponse() {} /** * @return References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleActionBlockCustomResponse defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String customResponseBodyKey; private Integer responseCode; private @Nullable List responseHeaders; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleActionBlockCustomResponse defaults) { Objects.requireNonNull(defaults); this.customResponseBodyKey = defaults.customResponseBodyKey; @@ -86,22 +73,30 @@ public Builder(WebAclRuleActionBlockCustomResponse defaults) { this.responseHeaders = defaults.responseHeaders; } + @CustomType.Setter public Builder customResponseBodyKey(@Nullable String customResponseBodyKey) { this.customResponseBodyKey = customResponseBodyKey; return this; } + @CustomType.Setter public Builder responseCode(Integer responseCode) { this.responseCode = Objects.requireNonNull(responseCode); return this; } + @CustomType.Setter public Builder responseHeaders(@Nullable List responseHeaders) { this.responseHeaders = responseHeaders; return this; } public Builder responseHeaders(WebAclRuleActionBlockCustomResponseResponseHeader... responseHeaders) { return responseHeaders(List.of(responseHeaders)); - } public WebAclRuleActionBlockCustomResponse build() { - return new WebAclRuleActionBlockCustomResponse(customResponseBodyKey, responseCode, responseHeaders); + } + public WebAclRuleActionBlockCustomResponse build() { + final var o = new WebAclRuleActionBlockCustomResponse(); + o.customResponseBodyKey = customResponseBodyKey; + o.responseCode = responseCode; + o.responseHeaders = responseHeaders; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionBlockCustomResponseResponseHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionBlockCustomResponseResponseHeader.java index 7062518d83b..891f8eb0eb0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionBlockCustomResponseResponseHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionBlockCustomResponseResponseHeader.java @@ -13,21 +13,14 @@ public final class WebAclRuleActionBlockCustomResponseResponseHeader { * @return Label string. * */ - private final String name; + private String name; /** * @return Value of the custom header. * */ - private final String value; - - @CustomType.Constructor - private WebAclRuleActionBlockCustomResponseResponseHeader( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private WebAclRuleActionBlockCustomResponseResponseHeader() {} /** * @return Label string. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleActionBlockCustomResponseResponseHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleActionBlockCustomResponseResponseHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public WebAclRuleActionBlockCustomResponseResponseHeader build() { - return new WebAclRuleActionBlockCustomResponseResponseHeader(name, value); + } + public WebAclRuleActionBlockCustomResponseResponseHeader build() { + final var o = new WebAclRuleActionBlockCustomResponseResponseHeader(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCaptcha.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCaptcha.java index b219612fc2d..f9a83cd5892 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCaptcha.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCaptcha.java @@ -15,13 +15,9 @@ public final class WebAclRuleActionCaptcha { * @return Defines custom handling for the web request. See Custom Request Handling below for details. * */ - private final @Nullable WebAclRuleActionCaptchaCustomRequestHandling customRequestHandling; - - @CustomType.Constructor - private WebAclRuleActionCaptcha(@CustomType.Parameter("customRequestHandling") @Nullable WebAclRuleActionCaptchaCustomRequestHandling customRequestHandling) { - this.customRequestHandling = customRequestHandling; - } + private @Nullable WebAclRuleActionCaptchaCustomRequestHandling customRequestHandling; + private WebAclRuleActionCaptcha() {} /** * @return Defines custom handling for the web request. See Custom Request Handling below for details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleActionCaptcha defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleActionCaptchaCustomRequestHandling customRequestHandling; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleActionCaptcha defaults) { Objects.requireNonNull(defaults); this.customRequestHandling = defaults.customRequestHandling; } + @CustomType.Setter public Builder customRequestHandling(@Nullable WebAclRuleActionCaptchaCustomRequestHandling customRequestHandling) { this.customRequestHandling = customRequestHandling; return this; - } public WebAclRuleActionCaptcha build() { - return new WebAclRuleActionCaptcha(customRequestHandling); + } + public WebAclRuleActionCaptcha build() { + final var o = new WebAclRuleActionCaptcha(); + o.customRequestHandling = customRequestHandling; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCaptchaCustomRequestHandling.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCaptchaCustomRequestHandling.java index ceaa602c047..abed1d6ca8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCaptchaCustomRequestHandling.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCaptchaCustomRequestHandling.java @@ -14,13 +14,9 @@ public final class WebAclRuleActionCaptchaCustomRequestHandling { * @return The `insert_header` blocks used to define HTTP headers added to the request. See Custom HTTP Header below for details. * */ - private final List insertHeaders; - - @CustomType.Constructor - private WebAclRuleActionCaptchaCustomRequestHandling(@CustomType.Parameter("insertHeaders") List insertHeaders) { - this.insertHeaders = insertHeaders; - } + private List insertHeaders; + private WebAclRuleActionCaptchaCustomRequestHandling() {} /** * @return The `insert_header` blocks used to define HTTP headers added to the request. See Custom HTTP Header below for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleActionCaptchaCustomRequestHandling defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List insertHeaders; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleActionCaptchaCustomRequestHandling defaults) { Objects.requireNonNull(defaults); this.insertHeaders = defaults.insertHeaders; } + @CustomType.Setter public Builder insertHeaders(List insertHeaders) { this.insertHeaders = Objects.requireNonNull(insertHeaders); return this; } public Builder insertHeaders(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader... insertHeaders) { return insertHeaders(List.of(insertHeaders)); - } public WebAclRuleActionCaptchaCustomRequestHandling build() { - return new WebAclRuleActionCaptchaCustomRequestHandling(insertHeaders); + } + public WebAclRuleActionCaptchaCustomRequestHandling build() { + final var o = new WebAclRuleActionCaptchaCustomRequestHandling(); + o.insertHeaders = insertHeaders; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader.java index cd3518f94bc..bb9307a80db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader.java @@ -13,21 +13,14 @@ public final class WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader { * @return Label string. * */ - private final String name; + private String name; /** * @return Value of the custom header. * */ - private final String value; - - @CustomType.Constructor - private WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader() {} /** * @return Label string. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader build() { - return new WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader(name, value); + } + public WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader build() { + final var o = new WebAclRuleActionCaptchaCustomRequestHandlingInsertHeader(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCount.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCount.java index f44de1aa06a..e6f4eb0bbf9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCount.java @@ -15,13 +15,9 @@ public final class WebAclRuleActionCount { * @return Defines custom handling for the web request. See Custom Request Handling below for details. * */ - private final @Nullable WebAclRuleActionCountCustomRequestHandling customRequestHandling; - - @CustomType.Constructor - private WebAclRuleActionCount(@CustomType.Parameter("customRequestHandling") @Nullable WebAclRuleActionCountCustomRequestHandling customRequestHandling) { - this.customRequestHandling = customRequestHandling; - } + private @Nullable WebAclRuleActionCountCustomRequestHandling customRequestHandling; + private WebAclRuleActionCount() {} /** * @return Defines custom handling for the web request. See Custom Request Handling below for details. * @@ -37,24 +33,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleActionCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleActionCountCustomRequestHandling customRequestHandling; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleActionCount defaults) { Objects.requireNonNull(defaults); this.customRequestHandling = defaults.customRequestHandling; } + @CustomType.Setter public Builder customRequestHandling(@Nullable WebAclRuleActionCountCustomRequestHandling customRequestHandling) { this.customRequestHandling = customRequestHandling; return this; - } public WebAclRuleActionCount build() { - return new WebAclRuleActionCount(customRequestHandling); + } + public WebAclRuleActionCount build() { + final var o = new WebAclRuleActionCount(); + o.customRequestHandling = customRequestHandling; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCountCustomRequestHandling.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCountCustomRequestHandling.java index a7430bf6641..1e018180913 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCountCustomRequestHandling.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCountCustomRequestHandling.java @@ -14,13 +14,9 @@ public final class WebAclRuleActionCountCustomRequestHandling { * @return The `insert_header` blocks used to define HTTP headers added to the request. See Custom HTTP Header below for details. * */ - private final List insertHeaders; - - @CustomType.Constructor - private WebAclRuleActionCountCustomRequestHandling(@CustomType.Parameter("insertHeaders") List insertHeaders) { - this.insertHeaders = insertHeaders; - } + private List insertHeaders; + private WebAclRuleActionCountCustomRequestHandling() {} /** * @return The `insert_header` blocks used to define HTTP headers added to the request. See Custom HTTP Header below for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleActionCountCustomRequestHandling defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List insertHeaders; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleActionCountCustomRequestHandling defaults) { Objects.requireNonNull(defaults); this.insertHeaders = defaults.insertHeaders; } + @CustomType.Setter public Builder insertHeaders(List insertHeaders) { this.insertHeaders = Objects.requireNonNull(insertHeaders); return this; } public Builder insertHeaders(WebAclRuleActionCountCustomRequestHandlingInsertHeader... insertHeaders) { return insertHeaders(List.of(insertHeaders)); - } public WebAclRuleActionCountCustomRequestHandling build() { - return new WebAclRuleActionCountCustomRequestHandling(insertHeaders); + } + public WebAclRuleActionCountCustomRequestHandling build() { + final var o = new WebAclRuleActionCountCustomRequestHandling(); + o.insertHeaders = insertHeaders; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCountCustomRequestHandlingInsertHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCountCustomRequestHandlingInsertHeader.java index 3b5fe1b1a7f..b19e580aa52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCountCustomRequestHandlingInsertHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleActionCountCustomRequestHandlingInsertHeader.java @@ -13,21 +13,14 @@ public final class WebAclRuleActionCountCustomRequestHandlingInsertHeader { * @return Label string. * */ - private final String name; + private String name; /** * @return Value of the custom header. * */ - private final String value; - - @CustomType.Constructor - private WebAclRuleActionCountCustomRequestHandlingInsertHeader( - @CustomType.Parameter("name") String name, - @CustomType.Parameter("value") String value) { - this.name = name; - this.value = value; - } + private String value; + private WebAclRuleActionCountCustomRequestHandlingInsertHeader() {} /** * @return Label string. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleActionCountCustomRequestHandlingInsertHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; private String value; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleActionCountCustomRequestHandlingInsertHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; this.value = defaults.value; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; } + @CustomType.Setter public Builder value(String value) { this.value = Objects.requireNonNull(value); return this; - } public WebAclRuleActionCountCustomRequestHandlingInsertHeader build() { - return new WebAclRuleActionCountCustomRequestHandlingInsertHeader(name, value); + } + public WebAclRuleActionCountCustomRequestHandlingInsertHeader build() { + final var o = new WebAclRuleActionCountCustomRequestHandlingInsertHeader(); + o.name = name; + o.value = value; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleOverrideAction.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleOverrideAction.java index d97017c9141..86c666bb08d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleOverrideAction.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleOverrideAction.java @@ -16,21 +16,14 @@ public final class WebAclRuleOverrideAction { * @return Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. * */ - private final @Nullable WebAclRuleOverrideActionCount count; + private @Nullable WebAclRuleOverrideActionCount count; /** * @return Don't override the rule action setting. Configured as an empty block `{}`. * */ - private final @Nullable WebAclRuleOverrideActionNone none; - - @CustomType.Constructor - private WebAclRuleOverrideAction( - @CustomType.Parameter("count") @Nullable WebAclRuleOverrideActionCount count, - @CustomType.Parameter("none") @Nullable WebAclRuleOverrideActionNone none) { - this.count = count; - this.none = none; - } + private @Nullable WebAclRuleOverrideActionNone none; + private WebAclRuleOverrideAction() {} /** * @return Override the rule action setting to count (i.e., only count matches). Configured as an empty block `{}`. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleOverrideAction defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleOverrideActionCount count; private @Nullable WebAclRuleOverrideActionNone none; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleOverrideAction defaults) { Objects.requireNonNull(defaults); this.count = defaults.count; this.none = defaults.none; } + @CustomType.Setter public Builder count(@Nullable WebAclRuleOverrideActionCount count) { this.count = count; return this; } + @CustomType.Setter public Builder none(@Nullable WebAclRuleOverrideActionNone none) { this.none = none; return this; - } public WebAclRuleOverrideAction build() { - return new WebAclRuleOverrideAction(count, none); + } + public WebAclRuleOverrideAction build() { + final var o = new WebAclRuleOverrideAction(); + o.count = count; + o.none = none; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleOverrideActionCount.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleOverrideActionCount.java index 71df5a6dbb0..10be635c528 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleOverrideActionCount.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleOverrideActionCount.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleOverrideActionCount { - @CustomType.Constructor - private WebAclRuleOverrideActionCount() { - } - + private WebAclRuleOverrideActionCount() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleOverrideActionCount defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleOverrideActionCount defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleOverrideActionCount build() { - return new WebAclRuleOverrideActionCount(); + final var o = new WebAclRuleOverrideActionCount(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleOverrideActionNone.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleOverrideActionNone.java index e3532be4ea0..6748e7d9182 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleOverrideActionNone.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleOverrideActionNone.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleOverrideActionNone { - @CustomType.Constructor - private WebAclRuleOverrideActionNone() { - } - + private WebAclRuleOverrideActionNone() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleOverrideActionNone defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleOverrideActionNone defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleOverrideActionNone build() { - return new WebAclRuleOverrideActionNone(); + final var o = new WebAclRuleOverrideActionNone(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleRuleLabel.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleRuleLabel.java index 1fa869e230c..173a80dba7d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleRuleLabel.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleRuleLabel.java @@ -13,13 +13,9 @@ public final class WebAclRuleRuleLabel { * @return Label string. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleRuleLabel(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleRuleLabel() {} /** * @return Label string. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleRuleLabel defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleRuleLabel defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleRuleLabel build() { - return new WebAclRuleRuleLabel(name); + } + public WebAclRuleRuleLabel build() { + final var o = new WebAclRuleRuleLabel(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatement.java index cafa973a27f..37264c57b34 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatement.java @@ -28,105 +28,74 @@ public final class WebAclRuleStatement { * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to run the rules that are defined in a managed rule group. This statement can not be nested. See Managed Rule Group Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatement managedRuleGroupStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatement managedRuleGroupStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementOrStatement orStatement; /** * @return Rate-based rule tracks the rate of requests for each originating `IP address`, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any `5-minute` time span. This statement can not be nested. See Rate Based Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatement rateBasedStatement; + private @Nullable WebAclRuleStatementRateBasedStatement rateBasedStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement used to run the rules that are defined in an WAFv2 Rule Group. See Rule Group Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRuleGroupReferenceStatement ruleGroupReferenceStatement; + private @Nullable WebAclRuleStatementRuleGroupReferenceStatement ruleGroupReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("managedRuleGroupStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatement managedRuleGroupStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementOrStatement orStatement, - @CustomType.Parameter("rateBasedStatement") @Nullable WebAclRuleStatementRateBasedStatement rateBasedStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("ruleGroupReferenceStatement") @Nullable WebAclRuleStatementRuleGroupReferenceStatement ruleGroupReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.managedRuleGroupStatement = managedRuleGroupStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.rateBasedStatement = rateBasedStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.ruleGroupReferenceStatement = ruleGroupReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -233,7 +202,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatement andStatement; private @Nullable WebAclRuleStatementByteMatchStatement byteMatchStatement; @@ -249,11 +218,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -272,63 +237,93 @@ public Builder(WebAclRuleStatement defaults) { this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder managedRuleGroupStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatement managedRuleGroupStatement) { this.managedRuleGroupStatement = managedRuleGroupStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder rateBasedStatement(@Nullable WebAclRuleStatementRateBasedStatement rateBasedStatement) { this.rateBasedStatement = rateBasedStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder ruleGroupReferenceStatement(@Nullable WebAclRuleStatementRuleGroupReferenceStatement ruleGroupReferenceStatement) { this.ruleGroupReferenceStatement = ruleGroupReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatement build() { - return new WebAclRuleStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, managedRuleGroupStatement, notStatement, orStatement, rateBasedStatement, regexPatternSetReferenceStatement, ruleGroupReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatement build() { + final var o = new WebAclRuleStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.managedRuleGroupStatement = managedRuleGroupStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.rateBasedStatement = rateBasedStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.ruleGroupReferenceStatement = ruleGroupReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatement.java index 61ca0a7974b..53b700f992b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatement { * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatement build() { - return new WebAclRuleStatementAndStatement(statements); + } + public WebAclRuleStatementAndStatement build() { + final var o = new WebAclRuleStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatement.java index b27ee38baa1..e040b54ea1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementAndStatementStatement { * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementAndStatementStatement defaults) { this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatement build() { - return new WebAclRuleStatementAndStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatement.java index 4185bfc47f7..9db4af709b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatement { * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatementStatementAndStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatement(statements); + } + public WebAclRuleStatementAndStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatement.java index 8144b38bab1..39dee8eea21 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatementAndStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatement def this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement.java index b6f384f590f..406bb8bd4ed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement(statements); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement.java index fdd9ea963e8..183abdf23a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndS this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement.java index 3a9834fa51c..7946dfa63c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index f6b238abdbb..a256b710043 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 53d3188bc74..48ea7e789f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index e2bd0d0fb7f..10d8159f45c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index f2d3f6fb67d..9869414cafd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index aef97a511ca..c9f0d0b303b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index d5debf43468..e80152f410f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 88d011a538b..8533acdeda8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 477cac9ed55..70f42bd25a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 31d0763f697..82995a8e9ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java index 37874e7546e..98fd06b9cbc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 882ed3395ba..f2ccae9115a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java index fc9533a8097..de58664bb96 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index e475afceef3..695ec97dd03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java index ba24bac6d4a..cca3bdacae6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 225208e1f30..e9edc0440e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 2a1849b67bc..a35011a22d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index d4e2909944f..a849111229f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 7b394231288..1c2b31bf741 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index c9ef9b23b1e..0fc816da6d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 8e25b0b8993..ecec747f988 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 8bffa7f2198..d7a3199379f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 009a5ddc028..635fb8f2667 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 0d55dc1e4ba..9e67fda81dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 5421ae20d60..9d8b415cbf4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java index c8bf5eb15bd..ba45bf906f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index c5c437ca0d0..31914659b56 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 28064a97f88..f115afc2e6a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 2a3545a0652..cf6f29f77a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index abb8af081ad..16bd342292c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 82865893734..3183cef4f42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 00f75d7072e..320390e7c24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index d490476a771..7c8c4f3cc6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 255c0cc7bdf..bb28a6d91ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 631a404a3f9..b28bd1a6dab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java index 4cdadb607c4..3095746befa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 4de75912e6a..8f0a0b08055 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 2ebcf09838d..e195227241d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index b3974ef2225..c642491b2bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 0272f38453d..9110b4393f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 0c3d945b0a7..45ab529d77e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 36501741683..159c7ad1192 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 9c61c044c21..e65964976da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 18658feaefb..2c9f5dc2b23 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 42af1ff5822..9cf335670b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement.java index 9b788c87cdb..7cb4503baaa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index e03da6f614d..96d103ed7dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 1d5dbb75065..f0f2e6199f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 9c476786ddd..7f33f2e4fb1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 9d497365933..71d6900cf17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index c98ddbacda3..66794c1f8f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 0795fe936f7..b4a9781a6b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 8aa6cb96193..7fc68ecb503 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 1b27573053f..f9c4b761e4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index d234d86c7de..298ae378859 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement.java index 1e8750b6352..0c03a1c9400 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByte this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 941e5a099aa..2e3372d2750 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByte this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index e6ad08e968f..ea2325fbc4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 5a40d176a0f..791bd91ec5a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 2978e5cb961..5e2bbce92cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 947fc01c7a9..518a1e77e8d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 0bec7797b54..d42ae69aa9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 413f6495826..d5d5d524957 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 18c1aec7df1..5494bb4bf9b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 3a441e7bdab..7a0b07aa906 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java index f9b3135aba3..803ec62bd6a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 2fd4bf5252a..4386d4d0146 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java index 64b613a0243..eab166cac13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 5a1fa2ce544..e8f251c933e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementIpSe this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java index 68b792dfc56..4901b35d0c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement.java index 81c72032007..e0fb1d0518d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement(statements); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement.java index 1b3d4eefdfb..833ea43937f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotS this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement.java index 1f8187c131d..4ffb1eee53c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 7eef5130f9a..dc3b35a3bd7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index a0463772984..6d0c6ea89b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index e4ce1091b43..2e5842f3c91 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 8ae4248a730..af30666d269 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 862b8cb9b4f..4b872db2544 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 1561a64c883..a66ff7c1833 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index d42ec8f568d..cf997b176f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 5ec0defda88..9a3b0e4c2dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index e4f144eb661..02cb8455682 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java index 5e606366e25..8063fbb9af6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 7c583ec7345..3d21368eeac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java index a41e4fd2f70..53decd7f44f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 18c6b7a80ac..ed0aa42ed39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java index ce3eee0e493..a36fa97e51f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index d4b4ffc0844..ca70bf2f3ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index dafab312b94..94f57485edb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index d103f8c4304..ea24cd6eaac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 4aaca6f2b07..9e5df03fc31 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 489af71b6ff..ed56822e4e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index d975178b6ee..d9381edc88e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 9ff2fd67482..12c03ca91a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 265845c8035..707d630bd48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 3dfc7985115..421cd2c14b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 145fafbb5e7..6e2cf4b20a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java index f98102f139d..b13464083fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index d61d864b382..ae9a445f41b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 1e96ba09d1d..1bdaf5009f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index d6c8d1a3181..41b8568094c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 8447566370e..847404271b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index b744588ec76..971e0bdc2dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 07ec0a5e899..b145fab7656 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index bac398f7c42..d288046490b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 26bb124f04b..264326cf832 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index b2db92e7cd9..1da6a22dd1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java index 4c098fa2e48..a9670c712de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 8a16e34d190..52dd59141de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index b9cbd35a06a..3d66fa743d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 48d2610e6e0..b839dfa911b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 1e7e1553d62..6ee4ff9351e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 764b0a9cc4a..c06ab7a4243 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index bf2a00df85e..feb36cd7d3d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 6dfa48f1783..a7b5f521049 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index add062cb3fe..335bceb15fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index c2a50c2c252..7c0c5b12d81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement.java index d36879990ec..9c0a4c33bbc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index d009f790724..f278fb0ed54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 49ae7db4f54..f84280afa5f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 4fe329f3050..8ba24fb2c6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index a204c70b7e6..158a68ab693 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index ff237a39573..1d9403acb2e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 42511e1192f..fb107a07943 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 546868130d5..af82840b668 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index b1bd0d6b035..5f729515415 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 189ab3d39cd..f5419608c34 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement.java index cf17328be1e..fb36df12805 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement(statements); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement.java index 953a1a82aaf..0ea761287d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrSt this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement.java index da25c73706c..d7454188490 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index a959234a4ea..7281774a84b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 7ebeb15cf3f..ce365709a86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 8c4ad8937c6..57a582d788d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 40cdc10c7ff..2aae3a64c10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 6b9d0125d75..d4079c67d03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index e59d1d5bdd4..39cfb5f762c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index cc6cef7aa14..e29dfbe9f34 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 2af0b044aff..0625f1307ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index bc524609c31..285f68642e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java index 45571459731..0916ffad1ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 252086eeba4..4bbb8d1666a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java index ac2ba950619..103f5d06ce0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 41e4a0fb21f..2660cab9a3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrSt this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java index 456d2b29045..8d9874ea4b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 1fdc0901c8b..ca9f347bde2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index b44a8b139fe..c1c05dd2fe4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 3588b8a29c4..989ad30fd96 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 2076d8ed0df..72dd0a6f004 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 3059f18dcc2..17a9a8cd978 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 61620bdd4ad..ef0503fc58b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 4f982b24ff2..94996d56f44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 3dcb9e1ab9a..1b0bc587ec5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 0a1b08b2bd2..a5d42d113a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 31a4560472f..e24f6c5f8fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java index e42a1b5b447..5a1dbf4a7dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 25c5c870f78..f904b568827 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index f8731787ed1..297ef642025 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 631bd115e85..b09bc7f3457 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 210508e3e6c..43a395c766b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 10d783a073e..b9500dc4246 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 53d642e9757..32295e74e95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 38596826e39..c9c6fcb7aed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 09afe9077f8..39d7b1a54f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index 132a8264723..96680c9d764 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java index 9776199db13..b5e2180261b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index d6147f8430f..a3329718848 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 3dff016eed8..88bbb6408af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 252fee92615..467076c3aa3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index b587f068d22..75a1d68e879 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 8a33a1f1775..ac1259cc570 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index e12e774fda5..80ec6627915 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 40b07bc1d39..a13478b8386 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 628b2357d0d..88a35d80f14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 641b3e5c6a7..ea9a0601dcb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement.java index 4e99a305661..034fbd9d3c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index fa2b93af490..c94047a773f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 683994d9983..1edf8cf743c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 7e790afa72c..124fdaf6341 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 07a0d683924..c88deb0dbbe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 38d87c6a67e..fe920871cdb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 782f8b54a0d..03564065c67 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index af676205244..2d4d655f067 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 89ec37caf48..510cb58ff1c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index d31dd6fab36..d4969d2e29f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 95b00808844..6ec4ec28c4d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRege this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index c74e6442a46..5a8a28c9540 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRege this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 5b1a07f3b26..5131eed7697 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 44df75eb068..e8e75f21916 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index fef8bb83766..ee8a22f4617 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 6106aa11368..88eb5aab607 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 400ffaa3e0b..e3d08a7fa34 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 1241371dad7..845509e5b8f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index cc7d28d39fe..16a2c5acd7c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 0cd5e7097b4..0625f56fab3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java index 40c80fd40f4..c72ed7c0c23 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSize this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 6eba07cda13..5ddc2f6faee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSize this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index e1528d58e81..f69faa1b51f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index b59f0c70421..c66a60481d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 159edb80159..407ca0c2aba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 36a0131a13a..b81de611421 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 449867df4f1..b3c03122b27 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 58d8a30ce14..caedf4d0b12 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 361f497d4be..0dbca44c21b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 832e0a02c7d..5bdc6f1c400 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java index ec4e18db44e..9ade8c2c510 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 3a9c9eb7a20..12404382c70 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqli this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 1558085d087..49720d1a840 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index c3f7d25bd70..4b7203d6a3e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 2759d555013..ed3b410d183 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 761f4776a86..20c3b3847c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 315e07478e0..6190bca7ebd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 99b79b00036..0f0c0ff9a14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index b723b798a94..e4e9fee96fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 67e3e42cfef..d98737fea7d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement.java index 11965b497b8..adb1adcda6d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index f8c63583316..878b1660857 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 12412d3f7bd..f43c91241c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 437fbadba60..84a6c38ce78 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index ad5ca746798..5bd578274d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index bab792de258..7c50caed2d3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 42744d9e153..5fe3e4318b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 0c9ea38d294..8f236c87bee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index f8e1cfa4d2a..07b40a3681a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index a6ca86cba50..c5f7c6049d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatement.java index 4edb283fd1e..ece597d2485 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementByteMatchStatement { * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementByteMatchStatement defaul this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 255c38a478f..25ccc39d268 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementByteMatchStatementFie * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldTo this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 96df6833e77..73ce8a517d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 623fc3c4697..f916a3f6c55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index b3b2b96ba9d..24281c567d3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 1ec50b55f93..1b27b51ea97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 1f0977a5974..e84b472d08e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementByteMatchStatementFie * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 13e9d16e602..d8c3f6af81f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementByteMatchStatementFie * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index a1e23237f23..c3cbb0f1ebb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation.java index 56ef9e86cef..f24f1d22355 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementByteMatchStatementTex * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementGeoMatchStatement.java index c14a08cc75e..0ae56bcead8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementGeoMatchStatement { * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 23318c9a47d..65ec2159f4f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementGeoMatchStatementForw * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementIpSetReferenceStatement.java index 834ee275f59..a095082a42a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementIpSetReferenceStateme * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 71e83925b54..9cf27ad4fbd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementIpSetReferenceStateme * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIp this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementLabelMatchStatement.java index 43cf2ca23ec..900995b3cb6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementLabelMatchStatement { * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatement.java index b2db7349529..1a6dd30d370 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatement { * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatementStatementNotStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatement(statements); + } + public WebAclRuleStatementAndStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatement.java index 902ae6fe994..05f32027d2c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatementNotStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatement def this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement.java index 8444595d5e2..dac8b7b7f80 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement(statements); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement.java index a8771db9a2d..207cbd35773 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndS this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement.java index 9595dfa2f80..5aac1a21922 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 9091488e21e..52e2a1caeab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 539c79643a0..a8e1c2578d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index b8e474dcf71..10f74e21b93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index a7e7c4330b3..71ba3e77d00 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index b5dc9b9f90e..5519957e651 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 6eee528745b..39af3f1a3cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 1e775c5fec0..aeb5a3f95a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index df4ac0a16d0..c8856b79fd3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index d33d8c1a606..d8c3bdf9f0f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java index 66d4113ea5b..2b632fe1c91 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 2faeecdae11..cd6b7dc37a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java index 196789b5068..1b9147a59a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 57331d9eb81..7148509d883 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java index be706be171e..f73e6cc01fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index e8208b37b14..f0bb02908af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 72251454c89..1d302dd078b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index d8b25289fc4..956493723b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index ac4abadea09..5ea92f510c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index cf1556bced8..7c401e7c779 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 61b725d38ae..f9901362d2d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 2c4139f5fd8..ad071383107 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 3a71d246aa2..33bb68baef1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 7d56b9ccccd..0f4af0326a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 32365b83b30..6a334d84c8d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java index b2b3278b300..bfbb105ec8f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 0c5091c36ff..702a5dc4782 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 531093d14b9..be01378e335 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index aefa12bf37a..5878529a23a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index e984421d0be..0801f3dde16 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index ea62dbf594e..6ebdadfb336 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index f2a1d2dae46..a6e578fdf00 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 67795bc6924..eb28ee9011b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 96ea51be795..0e796729352 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index ccf2539a09d..f512342fb8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java index ea2808599ae..9833b150505 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 1d1141bda21..5253b652808 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index eeb196b6e17..a9a8cc0ad01 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 46c10258e8e..e166f44c6ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 85f1a6112b1..a791bde9858 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index a0b72ae7c58..caf2f4b9b1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index f977c17927f..a1113cc8e39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index b034ce42954..333b15710e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 3c4699d9748..864534e2eaf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 6b3f99181d5..5761f9357dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement.java index d48e820d24f..df58f283723 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 998136f3ae0..16b69551b8d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index e9f53cf375e..5d34733345a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 6ad7252c8ed..f34695bb42b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 6db7f2ce0bc..273fafd58c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index ad0949433c6..29006d312e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 996f64e3b93..05c94742713 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 2f1ebd2da9c..0482877b581 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index d94da6a66e6..15f13c918d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 77ef4b08b1d..debc8e15612 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement.java index 454e0f7fd47..c0feb9788a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByte this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 5c11e99c9d0..27873fa65ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByte this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index a79c2e57599..e7ce1c29ca7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index f07476260d9..e54f8dc8d7b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index c35c61cff5c..766294b5b12 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index b527856098d..6d7ec65e13c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index e16dc6ed8d4..de2415cb3ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index e4f6d716541..b9fa1e75c63 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 30192c6ad5d..2d00082ca14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 109a4658014..996de3dad13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java index ee6e19c5179..409c6b188b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index fda26f72af3..2148d05f359 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java index b2796278ca0..ede665c00d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index ac6f851ce94..6f5561fcd6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementIpSe this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java index 12338c1b9d6..fe125988411 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement.java index e7d8e79d7d7..98ab4130c82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement(statements); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement.java index e88a5fb9dae..b4215e09968 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotS this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement.java index 78ca27dff92..54170005310 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 718a895bcf6..8f1c011de76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 2d66a191589..d222f7587fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 546750ec696..fa7133f589a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 4d492458919..383033981be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 30f9579d2b0..3859f128c7d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 400a0402067..6ed77870579 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 70a8056d508..83968a64f22 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 16c160c321b..d93e90ca4e5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 5a0ffdd1754..6e7ceac5d5b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java index ac3f83694a4..473b286a995 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 362bbf57615..4770335cf95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java index d6b07d34142..c5c5c739fa6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 9b01bd6ffdd..475bc0603ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java index c729099fc49..a2459806fb4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 95b4d915715..2a45cef4ac2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 93606f006cc..b76bdd70d23 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 509309c4b51..51aeda9cf58 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 1d790660a67..0a519677974 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 2da8b6da6a3..9e0663a8cbf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index f61e7f60f03..ed915039376 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 9f33afaad88..4804e80aebb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 04bd2b9f4d4..0b1f73524b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index b89dbc1b43b..1c00522262d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 629d4da9ae2..0d01ce465e5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java index eab50feedc8..9307f7d84a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 213a6e90b4f..80c12d523e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index ff04b9742eb..06cb1b68a03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 484aa6fe705..2c3d883b476 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index aac4579bfa1..49559372bc7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 907a17e1cd5..ce47738ea91 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 796f67696a1..31d3ea678e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index e1ef5152803..201002fd324 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 63ac4e3ddc1..e449186dfc2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 7d464b17672..393f2aea56c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java index 92fdba04929..76e20b8f7fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 984ca1ff4f9..1643fb99f8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 3e78329bc15..bda2d8b57a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 95055e1afa9..1d495107ba0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 3f685f1a2ac..dfccefb961b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 014e38e9435..24cd2ca7eb4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 9c0f7c06eee..7d27dc7ca50 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 25f65308929..0b72dc8bbba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index d432297cfef..621fe865208 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index d3fda6b6eba..d837809bea9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement.java index c7c25ac2cf7..4ff6c416bf6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 0f952a3d42c..74afb1fdef5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 8cc508cde19..cb6f15a4aa4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 8e4b62856da..0985197eb42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 395ddbb3226..75cb969bc0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 651a8170830..a8f748fa7ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 5f10dfd14af..f94e8b834aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 42f7e375b99..c8d555f3a49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 0f50e5e9a71..451b5fb4ac8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 44e472c457a..272bf3e7590 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement.java index 7d44c323bcb..8c206e2bca1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement(statements); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement.java index 8fd02a9ed64..e7a229dd234 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrSt this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement.java index 87c025ca579..895261cf32e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index efb91b67f8f..b46f3e4b9bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 985600758ef..e21912d77f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 266f58f1e67..7e26f661465 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 8df804729b5..a68d98d0a3a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 6bf71c874fb..c83b9738756 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 6774961f7d2..a74036a8d7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index f3e29576304..da261cc235b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 558b4d1433c..49c9b44576a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 1f6e582548d..415071c060e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java index 04743d0a068..0cf7deb50bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 3ff08e6f75a..388ffcad029 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java index aeb14cbb8b3..1bd35bd89e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 2b9f01b0628..7066f15eaa9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrSt this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java index 65b7875a57e..215661b051a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index d7ea34d5536..d238a0bb81c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index a5d5fc9ae7b..8c62e516b59 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 4844879f98d..eeee1f3dc46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 0a985ac3eec..3e4a599789f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index cb955a32a53..beceeb80c43 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 96b326f7c72..12f016cf1ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 1b9e7dd225b..6dc1a2838f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index ac3bca5bdb2..9db2a4c3c79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index f148cac8275..fd1a4d34128 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 6d534010b3c..0a48f7f34dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java index bd3c78036cf..ae4cf1ff2b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index a2207d984aa..4f7436bc549 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index ecd89bf6799..c77a774dcac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index c48a1ce4bdb..9c2543dd3d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index c3034800a0f..074dc0277ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 63f6d0b71cf..ad512a0e548 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 8dae7159b97..f594120c9e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index afd00532a04..a17f1b5c1a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index d0de6b1d738..8fc55985bed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index ed3591f91d1..f58cc8a7fae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java index 60c47968cb5..91c66b1e756 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index 6201b181b58..80633a24383 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index a63e4ddd036..9db98889337 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 8b93e9415f1..ad07e202fcb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 5b78d4d43dc..01ad11f0d68 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 0df4188e788..2f14d577514 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 2ffd9f86e3d..25bea6d4809 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 8deb0ef0ea6..8b26e9c007a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index bd324ea7b5f..211ed89bdff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 398275248b2..40eda13ed26 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement.java index 1fae0774020..78b902180ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 54a8182039b..398bfab132c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 4c64d2f7b88..a308dccda0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 91426151019..c66b411451e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index f063199cb30..e5ef08b88ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 0ab8b3aa49e..33bcd590e70 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 25f60a04430..ac16b1d8372 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index cf0f658e0c8..f0d160fe46f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 044a90c7521..b279c7ec03d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 39becef2210..1fdb00bcd3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 74163e2a3c0..a3785d6aeed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRege this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index eafc0e181e8..17314e17049 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRege this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 5303caf4c5c..28511a6bfee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index cccb5426667..69374057a61 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 6a36c57fb02..4f6ebf93a0b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 3819390ab7c..1a4817228ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index d5c0f07843a..f842b23ed69 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 311a3cf8e27..e2fbe1ce949 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 885fa0ff5eb..d5ea37955de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 7c57062f42c..c78b139b615 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java index 4c47f90258d..c1a555a4246 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSize this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 3ecd1b4d9c2..a74b0a19104 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSize this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index ee67dbf6637..20f6cfdf290 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index d0defaa10d7..8f2cf8d7a36 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index aa5cbb72c3a..d0e13574c13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 0a9e48872a0..7b8a1e27cae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 0962878b228..e18c8e88499 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 13d6fa8b995..cccaa8c3b82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 581b5e26636..16fae400b44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 181c1e329c2..27a2f173b10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java index b8af76a2734..652bc0c739e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index ff975f4bcfc..6a9c19ec17b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqli this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 61b43e1350a..9e315320e3d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 7d11f794cae..0af0920a789 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 4cef06b91d2..b77d9d2de67 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 5591b5969ed..3e121782043 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 99f1fa400c9..73b9764c9ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 408d82e010d..cfe5a74e2c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 89f3c186b8f..4c76ec5f581 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index fbfc1a67d4f..ed9ece3760d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement.java index b1164091e3b..ba1474056c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 662cdcf390f..06a9acfeb2f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 7251745143a..a4ffb425222 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 71e3ac68008..53b8adce24c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index e7bd4a2c52d..c2efe88f7ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 426b8babe00..719800a1e81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index de73df597b1..695d5a4f089 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index d1c08f90e90..478db043b6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index c6da13f055b..03f86234dbf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index dfaafbf58b3..01510e6f7ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatement.java index 2caf92da5f6..76421369a36 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatement { * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatementStatementOrStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatement(statements); + } + public WebAclRuleStatementAndStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatement.java index 0eded43bcbe..8685531916b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatement * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatementOrStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatement defa this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement.java index 2e304c63b65..ab0af54993c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement(statements); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement.java index 5edf5bb1810..efd3b542e90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndSt this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement.java index 84244ebe8fa..5b7b1bb6e22 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 023136c5a90..6ce2054e525 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index d83e6e7935e..0781a192541 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 933989bb7fc..4b32c179dde 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 24d344bb7c8..7c2ec09be0e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index d761bd84a23..87ba2c709e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index fe3bea364df..f16fbb943ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 4657c403f5d..43cc0fe0a61 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 7425a5ed6d6..6848a30a770 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 93b93dd1280..b9bea37ca48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java index 07bcb4407cc..7901efa8b35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index aa3c2cce663..3999b4aa066 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java index ef60104cb04..04810027f5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 38aef28b1a0..6902bdf0c3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndSt this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java index a7773567941..f1101060883 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 988dc2686af..09e81135943 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 390e3b0b6b1..8b42a39a4f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index dc4c54ad4cb..5d13447bd2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 0ca7b578f74..60a02de5209 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 4766ce60a37..57aa7d77b25 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 9ca672b218d..e518a12c3a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 1bbe88e1552..dbef4bb0a84 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index e65b6e31530..ce7d6d0e45e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index bbb15058699..205d6fb9b6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index dc694276d98..d5dd1b7b9c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java index 722e5264c39..901540baa0b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 0f1a4658b85..1225b7255a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 732d9a69b5c..85bcfbf1ba3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 65a3e9c0229..49176a14113 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 4732aedeb57..6d096a4151b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 137fa955349..facac3802a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index a4340ea988f..9cb0c72a560 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 091bc3c3e14..82914c4b771 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 7d63a717f6e..83d32ac0eee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index de249abc329..614fe7a3093 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java index 13638e1e3b7..8246fe0534f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 9b0b8373346..faf9143539a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index b7c7c27e724..e1c90967925 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 06a49ca8591..7917d89f62a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 1a346cb4f12..a5b3b2becb8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index c3ba69d71e7..66f07336aa5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 754c47dce65..56551e6500f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 129aeb0b4e2..b456a851251 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index bbe1e1b5945..b929ff37274 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index c16958f22b4..c827f9f4906 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement.java index 106241a75e5..820983d6996 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 955fd89bbd6..15d6aed5733 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 66a1905b002..35742315d8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index df0c12cbbfe..954debe7f2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index dac646ee55b..19a68e96027 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 95b788f42bc..0abe357a189 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 6503d0c95dc..1ef6ed6fb24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index c203007bfb1..f411664beb6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 322d5bcd3b6..ca1bd217bef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 9af80ed8057..0ee4b67ab05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement.java index f68dd1d4fd2..009b03927c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementB * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteM this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index b6130e90d06..16dad141d95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementB * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 4c08d42bb40..8a432326748 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 2d4479da6ba..30b9eb874c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 710f9db8763..1049860580b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index cc4e1f615ae..3567d02a8a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index b060e9aa595..6db1b6f742f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementB * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index be27fe6ace1..a24eced22cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementB * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 85f83a5e3f9..a2daded7faa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index b17ac6cc02d..fbb8a5df6be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementB * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java index d18db99a407..11627150f40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementG * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 1abaa2d2cd8..bb9bc72b7f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementG * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java index 675cccb2ec2..7f0ad3ce7e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementI * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index e5565ca0e3f..a824105fda5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementI * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementIpSet this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java index 3758c24184b..4063af73013 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementL * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement.java index e76e4eec3ae..80118a50f1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement(statements); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement.java index 5e510a6fee7..29ad3c1b59f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotSt this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement.java index 897c4fba133..dc2cc2241cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 11badc28de5..8fba2c56948 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index bea20547ce3..8a6487f8b17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 13188df7108..165e3060785 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 3a4b67496e9..bcb9807a07f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 03c48c6caef..07572d3272f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index aae71c23689..84dc1d19ea3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 55da948dcfd..98e483fb259 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 94fe8f235f2..63815c63134 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 1600dbadf7d..0fb97c98a5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java index a878562d042..680204f7666 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 811b6908e88..2e3a3470a53 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java index 3af90ac762e..9b50725317c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 25b4bd2380f..8914c81c4cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotSt this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java index 9f15640a4bf..646680accdc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 501eeed29a0..c8460fcdadf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 027009607e7..7e07e5a2f4e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 190324e1db2..a230c48e3a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 234f85a669f..a32cb250f71 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 45525747830..e4f28b5a497 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index b4b18b8cf1d..86437fd6270 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 5c9d3fdfcc8..2842dc710a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 4be30cf22b0..1f06f8097a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 36a80c83f00..929981ec275 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 9b11eb89f41..be7ed433bd1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java index 4db6590729b..80579d1bf82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 56a12441533..620957b75bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 693161eb843..2ceee0a593f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 55df8616978..325bef71578 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 48852d2ab75..5c6da2f9f51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 6cc13b66bc5..0b39d87bece 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index d8717d1c1e2..113f118b2cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 16c5996d7b6..153fa9fcf4f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 5f6f1a7103b..9e3234fc17e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 53eba8d80dc..d8f5df28e7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java index c42c718739d..d7fb0de1254 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 46a56199aa3..e0b1e1be4ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index b815b7f013c..94c6e4dcb2d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 3c85792488f..d155a8f20cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 377a91e9464..39d80d614d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index b3f69271b00..c3925d2c479 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 4378e18c011..a9626893711 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 93e01b98d2c..deec2daaea1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 4eafbd24cf7..77b55496f93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index 65f7efc90fd..17fe7caf538 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement.java index 84264b11836..180b66e9743 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 5ea55312062..c6d9ca030be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 5a09929e539..26f35479da9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 39c3f7a3e60..89757329cf3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 329830b6560..e655a2a0796 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 9320bcd245d..a09b97e6455 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 5e6a5337691..77390e764a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 4c357bdeca9..f6d3726f8b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 943bbd604c4..ada972c6f9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index fc8748a598a..0090ed223d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement.java index e7aa78fd7aa..358c6e1d1d3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement(statements); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement.java index 70627c8a436..d3d249bae70 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrSta this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement.java index dbf4b5b16b5..357a32262ed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 2166fd080a4..1bde1a431c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 86682d87dc8..22f2ecc6617 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index b2742f7abe8..bf65ed91fa6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 9f5b3830e5f..3ff842889eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 8cd668309bb..89db942c734 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 02090be0ec6..756b5510ce9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index ca6aa2fa7cf..3c53a141459 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index b91a9dc6b22..d554bf4c97c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 8d6a3f095b6..5b1acdb74f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java index 4e09066b003..2b9b52e3503 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 86d14fd5ea6..f5368468072 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java index 1858b91edb7..85218b11c7d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 8093c9a6ab7..77f9abec10d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrSta this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java index aab3320ceaa..58099c22172 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 02af8e4928f..753cad9835f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index ececc9041c3..8508019e1c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index e399579c3c0..ad18557b5ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index e1c68c43189..c3d3d961b60 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 3474aaa118f..e1cc21b5ea3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 5330557d4ea..8699dfd93f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 050ead93e6a..b1266e69886 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 561ba0dcac9..0c41458855d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 2eb40fad005..718b6255328 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index e39af2cdfb5..426070d9637 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java index c336a78aa38..6242e3d8a95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 8e1958d5dda..444ffd03891 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 43f71f22104..92db8f50ef7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index aa11ceabb5d..0f841633821 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index f605a88f6a7..3dbc39f1365 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 7c5bebf3a27..5f43ac286ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 2c49a7a2d54..b0b4e55d3b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 3de09844577..d8e53c66e34 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index d4194542b2d..643a13e6ac2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index 532556fe83c..733215502c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java index f1575c37a34..7d743d78d00 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index a9e229887a1..c580e7240c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 38fec43926e..362268ed69f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index e97e860bc6e..e709e238fc8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 55cbb995db9..b51bbf7aaba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 44682eca9ef..ee13cf762b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index a52c32e467a..96356b1191f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 84c7b90cfd8..cb3d5a47208 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 09bc91c4951..519bfc92fc0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 920a0b3f96b..27ffe1843ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement.java index a9380dc87f9..0bfbaa56a9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index f9eab6db6f5..80389b84b1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index cf1f5d8cad9..930bfa08ed0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 0e4bc158b6f..d4bcae5ec21 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 747964fb580..8f484248be8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index ba639ed0365..8156c05c370 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index af26af04f21..ba911f502cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 9d766197669..a70da5cdb9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index e3c31a44e43..e4fac0887c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 6d8486de31a..7c84299d189 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 433da18fc61..21e235bc805 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementR * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegex this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index bef55411a5b..e5d20d44081 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementR * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegex this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 5193695834e..46b137c762f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 60c23056833..43118f713bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index a87bc090c18..0527a721385 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 6afc10ba7a8..93a3f347d16 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 2bcb869ead3..fdbc83415f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementR * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 352e0287c1f..326eedf2861 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementR * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 9b6433cbf3f..539cb268110 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index f4f7d85ed14..32d13075af6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementR * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java index 58e564a4ee4..f8bbad544ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementS * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeC this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 49e934e2387..f2067bfdcdf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementS * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeC this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 445682a6f3b..3879137c0a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index ce5321bbfad..23cfff61028 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 3dc01f326e3..de106813526 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index d96ffb876c2..39c30431886 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 6fc4540a864..11ec9462723 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 08e37820d54..906a2015a9b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index b91f32a924a..22378945228 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index 5d96d003ee5..2da1a376406 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementS * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java index 2d49e6db285..eb765de2b02 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementS * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index 07399a28d51..50fde73d991 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementS * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 447cc35f394..988d255081f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index b4eb445da90..820b3ef05a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 6755f96c923..ab2f88e6b40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 57ede29b7a1..6df27e8537c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 335d15f40d0..0d214bef225 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 55a4301fbc1..50148c86a49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index b98da294ce2..e1238b97597 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 1e1be2e330a..3245f94ed88 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementS * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement.java index 22089991993..5d1b90ec5cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementX * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 3ec3359bb08..2de31465344 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementX * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMa this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 3cda2ef537c..22e30d57d6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 6a81ca877bf..b8c23e07d41 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 5dd5eb0685a..9ba309cec4d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index dc91273abfc..4f2d5fdf997 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 6ca57b387d3..af4740825ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementX * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index d822b5ce262..6eabd26b057 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementX * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index d1ff1697832..dad8f203560 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 1793cba4d09..36395e0eff1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementOrStatementStatementX * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement.java index ca24502283b..565296b2654 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementAndStatementStatementRegexPatternSetRefere * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 8133475b493..5ac234ccb16 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementRegexPatternSetRefere * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 40edb2778ab..994b869f6c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 5b55842ed53..72817fab350 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 6dc8539e19e..272b51287fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index ec028dfdcd1..c836a130767 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 97c9dcd2597..443cb908e3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementRegexPatternSetRefere * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 23afbac1aa7..7c5e068311c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementRegexPatternSetRefere * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index c0b5890be1d..3f2a5cbef0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index dc1b72f027b..b902a2cf3dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementRegexPatternSetRefere * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatement.java index b58774f5ff6..442a2472aac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementAndStatementStatementSizeConstraintStateme * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatement d this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 93b7808d9a5..571de016776 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementSizeConstraintStateme * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFi this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 3cc3f156727..26be8a9224f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 31202a66542..9a811599137 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index b56fcfbaed0..c6a94767078 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 1a6f65f9e3f..ba1e70f7853 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index ccdbe86370d..5aaf40dbe74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementSizeConstraintStateme * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 7ecf6600604..7c003ca5a32 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementSizeConstraintStateme * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 75e260f2f3e..b1371d16d58 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index fd9d09f6c1d..5a23d73400f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementSizeConstraintStateme * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatement.java index fd847f91968..d74d45ae4d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementSqliMatchStatement { * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 30c5414ae8a..ff73b6a354d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementSqliMatchStatementFie * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldTo this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 57781ec0930..617fb47bf76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 286c2d1126f..0f38bc3b27d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 29befa55384..45c6945a6da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index da8f8c4aba0..eef08ac7ff0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index b9795c3342b..eff778618c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementSqliMatchStatementFie * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index c060767af23..37ab8f9d572 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementSqliMatchStatementFie * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 41f9b5154b1..3b7b629251b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation.java index d00499197a1..11a9a72b52c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementSqliMatchStatementTex * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatement.java index c89538e3604..6623f2b2517 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementAndStatementStatementXssMatchStatement { * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch.java index b448e67b874..ae2c84a11a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementAndStatementStatementXssMatchStatementFiel * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index eacf5274b42..5a509b0ceba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 126c5ffe80a..521d7bf765b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index b0b35fe2598..8582ea3e72f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 0c130d27ece..4e76cdadf1c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 86028f24364..88329e64675 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementXssMatchStatementFiel * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 6d786130594..232bffd4fae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementAndStatementStatementXssMatchStatementFiel * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index f53fd6152fe..32d9fd5f756 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation.java index edcedf401d2..4f194f95788 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementAndStatementStatementXssMatchStatementText * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatement.java index 03f32e1c107..fba9c03cff8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementByteMatchStatement { * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementByteMatchStatement defaults) { this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementByteMatchStatement build() { - return new WebAclRuleStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatch.java index 137a3e568e6..b9cbde77d59 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementByteMatchStatementFieldToMatch { * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementByteMatchStatementFieldToMatch defaults) { this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 3a7c3f90ab6..61784c78267 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchBody.java index 7cf80506b91..148e9bd92c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchMethod.java index 159ef2aa575..82179167f5a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchQueryString.java index 5dff135b210..992b0e3a4e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader.java index dda27ccc0bf..e8203c41782 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 595457d09ab..d9416e019a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchUriPath.java index 5259a38630e..02ed9d5b38d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementTextTransformation.java index b9b2eb4f554..e722acc6518 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementByteMatchStatementTextTransformation { * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementGeoMatchStatement.java index a0eed9468b8..bfef4e043ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementGeoMatchStatement { * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementGeoMatchStatement build() { - return new WebAclRuleStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementGeoMatchStatementForwardedIpConfig.java index 0ae2f6a5088..639db74aa47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementGeoMatchStatementForwardedIpConfig { * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementIpSetReferenceStatement.java index 2be6f143084..173658ab89f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementIpSetReferenceStatement { * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 71c4097f9cf..3c13fba90f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpCon * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementLabelMatchStatement.java index e6b29534d10..7286a2572b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementLabelMatchStatement { * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementLabelMatchStatement build() { - return new WebAclRuleStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatement.java index 2ce1ef2411e..fd96292a6d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatement.java @@ -18,42 +18,29 @@ public final class WebAclRuleStatementManagedRuleGroupStatement { * @return The `rules` whose actions are set to `COUNT` by the web ACL, regardless of the action that is set on the rule. See Excluded Rule below for details. * */ - private final @Nullable List excludedRules; + private @Nullable List excludedRules; /** * @return Name of the managed rule group. * */ - private final String name; + private String name; /** * @return Narrows the scope of the statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See Statement above for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement scopeDownStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement scopeDownStatement; /** * @return Name of the managed rule group vendor. * */ - private final String vendorName; + private String vendorName; /** * @return Version of the managed rule group. You can set `Version_1.0` or `Version_1.1` etc. If you want to use the default version, do not set anything. * */ - private final @Nullable String version; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatement( - @CustomType.Parameter("excludedRules") @Nullable List excludedRules, - @CustomType.Parameter("name") String name, - @CustomType.Parameter("scopeDownStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement scopeDownStatement, - @CustomType.Parameter("vendorName") String vendorName, - @CustomType.Parameter("version") @Nullable String version) { - this.excludedRules = excludedRules; - this.name = name; - this.scopeDownStatement = scopeDownStatement; - this.vendorName = vendorName; - this.version = version; - } + private @Nullable String version; + private WebAclRuleStatementManagedRuleGroupStatement() {} /** * @return The `rules` whose actions are set to `COUNT` by the web ACL, regardless of the action that is set on the rule. See Excluded Rule below for details. * @@ -97,18 +84,14 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable List excludedRules; private String name; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatement scopeDownStatement; private String vendorName; private @Nullable String version; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatement defaults) { Objects.requireNonNull(defaults); this.excludedRules = defaults.excludedRules; @@ -118,6 +101,7 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatement defaults) { this.version = defaults.version; } + @CustomType.Setter public Builder excludedRules(@Nullable List excludedRules) { this.excludedRules = excludedRules; return this; @@ -125,23 +109,34 @@ public Builder excludedRules(@Nullable List statements; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement(statements); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement.java index 9585bf193b4..4b5d79c42e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement.java index 2264feec1d8..f7722257a7b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement(statements); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement.java index dfac45088ed..ad1c442fe37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement.java index 9938f8295a3..49fbe8e57d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 5605e5dba02..21c6c720ea8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index c39b8fc7dc7..88fc36060f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 53e9d4dabad..790ca549d46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 1a8f61df238..caa3963cc5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 9290ccbd013..f1af81c2cf0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 0845376232b..f78e085426e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 810b2fcadda..38648370e89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 3acb34b2338..57aee972eda 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 9796dabb694..264d5d261a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java index 4b65698c9cf..2d7cf15a934 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 24af0e33e6c..2d11a5f3a5f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java index 4d5e4cf613a..08ec785ceaf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 7c99bc985b7..13171eddc36 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java index e70c5420314..67cf0809d87 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 45df32d7ec0..0ea9311a22e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index b0f5f22f4e1..65d58e80fe7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 7b9853ae4af..202f1eb4e81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 25bc64983c5..ac999a1fa30 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 6bc1a4bb7d6..5a6283985eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index b2fb0fdcc91..8665ee7f4da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 781325902b5..3b0eb23bf9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 84ccafa118a..5e407e6983f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 67f379c83af..203c76e8f31 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 193cac75ce2..52eb55ec97b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java index 151e4b8ed06..332356de1a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index ddd6c82e31c..1943c70fd4f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index f9e3a951c1b..c211538b646 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 17f1f8ca0f9..48514347041 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 142084c41c7..9903f93e15b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index db5f0c0ca36..24111353d5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 027e1b35627..05ba7a917e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 6ae86d95774..ce242384105 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 4ed3a0a48f6..b7f63edeb8d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index b56abfaaa13..b468b42a096 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java index 663280b3cb0..399f45c27f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 235058c0175..79eb9ec3b33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 7782fa13674..b9ba1ffdbdf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 76fe265dba0..c12afcf3a84 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 4b36cc326f1..05fd9645a29 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index e3a7e24cf40..1d07515584c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 1125c856b91..35b0b81ed55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 89679c6667b..0b9d4504a3b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 6fd77980088..59717d9b1f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 037291b5cc3..9a24e846000 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement.java index c5563a10c5d..94d3f7bd76a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index e6af59ebaf4..a109db01cf4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 7f3cf8a633a..e0fbc7b943a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 4b685e0f339..56d025740f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index be2b3e0612a..84c86a10346 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 5c0924b67dc..f5c08c1b853 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 0f45af6990f..e0eb2b55d47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 5515c92df27..1534544adab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index c73a2a3f367..1789a958a8f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 7f460797900..b35c7e2d32a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement.java index 4f527d36af4..b1c23311852 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch.java index e2b319a8b26..e724997361c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 0f529ef40be..0d713d2a789 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 6b09b3b21f9..c680a58909e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 318782212ed..9350aeed65b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 51c2c0d3b0c..b56b8f8dbf9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index d59e8502d75..1736aedaa93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 66eece6cccd..85ed4820bbb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 6734d03300c..d1048df1366 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation.java index 3a9665a73b0..0b3695033da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement.java index b7607b5df67..a34b40a439d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 78d50ae002b..a62e2803345 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement.java index 2e66b231808..d06b885fd5b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index ff604bb49f3..8c8ef8ca6b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement.java index 75f9c2b02d7..21bb3aec0c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement.java index f33f3da3a6b..28752000867 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement(statements); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement.java index 7ef50edc5fa..a7442863445 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement.java index 66ebc1b4fc0..120e89ca9cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 4bcc41e9bda..e155a7ec437 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 144248c2506..27f61be4e6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 0fd10fc1f66..d08dfe93a88 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 251f66c9bac..12bcc4226a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 09908744efa..00d5e7a4372 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 1c3d6a02cd2..5218d0222dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 1524998a061..8d68082d9ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 9b0ffaaa22e..12d8ed0147d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index b5429b6e652..a16d9c1cbb2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java index ce35e3dce8d..3775d35f6dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index a564060fb46..9a586478c57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java index a91b89657f4..5deead9d9a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 96c2d5d0f43..7610c24307e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java index a31cdbf4248..2566914d120 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index c24f029fb90..7b8b22ea5e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 36140811ed1..0a07e990619 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index a8881a6cdcd..ae947226d52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 858fb0449a0..9f29a3fd41b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 1a5e775ad24..6a716ef43ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index cabd62b6682..933b09814ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 717d9bf7dda..4e2f0d5f969 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 386d7755b1a..4cc3552f4ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 874c4e335ac..43fdd7c134e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index ff599641347..33ea17815b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java index 27d821c4274..9bf94a3a8f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index a7920b9314f..72f5bdb01c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index d7aefc2a69a..e3b0f319312 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 55ee161d70c..4a6fe4c50ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index e382af5196e..2f672a25ca7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 4d4f84b70b3..308faaccdb9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 5188ec685a7..ee27e3eccba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 22fabfef1bc..e350801ed8e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index f264d47ab75..19123957713 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index d6124bb5688..9b7578763c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java index a41bf762d64..c681f9b33b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 9893b14a1aa..61fb276b29d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 16bda714582..069cd95d627 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 491d12b702f..846015b1ffb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 7ac3bb185e2..8f7b31838b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 409182b1471..d2ce82395f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 4d3899db9ac..bfcc37aca41 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index b4fc7a85bdf..e397e3d1b73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 2922be6d5dd..e2a2b147834 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index 00dc8f64c21..7db0a8b55fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement.java index 9626416d56f..8bc3f1d7a4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index da38f7344d6..a59506eba90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index af303ceac78..0ccf56fc72b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 71ab2aa5f67..68e1311e466 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 5fd4c91593e..0c662ce1857 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index b3481ec606d..c708a5b137f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 3450a0d0d67..2bbb01c96dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index d829bfa85be..a9c236e4bfd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 5af256799b5..a7e800ed1a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 9fa8da2a0cb..fd72823e75d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement.java index 25d48dcc706..87e3ff7ab40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement(statements); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement.java index e87d2d76d1c..813a97de684 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement.java index a58658994d9..36b1915f883 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 3a29c320947..4f2e3a8d7b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 78f54c12911..f71acbc8fe4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 1d6b6b57170..63c2de06073 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index d0f33f81fa8..2045f890867 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 8b9581155a1..f059eacb2b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index bca22c95054..f8b3d3897e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 140e10abc3d..fccc64d6e2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index efdc1b422fd..fa0123ec513 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 1f81994ebc0..9bd5b5139ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java index bb5577b129a..2c984b050bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index a5d91551c26..2d22cfa479d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java index b824d5eab73..90ca8a3cebe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 4e55811dd55..e466347fa11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java index 903ac90dcd6..c09beed50f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 056a5c20700..24e90391f35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 2cfc3c8026f..6559a131a93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 7def0bfc73c..e3d08d63c06 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 87e3df0f40d..da626bddffe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 2231e3b189d..503c84fbbea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index ac7e9975bf3..9a99eb32dd8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index c7bca4b1bef..7f00c3597db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 6665c41d4cf..da6e30f721f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 91502a7e25f..5c849808940 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 6bfc8cf7905..741f1f24891 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java index 095a913d675..8d281ddbabc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index df65776a302..5a392a8e9a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 26d74070df6..79616922f9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 0c70912e96a..8dfe4016ccc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 9f365f0622e..37090462500 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 243ed78d5e6..8a4cfca8a59 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index be3eb666215..3cea8f19abf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 8412fe09fb8..c1135357b55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index c1802ad932b..c9c92dfedfd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index 2257b987cc2..8a90161a8bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java index 0fcacf4a7a2..35619e43c6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index f1b775c0cf2..8f65b8e1731 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index a9c112f5e0b..e4a1da8418e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index a1632fc244d..d88ceb82045 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 7d083e845ba..9d4220ef6c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 33c1a3ccbe5..34d3ca791c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 791b8dd1c03..5c0628edd42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 6763f792039..2d126d7b44e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 4da1e3bd45e..dabb38186e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index b5903c09892..2d5a3e01a0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement.java index a83b212f715..8b944322de3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 19d826e07d4..139cb906586 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 7192cdb2f3b..3e392e83ed1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 92440afaf3f..eac1fb62561 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 0b8d568d668..0337b8c172b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 4913de53e0c..1832122eceb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 79e40ed6b73..63f12513959 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 5c6c7b182ae..28574147158 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 0e8c0fe2fc8..130c161e998 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index c6e7760fea8..fdab8fb02cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement.java index d3910a4d6e2..2b9c44edda7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index df335eba915..7155638328c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index a71170517d4..110ae1b8e47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index d18ba18e758..b07fb6b7e45 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 63df00d8c0b..cb5e1bfceae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 7b4743ca402..a2935424628 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index d43e9245305..95ba20e8f66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 9b02231d6fa..746549e6d9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 3b78672120f..d22122c0d07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 2afb95f3b4e..7d404f96379 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement.java index 3ba2e6a4409..b904d6591ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 9059314d65a..d4d3478321d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index bc4a95db665..e7e4527701e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index cdf7fd2384e..1f2b36907a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index b4b2b0cd354..5992d9b4db5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index b1cc09118ff..d2c64747659 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 9768ff727c6..ff45e7549ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index b6b06719eef..0f663fed020 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index a322a9738d4..76b41c2c0d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 99a82762b6c..699ee59cac8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement.java index 00552624c9d..4619c52e128 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index e57affd5a22..7758038b683 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 8873a15b202..a21a0d5bbf9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 579932d6710..e701e9ab063 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index a1338557a5e..beddf95a515 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 6529ccd3540..943dcc6f4e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 1b468557794..f9ca107ab0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 952d1a98297..96bbc4aafa4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 167c9ed5ddb..f2831ad5799 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 41cde51f45a..bd7c391ec39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement.java index 74e0a140390..d8096433c5a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch.java index d047c2d33c9..fbc75a45f7a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAnd this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 7a4aae1409a..2586549a827 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 4291471e46e..1a95f9b48c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 428629222f8..212ce5d998c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 80ad1adf87e..767748d2c00 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 20751da0a68..527da409c14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 0384b710337..37a79a41fdc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index deb60d53fb4..353453b201f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation.java index d67265b8585..5ae2590ca97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement.java index fdb55759b9d..b3d64a05731 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch.java index 2bf38614e84..d655a6ed845 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 6e2deebc9f2..abe2ab308ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody.java index 777cdbb2346..de49dcfc066 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod.java index be5879e149b..2d16cf13d33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString.java index fdbe8db9b7d..a75187353cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader.java index 17c9ff0e4e1..71ce48517d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 6e743d986bf..edcf6286e47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath.java index 4c157a1db43..957338a383f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation.java index 28bf0d0b145..33d708e2563 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement.java index 955fbf6f50d..1700f960fb3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.java index 452959ed8d5..1d5ddf69776 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement.java index 53db7220e9c..dc69dc30f5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index be9ee65523f..5ebffe38b53 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement.java index 202f3c43c71..3c03cb08a8d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement.java index 2b584ef5292..37f7280381b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement(statements); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement.java index cb79084f677..1e4c9b8b3c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement.java index eb79589cc3d..24c46ee6c51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement(statements); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement.java index 0216a9a5c68..5480f17704a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement.java index 7c985811108..d388a3707a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 4c839e87b23..bad76575b42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 81d5f4b370a..d321229f5fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index a4ee003d8c4..e59e19746d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 7ce7a0e712f..bf59f49f380 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 2430efce2e6..575bd9ce038 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index ddf90109dcf..fb9ad078bef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 38e7fcdc326..31d3ac62f30 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 16fb39382a1..efc9dfaa4ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 4efdf092c52..7b45e32fef2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java index 58f86572127..a06d33ee00e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 421a0c11ae1..b0322df6b15 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java index 0579fd1c479..430f7c2a9a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index c8fbc07e312..1355f21eb01 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java index d7dbda4ecd3..7b503ed4d9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 11b88a5b2f2..5ec8cbae10f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 2b5af0b730a..8ad094e1d37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 3aef0eb0afa..fb4f35f2972 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index fe7e32c36b4..472c7f584e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index f911c5a3fcf..fca013a207d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 9eab4358004..cca96f43b71 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 3d16be4b10f..508242bcca9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 5f7003f2d97..1e97b2d53aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 99341a1c6bb..c7782ba05dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 70ed9057ab4..c5024596824 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java index 878dc49c5fd..0211b9e2776 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index e08dae46e17..b60c882f883 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index dfc0335fa78..7e031367b79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 2fb7be09125..ca6ebba3097 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index d46da12c0af..2253f72f325 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 662088a37d3..21b699bf0d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 88d60ba3c8a..4325b4c26a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index e61ade64849..e4eb13d66e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index a71fe1a29e8..242edb68c1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index d1417b8d78b..f14ad0123a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java index 3801f0f7ec2..4a4a47aae9b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 2d1877a8e24..2b2f9441ba3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index ef16c329b3f..1d3156071e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 50ac0d0bce5..9e4ce45be54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 9adc1a8e620..b6fd5d241c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 6c1618bb8d5..cdcc9f0d137 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 38a2383831e..c7f01c073e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index d16d03e0b00..4f5949917a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 8888eb9a243..3b97cd7a16e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index cbabb70ebe4..9603f2b3a1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement.java index 66e8d793a38..5e37945df9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 590bd47576a..5f8f6f20c3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 98b27019896..3f1cfbbd615 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 62091125f78..13135608650 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index c60a35136b4..e46025330cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index c74d40eb895..4beb2f4a967 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index f1c0ba65b55..8e6aa216a86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index c9faca3846e..b8434977ca7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 41881bc1802..c3d52efa9aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 04f1cfbafe2..982390dea57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement.java index 6d82e521369..e776eb9de66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 3b68e0ddec4..d1358f8eca0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 2d29d36f6a7..28a46d3ae37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index bf600ecb6db..91a9b297fd3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index c96e4416dfd..41d1a296723 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index e8e8dde77c6..0dffc2d2811 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 3d123434236..84dd6aaba3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 95870411360..1ff24951857 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index ce501ea070b..0a79fa6954a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation.java index 2f6dfd21e6f..730ddc33e10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement.java index 0197824ccb6..ef974fe03f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index eed88654e86..00b5cae08b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement.java index 74c9b257a39..ae78d7843a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 060ab8ce166..c67fc4a6386 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement.java index 3177ba6d516..0d673ac0985 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement.java index 35eda4a967a..3569a9317fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement(statements); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement.java index 96feb928218..2de3ecc5a91 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement.java index 0dbd83d5079..862700c5868 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 5354f3940c5..2cbe7cec849 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 352faf2b065..602f2097301 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index fc115048cd1..b32932a66e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 6e04945f6ee..d097a684b03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index f5700b89597..1c391f3669d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 8f02e433920..7962b5c5297 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index bd9a6db3f61..ba78796786a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index d9befa4c905..762070a447c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 73d048e91d6..b5eca7d8830 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java index a508f9a47de..8dcf5c79703 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 956bec35a25..86a539de781 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java index 013703aa085..3963fe1f552 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 894afb0f855..cc5b921e182 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java index 54ab2faab17..fa9861fe1db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index ec79758ecc2..ac479d8405e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 7b889989c57..dfbcebb0a1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 779d3f95535..0a2c202016f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index a1a29aa4b5d..98c55399213 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 438d2866352..d5ddf8d16a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index d826f23050a..cda21f92b42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 8334d829865..afc8b7cf7e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 8d778851bc6..546eee5edcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index f8b20495f36..404ff186039 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 9bd04bb8d61..9df57fb3749 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java index 4aa2b44d1e4..48a64d1926a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index a552b08170c..c9f4f03f46a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index ce37ad9968e..ea9ce8a73bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 1cd499fbb5b..611d144e689 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 28af5c6c375..4434a0b5923 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index ede5bb81e5e..93d9cdc3c83 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 3e4ad5fd6aa..3545a23bb36 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 5e1f773ac3d..8f5a24344c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 37bf03815b6..78cab02c4d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index eb5756c4fdc..b0bb7ba6ef9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java index cfc076b1df3..d51789b66a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 480f70dcd77..c2adb5971e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index d594a7ddd27..5d50b7cd387 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 4b85dba2050..149e1f50702 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 6906d4faefa..4782f6b385f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index f7a260eb430..a78980028ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 3d0470deb52..d4735a79512 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 550c4c988f9..8aa4d503383 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 757ada64c67..b055da19b3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index a7f9c9ca31e..42f1a3d1513 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement.java index e5ceb484591..bc1d5e75284 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 8f49317bdae..2709566ff4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 1a52337e70a..c23df1380fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index cf649be621a..650db321803 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 22d23d2db31..08368225273 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 0cbd58977a9..4849f817120 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index f05d7d3e2e6..bc3df099767 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 1a510c4fe7d..677c78cca31 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index f1bd6898974..74deaf8058f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index e78802ab6f6..7742e43473c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement.java index d2920e3f6fc..1f920b27f79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement(statements); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement.java index e62de70080c..1a3422657f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement.java index f4a5d8de7bc..691fd601afd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index be3a3b587ec..b8285b826ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index ca12a3e2129..1e2886b3254 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 79d38a09d5b..184e45c28d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 2341dcffb35..d9a80377f7e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index cd4afbf32d5..07903d85595 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 22132e427c0..e206e7effd2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index ea1f364b022..680c0db7d30 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 1fc3790e651..25df5a766e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 1a7b6790b96..6395c9f9ad4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java index c2e8fc759e8..d8e72b76513 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index bd06d6a65ef..0ee62f122c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java index 8a90cdfcc29..89a1a6cd99f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 121319789b9..eabe4e5f9c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java index 46c6487e07b..e4776ae7617 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 88b7200a771..05352e3c6c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 5f7a6be0b54..8f98f726369 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 1761313e6ed..3e7953dabe2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 16322082c53..3b1814a342d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index ba03f8a7f2e..325f7242c4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 29eb9e20977..01ecf46e9aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 979ff9d6e48..64a151bbfee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 99bde3383be..8d115130c59 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 87bda2436d4..2a7baad2c67 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index b8b5ad66a81..6ed8154f553 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java index c70a047c239..ece1139e5c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 10bc3a37b5c..6f281b74e07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 3a33ae0cee7..e524a648cb9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 16e183fc791..e88f3543404 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 96504e0be65..87592f84c14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index e6ea3e5cc01..53ab003bcb8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 651ef544f40..177e44fb526 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 4ed2a16e6e8..0b7942e790f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 5f4cdbeb3f4..f8bde09da63 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index cacd0a9c152..dfddd52fd13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java index 2d464ff80e4..a0b11006e7c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index 6e505a3ee34..50f20ecab50 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 725f25ef289..e87a33798e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 8c144ee0456..512c22768ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index c50cac83782..c58f683f936 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 22395c1f9ca..1bf06ba6f9f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 975745cc3c8..8464b9ce7b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index cd70751d469..6dd549cef0f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 4c22f3f40d2..6c68d127dbd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 0a135f100c7..1d9153ad407 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement.java index 61bc371554b..c006f76be57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index ffa31190206..4bd4268979d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 2c3d71c0e4f..d7cbfd44610 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index a61c862c5ce..a59f0994ad1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index d4f5bfe562c..cc13ff41595 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index a4dd9ca5b78..0c673244bf1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index f5ebd35b6ec..9bf8b1fc77a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index effc9298e39..d38da98f793 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 4bcefe0456e..8df7ce83580 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index cc37455ed28..5625728233c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 3ee6c74927d..af33ce48081 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 9b4f6c7e6d2..ff9f2ca8110 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index d1edd6baab6..21fff07970a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index d0a12aa43b9..f044bb91e11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index d8ebec75fd4..99bc85246d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 13dd48bcfc1..c245291e10d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 50662fb00c2..9a7fc4e9edb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 4be790f8e25..211a70b9fd4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index f19f39dafaf..b3573e3fd93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index d744b8177e1..1a93fb9e1b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement.java index 359e7b772fe..69aaab584ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 3ae9866bdc5..b7a56497210 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 9defe4c8b3d..559748fe135 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 3939cdcccff..ce7461480ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index e26e4e7490e..59db03dc9d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 6a2b81e11da..8d4aa7d4cd4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 147fe028303..29258282858 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 75df4a3d87e..32173ad99db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 467e26837e1..1094fd86aa9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 01f73618829..d7ddcc9e992 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement.java index af45825697f..50b6ae0ceb4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 364704e61e8..6a123b042a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index cf5d6459af7..b861bf0da15 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index b32b387fc8a..814f2b75b07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 94b65143736..55658e9ca9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 89e70817e75..4c0197f3f81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index b961646323d..8172103adef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index bcd8069c059..29c4993154f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 305f9ee0cd8..b9cefcee657 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation.java index 21a5e58cdfa..f6bb4ac4784 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement.java index f7cd00b23ba..82c68581de6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 917e0e6b6b1..7922517572b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNot this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 94e6f917a92..2b9ff38dac5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index f790b9248b2..f2f39a11a6b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 4bf9e3588bc..411a4669b98 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 549136ac973..7f0e1d177d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 81dd0361613..fcf625bac81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index a91e2447a2a..b98746714e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 3acfb443573..0f417d3711d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation.java index 59212b61a0f..2b29354e098 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement.java index 10f315c2627..38d2f836302 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement(statements); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement.java index 257c0a0fe43..cd4bb6ad5b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement.java index 70dd6367184..7aaf16fef19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement(statements); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement.java index 5251eda719f..29fa1ef7831 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement.java index 69f92174f62..ed8bcdb0615 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 7312d539358..66425a338cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index cdc917ed4e2..cf4c7ad0ecd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index bfd3abb2fbe..36f04efd441 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 7e166e08bf5..957fa330dc1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 8736f3a4118..adda78781ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index fdb3b57fabb..176ac4369d3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index c6e19571939..efe9e8edf33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 65d65640010..75b0843eb3b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 3427e9787a1..1c330d7a1fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java index 99dfb695115..7b77b6b83a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index e4ff5c04efc..50868fa2483 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java index 44221c2d951..83b2608dcb5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index c792d18f005..ad73dc7ffe1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java index e13cffeeb4d..717e6781944 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 587d6f67d7d..0134bd563bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 251175564fd..e9d20697907 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 19c53a81c59..53563089f1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 3caf6268833..578d2d2f319 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index ea12457fd16..49bc2ea81a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 5db5c65e86d..a67684bae57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 77cf8b83df6..d0980dec75d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 3f754e978a6..536752cba47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index f09e5bb3327..ea808bbc711 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index cd9a3d0920a..09e875c1099 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java index 2880d0cfd85..51dc145e4b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 7b8dcb55e71..c3e1b47b850 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 5f472bf2e41..a58328099cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index b1fdec19b22..2198b30c610 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 20974a6a888..3c5365e0c14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index f09b6477f17..dca00fbfc92 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 910a984c220..be8587cd3fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 03765f6b922..b8c7ae8f6a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 2b3f9d5e427..02c63c9a793 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index ab1374dd7ac..091b4a59c05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java index ec6588ed92f..22e2f521faa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index ecf9294abfb..2149219d921 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index e8adad645d8..627973b6fba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 5d636ade972..beadb764fc5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index a91e2bf1227..ca45d4625f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index f0f64799b04..ccd7c6af67e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 3758532fe21..0e7f33c7895 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 1bc68002ee6..e010495bb37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index ce727eb8956..fbb961b2221 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 40993df5196..633f7120ac9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement.java index e9c5571d8d5..48647c2de59 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index fc63938ba70..ec2212f1933 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index ba5f710a3d1..e7533bf7692 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 2933994b8a1..747d55b59a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 8fa70f0ce5a..e87bb896f73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 88344f1f719..9a5fb6eed36 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index e849a5eca22..48f0ece143d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 0bf066e92b1..52922227aad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index c2c14cf0984..05dbbcdeb4d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index c5998de88b2..9086dc4e460 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement.java index d84580c422c..32a21aff707 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch.java index a17a1f00032..9fc17c78ead 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 52c52b029e9..906484e898c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 45a23951462..469c6b8b07f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index c4065ad5fa3..b43c9b9789c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index c8d114e29bd..5011cafffef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index b010369a077..0473ee17f83 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index ebb33871038..dc322636916 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index a7006f79a79..a40b3420eba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation.java index 4f8c28e44b9..60bd8e9dad4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement.java index 0f42907e77b..a46bc453726 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 000a72192df..7011535562e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement.java index 880c05783c6..c166e03e101 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index da1b1aa075f..17a7f763d07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement.java index bab8939915c..d92392393d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement.java index 3d3cd9d0c8e..c8dd26aedec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement(statements); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement.java index 4d163bb55e5..cb7857a9c10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement.java index b9e9836f02c..d24bb125ac6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 0d483410148..3844eef91a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index a34e51f0786..cad6e7d9091 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 57f5e1755b2..c82ea3f1ca2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 2d4c3c7a82c..9be30e9667b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 9b8aecd3d1d..30fb8d792dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index b68993aae32..d0c102a4a1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 6ebdb0d92e8..10a7aed32b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 585c704402f..7b07270ea82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index da09938cba1..9e227f53b66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java index fae39a09071..3e5461970f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 917c4304c24..3e8b23e893f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java index 218276ff508..6db5be66002 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 96f9c1ad736..3e43401b754 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java index b00a3bd3a7b..7166d88e9b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index d3624813846..ed3c4d3a421 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index c52bbe890d8..05d007e8da5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 518b94d4305..9d9b392cbf9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 7d65c22a057..f0f614e55a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 929b4756832..babb57294a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index cda1f52da04..8cf4876eeba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index cecc1b73768..bbcecaaae9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 99538a0028c..af078c3d133 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 20971ad94b4..7b6f771c750 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 1804b9ba180..fae58800c66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java index e057e371fa3..e5c0747bc3b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index d07bcc98c36..f6bffa64000 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 70144752bc1..edafecee435 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 35b2acc311d..4f0f26e1c0e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index fc8216a1865..bffcdfa1099 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 296900ba0bf..42aa6126c69 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 44f4b01d7f4..e6206de94de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 871f694de78..6efb2d6574a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 329eb4cb1ee..50e068502e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index add9d7ddf7a..b12395d6ce3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java index d5e2c5067da..225da1c3c70 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 491640219b5..c1424661103 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index f6b23c0e705..87eedad3122 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index dd9dad4c34f..ebdd8a783fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 6bcab566dcd..1032a90e112 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 3edd3c1963b..c25d2812e57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index a6ddbdf5239..1426b595674 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 7f8bfa138db..d0c154b1cba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 638d7700f52..66e25446397 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index d6ee73202e9..67e23728072 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement.java index 1f825a9593b..af111b126c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index ea33bc7d999..12e10be4f8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 673f318484c..91abee83e97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 4c11d2383e4..73f119cf868 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 8e9f745c8e1..deb965493e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 964be40ab4e..98b45aaa068 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 03380be308f..6fca7a6c8af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 5e8d8a40079..e86624206a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index b6dd9e06e3d..8af976b7b17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 459566d84e1..9734a2eca86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement.java index f98f3ba0e84..efb7acfff11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement(statements); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement.java index d43448f5f00..f1809c1f30b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement.java index be2e7efc38c..26f8826c414 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 8fb5c2a5f7e..d62c4d61d74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 017d5b4d9a6..5156f1d1ad9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index e0c7a316c49..8c86763a769 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index a8d71efda33..fbfc61476f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 751cf1d19c5..9734cd8e438 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index cc4edfee368..7b53a0fd086 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 25a4b60fd97..68afc2fd0fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index d904f268ab9..cd7b7e9405a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index cddb27efd1c..7a45ee0a58b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java index 9591a3bd106..2722c686e9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 19fa24935f9..efa977bbbae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java index bb781bb3e1f..da18d0d6193 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 4ac3dccca86..9180c1e90d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java index 6183d2305c3..9fc989a7759 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 33af97ba9fe..e53ff3fd181 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 9a6e21211f4..7836c7bbad9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 041bec0e445..d6e47fa707d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 9400f09c762..513518ec1e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index f3bc054f7f0..160a32b1208 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index c2098c48d21..94d6d1cfe79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 8126ce69709..bd11764434f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index c8698a674ad..8b0878bdaf1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 362bb144120..af417d7d4f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 8a672f08487..45314258c55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java index eb5ddfbafd9..345e0e5f816 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 6f815ad1608..74327854506 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 04e84e9a67b..fcee3d4770e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 9fd845715ea..120c9295219 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 38bc8d5b069..8fc1ea9bcd1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 6bd1f91084f..9ac0a0314d3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index eb8ab0540e3..1075a816f46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 4c1693e441f..fb4c780092b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 8a5d3f5b04c..f10502b41d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index fcff4a6b06e..d52fc2fdc2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java index 89fa9570e00..7ca8ec8f0b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index 73abfac0b1c..d8a41e04ec4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index cb71ffdc2f0..7abf442855d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index a43562a3cf3..7bdfc314011 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 4e872aeb494..5cb60925011 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index cd6b1666291..377c93c7cb4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index b7b02532a8d..129f2792d54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 1114e2def32..66a305e60fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 431601521dc..50e2d485f90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index e11110a0731..c38b401122a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement.java index 8a96323334a..25da44af9da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 623dbaa1ebc..299e540a335 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 92cc8e5ca57..de8a3d2e950 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 7232667f447..aed3bd851ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index a3d66ce29ab..354ca8b0090 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index a9a133d7f67..6caa2b0ae7a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 1112f77e06b..daea965ac0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index aeec07ebdd5..4b07e1f5000 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index c07b46d9e2d..99be529d05a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 012a48f223a..de486fd7243 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 8990e5e8d53..e9d39a08be8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index f42d5b45f43..0e269041fda 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index d9ae95085be..b02daf79eb3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 36a13547f1f..ebb0c834cf4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 6928c9502ef..7260b59c572 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 68296a83103..c3af4f1b9e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index e59d73c37a0..3e7373ce621 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 495b4e652b0..adbf997b2a0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 49f4a7bcc45..8dd43e74922 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 2e6e75e49fc..edd73bf9f9a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement.java index b2214cf2c2a..133d81881fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 0e8505b1a46..f163967a23c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 886c8b69258..ccc2a67b3db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 5f3672c9c72..5bc899d2ef9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index d080540ea8c..9afc95173ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index e9926dfbfda..ea204144fc6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 1c92c00ed14..811421561a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 915552871e7..0825dff83d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 2471c7f6f1f..e6ce330adc4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index ce2669189ff..7bc7922e854 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement.java index 554a6de1b30..e52b15d2e5d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index 3ca7e0ab473..95029314c6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 0bd70f7280a..c077e69e691 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 15b905a515f..6d1e83eae69 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index cf92f87e5d7..2b964dc1c1a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 4d7f4c13531..9129221c156 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 33bf18f6a79..95959c555ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 36c596d966f..c0c33308887 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 73c22836ab0..94816a05ca4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 5bb628ecaeb..f3bff0ee322 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement.java index 011622d7e58..6f4a452877f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 6825630a46c..5437014bcb3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index f115489cd3e..845b6b01740 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 98c5f84c493..8628b46b92c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 68d2828bf15..28e5215cadb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index d75023bab01..c1ef84319cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 09ba9835fde..31fc3e904c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index df71953224c..ee804fc94c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index c4fb01d7c9c..41e9f2f40d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation.java index 4b45d25bbdc..430bdba5a66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement.java index 88a49bb44a5..2013a717b92 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementReg this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.java index 9e9a60cdda4..8b97476ad0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementReg this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 9d7d7b729c6..ece2ab7be96 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index b5fcd1d4c33..181f8b884ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 236bf79f048..2aac1dd71d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 6cb5ab7df14..0491d885c4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 88868c1abd7..bad58809d11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 3708859b2b4..4f646538352 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index e817766bc11..3023bfd7cab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation.java index ecbf5351eb9..1e89f62fa5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement.java index 7a70e10a1f6..3cb142af132 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSiz this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch.java index b25b26dc5f6..88a32c874b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSiz this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index dcbd4700578..a229ab5f042 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.java index 893613b76b4..7c318524bab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod.java index 0b366c97529..0b3b1956630 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString.java index 749949a6770..de71f80cc3e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 8536e3aa07e..7a2efd2d2e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 090957a5764..b71363049a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath.java index 9188a9229cf..56258cee9ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation.java index 7d304663539..5a837205052 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement.java index 75ff9fe408d..8174539621f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch.java index 443c2fd2ece..98aaf07b923 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSql this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index f74fd544918..d56a54f0593 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.java index fa8b7cfd650..5b60819d2b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod.java index ed5b426327b..6efeddc1194 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString.java index 0eccf7adecd..3c5b6807656 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader.java index 431e1f4e58a..de7461bbd2e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 1bff5c64aa5..fff207e1c90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath.java index 983b8311ac3..323855533db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation.java index c9f72223645..92a38e61201 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement.java index a25e24ae6c3..c568803265c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch.java index 2b92c1ac18a..8c477a81912 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXss this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 47f5a71dc09..da1643de3ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody.java index 0658b5221a3..c2e7ad8c834 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod.java index cd51c7ae219..d65a1828d49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString.java index e9075f619f5..1d6580f48be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader.java index 93e8aff82b3..83bb8940f41 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 3e218593dbd..878c71dbf12 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath.java index c7bc7d6722c..f9a95354800 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation.java index dfca45080d4..f23701e4ebd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatement.java index d64f4a759cf..28d9a57b7bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatement { * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatement build() { - return new WebAclRuleStatementNotStatement(statements); + } + public WebAclRuleStatementNotStatement build() { + final var o = new WebAclRuleStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatement.java index 914dab2d6bb..d430883621b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementNotStatementStatement { * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementNotStatementStatement defaults) { this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatement build() { - return new WebAclRuleStatementNotStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatement.java index 728b20d2664..091a0947c64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatement { * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatementStatementAndStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatement(statements); + } + public WebAclRuleStatementNotStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatement.java index ce2ad296f2c..baca4a74f45 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatementAndStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatement def this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement.java index 41aaedb8932..5b9d6fbb45a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement(statements); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement.java index 55feed4a82d..094bae25f80 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndS this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement.java index 0decd254927..bea06819360 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index f66f9df732e..fd2f7b99ccf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index c0a0824376a..3f052d9163b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index dc3ab9acdb7..ed97b33bc5a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 7b9ccf90c6f..574f1ded698 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 8357137ab12..a13fdf681f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index d4cfa82701a..c9a40ca80e5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 5f6d640318a..a5589b46348 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index c8392d287c2..d014efd28a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 7c43b101bf4..bdd25f9419e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java index 74b504e91aa..e47bb71361b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 364ac614230..82a9d59657c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java index 3232bacabab..34a4216af67 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 900a11219c4..84364645986 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java index 7bea094d047..f60104a110a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index c4297b75c59..3c6ae174507 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index d64729771f9..002002f2972 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index e99730cb151..08589ac0e65 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 616fb9e2709..a976cbdc157 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 5c4bc1d7040..c4641cad64c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 5f4a4c5d5bf..6b156aad5c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 786b2aa4680..dd160d52013 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index b35a433d7d3..be5a90533b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 5847c0e4fc3..82645deeafe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index ccbf5e49e90..46843976aba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java index b3593ae7aff..61b6f3773af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index dbff836a8f3..26dc96d6376 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index f3cdd20e8c8..64e91836872 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index cb5a19e98f6..7f3a8a5b356 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index bf69dec6220..544a844c84f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index e8817bec5df..d915a10f1fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 0ebab557b08..6a66825b924 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index aa3a6d1cb7c..c0b10b45072 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index cb1316d325c..bb26049aa90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 18206dd21ff..298662d829b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java index 67e4d563395..64359d70da1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 6450bd24565..fad9c1848aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 8291badae48..c6959b2b986 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 309040db652..5759e2b76d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 1ba56639af5..63a39a46b7b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index b0c64f2bf48..6db4c7f2f72 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 3d1e1971f0a..93c3affe43a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index e219f215520..bf63945969f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 307190a2481..7a85fee1bf7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 16652d950bd..edf7f1739c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement.java index 6c158197ebd..f05125e1d2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index a57a8461f46..177ec046ae2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index cbc684da964..01f85a6929d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 38fe4259f9a..18d64ddbdcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 20dc33f164a..afa3a90df04 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index e30f0cb9799..ea4b675f2dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 977ddc3f19d..9977a4bb4e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 8a360201a23..1a547e75d37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 518cdf5a764..5f93656dbf9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 56b0c87bf5a..bc24cc77bd8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement.java index 55e142ff56b..b3ff5f10313 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByte this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index cc589f7919d..9a9535576b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByte this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 3a1ab38734c..38a90c699b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index fc661be2349..3ec4d7407b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 9da429acaed..1b5545e24dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 54744d18d00..7f427eecb7a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 5ec6df0f6aa..58f7cf29b73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 25c5e4801db..aba98c8da58 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index c53fc654a3e..4961f70ac0f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index f09b613cdbd..791e1494b18 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java index e62e67deab3..7af5cc9d8a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 9463399c7ea..b5acff164a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java index d2709f6d79e..e41505bbcb1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 12eb4bf32a5..b8520a18e0d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementIpSe this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java index 77e17902b22..6448e1cdc69 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement.java index f1bec273b14..da1c6265ff6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement(statements); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement.java index 441f31e98dc..846e9dbfb9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotS this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement.java index fd12ef7a4b9..07c39862e07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 2205da113f1..b63a6c7ea6c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 253fc10f2d8..47f99cb63dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index b4a0fd194aa..7b92a3eab7a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 9c91b5caa9f..cc3a3769eb2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 70c01c7b060..936cf728b33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 33338dba8f4..47feba3d861 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 575c349f011..f6570ba0214 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 0c07dcf20c5..51c915c492b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 39a2924cca9..97d9bec2acf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java index ef8028b42b3..f464f9522be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 0daf6d6353a..bb5d99dc249 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java index ba2be99bb2c..b57e0da2aba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 4c7cb39a496..1b4fcd9a853 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java index f48dd29e2af..68ce8799f9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index a6ec7719d27..77d46754929 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 2fadcf11dbe..c2600fb7a04 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index a9104cb50e9..7788795f237 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 8a454f00265..eee94baf300 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 0623079a390..18f512c73d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 25435de51ac..652d3dc5215 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index af3dca7f412..8855caa9ce2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index a2730e203f3..278426cbb46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 685c40822d5..74c291a8395 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 0df1ce1a671..8a3ffc8aa07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java index fdbb88b96b1..1f3eb044ef1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index e14420a91d4..9846c58c01d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 1f1b5fdd875..98f79513ac4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 53a4cbffc8b..bffa93748d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index ec1098c1702..d5d2765fccc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 6a006413ad0..130fd657a39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 9a157a7bba4..7592c1a675d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 79871113366..b04b3dc8318 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 49a5912d35e..d09c0efa823 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 07628e5c438..9140e55459b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java index 278ebf8302c..82e9b1acf77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 8f539f26b47..b39f04dfb25 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index a5c7e7b32eb..c453cc1fe28 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 484a19d3ce1..7c33cc3d8a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 4ba24fa4ea0..ed5c5037f32 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index ad26e2928f1..306d185c4d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index f4da5948c8c..785784b15c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index ff2ec74f357..476eb249d4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 92a4c0dca20..50977927ac2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index caa902d0ea0..12f2e265674 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement.java index 5d3dd404d0d..f8ad237f14b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 6fe5052d1fc..842b265508d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 8690d003103..0292996d16f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 6918cb045a1..6aa7e9e58b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index c4ead3940e8..3e332bc7c55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 597bb47532a..95933c17f15 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 9c2bdef562b..5927f07992d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 502b0872b43..cddebb17234 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 75f49945097..0e14f852f15 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 009a692f562..42dd5f1857d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement.java index 7241a24ee0b..8f8731e13d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement(statements); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement.java index 660660f9cf1..f357907ea81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrSt this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement.java index 28ba243d33a..4d792e28ed9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 9c39c8de8f6..653f920d01a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 371086fe068..2f44b0129eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 60ba6788524..f65d53d8728 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index fc3c3844f6c..1ffa9beba3d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 7370166fc76..af4d5c90f94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 0e562d47259..78ef4801ed8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index cfa822e7852..24a8b4f839b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 757510f93a7..618d129710f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index cd30efac2dc..0fbb2402fee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java index ed7cbc29e3d..08e1e7068f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index e49ded43b53..5b1f5309a48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java index 9977792dbe2..c76fbc9e393 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index b94f89cb9dd..0a3559fe771 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrSt this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java index cf104ec796f..089a0e95a3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 4d660b81df5..b01eaf5dcd0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index fecf50ef677..5fc7aa1178d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index c015beb6822..cd7dc008600 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index ab500d78243..30e20a6bfd8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 48795ced9b4..30a95f1d1de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 5b9f48e7d66..938c953c1c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index e38014467e3..ac80c6e97b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 455aadf4992..b68701ee390 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index f96714b24a2..eb80ee510d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index dfd7c4de649..e34d2887f2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java index 802300d280d..98d7a1f63ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index f7526dfd496..684bc3fd781 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 12a4a2dd644..8ae5356c5fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 3a3ebeb8ef7..6541eadbf27 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 74c5f06a256..5b5d721206f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index d100e3c9530..d95f87e9bd7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index e0e03747f02..a12f0bfd481 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index f7555a3fb63..b8107f56651 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index ecc22d39e66..7860efbd2d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index 3b322e29f07..2479114c63d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java index 280b2b02e3c..2b1288a2b45 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index e08b3bfe070..1df0b0f7005 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index c3e2282945d..feb3fac6358 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 1b945108f40..4d4cdf4f754 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 37bb376e2a5..b0346087f2e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 080a3e548b2..21166cbaa2c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 5a6505ae4b1..2557f1cd5a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index fa70e3d3ed7..51e4e1015d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 861c6e42968..cbaeabf6db2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 2d57a7c5eca..397236969aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement.java index 794ab37ce9f..c2cb17204c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 4fcd6f9cf22..7d801843464 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 0fe17a7db2e..f42f9fa3656 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 55a504912bf..8bbbe17e8ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 3cac416c591..157673ef54d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index eeb8210d213..2de5cbd06d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 228f1543fdf..e9318ebbd1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 9894ec8506a..c2dc94046d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 3452021cde0..9e0df850392 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index ea9cca31986..ab34c52b4d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 1b28eb2d796..37b444fe091 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRege this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 705a5a6aa26..51b6170445f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRege this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 4b780829b0b..bf115ace8b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index f02afec76dc..28f0d8c4aa7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 7a26a12b2df..b2398fe7dfa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 6f868a6800c..f869c29ecbf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 93c2fb95879..c644880750b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index b9bd43a8915..6a346518e6a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index cddcdd6013d..08b72f74d90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index b457b6a7aeb..fc27f287a37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java index 30e7f4b5546..89f9ce9fb66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSize this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 6c9af0e1704..699e9f38642 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSize this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index f1de61f4715..0a73a38f017 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 69345ac523d..f39194e84b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index f7f48bf7b9f..25b8b440fd5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index ef752ae8bf3..9122eacf021 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 6879f4e1602..5b7f566afdd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index ade57beac68..e8bfdb18141 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 46aa3273e75..23e65038503 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 5fcff731275..859f2766699 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java index 6831bf1afeb..b07411da37f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 093262c3fe8..f8cc4a28859 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqli this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 48544ae3df0..1b4cf7cf599 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 703996870b1..8be0b4d6ce8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 67116e2acd8..ee86c2a4a90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 73ee49e5354..607732809fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 43e5035d82d..fcc2e2cc5b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 528d5791170..1efe98aa323 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 96db76058be..01ae63a6c7e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index c738eca97da..c5447ea0322 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement.java index 5b03937475c..21c4b7ae11a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 8f15418e871..261909c30e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index a78e6cbe31d..30aefb25e6d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 6299f8f4268..391185bd07c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 6e7b6e33852..62aecf83509 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index eadc8a811c0..b5fc6c85bdc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index fceb2719c04..7a51a0f88c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 75e57964263..e6d337a132e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index a68c2d0b244..6113e81cf3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 3fec7e7fb76..309e87f55a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementAndStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatement.java index 5c5b7d87982..a7bd566969e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementByteMatchStatement { * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementByteMatchStatement defaul this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch.java index bcf69c8b6f4..97260dfb0d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementByteMatchStatementFie * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldTo this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 6814a881622..f892404e09a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 08eb0f1f7d6..8ad04da792a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 83a96090e9a..e4e99220222 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 5455ebcb1d9..ef199ad4d75 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 045e2fb118a..f91fa6b4679 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementByteMatchStatementFie * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 2525c900dca..2d681cfc798 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementByteMatchStatementFie * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index ee541bbf9e4..ca7e4ae5132 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation.java index 52d4788e1f0..96e4bbe3083 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementByteMatchStatementTex * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementGeoMatchStatement.java index b8286cef65b..ba9d01d0639 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementGeoMatchStatement { * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 9c439bc6f8e..f87d93bdc51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementGeoMatchStatementForw * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementIpSetReferenceStatement.java index 950d676b0b7..e64b4b8a38c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementIpSetReferenceStateme * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 2330c4a3103..6c6cc87f194 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementIpSetReferenceStateme * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIp this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementLabelMatchStatement.java index b0da6b4350b..5c31bcba49f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementLabelMatchStatement { * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatement.java index 01edf79f49a..0d91f3cc80a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatement { * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatementStatementNotStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatement(statements); + } + public WebAclRuleStatementNotStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatement.java index 8d83f5cdf18..2edd4607188 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatementNotStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatement def this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement.java index 688344cf640..1ab42c28a05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement(statements); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement.java index d81dba6ac28..6a8502af3bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndS this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement.java index 6abd00fd402..7c9267da81b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 32faf2d20b2..bd76a6bb569 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 9fc7d58e088..48d932a070f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 4eefec561cf..ea4e8f60782 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 1b8e647b45b..7069b24355b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 127aa7299ab..4754968eef4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index e037f6c43e0..931de89ab89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index aa75282bdbb..d08a2849bf5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index e17ec94a82e..4ecb17eeee7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 14a761789c7..9a3ded7eafa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java index 4ad1361a4cd..8c94d1ac9a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 67e928b49a4..dc3b86b4705 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java index 87aa2c50b13..2683ee8df73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index fab0edb9426..67fca0c0d51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java index 95beb3bfdc4..0982f883b19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index ff6863df542..fa76dfa4632 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 331082e4ec4..5c7f617a406 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index ca41427946a..a7a8cd90a66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index bfdfda06ba6..8ac85a965fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index c56ce21220e..45efb7d6f8f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index ed63354e2d3..604b118e563 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index ec8779dbd24..2ed5a838be4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index dd3d3c7e443..a4b889e0860 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 2547ddf6aeb..9ca48538ca8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 43008032b7f..37d4afe4f3e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java index 4620d37f2b3..cddcb092d49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 075ae2e06f9..c36556f37bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index e509ea4d3bb..75b52ae8fdd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 5bbb00ac6c7..589dfdf54a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 5ab5fc42485..6430e91e32d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 5399ecfd747..c8a2c7c6e79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index b34bc8426a5..6ba3532f32b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index a10c3cf6a02..b0a0cb5c32d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 3d1dba7e3d6..250625cbf51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 78fa66ec072..6d237af9cad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java index 75966305cca..18d0c3f003d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index eb01848e07e..68e3765b578 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index dd1a4d44c82..dc6e01907aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 8cc3412628b..54efb9e3d59 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index a4295d747c5..dbadf49d051 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 95a9ef5659b..8e4645e4f56 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 499734cef6a..b8d0be87c56 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 4a38081c4f9..896cbc46b89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 220185af09a..056907a64bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 70e153dc208..3c6ecd6a795 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement.java index 9e7a4c0346b..d78cf9193f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index e8d7f529fb2..74e9a2c76b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 9592d91595c..5cef61310b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index ac0a77427bd..12c52eadd8d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 876d7625b3c..a1748ce4e86 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 6d5a3d6fc5b..89bb98eb8dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 04b1046981d..17fa3c85de5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index b497f01c12c..6241e9d33f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 03fbf75f883..4c64865a86d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 7352171c7f7..b2162d9fe75 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement.java index 4cbf29184c4..a7410ad17ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByte this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 36b2aa90c2e..eb3edca8ff1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByte this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index a1dc62be850..b305514d108 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index c76129083d2..35d34117386 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 853e643aaf0..ccfbd623e52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 200cd5c72e9..1dd9d9b5ecc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 4eb81d99835..65ef4e9edda 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index e837446f0f5..b478449d711 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 9bcab52ab6e..f11c1116aad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index a80442b078c..b83550c6c03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java index 264d35b4b26..effa85f6518 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 19637d1c48f..accc07f48b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java index 7327f1d5c02..8af6a5c06be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 999a206d5cc..85115969f35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementIpSe this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java index 3bd881544eb..b2bc5c87497 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement.java index dbe5af88d4f..ce2bcde5bc6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement(statements); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement.java index b5d8d103a54..9bb5dfb62c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotS this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement.java index 58a92cd31d9..40e8c9f240d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 53963c99466..34271e95057 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index b88f9defb9a..3bde8002e07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 279d530b1c5..f07b91d2846 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index c52f555d471..fb7de82bf8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 9b6631a264e..4d2dfdae8ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index e565f75a004..25c47c31e5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index cdd110be5ca..88e5c4c01bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 9708b428dec..b35bda99b54 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index f9de4deca00..9dda67db5cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java index f8778970907..c33f5317bc5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 95d0a7ed151..ac28c8edb31 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java index 918f625a42c..9d19680d697 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 14fa9d80300..d0d44274091 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java index 286ae655d25..b8b74eb02ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 189f5768214..e87d43616d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 31ee6b67652..c7a01a6f31b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 563184aec6a..62541b6c7a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index c60834d9f81..3c33e48a8e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 07ffba907fc..aa4c363325b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 35074fdc1f2..d20d71742cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 8f52679e6bc..f7064b76870 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 3494fd4da32..6790b7e3999 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 0099a0bf8c4..a6ec067760e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 63d2468366a..469538956c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java index 4dd63f8d2e1..63ce833c380 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index c7420fecdb1..8de3d7baa66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 88ae25653e7..978b5e8b1f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index efc7a59da0a..78657576fd7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 60ecfd11f2a..bcc82be4dc4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index c6671bc3474..88ba6858cd4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index a1f52d48467..7a68aefac35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index e52c11c7251..54c8475f5fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 2abe3ed69ee..61c3baa3bf8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 2d3d6d6ee71..c8ae8e1f0f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java index a87df2e4350..69406bce1cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index b5b02aeac3f..cee127a49bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index c6bd23d4310..d6da1a8f84e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 31d9b9b23e7..58bd16b3a1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 1751063f3a3..0ab7409a121 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index f344aee2900..8c812f9695a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 5b1851e648a..21d89f7167e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 4b17747d718..be5b0135278 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 8e126c11140..034229cdc51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index 132c13b1a46..ad820455815 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement.java index 257d55536b0..b1e94850cc4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 345d443ca82..983b587fe0d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 5dba8d7de61..6989c383a56 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index e0c72026d8c..9c8a419e9ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 4a9bc4f80cd..2c77ae1c06c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 4dffd9996c1..171f7b086aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 2172c6ef1a2..c6470b4b432 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index f48f5cdf243..a23ef85f268 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index b6291e294b0..4c745b9bbb9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 14a5bc642e2..2d2c050b318 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement.java index d8eaf4b9d0d..2667099604f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement(statements); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement.java index 620eaedf69a..cdd06b502c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrSt this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement.java index f085cbcf02f..a8227a41b1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 8b6de2f547c..8b8624b09d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index af214658f88..90e0585a257 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 3979c86874f..41642716562 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 1a649f5b8ea..0f48a7d3bdb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index bbea2db60e4..050d7c1c1bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 5c3d3bce9c3..ae5c275130b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index bc325d8415d..471d8a52b3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 9651de1e1a0..6516b1e11ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 929efea1aa3..c8d2b0b2fac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java index 573cb7eb2f6..7e7758f6b9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 3b96dd2f19d..ab76c92b20d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java index fe7e2bf225d..2a5efd34277 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 606cfa30f43..613afcb4812 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrSt this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java index 9e6c1f413fe..be59f8a0fb0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index e3c3af445ff..55deb37fec6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 40c0bec5c01..b2dbf46ed5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 793f5f9bd51..4cc740a0e1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 637799acf14..ee65b6b9cec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index d47047c908a..eeaf6299cd7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 8ecd34909ee..47132854469 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 23d463e4e2d..4f99ac914d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 7d686ff8198..7a89def9391 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 3e5bd248ad9..640444e115b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 21a0b4ff714..9b2b833dcf8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java index 48824397139..9f53358df24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 7860847379c..c8a48bfbebe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index fe361172fec..e5aba0d5da5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 801d165e455..db161c8b42b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 5942fa002ed..214badbc972 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 5f3d6566202..ee6e3c33e95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index fb4c9d319e9..95d5d09fa95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 9ae34b57bcc..182f93a95c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index d9d503a1ad9..a1df13f3a7c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index f955e94687a..f9b6b5b2b5f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java index 0d25a4fc65c..cb17f5e26a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index 911d50e737d..f48104eecd4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index a2880760dd5..b9744fe79b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 19ffac3ad14..895c9dacf79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index b20e663df30..0ef4dc8ae22 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 9517546dcf8..24d4d399f35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 4e3557e8a52..aac78a4e56e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 2731be884f9..15d315a506f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index ebc5e2d14aa..dc688c8ba65 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index e14e12191e7..d54cf11d810 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement.java index 127fa97e8d7..fd63dfbcd00 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 23a833d7935..f0fef2fae8b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index d94d3865773..f04d8101bbf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index c6a7870db62..72d523660e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index d15de66fae9..791e8b8e485 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index b3e7ff70426..ed48b930707 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 2149f53a5e7..93db7a56100 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 400a648fac5..9410cec829f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 1d42459d2b1..48fbe1580d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 38e32305c0b..890d6803fcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 0aea92cc078..bf4f1373a83 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRege this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 76e80f5974a..747087913e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRege this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 83991f809c2..30db17a6197 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 0a337d43843..151ed3ab81f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index baa0024976b..e20a6913b5a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 51313b3ea78..d9352a42640 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 52540919425..40835299a77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index a7902493ece..878582aecd1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index e95373872fe..4d17f108302 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index a2a4e0600d9..e32b1507fa0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java index 39cdf814383..c858593b957 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSize this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 29a7262f8b5..db931980e41 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSize this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index d8533c7d011..e7d969d2c0a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index f833778757b..bf051f60cf0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 36b1147d574..7feb1857298 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 1212d56fe0e..e11bfb2d9d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index f0db78d6ac6..ccdcf85df5a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 3467260661e..7e254b733d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 020bceab5a2..801e8efa289 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 14b36ea8442..527eb8079e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java index 3792165b9c1..322866baad2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index ce982b4e26b..9ed75add14b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqli this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index a0d83852c97..bb5e69c4cd3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index eb6831316ef..e2b9097da76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index d6911be6f11..94fd22e4ec6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index b1366f5537b..a724359a810 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index debd7040a70..681643bc87b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 36cdded460d..8e24c18e2bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 1796911ae60..cb858dc0480 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index eb76e661c58..246de4e4be1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement.java index f0b6825f741..4bcd8784054 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index b7c681ccac3..7cb2acaa643 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index fc995127012..2294e4f6727 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index b81053334ba..08b252004aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 1b4c5c46e43..c5567160a3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 391a45a94aa..00cf5532ca3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 60eaa2c1f97..9827cbd6d10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index bf430550aaa..d49b0eafa4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 4419e0a0a8a..b773ebdcf7b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 052015a2427..f3b053f45b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementNotStatementStatement * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatement.java index f60a2e91be9..2dad3216d51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatement { * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatementStatementOrStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatement(statements); + } + public WebAclRuleStatementNotStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatement.java index fbd52abbd8c..eeeb4bdd48b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatement * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatementOrStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatement defa this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement.java index 482d7800568..15c9f19ebb3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement(statements); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement.java index 485853ced94..37d20055c9f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndSt this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement.java index 27f7db60166..a3577dae9e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 750244c695b..f5d3182bfc9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 4c5a4f10ee3..10e8fbfeb2c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index bbdc70c27f0..ff0c3267a3d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 8f5b32bfb42..85d9499cb97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 42f42df1036..37f1d62ffc8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 9917e160aad..b01aacd21fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 2781551ce57..529249d275b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 8328109fdab..91ba532f696 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 0a29ad46d5b..d7b8cae9d62 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java index a484f6325fe..85ea4b50fd6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 35ba78d1c7d..64455aea26a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java index 893eacbf50a..55c2270bc87 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index d776039f718..3c6d00857f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndSt this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java index e218d18b757..695a0867bb3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 8705b91e55f..bcbe1f2ab2e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 51b0ed521de..21650bbb324 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 143e8705e6b..1f609662166 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index df2298822ad..d5a6d80ca94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index d86fefd4aa7..096a8333bc5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 451fc506d96..51495dee65c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index ad29b55187a..b1074a1c048 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index ed1a8818df7..f404f76246e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index d9ad5e02cd9..cb50988089d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 6b7e6d78cb3..fbfaa32de62 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java index 0602740d3d8..706fc725b1a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 5d037f2d3fc..9005a644010 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index e1953c0f0da..86265913485 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 3d0561ddd27..51d1509ef1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 2e579cde5da..35eda186ef6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 9c6e246fcca..61e2501fd42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 77a9be9e754..c40eaaf8752 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 6d4484fe6f7..7d3bf4c4226 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index f8858f5f1bf..c30f4ea66d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index f875187aa8e..a3d37cf8863 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java index 8c626fc9588..1a62a294ec8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 36891d3ede4..63b5942b56b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index dae87c9a917..49da1e91aa4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index ee8f8e54ecb..e6bba960b4d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 7f7a87c76d5..39931ad5973 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 514d375c2af..68666eba006 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 6a094941a8d..51691e0c59f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index bcb35f91f52..72145393d97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index d4b7da70030..a74a1b70421 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index d0d0affbc45..d88e1a90e74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement.java index cb73cc90b16..8e101c77baf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 7ac8595a12e..81e43c87a47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index cecbb89353b..84bbf9321e5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index a324b53a12d..3dab53be1bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 00089d62921..0efa42bbeff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 312c02ccf25..b40e1bfda39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 65a3b11face..b2a37205415 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 6b899f582e7..0aa8d782d74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index aa71b17f197..a9b96d077e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index eaf277b580f..52d7153c160 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement.java index 0ddf4c859f5..ebf93cded04 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementB * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteM this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index c4a712d2840..9067d6940db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementB * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 128e8e76e2d..d0ffd933e9a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 1160a3636d8..bd867f6af24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index db35d7a9e78..5ed84db844a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 8a7faf7ea0e..4b9b54986c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 9adc5a4b50a..5dca174d8ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementB * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index dc23aac5f8e..bcb4e2a5c30 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementB * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 74bd7fa8d4b..9a8436237ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 5bf546c64a7..1418a2105f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementB * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java index 6640ee397b5..7caa17205e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementG * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 8ac5fc051fc..cccfcc75084 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementG * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java index d83bd2578fb..b9d11eae257 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementI * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index c45768ba41f..8c2fbd00066 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementI * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementIpSet this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java index be40c32e96a..2fa2d29d055 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementL * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement.java index f86138a5ed5..d38932806be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement(statements); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement.java index 99ac27b8d6c..c3a6125a8f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotSt this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement.java index 71f76382a41..51f23b40b13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 22736fb3b14..1b17082fc80 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 1a8d66d177c..7d5a3a6841b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 4b200562dae..4d2178d8167 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 75876b01105..cba212c087c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 141b45112b1..8fa1aa704b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index e9582a19cf3..64f48e215b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 21bec061105..29c9cb6bec1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index b20a40e831f..65170115a7a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 8688e3572af..931bcdb0ddb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java index 024baf80cf9..d5fda10a171 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 2d1b5525161..05c7c79024f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java index c0b68ee86bb..d89b2ddc39a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index dd83749b710..cfc77423324 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotSt this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java index 7e8c5aa0323..7564ecf6b81 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index f33803b2e7d..1313a5813e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index d53ed2c6c1c..2297445f22d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 837a3cdb8a6..f30f72aff7c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index ea32adfe543..90880e6d10c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index e8f0b946c92..002b92c73f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 4810335dc86..f7e599628d3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index dbb630c9b7e..923e3af1e73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 4bfa187d998..29cb2998576 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 03020fcce0e..5d61e3b5da0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 7cd4e5bd06b..d2eb886d9a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java index ec84cca9667..8a1b037495f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index f8f278efbb3..6581ddb3218 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index dbdbdf8c2b9..1274597333b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index f54c3d32f6b..3e0cde2138b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index e850eca4231..75ae3cc043f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 30a0bc66b73..748486f51f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 1c08871ad00..b26d971daa7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 4ec433f0d88..4a2d4337735 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 4c61eedfec2..96b4d94fdcb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 94483ccf0f2..cdf87161e07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java index e4fdf654721..ff16f801b64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index f4fa08c485d..e79bf44e970 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index cb38fb6d8bb..8425b0d9674 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 1053f3d17a4..67761d6889a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 8591f5f92ed..2b78b63dfdc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 67eadc90c52..6148e6cfd8a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 12773a3afc0..9598f911eaf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 9ef445cb565..49c564fed9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 9a2bba570fa..c9040fca504 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index de095ae765a..9420c2576b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement.java index 3501e301e44..71542feeb41 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 19e0a3cde9c..80d7a8f8cef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 240d3ab9ea7..d365e7303f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index afca871f7a4..578efdc6822 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 7149a47b8a7..1b10d86a572 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 35f0e8758b5..4962b2fe7f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 5e47fdc9e62..fb8cffa05d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index d2c868102af..bdcbd8a88af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 0428ac5f078..009cbbd1d27 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index fb1f4307757..3486212d716 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement.java index db03f7b21cd..0269fe30f32 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement(statements); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement.java index 18a0522667e..915f200ba89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrSta this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement.java index b223b86ea27..65fae586483 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index e5f6ff692c7..86c49fce6b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index e1255f2abbb..9f27d0399fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 557c1b324a6..1359f1d70c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 40587fcb64a..8bdee01d586 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index c324ef2dc39..13d5c5a4ccb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 6b661edc394..8c2d8d7b9a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 5cdf1f545d6..08ee0b86b08 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index bf9e987eaf9..a31952a006a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 0359b424129..25ba49931fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java index 59e983292ba..6544fed955a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index ce622517c9f..b075da1d731 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java index 1e3f22dfb07..432ff200108 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index b4c4bf0750d..a722ca47f02 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrSta this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java index 42db5073d21..ab05d3fc77d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 5215cff55d4..6fb93b7c49f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 105e960c7da..8254ec15044 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index b131e47055c..f50d70fd3a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index fca26f05cbd..4d19df5e518 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 32aff466e15..e1f9fc2b4c2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 2abdab99c7b..4702e8af348 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 4e6d9dab7d9..ade04116ca4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 101aa3f6b2b..6dc112b901e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 0ce8dced96d..576108f0085 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 0ecd8d5dc56..d5bb4c39875 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java index 69921c8a64f..772d78efbf8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 2a1b28039da..c95511dab5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index ae788f30544..5f3a50c0ed1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index b51b5c5ac3b..540b4bbc2cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index eb40a246f50..87c715d7bc7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index c064e99a3fc..bd808b76b19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index d9b4e5c51ec..ac5f62ae396 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 9b82cd1d50c..b5892e977bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 58486bcc9ad..cd0c25c77ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index 6071ec58b1a..5d191472c89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java index 8830d35266a..2ac87f733b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index 7fe55ad8d35..84d839e25f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 70a365acae8..9331000113d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 5e41f423fc0..0c021dda9b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 31ef0b505af..3b1263dd1f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 988fbedf9d5..42eefec9269 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index f18600102e9..58635b7a55e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 218780b6381..5ca68dfdd85 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 34bc01fcea7..0bc1f2dda8b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 3d083313482..95a844e2501 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement.java index a91340d3cf2..0a0118ea23c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 2626eb6f32f..06c845e17f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 3584c5326d1..66eb81104e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index bc1ac79fb93..cf33ea05e37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index d3f96a230ef..60863d4fa6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index ae42bf455af..b9e3494fc4c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 7074675b020..157ce332e7e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index b0112c6d287..a26b87232ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 0f3d8176d27..57c49aeca2d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 6c3fe6f4214..72eccd526b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 4b51f925ec0..9be53cddd59 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementR * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegex this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 4aaebe0ff08..88213609a90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementR * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegex this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 37800d2f0c7..2d2ed904acf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 66f499f6575..3e8e73e229b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 053000a4556..4cc25032370 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 78d87993af6..25301e47b68 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 3c5ba37dbbc..857055c87eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementR * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 3dc96ea0130..117fc93b30a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementR * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 70122566d41..00280980309 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index a7992ead09b..9728f5aae10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementR * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java index 0580aff477e..adeb2389378 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementS * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeC this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 97ac881309d..a95cb1769aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementS * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeC this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 4d9fa538299..993ae244a5d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index e87e2c6bf7c..e61b3668b8a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 1dd2ee76ee4..1ad446c15a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index a3e8db7e2bd..b84c704f5c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index ebe84b7aa73..66a7d1e4ea4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 2c807ca262b..032a2799fb1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index eeb8a91d747..66af1160406 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index dac27c50f36..6901797c36b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementS * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java index 58fd29e9028..2fceb63dea0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementS * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index b2dd70b379f..f8042992b55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementS * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 65081f39a9a..ecc75a0118d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 117fdffe0f8..c5cf53f1040 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 8e5a612511d..5c0c51a7832 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 61aff0b0198..1b7aba03691 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 03a5d2681a2..a7a883888c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index e360cab1f89..02cf4edc90e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index afa4873c163..7e6bcbcf915 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 29857f0e8f0..c771096ccaa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementS * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement.java index a6a09d17429..9baf4072df1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementX * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 124d83a5d3a..db3f094ec93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementX * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMa this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 3d0704ad093..86212841799 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 10ccd5068ba..dee8177ed80 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index d322a8d2b6f..0ff2bfa4136 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index b729ef9897e..4a408726f68 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 22d4585ab29..9efe22d44b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementX * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 3f60c75562a..0dfd5b57946 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementX * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index ab62ecc2737..7ffa7a08289 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 86302ead4db..ae43f801903 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementOrStatementStatementX * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 108bd75e2c6..c7e8cb4c2a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementNotStatementStatementRegexPatternSetRefere * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 54260dbac88..17df76c8124 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementRegexPatternSetRefere * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 919f7e3d2b6..ab45b849179 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 3d133b5d9f2..dfc21dc50ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 6965b0f0931..cdbadb1de5f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index b7e438628da..163e5cfc698 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 4ab27dda541..1e0ddb57cad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementRegexPatternSetRefere * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index fc6c9f7fa93..bf17d75f98a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementRegexPatternSetRefere * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index d76f3e88590..d6715e552c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 53836ac2f9d..3c81ddad715 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementRegexPatternSetRefere * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatement.java index 1a4b5a045b9..401c509826a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementNotStatementStatementSizeConstraintStateme * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatement d this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 69196220801..8cea4a88236 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementSizeConstraintStateme * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFi this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 7142fc9bd15..f6cce0e799a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 9b928c2d6e6..81a4d8acfc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 75a0d1ae174..a3f2e656c32 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index b35b4da6d60..16d6f70c0fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 591c9552ed0..9f9a8284b42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementSizeConstraintStateme * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index c0e2803d62f..f644d8b5289 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementSizeConstraintStateme * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 118b5a13b9a..8656a330768 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 0e92c66f580..108373e132d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementSizeConstraintStateme * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatement.java index 3593c985f64..00e4e03c13c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementSqliMatchStatement { * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 7471255ca39..56066776dbe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementSqliMatchStatementFie * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldTo this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 19ad3dfba42..b3d4a4dbd64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 18ec0954a2e..4b4e8267472 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index fa2eb3e676a..b33de2e3d47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index af324370aee..f948a759886 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 4af38eaf653..2d3ab56b37d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementSqliMatchStatementFie * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 1c0bf6c7571..3012a91a3aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementSqliMatchStatementFie * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 23a5b5b443d..b0045446a90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation.java index 3c970de9fd3..caf2a2f17be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementSqliMatchStatementTex * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatement.java index 4813b620388..cbb1f95b375 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementNotStatementStatementXssMatchStatement { * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 0b108720c08..de84688707f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementNotStatementStatementXssMatchStatementFiel * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 7bfd3cd57d7..7c35057de46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index cd8cb89e00a..ea361567304 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index e320e50ba1b..728281407af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 60a2d632746..d69f671fe96 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 473fa9d3cbc..05979e0f1ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementXssMatchStatementFiel * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 674107be616..c9c323cff8c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementNotStatementStatementXssMatchStatementFiel * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 0b6d31b6738..44df5722157 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation.java index 0c3f46e0697..77e2df3464c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementNotStatementStatementXssMatchStatementText * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatement.java index 7ae81648cd3..e1d823c347f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatement { * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatement build() { - return new WebAclRuleStatementOrStatement(statements); + } + public WebAclRuleStatementOrStatement build() { + final var o = new WebAclRuleStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatement.java index 574ba37253c..eb94de1c6d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementOrStatementStatement { * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementOrStatementStatement defaults) { this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatement build() { - return new WebAclRuleStatementOrStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatement.java index b7c31859966..9766770241f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatement { * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatementStatementAndStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatement(statements); + } + public WebAclRuleStatementOrStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatement.java index cc6fb0f3ea1..9a187613dec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatement * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatementAndStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatement defa this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement.java index 0b5dc5b5f00..64c60bc5034 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement(statements); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement.java index f935f90deab..7c6738a050a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndSt this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement.java index fa129e15635..e39d31fc776 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 333df22ce92..28db48da6fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 88bea88681d..a8885b90ab0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 18997c95345..78ea9de2bed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 1559fc9ecac..3c10730996d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index dce2a31bc2e..5dacb211b03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index ea318928042..56255f65180 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 56978f0173c..10786de00e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 87d83aa03c1..4757665e6b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 9e3862c44c6..8af60f37f84 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java index 89e4a6a1053..bfbbe782613 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 75bc77a6dfc..7b3fcdd9cb2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java index c7ed399832f..f707f5f53d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 67b6f527a1d..c4c54f73ca1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndSt this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java index ebd33ea0710..314f878bbd9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index df79974c0c6..145e2df981c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 1ce1f44ec11..f769ba1bbc9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index f114311f63c..a78ac885656 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index f88f4ab577d..4107ef453a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index eb4d7eba070..9a07626fad1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 92edcd70ff2..36eef2ef4b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index eef04cf02f0..00267873f1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 1a8b5a05d38..2dab4faab38 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 950e6f87b04..f4c48a2b147 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 896735bd7de..b0a7bcf89a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java index c3aa0f5e36a..6380919e093 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index afb60a5d885..b63c602dd7a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index beb4ad8e7b1..d12be834eb4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 2f111570540..3083ec1590a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index fc2c2dc41f9..df1ebdf6909 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index bdf73d1763f..3c4ffa6635e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 0a6bfed5f25..25a17317bac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 14020d702d6..dc1e48f0faa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index ab49cf9c4fb..bb561631253 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 8b67e845f20..3ee0ab567b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java index 208ed279789..bea11820958 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 85c1c71860d..d00438f1914 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index c9668098664..066b93e37f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index f2d38773b0a..7f32436f1ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 5f5512d2646..779b6bb6fa0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 46241cd7d82..bbb336a39f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 7fef56132d9..0801fa1eb07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index a3430e2854f..641764ada30 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 86c2335f926..e62a61081f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 3bd2e76b03a..3a69cde1417 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement.java index 8845a13e162..8c0fd91bd32 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 52d17f283c0..727328b9394 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 0994b0b9760..79ce446513e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 8974c7c71fd..674269266ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index a94e9ffe838..46fef23889c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 88e4eb9adc5..34078c5fe03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 9bc89ddd0bc..d76b78cdef8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 30e7a4fd123..da8e157d840 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 9c52cd81759..c19a0c31949 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index a203a9219b1..84eab067412 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement.java index 7c96ddc2b29..5aaeaec4933 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementB * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteM this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 6d54f518b65..e8e45c0b096 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementB * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 37f15238bcf..de6760fd530 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 0c1dada2517..46a04217a7e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index a0b4f54b628..814b13b8b1c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index ab1e99c227f..aed2c95312d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 15128661547..5db2cc7394a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementB * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 58dd6a3f167..ca00e6aa036 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementB * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 9a42b29d5e4..62cb7a635f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index e504e28f15a..92f7b3dd2fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementB * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java index 7d219335266..a43665c6f13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementG * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 80aca702e10..7ccadc1a275 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementG * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java index 7886f4950b2..dadd1e7c562 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementI * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index fecffec706b..cde89c7ca5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementI * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementIpSet this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java index 4e2e13b4562..965fcbfb646 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementL * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement.java index 388705f01d7..7b4b24320c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement(statements); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement.java index 7ef02594277..60a7454108d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotSt this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement.java index 59442c22602..57d61571a07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 1eda2751c20..088f7806469 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 5f1845c1a18..cbd5a731dbb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index b0ffb8f5a19..bd254cea0ed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 41c87922fad..c883922b6fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 8c3edd1b9f1..8a2b8597582 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index c352684d162..3b2413d14d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 5f837e5cecf..383859db62d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 9f42a7ba818..93a1147792d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 061b760588f..49b3a5471a0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java index 70fa7ce6024..3e53d5718ac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 7b1da544061..5380407d056 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java index 9511746337d..313a0dd49e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index e70b2c27d63..3c404c61cb7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotSt this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java index 6d713acf86a..bea41eff430 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index e445ab40823..44a9b670681 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 96a11ccbf90..8e1cdb7e5f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 8c25c1271fd..bc93bb3eac5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index dcb6c116d87..2ab5a3411ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 32d44093416..b9dde6c4681 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 3e6430d22e5..66db3332763 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 5ea54ca373d..b08b10ea9d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 4ba3542ab0c..3358acda625 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 2a3adf68925..ad3ab53461e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 8b1a6ae16ed..3a271bfa4d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java index 8b3e1fc0707..73ff0c98cdb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 8d42859f08f..e52cad835d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index be32a313ece..6c7ddc8d2fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 7ad9e768c41..18dc8e92d79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 245af1d866a..bbc39f9fb49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index e88c3518dcc..bca7574c21d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index c88e061bb57..e37dbc9b821 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index fc7504a68c2..13d7cd10f48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 6cbf6fa701a..6a5a06ba52e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 551e3043584..69524ec858c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java index 640b33d2ae6..79b7ff16506 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 8bccbd9ea9f..df0151e7c52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 179ce492cb1..17738ee710d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 5ce1c7cf493..8bb02ccef0c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 40d5d46effb..18a62652adb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 2c25fcc7b35..6d3e1b004a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 687ee85d6b3..dfa482edf4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 0d2bee72b32..88dae5ad794 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 2c4b33f2b77..3cfcb53e171 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index fc7537c69c2..2f0a7427fb6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement.java index fd6760a7557..40faa6de7c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 33f66e5b1c8..2a49c45c88b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 5ef680a005d..f21719a61d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 1bc3f8868ae..00f20c32e33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 28048252fe1..aaf5615efb7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index c7984fc5383..30bb579d97e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 9385a58f586..71f20cb7093 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 543ea273456..4ad99d10b19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 886e646ad23..26b49fb0d53 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 3870d5d1626..cd6e884a0e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement.java index 67bdca994d0..a1aedadd857 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement(statements); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement.java index fe14c764944..46d43d6615c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrSta this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement.java index 402ec4416fb..501aa7a2d7d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index e275de75410..e1d91ca5673 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 6125e1b9da8..58760fb84f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 62ef565ffdb..54da27a9151 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index fe0d2df690e..03c7776e598 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 6d6b75c6495..51054b6a937 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 0e974067daa..517e1132a17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 899519e1f76..f5ac98ea91e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 37bce3f4f54..7387b55568c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 3af26936789..45fc8477863 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java index 0bde9d6e4b7..88b13f77ae1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 8b589a8be15..8cf58304370 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java index 9a9f008419e..05cb2602737 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 471714faa32..5fcd7bba1cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrSta this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java index 84ff201f396..d992d0668f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 651c8337297..25c1cad5e12 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index cea7a106183..10c31b30ccc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index ea214be7be4..0ecfc4398f5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index a495eb2703d..c17c4f96209 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 93780403a3b..a69e4ecc8f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index a53312f8f9f..1864e084110 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 2b328f694eb..0771686b65f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 7adada4e6ce..91307611f51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 22ef4f5174b..8876fd9554e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 9a9f1c7913c..42baab5fd59 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java index 3f1d9295279..df948e7eac9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 2cf20ba780b..6541aaaec93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 221567d7d1e..aeef2f3bd8e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index dd83e9cd570..2aa988fa36a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index d86ea5528cd..62113b181b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 1f1123d7937..a44b6d12769 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index c65179b2ff3..6990178c1fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index ee6e6444239..2bdf461c4df 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 44927c3cf01..354fc39c9dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index 068305bf4cd..cb9ec19add1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java index 94dde2831ff..5876b7a5745 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index b1cd9aaacfb..6799f2cc6ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index ed20f50afd5..0046e1baa74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 84dd2fed333..b3c94758fb3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 774ad381a45..d649919bfcc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 5c3aa9bd56b..db93f7aa3f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 4bcf6f777a4..ab29c6fbdfc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 4ac0a1cc43b..17a5f65b5b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 5c3519a192f..9694777c158 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index a9de4a4ed46..34e1912318d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement.java index 48ac9dbc6ab..cc96bc28668 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index ef93c427039..61dfe3bf351 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index a43414b0558..f4dbe3be12c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 32e01bc864b..5df8246b782 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index f489186c70b..baeac870d4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 8f73a62e125..6ecfebcd5d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 7563b5ca37d..1fd652912f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 99294710d2a..ddc8f88a075 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 71be4c6f65d..29407e40174 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 51818339dbf..2a2915a6346 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 732354b73ea..940417f3c47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementR * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegex this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 5ff6c0a8e12..9cbe6f6e436 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementR * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegex this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 3180ffaa697..d3d98e1b80e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index aeb833bfd06..04a00f15e0f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 86aca4b0528..c6754943df3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 9732ac4eb0b..63269a2e3ea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 5d28e232f11..c9607e05d64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementR * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 651132a9877..64f33f16229 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementR * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index e599b19a673..0025d3b3742 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 4669fa70e60..967eaef12cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementR * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java index b41cf31b4ad..63fc5f46df5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementS * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeC this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index e313d986d76..567ae90ae53 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementS * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeC this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 490ad244357..869b4e32287 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 5ba558361bc..52d5c12c07c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 5feb2c79457..f59661972aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 618ef8ede87..a5aacd081d5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 100008b28c8..b181ebb8a6d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index b2007b14841..c1fc77c0cd9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 2b75e1d3ac7..c1dbff04196 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 9fbbf32ee09..37244d24ac1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementS * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java index e865006ed84..d89388ba59c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementS * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 5e48ff9281d..c9c941cf137 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementS * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 8ee457c83f6..3fe19691cc8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index be3f0d8c6d2..48059354734 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 8b8fbf496a0..6dfb011d757 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 1cbe0f2f706..a96b5ab1ee2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 06896753dc0..aa1e767b019 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 8e218525f0c..8806c8fc564 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index c475c540d41..cadeaf2b4fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 0e30927ea20..354050b670a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementS * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement.java index fc1ef327769..77092304191 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementX * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 8d04815ab24..05d0857857d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementX * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMa this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index cf59ea6b0c7..966282ead15 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index a2afa972899..95012115622 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 54bc99fa0ef..ca631659cf8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 7b24a7dbe49..d8c088eb3ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index e14efa973a9..a446f650681 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementX * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 971850f119c..0ccd5c7f13c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementX * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 9a4ec8c6448..323482b255e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index fc2d4c5a82b..5df0d5dc5a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementAndStatementStatementX * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatement.java index 808f9ccb567..25715212efe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementByteMatchStatement { * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementByteMatchStatement default this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch.java index dd115111a4e..4b526c1657f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementByteMatchStatementFiel * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index f71bc325d21..0c96971d655 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index df495a8fe56..93ac015ab70 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index fddc4028f2f..ee5017d83d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 06213a5017e..0348e2f08a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 960d6dcb6f9..10253f9b21d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementByteMatchStatementFiel * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 607a97b0855..bb65a244ea8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementByteMatchStatementFiel * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index e18edb47b6d..8303b7b087c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation.java index f3544084675..d1b439105fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementByteMatchStatementText * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementGeoMatchStatement.java index 11620a2fce7..7bfe057a163 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementGeoMatchStatement { * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 71281019be5..a7188e970ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementGeoMatchStatementForwa * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementIpSetReferenceStatement.java index c5961a67566..9c1fde5c533 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementIpSetReferenceStatemen * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index bf0386a7b8c..d0a2bc58f85 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementIpSetReferenceStatemen * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpS this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementLabelMatchStatement.java index bab98cca891..cf23859440d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementLabelMatchStatement { * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatement.java index 5797d790925..74c24af436f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatement { * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatementStatementNotStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatement(statements); + } + public WebAclRuleStatementOrStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatement.java index f85f9186f53..7a2e9c50cb5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatement * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatementNotStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatement defa this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement.java index 25a56142cb5..04adaa3ed6d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement(statements); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement.java index 8c985becbf1..f2ebcbf2b8a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndSt this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement.java index f00e8eabb0c..faf87b0fa45 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 18c26f51bd8..da4cc45cedf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index b9bf75d3445..aa518f40880 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 8562677b513..9b8002e957e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 5ebcd63aada..efc971c84f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index b27e0a176fd..ba28d1234ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 0b3477ccef9..dff93230e1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 8cde6d5aa55..fcad714beab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 8ec61223e81..a35d5c15466 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 97fc64e8481..06a04b4d59f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java index a8760fc2429..5c55fc71741 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 54e0fda50ac..d464d70a000 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java index 238fd4eb1f9..d79724c8497 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 913a34476e5..28b38645add 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndSt this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java index 69b3468f4a0..c5b2cdc93df 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 031d976ceac..8b00f6caaec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 0dbee1519ac..3731b5c5809 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 4097aaebb09..5f0ffbadbfc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 78feba5d869..fd63f1079b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 88756504233..92eb37f76e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index ba7762e4a06..20133666557 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 97e60cab524..ceb174d2406 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 35d562ae1b6..a12c118ed28 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index f9e13e7f269..85c7496b70e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index fa7b97e2522..8e0485b6be7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java index 0d99b8b0e2c..d96bf4472b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index cdc6de4c354..70dfc27e3e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 6464d7faaf6..0509a299b61 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 1dcf0301247..0d40b52a5d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index f173a450f86..38c24fd342e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index b8e622dba95..d257f8a1aee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index d1450076a51..6757dea7346 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 3a42e851d0b..21de0f974a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 056c9e8df11..b39890fc3a0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 61beb2f26c4..9161500d091 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java index ed064890c3e..bce29e2d8d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 6e2c7c8c369..712932f3227 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index b8d76b91df1..3e1bb349cb2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 1413bb60764..4d03b99d10f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index ac76928f0f1..1f980933920 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index c1d7fa28c07..d0a0d65aad8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 78177a35549..4b1ca166629 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index a3ba28344cf..035606e318c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 0b99c38f851..8ec0416c471 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index e27ae1a90f0..5d9ffde81a0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement.java index b7361e49ca3..699e390d39e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index d8be9aacb05..bc95f283869 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index ec19cdd7951..4146cf145d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index eb6102f3b26..c19826ed18f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index d29f9f0e279..3cc27c7d438 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 87f28af55d8..501a60493c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 2c8da57e79b..f99e147ac78 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 57d5047adb6..4d25acb3548 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 7b65af8711e..460daaae298 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 722406b1f98..b7f58483b90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementA * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement.java index ce1e0c18a97..17dfb785e1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementB * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteM this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 59920e5cf3a..b3711bb7505 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementB * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 48e6dccaeb3..ba45b1efe2d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index e37f2e3a808..1cd9d29884d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 7da8cf3418d..c37bbbc989d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 5b1cbb30385..a14e53c4d0b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 2a101627192..6c0dccc53ce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementB * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 85f61fe5bd0..00d16f1a6c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementB * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 8dabc7f56f0..bda1637212a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 11caec8b484..523613b48e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementB * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java index 418493255cb..dfea9b0f125 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementG * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 96691d189aa..bf658fb60cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementG * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java index 896b2aff3e1..85e8672fc50 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementI * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 6f64b5087ef..d0d2fb114da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementI * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementIpSet this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java index 0f3cac64b48..fd416b54d55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementL * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement.java index 98413d85def..86b649ca950 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement(statements); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement.java index d7aeebdc9e6..14013a496ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotSt this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement.java index 0c2123d052c..b745bbaa3f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index fcdc7cbb11c..580304c9264 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index d74ae9f281a..5ab932522d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index f249e3acc94..b3ce9d2453f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index a90d283d612..aaa2e3664cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 162c9e5d8c2..63d2b0a1fd2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 243b91cbf7f..12e828ae59f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index df458781288..eacb93a5c69 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 8b8485b710f..5e9f5fd1518 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 229c0344b6e..01e3ffae2cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java index e8494ab385b..6c7cbe48f7c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index f0532c239e5..9d23774e67d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java index c24abaff693..e9eea659e24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 4884c708dbf..2951b6419a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotSt this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java index 8f5f9edfede..0e670ca2631 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index c889d8904d8..806ca3e90d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index f6bbe2735e9..e61a6aa7a4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index df00e15e14f..522486d856b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 2a1c4561c65..0b72d73c92d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index d59b32eb522..786d8075c6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 941383ed0ea..76f0bca3c2c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 9ee27ed8468..22b3c9664a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 1d90ba39cf9..6a1efc7167c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 51a3d9c694d..1c5ef176039 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 9f31f4adc99..ae6bdbb478b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java index 69d6f07d7b4..7faf24e46af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 8131b96605a..419a60ede17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 3f1feaa6898..586ea436576 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index b30f33f3977..7375501af19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 50045c182db..bcf996e7979 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index c2f7eaf5ceb..c9dc1b4559d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 9a9042c2b40..cc379be162b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 566244ca604..71782e54167 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index d7831edf116..e13e8c682b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index bd5150619f2..865306d3f1a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java index e66189cc915..80e8adfc5f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index eba9cd3ee6a..d353774b41b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index c8caae09d79..dfa59873c6e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 818a9689f55..430b535c0b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 4df6bc05058..2cffb56ab82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index d9e65c4d75e..9cf03539297 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 4c5e3cf7913..61f1a2ff05b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 064deeaf126..a4326f90b50 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 2542c3886d3..997a89d989f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index 4d468c84481..5c448c8e1f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement.java index e192976ab22..a065c578d76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 236ca9c2172..175a81653bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 11a6589eefa..5a86ea7d6f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 97943496f87..19023197dd3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index b9e72f1d90d..8840f8e6dd8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index ba9a2053af2..2406359719f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 2a1ec2875f3..b255c513fdf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 84c2b623f1d..174c5bdb1bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 5ac7c4ff656..c62018a2aa3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 79a714c18df..d5d97a8f26a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementN * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement.java index c61009619b7..5d1e6a0f064 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement(statements); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement.java index d7b6ad5c3e8..b970d8c03fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrSta this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement.java index dd414842a33..6ce5bab3282 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 9655d0a853b..9c6b46941eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 2e193744290..434c3bd8c76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 554a2101d12..d914c7c28b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 3e7a45c5a82..053ff0809da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index ef871b322e6..b08a5dc6f11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 1df04a9b70e..90d9d3109ef 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index ded18481c72..1619c1669d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index c7b098615f4..a4c2548164b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 82bb7355952..91fc32fae73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java index 26c6b4d4f9b..05767eba474 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index dc2a9347ede..5eab74ac381 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java index 6c2f09ee310..87aa0fa6cbf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index e031477f390..100070bf9c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrSta this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java index ade0df869bb..7867aee2cfa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index aa306f5028c..60b1c1eb566 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index b81cc84d265..106464863a0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index d82523427d4..10a6340ac67 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 29444227f4d..96666021df8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index b0d93c9d12a..3e40c4905b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 9318f0a8ebf..e0b66041365 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 63e5ad38e5e..5fc35054347 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index c4234280265..d46cfe52b13 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 8d79260dcce..29a8278d4df 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index bd41a0604be..aa62327a8dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java index 95b9a93ce2f..8e224d9f2a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index ea59446b061..c7b4842b3c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index be05ebbef98..0b36d43373f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index d32cf390502..8c87439c0a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index bcffc14fee7..73db33b25ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 52aab0af8b7..3f019eecccf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 85844caab0a..ddff2cfb562 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 4d18a0e8cf4..f6d07963e0b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 1374af43e4d..5c80f03301d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index f4e9db3dcf4..afed998592c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java index 0bd94dfe81a..ce5b2993b1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index b85ce44cb0a..f78118a72c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 8a3a696dbec..0bae5048f56 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index ba7993074a8..93aae89cf47 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 8a2bbd7c8f6..96c4cfbe9f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index c44c7794f70..65c5dc92101 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index ee6de735707..562562084e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 59ea1bac4be..8548c5c90f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 48037759371..0c501d22297 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 8c88aa9b3d5..490134fdf6a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement.java index a34907d214f..6d00067606d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 3386781783e..532b6c8bd03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index b6ce035c50e..620eee6af07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 002b0ac2e5f..a9d09c99a2e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index bc7069abb5b..51133cd08a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 04f506c54b5..9e80d07e106 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 43e55591bd7..cb7a81b7fba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 57e41ba4f16..cd0fd9b2f59 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 53547afaa33..67ee1c82f88 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index d5fb9499cad..2ae5693d13a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementO * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 2e2bc8b670c..022ab6e7ef3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementR * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegex this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index ef3104c8e7b..b1edfecc8d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementR * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegex this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index e8b211a5c9a..89fd23383bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 1c5d393c52c..e0bf32367a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 6b47caed8ed..6925cb14311 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index c90cd1e8fd2..facb239056b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 52a9d525610..cd62b56143d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementR * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index a025503b50f..e831f179fe4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementR * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index aec0f8cf799..c13f51e1ccc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index ebae4d5adb3..880a7a635aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementR * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java index 49e8defc7bb..0e4c006e9d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementS * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeC this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index faf148b82cb..d00c1143011 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementS * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeC this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 252c2c23816..4a2cadd6bfe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 27b6ec38017..e80fe57ae58 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 977ac0b4b37..1963f04f6d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index ee440f4a93a..3ed762f0228 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 834f6940625..db8ff6fde95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index a4758f0981a..4da19bc0b0b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index eec11e472b6..9d9e27e21c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index dd4dee6b91a..10798872272 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementS * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java index 3b1d2305ce7..694c01944e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementS * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 5623b1462a1..bb0a3d54e82 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementS * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 28503029a8d..84a3eee58e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 895c5a1eab8..85154e8c929 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 88244cf208b..012051460f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 9194cda67e6..ef1e7bee3dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index c9a402232aa..bbee4b9dd64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 05435ca296b..24aba23b418 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementS * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 1eed2df8a20..f4a3de33946 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index ec808f67b28..71a2c68f6fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementS * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement.java index c01adeded32..ec1ffe9e20f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementX * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index c2b722e2640..45efb763c17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementX * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMa this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index c2545a2a1a9..0bfa61ddf6f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 1977e186e18..69b243a3075 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 3b20e6e911c..61a52b15a87 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 3afd0a7b150..70d81123b2e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 52068163082..8477a36150d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementX * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 2d21cdf15a4..f5ebd658348 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementX * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 6ab1f1a6fd5..69552f058f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index df505a41c75..e66395161d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementNotStatementStatementX * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatement.java index a27db3f208e..4f3da91b25d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatement { * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatementStatementOrStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatement(statements); + } + public WebAclRuleStatementOrStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatement.java index b79dcbfc3de..4934188df5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatement { * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatementOrStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatement defau this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement.java index 865c1952832..87113981c9a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement(statements); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement.java index ca5bbfc6d76..e922a163795 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndSta this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement.java index 4ed6ed66bea..346762cc5a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index d9a6db368dd..be41b0685a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index e42dcc702ce..740b0d0d8a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 5227160def8..b5cd76f5d33 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 17e412f3e13..bbba31866a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index cce949ac033..dfda4657cc6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 97cdcbe1c20..b0f9f3849e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 5eaddebbba5..ba51b31c290 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 7f96f40440a..ce8425ae81e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index c9f0d675d73..67db44c0506 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java index 1df7b345bac..99d984e2a11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 67e013f352a..8d9b0452b77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java index 163ec16b8cf..70bd91ce714 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 7989899760b..cafa0c4319a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndSta this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java index 50879bd8b9c..78c1a5cb4b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index f1e41ea1251..763873ad4e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index ffe8e5d210d..7282487caec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 6e9219c026f..53bc1e35379 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index c4ad94d77f7..6b26a308e8a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 09e37492f82..3281e6c209c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 8805997478b..1d3181c39fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 472392abaf0..d8e43dd8c2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 0030244c4c1..27583a143dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index ca4b3c1fa4b..2adb3d66367 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 77f703471c0..f40d453e1f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java index 9fe80062f2e..f3cd4e46317 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 0f75bfee258..e05cc05cefe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index d2a3f3e9b30..b38fc7ab821 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 4bfbec85e5b..6ec42e62df9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index de38fb31958..c4ad751899a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index b86c9549809..3de3a058495 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index a50bde28768..0f5e234d489 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 45961ddbfd6..f31ba90afcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index be03decd6b2..02bfb59c765 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 2822ce2be0f..a48b4146693 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java index 71531d2f698..00205ed0f4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index f46e48bb6ad..069365212cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 71a5d80e2b2..3d22c4a2692 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 1a16e95d59a..94983bdad19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index fbd111dabe6..8a1ae532ae4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index dcdd66ce249..e9db8ea123d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 0285a6fd57c..60168a53c11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index b4f087be252..923658d3c0d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 2a2b4ea65c8..5ffed429d7d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 1803f411889..481ae88205f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement.java index 384a633319d..70ad0ce28b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 5bb0957720b..5dc212e5222 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 22b03c7f8b4..e600773adbc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 3f9a0eb2f99..9e9569137c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 9ad04e35fff..bc03ec6d05b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 54fb231f048..fe54926dacc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index ed0f47fb313..ed7b8961d48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index c77c1684289..f7150c0493a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 3296c68d6e5..77975788ac7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 251f955ac85..eb0de969b9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementAn * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement.java index 20b74409b72..329137634d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementBy * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMa this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 997d2e37e3d..9d93fe4656c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementBy * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMa this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index cbb14b0ec54..049dd64125b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 858870d59e0..95d36199d51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index 87b6e560669..a846ebe6968 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 5cf32a5a3fc..0e4ddd72484 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 847dd5fa4f2..db9a29c2822 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementBy * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 2938db9bef0..51d30ba1505 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementBy * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 62fc6cecc8b..a2250245523 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 3bb527e7dcc..3491db4fa63 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementBy * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java index b9d3b7ba409..e8eb1421092 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementGe * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 1206744c8f8..810f9ca1f1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementGe * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java index bf1afbaea6c..362f167c9b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementIp * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index ca96e19c86d..649bc27f7e5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementIp * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetR this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java index fc6669838e4..f823bcf01cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementLa * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement.java index f49c1e62d0d..ff421e2b6f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement(statements); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement.java index f824e02fa75..e505cb77f3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotSta this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement.java index dd30c04b39a..c3dbd1e4be8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 8485771baee..e0d46e087fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 08402bae537..ea762cc5eac 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 0cbbe27aaf8..9ffcbc90f7b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 72e75f1f121..ad23619508d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index a46c35fd90d..99335ac06c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index ed1fc6aa42f..419f1a969f0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 25a6e62924d..6c5e3adb263 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 6aaa7266a62..c1c705733c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 24235093293..3f564b08c10 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java index 74479bc7c3a..23bc9c849e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 4fe30947578..6d8c4505c52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java index 82ece1715d5..cb1da1859d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 1f41933fdcb..ce38ee04cba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotSta this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java index 02d76b1a19c..ea4455e3912 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 2e5fdf27dfe..6ac4ed7cce2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 813a68f5da9..56b7cff302d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 3c2c64350c1..14767a48d42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index d69db4c8f33..0505afc4db4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 9eb1664a851..cb9c713ab5b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index e7e1fb08218..f5de1f90791 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index a26edec5d71..8484b4bab49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index cdb04356b53..d7d0f7bb847 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 421df6179ab..cd07ecb5e96 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 2cdb7524612..c23ff53a7f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java index 913f98ebb4c..c50a4b8453f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotSta this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 88c6c38cdf8..e2f73191a37 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 651e792a2e0..0d2b99379b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index e25cf8c57bc..f18408e0c51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index cf2fa2d5310..6225ee0ce52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 9b810c90593..894ea0171ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 558c23770f8..d6055d189bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 99e87e16918..7c7fb64610a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 794487cd139..04d064492c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 2e1ac9860a0..60b3f3108d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java index 9f56598543f..553e9cd629d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 3c1ba8ecc8b..3116f1e17a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index ef8080b1faa..59267512017 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index e01e0b2eded..1e5e945637f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index a81990a99a0..7a467b242c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 7e9454612c4..1cba4c7f2ff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 5e92d3aba09..111189dc611 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index b12ff92e5b8..f48aae95875 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index aec6e687719..62e5ef89fb1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index 49f094a4aa8..0a9f240458c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement.java index 31288ba5ceb..5b69076a138 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 8a2f589289d..10546c52b06 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotSta this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 044fdac6efe..09e30439ab0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 4755733655b..cf766a96b0f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index a26503e077d..71504003e17 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 6fc24eb9bf9..67121eb7318 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index af3d4c84758..f4771d711d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index f90fc7e486f..a62841d2619 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index a076ce8e74d..acdc005e884 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 3052808f4fb..6d6a8435f6b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementNo * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement.java index 2a48a71bf50..6958b31fa8d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement(statements); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement.java index b04319401a3..f5d79479c4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStat this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement.java index a66cf0023a9..9ade1fe162c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStat this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 0b74851e88c..d1fbdda35c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStat this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index ca581c77018..798e7d4822e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 352e665b3e7..bc6c7f5bd6b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index bdb09ae5c0d..c335d1a5fce 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index e7e1bffb86c..11746ef1d85 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 8a4887a54cc..a7ba87e863c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index f74f9f674b9..7e25bcbff03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 262d86828c8..76c86c05677 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index f97bc25e5bb..adc2421256c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java index f335a3c5dc8..17bb04994bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 7ea575ad1a7..618f0ea8ef1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java index 760b93a6918..df9d702e93d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index fce08b0fbd2..f0e5a3129ed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStat this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java index 1b7fd89cfa3..4a2ada0a282 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 06d4cf4e766..02059ac9927 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStat this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 7cb1c131031..3fee9961560 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStat this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index f7bb3f6581f..4d5845b5a21 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 376790d1523..e1df8ded32c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 812715e14f2..91163cf6afb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 31b2cf98410..691cfe25d11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 73549b7e3c4..cfb3e681f64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index df6d3fb67f9..6b36ca873fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 16848b4bf4d..1b7ff7e5ce9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 6c521d6f763..a1b529ef11d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java index 4beb64052fb..755cc7c28f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStat this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 063fd23a629..66f1fefac72 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStat this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 6c1d7a6e965..caebceee8e6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 12b4f8f92ed..32104c6e1c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index a587666a7e8..600fdaf1404 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 31080e6d6ff..c7665899f1a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 8869eac3b85..fbe12355ecd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 300d9347826..96b683c33ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 17b5f7744e3..864ec66307a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index d8afb3d190a..e9cd53aa469 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java index a89cfc8d4be..4517a617ce3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index ebfcb461676..766553e621f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStat this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index c790025464d..fe93216f87f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index c981500d96c..99f4f719a59 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index c297bff4e0e..1549e0a3f39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index f85d4e3e830..771fa3513e0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 87ec0f8807e..7bef8b94544 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 2d3474d70eb..d74b87f347c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 2827bf4d716..6f663243498 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 32a34e7ac38..44a4d4a9b64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement.java index ec3ec78d990..2c5f675249c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 5a84818e73e..f190b20045b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStat this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 66a62057794..f8c775869d8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 6ccb6ce9a55..6238c5fb68e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 7d3bbddbb5b..29d4e7370db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 9b760e07c84..0718abbcfea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 5e3c569a0ef..1bce758d2cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index df02e8ef754..dc4bf735412 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 0b768adf334..caaa951d001 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index be9910aa6a4..571d05bc900 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementOr * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index c3ed9699114..1b1a1c6f79e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementRe * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexP this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 7550a6b5779..edde6bb2647 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementRe * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexP this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 635b4d4ca70..cfb9b90f0f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 78ddcde55ec..1ab393a5ad1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 4792a1e6daf..fe00cac0cad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 262c2f309c5..0b7f2c62c2a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 7444a6816d7..8b4b109d448 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementRe * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 16c093957b6..5c47231d495 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementRe * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 1f0f0cda5dc..419dda514e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 329cdabcf27..fa6b1b62d6d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementRe * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java index 5e910f601dc..dfe08176fc4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSi * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeCo this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index bd5af174a6d..ac48b25d9c6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSi * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeCo this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 2195f2f8162..68487cf0182 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index ec9328e4b32..07a5762adea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index b542cde8ae4..fa13215d99a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 84049748e99..00dd5ffbe77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index e38af08990c..7d6c71b54d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSi * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index c4a1224f054..3f889070cb3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSi * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 3bbd57bb66a..5d9f3d7d44a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index 9d1444a66b7..67ed5a2f144 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSi * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java index 825b7d9491f..84973592d1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSq * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index fa5fcc48943..8ead72b5623 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSq * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMa this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 0e56dcfd5a5..be49195d8a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 69ffa5b8ca0..1f2aff1f79a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 95411365499..6bac8351a73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index cb77b854dbf..137f0dfe7fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index ab1b7f26030..cfd675d3180 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSq * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 4ddf07bd694..1f63e6fec30 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSq * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 07101ffcc47..427a8d87a40 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 5671e698eeb..1fd62592cd3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementSq * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement.java index a3c4a7183dc..bee292ea0f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementXs * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 2af533bd79d..5d6dd35315b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementXs * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMat this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 2df657acdf7..d80e3bb250c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index f022c3437a2..1f8659f35d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index d4ea6ce2bff..db80d642484 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 5a58056af91..d55aa16e815 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 677dad4ae20..fb32671ba94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementXs * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 90cfb4024c4..808a2f3f102 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementXs * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index b0af7b793eb..2747a8cb8b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 277cf9e8560..29ec0fd0b0f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementOrStatementStatementXs * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement.java index d849fc44305..884699f73b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementOrStatementStatementRegexPatternSetReferen * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceSt this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 87705318e40..605c1ecd190 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementRegexPatternSetReferen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index ab3cb630c5d..292264c3443 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 77b03d4b32a..50c7a5dbe78 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index bb912866eb5..82496c4bd19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 8a40deadab6..1c8db70f443 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 2cf60a081af..ea2420d8295 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementRegexPatternSetReferen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index bab5a8086e8..c6d844ecb2f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementRegexPatternSetReferen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 3ebd045f22e..ac777883583 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 2b616db37d7..cfa07dd12e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementRegexPatternSetReferen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatement.java index 655a59d8ed4..e40581dfb9f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementOrStatementStatementSizeConstraintStatemen * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatement de this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index cafe5e88a5b..357a5db5424 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementSizeConstraintStatemen * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFie this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index f8fdda97935..790e9057e4c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 549e5202719..4368c114cdd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 4a3d9478f06..5015f27c581 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 0a3e9707ff4..8641f7e4474 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index bfffc4c69e5..9db3569e13a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementSizeConstraintStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index fa8a0088a31..7b8022c3960 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementSizeConstraintStatemen * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index d1a4ecd4a56..f134e58938c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index 6243da849cb..13e70b15678 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementSizeConstraintStatemen * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatement.java index ccf7ad3abef..5ccc3e7a300 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementSqliMatchStatement { * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index 2990c3722aa..dd441383180 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementSqliMatchStatementFiel * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToM this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 8a8757a6bb6..45215b2ee01 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 9900cfe60d4..f840cd0ff43 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index f35c55cbe81..26788d55c5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 083affcaef1..818f6cbd4eb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 782393ba464..c07bd5190f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementSqliMatchStatementFiel * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index ea7fc9549ca..789e726b612 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementSqliMatchStatementFiel * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index dd9c85e397a..122c9feff5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 399405d3efc..011adb4ff42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementSqliMatchStatementText * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatement.java index 3b88d5e3c9a..9328e42390b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementOrStatementStatementXssMatchStatement { * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch.java index e6c0f73bbfe..b3a15beb2a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementOrStatementStatementXssMatchStatementField * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMa this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 28f95247bb8..d83d4f6d43e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 30f573492a3..580f31610dc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 393c7a49647..d9cc7a1a193 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 033f25ddca5..16adf034e94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 4658aa1f96a..4bc622dded8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementXssMatchStatementField * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 762ade4599c..8f4f2afcbba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementOrStatementStatementXssMatchStatementField * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 5a67f6def13..279737d1a18 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation.java index ea078cbefb1..17918c88a9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementOrStatementStatementXssMatchStatementTextT * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatement.java index fc6de8c3aec..98d1cfad57e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatement { * @return Setting that indicates how to aggregate the request counts. Valid values include: `FORWARDED_IP` or `IP`. Default: `IP`. * */ - private final @Nullable String aggregateKeyType; + private @Nullable String aggregateKeyType; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. If `aggregate_key_type` is set to `FORWARDED_IP`, this block is required. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementForwardedIpConfig forwardedIpConfig; + private @Nullable WebAclRuleStatementRateBasedStatementForwardedIpConfig forwardedIpConfig; /** * @return Limit on requests per 5-minute period for a single originating IP address. * */ - private final Integer limit; + private Integer limit; /** * @return Optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement. See Statement above for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatement scopeDownStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatement( - @CustomType.Parameter("aggregateKeyType") @Nullable String aggregateKeyType, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementForwardedIpConfig forwardedIpConfig, - @CustomType.Parameter("limit") Integer limit, - @CustomType.Parameter("scopeDownStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatement scopeDownStatement) { - this.aggregateKeyType = aggregateKeyType; - this.forwardedIpConfig = forwardedIpConfig; - this.limit = limit; - this.scopeDownStatement = scopeDownStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatement scopeDownStatement; + private WebAclRuleStatementRateBasedStatement() {} /** * @return Setting that indicates how to aggregate the request counts. Valid values include: `FORWARDED_IP` or `IP`. Default: `IP`. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String aggregateKeyType; private @Nullable WebAclRuleStatementRateBasedStatementForwardedIpConfig forwardedIpConfig; private Integer limit; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatement scopeDownStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatement defaults) { Objects.requireNonNull(defaults); this.aggregateKeyType = defaults.aggregateKeyType; @@ -102,23 +87,33 @@ public Builder(WebAclRuleStatementRateBasedStatement defaults) { this.scopeDownStatement = defaults.scopeDownStatement; } + @CustomType.Setter public Builder aggregateKeyType(@Nullable String aggregateKeyType) { this.aggregateKeyType = aggregateKeyType; return this; } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; } + @CustomType.Setter public Builder limit(Integer limit) { this.limit = Objects.requireNonNull(limit); return this; } + @CustomType.Setter public Builder scopeDownStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatement scopeDownStatement) { this.scopeDownStatement = scopeDownStatement; return this; - } public WebAclRuleStatementRateBasedStatement build() { - return new WebAclRuleStatementRateBasedStatement(aggregateKeyType, forwardedIpConfig, limit, scopeDownStatement); + } + public WebAclRuleStatementRateBasedStatement build() { + final var o = new WebAclRuleStatementRateBasedStatement(); + o.aggregateKeyType = aggregateKeyType; + o.forwardedIpConfig = forwardedIpConfig; + o.limit = limit; + o.scopeDownStatement = scopeDownStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementForwardedIpConfig.java index 813b207ffe1..a98083e6363 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementForwardedIpConfig { * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatement.java index 95e0fd8529e..ddab0f7d24e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatement { * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement andStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatement defaults) this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement.java index f70f3171043..4b4eea578b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement(statements); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement.java index 85e84e81c21..11857f60b90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement.java index 636a028b581..8ad18ef7f22 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement(statements); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement.java index 731a55729f7..74514ca90c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement.java index 8bc7707b613..6b51d2ff794 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 045d6fe7e4d..c3e35fdffcb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 3063527b365..ce45c8a4a2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index a7ef652b5d2..e648d7cefa6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 86b1cb6d65d..0c5fb500e34 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 652ac393d82..565b3ba4bc2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 643034cfa13..c39c3c4630a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index e9c1f30ed07..780702e89f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index c1f4d78a73b..895f416364d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 8c047053a0b..b11dda8c0d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java index c1acd5d059e..55d4cc3dc6a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index c8c559e672a..1d970fefa2c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java index d84c5cce0b1..a73f7e7975f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 227561a8a4c..a9f87a49969 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java index 3c4fdbb0711..232e147a92f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 578cc338307..6b7dd5c71ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 64f6abd3a97..32d92fd1efd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index e59de8e6e13..b8c525dd0b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 1e0401b278c..a52719772b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 00c6505dbed..140f9274d2c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index d4ce33c22f1..05b936b3d92 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 0ff4fe82814..6095e64ba4e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index c263945ccab..fc70e0db8bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 3033e0edbd5..ef9688beb06 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 71e55de86cd..9a7c97c2c76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java index 37d2e8a21d7..33fc82375a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index a1c491571a1..f8db550d0c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 13c9a67e45d..b33fd4cb2bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index df2eb9876cd..57257b834e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index b2779d2e5fc..1a0958666f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 9b3ad178621..f9fc709672b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index b35cff9fad8..73119c700f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 0197b8b6fe1..b9fc5793375 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 96f0ba9ea9d..3fd2f0b4a58 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index ff3ec137f26..91b7252b6c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java index 3c55d642d84..8e4d604f4b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index bf9525cdcf2..5ddb4909fe0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 35e495e13e0..5c0f0d49a05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 864bc179b73..7e88c76c568 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index be2a2489195..353a660d23d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index e777893222d..41e9a28951a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 4227d744ba4..ddb1a4292e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 0dc9d01d489..db05d7cd660 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index fc0e12f1036..0ed162bfa20 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 25f92078027..2dd255c80de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement.java index 252cc8ad666..4f61550ec1c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 54cbe98731e..4d62a493445 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 03de3daa0c7..457098aac01 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index ff2030fd39d..b8aa2348715 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 33cd57b4911..91adce21e14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index a95f180a68a..1ef811372de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index bffe02a12f5..0813e78c906 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 11c2eb0cfdd..b04f4538b77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 0664fef1468..fddaac694dd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 72dd2a89596..0828cf6e158 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement.java index 6911d7441f9..3c606466bbd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch.java index 20507453478..650e63abde1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 97401037e26..4e7a5b8190e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index e8796e07e11..111119dd032 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index 974e1e44e8f..a03c250c2fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index 2fca3dec0b6..51a1d50e728 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index ddbc8ef85c5..917ec9e4daa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index bf397ef1530..ceb79548bf8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index a54e1bf8c18..6f2fc042c3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation.java index 5a1f9748d52..68b7bfc11c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement.java index 18a1b532e4d..e6316dc41d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 244781bb05f..2619995bea8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement.java index 80eafca5f16..9a6f9b3343d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 03a7d456603..cdb5a5a8bbc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement.java index 83c447bdf8c..99f41964167 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement.java index bbc0e09bcb2..0ff7327063d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement(statements); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement.java index 2446a605ede..f9c91e57a69 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement.java index 4cd359d26d2..414a969f1c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index b8d48e132b5..f292b192649 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 30ea3d31779..22f25a2907f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 191c387f2d7..74e102808f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 27739945c47..cc13e0c5b80 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 74f2ebd8f7b..e6340543967 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 624c8692d57..e77a07eb5b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 65c7cef18be..ca6128cd8a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 1794ba2fcc1..19f8c3e7c4b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 3218b614868..a98e1f185d3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java index 45565040670..de85adbdd20 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 8ada1206a43..5d7aa3774cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java index 18698d6b6f9..db5e59c304f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 1975d668709..f12598c5de5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java index 75501bd3877..88d1ec1f373 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index e48aaf2d623..209afac77f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index f5b30bebf65..d60e623876c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 383b7ba11c2..ccb51b25a07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 56fbf3c4dd9..a59d0209e4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 39214b9315d..b705f81e8e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index c9ea26c1340..3da5c4190a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 6b66843768b..e908bf4441f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index df8f3870e53..22b8782cddc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index d7b79b5c5a1..1d0049da226 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index fc3e7707f4f..afaa5f38b89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java index d5e01e1f792..117d977f945 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index bc0c39c3a5b..e3aeb569b5f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 806c3e2171b..577b8ae5e4c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index d7074465005..44ecc610f90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 9c9bd4681c0..ceface5e829 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 4c74819a021..a0d211f3e2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 7c295d76a83..92104b379d3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index ee55834d566..5a5e0278137 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index d06025a8297..b4676eec3e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index a0819607757..9ad67cd0c61 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java index 133020c7a8e..32571c3f0a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 7f946d70920..7e6ab7bf189 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 3303bbcdf4f..4da4b472f96 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 8fd2e46dd45..3c9d5ff0a19 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 0b4c1a5939a..b781d20d0bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 689cdbfbc12..faa8c746dc1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index e9d5c23e992..71c122005a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index faca7a836b4..98bb2a922e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 47d867ebc45..cdd84cb0834 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index f98de33fe67..dc441aebb2f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement.java index c4aa581af02..734332b2443 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 38c8a624386..58b23ead42e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index fc79942b330..07fbb29cc44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 419791b2860..b6d63e951c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 27998afc460..3fd901fa10e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 3698b1184bd..8627b1de68e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 447b516be4e..f12cf4553b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index da911808bdf..1727df67865 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index b58468e541c..c2cddd90b4f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 04d0a15c167..bef69df3939 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement.java index 8fc8dc2885b..9a50e7c9ebd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement(statements); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement.java index 24144c70ea6..1c99c7902af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement.java index 4a43ba27e4d..6389ee08a11 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index bfb7a5d5857..080c1af13cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index b9fa9bd3bb8..70e2bd95f27 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 6ccc1a24c5d..c2b7d46a87d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index a09d3123582..e709cdcc811 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index 86bd58f77f9..3e19aed980c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 0d982739088..bd091e90d48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 08e636c0758..067834b9206 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index a398fc55465..f3712b69077 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 19625f70737..b56f1af77ec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java index 7b30fb26a21..e0a6b77ad89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index f8e9f603542..a1c5a42e79a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java index 3ba054932fd..b60f3cdc840 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index fd77b9ed495..fc862c6f0c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java index 7e2e2dbb227..f37f270b956 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 44e4e68f791..930d3199ecf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 01cac1060e0..85b804baef7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 8967a50617c..cf657c49ea7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 1d7d9c445f2..2443a0150cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 4641d804746..5259e06b61b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 7d2286b5958..6f86fbbaf0e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 26194d7676c..fbb5c0f389d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 4f3f2a22d2e..a297768e38b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index e1fe2e10d36..a8b521e61e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 85cff4b4388..83e1c706767 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java index 1e2cec3b5b9..9cae4692e5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index c883a161772..2a76bb447ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index b504de16791..5176a6db88d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 1fdbaa17b88..8ca14ac4566 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 29b6181e09e..744b4f07277 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index b9932e94d64..a4401f5ba7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 3dffc35428e..1d596cb91a9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index fb33b9039bf..5ebebce516a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 2ff3e176c31..673b4528ee3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index 28778ea70b1..5878e2b631b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java index faf7978f7ac..b18070d002c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index 519317adc62..c3f692b7192 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index c760f4bac74..f2ae8f5edde 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index f6629aa71f4..9cc2adb5737 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 51382ebe053..6f3049266ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 4f346038062..488372fa1c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index f5c92d0e7e9..cdc256c80d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index de6a5332b6c..9cb77c3c66c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 2d693b93fd3..89000b40c1f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 4093d7e940d..8d6845bad8f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement.java index afddeb0a274..194faa49cb7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 869563ac860..8cc5a59ce05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 217724cf323..03d80de4737 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 5edc2fb3188..9f36fefd435 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 58c0c8e871c..cc6ef374278 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index ce6afa1a242..1ac6a7e5dc7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 05db9e45db8..fcfdc52698a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index a7b53dce7e8..2c09ba9e636 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 462746fe6c5..594fb7635ee 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 6a84113ac58..647c151ec2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement.java index 123a0b89f57..b9ab3579463 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 95169bcce6f..45f3e7e210a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index a89bd4f436b..ba6dd962197 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 5e51dc260f2..02f2a0ea103 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index fe3c4cc66e9..222fea98cb6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 7f7f8d83d88..c7e4c61cdcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index d775aca0a49..492f70e34c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 637a68fd91c..964c8bcf66f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 95040d64855..d25fef3f6de 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 30c44f4a6f3..863fea68eda 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement.java index b83b4d4b08a..73cdb01e2cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 823b9ba0519..40763e1bf1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 6883b9077cb..9f6405b5e73 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 67ceec8ee7b..156235621e3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index f71eb1823f7..dc10b792114 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 0435a632b7e..3f1d4f0cda7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index ae98a2d0c45..1e7343ba8e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index a0d8a4d0ab5..cd3796684f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index d8c9c849d8d..1e058d00739 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index d3478072824..0c9b2cae289 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement.java index bbb2a117884..668574b81ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index 72847dc8cd0..8ccb6f8bd79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index b623a03974c..6590a5a4592 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 2226c537ef4..365db4e4cd8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index f6197d7203c..833741ceaad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index c6c1058c831..243e6688156 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index b8b4de9e1f2..fe594eb9280 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 8cdb8ff43ec..49cd77140e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index fcd029c99f7..d76d16e581f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation.java index e60bac0dce3..e162bb739b8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement.java index 368ba67343c..11d81b02588 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 38309862662..0675567bf01 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 17390abc4a1..e6c6d4c8c7e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index a155bf89d85..08f6b7e526b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 12c6da6d231..e4edea36266 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 1effd04a66e..6322d5ad00a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index e215ff89dcb..6166c08290d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index c8c71103eb5..5472c91dbc4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 2220da7dc29..539792e6c9d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation.java index b9f8d5e83c9..3168112cd07 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementAndSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement.java index ab87a250e0c..a74ef15f71d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementByteMa * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchS this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch.java index e3cad59648f..a187a45dc1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementByteMa * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments.java index c504b9c0afd..1e04cdc89f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody.java index 2aa6ead9ddc..d623a737d48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod.java index 3881498dc41..34fd55d44b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString.java index 3435bdfd52c..0d901c21985 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader.java index 40d5347b190..3f67fd7fdea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementByteMa * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 2a8586065cb..23c589a0f4f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementByteMa * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath.java index 1394b00e8a9..7209b311b1a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation.java index 1d8b5893f47..177f1c80246 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementByteMa * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement.java index b12705db25f..a15bdc38906 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMat * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.java index 364519a278a..85a31f08363 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMat * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement.java index a2b0a789dfa..eff12bc17da 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetR * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 5399d1ca9b4..b8c3a9a6aba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetR * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetRefer this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement.java index e427cf4e5c4..54498aecb1c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementLabelM * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement.java index 22e74a3a3f2..417ae2f266c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement(statements); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement.java index bf541ba013e..34b9056ef14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement.java index 22cf0cac794..3e1eba96980 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement(statements); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement.java index 6e09a3ca1f1..b6e75680c51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement.java index fb686c69964..8da65e85494 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index dc2ef121e55..f6b03cd61d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index af6fba72350..d3014299f90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 798b75b1b5e..e74e4a183a8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index c76d06b75cd..8d823e6b5f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index ab768e2fe0c..6bc149f4529 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index c0a77e7d153..f053e65c04b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 403c2fb832a..5f88ac0b64e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index 44733ab04af..bb7c2310fea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index 38a17fdd245..a1b30e4fccd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java index 517d0511c7d..69641b36bff 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index fdef6ba1f38..dd69459c38b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java index ae140273904..e01e08c8bad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index a78bf5f41ad..de6e74e1007 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java index fd036174560..2a902bddf4d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index ac5c7e19a34..e72f1c6089e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 8a180439999..b54876737d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 4375ef9475c..2c47d4e30a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 0251102abb4..b5403335488 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 570e67c48c4..54de239c03e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index e2246be5898..e24246ae22c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 86626670b2a..b4b87901e80 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index c7111272ad8..fab7e2746f1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index b2b891375a1..e21aceec073 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 14c165f1e8e..e0c9ecb19cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java index 53752731fa4..27fd095e4b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 0de43cf9c82..4352520a194 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 1061287c8c1..ba16bbda0e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 0e2be4ab988..b0fbc07fd99 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 96aecd5e7bc..28a11b1a50b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 7c7011fe924..4e6655d2cd1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 8dde579ae2a..a3d41b913aa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 0930912a7a6..eaf81fcbc76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index aa744509e59..b65f136a0f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index 012de406743..0649c22242a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java index 5af71043e4f..43cdd03c392 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index e85022f7852..0e09a7bc800 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 85018b51b5e..b759845d66c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index be7ea6ff616..3008cef741d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index 15aa720056f..193b2b9f5ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 718f81590fa..c05167c8d61 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index f71526fae70..61e6acc23f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 277e6ada7cc..019fc8ff339 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 5540244bb0d..1e6551d8337 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index eeebf9a927d..774f691330b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement.java index a2dc4a06bc6..06a0e3e11b7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 243edc60409..e5abffc83db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 369e9abd204..22b76e253db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 7f343db9b09..9033fd6fbe1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index 1c3bf950c2e..a2132c1c907 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 7d155269222..925faba2f0d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 95e2f495ac7..7e697a1b46a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 83c90b8cbc5..da094634579 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 06a6fbd0620..8b835bc513d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index ca167bef29c..2ca9b599bda 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement.java index 8dda5a70abb..9bf1172a350 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 8549db5d5c5..a9dcfd8d7a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 7a9d2a89c30..d0d2fd567c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 693dd72b7ad..fcfab556959 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 1f8b7d11a37..ad2623c1e55 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 86929956191..0e9576a80a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index f8728721737..bbfbc5d1c46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index c15fcc6caf3..7a577a690c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index a4c8f592196..ac15a4db51b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation.java index 50be5249b89..c398928253c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement.java index 8cb501ddb97..f1151687330 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index fdeb56fe249..50ea558bce1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement.java index d7fdb4a53cb..d6eb7594627 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 30ea19e411c..3558b26a407 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement.java index 434361e7e52..8ea133a53c3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement.java index 68d58785c8f..8dfbb8d2f24 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement(statements); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement.java index 17c60f82227..f1f519a3fed 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement.java index 5a1f046b739..949a28e9822 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index ad653d57a67..46f85f8f26c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index eca390d05b4..a01b4dad267 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 1db226f2d2e..71bec455893 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index 8a5f34d86ff..7373359987c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index b7cbea95403..47d5ec97215 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 9c505e8a5ad..e7c8e11a16b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 22400001055..9291c63b69e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 88a22d826ef..d05454768e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index 806f1a2bca9..eae321e80a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java index ce32b68a5c2..068716c1b4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index d2a83ec4d72..a065241e543 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java index 0704e7bbf0b..a8be4abd963 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 42318e24c9a..da46cc5f6f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java index 8e9e5b1672a..17fae34bb00 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 5858bd88530..55ccc62061e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 3ebf3956067..b3fa599dfb9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index c370cd8e321..6c2b5307725 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 58e8b1a717f..523e81cbca1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index a54ab4f1402..17ef713e050 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 00d51bb4634..dddcbf99276 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 9248f1dfd2e..081dd772544 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 9bbf33247f7..ae4eb74fb3a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index e1e388c2bf1..c144f19201d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index d84d79df428..fa12c6e8098 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java index a9ca8ec713f..1f69d69cddb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 89b7391b3a4..3f477f0bf1c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index c94abc66e99..3c425576a26 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index 9a57c83eec8..b826419de4f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index d8dfdb8a255..b1138afffb4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 98a327c43a9..82474187eb8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index d1c18c78000..c62e62a019b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index ec39a63963e..b60e07ad668 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 4d81923c26a..a97f20c107f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index dea14ec9652..ae557e0d88d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java index b0125b25090..8a53a4103a2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 50e7082ac37..6489dfcc0f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 18668f58594..6826ea9b72d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 02d04523833..acdd4bc16c5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 70fa1284eec..7870c095cc1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 2449d5a2c58..73bfe0695c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 87d88adbfa2..74f325fd01a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 16b91280cfb..37865144b7d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 89643c484af..5a7b7f42241 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index c35f1ada33c..06d62a6b244 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement.java index 058a5c83090..2ead9aed3f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 6b153afbb97..6f5d87981f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 103524fec52..539ac108df8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 76785a50bfb..877e912d84b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index 456112b2c07..6072f445017 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 1907a78a504..740629b153e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 6abf8e0872e..883a83d0904 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index e3ca70ab6df..7b022a106ba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index c737840bf2b..52baed77243 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index 60133489381..f503537e2d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement.java index 2169a105da6..d2f34e8e497 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement(statements); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement.java index 5ce9fa9cdb7..b32d5e2533e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement.java index 62d4d6ff1ba..abb8bea6636 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index fc70f7e82d9..b65f7935a50 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index b937a8947d5..0355702e7d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 4a12f8e2803..c06059e124a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index dc826ab734f..e2c6d071d80 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index dfc89506d54..13720876a9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index d480b49bf1d..b7f184d0877 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index eb68ca3ac81..7b74875e647 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index f91bc1e61ba..3526b47ac03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 2cc06bad26f..44b14e4ed39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java index b16fb525af1..62811c0ec3e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index bdefb863d13..9e4c6eb1cc1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java index ed2a5eaf5dd..21cb3281a80 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 4617f9ede96..b66d17f5d7a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java index cf3a1edadd0..fedb8907142 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index 09bec5c23ec..e308c4a5d0a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 2fde4b6f795..c0e85adb22a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index efbc46dcd7f..afac60b2a57 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 97d28a58766..ed9eb73c50b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 9b1459c9ac2..78a8cfa7e2d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 7775d6de9b6..dd1920050c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 31a5384823e..8ede1864576 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 9618a7dfa73..005dae03105 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 601787eec25..b50d3a58897 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 8a213cf06c7..002c368b25d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java index f18658ad929..2c545ce774c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 9f39aa62d6d..e5e8a035554 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 9a08e51f3d3..d49c53bfb29 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 52536384630..4ad252bf697 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 05f1637def8..039100e7c9e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 3c880133d1e..a7867c1a1f6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index b33900b9fee..da518544175 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 5b9449e464e..b3d002c6763 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 539e617c4da..64662ac3b44 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index d8b2d29a981..5e67899a257 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java index 51b93c0b5fd..b944a1f25b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index a54e6063271..b96ce4dfbd0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 564ddf1a6e6..76c4ba3abc6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index 11f2ec1ffdc..ba85cdc2ee4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index e7972802be7..3b39ebcc5a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 23e78416ebf..9b794013142 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index c90c783aaa7..2ead254d24e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 4de8a95cc2a..78bb76c307e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 4531cb5c703..e47b7ef85c7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 4b8558840cc..394348228c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement.java index c19818c25fe..63637fb9d3a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 21c8d954f54..db43fe01027 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index c052c3af2ed..a31f628e19b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index baa5155cde7..c5ca8ff1d0f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 42838255d72..aa1ca77cef2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index bb51c81eb3e..507ba3aed15 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 9d5f05b0d32..91c86981158 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index ce2e92575ab..e66683898b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index bbf4e644a76..be7e07f5600 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 155fec95750..afd89aed5b6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement.java index 10ff8517e9c..0f5831ca680 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 45615ed8040..d077432a370 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 107df028353..47f3f65a90f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 8f383a6ee3f..7dec464a6e7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 67d4222e4d9..9d641408d7c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 90bb7069d46..7421975b519 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 258e2b7b9ca..422037fc38c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index df43ef1a439..3e9a0c62865 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 5a547580844..6e03986f9db 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 93f1679f6aa..2d455f24764 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement.java index e04b81a2741..43e17a2fd78 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index 5d60caf5e8f..ad0310294e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 6195a62537a..937286203b3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index af272438431..ed54af8c4d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 487f65c1d84..3d2eb4d8ae6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 295867be586..d0e151c470f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index ce03329a306..aeef598aab8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 0382fb09882..fe99bd454b2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index ac9c8009b2e..fb8f07a9186 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 7d1daf8466e..594df311fc2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement.java index 702ab838060..15d7fd6b4bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 31ff72a8f5c..43e6cda68cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index ec18926c55e..77698f53f74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index 9fdf045dba7..64e537005ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index 6c8eda134d5..f6e439a90cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 48e7dfd1e39..1c3e7e89ea3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 9449d7c5989..e92580c1bc7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 6ea8a08da11..4e3923cf2d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index e761987ae4d..243196284a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation.java index 967c45ac458..559293fd5df 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement.java index 11ee71b0929..70cb904f2df 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 9271e97dfcc..f91d0ed11ae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStateme this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 0be383de91a..48401150094 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 65a3c149f8a..527e650baa4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index d01aec49cde..c80041de46e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index a0bc829495f..7207cd7c552 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 370ff839ee5..3a2775bafa6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index d5df71873fe..1e100acf3a1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 0eb2e246042..b78cd1e6171 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation.java index e653bdf7fee..5072f7c51d6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementNotSta * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement.java index 39d92eed6be..53c04142c52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement(statements); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement.java index b8f8707e571..7728f22945e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement.java @@ -25,84 +25,59 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement andStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement andStatement; /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Logical rule statement used to negate the results of another rule statement. See NOT Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement notStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement notStatement; /** * @return Logical rule statement used to combine other rule statements with OR logic. See OR Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement orStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement orStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement( - @CustomType.Parameter("andStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement andStatement, - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("notStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement notStatement, - @CustomType.Parameter("orStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement orStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.andStatement = andStatement; - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.notStatement = notStatement; - this.orStatement = orStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement() {} /** * @return Logical rule statement used to combine other rule statements with AND logic. See AND Statement below for details. * @@ -188,7 +163,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement andStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement byteMatchStatement; @@ -201,11 +176,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.andStatement = defaults.andStatement; @@ -221,51 +192,75 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder andStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement andStatement) { this.andStatement = andStatement; return this; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder notStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement notStatement) { this.notStatement = notStatement; return this; } + @CustomType.Setter public Builder orStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement orStatement) { this.orStatement = orStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement(andStatement, byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, notStatement, orStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatement(); + o.andStatement = andStatement; + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.notStatement = notStatement; + o.orStatement = orStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement.java index 8a7e6b4c873..feaccaba5c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement() {} /** * @return Statements to combine with `AND` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement(statements); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement.java index af1ce974dc5..d11d206967d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement.java index 8b5929c280e..1d1c7704f7b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java index f526f51435a..7d143bd702b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index e53c927c45b..4ee3fc2190b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java index 4e5513bcf10..d9e0f60e033 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java index b083804c836..9e3fb19701d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java index a53e8bf894a..32d6795feba 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 7d60a689f14..d32f759047d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index a0f8664c697..509cad7bd25 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java index b911fffa1af..7b8ea5b703a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java index f88083adf36..783462d4e90 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java index 25d8ae44482..08b64d631be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java index 9dc7327ad6f..1eb01f6c131 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java index 319350c8508..388ad534992 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 0fceff8518a..40189d2adc0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java index 51a14fc0efc..14a4f87851c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java index aaa49bffdc7..291270a4f93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 08ffa322d66..5d401da1c05 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index b1d7e0b77ca..8f07234d98d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index afaa7c29ad6..4ad0bb4023e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 462c5e6a2f0..dd2f125ac3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 28f144d2684..1d1ee4ec528 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 11bf2f34367..b162b1e5600 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 4cb6321e243..b3b379e8f46 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index d5b6889f3dd..3b4371afcc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 9bfb3b6d37a..35fdf62e159 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java index 25b83539058..3e1f4e42af1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java index 798a475ab5c..4b8eba68c3b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 95e5529d9dc..18c7ad81571 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java index 5d059dcb03b..6046be23108 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 93c5cf8a017..9da9916877f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 7b087c4a012..b8da08f5659 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index dd1cbe7d7d0..bac27a75f68 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index cdc9a03105a..8e35683ff76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 61cfa5b2280..a34a5a43fc9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java index c9b517446de..b5d142c1fa8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java index 6cefa331c19..7909f91051a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java index b152471d8eb..11ed5bf924f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 848b5bd0afc..b6c51ccb22a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java index 55f3f19bdd8..d079397c8bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java index d9775b59372..1006fd09db3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 1204fcd5800..cea479bbeb0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 88f39ac5566..4c2b9c7191f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 38125ad96dd..f8aee3dbff4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java index ef3c5d3fcc2..afd717f66c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java index 9114011c841..9e0e79eab97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement.java index 7b1876f30d4..f2676262d93 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java index 62c1321aca9..846ecb017f9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 203e441a92d..3cb3e98816c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java index 43770a56c38..39f9d8e2a92 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java index db1ed771110..771644e85fd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java index 3767030e718..2c4978dad39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index d24cac3e811..7dbe4b842cf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 4913dda529a..a207074d8b4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java index 08029b65331..8d1d1fb8549 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java index 8ccf75cb20a..3f170924688 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementAndStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement.java index 4e23f5c02aa..31e21662bd9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch.java index d9f5f67f618..56aeea32911 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 62555771ac5..ac99ebe5882 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 1015e492e08..6fc1eaaa66f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index b17f82aa1fd..32d5bbfbfbd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index d18840d2cae..131c69d4240 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 4abda6adb4d..4979f8bda2e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index b82de97b860..d071c231fbc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 6b48d50c96f..89daa3464d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation.java index 0d939ededb5..c1cddcf4724 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement.java index 4369c429815..ee44606a44d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 10af6d07a20..4ca89528629 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement.java index 741d004906a..3d439034482 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 72823462f66..5dbc8550889 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement.java index b90e1c3bb72..1ac17aa13f4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement.java index b7a875a3d49..285041d65cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement() {} /** * @return Statement to negate. You can use any statement that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement(statements); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement.java index b747e848244..287f3fe41d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement.java index b29d1ceeebb..21bbf4583a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java index 6907f2d1919..9e81e20dc3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 1773f1d1cab..cb4902cadb8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java index 874c63c9fde..1a9e491c946 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java index dac67646656..153e3006154 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java index 7296e0afced..5c487afab94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 0fc40ffae99..cd8db81ca42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index b762527f9df..6cc6f481cd4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java index 03a63e769d8..95ee85c5678 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java index c05dc2a638d..78d3ff2a573 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java index 5f54ab90ab2..b4a3fe2d009 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java index 9f113535d0c..c3171c938f3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java index 7e857637c0c..ecac9571c5f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 98cca4330ca..0ea16491ddb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java index a63cec53eae..066a6bf2560 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java index faf11f140c9..1c94e908230 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index fca816bab56..384be5d99f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index d73cd30947c..d599df42305 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 01556aa1203..5473dd5f495 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 5884e01ae9c..9af965ba424 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index ba54fb61c52..9061f6622c8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 93c62c2344a..f8328a2a46e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 803e7b7d5aa..404f1375f3f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 44a018d5ff9..1ff43b50974 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index d002fd0957e..6474f5bdffa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java index d0fe096ad8c..18f6b87d3e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java index f34dc8200b0..00e1e3bbd70 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 30306ce1bf1..d0c945c0f4e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java index c7a79667742..1f9ceebdfe7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 5c34e571abf..ca6c94a31ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 1a8c245f1c2..98ce7180437 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 2f7e910527f..7c89acea439 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 6d91bfb26ee..09fe70f02fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 84cd47dc97f..112ca7a8d85 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java index 8ab1f09fc73..7ee41304f22 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java index 84bfb09fc44..1a6321d018c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java index 720404dab60..a1fa77fa351 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index c3d16c90fd4..3f013572c25 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java index f6b68b0028c..f8be039cd26 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java index f5e3afe0b7f..347b3806115 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java index fee537a21d4..f8f7d31f3e2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 1cc73244620..16d69ca2b3b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 3a1d4080d0e..7fecc15cb5c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 846a0c43837..1bcd722c372 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java index 890592711d5..7d2143d4389 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement.java index a61c1d35985..d64f7dc1874 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java index 77269058908..28d470af1bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index fc30c1c8800..530be0e8880 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java index 3ce25df1820..e7f6eaf3a04 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java index cc1e32c09ec..15e73d31a74 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java index 3b6f6ebff4e..0efbb654e66 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index e088920f17c..ac851f26149 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index c8fb3644eeb..992152b5f77 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java index 1d19a24921e..6c012bd257a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java index ab7ea1d0187..7f384e16067 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementNotStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement.java index 452565cb037..9b48faf38b1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement.java @@ -14,13 +14,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * */ - private final List statements; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement(@CustomType.Parameter("statements") List statements) { - this.statements = statements; - } + private List statements; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement() {} /** * @return Statements to combine with `OR` logic. You can use any statements that can be nested. See Statement above for details. * @@ -36,27 +32,27 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List statements; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement defaults) { Objects.requireNonNull(defaults); this.statements = defaults.statements; } + @CustomType.Setter public Builder statements(List statements) { this.statements = Objects.requireNonNull(statements); return this; } public Builder statements(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement... statements) { return statements(List.of(statements)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement(statements); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatement(); + o.statements = statements; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement.java index 9eb52ef5132..25f0f9875b5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement.java @@ -22,63 +22,44 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; /** * @return Rule statement used to identify web requests based on country of origin. See GEO Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; /** * @return Rule statement used to detect web requests coming from particular IP addresses or address ranges. See IP Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement; /** * @return Rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL. See Label Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement; /** * @return Rule statement used to search web request components for matches with regular expressions. See Regex Pattern Set Reference Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement; /** * @return Rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). See Size Constraint Statement below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; /** * @return An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. See SQL Injection Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; /** * @return Rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. See XSS Match Statement below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement( - @CustomType.Parameter("byteMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement, - @CustomType.Parameter("geoMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement, - @CustomType.Parameter("ipSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement, - @CustomType.Parameter("labelMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement, - @CustomType.Parameter("regexPatternSetReferenceStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement, - @CustomType.Parameter("sizeConstraintStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement, - @CustomType.Parameter("sqliMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement, - @CustomType.Parameter("xssMatchStatement") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { - this.byteMatchStatement = byteMatchStatement; - this.geoMatchStatement = geoMatchStatement; - this.ipSetReferenceStatement = ipSetReferenceStatement; - this.labelMatchStatement = labelMatchStatement; - this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; - this.sizeConstraintStatement = sizeConstraintStatement; - this.sqliMatchStatement = sqliMatchStatement; - this.xssMatchStatement = xssMatchStatement; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement() {} /** * @return Rule statement that defines a string match search for AWS WAF to apply to web requests. See Byte Match Statement below for details. * @@ -143,7 +124,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement; @@ -153,11 +134,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement defaults) { Objects.requireNonNull(defaults); this.byteMatchStatement = defaults.byteMatchStatement; @@ -170,39 +147,57 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.xssMatchStatement = defaults.xssMatchStatement; } + @CustomType.Setter public Builder byteMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement byteMatchStatement) { this.byteMatchStatement = byteMatchStatement; return this; } + @CustomType.Setter public Builder geoMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement geoMatchStatement) { this.geoMatchStatement = geoMatchStatement; return this; } + @CustomType.Setter public Builder ipSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement ipSetReferenceStatement) { this.ipSetReferenceStatement = ipSetReferenceStatement; return this; } + @CustomType.Setter public Builder labelMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement labelMatchStatement) { this.labelMatchStatement = labelMatchStatement; return this; } + @CustomType.Setter public Builder regexPatternSetReferenceStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement regexPatternSetReferenceStatement) { this.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; return this; } + @CustomType.Setter public Builder sizeConstraintStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement sizeConstraintStatement) { this.sizeConstraintStatement = sizeConstraintStatement; return this; } + @CustomType.Setter public Builder sqliMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement sqliMatchStatement) { this.sqliMatchStatement = sqliMatchStatement; return this; } + @CustomType.Setter public Builder xssMatchStatement(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement xssMatchStatement) { this.xssMatchStatement = xssMatchStatement; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement(byteMatchStatement, geoMatchStatement, ipSetReferenceStatement, labelMatchStatement, regexPatternSetReferenceStatement, sizeConstraintStatement, sqliMatchStatement, xssMatchStatement); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatement(); + o.byteMatchStatement = byteMatchStatement; + o.geoMatchStatement = geoMatchStatement; + o.ipSetReferenceStatement = ipSetReferenceStatement; + o.labelMatchStatement = labelMatchStatement; + o.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement; + o.sizeConstraintStatement = sizeConstraintStatement; + o.sqliMatchStatement = sqliMatchStatement; + o.xssMatchStatement = xssMatchStatement; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement.java index 6a05b2e92cc..c04ff78efd2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement.java @@ -18,35 +18,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; /** * @return Area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information. * */ - private final String positionalConstraint; + private String positionalConstraint; /** * @return String value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes. * */ - private final String searchString; + private String searchString; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("positionalConstraint") String positionalConstraint, - @CustomType.Parameter("searchString") String searchString, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.positionalConstraint = positionalConstraint; - this.searchString = searchString; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -83,17 +72,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch; private String positionalConstraint; private String searchString; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; @@ -102,26 +87,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder positionalConstraint(String positionalConstraint) { this.positionalConstraint = Objects.requireNonNull(positionalConstraint); return this; } + @CustomType.Setter public Builder searchString(String searchString) { this.searchString = Objects.requireNonNull(searchString); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement(fieldToMatch, positionalConstraint, searchString, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.positionalConstraint = positionalConstraint; + o.searchString = searchString; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java index 8a05fa3dd92..a2448c93ba3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java index 75f40bba738..a038696206f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java index 50db6ab1de8..8d098622772 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java index ca78f08334f..1df8499825d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java index cbac71fc428..82b53882f4c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java index 9b860a6c567..a521362b74b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java index 452f33b8159..4bac617db4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java index 1b01c848595..0f35aa2170b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java index 576f4d8515d..818513a545f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementByteMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java index 7a65f7d14d1..b3aff45bf3e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * */ - private final List countryCodes; + private List countryCodes; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See Forwarded IP Config below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement( - @CustomType.Parameter("countryCodes") List countryCodes, - @CustomType.Parameter("forwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { - this.countryCodes = countryCodes; - this.forwardedIpConfig = forwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement() {} /** * @return Array of two-character country codes, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the `ISO 3166` international standard. See the [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_GeoMatchStatement.html) for valid values. * @@ -54,21 +47,18 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List countryCodes; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement defaults) { Objects.requireNonNull(defaults); this.countryCodes = defaults.countryCodes; this.forwardedIpConfig = defaults.forwardedIpConfig; } + @CustomType.Setter public Builder countryCodes(List countryCodes) { this.countryCodes = Objects.requireNonNull(countryCodes); return this; @@ -76,11 +66,16 @@ public Builder countryCodes(List countryCodes) { public Builder countryCodes(String... countryCodes) { return countryCodes(List.of(countryCodes)); } + @CustomType.Setter public Builder forwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig forwardedIpConfig) { this.forwardedIpConfig = forwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement(countryCodes, forwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatement(); + o.countryCodes = countryCodes; + o.forwardedIpConfig = forwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java index 391b3d7fb41..c9455e427be 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - } + private String headerName; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; this.headerName = defaults.headerName; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(fallbackBehavior, headerName); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementGeoMatchStatementForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java index e253a95e449..b87b6a107e1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. See IPSet Forwarded IP Config below for more details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("ipSetForwardedIpConfig") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { - this.arn = arn; - this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the IP Set that this statement references. * @@ -53,30 +46,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.ipSetForwardedIpConfig = defaults.ipSetForwardedIpConfig; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder ipSetForwardedIpConfig(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig ipSetForwardedIpConfig) { this.ipSetForwardedIpConfig = ipSetForwardedIpConfig; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(arn, ipSetForwardedIpConfig); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatement(); + o.arn = arn; + o.ipSetForwardedIpConfig = ipSetForwardedIpConfig; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java index 63e7b44c168..7b1cb3949a5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig.java @@ -13,28 +13,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * */ - private final String fallbackBehavior; + private String fallbackBehavior; /** * @return - Name of the HTTP header to use for the IP address. * */ - private final String headerName; + private String headerName; /** * @return - Position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10. * */ - private final String position; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig( - @CustomType.Parameter("fallbackBehavior") String fallbackBehavior, - @CustomType.Parameter("headerName") String headerName, - @CustomType.Parameter("position") String position) { - this.fallbackBehavior = fallbackBehavior; - this.headerName = headerName; - this.position = position; - } + private String position; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig() {} /** * @return - Match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`. * @@ -64,16 +55,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String fallbackBehavior; private String headerName; private String position; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig defaults) { Objects.requireNonNull(defaults); this.fallbackBehavior = defaults.fallbackBehavior; @@ -81,19 +68,27 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.position = defaults.position; } + @CustomType.Setter public Builder fallbackBehavior(String fallbackBehavior) { this.fallbackBehavior = Objects.requireNonNull(fallbackBehavior); return this; } + @CustomType.Setter public Builder headerName(String headerName) { this.headerName = Objects.requireNonNull(headerName); return this; } + @CustomType.Setter public Builder position(String position) { this.position = Objects.requireNonNull(position); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(fallbackBehavior, headerName, position); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementIpSetReferenceStatementIpSetForwardedIpConfig(); + o.fallbackBehavior = fallbackBehavior; + o.headerName = headerName; + o.position = position; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java index 5ecef9557e4..e587942563e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement.java @@ -13,21 +13,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return String to match against. * */ - private final String key; + private String key; /** * @return Specify whether you want to match using the label name or just the namespace. Valid values are `LABEL` or `NAMESPACE`. * */ - private final String scope; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement( - @CustomType.Parameter("key") String key, - @CustomType.Parameter("scope") String scope) { - this.key = key; - this.scope = scope; - } + private String scope; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement() {} /** * @return String to match against. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String key; private String scope; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement defaults) { Objects.requireNonNull(defaults); this.key = defaults.key; this.scope = defaults.scope; } + @CustomType.Setter public Builder key(String key) { this.key = Objects.requireNonNull(key); return this; } + @CustomType.Setter public Builder scope(String scope) { this.scope = Objects.requireNonNull(scope); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement(key, scope); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementLabelMatchStatement(); + o.key = key; + o.scope = scope; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java index a0ef587ba84..d3a96d209f8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index 12a1eaddd14..54f1afa4ab0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 95e6a3ef7f3..a8f33833bfa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 5dfa6064ec7..72d31c5f311 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index bf86ac7c3d3..618a3be1469 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index b6f0ad75066..7b2012cefbe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 0a766e68e14..c1bc451183a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 62f076837ce..1f7b47dc311 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 64890af6268..0d20b53534c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 4ee8e50ff7e..d469700e4b0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java index 7123f48a210..a4eb2d16c65 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index 7ee6bead4e3..81739416feb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index f7e5d5c0f74..fa3b6dde05b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index e203c4c99e1..9455112ce15 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 3f988953bbd..c3d4147c1d7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index 7346b8296fe..cf7583e3959 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 3c97a6f50b7..1a840b237fc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 23bcb0b04f8..af8420db98d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 74553cdeaba..ef2fba93828 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index f81df154693..8dfcaaa6bcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java index 7b08b14e0b5..dc8da442d20 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index 0e91da5c0d7..64f8da1ba35 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index ba466381e40..fb9ba38d563 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index a7cd08e06fe..0cd61b5a3a6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index c6fce222c42..e2b53e6f298 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 090382557bb..21dd44a84cd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index e0892feb676..1c1ab1db0d1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index 8b7260de91a..f6fc1f706ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index da12cd0e960..8b1639a9e7c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java index 4750f503d71..71586aea5fb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement.java index 54962a9cc78..365ac7ff2c0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 88141b9bbb7..3f191c7a89e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index aa42ae5a205..8cb5025ecf1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 117302f1953..449c90fcf16 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 4bfec25e920..073a4ef6ebe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 45b46be3a12..be8ae931df9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 46112650742..c49585664cc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index c2ae98eaf00..8fbb0096a52 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index 8cff1dee149..3ed4950c9ad 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java index 7361814b299..cf867990385 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement.java index f01067f4056..6cb54455cae 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java index e4fc32ea689..feac7331504 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 72ab9ef174d..d4a97e78fbe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 37c9ae41326..cd0e379f897 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 58fcf1d5f47..958e6a3c248 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index c60fa75031a..2a104352632 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 119318b9ac9..7c6e5d2ec62 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index 3f09b5f1b56..833481f67c9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 8dc1c477dc3..444f124636e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java index 9d25d60a8a4..dde96c4b8d9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement.java index ece0e148e97..20e2d485d7f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java index f27e73de805..5c2512a6a9c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index e338033d498..98e2dd0d4fe 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java index 74086a7d855..93f48d31f49 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java index 50de9c4540b..1fbfc81fa25 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java index f6f8a36c671..5b3730c51f7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 1231dbb2227..2eaa2250665 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 00da57024da..a10e015b7bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java index 9bf2a4fa9c6..0ff5aa26984 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation.java index 7935258ef4d..8d2f6eb9e84 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement.java index 3bf1d81743f..05976b00e5e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch.java index 07ad98973da..765d80a5a97 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 0ca7a2d2669..c2f87a576af 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java index c6dbc269649..bcfabbd7669 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java index 6fde91be06b..4e49e26e5d0 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java index 2b4e09a21dc..9ffe8c06e95 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java index 9efb169e7cb..21db66c9284 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index bbf9e842f76..d33e3610312 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java index 35aa85ef8e0..f0461084a4a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation.java index f3c2ed496d0..d2fc7cbb078 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement.java index 92f15366896..2df814e2afc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch.java index 9f3ad0d7c2c..7cdde8ee20d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatemen this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 2711ca1a0b0..b0747543257 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java index 99dc9280751..31d1fa5d6c1 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java index 8a378ed3254..797e35b9916 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java index 63b4a35688d..68ef760ce39 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java index 199f05489d7..015b674bb51 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 2cdd75fafae..4451d42c1e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java index ad33b7a8669..3c358c8b5e4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation.java index b3424257130..167a7c6c179 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementOrStat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatementStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement.java index db95713159c..77cf08df7cb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementRegexP * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatte this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.java index d1394f8a307..5324cbef369 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementRegexP * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatte this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 812ce4d02fd..03c8b07a3ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 1cf073678aa..296c6215742 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 5064f62f82e..3bfc6d1f746 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 5c98a9c8122..98122e5e8b9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index 3c6917b2c38..24b4677edf2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementRegexP * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index c2dcaa3a016..34cd2610ecd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementRegexP * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index 6878949e7c6..144e8fb7995 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation.java index 272f4e5f070..2e91f95456c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementRegexP * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement.java index a8bad0f4c9b..656e1830190 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSizeCo * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstr this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch.java index a1c74404503..9ba10436e1d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSizeCo * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstr this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index bbb96bc011d..37796b4f435 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.java index 8d8e92f79ab..e047a2db8e9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod.java index e513b9ef7c0..7b0528baedb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString.java index 985773b7f15..185ff7fd427 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader.java index d8430600bc2..15491e3e071 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSizeCo * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index 834bfb49cd0..c3168be2e0b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSizeCo * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath.java index a76f51b385c..ed2d584860b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation.java index ab69c28e9c0..c1fdf231a64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSizeCo * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement.java index 56ab907376e..851a4c2dd94 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMa * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch.java index ebf1c26447a..14950fc3971 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMa * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchS this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 64a9da78ae0..cbb28b16bc4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.java index b43f0e42db5..ae85ce51022 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod.java index 7293e2e3adf..124bd8f1e15 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString.java index 755f0eeb465..8e029488d1e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader.java index 21b64423437..785fffa9fd5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMa * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index a5fd44a2f28..75bec874dea 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMa * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath.java index 0f76e78339f..2a2c4ef0541 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation.java index 6e4598abd35..1495c9ee370 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMa * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement.java index 7588ecb03dc..5c55c3e2b1b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementXssMat * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch.java index b56dd75545a..05c93e928a7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementXssMat * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchSt this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 031802976a4..50ecad5ffb2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody.java index 875209cf745..db5a25fc269 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod.java index 5bcb8022f53..4d2962d3880 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString.java index f21cb210453..1a199b3134c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader.java index 367cd5cb7fa..d4379c02ff3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementXssMat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 5d88e584cf4..1013dd200d4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementXssMat * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath.java index 6cb5914bb1e..cbbffc7a794 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation.java index c6ebf3c4e90..1cb6f44ddcf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRateBasedStatementScopeDownStatementXssMat * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementRateBasedStatementScopeDownStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatement.java index 50bb45f137a..6bc6ecd5495 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatement.java @@ -18,28 +18,19 @@ public final class WebAclRuleStatementRegexPatternSetReferenceStatement { * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * */ - private final String arn; + private String arn; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementRegexPatternSetReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.arn = arn; - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementRegexPatternSetReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references. * @@ -69,16 +60,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRegexPatternSetReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRegexPatternSetReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; @@ -86,22 +73,30 @@ public Builder(WebAclRuleStatementRegexPatternSetReferenceStatement defaults) { this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementRegexPatternSetReferenceStatement build() { - return new WebAclRuleStatementRegexPatternSetReferenceStatement(arn, fieldToMatch, textTransformations); + } + public WebAclRuleStatementRegexPatternSetReferenceStatement build() { + final var o = new WebAclRuleStatementRegexPatternSetReferenceStatement(); + o.arn = arn; + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch.java index 600dc3f43e6..ab6b724bbc3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMa * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch build() { - return new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch build() { + final var o = new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java index 23ec9bb48cb..80a2c777ea9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody.java index 9b7be5c907c..aef810201e8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody() { - } - + private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody build() { - return new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java index 36ccd9f7878..5db07437d0e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod build() { - return new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java index 4a903eb874b..44f0aa17ab8 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java index d95d53d74c5..e44cee62136 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMa * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java index d31c7dc6660..0a2f6b5d5fa 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMa * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java index cb56f498fbb..81ae763375b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementRegexPatternSetReferenceStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation.java index 7dab2579854..96131260f28 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementRegexPatternSetReferenceStatementTextTrans * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation build() { - return new WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation(priority, type); + } + public WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation build() { + final var o = new WebAclRuleStatementRegexPatternSetReferenceStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRuleGroupReferenceStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRuleGroupReferenceStatement.java index 259d532a280..fcc3db2dd48 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRuleGroupReferenceStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRuleGroupReferenceStatement.java @@ -16,21 +16,14 @@ public final class WebAclRuleStatementRuleGroupReferenceStatement { * @return The Amazon Resource Name (ARN) of the `aws.wafv2.RuleGroup` resource. * */ - private final String arn; + private String arn; /** * @return The `rules` whose actions are set to `COUNT` by the web ACL, regardless of the action that is set on the rule. See Excluded Rule below for details. * */ - private final @Nullable List excludedRules; - - @CustomType.Constructor - private WebAclRuleStatementRuleGroupReferenceStatement( - @CustomType.Parameter("arn") String arn, - @CustomType.Parameter("excludedRules") @Nullable List excludedRules) { - this.arn = arn; - this.excludedRules = excludedRules; - } + private @Nullable List excludedRules; + private WebAclRuleStatementRuleGroupReferenceStatement() {} /** * @return The Amazon Resource Name (ARN) of the `aws.wafv2.RuleGroup` resource. * @@ -53,33 +46,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRuleGroupReferenceStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String arn; private @Nullable List excludedRules; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRuleGroupReferenceStatement defaults) { Objects.requireNonNull(defaults); this.arn = defaults.arn; this.excludedRules = defaults.excludedRules; } + @CustomType.Setter public Builder arn(String arn) { this.arn = Objects.requireNonNull(arn); return this; } + @CustomType.Setter public Builder excludedRules(@Nullable List excludedRules) { this.excludedRules = excludedRules; return this; } public Builder excludedRules(WebAclRuleStatementRuleGroupReferenceStatementExcludedRule... excludedRules) { return excludedRules(List.of(excludedRules)); - } public WebAclRuleStatementRuleGroupReferenceStatement build() { - return new WebAclRuleStatementRuleGroupReferenceStatement(arn, excludedRules); + } + public WebAclRuleStatementRuleGroupReferenceStatement build() { + final var o = new WebAclRuleStatementRuleGroupReferenceStatement(); + o.arn = arn; + o.excludedRules = excludedRules; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRuleGroupReferenceStatementExcludedRule.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRuleGroupReferenceStatementExcludedRule.java index 62d2b937d4a..56011f65ca7 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRuleGroupReferenceStatementExcludedRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementRuleGroupReferenceStatementExcludedRule.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementRuleGroupReferenceStatementExcludedRule { * @return Name of the rule to exclude. If the rule group is managed by AWS, see the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementRuleGroupReferenceStatementExcludedRule(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementRuleGroupReferenceStatementExcludedRule() {} /** * @return Name of the rule to exclude. If the rule group is managed by AWS, see the [documentation](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html) for a list of names in the appropriate rule group in use. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementRuleGroupReferenceStatementExcludedRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementRuleGroupReferenceStatementExcludedRule defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementRuleGroupReferenceStatementExcludedRule build() { - return new WebAclRuleStatementRuleGroupReferenceStatementExcludedRule(name); + } + public WebAclRuleStatementRuleGroupReferenceStatementExcludedRule build() { + final var o = new WebAclRuleStatementRuleGroupReferenceStatementExcludedRule(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatement.java index f122a2f9e53..e59b9af39c4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatement.java @@ -19,35 +19,24 @@ public final class WebAclRuleStatementSizeConstraintStatement { * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * */ - private final String comparisonOperator; + private String comparisonOperator; /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatch fieldToMatch; /** * @return Size, in bytes, to compare to the request part, after any transformations. Valid values are integers between 0 and 21474836480, inclusive. * */ - private final Integer size; + private Integer size; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementSizeConstraintStatement( - @CustomType.Parameter("comparisonOperator") String comparisonOperator, - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("size") Integer size, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.comparisonOperator = comparisonOperator; - this.fieldToMatch = fieldToMatch; - this.size = size; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementSizeConstraintStatement() {} /** * @return Operator to use to compare the request part to the size setting. Valid values include: `EQ`, `NE`, `LE`, `LT`, `GE`, or `GT`. * @@ -84,17 +73,13 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSizeConstraintStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String comparisonOperator; private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatch fieldToMatch; private Integer size; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSizeConstraintStatement defaults) { Objects.requireNonNull(defaults); this.comparisonOperator = defaults.comparisonOperator; @@ -103,26 +88,36 @@ public Builder(WebAclRuleStatementSizeConstraintStatement defaults) { this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder comparisonOperator(String comparisonOperator) { this.comparisonOperator = Objects.requireNonNull(comparisonOperator); return this; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder size(Integer size) { this.size = Objects.requireNonNull(size); return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementSizeConstraintStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementSizeConstraintStatement build() { - return new WebAclRuleStatementSizeConstraintStatement(comparisonOperator, fieldToMatch, size, textTransformations); + } + public WebAclRuleStatementSizeConstraintStatement build() { + final var o = new WebAclRuleStatementSizeConstraintStatement(); + o.comparisonOperator = comparisonOperator; + o.fieldToMatch = fieldToMatch; + o.size = size; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatch.java index 0701e41946c..98a54c3eba6 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementSizeConstraintStatementFieldToMatch { * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementSizeConstraintStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementSizeConstraintStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSizeConstraintStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSizeConstraintStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementSizeConstraintStatementFieldToMatch defaults) this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementSizeConstraintStatementFieldToMatch build() { - return new WebAclRuleStatementSizeConstraintStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementSizeConstraintStatementFieldToMatch build() { + final var o = new WebAclRuleStatementSizeConstraintStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java index 3449b89d247..076e21d023e 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementSizeConstraintStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchBody.java index 053caeb2af1..b89d9baa715 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementSizeConstraintStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementSizeConstraintStatementFieldToMatchBody() { - } - + private WebAclRuleStatementSizeConstraintStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementSizeConstraintStatementFieldToMatchBody build() { - return new WebAclRuleStatementSizeConstraintStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementSizeConstraintStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod.java index 3023a15a123..b03f10ad3a3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod build() { - return new WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementSizeConstraintStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString.java index d43ed564148..cf5c6d9e810 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementSizeConstraintStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader.java index 719d0236ddb..1a3c53f9e14 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleH * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java index d9343cede26..dec2d6ef66d 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQ * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementSizeConstraintStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath.java index 038bf9bdef3..e4ceb1c23a4 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementSizeConstraintStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementTextTransformation.java index 152b534295a..38cab65ef42 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSizeConstraintStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementSizeConstraintStatementTextTransformation * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementSizeConstraintStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementSizeConstraintStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSizeConstraintStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSizeConstraintStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementSizeConstraintStatementTextTransformation build() { - return new WebAclRuleStatementSizeConstraintStatementTextTransformation(priority, type); + } + public WebAclRuleStatementSizeConstraintStatementTextTransformation build() { + final var o = new WebAclRuleStatementSizeConstraintStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatement.java index 51346df17f5..821fb9de363 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementSqliMatchStatement { * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementSqliMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementSqliMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSqliMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSqliMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementSqliMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementSqliMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementSqliMatchStatement build() { - return new WebAclRuleStatementSqliMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementSqliMatchStatement build() { + final var o = new WebAclRuleStatementSqliMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatch.java index b0aeba0185c..e36ff48733b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementSqliMatchStatementFieldToMatch { * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementSqliMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementSqliMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSqliMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSqliMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementSqliMatchStatementFieldToMatch defaults) { this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementSqliMatchStatementFieldToMatch build() { - return new WebAclRuleStatementSqliMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementSqliMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementSqliMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments.java index 87aecebcd7b..363c6207875 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementSqliMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchBody.java index 6063bc30183..3aa4729ad64 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementSqliMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementSqliMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementSqliMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSqliMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSqliMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementSqliMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementSqliMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementSqliMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchMethod.java index 6fcf3030ca6..19efdda8537 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementSqliMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementSqliMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementSqliMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSqliMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSqliMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementSqliMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementSqliMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementSqliMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString.java index 6ec04664f5f..4db8cdd6aec 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementSqliMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader.java index 1262f1ecd8a..cb47b4419ca 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementSqliMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java index ebdbc3f118b..a973073c2bd 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryA * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementSqliMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath.java index d39e72718f5..cc3c61dba03 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementSqliMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementTextTransformation.java index d4f605c32ca..8b38e64baf3 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementSqliMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementSqliMatchStatementTextTransformation { * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementSqliMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementSqliMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementSqliMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementSqliMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementSqliMatchStatementTextTransformation build() { - return new WebAclRuleStatementSqliMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementSqliMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementSqliMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatement.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatement.java index 74a56648cf7..55428ac9ebf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatement.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatement.java @@ -17,21 +17,14 @@ public final class WebAclRuleStatementXssMatchStatement { * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * */ - private final @Nullable WebAclRuleStatementXssMatchStatementFieldToMatch fieldToMatch; + private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatch fieldToMatch; /** * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. See Text Transformation below for details. * */ - private final List textTransformations; - - @CustomType.Constructor - private WebAclRuleStatementXssMatchStatement( - @CustomType.Parameter("fieldToMatch") @Nullable WebAclRuleStatementXssMatchStatementFieldToMatch fieldToMatch, - @CustomType.Parameter("textTransformations") List textTransformations) { - this.fieldToMatch = fieldToMatch; - this.textTransformations = textTransformations; - } + private List textTransformations; + private WebAclRuleStatementXssMatchStatement() {} /** * @return Part of a web request that you want AWS WAF to inspect. See Field to Match below for details. * @@ -54,33 +47,35 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementXssMatchStatement defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatch fieldToMatch; private List textTransformations; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementXssMatchStatement defaults) { Objects.requireNonNull(defaults); this.fieldToMatch = defaults.fieldToMatch; this.textTransformations = defaults.textTransformations; } + @CustomType.Setter public Builder fieldToMatch(@Nullable WebAclRuleStatementXssMatchStatementFieldToMatch fieldToMatch) { this.fieldToMatch = fieldToMatch; return this; } + @CustomType.Setter public Builder textTransformations(List textTransformations) { this.textTransformations = Objects.requireNonNull(textTransformations); return this; } public Builder textTransformations(WebAclRuleStatementXssMatchStatementTextTransformation... textTransformations) { return textTransformations(List.of(textTransformations)); - } public WebAclRuleStatementXssMatchStatement build() { - return new WebAclRuleStatementXssMatchStatement(fieldToMatch, textTransformations); + } + public WebAclRuleStatementXssMatchStatement build() { + final var o = new WebAclRuleStatementXssMatchStatement(); + o.fieldToMatch = fieldToMatch; + o.textTransformations = textTransformations; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatch.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatch.java index a5ca9902887..43e64b9d54f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatch.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatch.java @@ -21,56 +21,39 @@ public final class WebAclRuleStatementXssMatchStatementFieldToMatch { * @return Inspect all query arguments. * */ - private final @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; + private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; /** * @return Inspect the request body, which immediately follows the request headers. * */ - private final @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchBody body; + private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchBody body; /** * @return Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. * */ - private final @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchMethod method; + private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchMethod method; /** * @return Inspect the query string. This is the part of a URL that appears after a `?` character, if any. * */ - private final @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchQueryString queryString; + private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchQueryString queryString; /** * @return Inspect a single header. See Single Header below for details. * */ - private final @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; + private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; /** * @return Inspect a single query argument. See Single Query Argument below for details. * */ - private final @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; + private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; /** * @return Inspect the request URI path. This is the part of a web request that identifies a resource, for example, `/images/daily-ad.jpg`. * */ - private final @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchUriPath uriPath; - - @CustomType.Constructor - private WebAclRuleStatementXssMatchStatementFieldToMatch( - @CustomType.Parameter("allQueryArguments") @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments, - @CustomType.Parameter("body") @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchBody body, - @CustomType.Parameter("method") @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchMethod method, - @CustomType.Parameter("queryString") @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchQueryString queryString, - @CustomType.Parameter("singleHeader") @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader singleHeader, - @CustomType.Parameter("singleQueryArgument") @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument, - @CustomType.Parameter("uriPath") @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchUriPath uriPath) { - this.allQueryArguments = allQueryArguments; - this.body = body; - this.method = method; - this.queryString = queryString; - this.singleHeader = singleHeader; - this.singleQueryArgument = singleQueryArgument; - this.uriPath = uriPath; - } + private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchUriPath uriPath; + private WebAclRuleStatementXssMatchStatementFieldToMatch() {} /** * @return Inspect all query arguments. * @@ -128,7 +111,7 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementXssMatchStatementFieldToMatch defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments; private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchBody body; @@ -137,11 +120,7 @@ public static final class Builder { private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader singleHeader; private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument; private @Nullable WebAclRuleStatementXssMatchStatementFieldToMatchUriPath uriPath; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementXssMatchStatementFieldToMatch defaults) { Objects.requireNonNull(defaults); this.allQueryArguments = defaults.allQueryArguments; @@ -153,35 +132,51 @@ public Builder(WebAclRuleStatementXssMatchStatementFieldToMatch defaults) { this.uriPath = defaults.uriPath; } + @CustomType.Setter public Builder allQueryArguments(@Nullable WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments allQueryArguments) { this.allQueryArguments = allQueryArguments; return this; } + @CustomType.Setter public Builder body(@Nullable WebAclRuleStatementXssMatchStatementFieldToMatchBody body) { this.body = body; return this; } + @CustomType.Setter public Builder method(@Nullable WebAclRuleStatementXssMatchStatementFieldToMatchMethod method) { this.method = method; return this; } + @CustomType.Setter public Builder queryString(@Nullable WebAclRuleStatementXssMatchStatementFieldToMatchQueryString queryString) { this.queryString = queryString; return this; } + @CustomType.Setter public Builder singleHeader(@Nullable WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader singleHeader) { this.singleHeader = singleHeader; return this; } + @CustomType.Setter public Builder singleQueryArgument(@Nullable WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument singleQueryArgument) { this.singleQueryArgument = singleQueryArgument; return this; } + @CustomType.Setter public Builder uriPath(@Nullable WebAclRuleStatementXssMatchStatementFieldToMatchUriPath uriPath) { this.uriPath = uriPath; return this; - } public WebAclRuleStatementXssMatchStatementFieldToMatch build() { - return new WebAclRuleStatementXssMatchStatementFieldToMatch(allQueryArguments, body, method, queryString, singleHeader, singleQueryArgument, uriPath); + } + public WebAclRuleStatementXssMatchStatementFieldToMatch build() { + final var o = new WebAclRuleStatementXssMatchStatementFieldToMatch(); + o.allQueryArguments = allQueryArguments; + o.body = body; + o.method = method; + o.queryString = queryString; + o.singleHeader = singleHeader; + o.singleQueryArgument = singleQueryArgument; + o.uriPath = uriPath; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments.java index 43271fed243..208771a4427 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments { - @CustomType.Constructor - private WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments() { - } - + private WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments build() { - return new WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments(); + final var o = new WebAclRuleStatementXssMatchStatementFieldToMatchAllQueryArguments(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchBody.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchBody.java index 5c493aaed5d..d0a638b70bb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchBody.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchBody.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementXssMatchStatementFieldToMatchBody { - @CustomType.Constructor - private WebAclRuleStatementXssMatchStatementFieldToMatchBody() { - } - + private WebAclRuleStatementXssMatchStatementFieldToMatchBody() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementXssMatchStatementFieldToMatchBody defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementXssMatchStatementFieldToMatchBody defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementXssMatchStatementFieldToMatchBody build() { - return new WebAclRuleStatementXssMatchStatementFieldToMatchBody(); + final var o = new WebAclRuleStatementXssMatchStatementFieldToMatchBody(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchMethod.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchMethod.java index 6f147774e93..2a6551a042a 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchMethod.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchMethod.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementXssMatchStatementFieldToMatchMethod { - @CustomType.Constructor - private WebAclRuleStatementXssMatchStatementFieldToMatchMethod() { - } - + private WebAclRuleStatementXssMatchStatementFieldToMatchMethod() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementXssMatchStatementFieldToMatchMethod defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementXssMatchStatementFieldToMatchMethod defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementXssMatchStatementFieldToMatchMethod build() { - return new WebAclRuleStatementXssMatchStatementFieldToMatchMethod(); + final var o = new WebAclRuleStatementXssMatchStatementFieldToMatchMethod(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchQueryString.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchQueryString.java index 05cf3f51649..f66336ac4bf 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchQueryString.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchQueryString.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementXssMatchStatementFieldToMatchQueryString { - @CustomType.Constructor - private WebAclRuleStatementXssMatchStatementFieldToMatchQueryString() { - } - + private WebAclRuleStatementXssMatchStatementFieldToMatchQueryString() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementXssMatchStatementFieldToMatchQueryString defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementXssMatchStatementFieldToMatchQueryString defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementXssMatchStatementFieldToMatchQueryString build() { - return new WebAclRuleStatementXssMatchStatementFieldToMatchQueryString(); + final var o = new WebAclRuleStatementXssMatchStatementFieldToMatchQueryString(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader.java index 0c28274c9fb..7d478c43ead 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader build() { - return new WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader(name); + } + public WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader build() { + final var o = new WebAclRuleStatementXssMatchStatementFieldToMatchSingleHeader(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument.java index 3dc01685cc0..0ac42ebd5f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument.java @@ -13,13 +13,9 @@ public final class WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryAr * @return Name of the query header to inspect. This setting must be provided as lower case characters. * */ - private final String name; - - @CustomType.Constructor - private WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument() {} /** * @return Name of the query header to inspect. This setting must be provided as lower case characters. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { - return new WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument(name); + } + public WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument build() { + final var o = new WebAclRuleStatementXssMatchStatementFieldToMatchSingleQueryArgument(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchUriPath.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchUriPath.java index 8e92f9d70c7..08f5bb67865 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchUriPath.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementFieldToMatchUriPath.java @@ -8,10 +8,7 @@ @CustomType public final class WebAclRuleStatementXssMatchStatementFieldToMatchUriPath { - @CustomType.Constructor - private WebAclRuleStatementXssMatchStatementFieldToMatchUriPath() { - } - + private WebAclRuleStatementXssMatchStatementFieldToMatchUriPath() {} public static Builder builder() { return new Builder(); @@ -20,18 +17,16 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementXssMatchStatementFieldToMatchUriPath defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementXssMatchStatementFieldToMatchUriPath defaults) { Objects.requireNonNull(defaults); } + public WebAclRuleStatementXssMatchStatementFieldToMatchUriPath build() { - return new WebAclRuleStatementXssMatchStatementFieldToMatchUriPath(); + final var o = new WebAclRuleStatementXssMatchStatementFieldToMatchUriPath(); + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementTextTransformation.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementTextTransformation.java index d5f2f577dc7..33642f15d76 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementTextTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleStatementXssMatchStatementTextTransformation.java @@ -14,21 +14,14 @@ public final class WebAclRuleStatementXssMatchStatementTextTransformation { * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * */ - private final Integer priority; + private Integer priority; /** * @return Transformation to apply, please refer to the Text Transformation [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_TextTransformation.html) for more details. * */ - private final String type; - - @CustomType.Constructor - private WebAclRuleStatementXssMatchStatementTextTransformation( - @CustomType.Parameter("priority") Integer priority, - @CustomType.Parameter("type") String type) { - this.priority = priority; - this.type = type; - } + private String type; + private WebAclRuleStatementXssMatchStatementTextTransformation() {} /** * @return Relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. * @@ -51,30 +44,32 @@ public static Builder builder() { public static Builder builder(WebAclRuleStatementXssMatchStatementTextTransformation defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Integer priority; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleStatementXssMatchStatementTextTransformation defaults) { Objects.requireNonNull(defaults); this.priority = defaults.priority; this.type = defaults.type; } + @CustomType.Setter public Builder priority(Integer priority) { this.priority = Objects.requireNonNull(priority); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public WebAclRuleStatementXssMatchStatementTextTransformation build() { - return new WebAclRuleStatementXssMatchStatementTextTransformation(priority, type); + } + public WebAclRuleStatementXssMatchStatementTextTransformation build() { + final var o = new WebAclRuleStatementXssMatchStatementTextTransformation(); + o.priority = priority; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleVisibilityConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleVisibilityConfig.java index de37c599a27..0a75a5bd0d2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleVisibilityConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclRuleVisibilityConfig.java @@ -14,28 +14,19 @@ public final class WebAclRuleVisibilityConfig { * @return Whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). * */ - private final Boolean cloudwatchMetricsEnabled; + private Boolean cloudwatchMetricsEnabled; /** * @return A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (\_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. * */ - private final String metricName; + private String metricName; /** * @return Whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. * */ - private final Boolean sampledRequestsEnabled; - - @CustomType.Constructor - private WebAclRuleVisibilityConfig( - @CustomType.Parameter("cloudwatchMetricsEnabled") Boolean cloudwatchMetricsEnabled, - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("sampledRequestsEnabled") Boolean sampledRequestsEnabled) { - this.cloudwatchMetricsEnabled = cloudwatchMetricsEnabled; - this.metricName = metricName; - this.sampledRequestsEnabled = sampledRequestsEnabled; - } + private Boolean sampledRequestsEnabled; + private WebAclRuleVisibilityConfig() {} /** * @return Whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(WebAclRuleVisibilityConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean cloudwatchMetricsEnabled; private String metricName; private Boolean sampledRequestsEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclRuleVisibilityConfig defaults) { Objects.requireNonNull(defaults); this.cloudwatchMetricsEnabled = defaults.cloudwatchMetricsEnabled; @@ -82,19 +69,27 @@ public Builder(WebAclRuleVisibilityConfig defaults) { this.sampledRequestsEnabled = defaults.sampledRequestsEnabled; } + @CustomType.Setter public Builder cloudwatchMetricsEnabled(Boolean cloudwatchMetricsEnabled) { this.cloudwatchMetricsEnabled = Objects.requireNonNull(cloudwatchMetricsEnabled); return this; } + @CustomType.Setter public Builder metricName(String metricName) { this.metricName = Objects.requireNonNull(metricName); return this; } + @CustomType.Setter public Builder sampledRequestsEnabled(Boolean sampledRequestsEnabled) { this.sampledRequestsEnabled = Objects.requireNonNull(sampledRequestsEnabled); return this; - } public WebAclRuleVisibilityConfig build() { - return new WebAclRuleVisibilityConfig(cloudwatchMetricsEnabled, metricName, sampledRequestsEnabled); + } + public WebAclRuleVisibilityConfig build() { + final var o = new WebAclRuleVisibilityConfig(); + o.cloudwatchMetricsEnabled = cloudwatchMetricsEnabled; + o.metricName = metricName; + o.sampledRequestsEnabled = sampledRequestsEnabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclVisibilityConfig.java b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclVisibilityConfig.java index 429a14916fb..134e65c20bc 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclVisibilityConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/wafv2/outputs/WebAclVisibilityConfig.java @@ -14,28 +14,19 @@ public final class WebAclVisibilityConfig { * @return Whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). * */ - private final Boolean cloudwatchMetricsEnabled; + private Boolean cloudwatchMetricsEnabled; /** * @return A friendly name of the CloudWatch metric. The name can contain only alphanumeric characters (A-Z, a-z, 0-9) hyphen(-) and underscore (\_), with length from one to 128 characters. It can't contain whitespace or metric names reserved for AWS WAF, for example `All` and `Default_Action`. * */ - private final String metricName; + private String metricName; /** * @return Whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. * */ - private final Boolean sampledRequestsEnabled; - - @CustomType.Constructor - private WebAclVisibilityConfig( - @CustomType.Parameter("cloudwatchMetricsEnabled") Boolean cloudwatchMetricsEnabled, - @CustomType.Parameter("metricName") String metricName, - @CustomType.Parameter("sampledRequestsEnabled") Boolean sampledRequestsEnabled) { - this.cloudwatchMetricsEnabled = cloudwatchMetricsEnabled; - this.metricName = metricName; - this.sampledRequestsEnabled = sampledRequestsEnabled; - } + private Boolean sampledRequestsEnabled; + private WebAclVisibilityConfig() {} /** * @return Whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics). * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(WebAclVisibilityConfig defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean cloudwatchMetricsEnabled; private String metricName; private Boolean sampledRequestsEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WebAclVisibilityConfig defaults) { Objects.requireNonNull(defaults); this.cloudwatchMetricsEnabled = defaults.cloudwatchMetricsEnabled; @@ -82,19 +69,27 @@ public Builder(WebAclVisibilityConfig defaults) { this.sampledRequestsEnabled = defaults.sampledRequestsEnabled; } + @CustomType.Setter public Builder cloudwatchMetricsEnabled(Boolean cloudwatchMetricsEnabled) { this.cloudwatchMetricsEnabled = Objects.requireNonNull(cloudwatchMetricsEnabled); return this; } + @CustomType.Setter public Builder metricName(String metricName) { this.metricName = Objects.requireNonNull(metricName); return this; } + @CustomType.Setter public Builder sampledRequestsEnabled(Boolean sampledRequestsEnabled) { this.sampledRequestsEnabled = Objects.requireNonNull(sampledRequestsEnabled); return this; - } public WebAclVisibilityConfig build() { - return new WebAclVisibilityConfig(cloudwatchMetricsEnabled, metricName, sampledRequestsEnabled); + } + public WebAclVisibilityConfig build() { + final var o = new WebAclVisibilityConfig(); + o.cloudwatchMetricsEnabled = cloudwatchMetricsEnabled; + o.metricName = metricName; + o.sampledRequestsEnabled = sampledRequestsEnabled; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/worklink/outputs/FleetIdentityProvider.java b/sdk/java/src/main/java/com/pulumi/aws/worklink/outputs/FleetIdentityProvider.java index df0f86d1278..c8d164cab79 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/worklink/outputs/FleetIdentityProvider.java +++ b/sdk/java/src/main/java/com/pulumi/aws/worklink/outputs/FleetIdentityProvider.java @@ -13,21 +13,14 @@ public final class FleetIdentityProvider { * @return The SAML metadata document provided by the customer’s identity provider. * */ - private final String samlMetadata; + private String samlMetadata; /** * @return The type of identity provider. * */ - private final String type; - - @CustomType.Constructor - private FleetIdentityProvider( - @CustomType.Parameter("samlMetadata") String samlMetadata, - @CustomType.Parameter("type") String type) { - this.samlMetadata = samlMetadata; - this.type = type; - } + private String type; + private FleetIdentityProvider() {} /** * @return The SAML metadata document provided by the customer’s identity provider. * @@ -50,30 +43,32 @@ public static Builder builder() { public static Builder builder(FleetIdentityProvider defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String samlMetadata; private String type; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetIdentityProvider defaults) { Objects.requireNonNull(defaults); this.samlMetadata = defaults.samlMetadata; this.type = defaults.type; } + @CustomType.Setter public Builder samlMetadata(String samlMetadata) { this.samlMetadata = Objects.requireNonNull(samlMetadata); return this; } + @CustomType.Setter public Builder type(String type) { this.type = Objects.requireNonNull(type); return this; - } public FleetIdentityProvider build() { - return new FleetIdentityProvider(samlMetadata, type); + } + public FleetIdentityProvider build() { + final var o = new FleetIdentityProvider(); + o.samlMetadata = samlMetadata; + o.type = type; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/worklink/outputs/FleetNetwork.java b/sdk/java/src/main/java/com/pulumi/aws/worklink/outputs/FleetNetwork.java index 5a8c710a1b3..1352f977bb9 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/worklink/outputs/FleetNetwork.java +++ b/sdk/java/src/main/java/com/pulumi/aws/worklink/outputs/FleetNetwork.java @@ -14,28 +14,19 @@ public final class FleetNetwork { * @return A list of security group IDs associated with access to the provided subnets. * */ - private final List securityGroupIds; + private List securityGroupIds; /** * @return A list of subnet IDs used for X-ENI connections from Amazon WorkLink rendering containers. * */ - private final List subnetIds; + private List subnetIds; /** * @return The VPC ID with connectivity to associated websites. * */ - private final String vpcId; - - @CustomType.Constructor - private FleetNetwork( - @CustomType.Parameter("securityGroupIds") List securityGroupIds, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("vpcId") String vpcId) { - this.securityGroupIds = securityGroupIds; - this.subnetIds = subnetIds; - this.vpcId = vpcId; - } + private String vpcId; + private FleetNetwork() {} /** * @return A list of security group IDs associated with access to the provided subnets. * @@ -65,16 +56,12 @@ public static Builder builder() { public static Builder builder(FleetNetwork defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private List securityGroupIds; private List subnetIds; private String vpcId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(FleetNetwork defaults) { Objects.requireNonNull(defaults); this.securityGroupIds = defaults.securityGroupIds; @@ -82,6 +69,7 @@ public Builder(FleetNetwork defaults) { this.vpcId = defaults.vpcId; } + @CustomType.Setter public Builder securityGroupIds(List securityGroupIds) { this.securityGroupIds = Objects.requireNonNull(securityGroupIds); return this; @@ -89,6 +77,7 @@ public Builder securityGroupIds(List securityGroupIds) { public Builder securityGroupIds(String... securityGroupIds) { return securityGroupIds(List.of(securityGroupIds)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -96,11 +85,17 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder vpcId(String vpcId) { this.vpcId = Objects.requireNonNull(vpcId); return this; - } public FleetNetwork build() { - return new FleetNetwork(securityGroupIds, subnetIds, vpcId); + } + public FleetNetwork build() { + final var o = new FleetNetwork(); + o.securityGroupIds = securityGroupIds; + o.subnetIds = subnetIds; + o.vpcId = vpcId; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/DirectorySelfServicePermissions.java b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/DirectorySelfServicePermissions.java index e4ccba29859..a3666587bdb 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/DirectorySelfServicePermissions.java +++ b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/DirectorySelfServicePermissions.java @@ -15,42 +15,29 @@ public final class DirectorySelfServicePermissions { * @return Whether WorkSpaces directory users can change the compute type (bundle) for their workspace. Default `false`. * */ - private final @Nullable Boolean changeComputeType; + private @Nullable Boolean changeComputeType; /** * @return Whether WorkSpaces directory users can increase the volume size of the drives on their workspace. Default `false`. * */ - private final @Nullable Boolean increaseVolumeSize; + private @Nullable Boolean increaseVolumeSize; /** * @return Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state. Default `false`. * */ - private final @Nullable Boolean rebuildWorkspace; + private @Nullable Boolean rebuildWorkspace; /** * @return Whether WorkSpaces directory users can restart their workspace. Default `true`. * */ - private final @Nullable Boolean restartWorkspace; + private @Nullable Boolean restartWorkspace; /** * @return Whether WorkSpaces directory users can switch the running mode of their workspace. Default `false`. * */ - private final @Nullable Boolean switchRunningMode; - - @CustomType.Constructor - private DirectorySelfServicePermissions( - @CustomType.Parameter("changeComputeType") @Nullable Boolean changeComputeType, - @CustomType.Parameter("increaseVolumeSize") @Nullable Boolean increaseVolumeSize, - @CustomType.Parameter("rebuildWorkspace") @Nullable Boolean rebuildWorkspace, - @CustomType.Parameter("restartWorkspace") @Nullable Boolean restartWorkspace, - @CustomType.Parameter("switchRunningMode") @Nullable Boolean switchRunningMode) { - this.changeComputeType = changeComputeType; - this.increaseVolumeSize = increaseVolumeSize; - this.rebuildWorkspace = rebuildWorkspace; - this.restartWorkspace = restartWorkspace; - this.switchRunningMode = switchRunningMode; - } + private @Nullable Boolean switchRunningMode; + private DirectorySelfServicePermissions() {} /** * @return Whether WorkSpaces directory users can change the compute type (bundle) for their workspace. Default `false`. * @@ -94,18 +81,14 @@ public static Builder builder() { public static Builder builder(DirectorySelfServicePermissions defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable Boolean changeComputeType; private @Nullable Boolean increaseVolumeSize; private @Nullable Boolean rebuildWorkspace; private @Nullable Boolean restartWorkspace; private @Nullable Boolean switchRunningMode; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DirectorySelfServicePermissions defaults) { Objects.requireNonNull(defaults); this.changeComputeType = defaults.changeComputeType; @@ -115,27 +98,39 @@ public Builder(DirectorySelfServicePermissions defaults) { this.switchRunningMode = defaults.switchRunningMode; } + @CustomType.Setter public Builder changeComputeType(@Nullable Boolean changeComputeType) { this.changeComputeType = changeComputeType; return this; } + @CustomType.Setter public Builder increaseVolumeSize(@Nullable Boolean increaseVolumeSize) { this.increaseVolumeSize = increaseVolumeSize; return this; } + @CustomType.Setter public Builder rebuildWorkspace(@Nullable Boolean rebuildWorkspace) { this.rebuildWorkspace = rebuildWorkspace; return this; } + @CustomType.Setter public Builder restartWorkspace(@Nullable Boolean restartWorkspace) { this.restartWorkspace = restartWorkspace; return this; } + @CustomType.Setter public Builder switchRunningMode(@Nullable Boolean switchRunningMode) { this.switchRunningMode = switchRunningMode; return this; - } public DirectorySelfServicePermissions build() { - return new DirectorySelfServicePermissions(changeComputeType, increaseVolumeSize, rebuildWorkspace, restartWorkspace, switchRunningMode); + } + public DirectorySelfServicePermissions build() { + final var o = new DirectorySelfServicePermissions(); + o.changeComputeType = changeComputeType; + o.increaseVolumeSize = increaseVolumeSize; + o.rebuildWorkspace = rebuildWorkspace; + o.restartWorkspace = restartWorkspace; + o.switchRunningMode = switchRunningMode; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/DirectoryWorkspaceAccessProperties.java b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/DirectoryWorkspaceAccessProperties.java index 3fa7614c6c8..b4b4d945381 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/DirectoryWorkspaceAccessProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/DirectoryWorkspaceAccessProperties.java @@ -15,63 +15,44 @@ public final class DirectoryWorkspaceAccessProperties { * @return Indicates whether users can use Android devices to access their WorkSpaces. * */ - private final @Nullable String deviceTypeAndroid; + private @Nullable String deviceTypeAndroid; /** * @return Indicates whether users can use Chromebooks to access their WorkSpaces. * */ - private final @Nullable String deviceTypeChromeos; + private @Nullable String deviceTypeChromeos; /** * @return Indicates whether users can use iOS devices to access their WorkSpaces. * */ - private final @Nullable String deviceTypeIos; + private @Nullable String deviceTypeIos; /** * @return Indicates whether users can use Linux clients to access their WorkSpaces. * */ - private final @Nullable String deviceTypeLinux; + private @Nullable String deviceTypeLinux; /** * @return Indicates whether users can use macOS clients to access their WorkSpaces. * */ - private final @Nullable String deviceTypeOsx; + private @Nullable String deviceTypeOsx; /** * @return Indicates whether users can access their WorkSpaces through a web browser. * */ - private final @Nullable String deviceTypeWeb; + private @Nullable String deviceTypeWeb; /** * @return Indicates whether users can use Windows clients to access their WorkSpaces. * */ - private final @Nullable String deviceTypeWindows; + private @Nullable String deviceTypeWindows; /** * @return Indicates whether users can use zero client devices to access their WorkSpaces. * */ - private final @Nullable String deviceTypeZeroclient; - - @CustomType.Constructor - private DirectoryWorkspaceAccessProperties( - @CustomType.Parameter("deviceTypeAndroid") @Nullable String deviceTypeAndroid, - @CustomType.Parameter("deviceTypeChromeos") @Nullable String deviceTypeChromeos, - @CustomType.Parameter("deviceTypeIos") @Nullable String deviceTypeIos, - @CustomType.Parameter("deviceTypeLinux") @Nullable String deviceTypeLinux, - @CustomType.Parameter("deviceTypeOsx") @Nullable String deviceTypeOsx, - @CustomType.Parameter("deviceTypeWeb") @Nullable String deviceTypeWeb, - @CustomType.Parameter("deviceTypeWindows") @Nullable String deviceTypeWindows, - @CustomType.Parameter("deviceTypeZeroclient") @Nullable String deviceTypeZeroclient) { - this.deviceTypeAndroid = deviceTypeAndroid; - this.deviceTypeChromeos = deviceTypeChromeos; - this.deviceTypeIos = deviceTypeIos; - this.deviceTypeLinux = deviceTypeLinux; - this.deviceTypeOsx = deviceTypeOsx; - this.deviceTypeWeb = deviceTypeWeb; - this.deviceTypeWindows = deviceTypeWindows; - this.deviceTypeZeroclient = deviceTypeZeroclient; - } + private @Nullable String deviceTypeZeroclient; + private DirectoryWorkspaceAccessProperties() {} /** * @return Indicates whether users can use Android devices to access their WorkSpaces. * @@ -136,7 +117,7 @@ public static Builder builder() { public static Builder builder(DirectoryWorkspaceAccessProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String deviceTypeAndroid; private @Nullable String deviceTypeChromeos; @@ -146,11 +127,7 @@ public static final class Builder { private @Nullable String deviceTypeWeb; private @Nullable String deviceTypeWindows; private @Nullable String deviceTypeZeroclient; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DirectoryWorkspaceAccessProperties defaults) { Objects.requireNonNull(defaults); this.deviceTypeAndroid = defaults.deviceTypeAndroid; @@ -163,39 +140,57 @@ public Builder(DirectoryWorkspaceAccessProperties defaults) { this.deviceTypeZeroclient = defaults.deviceTypeZeroclient; } + @CustomType.Setter public Builder deviceTypeAndroid(@Nullable String deviceTypeAndroid) { this.deviceTypeAndroid = deviceTypeAndroid; return this; } + @CustomType.Setter public Builder deviceTypeChromeos(@Nullable String deviceTypeChromeos) { this.deviceTypeChromeos = deviceTypeChromeos; return this; } + @CustomType.Setter public Builder deviceTypeIos(@Nullable String deviceTypeIos) { this.deviceTypeIos = deviceTypeIos; return this; } + @CustomType.Setter public Builder deviceTypeLinux(@Nullable String deviceTypeLinux) { this.deviceTypeLinux = deviceTypeLinux; return this; } + @CustomType.Setter public Builder deviceTypeOsx(@Nullable String deviceTypeOsx) { this.deviceTypeOsx = deviceTypeOsx; return this; } + @CustomType.Setter public Builder deviceTypeWeb(@Nullable String deviceTypeWeb) { this.deviceTypeWeb = deviceTypeWeb; return this; } + @CustomType.Setter public Builder deviceTypeWindows(@Nullable String deviceTypeWindows) { this.deviceTypeWindows = deviceTypeWindows; return this; } + @CustomType.Setter public Builder deviceTypeZeroclient(@Nullable String deviceTypeZeroclient) { this.deviceTypeZeroclient = deviceTypeZeroclient; return this; - } public DirectoryWorkspaceAccessProperties build() { - return new DirectoryWorkspaceAccessProperties(deviceTypeAndroid, deviceTypeChromeos, deviceTypeIos, deviceTypeLinux, deviceTypeOsx, deviceTypeWeb, deviceTypeWindows, deviceTypeZeroclient); + } + public DirectoryWorkspaceAccessProperties build() { + final var o = new DirectoryWorkspaceAccessProperties(); + o.deviceTypeAndroid = deviceTypeAndroid; + o.deviceTypeChromeos = deviceTypeChromeos; + o.deviceTypeIos = deviceTypeIos; + o.deviceTypeLinux = deviceTypeLinux; + o.deviceTypeOsx = deviceTypeOsx; + o.deviceTypeWeb = deviceTypeWeb; + o.deviceTypeWindows = deviceTypeWindows; + o.deviceTypeZeroclient = deviceTypeZeroclient; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/DirectoryWorkspaceCreationProperties.java b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/DirectoryWorkspaceCreationProperties.java index deedfd870c9..a3b3f166646 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/DirectoryWorkspaceCreationProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/DirectoryWorkspaceCreationProperties.java @@ -16,42 +16,29 @@ public final class DirectoryWorkspaceCreationProperties { * @return The identifier of your custom security group. Should relate to the same VPC, where workspaces reside in. * */ - private final @Nullable String customSecurityGroupId; + private @Nullable String customSecurityGroupId; /** * @return The default organizational unit (OU) for your WorkSpace directories. Should conform `"OU=<value>,DC=<value>,...,DC=<value>"` pattern. * */ - private final @Nullable String defaultOu; + private @Nullable String defaultOu; /** * @return Indicates whether internet access is enabled for your WorkSpaces. * */ - private final @Nullable Boolean enableInternetAccess; + private @Nullable Boolean enableInternetAccess; /** * @return Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see [WorkSpace Maintenance](https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html).. * */ - private final @Nullable Boolean enableMaintenanceMode; + private @Nullable Boolean enableMaintenanceMode; /** * @return Indicates whether users are local administrators of their WorkSpaces. * */ - private final @Nullable Boolean userEnabledAsLocalAdministrator; - - @CustomType.Constructor - private DirectoryWorkspaceCreationProperties( - @CustomType.Parameter("customSecurityGroupId") @Nullable String customSecurityGroupId, - @CustomType.Parameter("defaultOu") @Nullable String defaultOu, - @CustomType.Parameter("enableInternetAccess") @Nullable Boolean enableInternetAccess, - @CustomType.Parameter("enableMaintenanceMode") @Nullable Boolean enableMaintenanceMode, - @CustomType.Parameter("userEnabledAsLocalAdministrator") @Nullable Boolean userEnabledAsLocalAdministrator) { - this.customSecurityGroupId = customSecurityGroupId; - this.defaultOu = defaultOu; - this.enableInternetAccess = enableInternetAccess; - this.enableMaintenanceMode = enableMaintenanceMode; - this.userEnabledAsLocalAdministrator = userEnabledAsLocalAdministrator; - } + private @Nullable Boolean userEnabledAsLocalAdministrator; + private DirectoryWorkspaceCreationProperties() {} /** * @return The identifier of your custom security group. Should relate to the same VPC, where workspaces reside in. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(DirectoryWorkspaceCreationProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String customSecurityGroupId; private @Nullable String defaultOu; private @Nullable Boolean enableInternetAccess; private @Nullable Boolean enableMaintenanceMode; private @Nullable Boolean userEnabledAsLocalAdministrator; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(DirectoryWorkspaceCreationProperties defaults) { Objects.requireNonNull(defaults); this.customSecurityGroupId = defaults.customSecurityGroupId; @@ -116,27 +99,39 @@ public Builder(DirectoryWorkspaceCreationProperties defaults) { this.userEnabledAsLocalAdministrator = defaults.userEnabledAsLocalAdministrator; } + @CustomType.Setter public Builder customSecurityGroupId(@Nullable String customSecurityGroupId) { this.customSecurityGroupId = customSecurityGroupId; return this; } + @CustomType.Setter public Builder defaultOu(@Nullable String defaultOu) { this.defaultOu = defaultOu; return this; } + @CustomType.Setter public Builder enableInternetAccess(@Nullable Boolean enableInternetAccess) { this.enableInternetAccess = enableInternetAccess; return this; } + @CustomType.Setter public Builder enableMaintenanceMode(@Nullable Boolean enableMaintenanceMode) { this.enableMaintenanceMode = enableMaintenanceMode; return this; } + @CustomType.Setter public Builder userEnabledAsLocalAdministrator(@Nullable Boolean userEnabledAsLocalAdministrator) { this.userEnabledAsLocalAdministrator = userEnabledAsLocalAdministrator; return this; - } public DirectoryWorkspaceCreationProperties build() { - return new DirectoryWorkspaceCreationProperties(customSecurityGroupId, defaultOu, enableInternetAccess, enableMaintenanceMode, userEnabledAsLocalAdministrator); + } + public DirectoryWorkspaceCreationProperties build() { + final var o = new DirectoryWorkspaceCreationProperties(); + o.customSecurityGroupId = customSecurityGroupId; + o.defaultOu = defaultOu; + o.enableInternetAccess = enableInternetAccess; + o.enableMaintenanceMode = enableMaintenanceMode; + o.userEnabledAsLocalAdministrator = userEnabledAsLocalAdministrator; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleComputeType.java b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleComputeType.java index 8dbfa0a5d6d..76121e78238 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleComputeType.java +++ b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleComputeType.java @@ -13,13 +13,9 @@ public final class GetBundleComputeType { * @return The name of the bundle. You cannot combine this parameter with `bundle_id`. * */ - private final String name; - - @CustomType.Constructor - private GetBundleComputeType(@CustomType.Parameter("name") String name) { - this.name = name; - } + private String name; + private GetBundleComputeType() {} /** * @return The name of the bundle. You cannot combine this parameter with `bundle_id`. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetBundleComputeType defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String name; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBundleComputeType defaults) { Objects.requireNonNull(defaults); this.name = defaults.name; } + @CustomType.Setter public Builder name(String name) { this.name = Objects.requireNonNull(name); return this; - } public GetBundleComputeType build() { - return new GetBundleComputeType(name); + } + public GetBundleComputeType build() { + final var o = new GetBundleComputeType(); + o.name = name; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleResult.java b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleResult.java index d5f19d4152d..512f318a246 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleResult.java @@ -19,63 +19,44 @@ public final class GetBundleResult { * @return The ID of the bundle. * */ - private final @Nullable String bundleId; + private @Nullable String bundleId; /** * @return The compute type. See supported fields below. * */ - private final List computeTypes; + private List computeTypes; /** * @return The description of the bundle. * */ - private final String description; + private String description; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The name of the compute type. * */ - private final @Nullable String name; + private @Nullable String name; /** * @return The owner of the bundle. * */ - private final @Nullable String owner; + private @Nullable String owner; /** * @return The root volume. See supported fields below. * */ - private final List rootStorages; + private List rootStorages; /** * @return The user storage. See supported fields below. * */ - private final List userStorages; - - @CustomType.Constructor - private GetBundleResult( - @CustomType.Parameter("bundleId") @Nullable String bundleId, - @CustomType.Parameter("computeTypes") List computeTypes, - @CustomType.Parameter("description") String description, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("name") @Nullable String name, - @CustomType.Parameter("owner") @Nullable String owner, - @CustomType.Parameter("rootStorages") List rootStorages, - @CustomType.Parameter("userStorages") List userStorages) { - this.bundleId = bundleId; - this.computeTypes = computeTypes; - this.description = description; - this.id = id; - this.name = name; - this.owner = owner; - this.rootStorages = rootStorages; - this.userStorages = userStorages; - } + private List userStorages; + private GetBundleResult() {} /** * @return The ID of the bundle. * @@ -140,7 +121,7 @@ public static Builder builder() { public static Builder builder(GetBundleResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String bundleId; private List computeTypes; @@ -150,11 +131,7 @@ public static final class Builder { private @Nullable String owner; private List rootStorages; private List userStorages; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBundleResult defaults) { Objects.requireNonNull(defaults); this.bundleId = defaults.bundleId; @@ -167,10 +144,12 @@ public Builder(GetBundleResult defaults) { this.userStorages = defaults.userStorages; } + @CustomType.Setter public Builder bundleId(@Nullable String bundleId) { this.bundleId = bundleId; return this; } + @CustomType.Setter public Builder computeTypes(List computeTypes) { this.computeTypes = Objects.requireNonNull(computeTypes); return this; @@ -178,22 +157,27 @@ public Builder computeTypes(List computeTypes) { public Builder computeTypes(GetBundleComputeType... computeTypes) { return computeTypes(List.of(computeTypes)); } + @CustomType.Setter public Builder description(String description) { this.description = Objects.requireNonNull(description); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder name(@Nullable String name) { this.name = name; return this; } + @CustomType.Setter public Builder owner(@Nullable String owner) { this.owner = owner; return this; } + @CustomType.Setter public Builder rootStorages(List rootStorages) { this.rootStorages = Objects.requireNonNull(rootStorages); return this; @@ -201,14 +185,25 @@ public Builder rootStorages(List rootStorages) { public Builder rootStorages(GetBundleRootStorage... rootStorages) { return rootStorages(List.of(rootStorages)); } + @CustomType.Setter public Builder userStorages(List userStorages) { this.userStorages = Objects.requireNonNull(userStorages); return this; } public Builder userStorages(GetBundleUserStorage... userStorages) { return userStorages(List.of(userStorages)); - } public GetBundleResult build() { - return new GetBundleResult(bundleId, computeTypes, description, id, name, owner, rootStorages, userStorages); + } + public GetBundleResult build() { + final var o = new GetBundleResult(); + o.bundleId = bundleId; + o.computeTypes = computeTypes; + o.description = description; + o.id = id; + o.name = name; + o.owner = owner; + o.rootStorages = rootStorages; + o.userStorages = userStorages; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleRootStorage.java b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleRootStorage.java index 21bab0f638b..50cf7197961 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleRootStorage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleRootStorage.java @@ -13,13 +13,9 @@ public final class GetBundleRootStorage { * @return The size of the user storage. * */ - private final String capacity; - - @CustomType.Constructor - private GetBundleRootStorage(@CustomType.Parameter("capacity") String capacity) { - this.capacity = capacity; - } + private String capacity; + private GetBundleRootStorage() {} /** * @return The size of the user storage. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetBundleRootStorage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String capacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBundleRootStorage defaults) { Objects.requireNonNull(defaults); this.capacity = defaults.capacity; } + @CustomType.Setter public Builder capacity(String capacity) { this.capacity = Objects.requireNonNull(capacity); return this; - } public GetBundleRootStorage build() { - return new GetBundleRootStorage(capacity); + } + public GetBundleRootStorage build() { + final var o = new GetBundleRootStorage(); + o.capacity = capacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleUserStorage.java b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleUserStorage.java index 8d834157f4e..a75f1bbc9ab 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleUserStorage.java +++ b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetBundleUserStorage.java @@ -13,13 +13,9 @@ public final class GetBundleUserStorage { * @return The size of the user storage. * */ - private final String capacity; - - @CustomType.Constructor - private GetBundleUserStorage(@CustomType.Parameter("capacity") String capacity) { - this.capacity = capacity; - } + private String capacity; + private GetBundleUserStorage() {} /** * @return The size of the user storage. * @@ -35,24 +31,24 @@ public static Builder builder() { public static Builder builder(GetBundleUserStorage defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String capacity; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetBundleUserStorage defaults) { Objects.requireNonNull(defaults); this.capacity = defaults.capacity; } + @CustomType.Setter public Builder capacity(String capacity) { this.capacity = Objects.requireNonNull(capacity); return this; - } public GetBundleUserStorage build() { - return new GetBundleUserStorage(capacity); + } + public GetBundleUserStorage build() { + final var o = new GetBundleUserStorage(); + o.capacity = capacity; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetDirectoryResult.java b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetDirectoryResult.java index 733af127cc3..dd0a39141f2 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetDirectoryResult.java +++ b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetDirectoryResult.java @@ -19,115 +19,80 @@ public final class GetDirectoryResult { * @return The directory alias. * */ - private final String alias; + private String alias; /** * @return The user name for the service account. * */ - private final String customerUserName; - private final String directoryId; + private String customerUserName; + private String directoryId; /** * @return The name of the directory. * */ - private final String directoryName; + private String directoryName; /** * @return The directory type. * */ - private final String directoryType; + private String directoryType; /** * @return The IP addresses of the DNS servers for the directory. * */ - private final List dnsIpAddresses; + private List dnsIpAddresses; /** * @return The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf. * */ - private final String iamRoleId; + private String iamRoleId; /** * @return The provider-assigned unique ID for this managed resource. * */ - private final String id; + private String id; /** * @return The identifiers of the IP access control groups associated with the directory. * */ - private final List ipGroupIds; + private List ipGroupIds; /** * @return The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory. * */ - private final String registrationCode; + private String registrationCode; /** * @return The permissions to enable or disable self-service capabilities. * */ - private final List selfServicePermissions; + private List selfServicePermissions; /** * @return The identifiers of the subnets where the directory resides. * */ - private final List subnetIds; + private List subnetIds; /** * @return A map of tags assigned to the WorkSpaces directory. * */ - private final @Nullable Map tags; + private @Nullable Map tags; /** * @return (Optional) Specifies which devices and operating systems users can use to access their WorkSpaces. Defined below. * */ - private final List workspaceAccessProperties; + private List workspaceAccessProperties; /** * @return The default properties that are used for creating WorkSpaces. Defined below. * */ - private final List workspaceCreationProperties; + private List workspaceCreationProperties; /** * @return The identifier of the security group that is assigned to new WorkSpaces. Defined below. * */ - private final String workspaceSecurityGroupId; - - @CustomType.Constructor - private GetDirectoryResult( - @CustomType.Parameter("alias") String alias, - @CustomType.Parameter("customerUserName") String customerUserName, - @CustomType.Parameter("directoryId") String directoryId, - @CustomType.Parameter("directoryName") String directoryName, - @CustomType.Parameter("directoryType") String directoryType, - @CustomType.Parameter("dnsIpAddresses") List dnsIpAddresses, - @CustomType.Parameter("iamRoleId") String iamRoleId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ipGroupIds") List ipGroupIds, - @CustomType.Parameter("registrationCode") String registrationCode, - @CustomType.Parameter("selfServicePermissions") List selfServicePermissions, - @CustomType.Parameter("subnetIds") List subnetIds, - @CustomType.Parameter("tags") @Nullable Map tags, - @CustomType.Parameter("workspaceAccessProperties") List workspaceAccessProperties, - @CustomType.Parameter("workspaceCreationProperties") List workspaceCreationProperties, - @CustomType.Parameter("workspaceSecurityGroupId") String workspaceSecurityGroupId) { - this.alias = alias; - this.customerUserName = customerUserName; - this.directoryId = directoryId; - this.directoryName = directoryName; - this.directoryType = directoryType; - this.dnsIpAddresses = dnsIpAddresses; - this.iamRoleId = iamRoleId; - this.id = id; - this.ipGroupIds = ipGroupIds; - this.registrationCode = registrationCode; - this.selfServicePermissions = selfServicePermissions; - this.subnetIds = subnetIds; - this.tags = tags; - this.workspaceAccessProperties = workspaceAccessProperties; - this.workspaceCreationProperties = workspaceCreationProperties; - this.workspaceSecurityGroupId = workspaceSecurityGroupId; - } + private String workspaceSecurityGroupId; + private GetDirectoryResult() {} /** * @return The directory alias. * @@ -244,7 +209,7 @@ public static Builder builder() { public static Builder builder(GetDirectoryResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String alias; private String customerUserName; @@ -262,11 +227,7 @@ public static final class Builder { private List workspaceAccessProperties; private List workspaceCreationProperties; private String workspaceSecurityGroupId; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetDirectoryResult defaults) { Objects.requireNonNull(defaults); this.alias = defaults.alias; @@ -287,26 +248,32 @@ public Builder(GetDirectoryResult defaults) { this.workspaceSecurityGroupId = defaults.workspaceSecurityGroupId; } + @CustomType.Setter public Builder alias(String alias) { this.alias = Objects.requireNonNull(alias); return this; } + @CustomType.Setter public Builder customerUserName(String customerUserName) { this.customerUserName = Objects.requireNonNull(customerUserName); return this; } + @CustomType.Setter public Builder directoryId(String directoryId) { this.directoryId = Objects.requireNonNull(directoryId); return this; } + @CustomType.Setter public Builder directoryName(String directoryName) { this.directoryName = Objects.requireNonNull(directoryName); return this; } + @CustomType.Setter public Builder directoryType(String directoryType) { this.directoryType = Objects.requireNonNull(directoryType); return this; } + @CustomType.Setter public Builder dnsIpAddresses(List dnsIpAddresses) { this.dnsIpAddresses = Objects.requireNonNull(dnsIpAddresses); return this; @@ -314,14 +281,17 @@ public Builder dnsIpAddresses(List dnsIpAddresses) { public Builder dnsIpAddresses(String... dnsIpAddresses) { return dnsIpAddresses(List.of(dnsIpAddresses)); } + @CustomType.Setter public Builder iamRoleId(String iamRoleId) { this.iamRoleId = Objects.requireNonNull(iamRoleId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ipGroupIds(List ipGroupIds) { this.ipGroupIds = Objects.requireNonNull(ipGroupIds); return this; @@ -329,10 +299,12 @@ public Builder ipGroupIds(List ipGroupIds) { public Builder ipGroupIds(String... ipGroupIds) { return ipGroupIds(List.of(ipGroupIds)); } + @CustomType.Setter public Builder registrationCode(String registrationCode) { this.registrationCode = Objects.requireNonNull(registrationCode); return this; } + @CustomType.Setter public Builder selfServicePermissions(List selfServicePermissions) { this.selfServicePermissions = Objects.requireNonNull(selfServicePermissions); return this; @@ -340,6 +312,7 @@ public Builder selfServicePermissions(List se public Builder selfServicePermissions(GetDirectorySelfServicePermission... selfServicePermissions) { return selfServicePermissions(List.of(selfServicePermissions)); } + @CustomType.Setter public Builder subnetIds(List subnetIds) { this.subnetIds = Objects.requireNonNull(subnetIds); return this; @@ -347,10 +320,12 @@ public Builder subnetIds(List subnetIds) { public Builder subnetIds(String... subnetIds) { return subnetIds(List.of(subnetIds)); } + @CustomType.Setter public Builder tags(@Nullable Map tags) { this.tags = tags; return this; } + @CustomType.Setter public Builder workspaceAccessProperties(List workspaceAccessProperties) { this.workspaceAccessProperties = Objects.requireNonNull(workspaceAccessProperties); return this; @@ -358,6 +333,7 @@ public Builder workspaceAccessProperties(List workspaceCreationProperties) { this.workspaceCreationProperties = Objects.requireNonNull(workspaceCreationProperties); return this; @@ -365,11 +341,30 @@ public Builder workspaceCreationProperties(List tags; - private final String userName; - private final Boolean userVolumeEncryptionEnabled; - private final String volumeEncryptionKey; - private final String workspaceId; - private final List workspaceProperties; - - @CustomType.Constructor - private GetWorkspaceResult( - @CustomType.Parameter("bundleId") String bundleId, - @CustomType.Parameter("computerName") String computerName, - @CustomType.Parameter("directoryId") String directoryId, - @CustomType.Parameter("id") String id, - @CustomType.Parameter("ipAddress") String ipAddress, - @CustomType.Parameter("rootVolumeEncryptionEnabled") Boolean rootVolumeEncryptionEnabled, - @CustomType.Parameter("state") String state, - @CustomType.Parameter("tags") Map tags, - @CustomType.Parameter("userName") String userName, - @CustomType.Parameter("userVolumeEncryptionEnabled") Boolean userVolumeEncryptionEnabled, - @CustomType.Parameter("volumeEncryptionKey") String volumeEncryptionKey, - @CustomType.Parameter("workspaceId") String workspaceId, - @CustomType.Parameter("workspaceProperties") List workspaceProperties) { - this.bundleId = bundleId; - this.computerName = computerName; - this.directoryId = directoryId; - this.id = id; - this.ipAddress = ipAddress; - this.rootVolumeEncryptionEnabled = rootVolumeEncryptionEnabled; - this.state = state; - this.tags = tags; - this.userName = userName; - this.userVolumeEncryptionEnabled = userVolumeEncryptionEnabled; - this.volumeEncryptionKey = volumeEncryptionKey; - this.workspaceId = workspaceId; - this.workspaceProperties = workspaceProperties; - } + private String state; + private Map tags; + private String userName; + private Boolean userVolumeEncryptionEnabled; + private String volumeEncryptionKey; + private String workspaceId; + private List workspaceProperties; + private GetWorkspaceResult() {} public String bundleId() { return this.bundleId; } @@ -136,7 +107,7 @@ public static Builder builder() { public static Builder builder(GetWorkspaceResult defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String bundleId; private String computerName; @@ -151,11 +122,7 @@ public static final class Builder { private String volumeEncryptionKey; private String workspaceId; private List workspaceProperties; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetWorkspaceResult defaults) { Objects.requireNonNull(defaults); this.bundleId = defaults.bundleId; @@ -173,62 +140,90 @@ public Builder(GetWorkspaceResult defaults) { this.workspaceProperties = defaults.workspaceProperties; } + @CustomType.Setter public Builder bundleId(String bundleId) { this.bundleId = Objects.requireNonNull(bundleId); return this; } + @CustomType.Setter public Builder computerName(String computerName) { this.computerName = Objects.requireNonNull(computerName); return this; } + @CustomType.Setter public Builder directoryId(String directoryId) { this.directoryId = Objects.requireNonNull(directoryId); return this; } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } + @CustomType.Setter public Builder ipAddress(String ipAddress) { this.ipAddress = Objects.requireNonNull(ipAddress); return this; } + @CustomType.Setter public Builder rootVolumeEncryptionEnabled(Boolean rootVolumeEncryptionEnabled) { this.rootVolumeEncryptionEnabled = Objects.requireNonNull(rootVolumeEncryptionEnabled); return this; } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; } + @CustomType.Setter public Builder tags(Map tags) { this.tags = Objects.requireNonNull(tags); return this; } + @CustomType.Setter public Builder userName(String userName) { this.userName = Objects.requireNonNull(userName); return this; } + @CustomType.Setter public Builder userVolumeEncryptionEnabled(Boolean userVolumeEncryptionEnabled) { this.userVolumeEncryptionEnabled = Objects.requireNonNull(userVolumeEncryptionEnabled); return this; } + @CustomType.Setter public Builder volumeEncryptionKey(String volumeEncryptionKey) { this.volumeEncryptionKey = Objects.requireNonNull(volumeEncryptionKey); return this; } + @CustomType.Setter public Builder workspaceId(String workspaceId) { this.workspaceId = Objects.requireNonNull(workspaceId); return this; } + @CustomType.Setter public Builder workspaceProperties(List workspaceProperties) { this.workspaceProperties = Objects.requireNonNull(workspaceProperties); return this; } public Builder workspaceProperties(GetWorkspaceWorkspaceProperty... workspaceProperties) { return workspaceProperties(List.of(workspaceProperties)); - } public GetWorkspaceResult build() { - return new GetWorkspaceResult(bundleId, computerName, directoryId, id, ipAddress, rootVolumeEncryptionEnabled, state, tags, userName, userVolumeEncryptionEnabled, volumeEncryptionKey, workspaceId, workspaceProperties); + } + public GetWorkspaceResult build() { + final var o = new GetWorkspaceResult(); + o.bundleId = bundleId; + o.computerName = computerName; + o.directoryId = directoryId; + o.id = id; + o.ipAddress = ipAddress; + o.rootVolumeEncryptionEnabled = rootVolumeEncryptionEnabled; + o.state = state; + o.tags = tags; + o.userName = userName; + o.userVolumeEncryptionEnabled = userVolumeEncryptionEnabled; + o.volumeEncryptionKey = volumeEncryptionKey; + o.workspaceId = workspaceId; + o.workspaceProperties = workspaceProperties; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetWorkspaceWorkspaceProperty.java b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetWorkspaceWorkspaceProperty.java index d53f45a5ccc..064153b6269 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetWorkspaceWorkspaceProperty.java +++ b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/GetWorkspaceWorkspaceProperty.java @@ -14,42 +14,29 @@ public final class GetWorkspaceWorkspaceProperty { * @return The compute type. For more information, see [Amazon WorkSpaces Bundles](http://aws.amazon.com/workspaces/details/#Amazon_WorkSpaces_Bundles). Valid values are `VALUE`, `STANDARD`, `PERFORMANCE`, `POWER`, `GRAPHICS`, `POWERPRO` and `GRAPHICSPRO`. * */ - private final String computeTypeName; + private String computeTypeName; /** * @return The size of the root volume. * */ - private final Integer rootVolumeSizeGib; + private Integer rootVolumeSizeGib; /** * @return The running mode. For more information, see [Manage the WorkSpace Running Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html). Valid values are `AUTO_STOP` and `ALWAYS_ON`. * */ - private final String runningMode; + private String runningMode; /** * @return The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals. * */ - private final Integer runningModeAutoStopTimeoutInMinutes; + private Integer runningModeAutoStopTimeoutInMinutes; /** * @return The size of the user storage. * */ - private final Integer userVolumeSizeGib; - - @CustomType.Constructor - private GetWorkspaceWorkspaceProperty( - @CustomType.Parameter("computeTypeName") String computeTypeName, - @CustomType.Parameter("rootVolumeSizeGib") Integer rootVolumeSizeGib, - @CustomType.Parameter("runningMode") String runningMode, - @CustomType.Parameter("runningModeAutoStopTimeoutInMinutes") Integer runningModeAutoStopTimeoutInMinutes, - @CustomType.Parameter("userVolumeSizeGib") Integer userVolumeSizeGib) { - this.computeTypeName = computeTypeName; - this.rootVolumeSizeGib = rootVolumeSizeGib; - this.runningMode = runningMode; - this.runningModeAutoStopTimeoutInMinutes = runningModeAutoStopTimeoutInMinutes; - this.userVolumeSizeGib = userVolumeSizeGib; - } + private Integer userVolumeSizeGib; + private GetWorkspaceWorkspaceProperty() {} /** * @return The compute type. For more information, see [Amazon WorkSpaces Bundles](http://aws.amazon.com/workspaces/details/#Amazon_WorkSpaces_Bundles). Valid values are `VALUE`, `STANDARD`, `PERFORMANCE`, `POWER`, `GRAPHICS`, `POWERPRO` and `GRAPHICSPRO`. * @@ -93,18 +80,14 @@ public static Builder builder() { public static Builder builder(GetWorkspaceWorkspaceProperty defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private String computeTypeName; private Integer rootVolumeSizeGib; private String runningMode; private Integer runningModeAutoStopTimeoutInMinutes; private Integer userVolumeSizeGib; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GetWorkspaceWorkspaceProperty defaults) { Objects.requireNonNull(defaults); this.computeTypeName = defaults.computeTypeName; @@ -114,27 +97,39 @@ public Builder(GetWorkspaceWorkspaceProperty defaults) { this.userVolumeSizeGib = defaults.userVolumeSizeGib; } + @CustomType.Setter public Builder computeTypeName(String computeTypeName) { this.computeTypeName = Objects.requireNonNull(computeTypeName); return this; } + @CustomType.Setter public Builder rootVolumeSizeGib(Integer rootVolumeSizeGib) { this.rootVolumeSizeGib = Objects.requireNonNull(rootVolumeSizeGib); return this; } + @CustomType.Setter public Builder runningMode(String runningMode) { this.runningMode = Objects.requireNonNull(runningMode); return this; } + @CustomType.Setter public Builder runningModeAutoStopTimeoutInMinutes(Integer runningModeAutoStopTimeoutInMinutes) { this.runningModeAutoStopTimeoutInMinutes = Objects.requireNonNull(runningModeAutoStopTimeoutInMinutes); return this; } + @CustomType.Setter public Builder userVolumeSizeGib(Integer userVolumeSizeGib) { this.userVolumeSizeGib = Objects.requireNonNull(userVolumeSizeGib); return this; - } public GetWorkspaceWorkspaceProperty build() { - return new GetWorkspaceWorkspaceProperty(computeTypeName, rootVolumeSizeGib, runningMode, runningModeAutoStopTimeoutInMinutes, userVolumeSizeGib); + } + public GetWorkspaceWorkspaceProperty build() { + final var o = new GetWorkspaceWorkspaceProperty(); + o.computeTypeName = computeTypeName; + o.rootVolumeSizeGib = rootVolumeSizeGib; + o.runningMode = runningMode; + o.runningModeAutoStopTimeoutInMinutes = runningModeAutoStopTimeoutInMinutes; + o.userVolumeSizeGib = userVolumeSizeGib; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/IpGroupRule.java b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/IpGroupRule.java index d83b584fdb0..4967a406c3c 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/IpGroupRule.java +++ b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/IpGroupRule.java @@ -15,21 +15,14 @@ public final class IpGroupRule { * @return The description. * */ - private final @Nullable String description; + private @Nullable String description; /** * @return The IP address range, in CIDR notation, e.g., `10.0.0.0/16` * */ - private final String source; - - @CustomType.Constructor - private IpGroupRule( - @CustomType.Parameter("description") @Nullable String description, - @CustomType.Parameter("source") String source) { - this.description = description; - this.source = source; - } + private String source; + private IpGroupRule() {} /** * @return The description. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(IpGroupRule defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String description; private String source; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(IpGroupRule defaults) { Objects.requireNonNull(defaults); this.description = defaults.description; this.source = defaults.source; } + @CustomType.Setter public Builder description(@Nullable String description) { this.description = description; return this; } + @CustomType.Setter public Builder source(String source) { this.source = Objects.requireNonNull(source); return this; - } public IpGroupRule build() { - return new IpGroupRule(description, source); + } + public IpGroupRule build() { + final var o = new IpGroupRule(); + o.description = description; + o.source = source; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/WorkspaceWorkspaceProperties.java b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/WorkspaceWorkspaceProperties.java index 6a50cf06ea5..61b2bb5671f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/WorkspaceWorkspaceProperties.java +++ b/sdk/java/src/main/java/com/pulumi/aws/workspaces/outputs/WorkspaceWorkspaceProperties.java @@ -16,42 +16,29 @@ public final class WorkspaceWorkspaceProperties { * @return The compute type. For more information, see [Amazon WorkSpaces Bundles](http://aws.amazon.com/workspaces/details/#Amazon_WorkSpaces_Bundles). Valid values are `VALUE`, `STANDARD`, `PERFORMANCE`, `POWER`, `GRAPHICS`, `POWERPRO`, `GRAPHICSPRO`, `GRAPHICS_G4DN`, and `GRAPHICSPRO_G4DN`. * */ - private final @Nullable String computeTypeName; + private @Nullable String computeTypeName; /** * @return The size of the root volume. * */ - private final @Nullable Integer rootVolumeSizeGib; + private @Nullable Integer rootVolumeSizeGib; /** * @return The running mode. For more information, see [Manage the WorkSpace Running Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html). Valid values are `AUTO_STOP` and `ALWAYS_ON`. * */ - private final @Nullable String runningMode; + private @Nullable String runningMode; /** * @return The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals. * */ - private final @Nullable Integer runningModeAutoStopTimeoutInMinutes; + private @Nullable Integer runningModeAutoStopTimeoutInMinutes; /** * @return The size of the user storage. * */ - private final @Nullable Integer userVolumeSizeGib; - - @CustomType.Constructor - private WorkspaceWorkspaceProperties( - @CustomType.Parameter("computeTypeName") @Nullable String computeTypeName, - @CustomType.Parameter("rootVolumeSizeGib") @Nullable Integer rootVolumeSizeGib, - @CustomType.Parameter("runningMode") @Nullable String runningMode, - @CustomType.Parameter("runningModeAutoStopTimeoutInMinutes") @Nullable Integer runningModeAutoStopTimeoutInMinutes, - @CustomType.Parameter("userVolumeSizeGib") @Nullable Integer userVolumeSizeGib) { - this.computeTypeName = computeTypeName; - this.rootVolumeSizeGib = rootVolumeSizeGib; - this.runningMode = runningMode; - this.runningModeAutoStopTimeoutInMinutes = runningModeAutoStopTimeoutInMinutes; - this.userVolumeSizeGib = userVolumeSizeGib; - } + private @Nullable Integer userVolumeSizeGib; + private WorkspaceWorkspaceProperties() {} /** * @return The compute type. For more information, see [Amazon WorkSpaces Bundles](http://aws.amazon.com/workspaces/details/#Amazon_WorkSpaces_Bundles). Valid values are `VALUE`, `STANDARD`, `PERFORMANCE`, `POWER`, `GRAPHICS`, `POWERPRO`, `GRAPHICSPRO`, `GRAPHICS_G4DN`, and `GRAPHICSPRO_G4DN`. * @@ -95,18 +82,14 @@ public static Builder builder() { public static Builder builder(WorkspaceWorkspaceProperties defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private @Nullable String computeTypeName; private @Nullable Integer rootVolumeSizeGib; private @Nullable String runningMode; private @Nullable Integer runningModeAutoStopTimeoutInMinutes; private @Nullable Integer userVolumeSizeGib; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(WorkspaceWorkspaceProperties defaults) { Objects.requireNonNull(defaults); this.computeTypeName = defaults.computeTypeName; @@ -116,27 +99,39 @@ public Builder(WorkspaceWorkspaceProperties defaults) { this.userVolumeSizeGib = defaults.userVolumeSizeGib; } + @CustomType.Setter public Builder computeTypeName(@Nullable String computeTypeName) { this.computeTypeName = computeTypeName; return this; } + @CustomType.Setter public Builder rootVolumeSizeGib(@Nullable Integer rootVolumeSizeGib) { this.rootVolumeSizeGib = rootVolumeSizeGib; return this; } + @CustomType.Setter public Builder runningMode(@Nullable String runningMode) { this.runningMode = runningMode; return this; } + @CustomType.Setter public Builder runningModeAutoStopTimeoutInMinutes(@Nullable Integer runningModeAutoStopTimeoutInMinutes) { this.runningModeAutoStopTimeoutInMinutes = runningModeAutoStopTimeoutInMinutes; return this; } + @CustomType.Setter public Builder userVolumeSizeGib(@Nullable Integer userVolumeSizeGib) { this.userVolumeSizeGib = userVolumeSizeGib; return this; - } public WorkspaceWorkspaceProperties build() { - return new WorkspaceWorkspaceProperties(computeTypeName, rootVolumeSizeGib, runningMode, runningModeAutoStopTimeoutInMinutes, userVolumeSizeGib); + } + public WorkspaceWorkspaceProperties build() { + final var o = new WorkspaceWorkspaceProperties(); + o.computeTypeName = computeTypeName; + o.rootVolumeSizeGib = rootVolumeSizeGib; + o.runningMode = runningMode; + o.runningModeAutoStopTimeoutInMinutes = runningModeAutoStopTimeoutInMinutes; + o.userVolumeSizeGib = userVolumeSizeGib; + return o; } } } diff --git a/sdk/java/src/main/java/com/pulumi/aws/xray/outputs/GroupInsightsConfiguration.java b/sdk/java/src/main/java/com/pulumi/aws/xray/outputs/GroupInsightsConfiguration.java index 4de8361786e..c8acae5dd89 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/xray/outputs/GroupInsightsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/aws/xray/outputs/GroupInsightsConfiguration.java @@ -15,21 +15,14 @@ public final class GroupInsightsConfiguration { * @return Specifies whether insights are enabled. * */ - private final Boolean insightsEnabled; + private Boolean insightsEnabled; /** * @return Specifies whether insight notifications are enabled. * */ - private final @Nullable Boolean notificationsEnabled; - - @CustomType.Constructor - private GroupInsightsConfiguration( - @CustomType.Parameter("insightsEnabled") Boolean insightsEnabled, - @CustomType.Parameter("notificationsEnabled") @Nullable Boolean notificationsEnabled) { - this.insightsEnabled = insightsEnabled; - this.notificationsEnabled = notificationsEnabled; - } + private @Nullable Boolean notificationsEnabled; + private GroupInsightsConfiguration() {} /** * @return Specifies whether insights are enabled. * @@ -52,30 +45,32 @@ public static Builder builder() { public static Builder builder(GroupInsightsConfiguration defaults) { return new Builder(defaults); } - + @CustomType.Builder public static final class Builder { private Boolean insightsEnabled; private @Nullable Boolean notificationsEnabled; - - public Builder() { - // Empty - } - + public Builder() {} public Builder(GroupInsightsConfiguration defaults) { Objects.requireNonNull(defaults); this.insightsEnabled = defaults.insightsEnabled; this.notificationsEnabled = defaults.notificationsEnabled; } + @CustomType.Setter public Builder insightsEnabled(Boolean insightsEnabled) { this.insightsEnabled = Objects.requireNonNull(insightsEnabled); return this; } + @CustomType.Setter public Builder notificationsEnabled(@Nullable Boolean notificationsEnabled) { this.notificationsEnabled = notificationsEnabled; return this; - } public GroupInsightsConfiguration build() { - return new GroupInsightsConfiguration(insightsEnabled, notificationsEnabled); + } + public GroupInsightsConfiguration build() { + final var o = new GroupInsightsConfiguration(); + o.insightsEnabled = insightsEnabled; + o.notificationsEnabled = notificationsEnabled; + return o; } } }